mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-16 07:55:50 +00:00
4330 lines
5.3 MiB
Plaintext
4330 lines
5.3 MiB
Plaintext
"use strict";var __esbuild_esm_mermaid_nm;(__esbuild_esm_mermaid_nm||={}).mermaid=(()=>{var ISn=Object.create;var Pee=Object.defineProperty;var MSn=Object.getOwnPropertyDescriptor;var NSn=Object.getOwnPropertyNames;var OSn=Object.getPrototypeOf,PSn=Object.prototype.hasOwnProperty;var i=(r,t)=>Pee(r,"name",{value:t,configurable:!0}),Bee=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var ae=(r,t,a)=>()=>{if(a)throw a[0];try{return r&&(t=r(r=0)),t}catch(s){throw a=[s],s}};var Zv=(r,t)=>()=>{try{return t||r((t={exports:{}}).exports,t),t.exports}catch(a){throw t=0,a}},is=(r,t)=>{for(var a in t)Pee(r,a,{get:t[a],enumerable:!0})},Mar=(r,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of NSn(t))!PSn.call(r,l)&&l!==a&&Pee(r,l,{get:()=>t[l],enumerable:!(s=MSn(t,l))||s.enumerable});return r};var e2=(r,t,a)=>(a=r!=null?ISn(OSn(r)):{},Mar(t||!r||!r.__esModule?Pee(a,"default",{value:r,enumerable:!0}):a,r)),BSn=r=>Mar(Pee({},"__esModule",{value:!0}),r);var FSn,hz,QWe,Nar,cbe=ae(()=>{"use strict";FSn=Object.freeze({left:0,top:0,width:16,height:16}),hz=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),QWe=Object.freeze({...FSn,...hz}),Nar=Object.freeze({...QWe,body:"",hidden:!1})});var $Sn,Oar,Par=ae(()=>{"use strict";cbe();$Sn=Object.freeze({width:null,height:null}),Oar=Object.freeze({...$Sn,...hz})});var ZWe,ube,Bar=ae(()=>{"use strict";ZWe=i((r,t,a,s="")=>{let l=r.split(":");if(r.slice(0,1)==="@"){if(l.length<2||l.length>3)return null;s=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){let d=l.pop(),m=l.pop(),b={provider:l.length>0?l[0]:s,prefix:m,name:d};return t&&!ube(b)?null:b}let h=l[0],f=h.split("-");if(f.length>1){let d={provider:s,prefix:f.shift(),name:f.join("-")};return t&&!ube(d)?null:d}if(a&&s===""){let d={provider:s,prefix:"",name:h};return t&&!ube(d,a)?null:d}return null},"stringToIcon"),ube=i((r,t)=>r?!!((t&&r.prefix===""||r.prefix)&&r.name):!1,"validateIconName")});function Far(r,t){let a={};!r.hFlip!=!t.hFlip&&(a.hFlip=!0),!r.vFlip!=!t.vFlip&&(a.vFlip=!0);let s=((r.rotate||0)+(t.rotate||0))%4;return s&&(a.rotate=s),a}var $ar=ae(()=>{"use strict";i(Far,"mergeIconTransformations")});function eHe(r,t){let a=Far(r,t);for(let s in Nar)s in hz?s in r&&!(s in a)&&(a[s]=hz[s]):s in t?a[s]=t[s]:s in r&&(a[s]=r[s]);return a}var Gar=ae(()=>{"use strict";cbe();$ar();i(eHe,"mergeIconData")});function jar(r,t){let a=r.icons,s=r.aliases||Object.create(null),l=Object.create(null);function h(f){if(a[f])return l[f]=[];if(!(f in l)){l[f]=null;let d=s[f]&&s[f].parent,m=d&&h(d);m&&(l[f]=[d].concat(m))}return l[f]}return i(h,"resolve"),(t||Object.keys(a).concat(Object.keys(s))).forEach(h),l}var zar=ae(()=>{"use strict";i(jar,"getIconsTree")});function Uar(r,t,a){let s=r.icons,l=r.aliases||Object.create(null),h={};function f(d){h=eHe(s[d]||l[d],h)}return i(f,"parse"),f(t),a.forEach(f),eHe(r,h)}function tHe(r,t){if(r.icons[t])return Uar(r,t,[]);let a=jar(r,[t])[t];return a?Uar(r,t,a):null}var Var=ae(()=>{"use strict";Gar();zar();i(Uar,"internalGetIconData");i(tHe,"getIconData")});function rHe(r,t,a){if(t===1)return r;if(a=a||100,typeof r=="number")return Math.ceil(r*t*a)/a;if(typeof r!="string")return r;let s=r.split(GSn);if(s===null||!s.length)return r;let l=[],h=s.shift(),f=jSn.test(h);for(;;){if(f){let d=parseFloat(h);isNaN(d)?l.push(h):l.push(Math.ceil(d*t*a)/a)}else l.push(h);if(h=s.shift(),h===void 0)return l.join("");f=!f}}var GSn,jSn,War=ae(()=>{"use strict";GSn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,jSn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;i(rHe,"calculateSize")});function zSn(r,t="defs"){let a="",s=r.indexOf("<"+t);for(;s>=0;){let l=r.indexOf(">",s),h=r.indexOf("</"+t);if(l===-1||h===-1)break;let f=r.indexOf(">",h);if(f===-1)break;a+=r.slice(l+1,h).trim(),r=r.slice(0,s).trim()+r.slice(f+1)}return{defs:a,content:r}}function USn(r,t){return r?"<defs>"+r+"</defs>"+t:t}function Har(r,t,a){let s=zSn(r);return USn(s.defs,t+s.content+a)}var qar=ae(()=>{"use strict";i(zSn,"splitSVGDefs");i(USn,"mergeDefsAndContent");i(Har,"wrapSVGContent")});function nHe(r,t){let a={...QWe,...r},s={...Oar,...t},l={left:a.left,top:a.top,width:a.width,height:a.height},h=a.body;[a,s].forEach(R=>{let L=[],_=R.hFlip,I=R.vFlip,N=R.rotate;_?I?N+=2:(L.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),L.push("scale(-1 1)"),l.top=l.left=0):I&&(L.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),L.push("scale(1 -1)"),l.top=l.left=0);let B;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:B=l.height/2+l.top,L.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:L.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:B=l.width/2+l.left,L.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")");break}N%2===1&&(l.left!==l.top&&(B=l.left,l.left=l.top,l.top=B),l.width!==l.height&&(B=l.width,l.width=l.height,l.height=B)),L.length&&(h=Har(h,'<g transform="'+L.join(" ")+'">',"</g>"))});let f=s.width,d=s.height,m=l.width,b=l.height,v,T;f===null?(T=d===null?"1em":d==="auto"?b:d,v=rHe(T,m/b)):(v=f==="auto"?m:f,T=d===null?rHe(v,b/m):d==="auto"?b:d);let C={},E=i((R,L)=>{VSn(L)||(C[R]=L.toString())},"setAttr");E("width",v),E("height",T);let S=[l.left,l.top,m,b];return C.viewBox=S.join(" "),{attributes:C,viewBox:S,body:h}}var VSn,Yar=ae(()=>{"use strict";cbe();Par();War();qar();VSn=i(r=>r==="unset"||r==="undefined"||r==="none","isUnsetKeyword");i(nHe,"iconToSVG")});function iHe(r,t=HSn){let a=[],s;for(;s=WSn.exec(r);)a.push(s[1]);if(!a.length)return r;let l="suffix"+(Math.random()*16777216|Date.now()).toString(16);return a.forEach(h=>{let f=typeof t=="function"?t(h):t+(qSn++).toString(),d=h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+d+')([")]|\\.[a-z])',"g"),"$1"+f+l+"$3")}),r=r.replace(new RegExp(l,"g"),""),r}var WSn,HSn,qSn,Xar=ae(()=>{"use strict";WSn=/\sid="(\S+)"/g,HSn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),qSn=0;i(iHe,"replaceIDs")});function aHe(r,t){let a=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let s in t)a+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+r+"</svg>"}var Kar=ae(()=>{"use strict";i(aHe,"iconToHTML")});var Jar=ae(()=>{"use strict";Bar();Var();Yar();Xar();Kar()});var sHe,Bh,fz=ae(()=>{"use strict";sHe=i((r,t,{depth:a=2}={})=>{let s={depth:a};if(Array.isArray(t)&&!Array.isArray(r))return t.forEach(l=>sHe(r,l,s)),r;if(Array.isArray(t)&&Array.isArray(r))return t.forEach(l=>{r.includes(l)||r.push(l)}),r;if(r==null||a<=0)return r!=null&&typeof r=="object"&&typeof t=="object"?Object.assign(r,t):t;if(t!=null&&typeof r=="object"&&typeof t=="object"){let l=r;Object.entries(t).forEach(([h,f])=>{if(typeof f=="object"){if(f===null)return;Object.hasOwn(r,h)||Object.defineProperty(r,h,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),l[h]===void 0&&(l[h]=Array.isArray(f)?[]:{}),typeof l[h]=="object"&&(l[h]=sHe(l[h],f,{depth:a-1}))}else typeof l[h]!="object"&&(Object.hasOwn(r,h)?l[h]=f:Object.defineProperty(r,h,{value:f,writable:!0,enumerable:!0,configurable:!0}))})}return r},"assignWithDepth"),Bh=sHe});var hbe=Zv((oHe,lHe)=>{"use strict";(function(r,t){typeof oHe=="object"&&typeof lHe<"u"?lHe.exports=t():typeof define=="function"&&define.amd?define(t):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=t()})(oHe,(function(){"use strict";var r=1e3,t=6e4,a=36e5,s="millisecond",l="second",h="minute",f="hour",d="day",m="week",b="month",v="quarter",T="year",C="date",E="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:i(function(W){var H=["th","st","nd","rd"],re=W%100;return"["+W+(H[(re-20)%10]||H[re]||H[0])+"]"},"ordinal")},_=i(function(W,H,re){var Z=String(W);return!Z||Z.length>=H?W:""+Array(H+1-Z.length).join(re)+W},"m"),I={s:_,z:i(function(W){var H=-W.utcOffset(),re=Math.abs(H),Z=Math.floor(re/60),X=re%60;return(H<=0?"+":"-")+_(Z,2,"0")+":"+_(X,2,"0")},"z"),m:i(function W(H,re){if(H.date()<re.date())return-W(re,H);var Z=12*(re.year()-H.year())+(re.month()-H.month()),X=H.clone().add(Z,b),te=re-X<0,U=H.clone().add(Z+(te?-1:1),b);return+(-(Z+(re-X)/(te?X-U:U-X))||0)},"t"),a:i(function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},"a"),p:i(function(W){return{M:b,y:T,w:m,d,D:C,h:f,m:h,s:l,ms:s,Q:v}[W]||String(W||"").toLowerCase().replace(/s$/,"")},"p"),u:i(function(W){return W===void 0},"u")},N="en",B={};B[N]=L;var O="$isDayjsObject",P=i(function(W){return W instanceof Q||!(!W||!W[O])},"S"),$=i(function W(H,re,Z){var X;if(!H)return N;if(typeof H=="string"){var te=H.toLowerCase();B[te]&&(X=te),re&&(B[te]=re,X=te);var U=H.split("-");if(!X&&U.length>1)return W(U[0])}else{var ne=H.name;B[ne]=H,X=ne}return!Z&&X&&(N=X),X||!Z&&N},"t"),V=i(function(W,H){if(P(W))return W.clone();var re=typeof H=="object"?H:{};return re.date=W,re.args=arguments,new Q(re)},"O"),Y=I;Y.l=$,Y.i=P,Y.w=function(W,H){return V(W,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var Q=(function(){function W(re){this.$L=$(re.locale,null,!0),this.parse(re),this.$x=this.$x||re.x||{},this[O]=!0}i(W,"M");var H=W.prototype;return H.parse=function(re){this.$d=(function(Z){var X=Z.date,te=Z.utc;if(X===null)return new Date(NaN);if(Y.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var U=X.match(S);if(U){var ne=U[2]-1||0,se=(U[7]||"0").substring(0,3);return te?new Date(Date.UTC(U[1],ne,U[3]||1,U[4]||0,U[5]||0,U[6]||0,se)):new Date(U[1],ne,U[3]||1,U[4]||0,U[5]||0,U[6]||0,se)}}return new Date(X)})(re),this.init()},H.init=function(){var re=this.$d;this.$y=re.getFullYear(),this.$M=re.getMonth(),this.$D=re.getDate(),this.$W=re.getDay(),this.$H=re.getHours(),this.$m=re.getMinutes(),this.$s=re.getSeconds(),this.$ms=re.getMilliseconds()},H.$utils=function(){return Y},H.isValid=function(){return this.$d.toString()!==E},H.isSame=function(re,Z){var X=V(re);return this.startOf(Z)<=X&&X<=this.endOf(Z)},H.isAfter=function(re,Z){return V(re)<this.startOf(Z)},H.isBefore=function(re,Z){return this.endOf(Z)<V(re)},H.$g=function(re,Z,X){return Y.u(re)?this[Z]:this.set(X,re)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(re,Z){var X=this,te=!!Y.u(Z)||Z,U=Y.p(re),ne=i(function(ve,Ie){var De=Y.w(X.$u?Date.UTC(X.$y,Ie,ve):new Date(X.$y,Ie,ve),X);return te?De:De.endOf(d)},"l"),se=i(function(ve,Ie){return Y.w(X.toDate()[ve].apply(X.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(Ie)),X)},"$"),he=this.$W,le=this.$M,pe=this.$D,ge="set"+(this.$u?"UTC":"");switch(U){case T:return te?ne(1,0):ne(31,11);case b:return te?ne(1,le):ne(0,le+1);case m:var we=this.$locale().weekStart||0,Ae=(he<we?he+7:he)-we;return ne(te?pe-Ae:pe+(6-Ae),le);case d:case C:return se(ge+"Hours",0);case f:return se(ge+"Minutes",1);case h:return se(ge+"Seconds",2);case l:return se(ge+"Milliseconds",3);default:return this.clone()}},H.endOf=function(re){return this.startOf(re,!1)},H.$set=function(re,Z){var X,te=Y.p(re),U="set"+(this.$u?"UTC":""),ne=(X={},X[d]=U+"Date",X[C]=U+"Date",X[b]=U+"Month",X[T]=U+"FullYear",X[f]=U+"Hours",X[h]=U+"Minutes",X[l]=U+"Seconds",X[s]=U+"Milliseconds",X)[te],se=te===d?this.$D+(Z-this.$W):Z;if(te===b||te===T){var he=this.clone().set(C,1);he.$d[ne](se),he.init(),this.$d=he.set(C,Math.min(this.$D,he.daysInMonth())).$d}else ne&&this.$d[ne](se);return this.init(),this},H.set=function(re,Z){return this.clone().$set(re,Z)},H.get=function(re){return this[Y.p(re)]()},H.add=function(re,Z){var X,te=this;re=Number(re);var U=Y.p(Z),ne=i(function(le){var pe=V(te);return Y.w(pe.date(pe.date()+Math.round(le*re)),te)},"y");if(U===b)return this.set(b,this.$M+re);if(U===T)return this.set(T,this.$y+re);if(U===d)return ne(1);if(U===m)return ne(7);var se=(X={},X[h]=t,X[f]=a,X[l]=r,X)[U]||1,he=this.$d.getTime()+re*se;return Y.w(he,this)},H.subtract=function(re,Z){return this.add(-1*re,Z)},H.format=function(re){var Z=this,X=this.$locale();if(!this.isValid())return X.invalidDate||E;var te=re||"YYYY-MM-DDTHH:mm:ssZ",U=Y.z(this),ne=this.$H,se=this.$m,he=this.$M,le=X.weekdays,pe=X.months,ge=X.meridiem,we=i(function(Ie,De,Be,Fe){return Ie&&(Ie[De]||Ie(Z,te))||Be[De].slice(0,Fe)},"h"),Ae=i(function(Ie){return Y.s(ne%12||12,Ie,"0")},"d"),ve=ge||function(Ie,De,Be){var Fe=Ie<12?"AM":"PM";return Be?Fe.toLowerCase():Fe};return te.replace(R,(function(Ie,De){return De||(function(Be){switch(Be){case"YY":return String(Z.$y).slice(-2);case"YYYY":return Y.s(Z.$y,4,"0");case"M":return he+1;case"MM":return Y.s(he+1,2,"0");case"MMM":return we(X.monthsShort,he,pe,3);case"MMMM":return we(pe,he);case"D":return Z.$D;case"DD":return Y.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return we(X.weekdaysMin,Z.$W,le,2);case"ddd":return we(X.weekdaysShort,Z.$W,le,3);case"dddd":return le[Z.$W];case"H":return String(ne);case"HH":return Y.s(ne,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return ve(ne,se,!0);case"A":return ve(ne,se,!1);case"m":return String(se);case"mm":return Y.s(se,2,"0");case"s":return String(Z.$s);case"ss":return Y.s(Z.$s,2,"0");case"SSS":return Y.s(Z.$ms,3,"0");case"Z":return U}return null})(Ie)||U.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(re,Z,X){var te,U=this,ne=Y.p(Z),se=V(re),he=(se.utcOffset()-this.utcOffset())*t,le=this-se,pe=i(function(){return Y.m(U,se)},"D");switch(ne){case T:te=pe()/12;break;case b:te=pe();break;case v:te=pe()/3;break;case m:te=(le-he)/6048e5;break;case d:te=(le-he)/864e5;break;case f:te=le/a;break;case h:te=le/t;break;case l:te=le/r;break;default:te=le}return X?te:Y.a(te)},H.daysInMonth=function(){return this.endOf(b).$D},H.$locale=function(){return B[this.$L]},H.locale=function(re,Z){if(!re)return this.$L;var X=this.clone(),te=$(re,Z,!0);return te&&(X.$L=te),X},H.clone=function(){return Y.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},W})(),q=Q.prototype;return V.prototype=q,[["$ms",s],["$s",l],["$m",h],["$H",f],["$W",d],["$M",b],["$y",T],["$D",C]].forEach((function(W){q[W[1]]=function(H){return this.$g(H,W[0],W[1])}})),V.extend=function(W,H){return W.$i||(W(H,Q,V),W.$i=!0),V},V.locale=$,V.isDayjs=P,V.unix=function(W){return V(1e3*W)},V.en=B[N],V.Ls=B,V.p={},V}))});var Qar,cA,Pe,Fee,DT,Yn=ae(()=>{"use strict";Qar=e2(hbe(),1),cA={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Pe={trace:i((...r)=>{},"trace"),debug:i((...r)=>{},"debug"),info:i((...r)=>{},"info"),warn:i((...r)=>{},"warn"),error:i((...r)=>{},"error"),fatal:i((...r)=>{},"fatal")},Fee=i(function(r="fatal"){let t=cA.fatal;typeof r=="string"?r.toLowerCase()in cA&&(t=cA[r]):typeof r=="number"&&(t=r),Pe.trace=()=>{},Pe.debug=()=>{},Pe.info=()=>{},Pe.warn=()=>{},Pe.error=()=>{},Pe.fatal=()=>{},t<=cA.fatal&&(Pe.fatal=console.error?console.error.bind(console,DT("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",DT("FATAL"))),t<=cA.error&&(Pe.error=console.error?console.error.bind(console,DT("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",DT("ERROR"))),t<=cA.warn&&(Pe.warn=console.warn?console.warn.bind(console,DT("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",DT("WARN"))),t<=cA.info&&(Pe.info=console.info?console.info.bind(console,DT("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",DT("INFO"))),t<=cA.debug&&(Pe.debug=console.debug?console.debug.bind(console,DT("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",DT("DEBUG"))),t<=cA.trace&&(Pe.trace=console.debug?console.debug.bind(console,DT("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",DT("TRACE")))},"setLogLevel"),DT=i(r=>`%c${(0,Qar.default)().format("ss.SSS")} : ${r} : `,"format")});var fbe,Zar,esr=ae(()=>{"use strict";fbe={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i(r=>r>=255?255:r<0?0:r,"r"),g:i(r=>r>=255?255:r<0?0:r,"g"),b:i(r=>r>=255?255:r<0?0:r,"b"),h:i(r=>r%360,"h"),s:i(r=>r>=100?100:r<0?0:r,"s"),l:i(r=>r>=100?100:r<0?0:r,"l"),a:i(r=>r>=1?1:r<0?0:r,"a")},toLinear:i(r=>{let t=r/255;return r>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},"toLinear"),hue2rgb:i((r,t,a)=>(a<0&&(a+=1),a>1&&(a-=1),a<.16666666666666666?r+(t-r)*6*a:a<.5?t:a<.6666666666666666?r+(t-r)*(.6666666666666666-a)*6:r),"hue2rgb"),hsl2rgb:i(({h:r,s:t,l:a},s)=>{if(!t)return a*2.55;r/=360,t/=100,a/=100;let l=a<.5?a*(1+t):a+t-a*t,h=2*a-l;switch(s){case"r":return fbe.hue2rgb(h,l,r+.3333333333333333)*255;case"g":return fbe.hue2rgb(h,l,r)*255;case"b":return fbe.hue2rgb(h,l,r-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:i(({r,g:t,b:a},s)=>{r/=255,t/=255,a/=255;let l=Math.max(r,t,a),h=Math.min(r,t,a),f=(l+h)/2;if(s==="l")return f*100;if(l===h)return 0;let d=l-h,m=f>.5?d/(2-l-h):d/(l+h);if(s==="s")return m*100;switch(l){case r:return((t-a)/d+(t<a?6:0))*60;case t:return((a-r)/d+2)*60;case a:return((r-t)/d+4)*60;default:return-1}},"rgb2hsl")},Zar=fbe});var YSn,tsr,rsr=ae(()=>{"use strict";YSn={clamp:i((r,t,a)=>t>a?Math.min(t,Math.max(a,r)):Math.min(a,Math.max(t,r)),"clamp"),round:i(r=>Math.round(r*1e10)/1e10,"round")},tsr=YSn});var XSn,nsr,isr=ae(()=>{"use strict";XSn={dec2hex:i(r=>{let t=Math.round(r).toString(16);return t.length>1?t:`0${t}`},"dec2hex")},nsr=XSn});var KSn,_s,GE=ae(()=>{"use strict";esr();rsr();isr();KSn={channel:Zar,lang:tsr,unit:nsr},_s=KSn});var uA,w0,$ee=ae(()=>{"use strict";GE();uA={};for(let r=0;r<=255;r++)uA[r]=_s.unit.dec2hex(r);w0={ALL:0,RGB:1,HSL:2}});var cHe,asr,ssr=ae(()=>{"use strict";$ee();cHe=class{static{i(this,"Type")}constructor(){this.type=w0.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=w0.ALL}is(t){return this.type===t}},asr=cHe});var uHe,osr,lsr=ae(()=>{"use strict";GE();ssr();$ee();uHe=class{static{i(this,"Channels")}constructor(t,a){this.color=a,this.changed=!1,this.data=t,this.type=new asr}set(t,a){return this.color=a,this.changed=!1,this.data=t,this.type.type=w0.ALL,this}_ensureHSL(){let t=this.data,{h:a,s,l}=t;a===void 0&&(t.h=_s.channel.rgb2hsl(t,"h")),s===void 0&&(t.s=_s.channel.rgb2hsl(t,"s")),l===void 0&&(t.l=_s.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:a,g:s,b:l}=t;a===void 0&&(t.r=_s.channel.hsl2rgb(t,"r")),s===void 0&&(t.g=_s.channel.hsl2rgb(t,"g")),l===void 0&&(t.b=_s.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,a=t.r;return!this.type.is(w0.HSL)&&a!==void 0?a:(this._ensureHSL(),_s.channel.hsl2rgb(t,"r"))}get g(){let t=this.data,a=t.g;return!this.type.is(w0.HSL)&&a!==void 0?a:(this._ensureHSL(),_s.channel.hsl2rgb(t,"g"))}get b(){let t=this.data,a=t.b;return!this.type.is(w0.HSL)&&a!==void 0?a:(this._ensureHSL(),_s.channel.hsl2rgb(t,"b"))}get h(){let t=this.data,a=t.h;return!this.type.is(w0.RGB)&&a!==void 0?a:(this._ensureRGB(),_s.channel.rgb2hsl(t,"h"))}get s(){let t=this.data,a=t.s;return!this.type.is(w0.RGB)&&a!==void 0?a:(this._ensureRGB(),_s.channel.rgb2hsl(t,"s"))}get l(){let t=this.data,a=t.l;return!this.type.is(w0.RGB)&&a!==void 0?a:(this._ensureRGB(),_s.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(w0.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(w0.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(w0.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(w0.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(w0.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(w0.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}},osr=uHe});var JSn,_L,Gee=ae(()=>{"use strict";lsr();JSn=new osr({r:0,g:0,b:0,a:0},"transparent"),_L=JSn});var csr,KN,hHe=ae(()=>{"use strict";Gee();$ee();csr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i(r=>{if(r.charCodeAt(0)!==35)return;let t=r.match(csr.re);if(!t)return;let a=t[1],s=parseInt(a,16),l=a.length,h=l%4===0,f=l>4,d=f?1:17,m=f?8:4,b=h?0:-1,v=f?255:15;return _L.set({r:(s>>m*(b+3)&v)*d,g:(s>>m*(b+2)&v)*d,b:(s>>m*(b+1)&v)*d,a:h?(s&v)*d/255:1},r)},"parse"),stringify:i(r=>{let{r:t,g:a,b:s,a:l}=r;return l<1?`#${uA[Math.round(t)]}${uA[Math.round(a)]}${uA[Math.round(s)]}${uA[Math.round(l*255)]}`:`#${uA[Math.round(t)]}${uA[Math.round(a)]}${uA[Math.round(s)]}`},"stringify")},KN=csr});var dbe,jee,usr=ae(()=>{"use strict";GE();Gee();dbe={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:i(r=>{let t=r.match(dbe.hueRe);if(t){let[,a,s]=t;switch(s){case"grad":return _s.channel.clamp.h(parseFloat(a)*.9);case"rad":return _s.channel.clamp.h(parseFloat(a)*180/Math.PI);case"turn":return _s.channel.clamp.h(parseFloat(a)*360)}}return _s.channel.clamp.h(parseFloat(r))},"_hue2deg"),parse:i(r=>{let t=r.charCodeAt(0);if(t!==104&&t!==72)return;let a=r.match(dbe.re);if(!a)return;let[,s,l,h,f,d]=a;return _L.set({h:dbe._hue2deg(s),s:_s.channel.clamp.s(parseFloat(l)),l:_s.channel.clamp.l(parseFloat(h)),a:f?_s.channel.clamp.a(d?parseFloat(f)/100:parseFloat(f)):1},r)},"parse"),stringify:i(r=>{let{h:t,s:a,l:s,a:l}=r;return l<1?`hsla(${_s.lang.round(t)}, ${_s.lang.round(a)}%, ${_s.lang.round(s)}%, ${l})`:`hsl(${_s.lang.round(t)}, ${_s.lang.round(a)}%, ${_s.lang.round(s)}%)`},"stringify")},jee=dbe});var pbe,fHe,hsr=ae(()=>{"use strict";hHe();pbe={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:i(r=>{r=r.toLowerCase();let t=pbe.colors[r];if(t)return KN.parse(t)},"parse"),stringify:i(r=>{let t=KN.stringify(r);for(let a in pbe.colors)if(pbe.colors[a]===t)return a},"stringify")},fHe=pbe});var fsr,zee,dsr=ae(()=>{"use strict";GE();Gee();fsr={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:i(r=>{let t=r.charCodeAt(0);if(t!==114&&t!==82)return;let a=r.match(fsr.re);if(!a)return;let[,s,l,h,f,d,m,b,v]=a;return _L.set({r:_s.channel.clamp.r(l?parseFloat(s)*2.55:parseFloat(s)),g:_s.channel.clamp.g(f?parseFloat(h)*2.55:parseFloat(h)),b:_s.channel.clamp.b(m?parseFloat(d)*2.55:parseFloat(d)),a:b?_s.channel.clamp.a(v?parseFloat(b)/100:parseFloat(b)):1},r)},"parse"),stringify:i(r=>{let{r:t,g:a,b:s,a:l}=r;return l<1?`rgba(${_s.lang.round(t)}, ${_s.lang.round(a)}, ${_s.lang.round(s)}, ${_s.lang.round(l)})`:`rgb(${_s.lang.round(t)}, ${_s.lang.round(a)}, ${_s.lang.round(s)})`},"stringify")},zee=fsr});var QSn,x0,hA=ae(()=>{"use strict";hHe();usr();hsr();dsr();$ee();QSn={format:{keyword:fHe,hex:KN,rgb:zee,rgba:zee,hsl:jee,hsla:jee},parse:i(r=>{if(typeof r!="string")return r;let t=KN.parse(r)||zee.parse(r)||jee.parse(r)||fHe.parse(r);if(t)return t;throw new Error(`Unsupported color format: "${r}"`)},"parse"),stringify:i(r=>!r.changed&&r.color?r.color:r.type.is(w0.HSL)||r.data.r===void 0?jee.stringify(r):r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b)?zee.stringify(r):KN.stringify(r),"stringify")},x0=QSn});var ZSn,gbe,dHe=ae(()=>{"use strict";GE();hA();ZSn=i((r,t)=>{let a=x0.parse(r);for(let s in t)a[s]=_s.channel.clamp[s](t[s]);return x0.stringify(a)},"change"),gbe=ZSn});var e5n,_d,pHe=ae(()=>{"use strict";GE();Gee();hA();dHe();e5n=i((r,t,a=0,s=1)=>{if(typeof r!="number")return gbe(r,{a:t});let l=_L.set({r:_s.channel.clamp.r(r),g:_s.channel.clamp.g(t),b:_s.channel.clamp.b(a),a:_s.channel.clamp.a(s)});return x0.stringify(l)},"rgba"),_d=e5n});var t5n,m4,psr=ae(()=>{"use strict";GE();hA();t5n=i((r,t)=>_s.lang.round(x0.parse(r)[t]),"channel"),m4=t5n});var r5n,gsr,msr=ae(()=>{"use strict";GE();hA();r5n=i(r=>{let{r:t,g:a,b:s}=x0.parse(r),l=.2126*_s.channel.toLinear(t)+.7152*_s.channel.toLinear(a)+.0722*_s.channel.toLinear(s);return _s.lang.round(l)},"luminance"),gsr=r5n});var n5n,ysr,bsr=ae(()=>{"use strict";msr();n5n=i(r=>gsr(r)>=.5,"isLight"),ysr=n5n});var i5n,Dc,vsr=ae(()=>{"use strict";bsr();i5n=i(r=>!ysr(r),"isDark"),Dc=i5n});var a5n,dz,mbe=ae(()=>{"use strict";GE();hA();a5n=i((r,t,a)=>{let s=x0.parse(r),l=s[t],h=_s.channel.clamp[t](l+a);return l!==h&&(s[t]=h),x0.stringify(s)},"adjustChannel"),dz=a5n});var s5n,Br,wsr=ae(()=>{"use strict";mbe();s5n=i((r,t)=>dz(r,"l",t),"lighten"),Br=s5n});var o5n,$r,xsr=ae(()=>{"use strict";mbe();o5n=i((r,t)=>dz(r,"l",-t),"darken"),$r=o5n});var l5n,ybe,Tsr=ae(()=>{"use strict";mbe();l5n=i((r,t)=>dz(r,"a",-t),"transparentize"),ybe=l5n});var c5n,et,ksr=ae(()=>{"use strict";hA();dHe();c5n=i((r,t)=>{let a=x0.parse(r),s={};for(let l in t)t[l]&&(s[l]=a[l]+t[l]);return gbe(r,s)},"adjust"),et=c5n});var u5n,Csr,Esr=ae(()=>{"use strict";hA();pHe();u5n=i((r,t,a=50)=>{let{r:s,g:l,b:h,a:f}=x0.parse(r),{r:d,g:m,b,a:v}=x0.parse(t),T=a/100,C=T*2-1,E=f-v,R=((C*E===-1?C:(C+E)/(1+C*E))+1)/2,L=1-R,_=s*R+d*L,I=l*R+m*L,N=h*R+b*L,B=f*T+v*(1-T);return _d(_,I,N,B)},"mix"),Csr=u5n});var h5n,kr,Ssr=ae(()=>{"use strict";hA();Esr();h5n=i((r,t=100)=>{let a=x0.parse(r);return a.r=255-a.r,a.g=255-a.g,a.b=255-a.b,Csr(a,r,t)},"invert"),kr=h5n});var Asr=ae(()=>{"use strict";pHe();psr();vsr();wsr();xsr();Tsr();ksr();Ssr()});var hp=ae(()=>{"use strict";Asr()});var _g,Dg,y4=ae(()=>{"use strict";_g="#ffffff",Dg="#f2f2f2"});var vs,Rsr,fp,IT=ae(()=>{"use strict";hp();vs=i((r,t)=>t?et(r,{s:-40,l:10}):et(r,{s:-40,l:-10}),"mkBorder"),Rsr=i(r=>typeof r=="object"&&r!==null&&!Array.isArray(r),"isPlainObject"),fp=i((r,t)=>Rsr(r)&&Rsr(t)?{...r,...t}:t,"applyOverride")});var gHe,Lsr,_sr=ae(()=>{"use strict";hp();y4();IT();gHe=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||et(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||et(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vs(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vs(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||kr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||kr(this.tertiaryColor),this.lineColor=this.lineColor||kr(this.background),this.arrowheadColor=this.arrowheadColor||kr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||kr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Br(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||$r(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||$r(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Br(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Br(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||et(this.primaryColor,{h:30}),this.cScale4=this.cScale4||et(this.primaryColor,{h:60}),this.cScale5=this.cScale5||et(this.primaryColor,{h:90}),this.cScale6=this.cScale6||et(this.primaryColor,{h:120}),this.cScale7=this.cScale7||et(this.primaryColor,{h:150}),this.cScale8=this.cScale8||et(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||et(this.primaryColor,{h:270}),this.cScale10=this.cScale10||et(this.primaryColor,{h:300}),this.cScale11=this.cScale11||et(this.primaryColor,{h:330}),this.darkMode)for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=$r(this["cScale"+a],75);else for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=$r(this["cScale"+a],25);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleInv"+a]=this["cScaleInv"+a]||kr(this["cScale"+a]);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this.darkMode?this["cScalePeer"+a]=this["cScalePeer"+a]||Br(this["cScale"+a],10):this["cScalePeer"+a]=this["cScalePeer"+a]||$r(this["cScale"+a],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleLabel"+a]=this["cScaleLabel"+a]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let a=0;a<5;a++)this["surface"+a]=this["surface"+a]||et(this.mainBkg,{h:180,s:-15,l:t*(5+a*3)}),this["surfacePeer"+a]=this["surfacePeer"+a]||et(this.mainBkg,{h:180,s:-15,l:t*(8+a*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||et(this.primaryColor,{h:64}),this.fillType3=this.fillType3||et(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||et(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||et(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||et(this.primaryColor,{h:128}),this.fillType7=this.fillType7||et(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||et(this.primaryColor,{l:-10}),this.pie5=this.pie5||et(this.secondaryColor,{l:-10}),this.pie6=this.pie6||et(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||et(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||et(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||et(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||et(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||et(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||et(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??et(this.primaryColor,{l:-30}),this.venn2=this.venn2??et(this.secondaryColor,{l:-30}),this.venn3=this.venn3??et(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??et(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??et(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??et(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??et(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??et(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||et(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||et(this.primaryColor,{h:-30}),this.git4=this.git4||et(this.primaryColor,{h:-60}),this.git5=this.git5||et(this.primaryColor,{h:-90}),this.git6=this.git6||et(this.primaryColor,{h:60}),this.git7=this.git7||et(this.primaryColor,{h:120}),this.darkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])}),Object.hasOwn(t,"nodeBorder")&&!Object.hasOwn(t,"useGradient")&&(this.useGradient=!1)}},Lsr=i(r=>{let t=new gHe;return t.calculate(r),t},"getThemeVariables")});var mHe,Dsr,Isr=ae(()=>{"use strict";hp();IT();mHe=class{static{i(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Br(this.primaryColor,16),this.tertiaryColor=et(this.primaryColor,{h:-160}),this.primaryBorderColor=kr(this.background),this.secondaryBorderColor=vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vs(this.tertiaryColor,this.darkMode),this.primaryTextColor=kr(this.primaryColor),this.secondaryTextColor=kr(this.secondaryColor),this.tertiaryTextColor=kr(this.tertiaryColor),this.lineColor=kr(this.background),this.textColor=kr(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Br(kr("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=_d(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=$r("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=$r(this.sectionBkgColor,10),this.taskBorderColor=_d(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=_d(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Br(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||$r(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=Br(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Br(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=Br(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=kr(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=et(this.primaryColor,{h:64}),this.fillType3=et(this.secondaryColor,{h:64}),this.fillType4=et(this.primaryColor,{h:-64}),this.fillType5=et(this.secondaryColor,{h:-64}),this.fillType6=et(this.primaryColor,{h:128}),this.fillType7=et(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||et(this.primaryColor,{h:30}),this.cScale4=this.cScale4||et(this.primaryColor,{h:60}),this.cScale5=this.cScale5||et(this.primaryColor,{h:90}),this.cScale6=this.cScale6||et(this.primaryColor,{h:120}),this.cScale7=this.cScale7||et(this.primaryColor,{h:150}),this.cScale8=this.cScale8||et(this.primaryColor,{h:210}),this.cScale9=this.cScale9||et(this.primaryColor,{h:270}),this.cScale10=this.cScale10||et(this.primaryColor,{h:300}),this.cScale11=this.cScale11||et(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||kr(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||Br(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||et(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||et(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??Br(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||et(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Br(this.secondaryColor,20),this.git1=Br(this.pie2||this.secondaryColor,20),this.git2=Br(this.pie3||this.tertiaryColor,20),this.git3=Br(this.pie4||et(this.primaryColor,{h:-30}),20),this.git4=Br(this.pie5||et(this.primaryColor,{h:-60}),20),this.git5=Br(this.pie6||et(this.primaryColor,{h:-90}),10),this.git6=Br(this.pie7||et(this.primaryColor,{h:60}),10),this.git7=Br(this.pie8||et(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||kr(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||kr(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||Br("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||Br("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||Br("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||Br("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||Br(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||Br(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Br(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Br(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},Dsr=i(r=>{let t=new mHe;return t.calculate(r),t},"getThemeVariables")});var yHe,hm,jE=ae(()=>{"use strict";hp();IT();y4();yHe=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=et(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=et(this.primaryColor,{h:-160}),this.primaryBorderColor=vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vs(this.tertiaryColor,this.darkMode),this.primaryTextColor=kr(this.primaryColor),this.secondaryTextColor=kr(this.secondaryColor),this.tertiaryTextColor=kr(this.tertiaryColor),this.lineColor=kr(this.background),this.textColor=kr(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=vs(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=_d(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||et(this.primaryColor,{h:30}),this.cScale4=this.cScale4||et(this.primaryColor,{h:60}),this.cScale5=this.cScale5||et(this.primaryColor,{h:90}),this.cScale6=this.cScale6||et(this.primaryColor,{h:120}),this.cScale7=this.cScale7||et(this.primaryColor,{h:150}),this.cScale8=this.cScale8||et(this.primaryColor,{h:210}),this.cScale9=this.cScale9||et(this.primaryColor,{h:270}),this.cScale10=this.cScale10||et(this.primaryColor,{h:300}),this.cScale11=this.cScale11||et(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||$r(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||$r(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=$r(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||$r(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||et(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||et(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||et(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||kr(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||kr(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Br(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Br(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=et(this.primaryColor,{h:64}),this.fillType3=et(this.secondaryColor,{h:64}),this.fillType4=et(this.primaryColor,{h:-64}),this.fillType5=et(this.secondaryColor,{h:-64}),this.fillType6=et(this.primaryColor,{h:128}),this.fillType7=et(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||et(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||et(this.primaryColor,{l:-10}),this.pie5=this.pie5||et(this.secondaryColor,{l:-30}),this.pie6=this.pie6||et(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||et(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||et(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||et(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||et(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||et(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||et(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??et(this.primaryColor,{l:-30}),this.venn2=this.venn2??et(this.secondaryColor,{l:-30}),this.venn3=this.venn3??et(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??et(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??et(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??et(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??et(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??et(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||et(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||et(this.primaryColor,{h:-30}),this.git4=this.git4||et(this.primaryColor,{h:-60}),this.git5=this.git5||et(this.primaryColor,{h:-90}),this.git6=this.git6||et(this.primaryColor,{h:60}),this.git7=this.git7||et(this.primaryColor,{h:120}),this.darkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||$r(kr(this.git0),25),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||kr(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||kr(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(Object.keys(this).forEach(s=>{this[s]==="calculated"&&(this[s]=void 0)}),typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},hm=i(r=>{let t=new yHe;return t.calculate(r),t},"getThemeVariables")});var bHe,Msr,Nsr=ae(()=>{"use strict";hp();y4();IT();bHe=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Br("#cde498",10),this.primaryBorderColor=vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vs(this.tertiaryColor,this.darkMode),this.primaryTextColor=kr(this.primaryColor),this.secondaryTextColor=kr(this.secondaryColor),this.tertiaryTextColor=kr(this.primaryColor),this.lineColor=kr(this.background),this.textColor=kr(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=$r(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||et(this.primaryColor,{h:30}),this.cScale4=this.cScale4||et(this.primaryColor,{h:60}),this.cScale5=this.cScale5||et(this.primaryColor,{h:90}),this.cScale6=this.cScale6||et(this.primaryColor,{h:120}),this.cScale7=this.cScale7||et(this.primaryColor,{h:150}),this.cScale8=this.cScale8||et(this.primaryColor,{h:210}),this.cScale9=this.cScale9||et(this.primaryColor,{h:270}),this.cScale10=this.cScale10||et(this.primaryColor,{h:300}),this.cScale11=this.cScale11||et(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||$r(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||$r(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=$r(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||$r(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||et(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||et(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||et(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Br(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Br(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=et(this.primaryColor,{h:64}),this.fillType3=et(this.secondaryColor,{h:64}),this.fillType4=et(this.primaryColor,{h:-64}),this.fillType5=et(this.secondaryColor,{h:-64}),this.fillType6=et(this.primaryColor,{h:128}),this.fillType7=et(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||et(this.primaryColor,{l:-30}),this.pie5=this.pie5||et(this.secondaryColor,{l:-30}),this.pie6=this.pie6||et(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||et(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||et(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||et(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||et(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||et(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||et(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??et(this.primaryColor,{l:-30}),this.venn2=this.venn2??et(this.secondaryColor,{l:-30}),this.venn3=this.venn3??et(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??et(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??et(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??et(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??et(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??et(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||et(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||et(this.primaryColor,{h:-30}),this.git4=this.git4||et(this.primaryColor,{h:-60}),this.git5=this.git5||et(this.primaryColor,{h:-90}),this.git6=this.git6||et(this.primaryColor,{h:60}),this.git7=this.git7||et(this.primaryColor,{h:120}),this.darkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||kr(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||kr(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},Msr=i(r=>{let t=new bHe;return t.calculate(r),t},"getThemeVariables")});var vHe,Osr,Psr=ae(()=>{"use strict";hp();IT();y4();vHe=class{static{i(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Br(this.contrast,55),this.background="#ffffff",this.tertiaryColor=et(this.primaryColor,{h:-160}),this.primaryBorderColor=vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vs(this.tertiaryColor,this.darkMode),this.primaryTextColor=kr(this.primaryColor),this.secondaryTextColor=kr(this.secondaryColor),this.tertiaryTextColor=kr(this.tertiaryColor),this.lineColor=kr(this.background),this.textColor=kr(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||Br(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=Br(this.contrast,55),this.border2=this.contrast,this.actorBorder=Br(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||kr(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||Br(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||$r(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||et(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||et(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.sectionBkgColor=Br(this.contrast,30),this.sectionBkgColor2=Br(this.contrast,30),this.taskBorderColor=$r(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Br(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=$r(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=et(this.primaryColor,{h:64}),this.fillType3=et(this.secondaryColor,{h:64}),this.fillType4=et(this.primaryColor,{h:-64}),this.fillType5=et(this.secondaryColor,{h:-64}),this.fillType6=et(this.primaryColor,{h:128}),this.fillType7=et(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||et(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=$r(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||et(this.primaryColor,{h:-30}),this.git4=this.pie5||et(this.primaryColor,{h:-60}),this.git5=this.pie6||et(this.primaryColor,{h:-90}),this.git6=this.pie7||et(this.primaryColor,{h:60}),this.git7=this.pie8||et(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},Osr=i(r=>{let t=new vHe;return t.calculate(r),t},"getThemeVariables")});var wHe,Bsr,Fsr=ae(()=>{"use strict";hp();IT();y4();wHe=class{static{i(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=vs(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||et(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||et(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vs(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vs(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||kr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||kr(this.tertiaryColor),this.lineColor=this.lineColor||kr(this.background),this.arrowheadColor=this.arrowheadColor||kr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||kr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(Dc(this.background)?Br(this.background,4):$r(this.background,4));let t="#ECECFE",a="#E9E9F1",s=et(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||s,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||a,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Br(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||a,this.cScale2=this.cScale2||s,this.cScale3=this.cScale3||et(t,{h:30}),this.cScale4=this.cScale4||et(t,{h:60}),this.cScale5=this.cScale5||et(t,{h:90}),this.cScale6=this.cScale6||et(t,{h:120}),this.cScale7=this.cScale7||et(t,{h:150}),this.cScale8=this.cScale8||et(t,{h:210,l:150}),this.cScale9=this.cScale9||et(t,{h:270}),this.cScale10=this.cScale10||et(t,{h:300}),this.cScale11=this.cScale11||et(t,{h:330}),this.darkMode)for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=$r(this["cScale"+h],75);else for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=$r(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||kr(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||Br(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||$r(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;let l=this.darkMode?-4:-1;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||et(this.mainBkg,{h:180,s:-15,l:l*(5+h*3)}),this["surfacePeer"+h]=this["surfacePeer"+h]||et(this.mainBkg,{h:180,s:-15,l:l*(8+h*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||a,this.fillType2=this.fillType2||et(t,{h:64}),this.fillType3=this.fillType3||et(a,{h:64}),this.fillType4=this.fillType4||et(t,{h:-64}),this.fillType5=this.fillType5||et(a,{h:-64}),this.fillType6=this.fillType6||et(t,{h:128}),this.fillType7=this.fillType7||et(a,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||a,this.pie3=this.pie3||s,this.pie4=this.pie4||et(t,{l:-10}),this.pie5=this.pie5||et(a,{l:-10}),this.pie6=this.pie6||et(s,{l:-10}),this.pie7=this.pie7||et(t,{h:60,l:-10}),this.pie8=this.pie8||et(t,{h:-60,l:-10}),this.pie9=this.pie9||et(t,{h:120,l:0}),this.pie10=this.pie10||et(t,{h:60,l:-20}),this.pie11=this.pie11||et(t,{h:-60,l:-20}),this.pie12=this.pie12||et(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||et(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||a,this.git2=this.git2||s,this.git3=this.git3||et(t,{h:-30}),this.git4=this.git4||et(t,{h:-60}),this.git5=this.git5||et(t,{h:-90}),this.git6=this.git6||et(t,{h:60}),this.git7=this.git7||et(t,{h:120}),this.darkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},Bsr=i(r=>{let t=new wHe;return t.calculate(r),t},"getThemeVariables")});var xHe,$sr,Gsr=ae(()=>{"use strict";hp();IT();y4();xHe=class{static{i(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Br(this.primaryColor,16),this.tertiaryColor=et(this.primaryColor,{h:-160}),this.primaryBorderColor=kr(this.background),this.secondaryBorderColor=vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vs(this.tertiaryColor,this.darkMode),this.primaryTextColor=kr(this.primaryColor),this.secondaryTextColor=kr(this.secondaryColor),this.tertiaryTextColor=kr(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Br(kr("#323D47"),10),this.border1="#ccc",this.border2=_d(255,255,255,.25),this.arrowheadColor=kr(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||et(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||et(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vs(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vs(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||kr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||kr(this.tertiaryColor),this.lineColor=this.lineColor||kr(this.background),this.arrowheadColor=this.arrowheadColor||kr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?Br(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||kr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Br(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||et(this.primaryColor,{h:30}),this.cScale4=this.cScale4||et(this.primaryColor,{h:60}),this.cScale5=this.cScale5||et(this.primaryColor,{h:90}),this.cScale6=this.cScale6||et(this.primaryColor,{h:120}),this.cScale7=this.cScale7||et(this.primaryColor,{h:150}),this.cScale8=this.cScale8||et(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||et(this.primaryColor,{h:270}),this.cScale10=this.cScale10||et(this.primaryColor,{h:300}),this.cScale11=this.cScale11||et(this.primaryColor,{h:330}),this.darkMode)for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=$r(this["cScale"+a],75);else for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=$r(this["cScale"+a],25);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleInv"+a]=this["cScaleInv"+a]||kr(this["cScale"+a]);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this.darkMode?this["cScalePeer"+a]=this["cScalePeer"+a]||Br(this["cScale"+a],10):this["cScalePeer"+a]=this["cScalePeer"+a]||$r(this["cScale"+a],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleLabel"+a]=this["cScaleLabel"+a]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let a=0;a<5;a++)this["surface"+a]=this["surface"+a]||et(this.mainBkg,{h:180,s:-15,l:t*(5+a*3)}),this["surfacePeer"+a]=this["surfacePeer"+a]||et(this.mainBkg,{h:180,s:-15,l:t*(8+a*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||et(this.primaryColor,{h:64}),this.fillType3=this.fillType3||et(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||et(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||et(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||et(this.primaryColor,{h:128}),this.fillType7=this.fillType7||et(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||et(this.primaryColor,{l:-10}),this.pie5=this.pie5||et(this.secondaryColor,{l:-10}),this.pie6=this.pie6||et(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||et(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||et(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||et(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||et(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||et(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||et(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||et(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},$sr=i(r=>{let t=new xHe;return t.calculate(r),t},"getThemeVariables")});var THe,jsr,zsr=ae(()=>{"use strict";hp();IT();y4();THe=class{static{i(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=vs("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||et(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||et(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vs(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vs(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||kr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||kr(this.tertiaryColor),this.lineColor=this.lineColor||kr(this.background),this.arrowheadColor=this.arrowheadColor||kr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||kr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(Dc(this.background)?Br(this.background,4):$r(this.background,4));let t="#ECECFE",a="#E9E9F1",s=et(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||s,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||a,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Br(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=this.mainBkg;if(this.darkMode)for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=$r(this["cScale"+h],75);else for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=$r(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||kr(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||Br(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||$r(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;let l=this.darkMode?-4:-1;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||et(this.mainBkg,{h:180,s:-15,l:l*(5+h*3)}),this["surfacePeer"+h]=this["surfacePeer"+h]||et(this.mainBkg,{h:180,s:-15,l:l*(8+h*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||a,this.fillType2=this.fillType2||et(t,{h:64}),this.fillType3=this.fillType3||et(a,{h:64}),this.fillType4=this.fillType4||et(t,{h:-64}),this.fillType5=this.fillType5||et(a,{h:-64}),this.fillType6=this.fillType6||et(t,{h:128}),this.fillType7=this.fillType7||et(a,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||a,this.pie3=this.pie3||s,this.pie4=this.pie4||et(t,{l:-10}),this.pie5=this.pie5||et(a,{l:-10}),this.pie6=this.pie6||et(s,{l:-10}),this.pie7=this.pie7||et(t,{h:60,l:-10}),this.pie8=this.pie8||et(t,{h:-60,l:-10}),this.pie9=this.pie9||et(t,{h:120,l:0}),this.pie10=this.pie10||et(t,{h:60,l:-20}),this.pie11=this.pie11||et(t,{h:-60,l:-20}),this.pie12=this.pie12||et(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||et(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||a,this.git2=this.git2||s,this.git3=this.git3||et(t,{h:-30}),this.git4=this.git4||et(t,{h:-60}),this.git5=this.git5||et(t,{h:-90}),this.git6=this.git6||et(t,{h:60}),this.git7=this.git7||et(t,{h:120}),this.darkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},jsr=i(r=>{let t=new THe;return t.calculate(r),t},"getThemeVariables")});var kHe,Usr,Vsr=ae(()=>{"use strict";hp();IT();y4();kHe=class{static{i(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Br(this.primaryColor,16),this.tertiaryColor=et(this.primaryColor,{h:-160}),this.primaryBorderColor=kr(this.background),this.secondaryBorderColor=vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vs(this.tertiaryColor,this.darkMode),this.primaryTextColor=kr(this.primaryColor),this.secondaryTextColor=kr(this.secondaryColor),this.tertiaryTextColor=kr(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Br(kr("#323D47"),10),this.border1="#ccc",this.border2=_d(255,255,255,.25),this.arrowheadColor=kr(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||et(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||et(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vs(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vs(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||kr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||kr(this.tertiaryColor),this.lineColor=this.lineColor||kr(this.background),this.arrowheadColor=this.arrowheadColor||kr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?Br(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||kr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Br(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||et(this.primaryColor,{h:30}),this.cScale4=this.cScale4||et(this.primaryColor,{h:60}),this.cScale5=this.cScale5||et(this.primaryColor,{h:90}),this.cScale6=this.cScale6||et(this.primaryColor,{h:120}),this.cScale7=this.cScale7||et(this.primaryColor,{h:150}),this.cScale8=this.cScale8||et(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||et(this.primaryColor,{h:270}),this.cScale10=this.cScale10||et(this.primaryColor,{h:300}),this.cScale11=this.cScale11||et(this.primaryColor,{h:330}),this.darkMode)for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=$r(this["cScale"+a],75);else for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScale"+a]=$r(this["cScale"+a],25);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleInv"+a]=this["cScaleInv"+a]||kr(this["cScale"+a]);for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this.darkMode?this["cScalePeer"+a]=this["cScalePeer"+a]||Br(this["cScale"+a],10):this["cScalePeer"+a]=this["cScalePeer"+a]||$r(this["cScale"+a],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let a=0;a<this.THEME_COLOR_LIMIT;a++)this["cScaleLabel"+a]=this["cScaleLabel"+a]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let a=0;a<5;a++)this["surface"+a]=this["surface"+a]||et(this.mainBkg,{h:180,s:-15,l:t*(5+a*3)}),this["surfacePeer"+a]=this["surfacePeer"+a]||et(this.mainBkg,{h:180,s:-15,l:t*(8+a*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||et(this.primaryColor,{h:64}),this.fillType3=this.fillType3||et(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||et(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||et(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||et(this.primaryColor,{h:128}),this.fillType7=this.fillType7||et(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||et(this.primaryColor,{l:-10}),this.pie5=this.pie5||et(this.secondaryColor,{l:-10}),this.pie6=this.pie6||et(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||et(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||et(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||et(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||et(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||et(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||et(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||et(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||et(this.primaryColor,{h:-30}),this.git4=this.git4||et(this.primaryColor,{h:-60}),this.git5=this.git5||et(this.primaryColor,{h:-90}),this.git6=this.git6||et(this.primaryColor,{h:60}),this.git7=this.git7||et(this.primaryColor,{h:120}),this.darkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},Usr=i(r=>{let t=new kHe;return t.calculate(r),t},"getThemeVariables")});var CHe,Wsr,Hsr=ae(()=>{"use strict";hp();IT();y4();CHe=class{static{i(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=vs("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||et(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||et(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vs(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vs(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||kr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||kr(this.tertiaryColor),this.lineColor=this.lineColor||kr(this.background),this.arrowheadColor=this.arrowheadColor||kr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||kr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(Dc(this.background)?Br(this.background,4):$r(this.background,4));let t="#ECECFE",a="#E9E9F1",s=et(t,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Br(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||kr(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||Br(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||$r(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;let l=this.darkMode?-4:-1;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||et(this.mainBkg,{h:180,s:-15,l:l*(5+h*3)}),this["surfacePeer"+h]=this["surfacePeer"+h]||et(this.mainBkg,{h:180,s:-15,l:l*(8+h*3)});this.classText=this.classText||this.textColor;for(let h=0;h<8;h++)this["fillType"+h]=this["fillType"+h]||this.bkgColorArray[h];for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+(h+1)]=this["pie"+(h+1)]||this["cScale"+h];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let h=0;h<8;h++)this["venn"+(h+1)]=this["venn"+(h+1)]??this.borderColorArray[h%this.borderColorArray.length];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||et(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||a,this.git2=this.git2||s,this.git3=this.git3||et(t,{h:-30}),this.git4=this.git4||et(t,{h:-60}),this.git5=this.git5||et(t,{h:-90}),this.git6=this.git6||et(t,{h:60}),this.git7=this.git7||et(t,{h:120}),this.darkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},Wsr=i(r=>{let t=new CHe;return t.calculate(r),t},"getThemeVariables")});var EHe,qsr,Ysr=ae(()=>{"use strict";hp();IT();y4();EHe=class{static{i(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Br(this.primaryColor,16),this.tertiaryColor=et(this.primaryColor,{h:-160}),this.primaryBorderColor=kr(this.background),this.secondaryBorderColor=vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vs(this.tertiaryColor,this.darkMode),this.primaryTextColor=kr(this.primaryColor),this.secondaryTextColor=kr(this.secondaryColor),this.tertiaryTextColor=kr(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Br(kr("#323D47"),10),this.border1="#ccc",this.border2=_d(255,255,255,.25),this.arrowheadColor=kr(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||et(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||et(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vs(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vs(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vs(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vs(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||kr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||kr(this.tertiaryColor),this.lineColor=this.lineColor||kr(this.background),this.arrowheadColor=this.arrowheadColor||kr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?Br(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$r(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||kr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Br(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||kr(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||Br(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||$r(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=$r(this["cScale"+s],75);let t=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||et(this.mainBkg,{h:180,s:-15,l:t*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||et(this.mainBkg,{h:180,s:-15,l:t*(8+s*3)});this.classText=this.classText||this.textColor,["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((s,l)=>{this["fillType"+l]=this["fillType"+l]||s});for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["pie"+(s+1)]=this["pie"+(s+1)]||this["cScale"+s];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||"#28253D",this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let s=0;s<8;s++)this["venn"+(s+1)]=this["venn"+(s+1)]??this.borderColorArray[s%this.borderColorArray.length];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||et(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||et(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||et(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||et(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||et(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||et(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dc(this.quadrant1Fill)?Br(this.quadrant1Fill):$r(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$r(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||et(this.primaryColor,{h:-30}),this.git4=this.git4||et(this.primaryColor,{h:-60}),this.git5=this.git5||et(this.primaryColor,{h:-90}),this.git6=this.git6||et(this.primaryColor,{h:60}),this.git7=this.git7||et(this.primaryColor,{h:120}),this.darkMode?(this.git0=Br(this.git0,25),this.git1=Br(this.git1,25),this.git2=Br(this.git2,25),this.git3=Br(this.git3,25),this.git4=Br(this.git4,25),this.git5=Br(this.git5,25),this.git6=Br(this.git6,25),this.git7=Br(this.git7,25)):(this.git0=$r(this.git0,25),this.git1=$r(this.git1,25),this.git2=$r(this.git2,25),this.git3=$r(this.git3,25),this.git4=$r(this.git4,25),this.git5=$r(this.git5,25),this.git6=$r(this.git6,25),this.git7=$r(this.git7,25)),this.gitInv0=this.gitInv0||kr(this.git0),this.gitInv1=this.gitInv1||kr(this.git1),this.gitInv2=this.gitInv2||kr(this.git2),this.gitInv3=this.gitInv3||kr(this.git3),this.gitInv4=this.gitInv4||kr(this.git4),this.gitInv5=this.gitInv5||kr(this.git5),this.gitInv6=this.gitInv6||kr(this.git6),this.gitInv7=this.gitInv7||kr(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_g,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dg}calculate(t){if(typeof t!="object"){this.updateColors();return}let a=Object.keys(t);a.forEach(s=>{this[s]=t[s]}),this.updateColors(),a.forEach(s=>{this[s]=fp(this[s],t[s])})}},qsr=i(r=>{let t=new EHe;return t.calculate(r),t},"getThemeVariables")});var MT,vbe=ae(()=>{"use strict";_sr();Isr();jE();Nsr();Psr();Fsr();Gsr();zsr();Vsr();Hsr();Ysr();MT={base:{getThemeVariables:Lsr},dark:{getThemeVariables:Dsr},default:{getThemeVariables:hm},forest:{getThemeVariables:Msr},neutral:{getThemeVariables:Osr},neo:{getThemeVariables:Bsr},"neo-dark":{getThemeVariables:$sr},redux:{getThemeVariables:jsr},"redux-dark":{getThemeVariables:Usr},"redux-color":{getThemeVariables:Wsr},"redux-dark-color":{getThemeVariables:qsr}}});var dp,Xsr=ae(()=>{"use strict";dp={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,stepDuration:1,stepNumbers:!1,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,colorBy:"branch",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,bitOrder:"ascending",paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1}});var Ksr,Jsr,Qsr,ps,pp=ae(()=>{"use strict";vbe();Xsr();Ksr={...dp,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:MT.default.getThemeVariables(),sequence:{...dp.sequence,messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:i(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:i(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:dp.class?.theme,look:dp.class?.look,layout:dp.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...dp.gantt,tickInterval:void 0,useWidth:void 0},c4:{...dp.c4,useWidth:void 0,personFont:i(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...dp.flowchart,inheritDir:!1},external_personFont:i(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:i(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:i(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:i(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:i(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:i(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:i(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:i(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:i(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:i(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:i(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:i(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:i(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:i(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:i(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:i(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:i(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:i(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:i(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:i(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...dp.pie,useWidth:984},xyChart:{...dp.xyChart,useWidth:void 0},requirement:{...dp.requirement,useWidth:void 0},packet:{...dp.packet},eventmodeling:{...dp.eventmodeling},treeView:{...dp.treeView,useWidth:void 0},radar:{...dp.radar},usecase:{...dp.usecase},railroad:{...dp.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...dp.ishikawa},sankey:{...dp.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...dp.venn},cynefin:{...dp.cynefin}},Jsr=i((r,t="")=>Object.keys(r).reduce((a,s)=>Array.isArray(r[s])?a:typeof r[s]=="object"&&r[s]!==null?[...a,t+s,...Jsr(r[s],"")]:[...a,t+s],[]),"keyify"),Qsr=new Set(Jsr(Ksr,"")),ps=Ksr});var f5n,Zsr,eor=ae(()=>{"use strict";f5n={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},Zsr=i(r=>f5n[r]??r,"getDiagramConfigKey")});var d5n,p5n,pz,SHe,wbe=ae(()=>{"use strict";pp();Yn();d5n={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},p5n=i((r,t)=>{for(let a of Object.keys(r)){let s=r[a];(a.startsWith("__")||a.includes("proto")||a.includes("constr")||typeof s!="string"||!t.test(s))&&(Pe.debug("sanitize deleting dictionary entry:",a,s),delete r[a])}},"sanitizeDictionaryConfig"),pz=i(r=>{if(Pe.debug("sanitizeDirective called with",r),!(typeof r!="object"||r==null)){if(Array.isArray(r)){r.forEach(t=>pz(t));return}for(let t of Object.keys(r)){if(Pe.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Qsr.has(t)||r[t]==null){Pe.debug("sanitize deleting key: ",t),delete r[t];continue}if(typeof r[t]=="object"){let s=d5n[t];s?p5n(r[t],s):(Pe.debug("sanitizing object",t),pz(r[t]));continue}let a=["themeCSS","fontFamily","altFontFamily"];for(let s of a)t.includes(s)&&(Pe.debug("sanitizing css option",t),r[t]=SHe(r[t]))}if(r.themeVariables)for(let t of Object.keys(r.themeVariables)){let a=r.themeVariables[t];a?.match&&!a.match(/^[\d "#%(),.;A-Za-z]+$/)&&(r.themeVariables[t]="")}Pe.debug("After sanitization",r)}},"sanitizeDirective"),SHe=i(r=>{let t=0,a=0;for(let s of r){if(t<a)return"{ /* ERROR: Unbalanced CSS */ }";s==="{"?t++:s==="}"&&a++}return t!==a?"{ /* ERROR: Unbalanced CSS */ }":r},"sanitizeCss")});var zE,g5n,m5n,y5n,b5n,fm,wb,xbe,Tbe,fA,Uee,Vee,v5n,gz,kbe,AHe,ror,nor,RHe,Cbe,ri,ior,aor,Wee,w5n,tor,sor,x5n,oor,Fh,Xs=ae(()=>{"use strict";fz();Yn();vbe();pp();eor();wbe();zE=Object.freeze(ps),g5n=["theme","look","layout"],m5n=new Set(["classic","handDrawn","neo"]),y5n=i((r,t)=>r==="theme"?t==="null"||Object.hasOwn(MT,t):r!=="look"||m5n.has(t),"isUsableAppearance"),b5n=i((r,t,a)=>r?[r[t]?.[a],r[a]].find(l=>l!==void 0&&y5n(a,l)):void 0,"readAppearance"),fm=i(r=>!(r===!1||["false","null","0"].includes(String(r).trim().toLowerCase())),"evaluate"),wb=Bh({},zE),Tbe={},fA=[],Uee=Bh({},zE),v5n=i((r,t)=>{if(!Vee)return;let a=[t,...[...fA].reverse(),Tbe,zE],s=r[Vee];for(let l of g5n)for(let h of a){let f=b5n(h,Vee,l);if(f!==void 0){r[l]=f,s?.[l]!==void 0&&(s[l]=f);break}}},"resolveAppearance"),gz=i((r,t)=>{let a=Bh({},r),s={};for(let h of t)ior(h),s=Bh(s,h);if(a=Bh(a,s),v5n(a,s),(!!s.theme||a.theme!==r.theme)&&a.theme&&Object.hasOwn(MT,a.theme)){let h=Bh({},xbe),f=Bh(h.themeVariables||{},s.themeVariables);a.themeVariables=MT[a.theme].getThemeVariables(f)}return Uee=a,x5n(Uee),Uee},"updateCurrentConfig"),kbe=i(r=>{Vee=r===void 0?void 0:Zsr(r),gz(wb,fA)},"setDiagramConfigScope"),AHe=i(r=>(wb=Bh({},zE),wb=Bh(wb,r),Tbe=Bh({},r),r.theme&&Object.hasOwn(MT,r.theme)&&(wb.themeVariables=MT[r.theme].getThemeVariables(r.themeVariables)),gz(wb,fA),wb),"setSiteConfig"),ror=i(r=>{xbe=Bh({},r)},"saveConfigFromInitialize"),nor=i(r=>(wb=Bh(wb,r),Tbe=Bh(Tbe,r),gz(wb,fA),wb),"updateSiteConfig"),RHe=i(()=>Bh({},wb),"getSiteConfig"),Cbe=i(r=>(gz(Uee,[r]),ri()),"setConfig"),ri=i(()=>Bh({},Uee),"getConfig"),ior=i(r=>{r&&(["secure",...wb.secure??[]].forEach(t=>{Object.hasOwn(r,t)&&(Pe.debug(`Denied attempt to modify a secure key ${t}`,r[t]),delete r[t])}),Object.keys(r).forEach(t=>{t.startsWith("__")&&delete r[t]}),Object.keys(r).forEach(t=>{typeof r[t]=="string"&&(r[t].includes("<")||r[t].includes(">")||r[t].includes("url(data:"))&&delete r[t],typeof r[t]=="object"&&ior(r[t])}))},"sanitize"),aor=i(r=>{pz(r),r.fontFamily&&!r.themeVariables?.fontFamily&&(r.themeVariables={...r.themeVariables,fontFamily:r.fontFamily}),fA.push(r),gz(wb,fA)},"addDirective"),Wee=i((r=wb)=>{fA=[],Vee=void 0,gz(r,fA)},"reset"),w5n={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},tor={},sor=i(r=>{tor[r]||(Pe.warn(w5n[r]),tor[r]=!0)},"issueWarning"),x5n=i(r=>{r&&(r.lazyLoadedDiagrams||r.loadExternalDiagramsAtStartup)&&sor("LAZY_LOAD_DEPRECATED")},"checkConfig"),oor=i(()=>{let r={};xbe&&(r=Bh(r,xbe));for(let t of fA)r=Bh(r,t);return r},"getUserDefinedConfig"),Fh=i(r=>(r.flowchart?.htmlLabels!=null&&sor("FLOWCHART_HTML_LABELS_DEPRECATED"),fm(r.htmlLabels??r.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels")});function T5n(r,t){this.v=r,this.k=t}function lor(r,t){(t==null||t>r.length)&&(t=r.length);for(var a=0,s=Array(t);a<t;a++)s[a]=r[a];return s}function k5n(r){if(Array.isArray(r))return r}function C5n(r,t){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var s,l,h,f,d=[],m=!0,b=!1;try{if(h=(a=a.call(r)).next,t===0){if(Object(a)!==a)return;m=!1}else for(;!(m=(s=h.call(a)).done)&&(d.push(s.value),d.length!==t);m=!0);}catch(v){b=!0,l=v}finally{try{if(!m&&a.return!=null&&(f=a.return(),Object(f)!==f))return}finally{if(b)throw l}}return d}}function E5n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S5n(r,t){return k5n(r)||C5n(r,t)||A5n(r,t)||E5n()}function A5n(r,t){if(r){if(typeof r=="string")return lor(r,t);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?lor(r,t):void 0}}function Ebe(r){var t,a;function s(h,f){try{var d=r[h](f),m=d.value,b=m instanceof T5n;Promise.resolve(b?m.v:m).then(function(v){if(b){var T=h==="return"&&m.k?h:"next";if(!m.k||v.done)return s(T,v);v=r[T](v).value}l(!!d.done,v)},function(v){s("throw",v)})}catch(v){l(2,v)}}i(s,"resume");function l(h,f){h===2?t.reject(f):t.resolve({value:f,done:h}),(t=t.next)?s(t.key,t.arg):a=null}i(l,"settle"),this._invoke=function(h,f){return new Promise(function(d,m){var b={key:h,arg:f,resolve:d,reject:m,next:null};a?a=a.next=b:(t=a=b,s(h,f))})},typeof r.return!="function"&&(this.return=void 0)}function Xf(r){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return FHe(r,t,s)}}function Ror(r){return function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return $He(r,a)}}function Uc(r,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:JN;if(cor&&cor(r,null),!yz(t))return r;let s=t.length;for(;s--;){let l=t[s];if(typeof l=="string"){let h=a(l);h!==l&&(R5n(t)||(t[s]=h),l=h)}r[l]=!0}return r}function O5n(r){for(let t=0;t<r.length;t++)t2(r,t)||(r[t]=null);return r}function Ww(r){let t=mz(null);for(let s of Cor(r)){var a=S5n(s,2);let l=a[0],h=a[1];t2(r,l)&&(yz(h)?t[l]=O5n(h):h&&typeof h=="object"&&h.constructor===Object?t[l]=Ww(h):t[l]=h)}return t}function P5n(r){switch(typeof r){case"string":return r;case"number":return M5n(r);case"boolean":return N5n(r);case"bigint":return por?por(r):"0";case"symbol":return gor?gor(r):"Symbol()";case"undefined":return Xee(r);case"function":case"object":{if(r===null)return Xee(r);let t=r,a=NT(t,"toString");if(typeof a=="function"){let s=a(t);return typeof s=="string"?s:Xee(s)}return Xee(r)}default:return Xee(r)}}function NT(r,t){for(;r!==null;){let s=Sor(r,t);if(s){if(s.get)return Xf(s.get);if(typeof s.value=="function")return Xf(s.value)}r=Eor(r)}function a(){return null}return i(a,"fallbackValue"),a}function B5n(r,t){for(;r!==null;){let a=Sor(r,t);if(a)return a.get?Xf(a.get):null;r=Eor(r)}return null}function F5n(r){try{return l1(r,""),!0}catch{return!1}}function Lor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q5n(),t=i(ti=>Lor(ti),"DOMPurify");if(t.version="3.4.17",t.removed=[],!r||!r.document||r.document.nodeType!==Ig.document||!r.Element)return t.isSupported=!1,t;let a=r.document,s=a,l=s.currentScript;r.DocumentFragment;let h=r.HTMLTemplateElement,f=r.Node,d=r.Element,m=r.NodeFilter;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let b=r.DOMParser,v=r.trustedTypes,T=d.prototype,C=NT(T,"cloneNode"),E=NT(T,"remove"),S=NT(T,"removeAttributeNode"),R=NT(T,"nextSibling"),L=NT(T,"childNodes"),_=NT(T,"parentNode"),I=NT(T,"shadowRoot"),N=NT(T,"attributes"),B=f&&f.prototype?NT(f.prototype,"nodeType"):null,O=f&&f.prototype?NT(f.prototype,"nodeName"):null,P=f&&f.prototype?NT(f.prototype,"ownerDocument"):null,$=i(function(Ct){return B?B(Ct):Ct.nodeType},"_readNodeType"),V=i(function(Ct){return O?O(Ct):Ct.nodeName},"_readNodeName"),Y=B5n(T,"namespaceURI"),Q=i(function(Ct){return Y?Y(Ct):Ct.namespaceURI},"_readNamespaceURI");if(typeof h=="function"){let ti=a.createElement("template");ti.content&&ti.content.ownerDocument&&(a=ti.content.ownerDocument)}let q,W="",H,re=!1,Z=0,X=i(function(){if(Z>0)throw pA('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},"_assertNotInTrustedTypesPolicy"),te=i(function(Ct){X(),Z++;try{return q.createHTML(Ct)}finally{Z--}},"_createTrustedHTML"),U=i(function(Ct){X(),Z++;try{return q.createScriptURL(Ct)}finally{Z--}},"_createTrustedScriptURL"),ne=i(function(){return re||(H=Z5n(v,l),re=!0),H},"_getDefaultTrustedTypesPolicy"),se=a,he=se.implementation,le=se.createNodeIterator,pe=se.createDocumentFragment,ge=se.getElementsByTagName,we=s.importNode,Ae=kor();t.isSupported=typeof Cor=="function"&&typeof _=="function"&&he&&he.createHTMLDocument!==void 0;let ve=j5n,Ie=z5n,De=U5n,Be=V5n,Fe=W5n,ze=H5n,vt=q5n,lt=X5n,Ft=wor,pr=null,tr=Uc({},[...mor,...IHe,...MHe,...NHe,...yor]),Mt=null,ot=Uc({},[...bor,...OHe,...vor,...Sbe]),it=Object.seal(mz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),mt=null,Rt=null,pt=Object.seal(mz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),gt=!0,ut=!0,Yt=!1,Ye=!0,Oe=!1,K=!0,Te=!1,ce=!1,Re=null,me=null,be=!1,ke=!1,We=!1,Ue=!1,rt=!0,nt=!1,Ot="user-content-",ft=!0,Qt=!1,$t=null,qt={},Gt=null,jt=Uc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Zr=null,yt=Uc({},["audio","video","img","source","image","track"]),$n=null,Ut=Uc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),An="http://www.w3.org/1998/Math/MathML",Un="http://www.w3.org/2000/svg",En="http://www.w3.org/1999/xhtml",ai=En,Gn=!1,ui=null,Tn=Uc({},[An,Un,En],DHe),Wi=dm(["mi","mo","mn","ms","mtext"]),Pa=Uc({},Wi),qe=dm(["annotation-xml"]),Rn=Uc({},qe),Mn=Uc({},["title","style","font","a","script"]),ct=null,dr=["application/xhtml+xml","text/html"],Kr="text/html",pn=null,Bn=null,Hs=a.createElement("form"),Ki=i(function(Ct){return Ct instanceof RegExp||Ct instanceof Function},"isRegexOrFunction"),so=i(function(){let Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Bn&&Bn===Ct)return;(!Ct||typeof Ct!="object")&&(Ct={}),Ct=Ww(Ct),ct=dr.indexOf(Ct.PARSER_MEDIA_TYPE)===-1?Kr:Ct.PARSER_MEDIA_TYPE,pn=ct==="application/xhtml+xml"?DHe:JN,pr=DL(Ct,"ALLOWED_TAGS",tr,{transform:pn}),Mt=DL(Ct,"ALLOWED_ATTR",ot,{transform:pn}),ui=DL(Ct,"ALLOWED_NAMESPACES",Tn,{transform:DHe}),$n=DL(Ct,"ADD_URI_SAFE_ATTR",Ut,{transform:pn,base:Ut}),Zr=DL(Ct,"ADD_DATA_URI_TAGS",yt,{transform:pn,base:yt}),Gt=DL(Ct,"FORBID_CONTENTS",jt,{transform:pn}),mt=DL(Ct,"FORBID_TAGS",Ww({}),{transform:pn}),Rt=DL(Ct,"FORBID_ATTR",Ww({}),{transform:pn}),qt=t2(Ct,"USE_PROFILES")?Ct.USE_PROFILES&&typeof Ct.USE_PROFILES=="object"?Ww(Ct.USE_PROFILES):Ct.USE_PROFILES:!1,gt=Ct.ALLOW_ARIA_ATTR!==!1,ut=Ct.ALLOW_DATA_ATTR!==!1,Yt=Ct.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=Ct.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=Ct.SAFE_FOR_TEMPLATES||!1,K=Ct.SAFE_FOR_XML!==!1,Te=Ct.WHOLE_DOCUMENT||!1,ke=Ct.RETURN_DOM||!1,We=Ct.RETURN_DOM_FRAGMENT||!1,Ue=Ct.RETURN_TRUSTED_TYPE||!1,be=Ct.FORCE_BODY||!1,rt=Ct.SANITIZE_DOM!==!1,nt=Ct.SANITIZE_NAMED_PROPS||!1,ft=Ct.KEEP_CONTENT!==!1,Qt=Ct.IN_PLACE||!1,Ft=F5n(Ct.ALLOWED_URI_REGEXP)?Ct.ALLOWED_URI_REGEXP:wor,ai=typeof Ct.NAMESPACE=="string"?Ct.NAMESPACE:En,Pa=BHe(Ct,"MATHML_TEXT_INTEGRATION_POINTS",()=>Uc({},Wi)),Rn=BHe(Ct,"HTML_INTEGRATION_POINTS",()=>Uc({},qe));let xr=BHe(Ct,"CUSTOM_ELEMENT_HANDLING",()=>mz(null));if(it=mz(null),t2(xr,"tagNameCheck")&&Ki(xr.tagNameCheck)&&(it.tagNameCheck=xr.tagNameCheck),t2(xr,"attributeNameCheck")&&Ki(xr.attributeNameCheck)&&(it.attributeNameCheck=xr.attributeNameCheck),t2(xr,"allowCustomizedBuiltInElements")&&typeof xr.allowCustomizedBuiltInElements=="boolean"&&(it.allowCustomizedBuiltInElements=xr.allowCustomizedBuiltInElements),c1(it),Oe&&(ut=!1),We&&(ke=!0),qt&&(pr=Uc({},yor),Mt=mz(null),qt.html===!0&&(Uc(pr,mor),Uc(Mt,bor)),qt.svg===!0&&(Uc(pr,IHe),Uc(Mt,OHe),Uc(Mt,Sbe)),qt.svgFilters===!0&&(Uc(pr,MHe),Uc(Mt,OHe),Uc(Mt,Sbe)),qt.mathMl===!0&&(Uc(pr,NHe),Uc(Mt,vor),Uc(Mt,Sbe))),pt.tagCheck=null,pt.attributeCheck=null,t2(Ct,"ADD_TAGS")&&(typeof Ct.ADD_TAGS=="function"?pt.tagCheck=Ct.ADD_TAGS:yz(Ct.ADD_TAGS)&&(pr===tr&&(pr=Ww(pr)),Uc(pr,Ct.ADD_TAGS,pn))),t2(Ct,"ADD_ATTR")&&(typeof Ct.ADD_ATTR=="function"?pt.attributeCheck=Ct.ADD_ATTR:yz(Ct.ADD_ATTR)&&(Mt===ot&&(Mt=Ww(Mt)),Uc(Mt,Ct.ADD_ATTR,pn))),t2(Ct,"ADD_FORBID_CONTENTS")&&yz(Ct.ADD_FORBID_CONTENTS)&&(Gt===jt&&(Gt=Ww(Gt)),Uc(Gt,Ct.ADD_FORBID_CONTENTS,pn)),ft&&(pr["#text"]=!0),Te&&Uc(pr,["html","head","body"]),pr.table&&(Uc(pr,["tbody"]),delete mt.tbody),Ct.TRUSTED_TYPES_POLICY){if(typeof Ct.TRUSTED_TYPES_POLICY.createHTML!="function")throw pA('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ct.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pA('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let Dn=q;q=Ct.TRUSTED_TYPES_POLICY;try{W=te("")}catch(Wn){throw q=Dn,Wn}}else Ct.TRUSTED_TYPES_POLICY===null?(q=void 0,W=""):(q===void 0&&(q=ne()),q&&typeof W=="string"&&(W=te("")));dm&&dm(Ct),Bn=Ct},"_parseConfig"),js=Uc({},[...IHe,...MHe,...$5n]),ls=Uc({},[...NHe,...G5n]),Ba=i(function(Ct,xr,Dn){return xr.namespaceURI===En?Ct==="svg":xr.namespaceURI===An?Ct==="svg"&&(Dn==="annotation-xml"||Pa[Dn]):!!js[Ct]},"_checkSvgNamespace"),cs=i(function(Ct,xr,Dn){return xr.namespaceURI===En?Ct==="math":xr.namespaceURI===Un?Ct==="math"&&Rn[Dn]:!!ls[Ct]},"_checkMathMlNamespace"),ln=i(function(Ct,xr,Dn){return xr.namespaceURI===Un&&!Rn[Dn]||xr.namespaceURI===An&&!Pa[Dn]?!1:!ls[Ct]&&(Mn[Ct]||!js[Ct])},"_checkHtmlNamespace"),Vr=i(function(Ct){let xr=Q(Ct),Dn=JN(V(Ct)),Wn=_(Ct),xs,oo;return Wn&&$(Wn)===Ig.element?(xs={namespaceURI:Q(Wn)},oo=JN(V(Wn))):(xs={namespaceURI:ai},oo="template"),ui[xr]?xr===Un?Ba(Dn,xs,oo):xr===An?cs(Dn,xs,oo):xr===En?ln(Dn,xs,oo):!!(ct==="application/xhtml+xml"&&ui[xr]):!1},"_checkValidNamespace"),gn=i(function(Ct){Hee(t.removed,{element:Ct});try{_(Ct).removeChild(Ct)}catch{if(E(Ct),!_(Ct))throw pA("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},"_forceRemove"),xi=i(function(Ct,xr,Dn){try{S(Ct,xr)}catch{try{Ct.removeAttribute(Dn)}catch{}}},"_stripAttributeNode"),Pn=i(function(Ct){Zi(Ct);let xr=L(Ct);xr&&dA(_5n(xr),Wn=>{try{E(Wn)}catch{}});let Dn=$(Ct)===Ig.element?N(Ct):null;if(Dn)for(let Wn=Dn.length-1;Wn>=0;--Wn){let xs=Dn[Wn],oo=xs&&xs.name;typeof oo=="string"&&xi(Ct,xs,oo)}},"_neutralizeRoot"),Vn=i(function(Ct,xr,Dn){if(!Dn)try{Dn=xr.getAttributeNode(Ct)}catch{Dn=null}Hee(t.removed,{attribute:Dn||null,from:xr});try{Dn?S(xr,Dn):xr.removeAttribute(Ct)}catch{try{xr.removeAttribute(Ct)}catch{}}if(Ct==="is")if(ke||We)try{gn(xr)}catch{}else try{xr.setAttribute(Ct,"")}catch{}},"_removeAttribute"),la=i(function(Ct){let xr=N(Ct);if(xr)for(let Dn=xr.length-1;Dn>=0;--Dn){let Wn=xr[Dn],xs=Wn&&Wn.name;typeof xs!="string"||Mt[pn(xs)]||xi(Ct,Wn,xs)}},"_stripDisallowedAttributes"),Ln=i(function(Ct,xr){let Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Wn=[Ct];for(;Wn.length>0;){let xs=Wn.pop();if(xr(xs)===!1)continue;if(Dn&&$(xs)===Ig.element){let gl=I(xs);Ug(gl)&&Wn.push(gl)}let oo=L(xs);if(oo)for(let gl=oo.length-1;gl>=0;--gl)Wn.push(oo[gl])}},"_walkTree"),Zi=i(function(Ct){Ln(Ct,xr=>{$(xr)===Ig.element&&la(xr)})},"_neutralizeSubtree"),kt=i(function(Ct){let xr=[];return Ln(Ct,Dn=>{xr.push(Dn)},!0),xr},"_collectLiveNodes"),Iu=i(function(Ct,xr){let Dn=LHe();dA(kt(Ct),Wn=>{$(Wn)===Ig.element&&_He(Dn,Wn)}),dA(xr,Wn=>{$(Wn)===Ig.element&&!qee(Dn,Wn)&&la(Wn)})},"_neutralizeEscapedElements"),It=i(function(Ct,xr){let Dn=!1;return dA(t.removed,Wn=>{Wn.element&&(Dn=Dn||Wn.element===Ct,Zi(Wn.element))}),Iu(Ct,xr),Dn},"_neutralizeDiscarded"),Ai=8,da=i(function(Ct,xr){let Dn=$t,Wn=null,xs=i(()=>(Wn||(Wn=LHe(),dA(xr,oo=>{_He(Wn,oo)})),Wn),"getOriginal");for(let oo=0;;oo++){let gl=kt(Ct),Ud=[Ct],B2=!1;if(dA(gl,G0=>{$(G0)===Ig.documentFragment?Hee(Ud,G0):!B2&&!qee(Dn,G0)&&(B2=qee(xs(),G0))}),!B2)return;if(oo>=Ai)throw pA("the tree kept changing during in-place sanitization; refusing to return it");dA(Ud,(G0,Mm)=>{sa(G0,Mm>0,Ct,xs())})}},"_sanitizeUnvisitedNodes"),sa=i(function(Ct,xr,Dn,Wn){let xs=at(Ct),oo;for(;oo=xs.nextNode();)!qee(Wn,oo)||qee($t,oo)||(xr&&al(Ae.uponSanitizeShadowNode,oo,null),N2(oo,Dn),O2(oo,Dn),Ug(oo.content)&&P2(oo.content))},"_sanitizeUnvisitedIn"),Lr=i(function(Ct){$t&&_He($t,Ct)},"_markVisited"),Xa=i(function(Ct,xr){return K?Ct==="patchsrc"?!0:Ct==="for"&&xr!=="label"&&xr!=="output":!1},"_isPatchLinkageAttribute"),Ze=i(function(Ct){K&&Ln(Ct,xr=>{let Dn=$(xr);if(Dn===Ig.processingInstruction||Dn===Ig.comment&&l1(xor,xr.data)){try{E(xr)}catch{}return!1}if(Dn===Ig.element){let Wn=xr,xs=pn(V(xr));try{Wn.hasAttribute&&Wn.hasAttribute("patchsrc")&&Wn.removeAttribute("patchsrc"),Wn.hasAttribute&&Wn.hasAttribute("for")&&Xa("for",xs)&&Wn.removeAttribute("for")}catch{}}return!0})},"_neutralizePatchLinkage"),xa=i(function(Ct){let xr=null,Dn=null;if(be)Ct="<remove></remove>"+Ct;else{let oo=hor(Ct,/^[\r\n\t ]+/);Dn=oo&&oo[0]}ct==="application/xhtml+xml"&&ai===En&&(Ct='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ct+"</body></html>");let Wn=q?te(Ct):Ct;if(ai===En)try{xr=new b().parseFromString(Wn,ct)}catch{}if(!xr||!xr.documentElement){xr=he.createDocument(ai,"template",null);try{xr.documentElement.innerHTML=Gn?W:Wn}catch{}}let xs=xr.body||xr.documentElement;return Ct&&Dn&&xs.insertBefore(a.createTextNode(Dn),xs.childNodes[0]||null),ai===En?ge.call(xr,Te?"html":"body")[0]:Te?xr.documentElement:xs},"_initDocument"),at=i(function(Ct){let xr=P?P(Ct):Ct.ownerDocument;return le.call(xr||Ct,Ct,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),pl=i(function(Ct){return Ct=Yee(Ct,ve," "),Ct=Yee(Ct,Ie," "),Ct=Yee(Ct,De," "),Ct},"_stripTemplateExpressions"),Dm=i(function(Ct){var xr;I2(Ct);let Dn=(xr=Ct.querySelectorAll)===null||xr===void 0?void 0:xr.call(Ct,"template");Dn&&dA(Dn,Wn=>{Ug(Wn.content)&&Dm(Wn.content)})},"_scrubTemplateExpressions"),I2=i(function(Ct){Ct.normalize();let xr=P?P(Ct):Ct.ownerDocument,Dn=le.call(xr||Ct,Ct,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null),Wn=Dn.nextNode();for(;Wn;)Wn.data=pl(Wn.data),Wn=Dn.nextNode()},"_scrubOwnCharacterData"),M2=i(function(Ct){let xr=O?O(Ct):null;return typeof xr!="string"||pn(xr)!=="form"?!1:typeof Ct.nodeName!="string"||typeof Ct.textContent!="string"||typeof Ct.removeChild!="function"||Ct.attributes!==N(Ct)||typeof Ct.removeAttribute!="function"||typeof Ct.removeAttributeNode!="function"||typeof Ct.getAttributeNode!="function"||typeof Ct.setAttribute!="function"||typeof Ct.namespaceURI!="string"||typeof Ct.insertBefore!="function"||typeof Ct.hasChildNodes!="function"||Ct.nodeType!==B(Ct)||Ct.childNodes!==L(Ct)},"_isClobbered"),Ug=i(function(Ct){if(!B||typeof Ct!="object"||Ct===null)return!1;try{return B(Ct)===Ig.documentFragment}catch{return!1}},"_isDocumentFragment"),uh=i(function(Ct){if(!B||typeof Ct!="object"||Ct===null)return!1;try{return typeof B(Ct)=="number"}catch{return!1}},"_isNode");function al(ti,Ct,xr){ti.length!==0&&dA(ti,Dn=>{Dn.call(t,Ct,xr,Bn)})}i(al,"_executeHooks");let sd=i(function(Ct,xr){return!!(K&&Ct.hasChildNodes()&&!uh(Ct.firstElementChild)&&l1(PHe,Ct.textContent)&&l1(PHe,Ct.innerHTML)||K&&J5n[xr]&&$(Ct)===Ig.element&&Q(Ct)===En&&(uh(Ct.firstElementChild)||typeof Ct.textContent=="string"&&l1(PHe,Ct.textContent))||Ct.nodeType===Ig.processingInstruction||K&&Ct.nodeType===Ig.comment&&l1(xor,Ct.data))},"_isUnsafeNode"),$l=i(function(Ct,xr){if(Ct instanceof RegExp)return l1(Ct,xr);if(Ct instanceof Function){for(var Dn=arguments.length,Wn=new Array(Dn>2?Dn-2:0),xs=2;xs<Dn;xs++)Wn[xs-2]=arguments[xs];return!!Ct(xr,...Wn)}return!1},"_matchesNameCheck"),pk=i(function(Ct,xr,Dn){if(!mt[xr]&&$0(xr)&&$l(it.tagNameCheck,xr))return!1;if(ft&&!Gt[xr]&&!Gt[JN(xr)]){let Wn=_(Ct),xs=L(Ct);if(xs&&Wn){let oo=xs.length;for(let gl=oo-1;gl>=0;--gl){let Ud=Ct===Dn?C(xs[gl],!0):xs[gl];Wn.insertBefore(Ud,R(Ct))}}}return gn(Ct),!0},"_sanitizeDisallowedNode"),gk=i(function(Ct,xr,Dn,Wn){return Ct.length===0?xr:xr===Dn||xr===Wn?Ww(xr):xr},"_forkSharedAllowlist"),Im=i(function(Ct,xr){return Ct===xr||_(Ct)!==null?!1:(Qt&&Zi(Ct),!0)},"_handleHookDetachedNode"),N2=i(function(Ct,xr){if(Lr(Ct),al(Ae.beforeSanitizeElements,Ct,null),Im(Ct,xr))return!0;if(M2(Ct))return gn(Ct),!0;let Dn=pn(V(Ct));if(pr=gk(Ae.uponSanitizeElement,pr,tr,Re),al(Ae.uponSanitizeElement,Ct,{tagName:Dn,allowedTags:pr}),Im(Ct,xr))return!0;if(sd(Ct,Dn))return gn(Ct),!0;if(mt[Dn]||!(pt.tagCheck instanceof Function&&pt.tagCheck(Dn))&&!pr[Dn]){let Wn=pk(Ct,Dn,xr);return Wn===!1&&(al(Ae.afterSanitizeElements,Ct,null),Im(Ct,xr))?!0:Wn}if($(Ct)===Ig.element&&!Vr(Ct)||(Dn==="noscript"||Dn==="noembed"||Dn==="noframes")&&l1(K5n,Ct.innerHTML))return gn(Ct),!0;if(Oe&&Ct.nodeType===Ig.text){let Wn=pl(Ct.textContent);Ct.textContent!==Wn&&(Hee(t.removed,{element:Ct.cloneNode()}),Ct.textContent=Wn)}return al(Ae.afterSanitizeElements,Ct,null),Im(Ct,xr)},"_sanitizeElements"),mu=i(function(Ct,xr,Dn){if(Rt[xr]||Xa(xr,Ct)||rt&&(xr==="id"||xr==="name")&&(Dn in a||Dn in Hs))return!1;let Wn=Mt[xr]||pt.attributeCheck instanceof Function&&pt.attributeCheck(xr,Ct);return ut&&l1(Be,xr)||gt&&l1(Fe,xr)?!0:Wn?$n[xr]||l1(Ft,Yee(Dn,vt,""))||(xr==="src"||xr==="xlink:href"||xr==="href")&&Ct!=="script"&&dor(Dn,"data:")===0&&Zr[Ct]||Yt&&!l1(ze,Yee(Dn,vt,""))?!0:!Dn:$0(Ct)&&$l(it.tagNameCheck,Ct)&&$l(it.attributeNameCheck,xr,Ct)||xr==="is"&&it.allowCustomizedBuiltInElements&&$l(it.tagNameCheck,Dn)},"_isValidAttribute"),mk=Uc({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),$0=i(function(Ct){return!mk[JN(Ct)]&&l1(lt,Ct)},"_isBasicCustomElement"),Rp=i(function(Ct,xr,Dn,Wn){if(q&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Dn)switch(v.getAttributeType(Ct,xr)){case"TrustedHTML":return te(Wn);case"TrustedScriptURL":return U(Wn)}return Wn},"_applyTrustedTypesToAttribute"),Vg=i(function(Ct,xr,Dn,Wn){try{return Dn?Ct.setAttributeNS(Dn,xr,Wn):Ct.setAttribute(xr,Wn),M2(Ct)?(gn(Ct),!1):!0}catch{return Vn(xr,Ct),!1}},"_setAttributeValue"),o5=i(function(Ct,xr){return K&&l1(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,xr)?!0:JN(Ct)==="attributename"&&hor(xr,"href")!==null},"_isUnsafeAttributeValue"),O2=i(function(Ct,xr){if(al(Ae.beforeSanitizeAttributes,Ct,null),Im(Ct,xr))return;let Dn=Ct.attributes;if(!Dn||M2(Ct))return;Mt=gk(Ae.uponSanitizeAttribute,Mt,ot,me);let Wn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Mt,forceKeepAttr:void 0},xs=Dn.length,oo=pn(Ct.nodeName);for(;xs--;){let gl=Dn[xs],Ud=gl.name,B2=gl.namespaceURI,G0=gl.value,Mm=pn(Ud),l5=G0,Nm=Ud==="value"?l5:I5n(l5),TH=!1;if(Wn.attrName=Mm,Wn.attrValue=Nm,Wn.keepAttr=!0,Wn.forceKeepAttr=void 0,al(Ae.uponSanitizeAttribute,Ct,Wn),Nm=Wn.attrValue,nt&&(Mm==="id"||Mm==="name")&&dor(Nm,Ot)!==0&&(Vn(Ud,Ct,gl),Nm=Ot+Nm,TH=!0),o5(Ud,Nm)){Vn(Ud,Ct,gl);continue}if(!Wn.forceKeepAttr){if(!Wn.keepAttr){Vn(Ud,Ct,gl);continue}if(!Ye&&l1(Tor,Nm)){Vn(Ud,Ct,gl);continue}if(Oe&&(Nm=pl(Nm)),!mu(oo,Mm,Nm)){Vn(Ud,Ct,gl);continue}Nm=Rp(oo,Mm,B2,Nm),Nm!==l5&&Vg(Ct,Ud,B2,Nm)&&TH&&uor(t.removed)}}al(Ae.afterSanitizeAttributes,Ct,null),Im(Ct,xr)},"_sanitizeAttributes"),P2=i(function(Ct){let xr=null,Dn=at(Ct);for(al(Ae.beforeSanitizeShadowDOM,Ct,null);xr=Dn.nextNode();)if(al(Ae.uponSanitizeShadowNode,xr,null),N2(xr,Ct),O2(xr,Ct),Ug(xr.content)&&P2(xr.content),$(xr)===Ig.element){let Wn=I(xr);Ug(Wn)&&(k1(Wn),P2(Wn))}Oe&&I2(Ct),al(Ae.afterSanitizeShadowDOM,Ct,null)},"_sanitizeShadowDOM"),k1=i(function(Ct){let xr=[{node:Ct,shadow:null}];for(;xr.length>0;){let Dn=xr.pop();if(Dn.shadow){P2(Dn.shadow);continue}let Wn=Dn.node,xs=$(Wn)===Ig.element,oo=L(Wn);if(oo)for(let gl=oo.length-1;gl>=0;--gl)xr.push({node:oo[gl],shadow:null});if(xs){let gl=O?O(Wn):null;if(typeof gl=="string"&&pn(gl)==="template"){let Ud=Wn.content;Ug(Ud)&&xr.push({node:Ud,shadow:null})}}if(xs){let gl=I(Wn);Ug(gl)&&xr.push({node:null,shadow:gl},{node:gl,shadow:null})}}},"_sanitizeAttachedShadowRoots");return t.sanitize=function(ti){let Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xr=null,Dn=null,Wn=null,xs=null;if(Gn=!ti,Gn&&(ti="<!-->"),typeof ti!="string"&&!uh(ti)&&(ti=P5n(ti),typeof ti!="string"))throw pA("dirty is not a string, aborting");if(!t.isSupported)return ti;ce?(pr=Re,Mt=me):so(Ct),(Ae.uponSanitizeElement.length>0||Ae.uponSanitizeAttribute.length>0)&&(pr=Ww(pr)),Ae.uponSanitizeAttribute.length>0&&(Mt=Ww(Mt)),t.removed=[];let oo=Qt&&typeof ti!="string"&&uh(ti),gl=[],Ud=$t;if(oo){Ze(ti);let Mm=V(ti);if(typeof Mm=="string"){let l5=pn(Mm);if(!pr[l5]||mt[l5])throw Pn(ti),pA("root node is forbidden and cannot be sanitized in-place")}if(M2(ti))throw Pn(ti),pA("root node is clobbered and cannot be sanitized in-place");gl=kt(ti),$t=LHe()}else if(uh(ti))xr=xa("<!---->"),Dn=xr.ownerDocument.importNode(ti,!0),Dn.nodeType===Ig.element&&Dn.nodeName==="BODY"||Dn.nodeName==="HTML"?xr=Dn:xr.appendChild(Dn),k1(xr);else{if(!ke&&!Oe&&!Te&&ti.indexOf("<")===-1)return q&&Ue?te(ti):ti;if(xr=xa(ti),!xr)return ke?null:Ue?W:""}xr&&be&&gn(xr.firstChild);let B2=oo?ti:xr;try{oo&&k1(ti);let Mm=at(B2);for(;Wn=Mm.nextNode();)N2(Wn,B2),O2(Wn,B2),Ug(Wn.content)&&P2(Wn.content);oo&&da(ti,gl)}catch(Mm){throw oo&&(Pn(ti),It(ti,gl)),Mm}finally{$t=Ud}if(oo){if(It(ti,gl))throw pA("a node selected for removal could not be safely returned; refusing to sanitize in place");return Oe&&Dm(ti),ti}if(ke){if(Oe&&Dm(xr),We)for(xs=pe.call(xr.ownerDocument);xr.firstChild;)xs.appendChild(xr.firstChild);else xs=xr;return(Mt.shadowroot||Mt.shadowrootmode)&&(xs=we.call(s,xs,!0)),xs}let G0=Te?xr.outerHTML:xr.innerHTML;return Te&&pr["!doctype"]&&xr.ownerDocument&&xr.ownerDocument.doctype&&xr.ownerDocument.doctype.name&&l1(Y5n,xr.ownerDocument.doctype.name)&&(G0="<!DOCTYPE "+xr.ownerDocument.doctype.name+`>
|
|
`+G0),Oe&&(G0=pl(G0)),q&&Ue?te(G0):G0},t.setConfig=function(){let ti=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};so(ti),ce=!0,Re=pr,me=Mt},t.clearConfig=function(){Bn=null,ce=!1,Re=null,me=null,q=H,W=""},t.isValidAttribute=function(ti,Ct,xr){Bn||so({});let Dn=pn(ti),Wn=pn(Ct);return typeof xr=="string"&&(o5(Ct,xr)||!Ye&&l1(Tor,xr))?!1:mu(Dn,Wn,xr)},t.addHook=function(ti,Ct){typeof Ct=="function"&&t2(Ae,ti)&&Hee(Ae[ti],Ct)},t.removeHook=function(ti,Ct){if(t2(Ae,ti)){if(Ct!==void 0){let xr=L5n(Ae[ti],Ct);return xr===-1?void 0:D5n(Ae[ti],xr,1)[0]}return uor(Ae[ti])}},t.removeHooks=function(ti){t2(Ae,ti)&&(Ae[ti]=[])},t.removeAllHooks=function(){Ae=kor()},t}var Cor,cor,R5n,Eor,Sor,dm,c1,mz,Aor,FHe,$He,dA,L5n,uor,Hee,_5n,D5n,yz,LHe,_He,qee,JN,DHe,hor,Yee,dor,I5n,M5n,N5n,por,gor,t2,Xee,l1,pA,mor,IHe,MHe,$5n,NHe,G5n,yor,bor,OHe,vor,Sbe,j5n,z5n,U5n,V5n,W5n,wor,H5n,q5n,Y5n,X5n,PHe,xor,K5n,Tor,Ig,J5n,Q5n,Z5n,kor,DL,BHe,oy,QN=ae(()=>{"use strict";i(T5n,"_OverloadYield");i(lor,"_arrayLikeToArray");i(k5n,"_arrayWithHoles");i(C5n,"_iterableToArrayLimit");i(E5n,"_nonIterableRest");i(S5n,"_slicedToArray");i(A5n,"_unsupportedIterableToArray");i(Ebe,"AsyncGenerator");Ebe.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Ebe.prototype.next=function(r){return this._invoke("next",r)},Ebe.prototype.throw=function(r){return this._invoke("throw",r)},Ebe.prototype.return=function(r){return this._invoke("return",r)};Cor=Object.entries,cor=Object.setPrototypeOf,R5n=Object.isFrozen,Eor=Object.getPrototypeOf,Sor=Object.getOwnPropertyDescriptor,dm=Object.freeze,c1=Object.seal,mz=Object.create,Aor=typeof Reflect<"u"&&Reflect,FHe=Aor.apply,$He=Aor.construct;dm||(dm=i(function(t){return t},"freeze"));c1||(c1=i(function(t){return t},"seal"));FHe||(FHe=i(function(t,a){for(var s=arguments.length,l=new Array(s>2?s-2:0),h=2;h<s;h++)l[h-2]=arguments[h];return t.apply(a,l)},"apply"));$He||($He=i(function(t){for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return new t(...s)},"construct"));dA=Xf(Array.prototype.forEach);Array.prototype.indexOf;L5n=Xf(Array.prototype.lastIndexOf),uor=Xf(Array.prototype.pop),Hee=Xf(Array.prototype.push),_5n=Xf(Array.prototype.slice),D5n=Xf(Array.prototype.splice),yz=Array.isArray,LHe=Ror(Set),_He=Xf(Set.prototype.add),qee=Xf(Set.prototype.has),JN=Xf(String.prototype.toLowerCase),DHe=Xf(String.prototype.toString),hor=Xf(String.prototype.match),Yee=Xf(String.prototype.replace),dor=Xf(String.prototype.indexOf),I5n=Xf(String.prototype.trim),M5n=Xf(Number.prototype.toString),N5n=Xf(Boolean.prototype.toString),por=typeof BigInt>"u"?null:Xf(BigInt.prototype.toString),gor=typeof Symbol>"u"?null:Xf(Symbol.prototype.toString),t2=Xf(Object.prototype.hasOwnProperty),Xee=Xf(Object.prototype.toString),l1=Xf(RegExp.prototype.test),pA=Ror(TypeError);i(Xf,"unapply");i(Ror,"unconstruct");i(Uc,"addToSet");i(O5n,"cleanArray");i(Ww,"clone");i(P5n,"stringifyValue");i(NT,"lookupGetter");i(B5n,"lookupAccessor");i(F5n,"isRegex");mor=dm(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),IHe=dm(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),MHe=dm(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$5n=dm(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),NHe=dm(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G5n=dm(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yor=dm(["#text"]),bor=dm(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),OHe=dm(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),vor=dm(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Sbe=dm(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j5n=c1(/{{[\w\W]*|^[\w\W]*}}/g),z5n=c1(/<%[\w\W]*|^[\w\W]*%>/g),U5n=c1(/\${[\w\W]*/g),V5n=c1(/^data-[\-\w.\u00B7-\uFFFF]+$/),W5n=c1(/^aria-[\-\w]+$/),wor=c1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H5n=c1(/^(?:\w+script|data):/i),q5n=c1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y5n=c1(/^html$/i),X5n=c1(/^[a-z][.\w]*(-[.\w]+)+$/i),PHe=c1(/<[/\w!]/g),xor=c1(/<[/\w]/g),K5n=c1(/<\/no(script|embed|frames)/i),Tor=c1(/\/>/i),Ig={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},J5n=dm(Uc({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Q5n=i(function(){return typeof window>"u"?null:window},"getGlobal"),Z5n=i(function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let s=null,l="data-tt-policy-suffix";a&&a.hasAttribute(l)&&(s=a.getAttribute(l));let h="dompurify"+(s?"#"+s:"");try{return t.createPolicy(h,{createHTML(f){return f},createScriptURL(f){return f}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},"_createTrustedTypesPolicy"),kor=i(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap"),DL=i(function(t,a,s,l){return t2(t,a)&&yz(t[a])?Uc(l.base?Ww(l.base):{},t[a],l.transform):s},"_resolveSetOption"),BHe=i(function(t,a,s){let l=t2(t,a)?t[a]:void 0;return l&&typeof l=="object"?Ww(l):s()},"_resolveObjectOption");i(Lor,"createDOMPurify");oy=Lor()});var ccr={};is(ccr,{ParseError:()=>Bi,SETTINGS_SCHEMA:()=>Fbe,__defineFunction:()=>Sa,__defineMacro:()=>bt,__defineSymbol:()=>Le,__domTree:()=>lcr,__parse:()=>icr,__renderToDomTree:()=>eve,__renderToHTMLTree:()=>scr,__setFontMetrics:()=>blr,default:()=>e8n,render:()=>Mqe,renderToString:()=>ncr,version:()=>ocr});function s6n(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function o6n(r){if(Object.prototype.hasOwnProperty.call(r,"default")&&r.default!==void 0)return r.default;var t=Array.isArray(r.type)?r.type[0]:r.type;return s6n(t)}function l6n(r,t,a,s){var l=Object.prototype.hasOwnProperty.call(a,t)?a[t]:void 0,h=Object.prototype.hasOwnProperty.call(s,"processor")?s.processor:void 0;r[t]=l!==void 0?h?h(l):l:o6n(s)}function g6n(r){for(var t=0;t<ZHe.length;t++)for(var a=ZHe[t],s=0;s<a.blocks.length;s++){var l=a.blocks[s];if(r>=l[0]&&r<=l[1])return a.name}return null}function dlr(r){for(var t=0;t<Bbe.length;t+=2)if(r>=Bbe[t]&&r<=Bbe[t+1])return!0;return!1}function S6n(r){return"toText"in r}function _6n(r){if(r instanceof kb)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function D6n(r){if(r instanceof PL)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}function blr(r,t){HE[r]=t}function xqe(r,t,a){if(!HE[t])throw new Error("Font metrics not found for font: "+t+".");var s=r.charCodeAt(0),l=HE[t][s];if(!l&&r[0]in Dor&&(s=Dor[r[0]].charCodeAt(0),l=HE[t][s]),!l&&a==="text"&&dlr(s)&&(l=HE[t][77]),l)return{depth:l[0],height:l[1],italic:l[2],skew:l[3],width:l[4]}}function M6n(r){var t;if(r>=5?t=0:r>=3?t=1:t=2,!jHe[t]){var a=jHe[t]={cssEmPerMu:GHe.quad[t]/18};for(var s of Object.keys(GHe))a[s]=GHe[s][t]}return jHe[t]}function Le(r,t,a,s,l,h){Kf[r][l]={font:t,group:a,replace:s},h&&s&&(Kf[r][s]=Kf[r][l])}function n2(r){var t=r.strict,a=r.errorCode,s=r.errorMsg,l=r.token,h=r.report,f=t;if(typeof t=="function")if(h)f=t(a,s,l);else try{f=t(a,s,l)}catch{f="error"}switch(f){case!0:case"error":if(h)throw new Bi("LaTeX-incompatible input and strict mode is set to 'error': "+(s+" ["+a+"]"),l);return!0;case!1:case"ignore":if(!h)return!1;break;default:if(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(s+" ["+a+"]")),!h)return!1;break}}function Sa(r){for(var t=r.type,a=r.names,s=r.htmlBuilder,l=r.mathmlBuilder,h=0;h<a.length;++h)Clr[a[h]]=r;t&&(s&&(nte[t]=s),l&&(ite[t]=l))}function tO(r){var t=r.type,a=r.htmlBuilder,s=r.mathmlBuilder;a&&(nte[t]=a),s&&(ite[t]=s)}function Ibe(r,t){var a=Ii(["katex-base"],r,t),s=Ii(["katex-strut"]);return s.style.height=Ji(a.height+a.depth),a.depth&&(s.style.verticalAlign=Ji(-a.depth)),a.children.unshift(s),a}function hqe(r,t){var a=null;r.length===1&&r[0].type==="tag"&&(a=r[0].tag,r=r[0].body);var s=k0(r,t,"root"),l;s.length===2&&s[1].hasClass("katex-tag")&&(l=s.pop());for(var h=[],f=[],d=0;d<s.length;d++)if(f.push(s[d]),s[d].hasClass("mbin")||s[d].hasClass("mrel")||s[d].hasClass("allowbreak")){for(var m=!1;d<s.length-1&&s[d+1].hasClass("mspace")&&!s[d+1].hasClass("katex-newline");)d++,f.push(s[d]),s[d].hasClass("nobreak")&&(m=!0);m||(h.push(Ibe(f,t)),f=[])}else s[d].hasClass("katex-newline")&&(f.pop(),f.length>0&&(h.push(Ibe(f,t)),f=[]),h.push(s[d]));f.length>0&&h.push(Ibe(f,t));var b;a?(b=Ibe(k0(a,t,!0),t),b.classes=["katex-tag"],h.push(b)):l&&h.push(l);var v=Ii(["katex-html"],h);if(v.setAttribute("aria-hidden","true"),b){var T=b.children[0];T.style.height=Ji(v.height+v.depth),v.depth&&(T.style.verticalAlign=Ji(-v.depth))}return v}function Slr(r){return new NL(r)}function VHe(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var t=r.children[0];return t instanceof gp&&t.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var a=r.children[0];return a instanceof gp&&a.text===","}else return!1}function jor(r,t,a,s,l){var h=Yw(r,a),f;h.length===1&&h[0]instanceof Gi&&Y6n.has(h[0].type)?f=h[0]:f=new Gi("mrow",h);var d=new Gi("annotation",[new gp(t)]);d.setAttribute("encoding","application/x-tex");var m=new Gi("semantics",[f,d]),b=new Gi("math",[m]);b.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),s&&b.setAttribute("display","block");var v=l?"katex":"katex-mathml";return Ii([v],[b])}function oAn(r){return aAn.has(r)}function Vl(r,t){if(!r||r.type!==t)throw new Error("Expected node of type "+t+", but got "+(r?"node of type "+r.type:String(r)));return r}function Xbe(r){var t=Kbe(r);if(!t)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return t}function Kbe(r){return r.type==="atom"||sAn.has(r.type)?r:null}function Sqe(r,t,a){var s="";for(var l of r.body)if(l.type==="textord")s+=l.text;else if(a&&l.type==="spacing"&&l.text===" ")s+=" ";else throw new Bi(t,r);return s}function uAn(r,t){var a=k0(r.body,t,!0);return Ii([r.mclass],a,t)}function hAn(r,t){var a,s=Yw(r.body,t);return r.mclass==="minner"?a=new Gi("mpadded",s):r.mclass==="mord"?r.isCharacterBox?(a=s[0],a.type="mi"):a=new Gi("mi",s):(r.isCharacterBox?(a=s[0],a.type="mo"):a=new Gi("mo",s),r.mclass==="mbin"?(a.attributes.lspace="0.22em",a.attributes.rspace="0.22em"):r.mclass==="mpunct"?(a.attributes.lspace="0em",a.attributes.rspace="0.17em"):(r.mclass==="mopen"||r.mclass==="mclose")&&(a.attributes.lspace="0em",a.attributes.rspace="0em")),a}function pAn(r,t,a){var s=fAn[r];switch(s){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return a.callFunction(s,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var l=a.callFunction("\\\\cdleft",[t[0]],[]),h={type:"atom",text:s,mode:"math",family:"rel"},f=a.callFunction("\\Big",[h],[]),d=a.callFunction("\\\\cdright",[t[1]],[]),m={type:"ordgroup",mode:"math",body:[l,f,d]};return a.callFunction("\\\\cdparent",[m],[])}case"\\\\cdlongequal":return a.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var b={type:"textord",text:"\\Vert",mode:"math"};return a.callFunction("\\Big",[b],[])}default:return{type:"textord",text:" ",mode:"math"}}}function gAn(r){var t=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){t.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var a=r.fetch().text;if(a==="&"||a==="\\\\")r.consume();else if(a==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Bi("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var s=[],l=[s],h=0;h<t.length;h++){for(var f=t[h],d=Vor(),m=0;m<f.length;m++)if(!Wor(f[m]))d.body.push(f[m]);else{s.push(d),m+=1;var b=Xbe(f[m]).text,v=new Array(2);if(v[0]={type:"ordgroup",mode:"math",body:[]},v[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(b))if("<>AV".includes(b))for(var T=0;T<2;T++){for(var C=!0,E=m+1;E<f.length;E++){if(dAn(f[E],b)){C=!1,m=E;break}if(Wor(f[E]))throw new Bi("Missing a "+b+" character to complete a CD arrow.",f[E]);v[T].body.push(f[E])}if(C)throw new Bi("Missing a "+b+" character to complete a CD arrow.",f[m])}else throw new Bi('Expected one of "<>AV=|." after @',f[m]);var S=pAn(b,v,r),R={type:"styling",body:[S],mode:"math",style:"display",resetFont:!0};s.push(R),d=Vor()}h%2===0?s.push(d):s.shift(),s=[],l.push(s)}r.gullet.endGroup(),r.gullet.endGroup();var L=new Array(l[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:l,arraystretch:1,addJot:!0,rowGaps:[null],cols:L,colSeparationType:"CD",hLinesBeforeRow:new Array(l.length+1).fill([])}}function qor(r){return"isMiddle"in r}function Qbe(r,t){var a=Kbe(r);if(a&&RAn.has(a.text))return a;throw a?new Bi("Invalid delimiter '"+a.text+"' after '"+t.funcName+"'",r):new Bi("Invalid delimiter type '"+r.type+"'",r)}function Yor(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function YE(r){for(var t=r.type,a=r.names,s=r.props,l=r.handler,h=r.htmlBuilder,f=r.mathmlBuilder,d={type:t,numArgs:s.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:l},m=0;m<a.length;++m)jlr[a[m]]=d;h&&(nte[t]=h),f&&(ite[t]=f)}function bt(r,t){zlr[r]=t}function Xor(r){var t=[];r.consumeSpaces();var a=r.fetch().text;for(a==="\\relax"&&(r.consume(),r.consumeSpaces(),a=r.fetch().text);a==="\\hline"||a==="\\hdashline";)r.consume(),t.push(a==="\\hdashline"),r.consumeSpaces(),a=r.fetch().text;return t}function Rqe(r){if(!r.includes("ed"))return!r.includes("*")}function $L(r,t,a){var s=t.hskipBeforeAndAfter,l=t.addJot,h=t.cols,f=t.arraystretch,d=t.colSeparationType,m=t.autoTag,b=t.singleRow,v=t.emptySingleRow,T=t.maxNumCols,C=t.leqno;if(r.gullet.beginGroup(),b||r.gullet.macros.set("\\cr","\\\\\\relax"),!f){var E=r.gullet.expandMacroAsText("\\arraystretch");if(E==null)f=1;else if(f=parseFloat(E),!f||f<0)throw new Bi("Invalid \\arraystretch: "+E)}r.gullet.beginGroup();var S=[],R=[S],L=[],_=[],I=m!=null?[]:void 0;function N(){m&&r.gullet.macros.set("\\@eqnsw","1",!0)}i(N,"beginRow");function B(){I&&(r.gullet.macros.get("\\df@tag")?(I.push(r.subparse([new Hw("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):I.push(!!m&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(i(B,"endRow"),N(),_.push(Xor(r));;){var O=r.parseExpression(!1,b?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup();var P={type:"ordgroup",mode:r.mode,body:O};a&&(P={type:"styling",mode:r.mode,style:a,resetFont:!0,body:[P]}),S.push(P);var $=r.fetch().text;if($==="&"){if(T&&S.length===T){if(b||d)throw new Bi("Too many tab characters: &",r.nextToken);n2({strict:r.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}r.consume()}else if($==="\\end"){B(),S.length===1&&P.type==="styling"&&P.body.length===1&&P.body[0].type==="ordgroup"&&P.body[0].body.length===0&&(R.length>1||!v)&&!Array.isArray(I?.[I.length-1])&&!(m&&I?.[I.length-1]===!0)&&R.pop(),_.length<R.length+1&&_.push([]);break}else if($==="\\\\"){r.consume();var V=void 0;r.gullet.future().text!==" "&&(V=r.parseSizeGroup(!0)),L.push(V?V.value:null),B(),_.push(Xor(r)),S=[],R.push(S),N()}else throw new Bi("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:l,arraystretch:f,body:R,cols:h,rowGaps:L,hskipBeforeAndAfter:s,hLinesBeforeRow:_,colSeparationType:d,tags:I,leqno:C}}function Lqe(r){return r.slice(0,1)==="d"?"display":"text"}function Jlr(r,t,a){for(var s=k0(r,t,!1),l=t.sizeMultiplier/a.sizeMultiplier,h=0;h<s.length;h++){var f=s[h].classes.indexOf("katex-sizing");f<0?Array.prototype.push.apply(s[h].classes,t.sizingClasses(a)):s[h].classes[f+1]==="reset-size"+t.size&&(s[h].classes[f+1]="reset-size"+a.size),s[h].height*=l,s[h].depth*=l}return wA(s)}function UAn(r){return r in gqe}var Bi,e6n,t6n,r6n,n6n,cy,Pbe,i6n,bA,a6n,Fbe,ete,VE,vqe,$be,vz,yA,tte,OT,wz,Tb,WE,c6n,u6n,h6n,f6n,d6n,p6n,Xo,ZHe,Bbe,T0,bz,m6n,y6n,b6n,v6n,w6n,x6n,T6n,k6n,C6n,_or,E6n,NL,eqe,A6n,plr,Md,Ji,OL,wqe,glr,mlr,R6n,ylr,PL,xz,tqe,L6n,kb,b4,qE,rte,I6n,HE,GHe,Dor,jHe,Kf,Ne,wi,Je,Jt,Jf,Fa,Cb,Cz,no,Ng,qw,ote,rr,vA,Tr,vlr,Ior,zHe,Abe,Mor,UHe,Rbe,Gbe,Kee,Lbe,Lo,Dd,ly,gA,IL,rqe,Jee,_be,nqe,Nor,Oor,N6n,eO,Por,Bor,For,iqe,aqe,$or,sqe,Gor,O6n,P6n,Wbe,xb,Tqe,B6n,Hbe,F6n,wlr,kqe,Ii,BL,Tz,$6n,wA,kz,G6n,Su,xlr,Dbe,oqe,Tlr,klr,Id,ZN,mA,j6n,z6n,Clr,nte,ite,ate,Mg,U6n,V6n,W6n,H6n,k0,lqe,Elr,cqe,uqe,ste,ou,Gi,gp,jbe,q6n,Y6n,PT,Cqe,X6n,Eqe,Yw,FL,Th,K6n,zor,Uor,zbe,Alr,Rlr,J6n,Q6n,Z6n,qbe,eAn,tAn,Ybe,rAn,nAn,iAn,aAn,sAn,Llr,_lr,lAn,cAn,Mbe,Jbe,fAn,Vor,Wor,dAn,mAn,yAn,fqe,Dlr,bAn,Ilr,Qee,Aqe,Mlr,vAn,wAn,Nlr,WHe,HHe,dqe,Nbe,xAn,TAn,Olr,qHe,YHe,XHe,kAn,Plr,CAn,Blr,Zee,Flr,EAn,SAn,$lr,AAn,Glr,pqe,KHe,Hor,RAn,LAn,_An,jlr,zlr,r2,Hw,Zbe,DAn,XE,IAn,KE,Ulr,Kor,MAn,NAn,Jor,OAn,PAn,Vlr,Qor,Zor,Wlr,BAn,JHe,elr,Hlr,qlr,Ylr,FAn,$An,GAn,Xlr,jAn,Klr,tlr,zAn,gqe,VAn,Qlr,rlr,nlr,ilr,alr,slr,WAn,olr,llr,ML,Zlr,HAn,qAn,YAn,XAn,mqe,KAn,JAn,Ube,yqe,QAn,clr,_qe,ulr,ZAn,Dqe,ecr,tcr,rcr,bqe,hlr,Obe,QHe,flr,Vbe,Iqe,Mqe,ncr,icr,acr,eve,scr,ocr,lcr,e8n,ucr=ae(()=>{"use strict";Bi=class r extends Error{static{i(this,"ParseError")}constructor(t,a){var s="KaTeX parse error: "+t,l,h,f=a&&a.loc;if(f&&f.start<=f.end){var d=f.lexer.input;l=f.start,h=f.end,l===d.length?s+=" at end of input: ":s+=" at position "+(l+1)+": ";var m=d.slice(l,h).replace(/[^]/g,"$&\u0332"),b;l>15?b="\u2026"+d.slice(l-15,l):b=d.slice(0,l);var v;h+15<d.length?v=d.slice(h,h+15)+"\u2026":v=d.slice(h),s+=b+m+v}super(s),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,r.prototype),this.position=l,l!=null&&h!=null&&(this.length=h-l),this.rawMessage=t}},e6n=/([A-Z])/g,t6n=i(r=>r.replace(e6n,"-$1").toLowerCase(),"hyphenate"),r6n={"&":"&",">":">","<":"<",'"':""","'":"'"},n6n=/[&><"']/g,cy=i(r=>String(r).replace(n6n,t=>r6n[t]),"escape"),Pbe=i(r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?Pbe(r.body[0]):r:r.type==="font"?Pbe(r.body):r,"getBaseElem"),i6n=new Set(["mathord","textord","atom"]),bA=i(r=>i6n.has(Pbe(r).type),"isCharacterBox"),a6n=i(r=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(r);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},"protocolFromUrl"),Fbe={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:i(r=>"#"+r,"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:i((r,t)=>(t.push(r),t),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:i(r=>Math.max(0,r),"processor"),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:i(r=>Math.max(0,r),"processor"),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:i(r=>Math.max(0,r),"processor"),cli:"-e, --max-expand <n>",cliProcessor:i(r=>r==="Infinity"?1/0:parseInt(r),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};i(s6n,"getImplicitDefault");i(o6n,"getDefaultValue");i(l6n,"applySetting");ete=class{static{i(this,"Settings")}constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var a of Object.keys(Fbe)){var s=Fbe[a];s&&l6n(this,a,t,s)}}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var a=a6n(t.url);if(a==null)return!1;t.protocol=a}var s=typeof this.trust=="function"?this.trust(t):this.trust;return!!s}},VE=class{static{i(this,"Style")}constructor(t,a,s){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=a,this.cramped=s}sup(){return WE[c6n[this.id]]}sub(){return WE[u6n[this.id]]}fracNum(){return WE[h6n[this.id]]}fracDen(){return WE[f6n[this.id]]}cramp(){return WE[d6n[this.id]]}text(){return WE[p6n[this.id]]}isTight(){return this.size>=2}},vqe=0,$be=1,vz=2,yA=3,tte=4,OT=5,wz=6,Tb=7,WE=[new VE(vqe,0,!1),new VE($be,0,!0),new VE(vz,1,!1),new VE(yA,1,!0),new VE(tte,2,!1),new VE(OT,2,!0),new VE(wz,3,!1),new VE(Tb,3,!0)],c6n=[tte,OT,tte,OT,wz,Tb,wz,Tb],u6n=[OT,OT,OT,OT,Tb,Tb,Tb,Tb],h6n=[vz,yA,tte,OT,wz,Tb,wz,Tb],f6n=[yA,yA,OT,OT,Tb,Tb,Tb,Tb],d6n=[$be,$be,yA,yA,OT,OT,Tb,Tb],p6n=[vqe,$be,vz,yA,vz,yA,vz,yA],Xo={DISPLAY:WE[vqe],TEXT:WE[vz],SCRIPT:WE[tte],SCRIPTSCRIPT:WE[wz]},ZHe=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];i(g6n,"scriptFromCodepoint");Bbe=[];ZHe.forEach(r=>r.blocks.forEach(t=>Bbe.push(...t)));i(dlr,"supportedCodepoint");T0=i(r=>r+" "+r,"doubleBrushStroke"),bz=80,m6n=i(function(t,a){return"M95,"+(622+t+a)+`
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
l`+t/2.075+" -"+t+`
|
|
c5.3,-9.3,12,-14,20,-14
|
|
H400000v`+(40+t)+`H845.2724
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
M`+(834+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},"sqrtMain"),y6n=i(function(t,a){return"M263,"+(601+t+a)+`c0.7,0,18,39.7,52,119
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
l`+t/2.084+" -"+t+`
|
|
c4.7,-7.3,11,-11,19,-11
|
|
H40000v`+(40+t)+`H1012.3
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
M`+(1001+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},"sqrtSize1"),b6n=i(function(t,a){return"M983 "+(10+t+a)+`
|
|
l`+t/3.13+" -"+t+`
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
M`+(1001+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},"sqrtSize2"),v6n=i(function(t,a){return"M424,"+(2398+t+a)+`
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
v`+(40+t)+`H1014.6
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
c-2,6,-10,9,-24,9
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+a+`
|
|
h400000v`+(40+t)+"h-400000z"},"sqrtSize3"),w6n=i(function(t,a){return"M473,"+(2713+t+a)+`
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
606zM`+(1001+t)+" "+a+"h400000v"+(40+t)+"H1017.7z"},"sqrtSize4"),x6n=i(function(t){var a=t/2;return"M400000 "+t+" H0 L"+a+" 0 l65 45 L145 "+(t-80)+" H400000z"},"phasePath"),T6n=i(function(t,a,s){var l=s-54-a-t;return"M702 "+(t+a)+"H400000"+(40+t)+`
|
|
H742v`+l+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
219 661 l218 661zM702 `+a+"H400000v"+(40+t)+"H742z"},"sqrtTall"),k6n=i(function(t,a,s){a=1e3*a;var l="";switch(t){case"sqrtMain":l=m6n(a,bz);break;case"sqrtSize1":l=y6n(a,bz);break;case"sqrtSize2":l=b6n(a,bz);break;case"sqrtSize3":l=v6n(a,bz);break;case"sqrtSize4":l=w6n(a,bz);break;case"sqrtTall":l=T6n(a,bz,s)}return l},"sqrtPath"),C6n=i(function(t,a){switch(t){case"\u239C":return T0("M291 0 H417 V"+a+" H291z");case"\u2223":return T0("M145 0 H188 V"+a+" H145z");case"\u2225":return T0("M145 0 H188 V"+a+" H145z")+T0("M367 0 H410 V"+a+" H367z");case"\u239F":return T0("M457 0 H583 V"+a+" H457z");case"\u23A2":return T0("M319 0 H403 V"+a+" H319z");case"\u23A5":return T0("M263 0 H347 V"+a+" H263z");case"\u23AA":return T0("M384 0 H504 V"+a+" H384z");case"\u23D0":return T0("M312 0 H355 V"+a+" H312z");case"\u2016":return T0("M257 0 H300 V"+a+" H257z")+T0("M478 0 H521 V"+a+" H478z");default:return""}},"innerPath"),_or={doubleleftarrow:`M262 157
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:T0("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:T0("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:T0("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:T0("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:T0("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:T0("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:T0("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:T0("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},E6n=i(function(t,a){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 v84 h347 v-84
|
|
H403z M403 1759 V0 H319 V1759 v`+a+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z
|
|
M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+" v585 h43z";case"doublevert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+` v585 h43z
|
|
M367 15 v585 v`+a+` v585 c2.667,10,9.667,15,21,15
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+a+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+a+` v1715 h263 v84 H319z
|
|
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+a+` v1799 H0 v-84 H319z
|
|
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v602 h84z
|
|
M403 1759 V0 H319 V1759 v`+a+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v602 h84z
|
|
M347 1759 V0 h-84 V1759 v`+a+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
-36,557 l0,`+(a+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
l0,-`+(a+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(a+9)+`
|
|
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim");i(S6n,"isMathDomNode");NL=class{static{i(this,"DocumentFragment")}constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t}toMarkup(){for(var t="",a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t}toText(){return this.children.map(t=>{if(S6n(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}},eqe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},A6n={ex:!0,em:!0,mu:!0},plr=i(function(t){return typeof t!="string"&&(t=t.unit),t in eqe||t in A6n||t==="ex"},"validUnit"),Md=i(function(t,a){var s;if(t.unit in eqe)s=eqe[t.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(t.unit==="mu")s=a.fontMetrics().cssEmPerMu;else{var l;if(a.style.isTight()?l=a.havingStyle(a.style.text()):l=a,t.unit==="ex")s=l.fontMetrics().xHeight;else if(t.unit==="em")s=l.fontMetrics().quad;else throw new Bi("Invalid unit: '"+t.unit+"'");l!==a&&(s*=l.sizeMultiplier/a.sizeMultiplier)}return Math.min(t.number*s,a.maxSize)},"calculateSize"),Ji=i(function(t){return+t.toFixed(4)+"em"},"makeEm"),OL=i(function(t){return t.filter(a=>a).join(" ")},"createClass"),wqe=i(function(t){var a="";for(var s of Object.keys(t)){var l=t[s];l!==void 0&&(a+=t6n(s)+":"+l+";")}return a},"cssStyleToString"),glr=i(function(t,a,s){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=s||{},a){a.style.isTight()&&this.classes.push("mtight");var l=a.getColor();l&&(this.style.color=l)}},"initNode"),mlr=i(function(t){var a=document.createElement(t);a.className=OL(this.classes),Object.assign(a.style,this.style);for(var s of Object.keys(this.attributes))a.setAttribute(s,this.attributes[s]);for(var l=0;l<this.children.length;l++)a.appendChild(this.children[l].toNode());return a},"toNode"),R6n=/[\s"'>/=\x00-\x1f]/,ylr=i(function(t){var a="<"+t;this.classes.length&&(a+=' class="'+cy(OL(this.classes))+'"');var s=wqe(this.style);s&&(a+=' style="'+cy(s)+'"');for(var l of Object.keys(this.attributes)){if(R6n.test(l))throw new Bi("Invalid attribute name '"+l+"'");a+=" "+l+'="'+cy(this.attributes[l])+'"'}a+=">";for(var h=0;h<this.children.length;h++)a+=this.children[h].toMarkup();return a+="</"+t+">",a},"toMarkup"),PL=class{static{i(this,"Span")}constructor(t,a,s,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,glr.call(this,t,s,l),this.children=a||[]}setAttribute(t,a){this.attributes[t]=a}hasClass(t){return this.classes.includes(t)}toNode(){return mlr.call(this,"span")}toMarkup(){return ylr.call(this,"span")}},xz=class{static{i(this,"Anchor")}constructor(t,a,s,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,glr.call(this,a,l),this.children=s||[],this.setAttribute("href",t)}setAttribute(t,a){this.attributes[t]=a}hasClass(t){return this.classes.includes(t)}toNode(){return mlr.call(this,"a")}toMarkup(){return ylr.call(this,"a")}},tqe=class{static{i(this,"Img")}constructor(t,a,s){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=a,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=s}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+cy(this.src)+'"'+(' alt="'+cy(this.alt)+'"'),a=wqe(this.style);return a&&(t+=' style="'+cy(a)+'"'),t+="'/>",t}},L6n={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},kb=class{static{i(this,"SymbolNode")}constructor(t,a,s,l,h,f,d,m){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=a||0,this.depth=s||0,this.italic=l||0,this.skew=h||0,this.width=f||0,this.classes=d||[],this.style=m||{},this.maxFontSize=0;var b=g6n(this.text.charCodeAt(0));b&&this.classes.push(b+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=L6n[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),a=null;return this.italic>0&&(a=document.createElement("span"),a.style.marginRight=Ji(this.italic)),this.classes.length>0&&(a=a||document.createElement("span"),a.className=OL(this.classes)),Object.keys(this.style).length>0&&(a=a||document.createElement("span"),Object.assign(a.style,this.style)),a?(a.appendChild(t),a):t}toMarkup(){var t=!1,a="<span";this.classes.length&&(t=!0,a+=' class="',a+=cy(OL(this.classes)),a+='"');var s="";this.italic>0&&(s+="margin-right:"+Ji(this.italic)+";"),s+=wqe(this.style),s&&(t=!0,a+=' style="'+cy(s)+'"');var l=cy(this.text);return t?(a+=">",a+=l,a+="</span>",a):l}},b4=class{static{i(this,"SvgNode")}constructor(t,a){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=a||{}}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"svg");for(var s of Object.keys(this.attributes))a.setAttribute(s,this.attributes[s]);for(var l=0;l<this.children.length;l++)a.appendChild(this.children[l].toNode());return a}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var a of Object.keys(this.attributes))t+=" "+a+'="'+cy(this.attributes[a])+'"';t+=">";for(var s=0;s<this.children.length;s++)t+=this.children[s].toMarkup();return t+="</svg>",t}},qE=class{static{i(this,"PathNode")}constructor(t,a){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=a}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"path");return this.alternate?a.setAttribute("d",this.alternate):a.setAttribute("d",_or[this.pathName]),a}toMarkup(){return this.alternate?'<path d="'+cy(this.alternate)+'"/>':'<path d="'+cy(_or[this.pathName])+'"/>'}},rte=class{static{i(this,"LineNode")}constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"line");for(var s of Object.keys(this.attributes))a.setAttribute(s,this.attributes[s]);return a}toMarkup(){var t="<line";for(var a of Object.keys(this.attributes))t+=" "+a+'="'+cy(this.attributes[a])+'"';return t+="/>",t}};i(_6n,"assertSymbolDomNode");i(D6n,"assertSpan");I6n=i(r=>r instanceof PL||r instanceof xz||r instanceof NL,"hasHtmlDomChildren"),HE={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},GHe={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Dor={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};i(blr,"setFontMetrics");i(xqe,"getCharacterMetrics");jHe={};i(M6n,"getGlobalMetrics");Kf={math:{},text:{}};i(Le,"defineSymbol");Ne="math",wi="text",Je="main",Jt="ams",Jf="accent-token",Fa="bin",Cb="close",Cz="inner",no="mathord",Ng="op-token",qw="open",ote="punct",rr="rel",vA="spacing",Tr="textord";Le(Ne,Je,rr,"\u2261","\\equiv",!0);Le(Ne,Je,rr,"\u227A","\\prec",!0);Le(Ne,Je,rr,"\u227B","\\succ",!0);Le(Ne,Je,rr,"\u223C","\\sim",!0);Le(Ne,Je,rr,"\u22A5","\\perp");Le(Ne,Je,rr,"\u2AAF","\\preceq",!0);Le(Ne,Je,rr,"\u2AB0","\\succeq",!0);Le(Ne,Je,rr,"\u2243","\\simeq",!0);Le(Ne,Je,rr,"\u2223","\\mid",!0);Le(Ne,Je,rr,"\u226A","\\ll",!0);Le(Ne,Je,rr,"\u226B","\\gg",!0);Le(Ne,Je,rr,"\u224D","\\asymp",!0);Le(Ne,Je,rr,"\u2225","\\parallel");Le(Ne,Je,rr,"\u22C8","\\bowtie",!0);Le(Ne,Je,rr,"\u2323","\\smile",!0);Le(Ne,Je,rr,"\u2291","\\sqsubseteq",!0);Le(Ne,Je,rr,"\u2292","\\sqsupseteq",!0);Le(Ne,Je,rr,"\u2250","\\doteq",!0);Le(Ne,Je,rr,"\u2322","\\frown",!0);Le(Ne,Je,rr,"\u220B","\\ni",!0);Le(Ne,Je,rr,"\u221D","\\propto",!0);Le(Ne,Je,rr,"\u22A2","\\vdash",!0);Le(Ne,Je,rr,"\u22A3","\\dashv",!0);Le(Ne,Je,rr,"\u220B","\\owns");Le(Ne,Je,ote,".","\\ldotp");Le(Ne,Je,ote,"\u22C5","\\cdotp");Le(Ne,Je,ote,"\u22C5","\xB7");Le(wi,Je,Tr,"\u22C5","\xB7");Le(Ne,Je,Tr,"#","\\#");Le(wi,Je,Tr,"#","\\#");Le(Ne,Je,Tr,"&","\\&");Le(wi,Je,Tr,"&","\\&");Le(Ne,Je,Tr,"\u2135","\\aleph",!0);Le(Ne,Je,Tr,"\u2200","\\forall",!0);Le(Ne,Je,Tr,"\u210F","\\hbar",!0);Le(Ne,Je,Tr,"\u2203","\\exists",!0);Le(Ne,Je,Tr,"\u2207","\\nabla",!0);Le(Ne,Je,Tr,"\u266D","\\flat",!0);Le(Ne,Je,Tr,"\u2113","\\ell",!0);Le(Ne,Je,Tr,"\u266E","\\natural",!0);Le(Ne,Je,Tr,"\u2663","\\clubsuit",!0);Le(Ne,Je,Tr,"\u2118","\\wp",!0);Le(Ne,Je,Tr,"\u266F","\\sharp",!0);Le(Ne,Je,Tr,"\u2662","\\diamondsuit",!0);Le(Ne,Je,Tr,"\u211C","\\Re",!0);Le(Ne,Je,Tr,"\u2661","\\heartsuit",!0);Le(Ne,Je,Tr,"\u2111","\\Im",!0);Le(Ne,Je,Tr,"\u2660","\\spadesuit",!0);Le(Ne,Je,Tr,"\xA7","\\S",!0);Le(wi,Je,Tr,"\xA7","\\S");Le(Ne,Je,Tr,"\xB6","\\P",!0);Le(wi,Je,Tr,"\xB6","\\P");Le(Ne,Je,Tr,"\u2020","\\dag");Le(wi,Je,Tr,"\u2020","\\dag");Le(wi,Je,Tr,"\u2020","\\textdagger");Le(Ne,Je,Tr,"\u2021","\\ddag");Le(wi,Je,Tr,"\u2021","\\ddag");Le(wi,Je,Tr,"\u2021","\\textdaggerdbl");Le(Ne,Je,Cb,"\u23B1","\\rmoustache",!0);Le(Ne,Je,qw,"\u23B0","\\lmoustache",!0);Le(Ne,Je,Cb,"\u27EF","\\rgroup",!0);Le(Ne,Je,qw,"\u27EE","\\lgroup",!0);Le(Ne,Je,Fa,"\u2213","\\mp",!0);Le(Ne,Je,Fa,"\u2296","\\ominus",!0);Le(Ne,Je,Fa,"\u228E","\\uplus",!0);Le(Ne,Je,Fa,"\u2293","\\sqcap",!0);Le(Ne,Je,Fa,"\u2217","\\ast");Le(Ne,Je,Fa,"\u2294","\\sqcup",!0);Le(Ne,Je,Fa,"\u25EF","\\bigcirc",!0);Le(Ne,Je,Fa,"\u2219","\\bullet",!0);Le(Ne,Je,Fa,"\u2021","\\ddagger");Le(Ne,Je,Fa,"\u2240","\\wr",!0);Le(Ne,Je,Fa,"\u2A3F","\\amalg");Le(Ne,Je,Fa,"&","\\And");Le(Ne,Je,rr,"\u27F5","\\longleftarrow",!0);Le(Ne,Je,rr,"\u21D0","\\Leftarrow",!0);Le(Ne,Je,rr,"\u27F8","\\Longleftarrow",!0);Le(Ne,Je,rr,"\u27F6","\\longrightarrow",!0);Le(Ne,Je,rr,"\u21D2","\\Rightarrow",!0);Le(Ne,Je,rr,"\u27F9","\\Longrightarrow",!0);Le(Ne,Je,rr,"\u2194","\\leftrightarrow",!0);Le(Ne,Je,rr,"\u27F7","\\longleftrightarrow",!0);Le(Ne,Je,rr,"\u21D4","\\Leftrightarrow",!0);Le(Ne,Je,rr,"\u27FA","\\Longleftrightarrow",!0);Le(Ne,Je,rr,"\u21A6","\\mapsto",!0);Le(Ne,Je,rr,"\u27FC","\\longmapsto",!0);Le(Ne,Je,rr,"\u2197","\\nearrow",!0);Le(Ne,Je,rr,"\u21A9","\\hookleftarrow",!0);Le(Ne,Je,rr,"\u21AA","\\hookrightarrow",!0);Le(Ne,Je,rr,"\u2198","\\searrow",!0);Le(Ne,Je,rr,"\u21BC","\\leftharpoonup",!0);Le(Ne,Je,rr,"\u21C0","\\rightharpoonup",!0);Le(Ne,Je,rr,"\u2199","\\swarrow",!0);Le(Ne,Je,rr,"\u21BD","\\leftharpoondown",!0);Le(Ne,Je,rr,"\u21C1","\\rightharpoondown",!0);Le(Ne,Je,rr,"\u2196","\\nwarrow",!0);Le(Ne,Je,rr,"\u21CC","\\rightleftharpoons",!0);Le(Ne,Jt,rr,"\u226E","\\nless",!0);Le(Ne,Jt,rr,"\uE010","\\@nleqslant");Le(Ne,Jt,rr,"\uE011","\\@nleqq");Le(Ne,Jt,rr,"\u2A87","\\lneq",!0);Le(Ne,Jt,rr,"\u2268","\\lneqq",!0);Le(Ne,Jt,rr,"\uE00C","\\@lvertneqq");Le(Ne,Jt,rr,"\u22E6","\\lnsim",!0);Le(Ne,Jt,rr,"\u2A89","\\lnapprox",!0);Le(Ne,Jt,rr,"\u2280","\\nprec",!0);Le(Ne,Jt,rr,"\u22E0","\\npreceq",!0);Le(Ne,Jt,rr,"\u22E8","\\precnsim",!0);Le(Ne,Jt,rr,"\u2AB9","\\precnapprox",!0);Le(Ne,Jt,rr,"\u2241","\\nsim",!0);Le(Ne,Jt,rr,"\uE006","\\@nshortmid");Le(Ne,Jt,rr,"\u2224","\\nmid",!0);Le(Ne,Jt,rr,"\u22AC","\\nvdash",!0);Le(Ne,Jt,rr,"\u22AD","\\nvDash",!0);Le(Ne,Jt,rr,"\u22EA","\\ntriangleleft");Le(Ne,Jt,rr,"\u22EC","\\ntrianglelefteq",!0);Le(Ne,Jt,rr,"\u228A","\\subsetneq",!0);Le(Ne,Jt,rr,"\uE01A","\\@varsubsetneq");Le(Ne,Jt,rr,"\u2ACB","\\subsetneqq",!0);Le(Ne,Jt,rr,"\uE017","\\@varsubsetneqq");Le(Ne,Jt,rr,"\u226F","\\ngtr",!0);Le(Ne,Jt,rr,"\uE00F","\\@ngeqslant");Le(Ne,Jt,rr,"\uE00E","\\@ngeqq");Le(Ne,Jt,rr,"\u2A88","\\gneq",!0);Le(Ne,Jt,rr,"\u2269","\\gneqq",!0);Le(Ne,Jt,rr,"\uE00D","\\@gvertneqq");Le(Ne,Jt,rr,"\u22E7","\\gnsim",!0);Le(Ne,Jt,rr,"\u2A8A","\\gnapprox",!0);Le(Ne,Jt,rr,"\u2281","\\nsucc",!0);Le(Ne,Jt,rr,"\u22E1","\\nsucceq",!0);Le(Ne,Jt,rr,"\u22E9","\\succnsim",!0);Le(Ne,Jt,rr,"\u2ABA","\\succnapprox",!0);Le(Ne,Jt,rr,"\u2246","\\ncong",!0);Le(Ne,Jt,rr,"\uE007","\\@nshortparallel");Le(Ne,Jt,rr,"\u2226","\\nparallel",!0);Le(Ne,Jt,rr,"\u22AF","\\nVDash",!0);Le(Ne,Jt,rr,"\u22EB","\\ntriangleright");Le(Ne,Jt,rr,"\u22ED","\\ntrianglerighteq",!0);Le(Ne,Jt,rr,"\uE018","\\@nsupseteqq");Le(Ne,Jt,rr,"\u228B","\\supsetneq",!0);Le(Ne,Jt,rr,"\uE01B","\\@varsupsetneq");Le(Ne,Jt,rr,"\u2ACC","\\supsetneqq",!0);Le(Ne,Jt,rr,"\uE019","\\@varsupsetneqq");Le(Ne,Jt,rr,"\u22AE","\\nVdash",!0);Le(Ne,Jt,rr,"\u2AB5","\\precneqq",!0);Le(Ne,Jt,rr,"\u2AB6","\\succneqq",!0);Le(Ne,Jt,rr,"\uE016","\\@nsubseteqq");Le(Ne,Jt,Fa,"\u22B4","\\unlhd");Le(Ne,Jt,Fa,"\u22B5","\\unrhd");Le(Ne,Jt,rr,"\u219A","\\nleftarrow",!0);Le(Ne,Jt,rr,"\u219B","\\nrightarrow",!0);Le(Ne,Jt,rr,"\u21CD","\\nLeftarrow",!0);Le(Ne,Jt,rr,"\u21CF","\\nRightarrow",!0);Le(Ne,Jt,rr,"\u21AE","\\nleftrightarrow",!0);Le(Ne,Jt,rr,"\u21CE","\\nLeftrightarrow",!0);Le(Ne,Jt,rr,"\u25B3","\\vartriangle");Le(Ne,Jt,Tr,"\u210F","\\hslash");Le(Ne,Jt,Tr,"\u25BD","\\triangledown");Le(Ne,Jt,Tr,"\u25CA","\\lozenge");Le(Ne,Jt,Tr,"\u24C8","\\circledS");Le(Ne,Jt,Tr,"\xAE","\\circledR");Le(wi,Jt,Tr,"\xAE","\\circledR");Le(Ne,Jt,Tr,"\u2221","\\measuredangle",!0);Le(Ne,Jt,Tr,"\u2204","\\nexists");Le(Ne,Jt,Tr,"\u2127","\\mho");Le(Ne,Jt,Tr,"\u2132","\\Finv",!0);Le(Ne,Jt,Tr,"\u2141","\\Game",!0);Le(Ne,Jt,Tr,"\u2035","\\backprime");Le(Ne,Jt,Tr,"\u25B2","\\blacktriangle");Le(Ne,Jt,Tr,"\u25BC","\\blacktriangledown");Le(Ne,Jt,Tr,"\u25A0","\\blacksquare");Le(Ne,Jt,Tr,"\u29EB","\\blacklozenge");Le(Ne,Jt,Tr,"\u2605","\\bigstar");Le(Ne,Jt,Tr,"\u2222","\\sphericalangle",!0);Le(Ne,Jt,Tr,"\u2201","\\complement",!0);Le(Ne,Jt,Tr,"\xF0","\\eth",!0);Le(wi,Je,Tr,"\xF0","\xF0");Le(Ne,Jt,Tr,"\u2571","\\diagup");Le(Ne,Jt,Tr,"\u2572","\\diagdown");Le(Ne,Jt,Tr,"\u25A1","\\square");Le(Ne,Jt,Tr,"\u25A1","\\Box");Le(Ne,Jt,Tr,"\u25CA","\\Diamond");Le(Ne,Jt,Tr,"\xA5","\\yen",!0);Le(wi,Jt,Tr,"\xA5","\\yen",!0);Le(Ne,Jt,Tr,"\u2713","\\checkmark",!0);Le(wi,Jt,Tr,"\u2713","\\checkmark");Le(Ne,Jt,Tr,"\u2136","\\beth",!0);Le(Ne,Jt,Tr,"\u2138","\\daleth",!0);Le(Ne,Jt,Tr,"\u2137","\\gimel",!0);Le(Ne,Jt,Tr,"\u03DD","\\digamma",!0);Le(Ne,Jt,Tr,"\u03F0","\\varkappa");Le(Ne,Jt,qw,"\u250C","\\@ulcorner",!0);Le(Ne,Jt,Cb,"\u2510","\\@urcorner",!0);Le(Ne,Jt,qw,"\u2514","\\@llcorner",!0);Le(Ne,Jt,Cb,"\u2518","\\@lrcorner",!0);Le(Ne,Jt,rr,"\u2266","\\leqq",!0);Le(Ne,Jt,rr,"\u2A7D","\\leqslant",!0);Le(Ne,Jt,rr,"\u2A95","\\eqslantless",!0);Le(Ne,Jt,rr,"\u2272","\\lesssim",!0);Le(Ne,Jt,rr,"\u2A85","\\lessapprox",!0);Le(Ne,Jt,rr,"\u224A","\\approxeq",!0);Le(Ne,Jt,Fa,"\u22D6","\\lessdot");Le(Ne,Jt,rr,"\u22D8","\\lll",!0);Le(Ne,Jt,rr,"\u2276","\\lessgtr",!0);Le(Ne,Jt,rr,"\u22DA","\\lesseqgtr",!0);Le(Ne,Jt,rr,"\u2A8B","\\lesseqqgtr",!0);Le(Ne,Jt,rr,"\u2251","\\doteqdot");Le(Ne,Jt,rr,"\u2253","\\risingdotseq",!0);Le(Ne,Jt,rr,"\u2252","\\fallingdotseq",!0);Le(Ne,Jt,rr,"\u223D","\\backsim",!0);Le(Ne,Jt,rr,"\u22CD","\\backsimeq",!0);Le(Ne,Jt,rr,"\u2AC5","\\subseteqq",!0);Le(Ne,Jt,rr,"\u22D0","\\Subset",!0);Le(Ne,Jt,rr,"\u228F","\\sqsubset",!0);Le(Ne,Jt,rr,"\u227C","\\preccurlyeq",!0);Le(Ne,Jt,rr,"\u22DE","\\curlyeqprec",!0);Le(Ne,Jt,rr,"\u227E","\\precsim",!0);Le(Ne,Jt,rr,"\u2AB7","\\precapprox",!0);Le(Ne,Jt,rr,"\u22B2","\\vartriangleleft");Le(Ne,Jt,rr,"\u22B4","\\trianglelefteq");Le(Ne,Jt,rr,"\u22A8","\\vDash",!0);Le(Ne,Jt,rr,"\u22AA","\\Vvdash",!0);Le(Ne,Jt,rr,"\u2323","\\smallsmile");Le(Ne,Jt,rr,"\u2322","\\smallfrown");Le(Ne,Jt,rr,"\u224F","\\bumpeq",!0);Le(Ne,Jt,rr,"\u224E","\\Bumpeq",!0);Le(Ne,Jt,rr,"\u2267","\\geqq",!0);Le(Ne,Jt,rr,"\u2A7E","\\geqslant",!0);Le(Ne,Jt,rr,"\u2A96","\\eqslantgtr",!0);Le(Ne,Jt,rr,"\u2273","\\gtrsim",!0);Le(Ne,Jt,rr,"\u2A86","\\gtrapprox",!0);Le(Ne,Jt,Fa,"\u22D7","\\gtrdot");Le(Ne,Jt,rr,"\u22D9","\\ggg",!0);Le(Ne,Jt,rr,"\u2277","\\gtrless",!0);Le(Ne,Jt,rr,"\u22DB","\\gtreqless",!0);Le(Ne,Jt,rr,"\u2A8C","\\gtreqqless",!0);Le(Ne,Jt,rr,"\u2256","\\eqcirc",!0);Le(Ne,Jt,rr,"\u2257","\\circeq",!0);Le(Ne,Jt,rr,"\u225C","\\triangleq",!0);Le(Ne,Jt,rr,"\u223C","\\thicksim");Le(Ne,Jt,rr,"\u2248","\\thickapprox");Le(Ne,Jt,rr,"\u2AC6","\\supseteqq",!0);Le(Ne,Jt,rr,"\u22D1","\\Supset",!0);Le(Ne,Jt,rr,"\u2290","\\sqsupset",!0);Le(Ne,Jt,rr,"\u227D","\\succcurlyeq",!0);Le(Ne,Jt,rr,"\u22DF","\\curlyeqsucc",!0);Le(Ne,Jt,rr,"\u227F","\\succsim",!0);Le(Ne,Jt,rr,"\u2AB8","\\succapprox",!0);Le(Ne,Jt,rr,"\u22B3","\\vartriangleright");Le(Ne,Jt,rr,"\u22B5","\\trianglerighteq");Le(Ne,Jt,rr,"\u22A9","\\Vdash",!0);Le(Ne,Jt,rr,"\u2223","\\shortmid");Le(Ne,Jt,rr,"\u2225","\\shortparallel");Le(Ne,Jt,rr,"\u226C","\\between",!0);Le(Ne,Jt,rr,"\u22D4","\\pitchfork",!0);Le(Ne,Jt,rr,"\u221D","\\varpropto");Le(Ne,Jt,rr,"\u25C0","\\blacktriangleleft");Le(Ne,Jt,rr,"\u2234","\\therefore",!0);Le(Ne,Jt,rr,"\u220D","\\backepsilon");Le(Ne,Jt,rr,"\u25B6","\\blacktriangleright");Le(Ne,Jt,rr,"\u2235","\\because",!0);Le(Ne,Jt,rr,"\u22D8","\\llless");Le(Ne,Jt,rr,"\u22D9","\\gggtr");Le(Ne,Jt,Fa,"\u22B2","\\lhd");Le(Ne,Jt,Fa,"\u22B3","\\rhd");Le(Ne,Jt,rr,"\u2242","\\eqsim",!0);Le(Ne,Je,rr,"\u22C8","\\Join");Le(Ne,Jt,rr,"\u2251","\\Doteq",!0);Le(Ne,Jt,Fa,"\u2214","\\dotplus",!0);Le(Ne,Jt,Fa,"\u2216","\\smallsetminus");Le(Ne,Jt,Fa,"\u22D2","\\Cap",!0);Le(Ne,Jt,Fa,"\u22D3","\\Cup",!0);Le(Ne,Jt,Fa,"\u2A5E","\\doublebarwedge",!0);Le(Ne,Jt,Fa,"\u229F","\\boxminus",!0);Le(Ne,Jt,Fa,"\u229E","\\boxplus",!0);Le(Ne,Jt,Fa,"\u22C7","\\divideontimes",!0);Le(Ne,Jt,Fa,"\u22C9","\\ltimes",!0);Le(Ne,Jt,Fa,"\u22CA","\\rtimes",!0);Le(Ne,Jt,Fa,"\u22CB","\\leftthreetimes",!0);Le(Ne,Jt,Fa,"\u22CC","\\rightthreetimes",!0);Le(Ne,Jt,Fa,"\u22CF","\\curlywedge",!0);Le(Ne,Jt,Fa,"\u22CE","\\curlyvee",!0);Le(Ne,Jt,Fa,"\u229D","\\circleddash",!0);Le(Ne,Jt,Fa,"\u229B","\\circledast",!0);Le(Ne,Jt,Fa,"\u22C5","\\centerdot");Le(Ne,Jt,Fa,"\u22BA","\\intercal",!0);Le(Ne,Jt,Fa,"\u22D2","\\doublecap");Le(Ne,Jt,Fa,"\u22D3","\\doublecup");Le(Ne,Jt,Fa,"\u22A0","\\boxtimes",!0);Le(Ne,Jt,rr,"\u21E2","\\dashrightarrow",!0);Le(Ne,Jt,rr,"\u21E0","\\dashleftarrow",!0);Le(Ne,Jt,rr,"\u21C7","\\leftleftarrows",!0);Le(Ne,Jt,rr,"\u21C6","\\leftrightarrows",!0);Le(Ne,Jt,rr,"\u21DA","\\Lleftarrow",!0);Le(Ne,Jt,rr,"\u219E","\\twoheadleftarrow",!0);Le(Ne,Jt,rr,"\u21A2","\\leftarrowtail",!0);Le(Ne,Jt,rr,"\u21AB","\\looparrowleft",!0);Le(Ne,Jt,rr,"\u21CB","\\leftrightharpoons",!0);Le(Ne,Jt,rr,"\u21B6","\\curvearrowleft",!0);Le(Ne,Jt,rr,"\u21BA","\\circlearrowleft",!0);Le(Ne,Jt,rr,"\u21B0","\\Lsh",!0);Le(Ne,Jt,rr,"\u21C8","\\upuparrows",!0);Le(Ne,Jt,rr,"\u21BF","\\upharpoonleft",!0);Le(Ne,Jt,rr,"\u21C3","\\downharpoonleft",!0);Le(Ne,Je,rr,"\u22B6","\\origof",!0);Le(Ne,Je,rr,"\u22B7","\\imageof",!0);Le(Ne,Jt,rr,"\u22B8","\\multimap",!0);Le(Ne,Jt,rr,"\u21AD","\\leftrightsquigarrow",!0);Le(Ne,Jt,rr,"\u21C9","\\rightrightarrows",!0);Le(Ne,Jt,rr,"\u21C4","\\rightleftarrows",!0);Le(Ne,Jt,rr,"\u21A0","\\twoheadrightarrow",!0);Le(Ne,Jt,rr,"\u21A3","\\rightarrowtail",!0);Le(Ne,Jt,rr,"\u21AC","\\looparrowright",!0);Le(Ne,Jt,rr,"\u21B7","\\curvearrowright",!0);Le(Ne,Jt,rr,"\u21BB","\\circlearrowright",!0);Le(Ne,Jt,rr,"\u21B1","\\Rsh",!0);Le(Ne,Jt,rr,"\u21CA","\\downdownarrows",!0);Le(Ne,Jt,rr,"\u21BE","\\upharpoonright",!0);Le(Ne,Jt,rr,"\u21C2","\\downharpoonright",!0);Le(Ne,Jt,rr,"\u21DD","\\rightsquigarrow",!0);Le(Ne,Jt,rr,"\u21DD","\\leadsto");Le(Ne,Jt,rr,"\u21DB","\\Rrightarrow",!0);Le(Ne,Jt,rr,"\u21BE","\\restriction");Le(Ne,Je,Tr,"\u2018","`");Le(Ne,Je,Tr,"$","\\$");Le(wi,Je,Tr,"$","\\$");Le(wi,Je,Tr,"$","\\textdollar");Le(Ne,Je,Tr,"%","\\%");Le(wi,Je,Tr,"%","\\%");Le(Ne,Je,Tr,"_","\\_");Le(wi,Je,Tr,"_","\\_");Le(wi,Je,Tr,"_","\\textunderscore");Le(Ne,Je,Tr,"\u2220","\\angle",!0);Le(Ne,Je,Tr,"\u221E","\\infty",!0);Le(Ne,Je,Tr,"\u2032","\\prime");Le(Ne,Je,Tr,"\u25B3","\\triangle");Le(Ne,Je,Tr,"\u0393","\\Gamma",!0);Le(Ne,Je,Tr,"\u0394","\\Delta",!0);Le(Ne,Je,Tr,"\u0398","\\Theta",!0);Le(Ne,Je,Tr,"\u039B","\\Lambda",!0);Le(Ne,Je,Tr,"\u039E","\\Xi",!0);Le(Ne,Je,Tr,"\u03A0","\\Pi",!0);Le(Ne,Je,Tr,"\u03A3","\\Sigma",!0);Le(Ne,Je,Tr,"\u03A5","\\Upsilon",!0);Le(Ne,Je,Tr,"\u03A6","\\Phi",!0);Le(Ne,Je,Tr,"\u03A8","\\Psi",!0);Le(Ne,Je,Tr,"\u03A9","\\Omega",!0);Le(Ne,Je,Tr,"A","\u0391");Le(Ne,Je,Tr,"B","\u0392");Le(Ne,Je,Tr,"E","\u0395");Le(Ne,Je,Tr,"Z","\u0396");Le(Ne,Je,Tr,"H","\u0397");Le(Ne,Je,Tr,"I","\u0399");Le(Ne,Je,Tr,"K","\u039A");Le(Ne,Je,Tr,"M","\u039C");Le(Ne,Je,Tr,"N","\u039D");Le(Ne,Je,Tr,"O","\u039F");Le(Ne,Je,Tr,"P","\u03A1");Le(Ne,Je,Tr,"T","\u03A4");Le(Ne,Je,Tr,"X","\u03A7");Le(Ne,Je,Tr,"\xAC","\\neg",!0);Le(Ne,Je,Tr,"\xAC","\\lnot");Le(Ne,Je,Tr,"\u22A4","\\top");Le(Ne,Je,Tr,"\u22A5","\\bot");Le(Ne,Je,Tr,"\u2205","\\emptyset");Le(Ne,Jt,Tr,"\u2205","\\varnothing");Le(Ne,Je,no,"\u03B1","\\alpha",!0);Le(Ne,Je,no,"\u03B2","\\beta",!0);Le(Ne,Je,no,"\u03B3","\\gamma",!0);Le(Ne,Je,no,"\u03B4","\\delta",!0);Le(Ne,Je,no,"\u03F5","\\epsilon",!0);Le(Ne,Je,no,"\u03B6","\\zeta",!0);Le(Ne,Je,no,"\u03B7","\\eta",!0);Le(Ne,Je,no,"\u03B8","\\theta",!0);Le(Ne,Je,no,"\u03B9","\\iota",!0);Le(Ne,Je,no,"\u03BA","\\kappa",!0);Le(Ne,Je,no,"\u03BB","\\lambda",!0);Le(Ne,Je,no,"\u03BC","\\mu",!0);Le(Ne,Je,no,"\u03BD","\\nu",!0);Le(Ne,Je,no,"\u03BE","\\xi",!0);Le(Ne,Je,no,"\u03BF","\\omicron",!0);Le(Ne,Je,no,"\u03C0","\\pi",!0);Le(Ne,Je,no,"\u03C1","\\rho",!0);Le(Ne,Je,no,"\u03C3","\\sigma",!0);Le(Ne,Je,no,"\u03C4","\\tau",!0);Le(Ne,Je,no,"\u03C5","\\upsilon",!0);Le(Ne,Je,no,"\u03D5","\\phi",!0);Le(Ne,Je,no,"\u03C7","\\chi",!0);Le(Ne,Je,no,"\u03C8","\\psi",!0);Le(Ne,Je,no,"\u03C9","\\omega",!0);Le(Ne,Je,no,"\u03B5","\\varepsilon",!0);Le(Ne,Je,no,"\u03D1","\\vartheta",!0);Le(Ne,Je,no,"\u03D6","\\varpi",!0);Le(Ne,Je,no,"\u03F1","\\varrho",!0);Le(Ne,Je,no,"\u03C2","\\varsigma",!0);Le(Ne,Je,no,"\u03C6","\\varphi",!0);Le(Ne,Je,Fa,"\u2217","*",!0);Le(Ne,Je,Fa,"+","+");Le(Ne,Je,Fa,"\u2212","-",!0);Le(Ne,Je,Fa,"\u22C5","\\cdot",!0);Le(Ne,Je,Fa,"\u2218","\\circ",!0);Le(Ne,Je,Fa,"\xF7","\\div",!0);Le(Ne,Je,Fa,"\xB1","\\pm",!0);Le(Ne,Je,Fa,"\xD7","\\times",!0);Le(Ne,Je,Fa,"\u2229","\\cap",!0);Le(Ne,Je,Fa,"\u222A","\\cup",!0);Le(Ne,Je,Fa,"\u2216","\\setminus",!0);Le(Ne,Je,Fa,"\u2227","\\land");Le(Ne,Je,Fa,"\u2228","\\lor");Le(Ne,Je,Fa,"\u2227","\\wedge",!0);Le(Ne,Je,Fa,"\u2228","\\vee",!0);Le(Ne,Je,Tr,"\u221A","\\surd");Le(Ne,Je,qw,"\u27E8","\\langle",!0);Le(Ne,Je,qw,"\u2223","\\lvert");Le(Ne,Je,qw,"\u2225","\\lVert");Le(Ne,Je,Cb,"?","?");Le(Ne,Je,Cb,"!","!");Le(Ne,Je,Cb,"\u27E9","\\rangle",!0);Le(Ne,Je,Cb,"\u2223","\\rvert");Le(Ne,Je,Cb,"\u2225","\\rVert");Le(Ne,Je,rr,"=","=");Le(Ne,Je,rr,":",":");Le(Ne,Je,rr,"\u2248","\\approx",!0);Le(Ne,Je,rr,"\u2245","\\cong",!0);Le(Ne,Je,rr,"\u2265","\\ge");Le(Ne,Je,rr,"\u2265","\\geq",!0);Le(Ne,Je,rr,"\u2190","\\gets");Le(Ne,Je,rr,">","\\gt",!0);Le(Ne,Je,rr,"\u2208","\\in",!0);Le(Ne,Je,rr,"\uE020","\\@not");Le(Ne,Je,rr,"\u2282","\\subset",!0);Le(Ne,Je,rr,"\u2283","\\supset",!0);Le(Ne,Je,rr,"\u2286","\\subseteq",!0);Le(Ne,Je,rr,"\u2287","\\supseteq",!0);Le(Ne,Jt,rr,"\u2288","\\nsubseteq",!0);Le(Ne,Jt,rr,"\u2289","\\nsupseteq",!0);Le(Ne,Je,rr,"\u22A8","\\models");Le(Ne,Je,rr,"\u2190","\\leftarrow",!0);Le(Ne,Je,rr,"\u2264","\\le");Le(Ne,Je,rr,"\u2264","\\leq",!0);Le(Ne,Je,rr,"<","\\lt",!0);Le(Ne,Je,rr,"\u2192","\\rightarrow",!0);Le(Ne,Je,rr,"\u2192","\\to");Le(Ne,Jt,rr,"\u2271","\\ngeq",!0);Le(Ne,Jt,rr,"\u2270","\\nleq",!0);Le(Ne,Je,vA,"\xA0","\\ ");Le(Ne,Je,vA,"\xA0","\\space");Le(Ne,Je,vA,"\xA0","\\nobreakspace");Le(wi,Je,vA,"\xA0","\\ ");Le(wi,Je,vA,"\xA0"," ");Le(wi,Je,vA,"\xA0","\\space");Le(wi,Je,vA,"\xA0","\\nobreakspace");Le(Ne,Je,vA,"","\\nobreak");Le(Ne,Je,vA,"","\\allowbreak");Le(Ne,Je,ote,",",",");Le(Ne,Je,ote,";",";");Le(Ne,Jt,Fa,"\u22BC","\\barwedge",!0);Le(Ne,Jt,Fa,"\u22BB","\\veebar",!0);Le(Ne,Je,Fa,"\u2299","\\odot",!0);Le(Ne,Je,Fa,"\u2295","\\oplus",!0);Le(Ne,Je,Fa,"\u2297","\\otimes",!0);Le(Ne,Je,Tr,"\u2202","\\partial",!0);Le(Ne,Je,Fa,"\u2298","\\oslash",!0);Le(Ne,Jt,Fa,"\u229A","\\circledcirc",!0);Le(Ne,Jt,Fa,"\u22A1","\\boxdot",!0);Le(Ne,Je,Fa,"\u25B3","\\bigtriangleup");Le(Ne,Je,Fa,"\u25BD","\\bigtriangledown");Le(Ne,Je,Fa,"\u2020","\\dagger");Le(Ne,Je,Fa,"\u22C4","\\diamond");Le(Ne,Je,Fa,"\u22C6","\\star");Le(Ne,Je,Fa,"\u25C3","\\triangleleft");Le(Ne,Je,Fa,"\u25B9","\\triangleright");Le(Ne,Je,qw,"{","\\{");Le(wi,Je,Tr,"{","\\{");Le(wi,Je,Tr,"{","\\textbraceleft");Le(Ne,Je,Cb,"}","\\}");Le(wi,Je,Tr,"}","\\}");Le(wi,Je,Tr,"}","\\textbraceright");Le(Ne,Je,qw,"{","\\lbrace");Le(Ne,Je,Cb,"}","\\rbrace");Le(Ne,Je,qw,"[","\\lbrack",!0);Le(wi,Je,Tr,"[","\\lbrack",!0);Le(Ne,Je,Cb,"]","\\rbrack",!0);Le(wi,Je,Tr,"]","\\rbrack",!0);Le(Ne,Je,qw,"(","\\lparen",!0);Le(Ne,Je,Cb,")","\\rparen",!0);Le(wi,Je,Tr,"<","\\textless",!0);Le(wi,Je,Tr,">","\\textgreater",!0);Le(Ne,Je,qw,"\u230A","\\lfloor",!0);Le(Ne,Je,Cb,"\u230B","\\rfloor",!0);Le(Ne,Je,qw,"\u2308","\\lceil",!0);Le(Ne,Je,Cb,"\u2309","\\rceil",!0);Le(Ne,Je,Tr,"\\","\\backslash");Le(Ne,Je,Tr,"\u2223","|");Le(Ne,Je,Tr,"\u2223","\\vert");Le(wi,Je,Tr,"|","\\textbar",!0);Le(Ne,Je,Tr,"\u2225","\\|");Le(Ne,Je,Tr,"\u2225","\\Vert");Le(wi,Je,Tr,"\u2225","\\textbardbl");Le(wi,Je,Tr,"~","\\textasciitilde");Le(wi,Je,Tr,"\\","\\textbackslash");Le(wi,Je,Tr,"^","\\textasciicircum");Le(Ne,Je,rr,"\u2191","\\uparrow",!0);Le(Ne,Je,rr,"\u21D1","\\Uparrow",!0);Le(Ne,Je,rr,"\u2193","\\downarrow",!0);Le(Ne,Je,rr,"\u21D3","\\Downarrow",!0);Le(Ne,Je,rr,"\u2195","\\updownarrow",!0);Le(Ne,Je,rr,"\u21D5","\\Updownarrow",!0);Le(Ne,Je,Ng,"\u2210","\\coprod");Le(Ne,Je,Ng,"\u22C1","\\bigvee");Le(Ne,Je,Ng,"\u22C0","\\bigwedge");Le(Ne,Je,Ng,"\u2A04","\\biguplus");Le(Ne,Je,Ng,"\u22C2","\\bigcap");Le(Ne,Je,Ng,"\u22C3","\\bigcup");Le(Ne,Je,Ng,"\u222B","\\int");Le(Ne,Je,Ng,"\u222B","\\intop");Le(Ne,Je,Ng,"\u222C","\\iint");Le(Ne,Je,Ng,"\u222D","\\iiint");Le(Ne,Je,Ng,"\u220F","\\prod");Le(Ne,Je,Ng,"\u2211","\\sum");Le(Ne,Je,Ng,"\u2A02","\\bigotimes");Le(Ne,Je,Ng,"\u2A01","\\bigoplus");Le(Ne,Je,Ng,"\u2A00","\\bigodot");Le(Ne,Je,Ng,"\u222E","\\oint");Le(Ne,Je,Ng,"\u222F","\\oiint");Le(Ne,Je,Ng,"\u2230","\\oiiint");Le(Ne,Je,Ng,"\u2A06","\\bigsqcup");Le(Ne,Je,Ng,"\u222B","\\smallint");Le(wi,Je,Cz,"\u2026","\\textellipsis");Le(Ne,Je,Cz,"\u2026","\\mathellipsis");Le(wi,Je,Cz,"\u2026","\\ldots",!0);Le(Ne,Je,Cz,"\u2026","\\ldots",!0);Le(Ne,Je,Cz,"\u22EF","\\@cdots",!0);Le(Ne,Je,Cz,"\u22F1","\\ddots",!0);Le(Ne,Je,Tr,"\u22EE","\\varvdots");Le(wi,Je,Tr,"\u22EE","\\varvdots");Le(Ne,Je,Jf,"\u02CA","\\acute");Le(Ne,Je,Jf,"\u02CB","\\grave");Le(Ne,Je,Jf,"\xA8","\\ddot");Le(Ne,Je,Jf,"~","\\tilde");Le(Ne,Je,Jf,"\u02C9","\\bar");Le(Ne,Je,Jf,"\u02D8","\\breve");Le(Ne,Je,Jf,"\u02C7","\\check");Le(Ne,Je,Jf,"^","\\hat");Le(Ne,Je,Jf,"\u20D7","\\vec");Le(Ne,Je,Jf,"\u02D9","\\dot");Le(Ne,Je,Jf,"\u02DA","\\mathring");Le(Ne,Je,no,"\uE131","\\@imath");Le(Ne,Je,no,"\uE237","\\@jmath");Le(Ne,Je,Tr,"\u0131","\u0131");Le(Ne,Je,Tr,"\u0237","\u0237");Le(wi,Je,Tr,"\u0131","\\i",!0);Le(wi,Je,Tr,"\u0237","\\j",!0);Le(wi,Je,Tr,"\xDF","\\ss",!0);Le(wi,Je,Tr,"\xE6","\\ae",!0);Le(wi,Je,Tr,"\u0153","\\oe",!0);Le(wi,Je,Tr,"\xF8","\\o",!0);Le(wi,Je,Tr,"\xC6","\\AE",!0);Le(wi,Je,Tr,"\u0152","\\OE",!0);Le(wi,Je,Tr,"\xD8","\\O",!0);Le(wi,Je,Jf,"\u02CA","\\'");Le(wi,Je,Jf,"\u02CB","\\`");Le(wi,Je,Jf,"\u02C6","\\^");Le(wi,Je,Jf,"\u02DC","\\~");Le(wi,Je,Jf,"\u02C9","\\=");Le(wi,Je,Jf,"\u02D8","\\u");Le(wi,Je,Jf,"\u02D9","\\.");Le(wi,Je,Jf,"\xB8","\\c");Le(wi,Je,Jf,"\u02DA","\\r");Le(wi,Je,Jf,"\u02C7","\\v");Le(wi,Je,Jf,"\xA8",'\\"');Le(wi,Je,Jf,"\u02DD","\\H");Le(wi,Je,Jf,"\u25EF","\\textcircled");vlr={"--":!0,"---":!0,"``":!0,"''":!0};Le(wi,Je,Tr,"\u2013","--",!0);Le(wi,Je,Tr,"\u2013","\\textendash");Le(wi,Je,Tr,"\u2014","---",!0);Le(wi,Je,Tr,"\u2014","\\textemdash");Le(wi,Je,Tr,"\u2018","`",!0);Le(wi,Je,Tr,"\u2018","\\textquoteleft");Le(wi,Je,Tr,"\u2019","'",!0);Le(wi,Je,Tr,"\u2019","\\textquoteright");Le(wi,Je,Tr,"\u201C","``",!0);Le(wi,Je,Tr,"\u201C","\\textquotedblleft");Le(wi,Je,Tr,"\u201D","''",!0);Le(wi,Je,Tr,"\u201D","\\textquotedblright");Le(Ne,Je,Tr,"\xB0","\\degree",!0);Le(wi,Je,Tr,"\xB0","\\degree");Le(wi,Je,Tr,"\xB0","\\textdegree",!0);Le(Ne,Je,Tr,"\xA3","\\pounds");Le(Ne,Je,Tr,"\xA3","\\mathsterling",!0);Le(wi,Je,Tr,"\xA3","\\pounds");Le(wi,Je,Tr,"\xA3","\\textsterling",!0);Le(Ne,Jt,Tr,"\u2720","\\maltese");Le(wi,Jt,Tr,"\u2720","\\maltese");Ior='0123456789/@."';for(Abe=0;Abe<Ior.length;Abe++)zHe=Ior.charAt(Abe),Le(Ne,Je,Tr,zHe,zHe);Mor='0123456789!@*()-=+";:?/.,';for(Rbe=0;Rbe<Mor.length;Rbe++)UHe=Mor.charAt(Rbe),Le(wi,Je,Tr,UHe,UHe);Gbe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Lbe=0;Lbe<Gbe.length;Lbe++)Kee=Gbe.charAt(Lbe),Le(Ne,Je,no,Kee,Kee),Le(wi,Je,Tr,Kee,Kee);Le(Ne,Jt,Tr,"C","\u2102");Le(wi,Jt,Tr,"C","\u2102");Le(Ne,Jt,Tr,"H","\u210D");Le(wi,Jt,Tr,"H","\u210D");Le(Ne,Jt,Tr,"N","\u2115");Le(wi,Jt,Tr,"N","\u2115");Le(Ne,Jt,Tr,"P","\u2119");Le(wi,Jt,Tr,"P","\u2119");Le(Ne,Jt,Tr,"Q","\u211A");Le(wi,Jt,Tr,"Q","\u211A");Le(Ne,Jt,Tr,"R","\u211D");Le(wi,Jt,Tr,"R","\u211D");Le(Ne,Jt,Tr,"Z","\u2124");Le(wi,Jt,Tr,"Z","\u2124");Le(Ne,Je,no,"h","\u210E");Le(wi,Je,no,"h","\u210E");for(ly=0;ly<Gbe.length;ly++)Dd=Gbe.charAt(ly),Lo=String.fromCharCode(55349,56320+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56372+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56424+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56580+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56684+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56736+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56788+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56840+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56944+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),ly<26&&(Lo=String.fromCharCode(55349,56632+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo),Lo=String.fromCharCode(55349,56476+ly),Le(Ne,Je,no,Dd,Lo),Le(wi,Je,Tr,Dd,Lo));Lo="\u{1D55C}";Le(Ne,Je,no,"k",Lo);Le(wi,Je,Tr,"k",Lo);for(IL=0;IL<10;IL++)gA=IL.toString(),Lo=String.fromCharCode(55349,57294+IL),Le(Ne,Je,no,gA,Lo),Le(wi,Je,Tr,gA,Lo),Lo=String.fromCharCode(55349,57314+IL),Le(Ne,Je,no,gA,Lo),Le(wi,Je,Tr,gA,Lo),Lo=String.fromCharCode(55349,57324+IL),Le(Ne,Je,no,gA,Lo),Le(wi,Je,Tr,gA,Lo),Lo=String.fromCharCode(55349,57334+IL),Le(Ne,Je,no,gA,Lo),Le(wi,Je,Tr,gA,Lo);rqe="\xD0\xDE\xFE";for(_be=0;_be<rqe.length;_be++)Jee=rqe.charAt(_be),Le(Ne,Je,no,Jee,Jee),Le(wi,Je,Tr,Jee,Jee);nqe={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Nor={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},Oor={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},N6n={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},eO={mathClass:"",textClass:"",font:""},Por={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Bor={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},For={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},iqe={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},aqe={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},$or={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},sqe={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Gor=[nqe,nqe,Nor,Nor,Oor,Oor,N6n,eO,eO,eO,Por,Por,Bor,Bor,For,For,iqe,iqe,aqe,aqe,$or,$or,eO,eO,sqe,sqe],O6n=[nqe,eO,iqe,aqe,sqe],P6n=i(r=>{var t=r.charCodeAt(0),a=r.charCodeAt(1),s=(t-55296)*1024+(a-56320)+65536;if(119808<=s&&s<120484){var l=Math.floor((s-119808)/26);return Gor[l]}else if(120782<=s&&s<=120831){var h=Math.floor((s-120782)/10);return O6n[h]}else{if(s===120485||s===120486)return Gor[0];if(120486<s&&s<120782)return eO;throw new Bi("Unsupported character: "+r)}},"wideCharacterFont");i(n2,"handleStrict");Wbe=i(function(t,a,s){if(Kf[s][t]){var l=Kf[s][t].replace;l&&(t=l)}return{value:t,metrics:xqe(t,a,s)}},"lookupSymbol"),xb=i(function(t,a,s,l,h){var f=Wbe(t,a,s),d=f.metrics;t=f.value;var m;if(d){var b=d.italic;(s==="text"||l&&l.font==="mathit")&&(b=0),m=new kb(t,d.height,d.depth,b,d.skew,d.width,h)}else n2({strict:l.strict,errorCode:"symbolNotInFont",errorMsg:"No character metrics for '"+t+"' in style '"+a+"' and mode '"+s+"'",report:!0}),m=new kb(t,0,0,0,0,0,h);m.maxFontSize=l.sizeMultiplier,l.style.isTight()&&m.classes.push("mtight");var v=l.getColor();return v&&(m.style.color=v),m},"makeSymbol"),Tqe=i(function(t,a,s,l){return l===void 0&&(l=[]),s.font==="boldsymbol"&&Wbe(t,"Main-Bold",a).metrics?xb(t,"Main-Bold",a,s,l.concat(["mathbf"])):t==="\\"||Kf[a][t].font==="main"?xb(t,"Main-Regular",a,s,l):xb(t,"AMS-Regular",a,s,l.concat(["amsrm"]))},"mathsym"),B6n=i(function(t,a,s){return s!=="textord"&&Wbe(t,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},"boldSymbol"),Hbe=i(function(t,a){var s=t.type==="mathord"?"mathord":"textord",l=t.mode,h=t.text,f=["mord"],d=a.font,m=a.fontFamily,b=a.fontWeight,v=a.fontShape,T=l==="math"||l==="text"&&!!d,C=T?d:m,E="",S="";if(h.charCodeAt(0)===55349){var R=P6n(h);E=R.font,S=R[l+"Class"]}if(E)return xb(h,E,l,a,f.concat(S));if(C){var L,_;if(C==="boldsymbol"){var I=B6n(h,l,s);L=I.fontName,_=[I.fontClass]}else T?(L=oqe[d].fontName,_=[d]):(L=Dbe(m,b,v),_=[m,b,v]);if(Wbe(h,L,l).metrics)return xb(h,L,l,a,f.concat(_));if(Object.prototype.hasOwnProperty.call(vlr,h)&&L.slice(0,10)==="Typewriter"){for(var N=[],B=0;B<h.length;B++)N.push(xb(h[B],L,l,a,f.concat(_)));return wA(N)}}if(s==="mathord")return xb(h,"Math-Italic",l,a,f.concat(["mathnormal"]));if(s==="textord"){var O=Kf[l][h]&&Kf[l][h].font;if(O==="ams"){var P=Dbe("amsrm",b,v);return xb(h,P,l,a,f.concat("amsrm",b,v))}else if(O==="main"||!O){var $=Dbe("textrm",b,v);return xb(h,$,l,a,f.concat(b,v))}else{var V=Dbe(O,b,v);return xb(h,V,l,a,f.concat(V,b,v))}}else throw new Error("unexpected type: "+s+" in makeOrd")},"makeOrd"),F6n=i((r,t)=>{if(OL(r.classes)!==OL(t.classes)||r.skew!==t.skew||r.maxFontSize!==t.maxFontSize||r.italic!==0&&r.hasClass("mathnormal"))return!1;if(r.classes.length===1){var a=r.classes[0];if(a==="mbin"||a==="mord")return!1}for(var s of Object.keys(r.style))if(r.style[s]!==t.style[s])return!1;for(var l of Object.keys(t.style))if(r.style[l]!==t.style[l])return!1;return!0},"canCombine"),wlr=i(r=>{for(var t=0;t<r.length-1;t++){var a=r[t],s=r[t+1];a instanceof kb&&s instanceof kb&&F6n(a,s)&&(a.text+=s.text,a.height=Math.max(a.height,s.height),a.depth=Math.max(a.depth,s.depth),a.italic=s.italic,r.splice(t+1,1),t--)}return r},"tryCombineChars"),kqe=i(function(t){for(var a=0,s=0,l=0,h=0;h<t.children.length;h++){var f=t.children[h];f.height>a&&(a=f.height),f.depth>s&&(s=f.depth),f.maxFontSize>l&&(l=f.maxFontSize)}t.height=a,t.depth=s,t.maxFontSize=l},"sizeElementFromChildren"),Ii=i(function(t,a,s,l){var h=new PL(t,a,s,l);return kqe(h),h},"makeSpan"),BL=i((r,t,a,s)=>new PL(r,t,a,s),"makeSvgSpan"),Tz=i(function(t,a,s){var l=Ii([t],[],a);return l.height=Math.max(s||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),l.style.borderBottomWidth=Ji(l.height),l.maxFontSize=1,l},"makeLineSpan"),$6n=i(function(t,a,s,l){var h=new xz(t,a,s,l);return kqe(h),h},"makeAnchor"),wA=i(function(t){var a=new NL(t);return kqe(a),a},"makeFragment"),kz=i(function(t,a){return t instanceof NL?Ii([],[t],a):t},"wrapFragment"),G6n=i(function(t){if(t.positionType==="individualShift"){for(var a=t.children,s=[a[0]],l=-a[0].shift-a[0].elem.depth,h=l,f=1;f<a.length;f++){var d=-a[f].shift-h-a[f].elem.depth,m=d-(a[f-1].elem.height+a[f-1].elem.depth);h=h+d,s.push({type:"kern",size:m}),s.push(a[f])}return{children:s,depth:l}}var b;if(t.positionType==="top"){for(var v=t.positionData,T=0;T<t.children.length;T++){var C=t.children[T];v-=C.type==="kern"?C.size:C.elem.height+C.elem.depth}b=v}else if(t.positionType==="bottom")b=-t.positionData;else{var E=t.children[0];if(E.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")b=-E.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")b=-E.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:b}},"getVListChildrenAndDepth"),Su=i(function(t,a){for(var s=G6n(t),l=s.children,h=s.depth,f=0,d=0;d<l.length;d++){var m=l[d];if(m.type==="elem"){var b=m.elem;f=Math.max(f,b.maxFontSize,b.height)}}f+=2;var v=Ii(["pstrut"],[]);v.style.height=Ji(f);for(var T=[],C=h,E=h,S=h,R=0;R<l.length;R++){var L=l[R];if(L.type==="kern")S+=L.size;else{var _=L.elem,I=L.wrapperClasses||[],N=L.wrapperStyle||{},B=Ii(I,[v,_],void 0,N);B.style.top=Ji(-f-S-_.depth),L.marginLeft&&(B.style.marginLeft=L.marginLeft),L.marginRight&&(B.style.marginRight=L.marginRight),T.push(B),S+=_.height+_.depth}C=Math.min(C,S),E=Math.max(E,S)}var O=Ii(["vlist"],T);O.style.height=Ji(E);var P;if(C<0){var $=Ii([],[]),V=Ii(["vlist"],[$]);V.style.height=Ji(-C);var Y=Ii(["vlist-s"],[new kb("\u200B")]);P=[Ii(["vlist-r"],[O,Y]),Ii(["vlist-r"],[V])]}else P=[Ii(["vlist-r"],[O])];var Q=Ii(["vlist-t"],P);return P.length===2&&Q.classes.push("vlist-t2"),Q.height=E,Q.depth=-C,Q},"makeVList"),xlr=i((r,t)=>{var a=Ii(["mspace"],[],t),s=Md(r,t);return a.style.marginRight=Ji(s),a},"makeGlue"),Dbe=i((r,t,a)=>{var s,l;switch(r){case"amsrm":s="AMS";break;case"textrm":s="Main";break;case"textsf":s="SansSerif";break;case"texttt":s="Typewriter";break;default:s=r}return t==="textbf"&&a==="textit"?l="BoldItalic":t==="textbf"?l="Bold":a==="textit"?l="Italic":l="Regular",s+"-"+l},"retrieveTextFontName"),oqe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Tlr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},klr=i(function(t,a){var s=Tlr[t],l=s[0],h=s[1],f=s[2],d=new qE(l),m=new b4([d],{width:Ji(h),height:Ji(f),style:"width:"+Ji(h),viewBox:"0 0 "+1e3*h+" "+1e3*f,preserveAspectRatio:"xMinYMin"}),b=BL(["katex-overlay"],[m],a);return b.height=f,b.style.height=Ji(f),b.style.width=Ji(h),b},"staticSvg"),Id={number:3,unit:"mu"},ZN={number:4,unit:"mu"},mA={number:5,unit:"mu"},j6n={mord:{mop:Id,mbin:ZN,mrel:mA,minner:Id},mop:{mord:Id,mop:Id,mrel:mA,minner:Id},mbin:{mord:ZN,mop:ZN,mopen:ZN,minner:ZN},mrel:{mord:mA,mop:mA,mopen:mA,minner:mA},mopen:{},mclose:{mop:Id,mbin:ZN,mrel:mA,minner:Id},mpunct:{mord:Id,mop:Id,mrel:mA,mopen:Id,mclose:Id,mpunct:Id,minner:Id},minner:{mord:Id,mop:Id,mbin:ZN,mrel:mA,mopen:Id,mpunct:Id,minner:Id}},z6n={mord:{mop:Id},mop:{mord:Id,mop:Id},mbin:{},mrel:{},mopen:{},mclose:{mop:Id},mpunct:{},minner:{mop:Id}},Clr={},nte={},ite={};i(Sa,"defineFunction");i(tO,"defineFunctionBuilders");ate=i(function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},"normalizeArgument"),Mg=i(function(t){return t.type==="ordgroup"?t.body:[t]},"ordargument"),U6n=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),V6n=new Set(["rightmost","mrel","mclose","mpunct"]),W6n={display:Xo.DISPLAY,text:Xo.TEXT,script:Xo.SCRIPT,scriptscript:Xo.SCRIPTSCRIPT},H6n={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},k0=i(function(t,a,s,l){l===void 0&&(l=[null,null]);for(var h=[],f=0;f<t.length;f++){var d=ou(t[f],a);if(d instanceof NL){var m=d.children;h.push(...m)}else h.push(d)}if(wlr(h),!s)return h;var b=a;if(t.length===1){var v=t[0];v.type==="sizing"?b=a.havingSize(v.size):v.type==="styling"&&(b=a.havingStyle(W6n[v.style]))}var T=Ii([l[0]||"leftmost"],[],a),C=Ii([l[1]||"rightmost"],[],a),E=s==="root";return lqe(h,(S,R)=>{var L=R.classes[0],_=S.classes[0];L==="mbin"&&V6n.has(_)?R.classes[0]="mord":_==="mbin"&&U6n.has(L)&&(S.classes[0]="mord")},{node:T},C,E),lqe(h,(S,R)=>{var L,_,I=uqe(R),N=uqe(S),B=I&&N?S.hasClass("mtight")?(L=z6n[I])==null?void 0:L[N]:(_=j6n[I])==null?void 0:_[N]:null;if(B)return xlr(B,b)},{node:T},C,E),h},"buildExpression"),lqe=i(function(t,a,s,l,h){l&&t.push(l);for(var f=0;f<t.length;f++){var d=t[f],m=Elr(d);if(m){lqe(m.children,a,s,null,h);continue}var b=!d.hasClass("mspace");if(b){var v=a(d,s.node);v&&(s.insertAfter?s.insertAfter(v):(t.unshift(v),f++))}b?s.node=d:h&&d.hasClass("katex-newline")&&(s.node=Ii(["leftmost"])),s.insertAfter=(T=>C=>{t.splice(T+1,0,C),f++})(f)}l&&t.pop()},"traverseNonSpaceNodes"),Elr=i(function(t){return t instanceof NL||t instanceof xz||t instanceof PL&&t.hasClass("enclosing")?t:null},"checkPartialGroup"),cqe=i(function(t,a){var s=Elr(t);if(s){var l=s.children;if(l.length){if(a==="right")return cqe(l[l.length-1],"right");if(a==="left")return cqe(l[0],"left")}}return t},"getOutermostNode"),uqe=i(function(t,a){if(!t)return null;a&&(t=cqe(t,a));var s=t.classes[0];return H6n[s]||null},"getTypeOfDomTree"),ste=i(function(t,a){var s=["nulldelimiter"].concat(t.baseSizingClasses());return Ii(a.concat(s))},"makeNullDelimiter"),ou=i(function(t,a,s){if(!t)return Ii();if(nte[t.type]){var l=nte[t.type](t,a);if(s&&a.size!==s.size){l=Ii(a.sizingClasses(s),[l],a);var h=a.sizeMultiplier/s.sizeMultiplier;l.height*=h,l.depth*=h}return l}else throw new Bi("Got group of unknown type: '"+t.type+"'")},"buildGroup");i(Ibe,"buildHTMLUnbreakable");i(hqe,"buildHTML");i(Slr,"newDocumentFragment");Gi=class{static{i(this,"MathNode")}constructor(t,a,s){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=a||[],this.classes=s||[]}setAttribute(t,a){this.attributes[t]=a}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var a of Object.entries(this.attributes)){var s=a[0],l=a[1];t.setAttribute(s,l)}this.classes.length>0&&(t.className=OL(this.classes));for(var h=0;h<this.children.length;h++)if(this.children[h]instanceof gp&&this.children[h+1]instanceof gp){for(var f=this.children[h].toText()+this.children[++h].toText();this.children[h+1]instanceof gp;)f+=this.children[++h].toText();t.appendChild(new gp(f).toNode())}else t.appendChild(this.children[h].toNode());return t}toMarkup(){var t="<"+this.type;for(var a of Object.entries(this.attributes)){var s=a[0],l=a[1];t+=" "+s+'="',t+=cy(l),t+='"'}this.classes.length>0&&(t+=' class ="'+cy(OL(this.classes))+'"'),t+=">";for(var h=0;h<this.children.length;h++)t+=this.children[h].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}},gp=class{static{i(this,"TextNode")}constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return cy(this.toText())}toText(){return this.text}},jbe=class{static{i(this,"SpaceNode")}constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character="\u200A":t>=.1666&&t<=.1667?this.character="\u2009":t>=.2222&&t<=.2223?this.character="\u2005":t>=.2777&&t<=.2778?this.character="\u2005\u200A":t>=-.05556&&t<=-.05555?this.character="\u200A\u2063":t>=-.1667&&t<=-.1666?this.character="\u2009\u2063":t>=-.2223&&t<=-.2222?this.character="\u205F\u2063":t>=-.2778&&t<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Ji(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Ji(this.width)+'"/>'}toText(){return this.character?this.character:" "}},q6n=new Set(["\\imath","\\jmath"]),Y6n=new Set(["mrow","mtable"]),PT=i(function(t,a,s){var l,h;return Kf[a][t]&&Kf[a][t].replace&&t.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(vlr,t)&&((s==null||(l=s.fontFamily)==null?void 0:l.slice(4,6))==="tt"||(s==null||(h=s.font)==null?void 0:h.slice(4,6))==="tt"))&&(t=Kf[a][t].replace),new gp(t)},"makeText"),Cqe=i(function(t){return t.length===1?t[0]:new Gi("mrow",t)},"makeRow"),X6n={mathit:"italic",boldsymbol:i(r=>r.type==="textord"?"bold":"bold-italic","boldsymbol"),mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},Eqe=i((r,t)=>{if(r.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var a=t.font;if(!a||a==="mathnormal")return null;var s=r.mode,l=X6n[a];if(l)return typeof l=="function"?l(r):l;var h=r.text;if(q6n.has(h))return null;if(Kf[s][h]){var f=Kf[s][h].replace;f&&(h=f)}var d=oqe[a].fontName;return xqe(h,d,s)?oqe[a].variant:null},"getVariant");i(VHe,"isNumberPunctuation");Yw=i(function(t,a,s){if(t.length===1){var l=Th(t[0],a);return s&&l instanceof Gi&&l.type==="mo"&&(l.setAttribute("lspace","0em"),l.setAttribute("rspace","0em")),[l]}for(var h=[],f,d=0;d<t.length;d++){var m=Th(t[d],a);if(m instanceof Gi&&f instanceof Gi){if(m.type==="mtext"&&f.type==="mtext"&&m.getAttribute("mathvariant")===f.getAttribute("mathvariant")){f.children.push(...m.children);continue}else if(m.type==="mn"&&f.type==="mn"){f.children.push(...m.children);continue}else if(VHe(m)&&f.type==="mn"){f.children.push(...m.children);continue}else if(m.type==="mn"&&VHe(f))m.children=[...f.children,...m.children],h.pop();else if((m.type==="msup"||m.type==="msub")&&m.children.length>=1&&(f.type==="mn"||VHe(f))){var b=m.children[0];b instanceof Gi&&b.type==="mn"&&(b.children=[...f.children,...b.children],h.pop())}else if(f.type==="mi"&&f.children.length===1){var v=f.children[0];if(v instanceof gp&&v.text==="\u0338"&&(m.type==="mo"||m.type==="mi"||m.type==="mn")){var T=m.children[0];T instanceof gp&&T.text.length>0&&(T.text=T.text.slice(0,1)+"\u0338"+T.text.slice(1),h.pop())}}}h.push(m),f=m}return h},"buildExpression"),FL=i(function(t,a,s){return Cqe(Yw(t,a,s))},"buildExpressionRow"),Th=i(function(t,a){if(!t)return new Gi("mrow");if(ite[t.type])return ite[t.type](t,a);throw new Bi("Got group of unknown type: '"+t.type+"'")},"buildGroup");i(jor,"buildMathML");K6n=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],zor=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Uor=i(function(t,a){return a.size<2?t:K6n[t-1][a.size-1]},"sizeAtStyle"),zbe=class r{static{i(this,"Options")}constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||r.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=zor[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(a,t),new r(a)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Uor(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:zor[t-1]})}havingBaseStyle(t){t=t||this.style.text();var a=Uor(r.BASESIZE,t);return this.size===a&&this.textSize===r.BASESIZE&&this.style===t?this:this.extend({style:t,size:a})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["katex-sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==r.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+r.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=M6n(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};zbe.BASESIZE=6;Alr=i(r=>new zbe({style:r.displayMode?Xo.DISPLAY:Xo.TEXT,maxSize:r.maxSize,minRuleThickness:r.minRuleThickness,strict:r.strict}),"optionsFromSettings"),Rlr=i(function(t,a){if(a.displayMode){var s=["katex-display"];a.leqno&&s.push("leqno"),a.fleqn&&s.push("fleqn"),t=Ii(s,[t])}return t},"displayWrap"),J6n=i(function(t,a,s){var l=Alr(s),h;if(s.output==="mathml")return jor(t,a,l,s.displayMode,!0);if(s.output==="html"){var f=hqe(t,l);h=Ii(["katex"],[f])}else{var d=jor(t,a,l,s.displayMode,!1),m=hqe(t,l);h=Ii(["katex"],[d,m])}return Rlr(h,s)},"buildTree"),Q6n=i(function(t,a){var s=Alr(a),l=hqe(t,s),h=Ii(["katex"],[l]);return Rlr(h,a)},"buildHTMLTree"),Z6n={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},qbe=i(function(t){var a=new Gi("mo",[new gp(Z6n[t.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},"stretchyMathML"),eAn={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},tAn=new Set(["widehat","widecheck","widetilde","utilde"]),Ybe=i(function(t,a){function s(){var m=4e5,b=t.label.slice(1);if(tAn.has(b)&&"base"in t){var v=t.base.type==="ordgroup"?t.base.body.length:1,T,C,E;if(v>5)b==="widehat"||b==="widecheck"?(T=420,m=2364,E=.42,C=b+"4"):(T=312,m=2340,E=.34,C="tilde4");else{var S=[1,1,2,2,3,3][v];b==="widehat"||b==="widecheck"?(m=[0,1062,2364,2364,2364][S],T=[0,239,300,360,420][S],E=[0,.24,.3,.3,.36,.42][S],C=b+S):(m=[0,600,1033,2339,2340][S],T=[0,260,286,306,312][S],E=[0,.26,.286,.3,.306,.34][S],C="tilde"+S)}var R=new qE(C),L=new b4([R],{width:"100%",height:Ji(E),viewBox:"0 0 "+m+" "+T,preserveAspectRatio:"none"});return{span:BL([],[L],a),minWidth:0,height:E}}else{var _=[],I=eAn[b];if(!I)throw new Error('No SVG data for "'+b+'".');var N=I[0],B=I[1],O=I[2],P=O/1e3,$=N.length,V,Y;if($===1){if(I.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+b+'".');V=["hide-tail"],Y=[I[3]]}else if($===2)V=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if($===3)V=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
`+$+" children.");for(var Q=0;Q<$;Q++){var q=new qE(N[Q]),W=new b4([q],{width:"400em",height:Ji(P),viewBox:"0 0 "+m+" "+O,preserveAspectRatio:Y[Q]+" slice"}),H=BL([V[Q]],[W],a);if($===1)return{span:H,minWidth:B,height:P};H.style.height=Ji(P),_.push(H)}return{span:Ii(["katex-stretchy"],_,a),minWidth:B,height:P}}}i(s,"buildSvgSpan_");var l=s(),h=l.span,f=l.minWidth,d=l.height;return h.height=d,h.style.height=Ji(d),f>0&&(h.style.minWidth=Ji(f)),h},"stretchySvg"),rAn=i(function(t,a,s,l,h){var f,d=t.height+t.depth+s+l;if(/fbox|color|angl/.test(a)){if(f=Ii(["katex-stretchy",a],[],h),a==="fbox"){var m=h.color&&h.getColor();m&&(f.style.borderColor=m)}}else{var b=[];/^[bx]cancel$/.test(a)&&b.push(new rte({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&b.push(new rte({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new b4(b,{width:"100%",height:Ji(d)});f=BL([],[v],h)}return f.height=d,f.style.height=Ji(d),f},"stretchyEnclose"),nAn=["bin","close","inner","open","punct","rel"],iAn=["accent-token","mathord","op-token","spacing","textord"],aAn=new Set(nAn),sAn=new Set(iAn);i(oAn,"isAtom");i(Vl,"assertNodeType");i(Xbe,"assertSymbolNodeType");i(Kbe,"checkSymbolNodeType");i(Sqe,"assertCharacterGroup");Llr=i(r=>{if(r instanceof kb)return r;if(I6n(r)&&r.children.length===1)return Llr(r.children[0])},"getBaseSymbol"),_lr=i((r,t)=>{var a,s,l;r&&r.type==="supsub"?(s=Vl(r.base,"accent"),a=s.base,r.base=a,l=D6n(ou(r,t)),r.base=s):(s=Vl(r,"accent"),a=s.base);var h=ou(a,t.havingCrampedStyle()),f=s.isShifty&&bA(a),d=0;if(f){var m,b;d=(m=(b=Llr(h))==null?void 0:b.skew)!=null?m:0}var v=s.label==="\\c",T=v?h.height+h.depth:Math.min(h.height,t.fontMetrics().xHeight),C;if(s.isStretchy)C=Ybe(s,t),C=Su({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"elem",elem:C,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+Ji(2*d)+")",marginLeft:Ji(2*d)}:void 0}]});else{var E,S;s.label==="\\vec"?(E=klr("vec",t),S=Tlr.vec[1]):(E=Hbe({type:"textord",mode:s.mode,text:s.label},t),E=_6n(E),E.italic=0,S=E.width,v&&(T+=E.depth)),C=Ii(["accent-body"],[E]);var R=s.label==="\\textcircled";R&&(C.classes.push("accent-full"),T=h.height);var L=d;R||(L-=S/2),C.style.left=Ji(L),s.label==="\\textcircled"&&(C.style.top=".2em"),C=Su({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:-T},{type:"elem",elem:C}]})}var _=Ii(["mord","katex-accent"],[C],t);return l?(l.children[0]=_,l.height=Math.max(_.height,l.height),l.classes[0]="mord",l):_},"htmlBuilder$a"),lAn=i((r,t)=>{var a=r.isStretchy?qbe(r.label):new Gi("mo",[PT(r.label,r.mode)]),s=new Gi("mover",[Th(r.base,t),a]);return s.setAttribute("accent","true"),s},"mathmlBuilder$9"),cAn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));Sa({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],numArgs:1,handler:i((r,t)=>{var a=ate(t[0]),s=!cAn.test(r.funcName),l=!s||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:s,isShifty:l,base:a}},"handler"),htmlBuilder:_lr,mathmlBuilder:lAn});Sa({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:i((r,t)=>{var a=t[0],s=r.parser.mode;return s==="math"&&(n2({strict:r.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+r.funcName+" works only in text mode",report:!0}),s="text"),{type:"accent",mode:s,label:r.funcName,isStretchy:!1,isShifty:!0,base:a}},"handler")});Sa({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:i((r,t)=>{var a=r.parser,s=r.funcName,l=t[0];return{type:"accentUnder",mode:a.mode,label:s,base:l}},"handler"),htmlBuilder:i((r,t)=>{var a=ou(r.base,t),s=Ybe(r,t),l=r.label==="\\utilde"?.12:0,h=Su({positionType:"top",positionData:a.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:l},{type:"elem",elem:a}]});return Ii(["mord","accentunder"],[h],t)},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=qbe(r.label),s=new Gi("munder",[Th(r.base,t),a]);return s.setAttribute("accentunder","true"),s},"mathmlBuilder")});Mbe=i(r=>{var t=new Gi("mpadded",r?[r]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t},"paddedNode");Sa({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],numArgs:1,numOptionalArgs:1,handler(r,t,a){var s=r.parser,l=r.funcName;return{type:"xArrow",mode:s.mode,label:l,body:t[0],below:a[0]}},htmlBuilder(r,t){var a=t.style,s=t.havingStyle(a.sup()),l=kz(ou(r.body,s,t),t),h=r.label.slice(0,2)==="\\x"?"x":"cd";l.classes.push(h+"-arrow-pad");var f;r.below&&(s=t.havingStyle(a.sub()),f=kz(ou(r.below,s,t),t),f.classes.push(h+"-arrow-pad"));var d=Ybe(r,t),m=-t.fontMetrics().axisHeight+.5*d.height,b=-t.fontMetrics().axisHeight-.5*d.height-.111;(l.depth>.25||r.label==="\\xleftequilibrium")&&(b-=l.depth);var v;if(f){var T=-t.fontMetrics().axisHeight+f.height+.5*d.height+.111;v=Su({positionType:"individualShift",children:[{type:"elem",elem:l,shift:b},{type:"elem",elem:d,shift:m,wrapperClasses:["svg-align"]},{type:"elem",elem:f,shift:T}]})}else v=Su({positionType:"individualShift",children:[{type:"elem",elem:l,shift:b},{type:"elem",elem:d,shift:m,wrapperClasses:["svg-align"]}]});return Ii(["mrel","x-arrow"],[v],t)},mathmlBuilder(r,t){var a=qbe(r.label);a.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var s;if(r.body){var l=Mbe(Th(r.body,t));if(r.below){var h=Mbe(Th(r.below,t));s=new Gi("munderover",[a,h,l])}else s=new Gi("mover",[a,l])}else if(r.below){var f=Mbe(Th(r.below,t));s=new Gi("munder",[a,f])}else s=Mbe(),s=new Gi("mover",[a,s]);return s}});i(uAn,"htmlBuilder$9");i(hAn,"mathmlBuilder$8");Sa({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(r,t){var a=r.parser,s=r.funcName,l=t[0];return{type:"mclass",mode:a.mode,mclass:"m"+s.slice(5),body:Mg(l),isCharacterBox:bA(l)}},htmlBuilder:uAn,mathmlBuilder:hAn});Jbe=i(r=>{var t=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"},"binrelClass");Sa({type:"mclass",names:["\\@binrel"],numArgs:2,handler(r,t){var a=r.parser;return{type:"mclass",mode:a.mode,mclass:Jbe(t[0]),body:Mg(t[1]),isCharacterBox:bA(t[1])}}});Sa({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(r,t){var a=r.parser,s=r.funcName,l=t[1],h=t[0],f;s!=="\\stackrel"?f=Jbe(l):f="mrel";var d={type:"op",mode:l.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:s!=="\\stackrel",body:Mg(l)},m=s==="\\underset"?{type:"supsub",mode:h.mode,base:d,sub:h}:{type:"supsub",mode:h.mode,base:d,sup:h};return{type:"mclass",mode:a.mode,mclass:f,body:[m],isCharacterBox:bA(m)}}});Sa({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(r,t){var a=r.parser;return{type:"pmb",mode:a.mode,mclass:Jbe(t[0]),body:Mg(t[0])}},htmlBuilder(r,t){var a=k0(r.body,t,!0),s=Ii([r.mclass],a,t);return s.style.textShadow="0.02em 0.01em 0.04px",s},mathmlBuilder(r,t){var a=Yw(r.body,t),s=new Gi("mstyle",a);return s.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),s}});fAn={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Vor=i(()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),"newCell"),Wor=i(r=>r.type==="textord"&&r.text==="@","isStartOfArrow"),dAn=i((r,t)=>(r.type==="mathord"||r.type==="atom")&&r.text===t,"isLabelEnd");i(pAn,"cdArrow");i(gAn,"parseCD");Sa({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(r,t){var a=r.parser,s=r.funcName;return{type:"cdlabel",mode:a.mode,side:s.slice(4),label:t[0]}},htmlBuilder(r,t){var a=t.havingStyle(t.style.sup()),s=kz(ou(r.label,a,t),t);return s.classes.push("cd-label-"+r.side),s.style.bottom=Ji(.8-s.depth),s.height=0,s.depth=0,s},mathmlBuilder(r,t){var a=new Gi("mrow",[Th(r.label,t)]);return a=new Gi("mpadded",[a]),a.setAttribute("width","0"),r.side==="left"&&a.setAttribute("lspace","-1width"),a.setAttribute("voffset","0.7em"),a=new Gi("mstyle",[a]),a.setAttribute("displaystyle","false"),a.setAttribute("scriptlevel","1"),a}});Sa({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(r,t){var a=r.parser;return{type:"cdlabelparent",mode:a.mode,fragment:t[0]}},htmlBuilder(r,t){var a=kz(ou(r.fragment,t),t);return a.classes.push("cd-vert-arrow"),a},mathmlBuilder(r,t){return new Gi("mrow",[Th(r.fragment,t)])}});Sa({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(r,t){var a=r.parser,s=Vl(t[0],"ordgroup"),l=Sqe(s,"\\@char has non-numeric argument"),h=parseInt(l),f;if(isNaN(h))throw new Bi("\\@char has non-numeric argument "+l);if(h<0||h>1114111)throw new Bi("\\@char with invalid code point "+l);return h<=65535?f=String.fromCharCode(h):(h-=65536,f=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:a.mode,text:f}}});mAn=i((r,t)=>{var a=k0(r.body,t.withColor(r.color),!1);return wA(a)},"htmlBuilder$8"),yAn=i((r,t)=>{var a=Yw(r.body,t.withColor(r.color)),s=new Gi("mstyle",a);return s.setAttribute("mathcolor",r.color),s},"mathmlBuilder$7");Sa({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(r,t){var a=r.parser,s=Vl(t[0],"color-token").color,l=t[1];return{type:"color",mode:a.mode,color:s,body:Mg(l)}},htmlBuilder:mAn,mathmlBuilder:yAn});Sa({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(r,t){var a=r.parser,s=r.breakOnTokenText,l=Vl(t[0],"color-token").color;a.gullet.macros.set("\\current@color",l);var h=a.parseExpression(!0,s);return{type:"color",mode:a.mode,color:l,body:h}}});Sa({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(r){var t=r.parser,a=t.gullet.future().text==="["?t.parseSizeGroup(!0):null,s=!t.settings.displayMode||!n2({strict:t.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:t.mode,newLine:s,size:a&&Vl(a,"size").value}},htmlBuilder(r,t){var a=Ii(["mspace"],[],t);return r.newLine&&(a.classes.push("katex-newline"),r.size&&(a.style.marginTop=Ji(Md(r.size,t)))),a},mathmlBuilder(r,t){var a=new Gi("mspace");return r.newLine&&(a.setAttribute("linebreak","newline"),r.size&&a.setAttribute("height",Ji(Md(r.size,t)))),a}});fqe={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Dlr=i(r=>{var t=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Bi("Expected a control sequence",r);return t},"checkControlSequence"),bAn=i(r=>{var t=r.gullet.popToken();return t.text==="="&&(t=r.gullet.popToken(),t.text===" "&&(t=r.gullet.popToken())),t},"getRHS"),Ilr=i((r,t,a,s)=>{var l=r.gullet.macros.get(a.text);l==null&&(a.noexpand=!0,l={tokens:[a],numArgs:0,unexpandable:!r.gullet.isExpandable(a.text)}),r.gullet.macros.set(t,l,s)},"letCommand");Sa({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(r){var t=r.parser,a=r.funcName;t.consumeSpaces();var s=t.fetch();if(fqe[s.text])return(a==="\\global"||a==="\\\\globallong")&&(s.text=fqe[s.text]),Vl(t.parseFunction(),"internal");throw new Bi("Invalid token after macro prefix",s)}});Sa({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var t=r.parser,a=r.funcName,s=t.gullet.popToken(),l=s.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(l))throw new Bi("Expected a control sequence",s);for(var h=0,f,d=[[]];t.gullet.future().text!=="{";)if(s=t.gullet.popToken(),s.text==="#"){if(t.gullet.future().text==="{"){f=t.gullet.future(),d[h].push("{");break}if(s=t.gullet.popToken(),!/^[1-9]$/.test(s.text))throw new Bi('Invalid argument number "'+s.text+'"');if(parseInt(s.text)!==h+1)throw new Bi('Argument number "'+s.text+'" out of order');h++,d.push([])}else{if(s.text==="EOF")throw new Bi("Expected a macro definition");d[h].push(s.text)}var m=t.gullet.consumeArg(),b=m.tokens;return f&&b.unshift(f),(a==="\\edef"||a==="\\xdef")&&(b=t.gullet.expandTokens(b),b.reverse()),t.gullet.macros.set(l,{tokens:b,numArgs:h,delimiters:d},a===fqe[a]),{type:"internal",mode:t.mode}}});Sa({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var t=r.parser,a=r.funcName,s=Dlr(t.gullet.popToken());t.gullet.consumeSpaces();var l=bAn(t);return Ilr(t,s,l,a==="\\\\globallet"),{type:"internal",mode:t.mode}}});Sa({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var t=r.parser,a=r.funcName,s=Dlr(t.gullet.popToken()),l=t.gullet.popToken(),h=t.gullet.popToken();return Ilr(t,s,h,a==="\\\\globalfuture"),t.gullet.pushToken(h),t.gullet.pushToken(l),{type:"internal",mode:t.mode}}});Qee=i(function(t,a,s){var l=Kf.math[t]&&Kf.math[t].replace,h=xqe(l||t,a,s);if(!h)throw new Error("Unsupported symbol "+t+" and font size "+a+".");return h},"getMetrics"),Aqe=i(function(t,a,s,l){var h=s.havingBaseStyle(a),f=Ii(l.concat(h.sizingClasses(s)),[t],s),d=h.sizeMultiplier/s.sizeMultiplier;return f.height*=d,f.depth*=d,f.maxFontSize=h.sizeMultiplier,f},"styleWrap"),Mlr=i(function(t,a,s){var l=a.havingBaseStyle(s),h=(1-a.sizeMultiplier/l.sizeMultiplier)*a.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Ji(h),t.height-=h,t.depth+=h},"centerSpan"),vAn=i(function(t,a,s,l,h,f){var d=xb(t,"Main-Regular",h,l),m=Aqe(d,a,l,f);return s&&Mlr(m,l,a),m},"makeSmallDelim"),wAn=i(function(t,a,s,l){return xb(t,"Size"+a+"-Regular",s,l)},"mathrmSize"),Nlr=i(function(t,a,s,l,h,f){var d=wAn(t,a,h,l),m=Aqe(Ii(["delimsizing","size"+a],[d],l),Xo.TEXT,l,f);return s&&Mlr(m,l,Xo.TEXT),m},"makeLargeDelim"),WHe=i(function(t,a,s,l){var h;a==="Size1-Regular"?h="delim-size1":h="delim-size4";var f=Ii(["delimsizinginner",h],[Ii([],[xb(t,a,s,l)])]);return{type:"elem",elem:f}},"makeGlyphSpan"),HHe=i(function(t,a,s){var l=HE["Size4-Regular"][t.charCodeAt(0)]?HE["Size4-Regular"][t.charCodeAt(0)][4]:HE["Size1-Regular"][t.charCodeAt(0)][4],h=new qE("inner",C6n(t,Math.round(1e3*a))),f=new b4([h],{width:Ji(l),height:Ji(a),style:"width:"+Ji(l),viewBox:"0 0 "+1e3*l+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),d=BL([],[f],s);return d.height=a,d.style.height=Ji(a),d.style.width=Ji(l),{type:"elem",elem:d}},"makeInner"),dqe=.008,Nbe={type:"kern",size:-1*dqe},xAn=new Set(["|","\\lvert","\\rvert","\\vert"]),TAn=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Olr=i(function(t,a,s,l,h,f){var d,m,b,v,T="",C=0;d=b=v=t,m=null;var E="Size1-Regular";t==="\\uparrow"?b=v="\u23D0":t==="\\Uparrow"?b=v="\u2016":t==="\\downarrow"?d=b="\u23D0":t==="\\Downarrow"?d=b="\u2016":t==="\\updownarrow"?(d="\\uparrow",b="\u23D0",v="\\downarrow"):t==="\\Updownarrow"?(d="\\Uparrow",b="\u2016",v="\\Downarrow"):xAn.has(t)?(b="\u2223",T="vert",C=333):TAn.has(t)?(b="\u2225",T="doublevert",C=556):t==="["||t==="\\lbrack"?(d="\u23A1",b="\u23A2",v="\u23A3",E="Size4-Regular",T="lbrack",C=667):t==="]"||t==="\\rbrack"?(d="\u23A4",b="\u23A5",v="\u23A6",E="Size4-Regular",T="rbrack",C=667):t==="\\lfloor"||t==="\u230A"?(b=d="\u23A2",v="\u23A3",E="Size4-Regular",T="lfloor",C=667):t==="\\lceil"||t==="\u2308"?(d="\u23A1",b=v="\u23A2",E="Size4-Regular",T="lceil",C=667):t==="\\rfloor"||t==="\u230B"?(b=d="\u23A5",v="\u23A6",E="Size4-Regular",T="rfloor",C=667):t==="\\rceil"||t==="\u2309"?(d="\u23A4",b=v="\u23A5",E="Size4-Regular",T="rceil",C=667):t==="("||t==="\\lparen"?(d="\u239B",b="\u239C",v="\u239D",E="Size4-Regular",T="lparen",C=875):t===")"||t==="\\rparen"?(d="\u239E",b="\u239F",v="\u23A0",E="Size4-Regular",T="rparen",C=875):t==="\\{"||t==="\\lbrace"?(d="\u23A7",m="\u23A8",v="\u23A9",b="\u23AA",E="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(d="\u23AB",m="\u23AC",v="\u23AD",b="\u23AA",E="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(d="\u23A7",v="\u23A9",b="\u23AA",E="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(d="\u23AB",v="\u23AD",b="\u23AA",E="Size4-Regular"):t==="\\lmoustache"||t==="\u23B0"?(d="\u23A7",v="\u23AD",b="\u23AA",E="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(d="\u23AB",v="\u23A9",b="\u23AA",E="Size4-Regular");var S=Qee(d,E,h),R=S.height+S.depth,L=Qee(b,E,h),_=L.height+L.depth,I=Qee(v,E,h),N=I.height+I.depth,B=0,O=1;if(m!==null){var P=Qee(m,E,h);B=P.height+P.depth,O=2}var $=R+N+B,V=Math.max(0,Math.ceil((a-$)/(O*_))),Y=$+V*O*_,Q=l.fontMetrics().axisHeight;s&&(Q*=l.sizeMultiplier);var q=Y/2-Q,W=[];if(T.length>0){var H=Y-R-N,re=Math.round(Y*1e3),Z=E6n(T,Math.round(H*1e3)),X=new qE(T,Z),te=Ji(C/1e3),U=Ji(re/1e3),ne=new b4([X],{width:te,height:U,viewBox:"0 0 "+C+" "+re}),se=BL([],[ne],l);se.height=re/1e3,se.style.width=te,se.style.height=U,W.push({type:"elem",elem:se})}else{if(W.push(WHe(v,E,h,l)),W.push(Nbe),m===null){var he=Y-R-N+2*dqe;W.push(HHe(b,he,l))}else{var le=(Y-R-N-B)/2+2*dqe;W.push(HHe(b,le,l)),W.push(Nbe),W.push(WHe(m,E,h,l)),W.push(Nbe),W.push(HHe(b,le,l))}W.push(Nbe),W.push(WHe(d,E,h,l))}var pe=l.havingBaseStyle(Xo.TEXT),ge=Su({positionType:"bottom",positionData:q,children:W});return Aqe(Ii(["delimsizing","mult"],[ge],pe),Xo.TEXT,l,f)},"makeStackedDelim"),qHe=80,YHe=.08,XHe=i(function(t,a,s,l,h){var f=k6n(t,l,s),d=new qE(t,f),m=new b4([d],{width:"400em",height:Ji(a),viewBox:"0 0 400000 "+s,preserveAspectRatio:"xMinYMin slice"});return BL(["hide-tail"],[m],h)},"sqrtSvg"),kAn=i(function(t,a){var s=a.havingBaseSizing(),l=Glr("\\surd",t*s.sizeMultiplier,$lr,s),h=s.sizeMultiplier,f=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness),d,m,b,v,T;return l.type==="small"?(v=1e3+1e3*f+qHe,t<1?h=1:t<1.4&&(h=.7),m=(1+f+YHe)/h,b=(1+f)/h,d=XHe("sqrtMain",m,v,f,a),d.style.minWidth="0.853em",T=.833/h):l.type==="large"?(v=(1e3+qHe)*Zee[l.size],b=(Zee[l.size]+f)/h,m=(Zee[l.size]+f+YHe)/h,d=XHe("sqrtSize"+l.size,m,v,f,a),d.style.minWidth="1.02em",T=1/h):(m=t+f+YHe,b=t+f,v=Math.floor(1e3*t+f)+qHe,d=XHe("sqrtTall",m,v,f,a),d.style.minWidth="0.742em",T=1.056),d.height=b,d.style.height=Ji(m),{span:d,advanceWidth:T,ruleWidth:(a.fontMetrics().sqrtRuleThickness+f)*h}},"makeSqrtImage"),Plr=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),CAn=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),Blr=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Zee=[0,1.2,1.8,2.4,3],Flr=i(function(t,a,s,l,h){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),Plr.has(t)||Blr.has(t))return Nlr(t,a,!1,s,l,h);if(CAn.has(t))return Olr(t,Zee[a],!1,s,l,h);throw new Bi("Illegal delimiter: '"+t+"'")},"makeSizedDelim"),EAn=[{type:"small",style:Xo.SCRIPTSCRIPT},{type:"small",style:Xo.SCRIPT},{type:"small",style:Xo.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],SAn=[{type:"small",style:Xo.SCRIPTSCRIPT},{type:"small",style:Xo.SCRIPT},{type:"small",style:Xo.TEXT},{type:"stack"}],$lr=[{type:"small",style:Xo.SCRIPTSCRIPT},{type:"small",style:Xo.SCRIPT},{type:"small",style:Xo.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],AAn=i(function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var a=t.type;throw new Error("Add support for delim type '"+a+"' here.")},"delimTypeToFont"),Glr=i(function(t,a,s,l){for(var h=Math.min(2,3-l.style.size),f=h;f<s.length;f++){var d=s[f];if(d.type==="stack")break;var m=Qee(t,AAn(d),"math"),b=m.height+m.depth;if(d.type==="small"){var v=l.havingBaseStyle(d.style);b*=v.sizeMultiplier}if(b>a)return d}return s[s.length-1]},"traverseSequence"),pqe=i(function(t,a,s,l,h,f){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var d;Blr.has(t)?d=EAn:Plr.has(t)?d=$lr:d=SAn;var m=Glr(t,a,d,l);return m.type==="small"?vAn(t,m.style,s,l,h,f):m.type==="large"?Nlr(t,m.size,s,l,h,f):Olr(t,a,s,l,h,f)},"makeCustomSizedDelim"),KHe=i(function(t,a,s,l,h,f){var d=l.fontMetrics().axisHeight*l.sizeMultiplier,m=901,b=5/l.fontMetrics().ptPerEm,v=Math.max(a-d,s+d),T=Math.max(v/500*m,2*v-b);return pqe(t,T,!0,l,h,f)},"makeLeftRightDelim"),Hor={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},RAn=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);i(qor,"isMiddleDelimNode");i(Qbe,"checkDelimiter");Sa({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:i((r,t)=>{var a=Qbe(ate(t[0]),r);return{type:"delimsizing",mode:r.parser.mode,size:Hor[r.funcName].size,mclass:Hor[r.funcName].mclass,delim:a.text}},"handler"),htmlBuilder:i((r,t)=>r.delim==="."?Ii([r.mclass]):Flr(r.delim,r.size,t,r.mode,[r.mclass]),"htmlBuilder"),mathmlBuilder:i(r=>{var t=[];r.delim!=="."&&t.push(PT(r.delim,r.mode));var a=new Gi("mo",t);r.mclass==="mopen"||r.mclass==="mclose"?a.setAttribute("fence","true"):a.setAttribute("fence","false"),a.setAttribute("stretchy","true");var s=Ji(Zee[r.size]);return a.setAttribute("minsize",s),a.setAttribute("maxsize",s),a},"mathmlBuilder")});i(Yor,"assertParsed");Sa({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:i((r,t)=>{var a=r.parser.gullet.macros.get("\\current@color");if(a&&typeof a!="string")throw new Bi("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Qbe(t[0],r).text,color:a}},"handler")});Sa({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:i((r,t)=>{var a=Qbe(t[0],r),s=r.parser;++s.leftrightDepth;var l=s.parseExpression(!1);--s.leftrightDepth,s.expect("\\right",!1);var h=Vl(s.parseFunction(),"leftright-right");return{type:"leftright",mode:s.mode,body:l,left:a.text,right:h.delim,rightColor:h.color}},"handler"),htmlBuilder:i((r,t)=>{Yor(r);for(var a=k0(r.body,t,!0,["mopen","mclose"]),s=0,l=0,h=!1,f=0;f<a.length;f++){var d=a[f];qor(d)?h=!0:(s=Math.max(a[f].height,s),l=Math.max(a[f].depth,l))}s*=t.sizeMultiplier,l*=t.sizeMultiplier;var m;if(r.left==="."?m=ste(t,["mopen"]):m=KHe(r.left,s,l,t,r.mode,["mopen"]),a.unshift(m),h)for(var b=1;b<a.length;b++){var v=a[b];if(qor(v)){var T=v.isMiddle;a[b]=KHe(T.delim,s,l,T.options,r.mode,[])}}var C;if(r.right===".")C=ste(t,["mclose"]);else{var E=r.rightColor?t.withColor(r.rightColor):t;C=KHe(r.right,s,l,E,r.mode,["mclose"])}return a.push(C),Ii(["minner"],a,t)},"htmlBuilder"),mathmlBuilder:i((r,t)=>{Yor(r);var a=Yw(r.body,t);if(r.left!=="."){var s=new Gi("mo",[PT(r.left,r.mode)]);s.setAttribute("fence","true"),a.unshift(s)}if(r.right!=="."){var l=new Gi("mo",[PT(r.right,r.mode)]);l.setAttribute("fence","true"),r.rightColor&&l.setAttribute("mathcolor",r.rightColor),a.push(l)}return Cqe(a)},"mathmlBuilder")});Sa({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:i((r,t)=>{var a=Qbe(t[0],r);if(!r.parser.leftrightDepth)throw new Bi("\\middle without preceding \\left",a);return{type:"middle",mode:r.parser.mode,delim:a.text}},"handler"),htmlBuilder:i((r,t)=>{var a;return r.delim==="."?a=ste(t,[]):(a=Flr(r.delim,1,t,r.mode,[]),a.isMiddle={delim:r.delim,options:t}),a},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=r.delim==="\\vert"||r.delim==="|"?PT("|","text"):PT(r.delim,r.mode),s=new Gi("mo",[a]);return s.setAttribute("fence","true"),s.setAttribute("lspace","0.05em"),s.setAttribute("rspace","0.05em"),s},"mathmlBuilder")});LAn=i((r,t)=>{var a=kz(ou(r.body,t),t),s=r.label.slice(1),l=t.sizeMultiplier,h,f,d=bA(r.body);if(s==="sout")h=Ii(["katex-stretchy","katex-sout"]),h.height=t.fontMetrics().defaultRuleThickness/l,f=-.5*t.fontMetrics().xHeight;else if(s==="phase"){var m=Md({number:.6,unit:"pt"},t),b=Md({number:.35,unit:"ex"},t),v=t.havingBaseSizing();l=l/v.sizeMultiplier;var T=a.height+a.depth+m+b;a.style.paddingLeft=Ji(T/2+m);var C=Math.floor(1e3*T*l),E=x6n(C),S=new b4([new qE("phase",E)],{width:"400em",height:Ji(C/1e3),viewBox:"0 0 400000 "+C,preserveAspectRatio:"xMinYMin slice"});h=BL(["hide-tail"],[S],t),h.style.height=Ji(T),f=a.depth+m+b}else{/cancel/.test(s)?d||a.classes.push("cancel-pad"):s==="angl"?a.classes.push("anglpad"):a.classes.push("boxpad");var R,L,_=0;/box/.test(s)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),R=t.fontMetrics().fboxsep+(s==="colorbox"?0:_),L=R):s==="angl"?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),R=4*_,L=Math.max(0,.25-a.depth)):(R=d?.2:0,L=R),h=rAn(a,s,R,L,t),/fbox|boxed|fcolorbox/.test(s)?(h.style.borderStyle="solid",h.style.borderWidth=Ji(_)):s==="angl"&&_!==.049&&(h.style.borderTopWidth=Ji(_),h.style.borderRightWidth=Ji(_)),f=a.depth+L,r.backgroundColor&&(h.style.backgroundColor=r.backgroundColor,r.borderColor&&(h.style.borderColor=r.borderColor))}var I;if(r.backgroundColor)I=Su({positionType:"individualShift",children:[{type:"elem",elem:h,shift:f},{type:"elem",elem:a,shift:0}]});else{var N=/cancel|phase/.test(s)?["svg-align"]:[];I=Su({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:h,shift:f,wrapperClasses:N}]})}return/cancel/.test(s)&&(I.height=a.height,I.depth=a.depth),/cancel/.test(s)&&!d?Ii(["mord","cancel-lap"],[I],t):Ii(["mord"],[I],t)},"htmlBuilder$7"),_An=i((r,t)=>{var a,s=new Gi(r.label.includes("colorbox")?"mpadded":"menclose",[Th(r.body,t)]);switch(r.label){case"\\cancel":s.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":s.setAttribute("notation","downdiagonalstrike");break;case"\\phase":s.setAttribute("notation","phasorangle");break;case"\\sout":s.setAttribute("notation","horizontalstrike");break;case"\\fbox":s.setAttribute("notation","box");break;case"\\angl":s.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(a=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,s.setAttribute("width","+"+2*a+"pt"),s.setAttribute("height","+"+2*a+"pt"),s.setAttribute("lspace",a+"pt"),s.setAttribute("voffset",a+"pt"),r.label==="\\fcolorbox"){var l=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);s.setAttribute("style","border: "+Ji(l)+" solid "+r.borderColor)}break;case"\\xcancel":s.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&s.setAttribute("mathbackground",r.backgroundColor),s},"mathmlBuilder$6");Sa({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(r,t,a){var s=r.parser,l=r.funcName,h=Vl(t[0],"color-token").color,f=t[1];return{type:"enclose",mode:s.mode,label:l,backgroundColor:h,body:f}},htmlBuilder:LAn,mathmlBuilder:_An});Sa({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(r,t,a){var s=r.parser,l=r.funcName,h=Vl(t[0],"color-token").color,f=Vl(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:s.mode,label:l,backgroundColor:f,borderColor:h,body:d}}});Sa({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(r,t){var a=r.parser;return{type:"enclose",mode:a.mode,label:"\\fbox",body:t[0]}}});Sa({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(r,t){var a=r.parser,s=r.funcName,l=t[0];return{type:"enclose",mode:a.mode,label:s,body:l}}});Sa({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(r,t){var a=r.parser,s=r.funcName;a.mode==="math"&&n2({strict:a.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var l=t[0];return{type:"enclose",mode:a.mode,label:s,body:l}}});Sa({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(r,t){var a=r.parser;return{type:"enclose",mode:a.mode,label:"\\angl",body:t[0]}}});jlr={};i(YE,"defineEnvironment");zlr={};i(bt,"defineMacro");r2=class r{static{i(this,"SourceLocation")}constructor(t,a,s){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=a,this.end=s}static range(t,a){return a?!t||!t.loc||!a.loc||t.loc.lexer!==a.loc.lexer?null:new r(t.loc.lexer,t.loc.start,a.loc.end):t&&t.loc}},Hw=class r{static{i(this,"Token")}constructor(t,a){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=a}range(t,a){return new r(a,r2.range(this,t))}};i(Xor,"getHLines");Zbe=i(r=>{var t=r.parser.settings;if(!t.displayMode)throw new Bi("{"+r.envName+"} can be used only in display mode.")},"validateAmsEnvironmentContext"),DAn=new Set(["gather","gather*"]);i(Rqe,"getAutoTag");i($L,"parseArray");i(Lqe,"dCellStyle");XE=i(function(t,a){var s,l,h=t.body.length,f=t.hLinesBeforeRow,d=0,m=new Array(h),b=[],v=Math.max(a.fontMetrics().arrayRuleWidth,a.minRuleThickness),T=1/a.fontMetrics().ptPerEm,C=5*T;if(t.colSeparationType&&t.colSeparationType==="small"){var E=a.havingStyle(Xo.SCRIPT).sizeMultiplier;C=.2778*(E/a.sizeMultiplier)}var S=t.colSeparationType==="CD"?Md({number:3,unit:"ex"},a):12*T,R=3*T,L=t.arraystretch*S,_=.7*L,I=.3*L,N=0;function B(Oe){for(var K=0;K<Oe.length;++K)K>0&&(N+=.25),b.push({pos:N,isDashed:Oe[K]})}for(i(B,"setHLinePos"),B(f[0]),s=0;s<t.body.length;++s){var O=t.body[s],P=_,$=I;d<O.length&&(d=O.length);var V={cells:new Array(O.length),height:0,depth:0,pos:0};for(l=0;l<O.length;++l){var Y=ou(O[l],a);$<Y.depth&&($=Y.depth),P<Y.height&&(P=Y.height),V.cells[l]=Y}var Q=t.rowGaps[s],q=0;Q&&(q=Md(Q,a),q>0&&(q+=I,$<q&&($=q),q=0)),t.addJot&&s<t.body.length-1&&($+=R),V.height=P,V.depth=$,N+=P,V.pos=N,N+=$+q,m[s]=V,B(f[s+1])}var W=N/2+a.fontMetrics().axisHeight,H=t.cols||[],re=[],Z,X,te=[];if(t.tags&&t.tags.some(Oe=>Oe))for(s=0;s<h;++s){var U=m[s],ne=U.pos-W,se=t.tags[s],he=void 0;se===!0?he=Ii(["eqn-num"],[],a):se===!1?he=Ii([],[],a):he=Ii([],k0(se,a,!0),a),he.depth=U.depth,he.height=U.height,te.push({type:"elem",elem:he,shift:ne})}for(l=0,X=0;l<d||X<H.length;++l,++X){for(var le,pe=H[X],ge=!0;((we=pe)==null?void 0:we.type)==="separator";){var we;if(ge||(Z=Ii(["arraycolsep"],[]),Z.style.width=Ji(a.fontMetrics().doubleRuleSep),re.push(Z)),pe.separator==="|"||pe.separator===":"){var Ae=pe.separator==="|"?"solid":"dashed",ve=Ii(["vertical-separator"],[],a);ve.style.height=Ji(N),ve.style.borderRightWidth=Ji(v),ve.style.borderRightStyle=Ae,ve.style.margin="0 "+Ji(-v/2);var Ie=N-W;Ie&&(ve.style.verticalAlign=Ji(-Ie)),re.push(ve)}else throw new Bi("Invalid separator type: "+pe.separator);X++,pe=H[X],ge=!1}if(!(l>=d)){var De=void 0;if(l>0||t.hskipBeforeAndAfter){var Be,Fe;De=(Be=(Fe=pe)==null?void 0:Fe.pregap)!=null?Be:C,De!==0&&(Z=Ii(["arraycolsep"],[]),Z.style.width=Ji(De),re.push(Z))}var ze=[];for(s=0;s<h;++s){var vt=m[s],lt=vt.cells[l];if(lt){var Ft=vt.pos-W;lt.depth=vt.depth,lt.height=vt.height,ze.push({type:"elem",elem:lt,shift:Ft})}}var pr=Su({positionType:"individualShift",children:ze}),tr=Ii(["col-align-"+(((le=pe)==null?void 0:le.align)||"c")],[pr]);if(re.push(tr),l<d-1||t.hskipBeforeAndAfter){var Mt,ot;De=(Mt=(ot=pe)==null?void 0:ot.postgap)!=null?Mt:C,De!==0&&(Z=Ii(["arraycolsep"],[]),Z.style.width=Ji(De),re.push(Z))}}}var it=Ii(["mtable"],re);if(b.length>0){for(var mt=Tz("katex-hline",a,v),Rt=Tz("katex-hdashline",a,v),pt=[{type:"elem",elem:it,shift:0}];b.length>0;){var gt=b.pop(),ut=gt.pos-W;gt.isDashed?pt.push({type:"elem",elem:Rt,shift:ut}):pt.push({type:"elem",elem:mt,shift:ut})}it=Su({positionType:"individualShift",children:pt})}if(te.length===0)return Ii(["mord"],[it],a);var Yt=Su({positionType:"individualShift",children:te}),Ye=Ii(["katex-tag"],[Yt],a);return wA([it,Ye])},"htmlBuilder"),IAn={c:"center ",l:"left ",r:"right "},KE=i(function(t,a){for(var s=[],l=new Gi("mtd",[],["mtr-glue"]),h=new Gi("mtd",[],["mml-eqn-num"]),f=0;f<t.body.length;f++){for(var d=t.body[f],m=[],b=0;b<d.length;b++)m.push(new Gi("mtd",[Th(d[b],a)]));t.tags&&t.tags[f]&&(m.unshift(l),m.push(l),t.leqno?m.unshift(h):m.push(h)),s.push(new Gi("mtr",m))}var v=new Gi("mtable",s),T=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);v.setAttribute("rowspacing",Ji(T));var C="",E="";if(t.cols&&t.cols.length>0){var S=t.cols,R="",L=!1,_=0,I=S.length;S[0].type==="separator"&&(C+="top ",_=1),S[S.length-1].type==="separator"&&(C+="bottom ",I-=1);for(var N=_;N<I;N++){var B=S[N];B.type==="align"?(E+=IAn[B.align],L&&(R+="none "),L=!0):B.type==="separator"&&L&&(R+=B.separator==="|"?"solid ":"dashed ",L=!1)}v.setAttribute("columnalign",E.trim()),/[sd]/.test(R)&&v.setAttribute("columnlines",R.trim())}if(t.colSeparationType==="align"){for(var O=t.cols||[],P="",$=1;$<O.length;$++)P+=$%2?"0em ":"1em ";v.setAttribute("columnspacing",P.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?v.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?v.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?v.setAttribute("columnspacing","0.5em"):v.setAttribute("columnspacing","1em");var V="",Y=t.hLinesBeforeRow;C+=Y[0].length>0?"left ":"",C+=Y[Y.length-1].length>0?"right ":"";for(var Q=1;Q<Y.length-1;Q++)V+=Y[Q].length===0?"none ":Y[Q][0]?"dashed ":"solid ";return/[sd]/.test(V)&&v.setAttribute("rowlines",V.trim()),C!==""&&(v=new Gi("menclose",[v]),v.setAttribute("notation",C.trim())),t.arraystretch&&t.arraystretch<1&&(v=new Gi("mstyle",[v]),v.setAttribute("scriptlevel","1")),v},"mathmlBuilder"),Ulr=i(function(t,a){t.envName.includes("ed")||Zbe(t);var s=[],l=t.envName==="split",h=$L(t.parser,{cols:s,addJot:!0,autoTag:l?void 0:Rqe(t.envName),emptySingleRow:!0,colSeparationType:t.envName.includes("at")?"alignat":"align",maxNumCols:l?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,d=0,m={type:"ordgroup",mode:t.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){var b="Number of columns should be a positive integer",v=Sqe(a[0],b);if(!/^[0-9]+$/.test(v)||Number(v)<1)throw new Bi(b,a[0]);f=Number(v),d=f*2}var T=!d;h.body.forEach(function(R){for(var L=1;L<R.length;L+=2){var _=Vl(R[L],"styling"),I=Vl(_.body[0],"ordgroup");I.body.unshift(m)}if(T)d<R.length&&(d=R.length);else{var N=R.length/2;if(f<N)throw new Bi("Too many math in a row: "+("expected "+f+", but got "+N),R[0])}});for(var C=0;C<d;++C){var E="r",S=0;C%2===1?E="l":C>0&&T&&(S=1),s[C]={type:"align",align:E,pregap:S,postgap:0}}return h.colSeparationType=T?"align":"alignat",h},"alignedHandler");YE({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,t){var a=Kbe(t[0]),s=a?[t[0]]:Vl(t[0],"ordgroup").body,l=s.map(function(f){var d=Xbe(f),m=d.text;if("lcr".includes(m))return{type:"align",align:m};if(m==="|")return{type:"separator",separator:"|"};if(m===":")return{type:"separator",separator:":"};throw new Bi("Unknown column alignment: "+m,f)}),h={cols:l,hskipBeforeAndAfter:!0,maxNumCols:l.length};return $L(r.parser,h,Lqe(r.envName))},htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],a="c",s={hskipBeforeAndAfter:!1,cols:[{type:"align",align:a}]};if(r.envName.charAt(r.envName.length-1)==="*"){var l=r.parser;if(l.consumeSpaces(),l.fetch().text==="["){if(l.consume(),l.consumeSpaces(),a=l.fetch().text,!"lcr".includes(a))throw new Bi("Expected l or c or r",l.nextToken);l.consume(),l.consumeSpaces(),l.expect("]"),l.consume(),s.cols=[{type:"align",align:a}]}}var h=$L(r.parser,s,Lqe(r.envName)),f=Math.max(0,...h.body.map(d=>d.length));return h.cols=new Array(f).fill({type:"align",align:a}),t?{type:"leftright",mode:r.mode,body:[h],left:t[0],right:t[1],rightColor:void 0}:h},htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var t={arraystretch:.5},a=$L(r.parser,t,"script");return a.colSeparationType="small",a},htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["subarray"],props:{numArgs:1},handler(r,t){var a=Kbe(t[0]),s=a?[t[0]]:Vl(t[0],"ordgroup").body,l=s.map(function(d){var m=Xbe(d),b=m.text;if("lc".includes(b))return{type:"align",align:b};throw new Bi("Unknown column alignment: "+b,d)});if(l.length>1)throw new Bi("{subarray} can contain only one column");var h={cols:l,hskipBeforeAndAfter:!1,arraystretch:.5},f=$L(r.parser,h,"script");if(f.body.length>0&&f.body[0].length>1)throw new Bi("{subarray} can contain only one column");return f},htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},a=$L(r.parser,t,Lqe(r.envName));return{type:"leftright",mode:r.mode,body:[a],left:r.envName.includes("r")?".":"\\{",right:r.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ulr,htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){DAn.has(r.envName)&&Zbe(r);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Rqe(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return $L(r.parser,t,"display")},htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ulr,htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Zbe(r);var t={autoTag:Rqe(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return $L(r.parser,t,"display")},htmlBuilder:XE,mathmlBuilder:KE});YE({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Zbe(r),gAn(r.parser)},htmlBuilder:XE,mathmlBuilder:KE});bt("\\nonumber","\\gdef\\@eqnsw{0}");bt("\\notag","\\nonumber");Sa({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(r,t){throw new Bi(r.funcName+" valid only within array environment")}});Kor=jlr;Sa({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(r,t){var a=r.parser,s=r.funcName,l=t[0];if(l.type!=="ordgroup")throw new Bi("Invalid environment name",l);var h=Sqe(l,"Environment name should contain only text characters and spaces",!0);if(s==="\\begin"){if(!Object.prototype.hasOwnProperty.call(Kor,h))throw new Bi("No such environment: "+h,l);var f=Kor[h],d=a.parseArguments("\\begin{"+h+"}",f),m=d.args,b=d.optArgs,v={mode:a.mode,envName:h,parser:a},T=f.handler(v,m,b);a.expect("\\end",!1);var C=a.nextToken,E=Vl(a.parseFunction(),"environment");if(E.name!==h)throw new Bi("Mismatch: \\begin{"+h+"} matched by \\end{"+E.name+"}",C);return T}return{type:"environment",mode:a.mode,name:h,nameGroup:l}}});MAn=i((r,t)=>{var a=r.font,s=t.withFont(a);return ou(r.body,s)},"htmlBuilder$5"),NAn=i((r,t)=>{var a=r.font,s=t.withFont(a);return Th(r.body,s)},"mathmlBuilder$4"),Jor={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Sa({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:i((r,t)=>{var a=r.parser,s=r.funcName,l=ate(t[0]),h=s in Jor?Jor[s]:s;return{type:"font",mode:a.mode,font:h.slice(1),body:l}},"handler"),htmlBuilder:MAn,mathmlBuilder:NAn});Sa({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:i((r,t)=>{var a=r.parser,s=t[0];return{type:"mclass",mode:a.mode,mclass:Jbe(s),body:[{type:"font",mode:a.mode,font:"boldsymbol",body:s}],isCharacterBox:bA(s)}},"handler")});Sa({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:i((r,t)=>{var a=r.parser,s=r.funcName,l=r.breakOnTokenText,h=a.mode,f=a.parseExpression(!0,l);return{type:"font",mode:h,font:"math"+s.slice(1),body:{type:"ordgroup",mode:a.mode,body:f}}},"handler")});OAn=i((r,t)=>{var a=t.style,s=a.fracNum(),l=a.fracDen(),h;h=t.havingStyle(s);var f=ou(r.numer,h,t);if(r.continued){var d=8.5/t.fontMetrics().ptPerEm,m=3.5/t.fontMetrics().ptPerEm;f.height=f.height<d?d:f.height,f.depth=f.depth<m?m:f.depth}h=t.havingStyle(l);var b=ou(r.denom,h,t),v,T,C;r.hasBarLine?(r.barSize?(T=Md(r.barSize,t),v=Tz("frac-line",t,T)):v=Tz("frac-line",t),T=v.height,C=v.height):(v=null,T=0,C=t.fontMetrics().defaultRuleThickness);var E,S,R;a.size===Xo.DISPLAY.size?(E=t.fontMetrics().num1,T>0?S=3*C:S=7*C,R=t.fontMetrics().denom1):(T>0?(E=t.fontMetrics().num2,S=C):(E=t.fontMetrics().num3,S=3*C),R=t.fontMetrics().denom2);var L;if(v){var I=t.fontMetrics().axisHeight;E-f.depth-(I+.5*T)<S&&(E+=S-(E-f.depth-(I+.5*T))),I-.5*T-(b.height-R)<S&&(R+=S-(I-.5*T-(b.height-R)));var N=-(I-.5*T);L=Su({positionType:"individualShift",children:[{type:"elem",elem:b,shift:R},{type:"elem",elem:v,shift:N},{type:"elem",elem:f,shift:-E}]})}else{var _=E-f.depth-(b.height-R);_<S&&(E+=.5*(S-_),R+=.5*(S-_)),L=Su({positionType:"individualShift",children:[{type:"elem",elem:b,shift:R},{type:"elem",elem:f,shift:-E}]})}h=t.havingStyle(a),L.height*=h.sizeMultiplier/t.sizeMultiplier,L.depth*=h.sizeMultiplier/t.sizeMultiplier;var B;a.size===Xo.DISPLAY.size?B=t.fontMetrics().delim1:a.size===Xo.SCRIPTSCRIPT.size?B=t.havingStyle(Xo.SCRIPT).fontMetrics().delim2:B=t.fontMetrics().delim2;var O,P;return r.leftDelim==null?O=ste(t,["mopen"]):O=pqe(r.leftDelim,B,!0,t.havingStyle(a),r.mode,["mopen"]),r.continued?P=Ii([]):r.rightDelim==null?P=ste(t,["mclose"]):P=pqe(r.rightDelim,B,!0,t.havingStyle(a),r.mode,["mclose"]),Ii(["mord"].concat(h.sizingClasses(t)),[O,Ii(["mfrac"],[L]),P],t)},"htmlBuilder$4"),PAn=i((r,t)=>{var a=new Gi("mfrac",[Th(r.numer,t),Th(r.denom,t)]);if(!r.hasBarLine)a.setAttribute("linethickness","0px");else if(r.barSize){var s=Md(r.barSize,t);a.setAttribute("linethickness",Ji(s))}if(r.leftDelim!=null||r.rightDelim!=null){var l=[];if(r.leftDelim!=null){var h=new Gi("mo",[new gp(r.leftDelim.replace("\\",""))]);h.setAttribute("fence","true"),l.push(h)}if(l.push(a),r.rightDelim!=null){var f=new Gi("mo",[new gp(r.rightDelim.replace("\\",""))]);f.setAttribute("fence","true"),l.push(f)}return Cqe(l)}return a},"mathmlBuilder$3"),Vlr=i((r,t)=>{if(!t)return r;var a={type:"styling",mode:r.mode,style:t,body:[r]};return a},"wrapWithStyle");Sa({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:i((r,t)=>{var a=r.parser,s=r.funcName,l=t[0],h=t[1],f,d=null,m=null;switch(s){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":f=!0;break;case"\\\\atopfrac":f=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":f=!1,d="(",m=")";break;case"\\\\bracefrac":f=!1,d="\\{",m="\\}";break;case"\\\\brackfrac":f=!1,d="[",m="]";break;default:throw new Error("Unrecognized genfrac command")}var b=s==="\\cfrac",v=null;return b||s.startsWith("\\d")?v="display":s.startsWith("\\t")&&(v="text"),Vlr({type:"genfrac",mode:a.mode,numer:l,denom:h,continued:b,hasBarLine:f,leftDelim:d,rightDelim:m,barSize:null},v)},"handler"),htmlBuilder:OAn,mathmlBuilder:PAn});Sa({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(r){var t=r.parser,a=r.funcName,s=r.token,l;switch(a){case"\\over":l="\\frac";break;case"\\choose":l="\\binom";break;case"\\atop":l="\\\\atopfrac";break;case"\\brace":l="\\\\bracefrac";break;case"\\brack":l="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:l,token:s}}});Qor=["display","text","script","scriptscript"],Zor=i(function(t){var a=null;return t.length>0&&(a=t,a=a==="."?null:a),a},"delimFromValue");Sa({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(r,t){var a=r.parser,s=t[4],l=t[5],h=ate(t[0]),f=h.type==="atom"&&h.family==="open"?Zor(h.text):null,d=ate(t[1]),m=d.type==="atom"&&d.family==="close"?Zor(d.text):null,b=Vl(t[2],"size"),v,T=null;b.isBlank?v=!0:(T=b.value,v=T.number>0);var C=null,E=t[3];if(E.type==="ordgroup"){if(E.body.length>0){var S=Vl(E.body[0],"textord");C=Qor[Number(S.text)]}}else E=Vl(E,"textord"),C=Qor[Number(E.text)];return Vlr({type:"genfrac",mode:a.mode,numer:s,denom:l,continued:!1,hasBarLine:v,barSize:T,leftDelim:f,rightDelim:m},C)}});Sa({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(r,t){var a=r.parser;r.funcName;var s=r.token;return{type:"infix",mode:a.mode,replaceWith:"\\\\abovefrac",size:Vl(t[0],"size").value,token:s}}});Sa({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:i((r,t)=>{var a=r.parser;r.funcName;var s=t[0],l=Vl(t[1],"infix").size;if(!l)throw new Error("\\\\abovefrac expected size, but got "+String(l));var h=t[2],f=l.number>0;return{type:"genfrac",mode:a.mode,numer:s,denom:h,continued:!1,hasBarLine:f,barSize:l,leftDelim:null,rightDelim:null}},"handler")});Wlr=i((r,t)=>{var a=t.style,s,l;r.type==="supsub"?(s=r.sup?ou(r.sup,t.havingStyle(a.sup()),t):ou(r.sub,t.havingStyle(a.sub()),t),l=Vl(r.base,"horizBrace")):l=Vl(r,"horizBrace");var h=ou(l.base,t.havingBaseStyle(Xo.DISPLAY)),f=Ybe(l,t),d;if(l.isOver?d=Su({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.1},{type:"elem",elem:f,wrapperClasses:["svg-align"]}]}):d=Su({positionType:"bottom",positionData:h.depth+.1+f.height,children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:h}]}),s){var m=Ii(["minner",l.isOver?"mover":"munder"],[d],t);l.isOver?d=Su({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:s}]}):d=Su({positionType:"bottom",positionData:m.depth+.2+s.height+s.depth,children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:m}]})}return Ii(["minner",l.isOver?"mover":"munder"],[d],t)},"htmlBuilder$3"),BAn=i((r,t)=>{var a=qbe(r.label);return new Gi(r.isOver?"mover":"munder",[Th(r.base,t),a])},"mathmlBuilder$2");Sa({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(r,t){var a=r.parser,s=r.funcName;return{type:"horizBrace",mode:a.mode,label:s,isOver:s.includes("\\over"),base:t[0]}},htmlBuilder:Wlr,mathmlBuilder:BAn});Sa({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:i((r,t)=>{var a=r.parser,s=t[1],l=Vl(t[0],"url").url;return a.settings.isTrusted({command:"\\href",url:l})?{type:"href",mode:a.mode,href:l,body:Mg(s)}:a.formatUnsupportedCmd("\\href")},"handler"),htmlBuilder:i((r,t)=>{var a=k0(r.body,t,!1);return $6n(r.href,[],a,t)},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=FL(r.body,t);return a instanceof Gi||(a=new Gi("mrow",[a])),a.setAttribute("href",r.href),a},"mathmlBuilder")});Sa({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:i((r,t)=>{var a=r.parser,s=Vl(t[0],"url").url;if(!a.settings.isTrusted({command:"\\url",url:s}))return a.formatUnsupportedCmd("\\url");for(var l=[],h=0;h<s.length;h++){var f=s[h];f==="~"&&(f="\\textasciitilde"),l.push({type:"textord",mode:"text",text:f})}var d={type:"text",mode:a.mode,font:"\\texttt",body:l};return{type:"href",mode:a.mode,href:s,body:Mg(d)}},"handler")});Sa({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(r,t){var a=r.parser;return{type:"hbox",mode:a.mode,body:Mg(t[0])}},htmlBuilder(r,t){var a=k0(r.body,t.withFont(""),!1);return wA(a)},mathmlBuilder(r,t){return new Gi("mrow",Yw(r.body,t.withFont("")))}});Sa({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:i((r,t)=>{var a=r.parser,s=r.funcName;r.token;var l=Vl(t[0],"raw").string,h=t[1];a.settings.strict&&n2({strict:a.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var f,d={};switch(s){case"\\htmlClass":d.class=l,f={command:"\\htmlClass",class:l};break;case"\\htmlId":d.id=l,f={command:"\\htmlId",id:l};break;case"\\htmlStyle":d.style=l,f={command:"\\htmlStyle",style:l};break;case"\\htmlData":{for(var m="{,}",b=[],v="",T=0;T<l.length;T++)l.startsWith(m,T)?(v+=",",T+=m.length-1):l[T]===","?(b.push(v),v=""):v+=l[T];b.push(v);for(var C=0;C<b.length;C++){var E=b[C],S=E.indexOf("=");if(S<0)throw new Bi("\\htmlData key/value '"+E+"' missing equals sign");var R=E.slice(0,S),L=E.slice(S+1);d["data-"+R.trim()]=L}f={command:"\\htmlData",attributes:d};break}default:throw new Error("Unrecognized html command")}return a.settings.isTrusted(f)?{type:"html",mode:a.mode,attributes:d,body:Mg(h)}:a.formatUnsupportedCmd(s)},"handler"),htmlBuilder:i((r,t)=>{var a=k0(r.body,t,!1),s=["enclosing"];r.attributes.class&&s.push(...r.attributes.class.trim().split(/\s+/));var l=Ii(s,a,t);for(var h of Object.entries(r.attributes)){var f=h[0],d=h[1];f!=="class"&&l.setAttribute(f,d)}return l},"htmlBuilder"),mathmlBuilder:i((r,t)=>FL(r.body,t),"mathmlBuilder")});Sa({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:i((r,t)=>{var a=r.parser;return{type:"htmlmathml",mode:a.mode,html:Mg(t[0]),mathml:Mg(t[1])}},"handler"),htmlBuilder:i((r,t)=>{var a=k0(r.html,t,!1);return wA(a)},"htmlBuilder"),mathmlBuilder:i((r,t)=>FL(r.mathml,t),"mathmlBuilder")});JHe=i(function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!a)throw new Bi("Invalid size: '"+t+"' in \\includegraphics");var s={number:+(a[1]+a[2]),unit:a[3]};if(!plr(s))throw new Bi("Invalid unit: '"+s.unit+"' in \\includegraphics.");return s},"sizeData");Sa({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:i((r,t,a)=>{var s=r.parser,l={number:0,unit:"em"},h={number:.9,unit:"em"},f={number:0,unit:"em"},d="";if(a[0])for(var m=Vl(a[0],"raw").string,b=m.split(","),v=0;v<b.length;v++){var T=b[v].split("=");if(T.length===2){var C=T[1].trim();switch(T[0].trim()){case"alt":d=C;break;case"width":l=JHe(C);break;case"height":h=JHe(C);break;case"totalheight":f=JHe(C);break;default:throw new Bi("Invalid key: '"+T[0]+"' in \\includegraphics.")}}}var E=Vl(t[0],"url").url;return d===""&&(d=E,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),s.settings.isTrusted({command:"\\includegraphics",url:E})?{type:"includegraphics",mode:s.mode,alt:d,width:l,height:h,totalheight:f,src:E}:s.formatUnsupportedCmd("\\includegraphics")},"handler"),htmlBuilder:i((r,t)=>{var a=Md(r.height,t),s=0;r.totalheight.number>0&&(s=Md(r.totalheight,t)-a);var l=0;r.width.number>0&&(l=Md(r.width,t));var h={height:Ji(a+s)};l>0&&(h.width=Ji(l)),s>0&&(h.verticalAlign=Ji(-s));var f=new tqe(r.src,r.alt,h);return f.height=a,f.depth=s,f},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=new Gi("mglyph",[]);a.setAttribute("alt",r.alt);var s=Md(r.height,t),l=0;if(r.totalheight.number>0&&(l=Md(r.totalheight,t)-s,a.setAttribute("valign",Ji(-l))),a.setAttribute("height",Ji(s+l)),r.width.number>0){var h=Md(r.width,t);a.setAttribute("width",Ji(h))}return a.setAttribute("src",r.src),a},"mathmlBuilder")});Sa({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(r,t){var a=r.parser,s=r.funcName,l=Vl(t[0],"size");if(a.settings.strict){var h=s[1]==="m",f=l.value.unit==="mu";h?(f||n2({strict:a.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+s+" supports only mu units, "+("not "+l.value.unit+" units"),report:!0}),a.mode!=="math"&&n2({strict:a.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+s+" works only in math mode",report:!0})):f&&n2({strict:a.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+s+" doesn't support mu units",report:!0})}return{type:"kern",mode:a.mode,dimension:l.value}},htmlBuilder(r,t){return xlr(r.dimension,t)},mathmlBuilder(r,t){var a=Md(r.dimension,t);return new jbe(a)}});Sa({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:i((r,t)=>{var a=r.parser,s=r.funcName,l=t[0];return{type:"lap",mode:a.mode,alignment:s.slice(5),body:l}},"handler"),htmlBuilder:i((r,t)=>{var a;r.alignment==="clap"?(a=Ii([],[ou(r.body,t)]),a=Ii(["katex-inner"],[a],t)):a=Ii(["katex-inner"],[ou(r.body,t)]);var s=Ii(["katex-fix"],[]),l=Ii([r.alignment],[a,s],t),h=Ii(["katex-strut"]);return h.style.height=Ji(l.height+l.depth),l.depth&&(h.style.verticalAlign=Ji(-l.depth)),l.children.unshift(h),l=Ii(["katex-thinbox"],[l],t),Ii(["mord","katex-vbox"],[l],t)},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=new Gi("mpadded",[Th(r.body,t)]);if(r.alignment!=="rlap"){var s=r.alignment==="llap"?"-1":"-0.5";a.setAttribute("lspace",s+"width")}return a.setAttribute("width","0px"),a},"mathmlBuilder")});Sa({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(r,t){var a=r.funcName,s=r.parser,l=s.mode;s.switchMode("math");var h=a==="\\("?"\\)":"$",f=s.parseExpression(!1,h);return s.expect(h),s.switchMode(l),{type:"styling",mode:s.mode,style:"text",resetFont:!0,body:f}}});Sa({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(r,t){throw new Bi("Mismatched "+r.funcName)}});elr=i((r,t)=>{switch(t.style.size){case Xo.DISPLAY.size:return r.display;case Xo.TEXT.size:return r.text;case Xo.SCRIPT.size:return r.script;case Xo.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}},"chooseMathStyle");Sa({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:i((r,t)=>{var a=r.parser;return{type:"mathchoice",mode:a.mode,display:Mg(t[0]),text:Mg(t[1]),script:Mg(t[2]),scriptscript:Mg(t[3])}},"handler"),htmlBuilder:i((r,t)=>{var a=elr(r,t),s=k0(a,t,!1);return wA(s)},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=elr(r,t);return FL(a,t)},"mathmlBuilder")});Hlr=i((r,t,a,s,l,h,f)=>{r=Ii([],[r]);var d=a&&bA(a),m,b;if(t){var v=ou(t,s.havingStyle(l.sup()),s);b={elem:v,kern:Math.max(s.fontMetrics().bigOpSpacing1,s.fontMetrics().bigOpSpacing3-v.depth)}}if(a){var T=ou(a,s.havingStyle(l.sub()),s);m={elem:T,kern:Math.max(s.fontMetrics().bigOpSpacing2,s.fontMetrics().bigOpSpacing4-T.height)}}var C;if(b&&m){var E=s.fontMetrics().bigOpSpacing5+m.elem.height+m.elem.depth+m.kern+r.depth+f;C=Su({positionType:"bottom",positionData:E,children:[{type:"kern",size:s.fontMetrics().bigOpSpacing5},{type:"elem",elem:m.elem,marginLeft:Ji(-h)},{type:"kern",size:m.kern},{type:"elem",elem:r},{type:"kern",size:b.kern},{type:"elem",elem:b.elem,marginLeft:Ji(h)},{type:"kern",size:s.fontMetrics().bigOpSpacing5}]})}else if(m){var S=r.height-f;C=Su({positionType:"top",positionData:S,children:[{type:"kern",size:s.fontMetrics().bigOpSpacing5},{type:"elem",elem:m.elem,marginLeft:Ji(-h)},{type:"kern",size:m.kern},{type:"elem",elem:r}]})}else if(b){var R=r.depth+f;C=Su({positionType:"bottom",positionData:R,children:[{type:"elem",elem:r},{type:"kern",size:b.kern},{type:"elem",elem:b.elem,marginLeft:Ji(h)},{type:"kern",size:s.fontMetrics().bigOpSpacing5}]})}else return r;var L=[C];if(m&&h!==0&&!d){var _=Ii(["mspace"],[],s);_.style.marginRight=Ji(h),L.unshift(_)}return Ii(["mop","op-limits"],L,s)},"assembleSupSub"),qlr=new Set(["\\smallint"]),Ylr=i((r,t)=>{var a,s,l=!1,h;r.type==="supsub"?(a=r.sup,s=r.sub,h=Vl(r.base,"op"),l=!0):h=Vl(r,"op");var f=t.style,d=!1;f.size===Xo.DISPLAY.size&&h.symbol&&!qlr.has(h.name)&&(d=!0);var m,b;if(h.symbol){var v=d?"Size2-Regular":"Size1-Regular",T="";if((h.name==="\\oiint"||h.name==="\\oiiint")&&(T=h.name.slice(1),h.name=T==="oiint"?"\\iint":"\\iiint"),m=xb(h.name,v,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),b=m.italic,T.length>0){var C=klr(T+"Size"+(d?"2":"1"),t);m=Su({positionType:"individualShift",children:[{type:"elem",elem:m,shift:0},{type:"elem",elem:C,shift:d?.08:0}]}),h.name="\\"+T,m.classes.unshift("mop"),m.italic=b}}else if(h.body){var E=k0(h.body,t,!0);E.length===1&&E[0]instanceof kb?(m=E[0],m.classes[0]="mop"):m=Ii(["mop"],E,t)}else{for(var S=[],R=1;R<h.name.length;R++)S.push(Tqe(h.name[R],h.mode,t));m=Ii(["mop"],S,t)}var L=0,_=0;if((m instanceof kb||h.name==="\\oiint"||h.name==="\\oiiint")&&!h.suppressBaseShift){var I;L=(m.height-m.depth)/2-t.fontMetrics().axisHeight,_=(I=m.italic)!=null?I:0}return l?Hlr(m,a,s,t,f,_,L):(L&&(m.style.position="relative",m.style.top=Ji(L)),m)},"htmlBuilder$2"),FAn=i((r,t)=>{var a;if(r.symbol)a=new Gi("mo",[PT(r.name,r.mode)]),qlr.has(r.name)&&a.setAttribute("largeop","false");else if(r.body)a=new Gi("mo",Yw(r.body,t));else{a=new Gi("mi",[new gp(r.name.slice(1))]);var s=new Gi("mo",[PT("\u2061","text")]);r.parentIsSupSub?a=new Gi("mrow",[a,s]):a=Slr([a,s])}return a},"mathmlBuilder$1"),$An={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Sa({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],numArgs:0,handler:i((r,t)=>{var a=r.parser,s=r.funcName,l=s;return l.length===1&&(l=$An[l]),{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:l}},"handler"),htmlBuilder:Ylr,mathmlBuilder:FAn});Sa({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:i((r,t)=>{var a=r.parser,s=t[0];return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Mg(s)}},"handler")});GAn={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Sa({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],numArgs:0,handler(r){var t=r.parser,a=r.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:a}}});Sa({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(r){var t=r.parser,a=r.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:a}}});Sa({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],numArgs:0,allowedInArgument:!0,handler(r){var t=r.parser,a=r.funcName,s=a;return s.length===1&&(s=GAn[s]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:s}}});Xlr=i((r,t)=>{var a,s,l=!1,h;r.type==="supsub"?(a=r.sup,s=r.sub,h=Vl(r.base,"operatorname"),l=!0):h=Vl(r,"operatorname");var f;if(h.body.length>0){for(var d=h.body.map(T=>{var C="text"in T?T.text:void 0;return typeof C=="string"?{type:"textord",mode:T.mode,text:C}:T}),m=k0(d,t.withFont("mathrm"),!0),b=0;b<m.length;b++){var v=m[b];v instanceof kb&&(v.text=v.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}f=Ii(["mop"],m,t)}else f=Ii(["mop"],[],t);return l?Hlr(f,a,s,t,t.style,0,0):f},"htmlBuilder$1"),jAn=i((r,t)=>{for(var a=Yw(r.body,t.withFont("mathrm")),s=!0,l=0;l<a.length;l++){var h=a[l];if(!(h instanceof jbe))if(h instanceof Gi)switch(h.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var f=h.children[0];h.children.length===1&&f instanceof gp?f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):s=!1;break}default:s=!1}else s=!1}if(s){var d=a.map(v=>v.toText()).join("");a=[new gp(d)]}var m=new Gi("mi",a);m.setAttribute("mathvariant","normal");var b=new Gi("mo",[PT("\u2061","text")]);return r.parentIsSupSub?new Gi("mrow",[m,b]):Slr([m,b])},"mathmlBuilder");Sa({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:i((r,t)=>{var a=r.parser,s=r.funcName,l=t[0];return{type:"operatorname",mode:a.mode,body:Mg(l),alwaysHandleSupSub:s==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},"handler"),htmlBuilder:Xlr,mathmlBuilder:jAn});bt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");tO({type:"ordgroup",htmlBuilder(r,t){return r.semisimple?wA(k0(r.body,t,!1)):Ii(["mord"],k0(r.body,t,!0),t)},mathmlBuilder(r,t){return FL(r.body,t,!0)}});Sa({type:"overline",names:["\\overline"],numArgs:1,handler(r,t){var a=r.parser,s=t[0];return{type:"overline",mode:a.mode,body:s}},htmlBuilder(r,t){var a=ou(r.body,t.havingCrampedStyle()),s=Tz("overline-line",t),l=t.fontMetrics().defaultRuleThickness,h=Su({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:3*l},{type:"elem",elem:s},{type:"kern",size:l}]});return Ii(["mord","katex-overline"],[h],t)},mathmlBuilder(r,t){var a=new Gi("mo",[new gp("\u203E")]);a.setAttribute("stretchy","true");var s=new Gi("mover",[Th(r.body,t),a]);return s.setAttribute("accent","true"),s}});Sa({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:i((r,t)=>{var a=r.parser,s=t[0];return{type:"phantom",mode:a.mode,body:Mg(s)}},"handler"),htmlBuilder:i((r,t)=>{var a=k0(r.body,t.withPhantom(),!1);return wA(a)},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=Yw(r.body,t);return new Gi("mphantom",a)},"mathmlBuilder")});bt("\\hphantom","\\smash{\\phantom{#1}}");Sa({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:i((r,t)=>{var a=r.parser,s=t[0];return{type:"vphantom",mode:a.mode,body:s}},"handler"),htmlBuilder:i((r,t)=>{var a=Ii(["katex-inner"],[ou(r.body,t.withPhantom())]),s=Ii(["katex-fix"],[]);return Ii(["mord","rlap"],[a,s],t)},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=Yw(Mg(r.body),t),s=new Gi("mphantom",a),l=new Gi("mpadded",[s]);return l.setAttribute("width","0px"),l},"mathmlBuilder")});Sa({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(r,t){var a=r.parser,s=Vl(t[0],"size").value,l=t[1];return{type:"raisebox",mode:a.mode,dy:s,body:l}},htmlBuilder(r,t){var a=ou(r.body,t),s=Md(r.dy,t);return Su({positionType:"shift",positionData:-s,children:[{type:"elem",elem:a}]})},mathmlBuilder(r,t){var a=new Gi("mpadded",[Th(r.body,t)]),s=r.dy.number+r.dy.unit;return a.setAttribute("voffset",s),a}});Klr=i((r,t)=>{var a=r.parser;return{type:"reflectbox",mode:a.mode,body:t[0]}},"handler");Sa({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:Klr,htmlBuilder(r,t){return Ii(["mord","reflectbox"],[ou(r.body,t)],t)},mathmlBuilder(r,t){return Th(r.body,t)}});Sa({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Klr});Sa({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(r){var t=r.parser;return{type:"internal",mode:t.mode}}});Sa({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(r,t,a){var s=r.parser,l=a[0],h=Vl(t[0],"size"),f=Vl(t[1],"size");return{type:"rule",mode:s.mode,shift:l&&Vl(l,"size").value,width:h.value,height:f.value}},htmlBuilder(r,t){var a=Ii(["mord","katex-rule"],[],t),s=Md(r.width,t),l=Md(r.height,t),h=r.shift?Md(r.shift,t):0;return a.style.borderRightWidth=Ji(s),a.style.borderTopWidth=Ji(l),a.style.bottom=Ji(h),a.width=s,a.height=l+h,a.depth=-h,a.maxFontSize=l*1.125*t.sizeMultiplier,a},mathmlBuilder(r,t){var a=Md(r.width,t),s=Md(r.height,t),l=r.shift?Md(r.shift,t):0,h=t.color&&t.getColor()||"black",f=new Gi("mspace");f.setAttribute("mathbackground",h),f.setAttribute("width",Ji(a)),f.setAttribute("height",Ji(s));var d=new Gi("mpadded",[f]);return l>=0?d.setAttribute("height",Ji(l)):(d.setAttribute("height",Ji(l)),d.setAttribute("depth",Ji(-l))),d.setAttribute("voffset",Ji(l)),d}});i(Jlr,"sizingGroup");tlr=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],zAn=i((r,t)=>{var a=t.havingSize(r.size);return Jlr(r.body,a,t)},"htmlBuilder");Sa({type:"sizing",names:tlr,numArgs:0,allowedInText:!0,handler:i((r,t)=>{var a=r.breakOnTokenText,s=r.funcName,l=r.parser,h=l.parseExpression(!1,a);return{type:"sizing",mode:l.mode,size:tlr.indexOf(s)+1,body:h}},"handler"),htmlBuilder:zAn,mathmlBuilder:i((r,t)=>{var a=t.havingSize(r.size),s=Yw(r.body,a),l=new Gi("mstyle",s);return l.setAttribute("mathsize",Ji(a.sizeMultiplier)),l},"mathmlBuilder")});Sa({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:i((r,t,a)=>{var s=r.parser,l=!1,h=!1,f=a[0]&&Vl(a[0],"ordgroup");if(f)for(var d,m=0;m<f.body.length;++m){var b=f.body[m];if(d=Xbe(b).text,d==="t")l=!0;else if(d==="b")h=!0;else{l=!1,h=!1;break}}else l=!0,h=!0;var v=t[0];return{type:"smash",mode:s.mode,body:v,smashHeight:l,smashDepth:h}},"handler"),htmlBuilder:i((r,t)=>{var a=Ii([],[ou(r.body,t)]);if(!r.smashHeight&&!r.smashDepth)return a;if(r.smashHeight&&(a.height=0),r.smashDepth&&(a.depth=0),r.smashHeight&&r.smashDepth)return Ii(["mord","katex-smash"],[a],t);if(a.children)for(var s=0;s<a.children.length;s++)r.smashHeight&&(a.children[s].height=0),r.smashDepth&&(a.children[s].depth=0);var l=Su({positionType:"firstBaseline",children:[{type:"elem",elem:a}]});return Ii(["mord"],[l],t)},"htmlBuilder"),mathmlBuilder:i((r,t)=>{var a=new Gi("mpadded",[Th(r.body,t)]);return r.smashHeight&&a.setAttribute("height","0px"),r.smashDepth&&a.setAttribute("depth","0px"),a},"mathmlBuilder")});Sa({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(r,t,a){var s=r.parser,l=a[0],h=t[0];return{type:"sqrt",mode:s.mode,body:h,index:l}},htmlBuilder(r,t){var a=ou(r.body,t.havingCrampedStyle());a.height===0&&(a.height=t.fontMetrics().xHeight),a=kz(a,t);var s=t.fontMetrics(),l=s.defaultRuleThickness,h=l;t.style.id<Xo.TEXT.id&&(h=t.fontMetrics().xHeight);var f=l+h/4,d=a.height+a.depth+f+l,m=kAn(d,t),b=m.span,v=m.ruleWidth,T=m.advanceWidth,C=b.height-v;C>a.height+a.depth+f&&(f=(f+C-a.height-a.depth)/2);var E=b.height-a.height-f-v;a.style.paddingLeft=Ji(T);var S=Su({positionType:"firstBaseline",children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:-(a.height+E)},{type:"elem",elem:b},{type:"kern",size:v}]});if(r.index){var R=t.havingStyle(Xo.SCRIPTSCRIPT),L=ou(r.index,R,t),_=.6*(S.height-S.depth),I=Su({positionType:"shift",positionData:-_,children:[{type:"elem",elem:L}]}),N=Ii(["katex-root"],[I]);return Ii(["mord","sqrt"],[N,S],t)}else return Ii(["mord","sqrt"],[S],t)},mathmlBuilder(r,t){var a=r.body,s=r.index;return s?new Gi("mroot",[Th(a,t),Th(s,t)]):new Gi("msqrt",[Th(a,t)])}});gqe={display:Xo.DISPLAY,text:Xo.TEXT,script:Xo.SCRIPT,scriptscript:Xo.SCRIPTSCRIPT};i(UAn,"isStyleStr");Sa({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(r,t){var a=r.breakOnTokenText,s=r.funcName,l=r.parser,h=l.parseExpression(!0,a),f=s.slice(1,s.length-5);if(!UAn(f))throw new Error("Unknown style: "+f);return{type:"styling",mode:l.mode,style:f,body:h}},htmlBuilder(r,t){var a=gqe[r.style],s=t.havingStyle(a);return r.resetFont&&(s=s.withFont("")),Jlr(r.body,s,t)},mathmlBuilder(r,t){var a=gqe[r.style],s=t.havingStyle(a);r.resetFont&&(s=s.withFont(""));var l=Yw(r.body,s),h=new Gi("mstyle",l),f={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=f[r.style];return h.setAttribute("scriptlevel",d[0]),h.setAttribute("displaystyle",d[1]),h}});VAn=i(function(t,a){var s=t.base;if(s)if(s.type==="op"){var l=s.limits&&(a.style.size===Xo.DISPLAY.size||s.alwaysHandleSupSub);return l?Ylr:null}else if(s.type==="operatorname"){var h=s.alwaysHandleSupSub&&(a.style.size===Xo.DISPLAY.size||s.limits);return h?Xlr:null}else{if(s.type==="accent")return bA(s.base)?_lr:null;if(s.type==="horizBrace"){var f=!t.sub;return f===s.isOver?Wlr:null}else return null}else return null},"htmlBuilderDelegate");tO({type:"supsub",htmlBuilder(r,t){var a=VAn(r,t);if(a)return a(r,t);var s=r.base,l=r.sup,h=r.sub,f=ou(s,t),d,m,b=t.fontMetrics(),v=0,T=0,C=s&&bA(s);if(l){var E=t.havingStyle(t.style.sup());d=ou(l,E,t),C||(v=f.height-E.fontMetrics().supDrop*E.sizeMultiplier/t.sizeMultiplier)}if(h){var S=t.havingStyle(t.style.sub());m=ou(h,S,t),C||(T=f.depth+S.fontMetrics().subDrop*S.sizeMultiplier/t.sizeMultiplier)}var R;t.style===Xo.DISPLAY?R=b.sup1:t.style.cramped?R=b.sup3:R=b.sup2;var L=t.sizeMultiplier,_=Ji(.5/b.ptPerEm/L),I=null;if(m){var N=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");if(f instanceof kb||N){var B;I=Ji(-((B=f.italic)!=null?B:0))}}var O;if(d&&m){v=Math.max(v,R,d.depth+.25*b.xHeight),T=Math.max(T,b.sub2);var P=b.defaultRuleThickness,$=4*P;if(v-d.depth-(m.height-T)<$){T=$-(v-d.depth)+m.height;var V=.8*b.xHeight-(v-d.depth);V>0&&(v+=V,T-=V)}var Y=[{type:"elem",elem:m,shift:T,marginRight:_,marginLeft:I},{type:"elem",elem:d,shift:-v,marginRight:_}];O=Su({positionType:"individualShift",children:Y})}else if(m){T=Math.max(T,b.sub1,m.height-.8*b.xHeight);var Q=[{type:"elem",elem:m,marginLeft:I,marginRight:_}];O=Su({positionType:"shift",positionData:T,children:Q})}else if(d)v=Math.max(v,R,d.depth+.25*b.xHeight),O=Su({positionType:"shift",positionData:-v,children:[{type:"elem",elem:d,marginRight:_}]});else throw new Error("supsub must have either sup or sub.");var q=uqe(f,"right")||"mord";return Ii([q],[f,Ii(["msupsub"],[O])],t)},mathmlBuilder(r,t){var a=!1,s,l;r.base&&r.base.type==="horizBrace"&&(l=!!r.sup,l===r.base.isOver&&(a=!0,s=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var h=[Th(r.base,t)];r.sub&&h.push(Th(r.sub,t)),r.sup&&h.push(Th(r.sup,t));var f;if(a)f=s?"mover":"munder";else if(r.sub)if(r.sup){var b=r.base;b&&b.type==="op"&&b.limits&&t.style===Xo.DISPLAY||b&&b.type==="operatorname"&&b.alwaysHandleSupSub&&(t.style===Xo.DISPLAY||b.limits)?f="munderover":f="msubsup"}else{var m=r.base;m&&m.type==="op"&&m.limits&&(t.style===Xo.DISPLAY||m.alwaysHandleSupSub)||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(m.limits||t.style===Xo.DISPLAY)?f="munder":f="msub"}else{var d=r.base;d&&d.type==="op"&&d.limits&&(t.style===Xo.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===Xo.DISPLAY)?f="mover":f="msup"}return new Gi(f,h)}});tO({type:"atom",htmlBuilder(r,t){return Tqe(r.text,r.mode,t,["m"+r.family])},mathmlBuilder(r,t){var a=new Gi("mo",[PT(r.text,r.mode)]);if(r.family==="bin"){var s=Eqe(r,t);s==="bold-italic"&&a.setAttribute("mathvariant",s)}else r.family==="punct"?a.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&a.setAttribute("stretchy","false");return a}});Qlr={mi:"italic",mn:"normal",mtext:"normal"};tO({type:"mathord",htmlBuilder(r,t){return Hbe(r,t)},mathmlBuilder(r,t){var a=new Gi("mi",[PT(r.text,r.mode,t)]),s=Eqe(r,t)||"italic";return s!==Qlr[a.type]&&a.setAttribute("mathvariant",s),a}});tO({type:"textord",htmlBuilder(r,t){return Hbe(r,t)},mathmlBuilder(r,t){var a=PT(r.text,r.mode,t),s=Eqe(r,t)||"normal",l;return r.mode==="text"?l=new Gi("mtext",[a]):/[0-9]/.test(r.text)?l=new Gi("mn",[a]):r.text==="\\prime"?l=new Gi("mo",[a]):l=new Gi("mi",[a]),s!==Qlr[l.type]&&l.setAttribute("mathvariant",s),l}});rlr=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),nlr=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);tO({type:"spacing",htmlBuilder(r,t){var a=nlr.get(r.text),s=rlr.get(r.text);if(a){var l=a.className||"";if(r.mode==="text"){var h=Hbe(r,t);return h.classes.push(l),h}else return Ii(["mspace",l],[Tqe(r.text,r.mode,t)],t)}else{if(s)return Ii(["mspace",s],[],t);throw new Bi('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,t){var a;if(nlr.has(r.text))a=new Gi("mtext",[new gp("\xA0")]);else{if(rlr.has(r.text))return new Gi("mspace");throw new Bi('Unknown type of space "'+r.text+'"')}return a}});ilr=i(()=>{var r=new Gi("mtd",[]);return r.setAttribute("width","50%"),r},"pad");tO({type:"tag",mathmlBuilder(r,t){var a=new Gi("mtable",[new Gi("mtr",[ilr(),new Gi("mtd",[FL(r.body,t)]),ilr(),new Gi("mtd",[FL(r.tag,t)])])]);return a.setAttribute("width","100%"),a}});alr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},slr={"\\textbf":"textbf","\\textmd":"textmd"},WAn={"\\textit":"textit","\\textup":"textup"},olr=i((r,t)=>{var a=r.font;if(a){if(alr[a])return t.withTextFontFamily(alr[a]);if(slr[a])return t.withTextFontWeight(slr[a]);if(a==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(WAn[a])},"optionsWithFont");Sa({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(r,t){var a=r.parser,s=r.funcName,l=t[0];return{type:"text",mode:a.mode,body:Mg(l),font:s}},htmlBuilder(r,t){var a=olr(r,t),s=k0(r.body,a,!0);return Ii(["mord","text"],s,a)},mathmlBuilder(r,t){var a=olr(r,t);return FL(r.body,a)}});Sa({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(r,t){var a=r.parser;return{type:"underline",mode:a.mode,body:t[0]}},htmlBuilder(r,t){var a=ou(r.body,t),s=Tz("underline-line",t),l=t.fontMetrics().defaultRuleThickness,h=Su({positionType:"top",positionData:a.height,children:[{type:"kern",size:l},{type:"elem",elem:s},{type:"kern",size:3*l},{type:"elem",elem:a}]});return Ii(["mord","katex-underline"],[h],t)},mathmlBuilder(r,t){var a=new Gi("mo",[new gp("\u203E")]);a.setAttribute("stretchy","true");var s=new Gi("munder",[Th(r.body,t),a]);return s.setAttribute("accentunder","true"),s}});Sa({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(r,t){var a=r.parser;return{type:"vcenter",mode:a.mode,body:t[0]}},htmlBuilder(r,t){var a=ou(r.body,t),s=t.fontMetrics().axisHeight,l=.5*(a.height-s-(a.depth+s));return Su({positionType:"shift",positionData:l,children:[{type:"elem",elem:a}]})},mathmlBuilder(r,t){var a=new Gi("mpadded",[Th(r.body,t)],["vcenter"]);return new Gi("mrow",[a])}});Sa({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(r,t,a){throw new Bi("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,t){for(var a=llr(r),s=[],l=t.havingStyle(t.style.text()),h=0;h<a.length;h++){var f=a[h];f==="~"&&(f="\\textasciitilde"),s.push(xb(f,"Typewriter-Regular",r.mode,l,["mord","texttt"]))}return Ii(["mord","text"].concat(l.sizingClasses(t)),wlr(s),l)},mathmlBuilder(r,t){var a=new gp(llr(r)),s=new Gi("mtext",[a]);return s.setAttribute("mathvariant","monospace"),s}});llr=i(r=>r.body.replace(/ /g,r.star?"\u2423":"\xA0"),"makeVerb"),ML=Clr,Zlr=`[ \r
|
|
]`,HAn="\\\\[a-zA-Z@]+",qAn="\\\\[^\uD800-\uDFFF]",YAn="("+HAn+")"+Zlr+"*",XAn=`\\\\(
|
|
|[ \r ]+
|
|
?)[ \r ]*`,mqe="[\u0300-\u036F]",KAn=new RegExp(mqe+"+$"),JAn="("+Zlr+"+)|"+(XAn+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(mqe+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(mqe+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+YAn)+("|"+qAn+")"),Ube=class{static{i(this,"Lexer")}constructor(t,a){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=a,this.tokenRegex=new RegExp(JAn,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,a){this.catcodes[t]=a}lex(){var t=this.input,a=this.tokenRegex.lastIndex;if(a===t.length)return new Hw("EOF",new r2(this,a,a));var s=this.tokenRegex.exec(t);if(s===null||s.index!==a)throw new Bi("Unexpected character: '"+t[a]+"'",new Hw(t[a],new r2(this,a,a+1)));var l=s[6]||s[3]||(s[2]?"\\ ":" ");if(this.catcodes[l]===14){var h=t.indexOf(`
|
|
`,this.tokenRegex.lastIndex);return h===-1?(this.tokenRegex.lastIndex=t.length,n2({strict:this.settings.strict,errorCode:"commentAtEnd",errorMsg:"% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)",report:!0})):this.tokenRegex.lastIndex=h+1,this.lex()}return new Hw(l,new r2(this,a,this.tokenRegex.lastIndex))}},yqe=class{static{i(this,"Namespace")}constructor(t,a){t===void 0&&(t={}),a===void 0&&(a={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=a,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Bi("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var a of Object.keys(t))t[a]===void 0?delete this.current[a]:this.current[a]=t[a]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return Object.prototype.hasOwnProperty.call(this.current,t)||Object.prototype.hasOwnProperty.call(this.builtins,t)}get(t){return Object.prototype.hasOwnProperty.call(this.current,t)?this.current[t]:Object.prototype.hasOwnProperty.call(this.builtins,t)?this.builtins[t]:void 0}set(t,a,s){if(s===void 0&&(s=!1),s){for(var l=0;l<this.undefStack.length;l++)delete this.undefStack[l][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=a)}else{var h=this.undefStack[this.undefStack.length-1];h&&!Object.prototype.hasOwnProperty.call(h,t)&&(h[t]=Object.prototype.hasOwnProperty.call(this.current,t)?this.current[t]:void 0)}a==null?delete this.current[t]:this.current[t]=a}},QAn=zlr;bt("\\noexpand",function(r){var t=r.popToken();return r.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});bt("\\expandafter",function(r){var t=r.popToken();return r.expandOnce(!0),{tokens:[t],numArgs:0}});bt("\\@firstoftwo",function(r){var t=r.consumeArgs(2);return{tokens:t[0],numArgs:0}});bt("\\@secondoftwo",function(r){var t=r.consumeArgs(2);return{tokens:t[1],numArgs:0}});bt("\\@ifnextchar",function(r){var t=r.consumeArgs(3);r.consumeSpaces();var a=r.future();return t[0].length===1&&t[0][0].text===a.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});bt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");bt("\\TextOrMath",function(r){var t=r.consumeArgs(2);return r.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});clr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};bt("\\char",function(r){var t=r.popToken(),a,s=0;if(t.text==="'")a=8,t=r.popToken();else if(t.text==='"')a=16,t=r.popToken();else if(t.text==="`")if(t=r.popToken(),t.text[0]==="\\")s=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Bi("\\char` missing argument");s=t.text.charCodeAt(0)}else a=10;if(a){if(s=clr[t.text],s==null||s>=a)throw new Bi("Invalid base-"+a+" digit "+t.text);for(var l;(l=clr[r.future().text])!=null&&l<a;)s*=a,s+=l,r.popToken()}return"\\@char{"+s+"}"});_qe=i((r,t,a,s)=>{var l=r.consumeArg().tokens;if(l.length!==1)throw new Bi("\\newcommand's first argument must be a macro name");var h=l[0].text,f=r.isDefined(h);if(f&&!t)throw new Bi("\\newcommand{"+h+"} attempting to redefine "+(h+"; use \\renewcommand"));if(!f&&!a)throw new Bi("\\renewcommand{"+h+"} when command "+h+" does not yet exist; use \\newcommand");var d=0;if(l=r.consumeArg().tokens,l.length===1&&l[0].text==="["){for(var m="",b=r.expandNextToken();b.text!=="]"&&b.text!=="EOF";)m+=b.text,b=r.expandNextToken();if(!m.match(/^\s*[0-9]+\s*$/))throw new Bi("Invalid number of arguments: "+m);d=parseInt(m),l=r.consumeArg().tokens}return f&&s||r.macros.set(h,{tokens:l,numArgs:d}),""},"newcommand");bt("\\newcommand",r=>_qe(r,!1,!0,!1));bt("\\renewcommand",r=>_qe(r,!0,!1,!1));bt("\\providecommand",r=>_qe(r,!0,!0,!0));bt("\\message",r=>{var t=r.consumeArgs(1)[0];return console.log(t.reverse().map(a=>a.text).join("")),""});bt("\\errmessage",r=>{var t=r.consumeArgs(1)[0];return console.error(t.reverse().map(a=>a.text).join("")),""});bt("\\show",r=>{var t=r.popToken(),a=t.text;return console.log(t,r.macros.get(a),ML[a],Kf.math[a],Kf.text[a]),""});bt("\\bgroup","{");bt("\\egroup","}");bt("~","\\nobreakspace");bt("\\lq","`");bt("\\rq","'");bt("\\aa","\\r a");bt("\\AA","\\r A");bt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");bt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");bt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");bt("\u212C","\\mathscr{B}");bt("\u2130","\\mathscr{E}");bt("\u2131","\\mathscr{F}");bt("\u210B","\\mathscr{H}");bt("\u2110","\\mathscr{I}");bt("\u2112","\\mathscr{L}");bt("\u2133","\\mathscr{M}");bt("\u211B","\\mathscr{R}");bt("\u212D","\\mathfrak{C}");bt("\u210C","\\mathfrak{H}");bt("\u2128","\\mathfrak{Z}");bt("\\Bbbk","\\Bbb{k}");bt("\\llap","\\mathllap{\\textrm{#1}}");bt("\\rlap","\\mathrlap{\\textrm{#1}}");bt("\\clap","\\mathclap{\\textrm{#1}}");bt("\\mathstrut","\\vphantom{(}");bt("\\underbar","\\underline{\\text{#1}}");bt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');bt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");bt("\\ne","\\neq");bt("\u2260","\\neq");bt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");bt("\u2209","\\notin");bt("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");bt("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");bt("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");bt("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");bt("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");bt("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");bt("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");bt("\u27C2","\\perp");bt("\u203C","\\mathclose{!\\mkern-0.8mu!}");bt("\u220C","\\notni");bt("\u231C","\\ulcorner");bt("\u231D","\\urcorner");bt("\u231E","\\llcorner");bt("\u231F","\\lrcorner");bt("\xA9","\\copyright");bt("\xAE","\\textregistered");bt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');bt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');bt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');bt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');bt("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");bt("\u22EE","\\vdots");bt("\\varGamma","\\mathit{\\Gamma}");bt("\\varDelta","\\mathit{\\Delta}");bt("\\varTheta","\\mathit{\\Theta}");bt("\\varLambda","\\mathit{\\Lambda}");bt("\\varXi","\\mathit{\\Xi}");bt("\\varPi","\\mathit{\\Pi}");bt("\\varSigma","\\mathit{\\Sigma}");bt("\\varUpsilon","\\mathit{\\Upsilon}");bt("\\varPhi","\\mathit{\\Phi}");bt("\\varPsi","\\mathit{\\Psi}");bt("\\varOmega","\\mathit{\\Omega}");bt("\\substack","\\begin{subarray}{c}#1\\end{subarray}");bt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");bt("\\boxed","\\fbox{$\\displaystyle{#1}$}");bt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");bt("\\implies","\\DOTSB\\;\\Longrightarrow\\;");bt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");bt("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");bt("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");ulr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},ZAn=new Set(["bin","rel"]);bt("\\dots",function(r){var t="\\dotso",a=r.expandAfterFuture().text;return a in ulr?t=ulr[a]:(a.slice(0,4)==="\\not"||a in Kf.math&&ZAn.has(Kf.math[a].group))&&(t="\\dotsb"),t});Dqe={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};bt("\\dotso",function(r){var t=r.future().text;return t in Dqe?"\\ldots\\,":"\\ldots"});bt("\\dotsc",function(r){var t=r.future().text;return t in Dqe&&t!==","?"\\ldots\\,":"\\ldots"});bt("\\cdots",function(r){var t=r.future().text;return t in Dqe?"\\@cdots\\,":"\\@cdots"});bt("\\dotsb","\\cdots");bt("\\dotsm","\\cdots");bt("\\dotsi","\\!\\cdots");bt("\\dotsx","\\ldots\\,");bt("\\DOTSI","\\relax");bt("\\DOTSB","\\relax");bt("\\DOTSX","\\relax");bt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");bt("\\,","\\tmspace+{3mu}{.1667em}");bt("\\thinspace","\\,");bt("\\>","\\mskip{4mu}");bt("\\:","\\tmspace+{4mu}{.2222em}");bt("\\medspace","\\:");bt("\\;","\\tmspace+{5mu}{.2777em}");bt("\\thickspace","\\;");bt("\\!","\\tmspace-{3mu}{.1667em}");bt("\\negthinspace","\\!");bt("\\negmedspace","\\tmspace-{4mu}{.2222em}");bt("\\negthickspace","\\tmspace-{5mu}{.277em}");bt("\\enspace","\\kern.5em ");bt("\\enskip","\\hskip.5em\\relax");bt("\\quad","\\hskip1em\\relax");bt("\\qquad","\\hskip2em\\relax");bt("\\tag","\\@ifstar\\tag@literal\\tag@paren");bt("\\tag@paren","\\tag@literal{({#1})}");bt("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new Bi("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});bt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");bt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");bt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");bt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");bt("\\newline","\\\\\\relax");bt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");ecr=Ji(HE["Main-Regular"][84][1]-.7*HE["Main-Regular"][65][1]);bt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ecr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");bt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ecr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");bt("\\hspace","\\@ifstar\\@hspacer\\@hspace");bt("\\@hspace","\\hskip #1\\relax");bt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");bt("\\ordinarycolon",":");bt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");bt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');bt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');bt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');bt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');bt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');bt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');bt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');bt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');bt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');bt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');bt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');bt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');bt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');bt("\u2237","\\dblcolon");bt("\u2239","\\eqcolon");bt("\u2254","\\coloneqq");bt("\u2255","\\eqqcolon");bt("\u2A74","\\Coloneqq");bt("\\ratio","\\vcentcolon");bt("\\coloncolon","\\dblcolon");bt("\\colonequals","\\coloneqq");bt("\\coloncolonequals","\\Coloneqq");bt("\\equalscolon","\\eqqcolon");bt("\\equalscoloncolon","\\Eqqcolon");bt("\\colonminus","\\coloneq");bt("\\coloncolonminus","\\Coloneq");bt("\\minuscolon","\\eqcolon");bt("\\minuscoloncolon","\\Eqcolon");bt("\\coloncolonapprox","\\Colonapprox");bt("\\coloncolonsim","\\Colonsim");bt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");bt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");bt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");bt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");bt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");bt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");bt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");bt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");bt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");bt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");bt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");bt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");bt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");bt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");bt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");bt("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");bt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");bt("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");bt("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");bt("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");bt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");bt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");bt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");bt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");bt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");bt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");bt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");bt("\\imath","\\html@mathml{\\@imath}{\u0131}");bt("\\jmath","\\html@mathml{\\@jmath}{\u0237}");bt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");bt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");bt("\u27E6","\\llbracket");bt("\u27E7","\\rrbracket");bt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");bt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");bt("\u21A4","\\mapsfrom");bt("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`\u21A4}}");bt("\u2983","\\lBrace");bt("\u2984","\\rBrace");bt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");bt("\u29B5","\\minuso");bt("\\darr","\\downarrow");bt("\\dArr","\\Downarrow");bt("\\Darr","\\Downarrow");bt("\\lang","\\langle");bt("\\rang","\\rangle");bt("\\uarr","\\uparrow");bt("\\uArr","\\Uparrow");bt("\\Uarr","\\Uparrow");bt("\\N","\\mathbb{N}");bt("\\R","\\mathbb{R}");bt("\\Z","\\mathbb{Z}");bt("\\alef","\\aleph");bt("\\alefsym","\\aleph");bt("\\Alpha","\\mathrm{A}");bt("\\Beta","\\mathrm{B}");bt("\\bull","\\bullet");bt("\\Chi","\\mathrm{X}");bt("\\clubs","\\clubsuit");bt("\\cnums","\\mathbb{C}");bt("\\Complex","\\mathbb{C}");bt("\\Dagger","\\ddagger");bt("\\diamonds","\\diamondsuit");bt("\\empty","\\emptyset");bt("\\Epsilon","\\mathrm{E}");bt("\\Eta","\\mathrm{H}");bt("\\exist","\\exists");bt("\\harr","\\leftrightarrow");bt("\\hArr","\\Leftrightarrow");bt("\\Harr","\\Leftrightarrow");bt("\\hearts","\\heartsuit");bt("\\image","\\Im");bt("\\infin","\\infty");bt("\\Iota","\\mathrm{I}");bt("\\isin","\\in");bt("\\Kappa","\\mathrm{K}");bt("\\larr","\\leftarrow");bt("\\lArr","\\Leftarrow");bt("\\Larr","\\Leftarrow");bt("\\lrarr","\\leftrightarrow");bt("\\lrArr","\\Leftrightarrow");bt("\\Lrarr","\\Leftrightarrow");bt("\\Mu","\\mathrm{M}");bt("\\natnums","\\mathbb{N}");bt("\\Nu","\\mathrm{N}");bt("\\Omicron","\\mathrm{O}");bt("\\plusmn","\\pm");bt("\\rarr","\\rightarrow");bt("\\rArr","\\Rightarrow");bt("\\Rarr","\\Rightarrow");bt("\\real","\\Re");bt("\\reals","\\mathbb{R}");bt("\\Reals","\\mathbb{R}");bt("\\Rho","\\mathrm{P}");bt("\\sdot","\\cdot");bt("\\sect","\\S");bt("\\spades","\\spadesuit");bt("\\sub","\\subset");bt("\\sube","\\subseteq");bt("\\supe","\\supseteq");bt("\\Tau","\\mathrm{T}");bt("\\thetasym","\\vartheta");bt("\\weierp","\\wp");bt("\\Zeta","\\mathrm{Z}");bt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");bt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");bt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");bt("\\bra","\\mathinner{\\langle{#1}|}");bt("\\ket","\\mathinner{|{#1}\\rangle}");bt("\\braket","\\mathinner{\\langle{#1}\\rangle}");bt("\\Bra","\\left\\langle#1\\right|");bt("\\Ket","\\left|#1\\right\\rangle");tcr=i(r=>t=>{var a=t.consumeArg().tokens,s=t.consumeArg().tokens,l=t.consumeArg().tokens,h=t.consumeArg().tokens,f=t.macros.get("|"),d=t.macros.get("\\|");t.macros.beginGroup();var m=i(T=>C=>{r&&(C.macros.set("|",f),l.length&&C.macros.set("\\|",d));var E=T;if(!T&&l.length){var S=C.future();S.text==="|"&&(C.popToken(),E=!0)}return{tokens:E?l:s,numArgs:0}},"midMacro");t.macros.set("|",m(!1)),l.length&&t.macros.set("\\|",m(!0));var b=t.consumeArg().tokens,v=t.expandTokens([...h,...b,...a]);return t.macros.endGroup(),{tokens:v.reverse(),numArgs:0}},"braketHelper");bt("\\bra@ket",tcr(!1));bt("\\bra@set",tcr(!0));bt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");bt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");bt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");bt("\\angln","{\\angl n}");bt("\\blue","\\textcolor{##6495ed}{#1}");bt("\\orange","\\textcolor{##ffa500}{#1}");bt("\\pink","\\textcolor{##ff00af}{#1}");bt("\\red","\\textcolor{##df0030}{#1}");bt("\\green","\\textcolor{##28ae7b}{#1}");bt("\\gray","\\textcolor{gray}{#1}");bt("\\purple","\\textcolor{##9d38bd}{#1}");bt("\\blueA","\\textcolor{##ccfaff}{#1}");bt("\\blueB","\\textcolor{##80f6ff}{#1}");bt("\\blueC","\\textcolor{##63d9ea}{#1}");bt("\\blueD","\\textcolor{##11accd}{#1}");bt("\\blueE","\\textcolor{##0c7f99}{#1}");bt("\\tealA","\\textcolor{##94fff5}{#1}");bt("\\tealB","\\textcolor{##26edd5}{#1}");bt("\\tealC","\\textcolor{##01d1c1}{#1}");bt("\\tealD","\\textcolor{##01a995}{#1}");bt("\\tealE","\\textcolor{##208170}{#1}");bt("\\greenA","\\textcolor{##b6ffb0}{#1}");bt("\\greenB","\\textcolor{##8af281}{#1}");bt("\\greenC","\\textcolor{##74cf70}{#1}");bt("\\greenD","\\textcolor{##1fab54}{#1}");bt("\\greenE","\\textcolor{##0d923f}{#1}");bt("\\goldA","\\textcolor{##ffd0a9}{#1}");bt("\\goldB","\\textcolor{##ffbb71}{#1}");bt("\\goldC","\\textcolor{##ff9c39}{#1}");bt("\\goldD","\\textcolor{##e07d10}{#1}");bt("\\goldE","\\textcolor{##a75a05}{#1}");bt("\\redA","\\textcolor{##fca9a9}{#1}");bt("\\redB","\\textcolor{##ff8482}{#1}");bt("\\redC","\\textcolor{##f9685d}{#1}");bt("\\redD","\\textcolor{##e84d39}{#1}");bt("\\redE","\\textcolor{##bc2612}{#1}");bt("\\maroonA","\\textcolor{##ffbde0}{#1}");bt("\\maroonB","\\textcolor{##ff92c6}{#1}");bt("\\maroonC","\\textcolor{##ed5fa6}{#1}");bt("\\maroonD","\\textcolor{##ca337c}{#1}");bt("\\maroonE","\\textcolor{##9e034e}{#1}");bt("\\purpleA","\\textcolor{##ddd7ff}{#1}");bt("\\purpleB","\\textcolor{##c6b9fc}{#1}");bt("\\purpleC","\\textcolor{##aa87ff}{#1}");bt("\\purpleD","\\textcolor{##7854ab}{#1}");bt("\\purpleE","\\textcolor{##543b78}{#1}");bt("\\mintA","\\textcolor{##f5f9e8}{#1}");bt("\\mintB","\\textcolor{##edf2df}{#1}");bt("\\mintC","\\textcolor{##e0e5cc}{#1}");bt("\\grayA","\\textcolor{##f6f7f7}{#1}");bt("\\grayB","\\textcolor{##f0f1f2}{#1}");bt("\\grayC","\\textcolor{##e3e5e6}{#1}");bt("\\grayD","\\textcolor{##d6d8da}{#1}");bt("\\grayE","\\textcolor{##babec2}{#1}");bt("\\grayF","\\textcolor{##888d93}{#1}");bt("\\grayG","\\textcolor{##626569}{#1}");bt("\\grayH","\\textcolor{##3b3e40}{#1}");bt("\\grayI","\\textcolor{##21242c}{#1}");bt("\\kaBlue","\\textcolor{##314453}{#1}");bt("\\kaGreen","\\textcolor{##71B307}{#1}");rcr={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},bqe=class{static{i(this,"MacroExpander")}constructor(t,a,s){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=a,this.expansionCount=0,this.feed(t),this.macros=new yqe(QAn,a.macros),this.mode=s,this.stack=[]}feed(t){this.lexer=new Ube(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var a,s,l;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;a=this.popToken();var h=this.consumeArg(["]"]);l=h.tokens,s=h.end}else{var f=this.consumeArg();l=f.tokens,a=f.start,s=f.end}return this.pushToken(new Hw("EOF",s.loc)),this.pushTokens(l),new Hw("",r2.range(a,s))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var a=[],s=t&&t.length>0;s||this.consumeSpaces();var l=this.future(),h,f=0,d=0;do{if(h=this.popToken(),a.push(h),h.text==="{")++f;else if(h.text==="}"){if(--f,f===-1)throw new Bi("Extra }",h)}else if(h.text==="EOF")throw new Bi("Unexpected end of input in a macro argument, expected '"+(t&&s?t[d]:"}")+"'",h);if(t&&s)if((f===0||f===1&&t[d]==="{")&&h.text===t[d]){if(++d,d===t.length){a.splice(-d,d);break}}else d=0}while(f!==0||s);return l.text==="{"&&a[a.length-1].text==="}"&&(a.pop(),a.shift()),a.reverse(),{tokens:a,start:l,end:h}}consumeArgs(t,a){if(a){if(a.length!==t+1)throw new Bi("The length of delimiters doesn't match the number of args!");for(var s=a[0],l=0;l<s.length;l++){var h=this.popToken();if(s[l]!==h.text)throw new Bi("Use of the macro doesn't match its definition",h)}}for(var f=[],d=0;d<t;d++)f.push(this.consumeArg(a&&a[d+1]).tokens);return f}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Bi("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var a=this.popToken(),s=a.text,l=a.noexpand?null:this._getExpansion(s);if(l==null||t&&l.unexpandable){if(t&&l==null&&s[0]==="\\"&&!this.isDefined(s))throw new Bi("Undefined control sequence: "+s);return this.pushToken(a),!1}this.countExpansion(1);var h=l.tokens,f=this.consumeArgs(l.numArgs,l.delimiters);if(l.numArgs){h=h.slice();for(var d=h.length-1;d>=0;--d){var m=h[d];if(m.text==="#"){if(d===0)throw new Bi("Incomplete placeholder at end of macro body",m);if(m=h[--d],m.text==="#")h.splice(d+1,1);else if(/^[1-9]$/.test(m.text))h.splice(d,2,...f[+m.text-1]);else throw new Bi("Not a valid argument number",m)}}}return this.pushTokens(h),h.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Hw(t)]):void 0}expandTokens(t){var a=[],s=this.stack.length;for(this.pushTokens(t);this.stack.length>s;)if(this.expandOnce(!0)===!1){var l=this.stack.pop();l.treatAsRelax&&(l.noexpand=!1,l.treatAsRelax=!1),a.push(l)}return this.countExpansion(a.length),a}expandMacroAsText(t){var a=this.expandMacro(t);return a&&a.map(s=>s.text).join("")}_getExpansion(t){var a=this.macros.get(t);if(a==null)return a;if(t.length===1){var s=this.lexer.catcodes[t];if(s!=null&&s!==13)return}var l=typeof a=="function"?a(this):a;if(typeof l=="string"){var h=0;if(l.includes("#"))for(var f=l.replace(/##/g,"");f.includes("#"+(h+1));)++h;for(var d=new Ube(l,this.settings),m=[],b=d.lex();b.text!=="EOF";)m.push(b),b=d.lex();m.reverse();var v={tokens:m,numArgs:h};return v}return l}isDefined(t){return this.macros.has(t)||Object.prototype.hasOwnProperty.call(ML,t)||Object.prototype.hasOwnProperty.call(Kf.math,t)||Object.prototype.hasOwnProperty.call(Kf.text,t)||Object.prototype.hasOwnProperty.call(rcr,t)}isExpandable(t){var a=this.macros.get(t);return a!=null?typeof a=="string"||typeof a=="function"||!a.unexpandable:Object.prototype.hasOwnProperty.call(ML,t)&&!ML[t].primitive}},hlr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Obe=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),QHe={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},flr={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Vbe=class r{static{i(this,"Parser")}constructor(t,a){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new bqe(t,a,this.mode),this.settings=a,this.leftrightDepth=0,this.nextToken=null}expect(t,a){if(a===void 0&&(a=!0),this.fetch().text!==t)throw new Bi("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());a&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var a=this.nextToken;this.consume(),this.gullet.pushToken(new Hw("}")),this.gullet.pushTokens(t);var s=this.parseExpression(!1);return this.expect("}"),this.nextToken=a,s}parseExpression(t,a){for(var s=[];;){this.mode==="math"&&this.consumeSpaces();var l=this.fetch();if(r.endOfExpression.has(l.text)||a&&l.text===a||t&&ML[l.text]&&ML[l.text].infix)break;var h=this.parseAtom(a);if(h){if(h.type==="internal")continue}else break;s.push(h)}return this.mode==="text"&&this.formLigatures(s),this.handleInfixNodes(s)}handleInfixNodes(t){for(var a=-1,s,l=0;l<t.length;l++){var h=t[l];if(h.type==="infix"){if(a!==-1)throw new Bi("only one infix operator per group",h.token);a=l,s=h.replaceWith}}if(a!==-1&&s){var f,d,m=t.slice(0,a),b=t.slice(a+1);m.length===1&&m[0].type==="ordgroup"?f=m[0]:f={type:"ordgroup",mode:this.mode,body:m},b.length===1&&b[0].type==="ordgroup"?d=b[0]:d={type:"ordgroup",mode:this.mode,body:b};var v;return s==="\\\\abovefrac"?v=this.callFunction(s,[f,t[a],d],[]):v=this.callFunction(s,[f,d],[]),[v]}else return t}handleSupSubscript(t){var a=this.fetch(),s=a.text;this.consume(),this.consumeSpaces();var l;do{var h;l=this.parseGroup(t)}while(((h=l)==null?void 0:h.type)==="internal");if(!l)throw new Bi("Expected group after '"+s+"'",a);return l}formatUnsupportedCmd(t){for(var a=[],s=0;s<t.length;s++)a.push({type:"textord",mode:"text",text:t[s]});var l={type:"text",mode:this.mode,body:a},h={type:"color",mode:this.mode,color:this.settings.errorColor,body:[l]};return h}parseAtom(t){var a=this.parseGroup("atom",t);if(a?.type==="internal"||this.mode==="text")return a;for(var s,l;;){this.consumeSpaces();var h=this.fetch();if(h.text==="\\limits"||h.text==="\\nolimits"){if(a&&a.type==="op")a.limits=h.text==="\\limits",a.alwaysHandleSupSub=!0;else if(a&&a.type==="operatorname")a.alwaysHandleSupSub&&(a.limits=h.text==="\\limits");else throw new Bi("Limit controls must follow a math operator",h);this.consume()}else if(h.text==="^"){if(s)throw new Bi("Double superscript",h);s=this.handleSupSubscript("superscript")}else if(h.text==="_"){if(l)throw new Bi("Double subscript",h);l=this.handleSupSubscript("subscript")}else if(h.text==="'"){if(s)throw new Bi("Double superscript",h);var f={type:"textord",mode:this.mode,text:"\\prime"},d=[f];for(this.consume();this.fetch().text==="'";)d.push(f),this.consume();this.fetch().text==="^"&&d.push(this.handleSupSubscript("superscript")),s={type:"ordgroup",mode:this.mode,body:d}}else if(Obe[h.text]){var m=hlr.test(h.text),b=[];for(b.push(new Hw(Obe[h.text])),this.consume();;){var v=this.fetch().text;if(!Obe[v]||hlr.test(v)!==m)break;b.unshift(new Hw(Obe[v])),this.consume()}var T=this.subparse(b);m?l={type:"ordgroup",mode:"math",body:T}:s={type:"ordgroup",mode:"math",body:T}}else break}return s&&l?{type:"supsub",mode:this.mode,base:a,sup:s,sub:l}:s?{type:"supsub",mode:this.mode,base:a,sup:s}:l?{type:"supsub",mode:this.mode,base:a,sub:l}:a}parseFunction(t,a){var s=this.fetch(),l=s.text,h=ML[l];if(!h)return null;if(this.consume(),a&&a!=="atom"&&!h.allowedInArgument)throw new Bi("Got function '"+l+"' with no arguments"+(a?" as "+a:""),s);if(this.mode==="text"&&!h.allowedInText)throw new Bi("Can't use function '"+l+"' in text mode",s);if(this.mode==="math"&&h.allowedInMath===!1)throw new Bi("Can't use function '"+l+"' in math mode",s);var f=this.parseArguments(l,h),d=f.args,m=f.optArgs;return this.callFunction(l,d,m,s,t)}callFunction(t,a,s,l,h){var f={funcName:t,parser:this,token:l,breakOnTokenText:h},d=ML[t];if(d&&d.handler)return d.handler(f,a,s);throw new Bi("No function handler for "+t)}parseArguments(t,a){var s,l=(s=a.numOptionalArgs)!=null?s:0,h=a.numArgs+l;if(h===0)return{args:[],optArgs:[]};for(var f=[],d=[],m=0;m<h;m++){var b,v=(b=a.argTypes)==null?void 0:b[m],T=m<l;("primitive"in a&&a.primitive&&v==null||a.type==="sqrt"&&m===1&&d[0]==null)&&(v="primitive");var C=this.parseGroupOfType("argument to '"+t+"'",v,T);if(T)d.push(C);else if(C!=null)f.push(C);else throw new Bi("Null argument, please report this as a bug")}return{args:f,optArgs:d}}parseGroupOfType(t,a,s){switch(a){case"color":return this.parseColorGroup(s);case"size":return this.parseSizeGroup(s);case"url":return this.parseUrlGroup(s);case"math":case"text":return this.parseArgumentGroup(s,a);case"hbox":{var l=this.parseArgumentGroup(s,"text");return l!=null?{type:"styling",mode:l.mode,body:[l],style:"text",resetFont:!0}:null}case"raw":{var h=this.parseStringGroup(s);return h!=null?{type:"raw",mode:"text",string:h.text}:null}case"primitive":{if(s)throw new Bi("A primitive argument cannot be optional");var f=this.parseGroup(t);if(f==null)throw new Bi("Expected group as "+t,this.fetch());return f}case"original":case void 0:return this.parseArgumentGroup(s);default:throw new Bi("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t){var a=this.gullet.scanArgument(t);if(a==null)return null;for(var s="",l;(l=this.fetch()).text!=="EOF";)s+=l.text,this.consume();return this.consume(),a.text=s,a}parseRegexGroup(t,a){for(var s=this.fetch(),l=s,h="",f;(f=this.fetch()).text!=="EOF"&&t.test(h+f.text);)l=f,h+=l.text,this.consume();if(h==="")throw new Bi("Invalid "+a+": '"+s.text+"'",s);return s.range(l,h)}parseColorGroup(t){var a=this.parseStringGroup(t);if(a==null)return null;var s=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(a.text);if(!s)throw new Bi("Invalid color: '"+a.text+"'",a);var l=s[0];return/^[0-9a-f]{6}$/i.test(l)&&(l="#"+l),{type:"color-token",mode:this.mode,color:l}}parseSizeGroup(t){var a,s=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?a=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):a=this.parseStringGroup(t),!a)return null;!t&&a.text.length===0&&(a.text="0pt",s=!0);var l=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(a.text);if(!l)throw new Bi("Invalid size: '"+a.text+"'",a);var h={number:+(l[1]+l[2]),unit:l[3]};if(!plr(h))throw new Bi("Invalid unit: '"+h.unit+"'",a);return{type:"size",mode:this.mode,value:h,isBlank:s}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var a=this.parseStringGroup(t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),a==null)return null;var s=a.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:s}}parseArgumentGroup(t,a){var s=this.gullet.scanArgument(t);if(s==null)return null;var l=this.mode;a&&this.switchMode(a),this.gullet.beginGroup();var h=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var f={type:"ordgroup",mode:this.mode,loc:s.loc,body:h};return a&&this.switchMode(l),f}parseGroup(t,a){var s=this.fetch(),l=s.text,h;if(l==="{"||l==="\\begingroup"){this.consume();var f=l==="{"?"}":"\\endgroup";this.gullet.beginGroup();var d=this.parseExpression(!1,f),m=this.fetch();this.expect(f),this.gullet.endGroup(),h={type:"ordgroup",mode:this.mode,loc:r2.range(s,m),body:d,semisimple:l==="\\begingroup"||void 0}}else if(h=this.parseFunction(a,t)||this.parseSymbol(),h==null&&l[0]==="\\"&&!Object.prototype.hasOwnProperty.call(rcr,l)){if(this.settings.throwOnError)throw new Bi("Undefined control sequence: "+l,s);h=this.formatUnsupportedCmd(l),this.consume()}return h}formLigatures(t){for(var a=t.length-1,s=0;s<a;++s){var l=t[s];if(l.type==="textord"){var h=l.text,f=t[s+1];if(!(!f||f.type!=="textord")){if(h==="-"&&f.text==="-"){var d=t[s+2];s+1<a&&d&&d.type==="textord"&&d.text==="-"?(t.splice(s,3,{type:"textord",mode:"text",loc:r2.range(l,d),text:"---"}),a-=2):(t.splice(s,2,{type:"textord",mode:"text",loc:r2.range(l,f),text:"--"}),a-=1)}(h==="'"||h==="`")&&f.text===h&&(t.splice(s,2,{type:"textord",mode:"text",loc:r2.range(l,f),text:h+h}),a-=1)}}}}parseSymbol(){var t=this.fetch(),a=t.text;if(/^\\verb[^a-zA-Z]/.test(a)){this.consume();var s=a.slice(5),l=s.charAt(0)==="*";if(l&&(s=s.slice(1)),s.length<2||s.charAt(0)!==s.slice(-1))throw new Bi(`\\verb assertion failed --
|
|
please report what input caused this bug`);return s=s.slice(1,-1),{type:"verb",mode:"text",body:s,star:l}}Object.prototype.hasOwnProperty.call(flr,a[0])&&!Kf[this.mode][a[0]]&&(this.settings.strict&&this.mode==="math"&&n2({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+a[0]+'" used in math mode',report:!0,token:t}),a=flr[a[0]]+a.slice(1));var h=KAn.exec(a);h&&(a=a.substring(0,h.index),a==="i"?a="\u0131":a==="j"&&(a="\u0237"));var f;if(Kf[this.mode][a]){this.settings.strict&&this.mode==="math"&&rqe.includes(a)&&n2({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Latin-1/Unicode text character "'+a[0]+'" used in math mode',report:!0,token:t});var d=Kf[this.mode][a].group,m=r2.range(t),b;oAn(d)?b={type:"atom",mode:this.mode,family:d,loc:m,text:a}:b={type:d,mode:this.mode,loc:m,text:a},f=b}else if(a.charCodeAt(0)>=128)this.settings.strict&&(dlr(a.charCodeAt(0))?this.mode==="math"&&n2({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+a[0]+'" used in math mode',report:!0,token:t}):n2({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+a[0]+'"'+(" ("+a.charCodeAt(0)+")"),report:!0,token:t})),f={type:"textord",mode:"text",loc:r2.range(t),text:a};else return null;if(this.consume(),h)for(var v=0;v<h[0].length;v++){var T=h[0][v];if(!QHe[T])throw new Bi("Unknown accent ' "+T+"'",t);var C=QHe[T][this.mode]||QHe[T].text;if(!C)throw new Bi("Accent "+T+" unsupported in "+this.mode+" mode",t);f={type:"accent",mode:this.mode,loc:r2.range(t),label:C,isStretchy:!1,isShifty:!0,base:f}}return f}};Vbe.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);Iqe=i(function(t,a){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var s=new Vbe(t,a);delete s.gullet.macros.current["\\df@tag"];var l=s.parse();if(delete s.gullet.macros.current["\\current@color"],delete s.gullet.macros.current["\\color"],s.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new Bi("\\tag works only in display equations");l=[{type:"tag",mode:"text",body:l,tag:s.subparse([new Hw("\\df@tag")])}]}return l},"parseTree"),Mqe=i(function(t,a,s){a.textContent="";var l=eve(t,s).toNode();a.appendChild(l)},"render");typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Mqe=i(function(){throw new Bi("KaTeX doesn't work in quirks mode.")},"render"));ncr=i(function(t,a){var s=eve(t,a).toMarkup();return s},"renderToString"),icr=i(function(t,a){var s=new ete(a);return Iqe(t,s)},"generateParseTree"),acr=i(function(t,a,s){if(s.throwOnError||!(t instanceof Bi))throw t;var l=Ii(["katex-error"],[new kb(a)]);return l.setAttribute("title",t.toString()),l.setAttribute("style","color:"+s.errorColor),l},"renderError"),eve=i(function(t,a){var s=new ete(a);try{var l=Iqe(t,s);return J6n(l,t,s)}catch(h){return acr(h,t,s)}},"renderToDomTree"),scr=i(function(t,a){var s=new ete(a);try{var l=Iqe(t,s);return Q6n(l,s)}catch(h){return acr(h,t,s)}},"renderToHTMLTree"),ocr="0.18.11",lcr={Span:PL,Anchor:xz,SymbolNode:kb,SvgNode:b4,PathNode:qE,LineNode:rte},e8n={version:ocr,render:Mqe,renderToString:ncr,ParseError:Bi,SETTINGS_SCHEMA:Fbe,__parse:icr,__renderToDomTree:eve,__renderToHTMLTree:scr,__setFontMetrics:blr,__defineSymbol:Le,__defineFunction:Sa,__defineMacro:bt,__domTree:lcr}});function i8n(){let r="data-temp-href-target";oy.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(r,t.getAttribute("target")??"")}),oy.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(r)&&(t.setAttribute("target",t.getAttribute(r)??""),t.removeAttribute(r),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}var rO,t8n,r8n,n8n,dcr,hcr,Ns,a8n,s8n,o8n,l8n,pcr,Oqe,c8n,u8n,JE,Nqe,h8n,f8n,fcr,tve,Tf,nO,d8n,Ez,Xn,nl=ae(()=>{"use strict";QN();Xs();rO=/<\/?br\s*\/?>/gi,t8n=new RegExp(rO.source,"i"),r8n=i(r=>r?pcr(r).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),n8n=(()=>{let r=!1;return()=>{r||(i8n(),r=!0)}})();i(i8n,"setupDompurifyHooks");dcr=i(r=>(n8n(),oy.sanitize(r)),"removeScript"),hcr=i((r,t)=>{if(Fh(t)){let a=t.securityLevel;a==="antiscript"||a==="strict"||a==="sandbox"?r=dcr(r):a!=="loose"&&(r=pcr(r),r=r.replace(/</g,"<").replace(/>/g,">"),r=r.replace(/=/g,"="),r=l8n(r))}return r},"sanitizeMore"),Ns=i((r,t)=>r&&(t.dompurifyConfig?r=oy.sanitize(hcr(r,t),t.dompurifyConfig).toString():r=oy.sanitize(hcr(r,t),{FORBID_TAGS:["style"]}).toString(),r),"sanitizeText"),a8n=i((r,t)=>typeof r=="string"?Ns(r,t):r.flat().map(a=>Ns(a,t)),"sanitizeTextOrArray"),s8n=i(r=>t8n.test(r),"hasBreaks"),o8n=i(r=>r.split(rO),"splitBreaks"),l8n=i(r=>r.replace(/#br#/g,"<br/>"),"placeholderToBreak"),pcr=i(r=>r.replace(rO,"#br#"),"breakToPlaceholder"),Oqe=i(r=>{let t="";return r&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),c8n=i(function(...r){let t=r.filter(a=>!isNaN(a));return Math.max(...t)},"getMax"),u8n=i(function(...r){let t=r.filter(a=>!isNaN(a));return Math.min(...t)},"getMin"),JE=i(function(r){let t=r.split(/(,)/),a=[];for(let s=0;s<t.length;s++){let l=t[s];if(l===","&&s>0&&s+1<t.length){let h=t[s-1],f=t[s+1];h8n(h,f)&&(l=h+","+f,s++,a.pop())}a.push(f8n(l))}return a.join("")},"parseGenericTypes"),Nqe=i((r,t)=>Math.max(0,r.split(t).length-1),"countOccurrence"),h8n=i((r,t)=>{let a=Nqe(r,"~"),s=Nqe(t,"~");return a===1&&s===1},"shouldCombineSets"),f8n=i(r=>{let t=Nqe(r,"~"),a=!1;if(t<=1)return r;t%2!==0&&r.startsWith("~")&&(r=r.substring(1),a=!0);let s=[...r],l=s.indexOf("~"),h=s.lastIndexOf("~");for(;l!==-1&&h!==-1&&l!==h;)s[l]="<",s[h]=">",l=s.indexOf("~"),h=s.lastIndexOf("~");return a&&s.unshift("~"),s.join("")},"processSet"),fcr=i(()=>window.MathMLElement!==void 0,"isMathMLSupported"),tve=/\$\$(.*?)\$\$/g,Tf=i(r=>(r.match(tve)?.length??0)>0,"hasKatex"),nO=i(async(r,t)=>{let a=document.createElement("div");a.innerHTML=await Ez(r,t),a.id="katex-temp",a.style.visibility="hidden",a.style.position="absolute",a.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",a);let l={width:a.clientWidth,height:a.clientHeight};return a.remove(),l},"calculateMathMLDimensions"),d8n=i(async(r,t)=>{if(!Tf(r))return r;if(!(fcr()||t.legacyMathML||t.forceLegacyMathML))return r.replace(tve,"MathML is unsupported in this environment.");{let{default:a}=await Promise.resolve().then(()=>(ucr(),ccr)),s=t.forceLegacyMathML||!fcr()&&t.legacyMathML?"htmlAndMathml":"mathml";return r.split(rO).map(l=>Tf(l)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${l}</div>`:`<div>${l}</div>`).join("").replace(tve,(l,h)=>a.renderToString(h,{throwOnError:!0,displayMode:!0,output:s}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}return r.replace(tve,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),Ez=i(async(r,t)=>Ns(await d8n(r,t),t),"renderKatexSanitized"),Xn={getRows:r8n,sanitizeText:Ns,sanitizeTextOrArray:a8n,hasBreaks:s8n,splitBreaks:o8n,lineBreakRegex:rO,removeScript:dcr,getUrl:Oqe,evaluate:fm,getMax:c8n,getMin:u8n}});var Pqe,rve,Bqe,GL,gcr,mcr,nve,Og,Xw=ae(()=>{"use strict";Jar();Xs();nl();Yn();Pqe={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},rve=new Map,Bqe=new Map,GL=i(r=>{for(let t of r){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Pe.debug("Registering icon pack:",t.name),"loader"in t)Bqe.set(t.name,t.loader);else if("icons"in t)rve.set(t.name,t.icons);else throw Pe.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),gcr=i(r=>rve.has(r)||Bqe.has(r),"isIconPackRegistered"),mcr=i(async(r,t)=>{let a=ZWe(r,!0,t!==void 0);if(!a)throw new Error(`Invalid icon name: ${r}`);let s=a.prefix||t;if(!s)throw new Error(`Icon name must contain a prefix: ${r}`);let l=rve.get(s);if(!l){let f=Bqe.get(s);if(!f)throw new Error(`Icon set not found: ${a.prefix}`);try{l={...await f(),prefix:s},rve.set(s,l)}catch(d){throw Pe.error(d),new Error(`Failed to load icon set: ${a.prefix}`)}}let h=tHe(l,a.name);if(!h)throw new Error(`Icon not found: ${r}`);return h},"getRegisteredIconData"),nve=i(async r=>{try{return await mcr(r),!0}catch{return!1}},"isIconAvailable"),Og=i(async(r,t,a)=>{let s;try{s=await mcr(r,t?.fallbackPrefix)}catch(f){Pe.error(f),s=Pqe}let l=nHe(s,t),h=aHe(iHe(l.body),{...l.attributes,...a});return Ns(h,ri())},"getIconSVG")});function ive(r){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];var s=Array.from(typeof r=="string"?[r]:r);s[s.length-1]=s[s.length-1].replace(/\r?\n([\t ]*)$/,"");var l=s.reduce(function(d,m){var b=m.match(/\n([\t ]+|(?!\s).)/g);return b?d.concat(b.map(function(v){var T,C;return(C=(T=v.match(/[\t ]/g))===null||T===void 0?void 0:T.length)!==null&&C!==void 0?C:0})):d},[]);if(l.length){var h=new RegExp(`
|
|
[ ]{`+Math.min.apply(Math,l)+"}","g");s=s.map(function(d){return d.replace(h,`
|
|
`)})}s[0]=s[0].replace(/^\r?\n/,"");var f=s[0];return t.forEach(function(d,m){var b=f.match(/(?:^|\n)( *)$/),v=b?b[1]:"",T=d;typeof d=="string"&&d.includes(`
|
|
`)&&(T=String(d).split(`
|
|
`).map(function(C,E){return E===0?C:""+v+C}).join(`
|
|
`)),f+=T+s[m+1]}),f}var Fqe=ae(()=>{"use strict";i(ive,"dedent")});var iO,sve,ycr,ave,p8n,ove,lve=ae(()=>{"use strict";iO=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,sve=/\s/,ycr=i(r=>{let t="",a=0,s=0;for(;s<r.length;){let l=r.indexOf("%%",s);if(l===-1)break;let h=r.indexOf(`
|
|
`,l);if(h===-1)break;let f=l;for(;f>a&&sve.test(r[f-1]);)f--;t+=r.slice(a,f)+`
|
|
`,a=h+1,s=a}return t+r.slice(a)},"stripAnyComments"),ave=i(r=>r===`
|
|
`||r==="\r","isLineBreak"),p8n=i((r,t)=>{let a=-1;for(let s=t;s<r.length&&sve.test(r[s]);s++)ave(r[s])&&(a=s);return a},"lastLineBreakInWhitespaceRun"),ove=i(r=>{let t=0;for(;t<r.length&&sve.test(r[t])&&!ave(r[t]);)t++;let a=r.slice(0,t);if(!r.startsWith("---",t))return;let s=[];for(let v=t+3;v<r.length&&sve.test(r[v]);v++)ave(r[v])&&s.push(v);if(s.length===0)return;let l=`${a}---`,h=i(v=>ave(r[v])&&r.startsWith(l,v+1)?p8n(r,v+1+l.length):-1,"closingEnd"),f=s[0]+1,d=-1;for(let v=f;v<r.length;v++)h(v)!==-1&&(d=v);if(d===-1)return;let m=s[0];for(let v of s)v<d&&(m=v);let b=m+1;for(let v=b;v<=d;v++){let T=h(v);if(T!==-1)return{indent:a,body:r.slice(b,v),length:T+1}}},"matchFrontMatter")});var Sz,$qe=ae(()=>{"use strict";Sz=class extends Error{static{i(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}}});var xA,jL,lte,Gqe,bcr,zL=ae(()=>{"use strict";Yn();lve();$qe();xA={},jL=i(function(r,t){let a=ove(r);r=ycr((a?r.slice(a.length):r).replace(iO,""));for(let[s,{detector:l}]of Object.entries(xA))if(l(r,t))return s;throw new Sz(`No diagram type detected matching given configuration for text: ${r}`)},"detectType"),lte=i((...r)=>{for(let{id:t,detector:a,loader:s}of r)Gqe(t,a,s)},"registerLazyLoadedDiagrams"),Gqe=i((r,t,a)=>{xA[r]&&Pe.warn(`Detector with key ${r} already exists. Overwriting.`),xA[r]={detector:t,loader:a},Pe.debug(`Detector with key ${r} added${a?" with loader":""}`)},"addDetector"),bcr=i(r=>xA[r].loader,"getDiagramLoader")});var cte,vcr,jqe=ae(()=>{"use strict";cte=(function(){var r=i(function(pt,gt,ut,Yt){for(ut=ut||{},Yt=pt.length;Yt--;ut[pt[Yt]]=gt);return ut},"o"),t=[1,24],a=[1,25],s=[1,26],l=[1,27],h=[1,28],f=[1,63],d=[1,64],m=[1,65],b=[1,66],v=[1,67],T=[1,68],C=[1,69],E=[1,29],S=[1,30],R=[1,31],L=[1,32],_=[1,33],I=[1,34],N=[1,35],B=[1,36],O=[1,37],P=[1,38],$=[1,39],V=[1,40],Y=[1,41],Q=[1,42],q=[1,43],W=[1,44],H=[1,45],re=[1,46],Z=[1,47],X=[1,48],te=[1,50],U=[1,51],ne=[1,52],se=[1,53],he=[1,54],le=[1,55],pe=[1,56],ge=[1,57],we=[1,58],Ae=[1,59],ve=[1,60],Ie=[14,42],De=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Be=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Fe=[1,82],ze=[1,83],vt=[1,84],lt=[1,85],Ft=[12,14,42],pr=[12,14,33,42],tr=[12,14,33,42,76,77,79,80],Mt=[12,33],ot=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],it={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:i(function(gt,ut,Yt,Ye,Oe,K,Te){var ce=K.length-1;switch(Oe){case 3:Ye.setDirection("TB");break;case 4:Ye.setDirection("BT");break;case 5:Ye.setDirection("RL");break;case 6:Ye.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:Ye.setC4Type(K[ce-3]);break;case 19:Ye.setTitle(K[ce].substring(6)),this.$=K[ce].substring(6);break;case 20:Ye.setAccDescription(K[ce].substring(15)),this.$=K[ce].substring(15);break;case 21:this.$=K[ce].trim(),Ye.setTitle(this.$);break;case 22:case 23:this.$=K[ce].trim(),Ye.setAccDescription(this.$);break;case 28:K[ce].splice(2,0,"ENTERPRISE"),Ye.addPersonOrSystemBoundary(...K[ce]),this.$=K[ce];break;case 29:K[ce].splice(2,0,"SYSTEM"),Ye.addPersonOrSystemBoundary(...K[ce]),this.$=K[ce];break;case 30:Ye.addPersonOrSystemBoundary(...K[ce]),this.$=K[ce];break;case 31:K[ce].splice(2,0,"CONTAINER"),Ye.addContainerBoundary(...K[ce]),this.$=K[ce];break;case 32:Ye.addDeploymentNode("node",...K[ce]),this.$=K[ce];break;case 33:Ye.addDeploymentNode("nodeL",...K[ce]),this.$=K[ce];break;case 34:Ye.addDeploymentNode("nodeR",...K[ce]),this.$=K[ce];break;case 35:Ye.popBoundaryParseStack();break;case 39:Ye.addPersonOrSystem("person",...K[ce]),this.$=K[ce];break;case 40:Ye.addPersonOrSystem("external_person",...K[ce]),this.$=K[ce];break;case 41:Ye.addPersonOrSystem("system",...K[ce]),this.$=K[ce];break;case 42:Ye.addPersonOrSystem("system_db",...K[ce]),this.$=K[ce];break;case 43:Ye.addPersonOrSystem("system_queue",...K[ce]),this.$=K[ce];break;case 44:Ye.addPersonOrSystem("external_system",...K[ce]),this.$=K[ce];break;case 45:Ye.addPersonOrSystem("external_system_db",...K[ce]),this.$=K[ce];break;case 46:Ye.addPersonOrSystem("external_system_queue",...K[ce]),this.$=K[ce];break;case 47:Ye.addContainer("container",...K[ce]),this.$=K[ce];break;case 48:Ye.addContainer("container_db",...K[ce]),this.$=K[ce];break;case 49:Ye.addContainer("container_queue",...K[ce]),this.$=K[ce];break;case 50:Ye.addContainer("external_container",...K[ce]),this.$=K[ce];break;case 51:Ye.addContainer("external_container_db",...K[ce]),this.$=K[ce];break;case 52:Ye.addContainer("external_container_queue",...K[ce]),this.$=K[ce];break;case 53:Ye.addComponent("component",...K[ce]),this.$=K[ce];break;case 54:Ye.addComponent("component_db",...K[ce]),this.$=K[ce];break;case 55:Ye.addComponent("component_queue",...K[ce]),this.$=K[ce];break;case 56:Ye.addComponent("external_component",...K[ce]),this.$=K[ce];break;case 57:Ye.addComponent("external_component_db",...K[ce]),this.$=K[ce];break;case 58:Ye.addComponent("external_component_queue",...K[ce]),this.$=K[ce];break;case 60:Ye.addRel("rel",...K[ce]),this.$=K[ce];break;case 61:Ye.addRel("birel",...K[ce]),this.$=K[ce];break;case 62:Ye.addRel("rel_u",...K[ce]),this.$=K[ce];break;case 63:Ye.addRel("rel_d",...K[ce]),this.$=K[ce];break;case 64:Ye.addRel("rel_l",...K[ce]),this.$=K[ce];break;case 65:Ye.addRel("rel_r",...K[ce]),this.$=K[ce];break;case 66:Ye.addRel("rel_b",...K[ce]),this.$=K[ce];break;case 67:K[ce].splice(0,1),Ye.addRel("rel",...K[ce]),this.$=K[ce];break;case 68:Ye.updateElStyle("update_el_style",...K[ce]),this.$=K[ce];break;case 69:Ye.updateRelStyle("update_rel_style",...K[ce]),this.$=K[ce];break;case 70:Ye.updateLayoutConfig("update_layout_config",...K[ce]),this.$=K[ce];break;case 71:this.$=[K[ce]];break;case 72:K[ce].unshift(K[ce-1]),this.$=K[ce];break;case 73:case 75:this.$=K[ce].trim();break;case 74:let Re={};Re[K[ce-1].trim()]=K[ce].trim(),this.$=Re;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:s,26:l,28:h,29:49,30:61,32:62,34:f,36:d,37:m,38:b,39:v,40:T,41:C,43:23,44:E,45:S,46:R,47:L,48:_,49:I,50:N,51:B,52:O,53:P,54:$,55:V,56:Y,57:Q,58:q,59:W,60:H,61:re,62:Z,63:X,64:te,65:U,66:ne,67:se,68:he,69:le,70:pe,71:ge,72:we,73:Ae,74:ve},{13:70,19:20,20:21,21:22,22:t,23:a,24:s,26:l,28:h,29:49,30:61,32:62,34:f,36:d,37:m,38:b,39:v,40:T,41:C,43:23,44:E,45:S,46:R,47:L,48:_,49:I,50:N,51:B,52:O,53:P,54:$,55:V,56:Y,57:Q,58:q,59:W,60:H,61:re,62:Z,63:X,64:te,65:U,66:ne,67:se,68:he,69:le,70:pe,71:ge,72:we,73:Ae,74:ve},{13:71,19:20,20:21,21:22,22:t,23:a,24:s,26:l,28:h,29:49,30:61,32:62,34:f,36:d,37:m,38:b,39:v,40:T,41:C,43:23,44:E,45:S,46:R,47:L,48:_,49:I,50:N,51:B,52:O,53:P,54:$,55:V,56:Y,57:Q,58:q,59:W,60:H,61:re,62:Z,63:X,64:te,65:U,66:ne,67:se,68:he,69:le,70:pe,71:ge,72:we,73:Ae,74:ve},{13:72,19:20,20:21,21:22,22:t,23:a,24:s,26:l,28:h,29:49,30:61,32:62,34:f,36:d,37:m,38:b,39:v,40:T,41:C,43:23,44:E,45:S,46:R,47:L,48:_,49:I,50:N,51:B,52:O,53:P,54:$,55:V,56:Y,57:Q,58:q,59:W,60:H,61:re,62:Z,63:X,64:te,65:U,66:ne,67:se,68:he,69:le,70:pe,71:ge,72:we,73:Ae,74:ve},{13:73,19:20,20:21,21:22,22:t,23:a,24:s,26:l,28:h,29:49,30:61,32:62,34:f,36:d,37:m,38:b,39:v,40:T,41:C,43:23,44:E,45:S,46:R,47:L,48:_,49:I,50:N,51:B,52:O,53:P,54:$,55:V,56:Y,57:Q,58:q,59:W,60:H,61:re,62:Z,63:X,64:te,65:U,66:ne,67:se,68:he,69:le,70:pe,71:ge,72:we,73:Ae,74:ve},{14:[1,74]},r(Ie,[2,13],{43:23,29:49,30:61,32:62,20:75,34:f,36:d,37:m,38:b,39:v,40:T,41:C,44:E,45:S,46:R,47:L,48:_,49:I,50:N,51:B,52:O,53:P,54:$,55:V,56:Y,57:Q,58:q,59:W,60:H,61:re,62:Z,63:X,64:te,65:U,66:ne,67:se,68:he,69:le,70:pe,71:ge,72:we,73:Ae,74:ve}),r(Ie,[2,14]),r(De,[2,16],{12:[1,76]}),r(Ie,[2,36],{12:[1,77]}),r(Be,[2,19]),r(Be,[2,20]),{25:[1,78]},{27:[1,79]},r(Be,[2,23]),{35:80,75:81,76:Fe,77:ze,79:vt,80:lt},{35:86,75:81,76:Fe,77:ze,79:vt,80:lt},{35:87,75:81,76:Fe,77:ze,79:vt,80:lt},{35:88,75:81,76:Fe,77:ze,79:vt,80:lt},{35:89,75:81,76:Fe,77:ze,79:vt,80:lt},{35:90,75:81,76:Fe,77:ze,79:vt,80:lt},{35:91,75:81,76:Fe,77:ze,79:vt,80:lt},{35:92,75:81,76:Fe,77:ze,79:vt,80:lt},{35:93,75:81,76:Fe,77:ze,79:vt,80:lt},{35:94,75:81,76:Fe,77:ze,79:vt,80:lt},{35:95,75:81,76:Fe,77:ze,79:vt,80:lt},{35:96,75:81,76:Fe,77:ze,79:vt,80:lt},{35:97,75:81,76:Fe,77:ze,79:vt,80:lt},{35:98,75:81,76:Fe,77:ze,79:vt,80:lt},{35:99,75:81,76:Fe,77:ze,79:vt,80:lt},{35:100,75:81,76:Fe,77:ze,79:vt,80:lt},{35:101,75:81,76:Fe,77:ze,79:vt,80:lt},{35:102,75:81,76:Fe,77:ze,79:vt,80:lt},{35:103,75:81,76:Fe,77:ze,79:vt,80:lt},{35:104,75:81,76:Fe,77:ze,79:vt,80:lt},r(Ft,[2,59]),{35:105,75:81,76:Fe,77:ze,79:vt,80:lt},{35:106,75:81,76:Fe,77:ze,79:vt,80:lt},{35:107,75:81,76:Fe,77:ze,79:vt,80:lt},{35:108,75:81,76:Fe,77:ze,79:vt,80:lt},{35:109,75:81,76:Fe,77:ze,79:vt,80:lt},{35:110,75:81,76:Fe,77:ze,79:vt,80:lt},{35:111,75:81,76:Fe,77:ze,79:vt,80:lt},{35:112,75:81,76:Fe,77:ze,79:vt,80:lt},{35:113,75:81,76:Fe,77:ze,79:vt,80:lt},{35:114,75:81,76:Fe,77:ze,79:vt,80:lt},{35:115,75:81,76:Fe,77:ze,79:vt,80:lt},{20:116,29:49,30:61,32:62,34:f,36:d,37:m,38:b,39:v,40:T,41:C,43:23,44:E,45:S,46:R,47:L,48:_,49:I,50:N,51:B,52:O,53:P,54:$,55:V,56:Y,57:Q,58:q,59:W,60:H,61:re,62:Z,63:X,64:te,65:U,66:ne,67:se,68:he,69:le,70:pe,71:ge,72:we,73:Ae,74:ve},{12:[1,118],33:[1,117]},{35:119,75:81,76:Fe,77:ze,79:vt,80:lt},{35:120,75:81,76:Fe,77:ze,79:vt,80:lt},{35:121,75:81,76:Fe,77:ze,79:vt,80:lt},{35:122,75:81,76:Fe,77:ze,79:vt,80:lt},{35:123,75:81,76:Fe,77:ze,79:vt,80:lt},{35:124,75:81,76:Fe,77:ze,79:vt,80:lt},{35:125,75:81,76:Fe,77:ze,79:vt,80:lt},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},r(Ie,[2,15]),r(De,[2,17],{21:22,19:130,22:t,23:a,24:s,26:l,28:h}),r(Ie,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:s,26:l,28:h,34:f,36:d,37:m,38:b,39:v,40:T,41:C,44:E,45:S,46:R,47:L,48:_,49:I,50:N,51:B,52:O,53:P,54:$,55:V,56:Y,57:Q,58:q,59:W,60:H,61:re,62:Z,63:X,64:te,65:U,66:ne,67:se,68:he,69:le,70:pe,71:ge,72:we,73:Ae,74:ve}),r(Be,[2,21]),r(Be,[2,22]),r(Ft,[2,39]),r(pr,[2,71],{75:81,35:132,76:Fe,77:ze,79:vt,80:lt}),r(tr,[2,73]),{78:[1,133]},r(tr,[2,75]),r(tr,[2,76]),r(Ft,[2,40]),r(Ft,[2,41]),r(Ft,[2,42]),r(Ft,[2,43]),r(Ft,[2,44]),r(Ft,[2,45]),r(Ft,[2,46]),r(Ft,[2,47]),r(Ft,[2,48]),r(Ft,[2,49]),r(Ft,[2,50]),r(Ft,[2,51]),r(Ft,[2,52]),r(Ft,[2,53]),r(Ft,[2,54]),r(Ft,[2,55]),r(Ft,[2,56]),r(Ft,[2,57]),r(Ft,[2,58]),r(Ft,[2,60]),r(Ft,[2,61]),r(Ft,[2,62]),r(Ft,[2,63]),r(Ft,[2,64]),r(Ft,[2,65]),r(Ft,[2,66]),r(Ft,[2,67]),r(Ft,[2,68]),r(Ft,[2,69]),r(Ft,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},r(Mt,[2,28]),r(Mt,[2,29]),r(Mt,[2,30]),r(Mt,[2,31]),r(Mt,[2,32]),r(Mt,[2,33]),r(Mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},r(De,[2,18]),r(Ie,[2,38]),r(pr,[2,72]),r(tr,[2,74]),r(Ft,[2,24]),r(Ft,[2,35]),r(ot,[2,25]),r(ot,[2,26],{12:[1,138]}),r(ot,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:i(function(gt,ut){if(ut.recoverable)this.trace(gt);else{var Yt=new Error(gt);throw Yt.hash=ut,Yt}},"parseError"),parse:i(function(gt){var ut=this,Yt=[0],Ye=[],Oe=[null],K=[],Te=this.table,ce="",Re=0,me=0,be=0,ke=2,We=1,Ue=K.slice.call(arguments,1),rt=Object.create(this.lexer),nt={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(nt.yy[Ot]=this.yy[Ot]);rt.setInput(gt,nt.yy),nt.yy.lexer=rt,nt.yy.parser=this,typeof rt.yylloc>"u"&&(rt.yylloc={});var ft=rt.yylloc;K.push(ft);var Qt=rt.options&&rt.options.ranges;typeof nt.yy.parseError=="function"?this.parseError=nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $t(Tn){Yt.length=Yt.length-2*Tn,Oe.length=Oe.length-Tn,K.length=K.length-Tn}i($t,"popStack");function qt(){var Tn;return Tn=Ye.pop()||rt.lex()||We,typeof Tn!="number"&&(Tn instanceof Array&&(Ye=Tn,Tn=Ye.pop()),Tn=ut.symbols_[Tn]||Tn),Tn}i(qt,"lex");for(var Gt,jt,Zr,yt,$n,Ut,An={},Un,En,ai,Gn;;){if(Zr=Yt[Yt.length-1],this.defaultActions[Zr]?yt=this.defaultActions[Zr]:((Gt===null||typeof Gt>"u")&&(Gt=qt()),yt=Te[Zr]&&Te[Zr][Gt]),typeof yt>"u"||!yt.length||!yt[0]){var ui="";Gn=[];for(Un in Te[Zr])this.terminals_[Un]&&Un>ke&&Gn.push("'"+this.terminals_[Un]+"'");rt.showPosition?ui="Parse error on line "+(Re+1)+`:
|
|
`+rt.showPosition()+`
|
|
Expecting `+Gn.join(", ")+", got '"+(this.terminals_[Gt]||Gt)+"'":ui="Parse error on line "+(Re+1)+": Unexpected "+(Gt==We?"end of input":"'"+(this.terminals_[Gt]||Gt)+"'"),this.parseError(ui,{text:rt.match,token:this.terminals_[Gt]||Gt,line:rt.yylineno,loc:ft,expected:Gn})}if(yt[0]instanceof Array&&yt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Zr+", token: "+Gt);switch(yt[0]){case 1:Yt.push(Gt),Oe.push(rt.yytext),K.push(rt.yylloc),Yt.push(yt[1]),Gt=null,jt?(Gt=jt,jt=null):(me=rt.yyleng,ce=rt.yytext,Re=rt.yylineno,ft=rt.yylloc,be>0&&be--);break;case 2:if(En=this.productions_[yt[1]][1],An.$=Oe[Oe.length-En],An._$={first_line:K[K.length-(En||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(En||1)].first_column,last_column:K[K.length-1].last_column},Qt&&(An._$.range=[K[K.length-(En||1)].range[0],K[K.length-1].range[1]]),Ut=this.performAction.apply(An,[ce,me,Re,nt.yy,yt[1],Oe,K].concat(Ue)),typeof Ut<"u")return Ut;En&&(Yt=Yt.slice(0,-1*En*2),Oe=Oe.slice(0,-1*En),K=K.slice(0,-1*En)),Yt.push(this.productions_[yt[1]][0]),Oe.push(An.$),K.push(An._$),ai=Te[Yt[Yt.length-2]][Yt[Yt.length-1]],Yt.push(ai);break;case 3:return!0}}return!0},"parse")},mt=(function(){var pt={EOF:1,parseError:i(function(ut,Yt){if(this.yy.parser)this.yy.parser.parseError(ut,Yt);else throw new Error(ut)},"parseError"),setInput:i(function(gt,ut){return this.yy=ut||this.yy||{},this._input=gt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var gt=this._input[0];this.yytext+=gt,this.yyleng++,this.offset++,this.match+=gt,this.matched+=gt;var ut=gt.match(/(?:\r\n?|\n).*/g);return ut?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),gt},"input"),unput:i(function(gt){var ut=gt.length,Yt=gt.split(/(?:\r\n?|\n)/g);this._input=gt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ut),this.offset-=ut;var Ye=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Yt.length-1&&(this.yylineno-=Yt.length-1);var Oe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Yt?(Yt.length===Ye.length?this.yylloc.first_column:0)+Ye[Ye.length-Yt.length].length-Yt[0].length:this.yylloc.first_column-ut},this.options.ranges&&(this.yylloc.range=[Oe[0],Oe[0]+this.yyleng-ut]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(gt){this.unput(this.match.slice(gt))},"less"),pastInput:i(function(){var gt=this.matched.substr(0,this.matched.length-this.match.length);return(gt.length>20?"...":"")+gt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var gt=this.match;return gt.length<20&&(gt+=this._input.substr(0,20-gt.length)),(gt.substr(0,20)+(gt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var gt=this.pastInput(),ut=new Array(gt.length+1).join("-");return gt+this.upcomingInput()+`
|
|
`+ut+"^"},"showPosition"),test_match:i(function(gt,ut){var Yt,Ye,Oe;if(this.options.backtrack_lexer&&(Oe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Oe.yylloc.range=this.yylloc.range.slice(0))),Ye=gt[0].match(/(?:\r\n?|\n).*/g),Ye&&(this.yylineno+=Ye.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ye?Ye[Ye.length-1].length-Ye[Ye.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+gt[0].length},this.yytext+=gt[0],this.match+=gt[0],this.matches=gt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(gt[0].length),this.matched+=gt[0],Yt=this.performAction.call(this,this.yy,this,ut,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Yt)return Yt;if(this._backtrack){for(var K in Oe)this[K]=Oe[K];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var gt,ut,Yt,Ye;this._more||(this.yytext="",this.match="");for(var Oe=this._currentRules(),K=0;K<Oe.length;K++)if(Yt=this._input.match(this.rules[Oe[K]]),Yt&&(!ut||Yt[0].length>ut[0].length)){if(ut=Yt,Ye=K,this.options.backtrack_lexer){if(gt=this.test_match(Yt,Oe[K]),gt!==!1)return gt;if(this._backtrack){ut=!1;continue}else return!1}else if(!this.options.flex)break}return ut?(gt=this.test_match(ut,Oe[Ye]),gt!==!1?gt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var ut=this.next();return ut||this.lex()},"lex"),begin:i(function(ut){this.conditionStack.push(ut)},"begin"),popState:i(function(){var ut=this.conditionStack.length-1;return ut>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(ut){return ut=this.conditionStack.length-1-Math.abs(ut||0),ut>=0?this.conditionStack[ut]:"INITIAL"},"topState"),pushState:i(function(ut){this.begin(ut)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(ut,Yt,Ye,Oe){var K=Oe;switch(Ye){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,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,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return pt})();it.lexer=mt;function Rt(){this.yy={}}return i(Rt,"Parser"),Rt.prototype=it,it.Parser=Rt,new Rt})();cte.parser=cte;vcr=cte});var g8n,m8n,wl,BT,$h=ae(()=>{"use strict";Yn();g8n=i(function(r,t){for(let a of t)r.attr(a[0],a[1])},"d3Attrs"),m8n=i(function(r,t,a){let s=new Map;return a?(s.set("width","100%"),s.set("style",`max-width: ${t}px;`)):(s.set("height",r),s.set("width",t)),s},"calculateSvgSizeAttrs"),wl=i(function(r,t,a,s){let l=m8n(t,a,s);g8n(r,l)},"configureSvgSize"),BT=i(function(r,t,a,s){let l=t.node().getBBox(),h=l.width,f=l.height;Pe.info(`SVG bounds: ${h}x${f}`,l);let d=0,m=0;Pe.info(`Graph bounds: ${d}x${m}`,r),d=h+a*2,m=f+a*2,Pe.info(`Calculated bounds: ${d}x${m}`),wl(t,m,d,s);let b=`${l.x-a} ${l.y-a} ${l.width+2*a} ${l.height+2*a}`;t.attr("viewBox",b)},"setupGraphViewbox")});function zqe(r){return[...r.cssRules].map(t=>t.cssText).join(`
|
|
`)}var cve,y8n,wcr,xcr,Uqe=ae(()=>{"use strict";Yn();cve={};i(zqe,"cssStyleSheetToString");y8n=i((r,t,a,s)=>{let l="";return r in cve&&cve[r]?l=cve[r]({...a,svgId:s}):Pe.warn(`No theme found for ${r}`),`& {
|
|
font-family: ${a.fontFamily};
|
|
font-size: ${a.fontSize};
|
|
fill: ${a.textColor}
|
|
}
|
|
@keyframes edge-animation-frame {
|
|
from {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
@keyframes dash {
|
|
to {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
& .edge-animation-slow {
|
|
stroke-dasharray: 9,5 !important;
|
|
stroke-dashoffset: 900;
|
|
animation: dash 50s linear infinite;
|
|
stroke-linecap: round;
|
|
}
|
|
& .edge-animation-fast {
|
|
stroke-dasharray: 9,5 !important;
|
|
stroke-dashoffset: 900;
|
|
animation: dash 20s linear infinite;
|
|
stroke-linecap: round;
|
|
}
|
|
/* Classes common for multiple diagrams */
|
|
|
|
& .error-icon {
|
|
fill: ${a.errorBkgColor};
|
|
}
|
|
& .error-text {
|
|
fill: ${a.errorTextColor};
|
|
stroke: ${a.errorTextColor};
|
|
}
|
|
|
|
& .edge-thickness-normal {
|
|
stroke-width: ${a.strokeWidth??1}px;
|
|
}
|
|
& .edge-thickness-thick {
|
|
stroke-width: 3.5px
|
|
}
|
|
& .edge-pattern-solid {
|
|
stroke-dasharray: 0;
|
|
}
|
|
& .edge-thickness-invisible {
|
|
stroke-width: 0;
|
|
fill: none;
|
|
}
|
|
& .edge-pattern-dashed{
|
|
stroke-dasharray: 3;
|
|
}
|
|
.edge-pattern-dotted {
|
|
stroke-dasharray: 2;
|
|
}
|
|
|
|
& .marker {
|
|
fill: ${a.lineColor};
|
|
stroke: ${a.lineColor};
|
|
}
|
|
& .marker.cross {
|
|
stroke: ${a.lineColor};
|
|
}
|
|
|
|
& svg {
|
|
font-family: ${a.fontFamily};
|
|
font-size: ${a.fontSize};
|
|
}
|
|
& p {
|
|
margin: 0
|
|
}
|
|
|
|
${l}
|
|
.node .neo-node {
|
|
stroke: ${a.nodeBorder};
|
|
}
|
|
|
|
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
stroke: ${a.useGradient?"url("+s+"-gradient)":a.nodeBorder};
|
|
filter: ${a.dropShadow?a.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
}
|
|
[data-look="neo"].swimlane.cluster rect {
|
|
filter: none;
|
|
}
|
|
|
|
|
|
[data-look="neo"].node path {
|
|
stroke: ${a.useGradient?"url("+s+"-gradient)":a.nodeBorder};
|
|
stroke-width: ${a.strokeWidth??1}px;
|
|
}
|
|
|
|
[data-look="neo"].node .outer-path {
|
|
filter: ${a.dropShadow?a.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
}
|
|
|
|
[data-look="neo"].node .neo-line path {
|
|
stroke: ${a.nodeBorder};
|
|
filter: none;
|
|
}
|
|
|
|
[data-look="neo"].node circle{
|
|
stroke: ${a.useGradient?"url("+s+"-gradient)":a.nodeBorder};
|
|
filter: ${a.dropShadow?a.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
}
|
|
|
|
[data-look="neo"].node circle .state-start{
|
|
fill: #000000;
|
|
}
|
|
|
|
[data-look="neo"].icon-shape .icon {
|
|
fill: ${a.useGradient?"url("+s+"-gradient)":a.nodeBorder};
|
|
filter: ${a.dropShadow?a.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
}
|
|
|
|
[data-look="neo"].icon-shape .icon-neo path {
|
|
stroke: ${a.useGradient?"url("+s+"-gradient)":a.nodeBorder};
|
|
filter: ${a.dropShadow?a.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
}
|
|
|
|
${t}
|
|
`},"getStyles"),wcr=i((r,t)=>{t!==void 0&&(cve[r]=t)},"addStylesForDiagram"),xcr=y8n});var ute={};is(ute,{clear:()=>Ds,getAccDescription:()=>Ws,getAccTitle:()=>Vs,getDiagramTitle:()=>Ks,setAccDescription:()=>$s,setAccTitle:()=>Os,setDiagramTitle:()=>io});var Vqe,Wqe,Hqe,qqe,Ds,Os,Vs,$s,Ws,io,Ks,Au=ae(()=>{"use strict";nl();Xs();Vqe="",Wqe="",Hqe="",qqe=i(r=>Ns(r,ri()),"sanitizeText"),Ds=i(()=>{Vqe="",Hqe="",Wqe=""},"clear"),Os=i(r=>{Vqe=qqe(r).replace(/^\s+/g,"")},"setAccTitle"),Vs=i(()=>Vqe,"getAccTitle"),$s=i(r=>{Hqe=qqe(r).replace(/\n\s+/g,`
|
|
`)},"setAccDescription"),Ws=i(()=>Hqe,"getAccDescription"),io=i(r=>{Wqe=qqe(r)},"setDiagramTitle"),Ks=i(()=>Wqe,"getDiagramTitle")});var Tcr,b8n,er,TA,Az,hte,fte,v8n,uve,aO,dte,Yqe,ma=ae(()=>{"use strict";zL();Yn();Xs();nl();$h();Uqe();Au();Tcr=Pe,b8n=Fee,er=ri,TA=Cbe,Az=zE,hte=i(r=>Ns(r,er()),"sanitizeText"),fte=BT,v8n=i(()=>ute,"getCommonDb"),uve={},aO=i((r,t,a)=>{uve[r]&&Tcr.warn(`Diagram with id ${r} already registered. Overwriting.`),uve[r]=t,a&&Gqe(r,a),wcr(r,t.styles),t.injectUtils?.(Tcr,b8n,er,hte,fte,v8n(),()=>{})},"registerDiagram"),dte=i(r=>{if(r in uve)return uve[r];throw new Yqe(r)},"getDiagram"),Yqe=class extends Error{static{i(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}});var hve,Xqe=ae(()=>{"use strict";ma();hve=i(r=>er()[r],"getRequiredConfig")});var FT,sO,kcr,w4,UL,Eb,v4,x4,pte,Kqe,Jqe,fve,dve,Ccr,w8n,x8n,T8n,k8n,C8n,E8n,S8n,A8n,R8n,L8n,_8n,D8n,I8n,M8n,N8n,O8n,P8n,Ecr,B8n,F8n,Scr,$8n,G8n,j8n,z8n,VL,U8n,V8n,W8n,H8n,q8n,gte,Qqe=ae(()=>{"use strict";ma();Xqe();nl();Au();FT=new Set(["label","descr","techn","type"]),sO=i((r,t)=>{for(let[a,s]of Object.entries(t))if(s!==void 0)if(typeof s=="object"){let[l,h]=Object.entries(s)[0];r[l]=FT.has(l)?{text:h}:h}else r[a]=s},"assignAttributes"),kcr=i(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),w4=[],UL=[""],Eb="global",v4="",x4=[kcr()],pte=[],Kqe="",Jqe=!1,fve=4,dve=2,w8n=i(function(){return Ccr},"getC4Type"),x8n=i(function(r){Ccr=Ns(r,er())},"setC4Type"),T8n=i(function(r,t,a,s,l,h,f,d,m){if(r==null||t===void 0||t===null||a===void 0||a===null||s===void 0||s===null)return;let b={},v=pte.find(T=>T.from===t&&T.to===a);if(v?b=v:pte.push(b),b.type=r,b.from=t,b.to=a,b.label={text:s},l==null)b.techn??={text:""};else if(typeof l=="object"){let[T,C]=Object.entries(l)[0];b[T]=FT.has(T)?{text:C}:C}else b.techn={text:l};if(h==null)b.descr??={text:""};else if(typeof h=="object"){let[T,C]=Object.entries(h)[0];b[T]=FT.has(T)?{text:C}:C}else b.descr={text:h};sO(b,{sprite:f,tags:d,link:m}),b.wrap=VL()},"addRel"),k8n=i(function(r,t,a,s,l,h,f){if(t===null||a===null)return;let d={},m=w4.find(b=>b.alias===t);if(m&&t===m.alias?d=m:(d.alias=t,w4.push(d)),a==null?d.label={text:""}:d.label={text:a},s==null)d.descr??={text:""};else if(typeof s=="object"){let[b,v]=Object.entries(s)[0];d[b]=FT.has(b)?{text:v}:v}else d.descr={text:s};sO(d,{sprite:l,tags:h,link:f}),d.typeC4Shape={text:r},d.parentBoundary=Eb,d.wrap=VL()},"addPersonOrSystem"),C8n=i(function(r,t,a,s,l,h,f,d){if(t===null||a===null)return;let m={},b=w4.find(v=>v.alias===t);if(b&&t===b.alias?m=b:(m.alias=t,w4.push(m)),a==null?m.label={text:""}:m.label={text:a},s==null)m.techn??={text:""};else if(typeof s=="object"){let[v,T]=Object.entries(s)[0];m[v]=FT.has(v)?{text:T}:T}else m.techn={text:s};if(l==null)m.descr??={text:""};else if(typeof l=="object"){let[v,T]=Object.entries(l)[0];m[v]=FT.has(v)?{text:T}:T}else m.descr={text:l};sO(m,{sprite:h,tags:f,link:d}),m.wrap=VL(),m.typeC4Shape={text:r},m.parentBoundary=Eb},"addContainer"),E8n=i(function(r,t,a,s,l,h,f,d){if(t===null||a===null)return;let m={},b=w4.find(v=>v.alias===t);if(b&&t===b.alias?m=b:(m.alias=t,w4.push(m)),a==null?m.label={text:""}:m.label={text:a},s==null)m.techn??={text:""};else if(typeof s=="object"){let[v,T]=Object.entries(s)[0];m[v]=FT.has(v)?{text:T}:T}else m.techn={text:s};if(l==null)m.descr??={text:""};else if(typeof l=="object"){let[v,T]=Object.entries(l)[0];m[v]=FT.has(v)?{text:T}:T}else m.descr={text:l};sO(m,{sprite:h,tags:f,link:d}),m.wrap=VL(),m.typeC4Shape={text:r},m.parentBoundary=Eb},"addComponent"),S8n=i(function(r,t,a,s,l){if(r===null||t===null)return;let h={},f=x4.find(d=>d.alias===r);if(f&&r===f.alias?h=f:(h.alias=r,x4.push(h)),t==null?h.label={text:""}:h.label={text:t},a==null)h.type={text:"system"};else if(typeof a=="object"){let[d,m]=Object.entries(a)[0];h[d]=FT.has(d)?{text:m}:m}else h.type={text:a};sO(h,{tags:s,link:l}),h.parentBoundary=Eb,h.wrap=VL(),v4=Eb,Eb=r,UL.push(v4)},"addPersonOrSystemBoundary"),A8n=i(function(r,t,a,s,l){if(r===null||t===null)return;let h={},f=x4.find(d=>d.alias===r);if(f&&r===f.alias?h=f:(h.alias=r,x4.push(h)),t==null?h.label={text:""}:h.label={text:t},a==null)h.type={text:"container"};else if(typeof a=="object"){let[d,m]=Object.entries(a)[0];h[d]=FT.has(d)?{text:m}:m}else h.type={text:a};sO(h,{tags:s,link:l}),h.parentBoundary=Eb,h.wrap=VL(),v4=Eb,Eb=r,UL.push(v4)},"addContainerBoundary"),R8n=i(function(r,t,a,s,l,h,f,d){if(t===null||a===null)return;let m={},b=x4.find(v=>v.alias===t);if(b&&t===b.alias?m=b:(m.alias=t,x4.push(m)),a==null?m.label={text:""}:m.label={text:a},s==null)m.type={text:"node"};else if(typeof s=="object"){let[v,T]=Object.entries(s)[0];m[v]=FT.has(v)?{text:T}:T}else m.type={text:s};if(l==null)m.descr??={text:""};else if(typeof l=="object"){let[v,T]=Object.entries(l)[0];m[v]=FT.has(v)?{text:T}:T}else m.descr={text:l};sO(m,{tags:f,link:d}),m.nodeType=r,m.parentBoundary=Eb,m.wrap=VL(),v4=Eb,Eb=t,UL.push(v4)},"addDeploymentNode"),L8n=i(function(){Eb=v4,UL.pop(),v4=UL.pop(),UL.push(v4)},"popBoundaryParseStack"),_8n=i(function(r,t,a,s,l,h,f,d,m,b,v){let T=w4.find(C=>C.alias===t);if(!(T===void 0&&(T=x4.find(C=>C.alias===t),T===void 0))){if(a!=null)if(typeof a=="object"){let[C,E]=Object.entries(a)[0];T[C]=E}else T.bgColor=a;if(s!=null)if(typeof s=="object"){let[C,E]=Object.entries(s)[0];T[C]=E}else T.fontColor=s;if(l!=null)if(typeof l=="object"){let[C,E]=Object.entries(l)[0];T[C]=E}else T.borderColor=l;if(h!=null)if(typeof h=="object"){let[C,E]=Object.entries(h)[0];T[C]=E}else T.shadowing=h;if(f!=null)if(typeof f=="object"){let[C,E]=Object.entries(f)[0];T[C]=E}else T.shape=f;if(d!=null)if(typeof d=="object"){let[C,E]=Object.entries(d)[0];T[C]=E}else T.sprite=d;if(m!=null)if(typeof m=="object"){let[C,E]=Object.entries(m)[0];T[C]=E}else T.techn=m;if(b!=null)if(typeof b=="object"){let[C,E]=Object.entries(b)[0];T[C]=E}else T.legendText=b;if(v!=null)if(typeof v=="object"){let[C,E]=Object.entries(v)[0];T[C]=E}else T.legendSprite=v}},"updateElStyle"),D8n=i(function(r,t,a,s,l,h,f){let d=pte.find(m=>m.from===t&&m.to===a);if(d!==void 0){if(s!=null)if(typeof s=="object"){let[m,b]=Object.entries(s)[0];d[m]=b}else d.textColor=s;if(l!=null)if(typeof l=="object"){let[m,b]=Object.entries(l)[0];d[m]=b}else d.lineColor=l;if(h!=null)if(typeof h=="object"){let[m,b]=Object.entries(h)[0];d[m]=parseInt(b)}else d.offsetX=parseInt(h);if(f!=null)if(typeof f=="object"){let[m,b]=Object.entries(f)[0];d[m]=parseInt(b)}else d.offsetY=parseInt(f)}},"updateRelStyle"),I8n=i(function(r,t,a){let s=fve,l=dve;if(typeof t=="object"){let h=Object.values(t)[0];s=parseInt(h)}else s=parseInt(t);if(typeof a=="object"){let h=Object.values(a)[0];l=parseInt(h)}else l=parseInt(a);s>=1&&(fve=s),l>=1&&(dve=l)},"updateLayoutConfig"),M8n=i(function(){return fve},"getC4ShapeInRow"),N8n=i(function(){return dve},"getC4BoundaryInRow"),O8n=i(function(){return Eb},"getCurrentBoundaryParse"),P8n=i(function(){return v4},"getParentBoundaryParse"),Ecr=i(function(r){return r==null?w4:w4.filter(t=>t.parentBoundary===r)},"getC4ShapeArray"),B8n=i(function(r){return w4.find(t=>t.alias===r)??x4.find(t=>t.alias===r)},"getC4Shape"),F8n=i(function(r){return Object.keys(Ecr(r))},"getC4ShapeKeys"),Scr=i(function(r){return r==null?x4:x4.filter(t=>t.parentBoundary===r)},"getBoundaries"),$8n=Scr,G8n=i(function(){return pte},"getRels"),j8n=i(function(){return Kqe},"getTitle"),z8n=i(function(r){Jqe=r},"setWrap"),VL=i(function(){return Jqe},"autoWrap"),U8n=i(function(){w4=[],x4=[kcr()],v4="",Eb="global",UL=[""],pte=[],UL=[""],Kqe="",Jqe=!1,fve=4,dve=2},"clear"),V8n={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},W8n={FILLED:0,OPEN:1},H8n={LEFTOF:0,RIGHTOF:1,OVER:2},q8n=i(function(r){Kqe=Ns(r,er())},"setTitle"),gte={addPersonOrSystem:k8n,addPersonOrSystemBoundary:S8n,addContainer:C8n,addContainerBoundary:A8n,addComponent:E8n,addDeploymentNode:R8n,popBoundaryParseStack:L8n,addRel:T8n,updateElStyle:_8n,updateRelStyle:D8n,updateLayoutConfig:I8n,autoWrap:VL,setWrap:z8n,getC4ShapeArray:Ecr,getC4Shape:B8n,getC4ShapeKeys:F8n,getBoundaries:Scr,getBoundarys:$8n,getCurrentBoundaryParse:O8n,getParentBoundaryParse:P8n,getRels:G8n,getTitle:j8n,getC4Type:w8n,getC4ShapeInRow:M8n,getC4BoundaryInRow:N8n,setAccTitle:Os,getAccTitle:Vs,getAccDescription:Ws,setAccDescription:$s,getConfig:i(()=>hve("c4"),"getConfig"),clear:U8n,LINETYPE:V8n,ARROWTYPE:W8n,PLACEMENT:H8n,setTitle:q8n,setC4Type:x8n}});var Acr=Zv(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.BLANK_URL=pm.relativeFirstCharacters=pm.whitespaceEscapeCharsRegex=pm.urlSchemeRegex=pm.ctrlCharactersRegex=pm.htmlCtrlEntityRegex=pm.htmlEntitiesRegex=pm.invalidProtocolRegex=void 0;pm.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;pm.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;pm.htmlCtrlEntityRegex=/&(newline|tab);/gi;pm.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;pm.urlSchemeRegex=/^.+(:|:)/gim;pm.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;pm.relativeFirstCharacters=[".","/"];pm.BLANK_URL="about:blank"});var mte=Zv(Zqe=>{"use strict";Object.defineProperty(Zqe,"__esModule",{value:!0});Zqe.sanitizeUrl=J8n;var uy=Acr();function Y8n(r){return uy.relativeFirstCharacters.indexOf(r[0])>-1}i(Y8n,"isRelativeUrlWithoutProtocol");function X8n(r){var t=r.replace(uy.ctrlCharactersRegex,"");return t.replace(uy.htmlEntitiesRegex,function(a,s){return String.fromCharCode(s)})}i(X8n,"decodeHtmlCharacters");function K8n(r){return URL.canParse(r)}i(K8n,"isValidUrl");function Rcr(r){try{return decodeURIComponent(r)}catch{return r}}i(Rcr,"decodeURI");function J8n(r){if(!r)return uy.BLANK_URL;var t,a=Rcr(r.trim());do a=X8n(a).replace(uy.htmlCtrlEntityRegex,"").replace(uy.ctrlCharactersRegex,"").replace(uy.whitespaceEscapeCharsRegex,"").trim(),a=Rcr(a),t=a.match(uy.ctrlCharactersRegex)||a.match(uy.htmlEntitiesRegex)||a.match(uy.htmlCtrlEntityRegex)||a.match(uy.whitespaceEscapeCharsRegex);while(t&&t.length>0);var s=a;if(!s)return uy.BLANK_URL;if(Y8n(s))return s;var l=s.trimStart(),h=l.match(uy.urlSchemeRegex);if(!h)return s;var f=h[0].toLowerCase().trim();if(uy.invalidProtocolRegex.test(f))return uy.BLANK_URL;var d=l.replace(/\\/g,"/");if(f==="mailto:"||f.includes("://"))return d;if(f==="http:"||f==="https:"){if(!K8n(d))return uy.BLANK_URL;var m=new URL(d);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return d}i(J8n,"sanitizeUrl")});function oO(r,t){return r==null||t==null?NaN:r<t?-1:r>t?1:r>=t?0:NaN}var eYe=ae(()=>{"use strict";i(oO,"ascending")});function tYe(r,t){return r==null||t==null?NaN:t<r?-1:t>r?1:t>=r?0:NaN}var Lcr=ae(()=>{"use strict";i(tYe,"descending")});function lO(r){let t,a,s;r.length!==2?(t=oO,a=i((d,m)=>oO(r(d),m),"compare2"),s=i((d,m)=>r(d)-m,"delta")):(t=r===oO||r===tYe?r:Q8n,a=r,s=r);function l(d,m,b=0,v=d.length){if(b<v){if(t(m,m)!==0)return v;do{let T=b+v>>>1;a(d[T],m)<0?b=T+1:v=T}while(b<v)}return b}i(l,"left");function h(d,m,b=0,v=d.length){if(b<v){if(t(m,m)!==0)return v;do{let T=b+v>>>1;a(d[T],m)<=0?b=T+1:v=T}while(b<v)}return b}i(h,"right");function f(d,m,b=0,v=d.length){let T=l(d,m,b,v-1);return T>b&&s(d[T-1],m)>-s(d[T],m)?T-1:T}return i(f,"center"),{left:l,center:f,right:h}}function Q8n(){return 0}var rYe=ae(()=>{"use strict";eYe();Lcr();i(lO,"bisector");i(Q8n,"zero")});function nYe(r){return r===null?NaN:+r}var _cr=ae(()=>{"use strict";i(nYe,"number")});var Dcr,Icr,Z8n,e7n,iYe,Mcr=ae(()=>{"use strict";eYe();rYe();_cr();Dcr=lO(oO),Icr=Dcr.right,Z8n=Dcr.left,e7n=lO(nYe).center,iYe=Icr});function Ncr({_intern:r,_key:t},a){let s=t(a);return r.has(s)?r.get(s):a}function t7n({_intern:r,_key:t},a){let s=t(a);return r.has(s)?r.get(s):(r.set(s,a),a)}function r7n({_intern:r,_key:t},a){let s=t(a);return r.has(s)&&(a=r.get(s),r.delete(s)),a}function n7n(r){return r!==null&&typeof r=="object"?r.valueOf():r}var Rz,Ocr=ae(()=>{"use strict";Rz=class extends Map{static{i(this,"InternMap")}constructor(t,a=n7n){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:a}}),t!=null)for(let[s,l]of t)this.set(s,l)}get(t){return super.get(Ncr(this,t))}has(t){return super.has(Ncr(this,t))}set(t,a){return super.set(t7n(this,t),a)}delete(t){return super.delete(r7n(this,t))}};i(Ncr,"intern_get");i(t7n,"intern_set");i(r7n,"intern_delete");i(n7n,"keyof")});function pve(r,t,a){let s=(t-r)/Math.max(0,a),l=Math.floor(Math.log10(s)),h=s/Math.pow(10,l),f=h>=i7n?10:h>=a7n?5:h>=s7n?2:1,d,m,b;return l<0?(b=Math.pow(10,-l)/f,d=Math.round(r*b),m=Math.round(t*b),d/b<r&&++d,m/b>t&&--m,b=-b):(b=Math.pow(10,l)*f,d=Math.round(r/b),m=Math.round(t/b),d*b<r&&++d,m*b>t&&--m),m<d&&.5<=a&&a<2?pve(r,t,a*2):[d,m,b]}function gve(r,t,a){if(t=+t,r=+r,a=+a,!(a>0))return[];if(r===t)return[r];let s=t<r,[l,h,f]=s?pve(t,r,a):pve(r,t,a);if(!(h>=l))return[];let d=h-l+1,m=new Array(d);if(s)if(f<0)for(let b=0;b<d;++b)m[b]=(h-b)/-f;else for(let b=0;b<d;++b)m[b]=(h-b)*f;else if(f<0)for(let b=0;b<d;++b)m[b]=(l+b)/-f;else for(let b=0;b<d;++b)m[b]=(l+b)*f;return m}function yte(r,t,a){return t=+t,r=+r,a=+a,pve(r,t,a)[2]}function Lz(r,t,a){t=+t,r=+r,a=+a;let s=t<r,l=s?yte(t,r,a):yte(r,t,a);return(s?-1:1)*(l<0?1/-l:l)}var i7n,a7n,s7n,Pcr=ae(()=>{"use strict";i7n=Math.sqrt(50),a7n=Math.sqrt(10),s7n=Math.sqrt(2);i(pve,"tickSpec");i(gve,"ticks");i(yte,"tickIncrement");i(Lz,"tickStep")});function mve(r,t){let a;if(t===void 0)for(let s of r)s!=null&&(a<s||a===void 0&&s>=s)&&(a=s);else{let s=-1;for(let l of r)(l=t(l,++s,r))!=null&&(a<l||a===void 0&&l>=l)&&(a=l)}return a}var Bcr=ae(()=>{"use strict";i(mve,"max")});function yve(r,t){let a;if(t===void 0)for(let s of r)s!=null&&(a>s||a===void 0&&s>=s)&&(a=s);else{let s=-1;for(let l of r)(l=t(l,++s,r))!=null&&(a>l||a===void 0&&l>=l)&&(a=l)}return a}var Fcr=ae(()=>{"use strict";i(yve,"min")});function bve(r,t,a){r=+r,t=+t,a=(l=arguments.length)<2?(t=r,r=0,1):l<3?1:+a;for(var s=-1,l=Math.max(0,Math.ceil((t-r)/a))|0,h=new Array(l);++s<l;)h[s]=r+s*a;return h}var $cr=ae(()=>{"use strict";i(bve,"range")});var WL=ae(()=>{"use strict";Mcr();rYe();Bcr();Fcr();$cr();Pcr();Ocr()});function aYe(r){return r}var Gcr=ae(()=>{"use strict";i(aYe,"default")});function o7n(r){return"translate("+r+",0)"}function l7n(r){return"translate(0,"+r+")"}function c7n(r){return t=>+r(t)}function u7n(r,t){return t=Math.max(0,r.bandwidth()-t*2)/2,r.round()&&(t=Math.round(t)),a=>+r(a)+t}function h7n(){return!this.__axis}function zcr(r,t){var a=[],s=null,l=null,h=6,f=6,d=3,m=typeof window<"u"&&window.devicePixelRatio>1?0:.5,b=r===wve||r===vve?-1:1,v=r===vve||r===sYe?"x":"y",T=r===wve||r===oYe?o7n:l7n;function C(E){var S=s??(t.ticks?t.ticks.apply(t,a):t.domain()),R=l??(t.tickFormat?t.tickFormat.apply(t,a):aYe),L=Math.max(h,0)+d,_=t.range(),I=+_[0]+m,N=+_[_.length-1]+m,B=(t.bandwidth?u7n:c7n)(t.copy(),m),O=E.selection?E.selection():E,P=O.selectAll(".domain").data([null]),$=O.selectAll(".tick").data(S,t).order(),V=$.exit(),Y=$.enter().append("g").attr("class","tick"),Q=$.select("line"),q=$.select("text");P=P.merge(P.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),$=$.merge(Y),Q=Q.merge(Y.append("line").attr("stroke","currentColor").attr(v+"2",b*h)),q=q.merge(Y.append("text").attr("fill","currentColor").attr(v,b*L).attr("dy",r===wve?"0em":r===oYe?"0.71em":"0.32em")),E!==O&&(P=P.transition(E),$=$.transition(E),Q=Q.transition(E),q=q.transition(E),V=V.transition(E).attr("opacity",jcr).attr("transform",function(W){return isFinite(W=B(W))?T(W+m):this.getAttribute("transform")}),Y.attr("opacity",jcr).attr("transform",function(W){var H=this.parentNode.__axis;return T((H&&isFinite(H=H(W))?H:B(W))+m)})),V.remove(),P.attr("d",r===vve||r===sYe?f?"M"+b*f+","+I+"H"+m+"V"+N+"H"+b*f:"M"+m+","+I+"V"+N:f?"M"+I+","+b*f+"V"+m+"H"+N+"V"+b*f:"M"+I+","+m+"H"+N),$.attr("opacity",1).attr("transform",function(W){return T(B(W)+m)}),Q.attr(v+"2",b*h),q.attr(v,b*L).text(R),O.filter(h7n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",r===sYe?"start":r===vve?"end":"middle"),O.each(function(){this.__axis=B})}return i(C,"axis"),C.scale=function(E){return arguments.length?(t=E,C):t},C.ticks=function(){return a=Array.from(arguments),C},C.tickArguments=function(E){return arguments.length?(a=E==null?[]:Array.from(E),C):a.slice()},C.tickValues=function(E){return arguments.length?(s=E==null?null:Array.from(E),C):s&&s.slice()},C.tickFormat=function(E){return arguments.length?(l=E,C):l},C.tickSize=function(E){return arguments.length?(h=f=+E,C):h},C.tickSizeInner=function(E){return arguments.length?(h=+E,C):h},C.tickSizeOuter=function(E){return arguments.length?(f=+E,C):f},C.tickPadding=function(E){return arguments.length?(d=+E,C):d},C.offset=function(E){return arguments.length?(m=+E,C):m},C}function lYe(r){return zcr(wve,r)}function cYe(r){return zcr(oYe,r)}var wve,sYe,oYe,vve,jcr,Ucr=ae(()=>{"use strict";Gcr();wve=1,sYe=2,oYe=3,vve=4,jcr=1e-6;i(o7n,"translateX");i(l7n,"translateY");i(c7n,"number");i(u7n,"center");i(h7n,"entering");i(zcr,"axis");i(lYe,"axisTop");i(cYe,"axisBottom")});var Vcr=ae(()=>{"use strict";Ucr()});function Hcr(){for(var r=0,t=arguments.length,a={},s;r<t;++r){if(!(s=arguments[r]+"")||s in a||/[\s.]/.test(s))throw new Error("illegal type: "+s);a[s]=[]}return new xve(a)}function xve(r){this._=r}function d7n(r,t){return r.trim().split(/^|\s+/).map(function(a){var s="",l=a.indexOf(".");if(l>=0&&(s=a.slice(l+1),a=a.slice(0,l)),a&&!t.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:s}})}function p7n(r,t){for(var a=0,s=r.length,l;a<s;++a)if((l=r[a]).name===t)return l.value}function Wcr(r,t,a){for(var s=0,l=r.length;s<l;++s)if(r[s].name===t){r[s]=f7n,r=r.slice(0,s).concat(r.slice(s+1));break}return a!=null&&r.push({name:t,value:a}),r}var f7n,uYe,qcr=ae(()=>{"use strict";f7n={value:i(()=>{},"value")};i(Hcr,"dispatch");i(xve,"Dispatch");i(d7n,"parseTypenames");xve.prototype=Hcr.prototype={constructor:xve,on:i(function(r,t){var a=this._,s=d7n(r+"",a),l,h=-1,f=s.length;if(arguments.length<2){for(;++h<f;)if((l=(r=s[h]).type)&&(l=p7n(a[l],r.name)))return l;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++h<f;)if(l=(r=s[h]).type)a[l]=Wcr(a[l],r.name,t);else if(t==null)for(l in a)a[l]=Wcr(a[l],r.name,null);return this},"on"),copy:i(function(){var r={},t=this._;for(var a in t)r[a]=t[a].slice();return new xve(r)},"copy"),call:i(function(r,t){if((l=arguments.length-2)>0)for(var a=new Array(l),s=0,l,h;s<l;++s)a[s]=arguments[s+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(h=this._[r],s=0,l=h.length;s<l;++s)h[s].value.apply(t,a)},"call"),apply:i(function(r,t,a){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var s=this._[r],l=0,h=s.length;l<h;++l)s[l].value.apply(t,a)},"apply")};i(p7n,"get");i(Wcr,"set");uYe=Hcr});var hYe=ae(()=>{"use strict";qcr()});var Tve,fYe,dYe=ae(()=>{"use strict";Tve="http://www.w3.org/1999/xhtml",fYe={svg:"http://www.w3.org/2000/svg",xhtml:Tve,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function QE(r){var t=r+="",a=t.indexOf(":");return a>=0&&(t=r.slice(0,a))!=="xmlns"&&(r=r.slice(a+1)),fYe.hasOwnProperty(t)?{space:fYe[t],local:r}:r}var kve=ae(()=>{"use strict";dYe();i(QE,"default")});function g7n(r){return function(){var t=this.ownerDocument,a=this.namespaceURI;return a===Tve&&t.documentElement.namespaceURI===Tve?t.createElement(r):t.createElementNS(a,r)}}function m7n(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function bte(r){var t=QE(r);return(t.local?m7n:g7n)(t)}var pYe=ae(()=>{"use strict";kve();dYe();i(g7n,"creatorInherit");i(m7n,"creatorFixed");i(bte,"default")});function y7n(){}function HL(r){return r==null?y7n:function(){return this.querySelector(r)}}var Cve=ae(()=>{"use strict";i(y7n,"none");i(HL,"default")});function gYe(r){typeof r!="function"&&(r=HL(r));for(var t=this._groups,a=t.length,s=new Array(a),l=0;l<a;++l)for(var h=t[l],f=h.length,d=s[l]=new Array(f),m,b,v=0;v<f;++v)(m=h[v])&&(b=r.call(m,m.__data__,v,h))&&("__data__"in m&&(b.__data__=m.__data__),d[v]=b);return new mp(s,this._parents)}var Ycr=ae(()=>{"use strict";T4();Cve();i(gYe,"default")});function mYe(r){return r==null?[]:Array.isArray(r)?r:Array.from(r)}var Xcr=ae(()=>{"use strict";i(mYe,"array")});function b7n(){return[]}function _z(r){return r==null?b7n:function(){return this.querySelectorAll(r)}}var yYe=ae(()=>{"use strict";i(b7n,"empty");i(_z,"default")});function v7n(r){return function(){return mYe(r.apply(this,arguments))}}function bYe(r){typeof r=="function"?r=v7n(r):r=_z(r);for(var t=this._groups,a=t.length,s=[],l=[],h=0;h<a;++h)for(var f=t[h],d=f.length,m,b=0;b<d;++b)(m=f[b])&&(s.push(r.call(m,m.__data__,b,f)),l.push(m));return new mp(s,l)}var Kcr=ae(()=>{"use strict";T4();Xcr();yYe();i(v7n,"arrayAll");i(bYe,"default")});function Dz(r){return function(){return this.matches(r)}}function Eve(r){return function(t){return t.matches(r)}}var vte=ae(()=>{"use strict";i(Dz,"default");i(Eve,"childMatcher")});function x7n(r){return function(){return w7n.call(this.children,r)}}function T7n(){return this.firstElementChild}function vYe(r){return this.select(r==null?T7n:x7n(typeof r=="function"?r:Eve(r)))}var w7n,Jcr=ae(()=>{"use strict";vte();w7n=Array.prototype.find;i(x7n,"childFind");i(T7n,"childFirst");i(vYe,"default")});function C7n(){return Array.from(this.children)}function E7n(r){return function(){return k7n.call(this.children,r)}}function wYe(r){return this.selectAll(r==null?C7n:E7n(typeof r=="function"?r:Eve(r)))}var k7n,Qcr=ae(()=>{"use strict";vte();k7n=Array.prototype.filter;i(C7n,"children");i(E7n,"childrenFilter");i(wYe,"default")});function xYe(r){typeof r!="function"&&(r=Dz(r));for(var t=this._groups,a=t.length,s=new Array(a),l=0;l<a;++l)for(var h=t[l],f=h.length,d=s[l]=[],m,b=0;b<f;++b)(m=h[b])&&r.call(m,m.__data__,b,h)&&d.push(m);return new mp(s,this._parents)}var Zcr=ae(()=>{"use strict";T4();vte();i(xYe,"default")});function wte(r){return new Array(r.length)}var TYe=ae(()=>{"use strict";i(wte,"default")});function kYe(){return new mp(this._enter||this._groups.map(wte),this._parents)}function xte(r,t){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=t}var CYe=ae(()=>{"use strict";TYe();T4();i(kYe,"default");i(xte,"EnterNode");xte.prototype={constructor:xte,appendChild:i(function(r){return this._parent.insertBefore(r,this._next)},"appendChild"),insertBefore:i(function(r,t){return this._parent.insertBefore(r,t)},"insertBefore"),querySelector:i(function(r){return this._parent.querySelector(r)},"querySelector"),querySelectorAll:i(function(r){return this._parent.querySelectorAll(r)},"querySelectorAll")}});function EYe(r){return function(){return r}}var eur=ae(()=>{"use strict";i(EYe,"default")});function S7n(r,t,a,s,l,h){for(var f=0,d,m=t.length,b=h.length;f<b;++f)(d=t[f])?(d.__data__=h[f],s[f]=d):a[f]=new xte(r,h[f]);for(;f<m;++f)(d=t[f])&&(l[f]=d)}function A7n(r,t,a,s,l,h,f){var d,m,b=new Map,v=t.length,T=h.length,C=new Array(v),E;for(d=0;d<v;++d)(m=t[d])&&(C[d]=E=f.call(m,m.__data__,d,t)+"",b.has(E)?l[d]=m:b.set(E,m));for(d=0;d<T;++d)E=f.call(r,h[d],d,h)+"",(m=b.get(E))?(s[d]=m,m.__data__=h[d],b.delete(E)):a[d]=new xte(r,h[d]);for(d=0;d<v;++d)(m=t[d])&&b.get(C[d])===m&&(l[d]=m)}function R7n(r){return r.__data__}function SYe(r,t){if(!arguments.length)return Array.from(this,R7n);var a=t?A7n:S7n,s=this._parents,l=this._groups;typeof r!="function"&&(r=EYe(r));for(var h=l.length,f=new Array(h),d=new Array(h),m=new Array(h),b=0;b<h;++b){var v=s[b],T=l[b],C=T.length,E=L7n(r.call(v,v&&v.__data__,b,s)),S=E.length,R=d[b]=new Array(S),L=f[b]=new Array(S),_=m[b]=new Array(C);a(v,T,R,L,_,E,t);for(var I=0,N=0,B,O;I<S;++I)if(B=R[I]){for(I>=N&&(N=I+1);!(O=L[N])&&++N<S;);B._next=O||null}}return f=new mp(f,s),f._enter=d,f._exit=m,f}function L7n(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}var tur=ae(()=>{"use strict";T4();CYe();eur();i(S7n,"bindIndex");i(A7n,"bindKey");i(R7n,"datum");i(SYe,"default");i(L7n,"arraylike")});function AYe(){return new mp(this._exit||this._groups.map(wte),this._parents)}var rur=ae(()=>{"use strict";TYe();T4();i(AYe,"default")});function RYe(r,t,a){var s=this.enter(),l=this,h=this.exit();return typeof r=="function"?(s=r(s),s&&(s=s.selection())):s=s.append(r+""),t!=null&&(l=t(l),l&&(l=l.selection())),a==null?h.remove():a(h),s&&l?s.merge(l).order():l}var nur=ae(()=>{"use strict";i(RYe,"default")});function LYe(r){for(var t=r.selection?r.selection():r,a=this._groups,s=t._groups,l=a.length,h=s.length,f=Math.min(l,h),d=new Array(l),m=0;m<f;++m)for(var b=a[m],v=s[m],T=b.length,C=d[m]=new Array(T),E,S=0;S<T;++S)(E=b[S]||v[S])&&(C[S]=E);for(;m<l;++m)d[m]=a[m];return new mp(d,this._parents)}var iur=ae(()=>{"use strict";T4();i(LYe,"default")});function _Ye(){for(var r=this._groups,t=-1,a=r.length;++t<a;)for(var s=r[t],l=s.length-1,h=s[l],f;--l>=0;)(f=s[l])&&(h&&f.compareDocumentPosition(h)^4&&h.parentNode.insertBefore(f,h),h=f);return this}var aur=ae(()=>{"use strict";i(_Ye,"default")});function DYe(r){r||(r=_7n);function t(T,C){return T&&C?r(T.__data__,C.__data__):!T-!C}i(t,"compareNode");for(var a=this._groups,s=a.length,l=new Array(s),h=0;h<s;++h){for(var f=a[h],d=f.length,m=l[h]=new Array(d),b,v=0;v<d;++v)(b=f[v])&&(m[v]=b);m.sort(t)}return new mp(l,this._parents).order()}function _7n(r,t){return r<t?-1:r>t?1:r>=t?0:NaN}var sur=ae(()=>{"use strict";T4();i(DYe,"default");i(_7n,"ascending")});function IYe(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}var our=ae(()=>{"use strict";i(IYe,"default")});function MYe(){return Array.from(this)}var lur=ae(()=>{"use strict";i(MYe,"default")});function NYe(){for(var r=this._groups,t=0,a=r.length;t<a;++t)for(var s=r[t],l=0,h=s.length;l<h;++l){var f=s[l];if(f)return f}return null}var cur=ae(()=>{"use strict";i(NYe,"default")});function OYe(){let r=0;for(let t of this)++r;return r}var uur=ae(()=>{"use strict";i(OYe,"default")});function PYe(){return!this.node()}var hur=ae(()=>{"use strict";i(PYe,"default")});function BYe(r){for(var t=this._groups,a=0,s=t.length;a<s;++a)for(var l=t[a],h=0,f=l.length,d;h<f;++h)(d=l[h])&&r.call(d,d.__data__,h,l);return this}var fur=ae(()=>{"use strict";i(BYe,"default")});function D7n(r){return function(){this.removeAttribute(r)}}function I7n(r){return function(){this.removeAttributeNS(r.space,r.local)}}function M7n(r,t){return function(){this.setAttribute(r,t)}}function N7n(r,t){return function(){this.setAttributeNS(r.space,r.local,t)}}function O7n(r,t){return function(){var a=t.apply(this,arguments);a==null?this.removeAttribute(r):this.setAttribute(r,a)}}function P7n(r,t){return function(){var a=t.apply(this,arguments);a==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,a)}}function FYe(r,t){var a=QE(r);if(arguments.length<2){var s=this.node();return a.local?s.getAttributeNS(a.space,a.local):s.getAttribute(a)}return this.each((t==null?a.local?I7n:D7n:typeof t=="function"?a.local?P7n:O7n:a.local?N7n:M7n)(a,t))}var dur=ae(()=>{"use strict";kve();i(D7n,"attrRemove");i(I7n,"attrRemoveNS");i(M7n,"attrConstant");i(N7n,"attrConstantNS");i(O7n,"attrFunction");i(P7n,"attrFunctionNS");i(FYe,"default")});function Tte(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}var $Ye=ae(()=>{"use strict";i(Tte,"default")});function B7n(r){return function(){this.style.removeProperty(r)}}function F7n(r,t,a){return function(){this.style.setProperty(r,t,a)}}function $7n(r,t,a){return function(){var s=t.apply(this,arguments);s==null?this.style.removeProperty(r):this.style.setProperty(r,s,a)}}function GYe(r,t,a){return arguments.length>1?this.each((t==null?B7n:typeof t=="function"?$7n:F7n)(r,t,a??"")):qL(this.node(),r)}function qL(r,t){return r.style.getPropertyValue(t)||Tte(r).getComputedStyle(r,null).getPropertyValue(t)}var jYe=ae(()=>{"use strict";$Ye();i(B7n,"styleRemove");i(F7n,"styleConstant");i($7n,"styleFunction");i(GYe,"default");i(qL,"styleValue")});function G7n(r){return function(){delete this[r]}}function j7n(r,t){return function(){this[r]=t}}function z7n(r,t){return function(){var a=t.apply(this,arguments);a==null?delete this[r]:this[r]=a}}function zYe(r,t){return arguments.length>1?this.each((t==null?G7n:typeof t=="function"?z7n:j7n)(r,t)):this.node()[r]}var pur=ae(()=>{"use strict";i(G7n,"propertyRemove");i(j7n,"propertyConstant");i(z7n,"propertyFunction");i(zYe,"default")});function gur(r){return r.trim().split(/^|\s+/)}function UYe(r){return r.classList||new mur(r)}function mur(r){this._node=r,this._names=gur(r.getAttribute("class")||"")}function yur(r,t){for(var a=UYe(r),s=-1,l=t.length;++s<l;)a.add(t[s])}function bur(r,t){for(var a=UYe(r),s=-1,l=t.length;++s<l;)a.remove(t[s])}function U7n(r){return function(){yur(this,r)}}function V7n(r){return function(){bur(this,r)}}function W7n(r,t){return function(){(t.apply(this,arguments)?yur:bur)(this,r)}}function VYe(r,t){var a=gur(r+"");if(arguments.length<2){for(var s=UYe(this.node()),l=-1,h=a.length;++l<h;)if(!s.contains(a[l]))return!1;return!0}return this.each((typeof t=="function"?W7n:t?U7n:V7n)(a,t))}var vur=ae(()=>{"use strict";i(gur,"classArray");i(UYe,"classList");i(mur,"ClassList");mur.prototype={add:i(function(r){var t=this._names.indexOf(r);t<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:i(function(r){var t=this._names.indexOf(r);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:i(function(r){return this._names.indexOf(r)>=0},"contains")};i(yur,"classedAdd");i(bur,"classedRemove");i(U7n,"classedTrue");i(V7n,"classedFalse");i(W7n,"classedFunction");i(VYe,"default")});function H7n(){this.textContent=""}function q7n(r){return function(){this.textContent=r}}function Y7n(r){return function(){var t=r.apply(this,arguments);this.textContent=t??""}}function WYe(r){return arguments.length?this.each(r==null?H7n:(typeof r=="function"?Y7n:q7n)(r)):this.node().textContent}var wur=ae(()=>{"use strict";i(H7n,"textRemove");i(q7n,"textConstant");i(Y7n,"textFunction");i(WYe,"default")});function X7n(){this.innerHTML=""}function K7n(r){return function(){this.innerHTML=r}}function J7n(r){return function(){var t=r.apply(this,arguments);this.innerHTML=t??""}}function HYe(r){return arguments.length?this.each(r==null?X7n:(typeof r=="function"?J7n:K7n)(r)):this.node().innerHTML}var xur=ae(()=>{"use strict";i(X7n,"htmlRemove");i(K7n,"htmlConstant");i(J7n,"htmlFunction");i(HYe,"default")});function Q7n(){this.nextSibling&&this.parentNode.appendChild(this)}function qYe(){return this.each(Q7n)}var Tur=ae(()=>{"use strict";i(Q7n,"raise");i(qYe,"default")});function Z7n(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function YYe(){return this.each(Z7n)}var kur=ae(()=>{"use strict";i(Z7n,"lower");i(YYe,"default")});function XYe(r){var t=typeof r=="function"?r:bte(r);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var Cur=ae(()=>{"use strict";pYe();i(XYe,"default")});function eRn(){return null}function KYe(r,t){var a=typeof r=="function"?r:bte(r),s=t==null?eRn:typeof t=="function"?t:HL(t);return this.select(function(){return this.insertBefore(a.apply(this,arguments),s.apply(this,arguments)||null)})}var Eur=ae(()=>{"use strict";pYe();Cve();i(eRn,"constantNull");i(KYe,"default")});function tRn(){var r=this.parentNode;r&&r.removeChild(this)}function JYe(){return this.each(tRn)}var Sur=ae(()=>{"use strict";i(tRn,"remove");i(JYe,"default")});function rRn(){var r=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(r,this.nextSibling):r}function nRn(){var r=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(r,this.nextSibling):r}function QYe(r){return this.select(r?nRn:rRn)}var Aur=ae(()=>{"use strict";i(rRn,"selection_cloneShallow");i(nRn,"selection_cloneDeep");i(QYe,"default")});function ZYe(r){return arguments.length?this.property("__data__",r):this.node().__data__}var Rur=ae(()=>{"use strict";i(ZYe,"default")});function iRn(r){return function(t){r.call(this,t,this.__data__)}}function aRn(r){return r.trim().split(/^|\s+/).map(function(t){var a="",s=t.indexOf(".");return s>=0&&(a=t.slice(s+1),t=t.slice(0,s)),{type:t,name:a}})}function sRn(r){return function(){var t=this.__on;if(t){for(var a=0,s=-1,l=t.length,h;a<l;++a)h=t[a],(!r.type||h.type===r.type)&&h.name===r.name?this.removeEventListener(h.type,h.listener,h.options):t[++s]=h;++s?t.length=s:delete this.__on}}}function oRn(r,t,a){return function(){var s=this.__on,l,h=iRn(t);if(s){for(var f=0,d=s.length;f<d;++f)if((l=s[f]).type===r.type&&l.name===r.name){this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=h,l.options=a),l.value=t;return}}this.addEventListener(r.type,h,a),l={type:r.type,name:r.name,value:t,listener:h,options:a},s?s.push(l):this.__on=[l]}}function eXe(r,t,a){var s=aRn(r+""),l,h=s.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var m=0,b=d.length,v;m<b;++m)for(l=0,v=d[m];l<h;++l)if((f=s[l]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?oRn:sRn,l=0;l<h;++l)this.each(d(s[l],t,a));return this}var Lur=ae(()=>{"use strict";i(iRn,"contextListener");i(aRn,"parseTypenames");i(sRn,"onRemove");i(oRn,"onAdd");i(eXe,"default")});function _ur(r,t,a){var s=Tte(r),l=s.CustomEvent;typeof l=="function"?l=new l(t,a):(l=s.document.createEvent("Event"),a?(l.initEvent(t,a.bubbles,a.cancelable),l.detail=a.detail):l.initEvent(t,!1,!1)),r.dispatchEvent(l)}function lRn(r,t){return function(){return _ur(this,r,t)}}function cRn(r,t){return function(){return _ur(this,r,t.apply(this,arguments))}}function tXe(r,t){return this.each((typeof t=="function"?cRn:lRn)(r,t))}var Dur=ae(()=>{"use strict";$Ye();i(_ur,"dispatchEvent");i(lRn,"dispatchConstant");i(cRn,"dispatchFunction");i(tXe,"default")});function*rXe(){for(var r=this._groups,t=0,a=r.length;t<a;++t)for(var s=r[t],l=0,h=s.length,f;l<h;++l)(f=s[l])&&(yield f)}var Iur=ae(()=>{"use strict";i(rXe,"default")});function mp(r,t){this._groups=r,this._parents=t}function Mur(){return new mp([[document.documentElement]],nXe)}function uRn(){return this}var nXe,kA,T4=ae(()=>{"use strict";Ycr();Kcr();Jcr();Qcr();Zcr();tur();CYe();rur();nur();iur();aur();sur();our();lur();cur();uur();hur();fur();dur();jYe();pur();vur();wur();xur();Tur();kur();Cur();Eur();Sur();Aur();Rur();Lur();Dur();Iur();nXe=[null];i(mp,"Selection");i(Mur,"selection");i(uRn,"selection_selection");mp.prototype=Mur.prototype={constructor:mp,select:gYe,selectAll:bYe,selectChild:vYe,selectChildren:wYe,filter:xYe,data:SYe,enter:kYe,exit:AYe,join:RYe,merge:LYe,selection:uRn,order:_Ye,sort:DYe,call:IYe,nodes:MYe,node:NYe,size:OYe,empty:PYe,each:BYe,attr:FYe,style:GYe,property:zYe,classed:VYe,text:WYe,html:HYe,raise:qYe,lower:YYe,append:XYe,insert:KYe,remove:JYe,clone:QYe,datum:ZYe,on:eXe,dispatch:tXe,[Symbol.iterator]:rXe};kA=Mur});function mn(r){return typeof r=="string"?new mp([[document.querySelector(r)]],[document.documentElement]):new mp([[r]],nXe)}var Nur=ae(()=>{"use strict";T4();i(mn,"default")});var k4=ae(()=>{"use strict";vte();kve();Nur();T4();Cve();yYe();jYe()});var Our=ae(()=>{"use strict"});function YL(r,t,a){r.prototype=t.prototype=a,a.constructor=r}function Iz(r,t){var a=Object.create(r.prototype);for(var s in t)a[s]=t[s];return a}var iXe=ae(()=>{"use strict";i(YL,"default");i(Iz,"extend")});function XL(){}function Bur(){return this.rgb().formatHex()}function bRn(){return this.rgb().formatHex8()}function vRn(){return Vur(this).formatHsl()}function Fur(){return this.rgb().formatRgb()}function E4(r){var t,a;return r=(r+"").trim().toLowerCase(),(t=hRn.exec(r))?(a=t[1].length,t=parseInt(t[1],16),a===6?$ur(t):a===3?new u1(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):a===8?Sve(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):a===4?Sve(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=fRn.exec(r))?new u1(t[1],t[2],t[3],1):(t=dRn.exec(r))?new u1(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pRn.exec(r))?Sve(t[1],t[2],t[3],t[4]):(t=gRn.exec(r))?Sve(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=mRn.exec(r))?zur(t[1],t[2]/100,t[3]/100,1):(t=yRn.exec(r))?zur(t[1],t[2]/100,t[3]/100,t[4]):Pur.hasOwnProperty(r)?$ur(Pur[r]):r==="transparent"?new u1(NaN,NaN,NaN,0):null}function $ur(r){return new u1(r>>16&255,r>>8&255,r&255,1)}function Sve(r,t,a,s){return s<=0&&(r=t=a=NaN),new u1(r,t,a,s)}function sXe(r){return r instanceof XL||(r=E4(r)),r?(r=r.rgb(),new u1(r.r,r.g,r.b,r.opacity)):new u1}function Nz(r,t,a,s){return arguments.length===1?sXe(r):new u1(r,t,a,s??1)}function u1(r,t,a,s){this.r=+r,this.g=+t,this.b=+a,this.opacity=+s}function Gur(){return`#${cO(this.r)}${cO(this.g)}${cO(this.b)}`}function wRn(){return`#${cO(this.r)}${cO(this.g)}${cO(this.b)}${cO((isNaN(this.opacity)?1:this.opacity)*255)}`}function jur(){let r=Lve(this.opacity);return`${r===1?"rgb(":"rgba("}${uO(this.r)}, ${uO(this.g)}, ${uO(this.b)}${r===1?")":`, ${r})`}`}function Lve(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function uO(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function cO(r){return r=uO(r),(r<16?"0":"")+r.toString(16)}function zur(r,t,a,s){return s<=0?r=t=a=NaN:a<=0||a>=1?r=t=NaN:t<=0&&(r=NaN),new C4(r,t,a,s)}function Vur(r){if(r instanceof C4)return new C4(r.h,r.s,r.l,r.opacity);if(r instanceof XL||(r=E4(r)),!r)return new C4;if(r instanceof C4)return r;r=r.rgb();var t=r.r/255,a=r.g/255,s=r.b/255,l=Math.min(t,a,s),h=Math.max(t,a,s),f=NaN,d=h-l,m=(h+l)/2;return d?(t===h?f=(a-s)/d+(a<s)*6:a===h?f=(s-t)/d+2:f=(t-a)/d+4,d/=m<.5?h+l:2-h-l,f*=60):d=m>0&&m<1?0:f,new C4(f,d,m,r.opacity)}function Wur(r,t,a,s){return arguments.length===1?Vur(r):new C4(r,t,a,s??1)}function C4(r,t,a,s){this.h=+r,this.s=+t,this.l=+a,this.opacity=+s}function Uur(r){return r=(r||0)%360,r<0?r+360:r}function Ave(r){return Math.max(0,Math.min(1,r||0))}function aXe(r,t,a){return(r<60?t+(a-t)*r/60:r<180?a:r<240?t+(a-t)*(240-r)/60:t)*255}var kte,Rve,Mz,Cte,ZE,hRn,fRn,dRn,pRn,gRn,mRn,yRn,Pur,oXe=ae(()=>{"use strict";iXe();i(XL,"Color");kte=.7,Rve=1/kte,Mz="\\s*([+-]?\\d+)\\s*",Cte="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ZE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hRn=/^#([0-9a-f]{3,8})$/,fRn=new RegExp(`^rgb\\(${Mz},${Mz},${Mz}\\)$`),dRn=new RegExp(`^rgb\\(${ZE},${ZE},${ZE}\\)$`),pRn=new RegExp(`^rgba\\(${Mz},${Mz},${Mz},${Cte}\\)$`),gRn=new RegExp(`^rgba\\(${ZE},${ZE},${ZE},${Cte}\\)$`),mRn=new RegExp(`^hsl\\(${Cte},${ZE},${ZE}\\)$`),yRn=new RegExp(`^hsla\\(${Cte},${ZE},${ZE},${Cte}\\)$`),Pur={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};YL(XL,E4,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Bur,formatHex:Bur,formatHex8:bRn,formatHsl:vRn,formatRgb:Fur,toString:Fur});i(Bur,"color_formatHex");i(bRn,"color_formatHex8");i(vRn,"color_formatHsl");i(Fur,"color_formatRgb");i(E4,"color");i($ur,"rgbn");i(Sve,"rgba");i(sXe,"rgbConvert");i(Nz,"rgb");i(u1,"Rgb");YL(u1,Nz,Iz(XL,{brighter(r){return r=r==null?Rve:Math.pow(Rve,r),new u1(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?kte:Math.pow(kte,r),new u1(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new u1(uO(this.r),uO(this.g),uO(this.b),Lve(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gur,formatHex:Gur,formatHex8:wRn,formatRgb:jur,toString:jur}));i(Gur,"rgb_formatHex");i(wRn,"rgb_formatHex8");i(jur,"rgb_formatRgb");i(Lve,"clampa");i(uO,"clampi");i(cO,"hex");i(zur,"hsla");i(Vur,"hslConvert");i(Wur,"hsl");i(C4,"Hsl");YL(C4,Wur,Iz(XL,{brighter(r){return r=r==null?Rve:Math.pow(Rve,r),new C4(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?kte:Math.pow(kte,r),new C4(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,t=isNaN(r)||isNaN(this.s)?0:this.s,a=this.l,s=a+(a<.5?a:1-a)*t,l=2*a-s;return new u1(aXe(r>=240?r-240:r+120,l,s),aXe(r,l,s),aXe(r<120?r+240:r-120,l,s),this.opacity)},clamp(){return new C4(Uur(this.h),Ave(this.s),Ave(this.l),Lve(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let r=Lve(this.opacity);return`${r===1?"hsl(":"hsla("}${Uur(this.h)}, ${Ave(this.s)*100}%, ${Ave(this.l)*100}%${r===1?")":`, ${r})`}`}}));i(Uur,"clamph");i(Ave,"clampt");i(aXe,"hsl2rgb")});var Hur,qur,Yur=ae(()=>{"use strict";Hur=Math.PI/180,qur=180/Math.PI});function ehr(r){if(r instanceof eS)return new eS(r.l,r.a,r.b,r.opacity);if(r instanceof CA)return thr(r);r instanceof u1||(r=sXe(r));var t=hXe(r.r),a=hXe(r.g),s=hXe(r.b),l=lXe((.2225045*t+.7168786*a+.0606169*s)/Kur),h,f;return t===a&&a===s?h=f=l:(h=lXe((.4360747*t+.3850649*a+.1430804*s)/Xur),f=lXe((.0139322*t+.0971045*a+.7141733*s)/Jur)),new eS(116*l-16,500*(h-l),200*(l-f),r.opacity)}function fXe(r,t,a,s){return arguments.length===1?ehr(r):new eS(r,t,a,s??1)}function eS(r,t,a,s){this.l=+r,this.a=+t,this.b=+a,this.opacity=+s}function lXe(r){return r>xRn?Math.pow(r,1/3):r/Zur+Qur}function cXe(r){return r>Oz?r*r*r:Zur*(r-Qur)}function uXe(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function hXe(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function TRn(r){if(r instanceof CA)return new CA(r.h,r.c,r.l,r.opacity);if(r instanceof eS||(r=ehr(r)),r.a===0&&r.b===0)return new CA(NaN,0<r.l&&r.l<100?0:NaN,r.l,r.opacity);var t=Math.atan2(r.b,r.a)*qur;return new CA(t<0?t+360:t,Math.sqrt(r.a*r.a+r.b*r.b),r.l,r.opacity)}function Ete(r,t,a,s){return arguments.length===1?TRn(r):new CA(r,t,a,s??1)}function CA(r,t,a,s){this.h=+r,this.c=+t,this.l=+a,this.opacity=+s}function thr(r){if(isNaN(r.h))return new eS(r.l,0,0,r.opacity);var t=r.h*Hur;return new eS(r.l,Math.cos(t)*r.c,Math.sin(t)*r.c,r.opacity)}var _ve,Xur,Kur,Jur,Qur,Oz,Zur,xRn,rhr=ae(()=>{"use strict";iXe();oXe();Yur();_ve=18,Xur=.96422,Kur=1,Jur=.82521,Qur=4/29,Oz=6/29,Zur=3*Oz*Oz,xRn=Oz*Oz*Oz;i(ehr,"labConvert");i(fXe,"lab");i(eS,"Lab");YL(eS,fXe,Iz(XL,{brighter(r){return new eS(this.l+_ve*(r??1),this.a,this.b,this.opacity)},darker(r){return new eS(this.l-_ve*(r??1),this.a,this.b,this.opacity)},rgb(){var r=(this.l+16)/116,t=isNaN(this.a)?r:r+this.a/500,a=isNaN(this.b)?r:r-this.b/200;return t=Xur*cXe(t),r=Kur*cXe(r),a=Jur*cXe(a),new u1(uXe(3.1338561*t-1.6168667*r-.4906146*a),uXe(-.9787684*t+1.9161415*r+.033454*a),uXe(.0719453*t-.2289914*r+1.4052427*a),this.opacity)}}));i(lXe,"xyz2lab");i(cXe,"lab2xyz");i(uXe,"lrgb2rgb");i(hXe,"rgb2lrgb");i(TRn,"hclConvert");i(Ete,"hcl");i(CA,"Hcl");i(thr,"hcl2lab");YL(CA,Ete,Iz(XL,{brighter(r){return new CA(this.h,this.c,this.l+_ve*(r??1),this.opacity)},darker(r){return new CA(this.h,this.c,this.l-_ve*(r??1),this.opacity)},rgb(){return thr(this).rgb()}}))});var Pz=ae(()=>{"use strict";oXe();rhr()});function dXe(r,t,a,s,l){var h=r*r,f=h*r;return((1-3*r+3*h-f)*t+(4-6*h+3*f)*a+(1+3*r+3*h-3*f)*s+f*l)/6}function pXe(r){var t=r.length-1;return function(a){var s=a<=0?a=0:a>=1?(a=1,t-1):Math.floor(a*t),l=r[s],h=r[s+1],f=s>0?r[s-1]:2*l-h,d=s<t-1?r[s+2]:2*h-l;return dXe((a-s/t)*t,f,l,h,d)}}var gXe=ae(()=>{"use strict";i(dXe,"basis");i(pXe,"default")});function mXe(r){var t=r.length;return function(a){var s=Math.floor(((a%=1)<0?++a:a)*t),l=r[(s+t-1)%t],h=r[s%t],f=r[(s+1)%t],d=r[(s+2)%t];return dXe((a-s/t)*t,l,h,f,d)}}var nhr=ae(()=>{"use strict";gXe();i(mXe,"default")});var Bz,yXe=ae(()=>{"use strict";Bz=i(r=>()=>r,"default")});function ihr(r,t){return function(a){return r+a*t}}function kRn(r,t,a){return r=Math.pow(r,a),t=Math.pow(t,a)-r,a=1/a,function(s){return Math.pow(r+s*t,a)}}function ahr(r,t){var a=t-r;return a?ihr(r,a>180||a<-180?a-360*Math.round(a/360):a):Bz(isNaN(r)?t:r)}function shr(r){return(r=+r)==1?EA:function(t,a){return a-t?kRn(t,a,r):Bz(isNaN(t)?a:t)}}function EA(r,t){var a=t-r;return a?ihr(r,a):Bz(isNaN(r)?t:r)}var bXe=ae(()=>{"use strict";yXe();i(ihr,"linear");i(kRn,"exponential");i(ahr,"hue");i(shr,"gamma");i(EA,"nogamma")});function ohr(r){return function(t){var a=t.length,s=new Array(a),l=new Array(a),h=new Array(a),f,d;for(f=0;f<a;++f)d=Nz(t[f]),s[f]=d.r||0,l[f]=d.g||0,h[f]=d.b||0;return s=r(s),l=r(l),h=r(h),d.opacity=1,function(m){return d.r=s(m),d.g=l(m),d.b=h(m),d+""}}}var hO,CRn,ERn,vXe=ae(()=>{"use strict";Pz();gXe();nhr();bXe();hO=i((function r(t){var a=shr(t);function s(l,h){var f=a((l=Nz(l)).r,(h=Nz(h)).r),d=a(l.g,h.g),m=a(l.b,h.b),b=EA(l.opacity,h.opacity);return function(v){return l.r=f(v),l.g=d(v),l.b=m(v),l.opacity=b(v),l+""}}return i(s,"rgb"),s.gamma=r,s}),"rgbGamma")(1);i(ohr,"rgbSpline");CRn=ohr(pXe),ERn=ohr(mXe)});function wXe(r,t){t||(t=[]);var a=r?Math.min(t.length,r.length):0,s=t.slice(),l;return function(h){for(l=0;l<a;++l)s[l]=r[l]*(1-h)+t[l]*h;return s}}function lhr(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}var chr=ae(()=>{"use strict";i(wXe,"default");i(lhr,"isNumberArray")});function uhr(r,t){var a=t?t.length:0,s=r?Math.min(a,r.length):0,l=new Array(s),h=new Array(a),f;for(f=0;f<s;++f)l[f]=KL(r[f],t[f]);for(;f<a;++f)h[f]=t[f];return function(d){for(f=0;f<s;++f)h[f]=l[f](d);return h}}var hhr=ae(()=>{"use strict";Dve();i(uhr,"genericArray")});function xXe(r,t){var a=new Date;return r=+r,t=+t,function(s){return a.setTime(r*(1-s)+t*s),a}}var fhr=ae(()=>{"use strict";i(xXe,"default")});function gm(r,t){return r=+r,t=+t,function(a){return r*(1-a)+t*a}}var Ste=ae(()=>{"use strict";i(gm,"default")});function TXe(r,t){var a={},s={},l;(r===null||typeof r!="object")&&(r={}),(t===null||typeof t!="object")&&(t={});for(l in t)l in r?a[l]=KL(r[l],t[l]):s[l]=t[l];return function(h){for(l in a)s[l]=a[l](h);return s}}var dhr=ae(()=>{"use strict";Dve();i(TXe,"default")});function SRn(r){return function(){return r}}function ARn(r){return function(t){return r(t)+""}}function Fz(r,t){var a=CXe.lastIndex=kXe.lastIndex=0,s,l,h,f=-1,d=[],m=[];for(r=r+"",t=t+"";(s=CXe.exec(r))&&(l=kXe.exec(t));)(h=l.index)>a&&(h=t.slice(a,h),d[f]?d[f]+=h:d[++f]=h),(s=s[0])===(l=l[0])?d[f]?d[f]+=l:d[++f]=l:(d[++f]=null,m.push({i:f,x:gm(s,l)})),a=kXe.lastIndex;return a<t.length&&(h=t.slice(a),d[f]?d[f]+=h:d[++f]=h),d.length<2?m[0]?ARn(m[0].x):SRn(t):(t=m.length,function(b){for(var v=0,T;v<t;++v)d[(T=m[v]).i]=T.x(b);return d.join("")})}var CXe,kXe,EXe=ae(()=>{"use strict";Ste();CXe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kXe=new RegExp(CXe.source,"g");i(SRn,"zero");i(ARn,"one");i(Fz,"default")});function KL(r,t){var a=typeof t,s;return t==null||a==="boolean"?Bz(t):(a==="number"?gm:a==="string"?(s=E4(t))?(t=s,hO):Fz:t instanceof E4?hO:t instanceof Date?xXe:lhr(t)?wXe:Array.isArray(t)?uhr:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?TXe:gm)(r,t)}var Dve=ae(()=>{"use strict";Pz();vXe();hhr();fhr();Ste();dhr();EXe();yXe();chr();i(KL,"default")});function Ive(r,t){return r=+r,t=+t,function(a){return Math.round(r*(1-a)+t*a)}}var phr=ae(()=>{"use strict";i(Ive,"default")});function Nve(r,t,a,s,l,h){var f,d,m;return(f=Math.sqrt(r*r+t*t))&&(r/=f,t/=f),(m=r*a+t*s)&&(a-=r*m,s-=t*m),(d=Math.sqrt(a*a+s*s))&&(a/=d,s/=d,m/=d),r*s<t*a&&(r=-r,t=-t,m=-m,f=-f),{translateX:l,translateY:h,rotate:Math.atan2(t,r)*ghr,skewX:Math.atan(m)*ghr,scaleX:f,scaleY:d}}var ghr,Mve,mhr=ae(()=>{"use strict";ghr=180/Math.PI,Mve={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};i(Nve,"default")});function yhr(r){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return t.isIdentity?Mve:Nve(t.a,t.b,t.c,t.d,t.e,t.f)}function bhr(r){return r==null?Mve:(Ove||(Ove=document.createElementNS("http://www.w3.org/2000/svg","g")),Ove.setAttribute("transform",r),(r=Ove.transform.baseVal.consolidate())?(r=r.matrix,Nve(r.a,r.b,r.c,r.d,r.e,r.f)):Mve)}var Ove,vhr=ae(()=>{"use strict";mhr();i(yhr,"parseCss");i(bhr,"parseSvg")});function whr(r,t,a,s){function l(b){return b.length?b.pop()+" ":""}i(l,"pop");function h(b,v,T,C,E,S){if(b!==T||v!==C){var R=E.push("translate(",null,t,null,a);S.push({i:R-4,x:gm(b,T)},{i:R-2,x:gm(v,C)})}else(T||C)&&E.push("translate("+T+t+C+a)}i(h,"translate");function f(b,v,T,C){b!==v?(b-v>180?v+=360:v-b>180&&(b+=360),C.push({i:T.push(l(T)+"rotate(",null,s)-2,x:gm(b,v)})):v&&T.push(l(T)+"rotate("+v+s)}i(f,"rotate");function d(b,v,T,C){b!==v?C.push({i:T.push(l(T)+"skewX(",null,s)-2,x:gm(b,v)}):v&&T.push(l(T)+"skewX("+v+s)}i(d,"skewX");function m(b,v,T,C,E,S){if(b!==T||v!==C){var R=E.push(l(E)+"scale(",null,",",null,")");S.push({i:R-4,x:gm(b,T)},{i:R-2,x:gm(v,C)})}else(T!==1||C!==1)&&E.push(l(E)+"scale("+T+","+C+")")}return i(m,"scale"),function(b,v){var T=[],C=[];return b=r(b),v=r(v),h(b.translateX,b.translateY,v.translateX,v.translateY,T,C),f(b.rotate,v.rotate,T,C),d(b.skewX,v.skewX,T,C),m(b.scaleX,b.scaleY,v.scaleX,v.scaleY,T,C),b=v=null,function(E){for(var S=-1,R=C.length,L;++S<R;)T[(L=C[S]).i]=L.x(E);return T.join("")}}}var SXe,AXe,xhr=ae(()=>{"use strict";Ste();vhr();i(whr,"interpolateTransform");SXe=whr(yhr,"px, ","px)","deg)"),AXe=whr(bhr,", ",")",")")});function Thr(r){return function(t,a){var s=r((t=Ete(t)).h,(a=Ete(a)).h),l=EA(t.c,a.c),h=EA(t.l,a.l),f=EA(t.opacity,a.opacity);return function(d){return t.h=s(d),t.c=l(d),t.l=h(d),t.opacity=f(d),t+""}}}var RXe,RRn,khr=ae(()=>{"use strict";Pz();bXe();i(Thr,"hcl");RXe=Thr(ahr),RRn=Thr(EA)});var $z=ae(()=>{"use strict";Dve();Ste();phr();EXe();xhr();vXe();khr()});function Ite(){return fO||(Shr(LRn),fO=_te.now()+Fve)}function LRn(){fO=0}function Dte(){this._call=this._time=this._next=null}function $ve(r,t,a){var s=new Dte;return s.restart(r,t,a),s}function Ahr(){Ite(),++Gz;for(var r=Pve,t;r;)(t=fO-r._time)>=0&&r._call.call(void 0,t),r=r._next;--Gz}function Chr(){fO=(Bve=_te.now())+Fve,Gz=Rte=0;try{Ahr()}finally{Gz=0,DRn(),fO=0}}function _Rn(){var r=_te.now(),t=r-Bve;t>Ehr&&(Fve-=t,Bve=r)}function DRn(){for(var r,t=Pve,a,s=1/0;t;)t._call?(s>t._time&&(s=t._time),r=t,t=t._next):(a=t._next,t._next=null,t=r?r._next=a:Pve=a);Lte=r,LXe(s)}function LXe(r){if(!Gz){Rte&&(Rte=clearTimeout(Rte));var t=r-fO;t>24?(r<1/0&&(Rte=setTimeout(Chr,r-_te.now()-Fve)),Ate&&(Ate=clearInterval(Ate))):(Ate||(Bve=_te.now(),Ate=setInterval(_Rn,Ehr)),Gz=1,Shr(Chr))}}var Gz,Rte,Ate,Ehr,Pve,Lte,Bve,fO,Fve,_te,Shr,_Xe=ae(()=>{"use strict";Gz=0,Rte=0,Ate=0,Ehr=1e3,Bve=0,fO=0,Fve=0,_te=typeof performance=="object"&&performance.now?performance:Date,Shr=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};i(Ite,"now");i(LRn,"clearNow");i(Dte,"Timer");Dte.prototype=$ve.prototype={constructor:Dte,restart:i(function(r,t,a){if(typeof r!="function")throw new TypeError("callback is not a function");a=(a==null?Ite():+a)+(t==null?0:+t),!this._next&&Lte!==this&&(Lte?Lte._next=this:Pve=this,Lte=this),this._call=r,this._time=a,LXe()},"restart"),stop:i(function(){this._call&&(this._call=null,this._time=1/0,LXe())},"stop")};i($ve,"timer");i(Ahr,"timerFlush");i(Chr,"wake");i(_Rn,"poke");i(DRn,"nap");i(LXe,"sleep")});function Mte(r,t,a){var s=new Dte;return t=t==null?0:+t,s.restart(l=>{s.stop(),r(l+t)},t,a),s}var Rhr=ae(()=>{"use strict";_Xe();i(Mte,"default")});var Gve=ae(()=>{"use strict";_Xe();Rhr()});function SA(r,t,a,s,l,h){var f=r.__transition;if(!f)r.__transition={};else if(a in f)return;NRn(r,a,{name:t,index:s,group:l,on:IRn,tween:MRn,time:h.time,delay:h.delay,duration:h.duration,ease:h.ease,timer:null,state:Dhr})}function Ote(r,t){var a=C0(r,t);if(a.state>Dhr)throw new Error("too late; already scheduled");return a}function h1(r,t){var a=C0(r,t);if(a.state>jve)throw new Error("too late; already running");return a}function C0(r,t){var a=r.__transition;if(!a||!(a=a[t]))throw new Error("transition not found");return a}function NRn(r,t,a){var s=r.__transition,l;s[t]=a,a.timer=$ve(h,0,a.time);function h(b){a.state=Lhr,a.timer.restart(f,a.delay,a.time),a.delay<=b&&f(b-a.delay)}i(h,"schedule");function f(b){var v,T,C,E;if(a.state!==Lhr)return m();for(v in s)if(E=s[v],E.name===a.name){if(E.state===jve)return Mte(f);E.state===_hr?(E.state=Nte,E.timer.stop(),E.on.call("interrupt",r,r.__data__,E.index,E.group),delete s[v]):+v<t&&(E.state=Nte,E.timer.stop(),E.on.call("cancel",r,r.__data__,E.index,E.group),delete s[v])}if(Mte(function(){a.state===jve&&(a.state=_hr,a.timer.restart(d,a.delay,a.time),d(b))}),a.state=zve,a.on.call("start",r,r.__data__,a.index,a.group),a.state===zve){for(a.state=jve,l=new Array(C=a.tween.length),v=0,T=-1;v<C;++v)(E=a.tween[v].value.call(r,r.__data__,a.index,a.group))&&(l[++T]=E);l.length=T+1}}i(f,"start");function d(b){for(var v=b<a.duration?a.ease.call(null,b/a.duration):(a.timer.restart(m),a.state=Uve,1),T=-1,C=l.length;++T<C;)l[T].call(r,v);a.state===Uve&&(a.on.call("end",r,r.__data__,a.index,a.group),m())}i(d,"tick");function m(){a.state=Nte,a.timer.stop(),delete s[t];for(var b in s)return;delete r.__transition}i(m,"stop")}var IRn,MRn,Dhr,Lhr,zve,jve,_hr,Uve,Nte,i2=ae(()=>{"use strict";hYe();Gve();IRn=uYe("start","end","cancel","interrupt"),MRn=[],Dhr=0,Lhr=1,zve=2,jve=3,_hr=4,Uve=5,Nte=6;i(SA,"default");i(Ote,"init");i(h1,"set");i(C0,"get");i(NRn,"create")});function Pte(r,t){var a=r.__transition,s,l,h=!0,f;if(a){t=t==null?null:t+"";for(f in a){if((s=a[f]).name!==t){h=!1;continue}l=s.state>zve&&s.state<Uve,s.state=Nte,s.timer.stop(),s.on.call(l?"interrupt":"cancel",r,r.__data__,s.index,s.group),delete a[f]}h&&delete r.__transition}}var Ihr=ae(()=>{"use strict";i2();i(Pte,"default")});function DXe(r){return this.each(function(){Pte(this,r)})}var Mhr=ae(()=>{"use strict";Ihr();i(DXe,"default")});function ORn(r,t){var a,s;return function(){var l=h1(this,r),h=l.tween;if(h!==a){s=a=h;for(var f=0,d=s.length;f<d;++f)if(s[f].name===t){s=s.slice(),s.splice(f,1);break}}l.tween=s}}function PRn(r,t,a){var s,l;if(typeof a!="function")throw new Error;return function(){var h=h1(this,r),f=h.tween;if(f!==s){l=(s=f).slice();for(var d={name:t,value:a},m=0,b=l.length;m<b;++m)if(l[m].name===t){l[m]=d;break}m===b&&l.push(d)}h.tween=l}}function IXe(r,t){var a=this._id;if(r+="",arguments.length<2){for(var s=C0(this.node(),a).tween,l=0,h=s.length,f;l<h;++l)if((f=s[l]).name===r)return f.value;return null}return this.each((t==null?ORn:PRn)(a,r,t))}function jz(r,t,a){var s=r._id;return r.each(function(){var l=h1(this,s);(l.value||(l.value={}))[t]=a.apply(this,arguments)}),function(l){return C0(l,s).value[t]}}var Bte=ae(()=>{"use strict";i2();i(ORn,"tweenRemove");i(PRn,"tweenFunction");i(IXe,"default");i(jz,"tweenValue")});function Fte(r,t){var a;return(typeof t=="number"?gm:t instanceof E4?hO:(a=E4(t))?(t=a,hO):Fz)(r,t)}var MXe=ae(()=>{"use strict";Pz();$z();i(Fte,"default")});function BRn(r){return function(){this.removeAttribute(r)}}function FRn(r){return function(){this.removeAttributeNS(r.space,r.local)}}function $Rn(r,t,a){var s,l=a+"",h;return function(){var f=this.getAttribute(r);return f===l?null:f===s?h:h=t(s=f,a)}}function GRn(r,t,a){var s,l=a+"",h;return function(){var f=this.getAttributeNS(r.space,r.local);return f===l?null:f===s?h:h=t(s=f,a)}}function jRn(r,t,a){var s,l,h;return function(){var f,d=a(this),m;return d==null?void this.removeAttribute(r):(f=this.getAttribute(r),m=d+"",f===m?null:f===s&&m===l?h:(l=m,h=t(s=f,d)))}}function zRn(r,t,a){var s,l,h;return function(){var f,d=a(this),m;return d==null?void this.removeAttributeNS(r.space,r.local):(f=this.getAttributeNS(r.space,r.local),m=d+"",f===m?null:f===s&&m===l?h:(l=m,h=t(s=f,d)))}}function NXe(r,t){var a=QE(r),s=a==="transform"?AXe:Fte;return this.attrTween(r,typeof t=="function"?(a.local?zRn:jRn)(a,s,jz(this,"attr."+r,t)):t==null?(a.local?FRn:BRn)(a):(a.local?GRn:$Rn)(a,s,t))}var Nhr=ae(()=>{"use strict";$z();k4();Bte();MXe();i(BRn,"attrRemove");i(FRn,"attrRemoveNS");i($Rn,"attrConstant");i(GRn,"attrConstantNS");i(jRn,"attrFunction");i(zRn,"attrFunctionNS");i(NXe,"default")});function URn(r,t){return function(a){this.setAttribute(r,t.call(this,a))}}function VRn(r,t){return function(a){this.setAttributeNS(r.space,r.local,t.call(this,a))}}function WRn(r,t){var a,s;function l(){var h=t.apply(this,arguments);return h!==s&&(a=(s=h)&&VRn(r,h)),a}return i(l,"tween"),l._value=t,l}function HRn(r,t){var a,s;function l(){var h=t.apply(this,arguments);return h!==s&&(a=(s=h)&&URn(r,h)),a}return i(l,"tween"),l._value=t,l}function OXe(r,t){var a="attr."+r;if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;var s=QE(r);return this.tween(a,(s.local?WRn:HRn)(s,t))}var Ohr=ae(()=>{"use strict";k4();i(URn,"attrInterpolate");i(VRn,"attrInterpolateNS");i(WRn,"attrTweenNS");i(HRn,"attrTween");i(OXe,"default")});function qRn(r,t){return function(){Ote(this,r).delay=+t.apply(this,arguments)}}function YRn(r,t){return t=+t,function(){Ote(this,r).delay=t}}function PXe(r){var t=this._id;return arguments.length?this.each((typeof r=="function"?qRn:YRn)(t,r)):C0(this.node(),t).delay}var Phr=ae(()=>{"use strict";i2();i(qRn,"delayFunction");i(YRn,"delayConstant");i(PXe,"default")});function XRn(r,t){return function(){h1(this,r).duration=+t.apply(this,arguments)}}function KRn(r,t){return t=+t,function(){h1(this,r).duration=t}}function BXe(r){var t=this._id;return arguments.length?this.each((typeof r=="function"?XRn:KRn)(t,r)):C0(this.node(),t).duration}var Bhr=ae(()=>{"use strict";i2();i(XRn,"durationFunction");i(KRn,"durationConstant");i(BXe,"default")});function JRn(r,t){if(typeof t!="function")throw new Error;return function(){h1(this,r).ease=t}}function FXe(r){var t=this._id;return arguments.length?this.each(JRn(t,r)):C0(this.node(),t).ease}var Fhr=ae(()=>{"use strict";i2();i(JRn,"easeConstant");i(FXe,"default")});function QRn(r,t){return function(){var a=t.apply(this,arguments);if(typeof a!="function")throw new Error;h1(this,r).ease=a}}function $Xe(r){if(typeof r!="function")throw new Error;return this.each(QRn(this._id,r))}var $hr=ae(()=>{"use strict";i2();i(QRn,"easeVarying");i($Xe,"default")});function GXe(r){typeof r!="function"&&(r=Dz(r));for(var t=this._groups,a=t.length,s=new Array(a),l=0;l<a;++l)for(var h=t[l],f=h.length,d=s[l]=[],m,b=0;b<f;++b)(m=h[b])&&r.call(m,m.__data__,b,h)&&d.push(m);return new Sb(s,this._parents,this._name,this._id)}var Ghr=ae(()=>{"use strict";k4();dO();i(GXe,"default")});function jXe(r){if(r._id!==this._id)throw new Error;for(var t=this._groups,a=r._groups,s=t.length,l=a.length,h=Math.min(s,l),f=new Array(s),d=0;d<h;++d)for(var m=t[d],b=a[d],v=m.length,T=f[d]=new Array(v),C,E=0;E<v;++E)(C=m[E]||b[E])&&(T[E]=C);for(;d<s;++d)f[d]=t[d];return new Sb(f,this._parents,this._name,this._id)}var jhr=ae(()=>{"use strict";dO();i(jXe,"default")});function ZRn(r){return(r+"").trim().split(/^|\s+/).every(function(t){var a=t.indexOf(".");return a>=0&&(t=t.slice(0,a)),!t||t==="start"})}function eLn(r,t,a){var s,l,h=ZRn(t)?Ote:h1;return function(){var f=h(this,r),d=f.on;d!==s&&(l=(s=d).copy()).on(t,a),f.on=l}}function zXe(r,t){var a=this._id;return arguments.length<2?C0(this.node(),a).on.on(r):this.each(eLn(a,r,t))}var zhr=ae(()=>{"use strict";i2();i(ZRn,"start");i(eLn,"onFunction");i(zXe,"default")});function tLn(r){return function(){var t=this.parentNode;for(var a in this.__transition)if(+a!==r)return;t&&t.removeChild(this)}}function UXe(){return this.on("end.remove",tLn(this._id))}var Uhr=ae(()=>{"use strict";i(tLn,"removeFunction");i(UXe,"default")});function VXe(r){var t=this._name,a=this._id;typeof r!="function"&&(r=HL(r));for(var s=this._groups,l=s.length,h=new Array(l),f=0;f<l;++f)for(var d=s[f],m=d.length,b=h[f]=new Array(m),v,T,C=0;C<m;++C)(v=d[C])&&(T=r.call(v,v.__data__,C,d))&&("__data__"in v&&(T.__data__=v.__data__),b[C]=T,SA(b[C],t,a,C,b,C0(v,a)));return new Sb(h,this._parents,t,a)}var Vhr=ae(()=>{"use strict";k4();dO();i2();i(VXe,"default")});function WXe(r){var t=this._name,a=this._id;typeof r!="function"&&(r=_z(r));for(var s=this._groups,l=s.length,h=[],f=[],d=0;d<l;++d)for(var m=s[d],b=m.length,v,T=0;T<b;++T)if(v=m[T]){for(var C=r.call(v,v.__data__,T,m),E,S=C0(v,a),R=0,L=C.length;R<L;++R)(E=C[R])&&SA(E,t,a,R,C,S);h.push(C),f.push(v)}return new Sb(h,f,t,a)}var Whr=ae(()=>{"use strict";k4();dO();i2();i(WXe,"default")});function HXe(){return new rLn(this._groups,this._parents)}var rLn,Hhr=ae(()=>{"use strict";k4();rLn=kA.prototype.constructor;i(HXe,"default")});function nLn(r,t){var a,s,l;return function(){var h=qL(this,r),f=(this.style.removeProperty(r),qL(this,r));return h===f?null:h===a&&f===s?l:l=t(a=h,s=f)}}function qhr(r){return function(){this.style.removeProperty(r)}}function iLn(r,t,a){var s,l=a+"",h;return function(){var f=qL(this,r);return f===l?null:f===s?h:h=t(s=f,a)}}function aLn(r,t,a){var s,l,h;return function(){var f=qL(this,r),d=a(this),m=d+"";return d==null&&(m=d=(this.style.removeProperty(r),qL(this,r))),f===m?null:f===s&&m===l?h:(l=m,h=t(s=f,d))}}function sLn(r,t){var a,s,l,h="style."+t,f="end."+h,d;return function(){var m=h1(this,r),b=m.on,v=m.value[h]==null?d||(d=qhr(t)):void 0;(b!==a||l!==v)&&(s=(a=b).copy()).on(f,l=v),m.on=s}}function qXe(r,t,a){var s=(r+="")=="transform"?SXe:Fte;return t==null?this.styleTween(r,nLn(r,s)).on("end.style."+r,qhr(r)):typeof t=="function"?this.styleTween(r,aLn(r,s,jz(this,"style."+r,t))).each(sLn(this._id,r)):this.styleTween(r,iLn(r,s,t),a).on("end.style."+r,null)}var Yhr=ae(()=>{"use strict";$z();k4();i2();Bte();MXe();i(nLn,"styleNull");i(qhr,"styleRemove");i(iLn,"styleConstant");i(aLn,"styleFunction");i(sLn,"styleMaybeRemove");i(qXe,"default")});function oLn(r,t,a){return function(s){this.style.setProperty(r,t.call(this,s),a)}}function lLn(r,t,a){var s,l;function h(){var f=t.apply(this,arguments);return f!==l&&(s=(l=f)&&oLn(r,f,a)),s}return i(h,"tween"),h._value=t,h}function YXe(r,t,a){var s="style."+(r+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(t==null)return this.tween(s,null);if(typeof t!="function")throw new Error;return this.tween(s,lLn(r,t,a??""))}var Xhr=ae(()=>{"use strict";i(oLn,"styleInterpolate");i(lLn,"styleTween");i(YXe,"default")});function cLn(r){return function(){this.textContent=r}}function uLn(r){return function(){var t=r(this);this.textContent=t??""}}function XXe(r){return this.tween("text",typeof r=="function"?uLn(jz(this,"text",r)):cLn(r==null?"":r+""))}var Khr=ae(()=>{"use strict";Bte();i(cLn,"textConstant");i(uLn,"textFunction");i(XXe,"default")});function hLn(r){return function(t){this.textContent=r.call(this,t)}}function fLn(r){var t,a;function s(){var l=r.apply(this,arguments);return l!==a&&(t=(a=l)&&hLn(l)),t}return i(s,"tween"),s._value=r,s}function KXe(r){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(r==null)return this.tween(t,null);if(typeof r!="function")throw new Error;return this.tween(t,fLn(r))}var Jhr=ae(()=>{"use strict";i(hLn,"textInterpolate");i(fLn,"textTween");i(KXe,"default")});function JXe(){for(var r=this._name,t=this._id,a=Vve(),s=this._groups,l=s.length,h=0;h<l;++h)for(var f=s[h],d=f.length,m,b=0;b<d;++b)if(m=f[b]){var v=C0(m,t);SA(m,r,a,b,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Sb(s,this._parents,r,a)}var Qhr=ae(()=>{"use strict";dO();i2();i(JXe,"default")});function QXe(){var r,t,a=this,s=a._id,l=a.size();return new Promise(function(h,f){var d={value:f},m={value:i(function(){--l===0&&h()},"value")};a.each(function(){var b=h1(this,s),v=b.on;v!==r&&(t=(r=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(m)),b.on=t}),l===0&&h()})}var Zhr=ae(()=>{"use strict";i2();i(QXe,"default")});function Sb(r,t,a,s){this._groups=r,this._parents=t,this._name=a,this._id=s}function efr(r){return kA().transition(r)}function Vve(){return++dLn}var dLn,AA,dO=ae(()=>{"use strict";k4();Nhr();Ohr();Phr();Bhr();Fhr();$hr();Ghr();jhr();zhr();Uhr();Vhr();Whr();Hhr();Yhr();Xhr();Khr();Jhr();Qhr();Bte();Zhr();dLn=0;i(Sb,"Transition");i(efr,"transition");i(Vve,"newId");AA=kA.prototype;Sb.prototype=efr.prototype={constructor:Sb,select:VXe,selectAll:WXe,selectChild:AA.selectChild,selectChildren:AA.selectChildren,filter:GXe,merge:jXe,selection:HXe,transition:JXe,call:AA.call,nodes:AA.nodes,node:AA.node,size:AA.size,empty:AA.empty,each:AA.each,on:zXe,attr:NXe,attrTween:OXe,style:qXe,styleTween:YXe,text:XXe,textTween:KXe,remove:UXe,tween:IXe,delay:PXe,duration:BXe,ease:FXe,easeVarying:$Xe,end:QXe,[Symbol.iterator]:AA[Symbol.iterator]}});function Wve(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}var tfr=ae(()=>{"use strict";i(Wve,"cubicInOut")});var ZXe=ae(()=>{"use strict";tfr()});function gLn(r,t){for(var a;!(a=r.__transition)||!(a=a[t]);)if(!(r=r.parentNode))throw new Error(`transition ${t} not found`);return a}function eKe(r){var t,a;r instanceof Sb?(t=r._id,r=r._name):(t=Vve(),(a=pLn).time=Ite(),r=r==null?null:r+"");for(var s=this._groups,l=s.length,h=0;h<l;++h)for(var f=s[h],d=f.length,m,b=0;b<d;++b)(m=f[b])&&SA(m,r,t,b,f,a||gLn(m,t));return new Sb(s,this._parents,r,t)}var pLn,rfr=ae(()=>{"use strict";dO();i2();ZXe();Gve();pLn={time:null,delay:0,duration:250,ease:Wve};i(gLn,"inherit");i(eKe,"default")});var nfr=ae(()=>{"use strict";k4();Mhr();rfr();kA.prototype.interrupt=DXe;kA.prototype.transition=eKe});var Hve=ae(()=>{"use strict";nfr()});var ifr=ae(()=>{"use strict"});var afr=ae(()=>{"use strict"});var sfr=ae(()=>{"use strict"});function ofr(r){return[+r[0],+r[1]]}function mLn(r){return[ofr(r[0]),ofr(r[1])]}function tKe(r){return{type:r}}var Waa,Haa,qaa,Yaa,Xaa,Kaa,lfr=ae(()=>{"use strict";Hve();ifr();afr();sfr();({abs:Waa,max:Haa,min:qaa}=Math);i(ofr,"number1");i(mLn,"number2");Yaa={name:"x",handles:["w","e"].map(tKe),input:i(function(r,t){return r==null?null:[[+r[0],t[0][1]],[+r[1],t[1][1]]]},"input"),output:i(function(r){return r&&[r[0][0],r[1][0]]},"output")},Xaa={name:"y",handles:["n","s"].map(tKe),input:i(function(r,t){return r==null?null:[[t[0][0],+r[0]],[t[1][0],+r[1]]]},"input"),output:i(function(r){return r&&[r[0][1],r[1][1]]},"output")},Kaa={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(tKe),input:i(function(r){return r==null?null:mLn(r)},"input"),output:i(function(r){return r},"output")};i(tKe,"type")});var cfr=ae(()=>{"use strict";lfr()});function ufr(r){this._+=r[0];for(let t=1,a=r.length;t<a;++t)this._+=arguments[t]+r[t]}function bLn(r){let t=Math.floor(r);if(!(t>=0))throw new Error(`invalid digits: ${r}`);if(t>15)return ufr;let a=10**t;return function(s){this._+=s[0];for(let l=1,h=s.length;l<h;++l)this._+=Math.round(arguments[l]*a)/a+s[l]}}function hfr(){return new gO}var rKe,nKe,pO,yLn,gO,ffr=ae(()=>{"use strict";rKe=Math.PI,nKe=2*rKe,pO=1e-6,yLn=nKe-pO;i(ufr,"append");i(bLn,"appendRound");gO=class{static{i(this,"Path")}constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ufr:bLn(t)}moveTo(t,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+a}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,a){this._append`L${this._x1=+t},${this._y1=+a}`}quadraticCurveTo(t,a,s,l){this._append`Q${+t},${+a},${this._x1=+s},${this._y1=+l}`}bezierCurveTo(t,a,s,l,h,f){this._append`C${+t},${+a},${+s},${+l},${this._x1=+h},${this._y1=+f}`}arcTo(t,a,s,l,h){if(t=+t,a=+a,s=+s,l=+l,h=+h,h<0)throw new Error(`negative radius: ${h}`);let f=this._x1,d=this._y1,m=s-t,b=l-a,v=f-t,T=d-a,C=v*v+T*T;if(this._x1===null)this._append`M${this._x1=t},${this._y1=a}`;else if(C>pO)if(!(Math.abs(T*m-b*v)>pO)||!h)this._append`L${this._x1=t},${this._y1=a}`;else{let E=s-f,S=l-d,R=m*m+b*b,L=E*E+S*S,_=Math.sqrt(R),I=Math.sqrt(C),N=h*Math.tan((rKe-Math.acos((R+C-L)/(2*_*I)))/2),B=N/I,O=N/_;Math.abs(B-1)>pO&&this._append`L${t+B*v},${a+B*T}`,this._append`A${h},${h},0,0,${+(T*E>v*S)},${this._x1=t+O*m},${this._y1=a+O*b}`}}arc(t,a,s,l,h,f){if(t=+t,a=+a,s=+s,f=!!f,s<0)throw new Error(`negative radius: ${s}`);let d=s*Math.cos(l),m=s*Math.sin(l),b=t+d,v=a+m,T=1^f,C=f?l-h:h-l;this._x1===null?this._append`M${b},${v}`:(Math.abs(this._x1-b)>pO||Math.abs(this._y1-v)>pO)&&this._append`L${b},${v}`,s&&(C<0&&(C=C%nKe+nKe),C>yLn?this._append`A${s},${s},0,1,${T},${t-d},${a-m}A${s},${s},0,1,${T},${this._x1=b},${this._y1=v}`:C>pO&&this._append`A${s},${s},0,${+(C>=rKe)},${T},${this._x1=t+s*Math.cos(h)},${this._y1=a+s*Math.sin(h)}`)}rect(t,a,s,l){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+a}h${s=+s}v${+l}h${-s}Z`}toString(){return this._}};i(hfr,"path");hfr.prototype=gO.prototype});var iKe=ae(()=>{"use strict";ffr()});var dfr=ae(()=>{"use strict"});var pfr=ae(()=>{"use strict"});var gfr=ae(()=>{"use strict"});var mfr=ae(()=>{"use strict"});var yfr=ae(()=>{"use strict"});var bfr=ae(()=>{"use strict"});var vfr=ae(()=>{"use strict"});function aKe(r){return Math.abs(r=Math.round(r))>=1e21?r.toLocaleString("en").replace(/,/g,""):r.toString(10)}function mO(r,t){if((a=(r=t?r.toExponential(t-1):r.toExponential()).indexOf("e"))<0)return null;var a,s=r.slice(0,a);return[s.length>1?s[0]+s.slice(2):s,+r.slice(a+1)]}var $te=ae(()=>{"use strict";i(aKe,"default");i(mO,"formatDecimalParts")});function S4(r){return r=mO(Math.abs(r)),r?r[1]:NaN}var Gte=ae(()=>{"use strict";$te();i(S4,"default")});function sKe(r,t){return function(a,s){for(var l=a.length,h=[],f=0,d=r[0],m=0;l>0&&d>0&&(m+d+1>s&&(d=Math.max(1,s-m)),h.push(a.substring(l-=d,l+d)),!((m+=d+1)>s));)d=r[f=(f+1)%r.length];return h.reverse().join(t)}}var wfr=ae(()=>{"use strict";i(sKe,"default")});function oKe(r){return function(t){return t.replace(/[0-9]/g,function(a){return r[+a]})}}var xfr=ae(()=>{"use strict";i(oKe,"default")});function JL(r){if(!(t=vLn.exec(r)))throw new Error("invalid format: "+r);var t;return new qve({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function qve(r){this.fill=r.fill===void 0?" ":r.fill+"",this.align=r.align===void 0?">":r.align+"",this.sign=r.sign===void 0?"-":r.sign+"",this.symbol=r.symbol===void 0?"":r.symbol+"",this.zero=!!r.zero,this.width=r.width===void 0?void 0:+r.width,this.comma=!!r.comma,this.precision=r.precision===void 0?void 0:+r.precision,this.trim=!!r.trim,this.type=r.type===void 0?"":r.type+""}var vLn,lKe=ae(()=>{"use strict";vLn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;i(JL,"formatSpecifier");JL.prototype=qve.prototype;i(qve,"FormatSpecifier");qve.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function cKe(r){e:for(var t=r.length,a=1,s=-1,l;a<t;++a)switch(r[a]){case".":s=l=a;break;case"0":s===0&&(s=a),l=a;break;default:if(!+r[a])break e;s>0&&(s=0);break}return s>0?r.slice(0,s)+r.slice(l+1):r}var Tfr=ae(()=>{"use strict";i(cKe,"default")});function hKe(r,t){var a=mO(r,t);if(!a)return r+"";var s=a[0],l=a[1],h=l-(uKe=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,f=s.length;return h===f?s:h>f?s+new Array(h-f+1).join("0"):h>0?s.slice(0,h)+"."+s.slice(h):"0."+new Array(1-h).join("0")+mO(r,Math.max(0,t+h-1))[0]}var uKe,fKe=ae(()=>{"use strict";$te();i(hKe,"default")});function Yve(r,t){var a=mO(r,t);if(!a)return r+"";var s=a[0],l=a[1];return l<0?"0."+new Array(-l).join("0")+s:s.length>l+1?s.slice(0,l+1)+"."+s.slice(l+1):s+new Array(l-s.length+2).join("0")}var kfr=ae(()=>{"use strict";$te();i(Yve,"default")});var dKe,Cfr=ae(()=>{"use strict";$te();fKe();kfr();dKe={"%":i((r,t)=>(r*100).toFixed(t),"%"),b:i(r=>Math.round(r).toString(2),"b"),c:i(r=>r+"","c"),d:aKe,e:i((r,t)=>r.toExponential(t),"e"),f:i((r,t)=>r.toFixed(t),"f"),g:i((r,t)=>r.toPrecision(t),"g"),o:i(r=>Math.round(r).toString(8),"o"),p:i((r,t)=>Yve(r*100,t),"p"),r:Yve,s:hKe,X:i(r=>Math.round(r).toString(16).toUpperCase(),"X"),x:i(r=>Math.round(r).toString(16),"x")}});function Xve(r){return r}var Efr=ae(()=>{"use strict";i(Xve,"default")});function pKe(r){var t=r.grouping===void 0||r.thousands===void 0?Xve:sKe(Sfr.call(r.grouping,Number),r.thousands+""),a=r.currency===void 0?"":r.currency[0]+"",s=r.currency===void 0?"":r.currency[1]+"",l=r.decimal===void 0?".":r.decimal+"",h=r.numerals===void 0?Xve:oKe(Sfr.call(r.numerals,String)),f=r.percent===void 0?"%":r.percent+"",d=r.minus===void 0?"\u2212":r.minus+"",m=r.nan===void 0?"NaN":r.nan+"";function b(T){T=JL(T);var C=T.fill,E=T.align,S=T.sign,R=T.symbol,L=T.zero,_=T.width,I=T.comma,N=T.precision,B=T.trim,O=T.type;O==="n"?(I=!0,O="g"):dKe[O]||(N===void 0&&(N=12),B=!0,O="g"),(L||C==="0"&&E==="=")&&(L=!0,C="0",E="=");var P=R==="$"?a:R==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",$=R==="$"?s:/[%p]/.test(O)?f:"",V=dKe[O],Y=/[defgprs%]/.test(O);N=N===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function Q(q){var W=P,H=$,re,Z,X;if(O==="c")H=V(q)+H,q="";else{q=+q;var te=q<0||1/q<0;if(q=isNaN(q)?m:V(Math.abs(q),N),B&&(q=cKe(q)),te&&+q==0&&S!=="+"&&(te=!1),W=(te?S==="("?S:d:S==="-"||S==="("?"":S)+W,H=(O==="s"?Afr[8+uKe/3]:"")+H+(te&&S==="("?")":""),Y){for(re=-1,Z=q.length;++re<Z;)if(X=q.charCodeAt(re),48>X||X>57){H=(X===46?l+q.slice(re+1):q.slice(re))+H,q=q.slice(0,re);break}}}I&&!L&&(q=t(q,1/0));var U=W.length+q.length+H.length,ne=U<_?new Array(_-U+1).join(C):"";switch(I&&L&&(q=t(ne+q,ne.length?_-H.length:1/0),ne=""),E){case"<":q=W+q+H+ne;break;case"=":q=W+ne+q+H;break;case"^":q=ne.slice(0,U=ne.length>>1)+W+q+H+ne.slice(U);break;default:q=ne+W+q+H;break}return h(q)}return i(Q,"format"),Q.toString=function(){return T+""},Q}i(b,"newFormat");function v(T,C){var E=b((T=JL(T),T.type="f",T)),S=Math.max(-8,Math.min(8,Math.floor(S4(C)/3)))*3,R=Math.pow(10,-S),L=Afr[8+S/3];return function(_){return E(R*_)+L}}return i(v,"formatPrefix"),{format:b,formatPrefix:v}}var Sfr,Afr,Rfr=ae(()=>{"use strict";Gte();wfr();xfr();lKe();Tfr();Cfr();fKe();Efr();Sfr=Array.prototype.map,Afr=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];i(pKe,"default")});function gKe(r){return Kve=pKe(r),tS=Kve.format,Jve=Kve.formatPrefix,Kve}var Kve,tS,Jve,Lfr=ae(()=>{"use strict";Rfr();gKe({thousands:",",grouping:[3],currency:["$",""]});i(gKe,"defaultLocale")});function Qve(r){return Math.max(0,-S4(Math.abs(r)))}var _fr=ae(()=>{"use strict";Gte();i(Qve,"default")});function Zve(r,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(S4(t)/3)))*3-S4(Math.abs(r)))}var Dfr=ae(()=>{"use strict";Gte();i(Zve,"default")});function e2e(r,t){return r=Math.abs(r),t=Math.abs(t)-r,Math.max(0,S4(t)-S4(r))+1}var Ifr=ae(()=>{"use strict";Gte();i(e2e,"default")});var mKe=ae(()=>{"use strict";Lfr();lKe();_fr();Dfr();Ifr()});var Mfr=ae(()=>{"use strict"});function wLn(r){var t=0,a=r.children,s=a&&a.length;if(!s)t=1;else for(;--s>=0;)t+=a[s].value;r.value=t}function yKe(){return this.eachAfter(wLn)}var Nfr=ae(()=>{"use strict";i(wLn,"count");i(yKe,"default")});function bKe(r,t){let a=-1;for(let s of this)r.call(t,s,++a,this);return this}var Ofr=ae(()=>{"use strict";i(bKe,"default")});function vKe(r,t){for(var a=this,s=[a],l,h,f=-1;a=s.pop();)if(r.call(t,a,++f,this),l=a.children)for(h=l.length-1;h>=0;--h)s.push(l[h]);return this}var Pfr=ae(()=>{"use strict";i(vKe,"default")});function wKe(r,t){for(var a=this,s=[a],l=[],h,f,d,m=-1;a=s.pop();)if(l.push(a),h=a.children)for(f=0,d=h.length;f<d;++f)s.push(h[f]);for(;a=l.pop();)r.call(t,a,++m,this);return this}var Bfr=ae(()=>{"use strict";i(wKe,"default")});function xKe(r,t){let a=-1;for(let s of this)if(r.call(t,s,++a,this))return s}var Ffr=ae(()=>{"use strict";i(xKe,"default")});function TKe(r){return this.eachAfter(function(t){for(var a=+r(t.data)||0,s=t.children,l=s&&s.length;--l>=0;)a+=s[l].value;t.value=a})}var $fr=ae(()=>{"use strict";i(TKe,"default")});function kKe(r){return this.eachBefore(function(t){t.children&&t.children.sort(r)})}var Gfr=ae(()=>{"use strict";i(kKe,"default")});function CKe(r){for(var t=this,a=xLn(t,r),s=[t];t!==a;)t=t.parent,s.push(t);for(var l=s.length;r!==a;)s.splice(l,0,r),r=r.parent;return s}function xLn(r,t){if(r===t)return r;var a=r.ancestors(),s=t.ancestors(),l=null;for(r=a.pop(),t=s.pop();r===t;)l=r,r=a.pop(),t=s.pop();return l}var jfr=ae(()=>{"use strict";i(CKe,"default");i(xLn,"leastCommonAncestor")});function EKe(){for(var r=this,t=[r];r=r.parent;)t.push(r);return t}var zfr=ae(()=>{"use strict";i(EKe,"default")});function SKe(){return Array.from(this)}var Ufr=ae(()=>{"use strict";i(SKe,"default")});function AKe(){var r=[];return this.eachBefore(function(t){t.children||r.push(t)}),r}var Vfr=ae(()=>{"use strict";i(AKe,"default")});function RKe(){var r=this,t=[];return r.each(function(a){a!==r&&t.push({source:a.parent,target:a})}),t}var Wfr=ae(()=>{"use strict";i(RKe,"default")});function*LKe(){var r=this,t,a=[r],s,l,h;do for(t=a.reverse(),a=[];r=t.pop();)if(yield r,s=r.children)for(l=0,h=s.length;l<h;++l)a.push(s[l]);while(a.length)}var Hfr=ae(()=>{"use strict";i(LKe,"default")});function zz(r,t){r instanceof Map?(r=[void 0,r],t===void 0&&(t=CLn)):t===void 0&&(t=kLn);for(var a=new jte(r),s,l=[a],h,f,d,m;s=l.pop();)if((f=t(s.data))&&(m=(f=Array.from(f)).length))for(s.children=f,d=m-1;d>=0;--d)l.push(h=f[d]=new jte(f[d])),h.parent=s,h.depth=s.depth+1;return a.eachBefore(SLn)}function TLn(){return zz(this).eachBefore(ELn)}function kLn(r){return r.children}function CLn(r){return Array.isArray(r)?r[1]:null}function ELn(r){r.data.value!==void 0&&(r.value=r.data.value),r.data=r.data.data}function SLn(r){var t=0;do r.height=t;while((r=r.parent)&&r.height<++t)}function jte(r){this.data=r,this.depth=this.height=0,this.parent=null}var qfr=ae(()=>{"use strict";Nfr();Ofr();Pfr();Bfr();Ffr();$fr();Gfr();jfr();zfr();Ufr();Vfr();Wfr();Hfr();i(zz,"hierarchy");i(TLn,"node_copy");i(kLn,"objectChildren");i(CLn,"mapChildren");i(ELn,"copyData");i(SLn,"computeHeight");i(jte,"Node");jte.prototype=zz.prototype={constructor:jte,count:yKe,each:bKe,eachAfter:wKe,eachBefore:vKe,find:xKe,sum:TKe,sort:kKe,path:CKe,ancestors:EKe,descendants:SKe,leaves:AKe,links:RKe,copy:TLn,[Symbol.iterator]:LKe}});function Yfr(r){if(typeof r!="function")throw new Error;return r}var Xfr=ae(()=>{"use strict";i(Yfr,"required")});function Uz(){return 0}function yO(r){return function(){return r}}var Kfr=ae(()=>{"use strict";i(Uz,"constantZero");i(yO,"default")});function _Ke(r){r.x0=Math.round(r.x0),r.y0=Math.round(r.y0),r.x1=Math.round(r.x1),r.y1=Math.round(r.y1)}var Jfr=ae(()=>{"use strict";i(_Ke,"default")});function DKe(r,t,a,s,l){for(var h=r.children,f,d=-1,m=h.length,b=r.value&&(s-t)/r.value;++d<m;)f=h[d],f.y0=a,f.y1=l,f.x0=t,f.x1=t+=f.value*b}var Qfr=ae(()=>{"use strict";i(DKe,"default")});function IKe(r,t,a,s,l){for(var h=r.children,f,d=-1,m=h.length,b=r.value&&(l-a)/r.value;++d<m;)f=h[d],f.x0=t,f.x1=s,f.y0=a,f.y1=a+=f.value*b}var Zfr=ae(()=>{"use strict";i(IKe,"default")});function RLn(r,t,a,s,l,h){for(var f=[],d=t.children,m,b,v=0,T=0,C=d.length,E,S,R=t.value,L,_,I,N,B,O,P;v<C;){E=l-a,S=h-s;do L=d[T++].value;while(!L&&T<C);for(_=I=L,O=Math.max(S/E,E/S)/(R*r),P=L*L*O,B=Math.max(I/P,P/_);T<C;++T){if(L+=b=d[T].value,b<_&&(_=b),b>I&&(I=b),P=L*L*O,N=Math.max(I/P,P/_),N>B){L-=b;break}B=N}f.push(m={value:L,dice:E<S,children:d.slice(v,T)}),m.dice?DKe(m,a,s,l,R?s+=S*L/R:h):IKe(m,a,s,R?a+=E*L/R:l,h),R-=L,v=T}return f}var ALn,edr,tdr=ae(()=>{"use strict";Qfr();Zfr();ALn=(1+Math.sqrt(5))/2;i(RLn,"squarifyRatio");edr=i((function r(t){function a(s,l,h,f,d){RLn(t,s,l,h,f,d)}return i(a,"squarify"),a.ratio=function(s){return r((s=+s)>1?s:1)},a}),"custom")(ALn)});function t2e(){var r=edr,t=!1,a=1,s=1,l=[0],h=Uz,f=Uz,d=Uz,m=Uz,b=Uz;function v(C){return C.x0=C.y0=0,C.x1=a,C.y1=s,C.eachBefore(T),l=[0],t&&C.eachBefore(_Ke),C}i(v,"treemap");function T(C){var E=l[C.depth],S=C.x0+E,R=C.y0+E,L=C.x1-E,_=C.y1-E;L<S&&(S=L=(S+L)/2),_<R&&(R=_=(R+_)/2),C.x0=S,C.y0=R,C.x1=L,C.y1=_,C.children&&(E=l[C.depth+1]=h(C)/2,S+=b(C)-E,R+=f(C)-E,L-=d(C)-E,_-=m(C)-E,L<S&&(S=L=(S+L)/2),_<R&&(R=_=(R+_)/2),r(C,S,R,L,_))}return i(T,"positionNode"),v.round=function(C){return arguments.length?(t=!!C,v):t},v.size=function(C){return arguments.length?(a=+C[0],s=+C[1],v):[a,s]},v.tile=function(C){return arguments.length?(r=Yfr(C),v):r},v.padding=function(C){return arguments.length?v.paddingInner(C).paddingOuter(C):v.paddingInner()},v.paddingInner=function(C){return arguments.length?(h=typeof C=="function"?C:yO(+C),v):h},v.paddingOuter=function(C){return arguments.length?v.paddingTop(C).paddingRight(C).paddingBottom(C).paddingLeft(C):v.paddingTop()},v.paddingTop=function(C){return arguments.length?(f=typeof C=="function"?C:yO(+C),v):f},v.paddingRight=function(C){return arguments.length?(d=typeof C=="function"?C:yO(+C),v):d},v.paddingBottom=function(C){return arguments.length?(m=typeof C=="function"?C:yO(+C),v):m},v.paddingLeft=function(C){return arguments.length?(b=typeof C=="function"?C:yO(+C),v):b},v}var rdr=ae(()=>{"use strict";Jfr();tdr();Xfr();Kfr();i(t2e,"default")});var ndr=ae(()=>{"use strict";qfr();rdr()});var idr=ae(()=>{"use strict"});var adr=ae(()=>{"use strict"});function QL(r,t){switch(arguments.length){case 0:break;case 1:this.range(r);break;default:this.range(t).domain(r);break}return this}var zte=ae(()=>{"use strict";i(QL,"initRange")});function Kw(){var r=new Rz,t=[],a=[],s=MKe;function l(h){let f=r.get(h);if(f===void 0){if(s!==MKe)return s;r.set(h,f=t.push(h)-1)}return a[f%a.length]}return i(l,"scale"),l.domain=function(h){if(!arguments.length)return t.slice();t=[],r=new Rz;for(let f of h)r.has(f)||r.set(f,t.push(f)-1);return l},l.range=function(h){return arguments.length?(a=Array.from(h),l):a.slice()},l.unknown=function(h){return arguments.length?(s=h,l):s},l.copy=function(){return Kw(t,a).unknown(s)},QL.apply(l,arguments),l}var MKe,NKe=ae(()=>{"use strict";WL();zte();MKe=Symbol("implicit");i(Kw,"ordinal")});function Vz(){var r=Kw().unknown(void 0),t=r.domain,a=r.range,s=0,l=1,h,f,d=!1,m=0,b=0,v=.5;delete r.unknown;function T(){var C=t().length,E=l<s,S=E?l:s,R=E?s:l;h=(R-S)/Math.max(1,C-m+b*2),d&&(h=Math.floor(h)),S+=(R-S-h*(C-m))*v,f=h*(1-m),d&&(S=Math.round(S),f=Math.round(f));var L=bve(C).map(function(_){return S+h*_});return a(E?L.reverse():L)}return i(T,"rescale"),r.domain=function(C){return arguments.length?(t(C),T()):t()},r.range=function(C){return arguments.length?([s,l]=C,s=+s,l=+l,T()):[s,l]},r.rangeRound=function(C){return[s,l]=C,s=+s,l=+l,d=!0,T()},r.bandwidth=function(){return f},r.step=function(){return h},r.round=function(C){return arguments.length?(d=!!C,T()):d},r.padding=function(C){return arguments.length?(m=Math.min(1,b=+C),T()):m},r.paddingInner=function(C){return arguments.length?(m=Math.min(1,C),T()):m},r.paddingOuter=function(C){return arguments.length?(b=+C,T()):b},r.align=function(C){return arguments.length?(v=Math.max(0,Math.min(1,C)),T()):v},r.copy=function(){return Vz(t(),[s,l]).round(d).paddingInner(m).paddingOuter(b).align(v)},QL.apply(T(),arguments)}var sdr=ae(()=>{"use strict";WL();zte();NKe();i(Vz,"band")});function OKe(r){return function(){return r}}var odr=ae(()=>{"use strict";i(OKe,"constants")});function PKe(r){return+r}var ldr=ae(()=>{"use strict";i(PKe,"number")});function Wz(r){return r}function BKe(r,t){return(t-=r=+r)?function(a){return(a-r)/t}:OKe(isNaN(t)?NaN:.5)}function LLn(r,t){var a;return r>t&&(a=r,r=t,t=a),function(s){return Math.max(r,Math.min(t,s))}}function _Ln(r,t,a){var s=r[0],l=r[1],h=t[0],f=t[1];return l<s?(s=BKe(l,s),h=a(f,h)):(s=BKe(s,l),h=a(h,f)),function(d){return h(s(d))}}function DLn(r,t,a){var s=Math.min(r.length,t.length)-1,l=new Array(s),h=new Array(s),f=-1;for(r[s]<r[0]&&(r=r.slice().reverse(),t=t.slice().reverse());++f<s;)l[f]=BKe(r[f],r[f+1]),h[f]=a(t[f],t[f+1]);return function(d){var m=iYe(r,d,1,s)-1;return h[m](l[m](d))}}function r2e(r,t){return t.domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown())}function ILn(){var r=cdr,t=cdr,a=KL,s,l,h,f=Wz,d,m,b;function v(){var C=Math.min(r.length,t.length);return f!==Wz&&(f=LLn(r[0],r[C-1])),d=C>2?DLn:_Ln,m=b=null,T}i(v,"rescale");function T(C){return C==null||isNaN(C=+C)?h:(m||(m=d(r.map(s),t,a)))(s(f(C)))}return i(T,"scale"),T.invert=function(C){return f(l((b||(b=d(t,r.map(s),gm)))(C)))},T.domain=function(C){return arguments.length?(r=Array.from(C,PKe),v()):r.slice()},T.range=function(C){return arguments.length?(t=Array.from(C),v()):t.slice()},T.rangeRound=function(C){return t=Array.from(C),a=Ive,v()},T.clamp=function(C){return arguments.length?(f=C?!0:Wz,v()):f!==Wz},T.interpolate=function(C){return arguments.length?(a=C,v()):a},T.unknown=function(C){return arguments.length?(h=C,T):h},function(C,E){return s=C,l=E,v()}}function Ute(){return ILn()(Wz,Wz)}var cdr,FKe=ae(()=>{"use strict";WL();$z();odr();ldr();cdr=[0,1];i(Wz,"identity");i(BKe,"normalize");i(LLn,"clamper");i(_Ln,"bimap");i(DLn,"polymap");i(r2e,"copy");i(ILn,"transformer");i(Ute,"continuous")});function $Ke(r,t,a,s){var l=Lz(r,t,a),h;switch(s=JL(s??",f"),s.type){case"s":{var f=Math.max(Math.abs(r),Math.abs(t));return s.precision==null&&!isNaN(h=Zve(l,f))&&(s.precision=h),Jve(s,f)}case"":case"e":case"g":case"p":case"r":{s.precision==null&&!isNaN(h=e2e(l,Math.max(Math.abs(r),Math.abs(t))))&&(s.precision=h-(s.type==="e"));break}case"f":case"%":{s.precision==null&&!isNaN(h=Qve(l))&&(s.precision=h-(s.type==="%")*2);break}}return tS(s)}var udr=ae(()=>{"use strict";WL();mKe();i($Ke,"tickFormat")});function MLn(r){var t=r.domain;return r.ticks=function(a){var s=t();return gve(s[0],s[s.length-1],a??10)},r.tickFormat=function(a,s){var l=t();return $Ke(l[0],l[l.length-1],a??10,s)},r.nice=function(a){a==null&&(a=10);var s=t(),l=0,h=s.length-1,f=s[l],d=s[h],m,b,v=10;for(d<f&&(b=f,f=d,d=b,b=l,l=h,h=b);v-- >0;){if(b=yte(f,d,a),b===m)return s[l]=f,s[h]=d,t(s);if(b>0)f=Math.floor(f/b)*b,d=Math.ceil(d/b)*b;else if(b<0)f=Math.ceil(f*b)/b,d=Math.floor(d*b)/b;else break;m=b}return r},r}function A4(){var r=Ute();return r.copy=function(){return r2e(r,A4())},QL.apply(r,arguments),MLn(r)}var hdr=ae(()=>{"use strict";WL();FKe();zte();udr();i(MLn,"linearish");i(A4,"linear")});function GKe(r,t){r=r.slice();var a=0,s=r.length-1,l=r[a],h=r[s],f;return h<l&&(f=a,a=s,s=f,f=l,l=h,h=f),r[a]=t.floor(l),r[s]=t.ceil(h),r}var fdr=ae(()=>{"use strict";i(GKe,"nice")});function Gh(r,t,a,s){function l(h){return r(h=arguments.length===0?new Date:new Date(+h)),h}return i(l,"interval"),l.floor=h=>(r(h=new Date(+h)),h),l.ceil=h=>(r(h=new Date(h-1)),t(h,1),r(h),h),l.round=h=>{let f=l(h),d=l.ceil(h);return h-f<d-h?f:d},l.offset=(h,f)=>(t(h=new Date(+h),f==null?1:Math.floor(f)),h),l.range=(h,f,d)=>{let m=[];if(h=l.ceil(h),d=d==null?1:Math.floor(d),!(h<f)||!(d>0))return m;let b;do m.push(b=new Date(+h)),t(h,d),r(h);while(b<h&&h<f);return m},l.filter=h=>Gh(f=>{if(f>=f)for(;r(f),!h(f);)f.setTime(f-1)},(f,d)=>{if(f>=f)if(d<0)for(;++d<=0;)for(;t(f,-1),!h(f););else for(;--d>=0;)for(;t(f,1),!h(f););}),a&&(l.count=(h,f)=>(jKe.setTime(+h),zKe.setTime(+f),r(jKe),r(zKe),Math.floor(a(jKe,zKe))),l.every=h=>(h=Math.floor(h),!isFinite(h)||!(h>0)?null:h>1?l.filter(s?f=>s(f)%h===0:f=>l.count(0,f)%h===0):l)),l}var jKe,zKe,RA=ae(()=>{"use strict";jKe=new Date,zKe=new Date;i(Gh,"timeInterval")});var rS,ddr,UKe=ae(()=>{"use strict";RA();rS=Gh(()=>{},(r,t)=>{r.setTime(+r+t)},(r,t)=>t-r);rS.every=r=>(r=Math.floor(r),!isFinite(r)||!(r>0)?null:r>1?Gh(t=>{t.setTime(Math.floor(t/r)*r)},(t,a)=>{t.setTime(+t+a*r)},(t,a)=>(a-t)/r):rS);ddr=rS.range});var Jw,pdr,VKe=ae(()=>{"use strict";RA();Jw=Gh(r=>{r.setTime(r-r.getMilliseconds())},(r,t)=>{r.setTime(+r+t*1e3)},(r,t)=>(t-r)/1e3,r=>r.getUTCSeconds()),pdr=Jw.range});var LA,NLn,n2e,OLn,WKe=ae(()=>{"use strict";RA();LA=Gh(r=>{r.setTime(r-r.getMilliseconds()-r.getSeconds()*1e3)},(r,t)=>{r.setTime(+r+t*6e4)},(r,t)=>(t-r)/6e4,r=>r.getMinutes()),NLn=LA.range,n2e=Gh(r=>{r.setUTCSeconds(0,0)},(r,t)=>{r.setTime(+r+t*6e4)},(r,t)=>(t-r)/6e4,r=>r.getUTCMinutes()),OLn=n2e.range});var _A,PLn,i2e,BLn,HKe=ae(()=>{"use strict";RA();_A=Gh(r=>{r.setTime(r-r.getMilliseconds()-r.getSeconds()*1e3-r.getMinutes()*6e4)},(r,t)=>{r.setTime(+r+t*36e5)},(r,t)=>(t-r)/36e5,r=>r.getHours()),PLn=_A.range,i2e=Gh(r=>{r.setUTCMinutes(0,0,0)},(r,t)=>{r.setTime(+r+t*36e5)},(r,t)=>(t-r)/36e5,r=>r.getUTCHours()),BLn=i2e.range});var $T,FLn,Wte,$Ln,a2e,GLn,qKe=ae(()=>{"use strict";RA();$T=Gh(r=>r.setHours(0,0,0,0),(r,t)=>r.setDate(r.getDate()+t),(r,t)=>(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*6e4)/864e5,r=>r.getDate()-1),FLn=$T.range,Wte=Gh(r=>{r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCDate(r.getUTCDate()+t)},(r,t)=>(t-r)/864e5,r=>r.getUTCDate()-1),$Ln=Wte.range,a2e=Gh(r=>{r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCDate(r.getUTCDate()+t)},(r,t)=>(t-r)/864e5,r=>Math.floor(r/864e5)),GLn=a2e.range});function wO(r){return Gh(t=>{t.setDate(t.getDate()-(t.getDay()+7-r)%7),t.setHours(0,0,0,0)},(t,a)=>{t.setDate(t.getDate()+a*7)},(t,a)=>(a-t-(a.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}function xO(r){return Gh(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-r)%7),t.setUTCHours(0,0,0,0)},(t,a)=>{t.setUTCDate(t.getUTCDate()+a*7)},(t,a)=>(a-t)/6048e5)}var R4,ZL,s2e,o2e,iS,l2e,c2e,mdr,jLn,zLn,ULn,VLn,WLn,HLn,TO,Hz,ydr,bdr,e_,vdr,wdr,xdr,qLn,YLn,XLn,KLn,JLn,QLn,YKe=ae(()=>{"use strict";RA();i(wO,"timeWeekday");R4=wO(0),ZL=wO(1),s2e=wO(2),o2e=wO(3),iS=wO(4),l2e=wO(5),c2e=wO(6),mdr=R4.range,jLn=ZL.range,zLn=s2e.range,ULn=o2e.range,VLn=iS.range,WLn=l2e.range,HLn=c2e.range;i(xO,"utcWeekday");TO=xO(0),Hz=xO(1),ydr=xO(2),bdr=xO(3),e_=xO(4),vdr=xO(5),wdr=xO(6),xdr=TO.range,qLn=Hz.range,YLn=ydr.range,XLn=bdr.range,KLn=e_.range,JLn=vdr.range,QLn=wdr.range});var DA,ZLn,u2e,e_n,XKe=ae(()=>{"use strict";RA();DA=Gh(r=>{r.setDate(1),r.setHours(0,0,0,0)},(r,t)=>{r.setMonth(r.getMonth()+t)},(r,t)=>t.getMonth()-r.getMonth()+(t.getFullYear()-r.getFullYear())*12,r=>r.getMonth()),ZLn=DA.range,u2e=Gh(r=>{r.setUTCDate(1),r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCMonth(r.getUTCMonth()+t)},(r,t)=>t.getUTCMonth()-r.getUTCMonth()+(t.getUTCFullYear()-r.getUTCFullYear())*12,r=>r.getUTCMonth()),e_n=u2e.range});var Qw,t_n,L4,r_n,KKe=ae(()=>{"use strict";RA();Qw=Gh(r=>{r.setMonth(0,1),r.setHours(0,0,0,0)},(r,t)=>{r.setFullYear(r.getFullYear()+t)},(r,t)=>t.getFullYear()-r.getFullYear(),r=>r.getFullYear());Qw.every=r=>!isFinite(r=Math.floor(r))||!(r>0)?null:Gh(t=>{t.setFullYear(Math.floor(t.getFullYear()/r)*r),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,a)=>{t.setFullYear(t.getFullYear()+a*r)});t_n=Qw.range,L4=Gh(r=>{r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCFullYear(r.getUTCFullYear()+t)},(r,t)=>t.getUTCFullYear()-r.getUTCFullYear(),r=>r.getUTCFullYear());L4.every=r=>!isFinite(r=Math.floor(r))||!(r>0)?null:Gh(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/r)*r),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,a)=>{t.setUTCFullYear(t.getUTCFullYear()+a*r)});r_n=L4.range});function kdr(r,t,a,s,l,h){let f=[[Jw,1,1e3],[Jw,5,5*1e3],[Jw,15,15*1e3],[Jw,30,30*1e3],[h,1,6e4],[h,5,5*6e4],[h,15,15*6e4],[h,30,30*6e4],[l,1,36e5],[l,3,3*36e5],[l,6,6*36e5],[l,12,12*36e5],[s,1,864e5],[s,2,2*864e5],[a,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[r,1,31536e6]];function d(b,v,T){let C=v<b;C&&([b,v]=[v,b]);let E=T&&typeof T.range=="function"?T:m(b,v,T),S=E?E.range(b,+v+1):[];return C?S.reverse():S}i(d,"ticks");function m(b,v,T){let C=Math.abs(v-b)/T,E=lO(([,,L])=>L).right(f,C);if(E===f.length)return r.every(Lz(b/31536e6,v/31536e6,T));if(E===0)return rS.every(Math.max(Lz(b,v,T),1));let[S,R]=f[C/f[E-1][2]<f[E][2]/C?E-1:E];return S.every(R)}return i(m,"tickInterval"),[d,m]}var i_n,a_n,JKe,QKe,Cdr=ae(()=>{"use strict";WL();UKe();VKe();WKe();HKe();qKe();YKe();XKe();KKe();i(kdr,"ticker");[i_n,a_n]=kdr(L4,u2e,TO,a2e,i2e,n2e),[JKe,QKe]=kdr(Qw,DA,R4,$T,_A,LA)});var h2e=ae(()=>{"use strict";UKe();VKe();WKe();HKe();qKe();YKe();XKe();KKe();Cdr()});function ZKe(r){if(0<=r.y&&r.y<100){var t=new Date(-1,r.m,r.d,r.H,r.M,r.S,r.L);return t.setFullYear(r.y),t}return new Date(r.y,r.m,r.d,r.H,r.M,r.S,r.L)}function eJe(r){if(0<=r.y&&r.y<100){var t=new Date(Date.UTC(-1,r.m,r.d,r.H,r.M,r.S,r.L));return t.setUTCFullYear(r.y),t}return new Date(Date.UTC(r.y,r.m,r.d,r.H,r.M,r.S,r.L))}function Hte(r,t,a){return{y:r,m:t,d:a,H:0,M:0,S:0,L:0}}function tJe(r){var t=r.dateTime,a=r.date,s=r.time,l=r.periods,h=r.days,f=r.shortDays,d=r.months,m=r.shortMonths,b=qte(l),v=Yte(l),T=qte(h),C=Yte(h),E=qte(f),S=Yte(f),R=qte(d),L=Yte(d),_=qte(m),I=Yte(m),N={a:te,A:U,b:ne,B:se,c:null,d:_dr,e:_dr,f:R_n,g:F_n,G:G_n,H:E_n,I:S_n,j:A_n,L:Odr,m:L_n,M:__n,p:he,q:le,Q:Mdr,s:Ndr,S:D_n,u:I_n,U:M_n,V:N_n,w:O_n,W:P_n,x:null,X:null,y:B_n,Y:$_n,Z:j_n,"%":Idr},B={a:pe,A:ge,b:we,B:Ae,c:null,d:Ddr,e:Ddr,f:W_n,g:tDn,G:nDn,H:z_n,I:U_n,j:V_n,L:Bdr,m:H_n,M:q_n,p:ve,q:Ie,Q:Mdr,s:Ndr,S:Y_n,u:X_n,U:K_n,V:J_n,w:Q_n,W:Z_n,x:null,X:null,y:eDn,Y:rDn,Z:iDn,"%":Idr},O={a:Q,A:q,b:W,B:H,c:re,d:Rdr,e:Rdr,f:x_n,g:Adr,G:Sdr,H:Ldr,I:Ldr,j:y_n,L:w_n,m:m_n,M:b_n,p:Y,q:g_n,Q:k_n,s:C_n,S:v_n,u:u_n,U:h_n,V:f_n,w:c_n,W:d_n,x:Z,X,y:Adr,Y:Sdr,Z:p_n,"%":T_n};N.x=P(a,N),N.X=P(s,N),N.c=P(t,N),B.x=P(a,B),B.X=P(s,B),B.c=P(t,B);function P(De,Be){return function(Fe){var ze=[],vt=-1,lt=0,Ft=De.length,pr,tr,Mt;for(Fe instanceof Date||(Fe=new Date(+Fe));++vt<Ft;)De.charCodeAt(vt)===37&&(ze.push(De.slice(lt,vt)),(tr=Edr[pr=De.charAt(++vt)])!=null?pr=De.charAt(++vt):tr=pr==="e"?" ":"0",(Mt=Be[pr])&&(pr=Mt(Fe,tr)),ze.push(pr),lt=vt+1);return ze.push(De.slice(lt,vt)),ze.join("")}}i(P,"newFormat");function $(De,Be){return function(Fe){var ze=Hte(1900,void 0,1),vt=V(ze,De,Fe+="",0),lt,Ft;if(vt!=Fe.length)return null;if("Q"in ze)return new Date(ze.Q);if("s"in ze)return new Date(ze.s*1e3+("L"in ze?ze.L:0));if(Be&&!("Z"in ze)&&(ze.Z=0),"p"in ze&&(ze.H=ze.H%12+ze.p*12),ze.m===void 0&&(ze.m="q"in ze?ze.q:0),"V"in ze){if(ze.V<1||ze.V>53)return null;"w"in ze||(ze.w=1),"Z"in ze?(lt=eJe(Hte(ze.y,0,1)),Ft=lt.getUTCDay(),lt=Ft>4||Ft===0?Hz.ceil(lt):Hz(lt),lt=Wte.offset(lt,(ze.V-1)*7),ze.y=lt.getUTCFullYear(),ze.m=lt.getUTCMonth(),ze.d=lt.getUTCDate()+(ze.w+6)%7):(lt=ZKe(Hte(ze.y,0,1)),Ft=lt.getDay(),lt=Ft>4||Ft===0?ZL.ceil(lt):ZL(lt),lt=$T.offset(lt,(ze.V-1)*7),ze.y=lt.getFullYear(),ze.m=lt.getMonth(),ze.d=lt.getDate()+(ze.w+6)%7)}else("W"in ze||"U"in ze)&&("w"in ze||(ze.w="u"in ze?ze.u%7:"W"in ze?1:0),Ft="Z"in ze?eJe(Hte(ze.y,0,1)).getUTCDay():ZKe(Hte(ze.y,0,1)).getDay(),ze.m=0,ze.d="W"in ze?(ze.w+6)%7+ze.W*7-(Ft+5)%7:ze.w+ze.U*7-(Ft+6)%7);return"Z"in ze?(ze.H+=ze.Z/100|0,ze.M+=ze.Z%100,eJe(ze)):ZKe(ze)}}i($,"newParse");function V(De,Be,Fe,ze){for(var vt=0,lt=Be.length,Ft=Fe.length,pr,tr;vt<lt;){if(ze>=Ft)return-1;if(pr=Be.charCodeAt(vt++),pr===37){if(pr=Be.charAt(vt++),tr=O[pr in Edr?Be.charAt(vt++):pr],!tr||(ze=tr(De,Fe,ze))<0)return-1}else if(pr!=Fe.charCodeAt(ze++))return-1}return ze}i(V,"parseSpecifier");function Y(De,Be,Fe){var ze=b.exec(Be.slice(Fe));return ze?(De.p=v.get(ze[0].toLowerCase()),Fe+ze[0].length):-1}i(Y,"parsePeriod");function Q(De,Be,Fe){var ze=E.exec(Be.slice(Fe));return ze?(De.w=S.get(ze[0].toLowerCase()),Fe+ze[0].length):-1}i(Q,"parseShortWeekday");function q(De,Be,Fe){var ze=T.exec(Be.slice(Fe));return ze?(De.w=C.get(ze[0].toLowerCase()),Fe+ze[0].length):-1}i(q,"parseWeekday");function W(De,Be,Fe){var ze=_.exec(Be.slice(Fe));return ze?(De.m=I.get(ze[0].toLowerCase()),Fe+ze[0].length):-1}i(W,"parseShortMonth");function H(De,Be,Fe){var ze=R.exec(Be.slice(Fe));return ze?(De.m=L.get(ze[0].toLowerCase()),Fe+ze[0].length):-1}i(H,"parseMonth");function re(De,Be,Fe){return V(De,t,Be,Fe)}i(re,"parseLocaleDateTime");function Z(De,Be,Fe){return V(De,a,Be,Fe)}i(Z,"parseLocaleDate");function X(De,Be,Fe){return V(De,s,Be,Fe)}i(X,"parseLocaleTime");function te(De){return f[De.getDay()]}i(te,"formatShortWeekday");function U(De){return h[De.getDay()]}i(U,"formatWeekday");function ne(De){return m[De.getMonth()]}i(ne,"formatShortMonth");function se(De){return d[De.getMonth()]}i(se,"formatMonth");function he(De){return l[+(De.getHours()>=12)]}i(he,"formatPeriod");function le(De){return 1+~~(De.getMonth()/3)}i(le,"formatQuarter");function pe(De){return f[De.getUTCDay()]}i(pe,"formatUTCShortWeekday");function ge(De){return h[De.getUTCDay()]}i(ge,"formatUTCWeekday");function we(De){return m[De.getUTCMonth()]}i(we,"formatUTCShortMonth");function Ae(De){return d[De.getUTCMonth()]}i(Ae,"formatUTCMonth");function ve(De){return l[+(De.getUTCHours()>=12)]}i(ve,"formatUTCPeriod");function Ie(De){return 1+~~(De.getUTCMonth()/3)}return i(Ie,"formatUTCQuarter"),{format:i(function(De){var Be=P(De+="",N);return Be.toString=function(){return De},Be},"format"),parse:i(function(De){var Be=$(De+="",!1);return Be.toString=function(){return De},Be},"parse"),utcFormat:i(function(De){var Be=P(De+="",B);return Be.toString=function(){return De},Be},"utcFormat"),utcParse:i(function(De){var Be=$(De+="",!0);return Be.toString=function(){return De},Be},"utcParse")}}function lu(r,t,a){var s=r<0?"-":"",l=(s?-r:r)+"",h=l.length;return s+(h<a?new Array(a-h+1).join(t)+l:l)}function l_n(r){return r.replace(o_n,"\\$&")}function qte(r){return new RegExp("^(?:"+r.map(l_n).join("|")+")","i")}function Yte(r){return new Map(r.map((t,a)=>[t.toLowerCase(),a]))}function c_n(r,t,a){var s=mm.exec(t.slice(a,a+1));return s?(r.w=+s[0],a+s[0].length):-1}function u_n(r,t,a){var s=mm.exec(t.slice(a,a+1));return s?(r.u=+s[0],a+s[0].length):-1}function h_n(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.U=+s[0],a+s[0].length):-1}function f_n(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.V=+s[0],a+s[0].length):-1}function d_n(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.W=+s[0],a+s[0].length):-1}function Sdr(r,t,a){var s=mm.exec(t.slice(a,a+4));return s?(r.y=+s[0],a+s[0].length):-1}function Adr(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.y=+s[0]+(+s[0]>68?1900:2e3),a+s[0].length):-1}function p_n(r,t,a){var s=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(a,a+6));return s?(r.Z=s[1]?0:-(s[2]+(s[3]||"00")),a+s[0].length):-1}function g_n(r,t,a){var s=mm.exec(t.slice(a,a+1));return s?(r.q=s[0]*3-3,a+s[0].length):-1}function m_n(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.m=s[0]-1,a+s[0].length):-1}function Rdr(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.d=+s[0],a+s[0].length):-1}function y_n(r,t,a){var s=mm.exec(t.slice(a,a+3));return s?(r.m=0,r.d=+s[0],a+s[0].length):-1}function Ldr(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.H=+s[0],a+s[0].length):-1}function b_n(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.M=+s[0],a+s[0].length):-1}function v_n(r,t,a){var s=mm.exec(t.slice(a,a+2));return s?(r.S=+s[0],a+s[0].length):-1}function w_n(r,t,a){var s=mm.exec(t.slice(a,a+3));return s?(r.L=+s[0],a+s[0].length):-1}function x_n(r,t,a){var s=mm.exec(t.slice(a,a+6));return s?(r.L=Math.floor(s[0]/1e3),a+s[0].length):-1}function T_n(r,t,a){var s=s_n.exec(t.slice(a,a+1));return s?a+s[0].length:-1}function k_n(r,t,a){var s=mm.exec(t.slice(a));return s?(r.Q=+s[0],a+s[0].length):-1}function C_n(r,t,a){var s=mm.exec(t.slice(a));return s?(r.s=+s[0],a+s[0].length):-1}function _dr(r,t){return lu(r.getDate(),t,2)}function E_n(r,t){return lu(r.getHours(),t,2)}function S_n(r,t){return lu(r.getHours()%12||12,t,2)}function A_n(r,t){return lu(1+$T.count(Qw(r),r),t,3)}function Odr(r,t){return lu(r.getMilliseconds(),t,3)}function R_n(r,t){return Odr(r,t)+"000"}function L_n(r,t){return lu(r.getMonth()+1,t,2)}function __n(r,t){return lu(r.getMinutes(),t,2)}function D_n(r,t){return lu(r.getSeconds(),t,2)}function I_n(r){var t=r.getDay();return t===0?7:t}function M_n(r,t){return lu(R4.count(Qw(r)-1,r),t,2)}function Pdr(r){var t=r.getDay();return t>=4||t===0?iS(r):iS.ceil(r)}function N_n(r,t){return r=Pdr(r),lu(iS.count(Qw(r),r)+(Qw(r).getDay()===4),t,2)}function O_n(r){return r.getDay()}function P_n(r,t){return lu(ZL.count(Qw(r)-1,r),t,2)}function B_n(r,t){return lu(r.getFullYear()%100,t,2)}function F_n(r,t){return r=Pdr(r),lu(r.getFullYear()%100,t,2)}function $_n(r,t){return lu(r.getFullYear()%1e4,t,4)}function G_n(r,t){var a=r.getDay();return r=a>=4||a===0?iS(r):iS.ceil(r),lu(r.getFullYear()%1e4,t,4)}function j_n(r){var t=r.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lu(t/60|0,"0",2)+lu(t%60,"0",2)}function Ddr(r,t){return lu(r.getUTCDate(),t,2)}function z_n(r,t){return lu(r.getUTCHours(),t,2)}function U_n(r,t){return lu(r.getUTCHours()%12||12,t,2)}function V_n(r,t){return lu(1+Wte.count(L4(r),r),t,3)}function Bdr(r,t){return lu(r.getUTCMilliseconds(),t,3)}function W_n(r,t){return Bdr(r,t)+"000"}function H_n(r,t){return lu(r.getUTCMonth()+1,t,2)}function q_n(r,t){return lu(r.getUTCMinutes(),t,2)}function Y_n(r,t){return lu(r.getUTCSeconds(),t,2)}function X_n(r){var t=r.getUTCDay();return t===0?7:t}function K_n(r,t){return lu(TO.count(L4(r)-1,r),t,2)}function Fdr(r){var t=r.getUTCDay();return t>=4||t===0?e_(r):e_.ceil(r)}function J_n(r,t){return r=Fdr(r),lu(e_.count(L4(r),r)+(L4(r).getUTCDay()===4),t,2)}function Q_n(r){return r.getUTCDay()}function Z_n(r,t){return lu(Hz.count(L4(r)-1,r),t,2)}function eDn(r,t){return lu(r.getUTCFullYear()%100,t,2)}function tDn(r,t){return r=Fdr(r),lu(r.getUTCFullYear()%100,t,2)}function rDn(r,t){return lu(r.getUTCFullYear()%1e4,t,4)}function nDn(r,t){var a=r.getUTCDay();return r=a>=4||a===0?e_(r):e_.ceil(r),lu(r.getUTCFullYear()%1e4,t,4)}function iDn(){return"+0000"}function Idr(){return"%"}function Mdr(r){return+r}function Ndr(r){return Math.floor(+r/1e3)}var Edr,mm,s_n,o_n,$dr=ae(()=>{"use strict";h2e();i(ZKe,"localDate");i(eJe,"utcDate");i(Hte,"newDate");i(tJe,"formatLocale");Edr={"-":"",_:" ",0:"0"},mm=/^\s*\d+/,s_n=/^%/,o_n=/[\\^$*+?|[\]().{}]/g;i(lu,"pad");i(l_n,"requote");i(qte,"formatRe");i(Yte,"formatLookup");i(c_n,"parseWeekdayNumberSunday");i(u_n,"parseWeekdayNumberMonday");i(h_n,"parseWeekNumberSunday");i(f_n,"parseWeekNumberISO");i(d_n,"parseWeekNumberMonday");i(Sdr,"parseFullYear");i(Adr,"parseYear");i(p_n,"parseZone");i(g_n,"parseQuarter");i(m_n,"parseMonthNumber");i(Rdr,"parseDayOfMonth");i(y_n,"parseDayOfYear");i(Ldr,"parseHour24");i(b_n,"parseMinutes");i(v_n,"parseSeconds");i(w_n,"parseMilliseconds");i(x_n,"parseMicroseconds");i(T_n,"parseLiteralPercent");i(k_n,"parseUnixTimestamp");i(C_n,"parseUnixTimestampSeconds");i(_dr,"formatDayOfMonth");i(E_n,"formatHour24");i(S_n,"formatHour12");i(A_n,"formatDayOfYear");i(Odr,"formatMilliseconds");i(R_n,"formatMicroseconds");i(L_n,"formatMonthNumber");i(__n,"formatMinutes");i(D_n,"formatSeconds");i(I_n,"formatWeekdayNumberMonday");i(M_n,"formatWeekNumberSunday");i(Pdr,"dISO");i(N_n,"formatWeekNumberISO");i(O_n,"formatWeekdayNumberSunday");i(P_n,"formatWeekNumberMonday");i(B_n,"formatYear");i(F_n,"formatYearISO");i($_n,"formatFullYear");i(G_n,"formatFullYearISO");i(j_n,"formatZone");i(Ddr,"formatUTCDayOfMonth");i(z_n,"formatUTCHour24");i(U_n,"formatUTCHour12");i(V_n,"formatUTCDayOfYear");i(Bdr,"formatUTCMilliseconds");i(W_n,"formatUTCMicroseconds");i(H_n,"formatUTCMonthNumber");i(q_n,"formatUTCMinutes");i(Y_n,"formatUTCSeconds");i(X_n,"formatUTCWeekdayNumberMonday");i(K_n,"formatUTCWeekNumberSunday");i(Fdr,"UTCdISO");i(J_n,"formatUTCWeekNumberISO");i(Q_n,"formatUTCWeekdayNumberSunday");i(Z_n,"formatUTCWeekNumberMonday");i(eDn,"formatUTCYear");i(tDn,"formatUTCYearISO");i(rDn,"formatUTCFullYear");i(nDn,"formatUTCFullYearISO");i(iDn,"formatUTCZone");i(Idr,"formatLiteralPercent");i(Mdr,"formatUnixTimestamp");i(Ndr,"formatUnixTimestampSeconds")});function rJe(r){return qz=tJe(r),kO=qz.format,Gdr=qz.parse,jdr=qz.utcFormat,zdr=qz.utcParse,qz}var qz,kO,Gdr,jdr,zdr,Udr=ae(()=>{"use strict";$dr();rJe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});i(rJe,"defaultLocale")});var nJe=ae(()=>{"use strict";Udr()});function aDn(r){return new Date(r)}function sDn(r){return r instanceof Date?+r:+new Date(+r)}function Vdr(r,t,a,s,l,h,f,d,m,b){var v=Ute(),T=v.invert,C=v.domain,E=b(".%L"),S=b(":%S"),R=b("%I:%M"),L=b("%I %p"),_=b("%a %d"),I=b("%b %d"),N=b("%B"),B=b("%Y");function O(P){return(m(P)<P?E:d(P)<P?S:f(P)<P?R:h(P)<P?L:s(P)<P?l(P)<P?_:I:a(P)<P?N:B)(P)}return i(O,"tickFormat"),v.invert=function(P){return new Date(T(P))},v.domain=function(P){return arguments.length?C(Array.from(P,sDn)):C().map(aDn)},v.ticks=function(P){var $=C();return r($[0],$[$.length-1],P??10)},v.tickFormat=function(P,$){return $==null?O:b($)},v.nice=function(P){var $=C();return(!P||typeof P.range!="function")&&(P=t($[0],$[$.length-1],P??10)),P?C(GKe($,P)):v},v.copy=function(){return r2e(v,Vdr(r,t,a,s,l,h,f,d,m,b))},v}function f2e(){return QL.apply(Vdr(JKe,QKe,Qw,DA,R4,$T,_A,LA,Jw,kO).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Wdr=ae(()=>{"use strict";h2e();nJe();FKe();zte();fdr();i(aDn,"date");i(sDn,"number");i(Vdr,"calendar");i(f2e,"time")});var Hdr=ae(()=>{"use strict";sdr();hdr();NKe();Wdr()});function iJe(r){for(var t=r.length/6|0,a=new Array(t),s=0;s<t;)a[s]="#"+r.slice(s*6,++s*6);return a}var qdr=ae(()=>{"use strict";i(iJe,"default")});var aJe,Ydr=ae(()=>{"use strict";qdr();aJe=iJe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var Xdr=ae(()=>{"use strict";Ydr()});function kf(r){return i(function(){return r},"constant")}var d2e=ae(()=>{"use strict";i(kf,"default")});function Jdr(r){return r>1?0:r<-1?Yz:Math.acos(r)}function oJe(r){return r>=1?Xte:r<=-1?-Xte:Math.asin(r)}var sJe,f1,t_,Kdr,p2e,_4,CO,ym,Yz,Xte,Xz,g2e=ae(()=>{"use strict";sJe=Math.abs,f1=Math.atan2,t_=Math.cos,Kdr=Math.max,p2e=Math.min,_4=Math.sin,CO=Math.sqrt,ym=1e-12,Yz=Math.PI,Xte=Yz/2,Xz=2*Yz;i(Jdr,"acos");i(oJe,"asin")});function m2e(r){let t=3;return r.digits=function(a){if(!arguments.length)return t;if(a==null)t=null;else{let s=Math.floor(a);if(!(s>=0))throw new RangeError(`invalid digits: ${a}`);t=s}return r},()=>new gO(t)}var lJe=ae(()=>{"use strict";iKe();i(m2e,"withPath")});function oDn(r){return r.innerRadius}function lDn(r){return r.outerRadius}function cDn(r){return r.startAngle}function uDn(r){return r.endAngle}function hDn(r){return r&&r.padAngle}function fDn(r,t,a,s,l,h,f,d){var m=a-r,b=s-t,v=f-l,T=d-h,C=T*m-v*b;if(!(C*C<ym))return C=(v*(t-h)-T*(r-l))/C,[r+C*m,t+C*b]}function y2e(r,t,a,s,l,h,f){var d=r-a,m=t-s,b=(f?h:-h)/CO(d*d+m*m),v=b*m,T=-b*d,C=r+v,E=t+T,S=a+v,R=s+T,L=(C+S)/2,_=(E+R)/2,I=S-C,N=R-E,B=I*I+N*N,O=l-h,P=C*R-S*E,$=(N<0?-1:1)*CO(Kdr(0,O*O*B-P*P)),V=(P*N-I*$)/B,Y=(-P*I-N*$)/B,Q=(P*N+I*$)/B,q=(-P*I+N*$)/B,W=V-L,H=Y-_,re=Q-L,Z=q-_;return W*W+H*H>re*re+Z*Z&&(V=Q,Y=q),{cx:V,cy:Y,x01:-v,y01:-T,x11:V*(l/O-1),y11:Y*(l/O-1)}}function D4(){var r=oDn,t=lDn,a=kf(0),s=null,l=cDn,h=uDn,f=hDn,d=null,m=m2e(b);function b(){var v,T,C=+r.apply(this,arguments),E=+t.apply(this,arguments),S=l.apply(this,arguments)-Xte,R=h.apply(this,arguments)-Xte,L=sJe(R-S),_=R>S;if(d||(d=v=m()),E<C&&(T=E,E=C,C=T),!(E>ym))d.moveTo(0,0);else if(L>Xz-ym)d.moveTo(E*t_(S),E*_4(S)),d.arc(0,0,E,S,R,!_),C>ym&&(d.moveTo(C*t_(R),C*_4(R)),d.arc(0,0,C,R,S,_));else{var I=S,N=R,B=S,O=R,P=L,$=L,V=f.apply(this,arguments)/2,Y=V>ym&&(s?+s.apply(this,arguments):CO(C*C+E*E)),Q=p2e(sJe(E-C)/2,+a.apply(this,arguments)),q=Q,W=Q,H,re;if(Y>ym){var Z=oJe(Y/C*_4(V)),X=oJe(Y/E*_4(V));(P-=Z*2)>ym?(Z*=_?1:-1,B+=Z,O-=Z):(P=0,B=O=(S+R)/2),($-=X*2)>ym?(X*=_?1:-1,I+=X,N-=X):($=0,I=N=(S+R)/2)}var te=E*t_(I),U=E*_4(I),ne=C*t_(O),se=C*_4(O);if(Q>ym){var he=E*t_(N),le=E*_4(N),pe=C*t_(B),ge=C*_4(B),we;if(L<Yz)if(we=fDn(te,U,pe,ge,he,le,ne,se)){var Ae=te-we[0],ve=U-we[1],Ie=he-we[0],De=le-we[1],Be=1/_4(Jdr((Ae*Ie+ve*De)/(CO(Ae*Ae+ve*ve)*CO(Ie*Ie+De*De)))/2),Fe=CO(we[0]*we[0]+we[1]*we[1]);q=p2e(Q,(C-Fe)/(Be-1)),W=p2e(Q,(E-Fe)/(Be+1))}else q=W=0}$>ym?W>ym?(H=y2e(pe,ge,te,U,E,W,_),re=y2e(he,le,ne,se,E,W,_),d.moveTo(H.cx+H.x01,H.cy+H.y01),W<Q?d.arc(H.cx,H.cy,W,f1(H.y01,H.x01),f1(re.y01,re.x01),!_):(d.arc(H.cx,H.cy,W,f1(H.y01,H.x01),f1(H.y11,H.x11),!_),d.arc(0,0,E,f1(H.cy+H.y11,H.cx+H.x11),f1(re.cy+re.y11,re.cx+re.x11),!_),d.arc(re.cx,re.cy,W,f1(re.y11,re.x11),f1(re.y01,re.x01),!_))):(d.moveTo(te,U),d.arc(0,0,E,I,N,!_)):d.moveTo(te,U),!(C>ym)||!(P>ym)?d.lineTo(ne,se):q>ym?(H=y2e(ne,se,he,le,C,-q,_),re=y2e(te,U,pe,ge,C,-q,_),d.lineTo(H.cx+H.x01,H.cy+H.y01),q<Q?d.arc(H.cx,H.cy,q,f1(H.y01,H.x01),f1(re.y01,re.x01),!_):(d.arc(H.cx,H.cy,q,f1(H.y01,H.x01),f1(H.y11,H.x11),!_),d.arc(0,0,C,f1(H.cy+H.y11,H.cx+H.x11),f1(re.cy+re.y11,re.cx+re.x11),_),d.arc(re.cx,re.cy,q,f1(re.y11,re.x11),f1(re.y01,re.x01),!_))):d.arc(0,0,C,O,B,_)}if(d.closePath(),v)return d=null,v+""||null}return i(b,"arc"),b.centroid=function(){var v=(+r.apply(this,arguments)+ +t.apply(this,arguments))/2,T=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2-Yz/2;return[t_(T)*v,_4(T)*v]},b.innerRadius=function(v){return arguments.length?(r=typeof v=="function"?v:kf(+v),b):r},b.outerRadius=function(v){return arguments.length?(t=typeof v=="function"?v:kf(+v),b):t},b.cornerRadius=function(v){return arguments.length?(a=typeof v=="function"?v:kf(+v),b):a},b.padRadius=function(v){return arguments.length?(s=v==null?null:typeof v=="function"?v:kf(+v),b):s},b.startAngle=function(v){return arguments.length?(l=typeof v=="function"?v:kf(+v),b):l},b.endAngle=function(v){return arguments.length?(h=typeof v=="function"?v:kf(+v),b):h},b.padAngle=function(v){return arguments.length?(f=typeof v=="function"?v:kf(+v),b):f},b.context=function(v){return arguments.length?(d=v??null,b):d},b}var Qdr=ae(()=>{"use strict";d2e();g2e();lJe();i(oDn,"arcInnerRadius");i(lDn,"arcOuterRadius");i(cDn,"arcStartAngle");i(uDn,"arcEndAngle");i(hDn,"arcPadAngle");i(fDn,"intersect");i(y2e,"cornerTangents");i(D4,"default")});function Kte(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}var Nua,cJe=ae(()=>{"use strict";Nua=Array.prototype.slice;i(Kte,"default")});function Zdr(r){this._context=r}function GT(r){return new Zdr(r)}var uJe=ae(()=>{"use strict";i(Zdr,"Linear");Zdr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:this._context.lineTo(r,t);break}},"point")};i(GT,"default")});function epr(r){return r[0]}function tpr(r){return r[1]}var rpr=ae(()=>{"use strict";i(epr,"x");i(tpr,"y")});function EO(r,t){var a=kf(!0),s=null,l=GT,h=null,f=m2e(d);r=typeof r=="function"?r:r===void 0?epr:kf(r),t=typeof t=="function"?t:t===void 0?tpr:kf(t);function d(m){var b,v=(m=Kte(m)).length,T,C=!1,E;for(s==null&&(h=l(E=f())),b=0;b<=v;++b)!(b<v&&a(T=m[b],b,m))===C&&((C=!C)?h.lineStart():h.lineEnd()),C&&h.point(+r(T,b,m),+t(T,b,m));if(E)return h=null,E+""||null}return i(d,"line"),d.x=function(m){return arguments.length?(r=typeof m=="function"?m:kf(+m),d):r},d.y=function(m){return arguments.length?(t=typeof m=="function"?m:kf(+m),d):t},d.defined=function(m){return arguments.length?(a=typeof m=="function"?m:kf(!!m),d):a},d.curve=function(m){return arguments.length?(l=m,s!=null&&(h=l(s)),d):l},d.context=function(m){return arguments.length?(m==null?s=h=null:h=l(s=m),d):s},d}var npr=ae(()=>{"use strict";cJe();d2e();uJe();lJe();rpr();i(EO,"default")});function hJe(r,t){return t<r?-1:t>r?1:t>=r?0:NaN}var ipr=ae(()=>{"use strict";i(hJe,"default")});function fJe(r){return r}var apr=ae(()=>{"use strict";i(fJe,"default")});function b2e(){var r=fJe,t=hJe,a=null,s=kf(0),l=kf(Xz),h=kf(0);function f(d){var m,b=(d=Kte(d)).length,v,T,C=0,E=new Array(b),S=new Array(b),R=+s.apply(this,arguments),L=Math.min(Xz,Math.max(-Xz,l.apply(this,arguments)-R)),_,I=Math.min(Math.abs(L)/b,h.apply(this,arguments)),N=I*(L<0?-1:1),B;for(m=0;m<b;++m)(B=S[E[m]=m]=+r(d[m],m,d))>0&&(C+=B);for(t!=null?E.sort(function(O,P){return t(S[O],S[P])}):a!=null&&E.sort(function(O,P){return a(d[O],d[P])}),m=0,T=C?(L-b*N)/C:0;m<b;++m,R=_)v=E[m],B=S[v],_=R+(B>0?B*T:0)+N,S[v]={data:d[v],index:m,value:B,startAngle:R,endAngle:_,padAngle:I};return S}return i(f,"pie"),f.value=function(d){return arguments.length?(r=typeof d=="function"?d:kf(+d),f):r},f.sortValues=function(d){return arguments.length?(t=d,a=null,f):t},f.sort=function(d){return arguments.length?(a=d,t=null,f):a},f.startAngle=function(d){return arguments.length?(s=typeof d=="function"?d:kf(+d),f):s},f.endAngle=function(d){return arguments.length?(l=typeof d=="function"?d:kf(+d),f):l},f.padAngle=function(d){return arguments.length?(h=typeof d=="function"?d:kf(+d),f):h},f}var spr=ae(()=>{"use strict";cJe();d2e();ipr();apr();g2e();i(b2e,"default")});function Jte(r){return new v2e(r,!0)}function Qte(r){return new v2e(r,!1)}var v2e,opr=ae(()=>{"use strict";v2e=class{static{i(this,"Bump")}constructor(t,a){this._context=t,this._x=a}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,a){switch(t=+t,a=+a,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,a):this._context.moveTo(t,a);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,a,t,a):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+a)/2,t,this._y0,t,a);break}}this._x0=t,this._y0=a}};i(Jte,"bumpX");i(Qte,"bumpY")});function Zw(){}var Zte=ae(()=>{"use strict";i(Zw,"default")});function Kz(r,t,a){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+t)/6,(r._y0+4*r._y1+a)/6)}function ere(r){this._context=r}function SO(r){return new ere(r)}var tre=ae(()=>{"use strict";i(Kz,"point");i(ere,"Basis");ere.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 3:Kz(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Kz(this,r,t);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t},"point")};i(SO,"default")});function lpr(r){this._context=r}function w2e(r){return new lpr(r)}var cpr=ae(()=>{"use strict";Zte();tre();i(lpr,"BasisClosed");lpr.prototype={areaStart:Zw,areaEnd:Zw,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:i(function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x2=r,this._y2=t;break;case 1:this._point=2,this._x3=r,this._y3=t;break;case 2:this._point=3,this._x4=r,this._y4=t,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+t)/6);break;default:Kz(this,r,t);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t},"point")};i(w2e,"default")});function upr(r){this._context=r}function x2e(r){return new upr(r)}var hpr=ae(()=>{"use strict";tre();i(upr,"BasisOpen");upr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var a=(this._x0+4*this._x1+r)/6,s=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(a,s):this._context.moveTo(a,s);break;case 3:this._point=4;default:Kz(this,r,t);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t},"point")};i(x2e,"default")});function fpr(r,t){this._basis=new ere(r),this._beta=t}var dJe,dpr=ae(()=>{"use strict";tre();i(fpr,"Bundle");fpr.prototype={lineStart:i(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:i(function(){var r=this._x,t=this._y,a=r.length-1;if(a>0)for(var s=r[0],l=t[0],h=r[a]-s,f=t[a]-l,d=-1,m;++d<=a;)m=d/a,this._basis.point(this._beta*r[d]+(1-this._beta)*(s+m*h),this._beta*t[d]+(1-this._beta)*(l+m*f));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:i(function(r,t){this._x.push(+r),this._y.push(+t)},"point")};dJe=i((function r(t){function a(s){return t===1?new ere(s):new fpr(s,t)}return i(a,"bundle"),a.beta=function(s){return r(+s)},a}),"custom")(.85)});function Jz(r,t,a){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-t),r._y2+r._k*(r._y1-a),r._x2,r._y2)}function T2e(r,t){this._context=r,this._k=(1-t)/6}var rre,nre=ae(()=>{"use strict";i(Jz,"point");i(T2e,"Cardinal");T2e.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Jz(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2,this._x1=r,this._y1=t;break;case 2:this._point=3;default:Jz(this,r,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};rre=i((function r(t){function a(s){return new T2e(s,t)}return i(a,"cardinal"),a.tension=function(s){return r(+s)},a}),"custom")(0)});function k2e(r,t){this._context=r,this._k=(1-t)/6}var pJe,gJe=ae(()=>{"use strict";Zte();nre();i(k2e,"CardinalClosed");k2e.prototype={areaStart:Zw,areaEnd:Zw,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:Jz(this,r,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};pJe=i((function r(t){function a(s){return new k2e(s,t)}return i(a,"cardinal"),a.tension=function(s){return r(+s)},a}),"custom")(0)});function C2e(r,t){this._context=r,this._k=(1-t)/6}var mJe,yJe=ae(()=>{"use strict";nre();i(C2e,"CardinalOpen");C2e.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Jz(this,r,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};mJe=i((function r(t){function a(s){return new C2e(s,t)}return i(a,"cardinal"),a.tension=function(s){return r(+s)},a}),"custom")(0)});function ire(r,t,a){var s=r._x1,l=r._y1,h=r._x2,f=r._y2;if(r._l01_a>ym){var d=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,m=3*r._l01_a*(r._l01_a+r._l12_a);s=(s*d-r._x0*r._l12_2a+r._x2*r._l01_2a)/m,l=(l*d-r._y0*r._l12_2a+r._y2*r._l01_2a)/m}if(r._l23_a>ym){var b=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,v=3*r._l23_a*(r._l23_a+r._l12_a);h=(h*b+r._x1*r._l23_2a-t*r._l12_2a)/v,f=(f*b+r._y1*r._l23_2a-a*r._l12_2a)/v}r._context.bezierCurveTo(s,l,h,f,r._x2,r._y2)}function ppr(r,t){this._context=r,this._alpha=t}var are,E2e=ae(()=>{"use strict";g2e();nre();i(ire,"point");i(ppr,"CatmullRom");ppr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(r,t){if(r=+r,t=+t,this._point){var a=this._x2-r,s=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ire(this,r,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};are=i((function r(t){function a(s){return t?new ppr(s,t):new T2e(s,0)}return i(a,"catmullRom"),a.alpha=function(s){return r(+s)},a}),"custom")(.5)});function gpr(r,t){this._context=r,this._alpha=t}var bJe,mpr=ae(()=>{"use strict";gJe();Zte();E2e();i(gpr,"CatmullRomClosed");gpr.prototype={areaStart:Zw,areaEnd:Zw,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(r,t){if(r=+r,t=+t,this._point){var a=this._x2-r,s=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:ire(this,r,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};bJe=i((function r(t){function a(s){return t?new gpr(s,t):new k2e(s,0)}return i(a,"catmullRom"),a.alpha=function(s){return r(+s)},a}),"custom")(.5)});function ypr(r,t){this._context=r,this._alpha=t}var vJe,bpr=ae(()=>{"use strict";yJe();E2e();i(ypr,"CatmullRomOpen");ypr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(r,t){if(r=+r,t=+t,this._point){var a=this._x2-r,s=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+s*s,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ire(this,r,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};vJe=i((function r(t){function a(s){return t?new ypr(s,t):new C2e(s,0)}return i(a,"catmullRom"),a.alpha=function(s){return r(+s)},a}),"custom")(.5)});function vpr(r){this._context=r}function S2e(r){return new vpr(r)}var wpr=ae(()=>{"use strict";Zte();i(vpr,"LinearClosed");vpr.prototype={areaStart:Zw,areaEnd:Zw,lineStart:i(function(){this._point=0},"lineStart"),lineEnd:i(function(){this._point&&this._context.closePath()},"lineEnd"),point:i(function(r,t){r=+r,t=+t,this._point?this._context.lineTo(r,t):(this._point=1,this._context.moveTo(r,t))},"point")};i(S2e,"default")});function xpr(r){return r<0?-1:1}function Tpr(r,t,a){var s=r._x1-r._x0,l=t-r._x1,h=(r._y1-r._y0)/(s||l<0&&-0),f=(a-r._y1)/(l||s<0&&-0),d=(h*l+f*s)/(s+l);return(xpr(h)+xpr(f))*Math.min(Math.abs(h),Math.abs(f),.5*Math.abs(d))||0}function kpr(r,t){var a=r._x1-r._x0;return a?(3*(r._y1-r._y0)/a-t)/2:t}function wJe(r,t,a){var s=r._x0,l=r._y0,h=r._x1,f=r._y1,d=(h-s)/3;r._context.bezierCurveTo(s+d,l+d*t,h-d,f-d*a,h,f)}function A2e(r){this._context=r}function Cpr(r){this._context=new Epr(r)}function Epr(r){this._context=r}function sre(r){return new A2e(r)}function ore(r){return new Cpr(r)}var Spr=ae(()=>{"use strict";i(xpr,"sign");i(Tpr,"slope3");i(kpr,"slope2");i(wJe,"point");i(A2e,"MonotoneX");A2e.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:wJe(this,this._t0,kpr(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(r,t){var a=NaN;if(r=+r,t=+t,!(r===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,wJe(this,kpr(this,a=Tpr(this,r,t)),a);break;default:wJe(this,this._t0,a=Tpr(this,r,t));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t,this._t0=a}},"point")};i(Cpr,"MonotoneY");(Cpr.prototype=Object.create(A2e.prototype)).point=function(r,t){A2e.prototype.point.call(this,t,r)};i(Epr,"ReflectContext");Epr.prototype={moveTo:i(function(r,t){this._context.moveTo(t,r)},"moveTo"),closePath:i(function(){this._context.closePath()},"closePath"),lineTo:i(function(r,t){this._context.lineTo(t,r)},"lineTo"),bezierCurveTo:i(function(r,t,a,s,l,h){this._context.bezierCurveTo(t,r,s,a,h,l)},"bezierCurveTo")};i(sre,"monotoneX");i(ore,"monotoneY")});function Rpr(r){this._context=r}function Apr(r){var t,a=r.length-1,s,l=new Array(a),h=new Array(a),f=new Array(a);for(l[0]=0,h[0]=2,f[0]=r[0]+2*r[1],t=1;t<a-1;++t)l[t]=1,h[t]=4,f[t]=4*r[t]+2*r[t+1];for(l[a-1]=2,h[a-1]=7,f[a-1]=8*r[a-1]+r[a],t=1;t<a;++t)s=l[t]/h[t-1],h[t]-=s,f[t]-=s*f[t-1];for(l[a-1]=f[a-1]/h[a-1],t=a-2;t>=0;--t)l[t]=(f[t]-l[t+1])/h[t];for(h[a-1]=(r[a]+l[a-1])/2,t=0;t<a-1;++t)h[t]=2*r[t+1]-l[t+1];return[l,h]}function Qz(r){return new Rpr(r)}var Lpr=ae(()=>{"use strict";i(Rpr,"Natural");Rpr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:i(function(){var r=this._x,t=this._y,a=r.length;if(a)if(this._line?this._context.lineTo(r[0],t[0]):this._context.moveTo(r[0],t[0]),a===2)this._context.lineTo(r[1],t[1]);else for(var s=Apr(r),l=Apr(t),h=0,f=1;f<a;++h,++f)this._context.bezierCurveTo(s[0][h],l[0][h],s[1][h],l[1][h],r[f],t[f]);(this._line||this._line!==0&&a===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},"lineEnd"),point:i(function(r,t){this._x.push(+r),this._y.push(+t)},"point")};i(Apr,"controlPoints");i(Qz,"default")});function R2e(r,t){this._context=r,this._t=t}function Zz(r){return new R2e(r,.5)}function lre(r){return new R2e(r,0)}function cre(r){return new R2e(r,1)}var _pr=ae(()=>{"use strict";i(R2e,"Step");R2e.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:i(function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:i(function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(r,t);else{var a=this._x*(1-this._t)+r*this._t;this._context.lineTo(a,this._y),this._context.lineTo(a,t)}break}}this._x=r,this._y=t},"point")};i(Zz,"default");i(lre,"stepBefore");i(cre,"stepAfter")});var Dpr=ae(()=>{"use strict";Qdr();npr();spr();cpr();hpr();tre();opr();dpr();gJe();yJe();nre();mpr();bpr();E2e();wpr();uJe();Spr();Lpr();_pr()});var Ipr=ae(()=>{"use strict"});var Mpr=ae(()=>{"use strict"});function r_(r,t,a){this.k=r,this.x=t,this.y=a}function TJe(r){for(;!r.__zoom;)if(!(r=r.parentNode))return xJe;return r.__zoom}var xJe,kJe=ae(()=>{"use strict";i(r_,"Transform");r_.prototype={constructor:r_,scale:i(function(r){return r===1?this:new r_(this.k*r,this.x,this.y)},"scale"),translate:i(function(r,t){return r===0&t===0?this:new r_(this.k,this.x+this.k*r,this.y+this.k*t)},"translate"),apply:i(function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},"apply"),applyX:i(function(r){return r*this.k+this.x},"applyX"),applyY:i(function(r){return r*this.k+this.y},"applyY"),invert:i(function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},"invert"),invertX:i(function(r){return(r-this.x)/this.k},"invertX"),invertY:i(function(r){return(r-this.y)/this.k},"invertY"),rescaleX:i(function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},"rescaleX"),rescaleY:i(function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},"rescaleY"),toString:i(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};xJe=new r_(1,0,0);TJe.prototype=r_.prototype;i(TJe,"transform")});var Npr=ae(()=>{"use strict"});var Opr=ae(()=>{"use strict";Hve();Ipr();Mpr();kJe();Npr()});var Ppr=ae(()=>{"use strict";Opr();kJe()});var zo=ae(()=>{"use strict";WL();Vcr();cfr();dfr();Pz();pfr();gfr();hYe();Our();mfr();ZXe();yfr();vfr();mKe();Mfr();ndr();$z();iKe();idr();bfr();adr();Hdr();Xdr();k4();Dpr();h2e();nJe();Gve();Hve();Ppr()});var CJe,AO,L2e,Bpr,_2e,D2e,Ab,ure,n_,IA=ae(()=>{"use strict";CJe=e2(mte(),1);zo();nl();AO=i((r,t)=>{let a=r.append("rect");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("fill",t.fill),a.attr("stroke",t.stroke),a.attr("width",t.width),a.attr("height",t.height),t.name&&a.attr("name",t.name),t.rx&&a.attr("rx",t.rx),t.ry&&a.attr("ry",t.ry),t.attrs!==void 0)for(let s in t.attrs)a.attr(s,t.attrs[s]);return t.class&&a.attr("class",t.class),a},"drawRect"),L2e=i((r,t)=>{let a={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};AO(r,a).lower()},"drawBackgroundRect"),Bpr=i((r,t)=>{let a=t.text.replace(rO," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);let l=s.append("tspan");return l.attr("x",t.x+t.textMargin*2),l.text(a),s},"drawText"),_2e=i((r,t,a,s)=>{let l=r.append("image");l.attr("x",t),l.attr("y",a);let h=(0,CJe.sanitizeUrl)(s);l.attr("xlink:href",h)},"drawImage"),D2e=i((r,t,a,s)=>{let l=r.append("use");l.attr("x",t),l.attr("y",a);let h=(0,CJe.sanitizeUrl)(s);l.attr("xlink:href",`#${h}`)},"drawEmbeddedImage"),Ab=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),ure=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),n_=i(()=>{let r=mn(".mermaidTooltip");return r.empty()&&(r=mn("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip")});var Fpr,dDn,pDn,gDn,mDn,yDn,bDn,vDn,wDn,xDn,hre,aS,$pr=ae(()=>{"use strict";nl();IA();Fpr=i(function(r,t){return AO(r,t)},"drawRect"),dDn=i((r,t,a,s)=>{let l=r.append("g"),h=0;for(let f of t){let d=f.textColor?f.textColor:"#444444",m=f.lineColor?f.lineColor:"#444444",b=f.offsetX?parseInt(String(f.offsetX)):0,v=f.offsetY?parseInt(String(f.offsetY)):0,T="";if(h===0){let S=l.append("line");S.attr("x1",f.startPoint.x),S.attr("y1",f.startPoint.y),S.attr("x2",f.endPoint.x),S.attr("y2",f.endPoint.y),S.attr("stroke-width","1"),S.attr("stroke",m),S.style("fill","none"),f.type!=="rel_b"&&S.attr("marker-end","url("+T+"#"+s+"-arrowhead)"),(f.type==="birel"||f.type==="rel_b")&&S.attr("marker-start","url("+T+"#"+s+"-arrowend)"),h=-1}else{let S=l.append("path");S.attr("fill","none").attr("stroke-width","1").attr("stroke",m).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",f.startPoint.x).replaceAll("starty",f.startPoint.y).replaceAll("controlx",f.startPoint.x+(f.endPoint.x-f.startPoint.x)/2-(f.endPoint.x-f.startPoint.x)/4).replaceAll("controly",f.startPoint.y+(f.endPoint.y-f.startPoint.y)/2).replaceAll("stopx",f.endPoint.x).replaceAll("stopy",f.endPoint.y)),f.type!=="rel_b"&&S.attr("marker-end","url("+T+"#"+s+"-arrowhead)"),(f.type==="birel"||f.type==="rel_b")&&S.attr("marker-start","url("+T+"#"+s+"-arrowend)")}let C=f.label.width,E=a.messageFont();hre(a)(f.label.text,l,Math.min(f.startPoint.x,f.endPoint.x)+Math.abs(f.endPoint.x-f.startPoint.x)/2+b,Math.min(f.startPoint.y,f.endPoint.y)+Math.abs(f.endPoint.y-f.startPoint.y)/2+v,C,f.label.height,{fill:d},E),f.techn&&f.techn.text!==""&&(E=a.messageFont(),hre(a)("["+f.techn.text+"]",l,Math.min(f.startPoint.x,f.endPoint.x)+Math.abs(f.endPoint.x-f.startPoint.x)/2+b,Math.min(f.startPoint.y,f.endPoint.y)+Math.abs(f.endPoint.y-f.startPoint.y)/2+a.messageFontSize+5+v,Math.max(C,f.techn.width),f.techn.height,{fill:d,"font-style":"italic"},E))}},"drawRels"),pDn=i(function(r,t,a){let s=r.append("g"),l=t.bgColor?t.bgColor:"none",h=t.borderColor?t.borderColor:"#444444",f=t.fontColor?t.fontColor:"black",d={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(d={"stroke-width":1});let m={x:t.x,y:t.y,fill:l,stroke:h,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:d};Fpr(s,m);let b=a.boundaryFont();b.fontWeight="bold",b.fontSize=b.fontSize+2,b.fontColor=f,hre(a)(t.label.text,s,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},b),t.type&&t.type.text!==""&&(b=a.boundaryFont(),b.fontColor=f,hre(a)(t.type.text,s,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},b)),t.descr&&t.descr.text!==""&&(b=a.boundaryFont(),b.fontSize=b.fontSize-2,b.fontColor=f,hre(a)(t.descr.text,s,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},b))},"drawBoundary"),gDn=i(function(r,t){r.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),mDn=i(function(r,t){r.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),yDn=i(function(r,t){r.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),bDn=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),vDn=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),wDn=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),xDn=i(function(r,t){let s=r.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);s.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),s.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),hre=(function(){function r(l,h,f,d,m,b,v){let T=h.append("text").attr("x",f+m/2).attr("y",d+b/2+5).style("text-anchor","middle").text(l);s(T,v)}i(r,"byText");function t(l,h,f,d,m,b,v,T){let{fontSize:C,fontFamily:E,fontWeight:S}=T,R=l.split(Xn.lineBreakRegex);for(let L=0;L<R.length;L++){let _=L*C-C*(R.length-1)/2,I=h.append("text").attr("x",f+m/2).attr("y",d).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",C).style("font-weight",S).style("font-family",E);I.append("tspan").attr("dy",_).text(R[L]).attr("alignment-baseline","mathematical"),s(I,v)}}i(t,"byTspan");function a(l,h,f,d,m,b,v,T){let C=h.append("switch"),S=C.append("foreignObject").attr("x",f).attr("y",d).attr("width",m).attr("height",b).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,C,f,d,m,b,v,T),s(S,v)}i(a,"byFo");function s(l,h){for(let f in h)h.hasOwnProperty(f)&&l.attr(f,h[f])}return i(s,"_setTextAttrs"),function(l){return l.textPlacement==="fo"?a:l.textPlacement==="old"?r:t}})(),aS={drawRect:Fpr,drawBoundary:pDn,drawRels:dDn,insertArrowHead:bDn,insertArrowEnd:vDn,insertArrowFilledHead:wDn,insertArrowCrossHead:xDn,insertDatabaseIcon:gDn,insertComputerIcon:mDn,insertClockIcon:yDn}});function Gpr(r){return Number.isSafeInteger(r)&&r>=0}var jpr=ae(()=>{"use strict";i(Gpr,"isLength")});function M2e(r){return r!=null&&typeof r!="function"&&Gpr(r.length)}var EJe=ae(()=>{"use strict";jpr();i(M2e,"isArrayLike")});function zpr(r){return r==="__proto__"}var Upr=ae(()=>{"use strict";i(zpr,"isUnsafeProperty")});function i_(r){return r==null||typeof r!="object"&&typeof r!="function"}var fre=ae(()=>{"use strict";i(i_,"isPrimitive")});function N2e(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}var SJe=ae(()=>{"use strict";i(N2e,"getSymbols")});function MA(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var dre=ae(()=>{"use strict";i(MA,"getTag")});var pre,a_,RO,LO,_O,gre,mre,yre,bre,O2e,vre,eU,wre,P2e,B2e,F2e,$2e,G2e,j2e,z2e,U2e,V2e,W2e=ae(()=>{"use strict";pre="[object RegExp]",a_="[object String]",RO="[object Number]",LO="[object Boolean]",_O="[object Arguments]",gre="[object Symbol]",mre="[object Date]",yre="[object Map]",bre="[object Set]",O2e="[object Array]",vre="[object ArrayBuffer]",eU="[object Object]",wre="[object DataView]",P2e="[object Uint8Array]",B2e="[object Uint8ClampedArray]",F2e="[object Uint16Array]",$2e="[object Uint32Array]",G2e="[object Int8Array]",j2e="[object Int16Array]",z2e="[object Int32Array]",U2e="[object Float32Array]",V2e="[object Float64Array]"});function tU(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}var H2e=ae(()=>{"use strict";i(tU,"isTypedArray")});function Vpr(r,t){return rU(r,void 0,r,new Map,t)}function rU(r,t,a,s=new Map,l=void 0){let h=l?.(r,t,a,s);if(h!==void 0)return h;if(i_(r))return r;if(s.has(r))return s.get(r);if(Array.isArray(r)){let f=new Array(r.length);s.set(r,f);for(let d=0;d<r.length;d++)f[d]=rU(r[d],d,a,s,l);return Object.hasOwn(r,"index")&&(f.index=r.index),Object.hasOwn(r,"input")&&(f.input=r.input),f}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let f=new RegExp(r.source,r.flags);return f.lastIndex=r.lastIndex,f}if(r instanceof Map){let f=new Map;s.set(r,f);for(let[d,m]of r)f.set(d,rU(m,d,a,s,l));return f}if(r instanceof Set){let f=new Set;s.set(r,f);for(let d of r)f.add(rU(d,void 0,a,s,l));return f}if(typeof Buffer<"u"&&Buffer.isBuffer(r))return r.subarray();if(tU(r)){let f=new(Object.getPrototypeOf(r)).constructor(r.length);s.set(r,f);for(let d=0;d<r.length;d++)f[d]=rU(r[d],d,a,s,l);return f}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let f=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return s.set(r,f),jT(f,r,a,s,l),f}if(typeof File<"u"&&r instanceof File){let f=new File([r],r.name,{type:r.type});return s.set(r,f),jT(f,r,a,s,l),f}if(typeof Blob<"u"&&r instanceof Blob){let f=new Blob([r],{type:r.type});return s.set(r,f),jT(f,r,a,s,l),f}if(r instanceof Error){let f=structuredClone(r);return s.set(r,f),f.message=r.message,f.name=r.name,f.stack=r.stack,f.cause=r.cause,f.constructor=r.constructor,jT(f,r,a,s,l),f}if(r instanceof Boolean){let f=new Boolean(r.valueOf());return s.set(r,f),jT(f,r,a,s,l),f}if(r instanceof Number){let f=new Number(r.valueOf());return s.set(r,f),jT(f,r,a,s,l),f}if(r instanceof String){let f=new String(r.valueOf());return s.set(r,f),jT(f,r,a,s,l),f}if(typeof r=="object"&&TDn(r)){let f=Object.create(Object.getPrototypeOf(r));return s.set(r,f),jT(f,r,a,s,l),f}return r}function jT(r,t,a=r,s,l){let h=[...Object.keys(t),...N2e(t)];for(let f=0;f<h.length;f++){let d=h[f],m=Object.getOwnPropertyDescriptor(r,d);(m==null||m.writable)&&(r[d]=rU(t[d],d,a,s,l))}}function TDn(r){switch(MA(r)){case _O:case O2e:case vre:case wre:case LO:case mre:case U2e:case V2e:case G2e:case j2e:case z2e:case yre:case RO:case eU:case pre:case bre:case a_:case gre:case P2e:case B2e:case F2e:case $2e:return!0;default:return!1}}var Wpr=ae(()=>{"use strict";SJe();dre();W2e();fre();H2e();i(Vpr,"cloneDeepWith");i(rU,"cloneDeepWithImpl");i(jT,"copyProperties");i(TDn,"isCloneableObject")});function Hpr(r,t){return Vpr(r,(a,s,l,h)=>{let f=t?.(a,s,l,h);if(f!==void 0)return f;if(typeof r=="object"){if(MA(r)===eU&&typeof r.constructor!="function"){let d={};return h.set(r,d),jT(d,r,l,h),d}switch(Object.prototype.toString.call(r)){case RO:case a_:case LO:{let d=new r.constructor(r?.valueOf());return jT(d,r),d}case _O:{let d={};return jT(d,r),d.length=r.length,d[Symbol.iterator]=r[Symbol.iterator],d}default:return}}})}var qpr=ae(()=>{"use strict";Wpr();dre();W2e();i(Hpr,"cloneDeepWith")});function AJe(r){return Hpr(r)}var Ypr=ae(()=>{"use strict";qpr();i(AJe,"cloneDeep")});function xre(r){return r!==null&&typeof r=="object"&&MA(r)==="[object Arguments]"}var RJe=ae(()=>{"use strict";dre();i(xre,"isArguments")});function Tre(r){return typeof r=="object"&&r!==null}var LJe=ae(()=>{"use strict";i(Tre,"isObjectLike")});function Xpr(r){return Tre(r)&&M2e(r)}var Kpr=ae(()=>{"use strict";EJe();LJe();i(Xpr,"isArrayLikeObject")});function Jpr(r){return Array.isArray(r)}var Qpr=ae(()=>{"use strict";i(Jpr,"isArray")});function DO(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let a=i(function(...l){let h=t?t.apply(this,l):l[0],f=a.cache;if(f.has(h))return f.get(h);let d=r.apply(this,l);return a.cache=f.set(h,d)||f,d},"memoized"),s=DO.Cache||Map;return a.cache=new s,a}var Zpr=ae(()=>{"use strict";i(DO,"memoize");DO.Cache=Map});function egr(){}var tgr=ae(()=>{"use strict";i(egr,"noop")});function rgr(r){let t=r?.constructor,a=typeof t=="function"?t.prototype:Object.prototype;return r===a}var ngr=ae(()=>{"use strict";i(rgr,"isPrototype")});function s_(r){return tU(r)}var q2e=ae(()=>{"use strict";H2e();i(s_,"isTypedArray")});function DJe(r){if(i_(r))return r;let t=MA(r);if(!kDn(r))return{};if(Jpr(r)){let s=Array.from(r);return r.length>0&&typeof r[0]=="string"&&Object.hasOwn(r,"index")&&(s.index=r.index,s.input=r.input),s}if(s_(r)){let s=r,l=s.constructor;return new l(s.buffer,s.byteOffset,s.length)}if(t===vre)return new ArrayBuffer(r.byteLength);if(t===wre){let s=r,l=s.buffer,h=s.byteOffset,f=s.byteLength,d=new ArrayBuffer(f),m=new Uint8Array(l,h,f);return new Uint8Array(d).set(m),new DataView(d)}if(t===LO||t===RO||t===a_){let s=r.constructor,l=new s(r.valueOf());return t===a_?EDn(l,r):_Je(l,r),l}if(t===mre)return new Date(Number(r));if(t===pre){let s=r,l=new RegExp(s.source,s.flags);return l.lastIndex=s.lastIndex,l}if(t===gre)return Object(Symbol.prototype.valueOf.call(r));if(t===yre){let s=r,l=new Map;return s.forEach((h,f)=>{l.set(f,h)}),l}if(t===bre){let s=r,l=new Set;return s.forEach(h=>{l.add(h)}),l}if(t===_O){let s=r,l={};return _Je(l,s),l.length=s.length,l[Symbol.iterator]=s[Symbol.iterator],l}let a={};return SDn(a,r),_Je(a,r),CDn(a,r),a}function kDn(r){switch(MA(r)){case _O:case O2e:case vre:case wre:case LO:case mre:case U2e:case V2e:case G2e:case j2e:case z2e:case yre:case RO:case eU:case pre:case bre:case a_:case gre:case P2e:case B2e:case F2e:case $2e:return!0;default:return!1}}function _Je(r,t){for(let a in t)Object.hasOwn(t,a)&&(r[a]=t[a])}function CDn(r,t){let a=Object.getOwnPropertySymbols(t);for(let s=0;s<a.length;s++){let l=a[s];Object.prototype.propertyIsEnumerable.call(t,l)&&(r[l]=t[l])}}function EDn(r,t){let a=t.valueOf().length;for(let s in t)Object.hasOwn(t,s)&&(Number.isNaN(Number(s))||Number(s)>=a)&&(r[s]=t[s])}function SDn(r,t){let a=Object.getPrototypeOf(t);a!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(r,a)}var igr=ae(()=>{"use strict";fre();dre();W2e();Qpr();q2e();i(DJe,"clone");i(kDn,"isCloneableObject");i(_Je,"copyOwnProperties");i(CDn,"copySymbolProperties");i(EDn,"cloneStringObjectProperties");i(SDn,"copyPrototype")});function Y2e(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let a=r[Symbol.toStringTag];return a==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${a}]`}let t=r;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}var agr=ae(()=>{"use strict";i(Y2e,"isPlainObject")});function sgr(r){if(i_(r))return r;if(Array.isArray(r)||tU(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let a=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new a(r);if(r instanceof RegExp){let s=new a(r);return s.lastIndex=r.lastIndex,s}if(r instanceof DataView)return new a(r.buffer.slice(0));if(r instanceof Error){let s;return r instanceof AggregateError?s=new a(r.errors,r.message,{cause:r.cause}):s=new a(r.message,{cause:r.cause}),s.stack=r.stack,Object.assign(s,r),s}if(typeof File<"u"&&r instanceof File)return new a([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r=="object"){let s=Object.create(t);return Object.assign(s,r)}return r}var ogr=ae(()=>{"use strict";fre();H2e();i(sgr,"clone")});function lgr(r,...t){let a=t.slice(0,-1),s=t[t.length-1],l=r;for(let h=0;h<a.length;h++){let f=a[h];l=X2e(l,f,s,new Map)}return l}function X2e(r,t,a,s){if(i_(r)&&(r=Object(r)),t==null||typeof t!="object")return r;if(s.has(t))return sgr(s.get(t));if(s.set(t,r),Array.isArray(t)){t=t.slice();for(let h=0;h<t.length;h++)t[h]=t[h]??void 0}let l=[...Object.keys(t),...N2e(t)];for(let h=0;h<l.length;h++){let f=l[h];if(zpr(f))continue;let d=t[f],m=r[f];if(xre(d)&&(d={...d}),xre(m)&&(m={...m}),typeof Buffer<"u"&&Buffer.isBuffer(d)&&(d=AJe(d)),Array.isArray(d))if(Array.isArray(m)){let v=[],T=Reflect.ownKeys(m);for(let C=0;C<T.length;C++){let E=T[C];v[E]=m[E]}m=v}else if(Xpr(m)){let v=[];for(let T=0;T<m.length;T++)v[T]=m[T];m=v}else m=[];let b=a(m,d,f,r,t,s);b!==void 0?r[f]=b:Array.isArray(d)||Tre(m)&&Tre(d)&&(Y2e(m)||Y2e(d)||s_(m)||s_(d))?r[f]=X2e(m,d,a,s):m==null&&Y2e(d)?r[f]=X2e({},d,a,s):m==null&&s_(d)?r[f]=AJe(d):(m===void 0||d!==void 0)&&(r[f]=d)}return r}var cgr=ae(()=>{"use strict";Ypr();Upr();ogr();fre();SJe();RJe();Kpr();LJe();agr();q2e();i(lgr,"mergeWith");i(X2e,"mergeWithDeep")});function IJe(r,...t){return lgr(r,...t,egr)}var ugr=ae(()=>{"use strict";cgr();tgr();i(IJe,"merge")});function K2e(r){if(r==null)return!0;if(M2e(r))return typeof r.splice!="function"&&typeof r!="string"&&(typeof Buffer>"u"||!Buffer.isBuffer(r))&&!s_(r)&&!xre(r)?!1:r.length===0;if(typeof r=="object"){if(r instanceof Map||r instanceof Set)return r.size===0;let t=Object.keys(r);return rgr(r)?t.filter(a=>a!=="constructor").length===0:t.length===0}return!0}var hgr=ae(()=>{"use strict";RJe();EJe();q2e();ngr();i(K2e,"isEmpty")});var J2e=ae(()=>{"use strict";Zpr();igr();ugr();hgr()});function OJe(r,t){if(!r)return t;let a=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return ADn[a]??t}function DDn(r,t){let a=r.trim();if(a)return t.securityLevel!=="loose"?(0,pgr.sanitizeUrl)(a):a}function ygr(r,t){return!r||!t?0:Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function MDn(r){let t,a=0;r.forEach(l=>{a+=ygr(l,t),t=l});let s=a/2;return PJe(r,s)}function NDn(r){return r.length===1?r[0]:MDn(r)}function PDn(r,t,a){let s=structuredClone(a);Pe.info("our points",s),t!=="start_left"&&t!=="start_right"&&s.reverse();let l=25+r,h=PJe(s,l),f=10+r*.5,d=Math.atan2(s[0].y-h.y,s[0].x-h.x),m={x:0,y:0};return t==="start_left"?(m.x=Math.sin(d+Math.PI)*f+(s[0].x+h.x)/2,m.y=-Math.cos(d+Math.PI)*f+(s[0].y+h.y)/2):t==="end_right"?(m.x=Math.sin(d-Math.PI)*f+(s[0].x+h.x)/2,m.y=-Math.cos(d-Math.PI)*f+(s[0].y+h.y)/2):(m.x=Math.sin(d)*f+(s[0].x+h.x)/2,m.y=-Math.cos(d)*f+(s[0].y+h.y)/2),m}function BJe(r){let t="",a="";for(let s of r)s!==void 0&&(s.startsWith("color:")||s.startsWith("text-align:")?a=a+s+";":t=t+s+";");return{style:t,labelStyle:a}}function BDn(r){let t="",a="0123456789abcdef",s=a.length;for(let l=0;l<r;l++)t+=a.charAt(Math.floor(Math.random()*s));return t}function Z2e(r,t){return kre(r,t).height}function d1(r,t){return kre(r,t).width}function GJe(r){return"str"in r}function bgr(r){return r instanceof Error?r.message:String(r)}function il(r,t){return IJe({},r,t)}function Cc(r){return r??null}function UDn(r,t){let a=Math.round(r.x),s=Math.round(r.y),l=t.replace(/(\d+\.\d+)/g,h=>Math.round(parseFloat(h)).toString());return l.includes(a.toString())||l.includes(s.toString())}var pgr,NJe,ADn,RDn,LDn,ggr,mgr,_Dn,IDn,fgr,PJe,ODn,dgr,FJe,$Je,FDn,$Dn,IO,GDn,kre,MJe,Q2e,jDn,zDn,Rb,Va,vgr,a2,s2,Ma=ae(()=>{"use strict";pgr=e2(mte(),1);zo();nl();wbe();Yn();zL();fz();J2e();lve();NJe="\u200B",ADn={curveBasis:SO,curveBasisClosed:w2e,curveBasisOpen:x2e,curveBumpX:Jte,curveBumpY:Qte,curveBundle:dJe,curveCardinalClosed:pJe,curveCardinalOpen:mJe,curveCardinal:rre,curveCatmullRomClosed:bJe,curveCatmullRomOpen:vJe,curveCatmullRom:are,curveLinear:GT,curveLinearClosed:S2e,curveMonotoneX:sre,curveMonotoneY:ore,curveNatural:Qz,curveStep:Zz,curveStepAfter:cre,curveStepBefore:lre},RDn=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,LDn=i(function(r,t){let a=ggr(r,/(?:init\b)|(?:initialize\b)/),s={};if(Array.isArray(a)){let f=a.map(d=>d.args);pz(f),s=Bh(s,[...f])}else s=a.args;if(!s)return;let l=jL(r,t),h="config";return s[h]!==void 0&&(l==="flowchart-v2"&&(l="flowchart"),s[l]=s[h],delete s[h]),s},"detectInit"),ggr=i(function(r,t=null){try{let a=new RegExp(`[%]{2}(?![{]${RDn.source})(?=[}][%]{2}).*
|
|
`,"ig");r=r.trim().replace(a,"").replace(/'/gm,'"'),Pe.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${r}`);let s,l=[];for(;(s=iO.exec(r))!==null;)if(s.index===iO.lastIndex&&iO.lastIndex++,s&&!t||t&&s[1]?.match(t)||t&&s[2]?.match(t)){let h=s[1]?s[1]:s[2],f=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;l.push({type:h,args:f})}return l.length===0?{type:r,args:null}:l.length===1?l[0]:l}catch(a){return Pe.error(`ERROR: ${a.message} - Unable to parse directive type: '${t}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),mgr=i(function(r){return r.replace(iO,"")},"removeDirectives"),_Dn=i(function(r,t){for(let[a,s]of t.entries())if(s.match(r))return a;return-1},"isSubstringInArray");i(OJe,"interpolateToCurve");i(DDn,"formatUrl");IDn=i((r,...t)=>{let a=r.split("."),s=a.length-1,l=a[s],h=window;for(let f=0;f<s;f++)if(h=h[a[f]],!h){Pe.error(`Function name: ${r} not found in window`);return}h[l](...t)},"runFunc");i(ygr,"distance");i(MDn,"traverseEdge");i(NDn,"calcLabelPosition");fgr=i((r,t=2)=>{let a=Math.pow(10,t);return Math.round(r*a)/a},"roundNumber"),PJe=i((r,t)=>{let a,s=t;for(let l of r){if(a){let h=ygr(l,a);if(h===0)return a;if(h<s)s-=h;else{let f=s/h;if(f<=0)return a;if(f>=1)return{x:l.x,y:l.y};if(f>0&&f<1)return{x:fgr((1-f)*a.x+f*l.x,5),y:fgr((1-f)*a.y+f*l.y,5)}}}a=l}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ODn=i((r,t,a)=>{Pe.info(`our points ${JSON.stringify(t)}`),t[0]!==a&&(t=t.reverse());let l=PJe(t,25),h=r?10:5,f=Math.atan2(t[0].y-l.y,t[0].x-l.x),d={x:0,y:0};return d.x=Math.sin(f)*h+(t[0].x+l.x)/2,d.y=-Math.cos(f)*h+(t[0].y+l.y)/2,d},"calcCardinalityPosition");i(PDn,"calcTerminalLabelPosition");i(BJe,"getStylesFromArray");dgr=0,FJe=i(()=>(dgr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+dgr),"generateId");i(BDn,"makeRandomHex");$Je=i(r=>BDn(r.length),"random"),FDn=i(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),$Dn=i(function(r,t){let a=t.text.replace(Xn.lineBreakRegex," "),[,s]=Rb(t.fontSize),l=r.append("text");l.attr("x",t.x),l.attr("y",t.y),l.style("text-anchor",t.anchor),l.style("font-family",t.fontFamily),l.style("font-size",s),l.style("font-weight",t.fontWeight),l.attr("fill",t.fill),t.class!==void 0&&l.attr("class",t.class);let h=l.append("tspan");return h.attr("x",t.x+t.textMargin*2),h.attr("fill",t.fill),h.text(a),l},"drawSimpleText"),IO=DO((r,t,a)=>{if(!r||(a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},a),Xn.hasBreaks(r)))return r;let s=r.split(" ").filter(Boolean),l=[],h="";return s.forEach((f,d)=>{let m=d1(`${f} `,a),b=d1(h,a);if(m>t){let{hyphenatedStrings:C,remainingWord:E}=GDn(f,t,"-",a);l.push(h,...C),h=E}else b+m>=t?(l.push(h),h=f):h=[h,f].filter(Boolean).join(" ");d+1===s.length&&l.push(h)}),l.filter(f=>f!=="").join(a.joinWith)},(r,t,a)=>`${r}${t}${a.fontSize}${a.fontWeight}${a.fontFamily}${a.joinWith}`),GDn=DO((r,t,a="-",s)=>{s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},s);let l=[...r],h=[],f="";return l.forEach((d,m)=>{let b=`${f}${d}`;if(d1(b,s)>=t){let T=m+1,C=l.length===T,E=`${b}${a}`;h.push(C?b:E),f=""}else f=b}),{hyphenatedStrings:h,remainingWord:f}},(r,t,a="-",s)=>`${r}${t}${a}${s.fontSize}${s.fontWeight}${s.fontFamily}`);i(Z2e,"calculateTextHeight");i(d1,"calculateTextWidth");kre=DO((r,t)=>{let{fontSize:a=12,fontFamily:s="Arial",fontWeight:l=400}=t;if(!r)return{width:0,height:0};let[,h]=Rb(a),f=["sans-serif",s],d=r.split(Xn.lineBreakRegex),m=[],b=mn("body");if(!b.remove)return{width:0,height:0,lineHeight:0};let v=b.append("svg");for(let C of f){let E=0,S={width:0,height:0,lineHeight:0};for(let R of d){let L=FDn();L.text=R||NJe;let _=$Dn(v,L).style("font-size",h).style("font-weight",l).style("font-family",C),I=(_._groups||_)[0][0].getBBox();if(I.width===0&&I.height===0)throw new Error("svg element not in render tree");S.width=Math.round(Math.max(S.width,I.width)),E=Math.round(I.height),S.height+=E,S.lineHeight=Math.round(Math.max(S.lineHeight,E))}m.push(S)}v.remove();let T=isNaN(m[1].height)||isNaN(m[1].width)||isNaN(m[1].lineHeight)||m[0].height>m[1].height&&m[0].width>m[1].width&&m[0].lineHeight>m[1].lineHeight?0:1;return m[T]},(r,t)=>`${r}${t.fontSize}${t.fontWeight}${t.fontFamily}`),MJe=class{constructor(t=!1,a){this.count=0;this.count=a?a.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{i(this,"InitIDGenerator")}},jDn=i(function(r){return Q2e=Q2e||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Q2e.innerHTML=r,unescape(Q2e.textContent)},"entityDecode");i(GJe,"isDetailedError");i(bgr,"getErrorMessage");zDn=i((r,t,a,s)=>{if(!s)return;let l=r.node()?.getBBox();l&&r.append("text").text(s).attr("text-anchor","middle").attr("x",l.x+l.width/2).attr("y",-a).attr("class",t)},"insertTitle"),Rb=i(r=>{if(typeof r=="number")return[r,r+"px"];let t=parseInt(r??"",10);return Number.isNaN(t)?[void 0,void 0]:r===String(t)?[t,r+"px"]:[t,r]},"parseFontSize");i(il,"cleanAndMerge");Va={assignWithDepth:Bh,wrapLabel:IO,calculateTextHeight:Z2e,calculateTextWidth:d1,calculateTextDimensions:kre,cleanAndMerge:il,detectInit:LDn,detectDirective:ggr,isSubstringInArray:_Dn,interpolateToCurve:OJe,calcLabelPosition:NDn,calcCardinalityPosition:ODn,calcTerminalLabelPosition:PDn,formatUrl:DDn,getStylesFromArray:BJe,generateId:FJe,random:$Je,runFunc:IDn,entityDecode:jDn,insertTitle:zDn,isLabelCoordinateInPath:UDn,parseFontSize:Rb,InitIDGenerator:MJe},vgr=i(function(r){let t=r;return t=t.replace(/style.*:\S*#.*;/g,function(a){return a.substring(0,a.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(a){return a.substring(0,a.length-1)}),t=t.replace(/#\w+;/g,function(a){let s=a.substring(1,a.length-1);return/^\+?\d+$/.test(s)?"\uFB02\xB0\xB0"+s+"\xB6\xDF":"\uFB02\xB0"+s+"\xB6\xDF"}),t},"encodeEntities"),a2=i(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),s2=i((r,t,{counter:a=0,prefix:s,suffix:l},h)=>h||`${s?`${s}_`:""}${r}_${t}_${a}${l?`_${l}`:""}`,"getEdgeId");i(Cc,"handleUndefinedAttr");i(UDn,"isLabelCoordinateInPath")});var wgr,xgr=ae(()=>{"use strict";zo();wgr=i((r,t)=>{if(t==="sandbox"){let s=mn("#i"+r).node()?.contentDocument;if(!s)throw new Error(`Sandbox iframe #i${r} is missing its content document`);return{root:mn(s.body),doc:s}}return{root:mn("body"),doc:document}},"getDiagramRoot")});var wga,nU=ae(()=>{"use strict";wga=typeof performance<"u"&&typeof performance.now=="function";globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"}});function VJe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Agr(r){NO=r}function ju(r,t=""){let a=typeof r=="string"?r:r.source,s={replace:i((l,h)=>{let f=typeof h=="string"?h:h.source;return f=f.replace(Lb.caret,"$1"),a=a.replace(l,f),s},"replace"),getRegex:i(()=>new RegExp(a,t),"getRegex")};return s}function sS(r,t){if(t){if(Lb.escapeTest.test(r))return r.replace(Lb.escapeReplace,kgr)}else if(Lb.escapeTestNoEncode.test(r))return r.replace(Lb.escapeReplaceNoEncode,kgr);return r}function Cgr(r){try{r=encodeURI(r).replace(Lb.percentDecode,"%")}catch{return null}return r}function Egr(r,t){let a=r.replace(Lb.findPipe,(h,f,d)=>{let m=!1,b=f;for(;--b>=0&&d[b]==="\\";)m=!m;return m?"|":" |"}),s=a.split(Lb.splitPipe),l=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;l<s.length;l++)s[l]=s[l].trim().replace(Lb.slashPipe,"|");return s}function Ere(r,t,a){let s=r.length;if(s===0)return"";let l=0;for(;l<s;){let h=r.charAt(s-l-1);if(h===t&&!a)l++;else if(h!==t&&a)l++;else break}return r.slice(0,s-l)}function k9n(r,t){if(r.indexOf(t[1])===-1)return-1;let a=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===t[0])a++;else if(r[s]===t[1]&&(a--,a<0))return s;return a>0?-2:-1}function Sgr(r,t,a,s,l){let h=t.href,f=t.title||null,d=r[1].replace(l.other.outputLinkReplace,"$1");s.state.inLink=!0;let m={type:r[0].charAt(0)==="!"?"image":"link",raw:a,href:h,title:f,text:d,tokens:s.inlineTokens(d)};return s.state.inLink=!1,m}function C9n(r,t,a){let s=r.match(a.other.indentCodeCompensation);if(s===null)return t;let l=s[1];return t.split(`
|
|
`).map(h=>{let f=h.match(a.other.beginningSpace);if(f===null)return h;let[d]=f;return d.length>=l.length?h.slice(l.length):h}).join(`
|
|
`)}function Ru(r,t){return MO.parse(r,t)}var NO,Are,Lb,VDn,WDn,HDn,Rre,qDn,WJe,Rgr,Lgr,YDn,HJe,XDn,qJe,KDn,JDn,iwe,YJe,QDn,_gr,ZDn,XJe,Tgr,e9n,t9n,r9n,n9n,Dgr,i9n,awe,KJe,Igr,a9n,Mgr,s9n,o9n,l9n,Ngr,c9n,u9n,Ogr,h9n,f9n,d9n,p9n,g9n,m9n,y9n,twe,b9n,Pgr,Bgr,v9n,JJe,w9n,jJe,x9n,ewe,Cre,T9n,kgr,rwe,NA,nwe,QJe,OA,Sre,E9n,MO,kga,Cga,Ega,Sga,Aga,Rga,Lga,Fgr=ae(()=>{"use strict";i(VJe,"L");NO=VJe();i(Agr,"G");Are={exec:i(()=>null,"exec")};i(ju,"h");Lb={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i(r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:i(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:i(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:i(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:i(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),"headingBeginRegex"),htmlBeginRegex:i(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},VDn=/^(?:[ \t]*(?:\n|$))+/,WDn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,HDn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Rre=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qDn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,WJe=/(?:[*+-]|\d{1,9}[.)])/,Rgr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Lgr=ju(Rgr).replace(/bull/g,WJe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),YDn=ju(Rgr).replace(/bull/g,WJe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),HJe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,XDn=/^[^\n]+/,qJe=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,KDn=ju(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",qJe).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),JDn=ju(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,WJe).getRegex(),iwe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",YJe=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,QDn=ju("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",YJe).replace("tag",iwe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_gr=ju(HJe).replace("hr",Rre).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",iwe).getRegex(),ZDn=ju(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_gr).getRegex(),XJe={blockquote:ZDn,code:WDn,def:KDn,fences:HDn,heading:qDn,hr:Rre,html:QDn,lheading:Lgr,list:JDn,newline:VDn,paragraph:_gr,table:Are,text:XDn},Tgr=ju("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Rre).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",iwe).getRegex(),e9n={...XJe,lheading:YDn,table:Tgr,paragraph:ju(HJe).replace("hr",Rre).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Tgr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",iwe).getRegex()},t9n={...XJe,html:ju(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",YJe).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Are,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ju(HJe).replace("hr",Rre).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",Lgr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},r9n=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,n9n=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dgr=/^( {2,}|\\)\n(?!\s*$)/,i9n=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,awe=/[\p{P}\p{S}]/u,KJe=/[\s\p{P}\p{S}]/u,Igr=/[^\s\p{P}\p{S}]/u,a9n=ju(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,KJe).getRegex(),Mgr=/(?!~)[\p{P}\p{S}]/u,s9n=/(?!~)[\s\p{P}\p{S}]/u,o9n=/(?:[^\s\p{P}\p{S}]|~)/u,l9n=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Ngr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,c9n=ju(Ngr,"u").replace(/punct/g,awe).getRegex(),u9n=ju(Ngr,"u").replace(/punct/g,Mgr).getRegex(),Ogr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",h9n=ju(Ogr,"gu").replace(/notPunctSpace/g,Igr).replace(/punctSpace/g,KJe).replace(/punct/g,awe).getRegex(),f9n=ju(Ogr,"gu").replace(/notPunctSpace/g,o9n).replace(/punctSpace/g,s9n).replace(/punct/g,Mgr).getRegex(),d9n=ju("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Igr).replace(/punctSpace/g,KJe).replace(/punct/g,awe).getRegex(),p9n=ju(/\\(punct)/,"gu").replace(/punct/g,awe).getRegex(),g9n=ju(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),m9n=ju(YJe).replace("(?:-->|$)","-->").getRegex(),y9n=ju("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",m9n).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),twe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,b9n=ju(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",twe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Pgr=ju(/^!?\[(label)\]\[(ref)\]/).replace("label",twe).replace("ref",qJe).getRegex(),Bgr=ju(/^!?\[(ref)\](?:\[\])?/).replace("ref",qJe).getRegex(),v9n=ju("reflink|nolink(?!\\()","g").replace("reflink",Pgr).replace("nolink",Bgr).getRegex(),JJe={_backpedal:Are,anyPunctuation:p9n,autolink:g9n,blockSkip:l9n,br:Dgr,code:n9n,del:Are,emStrongLDelim:c9n,emStrongRDelimAst:h9n,emStrongRDelimUnd:d9n,escape:r9n,link:b9n,nolink:Bgr,punctuation:a9n,reflink:Pgr,reflinkSearch:v9n,tag:y9n,text:i9n,url:Are},w9n={...JJe,link:ju(/^!?\[(label)\]\((.*?)\)/).replace("label",twe).getRegex(),reflink:ju(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",twe).getRegex()},jJe={...JJe,emStrongRDelimAst:f9n,emStrongLDelim:u9n,url:ju(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},x9n={...jJe,br:ju(Dgr).replace("{2,}","*").getRegex(),text:ju(jJe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ewe={normal:XJe,gfm:e9n,pedantic:t9n},Cre={normal:JJe,gfm:jJe,breaks:x9n,pedantic:w9n},T9n={"&":"&","<":"<",">":">",'"':""","'":"'"},kgr=i(r=>T9n[r],"ke");i(sS,"w");i(Cgr,"J");i(Egr,"V");i(Ere,"z");i(k9n,"ge");i(Sgr,"fe");i(C9n,"Je");rwe=class{static{i(this,"y")}options;rules;lexer;constructor(r){this.options=r||NO}space(r){let t=this.rules.block.newline.exec(r);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(r){let t=this.rules.block.code.exec(r);if(t){let a=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?a:Ere(a,`
|
|
`)}}}fences(r){let t=this.rules.block.fences.exec(r);if(t){let a=t[0],s=C9n(a,t[3]||"",this.rules);return{type:"code",raw:a,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(r){let t=this.rules.block.heading.exec(r);if(t){let a=t[2].trim();if(this.rules.other.endingHash.test(a)){let s=Ere(a,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(a=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(r){let t=this.rules.block.hr.exec(r);if(t)return{type:"hr",raw:Ere(t[0],`
|
|
`)}}blockquote(r){let t=this.rules.block.blockquote.exec(r);if(t){let a=Ere(t[0],`
|
|
`).split(`
|
|
`),s="",l="",h=[];for(;a.length>0;){let f=!1,d=[],m;for(m=0;m<a.length;m++)if(this.rules.other.blockquoteStart.test(a[m]))d.push(a[m]),f=!0;else if(!f)d.push(a[m]);else break;a=a.slice(m);let b=d.join(`
|
|
`),v=b.replace(this.rules.other.blockquoteSetextReplace,`
|
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
${b}`:b,l=l?`${l}
|
|
${v}`:v;let T=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,h,!0),this.lexer.state.top=T,a.length===0)break;let C=h.at(-1);if(C?.type==="code")break;if(C?.type==="blockquote"){let E=C,S=E.raw+`
|
|
`+a.join(`
|
|
`),R=this.blockquote(S);h[h.length-1]=R,s=s.substring(0,s.length-E.raw.length)+R.raw,l=l.substring(0,l.length-E.text.length)+R.text;break}else if(C?.type==="list"){let E=C,S=E.raw+`
|
|
`+a.join(`
|
|
`),R=this.list(S);h[h.length-1]=R,s=s.substring(0,s.length-C.raw.length)+R.raw,l=l.substring(0,l.length-E.raw.length)+R.raw,a=S.substring(h.at(-1).raw.length).split(`
|
|
`);continue}}return{type:"blockquote",raw:s,tokens:h,text:l}}}list(r){let t=this.rules.block.list.exec(r);if(t){let a=t[1].trim(),s=a.length>1,l={type:"list",raw:"",ordered:s,start:s?+a.slice(0,-1):"",loose:!1,items:[]};a=s?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=s?a:"[*+-]");let h=this.rules.other.listItemRegex(a),f=!1;for(;r;){let m=!1,b="",v="";if(!(t=h.exec(r))||this.rules.block.hr.test(r))break;b=t[0],r=r.substring(b.length);let T=t[2].split(`
|
|
`,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),C=r.split(`
|
|
`,1)[0],E=!T.trim(),S=0;if(this.options.pedantic?(S=2,v=T.trimStart()):E?S=t[1].length+1:(S=t[2].search(this.rules.other.nonSpaceChar),S=S>4?1:S,v=T.slice(S),S+=t[1].length),E&&this.rules.other.blankLine.test(C)&&(b+=C+`
|
|
`,r=r.substring(C.length+1),m=!0),!m){let _=this.rules.other.nextBulletRegex(S),I=this.rules.other.hrRegex(S),N=this.rules.other.fencesBeginRegex(S),B=this.rules.other.headingBeginRegex(S),O=this.rules.other.htmlBeginRegex(S);for(;r;){let P=r.split(`
|
|
`,1)[0],$;if(C=P,this.options.pedantic?(C=C.replace(this.rules.other.listReplaceNesting," "),$=C):$=C.replace(this.rules.other.tabCharGlobal," "),N.test(C)||B.test(C)||O.test(C)||_.test(C)||I.test(C))break;if($.search(this.rules.other.nonSpaceChar)>=S||!C.trim())v+=`
|
|
`+$.slice(S);else{if(E||T.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(T)||B.test(T)||I.test(T))break;v+=`
|
|
`+C}!E&&!C.trim()&&(E=!0),b+=P+`
|
|
`,r=r.substring(P.length+1),T=$.slice(S)}}l.loose||(f?l.loose=!0:this.rules.other.doubleBlankLine.test(b)&&(f=!0));let R=null,L;this.options.gfm&&(R=this.rules.other.listIsTask.exec(v),R&&(L=R[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),l.items.push({type:"list_item",raw:b,task:!!R,checked:L,loose:!1,text:v,tokens:[]}),l.raw+=b}let d=l.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let m=0;m<l.items.length;m++)if(this.lexer.state.top=!1,l.items[m].tokens=this.lexer.blockTokens(l.items[m].text,[]),!l.loose){let b=l.items[m].tokens.filter(T=>T.type==="space"),v=b.length>0&&b.some(T=>this.rules.other.anyLine.test(T.raw));l.loose=v}if(l.loose)for(let m=0;m<l.items.length;m++)l.items[m].loose=!0;return l}}html(r){let t=this.rules.block.html.exec(r);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(r){let t=this.rules.block.def.exec(r);if(t){let a=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:a,raw:t[0],href:s,title:l}}}table(r){let t=this.rules.block.table.exec(r);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let a=Egr(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
`):[],h={type:"table",raw:t[0],header:[],align:[],rows:[]};if(a.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?h.align.push("right"):this.rules.other.tableAlignCenter.test(f)?h.align.push("center"):this.rules.other.tableAlignLeft.test(f)?h.align.push("left"):h.align.push(null);for(let f=0;f<a.length;f++)h.header.push({text:a[f],tokens:this.lexer.inline(a[f]),header:!0,align:h.align[f]});for(let f of l)h.rows.push(Egr(f,h.header.length).map((d,m)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:h.align[m]})));return h}}lheading(r){let t=this.rules.block.lheading.exec(r);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(r){let t=this.rules.block.paragraph.exec(r);if(t){let a=t[1].charAt(t[1].length-1)===`
|
|
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:a,tokens:this.lexer.inline(a)}}}text(r){let t=this.rules.block.text.exec(r);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(r){let t=this.rules.inline.escape.exec(r);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(r){let t=this.rules.inline.tag.exec(r);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(r){let t=this.rules.inline.link.exec(r);if(t){let a=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let h=Ere(a.slice(0,-1),"\\");if((a.length-h.length)%2===0)return}else{let h=k9n(t[2],"()");if(h===-2)return;if(h>-1){let f=(t[0].indexOf("!")===0?5:4)+t[1].length+h;t[2]=t[2].substring(0,h),t[0]=t[0].substring(0,f).trim(),t[3]=""}}let s=t[2],l="";if(this.options.pedantic){let h=this.rules.other.pedanticHrefTitle.exec(s);h&&(s=h[1],l=h[3])}else l=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?s=s.slice(1):s=s.slice(1,-1)),Sgr(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(r,t){let a;if((a=this.rules.inline.reflink.exec(r))||(a=this.rules.inline.nolink.exec(r))){let s=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=t[s.toLowerCase()];if(!l){let h=a[0].charAt(0);return{type:"text",raw:h,text:h}}return Sgr(a,l,a[0],this.lexer,this.rules)}}emStrong(r,t,a=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!(!s||s[3]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!a||this.rules.inline.punctuation.exec(a))){let l=[...s[0]].length-1,h,f,d=l,m=0,b=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(b.lastIndex=0,t=t.slice(-1*r.length+l);(s=b.exec(t))!=null;){if(h=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!h)continue;if(f=[...h].length,s[3]||s[4]){d+=f;continue}else if((s[5]||s[6])&&l%3&&!((l+f)%3)){m+=f;continue}if(d-=f,d>0)continue;f=Math.min(f,f+d+m);let v=[...s[0]][0].length,T=r.slice(0,l+s.index+v+f);if(Math.min(l,f)%2){let E=T.slice(1,-1);return{type:"em",raw:T,text:E,tokens:this.lexer.inlineTokens(E)}}let C=T.slice(2,-2);return{type:"strong",raw:T,text:C,tokens:this.lexer.inlineTokens(C)}}}}codespan(r){let t=this.rules.inline.code.exec(r);if(t){let a=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(a),l=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return s&&l&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:t[0],text:a}}}br(r){let t=this.rules.inline.br.exec(r);if(t)return{type:"br",raw:t[0]}}del(r){let t=this.rules.inline.del.exec(r);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(r){let t=this.rules.inline.autolink.exec(r);if(t){let a,s;return t[2]==="@"?(a=t[1],s="mailto:"+a):(a=t[1],s=a),{type:"link",raw:t[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}url(r){let t;if(t=this.rules.inline.url.exec(r)){let a,s;if(t[2]==="@")a=t[0],s="mailto:"+a;else{let l;do l=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(l!==t[0]);a=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(r){let t=this.rules.inline.text.exec(r);if(t){let a=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:a}}}},NA=class zJe{static{i(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||NO,this.options.tokenizer=this.options.tokenizer||new rwe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let a={other:Lb,block:ewe.normal,inline:Cre.normal};this.options.pedantic?(a.block=ewe.pedantic,a.inline=Cre.pedantic):this.options.gfm&&(a.block=ewe.gfm,this.options.breaks?a.inline=Cre.breaks:a.inline=Cre.gfm),this.tokenizer.rules=a}static get rules(){return{block:ewe,inline:Cre}}static lex(t,a){return new zJe(a).lex(t)}static lexInline(t,a){return new zJe(a).inlineTokens(t)}lex(t){t=t.replace(Lb.carriageReturn,`
|
|
`),this.blockTokens(t,this.tokens);for(let a=0;a<this.inlineQueue.length;a++){let s=this.inlineQueue[a];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,a=[],s=!1){for(this.options.pedantic&&(t=t.replace(Lb.tabCharGlobal," ").replace(Lb.spaceLine,""));t;){let l;if(this.options.extensions?.block?.some(f=>(l=f.call({lexer:this},t,a))?(t=t.substring(l.raw.length),a.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let f=a.at(-1);l.raw.length===1&&f!==void 0?f.raw+=`
|
|
`:a.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let f=a.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
|
|
`)?"":`
|
|
`)+l.raw,f.text+=`
|
|
`+l.text,this.inlineQueue.at(-1).src=f.text):a.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),a.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),a.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),a.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),a.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),a.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),a.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let f=a.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
|
|
`)?"":`
|
|
`)+l.raw,f.text+=`
|
|
`+l.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},a.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),a.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),a.push(l);continue}let h=t;if(this.options.extensions?.startBlock){let f=1/0,d=t.slice(1),m;this.options.extensions.startBlock.forEach(b=>{m=b.call({lexer:this},d),typeof m=="number"&&m>=0&&(f=Math.min(f,m))}),f<1/0&&f>=0&&(h=t.substring(0,f+1))}if(this.state.top&&(l=this.tokenizer.paragraph(h))){let f=a.at(-1);s&&f?.type==="paragraph"?(f.raw+=(f.raw.endsWith(`
|
|
`)?"":`
|
|
`)+l.raw,f.text+=`
|
|
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):a.push(l),s=h.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let f=a.at(-1);f?.type==="text"?(f.raw+=(f.raw.endsWith(`
|
|
`)?"":`
|
|
`)+l.raw,f.text+=`
|
|
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):a.push(l);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,a}inline(t,a=[]){return this.inlineQueue.push({src:t,tokens:a}),a}inlineTokens(t,a=[]){let s=t,l=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)d.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let h=!1,f="";for(;t;){h||(f=""),h=!1;let d;if(this.options.extensions?.inline?.some(b=>(d=b.call({lexer:this},t,a))?(t=t.substring(d.raw.length),a.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let b=a.at(-1);d.type==="text"&&b?.type==="text"?(b.raw+=d.raw,b.text+=d.text):a.push(d);continue}if(d=this.tokenizer.emStrong(t,s,f)){t=t.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),a.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),a.push(d);continue}let m=t;if(this.options.extensions?.startInline){let b=1/0,v=t.slice(1),T;this.options.extensions.startInline.forEach(C=>{T=C.call({lexer:this},v),typeof T=="number"&&T>=0&&(b=Math.min(b,T))}),b<1/0&&b>=0&&(m=t.substring(0,b+1))}if(d=this.tokenizer.inlineText(m)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(f=d.raw.slice(-1)),h=!0;let b=a.at(-1);b?.type==="text"?(b.raw+=d.raw,b.text+=d.text):a.push(d);continue}if(t){let b="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return a}},nwe=class{static{i(this,"P")}options;parser;constructor(r){this.options=r||NO}space(r){return""}code({text:r,lang:t,escaped:a}){let s=(t||"").match(Lb.notSpaceStart)?.[0],l=r.replace(Lb.endingNewline,"")+`
|
|
`;return s?'<pre><code class="language-'+sS(s)+'">'+(a?l:sS(l,!0))+`</code></pre>
|
|
`:"<pre><code>"+(a?l:sS(l,!0))+`</code></pre>
|
|
`}blockquote({tokens:r}){return`<blockquote>
|
|
${this.parser.parse(r)}</blockquote>
|
|
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:t}){return`<h${t}>${this.parser.parseInline(r)}</h${t}>
|
|
`}hr(r){return`<hr>
|
|
`}list(r){let t=r.ordered,a=r.start,s="";for(let f=0;f<r.items.length;f++){let d=r.items[f];s+=this.listitem(d)}let l=t?"ol":"ul",h=t&&a!==1?' start="'+a+'"':"";return"<"+l+h+`>
|
|
`+s+"</"+l+`>
|
|
`}listitem(r){let t="";if(r.task){let a=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=a+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=a+" "+sS(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):t+=a+" "}return t+=this.parser.parse(r.tokens,!!r.loose),`<li>${t}</li>
|
|
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
|
|
`}table(r){let t="",a="";for(let l=0;l<r.header.length;l++)a+=this.tablecell(r.header[l]);t+=this.tablerow({text:a});let s="";for(let l=0;l<r.rows.length;l++){let h=r.rows[l];a="";for(let f=0;f<h.length;f++)a+=this.tablecell(h[f]);s+=this.tablerow({text:a})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
<thead>
|
|
`+t+`</thead>
|
|
`+s+`</table>
|
|
`}tablerow({text:r}){return`<tr>
|
|
${r}</tr>
|
|
`}tablecell(r){let t=this.parser.parseInline(r.tokens),a=r.header?"th":"td";return(r.align?`<${a} align="${r.align}">`:`<${a}>`)+t+`</${a}>
|
|
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${sS(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:t,tokens:a}){let s=this.parser.parseInline(a),l=Cgr(r);if(l===null)return s;r=l;let h='<a href="'+r+'"';return t&&(h+=' title="'+sS(t)+'"'),h+=">"+s+"</a>",h}image({href:r,title:t,text:a,tokens:s}){s&&(a=this.parser.parseInline(s,this.parser.textRenderer));let l=Cgr(r);if(l===null)return sS(a);r=l;let h=`<img src="${r}" alt="${a}"`;return t&&(h+=` title="${sS(t)}"`),h+=">",h}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:sS(r.text)}},QJe=class{static{i(this,"$")}strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},OA=class UJe{static{i(this,"l")}options;renderer;textRenderer;constructor(t){this.options=t||NO,this.options.renderer=this.options.renderer||new nwe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new QJe}static parse(t,a){return new UJe(a).parse(t)}static parseInline(t,a){return new UJe(a).parseInline(t)}parse(t,a=!0){let s="";for(let l=0;l<t.length;l++){let h=t[l];if(this.options.extensions?.renderers?.[h.type]){let d=h,m=this.options.extensions.renderers[d.type].call({parser:this},d);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){s+=m||"";continue}}let f=h;switch(f.type){case"space":{s+=this.renderer.space(f);continue}case"hr":{s+=this.renderer.hr(f);continue}case"heading":{s+=this.renderer.heading(f);continue}case"code":{s+=this.renderer.code(f);continue}case"table":{s+=this.renderer.table(f);continue}case"blockquote":{s+=this.renderer.blockquote(f);continue}case"list":{s+=this.renderer.list(f);continue}case"html":{s+=this.renderer.html(f);continue}case"def":{s+=this.renderer.def(f);continue}case"paragraph":{s+=this.renderer.paragraph(f);continue}case"text":{let d=f,m=this.renderer.text(d);for(;l+1<t.length&&t[l+1].type==="text";)d=t[++l],m+=`
|
|
`+this.renderer.text(d);a?s+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):s+=m;continue}default:{let d='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}parseInline(t,a=this.renderer){let s="";for(let l=0;l<t.length;l++){let h=t[l];if(this.options.extensions?.renderers?.[h.type]){let d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){s+=d||"";continue}}let f=h;switch(f.type){case"escape":{s+=a.text(f);break}case"html":{s+=a.html(f);break}case"link":{s+=a.link(f);break}case"image":{s+=a.image(f);break}case"strong":{s+=a.strong(f);break}case"em":{s+=a.em(f);break}case"codespan":{s+=a.codespan(f);break}case"br":{s+=a.br(f);break}case"del":{s+=a.del(f);break}case"text":{s+=a.text(f);break}default:{let d='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}},Sre=class{static{i(this,"S")}options;block;constructor(r){this.options=r||NO}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?NA.lex:NA.lexInline}provideParser(){return this.block?OA.parse:OA.parseInline}},E9n=class{static{i(this,"B")}defaults=VJe();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=OA;Renderer=nwe;TextRenderer=QJe;Lexer=NA;Tokenizer=rwe;Hooks=Sre;constructor(...r){this.use(...r)}walkTokens(r,t){let a=[];for(let s of r)switch(a=a.concat(t.call(this,s)),s.type){case"table":{let l=s;for(let h of l.header)a=a.concat(this.walkTokens(h.tokens,t));for(let h of l.rows)for(let f of h)a=a.concat(this.walkTokens(f.tokens,t));break}case"list":{let l=s;a=a.concat(this.walkTokens(l.items,t));break}default:{let l=s;this.defaults.extensions?.childTokens?.[l.type]?this.defaults.extensions.childTokens[l.type].forEach(h=>{let f=l[h].flat(1/0);a=a.concat(this.walkTokens(f,t))}):l.tokens&&(a=a.concat(this.walkTokens(l.tokens,t)))}}return a}use(...r){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(a=>{let s={...a};if(s.async=this.defaults.async||s.async||!1,a.extensions&&(a.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let h=t.renderers[l.name];h?t.renderers[l.name]=function(...f){let d=l.renderer.apply(this,f);return d===!1&&(d=h.apply(this,f)),d}:t.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let h=t[l.level];h?h.unshift(l.tokenizer):t[l.level]=[l.tokenizer],l.start&&(l.level==="block"?t.startBlock?t.startBlock.push(l.start):t.startBlock=[l.start]:l.level==="inline"&&(t.startInline?t.startInline.push(l.start):t.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(t.childTokens[l.name]=l.childTokens)}),s.extensions=t),a.renderer){let l=this.defaults.renderer||new nwe(this.defaults);for(let h in a.renderer){if(!(h in l))throw new Error(`renderer '${h}' does not exist`);if(["options","parser"].includes(h))continue;let f=h,d=a.renderer[f],m=l[f];l[f]=(...b)=>{let v=d.apply(l,b);return v===!1&&(v=m.apply(l,b)),v||""}}s.renderer=l}if(a.tokenizer){let l=this.defaults.tokenizer||new rwe(this.defaults);for(let h in a.tokenizer){if(!(h in l))throw new Error(`tokenizer '${h}' does not exist`);if(["options","rules","lexer"].includes(h))continue;let f=h,d=a.tokenizer[f],m=l[f];l[f]=(...b)=>{let v=d.apply(l,b);return v===!1&&(v=m.apply(l,b)),v}}s.tokenizer=l}if(a.hooks){let l=this.defaults.hooks||new Sre;for(let h in a.hooks){if(!(h in l))throw new Error(`hook '${h}' does not exist`);if(["options","block"].includes(h))continue;let f=h,d=a.hooks[f],m=l[f];Sre.passThroughHooks.has(h)?l[f]=b=>{if(this.defaults.async&&Sre.passThroughHooksRespectAsync.has(h))return Promise.resolve(d.call(l,b)).then(T=>m.call(l,T));let v=d.call(l,b);return m.call(l,v)}:l[f]=(...b)=>{let v=d.apply(l,b);return v===!1&&(v=m.apply(l,b)),v}}s.hooks=l}if(a.walkTokens){let l=this.defaults.walkTokens,h=a.walkTokens;s.walkTokens=function(f){let d=[];return d.push(h.call(this,f)),l&&(d=d.concat(l.call(this,f))),d}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,t){return NA.lex(r,t??this.defaults)}parser(r,t){return OA.parse(r,t??this.defaults)}parseMarkdown(r){return(t,a)=>{let s={...a},l={...this.defaults,...s},h=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return h(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return h(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return h(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=r);let f=l.hooks?l.hooks.provideLexer():r?NA.lex:NA.lexInline,d=l.hooks?l.hooks.provideParser():r?OA.parse:OA.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(t):t).then(m=>f(m,l)).then(m=>l.hooks?l.hooks.processAllTokens(m):m).then(m=>l.walkTokens?Promise.all(this.walkTokens(m,l.walkTokens)).then(()=>m):m).then(m=>d(m,l)).then(m=>l.hooks?l.hooks.postprocess(m):m).catch(h);try{l.hooks&&(t=l.hooks.preprocess(t));let m=f(t,l);l.hooks&&(m=l.hooks.processAllTokens(m)),l.walkTokens&&this.walkTokens(m,l.walkTokens);let b=d(m,l);return l.hooks&&(b=l.hooks.postprocess(b)),b}catch(m){return h(m)}}}onError(r,t){return a=>{if(a.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+sS(a.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(a);throw a}}},MO=new E9n;i(Ru,"d");Ru.options=Ru.setOptions=function(r){return MO.setOptions(r),Ru.defaults=MO.defaults,Agr(Ru.defaults),Ru};Ru.getDefaults=VJe;Ru.defaults=NO;Ru.use=function(...r){return MO.use(...r),Ru.defaults=MO.defaults,Agr(Ru.defaults),Ru};Ru.walkTokens=function(r,t){return MO.walkTokens(r,t)};Ru.parseInline=MO.parseInline;Ru.Parser=OA;Ru.parser=OA.parse;Ru.Renderer=nwe;Ru.TextRenderer=QJe;Ru.Lexer=NA;Ru.lexer=NA.lex;Ru.Tokenizer=rwe;Ru.Hooks=Sre;Ru.parse=Ru;kga=Ru.options,Cga=Ru.setOptions,Ega=Ru.use,Sga=Ru.walkTokens,Aga=Ru.parseInline,Rga=OA.parse,Lga=NA.lex});function S9n(r,{markdownAutoWrap:t}){let s=r.replace(/<br\/>/g,`
|
|
`).replace(/\n{2,}/g,`
|
|
`);return ive(s)}function $gr(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(a=>({content:a,type:"normal"}))??[])}function swe(r,t={}){let a=S9n(r,t),s=Ru.lexer(a),l=[[]],h=0;function f(d,m="normal"){d.type==="text"?d.text.split(`
|
|
`).forEach((v,T)=>{T!==0&&(h++,l.push([])),v.split(" ").forEach(C=>{C=C.replace(/'/g,"'"),C&&l[h].push({content:C,type:m})})}):d.type==="strong"||d.type==="em"?d.tokens.forEach(b=>{f(b,d.type)}):d.type==="html"&&l[h].push({content:d.text,type:"normal"})}return i(f,"processNode"),s.forEach(d=>{d.type==="paragraph"?d.tokens?.forEach(m=>{f(m)}):d.type==="html"?l[h].push({content:d.text,type:"normal"}):l[h].push({content:d.raw,type:"normal"})}),l}function Ggr(r){return r?`<p>${r.replace(/\\n|\n/g,"<br />")}</p>`:""}function jgr(r,{markdownAutoWrap:t}={}){let a=Ru.lexer(r);function s(l){return l.type==="text"?t===!1?l.text.replace(/\n */g,"<br/>").replace(/ /g," "):l.text.replace(/\n */g,"<br/>"):l.type==="strong"?`<strong>${l.tokens?.map(s).join("")}</strong>`:l.type==="em"?`<em>${l.tokens?.map(s).join("")}</em>`:l.type==="paragraph"?`<p>${l.tokens?.map(s).join("")}</p>`:l.type==="space"?"":l.type==="html"?`${l.text}`:l.type==="escape"?l.text:(Pe.warn(`Unsupported markdown: ${l.type}`),l.raw)}return i(s,"output"),a.map(s).join("")}var ZJe=ae(()=>{"use strict";Fgr();Fqe();Yn();i(S9n,"preprocessMarkdown");i($gr,"nonMarkdownToLines");i(swe,"markdownToLines");i(Ggr,"nonMarkdownToHTML");i(jgr,"markdownToHTML")});var zgr,Ugr=ae(()=>{"use strict";zgr=(function(r){"use strict";var t=function(){},a=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(b){return setTimeout(b,16)};function s(){var b=this;b.reads=[],b.writes=[],b.raf=a.bind(r),t("initialized",b)}i(s,"FastDom"),s.prototype={constructor:s,runTasks:i(function(b){t("run tasks");for(var v;v=b.shift();)v()},"runTasks"),measure:i(function(b,v){t("measure");var T=v?b.bind(v):b;return this.reads.push(T),l(this),T},"measure"),mutate:i(function(b,v){t("mutate");var T=v?b.bind(v):b;return this.writes.push(T),l(this),T},"mutate"),clear:i(function(b){return t("clear",b),f(this.reads,b)||f(this.writes,b)},"clear"),extend:i(function(b){if(t("extend",b),typeof b!="object")throw new Error("expected object");var v=Object.create(this);return d(v,b),v.fastdom=this,v.initialize&&v.initialize(),v},"extend"),catch:null};function l(b){b.scheduled||(b.scheduled=!0,b.raf(h.bind(null,b)),t("flush scheduled"))}i(l,"scheduleFlush");function h(b){t("flush");var v=b.writes,T=b.reads,C;try{t("flushing reads",T.length),b.runTasks(T),t("flushing writes",v.length),b.runTasks(v)}catch(E){C=E}if(b.scheduled=!1,(T.length||v.length)&&l(b),C)if(t("task errored",C.message),b.catch)b.catch(C);else throw C}i(h,"flush");function f(b,v){var T=b.indexOf(v);return!!~T&&!!b.splice(T,1)}i(f,"remove");function d(b,v){for(var T in v)v.hasOwnProperty(T)&&(b[T]=v[T])}i(d,"mixin");var m=r.fastdom=r.fastdom||new s;return m})(typeof window<"u"?window:globalThis)});function Vgr(r,t,a,s){var l=r._tasks,h=r.fastdom,f,d=new Promise(function(m,b){f=h[t](function(){l.delete(d);try{m(s?a.call(s):a())}catch(v){b(v)}},s)});return l.set(d,f),d}var Wgr,Vga,Wga,Hga,qga,Hgr,qgr=ae(()=>{"use strict";Wgr={initialize:i(function(){this._tasks=new Map},"initialize"),mutate:i(function(r,t){return Vgr(this,"mutate",r,t)},"mutate"),measure:i(function(r,t){return Vgr(this,"measure",r,t)},"measure"),clear:i(function(r){var t=this._tasks,a=t.get(r);this.fastdom.clear(a),t.delete(r)},"clear")};i(Vgr,"create");({initialize:Vga,mutate:Wga,measure:Hga,clear:qga}=Wgr),Hgr=Wgr});var A9n,oS,owe=ae(()=>{"use strict";Ugr();qgr();A9n=zgr.extend({raf(r){typeof queueMicrotask=="function"?queueMicrotask(r):setTimeout(r,0)}}).extend(Hgr),oS=A9n});function R9n(r){return Intl.Segmenter?[...new Intl.Segmenter().segment(r)].map(t=>t.segment):[...r]}function L9n(r,t){let a=R9n(t.content);return Ygr(r,[],a,t.type)}function Ygr(r,t,a,s){if(a.length===0)return[{content:t.join(""),type:s},{content:"",type:s}];let[l,...h]=a,f=[...t,l];return r([{content:f.join(""),type:s}])?Ygr(r,f,h,s):(t.length===0&&l&&(t.push(l),a.shift()),[{content:t.join(""),type:s},{content:a.join(""),type:s}])}function Xgr(r,t){if(r.some(({content:a})=>a.includes(`
|
|
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return eQe(r,t)}function eQe(r,t,a=[],s=[]){if(r.length===0)return s.length>0&&a.push(s),a.length>0?a:[];let l="";r[0].content===" "&&(l=" ",r.shift());let h=r.shift()??{content:" ",type:"normal"},f=[...s];if(l!==""&&f.push({content:l,type:"normal"}),f.push(h),t(f))return eQe(r,t,a,f);if(s.length>0)a.push(s),r.unshift(h);else if(h.content){let[d,m]=L9n(t,h);a.push([d]),m.content&&r.unshift(m)}return eQe(r,t,a)}var Kgr=ae(()=>{"use strict";i(R9n,"splitTextToChars");i(L9n,"splitWordToFitWidth");i(Ygr,"splitWordToFitWidthRecursion");i(Xgr,"splitLineToFitWidth");i(eQe,"splitLineToFitWidthRecursion")});function Jgr(r,t){t&&r.attr("style",t)}async function _9n(r,t,a,s,l=!1,h=ri(),f=0){let d=r.append("foreignObject");d.attr("width",`${Math.min(10*a,Qgr)}px`),d.attr("height",`${Math.min(10*a,Qgr)}px`);let m=d.append("xhtml:div"),b=Tf(t.label)?await Ez(t.label.replace(Xn.lineBreakRegex,`
|
|
`),h):Ns(t.label,h),v=t.isNode?"nodeLabel":"edgeLabel",T=m.append("span");T.html(b),Jgr(T,t.labelStyle),T.attr("class",`${v} ${s}`),Jgr(m,t.labelStyle),m.style("display","table-cell"),m.style("white-space","nowrap"),m.style("line-height","1.5"),a!==Number.POSITIVE_INFINITY&&(m.style("max-width",a+"px"),m.style("text-align","center")),m.attr("xmlns","http://www.w3.org/1999/xhtml"),l&&m.attr("class","labelBkg");let C=await oS.measure(()=>m.node().getBoundingClientRect());return C.width===a?(m.style("display","table"),m.style("white-space","break-spaces"),m.style("width",a+"px")):C.width<f&&(m.style("display","table"),m.style("width",f+"px"),m.style("text-align","center")),d.node()}function tQe(r,t,a,s=!1){let l=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*a-.1+"em").attr("dy",a+"em");return s&&l.attr("text-anchor","middle"),l}function D9n(r,t,a){let s=r.append("text"),l=tQe(s,1,t);rQe(l,a);let h=l.node().getComputedTextLength();return s.remove(),h}function e0r(r,t,a){let s=r.append("text"),l=tQe(s,1,t);rQe(l,[{content:a,type:"normal"}]);let h=l.node()?.getBoundingClientRect();return h&&s.remove(),h}function I9n(r,t,a,s=!1,l=!1){let f=t.append("g"),d=f.insert("rect").attr("class","background").attr("style","stroke: none"),m=f.append("text").attr("y","-10.1");l&&m.attr("text-anchor","middle");let b=0;for(let v of a){let T=i(E=>D9n(f,1.1,E)<=r,"checkWidth"),C=T(v)?[v]:Xgr(v,T);for(let E of C){let S=tQe(m,b,1.1,l);rQe(S,E),b++}}if(s){let v=m.node().getBBox(),T=2;return d.attr("x",v.x-T).attr("y",v.y-T).attr("width",v.width+2*T).attr("height",v.height+2*T),f.node()}else return m.node()}function Zgr(r){let t=/&(amp|lt|gt);/g;return r.replace(t,(a,s)=>{switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return a}})}function rQe(r,t){r.text(""),t.forEach((a,s)=>{let l=r.append("tspan").attr("font-style",a.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",a.type==="strong"?"bold":"normal");s===0?l.text(Zgr(a.content)):l.text(" "+Zgr(a.content))})}async function M9n(r,t={}){let a=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(l,h,f)=>(a.push((async()=>{let d=`${h}:${f}`;return await nve(d)?await Og(d,void 0,{class:"label-icon"}):`<i class='${Ns(l,t).replace(":"," ")}'></i>`})()),l));let s=await Promise.all(a);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>s.shift()??"")}var Qgr,jh,ex=ae(()=>{"use strict";zo();nl();Yn();nU();ZJe();Ma();owe();Xw();Kgr();Xs();i(Jgr,"applyStyle");Qgr=16384;i(_9n,"addHtmlSpan");i(tQe,"createTspan");i(D9n,"computeWidthOfText");i(e0r,"computeDimensionOfText");i(I9n,"createFormattedText");i(Zgr,"decodeHTMLEntities");i(rQe,"updateTextContentAndStyles");i(M9n,"replaceIconSubstring");jh=i(async(r,t="",{style:a="",isTitle:s=!1,classes:l="",useHtmlLabels:h=!0,markdown:f=!0,isNode:d=!0,width:m=200,minWidth:b=0,addSvgBackground:v=!1}={},T)=>{if(Pe.debug("XYZ createText",t,a,s,l,h,d,"addSvgBackground: ",v),h){let C=f?jgr(t,T):Ggr(t),E=await M9n(a2(C),T),S=t.replace(/\\\\/g,"\\"),R={isNode:d,label:Tf(t)?S:E,labelStyle:a.replace("fill:","color:")};return await _9n(r,R,m,l,v,T,b)}else{let C=a2(t.replace(/<br\s*\/?>/g,"<br/>")),E=f?swe(C.replace("<br>","<br/>"),T):$gr(C),S=I9n(m,r,E,t?v:!1,!d);if(d){/stroke:/.exec(a)&&(a=a.replace("stroke:","lineColor:"));let R=a.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");mn(S).attr("style",R)}else{let R=a.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");mn(S).select("rect").attr("style",R.replace(/background:/g,"fill:"));let L=a.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");mn(S).select("text").attr("style",L)}return s?mn(S).selectAll("tspan.text-outer-tspan").classed("title-row",!0):mn(S).selectAll("tspan.text-outer-tspan").classed("row",!0),S}},"createText")});async function lwe(r){let t=r.getElementsByTagName("img");if(!t||t.length===0)return;let a=!t0r(r);await Promise.all([...t].map(s=>new Promise(l=>{function h(){if(s.style.display="flex",s.style.flexDirection="column",a){let f=er().fontSize?er().fontSize:window.getComputedStyle(document.body).fontSize,d=5,[m=ps.fontSize]=Rb(f),b=m*d+"px";s.style.minWidth=b,s.style.maxWidth=b}else s.style.width="100%";l(s)}i(h,"setupImage"),setTimeout(()=>{s.complete&&h()}),s.addEventListener("error",h),s.addEventListener("load",h)})))}function t0r(r){return r.nodeType===O9n?r.textContent?.trim()!=="":r.nodeType!==N9n||r.tagName.toLowerCase()==="img"?!1:[...r.childNodes].some(t0r)}var N9n,O9n,nQe=ae(()=>{"use strict";ma();pp();Ma();N9n=1,O9n=3;i(lwe,"configureLabelImages");i(t0r,"hasTextBesidesImages")});var r0r,P9n,n0r,i0r=ae(()=>{"use strict";zo();ex();ma();nl();Ma();r0r=3,P9n=32,n0r=i(async(r,t,a)=>{let s=er(),l=r.insert("g").attr("class",a??"node default").attr("id",t.domId||t.id),h=l.insert("g").attr("class","label").attr("style",Cc(t.labelStyle)),d=[{text:typeof t.label=="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(_=>({text:_,cssClass:"c4-descr"}))].filter(_=>_.text),m=t.width?Math.max(t.width-2*(t.padding??0),P9n):er().flowchart?.wrappingWidth??200,v=s.c4?.wrap??!0?m:Number.POSITIVE_INFINITY,T=await Promise.all(d.map(async _=>{let I=h.append("g").attr("class",_.cssClass),N=await jh(I,Ns(a2(_.text??""),s),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:v,style:t.labelStyle},s);return mn(N).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),mn(N).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:I,box:I.node().getBBox()}})),C=Math.max(...T.map(({box:_})=>_.width),0),E=0;for(let{el:_,box:I}of T)_.attr("transform",`translate(${C/2-I.x-I.width/2}, ${E-I.y})`),E+=I.height+r0r;let S=T.length>0?E-r0r:0;h.insert("rect",":first-child"),h.attr("transform",`translate(${-C/2}, ${-S/2})`);let R=h.node().getBBox(),L=(t.padding??0)/2;return{shapeSvg:l,bbox:R,halfPadding:L,label:h}},"c4LabelHelper")});function ws(r){let t=r.map((a,s)=>`${s===0?"M":"L"}${a.x},${a.y}`);return t.push("Z"),t.join(" ")}function zT(r,t,a,s,l,h){let f=[],m=a-r,b=s-t,v=m/h,T=2*Math.PI/v,C=t+b/2;for(let E=0;E<=50;E++){let S=E/50,R=r+S*m,L=C+l*Math.sin(T*(R-r));f.push({x:R,y:L})}return f}function tx(r,t,a,s,l,h){let f=[],d=l*Math.PI/180,v=(h*Math.PI/180-d)/(s-1);for(let T=0;T<s;T++){let C=d+T*v,E=r+a*Math.cos(C),S=t+a*Math.sin(C);f.push({x:-E,y:-S})}return f}function iQe(r){let t=Array.from(r.childNodes).filter(m=>m.tagName==="path"),a=document.createElementNS("http://www.w3.org/2000/svg","path"),s=t.map(m=>m.getAttribute("d")).filter(m=>m!==null).join(" ");a.setAttribute("d",s);let l=t.find(m=>m.getAttribute("fill")!=="none"),h=t.find(m=>m.getAttribute("stroke")!=="none"),f=i((m,b)=>m?.getAttribute(b)??void 0,"getAttr");if(l){let m={fill:f(l,"fill"),"fill-opacity":f(l,"fill-opacity")??"1"};Object.entries(m).forEach(([b,v])=>{v&&a.setAttribute(b,v)})}if(h){let m={stroke:f(h,"stroke"),"stroke-width":f(h,"stroke-width")??"1","stroke-opacity":f(h,"stroke-opacity")??"1"};Object.entries(m).forEach(([b,v])=>{v&&a.setAttribute(b,v)})}let d=document.createElementNS("http://www.w3.org/2000/svg","g");return d.appendChild(a),d}var a0r,kn,I4,fn,Cn,Yi=ae(()=>{"use strict";ex();owe();ma();Xs();zo();nl();Ma();nQe();nU();i0r();a0r=i((r,t)=>{let{x:a,y:s,width:l,height:h}=r;return l>=t?r:"left"in r?{x:a,y:s,width:t,height:h,top:s,left:a,bottom:s+h,right:a+t,toJSON:i(()=>({}),"toJSON")}:{x:a-(t-l)/2,y:s,width:t,height:h}},"withMinWidth"),kn=i(async(r,t,a,{ignoreMinWidth:s=!1}={})=>{if(t.stereotype!==void 0)return n0r(r,t,a);let l,h=t.useHtmlLabels||fm(er()?.htmlLabels);a?l=a:l="node default";let f=r.insert("g").attr("class",l).attr("id",t.domId||t.id),d=f.insert("g").attr("class","label").attr("style",Cc(t.labelStyle)),m;t.label===void 0?m="":m=typeof t.label=="string"?t.label:t.label[0];let b=!!t.icon||!!t.img,v=t.labelType==="markdown",T=m&&!t.width&&!s?t.minWidth??0:0,C=await jh(d,Ns(a2(m),er()),{useHtmlLabels:h,width:t.width||t.wrappingWidth||er().flowchart?.wrappingWidth,minWidth:T,classes:v?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:b,markdown:v},er()),E=(t?.padding??0)/2,S;if(h){let R=C.children[0],L=mn(C);await lwe(R),S=await oS.measure(()=>R.getBoundingClientRect()),S=a0r(S,T),L.attr("width",S.width),L.attr("height",S.height)}else S=await oS.measure(()=>C.getBBox()),S=a0r(S,T);return h?d.attr("transform","translate("+-S.width/2+", "+-S.height/2+")"):d.attr("transform","translate(0, "+-S.height/2+")"),t.centerLabel&&d.attr("transform","translate("+-S.width/2+", "+-S.height/2+")"),d.insert("rect",":first-child"),{shapeSvg:f,bbox:S,halfPadding:E,label:d}},"labelHelper"),I4=i(async(r,t,a)=>{let s=a.useHtmlLabels??Fh(er()),l=r.insert("g").attr("class","label").attr("style",a.labelStyle||""),h=await jh(l,Ns(a2(t),er()),{useHtmlLabels:s,width:a.width||er()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),f=a.padding/2,d;if(Fh(er())){let m=h.children[0],b=mn(h);d=await oS.measure(()=>m.getBoundingClientRect()),b.attr("width",d.width),b.attr("height",d.height)}else d=await oS.measure(()=>h.getBBox());return s?l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):l.attr("transform","translate(0, "+-d.height/2+")"),a.centerLabel&&l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:r,bbox:d,halfPadding:f,label:l}},"insertLabel"),fn=i((r,t,a)=>{if(a){r.width=a.width,r.height=a.height;return}let s=t.node().getBBox();r.width=s.width,r.height=s.height},"updateNodeBounds"),Cn=i((r,t)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(t||""),"getNodeClasses");i(ws,"createPathFromPoints");i(zT,"generateFullSineWavePoints");i(tx,"generateCirclePoints");i(iQe,"mergePaths")});function B9n(r,t){return r.intersect(t)}var s0r,o0r=ae(()=>{"use strict";i(B9n,"intersectNode");s0r=B9n});function F9n(r,t,a,s){var l=r.x,h=r.y,f=l-s.x,d=h-s.y,m=Math.sqrt(t*t*d*d+a*a*f*f),b=Math.abs(t*a*f/m);s.x<l&&(b=-b);var v=Math.abs(t*a*d/m);return s.y<h&&(v=-v),{x:l+b,y:h+v}}var cwe,aQe=ae(()=>{"use strict";i(F9n,"intersectEllipse");cwe=F9n});function $9n(r,t,a){return cwe(r,t,t,a)}var l0r,c0r=ae(()=>{"use strict";aQe();i($9n,"intersectCircle");l0r=$9n});function G9n(r,t,a,s){{let l=t.y-r.y,h=r.x-t.x,f=t.x*r.y-r.x*t.y,d=l*a.x+h*a.y+f,m=l*s.x+h*s.y+f,b=1e-6;if(d!==0&&m!==0&&u0r(d,m))return;let v=s.y-a.y,T=a.x-s.x,C=s.x*a.y-a.x*s.y,E=v*r.x+T*r.y+C,S=v*t.x+T*t.y+C;if(Math.abs(E)<b&&Math.abs(S)<b&&u0r(E,S))return;let R=l*T-v*h;if(R===0)return;let L=(h*C-T*f)/R,_=(v*f-l*C)/R;return{x:L,y:_}}}function u0r(r,t){return r*t>0}var h0r,f0r=ae(()=>{"use strict";i(G9n,"intersectLine");i(u0r,"sameSign");h0r=G9n});function j9n(r,t,a){let s=r.x,l=r.y,h=[],f=Number.POSITIVE_INFINITY,d=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(v){f=Math.min(f,v.x),d=Math.min(d,v.y)}):(f=Math.min(f,t.x),d=Math.min(d,t.y));let m=s-r.width/2-f,b=l-r.height/2-d;for(let v=0;v<t.length;v++){let T=t[v],C=t[v<t.length-1?v+1:0],E=h0r(r,a,{x:m+T.x,y:b+T.y},{x:m+C.x,y:b+C.y});E&&h.push(E)}return h.length?(h.length>1&&h.sort(function(v,T){let C=v.x-a.x,E=v.y-a.y,S=Math.sqrt(C*C+E*E),R=T.x-a.x,L=T.y-a.y,_=Math.sqrt(R*R+L*L);return S<_?-1:S===_?0:1}),h[0]):r}var d0r,p0r=ae(()=>{"use strict";f0r();i(j9n,"intersectPolygon");d0r=j9n});var z9n,UT,uwe=ae(()=>{"use strict";z9n=i((r,t)=>{var a=r.x,s=r.y,l=t.x-a,h=t.y-s,f=r.width/2,d=r.height/2,m,b;return Math.abs(h)*f>Math.abs(l)*d?(h<0&&(d=-d),m=h===0?0:d*l/h,b=d):(l<0&&(f=-f),m=f,b=l===0?0:f*h/l),{x:a+m,y:s+b}},"intersectRect"),UT=z9n});var Hr,Ta=ae(()=>{"use strict";o0r();c0r();aQe();p0r();uwe();Hr={node:s0r,circle:l0r,ellipse:cwe,polygon:d0r,rect:UT}});var g0r,U9n,o2,V9n,Lre,Gr,dn,W9n,na=ae(()=>{"use strict";ma();g0r=i(r=>{let{handDrawnSeed:t}=er();return{fill:r,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:r,seed:t}},"solidStateFill"),U9n=i(r=>Array.isArray(r)?r:r?r.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),o2=i(r=>{let t=V9n([...r.cssCompiledStyles||[],...r.cssStyles||[],...U9n(r.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),V9n=i(r=>{let t=new Map;return r.forEach(a=>{let[s,l]=a.split(":");t.set(s.trim(),l?.trim())}),t},"styles2Map"),Lre=i(r=>r==="color"||r==="font-size"||r==="font-family"||r==="font-weight"||r==="font-style"||r==="text-decoration"||r==="text-align"||r==="text-transform"||r==="line-height"||r==="letter-spacing"||r==="word-spacing"||r==="text-shadow"||r==="text-overflow"||r==="white-space"||r==="word-wrap"||r==="word-break"||r==="overflow-wrap"||r==="hyphens","isLabelStyle"),Gr=i(r=>{let{stylesArray:t}=o2(r),a=[],s=[],l=[],h=[];return t.forEach(f=>{let d=f[0];Lre(d)?a.push(f.join(":")+" !important"):(s.push(f.join(":")+" !important"),d.includes("stroke")&&l.push(f.join(":")+" !important"),d==="fill"&&h.push(f.join(":")+" !important"))}),{labelStyles:a.join(";"),nodeStyles:s.join(";"),stylesArray:t,borderStyles:l,backgroundStyles:h}},"styles2String"),dn=i((r,t)=>{let{themeVariables:a,handDrawnSeed:s}=er(),{nodeBorder:l,mainBkg:h}=a,{stylesMap:f}=o2(r);return Object.assign({roughness:.7,fill:f.get("fill")||h,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:f.get("stroke")||l,seed:s,strokeWidth:f.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:W9n(f.get("stroke-dasharray"))},t)},"userNodeOverrides"),W9n=i(r=>{if(!r)return[0,0];let t=r.trim().split(/\s+/).map(Number);if(t.length===1){let l=isNaN(t[0])?0:t[0];return[l,l]}let a=isNaN(t[0])?0:t[0],s=isNaN(t[1])?0:t[1];return[a,s]},"getStrokeDashArray")});function sQe(r,t,a){if(r&&r.length){let[s,l]=t,h=Math.PI/180*a,f=Math.cos(h),d=Math.sin(h);for(let m of r){let[b,v]=m;m[0]=(b-s)*f-(v-l)*d+s,m[1]=(b-s)*d+(v-l)*f+l}}}function H9n(r,t){return r[0]===t[0]&&r[1]===t[1]}function q9n(r,t,a,s=1){let l=a,h=Math.max(t,.1),f=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,d=[0,0];if(l)for(let b of f)sQe(b,d,l);let m=(function(b,v,T){let C=[];for(let I of b){let N=[...I];H9n(N[0],N[N.length-1])||N.push([N[0][0],N[0][1]]),N.length>2&&C.push(N)}let E=[];v=Math.max(v,.1);let S=[];for(let I of C)for(let N=0;N<I.length-1;N++){let B=I[N],O=I[N+1];if(B[1]!==O[1]){let P=Math.min(B[1],O[1]);S.push({ymin:P,ymax:Math.max(B[1],O[1]),x:P===B[1]?B[0]:O[0],islope:(O[0]-B[0])/(O[1]-B[1])})}}if(S.sort(((I,N)=>I.ymin<N.ymin?-1:I.ymin>N.ymin?1:I.x<N.x?-1:I.x>N.x?1:I.ymax===N.ymax?0:(I.ymax-N.ymax)/Math.abs(I.ymax-N.ymax))),!S.length)return E;let R=[],L=S[0].ymin,_=0;for(;R.length||S.length;){if(S.length){let I=-1;for(let N=0;N<S.length&&!(S[N].ymin>L);N++)I=N;S.splice(0,I+1).forEach((N=>{R.push({s:L,edge:N})}))}if(R=R.filter((I=>!(I.edge.ymax<=L))),R.sort(((I,N)=>I.edge.x===N.edge.x?0:(I.edge.x-N.edge.x)/Math.abs(I.edge.x-N.edge.x))),(T!==1||_%v==0)&&R.length>1)for(let I=0;I<R.length;I+=2){let N=I+1;if(N>=R.length)break;let B=R[I].edge,O=R[N].edge;E.push([[Math.round(B.x),L],[Math.round(O.x),L]])}L+=T,R.forEach((I=>{I.edge.x=I.edge.x+T*I.edge.islope})),_++}return E})(f,h,s);if(l){for(let b of f)sQe(b,d,-l);(function(b,v,T){let C=[];b.forEach((E=>C.push(...E))),sQe(C,v,T)})(m,d,-l)}return m}function Mre(r,t){var a;let s=t.hachureAngle+90,l=t.hachureGap;l<0&&(l=4*t.strokeWidth),l=Math.round(Math.max(l,.1));let h=1;return t.roughness>=1&&(((a=t.randomizer)===null||a===void 0?void 0:a.next())||Math.random())>.7&&(h=l),q9n(r,l,s,h||1)}function vwe(r){let t=r[0],a=r[1];return Math.sqrt(Math.pow(t[0]-a[0],2)+Math.pow(t[1]-a[1],2))}function lQe(r,t){return r.type===t}function TQe(r){let t=[],a=(function(f){let d=new Array;for(;f!=="";)if(f.match(/^([ \t\r\n,]+)/))f=f.substr(RegExp.$1.length);else if(f.match(/^([aAcChHlLmMqQsStTvVzZ])/))d[d.length]={type:Y9n,text:RegExp.$1},f=f.substr(RegExp.$1.length);else{if(!f.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];d[d.length]={type:oQe,text:`${parseFloat(RegExp.$1)}`},f=f.substr(RegExp.$1.length)}return d[d.length]={type:m0r,text:""},d})(r),s="BOD",l=0,h=a[l];for(;!lQe(h,m0r);){let f=0,d=[];if(s==="BOD"){if(h.text!=="M"&&h.text!=="m")return TQe("M0,0"+r);l++,f=hwe[h.text],s=h.text}else lQe(h,oQe)?f=hwe[s]:(l++,f=hwe[h.text],s=h.text);if(!(l+f<a.length))throw new Error("Path data ended short");for(let m=l;m<l+f;m++){let b=a[m];if(!lQe(b,oQe))throw new Error("Param not a number: "+s+","+b.text);d[d.length]=+b.text}if(typeof hwe[s]!="number")throw new Error("Bad segment: "+s);{let m={key:s,data:d};t.push(m),l+=f,h=a[l],s==="M"&&(s="L"),s==="m"&&(s="l")}}return t}function C0r(r){let t=0,a=0,s=0,l=0,h=[];for(let{key:f,data:d}of r)switch(f){case"M":h.push({key:"M",data:[...d]}),[t,a]=d,[s,l]=d;break;case"m":t+=d[0],a+=d[1],h.push({key:"M",data:[t,a]}),s=t,l=a;break;case"L":h.push({key:"L",data:[...d]}),[t,a]=d;break;case"l":t+=d[0],a+=d[1],h.push({key:"L",data:[t,a]});break;case"C":h.push({key:"C",data:[...d]}),t=d[4],a=d[5];break;case"c":{let m=d.map(((b,v)=>v%2?b+a:b+t));h.push({key:"C",data:m}),t=m[4],a=m[5];break}case"Q":h.push({key:"Q",data:[...d]}),t=d[2],a=d[3];break;case"q":{let m=d.map(((b,v)=>v%2?b+a:b+t));h.push({key:"Q",data:m}),t=m[2],a=m[3];break}case"A":h.push({key:"A",data:[...d]}),t=d[5],a=d[6];break;case"a":t+=d[5],a+=d[6],h.push({key:"A",data:[d[0],d[1],d[2],d[3],d[4],t,a]});break;case"H":h.push({key:"H",data:[...d]}),t=d[0];break;case"h":t+=d[0],h.push({key:"H",data:[t]});break;case"V":h.push({key:"V",data:[...d]}),a=d[0];break;case"v":a+=d[0],h.push({key:"V",data:[a]});break;case"S":h.push({key:"S",data:[...d]}),t=d[2],a=d[3];break;case"s":{let m=d.map(((b,v)=>v%2?b+a:b+t));h.push({key:"S",data:m}),t=m[2],a=m[3];break}case"T":h.push({key:"T",data:[...d]}),t=d[0],a=d[1];break;case"t":t+=d[0],a+=d[1],h.push({key:"T",data:[t,a]});break;case"Z":case"z":h.push({key:"Z",data:[]}),t=s,a=l}return h}function E0r(r){let t=[],a="",s=0,l=0,h=0,f=0,d=0,m=0;for(let{key:b,data:v}of r){switch(b){case"M":t.push({key:"M",data:[...v]}),[s,l]=v,[h,f]=v;break;case"C":t.push({key:"C",data:[...v]}),s=v[4],l=v[5],d=v[2],m=v[3];break;case"L":t.push({key:"L",data:[...v]}),[s,l]=v;break;case"H":s=v[0],t.push({key:"L",data:[s,l]});break;case"V":l=v[0],t.push({key:"L",data:[s,l]});break;case"S":{let T=0,C=0;a==="C"||a==="S"?(T=s+(s-d),C=l+(l-m)):(T=s,C=l),t.push({key:"C",data:[T,C,...v]}),d=v[0],m=v[1],s=v[2],l=v[3];break}case"T":{let[T,C]=v,E=0,S=0;a==="Q"||a==="T"?(E=s+(s-d),S=l+(l-m)):(E=s,S=l);let R=s+2*(E-s)/3,L=l+2*(S-l)/3,_=T+2*(E-T)/3,I=C+2*(S-C)/3;t.push({key:"C",data:[R,L,_,I,T,C]}),d=E,m=S,s=T,l=C;break}case"Q":{let[T,C,E,S]=v,R=s+2*(T-s)/3,L=l+2*(C-l)/3,_=E+2*(T-E)/3,I=S+2*(C-S)/3;t.push({key:"C",data:[R,L,_,I,E,S]}),d=T,m=C,s=E,l=S;break}case"A":{let T=Math.abs(v[0]),C=Math.abs(v[1]),E=v[2],S=v[3],R=v[4],L=v[5],_=v[6];T===0||C===0?(t.push({key:"C",data:[s,l,L,_,L,_]}),s=L,l=_):(s!==L||l!==_)&&(S0r(s,l,L,_,T,C,E,S,R).forEach((function(I){t.push({key:"C",data:I})})),s=L,l=_);break}case"Z":t.push({key:"Z",data:[]}),s=h,l=f}a=b}return t}function _re(r,t,a){return[r*Math.cos(a)-t*Math.sin(a),r*Math.sin(a)+t*Math.cos(a)]}function S0r(r,t,a,s,l,h,f,d,m,b){let v=(T=f,Math.PI*T/180);var T;let C=[],E=0,S=0,R=0,L=0;if(b)[E,S,R,L]=b;else{[r,t]=_re(r,t,-v),[a,s]=_re(a,s,-v);let H=(r-a)/2,re=(t-s)/2,Z=H*H/(l*l)+re*re/(h*h);Z>1&&(Z=Math.sqrt(Z),l*=Z,h*=Z);let X=l*l,te=h*h,U=X*te-X*re*re-te*H*H,ne=X*re*re+te*H*H,se=(d===m?-1:1)*Math.sqrt(Math.abs(U/ne));R=se*l*re/h+(r+a)/2,L=se*-h*H/l+(t+s)/2,E=Math.asin(parseFloat(((t-L)/h).toFixed(9))),S=Math.asin(parseFloat(((s-L)/h).toFixed(9))),r<R&&(E=Math.PI-E),a<R&&(S=Math.PI-S),E<0&&(E=2*Math.PI+E),S<0&&(S=2*Math.PI+S),m&&E>S&&(E-=2*Math.PI),!m&&S>E&&(S-=2*Math.PI)}let _=S-E;if(Math.abs(_)>120*Math.PI/180){let H=S,re=a,Z=s;S=m&&S>E?E+120*Math.PI/180*1:E+120*Math.PI/180*-1,C=S0r(a=R+l*Math.cos(S),s=L+h*Math.sin(S),re,Z,l,h,f,0,m,[S,H,R,L])}_=S-E;let I=Math.cos(E),N=Math.sin(E),B=Math.cos(S),O=Math.sin(S),P=Math.tan(_/4),$=4/3*l*P,V=4/3*h*P,Y=[r,t],Q=[r+$*N,t-V*I],q=[a+$*O,s-V*B],W=[a,s];if(Q[0]=2*Y[0]-Q[0],Q[1]=2*Y[1]-Q[1],b)return[Q,q,W].concat(C);{C=[Q,q,W].concat(C);let H=[];for(let re=0;re<C.length;re+=3){let Z=_re(C[re][0],C[re][1],v),X=_re(C[re+1][0],C[re+1][1],v),te=_re(C[re+2][0],C[re+2][1],v);H.push([Z[0],Z[1],X[0],X[1],te[0],te[1]])}return H}}function A0r(r,t,a,s,l){return{type:"path",ops:o_(r,t,a,s,l)}}function pwe(r,t,a){let s=(r||[]).length;if(s>2){let l=[];for(let h=0;h<s-1;h++)l.push(...o_(r[h][0],r[h][1],r[h+1][0],r[h+1][1],a));return t&&l.push(...o_(r[s-1][0],r[s-1][1],r[0][0],r[0][1],a)),{type:"path",ops:l}}return s===2?A0r(r[0][0],r[0][1],r[1][0],r[1][1],a):{type:"path",ops:[]}}function K9n(r,t,a,s,l){return(function(h,f){return pwe(h,!0,f)})([[r,t],[r+a,t],[r+a,t+s],[r,t+s]],l)}function y0r(r,t){if(r.length){let a=typeof r[0][0]=="number"?[r]:r,s=fwe(a[0],1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:fwe(a[0],1.5*(1+.22*t.roughness),w0r(t));for(let h=1;h<a.length;h++){let f=a[h];if(f.length){let d=fwe(f,1*(1+.2*t.roughness),t),m=t.disableMultiStroke?[]:fwe(f,1.5*(1+.22*t.roughness),w0r(t));for(let b of d)b.op!=="move"&&s.push(b);for(let b of m)b.op!=="move"&&l.push(b)}}return{type:"path",ops:s.concat(l)}}return{type:"path",ops:[]}}function R0r(r,t,a){let s=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(t/2,2))/2)),l=Math.ceil(Math.max(a.curveStepCount,a.curveStepCount/Math.sqrt(200)*s)),h=2*Math.PI/l,f=Math.abs(r/2),d=Math.abs(t/2),m=1-a.curveFitting;return f+=go(f*m,a),d+=go(d*m,a),{increment:h,rx:f,ry:d}}function yQe(r,t,a,s){let[l,h]=x0r(s.increment,r,t,s.rx,s.ry,1,s.increment*mwe(.1,mwe(.4,1,a),a),a),f=ywe(l,null,a);if(!a.disableMultiStroke&&a.roughness!==0){let[d]=x0r(s.increment,r,t,s.rx,s.ry,1.5,0,a),m=ywe(d,null,a);f=f.concat(m)}return{estimatedPoints:h,opset:{type:"path",ops:f}}}function b0r(r,t,a,s,l,h,f,d,m){let b=r,v=t,T=Math.abs(a/2),C=Math.abs(s/2);T+=go(.01*T,m),C+=go(.01*C,m);let E=l,S=h;for(;E<0;)E+=2*Math.PI,S+=2*Math.PI;S-E>2*Math.PI&&(E=0,S=2*Math.PI);let R=2*Math.PI/m.curveStepCount,L=Math.min(R/2,(S-E)/2),_=T0r(L,b,v,T,C,E,S,1,m);if(!m.disableMultiStroke){let I=T0r(L,b,v,T,C,E,S,1.5,m);_.push(...I)}return f&&(d?_.push(...o_(b,v,b+T*Math.cos(E),v+C*Math.sin(E),m),...o_(b,v,b+T*Math.cos(S),v+C*Math.sin(S),m)):_.push({op:"lineTo",data:[b,v]},{op:"lineTo",data:[b+T*Math.cos(E),v+C*Math.sin(E)]})),{type:"path",ops:_}}function v0r(r,t){let a=E0r(C0r(TQe(r))),s=[],l=[0,0],h=[0,0];for(let{key:f,data:d}of a)switch(f){case"M":h=[d[0],d[1]],l=[d[0],d[1]];break;case"L":s.push(...o_(h[0],h[1],d[0],d[1],t)),h=[d[0],d[1]];break;case"C":{let[m,b,v,T,C,E]=d;s.push(...J9n(m,b,v,T,C,E,h,t)),h=[C,E];break}case"Z":s.push(...o_(h[0],h[1],l[0],l[1],t)),h=[l[0],l[1]]}return{type:"path",ops:s}}function cQe(r,t){let a=[];for(let s of r)if(s.length){let l=t.maxRandomnessOffset||0,h=s.length;if(h>2){a.push({op:"move",data:[s[0][0]+go(l,t),s[0][1]+go(l,t)]});for(let f=1;f<h;f++)a.push({op:"lineTo",data:[s[f][0]+go(l,t),s[f][1]+go(l,t)]})}}return{type:"fillPath",ops:a}}function iU(r,t){return(function(a,s){let l=a.fillStyle||"hachure";if(!l2[l])switch(l){case"zigzag":l2[l]||(l2[l]=new hQe(s));break;case"cross-hatch":l2[l]||(l2[l]=new fQe(s));break;case"dots":l2[l]||(l2[l]=new dQe(s));break;case"dashed":l2[l]||(l2[l]=new pQe(s));break;case"zigzag-line":l2[l]||(l2[l]=new gQe(s));break;default:l="hachure",l2[l]||(l2[l]=new Ire(s))}return l2[l]})(t,X9n).fillPolygons(r,t)}function w0r(r){let t=Object.assign({},r);return t.randomizer=void 0,r.seed&&(t.seed=r.seed+1),t}function L0r(r){return r.randomizer||(r.randomizer=new mQe(r.seed||0)),r.randomizer.next()}function mwe(r,t,a,s=1){return a.roughness*s*(L0r(a)*(t-r)+r)}function go(r,t,a=1){return mwe(-r,r,t,a)}function o_(r,t,a,s,l,h=!1){let f=h?l.disableMultiStrokeFill:l.disableMultiStroke,d=bQe(r,t,a,s,l,!0,!1);if(f)return d;let m=bQe(r,t,a,s,l,!0,!0);return d.concat(m)}function bQe(r,t,a,s,l,h,f){let d=Math.pow(r-a,2)+Math.pow(t-s,2),m=Math.sqrt(d),b=1;b=m<200?1:m>500?.4:-.0016668*m+1.233334;let v=l.maxRandomnessOffset||0;v*v*100>d&&(v=m/10);let T=v/2,C=.2+.2*L0r(l),E=l.bowing*l.maxRandomnessOffset*(s-t)/200,S=l.bowing*l.maxRandomnessOffset*(r-a)/200;E=go(E,l,b),S=go(S,l,b);let R=[],L=i(()=>go(T,l,b),"M"),_=i(()=>go(v,l,b),"k"),I=l.preserveVertices;return h&&(f?R.push({op:"move",data:[r+(I?0:L()),t+(I?0:L())]}):R.push({op:"move",data:[r+(I?0:go(v,l,b)),t+(I?0:go(v,l,b))]})),f?R.push({op:"bcurveTo",data:[E+r+(a-r)*C+L(),S+t+(s-t)*C+L(),E+r+2*(a-r)*C+L(),S+t+2*(s-t)*C+L(),a+(I?0:L()),s+(I?0:L())]}):R.push({op:"bcurveTo",data:[E+r+(a-r)*C+_(),S+t+(s-t)*C+_(),E+r+2*(a-r)*C+_(),S+t+2*(s-t)*C+_(),a+(I?0:_()),s+(I?0:_())]}),R}function fwe(r,t,a){if(!r.length)return[];let s=[];s.push([r[0][0]+go(t,a),r[0][1]+go(t,a)]),s.push([r[0][0]+go(t,a),r[0][1]+go(t,a)]);for(let l=1;l<r.length;l++)s.push([r[l][0]+go(t,a),r[l][1]+go(t,a)]),l===r.length-1&&s.push([r[l][0]+go(t,a),r[l][1]+go(t,a)]);return ywe(s,null,a)}function ywe(r,t,a){let s=r.length,l=[];if(s>3){let h=[],f=1-a.curveTightness;l.push({op:"move",data:[r[1][0],r[1][1]]});for(let d=1;d+2<s;d++){let m=r[d];h[0]=[m[0],m[1]],h[1]=[m[0]+(f*r[d+1][0]-f*r[d-1][0])/6,m[1]+(f*r[d+1][1]-f*r[d-1][1])/6],h[2]=[r[d+1][0]+(f*r[d][0]-f*r[d+2][0])/6,r[d+1][1]+(f*r[d][1]-f*r[d+2][1])/6],h[3]=[r[d+1][0],r[d+1][1]],l.push({op:"bcurveTo",data:[h[1][0],h[1][1],h[2][0],h[2][1],h[3][0],h[3][1]]})}if(t&&t.length===2){let d=a.maxRandomnessOffset;l.push({op:"lineTo",data:[t[0]+go(d,a),t[1]+go(d,a)]})}}else s===3?(l.push({op:"move",data:[r[1][0],r[1][1]]}),l.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):s===2&&l.push(...bQe(r[0][0],r[0][1],r[1][0],r[1][1],a,!0,!0));return l}function x0r(r,t,a,s,l,h,f,d){let m=[],b=[];if(d.roughness===0){r/=4,b.push([t+s*Math.cos(-r),a+l*Math.sin(-r)]);for(let v=0;v<=2*Math.PI;v+=r){let T=[t+s*Math.cos(v),a+l*Math.sin(v)];m.push(T),b.push(T)}b.push([t+s*Math.cos(0),a+l*Math.sin(0)]),b.push([t+s*Math.cos(r),a+l*Math.sin(r)])}else{let v=go(.5,d)-Math.PI/2;b.push([go(h,d)+t+.9*s*Math.cos(v-r),go(h,d)+a+.9*l*Math.sin(v-r)]);let T=2*Math.PI+v-.01;for(let C=v;C<T;C+=r){let E=[go(h,d)+t+s*Math.cos(C),go(h,d)+a+l*Math.sin(C)];m.push(E),b.push(E)}b.push([go(h,d)+t+s*Math.cos(v+2*Math.PI+.5*f),go(h,d)+a+l*Math.sin(v+2*Math.PI+.5*f)]),b.push([go(h,d)+t+.98*s*Math.cos(v+f),go(h,d)+a+.98*l*Math.sin(v+f)]),b.push([go(h,d)+t+.9*s*Math.cos(v+.5*f),go(h,d)+a+.9*l*Math.sin(v+.5*f)])}return[b,m]}function T0r(r,t,a,s,l,h,f,d,m){let b=h+go(.1,m),v=[];v.push([go(d,m)+t+.9*s*Math.cos(b-r),go(d,m)+a+.9*l*Math.sin(b-r)]);for(let T=b;T<=f;T+=r)v.push([go(d,m)+t+s*Math.cos(T),go(d,m)+a+l*Math.sin(T)]);return v.push([t+s*Math.cos(f),a+l*Math.sin(f)]),v.push([t+s*Math.cos(f),a+l*Math.sin(f)]),ywe(v,null,m)}function J9n(r,t,a,s,l,h,f,d){let m=[],b=[d.maxRandomnessOffset||1,(d.maxRandomnessOffset||1)+.3],v=[0,0],T=d.disableMultiStroke?1:2,C=d.preserveVertices;for(let E=0;E<T;E++)E===0?m.push({op:"move",data:[f[0],f[1]]}):m.push({op:"move",data:[f[0]+(C?0:go(b[0],d)),f[1]+(C?0:go(b[0],d))]}),v=C?[l,h]:[l+go(b[E],d),h+go(b[E],d)],m.push({op:"bcurveTo",data:[r+go(b[E],d),t+go(b[E],d),a+go(b[E],d),s+go(b[E],d),v[0],v[1]]});return m}function Dre(r){return[...r]}function k0r(r,t=0){let a=r.length;if(a<3)throw new Error("A curve must have at least three points.");let s=[];if(a===3)s.push(Dre(r[0]),Dre(r[1]),Dre(r[2]),Dre(r[2]));else{let l=[];l.push(r[0],r[0]);for(let d=1;d<r.length;d++)l.push(r[d]),d===r.length-1&&l.push(r[d]);let h=[],f=1-t;s.push(Dre(l[0]));for(let d=1;d+2<l.length;d++){let m=l[d];h[0]=[m[0],m[1]],h[1]=[m[0]+(f*l[d+1][0]-f*l[d-1][0])/6,m[1]+(f*l[d+1][1]-f*l[d-1][1])/6],h[2]=[l[d+1][0]+(f*l[d][0]-f*l[d+2][0])/6,l[d+1][1]+(f*l[d][1]-f*l[d+2][1])/6],h[3]=[l[d+1][0],l[d+1][1]],s.push(h[1],h[2],h[3])}}return s}function gwe(r,t){return Math.pow(r[0]-t[0],2)+Math.pow(r[1]-t[1],2)}function Q9n(r,t,a){let s=gwe(t,a);if(s===0)return gwe(r,t);let l=((r[0]-t[0])*(a[0]-t[0])+(r[1]-t[1])*(a[1]-t[1]))/s;return l=Math.max(0,Math.min(1,l)),gwe(r,OO(t,a,l))}function OO(r,t,a){return[r[0]+(t[0]-r[0])*a,r[1]+(t[1]-r[1])*a]}function vQe(r,t,a,s){let l=s||[];if((function(d,m){let b=d[m+0],v=d[m+1],T=d[m+2],C=d[m+3],E=3*v[0]-2*b[0]-C[0];E*=E;let S=3*v[1]-2*b[1]-C[1];S*=S;let R=3*T[0]-2*C[0]-b[0];R*=R;let L=3*T[1]-2*C[1]-b[1];return L*=L,E<R&&(E=R),S<L&&(S=L),E+S})(r,t)<a){let d=r[t+0];l.length?(h=l[l.length-1],f=d,Math.sqrt(gwe(h,f))>1&&l.push(d)):l.push(d),l.push(r[t+3])}else{let m=r[t+0],b=r[t+1],v=r[t+2],T=r[t+3],C=OO(m,b,.5),E=OO(b,v,.5),S=OO(v,T,.5),R=OO(C,E,.5),L=OO(E,S,.5),_=OO(R,L,.5);vQe([m,C,R,_],0,a,l),vQe([_,L,S,T],0,a,l)}var h,f;return l}function Z9n(r,t){return bwe(r,0,r.length,t)}function bwe(r,t,a,s,l){let h=l||[],f=r[t],d=r[a-1],m=0,b=1;for(let v=t+1;v<a-1;++v){let T=Q9n(r[v],f,d);T>m&&(m=T,b=v)}return Math.sqrt(m)>s?(bwe(r,t,b+1,s,h),bwe(r,b,a,s,h)):(h.length||h.push(f),h.push(d)),h}function uQe(r,t=.15,a){let s=[],l=(r.length-1)/3;for(let h=0;h<l;h++)vQe(r,3*h,t,s);return a&&a>0?bwe(s,0,s.length,a):s}var Ire,hQe,fQe,dQe,pQe,gQe,l2,mQe,Y9n,oQe,m0r,hwe,X9n,rx,aU,wQe,dwe,xQe,en,wa=ae(()=>{"use strict";i(sQe,"t");i(H9n,"e");i(q9n,"s");i(Mre,"n");Ire=class{static{i(this,"o")}constructor(t){this.helper=t}fillPolygons(t,a){return this._fillPolygons(t,a)}_fillPolygons(t,a){let s=Mre(t,a);return{type:"fillSketch",ops:this.renderLines(s,a)}}renderLines(t,a){let s=[];for(let l of t)s.push(...this.helper.doubleLineOps(l[0][0],l[0][1],l[1][0],l[1][1],a));return s}};i(vwe,"a");hQe=class extends Ire{static{i(this,"h")}fillPolygons(t,a){let s=a.hachureGap;s<0&&(s=4*a.strokeWidth),s=Math.max(s,.1);let l=Mre(t,Object.assign({},a,{hachureGap:s})),h=Math.PI/180*a.hachureAngle,f=[],d=.5*s*Math.cos(h),m=.5*s*Math.sin(h);for(let[b,v]of l)vwe([b,v])&&f.push([[b[0]-d,b[1]+m],[...v]],[[b[0]+d,b[1]-m],[...v]]);return{type:"fillSketch",ops:this.renderLines(f,a)}}},fQe=class extends Ire{static{i(this,"r")}fillPolygons(t,a){let s=this._fillPolygons(t,a),l=Object.assign({},a,{hachureAngle:a.hachureAngle+90}),h=this._fillPolygons(t,l);return s.ops=s.ops.concat(h.ops),s}},dQe=class{static{i(this,"i")}constructor(t){this.helper=t}fillPolygons(t,a){let s=Mre(t,a=Object.assign({},a,{hachureAngle:0}));return this.dotsOnLines(s,a)}dotsOnLines(t,a){let s=[],l=a.hachureGap;l<0&&(l=4*a.strokeWidth),l=Math.max(l,.1);let h=a.fillWeight;h<0&&(h=a.strokeWidth/2);let f=l/4;for(let d of t){let m=vwe(d),b=m/l,v=Math.ceil(b)-1,T=m-v*l,C=(d[0][0]+d[1][0])/2-l/4,E=Math.min(d[0][1],d[1][1]);for(let S=0;S<v;S++){let R=E+T+S*l,L=C-f+2*Math.random()*f,_=R-f+2*Math.random()*f,I=this.helper.ellipse(L,_,h,h,a);s.push(...I.ops)}}return{type:"fillSketch",ops:s}}},pQe=class{static{i(this,"c")}constructor(t){this.helper=t}fillPolygons(t,a){let s=Mre(t,a);return{type:"fillSketch",ops:this.dashedLine(s,a)}}dashedLine(t,a){let s=a.dashOffset<0?a.hachureGap<0?4*a.strokeWidth:a.hachureGap:a.dashOffset,l=a.dashGap<0?a.hachureGap<0?4*a.strokeWidth:a.hachureGap:a.dashGap,h=[];return t.forEach((f=>{let d=vwe(f),m=Math.floor(d/(s+l)),b=(d+l-m*(s+l))/2,v=f[0],T=f[1];v[0]>T[0]&&(v=f[1],T=f[0]);let C=Math.atan((T[1]-v[1])/(T[0]-v[0]));for(let E=0;E<m;E++){let S=E*(s+l),R=S+s,L=[v[0]+S*Math.cos(C)+b*Math.cos(C),v[1]+S*Math.sin(C)+b*Math.sin(C)],_=[v[0]+R*Math.cos(C)+b*Math.cos(C),v[1]+R*Math.sin(C)+b*Math.sin(C)];h.push(...this.helper.doubleLineOps(L[0],L[1],_[0],_[1],a))}})),h}},gQe=class{static{i(this,"l")}constructor(t){this.helper=t}fillPolygons(t,a){let s=a.hachureGap<0?4*a.strokeWidth:a.hachureGap,l=a.zigzagOffset<0?s:a.zigzagOffset,h=Mre(t,a=Object.assign({},a,{hachureGap:s+l}));return{type:"fillSketch",ops:this.zigzagLines(h,l,a)}}zigzagLines(t,a,s){let l=[];return t.forEach((h=>{let f=vwe(h),d=Math.round(f/(2*a)),m=h[0],b=h[1];m[0]>b[0]&&(m=h[1],b=h[0]);let v=Math.atan((b[1]-m[1])/(b[0]-m[0]));for(let T=0;T<d;T++){let C=2*T*a,E=2*(T+1)*a,S=Math.sqrt(2*Math.pow(a,2)),R=[m[0]+C*Math.cos(v),m[1]+C*Math.sin(v)],L=[m[0]+E*Math.cos(v),m[1]+E*Math.sin(v)],_=[R[0]+S*Math.cos(v+Math.PI/4),R[1]+S*Math.sin(v+Math.PI/4)];l.push(...this.helper.doubleLineOps(R[0],R[1],_[0],_[1],s),...this.helper.doubleLineOps(_[0],_[1],L[0],L[1],s))}})),l}},l2={},mQe=class{static{i(this,"p")}constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},Y9n=0,oQe=1,m0r=2,hwe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};i(lQe,"k");i(TQe,"b");i(C0r,"y");i(E0r,"m");i(_re,"w");i(S0r,"x");X9n={randOffset:i(function(r,t){return go(r,t)},"randOffset"),randOffsetWithRange:i(function(r,t,a){return mwe(r,t,a)},"randOffsetWithRange"),ellipse:i(function(r,t,a,s,l){let h=R0r(a,s,l);return yQe(r,t,l,h).opset},"ellipse"),doubleLineOps:i(function(r,t,a,s,l){return o_(r,t,a,s,l,!0)},"doubleLineOps")};i(A0r,"v");i(pwe,"S");i(K9n,"O");i(y0r,"L");i(R0r,"T");i(yQe,"D");i(b0r,"A");i(v0r,"_");i(cQe,"I");i(iU,"C");i(w0r,"z");i(L0r,"W");i(mwe,"E");i(go,"G");i(o_,"$");i(bQe,"R");i(fwe,"j");i(ywe,"q");i(x0r,"F");i(T0r,"V");i(J9n,"Z");i(Dre,"Q");i(k0r,"H");i(gwe,"N");i(Q9n,"B");i(OO,"J");i(vQe,"K");i(Z9n,"U");i(bwe,"X");i(uQe,"Y");rx="none",aU=class{static{i(this,"et")}constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,a,s){return{shape:t,sets:a||[],options:s||this.defaultOptions}}line(t,a,s,l,h){let f=this._o(h);return this._d("line",[A0r(t,a,s,l,f)],f)}rectangle(t,a,s,l,h){let f=this._o(h),d=[],m=K9n(t,a,s,l,f);if(f.fill){let b=[[t,a],[t+s,a],[t+s,a+l],[t,a+l]];f.fillStyle==="solid"?d.push(cQe([b],f)):d.push(iU([b],f))}return f.stroke!==rx&&d.push(m),this._d("rectangle",d,f)}ellipse(t,a,s,l,h){let f=this._o(h),d=[],m=R0r(s,l,f),b=yQe(t,a,f,m);if(f.fill)if(f.fillStyle==="solid"){let v=yQe(t,a,f,m).opset;v.type="fillPath",d.push(v)}else d.push(iU([b.estimatedPoints],f));return f.stroke!==rx&&d.push(b.opset),this._d("ellipse",d,f)}circle(t,a,s,l){let h=this.ellipse(t,a,s,s,l);return h.shape="circle",h}linearPath(t,a){let s=this._o(a);return this._d("linearPath",[pwe(t,!1,s)],s)}arc(t,a,s,l,h,f,d=!1,m){let b=this._o(m),v=[],T=b0r(t,a,s,l,h,f,d,!0,b);if(d&&b.fill)if(b.fillStyle==="solid"){let C=Object.assign({},b);C.disableMultiStroke=!0;let E=b0r(t,a,s,l,h,f,!0,!1,C);E.type="fillPath",v.push(E)}else v.push((function(C,E,S,R,L,_,I){let N=C,B=E,O=Math.abs(S/2),P=Math.abs(R/2);O+=go(.01*O,I),P+=go(.01*P,I);let $=L,V=_;for(;$<0;)$+=2*Math.PI,V+=2*Math.PI;V-$>2*Math.PI&&($=0,V=2*Math.PI);let Y=(V-$)/I.curveStepCount,Q=[];for(let q=$;q<=V;q+=Y)Q.push([N+O*Math.cos(q),B+P*Math.sin(q)]);return Q.push([N+O*Math.cos(V),B+P*Math.sin(V)]),Q.push([N,B]),iU([Q],I)})(t,a,s,l,h,f,b));return b.stroke!==rx&&v.push(T),this._d("arc",v,b)}curve(t,a){let s=this._o(a),l=[],h=y0r(t,s);if(s.fill&&s.fill!==rx)if(s.fillStyle==="solid"){let f=y0r(t,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));l.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else{let f=[],d=t;if(d.length){let m=typeof d[0][0]=="number"?[d]:d;for(let b of m)b.length<3?f.push(...b):b.length===3?f.push(...uQe(k0r([b[0],b[0],b[1],b[2]]),10,(1+s.roughness)/2)):f.push(...uQe(k0r(b),10,(1+s.roughness)/2))}f.length&&l.push(iU([f],s))}return s.stroke!==rx&&l.push(h),this._d("curve",l,s)}polygon(t,a){let s=this._o(a),l=[],h=pwe(t,!0,s);return s.fill&&(s.fillStyle==="solid"?l.push(cQe([t],s)):l.push(iU([t],s))),s.stroke!==rx&&l.push(h),this._d("polygon",l,s)}path(t,a){let s=this._o(a),l=[];if(!t)return this._d("path",l,s);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let h=s.fill&&s.fill!=="transparent"&&s.fill!==rx,f=s.stroke!==rx,d=!!(s.simplification&&s.simplification<1),m=(function(v,T,C){let E=E0r(C0r(TQe(v))),S=[],R=[],L=[0,0],_=[],I=i(()=>{_.length>=4&&R.push(...uQe(_,T)),_=[]},"i"),N=i(()=>{I(),R.length&&(S.push(R),R=[])},"c");for(let{key:O,data:P}of E)switch(O){case"M":N(),L=[P[0],P[1]],R.push(L);break;case"L":I(),R.push([P[0],P[1]]);break;case"C":if(!_.length){let $=R.length?R[R.length-1]:L;_.push([$[0],$[1]])}_.push([P[0],P[1]]),_.push([P[2],P[3]]),_.push([P[4],P[5]]);break;case"Z":I(),R.push([L[0],L[1]])}if(N(),!C)return S;let B=[];for(let O of S){let P=Z9n(O,C);P.length&&B.push(P)}return B})(t,1,d?4-4*(s.simplification||1):(1+s.roughness)/2),b=v0r(t,s);if(h)if(s.fillStyle==="solid")if(m.length===1){let v=v0r(t,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));l.push({type:"fillPath",ops:this._mergedShape(v.ops)})}else l.push(cQe(m,s));else l.push(iU(m,s));return f&&(d?m.forEach((v=>{l.push(pwe(v,!1,s))})):l.push(b)),this._d("path",l,s)}opsToPath(t,a){let s="";for(let l of t.ops){let h=typeof a=="number"&&a>=0?l.data.map((f=>+f.toFixed(a))):l.data;switch(l.op){case"move":s+=`M${h[0]} ${h[1]} `;break;case"bcurveTo":s+=`C${h[0]} ${h[1]}, ${h[2]} ${h[3]}, ${h[4]} ${h[5]} `;break;case"lineTo":s+=`L${h[0]} ${h[1]} `}}return s.trim()}toPaths(t){let a=t.sets||[],s=t.options||this.defaultOptions,l=[];for(let h of a){let f=null;switch(h.type){case"path":f={d:this.opsToPath(h),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:rx};break;case"fillPath":f={d:this.opsToPath(h),stroke:rx,strokeWidth:0,fill:s.fill||rx};break;case"fillSketch":f=this.fillSketch(h,s)}f&&l.push(f)}return l}fillSketch(t,a){let s=a.fillWeight;return s<0&&(s=a.strokeWidth/2),{d:this.opsToPath(t),stroke:a.fill||rx,strokeWidth:s,fill:rx}}_mergedShape(t){return t.filter(((a,s)=>s===0||a.op!=="move"))}},wQe=class{static{i(this,"st")}constructor(t,a){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new aU(a)}draw(t){let a=t.sets||[],s=t.options||this.getDefaultOptions(),l=this.ctx,h=t.options.fixedDecimalPlaceDigits;for(let f of a)switch(f.type){case"path":l.save(),l.strokeStyle=s.stroke==="none"?"transparent":s.stroke,l.lineWidth=s.strokeWidth,s.strokeLineDash&&l.setLineDash(s.strokeLineDash),s.strokeLineDashOffset&&(l.lineDashOffset=s.strokeLineDashOffset),this._drawToContext(l,f,h),l.restore();break;case"fillPath":{l.save(),l.fillStyle=s.fill||"";let d=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(l,f,h,d),l.restore();break}case"fillSketch":this.fillSketch(l,f,s)}}fillSketch(t,a,s){let l=s.fillWeight;l<0&&(l=s.strokeWidth/2),t.save(),s.fillLineDash&&t.setLineDash(s.fillLineDash),s.fillLineDashOffset&&(t.lineDashOffset=s.fillLineDashOffset),t.strokeStyle=s.fill||"",t.lineWidth=l,this._drawToContext(t,a,s.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,a,s,l="nonzero"){t.beginPath();for(let h of a.ops){let f=typeof s=="number"&&s>=0?h.data.map((d=>+d.toFixed(s))):h.data;switch(h.op){case"move":t.moveTo(f[0],f[1]);break;case"bcurveTo":t.bezierCurveTo(f[0],f[1],f[2],f[3],f[4],f[5]);break;case"lineTo":t.lineTo(f[0],f[1])}}a.type==="fillPath"?t.fill(l):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,a,s,l,h){let f=this.gen.line(t,a,s,l,h);return this.draw(f),f}rectangle(t,a,s,l,h){let f=this.gen.rectangle(t,a,s,l,h);return this.draw(f),f}ellipse(t,a,s,l,h){let f=this.gen.ellipse(t,a,s,l,h);return this.draw(f),f}circle(t,a,s,l){let h=this.gen.circle(t,a,s,l);return this.draw(h),h}linearPath(t,a){let s=this.gen.linearPath(t,a);return this.draw(s),s}polygon(t,a){let s=this.gen.polygon(t,a);return this.draw(s),s}arc(t,a,s,l,h,f,d=!1,m){let b=this.gen.arc(t,a,s,l,h,f,d,m);return this.draw(b),b}curve(t,a){let s=this.gen.curve(t,a);return this.draw(s),s}path(t,a){let s=this.gen.path(t,a);return this.draw(s),s}},dwe="http://www.w3.org/2000/svg",xQe=class{static{i(this,"ot")}constructor(t,a){this.svg=t,this.gen=new aU(a)}draw(t){let a=t.sets||[],s=t.options||this.getDefaultOptions(),l=this.svg.ownerDocument||window.document,h=l.createElementNS(dwe,"g"),f=t.options.fixedDecimalPlaceDigits;for(let d of a){let m=null;switch(d.type){case"path":m=l.createElementNS(dwe,"path"),m.setAttribute("d",this.opsToPath(d,f)),m.setAttribute("stroke",s.stroke),m.setAttribute("stroke-width",s.strokeWidth+""),m.setAttribute("fill","none"),s.strokeLineDash&&m.setAttribute("stroke-dasharray",s.strokeLineDash.join(" ").trim()),s.strokeLineDashOffset&&m.setAttribute("stroke-dashoffset",`${s.strokeLineDashOffset}`);break;case"fillPath":m=l.createElementNS(dwe,"path"),m.setAttribute("d",this.opsToPath(d,f)),m.setAttribute("stroke","none"),m.setAttribute("stroke-width","0"),m.setAttribute("fill",s.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||m.setAttribute("fill-rule","evenodd");break;case"fillSketch":m=this.fillSketch(l,d,s)}m&&h.appendChild(m)}return h}fillSketch(t,a,s){let l=s.fillWeight;l<0&&(l=s.strokeWidth/2);let h=t.createElementNS(dwe,"path");return h.setAttribute("d",this.opsToPath(a,s.fixedDecimalPlaceDigits)),h.setAttribute("stroke",s.fill||""),h.setAttribute("stroke-width",l+""),h.setAttribute("fill","none"),s.fillLineDash&&h.setAttribute("stroke-dasharray",s.fillLineDash.join(" ").trim()),s.fillLineDashOffset&&h.setAttribute("stroke-dashoffset",`${s.fillLineDashOffset}`),h}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,a){return this.gen.opsToPath(t,a)}line(t,a,s,l,h){let f=this.gen.line(t,a,s,l,h);return this.draw(f)}rectangle(t,a,s,l,h){let f=this.gen.rectangle(t,a,s,l,h);return this.draw(f)}ellipse(t,a,s,l,h){let f=this.gen.ellipse(t,a,s,l,h);return this.draw(f)}circle(t,a,s,l){let h=this.gen.circle(t,a,s,l);return this.draw(h)}linearPath(t,a){let s=this.gen.linearPath(t,a);return this.draw(s)}polygon(t,a){let s=this.gen.polygon(t,a);return this.draw(s)}arc(t,a,s,l,h,f,d=!1,m){let b=this.gen.arc(t,a,s,l,h,f,d,m);return this.draw(b)}curve(t,a){let s=this.gen.curve(t,a);return this.draw(s)}path(t,a){let s=this.gen.path(t,a);return this.draw(s)}},en={canvas:i((r,t)=>new wQe(r,t),"canvas"),svg:i((r,t)=>new xQe(r,t),"svg"),generator:i(r=>new aU(r),"generator"),newSeed:i(()=>aU.newSeed(),"newSeed")}});function _0r(r,t){let{labelStyles:a}=Gr(t);t.labelStyle=a;let s=Cn(t),l=s;s||(l="anchor");let h=r.insert("g").attr("class",l).attr("id",t.domId||t.id),f=1,{cssStyles:d}=t,m=en.svg(h),b=dn(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(b.roughness=0);let v=m.circle(0,0,f*2,b),T=h.insert(()=>v,":first-child");return T.attr("class","anchor").attr("style",Cc(d)),fn(t,T),t.intersect=function(C){return Pe.info("Circle intersect",t,f,C),Hr.circle(t,f,C)},h}var D0r=ae(()=>{"use strict";Yn();Yi();Ta();na();wa();Ma();i(_0r,"anchor")});function I0r(r,t,a,s,l,h,f){let m=(r+a)/2,b=(t+s)/2,v=Math.atan2(s-t,a-r),T=(a-r)/2,C=(s-t)/2,E=T/l,S=C/h,R=Math.sqrt(E**2+S**2);if(R>1)throw new Error("The given radii are too small to create an arc between the points.");let L=Math.sqrt(1-R**2),_=m+L*h*Math.sin(v)*(f?-1:1),I=b-L*l*Math.cos(v)*(f?-1:1),N=Math.atan2((t-I)/h,(r-_)/l),O=Math.atan2((s-I)/h,(a-_)/l)-N;f&&O<0&&(O+=2*Math.PI),!f&&O>0&&(O-=2*Math.PI);let P=[];for(let $=0;$<20;$++){let V=$/19,Y=N+V*O,Q=_+l*Math.cos(Y),q=I+h*Math.sin(Y);P.push({x:Q,y:q})}return P}function eIn(r,t,a){let[s,l]=[t,a].sort((h,f)=>f-h);return l*(1-Math.sqrt(1-(r/s/2)**2))}async function M0r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?12:l,d=i(Y=>Y+f,"calcTotalHeight"),m=i(Y=>{let Q=Y/2;return[Q/(2.5+Y/50),Q]},"calcEllipseRadius"),{shapeSvg:b,bbox:v}=await kn(r,t,Cn(t)),T=d(t?.height?t?.height:v.height),[C,E]=m(T),S=eIn(T,C,E),L=(t?.width?t?.width:v.width)+h*2+S-S,_=T,{cssStyles:I}=t,N=[{x:L/2,y:-_/2},{x:-L/2,y:-_/2},...I0r(-L/2,-_/2,-L/2,_/2,C,E,!1),{x:L/2,y:_/2},...I0r(L/2,_/2,L/2,-_/2,C,E,!0)],B=en.svg(b),O=dn(t,{});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");let P=ws(N),$=B.path(P,O),V=b.insert(()=>$,":first-child");return V.attr("class","basic label-container outer-path"),I&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",I),s&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",s),V.attr("transform",`translate(${C/2}, 0)`),fn(t,V),t.intersect=function(Y){return Hr.polygon(t,N,Y)},b}var N0r=ae(()=>{"use strict";Yi();Ta();na();wa();i(I0r,"generateArcPoints");i(eIn,"calculateArcSagitta");i(M0r,"bowTieRect")});async function O0r(r,t,{config:{themeVariables:a}}){let{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let{shapeSvg:h,bbox:f,label:d}=await kn(r,t,Cn(t)),m=a?.nodeBorder??a?.lineColor??"currentColor",b=t.padding??12,v=Math.max(f.width+b*2,t.width??0,80),T=Math.max(Math.min(v*.08,12),5),C=Math.max(f.height+b*2+T,t.height??0),E=-C/2+T,S=C/2,R=v*.72,L=[`M${-v/2},${E}`,`L${-R/2},${S}`,`A${R/2},${T} 0 0 0 ${R/2},${S}`,`L${v/2},${E}`,`A${v/2},${T} 0 0 0 ${-v/2},${E}`,"Z"].join(" "),{cssStyles:_}=t,I=h.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let V=en.svg(h).path(L,dn(t,{}));I.node()?.appendChild(V),_&&I.attr("style",_)}else I.append("path").attr("d",L).attr("style",l);I.append("ellipse").attr("cx",0).attr("cy",E).attr("rx",v/2).attr("ry",T).attr("style",`fill:none;stroke:${m};stroke-width:1px`),fn(t,I);let N=E+(S-E)/2;d.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${N-f.height/2-(f.y-(f.top??0))})`);let B=12,O=i(($,V,Y)=>Array.from({length:B+1},(Q,q)=>{let W=Math.PI-q*Math.PI/B;return{x:$*Math.cos(W),y:V+Y*T*Math.sin(W)}}),"arc"),P=[...O(v/2,E,-1),...O(R/2,S,1).reverse()];return t.intersect=function($){return Hr.polygon(t,P,$)},h}var P0r=ae(()=>{"use strict";Yi();Ta();na();wa();i(O0r,"bucket")});var Nd,M4=ae(()=>{"use strict";Nd=i((r,t,a,s,l)=>["M",r+l,t,"H",r+a-l,"A",l,l,0,0,1,r+a,t+l,"V",t+s-l,"A",l,l,0,0,1,r+a-l,t+s,"H",r+l,"A",l,l,0,0,1,r,t+s-l,"V",t+l,"A",l,l,0,0,1,r+l,t,"Z"].join(" "),"createRoundedRectPathD")});var Nre,tIn,rIn,E0,S0,nIn,Pg,lS,VT,yp,A0=ae(()=>{"use strict";Nre=new Set(["redux-color","redux-dark-color"]),tIn=12,rIn=64,E0=i(r=>Array.isArray(r)&&r.length>0,"hasPalette"),S0=i((r,t)=>r!=null&&Nre.has(r)&&E0(t),"isColorTheme"),nIn=/^[\w-]+$/,Pg=i(r=>{let t=typeof r=="string"||typeof r=="number"?String(r):"";return nIn.test(t)?t:"classic"},"safeLook"),lS=i(r=>E0(r)?r.length:0,"paletteSlotCount"),VT=i((r,t)=>E0(t)?lS(t):typeof r=="number"&&Number.isInteger(r)&&r>0&&r<=rIn?r:tIn,"colorSlotCount"),yp=i((r,t,a,s)=>{if(t===void 0||!S0(a,s))return;let l=t%lS(s);r.attr("data-color-id",`color-${l}`)},"stampColorSlot")});function sIn(r){let{themeVariables:t}=er(),a=t.clusterBkg,s=t.clusterBorder;return r==="flow"?{rx:10,fill:"none",stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"}:{rx:aIn,fill:a,stroke:s,cssClass:"collapsed-group"}}async function B0r(r,t){let a=sIn(t.metadata?.containerType),{fill:s,stroke:l}=a,{nodeStyles:h}=Gr(t),{shapeSvg:f,bbox:d}=await kn(r,t,Cn(t)),{theme:m,themeVariables:b}=er();yp(f,t.colorIndex,m,b.borderColorArray);let v=t.padding??8,T=d.height,C=Math.max(d.width+v*2,iIn,t?.width??0),E=Math.max(T+CQe+kQe+v*2,t?.height??0),S=-C/2,R=-E/2,L=-(CQe+kQe)/2,_=f.select(".label");_&&(t.useHtmlLabels??Fh(er())?_.attr("transform",`translate(${-d.width/2}, ${-d.height/2+L})`):_.attr("transform",`translate(0, ${-d.height/2+L})`));let I;if(t.look==="handDrawn"){let $=en.svg(f),V=dn(t,{fill:s,stroke:l,...a.strokeWidth===void 0?{}:{strokeWidth:a.strokeWidth},...s==="none"?{fillWeight:0}:{fillStyle:"solid"}}),Y=$.path(Nd(S,R,C,E,a.rx),V);I=f.insert(()=>Y,":first-child"),I.attr("class","basic label-container "+a.cssClass).attr("style",Cc(t.cssStyles))}else I=f.insert("rect",":first-child"),I.attr("class","basic label-container "+a.cssClass).attr("style",h).attr("rx",a.rx).attr("ry",a.rx).attr("x",S).attr("y",R).attr("width",C).attr("height",E).attr("fill",s).attr("stroke",l),a.strokeWidth!==void 0&&I.attr("stroke-width",a.strokeWidth+"px");let N=R+v+T+CQe;f.append("line").attr("class","collapsed-separator").attr("x1",S+8).attr("y1",N).attr("x2",S+C-8).attr("y2",N).attr("stroke",l).attr("stroke-dasharray","3, 3");let B=N+kQe/2,O=2.5,P=10;for(let $=-1;$<=1;$++)f.append("circle").attr("class","collapsed-indicator").attr("cx",$*P).attr("cy",B).attr("r",O).attr("fill",l);return fn(t,I),t.calcIntersect=function($,V){return Hr.rect($,V)},t.intersect=function($){return Hr.rect(t,$)},f}var kQe,CQe,iIn,aIn,F0r=ae(()=>{"use strict";ma();Xs();Yi();Ta();M4();na();wa();Ma();A0();kQe=20,CQe=8,iIn=80,aIn=8;i(sIn,"getCollapsedStyle");i(B0r,"collapsedGroup")});function bm(r,t,a,s){return r.insert("polygon",":first-child").attr("points",s.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}var cS=ae(()=>{"use strict";i(bm,"insertPolygonShape")});async function G0r(r,t){let a=t,{shapeSvg:s,bbox:l}=await kn(r,a,Cn(a)),h=a.padding??0,f=l.height+2*h,d=f/2,m=l.width+2*d+h,b=a.width??0,T=a.positioned&&(a.widthInColumns??1)>1&&b>m?b:m,C=uIn(a.directions??[],l,a,T),E=bm(s,T,f,C);return E.attr("style",a.style??null),fn(a,E),a.intersect=function(S){return Hr.polygon(a,C,S)},s}var oIn,EQe,lIn,cIn,$0r,uIn,j0r=ae(()=>{"use strict";Ta();cS();Yi();oIn=["right","left","up","down"],EQe="point",lIn=i(r=>{let t=new Set;for(let a of r)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},"expandAndDeduplicateDirections"),cIn=i(r=>oIn.filter(t=>r.has(t)).join("|")||EQe,"getDirectionKey"),$0r={"right|left|up|down":i(({height:r,midpoint:t,padding:a,width:s})=>[{x:0,y:0},{x:t,y:0},{x:s/2,y:2*a},{x:s-t,y:0},{x:s,y:0},{x:s,y:-r/3},{x:s+2*a,y:-r/2},{x:s,y:-2*r/3},{x:s,y:-r},{x:s-t,y:-r},{x:s/2,y:-r-2*a},{x:t,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*a,y:-r/2},{x:0,y:-r/3}],"right|left|up|down"),"right|left|up":i(({height:r,midpoint:t,width:a})=>[{x:t,y:0},{x:a-t,y:0},{x:a,y:-r/2},{x:a-t,y:-r},{x:t,y:-r},{x:0,y:-r/2}],"right|left|up"),"right|left|down":i(({height:r,midpoint:t,width:a})=>[{x:0,y:0},{x:t,y:-r},{x:a-t,y:-r},{x:a,y:0}],"right|left|down"),"right|up|down":i(({height:r,midpoint:t,width:a})=>[{x:0,y:0},{x:a,y:-t},{x:a,y:-r+t},{x:0,y:-r}],"right|up|down"),"left|up|down":i(({height:r,midpoint:t,width:a})=>[{x:a,y:0},{x:0,y:-t},{x:0,y:-r+t},{x:a,y:-r}],"left|up|down"),"right|left":i(({height:r,midpoint:t,padding:a,width:s})=>[{x:t,y:0},{x:t,y:-a},{x:s-t,y:-a},{x:s-t,y:0},{x:s,y:-r/2},{x:s-t,y:-r},{x:s-t,y:-r+a},{x:t,y:-r+a},{x:t,y:-r},{x:0,y:-r/2}],"right|left"),"up|down":i(({height:r,midpoint:t,padding:a,width:s})=>[{x:s/2,y:0},{x:0,y:-a},{x:t,y:-a},{x:t,y:-r+a},{x:0,y:-r+a},{x:s/2,y:-r},{x:s,y:-r+a},{x:s-t,y:-r+a},{x:s-t,y:-a},{x:s,y:-a}],"up|down"),"right|up":i(({height:r,midpoint:t,width:a})=>[{x:0,y:0},{x:a,y:-t},{x:0,y:-r}],"right|up"),"right|down":i(({height:r,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-r}],"right|down"),"left|up":i(({height:r,midpoint:t,width:a})=>[{x:a,y:0},{x:0,y:-t},{x:a,y:-r}],"left|up"),"left|down":i(({height:r,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-r}],"left|down"),right:i(({height:r,midpoint:t,padding:a,width:s})=>[{x:t,y:-a},{x:t,y:-a},{x:s-t,y:-a},{x:s-t,y:0},{x:s,y:-r/2},{x:s-t,y:-r},{x:s-t,y:-r+a},{x:t,y:-r+a},{x:t,y:-r+a}],"right"),left:i(({height:r,midpoint:t,padding:a,width:s})=>[{x:t,y:0},{x:t,y:-a},{x:s-t,y:-a},{x:s-t,y:-r+a},{x:t,y:-r+a},{x:t,y:-r},{x:0,y:-r/2}],"left"),up:i(({height:r,midpoint:t,padding:a,width:s})=>[{x:t,y:-a},{x:t,y:-r+a},{x:0,y:-r+a},{x:s/2,y:-r},{x:s,y:-r+a},{x:s-t,y:-r+a},{x:s-t,y:-a}],"up"),down:i(({height:r,midpoint:t,padding:a,width:s})=>[{x:s/2,y:0},{x:0,y:-a},{x:t,y:-a},{x:t,y:-r+a},{x:s-t,y:-r+a},{x:s-t,y:-a},{x:s,y:-a}],"down"),[EQe]:()=>[{x:0,y:0}]},uIn=i((r,t,a,s)=>{let l=lIn(r),h=(a.padding??0)/2,f=t.height+4*h,d=f/2,m=s??t.width+2*d+2*h,b=cIn(l);return($0r[b]??$0r[EQe])({height:f,midpoint:d,padding:h,width:m})},"getArrowPoints");i(G0r,"block_arrow")});async function z0r(r,t,{config:{themeVariables:a}}){let{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let{shapeSvg:h,bbox:f,label:d}=await kn(r,t,Cn(t)),m=a?.nodeBorder??a?.lineColor??"currentColor",b=t.padding??12,v=18,T=12,C=Math.max(f.width+b*2,t.width??0,90),E=Math.max(f.height+b*2+v,t.height??0),S=-E/2,{cssStyles:R}=t,L=h.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let N=en.svg(h).path(Nd(-C/2,S,C,E,T),dn(t,{}));L.node()?.appendChild(N),R&&L.attr("style",R)}else L.append("rect").attr("x",-C/2).attr("y",S).attr("width",C).attr("height",E).attr("rx",T).attr("ry",T).attr("style",l);L.append("line").attr("x1",-C/2).attr("y1",S+v).attr("x2",C/2).attr("y2",S+v).attr("style",`stroke:${m};stroke-width:1px`);for(let I=0;I<3;I++)L.append("circle").attr("cx",-C/2+12+I*9).attr("cy",S+v/2).attr("r",2.5).attr("style",`fill:${m};stroke:none`);L.append("rect").attr("class","browser-address-bar").attr("x",-C/2+44).attr("y",S+4).attr("width",Math.max(C-56,10)).attr("height",v-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${m};stroke-width:1px;opacity:0.6`),fn(t,L);let _=S+v+(E-v)/2;return d.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${_-f.height/2-(f.y-(f.top??0))})`),t.intersect=function(I){return Hr.rect(t,I)},h}var U0r=ae(()=>{"use strict";Yi();Ta();M4();na();wa();i(z0r,"browser")});async function V0r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?28:l,f=t.look==="neo"?24:l,{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),b=(t?.width??m.width)+(t.look==="neo"?h*2:h+wwe),v=(t?.height??m.height)+(t.look==="neo"?f*2:f),T=0,C=b,E=-v,S=0,R=[{x:T+wwe,y:E},{x:C,y:E},{x:C,y:S},{x:T,y:S},{x:T,y:E+wwe},{x:T+wwe,y:E}],L,{cssStyles:_}=t;if(t.look==="handDrawn"){let I=en.svg(d),N=dn(t,{}),B=ws(R),O=I.path(B,N);L=d.insert(()=>O,":first-child").attr("transform",`translate(${-b/2}, ${v/2})`),_&&L.attr("style",_)}else L=bm(d,b,v,R);return s&&L.attr("style",s),fn(t,L),t.intersect=function(I){return Hr.polygon(t,R,I)},d}var wwe,W0r=ae(()=>{"use strict";Yi();Ta();na();wa();cS();Yi();wwe=12;i(V0r,"card")});function H0r(r,t){let{nodeStyles:a}=Gr(t);t.label="";let s=r.insert("g").attr("class",Cn(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,h=Math.max(28,t.width??0),f=[{x:0,y:h/2},{x:h/2,y:0},{x:0,y:-h/2},{x:-h/2,y:0}],d=en.svg(s),m=dn(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let b=ws(f),v=d.path(b,m),T=s.insert(()=>v,":first-child");return l&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",l),a&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",a),t.width=28,t.height=28,t.intersect=function(C){return Hr.polygon(t,f,C)},s}var q0r=ae(()=>{"use strict";Ta();wa();na();Yi();i(H0r,"choice")});async function xwe(r,t,a){let{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let{shapeSvg:h,bbox:f,halfPadding:d}=await kn(r,t,Cn(t),{ignoreMinWidth:!0}),m=16,b=a?.padding??d,v=Math.sqrt(f.width**2+f.height**2)/2,T=t.look==="neo"?v+m:v+b,C,{cssStyles:E}=t;if(t.look==="handDrawn"){let S=en.svg(h),R=dn(t,{}),L=S.circle(0,0,T*2,R);C=h.insert(()=>L,":first-child"),C.attr("class","basic label-container").attr("style",Cc(E))}else C=h.insert("circle",":first-child").attr("class","basic label-container").attr("style",l).attr("r",T).attr("cx",0).attr("cy",0);return fn(t,C),t.calcIntersect=function(S,R){let L=S.width/2;return Hr.circle(S,L,R)},t.intersect=function(S){return Pe.info("Circle intersect",t,T,S),Hr.circle(t,T,S)},h}var SQe=ae(()=>{"use strict";wa();Yn();Ma();Ta();na();Yi();i(xwe,"circle")});async function Y0r(r,t){let a=t,s=["node",a.cssClasses,a.class].filter(Boolean).join(" "),{shapeSvg:l,bbox:h,halfPadding:f}=await kn(r,a,s),d=l.insert("rect",":first-child"),m=a.padding??0,b=a.positioned?a.width??0:h.width+m,v=a.positioned?a.height??0:h.height+m,T=a.positioned?-b/2:-h.width/2-f,C=a.positioned?-v/2:-h.height/2-f;return d.attr("class","basic cluster composite label-container").attr("style",a.style??null).attr("rx",a.rx??null).attr("ry",a.ry??null).attr("x",T).attr("y",C).attr("width",b).attr("height",v),fn(a,d),a.intersect=function(E){return Hr.rect(a,E)},l}var X0r=ae(()=>{"use strict";Ta();Yi();i(Y0r,"composite")});async function K0r(r,t,{config:{themeVariables:a}}){let{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let{shapeSvg:h,bbox:f,label:d}=await kn(r,t,Cn(t)),m=a?.nodeBorder??a?.lineColor??"currentColor",b=t.padding??12,v=20,T=12,C=Math.max(f.width+b*2,t.width??0,90),E=Math.max(f.height+b*2+v,t.height??0),S=-E/2,{cssStyles:R}=t,L=h.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let N=en.svg(h).path(Nd(-C/2,S,C,E,T),dn(t,{}));L.node()?.appendChild(N),R&&L.attr("style",R)}else L.append("rect").attr("x",-C/2).attr("y",S).attr("width",C).attr("height",E).attr("rx",T).attr("ry",T).attr("style",l);L.append("text").attr("x",-C/2+12).attr("y",S+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${m}`).text(">_"),fn(t,L);let _=S+v+(E-v)/2;return d.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${_-f.height/2-(f.y-(f.top??0))})`),t.intersect=function(I){return Hr.rect(t,I)},h}var J0r=ae(()=>{"use strict";Yi();Ta();M4();na();wa();i(K0r,"consoleWindow")});function hIn(r){let t=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),s=r*2,l={x:s/2*t,y:s/2*a},h={x:-(s/2)*t,y:s/2*a},f={x:-(s/2)*t,y:-(s/2)*a},d={x:s/2*t,y:-(s/2)*a};return`M ${h.x},${h.y} L ${d.x},${d.y}
|
|
M ${l.x},${l.y} L ${f.x},${f.y}`}function Q0r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a,t.label="";let l=r.insert("g").attr("class",Cn(t)).attr("id",t.domId??t.id),h=Math.max(30,t?.width??0),{cssStyles:f}=t,d=en.svg(l),m=dn(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let b=d.circle(0,0,h*2,m),v=hIn(h),T=d.path(v,m),C=l.insert(()=>b,":first-child");return C.insert(()=>T),C.attr("class","outer-path"),f&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",f),s&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",s),fn(t,C),t.intersect=function(E){return Pe.info("crossedCircle intersect",t,{radius:h,point:E}),Hr.circle(t,h,E)},l}var Z0r=ae(()=>{"use strict";Yn();Yi();na();wa();Ta();i(hIn,"createLine");i(Q0r,"crossedCircle")});function l_(r,t,a,s=100,l=0,h=180){let f=[],d=l*Math.PI/180,v=(h*Math.PI/180-d)/(s-1);for(let T=0;T<s;T++){let C=d+T*v,E=r+a*Math.cos(C),S=t+a*Math.sin(C);f.push({x:-E,y:-S})}return f}async function emr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t)),d=t.look==="neo"?18:t.padding??0,m=t.look==="neo"?12:t.padding??0,b=h.width+d,v=h.height+m,T=Math.max(5,v*.1),{cssStyles:C}=t,E=[...l_(b/2,-v/2,T,30,-90,0),{x:-b/2-T,y:T},...l_(b/2+T*2,-T,T,20,-180,-270),...l_(b/2+T*2,T,T,20,-90,-180),{x:-b/2-T,y:-v/2},...l_(b/2,v/2,T,20,0,90)],S=[{x:b/2,y:-v/2-T},{x:-b/2,y:-v/2-T},...l_(b/2,-v/2,T,20,-90,0),{x:-b/2-T,y:-T},...l_(b/2+b*.1,-T,T,20,-180,-270),...l_(b/2+b*.1,T,T,20,-90,-180),{x:-b/2-T,y:v/2},...l_(b/2,v/2,T,20,0,90),{x:-b/2,y:v/2+T},{x:b/2,y:v/2+T}],R=en.svg(l),L=dn(t,{fill:"none"});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let I=ws(E).replace("Z",""),N=R.path(I,L),B=ws(S),O=R.path(B,{...L}),P=l.insert("g",":first-child");return P.insert(()=>O,":first-child").attr("stroke-opacity",0),P.insert(()=>N,":first-child"),P.attr("class","text"),C&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",C),s&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",s),P.attr("transform",`translate(${T}, 0)`),f.attr("transform",`translate(${-b/2+T-(h.x-(h.left??0))},${-v/2+(t.padding??0)/2-(h.y-(h.top??0))})`),fn(t,P),t.intersect=function($){return Hr.polygon(t,S,$)},l}var tmr=ae(()=>{"use strict";Yi();Ta();na();wa();i(l_,"generateCirclePoints");i(emr,"curlyBraceLeft")});function c_(r,t,a,s=100,l=0,h=180){let f=[],d=l*Math.PI/180,v=(h*Math.PI/180-d)/(s-1);for(let T=0;T<s;T++){let C=d+T*v,E=r+a*Math.cos(C),S=t+a*Math.sin(C);f.push({x:E,y:S})}return f}async function rmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t)),d=t.look==="neo"?18:t.padding??0,m=t.look==="neo"?12:t.padding??0,b=h.width+(t.look==="neo"?d*2:d),v=h.height+(t.look==="neo"?m*2:m),T=Math.max(5,v*.1),{cssStyles:C}=t,E=[...c_(b/2,-v/2,T,20,-90,0),{x:b/2+T,y:-T},...c_(b/2+T*2,-T,T,20,-180,-270),...c_(b/2+T*2,T,T,20,-90,-180),{x:b/2+T,y:v/2},...c_(b/2,v/2,T,20,0,90)],S=[{x:-b/2,y:-v/2-T},{x:b/2,y:-v/2-T},...c_(b/2,-v/2,T,20,-90,0),{x:b/2+T,y:-T},...c_(b/2+T*2,-T,T,20,-180,-270),...c_(b/2+T*2,T,T,20,-90,-180),{x:b/2+T,y:v/2},...c_(b/2,v/2,T,20,0,90),{x:b/2,y:v/2+T},{x:-b/2,y:v/2+T}],R=en.svg(l),L=dn(t,{fill:"none"});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let I=ws(E).replace("Z",""),N=R.path(I,L),B=ws(S),O=R.path(B,{...L}),P=l.insert("g",":first-child");return P.insert(()=>O,":first-child").attr("stroke-opacity",0),P.insert(()=>N,":first-child"),P.attr("class","text"),C&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",C),s&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",s),P.attr("transform",`translate(${-T}, 0)`),f.attr("transform",`translate(${-b/2+(t.padding??0)/2-(h.x-(h.left??0))},${-v/2+(t.padding??0)/2-(h.y-(h.top??0))})`),fn(t,P),t.intersect=function($){return Hr.polygon(t,S,$)},l}var nmr=ae(()=>{"use strict";Yi();Ta();na();wa();i(c_,"generateCirclePoints");i(rmr,"curlyBraceRight")});function hy(r,t,a,s=100,l=0,h=180){let f=[],d=l*Math.PI/180,v=(h*Math.PI/180-d)/(s-1);for(let T=0;T<s;T++){let C=d+T*v,E=r+a*Math.cos(C),S=t+a*Math.sin(C);f.push({x:-E,y:-S})}return f}async function imr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t)),d=t.look==="neo"?18:t.padding??0,m=t.look==="neo"?12:t.padding??0,b=h.width+(t.look==="neo"?d*2:d),v=h.height+(t.look==="neo"?m*2:m),T=Math.max(5,v*.1),{cssStyles:C}=t,E=[...hy(b/2,-v/2,T,30,-90,0),{x:-b/2-T,y:T},...hy(b/2+T*2,-T,T,20,-180,-270),...hy(b/2+T*2,T,T,20,-90,-180),{x:-b/2-T,y:-v/2},...hy(b/2,v/2,T,20,0,90)],S=[...hy(-b/2+T+T/2,-v/2,T,20,-90,-180),{x:b/2-T/2,y:T},...hy(-b/2-T/2,-T,T,20,0,90),...hy(-b/2-T/2,T,T,20,-90,0),{x:b/2-T/2,y:-T},...hy(-b/2+T+T/2,v/2,T,30,-180,-270)],R=[{x:b/2,y:-v/2-T},{x:-b/2,y:-v/2-T},...hy(b/2,-v/2,T,20,-90,0),{x:-b/2-T,y:-T},...hy(b/2+T*2,-T,T,20,-180,-270),...hy(b/2+T*2,T,T,20,-90,-180),{x:-b/2-T,y:v/2},...hy(b/2,v/2,T,20,0,90),{x:-b/2,y:v/2+T},{x:b/2-T-T/2,y:v/2+T},...hy(-b/2+T+T/2,-v/2,T,20,-90,-180),{x:b/2-T/2,y:T},...hy(-b/2-T/2,-T,T,20,0,90),...hy(-b/2-T/2,T,T,20,-90,0),{x:b/2-T/2,y:-T},...hy(-b/2+T+T/2,v/2,T,30,-180,-270)],L=en.svg(l),_=dn(t,{fill:"none"});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let N=ws(E).replace("Z",""),B=L.path(N,_),P=ws(S).replace("Z",""),$=L.path(P,_),V=ws(R),Y=L.path(V,{..._}),Q=l.insert("g",":first-child");return Q.insert(()=>Y,":first-child").attr("stroke-opacity",0),Q.insert(()=>B,":first-child"),Q.insert(()=>$,":first-child"),Q.attr("class","text"),C&&t.look!=="handDrawn"&&Q.selectAll("path").attr("style",C),s&&t.look!=="handDrawn"&&Q.selectAll("path").attr("style",s),Q.attr("transform",`translate(${T-T/4}, 0)`),f.attr("transform",`translate(${-b/2+(t.padding??0)/2-(h.x-(h.left??0))},${-v/2+(t.padding??0)/2-(h.y-(h.top??0))})`),fn(t,Q),t.intersect=function(q){return Hr.polygon(t,R,q)},l}var amr=ae(()=>{"use strict";Yi();Ta();na();wa();i(hy,"generateCirclePoints");i(imr,"curlyBraces")});async function smr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?12:l,d=20,m=5,{shapeSvg:b,bbox:v}=await kn(r,t,Cn(t)),T=Math.max(m,v.height+f*2,t?.height??0),C=T/2,E=C-Math.sqrt(Math.max(0,C**2-(v.height/2)**2)),S=Math.max(T/4,E),R=Math.max(d,v.width+h*2+S*2,(v.width+h*2)*1.25,t?.width??0),{cssStyles:L}=t,_=en.svg(b),I=dn(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let N=R,B=T,O=N-C,P=B/4,$=[{x:O,y:0},{x:P,y:0},{x:0,y:B/2},{x:P,y:B},{x:O,y:B},...tx(-O,-B/2,C,50,270,90)],V=ws($),Y=_.path(V,I),Q=b.insert(()=>Y,":first-child");return Q.attr("class","basic label-container outer-path"),L&&t.look!=="handDrawn"&&Q.selectChildren("path").attr("style",L),s&&t.look!=="handDrawn"&&Q.selectChildren("path").attr("style",s),Q.attr("transform",`translate(${-R/2}, ${-T/2})`),fn(t,Q),t.intersect=function(q){return Hr.polygon(t,$,q)},b}var omr=ae(()=>{"use strict";Yi();Ta();na();wa();i(smr,"curvedTrapezoid")});async function lmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t)),d=t.padding??20,m=Math.max(h.width+d*2,t.width??0,100),b=Math.min(Math.max(m*.23,16),56),v=b*.27,T=Math.max(h.height+d*2,t.height?t.height-(2*b-v):0),C=Math.min(m*.177,T*.45),E=T+2*b-v,S=-E/2,R=S+2*b-v,L=l.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:_}=t;if(t.look==="handDrawn"){let V=en.svg(l),Y=dn(t,{}),Q=V.path(Nd(-m/2,R,m,T,C),Y),q=V.circle(0,S+b,b*2,Y);L.insert(()=>q,":first-child"),L.insert(()=>Q,":first-child"),_&&L.attr("style",_)}else L.append("rect").attr("x",-m/2).attr("y",R).attr("width",m).attr("height",T).attr("rx",C).attr("ry",C).attr("style",s),L.append("circle").attr("cx",0).attr("cy",S+b).attr("r",b).attr("style",s);fn(t,L);let I=R+T/2;f.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${I-h.height/2-(h.y-(h.top??0))})`);let N=S+b,B=Math.asin(Math.min(1,(R-N)/b))*180/Math.PI,$=[...tx(0,-N,b,24,180+B,-B),...tx(-(-m/2+C),-(R+C),C,12,90,0),...tx(-(-m/2+C),-(E/2-C),C,12,360,270),...tx(-(m/2-C),-(E/2-C),C,12,270,180),...tx(-(m/2-C),-(R+C),C,12,180,90)];return t.intersect=function(V){return Hr.polygon(t,$,V)},l}var cmr=ae(()=>{"use strict";Yi();Ta();na();wa();M4();i(lmr,"person")});async function fmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?24:l,f=t.look==="neo"?24:l,d=t.width??0;if(t.width&&(t.width=t.width-f,t.width<hmr&&(t.width=hmr)),t.height){let I=d/2/(2.5+d/50);t.height=t.height-h-I*3,t.height<umr&&(t.height=umr)}let{shapeSvg:m,bbox:b,label:v}=await kn(r,t,Cn(t)),T=Math.max(t.width??0,b.width)+f,C=T/2,E=C/(2.5+T/50),S=Math.max(t.height??0,b.height)+h+E,R,{cssStyles:L}=t;if(t.look==="handDrawn"){let _=en.svg(m),I=dIn(0,0,T,S,C,E),N=pIn(0,E,T,S,C,E),B=dn(t,{}),O=_.path(I,B),P=_.path(N,dn(t,{fill:"none"}));R=m.insert(()=>P,":first-child"),R=m.insert(()=>O,":first-child"),R.attr("class","basic label-container"),L&&R.attr("style",L)}else{let _=fIn(0,0,T,S,C,E);R=m.insert("path",":first-child").attr("d",_).attr("class","basic label-container outer-path").attr("style",Cc(L)).attr("style",s)}return R.attr("label-offset-y",E),R.attr("transform",`translate(${-T/2}, ${-(S/2+E)})`),fn(t,R),v.attr("transform",`translate(${-(b.width/2)-(b.x-(b.left??0))}, ${-(b.height/2)+(t.padding??0)/1.5-(b.y-(b.top??0))})`),t.intersect=function(_){let I=Hr.rect(t,_),N=I.x-(t.x??0);if(C!=0&&(Math.abs(N)<(t.width??0)/2||Math.abs(N)==(t.width??0)/2&&Math.abs(I.y-(t.y??0))>(t.height??0)/2-E)){let B=E*E*(1-N*N/(C*C));B>0&&(B=Math.sqrt(B)),B=E-B,_.y-(t.y??0)>0&&(B=-B),I.y+=B}return I},m}var fIn,dIn,pIn,umr,hmr,dmr=ae(()=>{"use strict";Yi();Ta();na();wa();Ma();fIn=i((r,t,a,s,l,h)=>[`M${r},${t+h}`,`a${l},${h} 0,0,0 ${a},0`,`a${l},${h} 0,0,0 ${-a},0`,`l0,${s}`,`a${l},${h} 0,0,0 ${a},0`,`l0,${-s}`].join(" "),"createCylinderPathD"),dIn=i((r,t,a,s,l,h)=>[`M${r},${t+h}`,`M${r+a},${t+h}`,`a${l},${h} 0,0,0 ${-a},0`,`l0,${s}`,`a${l},${h} 0,0,0 ${a},0`,`l0,${-s}`].join(" "),"createOuterCylinderPathD"),pIn=i((r,t,a,s,l,h)=>[`M${r-a/2},${-s/2}`,`a${l},${h} 0,0,0 ${a},0`].join(" "),"createInnerCylinderPathD"),umr=8,hmr=8;i(fmr,"cylinder")});async function N4(r,t,a){let{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let{shapeSvg:h,bbox:f}=await kn(r,t,Cn(t)),d=Math.max(f.width+a.labelPaddingX*2,t?.width||0),m=Math.max(f.height+a.labelPaddingY*2,t?.height||0),b=-d/2,v=-m/2,T,{rx:C,ry:E}=t,{cssStyles:S}=t;if(a?.rx&&a.ry&&(C=a.rx,E=a.ry),t.look==="handDrawn"){let R=en.svg(h),L=dn(t,{}),_=C||E?R.path(Nd(b,v,d,m,C||0),L):R.rectangle(b,v,d,m,L);T=h.insert(()=>_,":first-child"),T.attr("class","basic label-container").attr("style",Cc(S))}else T=h.insert("rect",":first-child"),T.attr("class","basic label-container").attr("style",l).attr("rx",Cc(C)).attr("ry",Cc(E)).attr("x",b).attr("y",v).attr("width",d).attr("height",m);return fn(t,T,t.look==="handDrawn"?void 0:{width:d,height:m}),t.calcIntersect=function(R,L){return Hr.rect(R,L)},t.intersect=function(R){return Hr.rect(t,R)},h}var PO=ae(()=>{"use strict";Yi();Ta();M4();na();wa();Ma();i(N4,"drawRect")});async function pmr(r,t){let{cssClasses:a,labelPaddingX:s,labelPaddingY:l,padding:h,width:f,height:d}=t,m={rx:0,ry:0,classes:a??"",labelPaddingX:s??(h??0)*2,labelPaddingY:l??h??0},b=await N4(r,t,m);if(t.look==="handDrawn"){let E=en.svg(b),S=dn(t,{}),R=b.select(".basic.label-container > path:nth-child(2)"),L=R.node();if(!L)return b;let _=null;if(L instanceof SVGGraphicsElement)_=L.getBBox();else return b;return b.insert(()=>E.line(_.x,_.y,_.x+_.width,_.y,S),".basic.label-container g.label"),b.insert(()=>E.line(_.x,_.y+_.height,_.x+_.width,_.y+_.height,S),".basic.label-container g.label"),R.remove(),b}let v=b.select(".basic.label-container"),T=(Number(v.attr("width"))||f)??0,C=(Number(v.attr("height"))||d)??0;return T>0&&C>0&&v.attr("stroke-dasharray",`${T} ${C}`),b}var gmr=ae(()=>{"use strict";PO();na();wa();i(pmr,"datastore")});async function mmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.look==="neo"?16:t.padding??0,h=t.look==="neo"?16:t.padding??0,{shapeSvg:f,bbox:d,label:m}=await kn(r,t,Cn(t)),b=d.width+l,v=d.height+h,T=v*.2,C=-b/2,E=-v/2-T/2,{cssStyles:S}=t,R=en.svg(f),L=dn(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let _=[{x:C,y:E+T},{x:-C,y:E+T},{x:-C,y:-E},{x:C,y:-E},{x:C,y:E},{x:-C,y:E},{x:-C,y:E+T}],I=R.polygon(_.map(B=>[B.x,B.y]),L),N=f.insert(()=>I,":first-child");return N.attr("class","basic label-container outer-path"),S&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",S),s&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",s),m.attr("transform",`translate(${C+(t.padding??0)/2-(d.x-(d.left??0))}, ${E+T+(t.padding??0)/2-(d.y-(d.top??0))})`),fn(t,N),t.intersect=function(B){return Hr.rect(t,B)},f}var ymr=ae(()=>{"use strict";Yi();Ta();na();wa();i(mmr,"dividedRectangle")});async function bmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t),l=t.look==="neo"?12:5;t.labelStyle=a;let h=t.padding??0,f=t.look==="neo"?16:h,{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t),{ignoreMinWidth:!0}),b=Math.sqrt(m.width**2+m.height**2)/2,v=(t?.width?t?.width/2:b)+(f??0),T=v+l,C,{cssStyles:E}=t;if(t.look==="handDrawn"){let S=en.svg(d),R=dn(t,{roughness:.2,strokeWidth:2.5}),L=dn(t,{roughness:.2,strokeWidth:1.5}),_=S.circle(0,0,T*2,R),I=S.circle(0,0,v*2,L);C=d.insert("g",":first-child"),C.attr("class",Cc(t.cssClasses)).attr("style",Cc(E)),C.node()?.appendChild(_),C.node()?.appendChild(I)}else{C=d.insert("g",":first-child");let S=C.insert("circle",":first-child"),R=C.insert("circle");C.attr("class","basic label-container").attr("style",s),S.attr("class","outer-circle").attr("style",s).attr("r",T).attr("cx",0).attr("cy",0),R.attr("class","inner-circle").attr("style",s).attr("r",v).attr("cx",0).attr("cy",0)}return fn(t,C),t.intersect=function(S){return Pe.info("DoubleCircle intersect",t,T,S),Hr.circle(t,T,S)},d}var vmr=ae(()=>{"use strict";Yn();Yi();Ta();na();wa();Ma();i(bmr,"doublecircle")});async function wmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,halfPadding:f}=await kn(r,t,Cn(t)),{theme:d,themeVariables:m}=er();yp(l,t.colorIndex,d,m.borderColorArray);let b=f??10,v=h.width/2+b*2,T=h.height/2+b*2,C,{cssStyles:E}=t;if(t.look==="handDrawn"){let S=en.svg(l),R=dn(t,{}),L=S.ellipse(0,0,v*2,T*2,R);C=l.insert(()=>L,":first-child"),C.attr("class","basic label-container"),E&&C.attr("style",E)}else C=l.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",s).attr("rx",v).attr("ry",T).attr("cx",0).attr("cy",0);return t.width=v*2,t.height=T*2,fn(t,C),t.calcIntersect=function(S,R){let L=S.width/2,_=S.height/2;return Hr.ellipse(S,L,_,R)},t.intersect=function(S){return Hr.ellipse(t,v,T,S)},l}var xmr=ae(()=>{"use strict";wa();ma();A0();Ta();na();Yi();i(wmr,"usecaseEllipse")});function Tmr(r,t,{config:{themeVariables:a}}){let{labelStyles:s,nodeStyles:l}=Gr(t);t.label="",t.labelStyle=s;let h=r.insert("g").attr("class",Cn(t)).attr("id",t.domId??t.id),f=7,{cssStyles:d}=t,m=en.svg(h),{nodeBorder:b}=a,v=dn(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(v.roughness=0);let T=m.circle(0,0,f*2,v),C=h.insert(()=>T,":first-child");return C.selectAll("path").attr("style",`fill: ${b} !important;`),d&&d.length>0&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",d),l&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",l),fn(t,C),t.intersect=function(E){return Pe.info("filledCircle intersect",t,{radius:f,point:E}),Hr.circle(t,f,E)},h}var kmr=ae(()=>{"use strict";wa();Yn();Ta();na();Yi();i(Tmr,"filledCircle")});async function Smr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?l*2:l;(t.width||t.height)&&(t.height=t?.height??0,t.height<Cmr&&(t.height=Cmr),t.width=(t?.width??0)-h-h/2,t.width<Emr&&(t.width=Emr));let{shapeSvg:f,bbox:d,label:m}=await kn(r,t,Cn(t)),b=(t?.width?t?.width:d.width)+(h??0),v=t?.height?t?.height:b+d.height,T=v,C=[{x:0,y:-v},{x:T,y:-v},{x:T/2,y:0}],{cssStyles:E}=t,S=en.svg(f),R=dn(t,{});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let L=ws(C),_=S.path(L,R),I=f.insert(()=>_,":first-child").attr("transform",`translate(${-v/2}, ${v/2})`).attr("class","outer-path");return E&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",E),s&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",s),t.width=b,t.height=v,fn(t,I),m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-v/2+(t.padding??0)/2+(d.y-(d.top??0))})`),t.intersect=function(N){return Pe.info("Triangle intersect",t,C,N),Hr.polygon(t,C,N)},f}var Cmr,Emr,Amr=ae(()=>{"use strict";Yn();Yi();Ta();na();wa();Yi();Cmr=10,Emr=10;i(Smr,"flippedTriangle")});async function Rmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t)),d=t.padding??12,m=Math.max(h.width+d*2,t.width??0,90),b=h.height+d*2,v=Math.max(Math.min(b*.16,14),8),T=Math.max(b+v,t.height??0),C=T-v,E=Math.max(m*.38,28),S=-T/2,R=[{x:-m/2,y:S},{x:-m/2+E,y:S},{x:-m/2+E,y:S+v},{x:m/2,y:S+v},{x:m/2,y:T/2},{x:-m/2,y:T/2}],L=[`M${R[0].x},${R[0].y}`,...R.slice(1).map(B=>`L${B.x},${B.y}`),"Z"].join(" "),{cssStyles:_}=t,I;if(t.look==="handDrawn"){let O=en.svg(l).path(L,dn(t,{}));I=l.insert(()=>O,":first-child").attr("class","basic label-container"),_&&I.attr("style",_)}else I=l.insert("path",":first-child").attr("d",L).attr("class","basic label-container").attr("style",s);t.look==="handDrawn"?fn(t,I):fn(t,I,{width:m,height:T});let N=S+v+C/2;return f.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${N-h.height/2-(h.y-(h.top??0))})`),t.intersect=function(B){return Hr.polygon(t,R,B)},l}var Lmr=ae(()=>{"use strict";Yi();Ta();na();wa();i(Rmr,"folder")});function _mr(r,t,{dir:a,config:{state:s,themeVariables:l}}){let{nodeStyles:h}=Gr(t);t.label="";let f=r.insert("g").attr("class",Cn(t)).attr("id",t.domId??t.id),{cssStyles:d}=t,m=Math.max(70,t?.width??0),b=Math.max(10,t?.height??0);(a==="LR"||a==="RL")&&(m=Math.max(10,t?.width??0),b=Math.max(70,t?.height??0));let v=-1*m/2,T=-1*b/2,C=en.svg(f),E=dn(t,{stroke:l.lineColor,fill:l.lineColor});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");let S=C.rectangle(v,T,m,b,E),R=f.insert(()=>S,":first-child");d&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",d),h&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",h),fn(t,R);let L=s?.padding??0;return t.width&&t.height&&(t.width+=L/2||0,t.height+=L/2||0),t.intersect=function(_){return Hr.rect(t,_)},f}var Dmr=ae(()=>{"use strict";wa();Ta();na();Yi();i(_mr,"forkJoin")});async function Imr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=15,h=10,f=t.look==="neo"?16:t.padding??0,d=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-d*2,t.height<h&&(t.height=h),t.width=(t?.width??0)-f*2,t.width<l&&(t.width=l));let{shapeSvg:m,bbox:b}=await kn(r,t,Cn(t)),v=(t?.height?t?.height:Math.max(h,b.height))+d*2,T=v/2,C=T-Math.sqrt(Math.max(0,T**2-(b.height/2)**2)),E=(t?.width?t?.width:Math.max(l,b.width)+C*2)+f*2,{cssStyles:S}=t,R=en.svg(m),L=dn(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let _=[{x:-E/2,y:-v/2},{x:E/2-T,y:-v/2},...tx(-E/2+T,0,T,50,90,270),{x:E/2-T,y:v/2},{x:-E/2,y:v/2}],I=ws(_),N=R.path(I,L),B=m.insert(()=>N,":first-child");return B.attr("class","basic label-container outer-path"),S&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",S),s&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",s),fn(t,B),t.intersect=function(O){return Pe.info("Pill intersect",t,{radius:T,point:O}),Hr.polygon(t,_,O)},m}var Mmr=ae(()=>{"use strict";Yn();Yi();Ta();na();wa();i(Imr,"halfRoundedRectangle")});async function Nmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t),l=t.look==="neo"?3.5:4;t.labelStyle=a;let h=t.padding??0,f=70,d=32,m=t.look==="neo"?f:h,b=t.look==="neo"?d:h;if(t.width||t.height){let N=(t.height??0)/l;t.width=(t?.width??0)-2*N-b,t.height=(t.height??0)-m}let{shapeSvg:v,bbox:T}=await kn(r,t,Cn(t)),C=(t?.height?t?.height:T.height)+m,E=C/l,S=(t?.width?t?.width:T.width)+2*E+b,R=[{x:E,y:0},{x:S-E,y:0},{x:S,y:-C/2},{x:S-E,y:-C},{x:E,y:-C},{x:0,y:-C/2}],L,{cssStyles:_}=t;if(t.look==="handDrawn"){let I=en.svg(v),N=dn(t,{}),B=gIn(0,0,S,C,E),O=I.path(B,N);L=v.insert(()=>O,":first-child").attr("transform",`translate(${-S/2}, ${C/2})`),_&&L.attr("style",_)}else L=bm(v,S,C,R);return s&&L.attr("style",s),t.width=S,t.height=C,fn(t,L),t.intersect=function(I){return Hr.polygon(t,R,I)},v}var gIn,Omr=ae(()=>{"use strict";Yi();Ta();na();wa();cS();gIn=i((r,t,a,s,l)=>[`M${r+l},${t}`,`L${r+a-l},${t}`,`L${r+a},${t-s/2}`,`L${r+a-l},${t-s}`,`L${r+l},${t-s}`,`L${r},${t-s/2}`,"Z"].join(" "),"createHexagonPathD");i(Nmr,"hexagon")});async function Pmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.label="",t.labelStyle=a;let{shapeSvg:l}=await kn(r,t,Cn(t)),h=Math.max(30,t?.width??0),f=Math.max(30,t?.height??0),{cssStyles:d}=t,m=en.svg(l),b=dn(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let v=[{x:0,y:0},{x:h,y:0},{x:0,y:f},{x:h,y:f}],T=ws(v),C=m.path(T,b),E=l.insert(()=>C,":first-child");return E.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",d),s&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",s),E.attr("transform",`translate(${-h/2}, ${-f/2})`),fn(t,E),t.intersect=function(S){return Pe.info("Pill intersect",t,{points:v}),Hr.polygon(t,v,S)},l}var Bmr=ae(()=>{"use strict";Yn();Yi();Ta();na();wa();i(Pmr,"hourglass")});async function Fmr(r,t,{config:{themeVariables:a,flowchart:s}}){let{labelStyles:l}=Gr(t);t.labelStyle=l;let h=t.assetHeight??48,f=t.assetWidth??48,d=Math.max(h,f),m=s?.wrappingWidth;t.width=Math.max(d,m??0);let{shapeSvg:b,bbox:v,label:T}=await kn(r,t,"icon-shape default"),C=t.pos==="t",E=d,S=d,{nodeBorder:R}=a,{stylesMap:L}=o2(t),_=-S/2,I=-E/2,N=t.label?8:0,B=en.svg(b),O=dn(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");let P=B.rectangle(_,I,S,E,O),$=Math.max(S,v.width),V=E+v.height+N,Y=B.rectangle(-$/2,-V/2,$,V,{...O,fill:"transparent",stroke:"none"}),Q=b.insert(()=>P,":first-child"),q=b.insert(()=>Y);if(t.icon){let W=b.append("g");W.html(`<g>${await Og(t.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let H=W.node().getBBox(),re=H.width,Z=H.height,X=H.x,te=H.y;W.attr("transform",`translate(${-re/2-X},${C?v.height/2+N/2-Z/2-te:-v.height/2-N/2-Z/2-te})`),W.attr("style",`color: ${L.get("stroke")??R};`)}return T.attr("transform",`translate(${-v.width/2-(v.x-(v.left??0))},${C?-V/2:V/2-v.height})`),Q.attr("transform",`translate(0,${C?v.height/2+N/2:-v.height/2-N/2})`),fn(t,q),t.intersect=function(W){if(Pe.info("iconSquare intersect",t,W),!t.label)return Hr.rect(t,W);let H=t.x??0,re=t.y??0,Z=t.height??0,X=[];return C?X=[{x:H-v.width/2,y:re-Z/2},{x:H+v.width/2,y:re-Z/2},{x:H+v.width/2,y:re-Z/2+v.height+N},{x:H+S/2,y:re-Z/2+v.height+N},{x:H+S/2,y:re+Z/2},{x:H-S/2,y:re+Z/2},{x:H-S/2,y:re-Z/2+v.height+N},{x:H-v.width/2,y:re-Z/2+v.height+N}]:X=[{x:H-S/2,y:re-Z/2},{x:H+S/2,y:re-Z/2},{x:H+S/2,y:re-Z/2+E},{x:H+v.width/2,y:re-Z/2+E},{x:H+v.width/2/2,y:re+Z/2},{x:H-v.width/2,y:re+Z/2},{x:H-v.width/2,y:re-Z/2+E},{x:H-S/2,y:re-Z/2+E}],Hr.polygon(t,X,W)},b}var $mr=ae(()=>{"use strict";wa();Yn();Xw();Ta();na();Yi();i(Fmr,"icon")});async function Gmr(r,t,{config:{themeVariables:a,flowchart:s}}){let{labelStyles:l}=Gr(t);t.labelStyle=l;let h=t.assetHeight??48,f=t.assetWidth??48,d=Math.max(h,f),m=s?.wrappingWidth;t.width=Math.max(d,m??0);let{shapeSvg:b,bbox:v,label:T}=await kn(r,t,"icon-shape default"),C=20,E=t.label?8:0,S=t.pos==="t",{nodeBorder:R,mainBkg:L}=a,{stylesMap:_}=o2(t),I=en.svg(b),N=dn(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");let B=_.get("fill");N.stroke=B??L;let O=b.append("g");t.icon&&O.html(`<g>${await Og(t.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let P=O.node().getBBox(),$=P.width,V=P.height,Y=P.x,Q=P.y,q=Math.max($,V)*Math.SQRT2+C*2,W=I.circle(0,0,q,N),H=Math.max(q,v.width),re=q+v.height+E,Z=I.rectangle(-H/2,-re/2,H,re,{...N,fill:"transparent",stroke:"none"}),X=b.insert(()=>W,":first-child"),te=b.insert(()=>Z);return O.attr("transform",`translate(${-$/2-Y},${S?v.height/2+E/2-V/2-Q:-v.height/2-E/2-V/2-Q})`),O.attr("style",`color: ${_.get("stroke")??R};`),T.attr("transform",`translate(${-v.width/2-(v.x-(v.left??0))},${S?-re/2:re/2-v.height})`),X.attr("transform",`translate(0,${S?v.height/2+E/2:-v.height/2-E/2})`),fn(t,te),t.intersect=function(U){return Pe.info("iconSquare intersect",t,U),Hr.rect(t,U)},b}var jmr=ae(()=>{"use strict";wa();Yn();Xw();Ta();na();Yi();i(Gmr,"iconCircle")});async function zmr(r,t,{config:{themeVariables:a,flowchart:s}}){let{labelStyles:l}=Gr(t);t.labelStyle=l;let h=t.assetHeight??48,f=t.assetWidth??48,d=Math.max(h,f),m=s?.wrappingWidth;t.width=Math.max(d,m??0);let{shapeSvg:b,bbox:v,halfPadding:T,label:C}=await kn(r,t,"icon-shape default"),E=t.pos==="t",S=d+T*2,R=d+T*2,{nodeBorder:L,mainBkg:_}=a,{stylesMap:I}=o2(t),N=-R/2,B=-S/2,O=t.label?8:0,P=en.svg(b),$=dn(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let V=I.get("fill");$.stroke=V??_;let Y=P.path(Nd(N,B,R,S,5),$),Q=Math.max(R,v.width),q=S+v.height+O,W=P.rectangle(-Q/2,-q/2,Q,q,{...$,fill:"transparent",stroke:"none"}),H=b.insert(()=>Y,":first-child").attr("class","icon-shape2"),re=b.insert(()=>W);if(t.icon){let Z=b.append("g");Z.html(`<g>${await Og(t.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let X=Z.node().getBBox(),te=X.width,U=X.height,ne=X.x,se=X.y;Z.attr("transform",`translate(${-te/2-ne},${E?v.height/2+O/2-U/2-se:-v.height/2-O/2-U/2-se})`),Z.attr("style",`color: ${I.get("stroke")??L};`)}return C.attr("transform",`translate(${-v.width/2-(v.x-(v.left??0))},${E?-q/2:q/2-v.height})`),H.attr("transform",`translate(0,${E?v.height/2+O/2:-v.height/2-O/2})`),fn(t,re),t.intersect=function(Z){if(Pe.info("iconSquare intersect",t,Z),!t.label)return Hr.rect(t,Z);let X=t.x??0,te=t.y??0,U=t.height??0,ne=[];return E?ne=[{x:X-v.width/2,y:te-U/2},{x:X+v.width/2,y:te-U/2},{x:X+v.width/2,y:te-U/2+v.height+O},{x:X+R/2,y:te-U/2+v.height+O},{x:X+R/2,y:te+U/2},{x:X-R/2,y:te+U/2},{x:X-R/2,y:te-U/2+v.height+O},{x:X-v.width/2,y:te-U/2+v.height+O}]:ne=[{x:X-R/2,y:te-U/2},{x:X+R/2,y:te-U/2},{x:X+R/2,y:te-U/2+S},{x:X+v.width/2,y:te-U/2+S},{x:X+v.width/2/2,y:te+U/2},{x:X-v.width/2,y:te+U/2},{x:X-v.width/2,y:te-U/2+S},{x:X-R/2,y:te-U/2+S}],Hr.polygon(t,ne,Z)},b}var Umr=ae(()=>{"use strict";wa();Yn();Xw();Ta();na();M4();Yi();i(zmr,"iconRounded")});async function Vmr(r,t,{config:{themeVariables:a,flowchart:s}}){let{labelStyles:l}=Gr(t);t.labelStyle=l;let h=t.assetHeight??48,f=t.assetWidth??48,d=Math.max(h,f),m=s?.wrappingWidth;t.width=Math.max(d,m??0);let{shapeSvg:b,bbox:v,halfPadding:T,label:C}=await kn(r,t,"icon-shape default"),E=t.pos==="t",S=d+T*2,R=d+T*2,{nodeBorder:L,mainBkg:_}=a,{stylesMap:I}=o2(t),N=-R/2,B=-S/2,O=t.label?8:0,P=en.svg(b),$=dn(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let V=I.get("fill");$.stroke=V??_;let Y=P.path(Nd(N,B,R,S,.1),$),Q=Math.max(R,v.width),q=S+v.height+O,W=P.rectangle(-Q/2,-q/2,Q,q,{...$,fill:"transparent",stroke:"none"}),H=b.insert(()=>Y,":first-child"),re=b.insert(()=>W);if(t.icon){let Z=b.append("g");Z.html(`<g>${await Og(t.icon,{height:d,width:d,fallbackPrefix:""})}</g>`);let X=Z.node().getBBox(),te=X.width,U=X.height,ne=X.x,se=X.y;Z.attr("transform",`translate(${-te/2-ne},${E?v.height/2+O/2-U/2-se:-v.height/2-O/2-U/2-se})`),Z.attr("style",`color: ${I.get("stroke")??L};`)}return C.attr("transform",`translate(${-v.width/2-(v.x-(v.left??0))},${E?-q/2:q/2-v.height})`),H.attr("transform",`translate(0,${E?v.height/2+O/2:-v.height/2-O/2})`),fn(t,re),t.intersect=function(Z){if(Pe.info("iconSquare intersect",t,Z),!t.label)return Hr.rect(t,Z);let X=t.x??0,te=t.y??0,U=t.height??0,ne=[];return E?ne=[{x:X-v.width/2,y:te-U/2},{x:X+v.width/2,y:te-U/2},{x:X+v.width/2,y:te-U/2+v.height+O},{x:X+R/2,y:te-U/2+v.height+O},{x:X+R/2,y:te+U/2},{x:X-R/2,y:te+U/2},{x:X-R/2,y:te-U/2+v.height+O},{x:X-v.width/2,y:te-U/2+v.height+O}]:ne=[{x:X-R/2,y:te-U/2},{x:X+R/2,y:te-U/2},{x:X+R/2,y:te-U/2+S},{x:X+v.width/2,y:te-U/2+S},{x:X+v.width/2/2,y:te+U/2},{x:X-v.width/2,y:te+U/2},{x:X-v.width/2,y:te-U/2+S},{x:X-R/2,y:te-U/2+S}],Hr.polygon(t,ne,Z)},b}var Wmr=ae(()=>{"use strict";wa();Yn();Xw();Ta();M4();na();Yi();i(Vmr,"iconSquare")});async function Hmr(r,t,{config:{flowchart:a}}){let s=new Image;s.src=t?.img??"",await s.decode();let l=Number(s.naturalWidth.toString().replace("px","")),h=Number(s.naturalHeight.toString().replace("px",""));t.imageAspectRatio=l/h;let{labelStyles:f}=Gr(t);t.labelStyle=f;let d=a?.wrappingWidth;t.defaultWidth=a?.wrappingWidth;let m=Math.max(t.label?d??0:0,t?.assetWidth??l),b=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:m,v=t.constraint==="on"?b/t.imageAspectRatio:t?.assetHeight??h;t.width=Math.max(b,d??0);let{shapeSvg:T,bbox:C,label:E}=await kn(r,t,"image-shape default"),S=t.pos==="t",R=-b/2,L=-v/2,_=t.label?8:0,I=en.svg(T),N=dn(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");let B=I.rectangle(R,L,b,v,N),O=Math.max(b,C.width),P=v+C.height+_,$=I.rectangle(-O/2,-P/2,O,P,{...N,fill:"none",stroke:"none"}),V=T.insert(()=>B,":first-child"),Y=T.insert(()=>$);if(t.img){let Q=T.append("image");Q.attr("href",t.img),Q.attr("width",b),Q.attr("height",v),Q.attr("preserveAspectRatio","none"),Q.attr("transform",`translate(${-b/2},${S?P/2-v:-P/2})`)}return E.attr("transform",`translate(${-C.width/2-(C.x-(C.left??0))},${S?-v/2-C.height/2-_/2:v/2-C.height/2+_/2})`),V.attr("transform",`translate(0,${S?C.height/2+_/2:-C.height/2-_/2})`),fn(t,Y),t.intersect=function(Q){if(Pe.info("iconSquare intersect",t,Q),!t.label)return Hr.rect(t,Q);let q=t.x??0,W=t.y??0,H=t.height??0,re=[];return S?re=[{x:q-C.width/2,y:W-H/2},{x:q+C.width/2,y:W-H/2},{x:q+C.width/2,y:W-H/2+C.height+_},{x:q+b/2,y:W-H/2+C.height+_},{x:q+b/2,y:W+H/2},{x:q-b/2,y:W+H/2},{x:q-b/2,y:W-H/2+C.height+_},{x:q-C.width/2,y:W-H/2+C.height+_}]:re=[{x:q-b/2,y:W-H/2},{x:q+b/2,y:W-H/2},{x:q+b/2,y:W-H/2+v},{x:q+C.width/2,y:W-H/2+v},{x:q+C.width/2/2,y:W+H/2},{x:q-C.width/2,y:W+H/2},{x:q-C.width/2,y:W-H/2+v},{x:q-b/2,y:W-H/2+v}],Hr.polygon(t,re,Q)},T}var qmr=ae(()=>{"use strict";wa();Yn();Ta();na();Yi();i(Hmr,"imageSquare")});async function Ymr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=l,f=t.look==="neo"?l*2:l,{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),b=Math.max(m.height+h*2,t.height??0),v=Math.max(m.width+f*2,(t.width??0)-b),T=[{x:0,y:0},{x:v,y:0},{x:v+3*b/6,y:-b},{x:-3*b/6,y:-b}],C,{cssStyles:E}=t;if(t.look==="handDrawn"){let S=en.svg(d),R=dn(t,{}),L=ws(T),_=S.path(L,R);C=d.insert(()=>_,":first-child").attr("transform",`translate(${-v/2}, ${b/2})`),E&&C.attr("style",E)}else C=bm(d,v,b,T);return s&&C.attr("style",s),t.width=v,t.height=b,fn(t,C),t.intersect=function(S){return Hr.polygon(t,T,S)},d}var Xmr=ae(()=>{"use strict";Yi();Ta();na();wa();cS();i(Ymr,"inv_trapezoid")});async function Kmr(r,t){let{shapeSvg:a,bbox:s,label:l}=await kn(r,t,"label"),h=a.insert("rect",":first-child");return h.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),fn(t,h),t.intersect=function(m){return Hr.rect(t,m)},a}var Jmr=ae(()=>{"use strict";PO();Yi();Ta();i(Kmr,"labelRect")});async function Qmr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=l,f=t.look==="neo"?l*2:l,{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),b=Math.max(m.height+h,t.height??0),v=Math.max(m.width+f,(t.width??0)-b),T=[{x:0,y:0},{x:v+3*b/6,y:0},{x:v,y:-b},{x:-(3*b)/6,y:-b}],C,{cssStyles:E}=t;if(t.look==="handDrawn"){let S=en.svg(d),R=dn(t,{}),L=ws(T),_=S.path(L,R);C=d.insert(()=>_,":first-child").attr("transform",`translate(${-v/2}, ${b/2})`),E&&C.attr("style",E)}else C=bm(d,v,b,T);return s&&C.attr("style",s),t.width=v,t.height=b,fn(t,C),t.intersect=function(S){return Hr.polygon(t,T,S)},d}var Zmr=ae(()=>{"use strict";Yi();Ta();na();wa();cS();i(Qmr,"lean_left")});async function e1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=l,f=t.look==="neo"?l*2:l,{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),b=Math.max(m.height+h,t.height??0),v=Math.max(m.width+f,(t.width??0)-b),T=[{x:-3*b/6,y:0},{x:v,y:0},{x:v+3*b/6,y:-b},{x:0,y:-b}],C,{cssStyles:E}=t;if(t.look==="handDrawn"){let S=en.svg(d),R=dn(t,{}),L=ws(T),_=S.path(L,R);C=d.insert(()=>_,":first-child").attr("transform",`translate(${-v/2}, ${b/2})`),E&&C.attr("style",E)}else C=bm(d,v,b,T);return s&&C.attr("style",s),t.width=v,t.height=b,fn(t,C),t.intersect=function(S){return Hr.polygon(t,T,S)},d}var t1r=ae(()=>{"use strict";Yi();Ta();na();wa();cS();i(e1r,"lean_right")});function r1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.label="",t.labelStyle=a;let l=r.insert("g").attr("class",Cn(t)).attr("id",t.domId??t.id),{cssStyles:h}=t,f=Math.max(35,t?.width??0),d=Math.max(35,t?.height??0),m=7,b=[{x:f,y:0},{x:0,y:d+m/2},{x:f-2*m,y:d+m/2},{x:0,y:2*d},{x:f,y:d-m/2},{x:2*m,y:d-m/2}],v=en.svg(l),T=dn(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let C=ws(b),E=v.path(C,T),S=l.insert(()=>E,":first-child");return S.attr("class","outer-path"),h&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",h),s&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",s),S.attr("transform",`translate(-${f/2},${-d})`),fn(t,S),t.intersect=function(R){return Pe.info("lightningBolt intersect",t,R),Hr.polygon(t,b,R)},l}var n1r=ae(()=>{"use strict";Yn();Yi();na();wa();Ta();Yi();i(r1r,"lightningBolt")});async function s1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?24:l;if(t.width||t.height){let _=t.width??0;t.width=(t.width??0)-h,t.width<a1r&&(t.width=a1r);let N=_/2/(2.5+_/50);t.height=(t.height??0)-f-N*3,t.height<i1r&&(t.height=i1r)}let{shapeSvg:d,bbox:m,label:b}=await kn(r,t,Cn(t)),v=(t?.width?t?.width:m.width)+h*2,T=v/2,C=T/(2.5+v/50),E=(t?.height?t?.height:m.height)+C+f*2,S=E*.1,R,{cssStyles:L}=t;if(t.look==="handDrawn"){let _=en.svg(d),I=yIn(0,0,v,E,T,C,S),N=bIn(0,C,v,E,T,C),B=dn(t,{}),O=_.path(I,B),P=_.path(N,B);d.insert(()=>P,":first-child").attr("class","line"),R=d.insert(()=>O,":first-child"),R.attr("class","basic label-container"),L&&R.attr("style",L)}else{let _=mIn(0,0,v,E,T,C,S);R=d.insert("path",":first-child").attr("d",_).attr("class","basic label-container outer-path").attr("style",Cc(L)).attr("style",s)}return R.attr("label-offset-y",C),R.attr("transform",`translate(${-v/2}, ${-(E/2+C)})`),fn(t,R),b.attr("transform",`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+C-(m.y-(m.top??0))})`),t.intersect=function(_){let I=Hr.rect(t,_),N=I.x-(t.x??0);if(T!=0&&(Math.abs(N)<(t.width??0)/2||Math.abs(N)==(t.width??0)/2&&Math.abs(I.y-(t.y??0))>(t.height??0)/2-C)){let B=C*C*(1-N*N/(T*T));B>0&&(B=Math.sqrt(B)),B=C-B,_.y-(t.y??0)>0&&(B=-B),I.y+=B}return I},d}var mIn,yIn,bIn,i1r,a1r,o1r=ae(()=>{"use strict";Yi();Ta();na();wa();Ma();mIn=i((r,t,a,s,l,h,f)=>[`M${r},${t+h}`,`a${l},${h} 0,0,0 ${a},0`,`a${l},${h} 0,0,0 ${-a},0`,`l0,${s}`,`a${l},${h} 0,0,0 ${a},0`,`l0,${-s}`,`M${r},${t+h+f}`,`a${l},${h} 0,0,0 ${a},0`].join(" "),"createCylinderPathD"),yIn=i((r,t,a,s,l,h,f)=>[`M${r},${t+h}`,`M${r+a},${t+h}`,`a${l},${h} 0,0,0 ${-a},0`,`l0,${s}`,`a${l},${h} 0,0,0 ${a},0`,`l0,${-s}`,`M${r},${t+h+f}`,`a${l},${h} 0,0,0 ${a},0`].join(" "),"createOuterCylinderPathD"),bIn=i((r,t,a,s,l,h)=>[`M${r-a/2},${-s/2}`,`a${l},${h} 0,0,0 ${a},0`].join(" "),"createInnerCylinderPathD"),i1r=10,a1r=10;i(s1r,"linedCylinder")});async function l1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?12:l;if(t.width||t.height){let B=t.width;t.width=(B??0)*10/11-h*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-f*2,t.height<10&&(t.height=10)}let{shapeSvg:d,bbox:m,label:b}=await kn(r,t,Cn(t)),v=(t?.width?t?.width:m.width)+(h??0)*2,T=(t?.height?t?.height:m.height)+(f??0)*2,C=t.look==="neo"?T/4:T/8,E=T+C,{cssStyles:S}=t,R=en.svg(d),L=dn(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let _=[{x:-v/2-v/2*.1,y:-E/2},{x:-v/2-v/2*.1,y:E/2},...zT(-v/2-v/2*.1,E/2,v/2+v/2*.1,E/2,C,.8),{x:v/2+v/2*.1,y:-E/2},{x:-v/2-v/2*.1,y:-E/2},{x:-v/2,y:-E/2},{x:-v/2,y:E/2*1.1},{x:-v/2,y:-E/2}],I=R.polygon(_.map(B=>[B.x,B.y]),L),N=d.insert(()=>I,":first-child");return N.attr("class","basic label-container outer-path"),S&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",S),s&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",s),N.attr("transform",`translate(0,${-C/2})`),b.attr("transform",`translate(${-v/2+(t.padding??0)+v/2*.1/2-(m.x-(m.left??0))},${-T/2+(t.padding??0)-C-(m.y-(m.top??0))})`),fn(t,N),t.intersect=function(B){return Hr.polygon(t,_,B)},d}var c1r=ae(()=>{"use strict";Yi();Ta();wa();na();i(l1r,"linedWaveEdgedRect")});async function BO(r,t,a,s){let{labelStyles:l,nodeStyles:h}=Gr(t);t.labelStyle=l;let f=a==="icon"||t.stereotype!==void 0?{...t,icon:a==="icon"?void 0:t.icon,stereotype:void 0}:t,{shapeSvg:d,bbox:m,label:b}=await kn(r,f,Cn(t,`usecase-actor-variant usecase-actor-${a}`)),v=t.accessibleName??t.label;v&&d.attr("role","img").attr("aria-label",v),b.attr("class","label actor-label usecase-actor-label");let{theme:T,themeVariables:C}=er();yp(d,t.colorIndex,T,C.borderColorArray);let E,S;if(t.stereotype){let V=await I4(d,`\xAB${t.stereotype}\xBB`,{labelStyle:l,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});E=V.label.attr("class","label usecase-stereotype"),S=V.bbox}let R=d.append("g").attr("class",`usecase-actor-glyph ${xIn[a]}`).attr("style",h||null);await s(R,t),kIn(R,t,a);let L=t.padding??wIn,_=S?.height??0,I=AQe+u1r+m.height+(S?_+h1r:0),N=Math.max(vIn,m.width,S?.width??0)+L*2,B=I+L*2,O=-I/2;R.attr("transform",`translate(0,${O+AQe/2})`);let P=O+AQe+u1r;E&&S&&(P+=_/2,p1r(E,S,P),P+=_/2+h1r),p1r(b,m,P+m.height/2);let $=d.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-N/2).attr("y",-B/2).attr("width",N).attr("height",B).attr("opacity",0).attr("aria-hidden","true");return fn(t,$),t.intersect=V=>Hr.rect(t,V),d}async function m1r(r,t){return BO(r,t,"normal",(a,s)=>{Ore(a,s,CIn,"usecase-actor-stick")})}var vIn,AQe,u1r,h1r,wIn,xIn,f1r,d1r,RQe,TIn,p1r,Ore,g1r,kIn,CIn,Pre=ae(()=>{"use strict";wa();ma();A0();Ta();na();Yi();vIn=56,AQe=72,u1r=8,h1r=2,wIn=8,xIn={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},f1r=Math.PI/3,d1r=.6,RQe=i((r,t)=>{let a=t*d1r,s=t*Math.sqrt(1-d1r**2),l=Math.cos(f1r),h=-Math.sin(f1r),f=a*-h,d=r+a*l,m=s*l,b=s*h;return`M ${f-m} ${d-b} L ${f+m} ${d+b}`},"businessMarkerPathForCircle"),TIn={normal:RQe(-24,12),hollow:RQe(-23,9),awesome:RQe(-21,13),icon:"M 12 -8 L 26 -26"},p1r=i((r,t,a)=>{let s=(t.x??0)-(t.left??0),l=(t.y??0)-(t.top??0);r.attr("transform",`translate(${-t.width/2-s},${a-t.height/2-l})`)},"positionLabel"),Ore=i((r,t,a,s,l=!1)=>{if(t.look==="handDrawn"){let d=en.svg(r).path(a,dn(t,l?{fill:"none"}:{}));return r.insert(()=>d,":first-child").attr("class",s)}let h=r.append("path").attr("class",s).attr("d",a);return l&&h.attr("fill","none"),h},"appendActorPath"),g1r=i((r,t,a,s,l,h,f=!1)=>{if(t.look==="handDrawn"){let b=en.svg(r).circle(a,s,l*2,dn(t,f?{fill:"none"}:{}));return r.insert(()=>b,":first-child").attr("class",h)}let d=r.append("circle").attr("class",h).attr("cx",a).attr("cy",s).attr("r",l);return f&&d.attr("fill","none"),d},"appendActorCircle"),kIn=i((r,t,a)=>{t.business&&r.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",TIn[a]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");i(BO,"renderUsecaseActor");CIn=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");i(m1r,"usecaseActor")});async function y1r(r,t){return BO(r,t,"awesome",(a,s)=>{Ore(a,s,EIn,"usecase-actor-awesome-silhouette")})}var EIn,b1r=ae(()=>{"use strict";Pre();EIn=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");i(y1r,"usecaseActorAwesome")});async function v1r(r,t){return BO(r,t,"hollow",(a,s)=>{g1r(a,s,0,-23,9,"usecase-actor-hollow-head",!0),Ore(a,s,SIn,"usecase-actor-hollow-body",!0)})}var SIn,w1r=ae(()=>{"use strict";Pre();SIn=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");i(v1r,"usecaseActorHollow")});async function k1r(r,t){return BO(r,t,"icon",AIn)}var sU,x1r,T1r,AIn,C1r=ae(()=>{"use strict";wa();Xw();na();Pre();sU=52,x1r=42,T1r=-2,AIn=i(async(r,t)=>{let a=-sU/2,s=T1r-sU/2;if(t.look==="handDrawn"){let v=en.svg(r).rectangle(a,s,sU,sU,dn(t,{}));r.insert(()=>v,":first-child").attr("class","usecase-actor-icon-frame")}else r.append("rect").attr("class","usecase-actor-icon-frame").attr("x",a).attr("y",s).attr("width",sU).attr("height",sU).attr("rx",4).attr("ry",4);let l=t.icon??"",h=await nve(l.includes(":")?l:`fa:${l}`),f=await Og(l,{height:x1r,width:x1r,fallbackPrefix:"fa"}),d=r.append("g").attr("class",`usecase-actor-icon-symbol${h?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${f}</g>`),m=d.node()?.getBBox();m&&d.attr("transform",`translate(${-m.width/2-m.x},${T1r-m.height/2-m.y})`)},"drawIconActor");i(k1r,"usecaseActorIcon")});async function S1r(r,t){let a=t,{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let h=a.stereotype?{...t,stereotype:void 0}:t,{shapeSvg:f,bbox:d,halfPadding:m,label:b}=await kn(r,h,Cn(t,"usecase-business-shape"));b.attr("class","label usecase-label");let{theme:v,themeVariables:T}=er();yp(f,t.colorIndex,v,T.borderColorArray);let C,E;if(a.stereotype){let H=await I4(f,`\xAB${a.stereotype}\xBB`,{labelStyle:s,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});C=H.label.attr("class","label usecase-stereotype"),E=H.bbox}let S=E?2:0,R=d.height+(E?.height??0)+S,L=Math.max(d.width,E?.width??0),_=m??10,I=L/2+_*2,N=R/2+_*2,B=Math.min(Math.max(_/5,1),_/2),O=L/2+B,P=I-B,$=O/I,V=P/I,Y=N*Math.sqrt(Math.max(0,1-$*$)),Q=-N*Math.sqrt(Math.max(0,1-V*V));C&&E&&E1r(C,E,-R/2+E.height/2),E1r(b,d,R/2-d.height/2);let q;if(t.look==="handDrawn"){let re=en.svg(f).ellipse(0,0,I*2,N*2,dn(t,{}));q=f.insert(()=>re,":first-child").attr("class","basic label-container usecase-business-ellipse")}else q=f.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",l).attr("rx",I).attr("ry",N).attr("cx",0).attr("cy",0);f.append("path").attr("class","usecase-business-marker").attr("d",`M ${O} ${Y} L ${P} ${Q}`).attr("fill","none").attr("style",l||null);let W=a.accessibleName??a.label;return W&&f.attr("role","img").attr("aria-label",W),fn(t,q),t.calcIntersect=(H,re)=>Hr.ellipse(H,H.width/2,H.height/2,re),t.intersect=H=>Hr.ellipse(t,I,N,H),f}var E1r,A1r=ae(()=>{"use strict";wa();ma();A0();Ta();na();Yi();E1r=i((r,t,a)=>{let s=(t.x??0)-(t.left??0),l=(t.y??0)-(t.top??0);r.attr("transform",`translate(${-t.width/2-s},${a-t.height/2-l})`)},"positionLabel");i(S1r,"usecaseBusiness")});async function L1r(r,t){let a=t,{labelStyles:s,nodeStyles:l}=Gr(t),{stylesMap:h}=o2(t);t.labelStyle=s;let{shapeSvg:f,bbox:d,label:m}=await kn(r,t,Cn(t,"usecase-json-table"));f.attr("role","img"),a.accessibleName&&f.attr("aria-label",a.accessibleName),m.attr("class","label usecase-json-title");let b=f.append("g").attr("class","usecase-json-table-grid"),v=[];for(let H of a.jsonRows??[]){let re=await I4(b,H.key,{labelStyle:s,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0}),Z=await I4(b,H.value,{labelStyle:s,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0});v.push({key:{label:re.label.attr("class","label usecase-json-key"),bbox:re.bbox},value:{label:Z.label.attr("class","label usecase-json-value"),bbox:Z.bbox}})}let T=Math.max(0,...v.map(({key:H})=>H.bbox.width))+LQe*2,C=Math.max(0,...v.map(({value:H})=>H.bbox.width))+LQe*2,E=d.width+LQe*2,S=Math.max(E,T+C),R=C+Math.max(0,S-T-C),L=d.height+R1r*2,_=v.map(({key:H,value:re})=>Math.max(H.bbox.height,re.bbox.height)+R1r*2),I=L+_.reduce((H,re)=>H+re,0),N=LIn(h.get("stroke-width")),B=S+N*2,O=I+N*2,P=-S/2,$=-I/2,V=t.look==="handDrawn"?en.svg(f):void 0,Y=V?dn(t,{}):void 0,Q=i((H,re,Z,X,te,U)=>{if(V&&Y){let ne=V.rectangle(Z,X,te,U,Y);return H.insert(()=>ne,":first-child").attr("class",re)}return H.insert("rect",":first-child").attr("class",re).attr("x",Z).attr("y",X).attr("width",te).attr("height",U).attr("style",l)},"insertCell"),q=Q(f,"label-container usecase-json-border",-B/2,-O/2,B,O);Q(b,"usecase-json-cell usecase-json-title-cell",P,$,S,L),b.node()?.append(m.node()),_Qe(m,d,0,$+L/2);let W=$+L;return v.forEach(({key:H,value:re},Z)=>{let X=_[Z],te=b.append("g").attr("class","usecase-json-row").attr("data-row-index",Z).attr("transform",`translate(0,${W})`);Q(te,"usecase-json-cell usecase-json-key-cell",P,0,T,X),Q(te,"usecase-json-cell usecase-json-value-cell",P+T,0,R,X),te.node()?.append(H.label.node(),re.label.node()),_Qe(H.label,H.bbox,P+T/2,X/2),_Qe(re.label,re.bbox,P+T+R/2,X/2),W+=X}),fn(t,q),t.intersect=H=>Hr.rect(t,H),f}var LQe,R1r,RIn,_Qe,LIn,_1r=ae(()=>{"use strict";wa();Ta();na();Yi();LQe=8,R1r=4,RIn=1,_Qe=i((r,t,a,s)=>{let l=(t.x??0)-(t.left??0),h=(t.y??0)-(t.top??0);r.attr("transform",`translate(${a-t.width/2-l},${s-t.height/2-h})`)},"positionLabel"),LIn=i(r=>{let t=Number.parseFloat(r??"");return Number.isFinite(t)&&t>=0?t:RIn},"numericStrokeWidth");i(L1r,"usecaseJsonTable")});async function D1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?12:l,d=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-h*2-2*d,10),t.height=Math.max((t?.height??0)-f*2-2*d,10));let{shapeSvg:m,bbox:b,label:v}=await kn(r,t,Cn(t)),T=(t?.width?t?.width:b.width)+h*2+2*d,C=(t?.height?t?.height:b.height)+f*2+2*d,E=T-2*d,S=C-2*d,R=-E/2,L=-S/2,{cssStyles:_}=t,I=en.svg(m),N=dn(t,{}),B=[{x:R-d,y:L+d},{x:R-d,y:L+S+d},{x:R+E-d,y:L+S+d},{x:R+E-d,y:L+S},{x:R+E,y:L+S},{x:R+E,y:L+S-d},{x:R+E+d,y:L+S-d},{x:R+E+d,y:L-d},{x:R+d,y:L-d},{x:R+d,y:L},{x:R,y:L},{x:R,y:L+d}],O=[{x:R,y:L+d},{x:R+E-d,y:L+d},{x:R+E-d,y:L+S},{x:R+E,y:L+S},{x:R+E,y:L},{x:R,y:L}];t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");let P=ws(B),$=I.path(P,N),V=ws(O),Y=I.path(V,N);t.look!=="handDrawn"&&($=iQe($),Y=iQe(Y));let Q=m.insert("g",":first-child");return Q.insert(()=>$),Q.insert(()=>Y),Q.attr("class","basic label-container outer-path"),_&&t.look!=="handDrawn"&&Q.selectAll("path").attr("style",_),s&&t.look!=="handDrawn"&&Q.selectAll("path").attr("style",s),v.attr("transform",`translate(${-(b.width/2)-d-(b.x-(b.left??0))}, ${-(b.height/2)+d-(b.y-(b.top??0))})`),fn(t,Q),t.intersect=function(q){return Hr.polygon(t,B,q)},m}var I1r=ae(()=>{"use strict";Yi();na();wa();Ta();i(D1r,"multiRect")});async function M1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t)),d=t.padding??0,m=t.look==="neo"?16:d,b=t.look==="neo"?12:d,v=!0;(t.width||t.height)&&(v=!1,t.width=(t?.width??0)-m*2,t.height=(t?.height??0)-b*3);let T=Math.max(h.width,t?.width??0)+m*2,C=Math.max(h.height,t?.height??0)+b*3,E=t.look==="neo"?C/4:C/8,S=C+(v?E/2:-E/2),R=-T/2,L=-S/2,_=10,{cssStyles:I}=t,N=zT(R-_,L+S+_,R+T-_,L+S+_,E,.8),B=N?.[N.length-1],O=[{x:R-_,y:L+_},{x:R-_,y:L+S+_},...N,{x:R+T-_,y:B.y-_},{x:R+T,y:B.y-_},{x:R+T,y:B.y-2*_},{x:R+T+_,y:B.y-2*_},{x:R+T+_,y:L-_},{x:R+_,y:L-_},{x:R+_,y:L},{x:R,y:L},{x:R,y:L+_}],P=[{x:R,y:L+_},{x:R+T-_,y:L+_},{x:R+T-_,y:B.y-_},{x:R+T,y:B.y-_},{x:R+T,y:L},{x:R,y:L}],$=en.svg(l),V=dn(t,{});t.look!=="handDrawn"&&(V.roughness=0,V.fillStyle="solid");let Y=ws(O),Q=$.path(Y,V),q=ws(P),W=$.path(q,V),H=l.insert(()=>Q,":first-child");return H.insert(()=>W),H.attr("class","basic label-container outer-path"),I&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",I),s&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",s),H.attr("transform",`translate(0,${-E/2})`),f.attr("transform",`translate(${-(h.width/2)-_-(h.x-(h.left??0))}, ${-(h.height/2)+_-E-(h.y-(h.top??0))})`),fn(t,H),t.intersect=function(re){return Hr.polygon(t,O,re)},l}var N1r=ae(()=>{"use strict";Yi();Ta();wa();na();i(M1r,"multiWaveEdgedRectangle")});async function O1r(r,t,{config:{themeVariables:a}}){let{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s,t.useHtmlLabels||Fh(ri())||(t.centerLabel=!0);let{shapeSvg:f,bbox:d,label:m}=await kn(r,t,Cn(t)),b=Math.max(d.width+(t.padding??0)*2,t?.width??0),v=Math.max(d.height+(t.padding??0)*2,t?.height??0),T=-b/2,C=-v/2,{cssStyles:E}=t,S=en.svg(f),R=dn(t,{fill:a.noteBkgColor,stroke:a.noteBorderColor});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let L=S.rectangle(T,C,b,v,R),_=f.insert(()=>L,":first-child");return _.attr("class","basic label-container outer-path"),m.attr("class","label noteLabel"),E&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",E),l&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",l),m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),fn(t,_),t.intersect=function(I){return Hr.rect(t,I)},f}var P1r=ae(()=>{"use strict";wa();Ta();na();Yi();Xs();Xs();i(O1r,"note")});async function B1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h}=await kn(r,t,Cn(t)),f=h.width+(t.padding??0),d=h.height+(t.padding??0),m=f+d,b=.5,v=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],T,{cssStyles:C}=t;if(t.look==="handDrawn"){let E=en.svg(l),S=dn(t,{}),R=_In(0,0,m),L=E.path(R,S);T=l.insert(()=>L,":first-child").attr("transform",`translate(${-m/2+b}, ${m/2})`),C&&T.attr("style",C)}else T=bm(l,m,m,v),T.attr("transform",`translate(${-m/2+b}, ${m/2})`);return s&&T.attr("style",s),fn(t,T),t.calcIntersect=function(E,S){let R=E.width,L=[{x:R/2,y:0},{x:R,y:-R/2},{x:R/2,y:-R},{x:0,y:-R/2}];return Hr.polygon(E,L,S)},t.intersect=function(E){return this.calcIntersect(t,E)},l}var _In,F1r=ae(()=>{"use strict";Yi();Ta();na();wa();cS();_In=i((r,t,a)=>[`M${r+a/2},${t}`,`L${r+a},${t-a/2}`,`L${r+a/2},${t-a}`,`L${r},${t-a/2}`,"Z"].join(" "),"createDecisionBoxPathD");i(B1r,"question")});async function $1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?21:l??0,f=t.look==="neo"?12:l??0,{shapeSvg:d,bbox:m,label:b}=await kn(r,t,Cn(t)),v=m.width+(t.look==="neo"?h*2:h),T=Math.max(m.height+(t.look==="neo"?f*2:f),t.height??0),C=T/4,S=-Math.max(v,(t.width??0)-C)/2,R=-T/2,L=R/2,_=[{x:S+L,y:R},{x:S,y:0},{x:S+L,y:-R},{x:-S,y:-R},{x:-S,y:R}],{cssStyles:I}=t,N=en.svg(d),B=dn(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let O=ws(_),P=N.path(O,B),$=d.insert(()=>P,":first-child");return $.attr("class","basic label-container outer-path"),I&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",I),s&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",s),$.attr("transform",`translate(${-L/2},0)`),b.attr("transform",`translate(${-L/2-m.width/2-(m.x-(m.left??0))}, ${-(m.height/2)-(m.y-(m.top??0))})`),fn(t,$),t.intersect=function(V){return Hr.polygon(t,_,V)},d}var G1r=ae(()=>{"use strict";Yi();Ta();na();wa();i($1r,"rect_left_inv_arrow")});var DIn,WT,Twe=ae(()=>{"use strict";Xs();ma();ex();DIn=i(async(r,t,a,s=!1,l=!1)=>{let h=t||"";typeof h=="object"&&(h=h[0]);let f=er(),d=Fh(f);return await jh(r,h,{style:a,isTitle:s,useHtmlLabels:d,markdown:!1,isNode:l,width:Number.POSITIVE_INFINITY},f)},"createLabel"),WT=DIn});async function j1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l;t.cssClasses?l="node "+t.cssClasses:l="node default";let h=r.insert("g").attr("class",l).attr("id",t.domId||t.id),f=h.insert("g"),d=h.insert("g").attr("class","label").attr("style",s),m=t.description,b=t.label,v=await WT(d,b,t.labelStyle,!0,!0),T={width:0,height:0};if(Fh(er())){let V=v.children[0],Y=mn(v);T=V.getBoundingClientRect(),Y.attr("width",T.width),Y.attr("height",T.height)}Pe.info("Text 2",m);let C=m||[],E=v.getBBox(),S=await WT(d,Array.isArray(C)?C.join("<br/>"):C,t.labelStyle,!0,!0),R=S.children[0],L=mn(S);T=R.getBoundingClientRect(),L.attr("width",T.width),L.attr("height",T.height);let _=(t.padding||0)/2;mn(S).attr("transform","translate( "+(T.width>E.width?0:(E.width-T.width)/2)+", "+(E.height+_+5)+")"),mn(v).attr("transform","translate( "+(T.width<E.width?0:-(E.width-T.width)/2)+", 0)"),T=d.node().getBBox(),d.attr("transform","translate("+-T.width/2+", "+(-T.height/2-_+3)+")");let I=T.width+(t.padding||0),N=T.height+(t.padding||0),B=-T.width/2-_,O=-T.height/2-_,P,$;if(t.look==="handDrawn"){let V=en.svg(h),Y=dn(t,{}),Q=V.path(Nd(B,O,I,N,t.rx||0),Y),q=V.line(-T.width/2-_,-T.height/2-_+E.height+_,T.width/2+_,-T.height/2-_+E.height+_,Y);$=h.insert(()=>(Pe.debug("Rough node insert CXC",Q),q),":first-child"),P=h.insert(()=>(Pe.debug("Rough node insert CXC",Q),Q),":first-child")}else P=f.insert("rect",":first-child"),$=f.insert("line"),P.attr("class","outer title-state").attr("style",s).attr("x",-T.width/2-_).attr("y",-T.height/2-_).attr("width",T.width+(t.padding||0)).attr("height",T.height+(t.padding||0)),$.attr("class","divider").attr("x1",-T.width/2-_).attr("x2",T.width/2+_).attr("y1",-T.height/2-_+E.height+_).attr("y2",-T.height/2-_+E.height+_);return fn(t,P),t.intersect=function(V){return Hr.rect(t,V)},h}var z1r=ae(()=>{"use strict";zo();Yi();Twe();Ta();na();wa();ma();M4();Yn();Xs();i(j1r,"rectWithTitle")});async function U1r(r,t,{config:{themeVariables:a}}){let s=a?.radius??5,l={rx:s,ry:s,classes:"",labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return N4(r,t,l)}var V1r=ae(()=>{"use strict";PO();i(U1r,"roundedRect")});async function W1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.look==="neo"?16:t.padding??0,h=t.look==="neo"?12:t.padding??0,{shapeSvg:f,bbox:d,label:m}=await kn(r,t,Cn(t)),b=(t?.width??d.width)+l*2+(t.look==="neo"?FO:FO*2),v=(t?.height??d.height)+h*2,T=b-FO,C=v,E=FO-b/2,S=-v/2,{cssStyles:R}=t,L=en.svg(f),_=dn(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let I=[{x:E,y:S},{x:E+T,y:S},{x:E+T,y:S+C},{x:E-FO,y:S+C},{x:E-FO,y:S},{x:E,y:S},{x:E,y:S+C}],N=L.polygon(I.map(O=>[O.x,O.y]),_),B=f.insert(()=>N,":first-child");return B.attr("class","basic label-container outer-path").attr("style",Cc(R)),s&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",s),R&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",s),m.attr("transform",`translate(${FO/2-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),fn(t,B),t.intersect=function(O){return Hr.rect(t,O)},f}var FO,H1r=ae(()=>{"use strict";Yi();Ta();na();wa();Ma();FO=8;i(W1r,"shadedProcess")});async function q1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?12:l;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-h*2,10),t.height=Math.max((t?.height??0)/1.5-f*2,10));let{shapeSvg:d,bbox:m,label:b}=await kn(r,t,Cn(t)),v=(t?.width?t?.width:m.width)+h*2,T=((t?.height?t?.height:m.height)+f*2)*1.5,C=v,E=T/1.5,S=-C/2,R=-E/2,{cssStyles:L}=t,_=en.svg(d),I=dn(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let N=[{x:S,y:R},{x:S,y:R+E},{x:S+C,y:R+E},{x:S+C,y:R-E/2}],B=ws(N),O=_.path(B,I),P=d.insert(()=>O,":first-child");return P.attr("class","basic label-container outer-path"),L&&t.look!=="handDrawn"&&P.selectChildren("path").attr("style",L),s&&t.look!=="handDrawn"&&P.selectChildren("path").attr("style",s),P.attr("transform",`translate(0, ${E/4})`),b.attr("transform",`translate(${-C/2+(t.padding??0)-(m.x-(m.left??0))}, ${-E/4+(t.padding??0)-(m.y-(m.top??0))})`),fn(t,P),t.intersect=function($){return Hr.polygon(t,N,$)},d}var Y1r=ae(()=>{"use strict";Yi();Ta();na();wa();i(q1r,"slopedRect")});async function X1r(r,t){let a=t.padding??0,s=t.look==="neo"?16:a*2,l=t.look==="neo"?12:a,h={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??s,labelPaddingY:l},f=await N4(r,t,h);if(t.colorIndex!==void 0){let{theme:d,themeVariables:m}=er();yp(f,t.colorIndex,d,m.borderColorArray)}return f}var K1r=ae(()=>{"use strict";ma();A0();PO();i(X1r,"squareRect")});async function J1r(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?40:l,f=t.look==="neo"?24:l,{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),{w:b,h:v}=IIn(m,h,f),T=v/2,{cssStyles:C}=t,E=en.svg(d),S=dn(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let R=[{x:-b/2+T,y:-v/2},{x:b/2-T,y:-v/2},...tx(-b/2+T,0,T,DQe,90,270),{x:b/2-T,y:v/2},...tx(b/2-T,0,T,DQe,270,450)],L=ws(R),_=E.path(L,S),I=d.insert(()=>_,":first-child");return I.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",C),s&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",s),fn(t,I),t.intersect=function(N){return Hr.polygon(t,R,N)},d}var DQe,IIn,Q1r=ae(()=>{"use strict";Yi();Ta();na();wa();DQe=50,IIn=i((r,t,a)=>{let s=r.height+a,l=s*Math.cos(Math.PI/(2*(DQe-1))),h=Math.sqrt(Math.max(0,l**2-r.height**2));return{w:Math.max(r.width+s/4+t,1.5*s+(s-l),r.width+t+s-h),h:s}},"stadiumDimensions");i(J1r,"stadium")});async function Z1r(r,t){let a={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5,classes:"flowchart-node"};return N4(r,t,a)}var eyr=ae(()=>{"use strict";PO();i(Z1r,"state")});function tyr(r,t,{config:{themeVariables:a}}){let{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let{cssStyles:h}=t,{lineColor:f,stateBorder:d,nodeBorder:m,nodeShadow:b}=a;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let v=r.insert("g").attr("class","node default").attr("id",t.domId??t.id),T=en.svg(v),C=dn(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let E=T.circle(0,0,t.width,{...C,stroke:f,strokeWidth:2}),S=d??m,R=(t.width??0)*5/14,L=T.circle(0,0,R,{...C,fill:S,stroke:S,strokeWidth:2,fillStyle:"solid"}),_=v.insert(()=>E,":first-child");if(_.insert(()=>L),t.look!=="handDrawn"&&_.attr("class","outer-path"),h&&_.selectAll("path").attr("style",h),l&&_.selectAll("path").attr("style",l),t.width<25&&b&&t.look!=="handDrawn"){let I=r.node()?.ownerSVGElement?.id??"",N=I?`${I}-drop-shadow-small`:"drop-shadow-small";_.attr("style",`filter:url(#${N})`)}return fn(t,_),t.intersect=function(I){return Hr.circle(t,(t.width??0)/2,I)},v}var ryr=ae(()=>{"use strict";wa();Ta();na();Yi();i(tyr,"stateEnd")});function nyr(r,t,{config:{themeVariables:a}}){let{lineColor:s,nodeShadow:l}=a;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let h=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),f;if(t.look==="handDrawn"){let m=en.svg(h).circle(0,0,t.width,g0r(s));f=h.insert(()=>m),f.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else f=h.insert("circle",":first-child"),f.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&l&&t.look!=="handDrawn"){let d=r.node()?.ownerSVGElement?.id??"",m=d?`${d}-drop-shadow-small`:"drop-shadow-small";f.attr("style",`filter:url(#${m})`)}return fn(t,f),t.intersect=function(d){return Hr.circle(t,(t.width??7)/2,d)},h}var iyr=ae(()=>{"use strict";wa();Ta();na();Yi();i(nyr,"stateStart")});async function ayr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t?.padding??8,h=t.look==="neo"?28:l,f=t.look==="neo"?12:l,{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),b=Math.max(m.width+2*oU+h,t.width??0),v=Math.max(m.height+f,t.height??0),T=b-2*oU,C=v,E=-b/2,S=-v/2,R=[{x:0,y:0},{x:T,y:0},{x:T,y:-C},{x:0,y:-C},{x:0,y:0},{x:-8,y:0},{x:T+8,y:0},{x:T+8,y:-C},{x:-8,y:-C},{x:-8,y:0}];if(t.look==="handDrawn"){let L=en.svg(d),_=dn(t,{}),I=L.rectangle(E,S,T+16,C,_),N=L.line(E+oU,S,E+oU,S+C,_),B=L.line(E+oU+T,S,E+oU+T,S+C,_);d.insert(()=>N,":first-child"),d.insert(()=>B,":first-child");let O=d.insert(()=>I,":first-child"),{cssStyles:P}=t;O.attr("class","basic label-container").attr("style",Cc(P)),fn(t,O)}else{let L=bm(d,T,C,R);s&&L.attr("style",s),fn(t,L)}return t.intersect=function(L){return Hr.polygon(t,R,L)},d}var oU,syr=ae(()=>{"use strict";Yi();Ta();na();wa();cS();Ma();oU=8;i(ayr,"subroutine")});async function oyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?12:l;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-f*2,10),t.width=Math.max((t?.width??0)-h*2-IQe*(t.height+f*2),10));let{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),b=(t?.height?t?.height:m.height)+f*2,v=IQe*b,T=IQe*b,E=(t?.width?t?.width:m.width)+h*2+v-v,S=b,R=-E/2,L=-S/2,{cssStyles:_}=t,I=en.svg(d),N=dn(t,{}),B=[{x:R-v/2,y:L},{x:R+E+v/2,y:L},{x:R+E+v/2,y:L+S},{x:R-v/2,y:L+S}],O=[{x:R+E-v/2,y:L+S},{x:R+E+v/2,y:L+S},{x:R+E+v/2,y:L+S-T}];t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");let P=ws(B),$=I.path(P,N),V=ws(O),Y=I.path(V,{...N,fillStyle:"solid"}),Q=d.insert(()=>Y,":first-child");return Q.insert(()=>$,":first-child"),Q.attr("class","basic label-container outer-path"),_&&t.look!=="handDrawn"&&Q.selectAll("path").attr("style",_),s&&t.look!=="handDrawn"&&Q.selectAll("path").attr("style",s),fn(t,Q),t.intersect=function(q){return Hr.polygon(t,B,q)},d}var IQe,lyr=ae(()=>{"use strict";Yi();na();wa();Ta();IQe=.2;i(oyr,"taggedRect")});async function cyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t)),d=Math.max(h.width+(t.padding??0)*2,t?.width??0),m=Math.max(h.height+(t.padding??0)*2,t?.height??0),b=m/8,v=.2*d,T=.2*m,C=m+b,{cssStyles:E}=t,S=en.svg(l),R=dn(t,{});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let L=[{x:-d/2-d/2*.1,y:C/2},...zT(-d/2-d/2*.1,C/2,d/2+d/2*.1,C/2,b,.8),{x:d/2+d/2*.1,y:-C/2},{x:-d/2-d/2*.1,y:-C/2}],_=-d/2+d/2*.1,I=-C/2-T*.4,N=[{x:_+d-v,y:(I+m)*1.3},{x:_+d,y:I+m-T},{x:_+d,y:(I+m)*.9},...zT(_+d,(I+m)*1.25,_+d-v,(I+m)*1.3,-m*.02,.5)],B=ws(L),O=S.path(B,R),P=ws(N),$=S.path(P,{...R,fillStyle:"solid"}),V=l.insert(()=>$,":first-child");return V.insert(()=>O,":first-child"),V.attr("class","basic label-container outer-path"),E&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",E),s&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",s),V.attr("transform",`translate(0,${-b/2})`),f.attr("transform",`translate(${-d/2+(t.padding??0)-(h.x-(h.left??0))},${-m/2+(t.padding??0)-b/2-(h.y-(h.top??0))})`),fn(t,V),t.intersect=function(Y){return Hr.polygon(t,L,Y)},l}var uyr=ae(()=>{"use strict";Yi();Ta();wa();na();i(cyr,"taggedWaveEdgedRectangle")});async function hyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h}=await kn(r,t,Cn(t)),f=Math.max(h.width+(t.padding??0),t?.width||0),d=Math.max(h.height+(t.padding??0),t?.height||0),m=-f/2,b=-d/2,v=l.insert("rect",":first-child");return v.attr("class","text").attr("style",s).attr("rx",0).attr("ry",0).attr("x",m).attr("y",b).attr("width",f).attr("height",d),fn(t,v),t.intersect=function(T){return Hr.rect(t,T)},l}var fyr=ae(()=>{"use strict";Yi();Ta();na();i(hyr,"text")});async function gyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?12:l/2,f=t.height??0;if(t.height&&(t.height=t.height-h,t.height<dyr&&(t.height=dyr)),t.width){let _=f/2/(2.5+f/50);t.width=t.width-h-_*3,t.width<pyr&&(t.width=pyr)}let{shapeSvg:d,bbox:m,label:b}=await kn(r,t,Cn(t)),v=Math.max(t.height??0,m.height)+h,T=v/2,C=T/(2.5+v/50),E=Math.max(t.width??0,m.width)+C+h,{cssStyles:S}=t,R;if(t.look==="handDrawn"){let L=en.svg(d),_=NIn(0,0,E,v,C,T),I=OIn(0,0,E,v,C,T),N=L.path(_,dn(t,{})),B=L.path(I,dn(t,{fill:"none"}));R=d.insert(()=>B,":first-child"),R=d.insert(()=>N,":first-child"),R.attr("class","basic label-container"),S&&R.attr("style",S)}else{let L=MIn(0,0,E,v,C,T);R=d.insert("path",":first-child").attr("d",L).attr("class","basic label-container").attr("style",Cc(S)).attr("style",s),R.attr("class","basic label-container outer-path"),S&&R.selectAll("path").attr("style",S),s&&R.selectAll("path").attr("style",s)}return R.attr("label-offset-x",C),R.attr("transform",`translate(${-E/2}, ${v/2} )`),b.attr("transform",`translate(${-(m.width/2)-C-(m.x-(m.left??0))}, ${-(m.height/2)-(m.y-(m.top??0))})`),fn(t,R),t.intersect=function(L){let _=Hr.rect(t,L),I=_.y-(t.y??0);if(T!=0&&(Math.abs(I)<(t.height??0)/2||Math.abs(I)==(t.height??0)/2&&Math.abs(_.x-(t.x??0))>(t.width??0)/2-C)){let N=C*C*(1-I*I/(T*T));N!=0&&(N=Math.sqrt(Math.abs(N))),N=C-N,L.x-(t.x??0)>0&&(N=-N),_.x+=N}return _},d}var MIn,NIn,OIn,dyr,pyr,myr=ae(()=>{"use strict";Yi();na();wa();Ta();Ma();MIn=i((r,t,a,s,l,h)=>`M${r},${t}
|
|
a${l},${h} 0,0,1 0,${-s}
|
|
l${a},0
|
|
a${l},${h} 0,0,1 0,${s}
|
|
M${a},${-s}
|
|
a${l},${h} 0,0,0 0,${s}
|
|
l${-a},0`,"createCylinderPathD"),NIn=i((r,t,a,s,l,h)=>[`M${r},${t}`,`M${r+a},${t}`,`a${l},${h} 0,0,0 0,${-s}`,`l${-a},0`,`a${l},${h} 0,0,0 0,${s}`,`l${a},0`].join(" "),"createOuterCylinderPathD"),OIn=i((r,t,a,s,l,h)=>[`M${r+a/2},${-s/2}`,`a${l},${h} 0,0,0 0,${s}`].join(" "),"createInnerCylinderPathD"),dyr=5,pyr=10;i(gyr,"tiltedCylinder")});async function yyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=(t.look==="neo",l),f=t.look==="neo"?l*2:l,{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),b=Math.max(m.height+h,t.height??0),v=Math.max(m.width+f,(t.width??0)-b),T=[{x:-3*b/6,y:0},{x:v+3*b/6,y:0},{x:v,y:-b},{x:0,y:-b}],C,{cssStyles:E}=t;if(t.look==="handDrawn"){let S=en.svg(d),R=dn(t,{}),L=ws(T),_=S.path(L,R);C=d.insert(()=>_,":first-child").attr("transform",`translate(${-v/2}, ${b/2})`),E&&C.attr("style",E)}else C=bm(d,v,b,T);return s&&C.attr("style",s),t.width=v,t.height=b,fn(t,C),t.intersect=function(S){return Hr.polygon(t,T,S)},d}var byr=ae(()=>{"use strict";Yi();Ta();na();wa();cS();i(yyr,"trapezoid")});async function vyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?12:l,d=15,m=5;(t.width||t.height)&&(t.height=(t.height??0)-f*2,t.height<m&&(t.height=m),t.width=(t.width??0)-h*2,t.width<d&&(t.width=d));let{shapeSvg:b,bbox:v}=await kn(r,t,Cn(t)),T=(t?.width?t?.width:v.width)+h*2,C=(t?.height?t?.height:v.height)+f*2,{cssStyles:E}=t,S=en.svg(b),R=dn(t,{});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let L=[{x:-T/2*.8,y:-C/2},{x:T/2*.8,y:-C/2},{x:T/2,y:-C/2*.6},{x:T/2,y:C/2},{x:-T/2,y:C/2},{x:-T/2,y:-C/2*.6}],_=ws(L),I=S.path(_,R),N=b.insert(()=>I,":first-child");return N.attr("class","basic label-container outer-path"),E&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",E),s&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",s),fn(t,N),t.intersect=function(B){return Hr.polygon(t,L,B)},b}var wyr=ae(()=>{"use strict";Yi();Ta();na();wa();i(vyr,"trapezoidalPentagon")});async function kyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?l*2:l;(t.width||t.height)&&(t.width=((t?.width??0)-h)/2,t.width<Tyr&&(t.width=Tyr),t.height=t?.height??0,t.height<xyr&&(t.height=xyr));let{shapeSvg:f,bbox:d,label:m}=await kn(r,t,Cn(t)),b=fm(er().flowchart?.htmlLabels),v=(t?.width?t?.width:d.width)+h,T=t?.height?t?.height:v+d.height,C=T,E=[{x:0,y:0},{x:C,y:0},{x:C/2,y:-T}],{cssStyles:S}=t,R=en.svg(f),L=dn(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let _=ws(E),I=R.path(_,L),N=f.insert(()=>I,":first-child").attr("transform",`translate(${-T/2}, ${T/2})`).attr("class","outer-path");return S&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",S),s&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",s),t.width=v,t.height=T,fn(t,N),m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${T/2-(d.height+(t.padding??0)/(b?2:1)-(d.y-(d.top??0)))})`),t.intersect=function(B){return Pe.info("Triangle intersect",t,E,B),Hr.polygon(t,E,B)},f}var xyr,Tyr,Cyr=ae(()=>{"use strict";Yn();Yi();Ta();na();wa();Yi();nl();ma();xyr=10,Tyr=10;i(kyr,"triangle")});async function Eyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?12:l,d=!0;(t.width||t.height)&&(d=!1,t.width=(t?.width??0)-h*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-f*2,t.height<10&&(t.height=10));let{shapeSvg:m,bbox:b,label:v}=await kn(r,t,Cn(t)),T=(t?.width?t?.width:b.width)+(h??0)*2,C=(t?.height?t?.height:b.height)+(f??0)*2,E=t.look==="neo"?C/4:C/8,S=C+(d?E:-E),{cssStyles:R}=t,_=14-T,I=_>0?_/2:0,N=en.svg(m),B=dn(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let O=[{x:-T/2-I,y:S/2},...zT(-T/2-I,S/2,T/2+I,S/2,E,.8),{x:T/2+I,y:-S/2},{x:-T/2-I,y:-S/2}],P=ws(O),$=N.path(P,B),V=m.insert(()=>$,":first-child");return V.attr("class","basic label-container outer-path"),R&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",R),s&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",s),V.attr("transform",`translate(0,${-E/2})`),v.attr("transform",`translate(${-T/2+(t.padding??0)-(b.x-(b.left??0))},${-C/2+(t.padding??0)-E-(b.y-(b.top??0))})`),fn(t,V),t.intersect=function(Y){return Hr.polygon(t,O,Y)},m}var Syr=ae(()=>{"use strict";Yi();Ta();wa();na();i(Eyr,"waveEdgedRectangle")});async function Ayr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.padding??0,h=t.look==="neo"?16:l,f=t.look==="neo"?20:l;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let B=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-f-B*(20/9)),t.width=t.width-h*2}let{shapeSvg:d,bbox:m}=await kn(r,t,Cn(t)),b=(t?.width?t?.width:m.width)+h*2,v=(t?.height?t?.height:m.height)+f,T=v/8,C=v+T*2,{cssStyles:E}=t,S=en.svg(d),R=dn(t,{});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let L=[{x:-b/2,y:C/2},...zT(-b/2,C/2,b/2,C/2,T,1),{x:b/2,y:-C/2},...zT(b/2,-C/2,-b/2,-C/2,T,-1)],_=ws(L),I=S.path(_,R),N=d.insert(()=>I,":first-child");return N.attr("class","basic label-container"),E&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",E),s&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",s),fn(t,N),t.intersect=function(B){return Hr.polygon(t,L,B)},d}var Ryr=ae(()=>{"use strict";Yi();Ta();na();wa();i(Ayr,"waveRectangle")});async function Lyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t.look==="neo"?16:t.padding??0,h=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-l*2-bp,10),t.height=Math.max((t?.height??0)-h*2-bp,10));let{shapeSvg:f,bbox:d,label:m}=await kn(r,t,Cn(t)),b=(t?.width?t?.width:d.width)+l*2+bp,v=(t?.height?t?.height:d.height)+h*2+bp,T=b-bp,C=v-bp,E=-T/2,S=-C/2,{cssStyles:R}=t,L=en.svg(f),_=dn(t,{}),I=[{x:E-bp,y:S-bp},{x:E-bp,y:S+C},{x:E+T,y:S+C},{x:E+T,y:S-bp}],N=`M${E-bp},${S-bp} L${E+T},${S-bp} L${E+T},${S+C} L${E-bp},${S+C} L${E-bp},${S-bp}
|
|
M${E-bp},${S} L${E+T},${S}
|
|
M${E},${S-bp} L${E},${S+C}`;t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let B=L.path(N,_),O=f.insert(()=>B,":first-child");return O.attr("transform",`translate(${bp/2}, ${bp/2})`),O.attr("class","basic label-container outer-path"),R&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",R),s&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",s),m.attr("transform",`translate(${-(d.width/2)+bp/2-(d.x-(d.left??0))}, ${-(d.height/2)+bp/2-(d.y-(d.top??0))})`),fn(t,O),t.intersect=function(P){return Hr.polygon(t,I,P)},f}var bp,_yr=ae(()=>{"use strict";Yi();na();wa();Ta();bp=10;i(Lyr,"windowPane")});async function MQe(r,t){let a=t;a.alias&&(t.label=a.alias);let{theme:s,themeVariables:l}=ri(),{rowEven:h,rowOdd:f,nodeBorder:d,borderColorArray:m}=l;if(t.look==="handDrawn"){let{themeVariables:Ae}=ri(),{background:ve}=Ae,Ie={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ve}`]};await MQe(r,Ie)}let b=ri();t.useHtmlLabels=b.htmlLabels;let v=b.er?.diagramPadding??10,T=b.er?.entityPadding??6,{cssStyles:C}=t,{labelStyles:E,nodeStyles:S}=Gr(t);if(a.attributes.length===0&&t.label){let Ae={rx:0,ry:0,labelPaddingX:v,labelPaddingY:v*1.5,classes:""};d1(t.label,b)+Ae.labelPaddingX*2<b.er.minEntityWidth&&(t.width=b.er.minEntityWidth);let ve=await N4(r,t,Ae);if(s!=null&&Dyr.has(s)){let Ie=a.colorIndex??0;ve.attr("data-color-id",`color-${Ie%m.length}`)}if(!fm(b.htmlLabels)){let Ie=ve.select("text"),De=Ie.node()?.getBBox();Ie.attr("transform",`translate(${-De.width/2}, 0)`)}return ve}b.htmlLabels||(v*=1.25,T*=1.25);let R=Cn(t);R||(R="node default");let L=r.insert("g").attr("class",R).attr("id",t.domId||t.id),_=await Bre(L,t.label??"",b,0,0,["name"],E);_.height+=T;let I=0,N=[],B=[],O=0,P=0,$=0,V=0,Y=!0,Q=!0;for(let Ae of a.attributes){let ve=await Bre(L,Ae.type,b,0,I,["attribute-type"],E);O=Math.max(O,ve.width+v);let Ie=await Bre(L,Ae.name,b,0,I,["attribute-name"],E);P=Math.max(P,Ie.width+v);let De=await Bre(L,Ae.keys.join(),b,0,I,["attribute-keys"],E);$=Math.max($,De.width+v);let Be=await Bre(L,Ae.comment,b,0,I,["attribute-comment"],E);V=Math.max(V,Be.width+v);let Fe=Math.max(ve.height,Ie.height,De.height,Be.height)+T;B.push({yOffset:I,rowHeight:Fe}),I+=Fe}let q=4;$<=v&&(Y=!1,$=0,q--),V<=v&&(Q=!1,V=0,q--);let W=L.node().getBBox();if(_.width+v*2-(O+P+$+V)>0){let Ae=_.width+v*2-(O+P+$+V);O+=Ae/q,P+=Ae/q,$>0&&($+=Ae/q),V>0&&(V+=Ae/q)}let H=O+P+$+V,re=en.svg(L),Z=dn(t,{});t.look!=="handDrawn"&&(Z.roughness=0,Z.fillStyle="solid");let X=0;B.length>0&&(X=B.reduce((Ae,ve)=>Ae+(ve?.rowHeight??0),0));let te=Math.max(W.width+v*2,t?.width||0,H),U=Math.max((X??0)+_.height,t?.height||0),ne=-te/2,se=-U/2;if(L.selectAll("g:not(:first-child)").each((Ae,ve,Ie)=>{let De=mn(Ie[ve]),Be=De.attr("transform"),Fe=0,ze=0;if(Be){let lt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Be);lt&&(Fe=parseFloat(lt[1]),ze=parseFloat(lt[2]),De.attr("class").includes("attribute-name")?Fe+=O:De.attr("class").includes("attribute-keys")?Fe+=O+P:De.attr("class").includes("attribute-comment")&&(Fe+=O+P+$))}De.attr("transform",`translate(${ne+v/2+Fe}, ${ze+se+_.height+T/2})`)}),L.select(".name").attr("transform","translate("+-_.width/2+", "+(se+T/2)+")"),s!=null&&Dyr.has(s)){let Ae=a.colorIndex??0;L.attr("data-color-id",`color-${Ae%m.length}`)}let he=re.rectangle(ne,se,te,U,Z),le=L.insert(()=>he,":first-child").attr("class","outer-path").attr("style",C.join(""));N.push(0);for(let[Ae,ve]of B.entries()){let De=(Ae+1)%2===0&&ve.yOffset!==0,Be=re.rectangle(ne,_.height+se+ve?.yOffset,te,ve?.rowHeight,{...Z,fill:De?h:f,stroke:d});L.insert(()=>Be,"g.label").attr("style",C.join("")).attr("class",`row-rect-${De?"even":"odd"}`)}let pe=1e-4,ge=Fre(ne,_.height+se,te+ne,_.height+se,pe),we=re.polygon(ge.map(Ae=>[Ae.x,Ae.y]),Z);if(L.insert(()=>we).attr("class","divider"),ge=Fre(O+ne,_.height+se,O+ne,U+se,pe),we=re.polygon(ge.map(Ae=>[Ae.x,Ae.y]),Z),L.insert(()=>we).attr("class","divider"),Y){let Ae=O+P+ne;ge=Fre(Ae,_.height+se,Ae,U+se,pe),we=re.polygon(ge.map(ve=>[ve.x,ve.y]),Z),L.insert(()=>we).attr("class","divider")}if(Q){let Ae=O+P+$+ne;ge=Fre(Ae,_.height+se,Ae,U+se,pe),we=re.polygon(ge.map(ve=>[ve.x,ve.y]),Z),L.insert(()=>we).attr("class","divider")}for(let Ae of N){let ve=_.height+se+Ae;ge=Fre(ne,ve,te+ne,ve,pe),we=re.polygon(ge.map(Ie=>[Ie.x,Ie.y]),Z),L.insert(()=>we).attr("class","divider")}if(fn(t,le),S&&t.look!=="handDrawn")if(s!=null&&PIn.has(s))L.selectAll("path").attr("style",S);else{let ve=S.split(";")?.filter(Ie=>Ie.includes("stroke"))?.map(Ie=>`${Ie}`).join("; ");L.selectAll("path").attr("style",ve??""),L.selectAll(".row-rect-even path").attr("style",S)}return t.intersect=function(Ae){return Hr.rect(t,Ae)},L}async function Bre(r,t,a,s=0,l=0,h=[],f=""){let d=r.insert("g").attr("class",`label ${h.join(" ")}`).attr("transform",`translate(${s}, ${l})`).attr("style",f);t!==JE(t)&&(t=JE(t),t=t.replaceAll("<","<").replaceAll(">",">"));let m=d.node().appendChild(await jh(d,t,{width:d1(t,a)+100,style:f,useHtmlLabels:a.htmlLabels},a));if(t.includes("<")||t.includes(">")){let v=m.children[0];for(v.textContent=v.textContent.replaceAll("<","<").replaceAll(">",">");v.childNodes[0];)v=v.childNodes[0],v.textContent=v.textContent.replaceAll("<","<").replaceAll(">",">")}let b=m.getBBox();if(fm(a.htmlLabels)){let v=m.children[0];v.style.textAlign="start";let T=mn(m);b=v.getBoundingClientRect(),T.attr("width",b.width),T.attr("height",b.height)}return b}function Fre(r,t,a,s,l){return r===a?[{x:r-l/2,y:t},{x:r+l/2,y:t},{x:a+l/2,y:s},{x:a-l/2,y:s}]:[{x:r,y:t-l/2},{x:r,y:t+l/2},{x:a,y:s+l/2},{x:a,y:s-l/2}]}var Dyr,PIn,Iyr=ae(()=>{"use strict";Yi();Ta();na();wa();PO();Xs();ex();nl();zo();Ma();Dyr=new Set(["redux-color","redux-dark-color"]),PIn=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);i(MQe,"erBox");i(Bre,"addText");i(Fre,"lineToPolygon")});async function Myr(r,t,a,s,l=a.class.padding??12){let h=s?0:3,f=r.insert("g").attr("class",Cn(t)).attr("id",t.domId||t.id),d=null,m=null,b=null,v=null,T=0,C=0,E=0;if(d=f.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let I=t.annotations[0];await kwe(d,{text:`\xAB${I}\xBB`},0),T=d.node().getBBox().height}m=f.insert("g").attr("class","label-group text"),await kwe(m,t,0,["font-weight: bolder"]);let S=m.node().getBBox();C=S.height,b=f.insert("g").attr("class","members-group text");let R=0;for(let I of t.members){let N=await kwe(b,I,R,[I.parseClassifier()]);R+=N+h}E=b.node().getBBox().height,E<=0&&(E=l/2),v=f.insert("g").attr("class","methods-group text");let L=0;for(let I of t.methods){let N=await kwe(v,I,L,[I.parseClassifier()]);L+=N+h}let _=f.node().getBBox();if(d!==null){let I=d.node().getBBox();d.attr("transform",`translate(${-I.width/2})`)}return m.attr("transform",`translate(${-S.width/2}, ${T})`),_=f.node().getBBox(),b.attr("transform",`translate(0, ${T+C+l*2})`),_=f.node().getBBox(),v.attr("transform",`translate(0, ${T+C+(E?E+l*4:l*2)})`),_=f.node().getBBox(),{shapeSvg:f,bbox:_}}async function kwe(r,t,a,s=[]){let l=r.insert("g").attr("class","label").attr("style",s.join("; ")),h=ri(),f="useHtmlLabels"in t?t.useHtmlLabels:fm(h.htmlLabels)??!0,d="";"text"in t?d=t.text:d=t.label,!f&&d.startsWith("\\")&&(d=d.substring(1)),Tf(d)&&(f=!0);let m=await jh(l,hte(a2(d)),{width:d1(d,h)+50,classes:"markdown-node-label",useHtmlLabels:f},h),b,v=1;if(f){let T=m.children[0],C=mn(m);v=T.innerHTML.split("<br>").length,T.innerHTML.includes("</math>")&&(v+=T.innerHTML.split("<mrow>").length-1),await lwe(T),b=T.getBoundingClientRect(),C.attr("width",b.width),C.attr("height",b.height)}else{s.includes("font-weight: bolder")&&mn(m).selectAll("tspan").attr("font-weight",""),v=m.children.length;let T=m.children[0];(m.textContent===""||m.textContent.includes(">"))&&(T.textContent=d[0]+d.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),d[1]===" "&&(T.textContent=T.textContent[0]+" "+T.textContent.substring(1))),T.textContent==="undefined"&&(T.textContent=""),b=m.getBBox()}return l.attr("transform","translate(0,"+(-b.height/(2*v)+a)+")"),b.height}var Nyr=ae(()=>{"use strict";zo();Xs();Yi();Ma();ma();ex();nQe();nl();i(Myr,"textHelper");i(kwe,"addText")});async function Oyr(r,t){let a=er(),{theme:s,themeVariables:l}=a,{useGradient:h,borderColorArray:f}=l,d=a.class.padding??12,m=d,b=t.useHtmlLabels??fm(a.htmlLabels)??!0,v=t;v.annotations=v.annotations??[],v.members=v.members??[],v.methods=v.methods??[];let{shapeSvg:T,bbox:C}=await Myr(r,t,a,b,m);yp(T,t.colorIndex,s,f);let{labelStyles:E,nodeStyles:S}=Gr(t);t.labelStyle=E,t.cssStyles=v.styles||"";let R=v.styles?.join(";")||S||"";t.cssStyles||(t.cssStyles=R.replaceAll("!important","").split(";"));let L=v.members.length===0&&v.methods.length===0&&!a.class?.hideEmptyMembersBox,_=en.svg(T),I=dn(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let N=Math.max(t.width??0,C.width),B=Math.max(t.height??0,C.height),O=(t.height??0)>C.height;v.members.length===0&&v.methods.length===0?B+=m:v.members.length>0&&v.methods.length===0&&(B+=m*2);let P=-N/2,$=-B/2,V=L?d*2:v.members.length===0&&v.methods.length===0?-d:0;O&&(V=d*2);let Y=_.rectangle(P-d,$-d-(L?d:v.members.length===0&&v.methods.length===0?-d/2:0),N+2*d,B+2*d+V,I),Q=T.insert(()=>Y,":first-child");Q.attr("class","basic label-container outer-path");let q=Q.node().getBBox(),W=T.select(".annotation-group").node().getBBox().height-(L?d/2:0)||0,H=T.select(".label-group").node().getBBox().height-(L?d/2:0)||0,re=T.select(".members-group").node().getBBox().height-(L?d/2:0)||0,Z=(W+H+$+d-($-d-(L?d:v.members.length===0&&v.methods.length===0?-d/2:0)))/2;if(T.selectAll(".text").each((X,te,U)=>{let ne=mn(U[te]),se=ne.attr("transform"),he=0;if(se){let we=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(se);we&&(he=parseFloat(we[2]))}let le=he+$+d-(L?d:v.members.length===0&&v.methods.length===0?-d/2:0);if(ne.attr("class").includes("methods-group")){let ge=Math.max(re,m/2);O?le=Math.max(Z,W+H+ge+$+m*2+d)+m*2:le=W+H+ge+$+m*4+d}v.members.length===0&&v.methods.length===0&&a.class?.hideEmptyMembersBox&&(v.annotations.length>0?le=he-m:le=he),b||(le-=4);let pe=P;(ne.attr("class").includes("label-group")||ne.attr("class").includes("annotation-group"))&&(pe=-ne.node()?.getBBox().width/2||0,T.selectAll("text").each(function(ge,we,Ae){window.getComputedStyle(Ae[we]).textAnchor==="middle"&&(pe=0)})),ne.attr("transform",`translate(${pe}, ${le})`)}),v.members.length>0||v.methods.length>0||L){let X=W+H+$+d,te=_.line(q.x,X,q.x+q.width,X+.001,I);T.insert(()=>te).attr("class",`divider${t.look==="neo"&&!h?" neo-line":""}`).attr("style",R)}if(L||v.members.length>0||v.methods.length>0){let X=W+H+re+$+m*2+d,te=_.line(q.x,O?Math.max(Z,X):X,q.x+q.width,(O?Math.max(Z,X):X)+.001,I);T.insert(()=>te).attr("class",`divider${t.look==="neo"&&!h?" neo-line":""}`).attr("style",R)}if(v.look!=="handDrawn"&&T.selectAll("path").attr("style",R),Q.select(":nth-child(2)").attr("style",R),T.selectAll(".divider").select("path").attr("style",R),t.labelStyle?T.selectAll("span").attr("style",t.labelStyle):T.selectAll("span").attr("style",R),!b){let X=RegExp(/color\s*:\s*([^;]*)/),te=X.exec(R);if(te){let U=te[0].replace("color","fill");T.selectAll("tspan").attr("style",U)}else if(E){let U=X.exec(E);if(U){let ne=U[0].replace("color","fill");T.selectAll("tspan").attr("style",ne)}}}return fn(t,Q),t.intersect=function(X){return Hr.rect(t,X)},T}var Pyr=ae(()=>{"use strict";Yi();ma();zo();wa();na();Ta();Nyr();nl();A0();i(Oyr,"classBox")});async function Byr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let l=t,h=t,f=20,d=20,m="verifyMethod"in t,b=Cn(t),v=er(),{themeVariables:T}=v,{borderColorArray:C,requirementEdgeLabelBackground:E}=T,S=v.layout==="elk"?"start":"center",R=r.insert("g").attr("class",b).attr("id",t.domId??t.id),L;m?L=await PA(R,`<<${l.type}>>`,0,t.labelStyle):L=await PA(R,"<<Element>>",0,t.labelStyle);let _=L,I=await PA(R,l.name,_,t.labelStyle+"; font-weight: bold;");if(_+=I+d,m){let q=await PA(R,`${l.requirementId?`ID: ${l.requirementId}`:""}`,_,t.labelStyle,S);_+=q;let W=await PA(R,`${l.text?`Text: ${l.text}`:""}`,_,t.labelStyle,S);_+=W;let H=await PA(R,`${l.risk?`Risk: ${l.risk}`:""}`,_,t.labelStyle,S);_+=H,await PA(R,`${l.verifyMethod?`Verification: ${l.verifyMethod}`:""}`,_,t.labelStyle,S)}else{let q=await PA(R,`${h.type?`Type: ${h.type}`:""}`,_,t.labelStyle,S);_+=q,await PA(R,`${h.docRef?`Doc Ref: ${h.docRef}`:""}`,_,t.labelStyle,S)}let N=(R.node()?.getBBox().width??200)+f,B=(R.node()?.getBBox().height??200)+f,O=-N/2,P=-B/2,$=en.svg(R),V=dn(t,{});t.look!=="handDrawn"&&(V.roughness=0,V.fillStyle="solid");let Y=$.rectangle(O,P,N,B,V),Q=R.insert(()=>Y,":first-child");if(Q.attr("class","basic label-container outer-path").attr("style",s),C?.length){let q=t.colorIndex??0;R.attr("data-color-id",`color-${q%C.length}`)}if(R.selectAll(".label").each((q,W,H)=>{let re=mn(H[W]),Z=re.attr("transform"),X=0,te=0;if(Z){let he=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Z);he&&(X=parseFloat(he[1]),te=parseFloat(he[2]))}let U=te-B/2,ne=O+f/2;(W===0||W===1)&&(ne=X),re.attr("transform",`translate(${ne}, ${U+f})`)}),_>L+I+d){let q=P+L+I+d,W;if(t.look==="neo"){let Z=[[O,q],[O+N,q],[O+N,q+.001],[O,q+.001]];W=$.polygon(Z,V)}else W=$.line(O,q,O+N,q,V);R.insert(()=>W).attr("class","divider")}return fn(t,Q),t.intersect=function(q){return Hr.rect(t,q)},s&&t.look!=="handDrawn"&&(E||C?.length)&&R.selectAll("path").attr("style",s),R}async function PA(r,t,a,s="",l="center"){if(t==="")return 0;let h=r.insert("g").attr("class","label").attr("style",s),f=er(),d=f.htmlLabels??!0,m=await jh(h,hte(a2(t)),{width:d1(t,f)+50,classes:"markdown-node-label",useHtmlLabels:d,style:s},f),b;if(d){let v=m.children[0],T=mn(m);l==="start"&&mn(v).style("text-align","left"),b=v.getBoundingClientRect(),T.attr("width",b.width),T.attr("height",b.height)}else{let v=m.children[0];for(let T of v.children)s&&T.setAttribute("style",s);if(l==="start"){v.setAttribute("text-anchor","start");for(let T of v.children)T.setAttribute("text-anchor","start")}b=m.getBBox(),b.height+=6}return h.attr("transform",`translate(${-b.width/2},${-b.height/2+a})`),b.height}var Fyr=ae(()=>{"use strict";Yi();Ta();na();wa();Ma();ma();ex();zo();i(Byr,"requirementBox");i(PA,"addText")});async function $yr(r,t,{config:a}){let{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s||"";let h=10,f=t.width;t.width=(t.width??200)-10;let{shapeSvg:d,bbox:m,label:b}=await kn(r,t,Cn(t)),v=t.padding||10,T="",C;"ticket"in t&&t.ticket&&a?.kanban?.ticketBaseUrl&&(T=a?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),C=d.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",T).attr("target","_blank"));let E={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},S,R;C?{label:S,bbox:R}=await I4(C,"ticket"in t&&t.ticket||"",E):{label:S,bbox:R}=await I4(d,"ticket"in t&&t.ticket||"",E);let{label:L,bbox:_}=await I4(d,"assigned"in t&&t.assigned||"",E);t.width=f;let I=10,N=t?.width||0,B=Math.max(R.height,_.height)/2,O=Math.max(m.height+I*2,t?.height||0)+B,P=-N/2,$=-O/2;b.attr("transform","translate("+(v-N/2)+", "+(-B-m.height/2)+")"),S.attr("transform","translate("+(v-N/2)+", "+(-B+m.height/2)+")"),L.attr("transform","translate("+(v+N/2-_.width-2*h)+", "+(-B+m.height/2)+")");let V,{rx:Y,ry:Q}=t,{cssStyles:q}=t;if(t.look==="handDrawn"){let W=en.svg(d),H=dn(t,{}),re=Y||Q?W.path(Nd(P,$,N,O,Y||0),H):W.rectangle(P,$,N,O,H);V=d.insert(()=>re,":first-child"),V.attr("class","basic label-container").attr("style",q||null)}else{V=d.insert("rect",":first-child"),V.attr("class","basic label-container __APA__").attr("style",l).attr("rx",Y??5).attr("ry",Q??5).attr("x",P).attr("y",$).attr("width",N).attr("height",O);let W="priority"in t&&t.priority;if(W){let H=d.append("line"),re=P+2,Z=$+Math.floor((Y??0)/2),X=$+O-Math.floor((Y??0)/2);H.attr("x1",re).attr("y1",Z).attr("x2",re).attr("y2",X).attr("stroke-width","4").attr("stroke",BIn(W))}}return fn(t,V),t.height=O,t.intersect=function(W){return Hr.rect(t,W)},d}var BIn,Gyr=ae(()=>{"use strict";Yi();Ta();M4();na();wa();BIn=i(r=>{switch(r){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");i($yr,"kanbanItem")});async function jyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,halfPadding:f,label:d}=await kn(r,t,Cn(t)),m=h.width+10*f,b=h.height+8*f,v=.15*m,{cssStyles:T}=t,C=h.width+20,E=h.height+20,S=Math.max(m,C),R=Math.max(b,E);d.attr("transform",`translate(${-h.width/2}, ${-h.height/2})`);let L,_=`M0 0
|
|
a${v},${v} 1 0,0 ${S*.25},${-1*R*.1}
|
|
a${v},${v} 1 0,0 ${S*.25},0
|
|
a${v},${v} 1 0,0 ${S*.25},0
|
|
a${v},${v} 1 0,0 ${S*.25},${R*.1}
|
|
|
|
a${v},${v} 1 0,0 ${S*.15},${R*.33}
|
|
a${v*.8},${v*.8} 1 0,0 0,${R*.34}
|
|
a${v},${v} 1 0,0 ${-1*S*.15},${R*.33}
|
|
|
|
a${v},${v} 1 0,0 ${-1*S*.25},${R*.15}
|
|
a${v},${v} 1 0,0 ${-1*S*.25},0
|
|
a${v},${v} 1 0,0 ${-1*S*.25},0
|
|
a${v},${v} 1 0,0 ${-1*S*.25},${-1*R*.15}
|
|
|
|
a${v},${v} 1 0,0 ${-1*S*.1},${-1*R*.33}
|
|
a${v*.8},${v*.8} 1 0,0 0,${-1*R*.34}
|
|
a${v},${v} 1 0,0 ${S*.1},${-1*R*.33}
|
|
H0 V0 Z`;if(t.look==="handDrawn"){let I=en.svg(l),N=dn(t,{}),B=I.path(_,N);L=l.insert(()=>B,":first-child"),L.attr("class","basic label-container").attr("style",Cc(T))}else L=l.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",_);return L.attr("transform",`translate(${-S/2}, ${-R/2})`),fn(t,L),t.calcIntersect=function(I,N){return Hr.rect(I,N)},t.intersect=function(I){return Pe.info("Bang intersect",t,I),Hr.rect(t,I)},l}var zyr=ae(()=>{"use strict";Yn();Yi();Ta();na();wa();Ma();i(jyr,"bang")});async function Uyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,halfPadding:f,label:d}=await kn(r,t,Cn(t)),m=h.width+2*f,b=h.height+2*f,v=.15*m,T=.25*m,C=.35*m,E=.2*m,{cssStyles:S}=t,R,L=`M0 0
|
|
a${v},${v} 0 0,1 ${m*.25},${-1*m*.1}
|
|
a${C},${C} 1 0,1 ${m*.4},${-1*m*.1}
|
|
a${T},${T} 1 0,1 ${m*.35},${m*.2}
|
|
|
|
a${v},${v} 1 0,1 ${m*.15},${b*.35}
|
|
a${E},${E} 1 0,1 ${-1*m*.15},${b*.65}
|
|
|
|
a${T},${v} 1 0,1 ${-1*m*.25},${m*.15}
|
|
a${C},${C} 1 0,1 ${-1*m*.5},0
|
|
a${v},${v} 1 0,1 ${-1*m*.25},${-1*m*.15}
|
|
|
|
a${v},${v} 1 0,1 ${-1*m*.1},${-1*b*.35}
|
|
a${E},${E} 1 0,1 ${m*.1},${-1*b*.65}
|
|
H0 V0 Z`;if(t.look==="handDrawn"){let _=en.svg(l),I=dn(t,{}),N=_.path(L,I);R=l.insert(()=>N,":first-child"),R.attr("class","basic label-container").attr("style",Cc(S))}else R=l.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",L);return d.attr("transform",`translate(${-h.width/2}, ${-h.height/2})`),R.attr("transform",`translate(${-m/2}, ${-b/2})`),fn(t,R),t.calcIntersect=function(_,I){return Hr.rect(_,I)},t.intersect=function(_){return Pe.info("Cloud intersect",t,_),Hr.rect(t,_)},l}var Vyr=ae(()=>{"use strict";wa();Yn();Ma();Ta();na();Yi();i(Uyr,"cloud")});async function Wyr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,halfPadding:f,label:d}=await kn(r,t,Cn(t)),m=h.width+8*f,b=h.height+2*f,v=5,T=t.look==="neo"?`
|
|
M${-m/2} ${b/2-v}
|
|
v${-b+2*v}
|
|
q0,-${v} ${v},-${v}
|
|
h${m-2*v}
|
|
q${v},0 ${v},${v}
|
|
v${b-v}
|
|
H${-m/2}
|
|
Z
|
|
`:`
|
|
M${-m/2} ${b/2-v}
|
|
v${-b+2*v}
|
|
q0,-${v} ${v},-${v}
|
|
h${m-2*v}
|
|
q${v},0 ${v},${v}
|
|
v${b-2*v}
|
|
q0,${v} ${-v},${v}
|
|
h${-(m-2*v)}
|
|
q${-v},0 ${-v},${-v}
|
|
Z
|
|
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let C=l.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",s).attr("d",T);return l.append("line").attr("class","node-line-").attr("x1",-m/2).attr("y1",b/2).attr("x2",m/2).attr("y2",b/2),d.attr("transform",`translate(${-h.width/2}, ${-h.height/2})`),l.append(()=>d.node()),fn(t,C),t.calcIntersect=function(E,S){return Hr.rect(E,S)},t.intersect=function(E){return Hr.rect(t,E)},l}var Hyr=ae(()=>{"use strict";Ta();na();Yi();i(Wyr,"defaultMindmapNode")});async function qyr(r,t){let a={padding:t.padding??0};return xwe(r,t,a)}var Yyr=ae(()=>{"use strict";SQe();i(qyr,"mindmapCircle")});var Xyr={};is(Xyr,{bpmnIcons:()=>FIn});var FIn,Kyr=ae(()=>{"use strict";FIn={prefix:"bpmn",height:24,width:24,icons:{message:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path class="bpmn-glyph-fold" fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>'},timer:{body:'<circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.6"/><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" d="M12 7v5l3.5 2.5"/><path stroke="currentColor" stroke-width="1.2" d="M12 3v1.5M21 12h-1.5M12 21v-1.5M3 12h1.5"/>'},error:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M4 21 9.5 6 13 12.5 20 4 14.5 19 11 12.5Z"/>'},escalation:{body:'<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="m12 3 8 18-8-7-8 7z"/>'},signal:{body:'<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="M12 4 22 20H2z"/>'},conditional:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M4 4h16v16H4z"/><path stroke="currentColor" stroke-width="1.6" stroke-linecap="round" d="M7 9h10M7 12.5h10M7 16h10"/>'},link:{body:'<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" d="M3 9h10V5l8 7-8 7v-4H3z"/>'},compensation:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M11 6 3 12l8 6zM21 6l-8 6 8 6z"/>'},cancel:{body:'<path stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="m5 5 14 14M19 5 5 19"/>'},terminate:{body:'<circle cx="12" cy="12" r="9" fill="currentColor"/>'},multiple:{body:'<path fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round" d="m12 3 8.5 6.2-3.2 10H6.7l-3.2-10z"/>'},user:{body:'<circle cx="12" cy="8" r="4" fill="none" stroke="currentColor" stroke-width="1.7"/><path fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" d="M4.5 21a7.5 7.5 0 0 1 15 0"/>'},service:{body:'<path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" d="m20.2 14.3-2 .6a6.6 6.6 0 0 1-1 1.7l.6 2-2.4 1.4-1.5-1.5a6.6 6.6 0 0 1-2 0l-1.5 1.5-2.4-1.4.6-2a6.6 6.6 0 0 1-1-1.7l-2-.6v-2.8l2-.6a6.6 6.6 0 0 1 1-1.7l-.6-2 2.4-1.4 1.5 1.5a6.6 6.6 0 0 1 2 0l1.5-1.5 2.4 1.4-.6 2a6.6 6.6 0 0 1 1 1.7l2 .6z"/><circle cx="12" cy="12.9" r="2.6" fill="none" stroke="currentColor" stroke-width="1.5"/>'},script:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M8 3h9a2.5 2.5 0 0 0-2.5 2.5v13A2.5 2.5 0 0 1 12 21H3a2.5 2.5 0 0 0 2.5-2.5v-13A2.5 2.5 0 0 1 8 3Z"/><path stroke="currentColor" stroke-width="1.4" stroke-linecap="round" d="M6.5 8h6M6.5 11.5h6M6.5 15h4"/>'},manual:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" d="M8 11V5.5a1.8 1.8 0 0 1 3.5 0V10m0-.5a1.8 1.8 0 0 1 3.5 0V11m0-.5a1.8 1.8 0 0 1 3.5 0V16a5 5 0 0 1-5 5h-2a5 5 0 0 1-5-5v-4.5a1.8 1.8 0 0 1 1.5-1.8z"/>'},receive:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>'},send:{body:'<path fill="currentColor" d="M3 6h18v12H3z" opacity=".18"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 6h18v12H3z"/><path fill="none" stroke="currentColor" stroke-width="1.6" d="m3 6 9 7 9-7"/>'},rule:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 5h18v14H3z"/><path stroke="currentColor" stroke-width="1.4" d="M3 9h18M3 13h18M8 9v10"/>'},loop:{body:'<path fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" d="M20 12a8 8 0 1 1-2.7-6"/><path fill="currentColor" d="M20 3.2v5.4h-5.4z"/>'},parallel:{body:'<path stroke="currentColor" stroke-width="2.4" stroke-linecap="round" d="M6 4v16M12 4v16M18 4v16"/>'},sequential:{body:'<path stroke="currentColor" stroke-width="2.4" stroke-linecap="round" d="M4 6h16M4 12h16M4 18h16"/>'},"ad-hoc":{body:'<path fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="M3 15c2.5-6 6-6 8.5 0S18 21 21 15"/>'},subprocess:{body:'<path fill="none" stroke="currentColor" stroke-width="1.6" d="M3 3h18v18H3z"/><path stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M12 7v10M7 12h10"/>'},exclusive:{body:'<path stroke="currentColor" stroke-width="2.6" stroke-linecap="round" d="m6 6 12 12M18 6 6 18"/>'},"parallel-multiple":{body:'<path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M12 5v14M5 12h14"/>'},inclusive:{body:'<circle cx="12" cy="12" r="7.5" fill="none" stroke="currentColor" stroke-width="2.4"/>'},"parallel-gateway":{body:'<path stroke="currentColor" stroke-width="2.6" stroke-linecap="round" d="M12 4v16M4 12h16"/>'},"event-based":{body:'<circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.3"/><circle cx="12" cy="12" r="6.8" fill="none" stroke="currentColor" stroke-width="1.3"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" d="m12 7.4 4 2.9-1.5 4.7h-5L8 10.3z"/>'},complex:{body:'<path stroke="currentColor" stroke-width="2.2" stroke-linecap="round" d="M12 3v18M3 12h18M5.6 5.6l12.8 12.8M18.4 5.6 5.6 18.4"/>'}}}});async function GIn(){return Jyr??=Promise.resolve().then(()=>(Kyr(),Xyr)).then(({bpmnIcons:r})=>{gcr(r.prefix)||GL([{name:r.prefix,icons:r}])}),Jyr}function tbr(r){let t=r.metadata?.dataDirection;return t==="input"||t==="output"?t:void 0}function rbr(r){return r.metadata?.isCollection===!0}async function Ewe(r,t){return await GIn(),Og(r,{height:t,width:t,fallbackPrefix:$In})}var $O,u_,Qyr,Zyr,HT,BA,$In,ebr,Jyr,uS,Swe,hS,jIn,Cwe,h_,nbr,ibr,GO=ae(()=>{"use strict";Yi();Xw();$O=36,u_=50,Qyr=100,Zyr=80,HT=6,BA=16,$In="bpmn",ebr={start:{rings:1,strokeWidth:1.6},intermediate:{rings:2,strokeWidth:1.4},boundary:{rings:2,strokeWidth:1.4},end:{rings:1,strokeWidth:3.4}};i(GIn,"ensureBpmnIcons");i(tbr,"dataDirectionOf");i(rbr,"isCollectionData");i(Ewe,"glyphSvg");uS=i((r,t,a)=>{let s=(t.x??0)-(t.left??0),l=(t.y??0)-(t.top??0);r.attr("transform",`translate(${-t.width/2-s},${a-t.height/2-l})`)},"positionLabelBelow"),Swe=i(async(r,t,a)=>{if(!t)return;let s=r.append("g").attr("class","bpmn-glyph");s.html(`<g>${await Ewe(t,a)}</g>`),s.attr("transform",`translate(${-a/2}, ${-a/2})`)},"appendGlyph"),hS=i((r,t,a,s,l)=>{l&&(t.metadata={...t.metadata??{},drawnExtent:l});let h=r.insert("rect",":first-child").attr("class","bpmn-bounds").attr("x",-a/2).attr("y",-s/2).attr("width",a).attr("height",s).attr("opacity",0).attr("aria-hidden","true");return fn(t,h),h},"reserveBounds"),jIn=8,Cwe=i((r,t,a)=>Math.min(Math.max(r,t),a),"clamp"),h_=i((r,t,a,s,l)=>{let h=r.x??0,f=r.y??0,d=t/2,m=a/2,b=s.x-h,v=s.y-f,T=l??(Math.abs(b)*m>Math.abs(v)*d?b>=0?"right":"left":v>=0?"bottom":"top"),C=i(E=>Math.max(0,E-Math.min(jIn,E/2)),"reach");return T==="left"||T==="right"?{x:h+(T==="right"?d:-d),y:Cwe(s.y,f-C(m),f+C(m))}:{x:Cwe(s.x,h-C(d),h+C(d)),y:f+(T==="bottom"?m:-m)}},"faceProjectIntersect"),nbr=i((r,t,a)=>{let s=r.x??0,l=r.y??0,h=t/2,f=a.x-s,d=a.y-l,m=h*.85;if(Math.abs(d)>=Math.abs(f)){let v=Cwe(f,-m,m);return{x:s+v,y:l+Math.sign(d||1)*Math.sqrt(h*h-v*v)}}let b=Cwe(d,-m,m);return{x:s+Math.sign(f||1)*Math.sqrt(h*h-b*b),y:l+b}},"ringIntersect"),ibr=i((r,t,a,s)=>{let l=r.x??0,h=r.y??0,f=t/2,d=a/2,m=s.x-l,b=s.y-h;return Math.abs(m)*d>Math.abs(b)*f?{x:l+Math.sign(m)*f,y:h}:{x:l,y:h+Math.sign(b||1)*d}},"faceCentreIntersect")});async function f_(r,t,a){let s=t,{labelStyles:l,nodeStyles:h}=Gr(t);t.labelStyle=l;let{rings:f,strokeWidth:d}=ebr[a],m=$O/2,{shapeSvg:b,bbox:v,label:T}=await kn(r,t,Cn(t,`bpmn-event bpmn-event-${a}`)),C=b.insert("g",":first-child").attr("class","bpmn-event-body");C.attr("style",h);for(let _=0;_<f;_++)C.append("circle").attr("class",_===0?"bpmn-event-ring":"bpmn-event-ring bpmn-event-ring-inner").attr("r",m-_*3).style("stroke-width",`${d}px`);await Swe(C,s.icon,BA);let E=v.height>0&&!!t.label,S=E?HT+v.height:0,R=$O+2*S,L=Math.max($O,E?v.width:0);return E&&uS(T,v,m+HT+v.height/2),hS(b,t,L,R,{width:$O,height:$O}),t.intersect=function(_){return nbr(t,$O,_)},b}var $re=ae(()=>{"use strict";Yi();na();GO();i(f_,"renderBpmnEvent")});async function abr(r,t){return f_(r,t,"start")}var sbr=ae(()=>{"use strict";$re();i(abr,"bpmnStart")});async function obr(r,t){return f_(r,t,"intermediate")}var lbr=ae(()=>{"use strict";$re();i(obr,"bpmnIntermediate")});async function cbr(r,t){return f_(r,t,"boundary")}var ubr=ae(()=>{"use strict";$re();i(cbr,"bpmnBoundary")});async function hbr(r,t){return f_(r,t,"end")}var fbr=ae(()=>{"use strict";$re();i(hbr,"bpmnEnd")});async function dbr(r,t){let a=t,{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let h=u_/2,{shapeSvg:f,bbox:d,label:m}=await kn(r,t,Cn(t,"bpmn-gateway")),b=f.insert("g",":first-child").attr("class","bpmn-gateway-body");b.append("polygon").attr("class","bpmn-gateway-diamond").attr("points",`0,${-h} ${h},0 0,${h} ${-h},0`).attr("style",l),await Swe(b,a.icon,BA+2);let v=d.height>0&&!!t.label,T=v?HT+d.height:0,C=u_+2*T,E=Math.max(u_,v?d.width:0);return v&&uS(m,d,h+HT+d.height/2),hS(f,t,E,C,{width:u_,height:u_}),t.intersect=function(S){return ibr(t,u_,u_,S)},f}var pbr=ae(()=>{"use strict";Yi();na();GO();i(dbr,"bpmnGateway")});async function gbr(r,t){let a=t,{labelStyles:s,nodeStyles:l}=Gr(t);t.labelStyle=s;let{shapeSvg:h,bbox:f,label:d}=await kn(r,t,Cn(t,"bpmn-activity")),m=a.markers??[],b=a.icon,v=b?BA+6:10,T=m.length>0?BA+4:10,C=Math.max(Qyr,f.width+16),E=Math.max(Zyr,f.height+v+T),S=h.insert("g",":first-child").attr("class","bpmn-activity-body");if(S.append("rect").attr("class","bpmn-activity-rect").attr("x",-C/2).attr("y",-E/2).attr("width",C).attr("height",E).attr("rx",10).attr("ry",10).attr("style",l),b){let R=S.append("g").attr("class","bpmn-activity-icon");R.html(`<g>${await Ewe(b,BA)}</g>`),R.attr("transform",`translate(${-C/2+6}, ${-E/2+6})`)}if(m.length>0){let R=S.append("g").attr("class","bpmn-activity-markers"),L=BA-2,_=m.length*L;for(let[I,N]of m.entries()){let B=R.append("g");B.html(`<g>${await Ewe(N,L)}</g>`),B.attr("transform",`translate(${-_/2+I*L}, 0)`)}R.attr("transform",`translate(0, ${E/2-L-3})`)}if(f.height>0){let R=-E/2+v,L=E/2-T;uS(d,f,(R+L)/2)}return fn(t,S),t.intersect=function(R){return h_(t,C,E,R)},h}var mbr=ae(()=>{"use strict";Yi();na();GO();i(gbr,"bpmnActivity")});async function ybr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t,"bpmn-data-object")),d=l.insert("g",":first-child").attr("class","bpmn-data-body"),m=-Gre/2,b=-lU/2,v=Gre/2,T=lU/2;d.append("path").attr("class","bpmn-data-page").attr("d",`M${m},${b} H${v-Awe} L${v},${b+Awe} V${T} H${m} Z`).attr("style",s),d.append("path").attr("class","bpmn-data-fold").attr("d",`M${v-Awe},${b} V${b+Awe} H${v}`);let C=tbr(t);C&&d.append("path").attr("class",`bpmn-data-arrow bpmn-data-arrow-${C}`).attr("d",`M${m+4},${b+9} h7 v-3 l5,4.5 -5,4.5 v-3 h-7 Z`),rbr(t)&&d.append("path").attr("class","bpmn-data-collection").attr("d",`M-4,${T-11} v9 M0,${T-11} v9 M4,${T-11} v9`);let E=h.height>0&&!!t.label,S=E?HT+h.height:0,R=lU+2*S,L=Math.max(Gre,E?h.width:0);return E&&uS(f,h,lU/2+HT+h.height/2),hS(l,t,L,R,{width:Gre,height:lU}),t.intersect=function(_){return h_(t,Gre,lU,_)},l}var Gre,lU,Awe,bbr=ae(()=>{"use strict";Yi();na();GO();Gre=36,lU=50,Awe=10;i(ybr,"bpmnDataObject")});async function vbr(r,t){let{labelStyles:a,nodeStyles:s}=Gr(t);t.labelStyle=a;let{shapeSvg:l,bbox:h,label:f}=await kn(r,t,Cn(t,"bpmn-data-store")),d=l.insert("g",":first-child").attr("class","bpmn-data-body"),m=fS/2,b=6;d.append("path").attr("class","bpmn-store-body").attr("d",`M${-m},${-m+b} a${m},${b} 0 0 1 ${fS},0 V${m-b} a${m},${b} 0 0 1 ${-fS},0 Z`).attr("style",s);for(let S of[0,5,10])d.append("path").attr("class","bpmn-store-rings").attr("d",`M${-m},${-m+b+S} a${m},${b} 0 0 0 ${fS},0`);let v=h.height>0&&!!t.label,T=v?HT+h.height:0,C=fS+2*T,E=Math.max(fS,v?h.width:0);return v&&uS(f,h,m+HT+h.height/2),hS(l,t,E,C,{width:fS,height:fS}),t.intersect=function(S){return h_(t,fS,fS,S)},l}var fS,wbr=ae(()=>{"use strict";Yi();na();GO();fS=50;i(vbr,"bpmnDataStore")});async function xbr(r,t){let{labelStyles:a}=Gr(t);t.labelStyle=a,t.wrappingWidth=160;let{shapeSvg:s,bbox:l,label:h}=await kn(r,t,Cn(t,"bpmn-annotation")),f=8,d=Math.max(28,l.height+f*2),m=l.width+f*2+6,b=t.metadata?.attachFace==="right"?"right":"left";s.insert("g",":first-child").attr("class","bpmn-annotation-body").append("path").attr("class","bpmn-annotation-bracket").attr("d",b==="right"?`M${m/2-6},${-d/2} h6 V${d/2} h-6`:`M${-m/2+6},${-d/2} h-6 V${d/2} h6`);let T=b==="right"?-m/2+f:-m/2+f+6;return h.attr("transform",`translate(${T-(l.x??0)+(l.left??0)},${-l.height/2-((l.y??0)-(l.top??0))})`),hS(s,t,m,d),t.intersect=function(C){return h_(t,m,d,C,b)},s}var Tbr=ae(()=>{"use strict";Yi();na();GO();i(xbr,"bpmnAnnotation")});function Rwe(r){return r in jre}var zIn,UIn,jre,zre=ae(()=>{"use strict";D0r();N0r();P0r();F0r();j0r();U0r();W0r();q0r();SQe();X0r();J0r();Z0r();tmr();nmr();amr();omr();cmr();dmr();gmr();ymr();vmr();xmr();kmr();Amr();Lmr();Dmr();Mmr();Omr();Bmr();$mr();jmr();Umr();Wmr();qmr();Xmr();Jmr();Zmr();t1r();n1r();o1r();c1r();Pre();b1r();w1r();C1r();A1r();_1r();I1r();N1r();P1r();F1r();G1r();z1r();V1r();H1r();Y1r();K1r();Q1r();eyr();ryr();iyr();syr();lyr();uyr();fyr();myr();byr();wyr();Cyr();Syr();Ryr();_yr();Iyr();Pyr();Fyr();Gyr();zyr();Vyr();Hyr();Yyr();sbr();lbr();ubr();fbr();pbr();mbr();bbr();wbr();Tbr();zIn=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:X1r},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:U1r},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:J1r},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ayr},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:fmr},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:pmr},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Rmr},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:O0r},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:K0r},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:z0r},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:lmr},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:xwe},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:jyr},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Uyr},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:B1r},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Nmr},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:e1r},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Qmr},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:yyr},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Ymr},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:bmr},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:hyr},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:V0r},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:W1r},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:nyr},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tyr},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:_mr},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Pmr},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:emr},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:rmr},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:imr},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:r1r},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Eyr},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Imr},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:gyr},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:s1r},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:smr},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:mmr},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:kyr},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Lyr},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Tmr},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:vyr},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Smr},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:q1r},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:M1r},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:D1r},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:M0r},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Q0r},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:cyr},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:oyr},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Ayr},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:$1r},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:l1r}],UIn=i(()=>{let t=[...Object.entries({state:Z1r,choice:H0r,note:O1r,composite:Y0r,rectWithTitle:j1r,labelRect:Kmr,block_arrow:G0r,collapsedGroup:B0r,iconSquare:Vmr,iconCircle:Gmr,icon:Fmr,iconRounded:zmr,imageSquare:Hmr,anchor:_0r,kanbanItem:$yr,mindmapCircle:qyr,defaultMindmapNode:Wyr,classBox:Oyr,erBox:MQe,requirementBox:Byr,usecaseActor:m1r,usecaseActorHollow:v1r,usecaseActorAwesome:y1r,usecaseActorIcon:k1r,usecaseBusiness:S1r,usecaseEllipse:wmr,usecaseJsonTable:L1r,"bpmn-start":abr,"bpmn-intermediate":obr,"bpmn-boundary":cbr,"bpmn-end":hbr,"bpmn-gateway":dbr,"bpmn-activity":gbr,"bpmn-data":ybr,"bpmn-data-store":vbr,"bpmn-annotation":xbr}),...zIn.flatMap(a=>[a.shortName,..."aliases"in a?a.aliases:[],..."internalAliases"in a?a.internalAliases:[]].map(l=>[l,a.handler]))];return Object.fromEntries(t)},"generateShapeMap"),jre=UIn();i(Rwe,"isValidShape")});var VIn,WIn,HIn,NQe,qIn,YIn,XIn,KIn,JIn,OQe,QIn,kbr,ZIn,PQe,BQe=ae(()=>{"use strict";VIn=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),WIn=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),HIn={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},NQe=i(r=>r?HIn[r.toLowerCase()]:void 0,"keywordShape"),qIn=i(r=>{let t=NQe(r.shape)??NQe(r.sprite);if(t)return t;if(r.tags)for(let s of r.tags.split(",")){let l=NQe(s.trim());if(l)return l}let a=r.typeC4Shape.text;return a==="person"||a==="external_person"?"person":WIn.has(a)?"cylinder":VIn.has(a)?"h-cyl":"rounded"},"resolveNodeShape"),YIn={person:"Person",system:"Software System",container:"Container",component:"Component"},XIn=i(r=>{let t=r.replace(/^external_/,"").replace(/_(db|queue)$/,"");return YIn[t]??t.replace(/_/g," ")},"stereotypeLabel"),KIn=i(r=>r.startsWith("external_"),"isExternal"),JIn=i(r=>{let t=XIn(r.typeC4Shape.text);return r.techn?.text?`[${t}: ${r.techn.text}]`:`[${t}]`},"stereotypeText"),OQe=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap(r=>[r,`external_${r}`]),QIn=new Set(OQe),kbr=i(r=>QIn.has(r),"isC4ElementType"),ZIn=i((r,t)=>{let a=r.typeC4Shape.text,s=r.bgColor??(kbr(a)&&t[`${a}_bg_color`]),l=r.borderColor??(kbr(a)&&t[`${a}_border_color`]),h=[];return s&&h.push(`fill:${s}`),l&&h.push(`stroke:${l}`),h.push(`color:${r.fontColor??"#FFFFFF"}`),h},"elementCssStyles"),PQe=i((r,t,a,s,l)=>{let h=r.typeC4Shape.text,f=["c4-shape",`c4-${h}`];KIn(h)&&f.push("c4-external");let d=qIn(r),m=ZIn(r,t);return(d==="rounded"||d==="fr-rect")&&m.push("rx:12px","ry:12px"),{id:r.alias,label:r.label.text,stereotype:JIn(r),description:r.descr?.text?[r.descr.text]:void 0,labelType:"string",isGroup:!1,shape:d,cssClasses:f.join(" "),cssStyles:m,padding:a,look:s,useHtmlLabels:!1,width:l}},"buildC4Node")});function jO(r,t,a,s,l){let h=t[r];if(!h.width)if(a)h.text=IO(h.text,l,s),h.textLines=h.text.split(Xn.lineBreakRegex).length,h.width=l,h.height=Z2e(h.text,s);else{let f=h.text.split(Xn.lineBreakRegex);h.textLines=f.length;let d=0;h.height=0,h.width=0;for(let m of f)h.width=Math.max(d1(m,s),h.width),d=Z2e(m,s),h.height=h.height+d}return h}async function Rbr(r,t,a,s,l){let h=l.db,f=new _we(l);f.data.widthLimit=a.data.widthLimit/Math.min(FQe,s.length);for(let[d,m]of s.entries()){let b=0;m.image={width:0,height:0,Y:0},m.sprite&&(m.image.width=48,m.image.height=48,m.image.Y=b,b=m.image.Y+m.image.height);let v=m.wrap&&Js.wrap,T=Lwe(Js);T.fontSize=T.fontSize+2,T.fontWeight="bold";let C=jO("label",m,v,T,f.data.widthLimit);if(C.Y=b+8,b=C.Y+C.height,m.type&&m.type.text!==""){m.type.text="["+m.type.text+"]";let L=Lwe(Js),_=jO("type",m,v,L,f.data.widthLimit);_.Y=b+5,b=_.Y+_.height}if(m.descr&&m.descr.text!==""){let L=Lwe(Js);L.fontSize=L.fontSize-2;let _=jO("descr",m,v,L,f.data.widthLimit);_.Y=b+20,b=_.Y+_.height}if(d==0||d%FQe===0){let L=a.data.startx+Js.diagramMarginX,_=a.data.stopy+Js.diagramMarginY+b;f.setData(L,L,_,_)}else{let L=f.data.stopx!==f.data.startx?f.data.stopx+Js.diagramMarginX:f.data.startx,_=f.data.starty;f.setData(L,L,_,_)}f.name=m.alias;let E=h.getC4ShapeArray(m.alias),S=h.getC4ShapeKeys(m.alias);S.length>0&&await Abr(f,r,E,S),t=m.alias;let R=h.getBoundaries(t);R.length>0&&await Rbr(r,t,f,R,l),m.alias!=="global"&&Sbr(r,m,f),a.data.stopy=Math.max(f.data.stopy+Js.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(f.data.stopx+Js.c4ShapeMargin,a.data.stopx),Ure=Math.max(Ure,a.data.stopx),Vre=Math.max(Vre,a.data.stopy)}}var Ure,Vre,Ebr,FQe,Js,_we,$Qe,Lwe,eMn,Sbr,Abr,GQe,Cbr,tMn,rMn,nMn,jQe,Lbr=ae(()=>{"use strict";$pr();Yn();jqe();nl();Qqe();ma();Xqe();fz();Ma();xgr();$h();zre();BQe();Ta();Ure=0,Vre=0,Ebr=4,FQe=2;cte.yy=gte;Js={},_we=class{static{i(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,$Qe(t.db.getConfig())}setData(t,a,s,l){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=a,this.nextData.starty=this.data.starty=s,this.nextData.stopy=this.data.stopy=l}updateVal(t,a,s,l){t[a]===void 0?t[a]=s:t[a]=l(s,t[a])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let a=this.nextData.stopx,s=this.data.widthLimit,l=this.nextData.startx===this.nextData.stopx?a+t.margin:a+t.margin*2,h=l+t.width,f=this.nextData.starty+t.margin*2,d=f+t.height;(l>=s||h>=s||this.nextData.cnt>Ebr)&&(l=this.nextData.startx+t.margin+Js.nextLinePaddingX,f=this.nextData.stopy+t.margin*2,this.nextData.stopx=h=l+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=d=f+t.height,this.nextData.cnt=1),t.x=l,t.y=f,this.updateVal(this.data,"startx",l,Math.min),this.updateVal(this.data,"starty",f,Math.min),this.updateVal(this.data,"stopx",h,Math.max),this.updateVal(this.data,"stopy",d,Math.max),this.updateVal(this.nextData,"startx",l,Math.min),this.updateVal(this.nextData,"starty",f,Math.min),this.updateVal(this.nextData,"stopx",h,Math.max),this.updateVal(this.nextData,"stopy",d,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},$Qe(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},$Qe=i(function(r){Bh(Js,r),r?.fontFamily&&(Js.personFontFamily=Js.systemFontFamily=Js.messageFontFamily=r.fontFamily),r?.fontSize&&(Js.personFontSize=Js.systemFontSize=Js.messageFontSize=r.fontSize),r?.fontWeight&&(Js.personFontWeight=Js.systemFontWeight=Js.messageFontWeight=r.fontWeight)},"setConf"),Lwe=i(r=>({fontFamily:r.boundaryFontFamily,fontSize:r.boundaryFontSize,fontWeight:r.boundaryFontWeight}),"boundaryFont"),eMn=i(r=>({fontFamily:r.messageFontFamily,fontSize:r.messageFontSize,fontWeight:r.messageFontWeight}),"messageFont");i(jO,"calcC4ShapeTextWH");Sbr=i(function(r,t,a){let s=a.data.startx,l=a.data.starty;t.x=s,t.y=l,t.width=a.data.stopx-s,t.height=a.data.stopy-l,t.intersect=m=>Hr.rect({x:t.x+t.width/2,y:t.y+t.height/2,width:t.width,height:t.height},m),t.label.y=Js.c4ShapeMargin-35;let h=t.wrap&&Js.wrap,f=Lwe(Js);f.fontSize=f.fontSize+2,f.fontWeight="bold";let d=d1(t.label.text,f);jO("label",t,h,f,d),aS.drawBoundary(r,t,Js)},"drawBoundary"),Abr=i(async function(r,t,a,s){let l=er(),h=l.look??"classic",f={config:l},d=t.attr("id")??"",m=s.map(v=>a[Number(v)]),b=i(v=>{let T=v.shape?jre[v.shape]:void 0;if(!T)throw new Error(`C4: no shape handler for "${v.shape}"`);return T},"shapeHandlerFor");await Promise.all(m.map(async v=>{let T=PQe(v,Js,Js.c4ShapePadding,h,Js.width);T.domId=`${d}-${T.id}`;let C=await b(T)(t,T,f);v.width=T.width??Js.width,v.height=T.height??Js.height,v.margin=Js.c4ShapeMargin,C.remove()}));for(let v of m)r.insert(v);await Promise.all(m.map(async v=>{let T=PQe(v,Js,Js.c4ShapePadding,h,Js.width);T.domId=`${d}-${T.id}`,T.x=v.x+v.width/2,T.y=v.y+v.height/2;let C=t.append("g").attr("transform",`translate(${v.x+v.width/2}, ${v.y+v.height/2})`);await b(T)(C,T,f),v.intersect=T.intersect})),r.bumpLastMargin(Js.c4ShapeMargin)},"drawC4ShapeArray"),GQe=class{static{i(this,"Point")}constructor(t,a){this.x=t,this.y=a}},Cbr=i(function(r,t){if(!r.intersect)throw new Error(`C4 element "${r.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:a,y:s}=r.intersect(t);return new GQe(a,s)},"getIntersectPoint"),tMn=i(function(r,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let s=Cbr(r,a);a.x=r.x+r.width/2,a.y=r.y+r.height/2;let l=Cbr(t,a);return{startPoint:s,endPoint:l}},"getIntersectPoints"),rMn=i(function(r,t,a,s,l){let h=s.db.getC4Type(),f=0;for(let d of t){f=f+1;let m=d.wrap&&Js.wrap,b=eMn(Js);h==="C4Dynamic"&&(d.label.text=f+": "+d.label.text);let v=d1(d.label.text,b);jO("label",d,m,b,v),d.techn&&d.techn.text!==""&&(v=d1(d.techn.text,b),jO("techn",d,m,b,v)),d.descr&&d.descr.text!==""&&(v=d1(d.descr.text,b),jO("descr",d,m,b,v));let T=a(d.from),C=a(d.to);if(!T||!C)throw new Error(`C4 rel "${d.from}" -> "${d.to}" references an unknown shape or boundary`);let E=tMn(T,C);if(!E.startPoint||!E.endPoint)throw new Error(`Could not calculate intersection points for rel "${d.from}" -> "${d.to}"`);d.startPoint=E.startPoint,d.endPoint=E.endPoint}aS.drawRels(r,t,Js,l)},"drawRels");i(Rbr,"drawInsideBoundary");nMn=i(async function(r,t,a,s){Js=hve("c4");let l=er().securityLevel,{root:h}=wgr(t,l),f=s.db;f.setWrap(Js.wrap),Ebr=f.getC4ShapeInRow(),FQe=f.getC4BoundaryInRow(),Pe.debug(`C:${JSON.stringify(Js,null,2)}`);let d=h.select(`[id="${t}"]`);aS.insertComputerIcon(d,t),aS.insertDatabaseIcon(d,t),aS.insertClockIcon(d,t);let m=new _we(s);m.setData(Js.diagramMarginX,Js.diagramMarginX,Js.diagramMarginY,Js.diagramMarginY),m.data.widthLimit=screen.availWidth,Ure=Js.diagramMarginX,Vre=Js.diagramMarginY;let b=f.getTitle(),v=f.getBoundaries("");await Rbr(d,"",m,v,s),aS.insertArrowHead(d,t),aS.insertArrowEnd(d,t),aS.insertArrowCrossHead(d,t),aS.insertArrowFilledHead(d,t),rMn(d,f.getRels(),f.getC4Shape,s,t),m.data.stopx=Ure,m.data.stopy=Vre;let T=m.data,C=T.startx,E=T.starty,R=Vre-E+2*Js.diagramMarginY,L=Ure-C,_=L+2*Js.diagramMarginX;b&&d.append("text").text(b).attr("x",L/2-4*Js.diagramMarginX).attr("y",E+Js.diagramMarginY),wl(d,R,_,Js.useMaxWidth);let I=b?60:0;d.attr("viewBox",C-Js.diagramMarginX+" -"+(Js.diagramMarginY+I)+" "+_+" "+(R+I)),Pe.debug("models:",T)},"draw"),jQe={drawPersonOrSystemArray:Abr,drawBoundary:Sbr,setConf:$Qe,draw:nMn}});var iMn,aMn,_br,Dbr=ae(()=>{"use strict";ma();BQe();iMn=i(()=>{let r=er().c4??{},t=new CSSStyleSheet;for(let a of OQe){let s=t.cssRules[t.insertRule(`.c4-shape.c4-${a} .label {}`,t.cssRules.length)],l=r[`${a}FontFamily`],h=r[`${a}FontSize`],f=r[`${a}FontWeight`];l&&s.style.setProperty("font-family",l),h&&s.style.setProperty("font-size",typeof h=="number"?`${h}px`:h),f&&s.style.setProperty("font-weight",String(f))}return[...t.cssRules].filter(a=>a.style.length>0).map(a=>` ${a.cssText}`).join(`
|
|
`)},"elementFontStyles"),aMn=i(r=>`.person {
|
|
stroke: ${r.personBorder};
|
|
fill: ${r.personBkg};
|
|
}
|
|
${iMn()}
|
|
|
|
/* The element font colour is set inline per element (default white); the
|
|
label text takes it via currentColor. */
|
|
.c4-shape .label,
|
|
.c4-shape .label text {
|
|
color: inherit;
|
|
fill: currentColor;
|
|
}
|
|
/* Structurizr typography: bold name, smaller stereotype/type and description lines. */
|
|
.c4-shape .label .c4-name {
|
|
font-weight: bold;
|
|
}
|
|
.c4-shape .label .c4-type {
|
|
font-size: 0.75em;
|
|
}
|
|
.c4-shape .label .c4-descr {
|
|
font-size: 0.82em;
|
|
}
|
|
.c4-shape .basic,
|
|
.c4-shape rect,
|
|
.c4-shape path,
|
|
.c4-shape circle,
|
|
.c4-shape ellipse,
|
|
.c4-shape line {
|
|
stroke-width: 2px;
|
|
}
|
|
`,"getStyles"),_br=aMn});var Ibr={};is(Ibr,{diagram:()=>sMn});var sMn,Mbr=ae(()=>{"use strict";jqe();Qqe();Lbr();Dbr();sMn={parser:vcr,db:gte,renderer:jQe,styles:_br,init:i(({c4:r,wrap:t})=>{jQe.setConf(r),gte.setWrap(t)},"init")}});function uMn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Wre(){if(Obr)return d_;Obr=1;function r(f){return typeof f>"u"||f===null}i(r,"isNothing");function t(f){return typeof f=="object"&&f!==null}i(t,"isObject");function a(f){return Array.isArray(f)?f:r(f)?[]:[f]}i(a,"toArray");function s(f,d){if(d){let m=Object.keys(d);for(let b=0,v=m.length;b<v;b+=1){let T=m[b];f[T]=d[T]}}return f}i(s,"extend");function l(f,d){let m="";for(let b=0;b<d;b+=1)m+=f;return m}i(l,"repeat");function h(f){return f===0&&Number.NEGATIVE_INFINITY===1/f}return i(h,"isNegativeZero"),d_.isNothing=r,d_.isObject=t,d_.toArray=a,d_.repeat=l,d_.isNegativeZero=h,d_.extend=s,d_}function Hre(){if(Pbr)return zQe;Pbr=1;function r(a,s){let l="",h=a.reason||"(unknown reason)";return a.mark?(a.mark.name&&(l+='in "'+a.mark.name+'" '),l+="("+(a.mark.line+1)+":"+(a.mark.column+1)+")",!s&&a.mark.snippet&&(l+=`
|
|
|
|
`+a.mark.snippet),h+" "+l):h}i(r,"formatError");function t(a,s){Error.call(this),this.name="YAMLException",this.reason=a,this.mark=s,this.message=r(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return i(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=i(function(s){return this.name+": "+r(this,s)},"toString"),zQe=t,zQe}function hMn(){if(Bbr)return UQe;Bbr=1;let r=Wre();function t(l,h,f,d,m){let b="",v="",T=Math.floor(m/2)-1;return d-h>T&&(b=" ... ",h=d-T+b.length),f-d>T&&(v=" ...",f=d+T-v.length),{str:b+l.slice(h,f).replace(/\t/g,"\u2192")+v,pos:d-h+b.length}}i(t,"getLine");function a(l,h){return r.repeat(" ",h-l.length)+l}i(a,"padStart");function s(l,h){if(h=Object.create(h||null),!l.buffer)return null;h.maxLength||(h.maxLength=79),typeof h.indent!="number"&&(h.indent=1),typeof h.linesBefore!="number"&&(h.linesBefore=3),typeof h.linesAfter!="number"&&(h.linesAfter=2);let f=/\r?\n|\r|\0/g,d=[0],m=[],b,v=-1;for(;b=f.exec(l.buffer);)m.push(b.index),d.push(b.index+b[0].length),l.position<=b.index&&v<0&&(v=d.length-2);v<0&&(v=d.length-1);let T="",C=Math.min(l.line+h.linesAfter,m.length).toString().length,E=h.maxLength-(h.indent+C+3);for(let R=1;R<=h.linesBefore&&!(v-R<0);R++){let L=t(l.buffer,d[v-R],m[v-R],l.position-(d[v]-d[v-R]),E);T=r.repeat(" ",h.indent)+a((l.line-R+1).toString(),C)+" | "+L.str+`
|
|
`+T}let S=t(l.buffer,d[v],m[v],l.position,E);T+=r.repeat(" ",h.indent)+a((l.line+1).toString(),C)+" | "+S.str+`
|
|
`,T+=r.repeat("-",h.indent+C+3+S.pos)+`^
|
|
`;for(let R=1;R<=h.linesAfter&&!(v+R>=m.length);R++){let L=t(l.buffer,d[v+R],m[v+R],l.position-(d[v]-d[v+R]),E);T+=r.repeat(" ",h.indent)+a((l.line+R+1).toString(),C)+" | "+L.str+`
|
|
`}return T.replace(/\n$/,"")}return i(s,"makeSnippet"),UQe=s,UQe}function _b(){if(Fbr)return VQe;Fbr=1;let r=Hre(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];function s(h){let f={};return h!==null&&Object.keys(h).forEach(function(d){h[d].forEach(function(m){f[String(m)]=d})}),f}i(s,"compileStyleAliases");function l(h,f){if(f=f||{},Object.keys(f).forEach(function(d){if(t.indexOf(d)===-1)throw new r('Unknown option "'+d+'" is met in definition of "'+h+'" YAML type.')}),this.options=f,this.tag=h,this.kind=f.kind||null,this.resolve=f.resolve||function(){return!0},this.construct=f.construct||function(d){return d},this.instanceOf=f.instanceOf||null,this.predicate=f.predicate||null,this.represent=f.represent||null,this.representName=f.representName||null,this.defaultStyle=f.defaultStyle||null,this.multi=f.multi||!1,this.styleAliases=s(f.styleAliases||null),a.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+h+'" YAML type.')}return i(l,"Type2"),VQe=l,VQe}function svr(){if($br)return WQe;$br=1;let r=Hre(),t=_b();function a(h,f){let d=[];return h[f].forEach(function(m){let b=d.length;d.forEach(function(v,T){v.tag===m.tag&&v.kind===m.kind&&v.multi===m.multi&&(b=T)}),d[b]=m}),d}i(a,"compileList");function s(){let h={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function f(d){d.multi?(h.multi[d.kind].push(d),h.multi.fallback.push(d)):h[d.kind][d.tag]=h.fallback[d.tag]=d}i(f,"collectType");for(let d=0,m=arguments.length;d<m;d+=1)arguments[d].forEach(f);return h}i(s,"compileMap");function l(h){return this.extend(h)}return i(l,"Schema2"),l.prototype.extend=i(function(f){let d=[],m=[];if(f instanceof t)m.push(f);else if(Array.isArray(f))m=m.concat(f);else if(f&&(Array.isArray(f.implicit)||Array.isArray(f.explicit)))f.implicit&&(d=d.concat(f.implicit)),f.explicit&&(m=m.concat(f.explicit));else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");d.forEach(function(v){if(!(v instanceof t))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(v.loadKind&&v.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(v.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),m.forEach(function(v){if(!(v instanceof t))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let b=Object.create(l.prototype);return b.implicit=(this.implicit||[]).concat(d),b.explicit=(this.explicit||[]).concat(m),b.compiledImplicit=a(b,"implicit"),b.compiledExplicit=a(b,"explicit"),b.compiledTypeMap=s(b.compiledImplicit,b.compiledExplicit),b},"extend"),WQe=l,WQe}function ovr(){if(Gbr)return HQe;Gbr=1;let r=_b();return HQe=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(t){return t!==null?t:""},"construct")}),HQe}function lvr(){if(jbr)return qQe;jbr=1;let r=_b();return qQe=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(t){return t!==null?t:[]},"construct")}),qQe}function cvr(){if(zbr)return YQe;zbr=1;let r=_b();return YQe=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(t){return t!==null?t:{}},"construct")}),YQe}function uvr(){if(Ubr)return XQe;Ubr=1;let r=svr();return XQe=new r({explicit:[ovr(),lvr(),cvr()]}),XQe}function hvr(){if(Vbr)return KQe;Vbr=1;let r=_b();function t(l){if(l===null)return!0;let h=l.length;return h===1&&l==="~"||h===4&&(l==="null"||l==="Null"||l==="NULL")}i(t,"resolveYamlNull");function a(){return null}i(a,"constructYamlNull");function s(l){return l===null}return i(s,"isNull"),KQe=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:a,predicate:s,represent:{canonical:i(function(){return"~"},"canonical"),lowercase:i(function(){return"null"},"lowercase"),uppercase:i(function(){return"NULL"},"uppercase"),camelcase:i(function(){return"Null"},"camelcase"),empty:i(function(){return""},"empty")},defaultStyle:"lowercase"}),KQe}function fvr(){if(Wbr)return JQe;Wbr=1;let r=_b();function t(l){if(l===null)return!1;let h=l.length;return h===4&&(l==="true"||l==="True"||l==="TRUE")||h===5&&(l==="false"||l==="False"||l==="FALSE")}i(t,"resolveYamlBoolean");function a(l){return l==="true"||l==="True"||l==="TRUE"}i(a,"constructYamlBoolean");function s(l){return Object.prototype.toString.call(l)==="[object Boolean]"}return i(s,"isBoolean"),JQe=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:a,predicate:s,represent:{lowercase:i(function(l){return l?"true":"false"},"lowercase"),uppercase:i(function(l){return l?"TRUE":"FALSE"},"uppercase"),camelcase:i(function(l){return l?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),JQe}function dvr(){if(Hbr)return QQe;Hbr=1;let r=Wre(),t=_b();function a(b){return b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102}i(a,"isHexCode");function s(b){return b>=48&&b<=55}i(s,"isOctCode");function l(b){return b>=48&&b<=57}i(l,"isDecCode");function h(b){if(b===null)return!1;let v=b.length,T=0,C=!1;if(!v)return!1;let E=b[T];if((E==="-"||E==="+")&&(E=b[++T]),E==="0"){if(T+1===v)return!0;if(E=b[++T],E==="b"){for(T++;T<v;T++){if(E=b[T],E!=="0"&&E!=="1")return!1;C=!0}return C&&isFinite(f(b))}if(E==="x"){for(T++;T<v;T++){if(!a(b.charCodeAt(T)))return!1;C=!0}return C&&isFinite(f(b))}if(E==="o"){for(T++;T<v;T++){if(!s(b.charCodeAt(T)))return!1;C=!0}return C&&isFinite(f(b))}}for(;T<v;T++){if(!l(b.charCodeAt(T)))return!1;C=!0}return C?isFinite(f(b)):!1}i(h,"resolveYamlInteger");function f(b){let v=b,T=1,C=v[0];if((C==="-"||C==="+")&&(C==="-"&&(T=-1),v=v.slice(1),C=v[0]),v==="0")return 0;if(C==="0"){if(v[1]==="b")return T*parseInt(v.slice(2),2);if(v[1]==="x")return T*parseInt(v.slice(2),16);if(v[1]==="o")return T*parseInt(v.slice(2),8)}return T*parseInt(v,10)}i(f,"parseYamlInteger");function d(b){return f(b)}i(d,"constructYamlInteger");function m(b){return Object.prototype.toString.call(b)==="[object Number]"&&b%1===0&&!r.isNegativeZero(b)}return i(m,"isInteger"),QQe=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:h,construct:d,predicate:m,represent:{binary:i(function(b){return b>=0?"0b"+b.toString(2):"-0b"+b.toString(2).slice(1)},"binary"),octal:i(function(b){return b>=0?"0o"+b.toString(8):"-0o"+b.toString(8).slice(1)},"octal"),decimal:i(function(b){return b.toString(10)},"decimal"),hexadecimal:i(function(b){return b>=0?"0x"+b.toString(16).toUpperCase():"-0x"+b.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),QQe}function pvr(){if(qbr)return ZQe;qbr=1;let r=Wre(),t=_b(),a=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function l(b){return b===null||!a.test(b)?!1:isFinite(parseFloat(b,10))?!0:s.test(b)}i(l,"resolveYamlFloat");function h(b){let v=b.toLowerCase(),T=v[0]==="-"?-1:1;return"+-".indexOf(v[0])>=0&&(v=v.slice(1)),v===".inf"?T===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:v===".nan"?NaN:T*parseFloat(v,10)}i(h,"constructYamlFloat");let f=/^[-+]?[0-9]+e/;function d(b,v){if(isNaN(b))switch(v){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===b)switch(v){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===b)switch(v){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(b))return"-0.0";let T=b.toString(10);return f.test(T)?T.replace("e",".e"):T}i(d,"representYamlFloat");function m(b){return Object.prototype.toString.call(b)==="[object Number]"&&(b%1!==0||r.isNegativeZero(b))}return i(m,"isFloat"),ZQe=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:l,construct:h,predicate:m,represent:d,defaultStyle:"lowercase"}),ZQe}function gvr(){return Ybr||(Ybr=1,eZe=uvr().extend({implicit:[hvr(),fvr(),dvr(),pvr()]})),eZe}function mvr(){return Xbr||(Xbr=1,tZe=gvr()),tZe}function yvr(){if(Kbr)return rZe;Kbr=1;let r=_b(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function s(f){return f===null?!1:t.exec(f)!==null||a.exec(f)!==null}i(s,"resolveYamlTimestamp");function l(f){let d=0,m=null,b=t.exec(f);if(b===null&&(b=a.exec(f)),b===null)throw new Error("Date resolve error");let v=+b[1],T=+b[2]-1,C=+b[3];if(!b[4])return new Date(Date.UTC(v,T,C));let E=+b[4],S=+b[5],R=+b[6];if(b[7]){for(d=b[7].slice(0,3);d.length<3;)d+="0";d=+d}if(b[9]){let _=+b[10],I=+(b[11]||0);m=(_*60+I)*6e4,b[9]==="-"&&(m=-m)}let L=new Date(Date.UTC(v,T,C,E,S,R,d));return m&&L.setTime(L.getTime()-m),L}i(l,"constructYamlTimestamp");function h(f){return f.toISOString()}return i(h,"representYamlTimestamp"),rZe=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s,construct:l,instanceOf:Date,represent:h}),rZe}function bvr(){if(Jbr)return nZe;Jbr=1;let r=_b();function t(a){return a==="<<"||a===null}return i(t,"resolveYamlMerge"),nZe=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),nZe}function vvr(){if(Qbr)return iZe;Qbr=1;let r=_b(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
\r`;function a(f){if(f===null)return!1;let d=0,m=f.length,b=t;for(let v=0;v<m;v++){let T=b.indexOf(f.charAt(v));if(!(T>64)){if(T<0)return!1;d+=6}}return d%8===0}i(a,"resolveYamlBinary");function s(f){let d=f.replace(/[\r\n=]/g,""),m=d.length,b=t,v=0,T=[];for(let E=0;E<m;E++)E%4===0&&E&&(T.push(v>>16&255),T.push(v>>8&255),T.push(v&255)),v=v<<6|b.indexOf(d.charAt(E));let C=m%4*6;return C===0?(T.push(v>>16&255),T.push(v>>8&255),T.push(v&255)):C===18?(T.push(v>>10&255),T.push(v>>2&255)):C===12&&T.push(v>>4&255),new Uint8Array(T)}i(s,"constructYamlBinary");function l(f){let d="",m=0,b=f.length,v=t;for(let C=0;C<b;C++)C%3===0&&C&&(d+=v[m>>18&63],d+=v[m>>12&63],d+=v[m>>6&63],d+=v[m&63]),m=(m<<8)+f[C];let T=b%3;return T===0?(d+=v[m>>18&63],d+=v[m>>12&63],d+=v[m>>6&63],d+=v[m&63]):T===2?(d+=v[m>>10&63],d+=v[m>>4&63],d+=v[m<<2&63],d+=v[64]):T===1&&(d+=v[m>>2&63],d+=v[m<<4&63],d+=v[64],d+=v[64]),d}i(l,"representYamlBinary");function h(f){return Object.prototype.toString.call(f)==="[object Uint8Array]"}return i(h,"isBinary"),iZe=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:a,construct:s,predicate:h,represent:l}),iZe}function wvr(){if(Zbr)return aZe;Zbr=1;let r=_b(),t=Object.prototype.hasOwnProperty,a=Object.prototype.toString;function s(h){if(h===null)return!0;let f={},d=h;for(let m=0,b=d.length;m<b;m+=1){let v=d[m],T=!1;if(a.call(v)!=="[object Object]")return!1;let C;for(C in v)if(t.call(v,C))if(!T)T=!0;else return!1;if(!T||t.call(f,C))return!1;Object.defineProperty(f,C,{value:!0})}return!0}i(s,"resolveYamlOmap");function l(h){return h!==null?h:[]}return i(l,"constructYamlOmap"),aZe=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s,construct:l}),aZe}function xvr(){if(evr)return sZe;evr=1;let r=_b(),t=Object.prototype.toString;function a(l){if(l===null)return!0;let h=l,f=new Array(h.length);for(let d=0,m=h.length;d<m;d+=1){let b=h[d];if(t.call(b)!=="[object Object]")return!1;let v=Object.keys(b);if(v.length!==1)return!1;f[d]=[v[0],b[v[0]]]}return!0}i(a,"resolveYamlPairs");function s(l){if(l===null)return[];let h=l,f=new Array(h.length);for(let d=0,m=h.length;d<m;d+=1){let b=h[d],v=Object.keys(b);f[d]=[v[0],b[v[0]]]}return f}return i(s,"constructYamlPairs"),sZe=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:a,construct:s}),sZe}function Tvr(){if(tvr)return oZe;tvr=1;let r=_b(),t=Object.prototype.hasOwnProperty;function a(l){if(l===null)return!0;let h=l;for(let f in h)if(t.call(h,f)&&h[f]!==null)return!1;return!0}i(a,"resolveYamlSet");function s(l){return l!==null?l:{}}return i(s,"constructYamlSet"),oZe=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:a,construct:s}),oZe}function uZe(){return rvr||(rvr=1,lZe=mvr().extend({implicit:[yvr(),bvr()],explicit:[vvr(),wvr(),xvr(),Tvr()]})),lZe}function fMn(){if(nvr)return Dwe;nvr=1;let r=Wre(),t=Hre(),a=hMn(),s=uZe(),l=Object.prototype.hasOwnProperty,h=1,f=2,d=3,m=4,b=1,v=2,T=3,C=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=/[\x85\u2028\u2029]/,S=/[,\[\]{}]/,R=/^(?:!|!!|![0-9A-Za-z-]+!)$/,L=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function _(K){return Object.prototype.toString.call(K)}i(_,"_class");function I(K){return K===10||K===13}i(I,"isEol");function N(K){return K===9||K===32}i(N,"isWhiteSpace");function B(K){return K===9||K===32||K===10||K===13}i(B,"isWsOrEol");function O(K){return K===44||K===91||K===93||K===123||K===125}i(O,"isFlowIndicator");function P(K){if(K>=48&&K<=57)return K-48;let Te=K|32;return Te>=97&&Te<=102?Te-97+10:-1}i(P,"fromHexCode");function $(K){return K===120?2:K===117?4:K===85?8:0}i($,"escapedHexLen");function V(K){return K>=48&&K<=57?K-48:-1}i(V,"fromDecimalCode");function Y(K){switch(K){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}i(Y,"simpleEscapeSequence");function Q(K){return K<=65535?String.fromCharCode(K):String.fromCharCode((K-65536>>10)+55296,(K-65536&1023)+56320)}i(Q,"charFromCodepoint");function q(K,Te,ce){Te==="__proto__"?Object.defineProperty(K,Te,{configurable:!0,enumerable:!0,writable:!0,value:ce}):K[Te]=ce}i(q,"setProperty");let W=new Array(256),H=new Array(256);for(let K=0;K<256;K++)W[K]=Y(K)?1:0,H[K]=Y(K);function re(K,Te){this.input=K,this.filename=Te.filename||null,this.schema=Te.schema||s,this.onWarning=Te.onWarning||null,this.legacy=Te.legacy||!1,this.json=Te.json||!1,this.listener=Te.listener||null,this.maxDepth=typeof Te.maxDepth=="number"?Te.maxDepth:100,this.maxTotalMergeKeys=typeof Te.maxTotalMergeKeys=="number"?Te.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=K.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}i(re,"State");function Z(K,Te){let ce={name:K.filename,buffer:K.input.slice(0,-1),position:K.position,line:K.line,column:K.position-K.lineStart};return ce.snippet=a(ce),new t(Te,ce)}i(Z,"generateError");function X(K,Te){throw Z(K,Te)}i(X,"throwError");function te(K,Te){K.onWarning&&K.onWarning.call(null,Z(K,Te))}i(te,"throwWarning");function U(K,Te,ce){let Re=K.anchorMapTransactions;if(Re.length!==0){let me=Re[Re.length-1];l.call(me,Te)||(me[Te]={existed:l.call(K.anchorMap,Te),value:K.anchorMap[Te]})}K.anchorMap[Te]=ce}i(U,"storeAnchor");function ne(K){K.anchorMapTransactions.push(Object.create(null))}i(ne,"beginAnchorTransaction");function se(K){let Te=K.anchorMapTransactions.pop(),ce=K.anchorMapTransactions;if(ce.length===0)return;let Re=ce[ce.length-1],me=Object.keys(Te);for(let be=0,ke=me.length;be<ke;be+=1){let We=me[be];l.call(Re,We)||(Re[We]=Te[We])}}i(se,"commitAnchorTransaction");function he(K){let Te=K.anchorMapTransactions.pop(),ce=Object.keys(Te);for(let Re=ce.length-1;Re>=0;Re-=1){let me=Te[ce[Re]];me.existed?K.anchorMap[ce[Re]]=me.value:delete K.anchorMap[ce[Re]]}}i(he,"rollbackAnchorTransaction");function le(K){return{position:K.position,line:K.line,lineStart:K.lineStart,lineIndent:K.lineIndent,firstTabInLine:K.firstTabInLine,tag:K.tag,anchor:K.anchor,kind:K.kind,result:K.result}}i(le,"snapshotState");function pe(K,Te){K.position=Te.position,K.line=Te.line,K.lineStart=Te.lineStart,K.lineIndent=Te.lineIndent,K.firstTabInLine=Te.firstTabInLine,K.tag=Te.tag,K.anchor=Te.anchor,K.kind=Te.kind,K.result=Te.result}i(pe,"restoreState");let ge={YAML:i(function(Te,ce,Re){Te.version!==null&&X(Te,"duplication of %YAML directive"),Re.length!==1&&X(Te,"YAML directive accepts exactly one argument");let me=/^([0-9]+)\.([0-9]+)$/.exec(Re[0]);me===null&&X(Te,"ill-formed argument of the YAML directive");let be=parseInt(me[1],10),ke=parseInt(me[2],10);be!==1&&X(Te,"unacceptable YAML version of the document"),Te.version=Re[0],Te.checkLineBreaks=ke<2,ke!==1&&ke!==2&&te(Te,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(Te,ce,Re){let me;Re.length!==2&&X(Te,"TAG directive accepts exactly two arguments");let be=Re[0];me=Re[1],R.test(be)||X(Te,"ill-formed tag handle (first argument) of the TAG directive"),l.call(Te.tagMap,be)&&X(Te,'there is a previously declared suffix for "'+be+'" tag handle'),L.test(me)||X(Te,"ill-formed tag prefix (second argument) of the TAG directive");try{me=decodeURIComponent(me)}catch{X(Te,"tag prefix is malformed: "+me)}Te.tagMap[be]=me},"handleTagDirective")};function we(K,Te,ce,Re){if(Te<ce){let me=K.input.slice(Te,ce);if(Re)for(let be=0,ke=me.length;be<ke;be+=1){let We=me.charCodeAt(be);We===9||We>=32&&We<=1114111||X(K,"expected valid JSON character")}else C.test(me)&&X(K,"the stream contains non-printable characters");K.result+=me}}i(we,"captureSegment");function Ae(K){K.totalMergeKeys++,K.maxTotalMergeKeys!==-1&&K.totalMergeKeys>K.maxTotalMergeKeys&&X(K,"merge keys exceeded maxTotalMergeKeys ("+K.maxTotalMergeKeys+")")}i(Ae,"chargeMergeWork");function ve(K,Te,ce,Re){r.isObject(ce)||X(K,"cannot merge mappings; the provided source object is unacceptable"),Ae(K);let me=Object.keys(ce);for(let be=0,ke=me.length;be<ke;be+=1){let We=me[be];Ae(K),l.call(Te,We)||(q(Te,We,ce[We]),Re[We]=!0)}}i(ve,"mergeMappings");function Ie(K,Te,ce,Re,me,be,ke,We,Ue){if(Array.isArray(me)){me=Array.prototype.slice.call(me);for(let rt=0,nt=me.length;rt<nt;rt+=1)Array.isArray(me[rt])&&X(K,"nested arrays are not supported inside keys"),typeof me=="object"&&_(me[rt])==="[object Object]"&&(me[rt]="[object Object]")}if(typeof me=="object"&&_(me)==="[object Object]"&&(me="[object Object]"),me=String(me),Te===null&&(Te={}),Re==="tag:yaml.org,2002:merge")if(Array.isArray(be)){be.length>100&&X(K,"abnormal merge sequence size");for(let rt=0,nt=be.length;rt<nt;rt+=1)ve(K,Te,be[rt],ce)}else ve(K,Te,be,ce);else!K.json&&!l.call(ce,me)&&l.call(Te,me)&&(K.line=ke||K.line,K.lineStart=We||K.lineStart,K.position=Ue||K.position,X(K,"duplicated mapping key")),q(Te,me,be),delete ce[me];return Te}i(Ie,"storeMappingPair");function De(K){let Te=K.input.charCodeAt(K.position);Te===10?K.position++:Te===13?(K.position++,K.input.charCodeAt(K.position)===10&&K.position++):X(K,"a line break is expected"),K.line+=1,K.lineStart=K.position,K.firstTabInLine=-1}i(De,"readLineBreak");function Be(K,Te,ce){let Re=0,me=K.input.charCodeAt(K.position);for(;me!==0;){for(;N(me);)me===9&&K.firstTabInLine===-1&&(K.firstTabInLine=K.position),me=K.input.charCodeAt(++K.position);if(Te&&me===35)do me=K.input.charCodeAt(++K.position);while(me!==10&&me!==13&&me!==0);if(I(me))for(De(K),me=K.input.charCodeAt(K.position),Re++,K.lineIndent=0;me===32;)K.lineIndent++,me=K.input.charCodeAt(++K.position);else break}return ce!==-1&&Re!==0&&K.lineIndent<ce&&te(K,"deficient indentation"),Re}i(Be,"skipSeparationSpace");function Fe(K){let Te=K.position,ce=K.input.charCodeAt(Te);return!!((ce===45||ce===46)&&ce===K.input.charCodeAt(Te+1)&&ce===K.input.charCodeAt(Te+2)&&(Te+=3,ce=K.input.charCodeAt(Te),ce===0||B(ce)))}i(Fe,"testDocumentSeparator");function ze(K,Te){Te===1?K.result+=" ":Te>1&&(K.result+=r.repeat(`
|
|
`,Te-1))}i(ze,"writeFoldedLines");function vt(K,Te,ce){let Re,me,be,ke,We,Ue,rt=K.kind,nt=K.result,Ot=K.input.charCodeAt(K.position);if(B(Ot)||O(Ot)||Ot===35||Ot===38||Ot===42||Ot===33||Ot===124||Ot===62||Ot===39||Ot===34||Ot===37||Ot===64||Ot===96)return!1;if(Ot===63||Ot===45){let ft=K.input.charCodeAt(K.position+1);if(B(ft)||ce&&O(ft))return!1}for(K.kind="scalar",K.result="",Re=me=K.position,be=!1;Ot!==0;){if(Ot===58){let ft=K.input.charCodeAt(K.position+1);if(B(ft)||ce&&O(ft))break}else if(Ot===35){let ft=K.input.charCodeAt(K.position-1);if(B(ft))break}else{if(K.position===K.lineStart&&Fe(K)||ce&&O(Ot))break;if(I(Ot))if(ke=K.line,We=K.lineStart,Ue=K.lineIndent,Be(K,!1,-1),K.lineIndent>=Te){be=!0,Ot=K.input.charCodeAt(K.position);continue}else{K.position=me,K.line=ke,K.lineStart=We,K.lineIndent=Ue;break}}be&&(we(K,Re,me,!1),ze(K,K.line-ke),Re=me=K.position,be=!1),N(Ot)||(me=K.position+1),Ot=K.input.charCodeAt(++K.position)}return we(K,Re,me,!1),K.result?!0:(K.kind=rt,K.result=nt,!1)}i(vt,"readPlainScalar");function lt(K,Te){let ce,Re,me=K.input.charCodeAt(K.position);if(me!==39)return!1;for(K.kind="scalar",K.result="",K.position++,ce=Re=K.position;(me=K.input.charCodeAt(K.position))!==0;)if(me===39)if(we(K,ce,K.position,!0),me=K.input.charCodeAt(++K.position),me===39)ce=K.position,K.position++,Re=K.position;else return!0;else I(me)?(we(K,ce,Re,!0),ze(K,Be(K,!1,Te)),ce=Re=K.position):K.position===K.lineStart&&Fe(K)?X(K,"unexpected end of the document within a single quoted scalar"):(K.position++,N(me)||(Re=K.position));X(K,"unexpected end of the stream within a single quoted scalar")}i(lt,"readSingleQuotedScalar");function Ft(K,Te){let ce,Re,me,be=K.input.charCodeAt(K.position);if(be!==34)return!1;for(K.kind="scalar",K.result="",K.position++,ce=Re=K.position;(be=K.input.charCodeAt(K.position))!==0;){if(be===34)return we(K,ce,K.position,!0),K.position++,!0;if(be===92){if(we(K,ce,K.position,!0),be=K.input.charCodeAt(++K.position),I(be))Be(K,!1,Te);else if(be<256&&W[be])K.result+=H[be],K.position++;else if((me=$(be))>0){let ke=me,We=0;for(;ke>0;ke--)be=K.input.charCodeAt(++K.position),(me=P(be))>=0?We=(We<<4)+me:X(K,"expected hexadecimal character");K.result+=Q(We),K.position++}else X(K,"unknown escape sequence");ce=Re=K.position}else I(be)?(we(K,ce,Re,!0),ze(K,Be(K,!1,Te)),ce=Re=K.position):K.position===K.lineStart&&Fe(K)?X(K,"unexpected end of the document within a double quoted scalar"):(K.position++,N(be)||(Re=K.position))}X(K,"unexpected end of the stream within a double quoted scalar")}i(Ft,"readDoubleQuotedScalar");function pr(K,Te){let ce=!0,Re,me,be,ke=K.tag,We,Ue=K.anchor,rt,nt,Ot,ft,Qt=Object.create(null),$t,qt,Gt,jt=K.input.charCodeAt(K.position);if(jt===91)rt=93,ft=!1,We=[];else if(jt===123)rt=125,ft=!0,We={};else return!1;for(K.anchor!==null&&U(K,K.anchor,We),jt=K.input.charCodeAt(++K.position);jt!==0;){if(Be(K,!0,Te),jt=K.input.charCodeAt(K.position),jt===rt)return K.position++,K.tag=ke,K.anchor=Ue,K.kind=ft?"mapping":"sequence",K.result=We,!0;if(ce?jt===44&&X(K,"expected the node content, but found ','"):X(K,"missed comma between flow collection entries"),qt=$t=Gt=null,nt=Ot=!1,jt===63){let Zr=K.input.charCodeAt(K.position+1);B(Zr)&&(nt=Ot=!0,K.position++,Be(K,!0,Te))}Re=K.line,me=K.lineStart,be=K.position,gt(K,Te,h,!1,!0),qt=K.tag,$t=K.result,Be(K,!0,Te),jt=K.input.charCodeAt(K.position),(Ot||K.line===Re)&&jt===58&&(nt=!0,jt=K.input.charCodeAt(++K.position),Be(K,!0,Te),gt(K,Te,h,!1,!0),Gt=K.result),ft?Ie(K,We,Qt,qt,$t,Gt,Re,me,be):nt?We.push(Ie(K,null,Qt,qt,$t,Gt,Re,me,be)):We.push($t),Be(K,!0,Te),jt=K.input.charCodeAt(K.position),jt===44?(ce=!0,jt=K.input.charCodeAt(++K.position)):ce=!1}X(K,"unexpected end of the stream within a flow collection")}i(pr,"readFlowCollection");function tr(K,Te){let ce,Re=b,me=!1,be=!1,ke=Te,We=0,Ue=!1,rt,nt=K.input.charCodeAt(K.position);if(nt===124)ce=!1;else if(nt===62)ce=!0;else return!1;for(K.kind="scalar",K.result="";nt!==0;)if(nt=K.input.charCodeAt(++K.position),nt===43||nt===45)b===Re?Re=nt===43?T:v:X(K,"repeat of a chomping mode identifier");else if((rt=V(nt))>=0)rt===0?X(K,"bad explicit indentation width of a block scalar; it cannot be less than one"):be?X(K,"repeat of an indentation width identifier"):(ke=Te+rt-1,be=!0);else break;if(N(nt)){do nt=K.input.charCodeAt(++K.position);while(N(nt));if(nt===35)do nt=K.input.charCodeAt(++K.position);while(!I(nt)&&nt!==0)}for(;nt!==0;){for(De(K),K.lineIndent=0,nt=K.input.charCodeAt(K.position);(!be||K.lineIndent<ke)&&nt===32;)K.lineIndent++,nt=K.input.charCodeAt(++K.position);if(!be&&K.lineIndent>ke&&(ke=K.lineIndent),I(nt)){We++;continue}if(!be&&ke===0&&X(K,"missing indentation for block scalar"),K.lineIndent<ke){Re===T?K.result+=r.repeat(`
|
|
`,me?1+We:We):Re===b&&me&&(K.result+=`
|
|
`);break}ce?N(nt)?(Ue=!0,K.result+=r.repeat(`
|
|
`,me?1+We:We)):Ue?(Ue=!1,K.result+=r.repeat(`
|
|
`,We+1)):We===0?me&&(K.result+=" "):K.result+=r.repeat(`
|
|
`,We):K.result+=r.repeat(`
|
|
`,me?1+We:We),me=!0,be=!0,We=0;let Ot=K.position;for(;!I(nt)&&nt!==0;)nt=K.input.charCodeAt(++K.position);we(K,Ot,K.position,!1)}return!0}i(tr,"readBlockScalar");function Mt(K,Te){let ce=K.tag,Re=K.anchor,me=[],be=!1;if(K.firstTabInLine!==-1)return!1;K.anchor!==null&&U(K,K.anchor,me);let ke=K.input.charCodeAt(K.position);for(;ke!==0&&(K.firstTabInLine!==-1&&(K.position=K.firstTabInLine,X(K,"tab characters must not be used in indentation")),ke===45);){let We=K.input.charCodeAt(K.position+1);if(!B(We))break;if(be=!0,K.position++,Be(K,!0,-1)&&K.lineIndent<=Te){me.push(null),ke=K.input.charCodeAt(K.position);continue}let Ue=K.line;if(gt(K,Te,d,!1,!0),me.push(K.result),Be(K,!0,-1),ke=K.input.charCodeAt(K.position),(K.line===Ue||K.lineIndent>Te)&&ke!==0)X(K,"bad indentation of a sequence entry");else if(K.lineIndent<Te)break}return be?(K.tag=ce,K.anchor=Re,K.kind="sequence",K.result=me,!0):!1}i(Mt,"readBlockSequence");function ot(K,Te,ce){let Re,me,be,ke,We=K.tag,Ue=K.anchor,rt={},nt=Object.create(null),Ot=null,ft=null,Qt=null,$t=!1,qt=!1;if(K.firstTabInLine!==-1)return!1;K.anchor!==null&&U(K,K.anchor,rt);let Gt=K.input.charCodeAt(K.position);for(;Gt!==0;){!$t&&K.firstTabInLine!==-1&&(K.position=K.firstTabInLine,X(K,"tab characters must not be used in indentation"));let jt=K.input.charCodeAt(K.position+1),Zr=K.line;if((Gt===63||Gt===58)&&B(jt))Gt===63?($t&&(Ie(K,rt,nt,Ot,ft,null,me,be,ke),Ot=ft=Qt=null),qt=!0,$t=!0,Re=!0):$t?($t=!1,Re=!0):X(K,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),K.position+=1,Gt=jt;else{if(me=K.line,be=K.lineStart,ke=K.position,!gt(K,ce,f,!1,!0))break;if(K.line===Zr){for(Gt=K.input.charCodeAt(K.position);N(Gt);)Gt=K.input.charCodeAt(++K.position);if(Gt===58)Gt=K.input.charCodeAt(++K.position),B(Gt)||X(K,"a whitespace character is expected after the key-value separator within a block mapping"),$t&&(Ie(K,rt,nt,Ot,ft,null,me,be,ke),Ot=ft=Qt=null),qt=!0,$t=!1,Re=!1,Ot=K.tag,ft=K.result;else if(qt)X(K,"can not read an implicit mapping pair; a colon is missed");else return K.tag=We,K.anchor=Ue,!0}else if(qt)X(K,"can not read a block mapping entry; a multiline key may not be an implicit key");else return K.tag=We,K.anchor=Ue,!0}if((K.line===Zr||K.lineIndent>Te)&&($t&&(me=K.line,be=K.lineStart,ke=K.position),gt(K,Te,m,!0,Re)&&($t?ft=K.result:Qt=K.result),$t||(Ie(K,rt,nt,Ot,ft,Qt,me,be,ke),Ot=ft=Qt=null),Be(K,!0,-1),Gt=K.input.charCodeAt(K.position)),(K.line===Zr||K.lineIndent>Te)&&Gt!==0)X(K,"bad indentation of a mapping entry");else if(K.lineIndent<Te)break}return $t&&Ie(K,rt,nt,Ot,ft,null,me,be,ke),qt&&(K.tag=We,K.anchor=Ue,K.kind="mapping",K.result=rt),qt}i(ot,"readBlockMapping");function it(K){let Te=!1,ce=!1,Re,me,be=K.input.charCodeAt(K.position);if(be!==33)return!1;K.tag!==null&&X(K,"duplication of a tag property"),be=K.input.charCodeAt(++K.position),be===60?(Te=!0,be=K.input.charCodeAt(++K.position)):be===33?(ce=!0,Re="!!",be=K.input.charCodeAt(++K.position)):Re="!";let ke=K.position;if(Te){do be=K.input.charCodeAt(++K.position);while(be!==0&&be!==62);K.position<K.length?(me=K.input.slice(ke,K.position),be=K.input.charCodeAt(++K.position)):X(K,"unexpected end of the stream within a verbatim tag")}else{for(;be!==0&&!B(be);)be===33&&(ce?X(K,"tag suffix cannot contain exclamation marks"):(Re=K.input.slice(ke-1,K.position+1),R.test(Re)||X(K,"named tag handle cannot contain such characters"),ce=!0,ke=K.position+1)),be=K.input.charCodeAt(++K.position);me=K.input.slice(ke,K.position),S.test(me)&&X(K,"tag suffix cannot contain flow indicator characters")}me&&!L.test(me)&&X(K,"tag name cannot contain such characters: "+me);try{me=decodeURIComponent(me)}catch{X(K,"tag name is malformed: "+me)}return Te?K.tag=me:l.call(K.tagMap,Re)?K.tag=K.tagMap[Re]+me:Re==="!"?K.tag="!"+me:Re==="!!"?K.tag="tag:yaml.org,2002:"+me:X(K,'undeclared tag handle "'+Re+'"'),!0}i(it,"readTagProperty");function mt(K){let Te=K.input.charCodeAt(K.position);if(Te!==38)return!1;K.anchor!==null&&X(K,"duplication of an anchor property"),Te=K.input.charCodeAt(++K.position);let ce=K.position;for(;Te!==0&&!B(Te)&&!O(Te);)Te=K.input.charCodeAt(++K.position);return K.position===ce&&X(K,"name of an anchor node must contain at least one character"),K.anchor=K.input.slice(ce,K.position),!0}i(mt,"readAnchorProperty");function Rt(K){let Te=K.input.charCodeAt(K.position);if(Te!==42)return!1;Te=K.input.charCodeAt(++K.position);let ce=K.position;for(;Te!==0&&!B(Te)&&!O(Te);)Te=K.input.charCodeAt(++K.position);K.position===ce&&X(K,"name of an alias node must contain at least one character");let Re=K.input.slice(ce,K.position);return l.call(K.anchorMap,Re)||X(K,'unidentified alias "'+Re+'"'),K.result=K.anchorMap[Re],Be(K,!0,-1),!0}i(Rt,"readAlias");function pt(K,Te,ce,Re){let me=le(K);return ne(K),pe(K,Te),K.tag=null,K.anchor=null,K.kind=null,K.result=null,ot(K,ce,Re)&&K.kind==="mapping"?(se(K),!0):(he(K),pe(K,me),!1)}i(pt,"tryReadBlockMappingFromProperty");function gt(K,Te,ce,Re,me){let be,ke,We=1,Ue=!1,rt=!1,nt=null,Ot,ft,Qt;K.depth>=K.maxDepth&&X(K,"nesting exceeded maxDepth ("+K.maxDepth+")"),K.depth+=1,K.listener!==null&&K.listener("open",K),K.tag=null,K.anchor=null,K.kind=null,K.result=null;let $t=be=ke=m===ce||d===ce;if(Re&&Be(K,!0,-1)&&(Ue=!0,K.lineIndent>Te?We=1:K.lineIndent===Te?We=0:K.lineIndent<Te&&(We=-1)),We===1)for(;;){let qt=K.input.charCodeAt(K.position),Gt=le(K);if(Ue&&(qt===33&&K.tag!==null||qt===38&&K.anchor!==null)||!it(K)&&!mt(K))break;nt===null&&(nt=Gt),Be(K,!0,-1)?(Ue=!0,ke=$t,K.lineIndent>Te?We=1:K.lineIndent===Te?We=0:K.lineIndent<Te&&(We=-1)):ke=!1}if(ke&&(ke=Ue||me),We===1||m===ce)if(h===ce||f===ce?ft=Te:ft=Te+1,Qt=K.position-K.lineStart,We===1)if(ke&&(Mt(K,Qt)||ot(K,Qt,ft))||pr(K,ft))rt=!0;else{let qt=K.input.charCodeAt(K.position);nt!==null&&$t&&!ke&&qt!==124&&qt!==62&&pt(K,nt,nt.position-nt.lineStart,ft)||be&&tr(K,ft)||lt(K,ft)||Ft(K,ft)?rt=!0:Rt(K)?(rt=!0,(K.tag!==null||K.anchor!==null)&&X(K,"alias node should not have any properties")):vt(K,ft,h===ce)&&(rt=!0,K.tag===null&&(K.tag="?")),K.anchor!==null&&U(K,K.anchor,K.result)}else We===0&&(rt=ke&&Mt(K,Qt));if(K.tag===null)K.anchor!==null&&U(K,K.anchor,K.result);else if(K.tag==="?"){K.result!==null&&K.kind!=="scalar"&&X(K,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+K.kind+'"');for(let qt=0,Gt=K.implicitTypes.length;qt<Gt;qt+=1)if(Ot=K.implicitTypes[qt],Ot.resolve(K.result)){K.result=Ot.construct(K.result),K.tag=Ot.tag,K.anchor!==null&&U(K,K.anchor,K.result);break}}else if(K.tag!=="!"){if(l.call(K.typeMap[K.kind||"fallback"],K.tag))Ot=K.typeMap[K.kind||"fallback"][K.tag];else{Ot=null;let qt=K.typeMap.multi[K.kind||"fallback"];for(let Gt=0,jt=qt.length;Gt<jt;Gt+=1)if(K.tag.slice(0,qt[Gt].tag.length)===qt[Gt].tag){Ot=qt[Gt];break}}Ot||X(K,"unknown tag !<"+K.tag+">"),K.result!==null&&Ot.kind!==K.kind&&X(K,"unacceptable node kind for !<"+K.tag+'> tag; it should be "'+Ot.kind+'", not "'+K.kind+'"'),Ot.resolve(K.result,K.tag)?(K.result=Ot.construct(K.result,K.tag),K.anchor!==null&&U(K,K.anchor,K.result)):X(K,"cannot resolve a node with !<"+K.tag+"> explicit tag")}return K.listener!==null&&K.listener("close",K),K.depth-=1,K.tag!==null||K.anchor!==null||rt}i(gt,"composeNode");function ut(K){let Te=K.position,ce=!1,Re;for(K.version=null,K.checkLineBreaks=K.legacy,K.tagMap=Object.create(null),K.anchorMap=Object.create(null);(Re=K.input.charCodeAt(K.position))!==0&&(Be(K,!0,-1),Re=K.input.charCodeAt(K.position),!(K.lineIndent>0||Re!==37));){ce=!0,Re=K.input.charCodeAt(++K.position);let me=K.position;for(;Re!==0&&!B(Re);)Re=K.input.charCodeAt(++K.position);let be=K.input.slice(me,K.position),ke=[];for(be.length<1&&X(K,"directive name must not be less than one character in length");Re!==0;){for(;N(Re);)Re=K.input.charCodeAt(++K.position);if(Re===35){do Re=K.input.charCodeAt(++K.position);while(Re!==0&&!I(Re));break}if(I(Re))break;for(me=K.position;Re!==0&&!B(Re);)Re=K.input.charCodeAt(++K.position);ke.push(K.input.slice(me,K.position))}Re!==0&&De(K),l.call(ge,be)?ge[be](K,be,ke):te(K,'unknown document directive "'+be+'"')}if(Be(K,!0,-1),K.lineIndent===0&&K.input.charCodeAt(K.position)===45&&K.input.charCodeAt(K.position+1)===45&&K.input.charCodeAt(K.position+2)===45?(K.position+=3,Be(K,!0,-1)):ce&&X(K,"directives end mark is expected"),gt(K,K.lineIndent-1,m,!1,!0),Be(K,!0,-1),K.checkLineBreaks&&E.test(K.input.slice(Te,K.position))&&te(K,"non-ASCII line breaks are interpreted as content"),K.documents.push(K.result),K.position===K.lineStart&&Fe(K)){K.input.charCodeAt(K.position)===46&&(K.position+=3,Be(K,!0,-1));return}K.position<K.length-1&&X(K,"end of the stream or a document separator is expected")}i(ut,"readDocument");function Yt(K,Te){K=String(K),Te=Te||{},K.length!==0&&(K.charCodeAt(K.length-1)!==10&&K.charCodeAt(K.length-1)!==13&&(K+=`
|
|
`),K.charCodeAt(0)===65279&&(K=K.slice(1)));let ce=new re(K,Te),Re=K.indexOf("\0");for(Re!==-1&&(ce.position=Re,X(ce,"null byte is not allowed in input")),ce.input+="\0";ce.input.charCodeAt(ce.position)===32;)ce.lineIndent+=1,ce.position+=1;for(;ce.position<ce.length-1;)ut(ce);return ce.documents}i(Yt,"loadDocuments");function Ye(K,Te,ce){Te!==null&&typeof Te=="object"&&typeof ce>"u"&&(ce=Te,Te=null);let Re=Yt(K,ce);if(typeof Te!="function")return Re;for(let me=0,be=Re.length;me<be;me+=1)Te(Re[me])}i(Ye,"loadAll2");function Oe(K,Te){let ce=Yt(K,Te);if(ce.length!==0){if(ce.length===1)return ce[0];throw new t("expected a single document in the stream, but found more")}}return i(Oe,"load2"),Dwe.loadAll=Ye,Dwe.load=Oe,Dwe}function dMn(){if(ivr)return cZe;ivr=1;let r=Wre(),t=Hre(),a=uZe(),s=Object.prototype.toString,l=Object.prototype.hasOwnProperty,h=65279,f=9,d=10,m=13,b=32,v=33,T=34,C=35,E=37,S=38,R=39,L=42,_=44,I=45,N=58,B=61,O=62,P=63,$=64,V=91,Y=93,Q=96,q=123,W=124,H=125,re={};re[0]="\\0",re[7]="\\a",re[8]="\\b",re[9]="\\t",re[10]="\\n",re[11]="\\v",re[12]="\\f",re[13]="\\r",re[27]="\\e",re[34]='\\"',re[92]="\\\\",re[133]="\\N",re[160]="\\_",re[8232]="\\L",re[8233]="\\P";let Z=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],X=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function te(be,ke){if(ke===null)return{};let We={},Ue=Object.keys(ke);for(let rt=0,nt=Ue.length;rt<nt;rt+=1){let Ot=Ue[rt],ft=String(ke[Ot]);Ot.slice(0,2)==="!!"&&(Ot="tag:yaml.org,2002:"+Ot.slice(2));let Qt=be.compiledTypeMap.fallback[Ot];Qt&&l.call(Qt.styleAliases,ft)&&(ft=Qt.styleAliases[ft]),We[Ot]=ft}return We}i(te,"compileStyleMap");function U(be){let ke,We,Ue=be.toString(16).toUpperCase();if(be<=255)ke="x",We=2;else if(be<=65535)ke="u",We=4;else if(be<=4294967295)ke="U",We=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ke+r.repeat("0",We-Ue.length)+Ue}i(U,"encodeHex");let ne=1,se=2;function he(be){this.schema=be.schema||a,this.indent=Math.max(1,be.indent||2),this.noArrayIndent=be.noArrayIndent||!1,this.skipInvalid=be.skipInvalid||!1,this.flowLevel=r.isNothing(be.flowLevel)?-1:be.flowLevel,this.styleMap=te(this.schema,be.styles||null),this.sortKeys=be.sortKeys||!1,this.lineWidth=be.lineWidth||80,this.noRefs=be.noRefs||!1,this.noCompatMode=be.noCompatMode||!1,this.condenseFlow=be.condenseFlow||!1,this.quotingType=be.quotingType==='"'?se:ne,this.forceQuotes=be.forceQuotes||!1,this.replacer=typeof be.replacer=="function"?be.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(he,"State");function le(be,ke){let We=r.repeat(" ",ke),Ue=0,rt="",nt=be.length;for(;Ue<nt;){let Ot,ft=be.indexOf(`
|
|
`,Ue);ft===-1?(Ot=be.slice(Ue),Ue=nt):(Ot=be.slice(Ue,ft+1),Ue=ft+1),Ot.length&&Ot!==`
|
|
`&&(rt+=We),rt+=Ot}return rt}i(le,"indentString");function pe(be,ke){return`
|
|
`+r.repeat(" ",be.indent*ke)}i(pe,"generateNextLine");function ge(be,ke){for(let We=0,Ue=be.implicitTypes.length;We<Ue;We+=1)if(be.implicitTypes[We].resolve(ke))return!0;return!1}i(ge,"testImplicitResolving");function we(be){return be===b||be===f}i(we,"isWhitespace");function Ae(be){return be>=32&&be<=126||be>=161&&be<=55295&&be!==8232&&be!==8233||be>=57344&&be<=65533&&be!==h||be>=65536&&be<=1114111}i(Ae,"isPrintable");function ve(be){return Ae(be)&&be!==h&&be!==m&&be!==d}i(ve,"isNsCharOrWhitespace");function Ie(be,ke,We){let Ue=ve(be),rt=Ue&&!we(be);return(We?Ue:Ue&&be!==_&&be!==V&&be!==Y&&be!==q&&be!==H)&&be!==C&&!(ke===N&&!rt)||ve(ke)&&!we(ke)&&be===C||ke===N&&rt}i(Ie,"isPlainSafe");function De(be){return Ae(be)&&be!==h&&!we(be)&&be!==I&&be!==P&&be!==N&&be!==_&&be!==V&&be!==Y&&be!==q&&be!==H&&be!==C&&be!==S&&be!==L&&be!==v&&be!==W&&be!==B&&be!==O&&be!==R&&be!==T&&be!==E&&be!==$&&be!==Q}i(De,"isPlainSafeFirst");function Be(be){return!we(be)&&be!==N}i(Be,"isPlainSafeLast");function Fe(be,ke){let We=be.charCodeAt(ke),Ue;return We>=55296&&We<=56319&&ke+1<be.length&&(Ue=be.charCodeAt(ke+1),Ue>=56320&&Ue<=57343)?(We-55296)*1024+Ue-56320+65536:We}i(Fe,"codePointAt");function ze(be){return/^\n* /.test(be)}i(ze,"needIndentIndicator");let vt=1,lt=2,Ft=3,pr=4,tr=5;function Mt(be,ke,We,Ue,rt,nt,Ot,ft){let Qt,$t=0,qt=null,Gt=!1,jt=!1,Zr=Ue!==-1,yt=-1,$n=De(Fe(be,0))&&Be(Fe(be,be.length-1));if(ke||Ot)for(Qt=0;Qt<be.length;$t>=65536?Qt+=2:Qt++){if($t=Fe(be,Qt),!Ae($t))return tr;$n=$n&&Ie($t,qt,ft),qt=$t}else{for(Qt=0;Qt<be.length;$t>=65536?Qt+=2:Qt++){if($t=Fe(be,Qt),$t===d)Gt=!0,Zr&&(jt=jt||Qt-yt-1>Ue&&be[yt+1]!==" ",yt=Qt);else if(!Ae($t))return tr;$n=$n&&Ie($t,qt,ft),qt=$t}jt=jt||Zr&&Qt-yt-1>Ue&&be[yt+1]!==" "}return!Gt&&!jt?$n&&!Ot&&!rt(be)?vt:nt===se?tr:lt:We>9&&ze(be)?tr:Ot?nt===se?tr:lt:jt?pr:Ft}i(Mt,"chooseScalarStyle");function ot(be,ke,We,Ue,rt){be.dump=(function(){if(ke.length===0)return be.quotingType===se?'""':"''";if(!be.noCompatMode&&(Z.indexOf(ke)!==-1||X.test(ke)))return be.quotingType===se?'"'+ke+'"':"'"+ke+"'";let nt=be.indent*Math.max(1,We),Ot=be.lineWidth===-1?-1:Math.max(Math.min(be.lineWidth,40),be.lineWidth-nt),ft=Ue||be.flowLevel>-1&&We>=be.flowLevel;function Qt($t){return ge(be,$t)}switch(i(Qt,"testAmbiguity"),Mt(ke,ft,be.indent,Ot,Qt,be.quotingType,be.forceQuotes&&!Ue,rt)){case vt:return ke;case lt:return"'"+ke.replace(/'/g,"''")+"'";case Ft:return"|"+it(ke,be.indent)+mt(le(ke,nt));case pr:return">"+it(ke,be.indent)+mt(le(Rt(ke,Ot),nt));case tr:return'"'+gt(ke)+'"';default:throw new t("impossible error: invalid scalar style")}})()}i(ot,"writeScalar");function it(be,ke){let We=ze(be)?String(ke):"",Ue=be[be.length-1]===`
|
|
`,nt=Ue&&(be[be.length-2]===`
|
|
`||be===`
|
|
`)?"+":Ue?"":"-";return We+nt+`
|
|
`}i(it,"blockHeader");function mt(be){return be[be.length-1]===`
|
|
`?be.slice(0,-1):be}i(mt,"dropEndingNewline");function Rt(be,ke){let We=/(\n+)([^\n]*)/g,Ue=(function(){let ft=be.indexOf(`
|
|
`);return ft=ft!==-1?ft:be.length,We.lastIndex=ft,pt(be.slice(0,ft),ke)})(),rt=be[0]===`
|
|
`||be[0]===" ",nt,Ot;for(;Ot=We.exec(be);){let ft=Ot[1],Qt=Ot[2];nt=Qt[0]===" ",Ue+=ft+(!rt&&!nt&&Qt!==""?`
|
|
`:"")+pt(Qt,ke),rt=nt}return Ue}i(Rt,"foldString");function pt(be,ke){if(be===""||be[0]===" ")return be;let We=/ [^ ]/g,Ue,rt=0,nt,Ot=0,ft=0,Qt="";for(;Ue=We.exec(be);)ft=Ue.index,ft-rt>ke&&(nt=Ot>rt?Ot:ft,Qt+=`
|
|
`+be.slice(rt,nt),rt=nt+1),Ot=ft;return Qt+=`
|
|
`,be.length-rt>ke&&Ot>rt?Qt+=be.slice(rt,Ot)+`
|
|
`+be.slice(Ot+1):Qt+=be.slice(rt),Qt.slice(1)}i(pt,"foldLine");function gt(be){let ke="",We=0;for(let Ue=0;Ue<be.length;We>=65536?Ue+=2:Ue++){We=Fe(be,Ue);let rt=re[We];!rt&&Ae(We)?(ke+=be[Ue],We>=65536&&(ke+=be[Ue+1])):ke+=rt||U(We)}return ke}i(gt,"escapeString");function ut(be,ke,We){let Ue="",rt=be.tag;for(let nt=0,Ot=We.length;nt<Ot;nt+=1){let ft=We[nt];be.replacer&&(ft=be.replacer.call(We,String(nt),ft)),(Te(be,ke,ft,!1,!1)||typeof ft>"u"&&Te(be,ke,null,!1,!1))&&(Ue!==""&&(Ue+=","+(be.condenseFlow?"":" ")),Ue+=be.dump)}be.tag=rt,be.dump="["+Ue+"]"}i(ut,"writeFlowSequence");function Yt(be,ke,We,Ue){let rt="",nt=be.tag;for(let Ot=0,ft=We.length;Ot<ft;Ot+=1){let Qt=We[Ot];be.replacer&&(Qt=be.replacer.call(We,String(Ot),Qt)),(Te(be,ke+1,Qt,!0,!0,!1,!0)||typeof Qt>"u"&&Te(be,ke+1,null,!0,!0,!1,!0))&&((!Ue||rt!=="")&&(rt+=pe(be,ke)),be.dump&&d===be.dump.charCodeAt(0)?rt+="-":rt+="- ",rt+=be.dump)}be.tag=nt,be.dump=rt||"[]"}i(Yt,"writeBlockSequence");function Ye(be,ke,We){let Ue="",rt=be.tag,nt=Object.keys(We);for(let Ot=0,ft=nt.length;Ot<ft;Ot+=1){let Qt="";Ue!==""&&(Qt+=", "),be.condenseFlow&&(Qt+='"');let $t=nt[Ot],qt=We[$t];be.replacer&&(qt=be.replacer.call(We,$t,qt)),Te(be,ke,$t,!1,!1)&&(be.dump.length>1024&&(Qt+="? "),Qt+=be.dump+(be.condenseFlow?'"':"")+":"+(be.condenseFlow?"":" "),Te(be,ke,qt,!1,!1)&&(Qt+=be.dump,Ue+=Qt))}be.tag=rt,be.dump="{"+Ue+"}"}i(Ye,"writeFlowMapping");function Oe(be,ke,We,Ue){let rt="",nt=be.tag,Ot=Object.keys(We);if(be.sortKeys===!0)Ot.sort();else if(typeof be.sortKeys=="function")Ot.sort(be.sortKeys);else if(be.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let ft=0,Qt=Ot.length;ft<Qt;ft+=1){let $t="";(!Ue||rt!=="")&&($t+=pe(be,ke));let qt=Ot[ft],Gt=We[qt];if(be.replacer&&(Gt=be.replacer.call(We,qt,Gt)),!Te(be,ke+1,qt,!0,!0,!0))continue;let jt=be.tag!==null&&be.tag!=="?"||be.dump&&be.dump.length>1024;jt&&(be.dump&&d===be.dump.charCodeAt(0)?$t+="?":$t+="? "),$t+=be.dump,jt&&($t+=pe(be,ke)),Te(be,ke+1,Gt,!0,jt)&&(be.dump&&d===be.dump.charCodeAt(0)?$t+=":":$t+=": ",$t+=be.dump,rt+=$t)}be.tag=nt,be.dump=rt||"{}"}i(Oe,"writeBlockMapping");function K(be,ke,We){let Ue=We?be.explicitTypes:be.implicitTypes;for(let rt=0,nt=Ue.length;rt<nt;rt+=1){let Ot=Ue[rt];if((Ot.instanceOf||Ot.predicate)&&(!Ot.instanceOf||typeof ke=="object"&&ke instanceof Ot.instanceOf)&&(!Ot.predicate||Ot.predicate(ke))){if(We?Ot.multi&&Ot.representName?be.tag=Ot.representName(ke):be.tag=Ot.tag:be.tag="?",Ot.represent){let ft=be.styleMap[Ot.tag]||Ot.defaultStyle,Qt;if(s.call(Ot.represent)==="[object Function]")Qt=Ot.represent(ke,ft);else if(l.call(Ot.represent,ft))Qt=Ot.represent[ft](ke,ft);else throw new t("!<"+Ot.tag+'> tag resolver accepts not "'+ft+'" style');be.dump=Qt}return!0}}return!1}i(K,"detectType");function Te(be,ke,We,Ue,rt,nt,Ot){be.tag=null,be.dump=We,K(be,We,!1)||K(be,We,!0);let ft=s.call(be.dump),Qt=Ue;Ue&&(Ue=be.flowLevel<0||be.flowLevel>ke);let $t=ft==="[object Object]"||ft==="[object Array]",qt,Gt;if($t&&(qt=be.duplicates.indexOf(We),Gt=qt!==-1),(be.tag!==null&&be.tag!=="?"||Gt||be.indent!==2&&ke>0)&&(rt=!1),Gt&&be.usedDuplicates[qt])be.dump="*ref_"+qt;else{if($t&&Gt&&!be.usedDuplicates[qt]&&(be.usedDuplicates[qt]=!0),ft==="[object Object]")Ue&&Object.keys(be.dump).length!==0?(Oe(be,ke,be.dump,rt),Gt&&(be.dump="&ref_"+qt+be.dump)):(Ye(be,ke,be.dump),Gt&&(be.dump="&ref_"+qt+" "+be.dump));else if(ft==="[object Array]")Ue&&be.dump.length!==0?(be.noArrayIndent&&!Ot&&ke>0?Yt(be,ke-1,be.dump,rt):Yt(be,ke,be.dump,rt),Gt&&(be.dump="&ref_"+qt+be.dump)):(ut(be,ke,be.dump),Gt&&(be.dump="&ref_"+qt+" "+be.dump));else if(ft==="[object String]")be.tag!=="?"&&ot(be,be.dump,ke,nt,Qt);else{if(ft==="[object Undefined]")return!1;if(be.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+ft)}if(be.tag!==null&&be.tag!=="?"){let jt=encodeURI(be.tag[0]==="!"?be.tag.slice(1):be.tag).replace(/!/g,"%21");be.tag[0]==="!"?jt="!"+jt:jt.slice(0,18)==="tag:yaml.org,2002:"?jt="!!"+jt.slice(18):jt="!<"+jt+">",be.dump=jt+" "+be.dump}}return!0}i(Te,"writeNode");function ce(be,ke){let We=[],Ue=[];Re(be,We,Ue);let rt=Ue.length;for(let nt=0;nt<rt;nt+=1)ke.duplicates.push(We[Ue[nt]]);ke.usedDuplicates=new Array(rt)}i(ce,"getDuplicateReferences");function Re(be,ke,We){if(be!==null&&typeof be=="object"){let Ue=ke.indexOf(be);if(Ue!==-1)We.indexOf(Ue)===-1&&We.push(Ue);else if(ke.push(be),Array.isArray(be))for(let rt=0,nt=be.length;rt<nt;rt+=1)Re(be[rt],ke,We);else{let rt=Object.keys(be);for(let nt=0,Ot=rt.length;nt<Ot;nt+=1)Re(be[rt[nt]],ke,We)}}}i(Re,"inspectNode");function me(be,ke){ke=ke||{};let We=new he(ke);We.noRefs||ce(be,We);let Ue=be;return We.replacer&&(Ue=We.replacer.call({"":Ue},"",Ue)),Te(We,0,Ue,!0,!0)?We.dump+`
|
|
`:""}return i(me,"dump2"),cZe.dump=me,cZe}function pMn(){if(avr)return fy;avr=1;let r=fMn(),t=dMn();function a(s,l){return function(){throw new Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+l+" instead, which is now safe by default.")}}return i(a,"renamed"),fy.Type=_b(),fy.Schema=svr(),fy.FAILSAFE_SCHEMA=uvr(),fy.JSON_SCHEMA=gvr(),fy.CORE_SCHEMA=mvr(),fy.DEFAULT_SCHEMA=uZe(),fy.load=r.load,fy.loadAll=r.loadAll,fy.dump=t.dump,fy.YAMLException=Hre(),fy.types={binary:vvr(),float:pvr(),map:cvr(),null:hvr(),pairs:xvr(),set:Tvr(),timestamp:yvr(),bool:fvr(),int:dvr(),merge:bvr(),omap:wvr(),seq:lvr(),str:ovr()},fy.safeLoad=a("safeLoad","load"),fy.safeLoadAll=a("safeLoadAll","loadAll"),fy.safeDump=a("safeDump","dump"),fy}var fy,Dwe,d_,Obr,zQe,Pbr,UQe,Bbr,VQe,Fbr,WQe,$br,HQe,Gbr,qQe,jbr,YQe,zbr,XQe,Ubr,KQe,Vbr,JQe,Wbr,QQe,Hbr,ZQe,qbr,eZe,Ybr,tZe,Xbr,rZe,Kbr,nZe,Jbr,iZe,Qbr,aZe,Zbr,sZe,evr,oZe,tvr,lZe,rvr,nvr,cZe,ivr,avr,gMn,mMn,WEa,HEa,qEa,O4,YEa,XEa,P4,KEa,JEa,QEa,ZEa,eSa,tSa,rSa,cU=ae(()=>{"use strict";i(uMn,"getDefaultExportFromCjs");fy={},Dwe={},d_={};i(Wre,"requireCommon");i(Hre,"requireException");i(hMn,"requireSnippet");i(_b,"requireType");i(svr,"requireSchema");i(ovr,"requireStr");i(lvr,"requireSeq");i(cvr,"requireMap");i(uvr,"requireFailsafe");i(hvr,"require_null");i(fvr,"requireBool");i(dvr,"requireInt");i(pvr,"requireFloat");i(gvr,"requireJson");i(mvr,"requireCore");i(yvr,"requireTimestamp");i(bvr,"requireMerge");i(vvr,"requireBinary");i(wvr,"requireOmap");i(xvr,"requirePairs");i(Tvr,"requireSet");i(uZe,"require_default");i(fMn,"requireLoader");cZe={};i(dMn,"requireDumper");i(pMn,"requireJsYaml");gMn=pMn(),mMn=uMn(gMn),{Type:WEa,Schema:HEa,FAILSAFE_SCHEMA:qEa,JSON_SCHEMA:O4,CORE_SCHEMA:YEa,DEFAULT_SCHEMA:XEa,load:P4,loadAll:KEa,dump:JEa,YAMLException:QEa,types:ZEa,safeLoad:eSa,safeLoadAll:tSa,safeDump:rSa}=mMn});var Iwe,p_,hZe=ae(()=>{"use strict";Iwe=i(r=>typeof r=="number"&&Number.isFinite(r)&&r>0?r:1,"getStepDuration"),p_=i(r=>typeof r.step=="number"&&Number.isInteger(r.step)&&r.step>0,"isStepEdge")});function vMn(r){if(!r||typeof r!="object")return r;let t={...r};for(let a of bMn)Reflect.deleteProperty(t,a);return t}var yMn,bMn,Mwe,kvr=ae(()=>{"use strict";zo();cU();ma();Yn();zre();hZe();Ma();nl();Au();IA();QN();yMn="flowchart-",bMn=["laneRole","laneIndex","drawnExtent"];i(vMn,"withoutInternalKeys");Mwe=class{constructor(){this.vertexCounter=0;this.config=er();this.diagramId="";this.vertices=new Map;this.edges=[];this.classes=new Map;this.subGraphs=[];this.subGraphLookup=new Map;this.droppedSubGraphMembers=[];this.tooltips=new Map;this.subCount=0;this.firstGraphFlag=!0;this.secCount=-1;this.posCrossRef=[];this.funs=[];this.setAccTitle=Os;this.setAccDescription=$s;this.setDiagramTitle=io;this.getAccTitle=Vs;this.getAccDescription=Ws;this.getDiagramTitle=Ks;this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{i(this,"FlowDB")}sanitizeText(t){return Xn.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let a of this.vertices.values())if(a.id===t)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,a,s,l,h,f,d={},m){if(!t||t.trim().length===0)return;let b;if(m!==void 0){let S;m.includes(`
|
|
`)?S=m+`
|
|
`:S=`{
|
|
`+m+`
|
|
}`,b=vMn(P4(S,{schema:O4}))}let v=this.subGraphLookup.get(t);if(v&&b){Object.keys(b).length>0&&(v.metadata={...v.metadata,...b});return}let T=this.edges.find(S=>S.id===t);if(T){let S=b;S?.animate!==void 0&&(T.animate=S.animate),S?.animation!==void 0&&(T.animation=S.animation),S?.curve!==void 0&&(T.interpolate=S.curve),S?.step!==void 0&&(p_(S)?T.step=S.step:Pe.warn(`Ignoring step on edge ${t}: expected a positive integer`,S.step));return}let C,E=this.vertices.get(t);if(E===void 0&&(a===void 0&&s===void 0&&l!==void 0&&l!==null&&Pe.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`),E={id:t,labelType:"text",domId:yMn+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,E)),this.vertexCounter++,a!==void 0?(this.config=er(),C=this.sanitizeText(a.text.trim()),E.labelType=a.type,C.startsWith('"')&&C.endsWith('"')&&(C=C.substring(1,C.length-1)),E.text=C):E.text===void 0&&(E.text=t),s!==void 0&&(E.type=s),l?.forEach(S=>{E.styles.push(S)}),h?.forEach(S=>{E.classes.push(S)}),f!==void 0&&(E.dir=f),E.props===void 0?E.props=d:d!==void 0&&Object.assign(E.props,d),b!==void 0){if(b.shape){if(b.shape!==b.shape.toLowerCase()||b.shape.includes("_"))throw new Error(`No such shape: ${b.shape}. Shape names should be lowercase.`);if(!Rwe(b.shape))throw new Error(`No such shape: ${b.shape}.`);E.type=b?.shape}b?.label&&(E.text=b?.label,E.labelType=this.sanitizeNodeLabelType(b?.labelType)),b?.icon&&(E.icon=b?.icon,!b.label?.trim()&&E.text===t&&(E.text="")),b?.form&&(E.form=b?.form),b?.pos&&(E.pos=b?.pos),b?.img&&(E.img=b?.img,!b.label?.trim()&&E.text===t&&(E.text="")),b?.constraint&&(E.constraint=b.constraint),b.w&&(E.assetWidth=Number(b.w)),b.h&&(E.assetHeight=Number(b.h))}}addSingleLink(t,a,s,l){let d={start:t,end:a,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Pe.info("abc78 Got edge...",d);let m=s.text;if(m!==void 0&&(d.text=this.sanitizeText(m.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"')&&(d.text=d.text.substring(1,d.text.length-1)),d.labelType=this.sanitizeNodeLabelType(m.type)),s!==void 0&&(d.type=s.type,d.stroke=s.stroke,d.length=s.length>10?10:s.length),l&&!this.edges.some(b=>b.id===l))d.id=l,d.isUserDefinedId=!0;else{let b=this.edges.filter(v=>v.start===d.start&&v.end===d.end);b.length===0?d.id=s2(d.start,d.end,{counter:0,prefix:"L"}):d.id=s2(d.start,d.end,{counter:b.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Pe.info("Pushing edge..."),this.edges.push(d);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
|
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t=="object"&&"id"in t&&typeof t.id=="string"}addLink(t,a,s){let l=this.isLinkData(s)?s.id.replace("@",""):void 0;Pe.info("addLink",t,a,l);for(let h of t)for(let f of a){let d=h===t[t.length-1],m=f===a[0];d&&m?this.addSingleLink(h,f,s,l):this.addSingleLink(h,f,s,void 0)}}updateLinkInterpolate(t,a){t.forEach(s=>{s==="default"?this.edges.defaultInterpolate=a:this.edges[s].interpolate=a})}updateLink(t,a){t.forEach(s=>{if(typeof s=="number"&&s>=this.edges.length)throw new Error(`The index ${s} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);s==="default"?this.edges.defaultStyle=a:(this.edges[s].style=a,(this.edges[s]?.style?.length??0)>0&&!this.edges[s]?.style?.some(l=>l?.startsWith("fill"))&&this.edges[s]?.style?.push("fill:none"))})}addClass(t,a){let s=a.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(l=>{let h=this.classes.get(l);h===void 0&&(h={id:l,styles:[],textStyles:[]},this.classes.set(l,h)),s?.forEach(f=>{if(/color/.exec(f)){let d=f.replace("fill","bgFill");h.textStyles.push(d)}h.styles.push(f)})})}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(t,a){for(let s of t.split(",")){let l=this.vertices.get(s);l&&l.classes.push(a);let h=this.edges.find(d=>d.id===s);h&&h.classes.push(a);let f=this.subGraphLookup.get(s);f&&f.classes.push(a)}}setTooltip(t,a){if(a!==void 0){a=this.sanitizeText(a);for(let s of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(s):s,a)}}setClickFun(t,a,s){if(er().securityLevel!=="loose"||a===void 0)return;let l=[];if(typeof s=="string"){l=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<l.length;f++){let d=l[f].trim();d.startsWith('"')&&d.endsWith('"')&&(d=d.substr(1,d.length-2)),l[f]=d}}l.length===0&&l.push(t);let h=this.vertices.get(t);h&&(h.haveCallback=!0,this.funs.push(()=>{let f=this.lookUpDomId(t),d=document.querySelector(`[id="${f}"]`);d!==null&&d.addEventListener("click",()=>{Va.runFunc(a,...l)},!1)}))}setLink(t,a,s){t.split(",").forEach(l=>{let h=this.vertices.get(l);h!==void 0&&(h.link=Va.formatUrl(a,this.config),h.linkTarget=s)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,a,s){t.split(",").forEach(l=>{this.setClickFun(l,a,s)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(a=>{a(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let a=n_();mn(t).select("svg").selectAll("g.node").on("mouseover",h=>{let f=mn(h.currentTarget),d=f.attr("title");if(d===null)return;let m=h.currentTarget?.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(f.attr("title")).style("left",window.scrollX+m.left+(m.right-m.left)/2+"px").style("top",window.scrollY+m.bottom+"px"),a.html(oy.sanitize(d)),f.classed("hover",!0)}).on("mouseout",h=>{a.transition().duration(500).style("opacity",0),mn(h.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=er(),Ds()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,a,s){let l=t.text.trim(),h=s.text;t===s&&/\s/.exec(s.text)&&(l=void 0);let d=i(S=>{let R={boolean:{},number:{},string:{}},L=[],_;return{nodeList:S.filter(function(N){let B=typeof N;return N.stmt&&N.stmt==="dir"?(_=N.value,!1):N.trim()===""?!1:B in R?R[B].hasOwnProperty(N)?!1:R[B][N]=!0:L.includes(N)?!1:L.push(N)}),dir:_}},"uniq")(a.flat()),m=d.nodeList,b=d.dir,v=er().flowchart??{};if(b=b??(v.inheritDir?this.getDirection()??er().direction??void 0:void 0),this.version==="gen-1")for(let S=0;S<m.length;S++)m[S]=this.lookUpDomId(m[S]);l=l??"subGraph"+this.subCount,h=h||"",h=this.sanitizeText(h),this.subCount=this.subCount+1;let T={id:l,nodes:m,title:h.trim(),classes:[],dir:b,labelType:this.sanitizeNodeLabelType(s?.type)};Pe.info("Adding",T.id,T.nodes,T.dir);let C=this.makeUniq(T,this.subGraphs).nodes;this.recordDroppedMembers(T,C),T.nodes=C.filter(S=>S!==l);let E=this.subGraphs.find(S=>S.id===l);return E?E.nodes.push(...T.nodes):this.subGraphs.push(T),this.subGraphLookup.set(l,E??T),l}recordDroppedMembers(t,a){let s=new Set(a);for(let l of t.nodes){if(s.has(l)||l===t.id)continue;let h=this.subGraphs.find(f=>f.nodes.includes(l));h&&h.id!==t.id&&!this.isNestedIn(h.id,t)&&this.droppedSubGraphMembers.push({node:l,keptBy:h.id,droppedFrom:t.id})}}isNestedIn(t,a){let s=new Set,l=t;for(;l!==void 0&&!s.has(l);){if(a.nodes.includes(l))return!0;s.add(l);let h=l;l=this.subGraphs.find(f=>f.nodes.includes(h))?.id}return!1}getPosForId(t){for(let[a,s]of this.subGraphs.entries())if(s.id===t)return a;return-1}indexNodes2(t,a){let s=this.subGraphs[a].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=a,this.subGraphs[a].id===t)return{result:!0,count:0};let l=0,h=1;for(;l<s.length;){let f=this.getPosForId(s[l]);if(f>=0){let d=this.indexNodes2(t,f);if(d.result)return{result:!0,count:h+d.count};h=h+d.count}l=l+1}return{result:!1,count:h}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(t){let a=t.trim(),s="arrow_open";switch(a[0]){case"<":s="arrow_point",a=a.slice(1);break;case"x":s="arrow_cross",a=a.slice(1);break;case"o":s="arrow_circle",a=a.slice(1);break}let l="normal";return a.includes("=")&&(l="thick"),a.includes(".")&&(l="dotted"),{type:s,stroke:l}}countChar(t,a){let s=a.length,l=0;for(let h=0;h<s;++h)a[h]===t&&++l;return l}destructEndLink(t){let a=t.trim(),s=a.slice(0,-1),l="arrow_open";switch(a.slice(-1)){case"x":l="arrow_cross",a.startsWith("x")&&(l="double_"+l,s=s.slice(1));break;case">":l="arrow_point",a.startsWith("<")&&(l="double_"+l,s=s.slice(1));break;case"o":l="arrow_circle",a.startsWith("o")&&(l="double_"+l,s=s.slice(1));break}let h="normal",f=s.length-1;s.startsWith("=")&&(h="thick"),s.startsWith("~")&&(h="invisible");let d=this.countChar(".",s);return d&&(h="dotted",f=d),{type:l,stroke:h,length:f}}destructLink(t,a){let s=this.destructEndLink(t),l;if(a){if(l=this.destructStartLink(a),l.stroke!==s.stroke)return{type:"INVALID",stroke:"INVALID"};if(l.type==="arrow_open")l.type=s.type;else{if(l.type!==s.type)return{type:"INVALID",stroke:"INVALID"};l.type="double_"+l.type}return l.type==="double_arrow"&&(l.type="double_arrow_point"),l.length=s.length,l}return s}exists(t,a){for(let s of t)if(s.nodes.includes(a))return!0;return!1}makeUniq(t,a){let s=[];return t.nodes.forEach((l,h)=>{this.exists(a,l)||s.push(t.nodes[h])}),{nodes:s}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return t.form==="circle"?"iconCircle":t.form==="square"?"iconSquare":t.form==="rounded"?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,a){return t.find(s=>s.id===a)}destructEdgeType(t){let a="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":a=t.replace("double_",""),s=a;break}return{arrowTypeStart:a,arrowTypeEnd:s}}addNodeFromVertex(t,a,s,l,h,f){let d=s.get(t.id),m=l.get(t.id)??!1,b=this.findNode(a,t.id);if(b)b.cssStyles=t.styles,b.cssCompiledStyles=this.getCompiledStyles(t.classes),b.cssClasses=t.classes.join(" ");else{let v={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:h.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:f,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};m?a.push({...v,isGroup:!0,shape:"rect"}):a.push({...v,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:h.flowchart?.minNodeWidth})}}getCompiledStyles(t){let a=[];for(let s of t){let l=this.classes.get(s);l?.styles&&(a=[...a,...l.styles??[]].map(h=>h.trim())),l?.textStyles&&(a=[...a,...l.textStyles??[]].map(h=>h.trim()))}return a}getData(){let t=er(),a=[],s=[],l=this.getSubGraphs(),h=new Map,f=new Map,d=new Map;for(let P of l)for(let $ of P.nodes)this.subGraphLookup.has($)&&d.set($,P.id);let m=new Map,b=new Map;for(let P of l){let $=d.get(P.id);$!==void 0&&b.set($,[...b.get($)??[],P.id])}let v=0,T=i(P=>{m.set(P,v++);for(let $ of b.get(P)??[])T($)},"walk");for(let P of l)d.has(P.id)||T(P.id);let C=i(P=>this.subGraphLookup.get(P)?.metadata?.view==="collapsed","isCollapsed"),E=i(P=>{let $,V=new Set,Y=P;for(;Y!==void 0&&!V.has(Y);)V.add(Y),C(Y)&&($=Y),Y=d.get(Y);return $},"outermostCollapsed"),S=new Set,R=new Map;for(let P of l){let $=E(P.id);if($!==void 0){P.id!==$&&(S.add(P.id),R.set(P.id,$));for(let V of P.nodes)V!==$&&(S.add(V),R.set(V,$))}}for(let P=l.length-1;P>=0;P--){let $=l[P];if(!S.has($.id)){$.nodes.length>0&&f.set($.id,!0);for(let V of $.nodes)h.set(V,$.id)}}for(let P=l.length-1;P>=0;P--){let $=l[P];S.has($.id)||($.metadata?.view==="collapsed"?a.push({id:$.id,label:$.title,labelStyle:"",labelType:$.labelType,parentId:h.get($.id),padding:8,cssCompiledStyles:this.getCompiledStyles($.classes),cssClasses:$.classes.join(" "),shape:"collapsedGroup",dir:$.dir,isGroup:!1,look:t.look,colorIndex:m.get($.id)}):a.push({id:$.id,label:$.title,labelStyle:"",labelType:$.labelType,parentId:h.get($.id),padding:8,cssCompiledStyles:this.getCompiledStyles($.classes),cssClasses:$.classes.join(" "),shape:"rect",dir:$.dir,isGroup:!0,look:t.look,colorIndex:m.get($.id),metadata:$.metadata}))}this.getVertices().forEach(P=>{S.has(P.id)||this.addNodeFromVertex(P,a,h,f,t,t.look||"classic")});let _=this.getEdges(),I=_.reduce((P,$)=>p_($)?Math.max(P,$.step):P,0),N=Iwe(t.flowchart?.stepDuration),B=t.flowchart?.stepNumbers===!0?{showStepNumber:!0}:{};_.forEach((P,$)=>{let{arrowTypeStart:V,arrowTypeEnd:Y}=this.destructEdgeType(P.type),Q=[..._.defaultStyle??[]],q=R.get(P.start)??P.start,W=R.get(P.end)??P.end;if(q===W&&(R.has(P.start)||R.has(P.end)))return;P.style&&Q.push(...P.style);let H={id:s2(q,W,{counter:$,prefix:"L"},P.id),isUserDefinedId:P.isUserDefinedId,start:q,end:W,type:P.type??"normal",label:P.text,labelType:P.labelType,labelpos:"c",thickness:P.stroke,minlen:P.length,classes:P?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:P?.stroke==="invisible"||P?.type==="arrow_open"?"none":V,arrowTypeEnd:P?.stroke==="invisible"||P?.type==="arrow_open"?"none":Y,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(P.classes),labelStyle:Q,style:Q,pattern:P.stroke,look:t.look,animate:P.animate,animation:P.animation,...p_(P)?{step:P.step,stepCount:I,stepDuration:N,...B}:{},curve:P.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};s.push(H)});let O=this.droppedSubGraphMembers.length>0?{droppedSubGraphMembers:[...this.droppedSubGraphMembers]}:{};return{nodes:a,edges:s,other:O,config:t}}defaultConfig(){return Az.flowchart}}});var dy,FA=ae(()=>{"use strict";zo();dy=i((r,t)=>{let a;return t==="sandbox"&&(a=mn("#i"+r)),(t==="sandbox"?mn(a.nodes()[0].contentDocument.body):mn("body")).select(`[id="${r}"]`)},"getDiagramElement")});var B4,Yre=ae(()=>{"use strict";B4=i(({flowchart:r})=>{let t=r?.subGraphTitleMargin?.top??0,a=r?.subGraphTitleMargin?.bottom??0,s=t+a;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:s}},"getSubGraphTitleMargins")});var fZe,Cvr=ae(()=>{"use strict";ma();Xs();Yn();zo();wa();ex();uwe();na();A0();fZe=i(async(r,t,{variant:a="swimlane"}={})=>{let s=a==="pool",l=s?"pool swimlane":"swimlane",h=s?"pool-label swimlane-label":"swimlane-label",f=s?"pool-title swimlane-title":"swimlane-title",d=s?"pool-body swimlane-body":"swimlane-body",m=er(),{theme:b,themeVariables:v,handDrawnSeed:T}=m,{clusterBkg:C,clusterBorder:E,borderColorArray:S}=v,R=E,{labelStyles:L,nodeStyles:_,borderStyles:I,backgroundStyles:N}=Gr(t),B=r.insert("g").attr("class","cluster "+l+" "+(t.cssClasses||"")).attr("id",t.domId??t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look);yp(B,t.colorIndex,b,S);let O=fm(m.flowchart.htmlLabels),P=t.direction==="LR",$=B.insert("g").attr("class","cluster-label "+h),V=await jh($,t.label,{style:t.labelStyle,useHtmlLabels:O,isNode:!0,width:t.width}),Y=V.getBBox();if(O){let he=V.children[0],le=mn(V);Y=he.getBoundingClientRect(),le.attr("width",Y.width),le.attr("height",Y.height)}let Q=t.padding??0,q=t.width<=Y.width+Q?Y.width+Q:t.width;t.width<=Y.width+Q?t.diff=(q-t.width)/2-Q:t.diff=-Q;let W=t.height,H=t.y-W/2,re=t.y+W/2,Z=t.x-q/2,X=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:H+W/3,te=P?4:0,U=Y.height+2*te,ne,se;if(P){let he=Math.max(U,Y.height+2*te),le=Z+he,pe=Math.max(0,q-he);if(t.look==="handDrawn"){let Ae=en.svg(B),ve=dn(t,{roughness:.7,fill:C,stroke:R,seed:T}),Ie=dn(t,{roughness:.7,fill:"none",stroke:R,seed:T}),De=Ae.rectangle(Z,H,he,W,ve);ne=B.insert(()=>De,":first-child").attr("class",f);let Be=Ae.rectangle(le,H,pe,W,Ie);se=B.insert(()=>Be,":first-child").attr("class",d),ne.select("path:nth-child(2)").attr("style",I.join(";")),ne.select("path").attr("style",N.join(";").replace("fill","stroke"))}else ne=B.insert("rect",":first-child"),se=B.insert("rect",":first-child"),ne.attr("class",f).attr("style",_).attr("x",Z).attr("y",H).attr("width",he).attr("height",W).attr("fill",C).attr("stroke",R),se.attr("class",d).attr("style",_).attr("x",le).attr("y",H).attr("width",pe).attr("height",W).attr("fill","none").attr("stroke",R);let ge=Z+he/2,we=t.y;$.attr("transform",`translate(${ge}, ${we}) rotate(-90) translate(${-Y.width/2}, ${-Y.height/2})`)}else{let he=Math.max(0,X-H),le=Math.min(U,he),pe=H+le,ge=Math.max(0,re-pe),we=t.x-q/2;if(t.look==="handDrawn"){let Ie=en.svg(B),De=dn(t,{roughness:.7,fill:C,stroke:R,fillWeight:3,seed:T}),Be=dn(t,{roughness:.7,fill:"none",stroke:R,seed:T}),Fe=Ie.rectangle(we,H,q,le,De);ne=B.insert(()=>Fe,":first-child").attr("class",f);let ze=Ie.rectangle(we,pe,q,ge,Be);se=B.insert(()=>ze,":first-child").attr("class",d),ne.select("path:nth-child(2)").attr("style",I.join(";")),ne.select("path").attr("style",N.join(";").replace("fill","stroke"))}else ne=B.insert("rect",":first-child"),se=B.insert("rect",":first-child"),ne.attr("class",f).attr("style",_).attr("x",we).attr("y",H).attr("width",q).attr("height",le).attr("fill",C).attr("stroke",R),se.attr("class",d).attr("style",_).attr("x",we).attr("y",pe).attr("width",q).attr("height",ge).attr("fill","none").attr("stroke",R);let Ae=t.x-Y.width/2,ve=H+(le-Y.height)/2;$.attr("transform",`translate(${Ae}, ${ve})`)}if(Pe.trace("Swimlane data ",t,JSON.stringify(t)),L){let he=$.select("span");he&&he.attr("style",L)}return t.offsetX=0,t.width=q,t.height=W,t.offsetY=Y.height-Q/2,t.intersect=function(he){return UT(t,he)},{cluster:B,labelBBox:Y}},"swimlane")});var Evr,wMn,xMn,TMn,kMn,CMn,EMn,SMn,AMn,RMn,LMn,_Mn,DMn,dZe,Svr,g_,Avr,uU=ae(()=>{"use strict";ma();Xs();Yn();Yre();zo();wa();ex();uwe();Twe();M4();na();Cvr();A0();Evr=i(async(r,t)=>{Pe.info("Creating subgraph rect for ",t.id,t);let a=er(),{theme:s,themeVariables:l,handDrawnSeed:h}=a,{clusterBkg:f,clusterBorder:d,borderColorArray:m}=l,{labelStyles:b,nodeStyles:v,borderStyles:T,backgroundStyles:C}=Gr(t),E=r.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look);yp(E,t.colorIndex,s,m);let S=Fh(a),R=E.insert("g").attr("class","cluster-label "),L;t.labelType==="markdown"?L=await jh(R,t.label,{style:t.labelStyle,useHtmlLabels:S,isNode:!0,width:t.width}):L=await WT(R,t.label,t.labelStyle||"",!1,!0);let _=L.getBBox();if(Fh(a)){let Y=L.children[0],Q=mn(L);_=Y.getBoundingClientRect(),Q.attr("width",_.width),Q.attr("height",_.height)}let I=t.width<=_.width+t.padding?_.width+t.padding:t.width;t.width<=_.width+t.padding?t.diff=(I-t.width)/2-t.padding:t.diff=-t.padding;let N=t.height,B=t.x-I/2,O=t.y-N/2;Pe.trace("Data ",t,JSON.stringify(t));let P;if(t.look==="handDrawn"){let Y=en.svg(E),Q=dn(t,{roughness:.7,fill:f,stroke:d,fillWeight:3,seed:h}),q=Y.path(Nd(B,O,I,N,0),Q);P=E.insert(()=>(Pe.debug("Rough node insert CXC",q),q),":first-child"),P.select("path:nth-child(2)").attr("style",T.join(";")),P.select("path").attr("style",C.join(";").replace("fill","stroke"))}else P=E.insert("rect",":first-child"),P.attr("style",v).attr("rx",t.rx).attr("ry",t.ry).attr("x",B).attr("y",O).attr("width",I).attr("height",N);let{subGraphTitleTopMargin:$}=B4(a);if(R.attr("transform",`translate(${t.x-_.width/2}, ${t.y-t.height/2+$})`),b){let Y=R.select("span");Y&&Y.attr("style",b)}let V=P.node().getBBox();return t.offsetX=0,t.width=V.width,t.height=V.height,t.offsetY=_.height-t.padding/2,t.intersect=function(Y){return UT(t,Y)},{cluster:E,labelBBox:_}},"rect"),wMn=i((r,t)=>{let a=r.insert("g").attr("class","note-cluster").attr("id",t.domId),s=a.insert("rect",":first-child"),l=0*t.padding,h=l/2;s.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-h).attr("y",t.y-t.height/2-h).attr("width",t.width+l).attr("height",t.height+l).attr("fill","none");let f=s.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(d){return UT(t,d)},{cluster:a,labelBBox:{width:0,height:0}}},"noteGroup"),xMn=i(async(r,t)=>{let a=er(),{theme:s,themeVariables:l,handDrawnSeed:h}=a,{altBackground:f,borderColorArray:d,compositeBackground:m,compositeTitleBackground:b,nodeBorder:v}=l,T=r.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look);yp(T,t.colorIndex,s,d);let C=T.insert("g",":first-child"),E=T.insert("g").attr("class","cluster-label"),S=T.append("rect"),R=await WT(E,t.label,t.labelStyle,void 0,!0),L=R.getBBox();if(Fh(a)){let q=R.children[0],W=mn(R);L=q.getBoundingClientRect(),W.attr("width",L.width),W.attr("height",L.height)}let _=0*t.padding,I=_/2,N=(t.width<=L.width+t.padding?L.width+t.padding:t.width)+_;t.width<=L.width+t.padding?t.diff=(N-t.width)/2-t.padding:t.diff=-t.padding;let B=t.height+_,O=t.height+_-L.height-6,P=t.x-N/2,$=t.y-B/2;t.width=N;let V=t.y-t.height/2-I+L.height+2,Y;if(t.look==="handDrawn"){let q=t.cssClasses.includes("statediagram-cluster-alt"),W=en.svg(T),H=t.rx||t.ry?W.path(Nd(P,$,N,B,10),{roughness:.7,fill:b,fillStyle:"solid",stroke:v,seed:h}):W.rectangle(P,$,N,B,{seed:h});Y=T.insert(()=>H,":first-child");let re=W.rectangle(P,V,N,O,{fill:q?f:m,fillStyle:q?"hachure":"solid",stroke:v,seed:h});Y=T.insert(()=>H,":first-child"),S=T.insert(()=>re),Y.attr("class","outer"),S.attr("class","inner")}else Y=C.insert("rect",":first-child"),Y.attr("class","outer").attr("x",P).attr("y",$).attr("width",N).attr("height",B).attr("data-look",t.look),S.attr("class","inner").attr("x",P).attr("y",V).attr("width",N).attr("height",O);E.attr("transform",`translate(${t.x-L.width/2}, ${$+1-(Fh(a)?0:3)})`);let Q=Y.node().getBBox();return t.height=Q.height,t.offsetX=0,t.offsetY=L.height-t.padding/2,t.labelBBox=L,t.intersect=function(q){return UT(t,q)},{cluster:T,labelBBox:L}},"roundedWithTitle"),TMn=i(async(r,t)=>{Pe.info("Creating subgraph rect for ",t.id,t);let a=er(),{themeVariables:s,handDrawnSeed:l}=a,{clusterBkg:h,clusterBorder:f}=s,{labelStyles:d,nodeStyles:m,borderStyles:b,backgroundStyles:v}=Gr(t),T=r.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),C=Fh(a),E=T.insert("g").attr("class","cluster-label "),S=await jh(E,t.label,{style:t.labelStyle,useHtmlLabels:C,isNode:!0,width:t.width}),R=S.getBBox();if(Fh(a)){let $=S.children[0],V=mn(S);R=$.getBoundingClientRect(),V.attr("width",R.width),V.attr("height",R.height)}let L=t.width<=R.width+t.padding?R.width+t.padding:t.width;t.width<=R.width+t.padding?t.diff=(L-t.width)/2-t.padding:t.diff=-t.padding;let _=t.height,I=t.x-L/2,N=t.y-_/2;Pe.trace("Data ",t,JSON.stringify(t));let B;if(t.look==="handDrawn"){let $=en.svg(T),V=dn(t,{roughness:.7,fill:h,stroke:f,fillWeight:4,seed:l}),Y=$.path(Nd(I,N,L,_,t.rx),V);B=T.insert(()=>(Pe.debug("Rough node insert CXC",Y),Y),":first-child"),B.select("path:nth-child(2)").attr("style",b.join(";")),B.select("path").attr("style",v.join(";").replace("fill","stroke"))}else B=T.insert("rect",":first-child"),B.attr("style",m).attr("rx",t.rx).attr("ry",t.ry).attr("x",I).attr("y",N).attr("width",L).attr("height",_);let{subGraphTitleTopMargin:O}=B4(a);if(E.attr("transform",`translate(${t.x-R.width/2}, ${t.y-t.height/2+O})`),d){let $=E.select("span");$&&$.attr("style",d)}let P=B.node().getBBox();return t.offsetX=0,t.width=P.width,t.height=P.height,t.offsetY=R.height-t.padding/2,t.intersect=function($){return UT(t,$)},{cluster:T,labelBBox:R}},"kanbanSection"),kMn=i((r,t)=>{let a=er(),{theme:s,themeVariables:l,handDrawnSeed:h}=a,{altBackground:f,nodeBorder:d,borderColorArray:m}=l,b=r.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look);yp(b,t.colorIndex,s,m);let v=b.insert("g",":first-child"),T=0*t.padding,C=t.width+T;t.diff=-t.padding;let E=t.height+T,S=t.x-C/2,R=t.y-E/2;t.width=C;let L;if(t.look==="handDrawn"){let N=en.svg(b).rectangle(S,R,C,E,{fill:f??"#efefef",fillStyle:"solid",roughness:.5,strokeLineDash:[5],stroke:d,seed:h});L=b.insert(()=>N,":first-child").attr("class","divider")}else{L=v.insert("rect",":first-child");let I="outer";t.look,I="divider",L.attr("class",I).attr("x",S).attr("y",R).attr("width",C).attr("height",E).attr("data-look",t.look)}let _=L.node().getBBox();return t.height=_.height,t.offsetX=0,t.offsetY=0,t.intersect=function(I){return UT(t,I)},{cluster:b,labelBBox:{}}},"divider"),CMn=i(async(r,t,a)=>{Pe.info(`Creating ${a.cssClass} for `,t.id,t);let s=er(),{theme:l,themeVariables:h,handDrawnSeed:f}=s,{borderColorArray:d}=h,{labelStyles:m,borderStyles:b}=Gr(t),v=r.insert("g").attr("class","cluster "+a.cssClass+" "+t.cssClasses).attr("id",t.domId??t.id).attr("data-look",t.look);yp(v,t.colorIndex,l,d);let T=Fh(s),C=v.insert("g").attr("class","cluster-label"),E={width:0,height:0},S=t.label?.trim();if(S){let O;if(t.labelType==="markdown"?O=await jh(C,t.label,{style:t.labelStyle,useHtmlLabels:T,isNode:!0,width:t.width}):O=await WT(C,t.label,t.labelStyle||"",!1,!0),E=O.getBBox(),T){let P=O.children[0],$=mn(O);E=P.getBoundingClientRect(),$.attr("width",E.width),$.attr("height",E.height)}}let R=t.width<=E.width+t.padding?E.width+t.padding:t.width;t.width<=E.width+t.padding?t.diff=(R-t.width)/2-t.padding:t.diff=-t.padding;let L=t.height,_=t.x-R/2,I=t.y-L/2,N;if(t.look==="handDrawn"){let O=en.svg(v),P=dn(t,{roughness:a.roughness,fill:a.fill,stroke:a.stroke,strokeWidth:a.strokeWidth,seed:f,...a.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...a.strokeDash?{strokeLineDash:a.strokeDash}:{}}),$=O.path(Nd(_,I,R,L,a.rx),P);N=v.insert(()=>$,":first-child"),N.select("path:nth-child(2)").attr("style",b.join(";"))}else N=v.insert("rect",":first-child"),N.attr("rx",a.rx).attr("ry",a.rx).attr("x",_).attr("y",I).attr("width",R).attr("height",L).attr("fill",a.fill).attr("stroke",a.stroke).attr("stroke-width",a.strokeWidth+"px"),a.strokeDash&&N.attr("stroke-dasharray",a.strokeDash.join(", "));if(S){let{subGraphTitleTopMargin:O}=B4(s);if(C.attr("transform",`translate(${t.x-E.width/2}, ${t.y-t.height/2+O})`),m){let P=C.select("span");P&&P.attr("style",m)}}let B=N.node().getBBox();return t.offsetX=0,t.width=B.width,t.height=B.height,t.offsetY=E.height-t.padding/2,t.intersect=function(O){return UT(t,O)},{cluster:v,labelBBox:E}},"createContainerGroup"),EMn=i(async(r,t)=>{let{themeVariables:a}=er(),s=a.flowContainerStroke||a.secondaryBorderColor;return CMn(r,t,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:s,strokeWidth:.75,roughness:.7})},"flowGroup"),SMn=i((r,t)=>{let a=r.boundaryType||"rect",s=a==="package"?20:r.padding,l=a==="package"?t.height+10:0,h=Math.max(r.width,t.width+s),f=a==="package"?Math.max(r.height,l+r.padding*2):r.height,d=r.x-h/2,m=r.y-f/2;return{boundaryType:a,width:h,height:f,x:d,y:m,bodyY:m+l,bodyHeight:f-l,tabHeight:l,tabWidth:a==="package"?Math.min(h,Math.max(80,t.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),AMn=i(async(r,t)=>{Pe.info("Creating usecase system boundary for ",t.id,t);let a=er(),{theme:s,themeVariables:l,handDrawnSeed:h}=a,{clusterBkg:f,clusterBorder:d,borderColorArray:m}=l,{labelStyles:b,nodeStyles:v}=Gr(t),{stylesMap:T}=o2(t),C=t.boundaryType||"rect",E=r.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${C} ${t.cssClasses}`).attr("id",typeof t.domId=="string"?t.domId:t.id).attr("data-boundary-type",C).attr("data-look",t.look);yp(E,t.colorIndex,s,m);let S=Fh(a),R=E.insert("g").attr("class","cluster-label system-boundary-title"),L=await jh(R,t.label,{style:b,useHtmlLabels:S,isNode:!0}),_=L.getBBox();if(S){let H=L.children[0],re=mn(L);_=H.getBoundingClientRect(),re.attr("width",_.width),re.attr("height",_.height)}let I=SMn(t,_),{width:N,height:B,x:O,y:P,bodyY:$,bodyHeight:V,tabHeight:Y,tabWidth:Q}=I;t.diff=t.width<=_.width+t.padding?(N-t.width)/2-t.padding:-t.padding;let q=dn(t,{fill:T.get("fill")||f,stroke:T.get("stroke")||d,strokeWidth:T.get("stroke-width")?.replace("px","")||1,seed:h});if(t.look==="handDrawn"){let H=en.svg(E),re=H.rectangle(O,$,N,V,q);if(E.insert(()=>re,":first-child").attr("class","boundary-body label-container"),C==="package"){let Z=H.rectangle(O,P,Q,Y,q);E.insert(()=>Z,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else E.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",v).attr("x",O).attr("y",$).attr("width",N).attr("height",V),C==="package"&&E.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",v).attr("x",O).attr("y",P).attr("width",Q).attr("height",Y);let{subGraphTitleTopMargin:W}=B4(a);return C==="package"?R.attr("transform",`translate(${O+(Q-_.width)/2}, ${P+(Y-_.height)/2})`):R.attr("transform",`translate(${t.x-_.width/2}, ${P+W})`),b&&(R.attr("style",b),R.select("span").attr("style",b)),t.offsetX=0,t.width=N,t.height=B,t.offsetY=_.height-t.padding/2,t.labelBBox=_,t.intersect=function(H){return UT(t,H)},{cluster:E,labelBBox:_}},"usecaseSystemBoundary"),RMn=Evr,LMn=i((r,t)=>fZe(r,t,{variant:"pool"}),"pool"),_Mn={rect:Evr,squareRect:RMn,roundedWithTitle:xMn,noteGroup:wMn,divider:kMn,kanbanSection:TMn,flowGroup:EMn,usecaseSystemBoundary:AMn,swimlane:fZe,pool:LMn},DMn=new Set(["noteGroup","divider"]),dZe=i(r=>!DMn.has(r??"rect"),"clusterPaintsTitle"),Svr=new Map,g_=i(async(r,t)=>{let a=t.shape||"rect",s=await _Mn[a](r,t);return Svr.set(t.id,s),s},"insertCluster"),Avr=i(()=>{Svr=new Map},"clear")});var hU,Rvr=ae(()=>{"use strict";hU=i((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let a=r.x??0,s=r.y??0;return"translate("+-(a+r.width/2)+", "+-(s+r.height/2)+")"},"computeLabelTransform")});function Nwe(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=Qf(r),t=Qf(t);let[a,s]=[r.x,r.y],[l,h]=[t.x,t.y],f=l-a,d=h-s;return{angle:Math.atan(d/f),deltaX:f,deltaY:d}}var Zf,Xre,Qf,Lvr,Owe=ae(()=>{"use strict";Zf={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Xre={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5,arrow_open_head:4,arrow_hollow_circle:8};i(Nwe,"calculateDeltaAndAngle");Qf=i(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),Lvr=i(r=>({x:i(function(t,a,s){let l=0,h=Qf(s[0]).x<Qf(s[s.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(Zf,r.arrowTypeStart)){let{angle:E,deltaX:S}=Nwe(s[0],s[1]);l=Zf[r.arrowTypeStart]*Math.cos(E)*(S>=0?1:-1)}else if(a===s.length-1&&Object.hasOwn(Zf,r.arrowTypeEnd)){let{angle:E,deltaX:S}=Nwe(s[s.length-1],s[s.length-2]);l=Zf[r.arrowTypeEnd]*Math.cos(E)*(S>=0?1:-1)}let f=Math.abs(Qf(t).x-Qf(s[s.length-1]).x),d=Math.abs(Qf(t).y-Qf(s[s.length-1]).y),m=Math.abs(Qf(t).x-Qf(s[0]).x),b=Math.abs(Qf(t).y-Qf(s[0]).y),v=Zf[r.arrowTypeStart],T=Zf[r.arrowTypeEnd],C=1;if(f<T&&f>0&&d<T){let E=T+C-f;E*=h==="right"?-1:1,l-=E}if(m<v&&m>0&&b<v){let E=v+C-m;E*=h==="right"?-1:1,l+=E}return Qf(t).x+l},"x"),y:i(function(t,a,s){let l=0,h=Qf(s[0]).y<Qf(s[s.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(Zf,r.arrowTypeStart)){let{angle:E,deltaY:S}=Nwe(s[0],s[1]);l=Zf[r.arrowTypeStart]*Math.abs(Math.sin(E))*(S>=0?1:-1)}else if(a===s.length-1&&Object.hasOwn(Zf,r.arrowTypeEnd)){let{angle:E,deltaY:S}=Nwe(s[s.length-1],s[s.length-2]);l=Zf[r.arrowTypeEnd]*Math.abs(Math.sin(E))*(S>=0?1:-1)}let f=Math.abs(Qf(t).y-Qf(s[s.length-1]).y),d=Math.abs(Qf(t).x-Qf(s[s.length-1]).x),m=Math.abs(Qf(t).y-Qf(s[0]).y),b=Math.abs(Qf(t).x-Qf(s[0]).x),v=Zf[r.arrowTypeStart],T=Zf[r.arrowTypeEnd],C=1;if(f<T&&f>0&&d<T){let E=T+C-f;E*=h==="up"?-1:1,l-=E}if(m<v&&m>0&&b<v){let E=v+C-m;E*=h==="up"?-1:1,l+=E}return Qf(t).y+l},"y")}),"getLineFunctionsWithOffset")});var _vr,pZe,MMn,NMn,OMn,Dvr,Ivr,Mvr,Nvr,PMn,$vr,BMn,FMn,$Mn,GMn,jMn,zMn,UMn,VMn,WMn,HMn,qMn,YMn,XMn,KMn,Gvr,JMn,gZe,QMn,ZMn,Ovr,Pvr,eNn,jvr,tNn,rNn,Bvr,nNn,iNn,aNn,sNn,Fvr,oNn,Pwe,lNn,zvr,Uvr,mZe=ae(()=>{"use strict";zo();hp();hZe();Ma();_vr=[.25,.35,.15,.65,.75,.5,.85,.1,.9],pZe=9,MMn=11,NMn=2,OMn="#333333",Dvr=12,Ivr=6,Mvr=14,Nvr=.01,PMn=4.5,$vr=/translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i,BMn=4,FMn=.6,$Mn=4,GMn=i((r,t,a=1)=>{let s=Math.max(t,r);return{begin:(r-1)*a,dur:a,gap:(s-1)*a}},"getEdgeStepTiming"),jMn=i(r=>`step_${Array.from(r,t=>/[\dA-Za-z]/.test(t)?t:`_${(t.codePointAt(0)??0).toString(16)}_`).join("")}`,"toAnimationId"),zMn=i(r=>{let t=/^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(r.trim());return t?`translate(${t[1]},${t[2]}) `:""},"pathStartTranslate"),UMn=i(r=>Array.from(r,(t,a)=>{let s=t.codePointAt(0)??0;if(s===0)return"\uFFFD";let l=s<=31||s===127,h=/\d/.test(t)&&(a===0||a===1&&r.startsWith("-"));return l||h?`\\${s.toString(16)} `:r==="-"?"\\-":s>=128||/[\w-]/.test(t)?t:`\\${t}`}).join(""),"escapeCssIdentifierFallback"),VMn=i(r=>typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(r):UMn(r),"escapeCssIdentifier"),WMn=i((r,t)=>{let a=r.node(),s=a?.ownerSVGElement??a?.closest?.("svg")??a,l=t||s?.getAttribute("id");if(!s||!l||s.querySelector("style.edge-step-style"))return;let h=`#${VMn(l)} `,f=s.ownerDocument.createElementNS("http://www.w3.org/2000/svg","style");f.setAttribute("class","edge-step-style"),f.textContent=`@media (prefers-reduced-motion: reduce) { ${h}.edge-step-dot, ${h}.edge-step-highlight { display: none; } }`,s.appendChild(f)},"ensureReducedMotionStyle"),HMn=i((r,t)=>{let a=r.filter(h=>Number.isFinite(h.x)&&Number.isFinite(h.y));if(a.length===0)return;let s=a.slice(1).map((h,f)=>Math.hypot(h.x-a[f].x,h.y-a[f].y)),l=s.reduce((h,f)=>h+f,0)*t;for(let[h,f]of s.entries()){if(l<=f&&f>0){let d=l/f,m=a[h],b=a[h+1];return{x:m.x+(b.x-m.x)*d,y:m.y+(b.y-m.y)*d}}l-=f}return a[a.length-1]},"pointAlongPolyline"),qMn=i((r,t)=>{let a=typeof t?.getTotalLength=="function"?t.getTotalLength():0,s=t?.getPointAtLength?.bind(t);return a>0&&s?l=>{let{x:h,y:f}=s(a*l);return{x:h,y:f}}:l=>HMn(r,l)},"createPathSampler"),YMn=i((r,t)=>Math.min(Number.POSITIVE_INFINITY,...t.map(a=>{let s=Math.max(Math.abs(r.x-a.x)-a.halfWidth,0),l=Math.max(Math.abs(r.y-a.y)-a.halfHeight,0);return Math.hypot(s,l)-pZe})),"roomAround"),XMn=i((r,t)=>{let a=r(t),s=r(Math.max(t-Nvr,0)),l=r(Math.min(t+Nvr,1));if(!a||!s||!l)return[];let h=Math.hypot(l.x-s.x,l.y-s.y);if(h===0)return[];let f={x:-(l.y-s.y)/h,y:(l.x-s.x)/h};return[1,-1].map(d=>({x:a.x+f.x*Mvr*d,y:a.y+f.y*Mvr*d}))},"besideThePath"),KMn=i((r,t)=>{let a=[..._vr.map(r),..._vr.flatMap(h=>XMn(r,h))],s,l=Number.NEGATIVE_INFINITY;for(let h of a){if(!h||!Number.isFinite(h.x)||!Number.isFinite(h.y))continue;let f=YMn(h,t);if(f>=NMn)return h;f>l&&(s=h,l=f)}return s},"chooseBadgePosition"),Gvr=i((r,t)=>({...r,halfWidth:t,halfHeight:t}),"square"),JMn=i(r=>{let t=$vr.exec(r.getAttribute("transform")??"");return t?{x:Number(t[1]),y:Number(t[2])}:{x:0,y:0}},"translationOf"),gZe=i(r=>{let t={x:0,y:0};for(let a=r;a&&a.localName!=="svg";a=a.parentElement){let{x:s,y:l}=JMn(a);t.x+=s,t.y+=l}return t},"offsetInSvg"),QMn=i((r,t)=>{if(!$vr.test(r.getAttribute("transform")??""))return;let a=gZe(r),s=a.x-t.x,l=a.y-t.y,h=r.getBBox?.();if(h)return{x:s+h.x+h.width/2,y:l+h.y+h.height/2,halfWidth:h.width/2,halfHeight:h.height/2}},"boxedObstacle"),ZMn=i(r=>{try{let t=JSON.parse(atob(r.getAttribute("data-points")??""));return Array.isArray(t)?t:[]}catch{return[]}},"readPoints"),Ovr=i((r,t)=>{let a=Math.hypot(r.x-t.x,r.y-t.y);if(a===0)return Gvr(r,Dvr);let s={x:(r.x-t.x)/a,y:(r.y-t.y)/a},l=Dvr/2;return{x:r.x-s.x*l,y:r.y-s.y*l,halfWidth:Math.abs(s.x)*l+Math.abs(s.y)*Ivr,halfHeight:Math.abs(s.y)*l+Math.abs(s.x)*Ivr}},"arrowheadObstacle"),Pvr=i((r,t)=>{let a=r.getAttribute(t);return!!a&&a!=="none"},"hasMarker"),eNn=i((r,t)=>{let a=ZMn(r).filter(d=>Number.isFinite(d?.x)&&Number.isFinite(d?.y));if(a.length===0)return[];let s=gZe(r),l=i(d=>({x:d.x+s.x-t.x,y:d.y+s.y-t.y}),"toSvg"),h=a.length-1,f=[];return Pvr(r,"marker-start")&&f.push(Ovr(l(a[0]),l(a[Math.min(1,h)]))),Pvr(r,"marker-end")&&f.push(Ovr(l(a[h]),l(a[Math.max(h-1,0)]))),f},"arrowheadObstacles"),jvr=i(r=>{let t={x:0,y:0},a=[...r?.querySelectorAll(".edgeLabel, .node")??[]].map(l=>QMn(l,t)).filter(l=>l!==void 0),s=[...r?.querySelectorAll('path[data-edge="true"]')??[]].flatMap(l=>eNn(l,t));return[...a,...s]},"collectBadgeObstacles"),tNn=i((r,t)=>{if(!r.label||t.length===0)return[];let{x:a,y:s}=Va.calcLabelPosition(t);return[{x:a,y:s,halfWidth:(r.width??0)/2,halfHeight:(r.height??0)/2}]},"edgeLabelObstacles"),rNn=i(r=>{let t=r/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},"linearChannel"),Bvr=i(r=>{try{let[t,a,s]=["r","g","b"].map(l=>rNn(m4(r,l)));return .2126*t+.7152*a+.0722*s}catch{return}},"relativeLuminance"),nNn=i((r,t)=>{let a=Bvr(r),s=Bvr(t);return a===void 0||s===void 0?0:(Math.max(a,s)+.05)/(Math.min(a,s)+.05)},"contrastRatio"),iNn=i((r,t)=>{let s=[...t.filter(h=>!!h),"#ffffff","#000000"].map(h=>({color:h,ratio:nNn(r,h)}));return(s.find(({ratio:h})=>h>=PMn)??s.reduce((h,f)=>f.ratio>h.ratio?f:h)).color},"pickBadgeTextColor"),aNn=i(r=>{let t=r?.replace(/^stroke:\s*/,"").trim();return t===""?void 0:t},"bareColor"),sNn=i((r,t,a,s=jvr(r.node()?.closest("svg")))=>{if(!p_(t)||!t.showStepNumber)return;let l=gZe(r.node()),h=s.map(b=>({...b,x:b.x-l.x,y:b.y-l.y})),f=KMn(qMn(a.points,a.pathNode),[...h,...tNn(t,a.points)]);if(!f)return;let d=aNn(a.color)??OMn,m=r.append("g").attr("class","edge-step-badge").attr("transform",`translate(${f.x},${f.y})`).attr("pointer-events","none").attr("data-step",t.step);return m.append("circle").attr("r",pZe).attr("fill",d),m.append("text").attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",MMn).attr("fill",iNn(d,a.textColors??[])).text(String(t.step)),Gvr({x:f.x+l.x,y:f.y+l.y},pZe)},"insertEdgeStepBadge"),Fvr=i((r,t,a)=>{r.append("animateTransform").attr("attributeName","transform").attr("type","scale").attr("values","1;1").attr("dur",`${a}s`).attr("begin",`${t}.begin`).attr("fill","remove")},"showWhileStepPlays"),oNn=i((r,t,a,s,l)=>{if(!p_(t)||!a)return;let{begin:h,dur:f,gap:d}=GMn(t.step,t.stepCount??t.step,Iwe(t.stepDuration)),m=jMn(`${s}-${t.id}-step`),b=`${zMn(a)}scale(0)`,v=l?.replace(/^stroke:\s*/,""),T=r.append("path").attr("class","edge-step-highlight").attr("aria-hidden","true").attr("d",a).attr("fill","none").attr("stroke",v??"currentColor").attr("stroke-width",BMn).attr("stroke-linecap","round").attr("stroke-opacity",FMn).attr("pointer-events","none").attr("transform",b).attr("data-step",t.step);Fvr(T,m,f);let C=r.append("circle").attr("class","edge-step-dot").attr("r",$Mn).attr("aria-hidden","true").attr("transform",b).attr("data-step",t.step);v&&C.attr("fill",v).attr("stroke","none"),C.append("animateMotion").attr("id",m).attr("path",a).attr("dur",`${f}s`).attr("begin",`${h}s;${m}.end+${d}s`).attr("fill","remove"),Fvr(C,m,f),WMn(r,s)},"insertEdgeStepDot"),Pwe=new WeakMap,lNn=i(r=>{let t=r.querySelector(":scope > g.edge-step-badges");if(t)return t;let a=r.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");return a.setAttribute("class","edge-step-badges"),r.appendChild(a)},"badgeLayer"),zvr=i(r=>{let t=r?Pwe.get(r):void 0;if(!r||!t)return;Pwe.delete(r);let a=jvr(r);for(let{elem:s,edge:l,options:h}of t){let f=s.node()?.parentElement;if(!f)continue;let d=mn(lNn(f)),m=sNn(d,l,h,a);m&&a.push(m)}},"placeQueuedStepBadges"),Uvr=i((r,t,a,s,l)=>{oNn(r,t,a,s,l.color);let h=r.node(),f=h?.ownerSVGElement??h;!f||!p_(t)||!t.showStepNumber||Pwe.set(f,[...Pwe.get(f)??[],{elem:r,edge:t,options:l}])},"insertEdgeStepMarks")});var Wvr,cNn,uNn,Vvr,Hvr=ae(()=>{"use strict";Yn();Wvr=i((r,t,a,s,l,h=!1,f)=>{t.arrowTypeStart&&Vvr(r,"start",t.arrowTypeStart,a,s,l,h,f),t.arrowTypeEnd&&Vvr(r,"end",t.arrowTypeEnd,a,s,l,h,f)},"addEdgeMarkers"),cNn={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_open_head:{type:"openArrow",fill:!1},arrow_hollow_circle:{type:"hollowCircle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},uNn=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Vvr=i((r,t,a,s,l,h,f=!1,d)=>{if(!a||a==="none")return;let m=cNn[a],b=m&&uNn.includes(m.type);if(!m){Pe.warn(`Unknown arrow type: ${a}`);return}let v=m.type,E=`${l}_${h}-${v}${t==="start"?"Start":"End"}${f&&b?"-margin":""}`;if(d&&d.trim()!==""){let S=d.replace(/[^\dA-Za-z]/g,"_"),R=`${E}_${S}`;if(!document.getElementById(R)){let L=document.getElementById(E);if(L){let _=L.cloneNode(!0);_.id=R,_.querySelectorAll("path, circle, line").forEach(N=>{N.setAttribute("stroke",d),m.fill&&N.setAttribute("fill",d)}),L.parentNode?.appendChild(_)}}r.attr(`marker-${t}`,`url(${s}#${R})`)}else r.attr(`marker-${t}`,`url(${s}#${E})`)},"addEdgeMarker")});function Bwe(r,t,a){r.terminalLabelSizes??={},r.terminalLabelSizes[t]={width:a.width,height:a.height}}function Fwe(r,t,a){Fh(er())&&r&&(r.style.width=Math.max(t.length*9,a.width)+"px",r.style.height=a.height+"px")}function fNn(r,t,a){return $A(r,t)&&!GA(r,t)?$A(a,t):GA(r,t)&&!$A(r,t)?GA(a,t):$A(a,t)||GA(a,t)}function dNn(r,t,a){return Jvr(r,t)?{heading:t,from:a}:{heading:r,from:t}}function pNn({heading:r,from:t},a,s){return(r.x-t.x)*(s.x-a.x)+(r.y-t.y)*(s.y-a.y)<0}function gNn({heading:r,from:t},a,s){return GA(r,t)&&!$A(r,t)?{x:s.x,y:a.y}:$A(r,t)&&!GA(r,t)?{x:a.x,y:s.y}:s}function mNn(r,t,a,s){if(($A(r,t)||GA(r,t))&&!fNn(r,t,s))return r;let h=dNn(r,t,a);return pNn(h,t,s)?t:gNn(h,t,s)}function yNn(r){let t=Object.hasOwn(Zf,r)?Zf[r]:0;return Number.isFinite(t)?t:0}function bNn({originalLast:r,lastInner:t,newLast:a,minLength:s}){let l=!Jvr(r,t),h=Math.hypot(a.x-t.x,a.y-t.y);return h>=Math.max(fU,s)?a:l&&h>=fU?r:void 0}function TNn(r){let t=[],a=[];for(let s=1;s<r.length-1;s++){let l=r[s-1],h=r[s],f=r[s+1];(l.x===h.x&&h.y===f.y&&Math.abs(h.x-f.x)>5&&Math.abs(h.y-l.y)>5||l.y===h.y&&h.x===f.x&&Math.abs(h.x-l.x)>5&&Math.abs(h.y-f.y)>5)&&(t.push(h),a.push(s))}return{cornerPoints:t,cornerPointPositions:a}}function ENn(r,t){if(r.length<2)return"";let a="",s=r.length,l=1e-5;for(let h=0;h<s;h++){let f=r[h],d=r[h-1],m=r[h+1];if(h===0)a+=`M${f.x},${f.y}`;else if(h===s-1)a+=`L${f.x},${f.y}`;else{let b=f.x-d.x,v=f.y-d.y,T=m.x-f.x,C=m.y-f.y,E=Math.hypot(b,v),S=Math.hypot(T,C);if(E<l||S<l){a+=`L${f.x},${f.y}`;continue}let R=b/E,L=v/E,_=T/S,I=C/S,N=R*_+L*I,B=Math.max(-1,Math.min(1,N)),O=Math.acos(B);if(O<l||Math.abs(Math.PI-O)<l){a+=`L${f.x},${f.y}`;continue}let P=Math.min(t/Math.sin(O/2),E/2,S/2),$=f.x-R*P,V=f.y-L*P,Y=f.x+_*P,Q=f.y+I*P;a+=`L${$},${V}`,a+=`Q${f.x},${f.y} ${Y},${Q}`}}return a}function Xvr(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,s=t.y-r.y;return{angle:Math.atan2(s,a),deltaX:a,deltaY:s}}function SNn(r,t){let a=r.map(l=>({...l}));if(r.length>=2&&Zf[t.arrowTypeStart]){let l=Zf[t.arrowTypeStart],h=r[0],f=r[1],{angle:d}=Xvr(h,f),m=l*Math.cos(d),b=l*Math.sin(d);a[0].x=h.x+m,a[0].y=h.y+b}let s=r.length;if(s>=2&&Zf[t.arrowTypeEnd]){let l=Zf[t.arrowTypeEnd],h=r[s-1],f=r[s-2],{angle:d}=Xvr(f,h),m=l*Math.cos(d),b=l*Math.sin(d);a[s-1].x=h.x-m,a[s-1].y=h.y-b}return a}var hNn,zO,R0,Kvr,$we,Kre,F4,yZe,dU,fU,$A,GA,Jvr,vNn,wNn,xNn,qvr,Yvr,kNn,CNn,m_,pU=ae(()=>{"use strict";ma();Xs();Yn();ex();owe();Rvr();Ma();Owe();mZe();Yre();zo();wa();Twe();Hvr();na();hNn=i(r=>typeof r=="string"?r:er()?.flowchart?.curve,"resolveEdgeCurveType"),zO=new Map,R0=new Map,Kvr=i(()=>{zO.clear(),R0.clear()},"clear"),$we=i(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),Kre=i(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),F4=i(async(r,t)=>{let a=er(),s=Fh(a),{labelStyles:l}=Gr(t);t.labelStyle=l;let h=r.insert("g").attr("class","edgeLabel"),f=h.insert("g").attr("class","label").attr("data-id",t.id),d=t.labelType==="markdown",b=await jh(r,t.label,{style:Kre(t.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:d?void 0:void 0},a);f.node().appendChild(b),Pe.info("abc82",t,t.labelType);let v,T;if(s){let E=b.children[0],S=mn(b);v=await oS.measure(()=>E.getBoundingClientRect()),T=v,S.attr("width",v.width),S.attr("height",v.height)}else{let E=mn(b).select("text").node();await oS.measure(()=>{v=b.getBBox(),E&&typeof E.getBBox=="function"?T=E.getBBox():T=v})}f.attr("transform",hU(T,s)),zO.set(t.id,h),t.width=v.width,t.height=v.height;let C;if(t.startLabelLeft){let E=r.insert("g").attr("class","edgeTerminals"),S=E.insert("g").attr("class","inner"),R=await WT(S,t.startLabelLeft,Kre(t.labelStyle)||"",!1,!1);C=R;let L=R.getBBox();if(s){let _=R.children[0],I=mn(R);L=_.getBoundingClientRect(),I.attr("width",L.width),I.attr("height",L.height)}S.attr("transform",hU(L,s)),R0.get(t.id)||R0.set(t.id,{}),R0.get(t.id).startLeft=E,Fwe(C,t.startLabelLeft,L),Bwe(t,"startLeft",L)}if(t.startLabelRight){let E=r.insert("g").attr("class","edgeTerminals"),S=E.insert("g").attr("class","inner"),R=await WT(S,t.startLabelRight,Kre(t.labelStyle)||"",!1,!1);C=R;let L=R.getBBox();if(s){let _=R.children[0],I=mn(R);L=_.getBoundingClientRect(),I.attr("width",L.width),I.attr("height",L.height)}S.attr("transform",hU(L,s)),R0.get(t.id)||R0.set(t.id,{}),R0.get(t.id).startRight=E,Fwe(C,t.startLabelRight,L),Bwe(t,"startRight",L)}if(t.endLabelLeft){let E=r.insert("g").attr("class","edgeTerminals"),S=E.insert("g").attr("class","inner"),R=await WT(S,t.endLabelLeft,Kre(t.labelStyle)||"",!1,!1);C=R;let L=R.getBBox();if(s){let _=R.children[0],I=mn(R);L=_.getBoundingClientRect(),I.attr("width",L.width),I.attr("height",L.height)}S.attr("transform",hU(L,s)),R0.get(t.id)||R0.set(t.id,{}),R0.get(t.id).endLeft=E,Fwe(C,t.endLabelLeft,L),Bwe(t,"endLeft",L)}if(t.endLabelRight){let E=r.insert("g").attr("class","edgeTerminals"),S=E.insert("g").attr("class","inner"),R=await WT(S,t.endLabelRight,Kre(t.labelStyle)||"",!1,!1);C=R;let L=R.getBBox();if(s){let _=R.children[0],I=mn(R);L=_.getBoundingClientRect(),I.attr("width",L.width),I.attr("height",L.height)}S.attr("transform",hU(L,s)),R0.get(t.id)||R0.set(t.id,{}),R0.get(t.id).endRight=E,Fwe(C,t.endLabelRight,L),Bwe(t,"endRight",L)}return b},"insertEdgeLabel");i(Bwe,"recordTerminalLabelSize");i(Fwe,"setTerminalWidth");yZe=i((r,t)=>{let a=r.x,s=r.y;if(t?.updatedPath){let l=Va.calcLabelPosition(t.updatedPath);if(t.originalPath){let h=Va.calcLabelPosition(t.originalPath);a=r.x+(l.x-h.x),s=r.y+(l.y-h.y)}else a=l.x,s=l.y}return{x:a,y:s}},"resolveEdgeLabelPosition"),dU=i((r,t)=>{Pe.debug("Moving label abc88 ",r.id,r.label,zO.get(r.id),t);let a=er(),{subGraphTitleTotalMargin:s}=B4(a);if(r.label){let h=zO.get(r.id),{x:f,y:d}=yZe(r,t);Pe.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",f,",",d,") abc88"),h.attr("transform",`translate(${f}, ${d+s/2})`)}let l=t.updatedPath?t.updatedPath:t.originalPath;if(r.startLabelLeft){let h=R0.get(r.id).startLeft,f=r.x,d=r.y;if(l){let m=Va.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",l);f=m.x,d=m.y}h.attr("transform",`translate(${f}, ${d})`)}if(r.startLabelRight){let h=R0.get(r.id).startRight,f=r.x,d=r.y;if(l){let m=Va.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",l);f=m.x,d=m.y}h.attr("transform",`translate(${f}, ${d})`)}if(r.endLabelLeft){let h=R0.get(r.id).endLeft,f=r.x,d=r.y;if(l){let m=Va.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",l);f=m.x,d=m.y}h.attr("transform",`translate(${f}, ${d})`)}if(r.endLabelRight){let h=R0.get(r.id).endRight,f=r.x,d=r.y;if(l){let m=Va.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",l);f=m.x,d=m.y}h.attr("transform",`translate(${f}, ${d})`)}},"positionEdgeLabel"),fU=.5,$A=i((r,t)=>Math.abs(r.x-t.x)<fU,"sharesColumn"),GA=i((r,t)=>Math.abs(r.y-t.y)<fU,"sharesRow"),Jvr=i((r,t)=>$A(r,t)&&GA(r,t),"coincides");i(fNn,"keepsArrivalAxis");i(dNn,"arrivalSegment");i(pNn,"runsAgainstHeading");i(gNn,"snapToArrivalAxis");i(mNn,"dockFinalPoint");i(yNn,"markerPullBack");i(bNn,"finalDockPoint");vNn=i((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,s]=t,l=Math.abs(s.x-a.x),h=Math.abs(s.y-a.y);return l<.001||h<.001?t:h>=l?[a,{x:a.x,y:s.y},s]:[a,{x:s.x,y:a.y},s]},"orthogonalizeToLabelClippedPoints"),wNn=i((r,t)=>{let a=r.x,s=r.y,l=Math.abs(t.x-a),h=Math.abs(t.y-s),f=r.width/2,d=r.height/2;return l>=f||h>=d},"outsideNode"),xNn=i((r,t,a)=>{Pe.debug(`intersection calc abc89:
|
|
outsidePoint: ${JSON.stringify(t)}
|
|
insidePoint : ${JSON.stringify(a)}
|
|
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let s=r.x,l=r.y,h=Math.abs(s-a.x),f=r.width/2,d=a.x<t.x?f-h:f+h,m=r.height/2,b=Math.abs(t.y-a.y),v=Math.abs(t.x-a.x);if(Math.abs(l-t.y)*f>Math.abs(s-t.x)*m){let T=a.y<t.y?t.y-m-l:l-m-t.y;d=v*T/b;let C={x:a.x<t.x?a.x+d:a.x-v+d,y:a.y<t.y?a.y+b-T:a.y-b+T};return d===0&&(C.x=t.x,C.y=t.y),v===0&&(C.x=t.x),b===0&&(C.y=t.y),Pe.debug(`abc89 top/bottom calc, Q ${b}, q ${T}, R ${v}, r ${d}`,C),C}else{a.x<t.x?d=t.x-f-s:d=s-f-t.x;let T=b*d/v,C=a.x<t.x?a.x+v-d:a.x-v+d,E=a.y<t.y?a.y+T:a.y-T;return Pe.debug(`sides calc abc89, Q ${b}, q ${T}, R ${v}, r ${d}`,{_x:C,_y:E}),d===0&&(C=t.x,E=t.y),v===0&&(C=t.x),b===0&&(E=t.y),{x:C,y:E}}},"intersection"),qvr=i((r,t)=>{Pe.warn("abc88 cutPathAtIntersect",r,t);let a=[],s=r[0],l=!1;return r.forEach(h=>{if(Pe.info("abc88 checking point",h,t),!wNn(t,h)&&!l){let f=xNn(t,s,h);Pe.debug("abc88 inside",h,s,f),Pe.debug("abc88 intersection",f,t);let d=!1;a.forEach(m=>{d=d||m.x===f.x&&m.y===f.y}),a.some(m=>m.x===f.x&&m.y===f.y)?Pe.warn("abc88 no intersect",f,a):a.push(f),l=!0}else Pe.warn("abc88 outside",h,s),s=h,l||a.push(h)}),Pe.debug("returning points",a),a},"cutPathAtIntersect");i(TNn,"extractCornerPoints");Yvr=i(function(r,t,a){let s=t.x-r.x,l=t.y-r.y,h=Math.sqrt(s*s+l*l),f=a/h;return{x:t.x-f*s,y:t.y-f*l}},"findAdjacentPoint"),kNn=i(function(r){let{cornerPointPositions:t}=TNn(r),a=[];for(let s=0;s<r.length;s++)if(t.includes(s)){let l=r[s-1],h=r[s+1],f=r[s],d=Yvr(l,f,5),m=Yvr(h,f,5),b=m.x-d.x,v=m.y-d.y;a.push(d);let T=Math.sqrt(2)*2,C={x:f.x,y:f.y};if(Math.abs(h.x-l.x)>10&&Math.abs(h.y-l.y)>=10){Pe.debug("Corner point fixing",Math.abs(h.x-l.x),Math.abs(h.y-l.y));let E=5;f.x===d.x?C={x:b<0?d.x-E+T:d.x+E-T,y:v<0?d.y-T:d.y+T}:C={x:b<0?d.x-T:d.x+T,y:v<0?d.y-E+T:d.y+E-T}}else Pe.debug("Corner point skipping fixing",Math.abs(h.x-l.x),Math.abs(h.y-l.y));a.push(C,m)}else a.push(r[s]);return a},"fixCorners"),CNn=i((r,t,a)=>{let s=r-t-a,l=2,h=2,f=l+h,d=Math.floor(s/f),m=Number.isFinite(d)?Math.max(0,d):0,b=Array(m).fill(`${l} ${h}`).join(" ");return`0 ${t} ${b} ${a}`},"generateDashArray"),m_=i(function(r,t,a,s,l,h,f,d=!1,m=void 0){if(!f)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:b,layout:v}=er(),T=m??v,C=t.points,E=!1,S=l;var R=h;let L=[];for(let se in t.cssCompiledStyles)Lre(se)||L.push(t.cssCompiledStyles[se]);if(T==="swimlane"){if(!d&&R.intersect&&S.intersect&&Array.isArray(C)&&C.length>=2)if(C.length===2){let[se,he]=C;C=$A(se,he)||GA(se,he)?[S.intersect(se),R.intersect(he)]:[S.intersect(he),R.intersect(se)]}else{let se=C.slice(1,-1),he=se[0],le=se[se.length-1],pe=S.intersect(he),ge=C[C.length-1],we=R.intersect(le),Ae=se.at(-2)??C[0],ve=mNn(ge,le,Ae,we),Ie=bNn({originalLast:ge,lastInner:le,newLast:ve,minLength:yNn(t.arrowTypeEnd)}),Be=Math.abs(pe.x-he.x)<fU&&Math.abs(pe.y-he.y)<fU?[]:[pe],Fe=Ie?[Ie]:[];C=[...Be,...se,...Fe]}C=vNn(t,C)}else R.intersect&&S.intersect&&!d&&(C=C.slice(1,t.points.length-1),C.unshift(S.intersect(C[0])),C.push(R.intersect(C[C.length-1])));let _=btoa(JSON.stringify(C));t.toCluster&&(Pe.info("to cluster abc88",a.get(t.toCluster)),C=qvr(t.points,a.get(t.toCluster).node),E=!0),t.fromCluster&&(Pe.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(C,null,2)),C=qvr(C.reverse(),a.get(t.fromCluster).node).reverse(),E=!0);let I=C.filter(se=>!Number.isNaN(se.y)),N=hNn(t.curve);N!=="rounded"&&(I=kNn(I));let B=GT;switch(N){case"linear":B=GT;break;case"basis":B=SO;break;case"cardinal":B=rre;break;case"bumpX":B=Jte;break;case"bumpY":B=Qte;break;case"catmullRom":B=are;break;case"monotoneX":B=sre;break;case"monotoneY":B=ore;break;case"natural":B=Qz;break;case"step":B=Zz;break;case"stepAfter":B=cre;break;case"stepBefore":B=lre;break;case"rounded":B=GT;break;default:B=SO}let{x:O,y:P}=Lvr(t),$=EO().x(O).y(P).curve(B),V;switch(t.thickness){case"normal":V="edge-thickness-normal";break;case"thick":V="edge-thickness-thick";break;case"invisible":V="edge-thickness-invisible";break;default:V="edge-thickness-normal"}switch(t.pattern){case"solid":V+=" edge-pattern-solid";break;case"dotted":V+=" edge-pattern-dotted";break;case"dashed":V+=" edge-pattern-dashed";break;default:V+=" edge-pattern-solid"}let Y,Q=N==="rounded"?ENn(SNn(I,t),5):$(I),q=Array.isArray(t.style)?t.style:[t.style],W=q.find(se=>se?.startsWith("stroke:")),H="";t.animate&&(H="edge-animation-fast"),t.animation&&(H="edge-animation-"+t.animation);let re=!1;if(t.look==="handDrawn"){let se=en.svg(r);Object.assign([],I);let he=se.path(Q,{roughness:.3,seed:b});V+=" transition",Y=mn(he).select("path").attr("id",`${f}-${t.id}`).attr("class"," "+V+(t.classes?" "+t.classes:"")+(H?" "+H:"")).attr("style",q?q.reduce((pe,ge)=>pe+";"+ge,""):"");let le=Y.attr("d");Y.attr("d",le),r.node().appendChild(Y.node())}else{let se=L.join(";"),he=q?q.reduce((ve,Ie)=>ve+Ie+";",""):"",le=(se?se+";"+he+";":he)+";"+(q?q.reduce((ve,Ie)=>ve+";"+Ie,""):"");Y=r.append("path").attr("d",Q).attr("id",`${f}-${t.id}`).attr("class"," "+V+(t.classes?" "+t.classes:"")+(H?" "+H:"")).attr("style",le),W=le.match(/stroke:([^;]+)/)?.[1],re=t.animate===!0||!!t.animation||se.includes("animation");let pe=Y.node(),ge=typeof pe.getTotalLength=="function"?pe.getTotalLength():0,we=Xre[t.arrowTypeStart]||0,Ae=Xre[t.arrowTypeEnd]||0;if(t.look==="neo"&&!re){let Ie=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?CNn(ge,we,Ae):`0 ${we} ${ge-we-Ae} ${Ae}`}; stroke-dashoffset: 0;`;Y.attr("style",Ie+Y.attr("style"))}}if(Y.attr("data-edge",!0),Y.attr("data-et","edge"),Y.attr("data-id",t.id),Y.attr("data-points",_),Y.attr("data-look",Cc(t.look)),t.step!==void 0){let{themeVariables:se}=er(),he=W??se?.lineColor;Uvr(r,t,Q,f,{points:I,pathNode:Y.node(),color:he,textColors:[se?.background,se?.primaryTextColor]})}t.showPoints&&I.forEach(se=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",se.x).attr("cy",se.y)});let Z="";(er().flowchart.arrowMarkerAbsolute||er().state.arrowMarkerAbsolute)&&(Z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Z=Z.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Pe.info("arrowTypeStart",t.arrowTypeStart),Pe.info("arrowTypeEnd",t.arrowTypeEnd);let X=!re&&t?.look==="neo";Wvr(Y,t,Z,f,s,X,W);let te=Math.floor(C.length/2),U=C[te];Va.isLabelCoordinateInPath(U,Y.attr("d"))||(E=!0);let ne={};return E&&(ne.updatedPath=C),ne.originalPath=t.points,ne},"insertEdge");i(ENn,"generateRoundedPath");i(Xvr,"calculateDeltaAndAngle");i(SNn,"applyMarkerOffsetsToPoints")});var ANn,RNn,LNn,_Nn,DNn,INn,MNn,NNn,ONn,PNn,BNn,FNn,$Nn,GNn,jNn,zNn,UNn,VNn,WNn,HNn,qNn,YNn,XNn,KNn,JNn,QNn,ZNn,gU,Gwe=ae(()=>{"use strict";Yn();Xs();ANn=i((r,t,a,s)=>{t.forEach(l=>{ZNn[l](r,a,s)})},"insertMarkers"),RNn=i((r,t,a)=>{Pe.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),LNn=i((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),_Nn=i((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),DNn=i((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),INn=i((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),MNn=i((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),NNn=i((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),ONn=i((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),PNn=i((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),BNn=i((r,t,a)=>{let s=ri(),{themeVariables:l}=s,{transitionColor:h}=l;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${h}`)},"barbNeo"),FNn=i((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),$Nn=i((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let l=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");l.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),l.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),GNn=i((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),jNn=i((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let l=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");l.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),zNn=i((r,t,a)=>{let s=ri(),{themeVariables:l}=s,{strokeWidth:h}=l;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${h}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${h}`)},"only_one_neo"),UNn=i((r,t,a)=>{let s=ri(),{themeVariables:l}=s,{strokeWidth:h,mainBkg:f}=l,d=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",f??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${h}`).attr("r",6),d.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${h}`);let m=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");m.append("circle").attr("fill",f??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${h}`).attr("r",6),m.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${h}`)},"zero_or_one_neo"),VNn=i((r,t,a)=>{let s=ri(),{themeVariables:l}=s,{strokeWidth:h}=l;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${h}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${h}`)},"one_or_more_neo"),WNn=i((r,t,a)=>{let s=ri(),{themeVariables:l}=s,{strokeWidth:h,mainBkg:f}=l,d=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",f??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${h}`),d.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${h}`);let m=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");m.append("circle").attr("fill",f??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${h}`),m.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${h}`)},"zero_or_more_neo"),HNn=i((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L20,10
|
|
M20,10
|
|
L0,20`)},"requirement_arrow"),qNn=i((r,t,a)=>{let s=ri(),{themeVariables:l}=s,{strokeWidth:h}=l;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${h}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
L20,10
|
|
M20,10
|
|
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),YNn=i((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),XNn=i((r,t,a)=>{let s=ri(),{themeVariables:l}=s,{strokeWidth:h}=l,f=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");f.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),f.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),f.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),f.selectAll("*").attr("stroke-width",`${h}`)},"requirement_contains_neo"),KNn=i((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),JNn=i((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),QNn=i((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),ZNn={extension:RNn,composition:LNn,aggregation:_Nn,dependency:DNn,lollipop:INn,point:MNn,circle:NNn,cross:ONn,barb:PNn,barbNeo:BNn,hierarchy:KNn,only_one:FNn,zero_or_one:$Nn,one_or_more:GNn,zero_or_more:jNn,only_one_neo:zNn,zero_or_one_neo:UNn,one_or_more_neo:VNn,zero_or_more_neo:WNn,requirement_arrow:HNn,requirement_contains:YNn,requirement_arrow_neo:qNn,requirement_contains_neo:XNn,openArrow:JNn,hollowCircle:QNn},gU=ANn});async function jA(r,t,a){let s,l;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let h=t.shape?jre[t.shape]:void 0;if(!h)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let f;a.config.securityLevel==="sandbox"?f="_top":t.linkTarget&&(f=t.linkTarget||"_blank"),s=r.insert("svg:a").attr("xlink:href",t.link).attr("target",f??null),l=await h(s,t,a)}else l=await h(r,t,a),s=l;return s.attr("data-look",Cc(t.look)),t.tooltip&&l.attr("title",t.tooltip),jwe.set(t.id,s),t.haveCallback&&s.attr("class",s.attr("class")+" clickable"),s}var jwe,Qvr,Zvr,dS,UO=ae(()=>{"use strict";Yn();zre();Ma();jwe=new Map;i(jA,"insertNode");Qvr=i((r,t)=>{jwe.set(t.id,r)},"setNodeElem"),Zvr=i(()=>{jwe.clear()},"clear"),dS=i(r=>{let t=jwe.get(r.id);Pe.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");let a=8,s=r.diff||0;return r.clusterNode?t.attr("transform","translate("+(r.x+s-r.width/2)+", "+(r.y-r.height/2-a)+")"):t.attr("transform","translate("+r.x+", "+r.y+")"),s},"positionNode")});var e2r,t2r=ae(()=>{"use strict";Xs();nl();Yn();uU();pU();Gwe();UO();Yi();Ma();e2r={common:Xn,getConfig:ri,insertCluster:g_,insertEdge:m_,insertEdgeLabel:F4,insertMarkers:gU,insertNode:jA,interpolateToCurve:OJe,labelHelper:kn,log:Pe,positionEdgeLabel:dU}});var zwe,bZe=ae(()=>{"use strict";zwe=i((r,t)=>{let{theme:a,themeVariables:s}=t,{useGradient:l,gradientStart:h,gradientStop:f}=s??{},d=r.attr("id"),m=a?.includes("dark")?"#FFFFFF":"#000000",b=i((T,C,E)=>r.append("defs").append("filter").attr("id",T).attr("height",C).attr("width",C).append("feDropShadow").attr("dx",E).attr("dy",E).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",m),"dropShadow");if(b(`${d}-drop-shadow`,"130%","4"),b(`${d}-drop-shadow-small`,"150%","2"),!l)return;let v=r.append("linearGradient").attr("id",`${d}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");v.append("svg:stop").attr("offset","0%").attr("stop-color",h).attr("stop-opacity",1),v.append("svg:stop").attr("offset","100%").attr("stop-color",f).attr("stop-opacity",1)},"insertLookDefs")});var r2r,n2r=ae(()=>{"use strict";r2r=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"]});var eOn,Uwe,vZe=ae(()=>{"use strict";eOn=typeof global=="object"&&global&&global.Object===Object&&global,Uwe=eOn});var tOn,rOn,vp,qT=ae(()=>{"use strict";vZe();tOn=typeof self=="object"&&self&&self.Object===Object&&self,rOn=Uwe||tOn||Function("return this")(),vp=rOn});var nOn,vm,VO=ae(()=>{"use strict";qT();nOn=vp.Symbol,vm=nOn});function sOn(r){var t=iOn.call(r,Jre),a=r[Jre];try{r[Jre]=void 0;var s=!0}catch{}var l=aOn.call(r);return s&&(t?r[Jre]=a:delete r[Jre]),l}var i2r,iOn,aOn,Jre,a2r,s2r=ae(()=>{"use strict";VO();i2r=Object.prototype,iOn=i2r.hasOwnProperty,aOn=i2r.toString,Jre=vm?vm.toStringTag:void 0;i(sOn,"getRawTag");a2r=sOn});function cOn(r){return lOn.call(r)}var oOn,lOn,o2r,l2r=ae(()=>{"use strict";oOn=Object.prototype,lOn=oOn.toString;i(cOn,"objectToString");o2r=cOn});function fOn(r){return r==null?r===void 0?hOn:uOn:c2r&&c2r in Object(r)?a2r(r):o2r(r)}var uOn,hOn,c2r,Db,y_=ae(()=>{"use strict";VO();s2r();l2r();uOn="[object Null]",hOn="[object Undefined]",c2r=vm?vm.toStringTag:void 0;i(fOn,"baseGetTag");Db=fOn});function dOn(r){return r!=null&&typeof r=="object"}var ig,$4=ae(()=>{"use strict";i(dOn,"isObjectLike");ig=dOn});function gOn(r){return typeof r=="symbol"||ig(r)&&Db(r)==pOn}var pOn,nx,WO=ae(()=>{"use strict";y_();$4();pOn="[object Symbol]";i(gOn,"isSymbol");nx=gOn});function mOn(r,t){for(var a=-1,s=r==null?0:r.length,l=Array(s);++a<s;)l[a]=t(r[a],a,r);return l}var pS,Qre=ae(()=>{"use strict";i(mOn,"arrayMap");pS=mOn});var yOn,xl,Bg=ae(()=>{"use strict";yOn=Array.isArray,xl=yOn});function f2r(r){if(typeof r=="string")return r;if(xl(r))return pS(r,f2r)+"";if(nx(r))return h2r?h2r.call(r):"";var t=r+"";return t=="0"&&1/r==-bOn?"-0":t}var bOn,u2r,h2r,d2r,p2r=ae(()=>{"use strict";VO();Qre();Bg();WO();bOn=1/0,u2r=vm?vm.prototype:void 0,h2r=u2r?u2r.toString:void 0;i(f2r,"baseToString");d2r=f2r});function wOn(r){for(var t=r.length;t--&&vOn.test(r.charAt(t)););return t}var vOn,g2r,m2r=ae(()=>{"use strict";vOn=/\s/;i(wOn,"trimmedEndIndex");g2r=wOn});function TOn(r){return r&&r.slice(0,g2r(r)+1).replace(xOn,"")}var xOn,y2r,b2r=ae(()=>{"use strict";m2r();xOn=/^\s+/;i(TOn,"baseTrim");y2r=TOn});function kOn(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var ed,YT=ae(()=>{"use strict";i(kOn,"isObject");ed=kOn});function ROn(r){if(typeof r=="number")return r;if(nx(r))return v2r;if(ed(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=ed(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=y2r(r);var a=EOn.test(r);return a||SOn.test(r)?AOn(r.slice(2),a?2:8):COn.test(r)?v2r:+r}var v2r,COn,EOn,SOn,AOn,w2r,x2r=ae(()=>{"use strict";b2r();YT();WO();v2r=NaN,COn=/^[-+]0x[0-9a-f]+$/i,EOn=/^0b[01]+$/i,SOn=/^0o[0-7]+$/i,AOn=parseInt;i(ROn,"toNumber");w2r=ROn});function _On(r){if(!r)return r===0?r:0;if(r=w2r(r),r===T2r||r===-T2r){var t=r<0?-1:1;return t*LOn}return r===r?r:0}var T2r,LOn,mU,wZe=ae(()=>{"use strict";x2r();T2r=1/0,LOn=17976931348623157e292;i(_On,"toFinite");mU=_On});function DOn(r){var t=mU(r),a=t%1;return t===t?a?t-a:t:0}var k2r,C2r=ae(()=>{"use strict";wZe();i(DOn,"toInteger");k2r=DOn});function IOn(r){return r}var c2,b_=ae(()=>{"use strict";i(IOn,"identity");c2=IOn});function BOn(r){if(!ed(r))return!1;var t=Db(r);return t==NOn||t==OOn||t==MOn||t==POn}var MOn,NOn,OOn,POn,gS,Zre=ae(()=>{"use strict";y_();YT();MOn="[object AsyncFunction]",NOn="[object Function]",OOn="[object GeneratorFunction]",POn="[object Proxy]";i(BOn,"isFunction");gS=BOn});var FOn,Vwe,E2r=ae(()=>{"use strict";qT();FOn=vp["__core-js_shared__"],Vwe=FOn});function $On(r){return!!S2r&&S2r in r}var S2r,A2r,R2r=ae(()=>{"use strict";E2r();S2r=(function(){var r=/[^.]+$/.exec(Vwe&&Vwe.keys&&Vwe.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();i($On,"isMasked");A2r=$On});function zOn(r){if(r!=null){try{return jOn.call(r)}catch{}try{return r+""}catch{}}return""}var GOn,jOn,zA,xZe=ae(()=>{"use strict";GOn=Function.prototype,jOn=GOn.toString;i(zOn,"toSource");zA=zOn});function KOn(r){if(!ed(r)||A2r(r))return!1;var t=gS(r)?XOn:VOn;return t.test(zA(r))}var UOn,VOn,WOn,HOn,qOn,YOn,XOn,L2r,_2r=ae(()=>{"use strict";Zre();R2r();YT();xZe();UOn=/[\\^$.*+?()[\]{}|]/g,VOn=/^\[object .+?Constructor\]$/,WOn=Function.prototype,HOn=Object.prototype,qOn=WOn.toString,YOn=HOn.hasOwnProperty,XOn=RegExp("^"+qOn.call(YOn).replace(UOn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");i(KOn,"baseIsNative");L2r=KOn});function JOn(r,t){return r?.[t]}var D2r,I2r=ae(()=>{"use strict";i(JOn,"getValue");D2r=JOn});function QOn(r,t){var a=D2r(r,t);return L2r(a)?a:void 0}var u2,v_=ae(()=>{"use strict";_2r();I2r();i(QOn,"getNative");u2=QOn});var ZOn,Wwe,M2r=ae(()=>{"use strict";v_();qT();ZOn=u2(vp,"WeakMap"),Wwe=ZOn});var N2r,ePn,O2r,P2r=ae(()=>{"use strict";YT();N2r=Object.create,ePn=(function(){function r(){}return i(r,"object"),function(t){if(!ed(t))return{};if(N2r)return N2r(t);r.prototype=t;var a=new r;return r.prototype=void 0,a}})(),O2r=ePn});function tPn(r,t,a){switch(a.length){case 0:return r.call(t);case 1:return r.call(t,a[0]);case 2:return r.call(t,a[0],a[1]);case 3:return r.call(t,a[0],a[1],a[2])}return r.apply(t,a)}var B2r,F2r=ae(()=>{"use strict";i(tPn,"apply");B2r=tPn});function rPn(){}var $2r,G2r=ae(()=>{"use strict";i(rPn,"noop");$2r=rPn});function nPn(r,t){var a=-1,s=r.length;for(t||(t=Array(s));++a<s;)t[a]=r[a];return t}var Hwe,TZe=ae(()=>{"use strict";i(nPn,"copyArray");Hwe=nPn});function oPn(r){var t=0,a=0;return function(){var s=sPn(),l=aPn-(s-a);if(a=s,l>0){if(++t>=iPn)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var iPn,aPn,sPn,j2r,z2r=ae(()=>{"use strict";iPn=800,aPn=16,sPn=Date.now;i(oPn,"shortOut");j2r=oPn});function lPn(r){return function(){return r}}var h2,kZe=ae(()=>{"use strict";i(lPn,"constant");h2=lPn});var cPn,yU,CZe=ae(()=>{"use strict";v_();cPn=(function(){try{var r=u2(Object,"defineProperty");return r({},"",{}),r}catch{}})(),yU=cPn});var uPn,U2r,V2r=ae(()=>{"use strict";kZe();CZe();b_();uPn=yU?function(r,t){return yU(r,"toString",{configurable:!0,enumerable:!1,value:h2(t),writable:!0})}:c2,U2r=uPn});var hPn,qwe,EZe=ae(()=>{"use strict";V2r();z2r();hPn=j2r(U2r),qwe=hPn});function fPn(r,t){for(var a=-1,s=r==null?0:r.length;++a<s&&t(r[a],a,r)!==!1;);return r}var Ywe,SZe=ae(()=>{"use strict";i(fPn,"arrayEach");Ywe=fPn});function dPn(r,t,a,s){for(var l=r.length,h=a+(s?1:-1);s?h--:++h<l;)if(t(r[h],h,r))return h;return-1}var Xwe,AZe=ae(()=>{"use strict";i(dPn,"baseFindIndex");Xwe=dPn});function pPn(r){return r!==r}var W2r,H2r=ae(()=>{"use strict";i(pPn,"baseIsNaN");W2r=pPn});function gPn(r,t,a){for(var s=a-1,l=r.length;++s<l;)if(r[s]===t)return s;return-1}var q2r,Y2r=ae(()=>{"use strict";i(gPn,"strictIndexOf");q2r=gPn});function mPn(r,t,a){return t===t?q2r(r,t,a):Xwe(r,W2r,a)}var X2r,K2r=ae(()=>{"use strict";AZe();H2r();Y2r();i(mPn,"baseIndexOf");X2r=mPn});function yPn(r,t){var a=r==null?0:r.length;return!!a&&X2r(r,t,0)>-1}var J2r,Q2r=ae(()=>{"use strict";K2r();i(yPn,"arrayIncludes");J2r=yPn});function wPn(r,t){var a=typeof r;return t=t??bPn,!!t&&(a=="number"||a!="symbol"&&vPn.test(r))&&r>-1&&r%1==0&&r<t}var bPn,vPn,w_,ene=ae(()=>{"use strict";bPn=9007199254740991,vPn=/^(?:0|[1-9]\d*)$/;i(wPn,"isIndex");w_=wPn});function xPn(r,t,a){t=="__proto__"&&yU?yU(r,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[t]=a}var x_,tne=ae(()=>{"use strict";CZe();i(xPn,"baseAssignValue");x_=xPn});function TPn(r,t){return r===t||r!==r&&t!==t}var XT,HO=ae(()=>{"use strict";i(TPn,"eq");XT=TPn});function EPn(r,t,a){var s=r[t];(!(CPn.call(r,t)&&XT(s,a))||a===void 0&&!(t in r))&&x_(r,t,a)}var kPn,CPn,T_,rne=ae(()=>{"use strict";tne();HO();kPn=Object.prototype,CPn=kPn.hasOwnProperty;i(EPn,"assignValue");T_=EPn});function SPn(r,t,a,s){var l=!a;a||(a={});for(var h=-1,f=t.length;++h<f;){var d=t[h],m=s?s(a[d],r[d],d,a,r):void 0;m===void 0&&(m=r[d]),l?x_(a,d,m):T_(a,d,m)}return a}var mS,bU=ae(()=>{"use strict";rne();tne();i(SPn,"copyObject");mS=SPn});function APn(r,t,a){return t=Z2r(t===void 0?r.length-1:t,0),function(){for(var s=arguments,l=-1,h=Z2r(s.length-t,0),f=Array(h);++l<h;)f[l]=s[t+l];l=-1;for(var d=Array(t+1);++l<t;)d[l]=s[l];return d[t]=a(f),B2r(r,this,d)}}var Z2r,Kwe,RZe=ae(()=>{"use strict";F2r();Z2r=Math.max;i(APn,"overRest");Kwe=APn});function RPn(r,t){return qwe(Kwe(r,t,c2),r+"")}var k_,nne=ae(()=>{"use strict";b_();RZe();EZe();i(RPn,"baseRest");k_=RPn});function _Pn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=LPn}var LPn,vU,Jwe=ae(()=>{"use strict";LPn=9007199254740991;i(_Pn,"isLength");vU=_Pn});function DPn(r){return r!=null&&vU(r.length)&&!gS(r)}var wm,yS=ae(()=>{"use strict";Zre();Jwe();i(DPn,"isArrayLike");wm=DPn});function IPn(r,t,a){if(!ed(a))return!1;var s=typeof t;return(s=="number"?wm(a)&&w_(t,a.length):s=="string"&&t in a)?XT(a[t],r):!1}var UA,ine=ae(()=>{"use strict";HO();yS();ene();YT();i(IPn,"isIterateeCall");UA=IPn});function MPn(r){return k_(function(t,a){var s=-1,l=a.length,h=l>1?a[l-1]:void 0,f=l>2?a[2]:void 0;for(h=r.length>3&&typeof h=="function"?(l--,h):void 0,f&&UA(a[0],a[1],f)&&(h=l<3?void 0:h,l=1),t=Object(t);++s<l;){var d=a[s];d&&r(t,d,s,h)}return t})}var ewr,twr=ae(()=>{"use strict";nne();ine();i(MPn,"createAssigner");ewr=MPn});function OPn(r){var t=r&&r.constructor,a=typeof t=="function"&&t.prototype||NPn;return r===a}var NPn,C_,ane=ae(()=>{"use strict";NPn=Object.prototype;i(OPn,"isPrototype");C_=OPn});function PPn(r,t){for(var a=-1,s=Array(r);++a<r;)s[a]=t(a);return s}var rwr,nwr=ae(()=>{"use strict";i(PPn,"baseTimes");rwr=PPn});function FPn(r){return ig(r)&&Db(r)==BPn}var BPn,LZe,iwr=ae(()=>{"use strict";y_();$4();BPn="[object Arguments]";i(FPn,"baseIsArguments");LZe=FPn});var awr,$Pn,GPn,jPn,G4,wU=ae(()=>{"use strict";iwr();$4();awr=Object.prototype,$Pn=awr.hasOwnProperty,GPn=awr.propertyIsEnumerable,jPn=LZe((function(){return arguments})())?LZe:function(r){return ig(r)&&$Pn.call(r,"callee")&&!GPn.call(r,"callee")},G4=jPn});function zPn(){return!1}var swr,owr=ae(()=>{"use strict";i(zPn,"stubFalse");swr=zPn});var uwr,lwr,UPn,cwr,VPn,WPn,j4,xU=ae(()=>{"use strict";qT();owr();uwr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lwr=uwr&&typeof module=="object"&&module&&!module.nodeType&&module,UPn=lwr&&lwr.exports===uwr,cwr=UPn?vp.Buffer:void 0,VPn=cwr?cwr.isBuffer:void 0,WPn=VPn||swr,j4=WPn});function mBn(r){return ig(r)&&vU(r.length)&&!!Cf[Db(r)]}var HPn,qPn,YPn,XPn,KPn,JPn,QPn,ZPn,eBn,tBn,rBn,nBn,iBn,aBn,sBn,oBn,lBn,cBn,uBn,hBn,fBn,dBn,pBn,gBn,Cf,hwr,fwr=ae(()=>{"use strict";y_();Jwe();$4();HPn="[object Arguments]",qPn="[object Array]",YPn="[object Boolean]",XPn="[object Date]",KPn="[object Error]",JPn="[object Function]",QPn="[object Map]",ZPn="[object Number]",eBn="[object Object]",tBn="[object RegExp]",rBn="[object Set]",nBn="[object String]",iBn="[object WeakMap]",aBn="[object ArrayBuffer]",sBn="[object DataView]",oBn="[object Float32Array]",lBn="[object Float64Array]",cBn="[object Int8Array]",uBn="[object Int16Array]",hBn="[object Int32Array]",fBn="[object Uint8Array]",dBn="[object Uint8ClampedArray]",pBn="[object Uint16Array]",gBn="[object Uint32Array]",Cf={};Cf[oBn]=Cf[lBn]=Cf[cBn]=Cf[uBn]=Cf[hBn]=Cf[fBn]=Cf[dBn]=Cf[pBn]=Cf[gBn]=!0;Cf[HPn]=Cf[qPn]=Cf[aBn]=Cf[YPn]=Cf[sBn]=Cf[XPn]=Cf[KPn]=Cf[JPn]=Cf[QPn]=Cf[ZPn]=Cf[eBn]=Cf[tBn]=Cf[rBn]=Cf[nBn]=Cf[iBn]=!1;i(mBn,"baseIsTypedArray");hwr=mBn});function yBn(r){return function(t){return r(t)}}var E_,sne=ae(()=>{"use strict";i(yBn,"baseUnary");E_=yBn});var dwr,one,bBn,_Ze,vBn,VA,Qwe=ae(()=>{"use strict";vZe();dwr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,one=dwr&&typeof module=="object"&&module&&!module.nodeType&&module,bBn=one&&one.exports===dwr,_Ze=bBn&&Uwe.process,vBn=(function(){try{var r=one&&one.require&&one.require("util").types;return r||_Ze&&_Ze.binding&&_Ze.binding("util")}catch{}})(),VA=vBn});var pwr,wBn,S_,lne=ae(()=>{"use strict";fwr();sne();Qwe();pwr=VA&&VA.isTypedArray,wBn=pwr?E_(pwr):hwr,S_=wBn});function kBn(r,t){var a=xl(r),s=!a&&G4(r),l=!a&&!s&&j4(r),h=!a&&!s&&!l&&S_(r),f=a||s||l||h,d=f?rwr(r.length,String):[],m=d.length;for(var b in r)(t||TBn.call(r,b))&&!(f&&(b=="length"||l&&(b=="offset"||b=="parent")||h&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||w_(b,m)))&&d.push(b);return d}var xBn,TBn,Zwe,DZe=ae(()=>{"use strict";nwr();wU();Bg();xU();ene();lne();xBn=Object.prototype,TBn=xBn.hasOwnProperty;i(kBn,"arrayLikeKeys");Zwe=kBn});function CBn(r,t){return function(a){return r(t(a))}}var exe,IZe=ae(()=>{"use strict";i(CBn,"overArg");exe=CBn});var EBn,gwr,mwr=ae(()=>{"use strict";IZe();EBn=exe(Object.keys,Object),gwr=EBn});function RBn(r){if(!C_(r))return gwr(r);var t=[];for(var a in Object(r))ABn.call(r,a)&&a!="constructor"&&t.push(a);return t}var SBn,ABn,TU,txe=ae(()=>{"use strict";ane();mwr();SBn=Object.prototype,ABn=SBn.hasOwnProperty;i(RBn,"baseKeys");TU=RBn});function LBn(r){return wm(r)?Zwe(r):TU(r)}var wp,WA=ae(()=>{"use strict";DZe();txe();yS();i(LBn,"keys");wp=LBn});function _Bn(r){var t=[];if(r!=null)for(var a in Object(r))t.push(a);return t}var ywr,bwr=ae(()=>{"use strict";i(_Bn,"nativeKeysIn");ywr=_Bn});function MBn(r){if(!ed(r))return ywr(r);var t=C_(r),a=[];for(var s in r)s=="constructor"&&(t||!IBn.call(r,s))||a.push(s);return a}var DBn,IBn,vwr,wwr=ae(()=>{"use strict";YT();ane();bwr();DBn=Object.prototype,IBn=DBn.hasOwnProperty;i(MBn,"baseKeysIn");vwr=MBn});function NBn(r){return wm(r)?Zwe(r,!0):vwr(r)}var f2,A_=ae(()=>{"use strict";DZe();wwr();yS();i(NBn,"keysIn");f2=NBn});function BBn(r,t){if(xl(r))return!1;var a=typeof r;return a=="number"||a=="symbol"||a=="boolean"||r==null||nx(r)?!0:PBn.test(r)||!OBn.test(r)||t!=null&&r in Object(t)}var OBn,PBn,kU,rxe=ae(()=>{"use strict";Bg();WO();OBn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PBn=/^\w*$/;i(BBn,"isKey");kU=BBn});var FBn,HA,cne=ae(()=>{"use strict";v_();FBn=u2(Object,"create"),HA=FBn});function $Bn(){this.__data__=HA?HA(null):{},this.size=0}var xwr,Twr=ae(()=>{"use strict";cne();i($Bn,"hashClear");xwr=$Bn});function GBn(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var kwr,Cwr=ae(()=>{"use strict";i(GBn,"hashDelete");kwr=GBn});function VBn(r){var t=this.__data__;if(HA){var a=t[r];return a===jBn?void 0:a}return UBn.call(t,r)?t[r]:void 0}var jBn,zBn,UBn,Ewr,Swr=ae(()=>{"use strict";cne();jBn="__lodash_hash_undefined__",zBn=Object.prototype,UBn=zBn.hasOwnProperty;i(VBn,"hashGet");Ewr=VBn});function qBn(r){var t=this.__data__;return HA?t[r]!==void 0:HBn.call(t,r)}var WBn,HBn,Awr,Rwr=ae(()=>{"use strict";cne();WBn=Object.prototype,HBn=WBn.hasOwnProperty;i(qBn,"hashHas");Awr=qBn});function XBn(r,t){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=HA&&t===void 0?YBn:t,this}var YBn,Lwr,_wr=ae(()=>{"use strict";cne();YBn="__lodash_hash_undefined__";i(XBn,"hashSet");Lwr=XBn});function CU(r){var t=-1,a=r==null?0:r.length;for(this.clear();++t<a;){var s=r[t];this.set(s[0],s[1])}}var MZe,Dwr=ae(()=>{"use strict";Twr();Cwr();Swr();Rwr();_wr();i(CU,"Hash");CU.prototype.clear=xwr;CU.prototype.delete=kwr;CU.prototype.get=Ewr;CU.prototype.has=Awr;CU.prototype.set=Lwr;MZe=CU});function KBn(){this.__data__=[],this.size=0}var Iwr,Mwr=ae(()=>{"use strict";i(KBn,"listCacheClear");Iwr=KBn});function JBn(r,t){for(var a=r.length;a--;)if(XT(r[a][0],t))return a;return-1}var R_,une=ae(()=>{"use strict";HO();i(JBn,"assocIndexOf");R_=JBn});function eFn(r){var t=this.__data__,a=R_(t,r);if(a<0)return!1;var s=t.length-1;return a==s?t.pop():ZBn.call(t,a,1),--this.size,!0}var QBn,ZBn,Nwr,Owr=ae(()=>{"use strict";une();QBn=Array.prototype,ZBn=QBn.splice;i(eFn,"listCacheDelete");Nwr=eFn});function tFn(r){var t=this.__data__,a=R_(t,r);return a<0?void 0:t[a][1]}var Pwr,Bwr=ae(()=>{"use strict";une();i(tFn,"listCacheGet");Pwr=tFn});function rFn(r){return R_(this.__data__,r)>-1}var Fwr,$wr=ae(()=>{"use strict";une();i(rFn,"listCacheHas");Fwr=rFn});function nFn(r,t){var a=this.__data__,s=R_(a,r);return s<0?(++this.size,a.push([r,t])):a[s][1]=t,this}var Gwr,jwr=ae(()=>{"use strict";une();i(nFn,"listCacheSet");Gwr=nFn});function EU(r){var t=-1,a=r==null?0:r.length;for(this.clear();++t<a;){var s=r[t];this.set(s[0],s[1])}}var L_,hne=ae(()=>{"use strict";Mwr();Owr();Bwr();$wr();jwr();i(EU,"ListCache");EU.prototype.clear=Iwr;EU.prototype.delete=Nwr;EU.prototype.get=Pwr;EU.prototype.has=Fwr;EU.prototype.set=Gwr;L_=EU});var iFn,__,nxe=ae(()=>{"use strict";v_();qT();iFn=u2(vp,"Map"),__=iFn});function aFn(){this.size=0,this.__data__={hash:new MZe,map:new(__||L_),string:new MZe}}var zwr,Uwr=ae(()=>{"use strict";Dwr();hne();nxe();i(aFn,"mapCacheClear");zwr=aFn});function sFn(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var Vwr,Wwr=ae(()=>{"use strict";i(sFn,"isKeyable");Vwr=sFn});function oFn(r,t){var a=r.__data__;return Vwr(t)?a[typeof t=="string"?"string":"hash"]:a.map}var D_,fne=ae(()=>{"use strict";Wwr();i(oFn,"getMapData");D_=oFn});function lFn(r){var t=D_(this,r).delete(r);return this.size-=t?1:0,t}var Hwr,qwr=ae(()=>{"use strict";fne();i(lFn,"mapCacheDelete");Hwr=lFn});function cFn(r){return D_(this,r).get(r)}var Ywr,Xwr=ae(()=>{"use strict";fne();i(cFn,"mapCacheGet");Ywr=cFn});function uFn(r){return D_(this,r).has(r)}var Kwr,Jwr=ae(()=>{"use strict";fne();i(uFn,"mapCacheHas");Kwr=uFn});function hFn(r,t){var a=D_(this,r),s=a.size;return a.set(r,t),this.size+=a.size==s?0:1,this}var Qwr,Zwr=ae(()=>{"use strict";fne();i(hFn,"mapCacheSet");Qwr=hFn});function SU(r){var t=-1,a=r==null?0:r.length;for(this.clear();++t<a;){var s=r[t];this.set(s[0],s[1])}}var qO,ixe=ae(()=>{"use strict";Uwr();qwr();Xwr();Jwr();Zwr();i(SU,"MapCache");SU.prototype.clear=zwr;SU.prototype.delete=Hwr;SU.prototype.get=Ywr;SU.prototype.has=Kwr;SU.prototype.set=Qwr;qO=SU});function NZe(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(fFn);var a=i(function(){var s=arguments,l=t?t.apply(this,s):s[0],h=a.cache;if(h.has(l))return h.get(l);var f=r.apply(this,s);return a.cache=h.set(l,f)||h,f},"memoized");return a.cache=new(NZe.Cache||qO),a}var fFn,exr,txr=ae(()=>{"use strict";ixe();fFn="Expected a function";i(NZe,"memoize");NZe.Cache=qO;exr=NZe});function pFn(r){var t=exr(r,function(s){return a.size===dFn&&a.clear(),s}),a=t.cache;return t}var dFn,rxr,nxr=ae(()=>{"use strict";txr();dFn=500;i(pFn,"memoizeCapped");rxr=pFn});var gFn,mFn,yFn,ixr,axr=ae(()=>{"use strict";nxr();gFn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mFn=/\\(\\)?/g,yFn=rxr(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(gFn,function(a,s,l,h){t.push(l?h.replace(mFn,"$1"):s||a)}),t}),ixr=yFn});function bFn(r){return r==null?"":d2r(r)}var axe,OZe=ae(()=>{"use strict";p2r();i(bFn,"toString");axe=bFn});function vFn(r,t){return xl(r)?r:kU(r,t)?[r]:ixr(axe(r))}var I_,dne=ae(()=>{"use strict";Bg();rxe();axr();OZe();i(vFn,"castPath");I_=vFn});function xFn(r){if(typeof r=="string"||nx(r))return r;var t=r+"";return t=="0"&&1/r==-wFn?"-0":t}var wFn,bS,AU=ae(()=>{"use strict";WO();wFn=1/0;i(xFn,"toKey");bS=xFn});function TFn(r,t){t=I_(t,r);for(var a=0,s=t.length;r!=null&&a<s;)r=r[bS(t[a++])];return a&&a==s?r:void 0}var M_,pne=ae(()=>{"use strict";dne();AU();i(TFn,"baseGet");M_=TFn});function kFn(r,t,a){var s=r==null?void 0:M_(r,t);return s===void 0?a:s}var sxr,oxr=ae(()=>{"use strict";pne();i(kFn,"get");sxr=kFn});function CFn(r,t){for(var a=-1,s=t.length,l=r.length;++a<s;)r[l+a]=t[a];return r}var RU,sxe=ae(()=>{"use strict";i(CFn,"arrayPush");RU=CFn});function EFn(r){return xl(r)||G4(r)||!!(lxr&&r&&r[lxr])}var lxr,cxr,uxr=ae(()=>{"use strict";VO();wU();Bg();lxr=vm?vm.isConcatSpreadable:void 0;i(EFn,"isFlattenable");cxr=EFn});function hxr(r,t,a,s,l){var h=-1,f=r.length;for(a||(a=cxr),l||(l=[]);++h<f;){var d=r[h];t>0&&a(d)?t>1?hxr(d,t-1,a,s,l):RU(l,d):s||(l[l.length]=d)}return l}var LU,oxe=ae(()=>{"use strict";sxe();uxr();i(hxr,"baseFlatten");LU=hxr});function SFn(r){var t=r==null?0:r.length;return t?LU(r,1):[]}var KT,PZe=ae(()=>{"use strict";oxe();i(SFn,"flatten");KT=SFn});function AFn(r){return qwe(Kwe(r,void 0,KT),r+"")}var fxr,dxr=ae(()=>{"use strict";PZe();RZe();EZe();i(AFn,"flatRest");fxr=AFn});var RFn,_U,lxe=ae(()=>{"use strict";IZe();RFn=exe(Object.getPrototypeOf,Object),_U=RFn});function NFn(r){if(!ig(r)||Db(r)!=LFn)return!1;var t=_U(r);if(t===null)return!0;var a=IFn.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&pxr.call(a)==MFn}var LFn,_Fn,DFn,pxr,IFn,MFn,gxr,mxr=ae(()=>{"use strict";y_();lxe();$4();LFn="[object Object]",_Fn=Function.prototype,DFn=Object.prototype,pxr=_Fn.toString,IFn=DFn.hasOwnProperty,MFn=pxr.call(Object);i(NFn,"isPlainObject");gxr=NFn});function UFn(r){return zFn.test(r)}var OFn,PFn,BFn,FFn,$Fn,GFn,jFn,zFn,yxr,bxr=ae(()=>{"use strict";OFn="\\ud800-\\udfff",PFn="\\u0300-\\u036f",BFn="\\ufe20-\\ufe2f",FFn="\\u20d0-\\u20ff",$Fn=PFn+BFn+FFn,GFn="\\ufe0e\\ufe0f",jFn="\\u200d",zFn=RegExp("["+jFn+OFn+$Fn+GFn+"]");i(UFn,"hasUnicode");yxr=UFn});function VFn(r,t,a,s){var l=-1,h=r==null?0:r.length;for(s&&h&&(a=r[++l]);++l<h;)a=t(a,r[l],l,r);return a}var vxr,wxr=ae(()=>{"use strict";i(VFn,"arrayReduce");vxr=VFn});function WFn(){this.__data__=new L_,this.size=0}var xxr,Txr=ae(()=>{"use strict";hne();i(WFn,"stackClear");xxr=WFn});function HFn(r){var t=this.__data__,a=t.delete(r);return this.size=t.size,a}var kxr,Cxr=ae(()=>{"use strict";i(HFn,"stackDelete");kxr=HFn});function qFn(r){return this.__data__.get(r)}var Exr,Sxr=ae(()=>{"use strict";i(qFn,"stackGet");Exr=qFn});function YFn(r){return this.__data__.has(r)}var Axr,Rxr=ae(()=>{"use strict";i(YFn,"stackHas");Axr=YFn});function KFn(r,t){var a=this.__data__;if(a instanceof L_){var s=a.__data__;if(!__||s.length<XFn-1)return s.push([r,t]),this.size=++a.size,this;a=this.__data__=new qO(s)}return a.set(r,t),this.size=a.size,this}var XFn,Lxr,_xr=ae(()=>{"use strict";hne();nxe();ixe();XFn=200;i(KFn,"stackSet");Lxr=KFn});function DU(r){var t=this.__data__=new L_(r);this.size=t.size}var vS,gne=ae(()=>{"use strict";hne();Txr();Cxr();Sxr();Rxr();_xr();i(DU,"Stack");DU.prototype.clear=xxr;DU.prototype.delete=kxr;DU.prototype.get=Exr;DU.prototype.has=Axr;DU.prototype.set=Lxr;vS=DU});function JFn(r,t){return r&&mS(t,wp(t),r)}var Dxr,Ixr=ae(()=>{"use strict";bU();WA();i(JFn,"baseAssign");Dxr=JFn});function QFn(r,t){return r&&mS(t,f2(t),r)}var Mxr,Nxr=ae(()=>{"use strict";bU();A_();i(QFn,"baseAssignIn");Mxr=QFn});function e$n(r,t){if(t)return r.slice();var a=r.length,s=Bxr?Bxr(a):new r.constructor(a);return r.copy(s),s}var Fxr,Oxr,ZFn,Pxr,Bxr,cxe,BZe=ae(()=>{"use strict";qT();Fxr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Oxr=Fxr&&typeof module=="object"&&module&&!module.nodeType&&module,ZFn=Oxr&&Oxr.exports===Fxr,Pxr=ZFn?vp.Buffer:void 0,Bxr=Pxr?Pxr.allocUnsafe:void 0;i(e$n,"cloneBuffer");cxe=e$n});function t$n(r,t){for(var a=-1,s=r==null?0:r.length,l=0,h=[];++a<s;){var f=r[a];t(f,a,r)&&(h[l++]=f)}return h}var uxe,FZe=ae(()=>{"use strict";i(t$n,"arrayFilter");uxe=t$n});function r$n(){return[]}var hxe,$Ze=ae(()=>{"use strict";i(r$n,"stubArray");hxe=r$n});var n$n,i$n,$xr,a$n,IU,fxe=ae(()=>{"use strict";FZe();$Ze();n$n=Object.prototype,i$n=n$n.propertyIsEnumerable,$xr=Object.getOwnPropertySymbols,a$n=$xr?function(r){return r==null?[]:(r=Object(r),uxe($xr(r),function(t){return i$n.call(r,t)}))}:hxe,IU=a$n});function s$n(r,t){return mS(r,IU(r),t)}var Gxr,jxr=ae(()=>{"use strict";bU();fxe();i(s$n,"copySymbols");Gxr=s$n});var o$n,l$n,dxe,GZe=ae(()=>{"use strict";sxe();lxe();fxe();$Ze();o$n=Object.getOwnPropertySymbols,l$n=o$n?function(r){for(var t=[];r;)RU(t,IU(r)),r=_U(r);return t}:hxe,dxe=l$n});function c$n(r,t){return mS(r,dxe(r),t)}var zxr,Uxr=ae(()=>{"use strict";bU();GZe();i(c$n,"copySymbolsIn");zxr=c$n});function u$n(r,t,a){var s=t(r);return xl(r)?s:RU(s,a(r))}var pxe,jZe=ae(()=>{"use strict";sxe();Bg();i(u$n,"baseGetAllKeys");pxe=u$n});function h$n(r){return pxe(r,wp,IU)}var mne,zZe=ae(()=>{"use strict";jZe();fxe();WA();i(h$n,"getAllKeys");mne=h$n});function f$n(r){return pxe(r,f2,dxe)}var Vxr,Wxr=ae(()=>{"use strict";jZe();GZe();A_();i(f$n,"getAllKeysIn");Vxr=f$n});var d$n,gxe,Hxr=ae(()=>{"use strict";v_();qT();d$n=u2(vp,"DataView"),gxe=d$n});var p$n,mxe,qxr=ae(()=>{"use strict";v_();qT();p$n=u2(vp,"Promise"),mxe=p$n});var g$n,N_,UZe=ae(()=>{"use strict";v_();qT();g$n=u2(vp,"Set"),N_=g$n});var Yxr,m$n,Xxr,Kxr,Jxr,Qxr,y$n,b$n,v$n,w$n,x$n,YO,ix,XO=ae(()=>{"use strict";Hxr();nxe();qxr();UZe();M2r();y_();xZe();Yxr="[object Map]",m$n="[object Object]",Xxr="[object Promise]",Kxr="[object Set]",Jxr="[object WeakMap]",Qxr="[object DataView]",y$n=zA(gxe),b$n=zA(__),v$n=zA(mxe),w$n=zA(N_),x$n=zA(Wwe),YO=Db;(gxe&&YO(new gxe(new ArrayBuffer(1)))!=Qxr||__&&YO(new __)!=Yxr||mxe&&YO(mxe.resolve())!=Xxr||N_&&YO(new N_)!=Kxr||Wwe&&YO(new Wwe)!=Jxr)&&(YO=i(function(r){var t=Db(r),a=t==m$n?r.constructor:void 0,s=a?zA(a):"";if(s)switch(s){case y$n:return Qxr;case b$n:return Yxr;case v$n:return Xxr;case w$n:return Kxr;case x$n:return Jxr}return t},"getTag"));ix=YO});function C$n(r){var t=r.length,a=new r.constructor(t);return t&&typeof r[0]=="string"&&k$n.call(r,"index")&&(a.index=r.index,a.input=r.input),a}var T$n,k$n,Zxr,eTr=ae(()=>{"use strict";T$n=Object.prototype,k$n=T$n.hasOwnProperty;i(C$n,"initCloneArray");Zxr=C$n});var E$n,MU,VZe=ae(()=>{"use strict";qT();E$n=vp.Uint8Array,MU=E$n});function S$n(r){var t=new r.constructor(r.byteLength);return new MU(t).set(new MU(r)),t}var NU,yxe=ae(()=>{"use strict";VZe();i(S$n,"cloneArrayBuffer");NU=S$n});function A$n(r,t){var a=t?NU(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.byteLength)}var tTr,rTr=ae(()=>{"use strict";yxe();i(A$n,"cloneDataView");tTr=A$n});function L$n(r){var t=new r.constructor(r.source,R$n.exec(r));return t.lastIndex=r.lastIndex,t}var R$n,nTr,iTr=ae(()=>{"use strict";R$n=/\w*$/;i(L$n,"cloneRegExp");nTr=L$n});function _$n(r){return sTr?Object(sTr.call(r)):{}}var aTr,sTr,oTr,lTr=ae(()=>{"use strict";VO();aTr=vm?vm.prototype:void 0,sTr=aTr?aTr.valueOf:void 0;i(_$n,"cloneSymbol");oTr=_$n});function D$n(r,t){var a=t?NU(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.length)}var bxe,WZe=ae(()=>{"use strict";yxe();i(D$n,"cloneTypedArray");bxe=D$n});function J$n(r,t,a){var s=r.constructor;switch(t){case G$n:return NU(r);case I$n:case M$n:return new s(+r);case j$n:return tTr(r,a);case z$n:case U$n:case V$n:case W$n:case H$n:case q$n:case Y$n:case X$n:case K$n:return bxe(r,a);case N$n:return new s;case O$n:case F$n:return new s(r);case P$n:return nTr(r);case B$n:return new s;case $$n:return oTr(r)}}var I$n,M$n,N$n,O$n,P$n,B$n,F$n,$$n,G$n,j$n,z$n,U$n,V$n,W$n,H$n,q$n,Y$n,X$n,K$n,cTr,uTr=ae(()=>{"use strict";yxe();rTr();iTr();lTr();WZe();I$n="[object Boolean]",M$n="[object Date]",N$n="[object Map]",O$n="[object Number]",P$n="[object RegExp]",B$n="[object Set]",F$n="[object String]",$$n="[object Symbol]",G$n="[object ArrayBuffer]",j$n="[object DataView]",z$n="[object Float32Array]",U$n="[object Float64Array]",V$n="[object Int8Array]",W$n="[object Int16Array]",H$n="[object Int32Array]",q$n="[object Uint8Array]",Y$n="[object Uint8ClampedArray]",X$n="[object Uint16Array]",K$n="[object Uint32Array]";i(J$n,"initCloneByTag");cTr=J$n});function Q$n(r){return typeof r.constructor=="function"&&!C_(r)?O2r(_U(r)):{}}var vxe,HZe=ae(()=>{"use strict";P2r();lxe();ane();i(Q$n,"initCloneObject");vxe=Q$n});function eGn(r){return ig(r)&&ix(r)==Z$n}var Z$n,hTr,fTr=ae(()=>{"use strict";XO();$4();Z$n="[object Map]";i(eGn,"baseIsMap");hTr=eGn});var dTr,tGn,pTr,gTr=ae(()=>{"use strict";fTr();sne();Qwe();dTr=VA&&VA.isMap,tGn=dTr?E_(dTr):hTr,pTr=tGn});function nGn(r){return ig(r)&&ix(r)==rGn}var rGn,mTr,yTr=ae(()=>{"use strict";XO();$4();rGn="[object Set]";i(nGn,"baseIsSet");mTr=nGn});var bTr,iGn,vTr,wTr=ae(()=>{"use strict";yTr();sne();Qwe();bTr=VA&&VA.isSet,iGn=bTr?E_(bTr):mTr,vTr=iGn});function wxe(r,t,a,s,l,h){var f,d=t&aGn,m=t&sGn,b=t&oGn;if(a&&(f=l?a(r,s,l,h):a(r)),f!==void 0)return f;if(!ed(r))return r;var v=xl(r);if(v){if(f=Zxr(r),!d)return Hwe(r,f)}else{var T=ix(r),C=T==TTr||T==fGn;if(j4(r))return cxe(r,d);if(T==kTr||T==xTr||C&&!l){if(f=m||C?{}:vxe(r),!d)return m?zxr(r,Mxr(f,r)):Gxr(r,Dxr(f,r))}else{if(!nf[T])return l?r:{};f=cTr(r,T,d)}}h||(h=new vS);var E=h.get(r);if(E)return E;h.set(r,f),vTr(r)?r.forEach(function(L){f.add(wxe(L,t,a,L,r,h))}):pTr(r)&&r.forEach(function(L,_){f.set(_,wxe(L,t,a,_,r,h))});var S=b?m?Vxr:mne:m?f2:wp,R=v?void 0:S(r);return Ywe(R||r,function(L,_){R&&(_=L,L=r[_]),T_(f,_,wxe(L,t,a,_,r,h))}),f}var aGn,sGn,oGn,xTr,lGn,cGn,uGn,hGn,TTr,fGn,dGn,pGn,kTr,gGn,mGn,yGn,bGn,vGn,wGn,xGn,TGn,kGn,CGn,EGn,SGn,AGn,RGn,LGn,_Gn,nf,CTr,ETr=ae(()=>{"use strict";gne();SZe();rne();Ixr();Nxr();BZe();TZe();jxr();Uxr();zZe();Wxr();XO();eTr();uTr();HZe();Bg();xU();gTr();YT();wTr();WA();A_();aGn=1,sGn=2,oGn=4,xTr="[object Arguments]",lGn="[object Array]",cGn="[object Boolean]",uGn="[object Date]",hGn="[object Error]",TTr="[object Function]",fGn="[object GeneratorFunction]",dGn="[object Map]",pGn="[object Number]",kTr="[object Object]",gGn="[object RegExp]",mGn="[object Set]",yGn="[object String]",bGn="[object Symbol]",vGn="[object WeakMap]",wGn="[object ArrayBuffer]",xGn="[object DataView]",TGn="[object Float32Array]",kGn="[object Float64Array]",CGn="[object Int8Array]",EGn="[object Int16Array]",SGn="[object Int32Array]",AGn="[object Uint8Array]",RGn="[object Uint8ClampedArray]",LGn="[object Uint16Array]",_Gn="[object Uint32Array]",nf={};nf[xTr]=nf[lGn]=nf[wGn]=nf[xGn]=nf[cGn]=nf[uGn]=nf[TGn]=nf[kGn]=nf[CGn]=nf[EGn]=nf[SGn]=nf[dGn]=nf[pGn]=nf[kTr]=nf[gGn]=nf[mGn]=nf[yGn]=nf[bGn]=nf[AGn]=nf[RGn]=nf[LGn]=nf[_Gn]=!0;nf[hGn]=nf[TTr]=nf[vGn]=!1;i(wxe,"baseClone");CTr=wxe});function MGn(r){return CTr(r,DGn|IGn)}var DGn,IGn,qZe,STr=ae(()=>{"use strict";ETr();DGn=1,IGn=4;i(MGn,"cloneDeep");qZe=MGn});function OGn(r){return this.__data__.set(r,NGn),this}var NGn,ATr,RTr=ae(()=>{"use strict";NGn="__lodash_hash_undefined__";i(OGn,"setCacheAdd");ATr=OGn});function PGn(r){return this.__data__.has(r)}var LTr,_Tr=ae(()=>{"use strict";i(PGn,"setCacheHas");LTr=PGn});function xxe(r){var t=-1,a=r==null?0:r.length;for(this.__data__=new qO;++t<a;)this.add(r[t])}var Txe,YZe=ae(()=>{"use strict";ixe();RTr();_Tr();i(xxe,"SetCache");xxe.prototype.add=xxe.prototype.push=ATr;xxe.prototype.has=LTr;Txe=xxe});function BGn(r,t){for(var a=-1,s=r==null?0:r.length;++a<s;)if(t(r[a],a,r))return!0;return!1}var DTr,ITr=ae(()=>{"use strict";i(BGn,"arraySome");DTr=BGn});function FGn(r,t){return r.has(t)}var kxe,XZe=ae(()=>{"use strict";i(FGn,"cacheHas");kxe=FGn});function jGn(r,t,a,s,l,h){var f=a&$Gn,d=r.length,m=t.length;if(d!=m&&!(f&&m>d))return!1;var b=h.get(r),v=h.get(t);if(b&&v)return b==t&&v==r;var T=-1,C=!0,E=a&GGn?new Txe:void 0;for(h.set(r,t),h.set(t,r);++T<d;){var S=r[T],R=t[T];if(s)var L=f?s(R,S,T,t,r,h):s(S,R,T,r,t,h);if(L!==void 0){if(L)continue;C=!1;break}if(E){if(!DTr(t,function(_,I){if(!kxe(E,I)&&(S===_||l(S,_,a,s,h)))return E.push(I)})){C=!1;break}}else if(!(S===R||l(S,R,a,s,h))){C=!1;break}}return h.delete(r),h.delete(t),C}var $Gn,GGn,Cxe,KZe=ae(()=>{"use strict";YZe();ITr();XZe();$Gn=1,GGn=2;i(jGn,"equalArrays");Cxe=jGn});function zGn(r){var t=-1,a=Array(r.size);return r.forEach(function(s,l){a[++t]=[l,s]}),a}var MTr,NTr=ae(()=>{"use strict";i(zGn,"mapToArray");MTr=zGn});function UGn(r){var t=-1,a=Array(r.size);return r.forEach(function(s){a[++t]=s}),a}var OU,Exe=ae(()=>{"use strict";i(UGn,"setToArray");OU=UGn});function njn(r,t,a,s,l,h,f){switch(a){case rjn:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case tjn:return!(r.byteLength!=t.byteLength||!h(new MU(r),new MU(t)));case HGn:case qGn:case KGn:return XT(+r,+t);case YGn:return r.name==t.name&&r.message==t.message;case JGn:case ZGn:return r==t+"";case XGn:var d=MTr;case QGn:var m=s&VGn;if(d||(d=OU),r.size!=t.size&&!m)return!1;var b=f.get(r);if(b)return b==t;s|=WGn,f.set(r,t);var v=Cxe(d(r),d(t),s,l,h,f);return f.delete(r),v;case ejn:if(JZe)return JZe.call(r)==JZe.call(t)}return!1}var VGn,WGn,HGn,qGn,YGn,XGn,KGn,JGn,QGn,ZGn,ejn,tjn,rjn,OTr,JZe,PTr,BTr=ae(()=>{"use strict";VO();VZe();HO();KZe();NTr();Exe();VGn=1,WGn=2,HGn="[object Boolean]",qGn="[object Date]",YGn="[object Error]",XGn="[object Map]",KGn="[object Number]",JGn="[object RegExp]",QGn="[object Set]",ZGn="[object String]",ejn="[object Symbol]",tjn="[object ArrayBuffer]",rjn="[object DataView]",OTr=vm?vm.prototype:void 0,JZe=OTr?OTr.valueOf:void 0;i(njn,"equalByTag");PTr=njn});function ojn(r,t,a,s,l,h){var f=a&ijn,d=mne(r),m=d.length,b=mne(t),v=b.length;if(m!=v&&!f)return!1;for(var T=m;T--;){var C=d[T];if(!(f?C in t:sjn.call(t,C)))return!1}var E=h.get(r),S=h.get(t);if(E&&S)return E==t&&S==r;var R=!0;h.set(r,t),h.set(t,r);for(var L=f;++T<m;){C=d[T];var _=r[C],I=t[C];if(s)var N=f?s(I,_,C,t,r,h):s(_,I,C,r,t,h);if(!(N===void 0?_===I||l(_,I,a,s,h):N)){R=!1;break}L||(L=C=="constructor")}if(R&&!L){var B=r.constructor,O=t.constructor;B!=O&&"constructor"in r&&"constructor"in t&&!(typeof B=="function"&&B instanceof B&&typeof O=="function"&&O instanceof O)&&(R=!1)}return h.delete(r),h.delete(t),R}var ijn,ajn,sjn,FTr,$Tr=ae(()=>{"use strict";zZe();ijn=1,ajn=Object.prototype,sjn=ajn.hasOwnProperty;i(ojn,"equalObjects");FTr=ojn});function ujn(r,t,a,s,l,h){var f=xl(r),d=xl(t),m=f?jTr:ix(r),b=d?jTr:ix(t);m=m==GTr?Sxe:m,b=b==GTr?Sxe:b;var v=m==Sxe,T=b==Sxe,C=m==b;if(C&&j4(r)){if(!j4(t))return!1;f=!0,v=!1}if(C&&!v)return h||(h=new vS),f||S_(r)?Cxe(r,t,a,s,l,h):PTr(r,t,m,a,s,l,h);if(!(a&ljn)){var E=v&&zTr.call(r,"__wrapped__"),S=T&&zTr.call(t,"__wrapped__");if(E||S){var R=E?r.value():r,L=S?t.value():t;return h||(h=new vS),l(R,L,a,s,h)}}return C?(h||(h=new vS),FTr(r,t,a,s,l,h)):!1}var ljn,GTr,jTr,Sxe,cjn,zTr,UTr,VTr=ae(()=>{"use strict";gne();KZe();BTr();$Tr();XO();Bg();xU();lne();ljn=1,GTr="[object Arguments]",jTr="[object Array]",Sxe="[object Object]",cjn=Object.prototype,zTr=cjn.hasOwnProperty;i(ujn,"baseIsEqualDeep");UTr=ujn});function WTr(r,t,a,s,l){return r===t?!0:r==null||t==null||!ig(r)&&!ig(t)?r!==r&&t!==t:UTr(r,t,a,s,WTr,l)}var Axe,QZe=ae(()=>{"use strict";VTr();$4();i(WTr,"baseIsEqual");Axe=WTr});function djn(r,t,a,s){var l=a.length,h=l,f=!s;if(r==null)return!h;for(r=Object(r);l--;){var d=a[l];if(f&&d[2]?d[1]!==r[d[0]]:!(d[0]in r))return!1}for(;++l<h;){d=a[l];var m=d[0],b=r[m],v=d[1];if(f&&d[2]){if(b===void 0&&!(m in r))return!1}else{var T=new vS;if(s)var C=s(b,v,m,r,t,T);if(!(C===void 0?Axe(v,b,hjn|fjn,s,T):C))return!1}}return!0}var hjn,fjn,HTr,qTr=ae(()=>{"use strict";gne();QZe();hjn=1,fjn=2;i(djn,"baseIsMatch");HTr=djn});function pjn(r){return r===r&&!ed(r)}var Rxe,ZZe=ae(()=>{"use strict";YT();i(pjn,"isStrictComparable");Rxe=pjn});function gjn(r){for(var t=wp(r),a=t.length;a--;){var s=t[a],l=r[s];t[a]=[s,l,Rxe(l)]}return t}var YTr,XTr=ae(()=>{"use strict";ZZe();WA();i(gjn,"getMatchData");YTr=gjn});function mjn(r,t){return function(a){return a==null?!1:a[r]===t&&(t!==void 0||r in Object(a))}}var Lxe,eet=ae(()=>{"use strict";i(mjn,"matchesStrictComparable");Lxe=mjn});function yjn(r){var t=YTr(r);return t.length==1&&t[0][2]?Lxe(t[0][0],t[0][1]):function(a){return a===r||HTr(a,r,t)}}var KTr,JTr=ae(()=>{"use strict";qTr();XTr();eet();i(yjn,"baseMatches");KTr=yjn});function bjn(r,t){return r!=null&&t in Object(r)}var QTr,ZTr=ae(()=>{"use strict";i(bjn,"baseHasIn");QTr=bjn});function vjn(r,t,a){t=I_(t,r);for(var s=-1,l=t.length,h=!1;++s<l;){var f=bS(t[s]);if(!(h=r!=null&&a(r,f)))break;r=r[f]}return h||++s!=l?h:(l=r==null?0:r.length,!!l&&vU(l)&&w_(f,l)&&(xl(r)||G4(r)))}var _xe,tet=ae(()=>{"use strict";dne();wU();Bg();ene();Jwe();AU();i(vjn,"hasPath");_xe=vjn});function wjn(r,t){return r!=null&&_xe(r,t,QTr)}var Dxe,ret=ae(()=>{"use strict";ZTr();tet();i(wjn,"hasIn");Dxe=wjn});function kjn(r,t){return kU(r)&&Rxe(t)?Lxe(bS(r),t):function(a){var s=sxr(a,r);return s===void 0&&s===t?Dxe(a,r):Axe(t,s,xjn|Tjn)}}var xjn,Tjn,ekr,tkr=ae(()=>{"use strict";QZe();oxr();ret();rxe();ZZe();eet();AU();xjn=1,Tjn=2;i(kjn,"baseMatchesProperty");ekr=kjn});function Cjn(r){return function(t){return t?.[r]}}var Ixe,net=ae(()=>{"use strict";i(Cjn,"baseProperty");Ixe=Cjn});function Ejn(r){return function(t){return M_(t,r)}}var rkr,nkr=ae(()=>{"use strict";pne();i(Ejn,"basePropertyDeep");rkr=Ejn});function Sjn(r){return kU(r)?Ixe(bS(r)):rkr(r)}var ikr,akr=ae(()=>{"use strict";net();nkr();rxe();AU();i(Sjn,"property");ikr=Sjn});function Ajn(r){return typeof r=="function"?r:r==null?c2:typeof r=="object"?xl(r)?ekr(r[0],r[1]):KTr(r):ikr(r)}var py,qA=ae(()=>{"use strict";JTr();tkr();b_();Bg();akr();i(Ajn,"baseIteratee");py=Ajn});function Rjn(r){return function(t,a,s){for(var l=-1,h=Object(t),f=s(t),d=f.length;d--;){var m=f[r?d:++l];if(a(h[m],m,h)===!1)break}return t}}var skr,okr=ae(()=>{"use strict";i(Rjn,"createBaseFor");skr=Rjn});var Ljn,PU,Mxe=ae(()=>{"use strict";okr();Ljn=skr(),PU=Ljn});function _jn(r,t){return r&&PU(r,t,wp)}var BU,Nxe=ae(()=>{"use strict";Mxe();WA();i(_jn,"baseForOwn");BU=_jn});function Djn(r,t){return function(a,s){if(a==null)return a;if(!wm(a))return r(a,s);for(var l=a.length,h=t?l:-1,f=Object(a);(t?h--:++h<l)&&s(f[h],h,f)!==!1;);return a}}var lkr,ckr=ae(()=>{"use strict";yS();i(Djn,"createBaseEach");lkr=Djn});var Ijn,O_,yne=ae(()=>{"use strict";Nxe();ckr();Ijn=lkr(BU),O_=Ijn});var Mjn,Oxe,ukr=ae(()=>{"use strict";qT();Mjn=i(function(){return vp.Date.now()},"now"),Oxe=Mjn});var hkr,Njn,Ojn,iet,fkr=ae(()=>{"use strict";nne();HO();ine();A_();hkr=Object.prototype,Njn=hkr.hasOwnProperty,Ojn=k_(function(r,t){r=Object(r);var a=-1,s=t.length,l=s>2?t[2]:void 0;for(l&&UA(t[0],t[1],l)&&(s=1);++a<s;)for(var h=t[a],f=f2(h),d=-1,m=f.length;++d<m;){var b=f[d],v=r[b];(v===void 0||XT(v,hkr[b])&&!Njn.call(r,b))&&(r[b]=h[b])}return r}),iet=Ojn});function Pjn(r,t,a){(a!==void 0&&!XT(r[t],a)||a===void 0&&!(t in r))&&x_(r,t,a)}var bne,aet=ae(()=>{"use strict";tne();HO();i(Pjn,"assignMergeValue");bne=Pjn});function Bjn(r){return ig(r)&&wm(r)}var Pxe,set=ae(()=>{"use strict";yS();$4();i(Bjn,"isArrayLikeObject");Pxe=Bjn});function Fjn(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var vne,oet=ae(()=>{"use strict";i(Fjn,"safeGet");vne=Fjn});function $jn(r){return mS(r,f2(r))}var dkr,pkr=ae(()=>{"use strict";bU();A_();i($jn,"toPlainObject");dkr=$jn});function Gjn(r,t,a,s,l,h,f){var d=vne(r,a),m=vne(t,a),b=f.get(m);if(b){bne(r,a,b);return}var v=h?h(d,m,a+"",r,t,f):void 0,T=v===void 0;if(T){var C=xl(m),E=!C&&j4(m),S=!C&&!E&&S_(m);v=m,C||E||S?xl(d)?v=d:Pxe(d)?v=Hwe(d):E?(T=!1,v=cxe(m,!0)):S?(T=!1,v=bxe(m,!0)):v=[]:gxr(m)||G4(m)?(v=d,G4(d)?v=dkr(d):(!ed(d)||gS(d))&&(v=vxe(m))):T=!1}T&&(f.set(m,v),l(v,m,s,h,f),f.delete(m)),bne(r,a,v)}var gkr,mkr=ae(()=>{"use strict";aet();BZe();WZe();TZe();HZe();wU();Bg();set();xU();Zre();YT();mxr();lne();oet();pkr();i(Gjn,"baseMergeDeep");gkr=Gjn});function ykr(r,t,a,s,l){r!==t&&PU(t,function(h,f){if(l||(l=new vS),ed(h))gkr(r,t,f,a,ykr,s,l);else{var d=s?s(vne(r,f),h,f+"",r,t,l):void 0;d===void 0&&(d=h),bne(r,f,d)}},f2)}var bkr,vkr=ae(()=>{"use strict";gne();aet();Mxe();mkr();YT();A_();oet();i(ykr,"baseMerge");bkr=ykr});function jjn(r,t,a){for(var s=-1,l=r==null?0:r.length;++s<l;)if(a(t,r[s]))return!0;return!1}var wkr,xkr=ae(()=>{"use strict";i(jjn,"arrayIncludesWith");wkr=jjn});function zjn(r){var t=r==null?0:r.length;return t?r[t-1]:void 0}var P_,Tkr=ae(()=>{"use strict";i(zjn,"last");P_=zjn});function Ujn(r){return typeof r=="function"?r:c2}var FU,Bxe=ae(()=>{"use strict";b_();i(Ujn,"castFunction");FU=Ujn});function Vjn(r,t){var a=xl(r)?Ywe:O_;return a(r,FU(t))}var yn,cet=ae(()=>{"use strict";SZe();yne();Bxe();Bg();i(Vjn,"forEach");yn=Vjn});var kkr=ae(()=>{"use strict";cet()});function Wjn(r,t){var a=[];return O_(r,function(s,l,h){t(s,l,h)&&a.push(s)}),a}var Ckr,Ekr=ae(()=>{"use strict";yne();i(Wjn,"baseFilter");Ckr=Wjn});function Hjn(r,t){var a=xl(r)?uxe:Ckr;return a(r,py(t,3))}var Ib,Skr=ae(()=>{"use strict";FZe();Ekr();qA();Bg();i(Hjn,"filter");Ib=Hjn});function qjn(r){return function(t,a,s){var l=Object(t);if(!wm(t)){var h=py(a,3);t=wp(t),a=i(function(d){return h(l[d],d,l)},"predicate")}var f=r(t,a,s);return f>-1?l[h?t[f]:f]:void 0}}var Akr,Rkr=ae(()=>{"use strict";qA();yS();WA();i(qjn,"createFind");Akr=qjn});function Xjn(r,t,a){var s=r==null?0:r.length;if(!s)return-1;var l=a==null?0:k2r(a);return l<0&&(l=Yjn(s+l,0)),Xwe(r,py(t,3),l)}var Yjn,Lkr,_kr=ae(()=>{"use strict";AZe();qA();C2r();Yjn=Math.max;i(Xjn,"findIndex");Lkr=Xjn});var Kjn,$U,Dkr=ae(()=>{"use strict";Rkr();_kr();Kjn=Akr(Lkr),$U=Kjn});function Jjn(r,t){var a=-1,s=wm(r)?Array(r.length):[];return O_(r,function(l,h,f){s[++a]=t(l,h,f)}),s}var Fxe,uet=ae(()=>{"use strict";yne();yS();i(Jjn,"baseMap");Fxe=Jjn});function Qjn(r,t){var a=xl(r)?pS:Fxe;return a(r,py(t,3))}var sh,Ikr=ae(()=>{"use strict";Qre();qA();uet();Bg();i(Qjn,"map");sh=Qjn});function Zjn(r,t){return r==null?r:PU(r,FU(t),f2)}var het,Mkr=ae(()=>{"use strict";Mxe();Bxe();A_();i(Zjn,"forIn");het=Zjn});function ezn(r,t){return r&&BU(r,FU(t))}var fet,Nkr=ae(()=>{"use strict";Nxe();Bxe();i(ezn,"forOwn");fet=ezn});function tzn(r,t){return r>t}var Okr,Pkr=ae(()=>{"use strict";i(tzn,"baseGt");Okr=tzn});function izn(r,t){return r!=null&&nzn.call(r,t)}var rzn,nzn,Bkr,Fkr=ae(()=>{"use strict";rzn=Object.prototype,nzn=rzn.hasOwnProperty;i(izn,"baseHas");Bkr=izn});function azn(r,t){return r!=null&&_xe(r,t,Bkr)}var wne,$kr=ae(()=>{"use strict";Fkr();tet();i(azn,"has");wne=azn});function ozn(r){return typeof r=="string"||!xl(r)&&ig(r)&&Db(r)==szn}var szn,Gkr,jkr=ae(()=>{"use strict";y_();Bg();$4();szn="[object String]";i(ozn,"isString");Gkr=ozn});function lzn(r,t){return pS(t,function(a){return r[a]})}var zkr,Ukr=ae(()=>{"use strict";Qre();i(lzn,"baseValues");zkr=lzn});function czn(r){return r==null?[]:zkr(r,wp(r))}var ax,Vkr=ae(()=>{"use strict";Ukr();WA();i(czn,"values");ax=czn});function pzn(r){if(r==null)return!0;if(wm(r)&&(xl(r)||typeof r=="string"||typeof r.splice=="function"||j4(r)||S_(r)||G4(r)))return!r.length;var t=ix(r);if(t==uzn||t==hzn)return!r.size;if(C_(r))return!TU(r).length;for(var a in r)if(dzn.call(r,a))return!1;return!0}var uzn,hzn,fzn,dzn,$xe,Wkr=ae(()=>{"use strict";txe();XO();wU();Bg();yS();xU();ane();lne();uzn="[object Map]",hzn="[object Set]",fzn=Object.prototype,dzn=fzn.hasOwnProperty;i(pzn,"isEmpty");$xe=pzn});function gzn(r){return r===void 0}var xp,Hkr=ae(()=>{"use strict";i(gzn,"isUndefined");xp=gzn});function mzn(r,t){return r<t}var Gxe,det=ae(()=>{"use strict";i(mzn,"baseLt");Gxe=mzn});function yzn(r,t){var a={};return t=py(t,3),BU(r,function(s,l,h){x_(a,l,t(s,l,h))}),a}var KO,qkr=ae(()=>{"use strict";tne();Nxe();qA();i(yzn,"mapValues");KO=yzn});function bzn(r,t,a){for(var s=-1,l=r.length;++s<l;){var h=r[s],f=t(h);if(f!=null&&(d===void 0?f===f&&!nx(f):a(f,d)))var d=f,m=h}return m}var GU,jxe=ae(()=>{"use strict";WO();i(bzn,"baseExtremum");GU=bzn});function vzn(r){return r&&r.length?GU(r,c2,Okr):void 0}var d2,Ykr=ae(()=>{"use strict";jxe();Pkr();b_();i(vzn,"max");d2=vzn});var wzn,jU,Xkr=ae(()=>{"use strict";vkr();twr();wzn=ewr(function(r,t,a){bkr(r,t,a)}),jU=wzn});function xzn(r){return r&&r.length?GU(r,c2,Gxe):void 0}var YA,Kkr=ae(()=>{"use strict";jxe();det();b_();i(xzn,"min");YA=xzn});function Tzn(r,t){return r&&r.length?GU(r,py(t,2),Gxe):void 0}var JO,Jkr=ae(()=>{"use strict";jxe();qA();det();i(Tzn,"minBy");JO=Tzn});function kzn(r,t,a,s){if(!ed(r))return r;t=I_(t,r);for(var l=-1,h=t.length,f=h-1,d=r;d!=null&&++l<h;){var m=bS(t[l]),b=a;if(m==="__proto__"||m==="constructor"||m==="prototype")return r;if(l!=f){var v=d[m];b=s?s(v,m,d):void 0,b===void 0&&(b=ed(v)?v:w_(t[l+1])?[]:{})}T_(d,m,b),d=d[m]}return r}var Qkr,Zkr=ae(()=>{"use strict";rne();dne();ene();YT();AU();i(kzn,"baseSet");Qkr=kzn});function Czn(r,t,a){for(var s=-1,l=t.length,h={};++s<l;){var f=t[s],d=M_(r,f);a(d,f)&&Qkr(h,I_(f,r),d)}return h}var e3r,t3r=ae(()=>{"use strict";pne();Zkr();dne();i(Czn,"basePickBy");e3r=Czn});function Ezn(r,t){var a=r.length;for(r.sort(t);a--;)r[a]=r[a].value;return r}var r3r,n3r=ae(()=>{"use strict";i(Ezn,"baseSortBy");r3r=Ezn});function Szn(r,t){if(r!==t){var a=r!==void 0,s=r===null,l=r===r,h=nx(r),f=t!==void 0,d=t===null,m=t===t,b=nx(t);if(!d&&!b&&!h&&r>t||h&&f&&m&&!d&&!b||s&&f&&m||!a&&m||!l)return 1;if(!s&&!h&&!b&&r<t||b&&a&&l&&!s&&!h||d&&a&&l||!f&&l||!m)return-1}return 0}var i3r,a3r=ae(()=>{"use strict";WO();i(Szn,"compareAscending");i3r=Szn});function Azn(r,t,a){for(var s=-1,l=r.criteria,h=t.criteria,f=l.length,d=a.length;++s<f;){var m=i3r(l[s],h[s]);if(m){if(s>=d)return m;var b=a[s];return m*(b=="desc"?-1:1)}}return r.index-t.index}var s3r,o3r=ae(()=>{"use strict";a3r();i(Azn,"compareMultiple");s3r=Azn});function Rzn(r,t,a){t.length?t=pS(t,function(h){return xl(h)?function(f){return M_(f,h.length===1?h[0]:h)}:h}):t=[c2];var s=-1;t=pS(t,E_(py));var l=Fxe(r,function(h,f,d){var m=pS(t,function(b){return b(h)});return{criteria:m,index:++s,value:h}});return r3r(l,function(h,f){return s3r(h,f,a)})}var l3r,c3r=ae(()=>{"use strict";Qre();pne();qA();uet();n3r();sne();o3r();b_();Bg();i(Rzn,"baseOrderBy");l3r=Rzn});var Lzn,u3r,h3r=ae(()=>{"use strict";net();Lzn=Ixe("length"),u3r=Lzn});function jzn(r){for(var t=f3r.lastIndex=0;f3r.test(r);)++t;return t}var d3r,_zn,Dzn,Izn,Mzn,Nzn,Ozn,pet,get,Pzn,p3r,g3r,m3r,Bzn,y3r,b3r,Fzn,$zn,Gzn,f3r,v3r,w3r=ae(()=>{"use strict";d3r="\\ud800-\\udfff",_zn="\\u0300-\\u036f",Dzn="\\ufe20-\\ufe2f",Izn="\\u20d0-\\u20ff",Mzn=_zn+Dzn+Izn,Nzn="\\ufe0e\\ufe0f",Ozn="["+d3r+"]",pet="["+Mzn+"]",get="\\ud83c[\\udffb-\\udfff]",Pzn="(?:"+pet+"|"+get+")",p3r="[^"+d3r+"]",g3r="(?:\\ud83c[\\udde6-\\uddff]){2}",m3r="[\\ud800-\\udbff][\\udc00-\\udfff]",Bzn="\\u200d",y3r=Pzn+"?",b3r="["+Nzn+"]?",Fzn="(?:"+Bzn+"(?:"+[p3r,g3r,m3r].join("|")+")"+b3r+y3r+")*",$zn=b3r+y3r+Fzn,Gzn="(?:"+[p3r+pet+"?",pet,g3r,m3r,Ozn].join("|")+")",f3r=RegExp(get+"(?="+get+")|"+Gzn+$zn,"g");i(jzn,"unicodeSize");v3r=jzn});function zzn(r){return yxr(r)?v3r(r):u3r(r)}var x3r,T3r=ae(()=>{"use strict";h3r();bxr();w3r();i(zzn,"stringSize");x3r=zzn});function Uzn(r,t){return e3r(r,t,function(a,s){return Dxe(r,s)})}var k3r,C3r=ae(()=>{"use strict";t3r();ret();i(Uzn,"basePick");k3r=Uzn});var Vzn,QO,E3r=ae(()=>{"use strict";C3r();dxr();Vzn=fxr(function(r,t){return r==null?{}:k3r(r,t)}),QO=Vzn});function qzn(r,t,a,s){for(var l=-1,h=Hzn(Wzn((t-r)/(a||1)),0),f=Array(h);h--;)f[s?h:++l]=r,r+=a;return f}var Wzn,Hzn,S3r,A3r=ae(()=>{"use strict";Wzn=Math.ceil,Hzn=Math.max;i(qzn,"baseRange");S3r=qzn});function Yzn(r){return function(t,a,s){return s&&typeof s!="number"&&UA(t,a,s)&&(a=s=void 0),t=mU(t),a===void 0?(a=t,t=0):a=mU(a),s=s===void 0?t<a?1:-1:mU(s),S3r(t,a,s,r)}}var R3r,L3r=ae(()=>{"use strict";A3r();ine();wZe();i(Yzn,"createRange");R3r=Yzn});var Xzn,JT,_3r=ae(()=>{"use strict";L3r();Xzn=R3r(),JT=Xzn});function Kzn(r,t,a,s,l){return l(r,function(h,f,d){a=s?(s=!1,h):t(a,h,f,d)}),a}var D3r,I3r=ae(()=>{"use strict";i(Kzn,"baseReduce");D3r=Kzn});function Jzn(r,t,a){var s=xl(r)?vxr:D3r,l=arguments.length<3;return s(r,py(t,4),a,l,O_)}var wS,M3r=ae(()=>{"use strict";wxr();yne();qA();I3r();Bg();i(Jzn,"reduce");wS=Jzn});function eUn(r){if(r==null)return 0;if(wm(r))return Gkr(r)?x3r(r):r.length;var t=ix(r);return t==Qzn||t==Zzn?r.size:TU(r).length}var Qzn,Zzn,met,N3r=ae(()=>{"use strict";txe();XO();yS();jkr();T3r();Qzn="[object Map]",Zzn="[object Set]";i(eUn,"size");met=eUn});var tUn,xS,O3r=ae(()=>{"use strict";oxe();c3r();nne();ine();tUn=k_(function(r,t){if(r==null)return[];var a=t.length;return a>1&&UA(r,t[0],t[1])?t=[]:a>2&&UA(t[0],t[1],t[2])&&(t=[t[0]]),l3r(r,LU(t,1),[])}),xS=tUn});var rUn,nUn,P3r,B3r=ae(()=>{"use strict";UZe();G2r();Exe();rUn=1/0,nUn=N_&&1/OU(new N_([,-0]))[1]==rUn?function(r){return new N_(r)}:$2r,P3r=nUn});function aUn(r,t,a){var s=-1,l=J2r,h=r.length,f=!0,d=[],m=d;if(a)f=!1,l=wkr;else if(h>=iUn){var b=t?null:P3r(r);if(b)return OU(b);f=!1,l=kxe,m=new Txe}else m=t?[]:d;e:for(;++s<h;){var v=r[s],T=t?t(v):v;if(v=a||v!==0?v:0,f&&T===T){for(var C=m.length;C--;)if(m[C]===T)continue e;t&&m.push(T),d.push(v)}else l(m,T,a)||(m!==d&&m.push(T),d.push(v))}return d}var iUn,F3r,$3r=ae(()=>{"use strict";YZe();Q2r();xkr();XZe();B3r();Exe();iUn=200;i(aUn,"baseUniq");F3r=aUn});var sUn,yet,G3r=ae(()=>{"use strict";oxe();nne();$3r();set();sUn=k_(function(r){return F3r(LU(r,1,Pxe,!0))}),yet=sUn});function lUn(r){var t=++oUn;return axe(r)+t}var oUn,ZO,j3r=ae(()=>{"use strict";OZe();oUn=0;i(lUn,"uniqueId");ZO=lUn});function cUn(r,t,a){for(var s=-1,l=r.length,h=t.length,f={};++s<l;){var d=s<h?t[s]:void 0;a(f,r[s],d)}return f}var z3r,U3r=ae(()=>{"use strict";i(cUn,"baseZipObject");z3r=cUn});function uUn(r,t){return z3r(r||[],t||[],T_)}var zxe,V3r=ae(()=>{"use strict";rne();U3r();i(uUn,"zipObject");zxe=uUn});var oh=ae(()=>{"use strict";STr();kZe();fkr();kkr();Skr();Dkr();PZe();cet();Mkr();Nkr();$kr();Bg();Wkr();Zre();Hkr();WA();Tkr();Ikr();qkr();Ykr();Xkr();Kkr();Jkr();ukr();E3r();_3r();M3r();N3r();O3r();G3r();j3r();Vkr();V3r();});function H3r(r,t){r[t]?r[t]++:r[t]=1}function q3r(r,t){--r[t]||delete r[t]}function xne(r,t,a,s){var l=""+t,h=""+a;if(!r&&l>h){var f=l;l=h,h=f}return l+W3r+h+W3r+(xp(s)?hUn:s)}function fUn(r,t,a,s){var l=""+t,h=""+a;if(!r&&l>h){var f=l;l=h,h=f}var d={v:l,w:h};return s&&(d.name=s),d}function bet(r,t){return xne(r,t.v,t.w,t.name)}var hUn,eP,W3r,lh,vet=ae(()=>{"use strict";oh();hUn="\0",eP="\0",W3r="",lh=class{static{i(this,"Graph")}constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=h2(void 0),this._defaultEdgeLabelFn=h2(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[eP]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return gS(t)||(t=h2(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return wp(this._nodes)}sources(){var t=this;return Ib(this.nodes(),function(a){return $xe(t._in[a])})}sinks(){var t=this;return Ib(this.nodes(),function(a){return $xe(t._out[a])})}setNodes(t,a){var s=arguments,l=this;return yn(t,function(h){s.length>1?l.setNode(h,a):l.setNode(h)}),this}setNode(t,a){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=a),this):(this._nodes[t]=arguments.length>1?a:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=eP,this._children[t]={},this._children[eP][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var a=i(s=>this.removeEdge(this._edgeObjs[s]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],yn(this.children(t),s=>{this.setParent(s)}),delete this._children[t]),yn(wp(this._in[t]),a),delete this._in[t],delete this._preds[t],yn(wp(this._out[t]),a),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,a){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(xp(a))a=eP;else{a+="";for(var s=a;!xp(s);s=this.parent(s))if(s===t)throw new Error("Setting "+a+" as parent of "+t+" would create a cycle");this.setNode(a)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=a,this._children[a][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var a=this._parent[t];if(a!==eP)return a}}children(t){if(xp(t)&&(t=eP),this._isCompound){var a=this._children[t];if(a)return wp(a)}else{if(t===eP)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var a=this._preds[t];if(a)return wp(a)}successors(t){var a=this._sucs[t];if(a)return wp(a)}neighbors(t){var a=this.predecessors(t);if(a)return yet(a,this.successors(t))}isLeaf(t){var a;return this.isDirected()?a=this.successors(t):a=this.neighbors(t),a.length===0}filterNodes(t){var a=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});a.setGraph(this.graph());var s=this;yn(this._nodes,function(f,d){t(d)&&a.setNode(d,f)}),yn(this._edgeObjs,function(f){a.hasNode(f.v)&&a.hasNode(f.w)&&a.setEdge(f,s.edge(f))});var l={};function h(f){var d=s.parent(f);return d===void 0||a.hasNode(d)?(l[f]=d,d):d in l?l[d]:h(d)}return i(h,"findParent"),this._isCompound&&yn(a.nodes(),function(f){a.setParent(f,h(f))}),a}setDefaultEdgeLabel(t){return gS(t)||(t=h2(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return ax(this._edgeObjs)}setPath(t,a){var s=this,l=arguments;return wS(t,function(h,f){return l.length>1?s.setEdge(h,f,a):s.setEdge(h,f),f}),this}setEdge(){var t,a,s,l,h=!1,f=arguments[0];typeof f=="object"&&f!==null&&"v"in f?(t=f.v,a=f.w,s=f.name,arguments.length===2&&(l=arguments[1],h=!0)):(t=f,a=arguments[1],s=arguments[3],arguments.length>2&&(l=arguments[2],h=!0)),t=""+t,a=""+a,xp(s)||(s=""+s);var d=xne(this._isDirected,t,a,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,d))return h&&(this._edgeLabels[d]=l),this;if(!xp(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(a),this._edgeLabels[d]=h?l:this._defaultEdgeLabelFn(t,a,s);var m=fUn(this._isDirected,t,a,s);return t=m.v,a=m.w,Object.freeze(m),this._edgeObjs[d]=m,H3r(this._preds[a],t),H3r(this._sucs[t],a),this._in[a][d]=m,this._out[t][d]=m,this._edgeCount++,this}edge(t,a,s){var l=arguments.length===1?bet(this._isDirected,arguments[0]):xne(this._isDirected,t,a,s);return this._edgeLabels[l]}hasEdge(t,a,s){var l=arguments.length===1?bet(this._isDirected,arguments[0]):xne(this._isDirected,t,a,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,l)}removeEdge(t,a,s){var l=arguments.length===1?bet(this._isDirected,arguments[0]):xne(this._isDirected,t,a,s),h=this._edgeObjs[l];return h&&(t=h.v,a=h.w,delete this._edgeLabels[l],delete this._edgeObjs[l],q3r(this._preds[a],t),q3r(this._sucs[t],a),delete this._in[a][l],delete this._out[t][l],this._edgeCount--),this}inEdges(t,a){var s=this._in[t];if(s){var l=ax(s);return a?Ib(l,function(h){return h.v===a}):l}}outEdges(t,a){var s=this._out[t];if(s){var l=ax(s);return a?Ib(l,function(h){return h.w===a}):l}}nodeEdges(t,a){var s=this.inEdges(t,a);if(s)return s.concat(this.outEdges(t,a))}};lh.prototype._nodeCount=0;lh.prototype._edgeCount=0;i(H3r,"incrementOrInitEntry");i(q3r,"decrementOrRemoveEntry");i(xne,"edgeArgsToId");i(fUn,"edgeArgsToObj");i(bet,"edgeObjToId")});var QT=ae(()=>{"use strict";vet()});var Y3r=ae(()=>{"use strict"});var K3r={};is(K3r,{captureNodeSizes:()=>yUn,shouldCaptureSizes:()=>pUn});function X3r(){if(!(typeof globalThis>"u"))return globalThis}function pUn(){return!!X3r()?.mermaidCaptureSizes}function gUn(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}function mUn(r,t){let a=X3r();if(!a)return;let s=t.node(),h=((s&&"ownerSVGElement"in s?s.ownerSVGElement:null)??s)?.id??"(unknown)";a.mermaidCapturedSizes??=[];let f={svgId:h,sizes:r};a.mermaidCapturedSizes.push(f),a.mermaidLastCapturedSizes=f}function yUn(r,t){let a=[];for(let s of t.nodes)s.isGroup||a.push({id:s.id,width:s.width??0,height:s.height??0});a.length!==0&&mUn({metadata:{captureVersion:1,capturedAt:new Date().toISOString(),capturedFrom:gUn()},nodes:a},r)}var J3r=ae(()=>{"use strict";Y3r();i(X3r,"getCaptureGlobal");i(pUn,"shouldCaptureSizes");i(gUn,"capturedFromLocation");i(mUn,"emitCapturedSizes");i(yUn,"captureNodeSizes")});function wet(r,{edgePathsClass:t="edges edgePaths"}={}){let a=r.insert("g").attr("class","root"),s=a.insert("g").attr("class","clusters"),l=a.insert("g").attr("class",t),h=a.insert("g").attr("class","edgeLabels"),f=a.insert("g").attr("class","nodes");return{clusters:s,edgePaths:l,edgeLabels:h,nodes:f,rootGroups:a}}async function bUn(r,t,a){if(t.label){let{shapeSvg:s,bbox:l}=await kn(r,a===void 0?t:{...t,width:a});t.labelBBox={width:l.width,height:l.height},s.remove()}else t.labelBBox={width:0,height:0}}async function xet(r,t,a){let s=await jA(r,t,a),l=s.node()?.getBBox()??{width:0,height:0};return t.width=l.width,t.height=l.height,s}function vUn(r,t,a){let s=r,l=new Set;for(;s;){if(s.dir)return s.dir;if(!s.parentId||l.has(s.parentId))break;l.add(s.parentId),s=t.get(s.parentId)}return a}async function Q3r(r,t,a={}){let s=new lh({multigraph:!0,compound:!0}),l=[...t.edges],h=er(),f=wet(r),{edgeLabels:d,nodes:m}=f,b=new Map,v=new Map(t.nodes.map(E=>[E.id,E])),T=t.direction,C=r.node()!=null;await Promise.all(t.nodes.map(async E=>{if(E.isGroup){if(C){let S=a.unwrapGroupLabels&&E.labelType!=="markdown";await bUn(m,E,S?Number.POSITIVE_INFINITY:void 0)}s.setNode(E.id,{...E})}else{if(C){let S=await xet(m,E,{config:h,dir:vUn(E,v,T)});b.set(E.id,S)}s.setNode(E.id,{...E})}}));for(let E of l)C&&$we(E)&&await F4(d,E),s.setEdge(E.start,E.end,{...E},E.id),t.edges.some(R=>R.id===E.id)||t.edges.push(E);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:E}=await Promise.resolve().then(()=>(J3r(),K3r));E(r,t)}return{graph:s,groups:f,nodeElements:b}}var Tet=ae(()=>{"use strict";QT();ma();pU();UO();Yi();i(wet,"createLayoutElementGroups");i(bUn,"measureGroupLabel");i(xet,"insertMeasuredNode");i(vUn,"resolveNodeDir");i(Q3r,"createGraphWithElements")});var el,tP,e4r,t4r,Tne,wUn,r4r,n4r,xUn,rP,Z3r,i4r,a4r,s4r,Vxe,o4r,TUn,ket=ae(()=>{"use strict";Yn();QT();el=new Map,tP=new Map,e4r=new Map,t4r=i(()=>{tP.clear(),e4r.clear(),el.clear()},"clear"),Tne=i((r,t)=>{let a=tP.get(t)||[];return Pe.trace("In isDescendant",t," ",r," = ",a.includes(r)),a.includes(r)},"isDescendant"),wUn=i((r,t)=>{let a=tP.get(t)||[];return Pe.info("Descendants of ",t," is ",a),Pe.info("Edge is ",r),r.v===t||r.w===t?!1:a?a.includes(r.v)||Tne(r.v,t)||Tne(r.w,t)||a.includes(r.w):(Pe.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),r4r=i((r,t,a,s)=>{Pe.debug("Copying children of ",r,"root",s,"data",t.node(r),s);let l=t.children(r)||[];r!==s&&l.push(r),Pe.debug("Copying (nodes) clusterId",r,"nodes",l),l.forEach(h=>{if(t.children(h).length>0)r4r(h,t,a,s);else{let f=t.node(h);Pe.info("cp ",h," to ",s," with parent ",r),a.setNode(h,f),s!==t.parent(h)&&(Pe.debug("Setting parent",h,t.parent(h)),a.setParent(h,t.parent(h))),r!==s&&h!==r?(Pe.debug("Setting parent",h,r),a.setParent(h,r)):(Pe.info("In copy ",r,"root",s,"data",t.node(r),s),Pe.debug("Not Setting parent for node=",h,"cluster!==rootId",r!==s,"node!==clusterId",h!==r));let d=t.edges(h);Pe.debug("Copying Edges",d),d.forEach(m=>{Pe.info("Edge",m);let b=t.edge(m.v,m.w,m.name);Pe.info("Edge data",b,s);try{wUn(m,s)?(Pe.info("Copying as ",m.v,m.w,b,m.name),a.setEdge(m.v,m.w,b,m.name),Pe.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):Pe.info("Skipping copy of edge ",m.v,"-->",m.w," rootId: ",s," clusterId:",r)}catch(v){Pe.error(v)}})}Pe.debug("Removing node",h),t.removeNode(h)})},"copy"),n4r=i((r,t)=>{let a=t.children(r),s=[...a];for(let l of a)e4r.set(l,r),s=[...s,...n4r(l,t)];return s},"extractDescendants"),xUn=i((r,t,a)=>{let s=r.edges().filter(m=>m.v===t||m.w===t),l=r.edges().filter(m=>m.v===a||m.w===a),h=s.map(m=>({v:m.v===t?a:m.v,w:m.w===t?t:m.w})),f=l.map(m=>({v:m.v,w:m.w}));return h.filter(m=>f.some(b=>m.v===b.v&&m.w===b.w))},"findCommonEdges"),rP=i((r,t,a)=>{let s=t.children(r);if(Pe.trace("Searching children of id ",r,s),s.length<1)return r;let l;for(let h of s){let f=rP(h,t,a),d=xUn(t,a,f);if(f)if(d.length>0)l=f;else return f}return l},"findNonClusterChild"),Z3r=i(r=>!el.has(r)||!el.get(r).externalConnections?r:el.has(r)?el.get(r).id:r,"getAnchorId"),i4r=i((r,t)=>{if(!r||t>10){Pe.debug("Opting out, no graph ");return}else Pe.debug("Opting in, graph ");r.nodes().forEach(function(a){r.children(a).length>0&&(Pe.debug("Cluster identified",a," Replacement id in edges: ",rP(a,r,a)),tP.set(a,n4r(a,r)),el.set(a,{id:rP(a,r,a),clusterData:r.node(a)}))}),r.nodes().forEach(function(a){let s=r.children(a),l=r.edges();s.length>0?(Pe.debug("Cluster identified",a,tP),l.forEach(h=>{let f=Tne(h.v,a),d=Tne(h.w,a);f^d&&(Pe.debug("Edge: ",h," leaves cluster ",a),Pe.debug("Descendants of XXX ",a,": ",tP.get(a)),el.get(a).externalConnections=!0)})):Pe.debug("Not a cluster ",a,tP)});for(let a of el.keys()){let s=el.get(a).id,l=r.parent(s);l!==a&&el.has(l)&&!el.get(l).externalConnections&&(el.get(a).id=l);let h=r.edges().some(f=>f.v===a);if(s&&el.get(a)?.externalConnections&&h&&o4r(r,s,a)){let f=TUn(r,a,r.parent(s));f&&(el.get(a).id=f)}}r.edges().forEach(function(a){let s=r.edge(a);Pe.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a)),Pe.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(r.edge(a)));let l=a.v,h=a.w;if(Pe.debug("Fix XXX",el,"ids:",a.v,a.w,"Translating: ",el.get(a.v)," --- ",el.get(a.w)),el.get(a.v)||el.get(a.w)){if(Pe.debug("Fixing and trying - removing XXX",a.v,a.w,a.name),l=Z3r(a.v),h=Z3r(a.w),r.removeEdge(a.v,a.w,a.name),l!==a.v){let f=r.parent(l);el.get(f).externalConnections=!0,s.fromCluster=a.v}if(h!==a.w){let f=r.parent(h);el.get(f).externalConnections=!0,s.toCluster=a.w}Pe.debug("Fix Replacing with XXX",l,h,a.name),r.setEdge(l,h,s,a.name)}}),a4r(r,0),Pe.trace(el)},"adjustClustersAndEdges"),a4r=i((r,t)=>{if(t>10){Pe.error("Bailing out");return}let a=r.nodes(),s=!1;for(let l of a){let h=r.children(l);s=s||h.length>0}if(!s){Pe.debug("Done, no node has children",r.nodes());return}Pe.debug("Nodes = ",a,t);for(let l of a)if(Pe.debug("Extracting node",l,el,el.has(l)&&!el.get(l).externalConnections,!r.parent(l),r.node(l),r.children("D")," Depth ",t),!el.has(l))Pe.debug("Not a cluster",l,t);else if(!el.get(l).externalConnections&&r.children(l)&&r.children(l).length>0){Pe.debug("Cluster without external connections, without a parent and with children",l,t);let f=r.graph().rankdir==="TB"?"LR":"TB";el.get(l)?.clusterData?.dir&&(f=el.get(l).clusterData.dir,Pe.debug("Fixing dir",el.get(l).clusterData.dir,f));let d=new lh({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});r4r(l,r,d,l),r.setNode(l,{clusterNode:!0,id:l,clusterData:el.get(l).clusterData,label:el.get(l).label,graph:d})}else Pe.debug("Cluster ** ",l," **not meeting the criteria !externalConnections:",!el.get(l).externalConnections," no parent: ",!r.parent(l)," children ",r.children(l)&&r.children(l).length>0,r.children("D"),t),Pe.debug(el);a=r.nodes(),Pe.debug("New list of nodes",a);for(let l of a){let h=r.node(l);Pe.debug(" Now next level",l,h),h?.clusterNode&&a4r(h.graph,t+1)}},"extractor"),s4r=i((r,t)=>{if(t.length===0)return[];let a=Object.assign([],t);return t.forEach(s=>{let l=r.children(s),h=s4r(r,l);a=[...a,...h]}),a},"sorter"),Vxe=i(r=>s4r(r,r.children()),"sortNodesByHierarchy"),o4r=i((r,t,a)=>{let s=r.parent(t);for(;s&&s!==a;){let l=el.get(s);if(l&&!l.externalConnections)return!0;s=r.parent(s)}return!1},"isNodeInExtractableCluster"),TUn=i((r,t,a)=>{let s=r.children(t)??[];for(let l of s){if(l===a||Tne(l,a))continue;let h=rP(l,r,t);if(h&&!o4r(r,h,t))return h}return null},"findSafeAnchorNode")});function zU({prepareLayout:r,measureLayout:t,runLayoutCore:a,paintLayout:s,afterPaint:l,paintOptions:h}){let f=t??Cet;return i(async function(m,b,v,T){let C=b.select("g");(v?.insertMarkers??gU)(C,m.markers,m.type,m.diagramId),kUn();let E={element:C,helpers:v,options:T};E.preparedLayout=await r?.(m,E);let S=await f(m,E),R=await a(m,E),L={...E,measure:S};s?await s(m,L,R):await CUn(m,L,h),await l?.(m,L,R)},"render")}function kUn(){Zvr(),Kvr(),Avr(),t4r()}async function Cet(r,{element:t},a){return await Q3r(t,r,a)}async function CUn(r,t,a={}){let{measure:s}=t,{groups:l}=s;for(let f of a.getNodes?.(r,t)??r.nodes)a.skipNode?.(f,t)||await EUn(l,f,t,a);let h=AUn(r.nodes);for(let f of r.edges)RUn(f,a)||await LUn(l,f,h,r,a,t)}async function EUn(r,t,a,s){t.clusterNode?dS(t):SUn(t,a,s)?await g_(r.clusters,t):dS(t)}function SUn(r,t,a){return r.isGroup===!0&&(a.isCluster?.(r,t)??!0)}function AUn(r){let t=new Map;for(let a of r)a?.id&&t.set(a.id,a);return t}function RUn(r,t){return r.isLayoutOnly||!!t.skipEdge?.(r)}async function LUn(r,t,a,s,l,h){let f=m_(r.edgePaths,{...t},l.clusterDb??new Map,s.type,l4r(t.start,t,a,h,l),l4r(t.end,t,a,h,l),s.diagramId,_Un(t,l),s.layoutAlgorithm);$we(t)&&(zO.has(t.id)||await F4(r.edgeLabels,t),DUn(t,f))}function l4r(r,t,a,s,l){return l.getEdgeNode?.(r,t,s)??(r?a.get(r)??{}:{})}function _Un(r,t){return typeof t.skipIntersect=="function"?t.skipIntersect(r):t.skipIntersect??!1}function DUn(r,t){let a=t?.updatedPath??t?.originalPath,s=ri(),{subGraphTitleTotalMargin:l}=B4({flowchart:s.flowchart??{}});if(r.label){let h=zO.get(r.id),{x:f,y:d}=yZe(r,t);h.attr("transform",`translate(${f}, ${d+l/2})`)}for(let[h,f]of[["startLeft",r.startLabelLeft],["startRight",r.startLabelRight],["endLeft",r.endLabelLeft],["endRight",r.endLabelRight]])if(f){let{x:d,y:m}=MUn(r,h,a);R0.get(r.id)[h].attr("transform",`translate(${d}, ${m})`)}}function MUn(r,t,a){let s=r.terminalLabelCenters?.[t];if(s)return{...s};if(!a)return{x:r.x,y:r.y};let l=t.startsWith("start")?r.arrowTypeStart:r.arrowTypeEnd;return Va.calcTerminalLabelPosition(l?10:0,IUn[t],a)}var IUn,Wxe=ae(()=>{"use strict";nU();Xs();Ma();Yre();Tet();uU();pU();Gwe();UO();ket();i(zU,"createCommonLayoutRenderer");i(kUn,"clearLayoutRenderState");i(Cet,"defaultMeasureLayout");i(CUn,"paintLayoutData");i(EUn,"paintLayoutNode");i(SUn,"shouldPaintAsCluster");i(AUn,"buildNodeLookup");i(RUn,"shouldSkipPaintEdge");i(LUn,"paintLayoutEdge");i(l4r,"getRenderedNode");i(_Un,"shouldSkipIntersect");i(DUn,"positionRenderedEdgeLabel");IUn={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};i(MUn,"terminalLabelTranslate")});var u4r=Zv((c4r,Eet)=>{"use strict";(function(r){if(typeof c4r=="object"&&typeof Eet<"u")Eet.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t=this,t.ELK=r()}})(function(){var r,t,a;return(function(){function s(l,h,f){function d(v,T){if(!h[v]){if(!l[v]){var C=typeof Bee=="function"&&Bee;if(!T&&C)return C(v,!0);if(m)return m(v,!0);var E=new Error("Cannot find module '"+v+"'");throw E.code="MODULE_NOT_FOUND",E}var S=h[v]={exports:{}};l[v][0].call(S.exports,function(R){var L=l[v][1][R];return d(L||R)},S,S.exports,s,l,h,f)}return h[v].exports}i(d,"o");for(var m=typeof Bee=="function"&&Bee,b=0;b<f.length;b++)d(f[b]);return d}return i(s,"r"),s})()({1:[function(s,l,h){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0;function f(S){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(S)}i(f,"_typeof");function d(S,R){if(!(S instanceof R))throw new TypeError("Cannot call a class as a function")}i(d,"_classCallCheck");function m(S,R){for(var L=0;L<R.length;L++){var _=R[L];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,v(_.key),_)}}i(m,"_defineProperties");function b(S,R,L){return R&&m(S.prototype,R),L&&m(S,L),Object.defineProperty(S,"prototype",{writable:!1}),S}i(b,"_createClass");function v(S){var R=T(S,"string");return f(R)=="symbol"?R:R+""}i(v,"_toPropertyKey");function T(S,R){if(f(S)!="object"||!S)return S;var L=S[Symbol.toPrimitive];if(L!==void 0){var _=L.call(S,R||"default");if(f(_)!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(S)}i(T,"_toPrimitive");var C=h.default=(function(){function S(){var R=this,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=L.defaultLayoutOptions,I=_===void 0?{}:_,N=L.algorithms,B=N===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:N,O=L.workerFactory,P=L.workerUrl;if(d(this,S),this.defaultLayoutOptions=I,this.initialized=!1,typeof P>"u"&&typeof O>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var $=O;typeof P<"u"&&typeof O>"u"&&($=i(function(Q){return new Worker(Q)},"factory"));var V=$(P);if(typeof V.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new E(V),this.worker.postMessage({cmd:"register",algorithms:B}).then(function(Y){return R.initialized=!0}).catch(console.err)}return i(S,"ELK"),b(S,[{key:"layout",value:i(function(L){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=_.layoutOptions,N=I===void 0?this.defaultLayoutOptions:I,B=_.logging,O=B===void 0?!1:B,P=_.measureExecutionTime,$=P===void 0?!1:P;return L?this.worker.postMessage({cmd:"layout",graph:L,layoutOptions:N,options:{logging:O,measureExecutionTime:$}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))},"layout")},{key:"knownLayoutAlgorithms",value:i(function(){return this.worker.postMessage({cmd:"algorithms"})},"knownLayoutAlgorithms")},{key:"knownLayoutOptions",value:i(function(){return this.worker.postMessage({cmd:"options"})},"knownLayoutOptions")},{key:"knownLayoutCategories",value:i(function(){return this.worker.postMessage({cmd:"categories"})},"knownLayoutCategories")},{key:"terminateWorker",value:i(function(){this.worker&&this.worker.terminate()},"terminateWorker")}])})(),E=(function(){function S(R){var L=this;if(d(this,S),R===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=R,this.worker.onmessage=function(_){setTimeout(function(){L.receive(L,_)},0)}}return i(S,"PromisedWorker"),b(S,[{key:"postMessage",value:i(function(L){var _=this.id||0;this.id=_+1,L.id=_;var I=this;return new Promise(function(N,B){I.resolvers[_]=function(O,P){O?(I.convertGwtStyleError(O),B(O)):N(P)},I.worker.postMessage(L)})},"postMessage")},{key:"receive",value:i(function(L,_){var I=_.data,N=L.resolvers[I.id];N&&(delete L.resolvers[I.id],I.error?N(I.error):N(null,I.data))},"receive")},{key:"terminate",value:i(function(){this.worker&&this.worker.terminate()},"terminate")},{key:"convertGwtStyleError",value:i(function(L){if(L){var _=L.__java$exception;_&&(_.cause&&_.cause.backingJsObject&&(L.cause=_.cause.backingJsObject,this.convertGwtStyleError(L.cause)),delete L.__java$exception)}},"convertGwtStyleError")}])})()},{}],2:[function(s,l,h){(function(f){(function(){"use strict";var d;typeof window<"u"?d=window:typeof f<"u"?d=f:typeof self<"u"&&(d=self);var m,b,v,T,C;function E(){}i(E,"nb");function S(){}i(S,"xb");function R(){}i(R,"Fd");function L(){}i(L,"Fy");function _(){}i(_,"fh");function I(){}i(I,"fq");function N(){}i(N,"Hq");function B(){}i(B,"Dl");function O(){}i(O,"Ns");function P(){}i(P,"Rw");function $(){}i($,"bx");function V(){}i(V,"jx");function Y(){}i(Y,"kx");function Q(){}i(Q,"Vz");function q(){}i(q,"eA");function W(){}i(W,"lA");function H(){}i(H,"UA");function re(){}i(re,"XA");function Z(){}i(Z,"XB");function X(){}i(X,"bB");function te(){}i(te,"udb");function U(){}i(U,"qdb");function ne(){}i(ne,"ydb");function se(){}i(se,"snb");function he(){}i(he,"Tnb");function le(){}i(le,"_nb");function pe(){}i(pe,"kob");function ge(){}i(ge,"sob");function we(){}i(we,"vqb");function Ae(){}i(Ae,"Eqb");function ve(){}i(ve,"Jqb");function Ie(){}i(Ie,"Xqb");function De(){}i(De,"tsb");function Be(){}i(Be,"Aub");function Fe(){}i(Fe,"Fub");function ze(){}i(ze,"Hub");function vt(){}i(vt,"fxb");function lt(){}i(lt,"Nyb");function Ft(){}i(Ft,"NAb");function pr(){}i(pr,"bAb");function tr(){}i(tr,"zAb");function Mt(){}i(Mt,"PAb");function ot(){}i(ot,"RAb");function it(){}i(it,"TAb");function mt(){}i(mt,"VAb");function Rt(){}i(Rt,"Vzb");function pt(){}i(pt,"ZAb");function gt(){}i(gt,"YCb");function ut(){}i(ut,"_Cb");function Yt(){}i(Yt,"bDb");function Ye(){}i(Ye,"dDb");function Oe(){}i(Oe,"zDb");function K(){}i(K,"YDb");function Te(){}i(Te,"aEb");function ce(){}i(ce,"QEb");function Re(){}i(Re,"TEb");function me(){}i(me,"TIb");function be(){}i(be,"PIb");function ke(){}i(ke,"RIb");function We(){}i(We,"VIb");function Ue(){}i(Ue,"VFb");function rt(){}i(rt,"pFb");function nt(){}i(nt,"HFb");function Ot(){}i(Ot,"MFb");function ft(){}i(ft,"QFb");function Qt(){}i(Qt,"eHb");function $t(){}i($t,"iJb");function qt(){}i(qt,"mJb");function Gt(){}i(Gt,"nKb");function jt(){}i(jt,"pKb");function Zr(){}i(Zr,"rKb");function yt(){}i(yt,"BKb");function $n(){}i($n,"pLb");function Ut(){}i(Ut,"rLb");function An(){}i(An,"FLb");function Un(){}i(Un,"JLb");function En(){}i(En,"iMb");function ai(){}i(ai,"FMb");function Gn(){}i(Gn,"KMb");function ui(){}i(ui,"OMb");function Tn(){}i(Tn,"WMb");function Wi(){}i(Wi,"YMb");function Pa(){}i(Pa,"sNb");function qe(){}i(qe,"ePb");function Rn(){}i(Rn,"LPb");function Mn(){}i(Mn,"QPb");function ct(){}i(ct,"LQb");function dr(){}i(dr,"PQb");function Kr(){}i(Kr,"jRb");function pn(){}i(pn,"BRb");function Bn(){}i(Bn,"ERb");function Hs(){}i(Hs,"HRb");function Ki(){}i(Ki,"RRb");function so(){}i(so,"jSb");function js(){}i(js,"BSb");function ls(){}i(ls,"GSb");function Ba(){}i(Ba,"wTb");function cs(){}i(cs,"DTb");function ln(){}i(ln,"HTb");function Vr(){}i(Vr,"LTb");function gn(){}i(gn,"PTb");function xi(){}i(xi,"TTb");function Pn(){}i(Pn,"PUb");function Vn(){}i(Vn,"oVb");function la(){}i(la,"zVb");function Ln(){}i(Ln,"DVb");function Zi(){}i(Zi,"HVb");function kt(){}i(kt,"RVb");function Iu(){}i(Iu,"CXb");function It(){}i(It,"GXb");function Ai(){}i(Ai,"eZb");function da(){}i(da,"$Zb");function sa(){}i(sa,"d$b");function Lr(){}i(Lr,"h$b");function Xa(){}i(Xa,"l$b");function Ze(){}i(Ze,"p$b");function xa(){}i(xa,"t$b");function at(){}i(at,"a_b");function pl(){}i(pl,"c_b");function Dm(){}i(Dm,"i_b");function I2(){}i(I2,"m_b");function M2(){}i(M2,"q_b");function Ug(){}i(Ug,"V_b");function uh(){}i(uh,"X_b");function al(){}i(al,"Z_b");function sd(){}i(sd,"c0b");function $l(){}i($l,"h0b");function pk(){}i(pk,"k0b");function gk(){}i(gk,"s0b");function Im(){}i(Im,"w0b");function N2(){}i(N2,"z0b");function mu(){}i(mu,"B0b");function mk(){}i(mk,"D0b");function $0(){}i($0,"P0b");function Rp(){}i(Rp,"T0b");function Vg(){}i(Vg,"X0b");function o5(){}i(o5,"_0b");function O2(){}i(O2,"o1b");function P2(){}i(P2,"t1b");function k1(){}i(k1,"v1b");function ti(){}i(ti,"x1b");function Ct(){}i(Ct,"z1b");function xr(){}i(xr,"B1b");function Dn(){}i(Dn,"O1b");function Wn(){}i(Wn,"Q1b");function xs(){}i(xs,"S1b");function oo(){}i(oo,"U1b");function gl(){}i(gl,"W1b");function Ud(){}i(Ud,"$1b");function B2(){}i(B2,"L2b");function G0(){}i(G0,"T2b");function Mm(){}i(Mm,"W2b");function l5(){}i(l5,"a3b");function Nm(){}i(Nm,"o3b");function TH(){}i(TH,"r3b");function dpt(){}i(dpt,"w3b");function ppt(){}i(ppt,"C3b");function gpt(){}i(gpt,"O3b");function mpt(){}i(mpt,"P3b");function ypt(){}i(ypt,"S3b");function bpt(){}i(bpt,"$3b");function vpt(){}i(vpt,"b4b");function wpt(){}i(wpt,"d4b");function xpt(){}i(xpt,"f4b");function Tpt(){}i(Tpt,"j4b");function kpt(){}i(kpt,"m4b");function Cpt(){}i(Cpt,"p4b");function Ept(){}i(Ept,"u4b");function Spt(){}i(Spt,"A4b");function Apt(){}i(Apt,"G4b");function Rpt(){}i(Rpt,"g6b");function Lpt(){}i(Lpt,"m6b");function _pt(){}i(_pt,"o6b");function Dpt(){}i(Dpt,"q6b");function Ipt(){}i(Ipt,"B6b");function Mpt(){}i(Mpt,"I6b");function Npt(){}i(Npt,"K6b");function Opt(){}i(Opt,"m7b");function Ppt(){}i(Ppt,"o7b");function Bpt(){}i(Bpt,"u7b");function Fpt(){}i(Fpt,"z7b");function $pt(){}i($pt,"N7b");function Gpt(){}i(Gpt,"V7b");function jpt(){}i(jpt,"r8b");function zpt(){}i(zpt,"u8b");function Upt(){}i(Upt,"y8b");function Vpt(){}i(Vpt,"E8b");function Wpt(){}i(Wpt,"G8b");function Hpt(){}i(Hpt,"Z8b");function qpt(){}i(qpt,"Z9b");function Ypt(){}i(Ypt,"c9b");function Xpt(){}i(Xpt,"g9b");function Kpt(){}i(Kpt,"u9b");function Jpt(){}i(Jpt,"C9b");function Qpt(){}i(Qpt,"F9b");function Zpt(){}i(Zpt,"L9b");function egt(){}i(egt,"O9b");function tgt(){}i(tgt,"T9b");function rgt(){}i(rgt,"aac");function ngt(){}i(ngt,"cac");function igt(){}i(igt,"eac");function agt(){}i(agt,"iac");function sgt(){}i(sgt,"Dac");function ogt(){}i(ogt,"Hac");function lgt(){}i(lgt,"Lac");function cgt(){}i(cgt,"Nac");function ugt(){}i(ugt,"Pac");function hgt(){}i(hgt,"Vac");function fgt(){}i(fgt,"Yac");function dgt(){}i(dgt,"cbc");function pgt(){}i(pgt,"ebc");function ggt(){}i(ggt,"gbc");function mgt(){}i(mgt,"ibc");function BSe(){}i(BSe,"mbc");function ygt(){}i(ygt,"rbc");function bgt(){}i(bgt,"ubc");function vgt(){}i(vgt,"wbc");function wgt(){}i(wgt,"ybc");function xgt(){}i(xgt,"Abc");function Tgt(){}i(Tgt,"Cbc");function kgt(){}i(kgt,"Gbc");function Cgt(){}i(Cgt,"Nbc");function Egt(){}i(Egt,"Pbc");function Sgt(){}i(Sgt,"Rbc");function Agt(){}i(Agt,"Tbc");function Rgt(){}i(Rgt,"$bc");function Lgt(){}i(Lgt,"acc");function _gt(){}i(_gt,"ccc");function Dgt(){}i(Dgt,"ecc");function Igt(){}i(Igt,"jcc");function Mgt(){}i(Mgt,"ncc");function Ngt(){}i(Ngt,"pcc");function Ogt(){}i(Ogt,"rcc");function Pgt(){}i(Pgt,"vcc");function Bgt(){}i(Bgt,"ycc");function Fgt(){}i(Fgt,"Ecc");function $gt(){}i($gt,"Scc");function Ggt(){}i(Ggt,"$cc");function jgt(){}i(jgt,"cdc");function zgt(){}i(zgt,"edc");function Ugt(){}i(Ugt,"kdc");function Vgt(){}i(Vgt,"odc");function Wgt(){}i(Wgt,"sdc");function Hgt(){}i(Hgt,"udc");function qgt(){}i(qgt,"Adc");function Ygt(){}i(Ygt,"Edc");function Xgt(){}i(Xgt,"Gdc");function Kgt(){}i(Kgt,"Mdc");function Jgt(){}i(Jgt,"Qdc");function Qgt(){}i(Qgt,"Sdc");function Zgt(){}i(Zgt,"gec");function e0t(){}i(e0t,"Nec");function t0t(){}i(t0t,"Pec");function r0t(){}i(r0t,"Rec");function n0t(){}i(n0t,"Tec");function i0t(){}i(i0t,"Vec");function a0t(){}i(a0t,"Xec");function s0t(){}i(s0t,"Zec");function o0t(){}i(o0t,"ffc");function l0t(){}i(l0t,"hfc");function c0t(){}i(c0t,"nfc");function u0t(){}i(u0t,"pfc");function h0t(){}i(h0t,"rfc");function f0t(){}i(f0t,"tfc");function d0t(){}i(d0t,"xfc");function p0t(){}i(p0t,"zfc");function g0t(){}i(g0t,"Hfc");function m0t(){}i(m0t,"Jfc");function y0t(){}i(y0t,"Lfc");function b0t(){}i(b0t,"Ufc");function v0t(){}i(v0t,"Chc");function w0t(){}i(w0t,"Ghc");function x0t(){}i(x0t,"Bic");function T0t(){}i(T0t,"Dic");function k0t(){}i(k0t,"Fic");function C0t(){}i(C0t,"Hic");function E0t(){}i(E0t,"Nic");function S0t(){}i(S0t,"Ric");function A0t(){}i(A0t,"Tic");function R0t(){}i(R0t,"Vic");function L0t(){}i(L0t,"Xic");function _0t(){}i(_0t,"Zic");function D0t(){}i(D0t,"_ic");function I0t(){}i(I0t,"_jc");function M0t(){}i(M0t,"wjc");function N0t(){}i(N0t,"yjc");function O0t(){}i(O0t,"Ajc");function P0t(){}i(P0t,"Cjc");function B0t(){}i(B0t,"Gjc");function F0t(){}i(F0t,"Kjc");function FSe(){}i(FSe,"Ojc");function $0t(){}i($0t,"dkc");function G0t(){}i(G0t,"tkc");function j0t(){}i(j0t,"zkc");function z0t(){}i(z0t,"Qkc");function U0t(){}i(U0t,"Ukc");function V0t(){}i(V0t,"Wkc");function W0t(){}i(W0t,"glc");function H0t(){}i(H0t,"qlc");function q0t(){}i(q0t,"Dlc");function kH(){}i(kH,"Flc");function CH(){}i(CH,"Hlc");function Y0t(){}i(Y0t,"_lc");function $Se(){}i($Se,"bmc");function X0t(){}i(X0t,"jmc");function K0t(){}i(K0t,"Fmc");function J0t(){}i(J0t,"Hmc");function Q0t(){}i(Q0t,"Jmc");function Z0t(){}i(Z0t,"Omc");function emt(){}i(emt,"Qmc");function GSe(){}i(GSe,"cnc");function jSe(){}i(jSe,"enc");function tmt(){}i(tmt,"gnc");function zSe(){}i(zSe,"mnc");function USe(){}i(USe,"pnc");function rmt(){}i(rmt,"unc");function nmt(){}i(nmt,"uDc");function imt(){}i(imt,"ADc");function amt(){}i(amt,"AHc");function smt(){}i(smt,"qHc");function omt(){}i(omt,"CHc");function lmt(){}i(lmt,"GHc");function cmt(){}i(cmt,"YHc");function umt(){}i(umt,"ryc");function hmt(){}i(hmt,"rLc");function fmt(){}i(fmt,"vLc");function dmt(){}i(dmt,"FLc");function pmt(){}i(pmt,"HLc");function gmt(){}i(gmt,"HEc");function HB(){}i(HB,"hCc");function mmt(){}i(mmt,"NCc");function ymt(){}i(ymt,"NLc");function bmt(){}i(bmt,"JLc");function vmt(){}i(vmt,"TLc");function wmt(){}i(wmt,"XLc");function xmt(){}i(xmt,"ZLc");function Tmt(){}i(Tmt,"_Lc");function kmt(){}i(kmt,"hGc");function VSe(){}i(VSe,"PJc");function Cmt(){}i(Cmt,"bMc");function Emt(){}i(Emt,"fMc");function Smt(){}i(Smt,"jMc");function Amt(){}i(Amt,"oMc");function Rmt(){}i(Rmt,"qMc");function Lmt(){}i(Lmt,"wMc");function _mt(){}i(_mt,"yMc");function Dmt(){}i(Dmt,"CMc");function Imt(){}i(Imt,"EMc");function Mmt(){}i(Mmt,"IMc");function Nmt(){}i(Nmt,"KMc");function Omt(){}i(Omt,"MMc");function Pmt(){}i(Pmt,"OMc");function Bmt(){}i(Bmt,"BNc");function Fmt(){}i(Fmt,"SNc");function $mt(){}i($mt,"qOc");function Gmt(){}i(Gmt,"$Oc");function jmt(){}i(jmt,"gPc");function zmt(){}i(zmt,"iPc");function Umt(){}i(Umt,"kPc");function Vmt(){}i(Vmt,"mPc");function Wmt(){}i(Wmt,"oPc");function Hmt(){}i(Hmt,"qPc");function qmt(){}i(qmt,"lQc");function Ymt(){}i(Ymt,"rQc");function Xmt(){}i(Xmt,"tQc");function Kmt(){}i(Kmt,"vQc");function Jmt(){}i(Jmt,"GQc");function Qmt(){}i(Qmt,"IQc");function Zmt(){}i(Zmt,"URc");function e1t(){}i(e1t,"WRc");function t1t(){}i(t1t,"iSc");function r1t(){}i(r1t,"rSc");function n1t(){}i(n1t,"tSc");function i1t(){}i(i1t,"tTc");function a1t(){}i(a1t,"dTc");function s1t(){}i(s1t,"gTc");function o1t(){}i(o1t,"jTc");function l1t(){}i(l1t,"zTc");function c1t(){}i(c1t,"DTc");function u1t(){}i(u1t,"_Tc");function h1t(){}i(h1t,"tUc");function f1t(){}i(f1t,"xUc");function d1t(){}i(d1t,"BUc");function p1t(){}i(p1t,"JUc");function g1t(){}i(g1t,"XUc");function m1t(){}i(m1t,"aVc");function y1t(){}i(y1t,"iVc");function b1t(){}i(b1t,"mVc");function v1t(){}i(v1t,"oVc");function w1t(){}i(w1t,"qVc");function x1t(){}i(x1t,"sVc");function T1t(){}i(T1t,"NVc");function k1t(){}i(k1t,"RVc");function C1t(){}i(C1t,"TVc");function E1t(){}i(E1t,"$Vc");function S1t(){}i(S1t,"cWc");function A1t(){}i(A1t,"eWc");function R1t(){}i(R1t,"jWc");function L1t(){}i(L1t,"pWc");function _1t(){}i(_1t,"WXc");function D1t(){}i(D1t,"WZc");function I1t(){}i(I1t,"IZc");function M1t(){}i(M1t,"MZc");function N1t(){}i(N1t,"OZc");function O1t(){}i(O1t,"SZc");function P1t(){}i(P1t,"YZc");function B1t(){}i(B1t,"LYc");function F1t(){}i(F1t,"NYc");function $1t(){}i($1t,"PYc");function G1t(){}i(G1t,"VYc");function j1t(){}i(j1t,"ZYc");function z1t(){}i(z1t,"a$c");function U1t(){}i(U1t,"e$c");function V1t(){}i(V1t,"g$c");function W1t(){}i(W1t,"m$c");function H1t(){}i(H1t,"q$c");function q1t(){}i(q1t,"u$c");function Y1t(){}i(Y1t,"A$c");function X1t(){}i(X1t,"E$c");function K1t(){}i(K1t,"I$c");function J1t(){}i(J1t,"M$c");function Q1t(){}i(Q1t,"W$c");function Z1t(){}i(Z1t,"$$c");function eyt(){}i(eyt,"H_c");function tyt(){}i(tyt,"K_c");function ryt(){}i(ryt,"j0c");function nyt(){}i(nyt,"o0c");function iyt(){}i(iyt,"r0c");function ayt(){}i(ayt,"t0c");function syt(){}i(syt,"v0c");function oyt(){}i(oyt,"z0c");function lyt(){}i(lyt,"D0c");function cyt(){}i(cyt,"N1c");function uyt(){}i(uyt,"m2c");function hyt(){}i(hyt,"p2c");function fyt(){}i(fyt,"s2c");function dyt(){}i(dyt,"w2c");function pyt(){}i(pyt,"E2c");function gyt(){}i(gyt,"$2c");function myt(){}i(myt,"b3c");function yyt(){}i(yyt,"r3c");function byt(){}i(byt,"u3c");function vyt(){}i(vyt,"x3c");function wyt(){}i(wyt,"C3c");function xyt(){}i(xyt,"W4c");function Qse(){}i(Qse,"c5c");function Zse(){}i(Zse,"e5c");function Tyt(){}i(Tyt,"j5c");function eoe(){}i(eoe,"m5c");function kyt(){}i(kyt,"p5c");function Cyt(){}i(Cyt,"M5c");function Eyt(){}i(Eyt,"S5c");function Syt(){}i(Syt,"j6c");function Ayt(){}i(Ayt,"n6c");function Ryt(){}i(Ryt,"s6c");function Lyt(){}i(Lyt,"M7c");function _yt(){}i(_yt,"n9c");function Dyt(){}i(Dyt,"T9c");function Iyt(){}i(Iyt,"qad");function WSe(){}i(WSe,"Oad");function Myt(){}i(Myt,"Wad");function Nyt(){}i(Nyt,"mbd");function Oyt(){}i(Oyt,"obd");function Pyt(){}i(Pyt,"qbd");function Byt(){}i(Byt,"Cbd");function Fyt(){}i(Fyt,"Ubd");function $yt(){}i($yt,"Ybd");function Gyt(){}i(Gyt,"dcd");function jyt(){}i(jyt,"Bcd");function zyt(){}i(zyt,"Dcd");function yx(){}i(yx,"Xcd");function Uyt(){}i(Uyt,"_cd");function c5(){}i(c5,"mdd");function HSe(){}i(HSe,"Edd");function Vyt(){}i(Vyt,"Fdd");function Wyt(){}i(Wyt,"Hdd");function Hyt(){}i(Hyt,"Jdd");function qyt(){}i(qyt,"Ldd");function Yyt(){}i(Yyt,"Ndd");function Xyt(){}i(Xyt,"Pdd");function Kyt(){}i(Kyt,"Rdd");function Jyt(){}i(Jyt,"Tdd");function Qyt(){}i(Qyt,"Vdd");function Zyt(){}i(Zyt,"Xdd");function ebt(){}i(ebt,"Zdd");function tbt(){}i(tbt,"_dd");function rbt(){}i(rbt,"bed");function nbt(){}i(nbt,"ded");function ibt(){}i(ibt,"fed");function abt(){}i(abt,"hed");function sbt(){}i(sbt,"jed");function obt(){}i(obt,"led");function lbt(){}i(lbt,"ned");function cbt(){}i(cbt,"ped");function nr(){}i(nr,"Ped");function ubt(){}i(ubt,"fhd");function hbt(){}i(hbt,"Kkd");function fbt(){}i(fbt,"Umd");function dbt(){}i(dbt,"Lod");function pbt(){}i(pbt,"Lqd");function gbt(){}i(gbt,"lqd");function mbt(){}i(mbt,"Dqd");function toe(){}i(toe,"Fqd");function ybt(){}i(ybt,"Qqd");function roe(){}i(roe,"_qd");function bbt(){}i(bbt,"mpd");function vbt(){}i(vbt,"qpd");function wbt(){}i(wbt,"upd");function xbt(){}i(xbt,"ypd");function Tbt(){}i(Tbt,"Cpd");function kbt(){}i(kbt,"Crd");function Cbt(){}i(Cbt,"usd");function Ebt(){}i(Ebt,"uwd");function noe(){}i(noe,"Nwd");function EH(){}i(EH,"tvd");function SH(){}i(SH,"lxd");function Sbt(){}i(Sbt,"eyd");function qSe(){}i(qSe,"Dzd");function Abt(){}i(Abt,"vAd");function Rbt(){}i(Rbt,"XAd");function AH(){}i(AH,"nGd");function Lbt(){}i(Lbt,"SGd");function _bt(){}i(_bt,"$Gd");function Dbt(){}i(Dbt,"wJd");function RH(){}i(RH,"wOd");function Ibt(){}i(Ibt,"POd");function Mbt(){}i(Mbt,"sNd");function Nbt(){}i(Nbt,"_Qd");function Obt(){}i(Obt,"mRd");function LH(){}i(LH,"xSd");function Pbt(){}i(Pbt,"gTd");function YSe(){}i(YSe,"CTd");function Bbt(){}i(Bbt,"hZd");function ioe(){}i(ioe,"kZd");function XSe(){}i(XSe,"nZd");function Fbt(){}i(Fbt,"vZd");function $bt(){}i($bt,"IZd");function Gbt(){}i(Gbt,"LZd");function jbt(){}i(jbt,"s_d");function zbt(){}i(zbt,"Y3d");function Ubt(){}i(Ubt,"I4d");function Vbt(){}i(Vbt,"o6d");function Wbt(){}i(Wbt,"r6d");function Hbt(){}i(Hbt,"u6d");function qbt(){}i(qbt,"x6d");function Ybt(){}i(Ybt,"A6d");function Xbt(){}i(Xbt,"D6d");function Kbt(){}i(Kbt,"G6d");function Jbt(){}i(Jbt,"J6d");function Qbt(){}i(Qbt,"M6d");function N8(){}i(N8,"i8d");function aoe(){}i(aoe,"m8d");function Zbt(){}i(Zbt,"Z8d");function evt(){}i(evt,"p9d");function tvt(){}i(tvt,"r9d");function rvt(){}i(rvt,"u9d");function nvt(){}i(nvt,"x9d");function ivt(){}i(ivt,"A9d");function avt(){}i(avt,"D9d");function svt(){}i(svt,"G9d");function ovt(){}i(ovt,"J9d");function lvt(){}i(lvt,"M9d");function cvt(){}i(cvt,"P9d");function uvt(){}i(uvt,"S9d");function hvt(){}i(hvt,"V9d");function fvt(){}i(fvt,"Y9d");function dvt(){}i(dvt,"_9d");function pvt(){}i(pvt,"cae");function gvt(){}i(gvt,"fae");function mvt(){}i(mvt,"iae");function yvt(){}i(yvt,"lae");function bvt(){}i(bvt,"oae");function vvt(){}i(vvt,"rae");function wvt(){}i(wvt,"uae");function xvt(){}i(xvt,"xae");function Tvt(){}i(Tvt,"Aae");function kvt(){}i(kvt,"Dae");function Cvt(){}i(Cvt,"Gae");function Evt(){}i(Evt,"Jae");function Svt(){}i(Svt,"Mae");function Avt(){}i(Avt,"Pae");function Rvt(){}i(Rvt,"Sae");function Lvt(){}i(Lvt,"Vae");function _vt(){}i(_vt,"Yae");function Dvt(){}i(Dvt,"_ae");function Ivt(){}i(Ivt,"cbe");function Mvt(){}i(Mvt,"fbe");function Nvt(){}i(Nvt,"ibe");function Ovt(){}i(Ovt,"lbe");function Pvt(){}i(Pvt,"obe");function Bvt(){}i(Bvt,"rbe");function Fvt(){}i(Fvt,"ube");function $vt(){}i($vt,"xbe");function Gvt(){}i(Gvt,"Abe");function jvt(){}i(jvt,"Dbe");function zvt(){}i(zvt,"Gbe");function Uvt(){}i(Uvt,"Jbe");function Vvt(){}i(Vvt,"Uge");function Wvt(){}i(Wvt,"Eie");function Hvt(){}i(Hvt,"Ele");function qvt(){}i(qvt,"Rle");function Yvt(){}i(Yvt,"Tle");function Xvt(){}i(Xvt,"Wle");function Kvt(){}i(Kvt,"Zle");function Jvt(){}i(Jvt,"Lke");function Qvt(){}i(Qvt,"ame");function Zvt(){}i(Zvt,"dme");function e2t(){}i(e2t,"gme");function t2t(){}i(t2t,"jme");function r2t(){}i(r2t,"mme");function n2t(){}i(n2t,"pme");function i2t(){}i(i2t,"sme");function a2t(){}i(a2t,"vme");function s2t(){}i(s2t,"yme");function o2t(){}i(o2t,"Bme");function l2t(){}i(l2t,"Eme");function c2t(){}i(c2t,"Hme");function u2t(){}i(u2t,"Kme");function h2t(){}i(h2t,"Nme");function f2t(){}i(f2t,"Qme");function d2t(){}i(d2t,"Tme");function p2t(){}i(p2t,"Wme");function g2t(){}i(g2t,"Zme");function m2t(){}i(m2t,"ane");function y2t(){}i(y2t,"dne");function b2t(){}i(b2t,"gne");function v2t(){}i(v2t,"jne");function w2t(){}i(w2t,"mne");function x2t(){}i(x2t,"pne");function T2t(){}i(T2t,"sne");function k2t(){}i(k2t,"vne");function C2t(){}i(C2t,"yne");function E2t(){}i(E2t,"Bne");function S2t(){}i(S2t,"Ene");function A2t(){}i(A2t,"Hne");function R2t(){}i(R2t,"Kne");function L2t(){}i(L2t,"Nne");function _2t(){}i(_2t,"Qne");function D2t(){}i(D2t,"Tne");function I2t(){}i(I2t,"Wne");function M2t(){}i(M2t,"Zne");function N2t(){}i(N2t,"aoe");function O2t(){}i(O2t,"doe");function P2t(){}i(P2t,"goe");function B2t(){}i(B2t,"joe");function F2t(){}i(F2t,"moe");function $2t(){}i($2t,"poe");function G2t(){}i(G2t,"soe");function j2t(){}i(j2t,"voe");function z2t(){}i(z2t,"yoe");function U2t(){}i(U2t,"Boe");function V2t(){}i(V2t,"Eoe");function W2t(){}i(W2t,"Hoe");function KSe(){}i(KSe,"epe");function H2t(){}i(H2t,"Fse");function q2t(){}i(q2t,"Rse");function vxi(e){}i(vxi,"fYb");function wxi(e){}i(wxi,"W1d");function soe(){QD()}i(soe,"xl");function Y2t(){QDe()}i(Y2t,"rOb");function X2t(){Vp()}i(X2t,"cPb");function K2t(){cDe()}i(K2t,"tPb");function J2t(){j$()}i(J2t,"JPb");function Q2t(){oF()}i(Q2t,"z_b");function Z2t(){xEt()}i(Z2t,"z6b");function ewt(){J5()}i(ewt,"d7b");function twt(){q_t()}i(twt,"d8b");function rwt(){lF()}i(rwt,"l1b");function nwt(){OF()}i(nwt,"M3b");function iwt(){M7()}i(iwt,"xac");function awt(){vv()}i(awt,"nic");function swt(){nq()}i(swt,"Okc");function owt(){iMe()}i(owt,"rvc");function lwt(){VRt()}i(lwt,"sCc");function cwt(){RDt()}i(cwt,"mCc");function uwt(){cLe()}i(uwt,"JCc");function hwt(){zRt()}i(hwt,"LBc");function fwt(){jRt()}i(fwt,"DBc");function dwt(){URt()}i(dwt,"UBc");function pwt(){Bt()}i(pwt,"pyc");function gwt(){wIt()}i(gwt,"pEc");function mwt(){zLt()}i(mwt,"aEc");function ywt(){uLe()}i(ywt,"qDc");function bwt(){bIt()}i(bwt,"JDc");function vwt(){vIt()}i(vwt,"RDc");function wwt(){xIt()}i(wwt,"uGc");function xwt(){qRt()}i(xwt,"wYc");function Twt(){X5()}i(Twt,"EYc");function kwt(){KIt()}i(kwt,"oIc");function Cwt(){gIe()}i(Cwt,"n1c");function Ewt(){wv()}i(Ewt,"L1c");function Swt(){WRt()}i(Swt,"mKc");function Awt(){wPt()}i(Awt,"CKc");function Rwt(){HRt()}i(Rwt,"TMc");function Lwt(){zGt()}i(Lwt,"FOc");function _wt(){L9e()}i(_wt,"lXc");function Dwt(){uc()}i(Dwt,"UXc");function Iwt(){n0()}i(Iwt,"U4c");function Mwt(){SIe()}i(Mwt,"p4c");function Nwt(){_Nt()}i(Nwt,"gZc");function Owt(){$1()}i(Owt,"sZc");function Pwt(){H$()}i(Pwt,"l9c");function Bwt(){jfe()}i(Bwt,"H9c");function Fwt(){Xhe()}i(Fwt,"R9c");function $wt(){lX()}i($wt,"wcd");function JSe(){Ri()}i(JSe,"wjd");function Gwt(){LK()}i(Gwt,"dhd");function jwt(){zX()}i(jwt,"Ikd");function zwt(){$_e()}i(zwt,"Smd");function QSe(){KK()}i(QSe,"Uxd");function ZSe(){que()}i(ZSe,"UWd");function cg(){LAt()}i(cg,"sSd");function Uwt(){LIe()}i(Uwt,"tie");function e5e(e){Ur(e)}i(e5e,"dxb");function Vwt(e){this.a=e}i(Vwt,"Yb");function _H(e){this.a=e}i(_H,"cc");function Wwt(e){this.a=e}i(Wwt,"bf");function Hwt(e){this.a=e}i(Hwt,"hf");function qwt(e){this.a=e}i(qwt,"hh");function t5e(e){this.a=e}i(t5e,"rh");function r5e(e){this.a=e}i(r5e,"zh");function Ywt(e){this.a=e}i(Ywt,"Vh");function ooe(e){this.a=e}i(ooe,"Bi");function Xwt(e){this.a=e}i(Xwt,"Ii");function Kwt(e){this.a=e}i(Kwt,"ij");function Jwt(e){this.a=e}i(Jwt,"oj");function Qwt(e){this.a=e}i(Qwt,"Jj");function Zwt(e){this.c=e}i(Zwt,"yj");function ext(e){this.a=e}i(ext,"yq");function loe(e){this.a=e}i(loe,"cq");function txt(e){this.a=e}i(txt,"rq");function rxt(e){this.a=e}i(rxt,"Aq");function nxt(e){this.a=e}i(nxt,"Pq");function coe(e){this.a=e}i(coe,"Rq");function ixt(e){this.a=e}i(ixt,"Rn");function axt(e){this.a=e}i(axt,"Gk");function uoe(e){this.a=e}i(uoe,"Ok");function sxt(e){this.a=e}i(sxt,"hm");function hoe(e){this.a=e}i(hoe,"gp");function oxt(e){this.a=e}i(oxt,"Fp");function lxt(e){this.a=e}i(lxt,"Fr");function cxt(e){this.a=e}i(cxt,"Fw");function uxt(e){this.a=e}i(uxt,"cw");function hxt(e){this.a=e}i(hxt,"mw");function fxt(e){this.a=e}i(fxt,"mu");function dxt(e){this.a=e}i(dxt,"Zv");function pxt(e){this.a=e}i(pxt,"Zw");function gxt(e){this.a=e}i(gxt,"Aw");function mxt(e){this.a=e}i(mxt,"Kw");function yxt(e){this.a=e}i(yxt,"Yw");function bxt(e){this.a=e}i(bxt,"dx");function vxt(e){this.a=e}i(vxt,"hy");function wxt(e){this.a=e}i(wxt,"Hy");function n5e(e){this.a=e}i(n5e,"FB");function i5e(e){this.a=e}i(i5e,"PB");function DH(e){this.a=e}i(DH,"_B");function qB(e){this.a=e}i(qB,"nC");function a5e(e){this.b=e}i(a5e,"xs");function F2(){this.a=[]}i(F2,"EB");function xxt(e,n){e.a=n}i(xxt,"$Cb");function JKr(e,n){e.a=n}i(JKr,"jYb");function QKr(e,n){e.b=n}i(QKr,"kYb");function ZKr(e,n){e.c=n}i(ZKr,"lYb");function eJr(e,n){e.c=n}i(eJr,"DNb");function tJr(e,n){e.d=n}i(tJr,"ENb");function rJr(e,n){e.d=n}i(rJr,"mYb");function C1(e,n){e.k=n}i(C1,"OYb");function s5e(e,n){e.j=n}i(s5e,"tHb");function nJr(e,n){e.c=n}i(nJr,"vZb");function o5e(e,n){e.c=n}i(o5e,"chc");function l5e(e,n){e.a=n}i(l5e,"bhc");function iJr(e,n){e.a=n}i(iJr,"XFc");function aJr(e,n){e.f=n}i(aJr,"YFc");function sJr(e,n){e.a=n}i(sJr,"wPc");function oJr(e,n){e.b=n}i(oJr,"xPc");function foe(e,n){e.d=n}i(foe,"yPc");function IH(e,n){e.i=n}i(IH,"zPc");function c5e(e,n){e.o=n}i(c5e,"APc");function lJr(e,n){e.r=n}i(lJr,"BPc");function cJr(e,n){e.a=n}i(cJr,"hRc");function uJr(e,n){e.b=n}i(uJr,"iRc");function Txt(e,n){e.e=n}i(Txt,"__c");function hJr(e,n){e.e=n}i(hJr,"U6c");function fJr(e,n){e.f=n}i(fJr,"V6c");function dJr(e,n){e.f=n}i(dJr,"a0c");function u5e(e,n){e.g=n}i(u5e,"b0c");function pJr(e,n){e.f=n}i(pJr,"g7c");function doe(e,n){e.a=n}i(doe,"nrd");function poe(e,n){e.b=n}i(poe,"ord");function gJr(e,n){e.n=n}i(gJr,"OUd");function mJr(e,n){e.a=n}i(mJr,"lde");function yJr(e,n){e.a=n}i(yJr,"ude");function bJr(e,n){e.a=n}i(bJr,"Qde");function vJr(e,n){e.c=n}i(vJr,"mde");function wJr(e,n){e.c=n}i(wJr,"vde");function xJr(e,n){e.c=n}i(xJr,"Rde");function TJr(e,n){e.d=n}i(TJr,"wde");function kJr(e,n){e.d=n}i(kJr,"Sde");function CJr(e,n){e.e=n}i(CJr,"xde");function EJr(e,n){e.e=n}i(EJr,"Tde");function SJr(e,n){e.g=n}i(SJr,"yde");function AJr(e,n){e.f=n}i(AJr,"Ude");function RJr(e,n){e.j=n}i(RJr,"Vde");function LJr(e,n){e.a=n}i(LJr,"Jke");function _Jr(e,n){e.a=n}i(_Jr,"Ske");function DJr(e,n){e.b=n}i(DJr,"Kke");function kxt(e){e.b=e.a}i(kxt,"rgc");function Cxt(e){e.c=e.d.d}i(Cxt,"Jg");function h5e(e){this.a=e}i(h5e,"Jfb");function YB(e){this.a=e}i(YB,"bfb");function f5e(e){this.a=e}i(f5e,"pfb");function XB(e){this.a=e}i(XB,"Bdb");function Ext(e){this.a=e}i(Ext,"aeb");function d5e(e){this.a=e}i(d5e,"leb");function MH(e){this.a=e}i(MH,"lkb");function E1(e){this.a=e}i(E1,"fkb");function p5e(e){this.a=e}i(p5e,"fgb");function yk(e){this.a=e}i(yk,"wjb");function goe(e){this.a=e}i(goe,"wob");function S1(e){this.a=e}i(S1,"qkb");function bk(e){this.a=e}i(bk,"vkb");function moe(e){this.b=e}i(moe,"Zkb");function O8(e){this.b=e}i(O8,"Hob");function iC(e){this.b=e}i(iC,"Yob");function VD(e){this.d=e}i(VD,"Njb");function Ci(e){this.a=e}i(Ci,"Nqb");function Sxt(e){this.a=e}i(Sxt,"eqb");function g5e(e){this.a=e}i(g5e,"jqb");function Axt(e){this.a=e}i(Axt,"jlb");function Rxt(e){this.a=e}i(Rxt,"clb");function Lxt(e){this.a=e}i(Lxt,"prb");function m5e(e){this.a=e}i(m5e,"ksb");function y5e(e){this.a=e}i(y5e,"Dtb");function yoe(e){this.c=e}i(yoe,"Dpb");function ye(e){this.c=e}i(ye,"Kmb");function _xt(e){this.c=e}i(_xt,"Gvb");function b5e(e){this.a=e}i(b5e,"hwb");function v5e(e){this.a=e}i(v5e,"jwb");function w5e(e){this.a=e}i(w5e,"lwb");function x5e(e){this.a=e}i(x5e,"nwb");function P8(e){this.a=e}i(P8,"Hzb");function Dxt(e){this.a=e}i(Dxt,"Rzb");function Ixt(e){this.a=e}i(Ixt,"Tzb");function B8(e){this.a=e}i(B8,"Xzb");function Mxt(e){this.a=e}i(Mxt,"uBb");function Nxt(e){this.a=e}i(Nxt,"wBb");function Oxt(e){this.a=e}i(Oxt,"yBb");function Pxt(e){this.a=e}i(Pxt,"NBb");function Bxt(e){this.a=e}i(Bxt,"rCb");function Fxt(e){this.a=e}i(Fxt,"tCb");function $xt(e){this.a=e}i($xt,"xCb");function Gxt(e){this.a=e}i(Gxt,"fDb");function jxt(e){this.a=e}i(jxt,"jDb");function zxt(e){this.a=e}i(zxt,"$Db");function Uxt(e){this.a=e}i(Uxt,"eEb");function WD(e){this.a=e}i(WD,"jEb");function Vxt(e){this.a=e}i(Vxt,"nFb");function T5e(e){this.a=e}i(T5e,"kHb");function KB(e){this.a=e}i(KB,"sHb");function Wxt(e){this.a=e}i(Wxt,"PKb");function Hxt(e){this.a=e}i(Hxt,"YLb");function k5e(e){this.a=e}i(k5e,"kMb");function qxt(e){this.a=e}i(qxt,"iQb");function Yxt(e){this.a=e}i(Yxt,"wQb");function Xxt(e){this.a=e}i(Xxt,"yQb");function C5e(e){this.a=e}i(C5e,"JQb");function E5e(e){this.a=e}i(E5e,"NQb");function S5e(e){this.a=e}i(S5e,"qWb");function HD(e){this.a=e}i(HD,"XWb");function F8(e){this.a=e}i(F8,"AZb");function Kxt(e){this.a=e}i(Kxt,"DZb");function u5(e){this.a=e}i(u5,"IZb");function A5e(e){this.a=e}i(A5e,"LZb");function Jxt(e){this.a=e}i(Jxt,"e_b");function Qxt(e){this.a=e}i(Qxt,"g_b");function Zxt(e){this.a=e}i(Zxt,"k_b");function eTt(e){this.a=e}i(eTt,"o_b");function tTt(e){this.a=e}i(tTt,"C_b");function rTt(e){this.a=e}i(rTt,"E_b");function nTt(e){this.a=e}i(nTt,"G_b");function iTt(e){this.a=e}i(iTt,"I_b");function aTt(e){this.a=e}i(aTt,"Z0b");function sTt(e){this.a=e}i(sTt,"b1b");function oTt(e){this.a=e}i(oTt,"Y1b");function R5e(e){this.a=e}i(R5e,"x2b");function lTt(e){this.a=e}i(lTt,"D4b");function cTt(e){this.a=e}i(cTt,"J4b");function uTt(e){this.a=e}i(uTt,"M4b");function hTt(e){this.a=e}i(hTt,"P4b");function fTt(e){this.a=e}i(fTt,"q7b");function dTt(e){this.a=e}i(dTt,"s7b");function pTt(e){this.a=e}i(pTt,"j9b");function gTt(e){this.a=e}i(gTt,"m9b");function mTt(e){this.a=e}i(mTt,"Q9b");function NH(e){this.e=e}i(NH,"iXb");function yTt(e){this.a=e}i(yTt,"gac");function bTt(e){this.a=e}i(bTt,"kac");function vTt(e){this.a=e}i(vTt,"kbc");function wTt(e){this.a=e}i(wTt,"Ebc");function xTt(e){this.a=e}i(xTt,"Ibc");function TTt(e){this.a=e}i(TTt,"Gcc");function kTt(e){this.a=e}i(kTt,"Wcc");function CTt(e){this.a=e}i(CTt,"gdc");function ETt(e){this.a=e}i(ETt,"qdc");function STt(e){this.a=e}i(STt,"dec");function ATt(e){this.a=e}i(ATt,"iec");function RTt(e){this.a=e}i(RTt,"_ec");function LTt(e){this.a=e}i(LTt,"bfc");function _Tt(e){this.a=e}i(_Tt,"dfc");function DTt(e){this.a=e}i(DTt,"jfc");function ITt(e){this.a=e}i(ITt,"lfc");function MTt(e){this.a=e}i(MTt,"vfc");function NTt(e){this.a=e}i(NTt,"Bfc");function OTt(e){this.a=e}i(OTt,"Dfc");function PTt(e){this.a=e}i(PTt,"Nfc");function BTt(e){this.a=e}i(BTt,"Jic");function FTt(e){this.a=e}i(FTt,"Lic");function $Tt(e){this.a=e}i($Tt,"Ejc");function GTt(e){this.a=e}i(GTt,"jlc");function jTt(e){this.a=e}i(jTt,"llc");function zTt(e){this.a=e}i(zTt,"inc");function UTt(e){this.a=e}i(UTt,"knc");function VTt(e){this.a=e}i(VTt,"bDc");function WTt(e){this.a=e}i(WTt,"fDc");function HTt(e){this.a=e}i(HTt,"eEc");function qTt(e){this.a=e}i(qTt,"bFc");function YTt(e){this.a=e}i(YTt,"zFc");function XTt(e){this.a=e}i(XTt,"VFc");function KTt(e){this.c=e}i(KTt,"xFc");function JTt(e){this.b=e}i(JTt,"vmc");function QTt(e){this.a=e}i(QTt,"yGc");function ZTt(e){this.a=e}i(ZTt,"aHc");function ekt(e){this.a=e}i(ekt,"cHc");function tkt(e){this.a=e}i(tkt,"eHc");function rkt(e){this.a=e}i(rkt,"hIc");function nkt(e){this.a=e}i(nkt,"qJc");function ikt(e){this.a=e}i(ikt,"uJc");function akt(e){this.a=e}i(akt,"yJc");function skt(e){this.a=e}i(skt,"CJc");function okt(e){this.a=e}i(okt,"GJc");function lkt(e){this.a=e}i(lkt,"IJc");function ckt(e){this.a=e}i(ckt,"LJc");function ukt(e){this.a=e}i(ukt,"UJc");function hkt(e){this.a=e}i(hkt,"LLc");function fkt(e){this.a=e}i(fkt,"RLc");function dkt(e){this.a=e}i(dkt,"VLc");function pkt(e){this.a=e}i(pkt,"hMc");function gkt(e){this.a=e}i(gkt,"lMc");function mkt(e){this.a=e}i(mkt,"sMc");function ykt(e){this.a=e}i(ykt,"AMc");function bkt(e){this.a=e}i(bkt,"GMc");function vkt(e){this.a=e}i(vkt,"XNc");function wkt(e){this.a=e}i(wkt,"gQc");function xkt(e){this.a=e}i(xkt,"lTc");function Tkt(e){this.a=e}i(Tkt,"nTc");function kkt(e){this.a=e}i(kkt,"rTc");function Ckt(e){this.a=e}i(Ckt,"xTc");function A1(e){this.a=e}i(A1,"OTc");function aC(e){this.a=e}i(aC,"RTc");function Ekt(e){this.a=e}i(Ekt,"nUc");function Skt(e){this.a=e}i(Skt,"FUc");function Akt(e){this.a=e}i(Akt,"HUc");function Rkt(e){this.a=e}i(Rkt,"LUc");function Lkt(e){this.a=e}i(Lkt,"NUc");function _kt(e){this.a=e}i(_kt,"PUc");function Dkt(e){this.a=e}i(Dkt,"TUc");function Ikt(e){this.a=e}i(Ikt,"TYc");function Mkt(e){this.a=e}i(Mkt,"RYc");function Nkt(e){this.a=e}i(Nkt,"y$c");function Okt(e){this.a=e}i(Okt,"O7c");function Pkt(e){this.a=e}i(Pkt,"Q7c");function Bkt(e){this.a=e}i(Bkt,"S7c");function Fkt(e){this.a=e}i(Fkt,"U7c");function $kt(e){this.a=e}i($kt,"$7c");function Gkt(e){this.a=e}i(Gkt,"tad");function jkt(e){this.a=e}i(jkt,"Fad");function zkt(e){this.a=e}i(zkt,"Had");function Ukt(e){this.a=e}i(Ukt,"Wbd");function Vkt(e){this.a=e}i(Vkt,"$bd");function Wkt(e){this.a=e}i(Wkt,"Fcd");function Hkt(e){this.a=e}i(Hkt,"Rod");function qkt(e){this.a=e}i(qkt,"Apd");function Ykt(e){this.a=e}i(Ykt,"Epd");function Xkt(e){this.a=e}i(Xkt,"uqd");function Kkt(e){this.a=e}i(Kkt,"vrd");function OH(e){this.a=e}i(OH,"Urd");function Jkt(e){this.a=e}i(Jkt,"xCd");function Qkt(e){this.a=e}i(Qkt,"PCd");function Zkt(e){this.a=e}i(Zkt,"RCd");function e3t(e){this.a=e}i(e3t,"TCd");function t3t(e){this.a=e}i(t3t,"VCd");function r3t(e){this.a=e}i(r3t,"XCd");function n3t(e){this.a=e}i(n3t,"ZCd");function i3t(e){this.a=e}i(i3t,"_Cd");function a3t(e){this.a=e}i(a3t,"bDd");function s3t(e){this.a=e}i(s3t,"dDd");function o3t(e){this.a=e}i(o3t,"lDd");function l3t(e){this.a=e}i(l3t,"pDd");function c3t(e){this.a=e}i(c3t,"rDd");function u3t(e){this.a=e}i(u3t,"tDd");function h3t(e){this.a=e}i(h3t,"vDd");function f3t(e){this.a=e}i(f3t,"xDd");function d3t(e){this.a=e}i(d3t,"zDd");function p3t(e){this.a=e}i(p3t,"HDd");function g3t(e){this.a=e}i(g3t,"NDd");function m3t(e){this.a=e}i(m3t,"PDd");function y3t(e){this.a=e}i(y3t,"RDd");function b3t(e){this.a=e}i(b3t,"TDd");function v3t(e){this.a=e}i(v3t,"VDd");function w3t(e){this.a=e}i(w3t,"dEd");function x3t(e){this.a=e}i(x3t,"fEd");function T3t(e){this.a=e}i(T3t,"hEd");function k3t(e){this.a=e}i(k3t,"jEd");function boe(e){this.a=e}i(boe,"NEd");function ia(e){this.b=e}i(ia,"CEd");function C3t(e){this.f=e}i(C3t,"nsd");function L5e(e){this.a=e}i(L5e,"fFd");function E3t(e){this.a=e}i(E3t,"mNd");function S3t(e){this.a=e}i(S3t,"uNd");function A3t(e){this.a=e}i(A3t,"ANd");function R3t(e){this.a=e}i(R3t,"GNd");function L3t(e){this.a=e}i(L3t,"YNd");function _3t(e){this.a=e}i(_3t,"JYd");function D3t(e){this.a=e}i(D3t,"rZd");function I3t(e){this.a=e}i(I3t,"p_d");function JB(e){this.a=e}i(JB,"p0d");function M3t(e){this.a=e}i(M3t,"y3d");function N3t(e){this.a=e}i(N3t,"V7d");function PH(e){this.a=e}i(PH,"C8d");function BH(e){this.a=e}i(BH,"K8d");function O3t(e){this.b=e}i(O3t,"b$d");function _5e(e){this.c=e}i(_5e,"Y4d");function FH(e){this.e=e}i(FH,"G5d");function P3t(e){this.d=e}i(P3t,"dce");function voe(e){this.a=e}i(voe,"kce");function B3t(e){this.a=e}i(B3t,"zce");function D5e(e){this.a=e}i(D5e,"Hhe");function I5e(e){this.a=e}i(I5e,"Ore");function bx(e){this.e=e}i(bx,"hre");function qD(){this.a=0}i(qD,"xqd");function Pt(){Nle(this)}i(Pt,"lmb");function jn(){Sc(this)}i(jn,"_rb");function woe(){b7t(this)}i(woe,"vFb");function F3t(){}i(F3t,"nYb");function vx(){this.c=xWe}i(vx,"F0d");function $3t(e,n){e.b+=n}i($3t,"rmc");function IJr(e,n){n.Wb(e)}i(IJr,"fie");function MJr(e){return e.a}i(MJr,"fC");function NJr(e){return e.a}i(NJr,"tC");function OJr(e){return e.a}i(OJr,"MC");function PJr(e){return e.a}i(PJr,"LB");function BJr(e){return e.a}i(BJr,"TB");function xe(e){return e.e}i(xe,"Lcb");function FJr(){return null}i(FJr,"$B");function $Jr(){return null}i($Jr,"EC");function GJr(e){throw xe(e)}i(GJr,"Ey");function h5(e){this.a=oi(e)}i(h5,"xy");function G3t(){this.a=this}i(G3t,"c0d");function $2(){c6t.call(this)}i($2,"pz");function jJr(e){e.b.Mf(e.e)}i(jJr,"VJb");function j3t(e){e.b=new Boe}i(j3t,"eUb");function YD(e,n){e.b=n-e.b}i(YD,"m2b");function XD(e,n){e.a=n-e.a}i(XD,"j2b");function z3t(e,n){n.gd(e.a)}i(z3t,"z2c");function zJr(e,n){Bs(n,e)}i(zJr,"fjc");function tn(e,n){e.push(n)}i(tn,"qDb");function U3t(e,n){e.sort(n)}i(U3t,"uDb");function UJr(e,n,o){e.Wd(o,n)}i(UJr,"np");function QB(e,n){e.e=n,n.b=e}i(QB,"Js");function V3t(e){g7(),h0e.je(e)}i(V3t,"$z");function VJr(){h6e(),dEn()}i(VJr,"vdb");function M5e(){$2.call(this)}i(M5e,"Edb");function xoe(){$2.call(this)}i(xoe,"Idb");function N5e(){c6t.call(this)}i(N5e,"Mdb");function W3t(){$2.call(this)}i(W3t,"Reb");function od(){$2.call(this)}i(od,"Rqb");function H3t(){$2.call(this)}i(H3t,"$qb");function ZB(){$2.call(this)}i(ZB,"jfb");function hh(){$2.call(this)}i(hh,"mfb");function f5(){$2.call(this)}i(f5,"Xfb");function hi(){$2.call(this)}i(hi,"thb");function Hl(){$2.call(this)}i(Hl,"Kub");function q3t(){$2.call(this)}i(q3t,"Dbd");function $H(){this.Bb|=256}i($H,"x_d");function Y3t(){this.b=new n5t}i(Y3t,"ZPb");function O5e(){O5e=U,new jn}i(O5e,"nA");function vk(e,n){e.length=n}i(vk,"tDb");function GH(e,n){Nt(e.a,n)}i(GH,"kxb");function WJr(e,n){e9e(e.c,n)}i(WJr,"OKb");function HJr(e,n){ys(e.b,n)}i(HJr,"_Nc");function qJr(e,n){gK(e.a,n)}i(qJr,"jNd");function YJr(e,n){xhe(e.a,n)}i(YJr,"kNd");function $8(e,n){Qi(e.e,n)}i($8,"rXd");function d5(e){MK(e.c,e.b)}i(d5,"Pie");function XJr(e,n){e.kc().Nb(n)}i(XJr,"sj");function P5e(e){this.a=opn(e)}i(P5e,"cfb");function gs(){this.a=new jn}i(gs,"hsb");function X3t(){this.a=new jn}i(X3t,"gAb");function jH(){this.a=new Pt}i(jH,"nxb");function Toe(){this.a=new Pt}i(Toe,"fGb");function B5e(){this.a=new Pt}i(B5e,"kGb");function Vd(){this.a=new Ue}i(Vd,"aGb");function G2(){this.a=new z_t}i(G2,"LGb");function koe(){this.a=new pEt}i(koe,"Ezb");function F5e(){this.a=new IRt}i(F5e,"CEb");function $5e(){this.a=new K6t}i($5e,"JEb");function G5e(){this.a=new Tn}i(G5e,"kNb");function K3t(){this.a=new sLt}i(K3t,"RQb");function J3t(){this.a=new Pt}i(J3t,"iTb");function Q3t(){this.a=new Pt}i(Q3t,"iVb");function j5e(){this.a=new Pt}i(j5e,"nUb");function Z3t(){this.a=new Pt}i(Z3t,"WUb");function e4t(){this.d=new Pt}i(e4t,"BLb");function t4t(){this.a=new gs}i(t4t,"cVb");function r4t(){this.a=new jn}i(r4t,"Y$b");function n4t(){this.b=new jn}i(n4t,"iWb");function i4t(){this.b=new Pt}i(i4t,"DDc");function z5e(){this.e=new Pt}i(z5e,"IKc");function a4t(){this.a=new awt}i(a4t,"abc");function s4t(){this.d=new Pt}i(s4t,"DNc");function o4t(){Pt.call(this)}i(o4t,"ELc");function l4t(){M5e.call(this)}i(l4t,"Gdb");function zH(){jH.call(this)}i(zH,"Mxb");function c4t(){j5e.call(this)}i(c4t,"rUb");function KD(){F3t.call(this)}i(KD,"uYb");function Coe(){KD.call(this)}i(Coe,"yYb");function u4t(){Kq.call(this)}i(u4t,"KHb");function p5(){F3t.call(this)}i(p5,"gZb");function U5e(){p5.call(this)}i(U5e,"jZb");function h4t(){cRt.call(this)}i(h4t,"dOc");function f4t(){cRt.call(this)}i(f4t,"kOc");function d4t(){q5e.call(this)}i(d4t,"NQc");function p4t(){q5e.call(this)}i(p4t,"SQc");function g4t(){q5e.call(this)}i(g4t,"XQc");function m4t(){Y5e.call(this)}i(m4t,"Cad");function JD(){Ebt.call(this)}i(JD,"Wzd");function V5e(){Ebt.call(this)}i(V5e,"jAd");function Vh(){ya.call(this)}i(Vh,"ygd");function y4t(){D4t.call(this)}i(y4t,"$Od");function b4t(){D4t.call(this)}i(b4t,"zPd");function v4t(){jn.call(this)}i(v4t,"ZQd");function w4t(){jn.call(this)}i(w4t,"gRd");function x4t(){jn.call(this)}i(x4t,"rRd");function Eoe(){hIt.call(this)}i(Eoe,"zVd");function T4t(){gs.call(this)}i(T4t,"v_d");function k4t(){$H.call(this)}i(k4t,"N_d");function Soe(){CAe.call(this)}i(Soe,"D2d");function W5e(){jn.call(this)}i(W5e,"_3d");function Aoe(){CAe.call(this)}i(Aoe,"c4d");function Roe(){jn.call(this)}i(Roe,"y8d");function C4t(){jn.call(this)}i(C4t,"P8d");function H5e(){LH.call(this)}i(H5e,"Bke");function E4t(){H5e.call(this)}i(E4t,"Uke");function S4t(){LH.call(this)}i(S4t,"$ke");function A4t(){KSe.call(this)}i(A4t,"Tpe");function q5e(){this.a=new gs}i(q5e,"LQc");function R4t(){this.a=new jn}i(R4t,"YVc");function Y5e(){this.a=new jn}i(Y5e,"yad");function g5(){this.a=new ya}i(g5,"ood");function L4t(){this.a=new Pt}i(L4t,"mWc");function _4t(){this.j=new Pt}i(_4t,"Jbd");function D4t(){this.a=new Ibt}i(D4t,"LOd");function X5e(){this.a=new pyt}i(X5e,"A2c");function I4t(){this.a=new LCt}i(I4t,"k8c");function Loe(){Loe=U,a0e=new N4t}i(Loe,"il");function QD(){QD=U,n0e=new S}i(QD,"wb");function _oe(){_oe=U,i0e=new M4t}i(_oe,"Uk");function M4t(){uoe.call(this,"")}i(M4t,"Vk");function N4t(){uoe.call(this,"")}i(N4t,"jl");function O4t(e){z9t.call(this,e)}i(O4t,"Dd");function P4t(e){z9t.call(this,e)}i(P4t,"Hd");function K5e(e){t5e.call(this,e)}i(K5e,"vh");function J5e(e){zCt.call(this,e)}i(J5e,"Yh");function KJr(e){zCt.call(this,e)}i(KJr,"Oi");function JJr(e){J5e.call(this,e)}i(JJr,"ui");function QJr(e){J5e.call(this,e)}i(QJr,"Mp");function ZJr(e){J5e.call(this,e)}i(ZJr,"As");function B4t(e){cue.call(this,e)}i(B4t,"Dp");function F4t(e){cue.call(this,e)}i(F4t,"Kp");function $4t(e){j5t.call(this,e)}i($4t,"Zp");function G4t(e){b6e.call(this,e)}i(G4t,"wv");function ZD(e){eq.call(this,e)}i(ZD,"Tv");function Q5e(e){eq.call(this,e)}i(Q5e,"Vv");function j4t(e){eq.call(this,e)}i(j4t,"Tw");function ql(e){O8t.call(this,e)}i(ql,"qz");function z4t(e){ql.call(this,e)}i(z4t,"UB");function m5(){qB.call(this,{})}i(m5,"mC");function Doe(e){Q8(),this.a=e}i(Doe,"Vub");function U4t(e){e.b=null,e.c=0}i(U4t,"Sxb");function eQr(e,n){e.e=n,j$t(e,n)}i(eQr,"cz");function tQr(e,n){e.a=n,dbn(e)}i(tQr,"rSb");function Ioe(e,n,o){e.a[n.g]=o}i(Ioe,"HIb");function rQr(e,n,o){Nmn(o,e,n)}i(rQr,"_pd");function nQr(e,n){Itn(n.i,e.n)}i(nQr,"sbc");function V4t(e,n){Qfn(e).Ad(n)}i(V4t,"wyc");function iQr(e,n){return e*e/n}i(iQr,"cOb");function W4t(e,n){return e.g-n.g}i(W4t,"bs");function aQr(e,n){e.a.ec().Kc(n)}i(aQr,"pw");function sQr(e){return new DH(e)}i(sQr,"BC");function oQr(e){return new zk(e)}i(oQr,"DC");function UH(e){ql.call(this,e)}i(UH,"Ddb");function yu(e){ql.call(this,e)}i(yu,"Fdb");function H4t(e){ql.call(this,e)}i(H4t,"Jdb");function Moe(e){O8t.call(this,e)}i(Moe,"Kdb");function VH(e){RLe(),this.a=e}i(VH,"ZGc");function Noe(e){vce(),this.f=e}i(Noe,"Zrd");function qb(e){vce(),this.f=e}i(qb,"Xrd");function q4t(e){RAt(),this.a=e}i(q4t,"Pbe");function G8(e){ql.call(this,e)}i(G8,"Seb");function rn(e){ql.call(this,e)}i(rn,"kfb");function El(e){ql.call(this,e)}i(El,"nfb");function Y4t(e){ql.call(this,e)}i(Y4t,"Wfb");function y5(e){ql.call(this,e)}i(y5,"Yfb");function Kt(e){return Ur(e),e}i(Kt,"Rdb");function He(e){return Ur(e),e}i(He,"Ueb");function eF(e){return Ur(e),e}i(eF,"Web");function Z5e(e){return Ur(e),e}i(Z5e,"Cgb");function lQr(e){return Ur(e),e}i(lQr,"Mgb");function e9(e){return e.b==e.c}i(e9,"xlb");function wk(e){return!!e&&e.b}i(wk,"ayb");function cQr(e){return!!e&&e.k}i(cQr,"LIb");function uQr(e){return!!e&&e.j}i(uQr,"MIb");function oc(e){Ur(e),this.a=e}i(oc,"wnb");function e6e(e){return ow(e),e}i(e6e,"cSb");function t9(e){o7e(e,e.length)}i(t9,"Xmb");function Ly(e){ql.call(this,e)}i(Ly,"uhb");function _y(e){ql.call(this,e)}i(_y,"Ebd");function b5(e){ql.call(this,e)}i(b5,"Fbd");function j0(e){ql.call(this,e)}i(j0,"YAd");function bi(e){ql.call(this,e)}i(bi,"Yoe");function Ooe(e){ql.call(this,e)}i(Ooe,"Zje");function Poe(e){$Ae.call(this,e,0)}i(Poe,"pc");function Boe(){K7e.call(this,12,3)}i(Boe,"Pi");function Foe(){this.a=di(oi(Tu))}i(Foe,"Gb");function X4t(){throw xe(new hi)}i(X4t,"jc");function t6e(){throw xe(new hi)}i(t6e,"Fh");function K4t(){throw xe(new hi)}i(K4t,"Vi");function hQr(){throw xe(new hi)}i(hQr,"Vj");function fQr(){throw xe(new hi)}i(fQr,"Wj");function dQr(){throw xe(new hi)}i(dQr,"dn");function J4t(){J4t=U,WPe=new E}i(J4t,"sz");function r6e(){r6e=U,HPe=new Q}i(r6e,"Sz");function WH(){WH=U,EM=new H}i(WH,"SA");function HH(){HH=U,o0e=new G5t}i(HH,"ns");function Q4t(){Q4t=U,Hqt=new Z}i(Q4t,"WB");function qH(){qH=U,g7()}i(qH,"Iz");function Dy(){XB.call(this,"")}i(Dy,"$gb");function r9(){XB.call(this,"")}i(r9,"_gb");function Yb(){XB.call(this,"")}i(Yb,"lhb");function sC(){XB.call(this,"")}i(sC,"mhb");function n6e(e){yu.call(this,e)}i(n6e,"ohb");function i6e(e){yu.call(this,e)}i(i6e,"Hdb");function z0(e){rn.call(this,e)}i(z0,"dgb");function j8(e){O8.call(this,e)}i(j8,"Tpb");function Z4t(e){j8.call(this,e)}i(Z4t,"$pb");function $oe(e){Vq.call(this,e)}i($oe,"qqb");function pQr(e,n,o){e.c.Cf(n,o)}i(pQr,"jVb");function gQr(e,n,o){n.Ad(e.a[o])}i(gQr,"Mwb");function mQr(e,n,o){n.Ne(e.a[o])}i(mQr,"Rwb");function yQr(e,n){return e.a-n.a}i(yQr,"_db");function bQr(e,n){return e.a-n.a}i(bQr,"keb");function vQr(e,n){return e.a-n.a}i(vQr,"egb");function YH(e,n){return Cue(e,n)}i(YH,"vDb");function Ee(e,n){return BRt(e,n)}i(Ee,"OC");function wQr(e,n){return n in e.a}i(wQr,"hC");function eCt(e){return e.a?e.b:0}i(eCt,"avb");function xQr(e){return e.a?e.b:0}i(xQr,"jvb");function tCt(e,n){return e.f=n,e}i(tCt,"jFb");function TQr(e,n){return e.b=n,e}i(TQr,"hFb");function rCt(e,n){return e.c=n,e}i(rCt,"iFb");function kQr(e,n){return e.g=n,e}i(kQr,"kFb");function a6e(e,n){return e.a=n,e}i(a6e,"bHb");function s6e(e,n){return e.f=n,e}i(s6e,"cHb");function CQr(e,n){return e.k=n,e}i(CQr,"dHb");function o6e(e,n){return e.a=n,e}i(o6e,"zLb");function EQr(e,n){return e.e=n,e}i(EQr,"ALb");function l6e(e,n){return e.e=n,e}i(l6e,"fSb");function SQr(e,n){return e.f=n,e}i(SQr,"gSb");function AQr(e,n){e.b=new Vo(n)}i(AQr,"ZHb");function nCt(e,n){e._d(n),n.$d(e)}i(nCt,"Ks");function RQr(e,n){_f(),n.n.a+=e}i(RQr,"Lec");function LQr(e,n){vv(),Kl(n,e)}i(LQr,"oic");function _Qr(e,n){return e.b-n.b}i(_Qr,"FKc");function DQr(e,n){return e.g-n.g}i(DQr,"tPc");function IQr(e,n){return e.s-n.s}i(IQr,"dSc");function MQr(e,n){return e?0:n-1}i(MQr,"Agc");function iCt(e,n){return e?0:n-1}i(iCt,"KGc");function NQr(e,n){return e?n-1:0}i(NQr,"JGc");function OQr(e,n){return n.pg(e)}i(OQr,"Sbd");function xk(e,n){return e.b=n,e}i(xk,"Scd");function XH(e,n){return e.a=n,e}i(XH,"Rcd");function Tk(e,n){return e.c=n,e}i(Tk,"Tcd");function kk(e,n){return e.d=n,e}i(kk,"Ucd");function Ck(e,n){return e.e=n,e}i(Ck,"Vcd");function c6e(e,n){return e.f=n,e}i(c6e,"Wcd");function n9(e,n){return e.a=n,e}i(n9,"jdd");function z8(e,n){return e.b=n,e}i(z8,"kdd");function U8(e,n){return e.c=n,e}i(U8,"ldd");function ar(e,n){return e.c=n,e}i(ar,"Hed");function vr(e,n){return e.b=n,e}i(vr,"Ged");function sr(e,n){return e.d=n,e}i(sr,"Ied");function or(e,n){return e.e=n,e}i(or,"Jed");function PQr(e,n){return e.f=n,e}i(PQr,"Ked");function lr(e,n){return e.g=n,e}i(lr,"Led");function cr(e,n){return e.a=n,e}i(cr,"Med");function ur(e,n){return e.i=n,e}i(ur,"Ned");function hr(e,n){return e.j=n,e}i(hr,"Oed");function BQr(e,n){return e.j=n,e}i(BQr,"lod");function aCt(e,n){return e.k=n,e}i(aCt,"kod");function xo(){this.a=0,this.b=0}i(xo,"jgd");function sCt(){this.b=0,this.a=0}i(sCt,"jQc");function oCt(e){$7t.call(this,e)}i(oCt,"KHc");function u6e(e){$7t.call(this,e)}i(u6e,"rIc");function KH(e){Zle.call(this,e)}i(KH,"zgd");function Xb(e){Fx.call(this,e)}i(Xb,"xJd");function lCt(e){zce.call(this,e)}i(lCt,"TNd");function cCt(e){zce.call(this,e)}i(cCt,"VNd");function uCt(){mAe.call(this,"")}i(uCt,"cYb");function hCt(){hCt=U,aYt=o1n()}i(hCt,"Msb");function Kb(){Kb=U,yir=bmn()}i(Kb,"zsd");function fCt(){fCt=U,ro=R1n()}i(fCt,"Bsd");function h6e(){h6e=U,$w=rI()}i(h6e,"bHd");function V8(){V8=U,wWe=vmn()}i(V8,"wRd");function dCt(){dCt=U,rar=wmn()}i(dCt,"_je");function f6e(){f6e=U,kc=ubn()}i(f6e,"bke");function ug(e){return e.e&&e.e()}i(ug,"web");function pCt(e,n){return e.c._b(n)}i(pCt,"Oc");function gCt(e,n){return mNt(e.b,n)}i(gCt,"yn");function mCt(e,n){return cZr(e.a,n)}i(mCt,"Ew");function yCt(e,n){e.b=0,Zk(e,n)}i(yCt,"yVd");function FQr(e,n){e.c=n,e.b=!0}i(FQr,"Ide");function oC(e,n){return e.a+=n,e}i(oC,"Ugb");function Goe(e,n){return e.a+=n,e}i(Goe,"Vgb");function Iy(e,n){return e.a+=n,e}i(Iy,"Ygb");function wx(e,n){return e.a+=n,e}i(wx,"chb");function j2(e){return _1(e),e.o}i(j2,"xeb");function d6e(e){vzt(),SEn(this,e)}i(d6e,"Lhb");function bCt(){throw xe(new hi)}i(bCt,"gtb");function vCt(){throw xe(new hi)}i(vCt,"Aob");function wCt(){throw xe(new hi)}i(wCt,"Bob");function xCt(){throw xe(new hi)}i(xCt,"Cob");function TCt(){throw xe(new hi)}i(TCt,"Fob");function kCt(){throw xe(new hi)}i(kCt,"Xob");function JH(e){this.a=new w5(e)}i(JH,"isb");function My(e){this.a=new xce(e)}i(My,"Gzb");function lC(e,n){for(;e.Pe(n););}i(lC,"pwb");function p6e(e,n){for(;e.zd(n););}i(p6e,"gwb");function $Qr(e,n,o){zin(e.a,n,o)}i($Qr,"Z7c");function g6e(e,n,o){e.splice(n,o)}i(g6e,"rDb");function GQr(e,n){return T3n(n,e)}i(GQr,"V9b");function m6e(e,n){return e.d[n.p]}i(m6e,"jJc");function tF(e){return e.b!=e.d.c}i(tF,"kub");function CCt(e){return e.l|e.m<<22}i(CCt,"xD");function joe(e){return e?e.d:null}i(joe,"Vd");function jQr(e){return e?e.g:null}i(jQr,"Mv");function zQr(e){return e?e.i:null}i(zQr,"Rv");function ECt(e,n){return zwn(e,n)}i(ECt,"lbd");function W8(e){return iv(e),e.a}i(W8,"hCb");function SCt(e){e.c?nGt(e):iGt(e)}i(SCt,"qIb");function ACt(){this.b=new OI(Aje)}i(ACt,"CSc");function RCt(){this.b=new OI(uye)}i(RCt,"W7c");function LCt(){this.b=new OI(uye)}i(LCt,"j8c");function _Ct(){this.a=new OI(lze)}i(_Ct,"q_c");function DCt(){this.a=new OI(Ize)}i(DCt,"W2c");function QH(e){this.a=0,this.b=e}i(QH,"C_c");function ICt(){throw xe(new hi)}i(ICt,"COd");function MCt(){throw xe(new hi)}i(MCt,"BOd");function NCt(){throw xe(new hi)}i(NCt,"DOd");function OCt(){throw xe(new hi)}i(OCt,"EOd");function PCt(){throw xe(new hi)}i(PCt,"FOd");function BCt(){throw xe(new hi)}i(BCt,"GOd");function FCt(){throw xe(new hi)}i(FCt,"HOd");function $Ct(){throw xe(new hi)}i($Ct,"IOd");function GCt(){throw xe(new hi)}i(GCt,"JOd");function jCt(){throw xe(new hi)}i(jCt,"KOd");function UQr(){throw xe(new Hl)}i(UQr,"Ose");function VQr(){throw xe(new Hl)}i(VQr,"Pse");function rF(e){this.a=new cEt(e)}i(rF,"Bse");function ZH(e){this.b=y(oi(e),92)}i(ZH,"pf");function y6e(e,n){this.b=e,this.c=n}i(y6e,"Ff");function H8(e,n){this.e=e,this.d=n}i(H8,"me");function zCt(e){SAe(e.dc()),this.c=e}i(zCt,"Wc");function UCt(e,n){this.a=e,this.b=n}i(UCt,"Lj");function VCt(e,n){this.a=e,this.b=n}i(VCt,"fk");function WCt(e,n){this.a=e,this.b=n}i(WCt,"lk");function HCt(e,n){this.a=e,this.b=n}i(HCt,"nk");function qCt(e,n){this.a=e,this.b=n}i(qCt,"vk");function YCt(e,n){this.a=e,this.b=n}i(YCt,"xk");function XCt(e,n){this.a=e,this.b=n}i(XCt,"Ik");function KCt(e,n){this.b=e,this.a=n}i(KCt,"Yo");function xx(e,n){this.g=e,this.i=n}i(xx,"ap");function JCt(e,n){this.b=e,this.a=n}i(JCt,"wp");function nF(e,n){xC.call(this,e,n)}i(nF,"cg");function q8(e,n){nF.call(this,e,n)}i(q8,"eg");function QCt(e,n){this.a=e,this.b=n}i(QCt,"Mq");function ZCt(e,n){this.a=e,this.b=n}i(ZCt,"mr");function eEt(e,n){this.b=e,this.a=n}i(eEt,"hr");function tEt(e,n){this.b=e,this.a=n}i(tEt,"Ir");function si(e,n){this.f=e,this.g=n}i(si,"es");function eq(e){this.b=y(oi(e),50)}i(eq,"Kr");function zoe(e,n){this.a=e,this.b=n}i(zoe,"ju");function rEt(e,n){this.a=e,this.f=n}i(rEt,"yu");function nEt(e){this.a=y(oi(e),16)}i(nEt,"gv");function b6e(e){this.a=y(oi(e),16)}i(b6e,"lv");function iEt(e,n){this.b=e,this.c=n}i(iEt,"xv");function aEt(e){this.a=y(oi(e),92)}i(aEt,"ew");function WQr(e,n){this.a=e,this.b=n}i(WQr,"wx");function sEt(e,n){this.a=e,this.b=n}i(sEt,"ay");function oEt(e,n){return Kc(e.b,n)}i(oEt,"st");function lEt(e,n){return e>n&&n<qI}i(lEt,"Rp");function iF(e){return v0[e]!=-1}i(iF,"Poe");function aF(e){return!e||p7t(e)}i(aF,"rte");function cEt(e){Chn(this,e,_yn())}i(cEt,"Qre");function HQr(e,n){Dfe(wt(e.a),n)}i(HQr,"zZd");function qQr(e,n){Dfe(wt(e.a),n)}i(qQr,"EZd");function v6e(e,n){return e.b.Hc(n)}i(v6e,"Eob");function i9(e,n){return e.b.Gc(n)}i(i9,"Dob");function w6e(e,n){return e.b.Oc(n)}i(w6e,"Gob");function uEt(e,n){return e.c.uc(n)}i(uEt,"ypb");function hEt(e,n){return e.b.Gc(n)}i(hEt,"Xpb");function fEt(e,n){return ta(e.c,n)}i(fEt,"Apb");function YQr(e){return t7t(),e?Wqt:Vqt}i(YQr,"AC");function a9(e){return e.f.c+e.i.c}i(a9,"ljb");function Wd(e,n){return e.a._b(n)}i(Wd,"fsb");function Uoe(e,n){this.a=e,this.b=n}i(Uoe,"uC");function v5(e){this.c=e,y9t(this)}i(v5,"Wrb");function ya(){I5t(this),gf(this)}i(ya,"dub");function Ek(){Ek=U,y0e=new i5t}i(Ek,"$ub");function Y8(){Y8=U,WR=new le}i(Y8,"$nb");function Ny(){Ny=U,Kqt=new ne}i(Ny,"qhb");function tq(){tq=U,oYt=new a5t}i(tq,"ivb");function X8(){X8=U,vBe=new pr}i(X8,"$zb");function XQr(){dQ!=0&&(dQ=0),pQ=-1}i(XQr,"Qz");function dEt(){r0e==null&&(r0e=[])}i(dEt,"ldb");function w5(e){jMt.call(this,e,0)}i(w5,"asb");function pEt(){xce.call(this,null)}i(pEt,"kyb");function x6e(){xue.call(this,null)}i(x6e,"KBb");function z2(){z2=U,L6=new Yt}i(z2,"QBb");function ts(e,n){iv(e),e.a.Nb(n)}i(ts,"YBb");function KQr(e,n){return e.a.Vc(n)}i(KQr,"zzb");function JQr(e,n){return e.a.Wc(n)}i(JQr,"Azb");function Voe(e,n){return e.a.Yc(n)}i(Voe,"Bzb");function Woe(e,n){return e.a.Zc(n)}i(Woe,"Czb");function QQr(e,n){return e.Fc(n),e}i(QQr,"MAb");function ZQr(e,n){return e.a.f=n,e}i(ZQr,"AEb");function gEt(e,n){return e.a.d=n,e}i(gEt,"GEb");function mEt(e,n){return e.a.g=n,e}i(mEt,"HEb");function yEt(e,n){return e.a.j=n,e}i(yEt,"IEb");function Lp(e,n){return e.a.a=n,e}i(Lp,"YFb");function _p(e,n){return e.a.d=n,e}i(_p,"ZFb");function Dp(e,n){return e.a.e=n,e}i(Dp,"$Fb");function Ip(e,n){return e.a.g=n,e}i(Ip,"_Fb");function sF(e,n){return e.a.f=n,e}i(sF,"KGb");function eZr(e){return e.b=!1,e}i(eZr,"nHb");function oF(){oF=U,eKt=new xo}i(oF,"t_b");function T6e(){T6e=U,FXt=new Kr}i(T6e,"dRb");function bEt(){bEt=U,$Xt=new Ki}i(bEt,"QRb");function k6e(){k6e=U,GXt=new L8t}i(k6e,"VRb");function vEt(){vEt=U,yYt=new ce}i(vEt,"PEb");function C6e(){C6e=U,VBe=new Ba}i(C6e,"rTb");function wEt(){wEt=U,XXt=new kt}i(wEt,"MVb");function K8(){K8=U,JXt=new Iu}i(K8,"OWb");function lF(){lF=U,tKt=new O2}i(lF,"e1b");function xEt(){xEt=U,aKt=new Ipt}i(xEt,"v6b");function rq(){rq=U,NZt=new xbt}i(rq,"vyc");function s9(){s9=U,dKt=new b0t}i(s9,"Xdc");function nq(){nq=U,cE=new z0t}i(nq,"Ckc");function iq(){iq=U,hye=new kEt}i(iq,"o8c");function aq(){aq=U,fye=new E6t}i(aq,"y8c");function o9(){o9=U,Mj=new w7t}i(o9,"X9c");function TEt(){yIt(),this.c=new Boe}i(TEt,"$Cc");function kEt(){si.call(this,mVt,0)}i(kEt,"q8c");function tZr(e,n,o,u){qgn(e,u,n,o)}i(tZr,"GKb");function rZr(e,n,o,u){Q2n(u,e,n,o)}i(rZr,"H0b");function nZr(e,n,o,u){RCn(u,e,n,o)}i(nZr,"j6b");function iZr(e,n,o){Al(e.d,n.f,o)}i(iZr,"Hcd");function Sk(e,n){uw(e.c.b,n.c,n)}i(Sk,"zdd");function l9(e,n){uw(e.c.c,n.b,n)}i(l9,"Add");function c9(e,n){return e.a=n.g,e}i(c9,"mcd");function U2(){U2=U,gir=new Cbt}i(U2,"Jrd");function CEt(){CEt=U,kir=new Obt}i(CEt,"lRd");function EEt(){EEt=U,Bir=new w4t}i(EEt,"eRd");function SEt(){SEt=U,Fir=new x4t}i(SEt,"pRd");function Jb(){Jb=U,cp=new W5e}i(Jb,"jRd");function E6e(){E6e=U,vWe=new C4t}i(E6e,"uRd");function sq(){sq=U,Aee=new jn}i(sq,"aQd");function S6e(){S6e=U,_We=new Pt}i(S6e,"e9d");function u9(){u9=U,ebe=new F5t}i(u9,"$0d");function Oy(){Oy=U,sz=new $5t}i(Oy,"w1d");function Hoe(){Hoe=U,Qir=new Vvt}i(Hoe,"Tge");function tl(){tl=U,ear=new Wvt}i(tl,"Aie");function Qb(){Qb=U,Qv=new q2t}i(Qb,"Jse");function oq(){this.q=new d.Date}i(oq,"mB");function A6e(e){this.a=y(oi(e),229)}i(A6e,"qw");function lq(e){return y(e,45).jd()}i(lq,"Sv");function aZr(e){return(e.c+e.a)/2}i(aZr,"hQc");function sZr(e){return e.e.a+e.f.a}i(sZr,"jVc");function oZr(e){return e.e.b+e.f.b}i(oZr,"kVc");function lZr(e){return e.b?e.b:e.a}i(lZr,"$_d");function cZr(e,n){return e.a.a.cc(n)}i(cZr,"zw");function AEt(e,n){return Q0n(e.a,n)}i(AEt,"o0d");function qoe(e,n){return eu(e,n)>0}i(qoe,"Tcb");function Yoe(e,n){return eu(e,n)<0}i(Yoe,"Wcb");function uZr(e,n){return n.split(e)}i(uZr,"wdb");function Xoe(e){return e.b<e.d.gc()}i(Xoe,"Kjb");function REt(e,n){return pce(e.a,n)}i(REt,"arb");function hZr(e,n){ERt.call(this,e,n)}i(hZr,"Ldb");function R6e(e){Bce(),Syn.call(this,e)}i(R6e,"Ix");function L6e(e){Bce(),R6e.call(this,e)}i(L6e,"Jx");function _6e(e){hce(),j5t.call(this,e)}i(_6e,"Mx");function D6e(e,n){k8t(e,e.length,n)}i(D6e,"Vmb");function cF(e,n){Z8t(e,e.length,n)}i(cF,"Wmb");function h9(e,n){return e.a.get(n)}i(h9,"Ssb");function LEt(e,n){return Kc(e.e,n)}i(LEt,"jtb");function I6e(e){return Ur(e),!1}i(I6e,"exb");function _Et(){return hCt(),new aYt}i(_Et,"Qsb");function uF(e){return In(e.a),e.b}i(uF,"_ub");function DEt(e,n){this.b=e,this.a=n}i(DEt,"Arb");function cq(e,n){this.d=e,this.e=n}i(cq,"Hkb");function IEt(e,n){this.a=e,this.b=n}i(IEt,"CCb");function MEt(e,n){this.a=e,this.b=n}i(MEt,"ICb");function NEt(e,n){this.a=e,this.b=n}i(NEt,"OCb");function OEt(e,n){this.a=e,this.b=n}i(OEt,"UCb");function PEt(e,n){this.b=e,this.a=n}i(PEt,"hDb");function x5(e,n){this.a=e,this.b=n}i(x5,"kEb");function uq(e,n){si.call(this,e,n)}i(uq,"kzb");function Koe(e,n){si.call(this,e,n)}i(Koe,"GAb");function Joe(e,n){si.call(this,e,n)}i(Joe,"DHb");function Qoe(e,n){si.call(this,e,n)}i(Qoe,"iIb");function Zoe(e,n){si.call(this,e,n)}i(Zoe,"_Ib");function hq(e,n){si.call(this,e,n)}i(hq,"SLb");function fq(e){Rr.call(this,e,21)}i(fq,"fwb");function BEt(e,n){this.b=e,this.a=n}i(BEt,"fNb");function M6e(e,n){this.b=e,this.a=n}i(M6e,"LFb");function N6e(e,n){this.b=e,this.a=n}i(N6e,"JMb");function O6e(e,n){si.call(this,e,n)}i(O6e,"wOb");function ele(e,n){si.call(this,e,n)}i(ele,"dQb");function hF(e,n){si.call(this,e,n)}i(hF,"ZQb");function P6e(e,n){this.b=e,this.a=n}i(P6e,"FSb");function J8(e,n){this.c=e,this.d=n}i(J8,"KSb");function dq(e,n){si.call(this,e,n)}i(dq,"WSb");function pq(e,n){si.call(this,e,n)}i(pq,"zUb");function FEt(e,n){this.e=e,this.d=n}i(FEt,"vXb");function T5(e,n){si.call(this,e,n)}i(T5,"_Yb");function $Et(e,n){this.a=e,this.b=n}i($Et,"QZb");function B6e(e,n){si.call(this,e,n)}i(B6e,"C2b");function ms(e,n){si.call(this,e,n)}i(ms,"Y5b");function gq(e,n){si.call(this,e,n)}i(gq,"l8b");function f9(e,n,o){e.splice(n,0,o)}i(f9,"oDb");function fZr(e,n,o){e.Mb(o)&&n.Ad(o)}i(fZr,"gr");function dZr(e,n,o){n.Ne(e.a.We(o))}i(dZr,"ECb");function pZr(e,n,o){n.Bd(e.a.Xe(o))}i(pZr,"KCb");function gZr(e,n,o){n.Ad(e.a.Kb(o))}i(gZr,"QCb");function mZr(e,n){return dh(e.c,n)}i(mZr,"KRb");function yZr(e,n){return dh(e.e,n)}i(yZr,"vEb");function GEt(e,n){this.a=e,this.b=n}i(GEt,"gcc");function jEt(e,n){this.a=e,this.b=n}i(jEt,"Ycc");function zEt(e,n){this.a=e,this.b=n}i(zEt,"wdc");function UEt(e,n){this.a=e,this.b=n}i(UEt,"ydc");function VEt(e,n){this.a=e,this.b=n}i(VEt,"Idc");function WEt(e,n){this.a=e,this.b=n}i(WEt,"Udc");function HEt(e,n){this.a=e,this.b=n}i(HEt,"Ffc");function qEt(e,n){this.a=e,this.b=n}i(qEt,"Pfc");function YEt(e,n){this.b=e,this.a=n}i(YEt,"idc");function XEt(e,n){this.b=e,this.a=n}i(XEt,"Kdc");function KEt(e,n){this.b=e,this.a=n}i(KEt,"vkc");function JEt(e,n){this.b=n,this.c=e}i(JEt,"Dgc");function mq(e,n){si.call(this,e,n)}i(mq,"qhc");function fF(e,n){si.call(this,e,n)}i(fF,"Ohc");function F6e(e,n){si.call(this,e,n)}i(F6e,"Onc");function d9(e,n){si.call(this,e,n)}i(d9,"Gnc");function yq(e,n){si.call(this,e,n)}i(yq,"Znc");function tle(e,n){si.call(this,e,n)}i(tle,"wic");function rle(e,n){si.call(this,e,n)}i(rle,"ioc");function cC(e,n){si.call(this,e,n)}i(cC,"yoc");function $6e(e,n){si.call(this,e,n)}i($6e,"Ioc");function nle(e,n){si.call(this,e,n)}i(nle,"Roc");function p9(e,n){si.call(this,e,n)}i(p9,"cpc");function G6e(e,n){si.call(this,e,n)}i(G6e,"kpc");function g9(e,n){si.call(this,e,n)}i(g9,"wpc");function m9(e,n){si.call(this,e,n)}i(m9,"Ipc");function Ak(e,n){si.call(this,e,n)}i(Ak,"Ypc");function ile(e,n){si.call(this,e,n)}i(ile,"fqc");function ale(e,n){si.call(this,e,n)}i(ale,"oqc");function sle(e,n){si.call(this,e,n)}i(sle,"xqc");function j6e(e,n){si.call(this,e,n)}i(j6e,"Fqc");function dF(e,n){si.call(this,e,n)}i(dF,"bsc");function z6e(e,n){si.call(this,e,n)}i(z6e,"jsc");function uC(e,n){si.call(this,e,n)}i(uC,"Syc");function Rk(e,n){si.call(this,e,n)}i(Rk,"Szc");function ole(e,n){si.call(this,e,n)}i(ole,"czc");function bq(e,n){si.call(this,e,n)}i(bq,"nzc");function pF(e,n){si.call(this,e,n)}i(pF,"Azc");function lle(e,n){si.call(this,e,n)}i(lle,"AAc");function vq(e,n){si.call(this,e,n)}i(vq,"aAc");function U6e(e,n){si.call(this,e,n)}i(U6e,"iAc");function cle(e,n){si.call(this,e,n)}i(cle,"rAc");function ule(e,n){si.call(this,e,n)}i(ule,"JAc");function hle(e,n){si.call(this,e,n)}i(hle,"bBc");function fle(e,n){si.call(this,e,n)}i(fle,"kBc");function dle(e,n){si.call(this,e,n)}i(dle,"tBc");function wq(e,n){si.call(this,e,n)}i(wq,"lHc");function QEt(e,n){this.b=e,this.a=n}i(QEt,"NJc");function V6e(e,n){si.call(this,e,n)}i(V6e,"cKc");function ZEt(e,n){this.a=e,this.b=n}i(ZEt,"zLc");function eSt(e,n){this.a=e,this.b=n}i(eSt,"PLc");function tSt(e,n){this.a=e,this.b=n}i(tSt,"uMc");function W6e(e,n){si.call(this,e,n)}i(W6e,"gNc");function H6e(e,n){si.call(this,e,n)}i(H6e,"oNc");function rSt(e,n){this.a=e,this.b=n}i(rSt,"vNc");function bZr(e,n){return a7(),n!=e}i(bZr,"oJc");function ple(e){return bvn(e,e.c),e}i(ple,"WRb");function vZr(e){d.clearTimeout(e)}i(vZr,"Pz");function q6e(e,n){si.call(this,e,n)}i(q6e,"RPc");function Y6e(e,n){si.call(this,e,n)}i(Y6e,"PRc");function nSt(e,n){this.a=e,this.b=n}i(nSt,"YRc");function iSt(e,n){this.a=e,this.b=n}i(iSt,"$Rc");function aSt(e,n){this.b=e,this.d=n}i(aSt,"gOc");function sSt(e,n){this.a=e,this.b=n}i(sSt,"pTc");function oSt(e,n){this.b=e,this.a=n}i(oSt,"rUc");function xq(e,n){si.call(this,e,n)}i(xq,"JSc");function Tx(e,n){si.call(this,e,n)}i(Tx,"GVc");function gle(e,n){si.call(this,e,n)}i(gle,"vWc");function Tq(e,n){si.call(this,e,n)}i(Tq,"cYc");function X6e(e,n){si.call(this,e,n)}i(X6e,"kYc");function lSt(e,n){this.b=e,this.a=n}i(lSt,"k$c");function cSt(e,n){this.b=e,this.a=n}i(cSt,"i$c");function uSt(e,n){this.b=e,this.a=n}i(uSt,"O$c");function hSt(e,n){this.b=e,this.a=n}i(hSt,"Q$c");function K6e(e,n){si.call(this,e,n)}i(K6e,"i_c");function gF(e,n){si.call(this,e,n)}i(gF,"S_c");function J6e(e,n){si.call(this,e,n)}i(J6e,"J0c");function mle(e,n){si.call(this,e,n)}i(mle,"T0c");function kq(e,n){si.call(this,e,n)}i(kq,"W1c");function yle(e,n){si.call(this,e,n)}i(yle,"e2c");function ble(e,n){si.call(this,e,n)}i(ble,"R2c");function Cq(e,n){si.call(this,e,n)}i(Cq,"k3c");function vle(e,n){si.call(this,e,n)}i(vle,"U3c");function Q6e(e,n){si.call(this,e,n)}i(Q6e,"w5c");function wle(e,n){si.call(this,e,n)}i(wle,"$5c");function xle(e,n){si.call(this,e,n)}i(xle,"z6c");function mF(e,n){si.call(this,e,n)}i(mF,"p7c");function Tle(e,n){si.call(this,e,n)}i(Tle,"d8c");function Z6e(e,n){si.call(this,e,n)}i(Z6e,"J8c");function yF(e,n){si.call(this,e,n)}i(yF,"U8c");function eAe(e,n){si.call(this,e,n)}i(eAe,"iad");function tAe(e,n){this.a=e,this.b=n}i(tAe,"h6c");function fSt(e,n){this.a=e,this.b=n}i(fSt,"sbd");function dSt(e,n){this.a=e,this.b=n}i(dSt,"acd");function rAe(e,n){return dh(e.g,n)}i(rAe,"Jcd");function wZr(e,n){return dh(n.b,e)}i(wZr,"hlc");function xZr(e,n){return-e.b.$e(n)}i(xZr,"Dad");function bF(e,n){si.call(this,e,n)}i(bF,"Wed");function k5(e,n){si.call(this,e,n)}i(k5,"ifd");function y9(e,n){si.call(this,e,n)}i(y9,"Mgd");function b9(e,n){si.call(this,e,n)}i(b9,"phd");function vF(e,n){si.call(this,e,n)}i(vF,"Hjd");function Eq(e,n){si.call(this,e,n)}i(Eq,"Rjd");function kle(e,n){si.call(this,e,n)}i(kle,"$jd");function Sq(e,n){si.call(this,e,n)}i(Sq,"ikd");function v9(e,n){si.call(this,e,n)}i(v9,"ukd");function Cle(e,n){si.call(this,e,n)}i(Cle,"Rkd");function Aq(e,n){si.call(this,e,n)}i(Aq,"ald");function hC(e,n){si.call(this,e,n)}i(hC,"pld");function wF(e,n){si.call(this,e,n)}i(wF,"Bld");function w9(e,n){si.call(this,e,n)}i(w9,"Pld");function x9(e,n){si.call(this,e,n)}i(x9,"_ld");function Ele(e,n){si.call(this,e,n)}i(Ele,"_md");function xF(e,n){si.call(this,e,n)}i(xF,"Fmd");function Rq(e,n){si.call(this,e,n)}i(Rq,"jnd");function fC(e,n){si.call(this,e,n)}i(fC,"ynd");function Sle(e,n){si.call(this,e,n)}i(Sle,"Hnd");function Ale(e,n){si.call(this,e,n)}i(Ale,"Rnd");function Lq(e,n){si.call(this,e,n)}i(Lq,"hpd");function pSt(e,n){this.a=e,this.b=n}i(pSt,"Gpd");function gSt(e,n){this.a=e,this.b=n}i(gSt,"Ipd");function mSt(e,n){this.a=e,this.b=n}i(mSt,"Kpd");function Lt(e,n){this.a=e,this.b=n}i(Lt,"lgd");function ySt(e,n){this.a=e,this.b=n}i(ySt,"oqd");function bSt(e,n){this.a=e,this.b=n}i(bSt,"qqd");function vSt(e,n){this.a=e,this.b=n}i(vSt,"sqd");function Ko(e,n){this.a=e,this.b=n}i(Ko,"prd");function _q(e,n){si.call(this,e,n)}i(_q,"Wqd");function wSt(e,n){this.a=e,this.b=n}i(wSt,"tCd");function xSt(e,n){this.a=e,this.b=n}i(xSt,"vCd");function TSt(e,n){this.a=e,this.b=n}i(TSt,"zCd");function kSt(e,n){this.a=e,this.b=n}i(kSt,"BCd");function CSt(e,n){this.a=e,this.b=n}i(CSt,"HCd");function ESt(e,n){this.a=e,this.b=n}i(ESt,"JCd");function SSt(e,n){this.b=e,this.a=n}i(SSt,"LCd");function ASt(e,n){this.b=e,this.a=n}i(ASt,"NCd");function RSt(e,n){this.b=e,this.a=n}i(RSt,"fDd");function LSt(e,n){this.b=e,this.a=n}i(LSt,"hDd");function _St(e,n){this.a=e,this.b=n}i(_St,"jDd");function DSt(e,n){this.a=e,this.b=n}i(DSt,"nDd");function ISt(e,n){this.a=e,this.b=n}i(ISt,"FDd");function MSt(e,n){this.a=e,this.b=n}i(MSt,"JDd");function C5(e,n){si.call(this,e,n)}i(C5,"uEd");function NSt(e,n){this.f=e,this.c=n}i(NSt,"LGd");function OSt(){Jce(),this.b=new gs}i(OSt,"LNc");function PSt(){UK(),this.a=new gs}i(PSt,"WOc");function BSt(){tY(),this.a=new o8e}i(BSt,"U8b");function Dq(e,n){this.a=e,this.b=n}i(Dq,"XRd");function FSt(e,n){this.a=e,this.b=n}i(FSt,"$Rd");function nAe(e,n){this.i=e,this.g=n}i(nAe,"QLd");function iAe(e,n){this.d=e,this.e=n}i(iAe,"xXd");function $St(e,n){this.a=e,this.b=n}i($St,"O3d");function GSt(e,n){this.a=e,this.b=n}i(GSt,"k5d");function jSt(e,n){this.d=e,this.b=n}i(jSt,"nde");function zSt(e,n){this.e=e,this.a=n}i(zSt,"Jde");function aAe(e,n){e.i=null,LX(e,n)}i(aAe,"LUd");function TZr(e,n){e&&Oi(nz,e,n)}i(TZr,"ZGd");function USt(e,n){return _he(e.a,n)}i(USt,"XNd");function Iq(e){return O$(e.c,e.b)}i(Iq,"Qie");function Lk(e){return typeof e===g6}i(Lk,"SD");function _k(e){return typeof e===sMe}i(_k,"TD");function lo(e){return typeof e===bde}i(lo,"VD");function Qe(e){return e??null}i(Qe,"XD");function Mq(e){return N9(e==null),e}i(Mq,"ZD");function Yl(e){return e?e.kd():null}i(Yl,"Wd");function VSt(e){return Jh(e),e.d.gc()}i(VSt,"ig");function Zb(e,n){return e.Pd().Xb(n)}i(Zb,"Nm");function Nq(e,n){return Khn(e.Jc(),n)}i(Nq,"Wq");function kZr(e,n){Oun(new Sn(e),n)}i(kZr,"pte");function CZr(e,n,o){GPt(n,Sfe(e,o))}i(CZr,"SBd");function EZr(e,n,o){GPt(n,Sfe(e,o))}i(EZr,"TBd");function WSt(e,n){Sun(e.a,y(n,12))}i(WSt,"KJc");function HSt(e,n){this.a=e,this.b=n}i(HSt,"Oje");function TF(e,n){this.b=e,this.c=n}i(TF,"Rie");function T9(e,n){return eu(e,n)==0}i(T9,"Rcb");function Oq(e,n){return eu(e,n)>=0}i(Oq,"Ucb");function k9(e,n){return eu(e,n)!=0}i(k9,"$cb");function sAe(e,n){return e.a+=""+n,e}i(sAe,"dhb");function SZr(e){return""+(Ur(e),e)}i(SZr,"Zeb");function qSt(e,n){e.q.setTime(tw(n))}i(qSt,"kB");function C9(e,n){return e.a+=""+n,e}i(C9,"Wgb");function ml(e,n){return e.a+=""+n,e}i(ml,"Xgb");function E9(e,n){return e.a+=""+n,e}i(E9,"ehb");function qc(e,n){return e.a+=""+n,e}i(qc,"ghb");function Li(e,n){return e.a+=""+n,e}i(Li,"hhb");function oAe(e){return _r(e,0),null}i(oAe,"Snb");function YSt(e){Sc(this),sI(this,e)}i(YSt,"bsb");function XSt(e,n){a7e.call(this,e,n)}i(XSt,"wwb");function KSt(e,n){a7e.call(this,e,n)}i(KSt,"Awb");function Pq(e,n){a7e.call(this,e,n)}i(Pq,"Ewb");function JSt(){q7e(),uRt.call(this)}i(JSt,"ECc");function QSt(){q7e(),uRt.call(this)}i(QSt,"CCc");function ZSt(){H7e(),Z8e.call(this)}i(ZSt,"dCc");function e5t(){e5t=U,Qer=ci(XIt())}i(e5t,"LVc");function t5t(){t5t=U,KYt=ci($he())}i(t5t,"UJb");function r5t(){r5t=U,iKt=ci(P$t())}i(r5t,"b6b");function n5t(){this.b=new w5(r3(12))}i(n5t,"vt");function i5t(){this.b=0,this.a=!1}i(i5t,"cvb");function a5t(){this.b=0,this.a=!1}i(a5t,"kvb");function dC(e,n){Ha(e,n,e.a,e.a.a)}i(dC,"Utb");function Uo(e,n){Ha(e,n,e.c.b,e.c)}i(Uo,"Vtb");function Fi(e,n){sq(),Oi(Aee,e,n)}i(Fi,"cQd");function br(e,n){Da.call(this,e,n)}i(br,"EEd");function Rle(e,n){Pk.call(this,e,n)}i(Rle,"PLd");function pC(e,n){nAe.call(this,e,n)}i(pC,"$Yd");function s5t(e,n){SF.call(this,e,n)}i(s5t,"hge");function Lle(e,n){R7.call(this,e,n)}i(Lle,"dge");function S9(e){this.a=e,soe.call(this)}i(S9,"Bl");function o5t(e){this.a=e,soe.call(this)}i(o5t,"Hl");function hg(e){return e.a=0,e.b=0,e}i(hg,"cgd");function l5t(e,n){return e.a=n.g+1,e}i(l5t,"lcd");function AZr(e,n){return e.j[n.p]==2}i(AZr,"YKc");function _le(e,n){return Yd(e.a,0,n)}i(_le,"Adb");function RZr(e,n){return ha(e.a,n.a)}i(RZr,"afb");function lAe(e,n){return Yc(e.a,n.a)}i(lAe,"ofb");function LZr(e,n){return K8t(e.a,n.a)}i(LZr,"Ifb");function c5t(e,n){return Qe(e)===Qe(n)}i(c5t,"mb");function U0(e,n){return e.indexOf(n)}i(U0,"Agb");function _Zr(e){return oi(e),new S9(e)}i(_Zr,"Yq");function u5t(e){return Mu(e.l,e.m,e.h)}i(u5t,"$C");function E5(e){return Po((Ur(e),e))}i(E5,"Xeb");function DZr(e){return Po((Ur(e),e))}i(DZr,"Yeb");function h5t(e,n){return Yc(e.g,n.g)}i(h5t,"hJb");function Gl(e){return typeof e===sMe}i(Gl,"Vcb");function IZr(e){return e==pT||e==D3}i(IZr,"VSb");function MZr(e){return e==pT||e==I3}i(MZr,"USb");function Bq(e){return e<10?"0"+e:""+e}i(Bq,"sB");function cAe(e){return Jl(e.b.b,e,0)}i(cAe,"x$b");function uAe(e,n){w7(e,0,e.length,n)}i(uAe,"hnb");function f5t(e,n){return Nt(e.a,n),n}i(f5t,"Lxb");function NZr(e,n){return _f(),n.a+=e}i(NZr,"Hec");function OZr(e,n){return _f(),n.a+=e}i(OZr,"Jec");function PZr(e,n){return _f(),n.c+=e}i(PZr,"Iec");function BZr(e,n){return Nt(e.c,n),e}i(BZr,"dbd");function hAe(e,n){return Pf(e.a,n),e}i(hAe,"Kbd");function d5t(e){this.a=_Et(),this.b=e}i(d5t,"Bsb");function p5t(e){this.a=_Et(),this.b=e}i(p5t,"Vsb");function Vo(e){this.a=e.a,this.b=e.b}i(Vo,"mgd");function Om(){m5e.call(this,new lv)}i(Om,"Ptb");function g5t(){fY.call(this,0,0,0,0)}i(g5t,"vYb");function S5(){Op.call(this,0,0,0,0)}i(S5,"Ofd");function Fq(e){return Pf(new us,e)}i(Fq,"qcd");function m5t(e){return Pce(y(e,125))}i(m5t,"kqd");function hf(e){return e.sh()&&e.th()}i(hf,"itd");function gC(e){return e!=m0&&e!=Hv}i(gC,"Old");function R1(e){return e==Il||e==Bl}i(R1,"Ejd");function mC(e){return e==Ed||e==p0}i(mC,"Fjd");function y5t(e){return e==kE||e==TE}i(y5t,"mzc");function FZr(e,n){return ha(n.f,e.f)}i(FZr,"w3c");function $Zr(e,n){return Yc(e.g,n.g)}i($Zr,"Ulc");function b5t(e,n){return new R7(n,e)}i(b5t,"jee");function GZr(e,n){return new R7(n,e)}i(GZr,"kee");function Dle(e,n,o){wX(e,n),xX(e,o)}i(Dle,"qvd");function kx(e,n,o){Gx(e,n),$x(e,o)}i(kx,"Xvd");function ld(e,n,o){Xh(e,n),Kh(e,o)}i(ld,"Zvd");function kF(e,n,o){LC(e,n),_C(e,o)}i(kF,"axd");function CF(e,n,o){DC(e,n),IC(e,o)}i(CF,"hxd");function Ile(e,n){P7(e,n),C7(e,e.D)}i(Ile,"VVd");function Mle(e){NSt.call(this,e,!0)}i(Mle,"QGd");function v5t(e,n,o){qAe.call(this,e,n,o)}i(v5t,"bh");function w5t(){uq.call(this,"Head",1)}i(w5t,"pzb");function x5t(){uq.call(this,"Tail",3)}i(x5t,"uzb");function ev(e){J0(),Zhn.call(this,e)}i(ev,"oib");function Cx(e){fY.call(this,e,e,e,e)}i(Cx,"hZb");function Nle(e){e.c=tt(Fs,Fr,1,0,5,1)}i(Nle,"Zlb");function T5t(e){Zc(e.Qf(),new T5e(e))}i(T5t,"gHb");function yC(e){return e!=null?Aa(e):0}i(yC,"Nub");function jZr(e,n){return Qk(n,qg(e))}i(jZr,"Z$b");function zZr(e,n){return Qk(n,qg(e))}i(zZr,"$$b");function UZr(e,n){return e[e.length]=n}i(UZr,"pBb");function VZr(e,n){return e[e.length]=n}i(VZr,"sBb");function WZr(e,n){return SX(Mce(e.f),n)}i(WZr,"bBd");function HZr(e,n){return SX(Mce(e.n),n)}i(HZr,"cBd");function qZr(e,n){return SX(Mce(e.p),n)}i(qZr,"dBd");function fAe(e){return ein(e.b.Jc(),e.a)}i(fAe,"cr");function YZr(e){return e==null?0:Aa(e)}i(YZr,"rMd");function To(e,n){Da.call(this,e.b,n)}i(To,"FEd");function XZr(e,n){Zn(Pc(e.a),KRt(n))}i(XZr,"F$d");function KZr(e,n){Zn(Yh(e.a),JRt(n))}i(KZr,"O2d");function JZr(e,n,o){ld(o,o.i+e,o.j+n)}i(JZr,"aqd");function k5t(e,n,o){as(e.c[n.g],n.g,o)}i(k5t,"VAc");function QZr(e,n,o){y(e.c,72).Ei(n,o)}i(QZr,"MTd");function Ole(e,n,o){return as(e,n,o),o}i(Ole,"aLd");function ZZr(e,n){c0||(e.b=n)}i(ZZr,"uAb");function dAe(){dAe=U,O5e(),qPe=new jn}i(dAe,"OA");function C5t(){C5t=U,k1e=new bI($ye)}i(C5t,"oOc");function Wg(){Wg=U,d.Math.log(2)}i(Wg,"Sy");function cd(){cd=U,o1=(CEt(),kir)}i(cd,"F5d");function fi(){fi=U,new E5t,new Pt}i(fi,"Ube");function E5t(){new jn,new jn,new jn}i(E5t,"Vbe");function een(){throw xe(new Ly(Dqt))}i(een,"Qse");function ten(){throw xe(new Ly(_qt))}i(ten,"Nse");function ren(){throw xe(new Ly(_qt))}i(ren,"ate");function nen(){throw xe(new Ly(Dqt))}i(nen,"dte");function A9(e){Xi(),bx.call(this,e)}i(A9,"vse");function S5t(e){this.a=e,_8e.call(this,e)}i(S5t,"Sg");function Ple(e){this.a=e,ZH.call(this,e)}i(Ple,"Ap");function Ble(e){this.a=e,ZH.call(this,e)}i(Ble,"Hp");function zs(e,n){dce(e.c,e.c.length,n)}i(zs,"jmb");function Xl(e){return e.a<e.c.c.length}i(Xl,"Hmb");function pAe(e){return e.a<e.c.a.length}i(pAe,"Urb");function A5t(e,n){return e.a?e.b:n.Ue()}i(A5t,"bvb");function Yc(e,n){return e<n?-1:e>n?1:0}i(Yc,"rfb");function gAe(e,n){return eu(e,n)>0?e:n}i(gAe,"Ufb");function Mu(e,n,o){return{l:e,m:n,h:o}}i(Mu,"_C");function ien(e,n){e.a!=null&&WSt(n,e.a)}i(ien,"Tub");function aen(e){Bo(e,null),mo(e,null)}i(aen,"Lbc");function sen(e,n,o){return Oi(e.g,o,n)}i(sen,"zec");function oen(e,n){oi(n),kC(e).Ic(new $)}i(oen,"Hh");function R5t(){cfe(),this.a=new OI(UBe)}i(R5t,"HQb");function $q(e){this.b=e,this.a=new Pt}i($q,"rEb");function L5t(e){this.b=new Gn,this.a=e}i(L5t,"yMb");function mAe(e){s8e.call(this),this.a=e}i(mAe,"dYb");function _5t(e){B7e.call(this),this.b=e}i(_5t,"PNb");function D5t(){uq.call(this,"Range",2)}i(D5t,"rzb");function Gq(e){e.j=tt(sBe,Dt,325,0,0,1)}i(Gq,"Yy");function I5t(e){e.a=new Be,e.c=new Be}i(I5t,"Stb");function M5t(e){e.a=new jn,e.e=new jn}i(M5t,"Jlc");function N5t(e){Zce(e,null),eue(e,null)}i(N5t,"JPc");function len(e,n,o){return U4n(e,n,o),o}i(len,"$Kc");function cen(e,n){return Df(),n.n.b+=e}i(cen,"oLc");function bC(e,n,o){return G_e(n,o,e.c)}i(bC,"SAc");function uen(e,n,o){return Oi(e.k,o,n)}i(uen,"UKc");function hen(e,n){return Oi(e.a,n.a,n)}i(hen,"xad");function O5t(e,n){return W4n(e.a,n,null)}i(O5t,"n0d");function yAe(e,n){return Xe(Jr(e.i,n))}i(yAe,"nBd");function bAe(e,n){return Xe(Jr(e.j,n))}i(bAe,"oBd");function R9(e,n){return t4n(e.c,e.b,n)}i(R9,"Nie");function vAe(e){return new Lt(e.c,e.d)}i(vAe,"Kfd");function fen(e){return new Lt(e.c,e.d)}i(fen,"Lfd");function Wo(e){return new Lt(e.a,e.b)}i(Wo,"Xfd");function Ge(e,n){return e!=null&&Uhe(e,n)}i(Ge,"RD");function Fle(e,n){return Dfn(e.Jc(),n)!=-1}i(Fle,"Xq");function jq(e){return e.Ob()?e.Pb():null}i(jq,"yr");function den(e,n){return new i6t(e.Jc(),n)}i(den,"Iv");function pen(e,n){e.q.setHours(n),GI(e,n)}i(pen,"gB");function gen(e,n,o){e.c._c(n,y(o,136))}i(gen,"dMd");function men(e,n,o){e.c.Si(n,y(o,136))}i(men,"vMd");function P5t(e,n){Kn(e),e.Fc(y(n,16))}i(P5t,"uXd");function wAe(e,n){return e.a.Ac(n)!=null}i(wAe,"gsb");function B5t(e){return Jd(e,0,e.length)}i(B5t,"Rgb");function F5t(){SF.call(this,null,null)}i(F5t,"fge");function $5t(){qq.call(this,null,null)}i($5t,"jge");function G5t(){si.call(this,"INSTANCE",0)}i(G5t,"os");function j5t(e){this.a=(Ir(),new j8(e))}i(j5t,"ao");function yen(e){this.b=(Ir(),new yoe(e))}i(yen,"Vp");function xAe(e){this.a=e,jn.call(this)}i(xAe,"Mie");function vC(){this.a=tt(Fs,Fr,1,8,5,1)}i(vC,"Glb");function ben(e,n,o,u){as(e.a[n.g],o.g,u)}i(ben,"YHb");function $le(e,n,o){return e.a[n.g][o.g]}i($le,"THb");function Hg(e,n){return e.a[n.c.p][n.p]}i(Hg,"JFc");function ven(e,n){return e.c[n.c.p][n.p]}i(ven,"lFc");function wen(e,n){return e.e[n.c.p][n.p]}i(wen,"UEc");function xen(e,n){return e.j[n.p]=S2n(n)}i(xen,"XKc");function Ten(e,n){return SRe(e.f,n.Og())}i(Ten,"sed");function ken(e,n){return He(Xe(n.a))<=e}i(ken,"fUc");function Cen(e,n){return He(Xe(n.a))>=e}i(Cen,"gUc");function Gle(e,n){return e.a.Ac(n)!=null}i(Gle,"Dzb");function Een(e,n){return e.a<Qle(n)?-1:1}i(Een,"wqd");function A5(e,n){return e.a*n.a+e.b*n.b}i(A5,"Zfd");function Sen(e,n){return SRe(e.b,n.Og())}i(Sen,"zEd");function Aen(e,n,o){return o?n!=0:n!=e-1}i(Aen,"REc");function z5t(e,n,o){e.a=n^1502,e.b=o^Xde}i(z5t,"Tvb");function Ren(e,n,o){return e.a=n,e.b=o,e}i(Ren,"fgd");function L1(e,n){return e.a*=n,e.b*=n,e}i(L1,"dgd");function Nt(e,n){return tn(e.c,n),!0}i(Nt,"_lb");function L9(e,n,o){return as(e.g,n,o),o}i(L9,"bGd");function U5t(e,n){e.c&&(G8e(n),bRt(n))}i(U5t,"mtb");function zq(e,n,o){Es.call(this,e,n,o)}i(zq,"mYd");function Es(e,n,o){$F.call(this,e,n,o)}i(Es,"iYd");function TAe(e,n,o){nY.call(this,e,n,o)}i(TAe,"nge");function V5t(e,n,o){nY.call(this,e,n,o)}i(V5t,"rge");function W5t(e,n,o){TAe.call(this,e,n,o)}i(W5t,"tge");function fh(e,n,o){Es.call(this,e,n,o)}i(fh,"vge");function H5t(e,n,o){zq.call(this,e,n,o)}i(H5t,"yge");function kAe(e,n,o){$F.call(this,e,n,o)}i(kAe,"Ige");function wC(e,n,o){$F.call(this,e,n,o)}i(wC,"Mge");function q5t(e,n,o){kAe.call(this,e,n,o)}i(q5t,"Pge");function tv(e){this.c=e,this.a=this.c.a}i(tv,"ete");function Sn(e){this.i=e,this.f=this.i.j}i(Sn,"uKd");function CAe(){this.Bb|=256,this.Bb|=512}i(CAe,"qUd");function xC(e,n){this.a=e,ZH.call(this,n)}i(xC,"xf");function EAe(e,n){return spn(e,new Yb,n).a}i(EAe,"Eb");function SAe(e){if(!e)throw xe(new ZB)}i(SAe,"Lb");function AAe(e){if(!e)throw xe(new hh)}i(AAe,"Ub");function RAe(){RAe=U,RAe(),lYt=new vt}i(RAe,"$wb");function Y5t(){Y5t=U,Hoe(),Zir=new Uwt}i(Y5t,"sie");function Q8(){Q8=U,mBe=new Doe(null)}i(Q8,"Rub");function Len(e){HF(e,nHt),FK(e,GCn(e))}i(Len,"dFd");function X5t(e){e.a=y(an(e.b.a,4),129)}i(X5t,"DLd");function K5t(e){e.a=y(an(e.b.a,4),129)}i(K5t,"LLd");function J5t(e){e.b.Qb(),--e.d.f.d,yY(e.d)}i(J5t,"Kg");function LAe(e){this.a=e,Zwt.call(this,e.d)}i(LAe,"Xj");function Q5t(e,n){this.a=e,Poe.call(this,n)}i(Q5t,"gj");function Z5t(e,n){this.a=e,Poe.call(this,n)}i(Z5t,"qj");function e6t(e,n){this.a=e,Poe.call(this,n)}i(e6t,"Pj");function _Ae(e,n){this.a=n,Poe.call(this,e)}i(_Ae,"Jl");function t6t(e,n){this.a=n,cue.call(this,e)}i(t6t,"Wo");function r6t(e,n){this.a=e,cue.call(this,n)}i(r6t,"up");function n6t(e,n){this.a=n,eq.call(this,e)}i(n6t,"Pr");function i6t(e,n){this.a=n,eq.call(this,e)}i(i6t,"Xv");function cn(e,n){return oi(n),new n6t(e,n)}i(cn,"Dr");function a6t(e,n){return new VBt(e.a,e.b,n)}i(a6t,"iu");function Uq(e,n){return e.lastIndexOf(n)}i(Uq,"Dgb");function DAe(e,n,o){return e.indexOf(n,o)}i(DAe,"Bgb");function _9(e){return e==null?Qu:zl(e)}i(_9,"Qgb");function _en(e){return e==null?null:e.name}i(_en,"wz");function Den(e){return e.l+e.m*v6+e.h*mw}i(Den,"iD");function Ien(e){return tF(e.a)?QRt(e):null}i(Ien,"xr");function s6t(e){uoe.call(this,y(oi(e),35))}i(s6t,"bl");function o6t(e){uoe.call(this,y(oi(e),35))}i(o6t,"rl");function Hd(e){XB.call(this,(Ur(e),e))}i(Hd,"ahb");function Lf(e){XB.call(this,(Ur(e),e))}i(Lf,"nhb");function jle(e){m5e.call(this,new NRe(e))}i(jle,"Qtb");function Vq(e){O8.call(this,e),this.a=e}i(Vq,"bpb");function IAe(e){iC.call(this,e),this.a=e}i(IAe,"qpb");function MAe(e){j8.call(this,e),this.a=e}i(MAe,"rqb");function NAe(e){koe.call(this),Fo(this,e)}i(NAe,"Fzb");function l6t(e){this.a=e,moe.call(this,e)}i(l6t,"Kyb");function c6t(){Gq(this),MY(this),this.he()}i(c6t,"ez");function qr(){qr=U,Dv=!1,UR=!0}i(qr,"Qdb");function EF(e,n,o){return Jue(e,n,n,o),e}i(EF,"khb");function u6t(e,n){return Nt(n.b,e.a),e.a}i(u6t,"FEb");function h6t(e,n){return Nt(n.a,e.a),e.a}i(h6t,"zEb");function Ex(e,n){return Nt(n.a,e.a),e.a}i(Ex,"JGb");function ff(e){return In(e.a!=null),e.a}i(ff,"Sub");function R5(e){return e.a!=null?e.a:null}i(R5,"Uub");function Sx(e){return e.$H||(e.$H=++cSn)}i(Sx,"DDb");function D9(e){return Xl(e.a)||Xl(e.b)}i(D9,"TZb");function Men(e,n){return ha(e.c.d,n.c.d)}i(Men,"qLb");function Nen(e,n){return ha(e.c.c,n.c.c)}i(Nen,"CLb");function Oen(e,n){return ha(e.n.a,n.n.a)}i(Oen,"q3b");function Hu(e,n){return y(oa(e.b,n),16)}i(Hu,"fUb");function Pen(e,n){return e.n.b=(Ur(n),n)}i(Pen,"v4b");function Ben(e,n){return e.n.b=(Ur(n),n)}i(Ben,"w4b");function dh(e,n){return!!n&&e.b[n.g]==n}i(dh,"Krb");function Fen(e,n){return ha(e.e.b,n.e.b)}i(Fen,"dUc");function $en(e,n){return ha(e.e.a,n.e.a)}i($en,"lUc");function Gen(e,n,o){return XLt(e,n,o,e.b)}i(Gen,"OAc");function OAe(e,n,o){return XLt(e,n,o,e.c)}i(OAe,"RAc");function jen(e){return _f(),!!e&&!e.dc()}i(jen,"Kec");function Wq(e,n){return++e.b,Nt(e.a,n)}i(Wq,"iGb");function PAe(e,n){return++e.b,Yu(e.a,n)}i(PAe,"jGb");function BAe(e,n){X_e.call(this,e,n,null)}i(BAe,"mRb");function Hq(e,n){vce(),this.f=n,this.d=e}i(Hq,"bsd");function SF(e,n){u9(),this.a=e,this.b=n}i(SF,"b1d");function qq(e,n){Oy(),this.b=e,this.c=n}i(qq,"C1d");function f6t(){s9(),this.b=new STt(this)}i(f6t,"Zdc");function L5(e){this.d=e,Sn.call(this,e)}i(L5,"DKd");function _5(e){this.c=e,Sn.call(this,e)}i(_5,"PKd");function AF(e){this.c=e,L5.call(this,e)}i(AF,"SKd");function d6t(e,n,o,u){t7e.call(this,e,n,o,u)}i(d6t,"Ig");function FAe(e,n,o){y(u$(e,n),22).Ec(o)}i(FAe,"ocd");function zen(e,n,o){xhe(e.a,o),gK(e.a,n)}i(zen,"lNd");function Uen(e,n){return bce(e.c).Kd().Xb(n)}i(Uen,"xj");function zle(e,n){return new mAt(e,e.gc(),n)}i(zle,"rm");function Ven(e){return++Za,new Yk(3,e)}i(Ven,"kre");function Pm(e){return Of(e,w3),new vu(e)}i(Pm,"Xu");function Wen(e){return HH(),li((_Rt(),$qt),e)}i(Wen,"ts");function p6t(e){return g7(),parseInt(e)||-1}i(p6t,"bA");function Z8(e,n,o){return DAe(e,Ku(n),o)}i(Z8,"zgb");function e7(e,n,o){var u;u=e.dd(n),u.Rb(o)}i(e7,"$t");function Py(e){var n;n=e.a,e.a=e.b,e.b=n}i(Py,"q2b");function $Ae(e,n){CRe(n,e),this.c=e,this.b=n}i($Ae,"qc");function Hen(e,n){return Jue(e,n,n+1,""),e}i(Hen,"Zgb");function t7(e){return In(e.b!=0),e.a.a.c}i(t7,"Xtb");function Mp(e){return In(e.b!=0),e.c.b.c}i(Mp,"Ytb");function Yq(){Yq=U,TQ=new Da(UUt,0)}i(Yq,"YKb");function g6t(e){return e.b=y(I7e(e.a),45)}i(g6t,"Cyb");function qen(e){return e.f!=null?e.f:""+e.g}i(qen,"cs");function Ule(e){return e.f!=null?e.f:""+e.g}i(Ule,"ds");function m6t(e){e.d=new w6t(e),e.e=new jn}i(m6t,"htb");function y6t(e){if(!e)throw xe(new od)}i(y6t,"Jlb");function GAe(e){if(!e)throw xe(new ZB)}i(GAe,"EDb");function Dk(e){if(!e)throw xe(new hh)}i(Dk,"RDb");function Yen(e){if(!e)throw xe(new xoe)}i(Yen,"IDb");function In(e){if(!e)throw xe(new Hl)}i(In,"LDb");function b6t(e){tq(),this.b=e,this.a=!0}i(b6t,"lvb");function Vle(e){Ek(),this.b=e,this.a=!0}i(Vle,"dvb");function v6t(e){mde(),j3t(this),this.Df(e)}i(v6t,"gUb");function w6t(e){D8e.call(this,e,null,null)}i(w6t,"Atb");function x6t(e){this.c=e,this.a=1,this.b=1}i(x6t,"sgc");function Xen(e){return $1(),e.e.b+e.f.b/2}i(Xen,"EZc");function Ken(e){return $1(),e.e.a+e.f.a/2}i(Ken,"uZc");function Jen(e,n,o){return $1(),o.e.a-e*n}i(Jen,"wZc");function Qen(e,n,o){return $1(),o.e.b-e*n}i(Qen,"GZc");function Zen(e,n,o){return rq(),o.Lg(e,n)}i(Zen,"Cyc");function etn(e,n){return vv(),Sr(e,n.e,n)}i(etn,"pic");function ttn(e,n,o){return Nt(n,GNt(e,o))}i(ttn,"Mbd");function Ik(e,n){return y(Jg(e.a,n),35)}i(Ik,"M_b");function ea(e,n){return!!e.q&&Kc(e.q,n)}i(ea,"pNb");function rtn(e,n){return e>0?n*n/e:n*n*100}i(rtn,"hOb");function ntn(e,n){return e>0?n/(e*e):n*100}i(ntn,"aOb");function jAe(e,n){return e.a=n.a,e.b=n.b,e}i(jAe,"ggd");function Xq(e){return e.a=-e.a,e.b=-e.b,e}i(Xq,"agd");function T6t(e,n,o){return e.a-=n,e.b-=o,e}i(T6t,"hgd");function Mk(e,n,o){return e.a+=n,e.b+=o,e}i(Mk,"Ufd");function itn(e,n,o){lX(),e.nf(n)&&o.Ad(e)}i(itn,"zcd");function k6t(e){this.c=e,Xh(e,0),Kh(e,0)}i(k6t,"apd");function C6t(e){ya.call(this),nI(this,e)}i(C6t,"Agd");function E6t(){si.call(this,"GROW_TREE",0)}i(E6t,"z8c");function df(e,n,o){gh.call(this,e,n,o,2)}i(df,"dUd");function S6t(e,n){u9(),SF.call(this,e,n)}i(S6t,"r1d");function zAe(e,n){Oy(),qq.call(this,e,n)}i(zAe,"Q1d");function A6t(e,n){Oy(),qq.call(this,e,n)}i(A6t,"U1d");function R6t(e,n){Oy(),zAe.call(this,e,n)}i(R6t,"S1d");function atn(e,n){return e.c.Ec(y(n,136))}i(atn,"eMd");function stn(e,n){return y(Jr(e.e,n),26)}i(stn,"eBd");function otn(e,n){return y(Jr(e.e,n),26)}i(otn,"fBd");function ltn(e,n,o){mI(Yh(e.a),n,JRt(o))}i(ltn,"N2d");function ctn(e,n,o){mI(Pc(e.a),n,KRt(o))}i(ctn,"E$d");function Wle(e,n){cd(),gY.call(this,e,n)}i(Wle,"k7d");function UAe(e,n){cd(),gY.call(this,e,n)}i(UAe,"A7d");function L6t(e,n){cd(),gY.call(this,e,n)}i(L6t,"I7d");function _6t(e,n){cd(),Wle.call(this,e,n)}i(_6t,"m7d");function VAe(e,n){cd(),Wle.call(this,e,n)}i(VAe,"o7d");function D6t(e,n){cd(),VAe.call(this,e,n)}i(D6t,"q7d");function I6t(e,n){cd(),UAe.call(this,e,n)}i(I6t,"C7d");function WAe(e,n,o){return eJ(h$(e,n),o)}i(WAe,"hde");function utn(e,n,o){return n.xl(e.e,e.c,o)}i(utn,"yee");function htn(e,n,o){return n.yl(e.e,e.c,o)}i(htn,"Aee");function Hle(e,n){return gv(e.e,y(n,52))}i(Hle,"Nee");function M6t(e,n){return Ur(e),e+Qle(n)}i(M6t,"Hse");function ftn(e){return e==null?null:zl(e)}i(ftn,"tle");function dtn(e){return e==null?null:zl(e)}i(dtn,"ule");function ptn(e){return e==null?null:DCn(e)}i(ptn,"mle");function gtn(e){return e==null?null:Pyn(e)}i(gtn,"qle");function _1(e){e.o==null&&t2n(e)}i(_1,"veb");function Xt(e){return N9(e==null||Lk(e)),e}i(Xt,"LD");function Xe(e){return N9(e==null||_k(e)),e}i(Xe,"MD");function di(e){return N9(e==null||lo(e)),e}i(di,"OD");function RF(e){Ge(e,161)&&y(e,161).mi()}i(RF,"wxd");function HAe(){hIt.call(this),this.Bb|=Jo}i(HAe,"q4d");function mtn(e,n){this.d=e,Cxt(this),this.b=n}i(mtn,"Ng");function LF(e,n){this.c=e,H8.call(this,e,n)}i(LF,"Kf");function I9(e,n){this.a=e,LF.call(this,e,n)}i(I9,"Sf");function qAe(e,n,o){sX.call(this,e,n,o,null)}i(qAe,"_g");function N6t(e,n,o){sX.call(this,e,n,o,null)}i(N6t,"dh");function YAe(e,n){xue.call(this,e),this.a=n}i(YAe,"nBb");function XAe(e,n){xue.call(this,e),this.a=n}i(XAe,"HBb");function ytn(e,n){return Jhe(e,n),new S7t(e,n)}i(ytn,"rn");function btn(e,n,o){return e.Le(n,o)<=0?o:n}i(btn,"Pzb");function vtn(e,n,o){return e.Le(n,o)<=0?n:o}i(vtn,"Qzb");function O6t(e){return Ur(e),e?1231:1237}i(O6t,"Tdb");function wtn(e,n){n.a?Tvn(e,n):Gle(e.a,n.b)}i(wtn,"AMb");function P6t(e,n){c0||Nt(e.a,n)}i(P6t,"qAb");function xtn(e,n){return oF(),A7(n.d.i,e)}i(xtn,"B_b");function Ttn(e,n){return J5(),new RGt(n,e)}i(Ttn,"e7b");function ktn(e,n){return y(Jg(e.b,n),144)}i(ktn,"odd");function Ctn(e,n){return y(Jg(e.c,n),233)}i(Ctn,"qdd");function qle(e){return y(Wt(e.a,e.b),295)}i(qle,"lgc");function B6t(e){return new Lt(e.c,e.d+e.a)}i(B6t,"Hfd");function F6t(e){return Df(),y5t(y(e,203))}i(F6t,"nMc");function KAe(e,n){return y(Jr(e.b,n),278)}i(KAe,"mBd");function V0(e,n){return HF(n,EMe),e.f=n,e}i(V0,"vIb");function JAe(e,n,o){return o=$f(e,n,3,o),o}i(JAe,"Ewd");function QAe(e,n,o){return o=$f(e,n,6,o),o}i(QAe,"Xwd");function ZAe(e,n,o){return o=$f(e,n,9,o),o}i(ZAe,"eAd");function _F(e,n,o){++e.j,e.rj(),wue(e,n,o)}i(_F,"rHd");function $6t(e,n,o){++e.j,e.oj(n,e.Xi(n,o))}i($6t,"pHd");function G6t(e,n,o){var u;u=e.dd(n),u.Rb(o)}i(G6t,"O0d");function j6t(e,n){this.c=e,Fx.call(this,n)}i(j6t,"oKd");function z6t(e,n){this.a=e,O3t.call(this,n)}i(z6t,"J$d");function DF(e,n){this.a=e,O3t.call(this,n)}i(DF,"S2d");function e8e(e){this.q=new d.Date(tw(e))}i(e8e,"oB");function U6t(){this.a=new Ox,this.b=new Ox}i(U6t,"g0c");function r7(){r7=U,az=new y4t,new b4t}i(r7,"yOd");function TC(){TC=U,SE=new ia("root")}i(TC,"d_c");function Nk(){Nk=U,kBe=mr((vf(),Fw))}i(Nk,"uKb");function IF(e){e.b?IF(e.b):e.f.c.yc(e.e,e.d)}i(IF,"fg");function Yle(e){this.a=(Ir(),new goe(oi(e)))}i(Yle,"vy");function V6t(e){this.a=(Of(e,w3),new vu(e))}i(V6t,"bq");function W6t(e){this.a=(Of(e,w3),new vu(e))}i(W6t,"iq");function Etn(e){return e==null?null:e.message}i(Etn,"vz");function Xle(e){return String.fromCharCode(e)}i(Xle,"PD");function Stn(e){return mi(Y2(e,32))^mi(e)}i(Stn,"Pfb");function t8e(e,n){return(n&Ui)%e.d.length}i(t8e,"sMd");function H6t(e,n,o){return $Ie(e.c,e.b,n,o)}i(H6t,"Oie");function Atn(e,n,o){return e.apply(n,o);var u}i(Atn,"Jz");function r8e(e,n,o){return B5(e,y(n,24),o)}i(r8e,"drb");function q6t(e,n,o){return e.a+=Jd(n,0,o),e}i(q6t,"jhb");function n8e(e,n){var o;return o=e.e,e.e=n,o}i(n8e,"Akb");function i8e(e,n){var o;return o=n,!!e.De(o)}i(i8e,"Mkb");function Rtn(e,n){var o;o=e[Yde],o.call(e,n)}i(Rtn,"Jsb");function Ltn(e,n){var o;o=e[Yde],o.call(e,n)}i(Ltn,"Ksb");function Ok(e,n){e.a._c(e.b,n),++e.b,e.c=-1}i(Ok,"Sjb");function Y6t(e){Sc(e.e),e.d.b=e.d,e.d.a=e.d}i(Y6t,"itb");function _tn(e,n,o){z2(),xxt(e,n.Te(e.a,o))}i(_tn,"mCb");function V2(e,n){return qr(),e==n?0:e?1:-1}i(V2,"Udb");function Np(e,n){return YH(new Array(n),e)}i(Np,"nDb");function Da(e,n){ia.call(this,e),this.a=n}i(Da,"DEd");function a8e(e,n){_5e.call(this,e),this.a=n}i(a8e,"f5d");function Kle(e,n){_5e.call(this,e),this.a=n}i(Kle,"d8d");function X6t(){Kq.call(this),this.a=new xo}i(X6t,"wHb");function s8e(){this.n=new xo,this.o=new xo}i(s8e,"aYb");function K6t(){this.b=new xo,this.c=new Pt}i(K6t,"DEb");function J6t(){this.a=new Pt,this.b=new Pt}i(J6t,"GNb");function Q6t(){this.a=new Tn,this.b=new Y3t}i(Q6t,"OPb");function o8e(){this.b=new lv,this.a=new lv}i(o8e,"S_b");function Z6t(){this.b=new gs,this.a=new gs}i(Z6t,"DEc");function eAt(){this.a=new Pt,this.d=new Pt}i(eAt,"WJc");function tAt(){this.b=new jn,this.a=new jn}i(tAt,"eVc");function rAt(){this.b=new ACt,this.a=new r1t}i(rAt,"QSc");function nAt(){this.a=new swt,this.b=new W0t}i(nAt,"Ybc");function Kq(){this.n=new p5,this.i=new S5}i(Kq,"uHb");function MF(e){return!e.a&&(e.a=new X),e.a}i(MF,"TA");function ra(e,n){return e.a+=n.a,e.b+=n.b,e}i(ra,"Vfd");function qs(e,n){return e.a-=n.a,e.b-=n.b,e}i(qs,"igd");function Dtn(e){return vk(e.j.c,0),e.a=-1,e}i(Dtn,"ncd");function l8e(e,n,o){return o=$f(e,n,11,o),o}i(l8e,"Nzd");function iAt(e,n,o){o!=null&&AX(n,efe(e,o))}i(iAt,"yBd");function aAt(e,n,o){o!=null&&RX(n,efe(e,o))}i(aAt,"zBd");function D5(e,n,o,u){xt.call(this,e,n,o,u)}i(D5,"T3d");function c8e(e,n,o,u){fY.call(this,e,n,o,u)}i(c8e,"wYb");function u8e(e,n,o,u){xt.call(this,e,n,o,u)}i(u8e,"Bge");function sAt(e,n,o,u){u8e.call(this,e,n,o,u)}i(sAt,"Fge");function oAt(e,n,o,u){TY.call(this,e,n,o,u)}i(oAt,"$ge");function Jle(e,n,o,u){TY.call(this,e,n,o,u)}i(Jle,"ahe");function lAt(e,n,o,u){Jle.call(this,e,n,o,u)}i(lAt,"ehe");function h8e(e,n,o,u){TY.call(this,e,n,o,u)}i(h8e,"ghe");function zr(e,n,o,u){h8e.call(this,e,n,o,u)}i(zr,"jhe");function f8e(e,n,o,u){Jle.call(this,e,n,o,u)}i(f8e,"lhe");function cAt(e,n,o,u){f8e.call(this,e,n,o,u)}i(cAt,"ohe");function uAt(e,n,o,u){s7e.call(this,e,n,o,u)}i(uAt,"Qhe");function Pk(e,n){yu.call(this,mM+e+xw+n)}i(Pk,"rKd");function Itn(e,n){R1(e.f)?qvn(e,n):$1n(e,n)}i(Itn,"ghc");function d8e(e,n){return e.hk().ti().oi(e,n)}i(d8e,"Uhe");function p8e(e,n){return e.hk().ti().qi(e,n)}i(p8e,"Vhe");function Mtn(e,n){return e.n.a=(Ur(n),n+10)}i(Mtn,"x4b");function Ntn(e,n){return e.n.a=(Ur(n),n+10)}i(Ntn,"y4b");function Otn(e,n){return e.e=y(e.d.Kb(n),162)}i(Otn,"zk");function Ptn(e,n){return n==e||K7(BK(n),e)}i(Ptn,"QWd");function g8e(e,n,o){return e.lastIndexOf(n,o)}i(g8e,"Egb");function Cr(e,n){return Ur(e),Qe(e)===Qe(n)}i(Cr,"vgb");function hAt(e,n){return Ur(e),Qe(e)===Qe(n)}i(hAt,"Veb");function fAt(e,n){return Oi(e.a,n,"")==null}i(fAt,"A8d");function Btn(e,n){return e.b.zd(new MEt(e,n))}i(Btn,"FCb");function Ftn(e,n){return e.b.zd(new NEt(e,n))}i(Ftn,"LCb");function dAt(e,n){return e.b.zd(new OEt(e,n))}i(dAt,"RCb");function $tn(e,n){return dt(n,(Bt(),gj),e)}i($tn,"vQb");function Gtn(e,n,o){return ha(e[n.a],e[o.a])}i(Gtn,"$Pb");function jtn(e,n){return Yc(e.a.d.p,n.a.d.p)}i(jtn,"Zjc");function ztn(e,n){return Yc(n.a.d.p,e.a.d.p)}i(ztn,"$jc");function Utn(e,n){return oF(),!A7(n.d.i,e)}i(Utn,"A_b");function Vtn(e,n){c0||n&&(e.d=n)}i(Vtn,"vAb");function pAt(e,n){iin.call(this,e,e.length,n)}i(pAt,"Swb");function gAt(e){this.c=e,Pq.call(this,yG,0)}i(gAt,"pCb");function mAt(e,n,o){this.a=e,$Ae.call(this,n,o)}i(mAt,"_p");function m8e(e,n){this.c=e,Ace.call(this,e,n)}i(m8e,"TKd");function yAt(e,n,o){this.c=n,this.b=o,this.a=e}i(yAt,"pk");function NF(e){a7(),this.d=e,this.a=new vC}i(NF,"mJc");function Wtn(e){return e<100?null:new Xb(e)}i(Wtn,"KJd");function bAt(e){return e.c?Jl(e.c.a,e,0):-1}i(bAt,"FYb");function Htn(e,n){return ha(e.c.e.a,n.c.e.a)}i(Htn,"bTc");function qtn(e,n){return ha(e.b.e.a,n.b.e.a)}i(qtn,"_Sc");function Ytn(e,n){return ha(e.c-e.s,n.c-n.s)}i(Ytn,"iQc");function Xtn(e,n,o){return y(e.c,72).Uk(n,o)}i(Xtn,"NTd");function Jq(e,n,o){return y(e.c,72).Vk(n,o)}i(Jq,"OTd");function Ktn(e,n,o){return utn(e,y(n,344),o)}i(Ktn,"zee");function y8e(e,n,o){return htn(e,y(n,344),o)}i(y8e,"Bee");function Jtn(e,n,o){return KPt(e,y(n,344),o)}i(Jtn,"Vee");function vAt(e,n,o){return J1n(e,y(n,344),o)}i(vAt,"Xee");function wAt(e,n){return Ge(n,16)&&lGt(e.c,n)}i(wAt,"oMd");function M9(e,n){return n==null?null:i3(e.b,n)}i(M9,"zn");function I5(e){return e==Bw||e==a1||e==zc}i(I5,"Nld");function Qle(e){return _k(e)?(Ur(e),e):e.se()}i(Qle,"$db");function Qq(e){return!isNaN(e)&&!isFinite(e)}i(Qq,"_eb");function Zle(e){I5t(this),gf(this),Fo(this,e)}i(Zle,"eub");function Ah(e){Nle(this),I8e(this.c,0,e.Nc())}i(Ah,"nmb");function ud(e,n,o){this.a=e,this.b=n,this.c=o}i(ud,"Nrb");function xAt(e,n,o){this.a=e,this.b=n,this.c=o}i(xAt,"btb");function TAt(e,n,o){this.d=e,this.b=o,this.a=n}i(TAt,"oub");function kAt(e){this.a=e,Ny(),vc(Date.now())}i(kAt,"iAb");function n7(e){if(!e)throw xe(new El(oMe))}i(n7,"Vb");function b8e(e,n){if(!e)throw xe(new rn(n))}i(b8e,"Mb");function ece(e,n){if(e!=n)throw xe(new od)}i(ece,"KDb");function tce(){tce=U,gBe=new Fe,sYt=new ze}i(tce,"Eub");function rce(e){var n;return n=new Qt,n.e=e,n}i(rce,"fHb");function Qtn(e,n){var o;return o=n.ni(e.a),o}i(Qtn,"Uce");function Ztn(e,n,o){return z2(),e.a.Wd(n,o),n}i(Ztn,"lCb");function CAt(e){Wh(e.a),DRe(e.c,e.b),e.b=null}i(CAt,"Dyb");function ern(e){return aJ(),li((t5t(),KYt),e)}i(ern,"RJb");function trn(e){return Xu(),li((Q_t(),AYt),e)}i(trn,"aJb");function rrn(e){return Lh(),li((J_t(),EYt),e)}i(rrn,"jIb");function nrn(e){return x7(),li((BDt(),cYt),e)}i(nrn,"nzb");function irn(e){return md(),li((eDt(),gYt),e)}i(irn,"HAb");function arn(e){return yg(),li((Z_t(),kYt),e)}i(arn,"EHb");function srn(e){return zx(),li((GDt(),QYt),e)}i(srn,"TLb");function orn(e){return gX(),li((E_t(),oXt),e)}i(orn,"xOb");function lrn(e){return Z9(),li((tDt(),MXt),e)}i(lrn,"eQb");function crn(e){return eo(),li((T9t(),BXt),e)}i(crn,"$Qb");function urn(e){return D7(),li((jDt(),zXt),e)}i(urn,"ZSb");function hrn(e){return i6(),li(($Dt(),YXt),e)}i(hrn,"AUb");function frn(e){return Yr(),li((qIt(),QXt),e)}i(frn,"aZb");function v8e(e){fY.call(this,e.d,e.c,e.a,e.b)}i(v8e,"iZb");function nce(e){fY.call(this,e.d,e.c,e.a,e.b)}i(nce,"xYb");function w8e(e,n,o){this.b=e,this.c=n,this.a=o}i(w8e,"IKb");function Zq(e,n,o){this.b=e,this.a=n,this.c=o}i(Zq,"nWb");function EAt(e,n,o){this.a=e,this.b=n,this.c=o}i(EAt,"mMb");function SAt(e,n,o){this.a=e,this.b=n,this.c=o}i(SAt,"V0b");function x8e(e,n,o){this.a=e,this.b=n,this.c=o}i(x8e,"a4b");function AAt(e,n,o){this.b=e,this.a=n,this.c=o}i(AAt,"s6b");function eY(e,n,o){this.e=n,this.b=e,this.d=o}i(eY,"kXb");function T8e(e){var n;return n=new e4t,n.b=e,n}i(T8e,"ELb");function OF(){OF=U,RQ=new mpt,LQ=new ypt}i(OF,"G3b");function tY(){tY=U,cKt=new Hpt,lKt=new Ypt}i(tY,"K8b");function _f(){_f=U,pKt=new t0t,gKt=new r0t}i(_f,"mec");function RAt(){RAt=U,Lir=tt(Fs,Fr,1,0,5,1)}i(RAt,"_Kd");function LAt(){LAt=U,qir=tt(Fs,Fr,1,0,5,1)}i(LAt,"eSd");function k8e(){k8e=U,Yir=tt(Fs,Fr,1,0,5,1)}i(k8e,"LSd");function drn(e){return S7(),li((S_t(),nKt),e)}i(drn,"D2b");function prn(e){return ho(),li((r5t(),iKt),e)}i(prn,"$5b");function grn(e){return jX(),li((FDt(),oKt),e)}i(grn,"m8b");function mrn(e){return jp(),li((WDt(),bKt),e)}i(mrn,"rhc");function yrn(e){return c3(),li((C9t(),wKt),e)}i(yrn,"Qhc");function brn(e){return oX(),li((u_t(),RKt),e)}i(brn,"Pnc");function vrn(e){return l6(),li((X9t(),AKt),e)}i(vrn,"Hnc");function wrn(e){return vI(),li((zDt(),LKt),e)}i(wrn,"aoc");function xrn(e){return kX(),li((mDt(),_Kt),e)}i(xrn,"joc");function Trn(e){return Z$(),li((oMt(),DKt),e)}i(Trn,"Boc");function krn(e){return g$(),li((h_t(),IKt),e)}i(krn,"Joc");function Crn(e){return sw(),li((yDt(),NKt),e)}i(Crn,"Soc");function Ern(e){return jx(),li((aDt(),EKt),e)}i(Ern,"xic");function Srn(e){return W$(),li((J9t(),BKt),e)}i(Srn,"xpc");function Arn(e){return _K(),li((K9t(),OKt),e)}i(Arn,"dpc");function Rrn(e){return l$(),li((c_t(),PKt),e)}i(Rrn,"lpc");function Lrn(e){return Q7(),li((Q9t(),FKt),e)}i(Lrn,"Jpc");function _rn(e){return ol(),li((TMt(),$Kt),e)}i(_rn,"Zpc");function Drn(e){return L7(),li((rDt(),GKt),e)}i(Drn,"gqc");function Irn(e){return fv(),li((nDt(),jKt),e)}i(Irn,"pqc");function Mrn(e){return F1(),li((iDt(),UKt),e)}i(Mrn,"yqc");function Nrn(e){return YY(),li((f_t(),VKt),e)}i(Nrn,"Gqc");function Orn(e){return WK(),li((YIt(),SKt),e)}i(Orn,"sjc");function Prn(e){return yf(),li((R9t(),HKt),e)}i(Prn,"csc");function Brn(e){return ZY(),li((d_t(),qKt),e)}i(Brn,"ksc");function Frn(e){return tG(),li((lMt(),PZt),e)}i(Frn,"Vyc");function $rn(e){return fI(),li((uDt(),BZt),e)}i($rn,"dzc");function Grn(e){return l3(),li((UDt(),FZt),e)}i(Grn,"pzc");function jrn(e){return TI(),li((k9t(),$Zt),e)}i(jrn,"Dzc");function zrn(e){return Tv(),li((xMt(),GZt),e)}i(zrn,"Tzc");function Urn(e){return V1(),li((VDt(),jZt),e)}i(Urn,"bAc");function Vrn(e){return f$(),li((p_t(),zZt),e)}i(Vrn,"jAc");function Wrn(e){return sl(),li((lDt(),VZt),e)}i(Wrn,"sAc");function Hrn(e){return BX(),li((oDt(),WZt),e)}i(Hrn,"BAc");function qrn(e){return uI(),li((sDt(),HZt),e)}i(qrn,"KAc");function Yrn(e){return O7(),li((cDt(),qZt),e)}i(Yrn,"cBc");function Xrn(e){return TX(),li((hDt(),YZt),e)}i(Xrn,"lBc");function Krn(e){return $X(),li((fDt(),XZt),e)}i(Krn,"uBc");function Jrn(e){return cw(),li((HDt(),per),e)}i(Jrn,"mHc");function Qrn(e){return K9(),li((g_t(),ver),e)}i(Qrn,"dKc");function Zrn(e){return W0(),li((m_t(),Ser),e)}i(Zrn,"hNc");function enn(e){return Yg(),li((y_t(),Rer),e)}i(enn,"pNc");function tnn(e){return pg(),li((b_t(),Uer),e)}i(tnn,"SPc");function rnn(e){return Px(),li((v_t(),Ker),e)}i(rnn,"QRc");function nnn(e){return o6(),li((XDt(),Jer),e)}i(nnn,"MSc");function inn(e){return FI(),li((e5t(),Qer),e)}i(inn,"IVc");function ann(e){return cI(),li((dDt(),Zer),e)}i(ann,"wWc");function snn(e){return hI(),li((YDt(),Ttr),e)}i(snn,"dYc");function onn(e){return WY(),li((w_t(),ktr),e)}i(onn,"lYc");function lnn(e){return IX(),li((x_t(),Rtr),e)}i(lnn,"l_c");function cnn(e){return EK(),li((E9t(),_tr),e)}i(cnn,"U_c");function unn(e){return R$(),li((pDt(),Itr),e)}i(unn,"U0c");function hnn(e){return cX(),li((T_t(),Dtr),e)}i(hnn,"K0c");function fnn(e){return yK(),li((qDt(),Qtr),e)}i(fnn,"X1c");function dnn(e){return FX(),li((vDt(),Ztr),e)}i(dnn,"f2c");function pnn(e){return iK(),li((bDt(),err),e)}i(pnn,"S2c");function gnn(e){return AK(),li((KDt(),rrr),e)}i(gnn,"m3c");function mnn(e){return QX(),li((gDt(),arr),e)}i(mnn,"V3c");function ynn(e){return tX(),li((k_t(),Arr),e)}i(ynn,"z5c");function bnn(e){return uX(),li((xDt(),Rrr),e)}i(bnn,"b6c");function vnn(e){return YX(),li((wDt(),Lrr),e)}i(vnn,"C6c");function wnn(e){return aq(),li((VLt(),Orr),e)}i(wnn,"C8c");function xnn(e){return I$(),li((TDt(),Irr),e)}i(xnn,"e8c");function Tnn(e){return iq(),li((ULt(),Mrr),e)}i(Tnn,"t8c");function knn(e){return n$(),li((C_t(),Prr),e)}i(knn,"K8c");function Cnn(e){return q$(),li((A9t(),Brr),e)}i(Cnn,"V8c");function Enn(e){return NI(),li((S9t(),Drr),e)}i(Enn,"q7c");function Snn(e){return o9(),li((WLt(),Zrr),e)}i(Snn,"aad");function Ann(e){return T$(),li((A_t(),enr),e)}i(Ann,"lad");function Rnn(e){return K0(),li((L9t(),onr),e)}i(Rnn,"Xed");function Lnn(e){return dw(),li((WIt(),cnr),e)}i(Lnn,"jfd");function _nn(e){return Vm(),li((Z9t(),unr),e)}i(_nn,"Ngd");function Dnn(e){return fw(),li((rIt(),mnr),e)}i(Dnn,"qhd");function Inn(e){return Ss(),li((_9t(),znr),e)}i(Inn,"Ijd");function Mnn(e){return B7(),li((JDt(),Unr),e)}i(Mnn,"Sjd");function Nnn(e){return Qg(),li((kDt(),Vnr),e)}i(Nnn,"_jd");function Onn(e){return U1(),li((QDt(),Wnr),e)}i(Onn,"jkd");function Pnn(e){return RK(),li((nIt(),Hnr),e)}i(Pnn,"vkd");function Bnn(e){return z1(),li((CDt(),Ynr),e)}i(Bnn,"Skd");function Fnn(e){return Bf(),li((ZDt(),Knr),e)}i(Fnn,"bld");function $nn(e){return d3(),li((aMt(),Jnr),e)}i($nn,"rld");function Gnn(e){return BC(),li((I9t(),Qnr),e)}i(Gnn,"Cld");function jnn(e){return uo(),li((eIt(),Znr),e)}i(jnn,"Qld");function znn(e){return _h(),li((tIt(),eir),e)}i(znn,"cmd");function Unn(e){return zt(),li((D9t(),tir),e)}i(Unn,"Hmd");function Vnn(e){return tI(),li((EDt(),sir),e)}i(Vnn,"and");function Wnn(e){return vf(),li((t9t(),oir),e)}i(Wnn,"knd");function Hnn(e){return Zh(),li((sMt(),lir),e)}i(Hnn,"znd");function qnn(e){return t6(),li((SDt(),cir),e)}i(qnn,"Ind");function Ynn(e){return QY(),li((e9t(),uir),e)}i(Ynn,"Snd");function Xnn(e){return eK(),li((r9t(),hir),e)}i(Xnn,"ipd");function Knn(e){return UX(),li((n9t(),pir),e)}i(Knn,"Xqd");function Jnn(e,n){return Ur(e),e+(Ur(n),n)}i(Jnn,"bnc");function ice(e,n){this.c=e,this.a=n,this.b=n-e}i(ice,"kQc");function _At(e,n,o){this.a=e,this.c=n,this.b=o}i(_At,"OBc");function DAt(e,n,o){this.a=e,this.c=n,this.b=o}i(DAt,"DDd");function IAt(e,n,o){this.a=e,this.b=n,this.c=o}i(IAt,"LDd");function C8e(e,n,o){this.a=e,this.b=n,this.c=o}i(C8e,"Rad");function E8e(e,n,o){this.a=e,this.b=n,this.c=o}i(E8e,"Zad");function ace(e,n,o){this.a=e,this.b=n,this.c=o}i(ace,"Erd");function MAt(e,n,o){this.a=e,this.b=n,this.c=o}i(MAt,"mOd");function NAt(e,n,o){this.a=e,this.b=n,this.c=o}i(NAt,"b5c");function By(e,n,o){this.e=e,this.a=n,this.c=o}i(By,"t5d");function OAt(e,n,o){cd(),G7e.call(this,e,n,o)}i(OAt,"X5d");function sce(e,n,o){cd(),w7e.call(this,e,n,o)}i(sce,"s7d");function S8e(e,n,o){cd(),w7e.call(this,e,n,o)}i(S8e,"E7d");function A8e(e,n,o){cd(),w7e.call(this,e,n,o)}i(A8e,"K7d");function PAt(e,n,o){cd(),sce.call(this,e,n,o)}i(PAt,"u7d");function R8e(e,n,o){cd(),sce.call(this,e,n,o)}i(R8e,"w7d");function BAt(e,n,o){cd(),R8e.call(this,e,n,o)}i(BAt,"y7d");function FAt(e,n,o){cd(),S8e.call(this,e,n,o)}i(FAt,"G7d");function $At(e,n,o){cd(),A8e.call(this,e,n,o)}i($At,"M7d");function Qnn(e){return eR(),li((HIt(),Rir),e)}i(Qnn,"vEd");function PF(e,n){return oi(e),oi(n),new VCt(e,n)}i(PF,"ek");function M5(e,n){return oi(e),oi(n),new QAt(e,n)}i(M5,"Zq");function Znn(e,n){return oi(e),oi(n),new ZAt(e,n)}i(Znn,"br");function ein(e,n){return oi(e),oi(n),new tEt(e,n)}i(ein,"ur");function L8e(e,n){WQr.call(this,e,JX(new oc(n)))}i(L8e,"xx");function GAt(e,n){this.c=e,this.b=n,this.a=!1}i(GAt,"cB");function _8e(e){this.d=e,Cxt(this),this.b=Hin(e.d)}i(_8e,"Mg");function D8e(e,n,o){this.c=e,cq.call(this,n,o)}i(D8e,"Btb");function tin(e){return!e.c&&(e.c=new N8),e.c}i(tin,"DYd");function rin(e){return!e.e&&(e.e=new Pt),e.e}i(rin,"QFc");function i7(e){var n;return n=new Pt,Iue(n,e),n}i(i7,"Vu");function nin(e){var n;return n=new gs,Iue(n,e),n}i(nin,"Rx");function jAt(e){var n;return n=new koe,Wue(n,e),n}i(jAt,"Ux");function BF(e){var n;return n=new ya,Wue(n,e),n}i(BF,"Zu");function y(e,n){return N9(e==null||Uhe(e,n)),e}i(y,"JD");function iin(e,n,o){z8t.call(this,n,o),this.a=e}i(iin,"Twb");function zAt(e,n,o){this.b=e,XSt.call(this,n,o)}i(zAt,"rBb");function I8e(e,n,o){C9e(o,0,e,n,o.length,!1)}i(I8e,"pDb");function FF(e,n){if(!e)throw xe(new rn(n))}i(FF,"FDb");function N5(e,n){if(!e)throw xe(new El(n))}i(N5,"SDb");function M8e(e,n){if(!e)throw xe(new H4t(n))}i(M8e,"JDb");function ain(e,n){n&&(e.b=n,e.a=(iv(n),n.a))}i(ain,"oCb");function Bm(e,n,o,u,p){e.b=n,e.c=o,e.d=u,e.a=p}i(Bm,"nSb");function N8e(e,n,o,u,p){e.d=n,e.c=o,e.a=u,e.b=p}i(N8e,"iYb");function O8e(e){var n,o;o=e.d,n=e.a,e.d=n,e.a=o}i(O8e,"n2b");function P8e(e){var n,o;n=e.b,o=e.c,e.b=o,e.c=n}i(P8e,"k2b");function sin(e){return In(e.b!=0),dd(e,e.c.b)}i(sin,"aub");function oce(e){return In(e.b!=0),dd(e,e.a.a)}i(oce,"_tb");function oin(e,n){return $1(),ha(e.e.a,n.e.a)}i(oin,"DZc");function lin(e,n){return $1(),ha(e.e.b,n.e.b)}i(lin,"CZc");function cin(e,n){return nq(),Yc(e.d.p,n.d.p)}i(cin,"Pkc");function uin(e,n){return Yc(i8t(e.d),i8t(n.d))}i(uin,"hjc");function rY(e,n){return n&&RY(e,n.d)?n:null}i(rY,"Pyb");function hin(e,n){return n==(zt(),on)?e.c:e.d}i(hin,"jgc");function a7(){a7=U,Eje=(zt(),on),PZ=bn}i(a7,"OIc");function UAt(){this.b=He(Xe(Vt((Vp(),_0e))))}i(UAt,"bOb");function VAt(){this.a=";,;",this.b="",this.c=""}i(VAt,"XAb");function B8e(e,n,o){J8.call(this,e,n),this.b=o}i(B8e,"LSb");function $F(e,n,o){iAe.call(this,e,n),this.c=o}i($F,"aYd");function F8e(e){k8e(),LH.call(this),this._h(e)}i(F8e,"MSd");function WAt(e,n,o){this.a=e,pC.call(this,n,o)}i(WAt,"AZd");function HAt(e,n,o){this.a=e,pC.call(this,n,o)}i(HAt,"FZd");function nY(e,n,o){iAe.call(this,e,n),this.c=o}i(nY,"Xde");function qAt(){b7(),Aan.call(this,(Jb(),cp))}i(qAt,"jde");function YAt(e){return Xi(),++Za,new Fm(0,e)}i(YAt,"jre");function XAt(){XAt=U,rbe=(Ir(),new goe(qge))}i(XAt,"Hie");function fin(e){return new Lt(e.c+e.b,e.d+e.a)}i(fin,"Ifd");function KAt(e){return e!=null&&!Ahe(e,BN,FN)}i(KAt,"TQd");function din(e,n){return(ENt(e)<<4|ENt(n))&As}i(din,"QQd");function pin(e,n){var o;return o=e.c,dLe(e,n),o}i(pin,"H4d");function $8e(e,n){return n<0?e.g=-1:e.g=n,e}i($8e,"nod");function iY(e,n){return ahn(e),e.a*=n,e.b*=n,e}i(iY,"egd");function JAt(e,n,o,u,p){e.c=n,e.d=o,e.b=u,e.a=p}i(JAt,"Mfd");function _i(e,n){return Ha(e,n,e.c.b,e.c),!0}i(_i,"Ttb");function G8e(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}i(G8e,"ztb");function lce(e){this.b=e,this.a=q2(this.b.a).Md()}i(lce,"Jq");function QAt(e,n){this.b=e,this.a=n,soe.call(this)}i(QAt,"dr");function ZAt(e,n){this.a=e,this.b=n,soe.call(this)}i(ZAt,"jr");function e8t(e,n){z8t.call(this,n,1040),this.a=e}i(e8t,"Nwb");function t8t(e){$Ae.call(this,e.length,0),this.a=e}i(t8t,"Tr");function N9(e){if(!e)throw xe(new G8(null))}i(N9,"VDb");function aY(e){var n;return n=e.slice(),Cue(n,e)}i(aY,"lDb");function sY(e){var n;return n=e.n,e.a.b+n.d+n.a}i(sY,"vHb");function r8t(e){var n;return n=e.n,e.e.b+n.d+n.a}i(r8t,"sIb");function j8e(e){var n;return n=e.n,e.e.a+n.b+n.c}i(j8e,"tIb");function gin(e){return e.a?e.a:jce(e)}i(gin,"bYb");function Ax(e,n){return SI(e,new J8(n.a,n.b))}i(Ax,"RUb");function min(e){return!Mo(e)&&e.c.i.c==e.d.i.c}i(min,"zWb");function yin(e,n){return e.c<n.c?-1:e.c==n.c?0:1}i(yin,"qgc");function n8t(e){return e.b.c.length-e.e.c.length}i(n8t,"Ehc");function i8t(e){return e.e.c.length-e.g.c.length}i(i8t,"uZb");function cce(e){return e.e.c.length+e.g.c.length}i(cce,"sZb");function GF(e){return e==0||isNaN(e)?e:e<0?-1:1}i(GF,"Vfb");function a8t(e){return X5(),tt(GZ,$J,40,e,0,1)}i(a8t,"KYc");function bin(e,n,o){return Oi(e.b,y(o.b,17),n)}i(bin,"BRc");function vin(e,n,o){return Oi(e.b,y(o.b,17),n)}i(vin,"CRc");function win(e,n,o){return $1(),o.e.b+o.f.b+e*n}i(win,"FZc");function xin(e,n,o){return $1(),o.e.a+o.f.a+e*n}i(xin,"vZc");function Tin(e){return Df(),(zt(),$u).Gc(e.j)}i(Tin,"mLc");function kin(e,n){return Nt(e,new Lt(n.a,n.b))}i(kin,"bqd");function s7(e,n,o){var u;u=new zk(o),Fp(e,n,u)}i(s7,"OAd");function z8e(e,n,o){var u;return u=e[n],e[n]=o,u}i(z8e,"sDb");function oY(e,n){var o;return++e.j,o=e.Aj(n),o}i(oY,"tHd");function Ei(e,n,o){return e.a=-1,FAe(e,n.g,o),e}i(Ei,"kcd");function U8e(e,n,o,u){V_e.call(this,e,n,o,u,0,0)}i(U8e,"h7c");function lY(e,n){TF.call(this,e,n),this.a=this}i(lY,"Bje");function s8t(e){k8e(),F8e.call(this,e),this.a=-1}i(s8t,"YSd");function o8t(){Ale.call(this,"COUNT_CHILDREN",0)}i(o8t,"Vnd");function V8e(){Bm(this,!1,!1,!1,!1)}i(V8e,"oSb");function l8t(){l8t=U,tBe=tt(Ls,Dt,15,256,0,1)}i(l8t,"Efb");function cY(){cY=U,new Q_e((Loe(),a0e),(_oe(),i0e))}i(cY,"mx");function Cin(e){e.a.jd(),y(e.a.kd(),18).gc(),t6e()}i(Cin,"_w");function c8t(e){return e.e.Pd().gc()*e.c.Pd().gc()}i(c8t,"bj");function uce(e,n,o){return new yAt(Ian(e).Ze(),o,n)}i(uce,"dk");function uY(){uY=U,l0e=new rue((Ir(),Ir(),Go))}i(uY,"Dx");function hce(){hce=U,VPe=new _6e((Ir(),Ir(),bQ))}i(hce,"Lx");function u8t(){u8t=U,QPe=tt(A6,Dt,221,256,0,1)}i(u8t,"heb");function h8t(){h8t=U,eBe=tt(SM,Dt,180,128,0,1)}i(h8t,"teb");function f8t(){f8t=U,rBe=tt(fT,Dt,190,256,0,1)}i(f8t,"Tfb");function d8t(){d8t=U,aBe=tt(dT,Dt,191,256,0,1)}i(d8t,"ngb");function Ein(e,n){pLe(e,n==null?null:(Ur(n),n))}i(Ein,"zTd");function Sin(e,n){yLe(e,n==null?null:(Ur(n),n))}i(Sin,"D4d");function Ain(e,n){yLe(e,n==null?null:(Ur(n),n))}i(Ain,"E4d");function za(e,n){var o;return o=_ce(e,n),o.i=2,o}i(za,"Eeb");function p8t(e,n){return e.a+=Jd(n,0,n.length),e}i(p8t,"ihb");function Wt(e,n){return _r(n,e.c.length),e.c[n]}i(Wt,"dmb");function g8t(e,n){return _r(n,e.a.length),e.a[n]}i(g8t,"unb");function Rin(e,n){var o;for(o=0;o<n;++o)e[o]=-1}i(Rin,"$mb");function Lin(e,n){return Ur(e),b$(e,(Ur(n),n))}i(Lin,"Dqb");function _in(e,n){return Ur(n),b$(n,(Ur(e),e))}i(_in,"Iqb");function m8t(e){return e.q?e.q:(Ir(),Ir(),Qm)}i(m8t,"nNb");function hY(e){for(oi(e);e.Ob();)e.Pb(),e.Qb()}i(hY,"rr");function W8e(e){if(e.c.e!=e.a)throw xe(new od)}i(W8e,"kt");function H8e(e){if(e.e.c!=e.b)throw xe(new od)}i(H8e,"ru");function y8t(e){this.c=e,this.a=new v5(this.c.a)}i(y8t,"vrb");function b8t(e){this.a=e,this.c=new jn,Bfn(this)}i(b8t,"Vgc");function q8e(e){this.c=e,this.b=this.c.d.vc().Jc()}i(q8e,"kf");function Bk(e){this.a=new w5(e.gc()),Fo(this,e)}i(Bk,"jsb");function Y8e(e){m5e.call(this,new lv),Fo(this,e)}i(Y8e,"Rtb");function Er(e,n){z2(),xue.call(this,e),this.a=n}i(Er,"jCb");function fY(e,n,o,u){N8e(this,e,n,o,u)}i(fY,"oYb");function Fk(e,n,o,u,p,g){return jPt(e,n,o,u,p,0,g)}i(Fk,"QC");function Din(e,n,o){return Yc(n.d[e.g],o.d[e.g])}i(Din,"ilc");function Iin(e,n,o){return Yc(e.d[n.p],e.d[o.p])}i(Iin,"iJc");function Min(e,n,o){return Yc(e.d[n.p],e.d[o.p])}i(Min,"fJc");function Nin(e,n,o){return Yc(e.d[n.p],e.d[o.p])}i(Nin,"gJc");function Oin(e,n,o){return Yc(e.d[n.p],e.d[o.p])}i(Oin,"hJc");function dY(e,n,o){return d.Math.min(o/e,1/n)}i(dY,"w7c");function v8t(e,n){return e?0:d.Math.max(0,n-1)}i(v8t,"kFc");function w8t(e){return e.c-y(Wt(e.a,e.b),295).b}i(w8t,"kgc");function fce(e,n){return e==null?n==null:Cr(e,n)}i(fce,"DQd");function Pin(e,n){return e==null?n==null:sK(e,n)}i(Pin,"EQd");function pY(e,n){return Xi(),++Za,new h7e(e,n)}i(pY,"lre");function Fm(e,n){Xi(),bx.call(this,e),this.a=n}i(Fm,"Ure");function gY(e,n){cd(),FH.call(this,n),this.a=e}i(gY,"$6d");function mY(e){Fx.call(this,e.gc()),rs(this,e)}i(mY,"aRd");function O9(e,n,o){this.a=e,Es.call(this,n,o,2)}i(O9,"v8d");function x8t(e){this.b=new ya,this.a=e,this.c=-1}i(x8t,"Pqd");function pf(e){return e.c?e.c.f:e.e.b}i(pf,"Vod");function ph(e){return e.c?e.c.g:e.e.a}i(ph,"Wod");function mi(e){return Gl(e)?e|0:CCt(e)}i(mi,"gdb");function T8t(e){var n;return n=zPt(e),n?T8t(n):e}i(T8t,"u_c");function Bin(e,n){return e.a==null&&mGt(e),e.a[n]}i(Bin,"$mc");function Fin(e,n){return!e&&(e=[]),e[e.length]=n,e}i(Fin,"Wz");function ka(e,n){var o;return o=mr(e),ULe(o,n),o}i(ka,"Grb");function k8t(e,n,o){var u;for(u=0;u<n;++u)e[u]=o}i(k8t,"Zmb");function W2(e,n,o){Hk(n,e.c.length),f9(e.c,n,o)}i(W2,"$lb");function dce(e,n,o){XMt(0,n,e.length),w7(e,0,n,o)}i(dce,"gnb");function pce(e,n){return Ge(n,24)&&dh(e,y(n,24))}i(pce,"Jrb");function C8t(e,n){return Ge(n,24)&&ehn(e,y(n,24))}i(C8t,"Lrb");function Sl(e,n){return eNt(e,n,xcn(e,e.b.Ae(n)))}i(Sl,"ysb");function $in(e,n){return e.a.get(n)!==void 0}i($in,"Rsb");function X8e(e){return Array.isArray(e)&&e.Rm===te}i(X8e,"UC");function gce(e){return Qh(e,26)*YI+Qh(e,27)*XI}i(gce,"Pvb");function Gin(e,n){mce(e,qs(new Lt(n.a,n.b),e.c))}i(Gin,"sMb");function mce(e,n){ra(e.c,n),e.b.c+=n.a,e.b.d+=n.b}i(mce,"tMb");function yY(e){e.b?yY(e.b):e.d.dc()&&e.f.c.Ac(e.e)}i(yY,"hg");function bY(e,n,o){var u;e&&(u=e.i,u.c=n,u.b=o)}i(bY,"IHb");function vY(e,n,o){var u;e&&(u=e.i,u.d=n,u.a=o)}i(vY,"JHb");function jin(e,n,o){return-Yc(e.f[n.p],e.f[o.p])}i(jin,"XCc");function zin(e,n,o){return ys(e,new x5(n.a,o.a))}i(zin,"X7c");function Uin(e,n,o){r$t(o,e,1),Nt(n,new UEt(o,e))}i(Uin,"Ncc");function Vin(e,n,o){EI(o,e,1),Nt(n,new XEt(o,e))}i(Vin,"Occ");function K8e(e,n,o){return o=$f(e,y(n,52),7,o),o}i(K8e,"xzd");function J8e(e,n,o){return o=$f(e,y(n,52),3,o),o}i(J8e,"uTd");function Xc(e,n,o){return e.a=-1,FAe(e,n.g+1,o),e}i(Xc,"icd");function E8t(e,n,o){this.a=e,zq.call(this,n,o,22)}i(E8t,"uYd");function S8t(e,n,o){this.a=e,zq.call(this,n,o,14)}i(S8t,"F3d");function A8t(e,n,o,u){cd(),wLt.call(this,e,n,o,u)}i(A8t,"R6d");function R8t(e,n,o,u){cd(),wLt.call(this,e,n,o,u)}i(R8t,"Y6d");function Win(e,n){(n.Bb&Tc)!=0&&!e.a.o&&(e.a.o=n)}i(Win,"qZd");function yce(e,n){this.b=new ya,this.a=e,this.c=n}i(yce,"XLb");function L8t(){this.b=new ls,this.c=new oRt(this)}i(L8t,"uSb");function Q8e(){this.d=new Ot,this.e=new sRt(this)}i(Q8e,"yFb");function _8t(){Df(),this.k=new jn,this.d=new gs}i(_8t,"hLc");function Z8e(){H7e(),this.g=new ya,this.f=new ya}i(Z8e,"_Bc");function H2(e){Qb(),this.a=0,this.b=e-1,this.c=1}i(H2,"Kse");function D8t(e){return Xi(),++Za,new qce(10,e,0)}i(D8t,"pre");function I8t(e){var n;return n=e.f,n||(e.f=e.Cc())}i(I8t,"ee");function O5(e){var n;return n=e.i,n||(e.i=e.bc())}i(O5,"Ec");function wY(e){if(e.e.j!=e.d)throw xe(new od)}i(wY,"Nfe");function q2(e){return e.c?e.c:e.c=e.Qd()}i(q2,"bn");function bce(e){return e.d?e.d:e.d=e.Rd()}i(bce,"cn");function P9(e,n){return ogn(h$(e,n))?n.wi():null}i(P9,"fde");function Hin(e){return Ge(e,16)?y(e,16).cd():e.Jc()}i(Hin,"ed");function e7e(e){return e.Oc(tt(Fs,Fr,1,e.gc(),5,1))}i(e7e,"Ce");function M8t(){M8t=U,Bqt=new t8t(tt(Fs,Fr,1,0,5,1))}i(M8t,"Sr");function vce(){vce=U,mir=new To((Ri(),tf),0)}i(vce,"Lrd");function N8t(){Ale.call(this,"LOOKAHEAD_LAYOUT",1)}i(N8t,"Xnd");function O8t(e){Gq(this),this.g=e,MY(this),this.he()}i(O8t,"fz");function t7e(e,n,o,u){this.a=e,sX.call(this,e,n,o,u)}i(t7e,"wg");function nn(e){this.a=(M8t(),Bqt),this.d=y(oi(e),50)}i(nn,"Yr");function $m(e,n){return hv(kBt(Gl(e)?Xd(e):e,n))}i($m,"adb");function Rx(e,n){return hv(M9e(Gl(e)?Xd(e):e,n))}i(Rx,"bdb");function Y2(e,n){return hv(Wyn(Gl(e)?Xd(e):e,n))}i(Y2,"cdb");function qin(e,n){return V2((Ur(e),e),(Ur(n),n))}i(qin,"Sdb");function wce(e,n){return ha((Ur(e),e),(Ur(n),n))}i(wce,"Teb");function P8t(e,n){return oi(n),e.a.Hd(n)&&!e.b.Hd(n)}i(P8t,"nx");function Yin(e,n){return Mu(e.l&n.l,e.m&n.m,e.h&n.h)}i(Yin,"lD");function Xin(e,n){return Mu(e.l|n.l,e.m|n.m,e.h|n.h)}i(Xin,"rD");function Kin(e,n){return Mu(e.l^n.l,e.m^n.m,e.h^n.h)}i(Kin,"zD");function B8t(e){return e!=null&&kce(e)&&e.Rm!==te}i(B8t,"UD");function r7e(e){return!Array.isArray(e)&&e.Rm===te}i(r7e,"QD");function $k(e,n){return D$(e,(Ur(n),new Dxt(n)))}i($k,"aCb");function P5(e,n){return D$(e,(Ur(n),new Ixt(n)))}i(P5,"bCb");function F8t(e){return mh(),y(e,12).e.c.length!=0}i(F8t,"ZZb");function $8t(e){return mh(),y(e,12).g.c.length!=0}i($8t,"c$b");function Jin(e,n){return J5(),ha(n.a.o.a,e.a.o.a)}i(Jin,"g7b");function B9(e){return Gl(e)?""+e:oGt(e)}i(B9,"hdb");function o7(e,n){if(e<0||e>=n)throw xe(new l4t)}i(o7,"sxb");function Qin(e,n,o){e.a.Mb(o)&&(e.b=!0,n.Ad(o))}i(Qin,"zCb");function n7e(e){e.d||(e.d=e.b.Jc(),e.c=e.b.gc())}i(n7e,"Xvb");function Zin(e){return e.e?RRe(e.e):null}i(Zin,"pmc");function G8t(e,n,o){return Xzt(e,y(n,12),y(o,12))}i(G8t,"Mlc");function ean(e,n,o){n.of(o,He(Xe(Jr(e.b,o)))*e.a)}i(ean,"Byc");function j8t(e,n,o){return nR(),Kue(e,n)&&Kue(e,o)}i(j8t,"vfd");function tan(e,n){n.Tg("General 'Rotator",1),yCn(e)}i(tan,"C0c");function Fy(e,n,o,u){var p;p=e.i,p.i=n,p.a=o,p.b=u}i(Fy,"Tjc");function i7e(e){var n;for(n=e;n.f;)n=n.f;return n}i(i7e,"GKc");function a7e(e,n){this.e=e,this.d=(n&64)!=0?n|Z0:n}i(a7e,"rwb");function z8t(e,n){this.c=0,this.d=e,this.b=n|64|Z0}i(z8t,"Hwb");function xY(e){this.b=new vu(11),this.a=(Mx(),e)}i(xY,"wvb");function xce(e){this.b=null,this.a=(Mx(),e||dBe)}i(xce,"lyb");function U8t(e){this.a=$Ot(e.a),this.b=new Ah(e.b)}i(U8t,"wIc");function V8t(e){this.b=e,L5.call(this,e),X5t(this)}i(V8t,"ELd");function W8t(e){this.b=e,AF.call(this,e),K5t(this)}i(W8t,"MLd");function Gk(e,n,o){this.a=e,D5.call(this,n,o,5,6)}i(Gk,"W3d");function Qs(e,n,o,u,p){kue.call(this,e,n,o,u,p,-1)}i(Qs,"$1d");function F9(e,n,o,u,p){a$.call(this,e,n,o,u,p,-1)}i(F9,"o2d");function xt(e,n,o,u){Es.call(this,e,n,o),this.b=u}i(xt,"P3d");function TY(e,n,o,u){$F.call(this,e,n,o),this.b=u}i(TY,"Vge");function H8t(e){NSt.call(this,e,!1),this.a=!1}i(H8t,"ice");function q8t(){Ale.call(this,"LAYOUT_NEXT_LEVEL",3)}i(q8t,"_nd");function s7e(e,n,o,u){this.b=e,Es.call(this,n,o,u)}i(s7e,"Jhe");function Y8t(e,n){this.b=e,Zwt.call(this,e.b),this.a=n}i(Y8t,"Rj");function l7(e,n){var o;return o=e.a.gc(),CRe(n,o),o-n}i(l7,"kv");function Tce(e,n){return n.Sh()?gv(e.b,y(n,52)):n}i(Tce,"_Zd");function ran(e,n){return Cr(e.substr(0,n.length),n)}i(ran,"Ggb");function Gm(e){return new nn(new _Ae(e.a.length,e.a))}i(Gm,"Gl");function kY(e){return new Lt(e.c+e.b/2,e.d+e.a/2)}i(kY,"Jfd");function nan(e){return Mu(~e.l&ef,~e.m&ef,~e.h&q1)}i(nan,"qD");function kce(e){return typeof e===dG||typeof e===vde}i(kce,"WD");function Kc(e,n){return lo(n)?Wce(e,n):!!Sl(e.f,n)}i(Kc,"cjb");function CY(e,n){return Xi(),++Za,new T7e(e,n,0)}i(CY,"mre");function Cce(e,n){return Xi(),++Za,new T7e(6,e,n)}i(Cce,"ore");function So(e,n){for(Ur(n);e.Ob();)n.Ad(e.Pb())}i(So,"ftb");function X2(e,n,o){J0(),this.e=e,this.d=n,this.a=o}i(X2,"mib");function Ke(e,n,o,u){XMt(n,o,e.length),ian(e,n,o,u)}i(Ke,"Umb");function B5(e,n,o){return Gp(e.a,n),z8e(e.b,n.g,o)}i(B5,"crb");function ys(e,n){var o;return o=e.a.yc(n,e),o==null}i(ys,"esb");function o7e(e,n){var o;for(o=0;o<n;++o)e[o]=!1}i(o7e,"anb");function ian(e,n,o,u){var p;for(p=n;p<o;++p)e[p]=u}i(ian,"Ymb");function l7e(e,n,o){this.c=e,this.a=n,Ir(),this.b=o}i(l7e,"LAb");function aan(e,n,o){o7(o,e.a.c.length),Mf(e.a,o,n)}i(aan,"mxb");function jF(e,n){return e.a.yc(n,(qr(),Dv))==null}i(jF,"yzb");function san(e,n){return e>0?d.Math.log(e/n):-100}i(san,"YNb");function Ece(e){return new Er(null,han(e,e.length))}i(Ece,"jnb");function Sc(e){e.f=new d5t(e),e.i=new p5t(e),++e.g}i(Sc,"kjb");function X8t(e){if(!e)throw xe(new Hl);return e.d}i(X8t,"Ukb");function c7e(e,n){if(e==null)throw xe(new y5(n))}i(c7e,"ODb");function u7e(e,n){return n?Fo(e,n):!1}i(u7e,"Lmc");function $9(e){return _h(),!e.Gc(ry)&&!e.Gc(qv)}i($9,"amd");function G9(e){Dk(e.b!=-1),Gy(e.c,e.a=e.b),e.b=-1}i(G9,"Jmb");function fg(e,n,o){return sdn(e,n.g,o),Gp(e.c,n),e}i(fg,"Qbd");function oan(e,n,o){TCn(e.a,e.b,e.d,e.c,y(n,170),o)}i(oan,"BDd");function zF(e,n){P5t(e,Ge(n,163)?n:y(n,2001).Pl())}i(zF,"Qee");function lan(e){return YC(e,(Ss(),Il)),e.d=!0,e}i(lan,"bSb");function Sce(e){return!e.j&&RJr(e,mTn(e.g,e.b)),e.j}i(Sce,"Pde");function F5(e){var n;return n=lI(e),In(n!=null),n}i(F5,"Clb");function can(e){var n;return n=Wdn(e),In(n!=null),n}i(can,"Dlb");function uan(e,n,o){var u;return u=Jk(e,n),oue(e,n,o),u}i(uan,"CB");function Ace(e,n){this.d=e,Sn.call(this,e),this.e=n}i(Ace,"EKd");function h7e(e,n){bx.call(this,1),this.a=e,this.b=n}i(h7e,"bse");function K8t(e,n){return eu(e,n)<0?-1:eu(e,n)>0?1:0}i(K8t,"Kfb");function han(e,n){return Zun(n,e.length),new e8t(e,n)}i(han,"inb");function j9(e){return e.e==0?e:new X2(-e.e,e.d,e.a)}i(j9,"fib");function fan(e){return e==qa?YG:e==Ys?"-INF":""+e}i(fan,"nle");function dan(e){return e==qa?YG:e==Ys?"-INF":""+e}i(dan,"ple");function pan(e,n){return ha(e.c.c+e.c.b,n.c.c+n.c.b)}i(pan,"DLb");function EY(e,n){Ha(e.d,n,e.b.b,e.b),++e.a,e.c=null}i(EY,"jub");function J8t(e,n){return e.c?J8t(e.c,n):Nt(e.b,n),e}i(J8t,"aBb");function Lx(e,n){ts(bu(e.Mc(),new C0t),new BTt(n))}i(Lx,"Zhc");function c7(e,n,o,u,p){gfe(e,y(oa(n.k,o),16),o,u,p)}i(c7,"aic");function Q8t(e,n,o,u,p){for(;n<o;)u[p++]=Do(e,n++)}i(Q8t,"xgb");function Z8t(e,n,o){var u;for(u=0;u<n;++u)as(e,u,o)}i(Z8t,"_mb");function SY(e){e.s=NaN,e.c=NaN,WFt(e,e.e),WFt(e,e.j)}i(SY,"uPc");function e7t(e){e.a=null,e.e=null,Sc(e.b),e.d=0,++e.c}i(e7t,"rt");function Rce(e){return d.Math.abs(e.d.e-e.e.e)-e.a}i(Rce,"pLc");function gan(e,n){return ha(e.e.a+e.f.a,n.e.a+n.f.a)}i(gan,"cUc");function man(e,n){return ha(e.e.b+e.f.b,n.e.b+n.f.b)}i(man,"eUc");function yan(e,n,o){return y(e.c.fd(n,y(o,136)),45)}i(yan,"BMd");function ban(){return HH(),Se(Ee(Fqt,1),At,538,0,[o0e])}i(ban,"us");function t7t(){t7t=U,Vqt=new i5e(!1),Wqt=new i5e(!0)}i(t7t,"OB");function rv(){rv=U,Xr=tvn(),Dr(),u4&&gmn()}i(rv,"yRd");function On(e){return(e.i==null&&Q0(e),e.i).length}i(On,"NWd");function van(e,n){$5(e,new zk(n.f!=null?n.f:""+n.g))}i(van,"_Dd");function wan(e,n){$5(e,new zk(n.f!=null?n.f:""+n.g))}i(wan,"bEd");function rs(e,n){return e.Qi()&&(n=NRt(e,n)),e.Di(n)}i(rs,"nFd");function Lce(e,n){return n=e.Wk(null,n),iBt(e,null,n)}i(Lce,"gUd");function r7t(e,n,o){return Xi(),++Za,new aLt(e,n,o)}i(r7t,"nre");function xan(e,n){++e.j,pfe(e,e.i,n),rvn(e,y(n,344))}i(xan,"hee");function j(e,n,o){var u;return u=_ce(e,n),oIt(o,u),u}i(j,"Ceb");function _ce(e,n){var o;return o=new GLe,o.j=e,o.d=n,o}i(_ce,"Beb");function oi(e){if(e==null)throw xe(new f5);return e}i(oi,"Qb");function n7t(e){B7e.call(this),this.a=e,Nt(e.a,this)}i(n7t,"yNb");function i7t(){lv.call(this),this.a=!0,this.b=!0}i(i7t,"kie");function jk(e){this.d=(Ur(e),e),this.a=0,this.c=yG}i(jk,"$vb");function Dce(e,n){this.d=Ydn(e),this.c=n,this.a=.5*n}i(Dce,"CQc");function a7t(e,n){return y(q2(e.a).Kd().Xb(n),45).jd()}i(a7t,"qq");function z9(e){var n;return n=e.g,n||(e.g=new t5e(e))}i(z9,"Pc");function AY(e){var n;return n=e.k,n||(e.k=new r5e(e))}i(AY,"Uc");function f7e(e){var n;return n=e.k,n||(e.k=new r5e(e))}i(f7e,"ii");function Tan(e){var n;return n=e.i,n||(e.i=new Xwt(e))}i(Tan,"cj");function Ice(e){var n;return n=e.j,n||(e.j=new mxt(e))}i(Ice,"Fc");function s7t(e){var n;return n=e.f,n||(e.f=new LAe(e))}i(s7t,"_i");function Mce(e){var n;return n=e.d,n||(e.d=new hoe(e))}i(Mce,"wo");function d7e(e){return Ge(e,607)?e:new CRt(e)}i(d7e,"Vx");function o7t(e,n){return ZF(n,e.c.b.c.gc()),new UCt(e,n)}i(o7t,"wj");function p7e(e,n){return un(n,e.length+1),e.substr(n)}i(p7e,"Igb");function as(e,n,o){return Yen(o==null||ekn(e,o)),e[n]=o}i(as,"VC");function g7e(e,n){var o;return o=e.a.gc(),ZF(n,o),o-1-n}i(g7e,"jv");function l7t(e,n){var o;o=console[e],o.call(console,n)}i(l7t,"xDb");function Jr(e,n){return lo(n)?Jc(e,n):Yl(Sl(e.f,n))}i(Jr,"ejb");function m7e(e){e?$De(e,(Ny(),Kqt),""):Csn((Ny(),e))}i(m7e,"jHd");function c7t(e){O5e(),this.b=new Pt,this.a=e,x4n(this,e)}i(c7t,"PA");function u7t(e){this.b=new Pt,this.a=new Pt,this.c=e}i(u7t,"LRb");function Nc(e){this.c=new xo,this.a=new Pt,this.b=e}i(Nc,"y$b");function y7e(e){this.d=e,this.c=e.a.d.a,this.b=e.a.e.g}i(y7e,"Ktb");function b7e(e){this.b=e,this.a=y(qd(this.b.a.e),227)}i(b7e,"Qs");function v7e(e){for(;e.a.b!=0;)tCn(e,y(vRt(e.a),9))}i(v7e,"BBc");function Nce(e,n){for(Ur(n);e.c<e.d;)e.Qe(n,e.c++)}i(Nce,"Fwb");function kan(e,n){return J5(),y(yl(e,n.d),16).Ec(n)}i(kan,"f7b");function Can(e,n){return y(oe(n,(Bt(),z3)),15).a<e}i(Can,"$9b");function Ean(e,n,o,u){return o==0||(o-u)/o<e.e||n>=e.g}i(Ean,"VPb");function Oce(e,n,o){var u;return u=Uue(e,n,o),hIe(e,u)}i(Oce,"WIc");function $5(e,n){var o;o=e.a.length,Jk(e,o),oue(e,o,n)}i($5,"KAd");function h7t(e,n){var o;++e.j,o=e.Cj(),e.pj(e.Xi(o,n))}i(h7t,"qHd");function San(e,n,o){y(n.b,68),Zc(n.a,new C8e(e,o,n))}i(San,"Kad");function w7e(e,n,o){FH.call(this,n),this.a=e,this.b=o}i(w7e,"_6d");function x7e(e,n,o){this.a=e,_5e.call(this,n),this.b=o}i(x7e,"Q7d");function f7t(e,n,o){this.a=e,aRe.call(this,8,n,null,o)}i(f7t,"Sbe");function Aan(e){this.a=(Ur(Si),Si),this.b=e,new W5e}i(Aan,"kde");function d7t(e){this.c=e,this.a=new ya,this.b=new ya}i(d7t,"Ddd");function T7e(e,n,o){bx.call(this,e),this.a=n,this.b=o}i(T7e,"nse");function zk(e){if(e==null)throw xe(new f5);this.a=e}i(zk,"GC");function Ran(e){return!e.a&&(e.a=new Es(Yv,e,4)),e.a}i(Ran,"wTd");function _x(e){return!e.d&&(e.d=new Es(dl,e,1)),e.d}i(_x,"w0d");function u7(e,n){return e.a+=String.fromCharCode(n),e}i(u7,"Tgb");function nv(e,n){return e.a+=String.fromCharCode(n),e}i(nv,"bhb");function qd(e){if(e==null)throw xe(new f5);return e}i(qd,"Oub");function Lan(e){return f4?Wce(f4,e):!1}i(Lan,"xre");function p7t(e){return e?e.dc():!e.Jc().Ob()}i(p7t,"qte");function g7t(e){return qd(e),Ge(e,472)?y(e,472):zl(e)}i(g7t,"Fb");function m7t(e){return Ge(e,103)&&(y(e,19).Bb&Tc)!=0}i(m7t,"_0d");function U9(e){return d.Math.sqrt(e.a*e.a+e.b*e.b)}i(U9,"_fd");function RY(e,n){return sfe(e.c,e.f,n,e.b,e.a,e.e,e.d)}i(RY,"Qyb");function Dx(e,n){return o7(n,e.a.c.length),Wt(e.a,n)}i(Dx,"lxb");function D1(e,n){return Qe(e)===Qe(n)||e!=null&&ta(e,n)}i(D1,"Hb");function _an(e,n){mce(y(n.b,68),e),Zc(n.a,new k5e(e))}i(_an,"fMb");function iv(e){e.c?iv(e.c):(mv(e),e.d=!0)}i(iv,"cBb");function V9(e){e.c?e.c.Ye():(e.d=!0,own(e))}i(V9,"_Ab");function y7t(e){L7e(e.a),e.b=tt(Fs,Fr,1,e.b.length,5,1)}i(y7t,"_qb");function Wh(e){Dk(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}i(Wh,"Mjb");function b7t(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}i(b7t,"uFb");function v7t(e){this.c=e,this.b=this.c.a,this.a=this.c.e}i(v7t,"lt");function us(){_4t.call(this),vk(this.j.c,0),this.a=-1}i(us,"pcd");function w7t(){si.call(this,"DELAUNAY_TRIANGULATION",0)}i(w7t,"Z9c");function Dan(e,n){var o;o=e.Fh(n),o>=0?e.hi(o):g9e(e,n)}i(Dan,"xtd");function x7t(e){var n,o;return n=e.c.i.c,o=e.d.i.c,n==o}i(x7t,"dJc");function Zs(e){return!e.a&&e.c?e.c.b:e.a}i(Zs,"DYb");function Ian(e){return 0>=e?new x6e:Ehn(e-1)}i(Ian,"ABb");function Ur(e){if(e==null)throw xe(new f5);return e}i(Ur,"NDb");function Man(e){if(e.p!=6)throw xe(new hh);return e.f}i(Man,"NId");function Nan(e){if(e.p!=6)throw xe(new hh);return e.k}i(Nan,"WId");function Oan(e){if(e.p!=3)throw xe(new hh);return e.e}i(Oan,"KId");function Pan(e){if(e.p!=4)throw xe(new hh);return e.e}i(Pan,"LId");function Ban(e){if(e.p!=4)throw xe(new hh);return e.j}i(Ban,"UId");function Fan(e){if(e.p!=3)throw xe(new hh);return e.j}i(Fan,"TId");function k7e(e){return!e.b&&(e.b=new PH(new Roe)),e.b}i(k7e,"l8d");function Ix(e){return e.c==-2&&xJr(e,eyn(e.g,e.b)),e.c}i(Ix,"Lde");function h7(e,n){var o;return o=_ce("",e),o.n=n,o.i=1,o}i(h7,"Feb");function LY(e,n,o,u){xx.call(this,e,o),this.a=n,this.f=u}i(LY,"ep");function C7e(e,n,o,u){xx.call(this,e,n),this.d=o,this.a=u}i(C7e,"Vs");function T7t(e,n){this.b=e,Ace.call(this,e,n),X5t(this)}i(T7t,"FLd");function k7t(e,n){this.b=e,m8e.call(this,e,n),K5t(this)}i(k7t,"NLd");function C7t(){HDe.call(this,ep,(V8(),wWe)),p3n(this)}i(C7t,"l9d");function E7t(){HDe.call(this,kw,(dCt(),rar)),s4n(this)}i(E7t,"Ole");function S7t(e,n){yen.call(this,Shn(oi(e),oi(n))),this.a=n}i(S7t,"ry");function E7e(e,n){e.c<0||e.b.b<e.c?Uo(e.b,n):e.a.vf(n)}i(E7e,"Oqd");function $an(e,n){Zn((!e.a&&(e.a=new DF(e,e)),e.a),n)}i($an,"wyd");function Do(e,n){return un(n,e.length),e.charCodeAt(n)}i(Do,"sgb");function Gan(e,n){return Yc(n.j.c.length,e.j.c.length)}i(Gan,"gjc");function Oi(e,n,o){return lo(n)?Al(e,n,o):Ju(e.f,n,o)}i(Oi,"hjb");function S7e(e){return Ir(),e?e.Me():(Mx(),Mx(),pBe)}i(S7e,"Pnb");function jan(e){return Of(e,kde),mX(Ho(Ho(5,e),e/10|0))}i(jan,"Qu");function zan(e,n,o){return Z5(),o.Kg(e,y(n.jd(),147))}i(zan,"jbd");function A7t(e,n){return cY(),new Q_e(new o6t(e),new s6t(n))}i(A7t,"qx");function Oc(e,n){return Qe(e)===Qe(n)||e!=null&&ta(e,n)}i(Oc,"Mub");function yl(e,n){return pce(e.a,n)?e.b[y(n,24).g]:null}i(yl,"brb");function Uan(e){return String.fromCharCode.apply(null,e)}i(Uan,"Ogb");function R7t(e){return!e.d&&(e.d=new O8(e.c.Bc())),e.d}i(R7t,"Cpb");function f7(e){return!e.a&&(e.a=new Z4t(e.c.vc())),e.a}i(f7,"zpb");function L7t(e){return!e.b&&(e.b=new j8(e.c.ec())),e.b}i(L7t,"Bpb");function UF(e){return e.j.c.length=0,L7e(e.c),Dtn(e.a),e}i(UF,"Nbd");function _7t(e,n){var o;return o=new Nc(e),tn(n.c,o),o}i(_7t,"VCc");function Pce(e){return!e.n&&(e.n=new xt(nc,e,1,7)),e.n}i(Pce,"Gvd");function Van(e){return!e.b&&(e.b=new zr(Hn,e,4,7)),e.b}i(Van,"Hwd");function A7e(e){return!e.c&&(e.c=new zr(Hn,e,5,8)),e.c}i(A7e,"Iwd");function R7e(e){return!e.c&&(e.c=new xt(rf,e,9,9)),e.c}i(R7e,"Szd");function ji(e,n,o,u){return VIt(e,n,o,!1),qX(e,u),e}i(ji,"Tyd");function jm(e,n){for(;n-- >0;)e=e<<1|(e<0?1:0);return e}i(jm,"Afb");function D7t(e,n){e.u.Gc((_h(),ry))&&Kbn(e,n),Wcn(e,n)}i(D7t,"iKb");function I7t(e,n){x_e(e,He(G1(n,"x")),He(G1(n,"y")))}i(I7t,"tBd");function M7t(e,n){x_e(e,He(G1(n,"x")),He(G1(n,"y")))}i(M7t,"GBd");function Wan(){return o9(),Se(Ee(AUe,1),At,528,0,[Mj])}i(Wan,"bad");function Han(){return aq(),Se(Ee(Nrr,1),At,547,0,[fye])}i(Han,"D8c");function qan(){return iq(),Se(Ee(sUe,1),At,477,0,[hye])}i(qan,"u8c");function Bce(){Bce=U,jqt=new L6e(Se(Ee(Cw,1),sJ,45,0,[]))}i(Bce,"Hx");function Yan(e){return e!=null&&i9(Ree,e.toLowerCase())}i(Yan,"JQd");function Xan(e,n){return new iRt(y(oi(e),51),y(oi(n),51))}i(Xan,"My");function Kan(e,n,o){var u;u=y(e.d.Kb(o),162),u&&u.Nb(n)}i(Kan,"Ak");function L7e(e){var n;for(n=e.Jc();n.Ob();)n.Pb(),n.Qb()}i(L7e,"ze");function kC(e){var n;return n=e.b,!n&&(e.b=n=new Ywt(e)),n}i(kC,"Gh");function d7(e){return e.e==GR&&EJr(e,pgn(e.g,e.b)),e.e}i(d7,"Nde");function VF(e){return e.f==GR&&AJr(e,nmn(e.g,e.b)),e.f}i(VF,"Ode");function W9(e){this.d=e,this.a=this.d.b,this.b=this.d.c}i(W9,"Ulb");function _7e(e,n){this.b=e,this.c=n,this.a=new v5(this.b)}i(_7e,"jy");function Fce(e,n,o){this.a=dMe,this.d=e,this.b=n,this.c=o}i(Fce,"ogb");function N7t(e,n){this.d=(Ur(e),e),this.a=16449,this.c=n}i(N7t,"_vb");function Jan(e,n){return ha(e.d.c+e.d.b/2,n.d.c+n.d.b/2)}i(Jan,"GFb");function Qan(e,n){return ha(e.g.c+e.g.b/2,n.g.c+n.g.b/2)}i(Qan,"ASb");function Zan(e,n){return C6e(),ha((Ur(e),e),(Ur(n),n))}i(Zan,"vTb");function Hi(e,n){return mv(e),new Er(e,new zRe(n,e.a))}i(Hi,"VBb");function bu(e,n){return mv(e),new Er(e,new ARe(n,e.a))}i(bu,"ZBb");function Uk(e,n){return mv(e),new YAe(e,new W_t(n,e.a))}i(Uk,"$Bb");function _Y(e,n){return mv(e),new XAe(e,new H_t(n,e.a))}i(_Y,"_Bb");function esn(e,n,o){l3n(e.a,o),Sfn(o),Mvn(e.b,o),L3n(n,o)}i(esn,"Vbc");function DY(e,n,o,u){this.a=e,this.c=n,this.b=o,this.d=u}i(DY,"ZJc");function D7e(e,n,o,u){this.c=e,this.b=n,this.a=o,this.d=u}i(D7e,"ALc");function O7t(e,n,o,u){this.c=e,this.b=n,this.d=o,this.a=u}i(O7t,"dMc");function IY(e,n,o,u){this.a=e,this.e=n,this.d=o,this.c=u}i(IY,"$Wb");function P7t(e,n,o,u){this.a=e,this.d=n,this.c=o,this.b=u}i(P7t,"pQc");function Op(e,n,o,u){this.c=e,this.d=n,this.b=o,this.a=u}i(Op,"Pfd");function G5(e,n,o,u){si.call(this,e,n),this.a=o,this.b=u}i(G5,"rjc");function B7t(e,n,o,u){BMt.call(this,e,o,u,!1),this.f=n}i(B7t,"zlc");function $ce(e,n,o){var u,p;return u=eMe(e),p=n.qi(o,u),p}i($ce,"Jtd");function I1(e){var n,o;return o=(n=new vx,n),k7(o,e),o}i(I1,"Hyd");function Gce(e){var n,o;return o=(n=new vx,n),XDe(o,e),o}i(Gce,"Iyd");function F7t(e){return!e.b&&(e.b=new xt(Cs,e,12,3)),e.b}i(F7t,"Qzd");function jce(e){var n;return n=Rhn(e),n||null}i(jce,"vWb");function tsn(e){_f();var n;n=y(e.g,9),n.n.a=e.d.c+n.d.b}i(tsn,"Fec");function $7t(e){this.a=new Pt,this.e=tt(pi,Dt,54,e,0,2)}i($7t,"WEc");function zce(e){this.f=e,this.c=this.f.e,e.f>0&&NPt(this)}i(zce,"NNd");function G7t(e,n,o,u){this.a=e,this.c=n,this.d=o,this.b=u}i(G7t,"K5d");function j7t(e,n,o,u){this.a=e,this.b=n,this.d=o,this.c=u}i(j7t,"CDd");function z7t(e,n,o,u){this.a=e,this.b=n,this.c=o,this.d=u}i(z7t,"DCd");function U7t(e,n,o,u){this.a=e,this.b=n,this.c=o,this.d=u}i(U7t,"FCd");function K2(e,n,o,u){this.e=e,this.a=n,this.c=o,this.d=u}i(K2,"u5d");function V7t(e,n,o,u){cd(),G_t.call(this,n,o,u),this.a=e}i(V7t,"P6d");function W7t(e,n,o,u){cd(),G_t.call(this,n,o,u),this.a=e}i(W7t,"W6d");function H7t(e,n){this.a=e,mtn.call(this,e,y(e.d,16).dd(n))}i(H7t,"Tg");function rsn(e,n){return ha(ph(e)*pf(e),ph(n)*pf(n))}i(rsn,"Nod");function nsn(e,n){return ha(ph(e)*pf(e),ph(n)*pf(n))}i(nsn,"Ood");function j5(e){var n;return n=e.f,n||(e.f=new H8(e,e.c))}i(j5,"nd");function Ir(){Ir=U,Go=new he,Qm=new pe,bQ=new ge}i(Ir,"Inb");function Mx(){Mx=U,dBe=new Ae,m0e=new Ae,pBe=new ve}i(Mx,"Cqb");function p7(e){if(Jh(e.d),e.d.d!=e.c)throw xe(new od)}i(p7,"Lg");function I7e(e){return In(e.b<e.d.gc()),e.d.Xb(e.c=e.b++)}i(I7e,"Ljb");function gf(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}i(gf,"cub");function M7e(e,n){return e.b=n.b,e.c=n.c,e.d=n.d,e.a=n.a,e}i(M7e,"hYb");function isn(e,n,o){return Nt(e.a,(Jhe(n,o),new xx(n,o))),e}i(isn,"hq");function q7t(e){return N9(e==null||kce(e)&&e.Rm!==te),e}i(q7t,"ND");function MY(e){return e.n&&(e.e!==cUt&&e.he(),e.j=null),e}i(MY,"$y");function asn(e){return e.length>0?Bp(e):new Pt}i(asn,"Gse");function ssn(e,n){return y(oe(e,(Tt(),F6)),16).Ec(n),n}i(ssn,"lcc");function osn(e,n){return Sr(e,y(oe(n,(Bt(),z3)),15),n)}i(osn,"M9b");function lsn(e){return Kx(e)&&Kt(Xt(St(e,(Bt(),Lw))))}i(lsn,"_$b");function csn(e,n,o){return s9(),mpn(y(Jr(e.e,n),517),o)}i(csn,"bec");function usn(e,n,o){e.i=0,e.e=0,n!=o&&NMt(e,n,o)}i(usn,"dgc");function hsn(e,n,o){e.i=0,e.e=0,n!=o&&OMt(e,n,o)}i(hsn,"egc");function Y7t(e,n,o,u){this.b=e,this.c=u,Pq.call(this,n,o)}i(Y7t,"vCb");function X7t(e,n){this.g=e,this.d=Se(Ee(e1,1),Zy,9,0,[n])}i(X7t,"SFc");function K7t(e,n){e.d&&!e.d.a&&($3t(e.d,n),K7t(e.d,n))}i(K7t,"smc");function J7t(e,n){e.e&&!e.e.a&&($3t(e.e,n),J7t(e.e,n))}i(J7t,"tmc");function Q7t(e,n){return PC(e.j,n.s,n.c)+PC(n.e,e.s,e.c)}i(Q7t,"YPc");function fsn(e){return y(e.jd(),147).Og()+":"+zl(e.kd())}i(fsn,"Iqd");function dsn(e,n){return-ha(ph(e)*pf(e),ph(n)*pf(n))}i(dsn,"Mod");function psn(e,n){return mf(e),mf(n),W4t(y(e,24),y(n,24))}i(psn,"ccd");function J2(e,n,o){var u,p;u=Qle(o),p=new DH(u),Fp(e,n,p)}i(J2,"MAd");function N7e(e,n){new ya,this.a=new Vh,this.b=e,this.c=n}i(N7e,"FTc");function Z7t(e){this.b=new Pt,Is(this.b,this.b),this.a=e}i(Z7t,"s1b");function eRt(e){this.b=new cmt,this.a=e,d.Math.random()}i(eRt,"NHc");function tRt(){xfe(this,new QSe),this.wb=(rv(),Xr),V8()}i(tRt,"$yd");function rRt(){ql.call(this,"There is no more element.")}i(rRt,"Lub");function nRt(e,n,o,u){iAe.call(this,n,o),this.b=e,this.a=u}i(nRt,"Fhe");function Uce(e,n,o,u,p,g){a$.call(this,e,n,o,u,p,g?-2:-1)}i(Uce,"q2d");function NY(e){return!e.a&&(e.a=new xt(Ti,e,10,11)),e.a}i(NY,"Pzd");function ca(e){return!e.q&&(e.q=new xt(lp,e,11,10)),e.q}i(ca,"HWd");function wt(e){return!e.s&&(e.s=new xt(ih,e,21,17)),e.s}i(wt,"KWd");function OY(e,n){if(e==null)throw xe(new y5(n));return e}i(OY,"Rb");function iRt(e,n){JJr.call(this,new xce(e)),this.a=e,this.b=n}i(iRt,"Ky");function O7e(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}i(O7e,"xu");function gsn(e){qH(),d.setTimeout(function(){throw e},0)}i(gsn,"Oz");function msn(e){return oi(e),KOt(new nn(cn(e.a.Jc(),new B)))}i(msn,"$q");function PY(e){return Ir(),Ge(e,59)?new $oe(e):new Vq(e)}i(PY,"Rnb");function Vce(e){return Ge(e,18)?new Bk(y(e,18)):nin(e.Jc())}i(Vce,"Qx");function ysn(e){return new Q5t(e,e.e.Pd().gc()*e.c.Pd().gc())}i(ysn,"Ti");function bsn(e){return new Z5t(e,e.e.Pd().gc()*e.c.Pd().gc())}i(bsn,"dj");function P7e(e){return e&&e.hashCode?e.hashCode():Sx(e)}i(P7e,"Az");function Wce(e,n){return n==null?!!Sl(e.f,null):$in(e.i,n)}i(Wce,"gjb");function vsn(e,n){var o;return o=wAe(e.a,n),o&&(n.d=null),o}i(vsn,"NRb");function aRt(e,n,o){return e.f?e.f.cf(n,o):!1}i(aRt,"dFb");function WF(e,n,o,u){as(e.c[n.g],o.g,u),as(e.c[o.g],n.g,u)}i(WF,"TAc");function Hce(e,n,o,u){as(e.c[n.g],n.g,o),as(e.b[n.g],n.g,u)}i(Hce,"WAc");function wsn(e){e.Tg("No crossing minimization",1),e.Ug()}i(wsn,"nIc");function sRt(e){this.c=e,this.b=new My(y(oi(new nt),51))}i(sRt,"EFb");function oRt(e){this.c=e,this.b=new My(y(oi(new js),51))}i(oRt,"ySb");function lRt(e){this.b=e,this.a=new My(y(oi(new ai),51))}i(lRt,"CMb");function cRt(){this.b=new gs,this.d=new ya,this.e=new zH}i(cRt,"cOc");function uRt(){this.d=new ya,this.b=new jn,this.c=new Pt}i(uRt,"yCc");function B7e(){this.c=new xo,this.d=new xo,this.e=new xo}i(B7e,"xNb");function Nx(){this.a=new Vh,this.b=(Of(3,w3),new vu(3))}i(Nx,"GWb");function BY(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}i(BY,"Qfd");function hRt(e,n,o,u,p,g){this.a=e,Fue.call(this,n,o,u,p,g)}i(hRt,"rJd");function fRt(e,n,o,u,p,g){this.a=e,Fue.call(this,n,o,u,p,g)}i(fRt,"kKd");function $y(e,n){this.e=e,this.a=Fs,this.b=CGt(n),this.c=n}i($y,"v5d");function dRt(e,n){return Ge(n,147)&&Cr(e.b,y(n,147).Og())}i(dRt,"AEd");function xsn(e,n){return e.a?n.Dh().Jc():y(n.Dh(),72).Gi()}i(xsn,"ece");function Tsn(e,n,o){return He(Xe(o.a))<=e&&He(Xe(o.b))>=n}i(Tsn,"bUc");function ksn(e,n,o){return o>=0&&Cr(e.substr(o,n.length),n)}i(ksn,"Hgb");function av(e,n,o,u,p,g,w){return new hue(e.e,n,o,u,p,g,w)}i(av,"see");function Yd(e,n,o){return ko(n,o,e.length),e.substr(n,o-n)}i(Yd,"Jgb");function FY(e,n){var o;return o=j2(e.Pm),n==null?o:o+": "+n}i(FY,"dz");function pRt(e,n){var o;return o=e.b.Oc(n),i_t(o,e.b.gc()),o}i(pRt,"Ypb");function HF(e,n){if(e==null)throw xe(new y5(n));return e}i(HF,"Pub");function Ol(e){return e.u||(Hh(e),e.u=new z6t(e,e)),e.u}i(Ol,"MWd");function qu(e){var n;return n=y(an(e,16),29),n||e.fi()}i(qu,"qud");function Csn(e){e&&FY(e,e.ge())}i(Csn,"xdb");function F7e(){F7e=U,bYt=new Re,wYt=new Q8e,vYt=new rt}i(F7e,"YEb");function g7(){g7=U;var e,n;n=!Jpn(),e=new W,h0e=n?new q:e}i(g7,"Zz");function Esn(){return oX(),Se(Ee(GFe,1),At,422,0,[$Fe,ime])}i(Esn,"Qnc");function Ssn(){return g$(),Se(Ee(XFe,1),At,419,0,[ZQ,YFe])}i(Ssn,"Koc");function Asn(){return l$(),Se(Ee(QFe,1),At,476,0,[JFe,tZ])}i(Asn,"mpc");function Rsn(){return YY(),Se(Ee(f$e,1),At,420,0,[Eme,h$e])}i(Rsn,"Hqc");function Lsn(){return ZY(),Se(Ee(S$e,1),At,423,0,[Ome,Nme])}i(Lsn,"lsc");function _sn(){return f$(),Se(Ee(fje,1),At,421,0,[g1e,m1e])}i(_sn,"kAc");function Dsn(){return K9(),Se(Ee(ber,1),At,519,0,[sN,aN])}i(Dsn,"eKc");function Isn(){return W0(),Se(Ee(Eer,1),At,510,0,[kT,ob])}i(Isn,"iNc");function Msn(){return Yg(),Se(Ee(Aer,1),At,509,0,[Nw,h0])}i(Msn,"qNc");function Nsn(){return pg(),Se(Ee(zer,1),At,516,0,[K3,Gv])}i(Nsn,"TPc");function Osn(){return Px(),Se(Ee(Xer,1),At,454,0,[jv,CE])}i(Osn,"RRc");function Psn(){return WY(),Se(Ee(oze,1),At,425,0,[F1e,sze])}i(Psn,"mYc");function Bsn(){return IX(),Se(Ee(lze,1),At,487,0,[WZ,AE])}i(Bsn,"m_c");function Fsn(){return cX(),Se(Ee(uze,1),At,426,0,[cze,V1e])}i(Fsn,"L0c");function $sn(){return tX(),Se(Ee(Zze,1),At,478,0,[oye,Qze])}i($sn,"A5c");function Gsn(){return n$(),Se(Ee(oUe,1),At,428,0,[dye,ree])}i(Gsn,"L8c");function jsn(){return gX(),Se(Ee(ABe,1),At,424,0,[R0e,kQ])}i(jsn,"yOb");function zsn(){return S7(),Se(Ee(rKt,1),At,503,0,[rj,U0e])}i(zsn,"E2b");function Usn(){return T$(),Se(Ee(LUe,1),At,427,0,[iee,RUe])}i(Usn,"mad");function $Y(e,n,o,u){return o>=0?e.Rh(n,o,u):e.zh(null,o,u)}i($Y,"ftd");function qF(e){return e.b.b==0?e.a.uf():oce(e.b)}i(qF,"Nqd");function Vsn(e){if(e.p!=5)throw xe(new hh);return mi(e.f)}i(Vsn,"MId");function Wsn(e){if(e.p!=5)throw xe(new hh);return mi(e.k)}i(Wsn,"VId");function $7e(e){return Qe(e.a)===Qe((que(),Zye))&&e4n(e),e.a}i($7e,"aZd");function gRt(e,n){cJr(this,new Lt(e.a,e.b)),uJr(this,BF(n))}i(gRt,"kRc");function mRt(e,n){Kq.call(this),KRe(this),this.a=e,this.c=n}i(mRt,"yIb");function G7e(e,n,o){cd(),FH.call(this,n),this.a=e,this.b=o}i(G7e,"P5d");function qce(e,n,o){Xi(),bx.call(this,e),this.b=n,this.a=o}i(qce,"rse");function Ox(){QJr.call(this,new w5(r3(12))),SAe(!0),this.a=2}i(Ox,"Np");function yRt(){Ale.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}i(yRt,"Znd");function Px(){Px=U,jv=new Y6e(w6,0),CE=new Y6e(x6,1)}i(Px,"ORc");function W0(){W0=U,kT=new W6e(x6,0),ob=new W6e(w6,1)}i(W0,"fNc");function Hsn(e,n){e.c=n,e.c>0&&e.b>0&&(e.g=dY(e.c,e.b,e.a))}i(Hsn,"f7c");function qsn(e,n){e.b=n,e.c>0&&e.b>0&&(e.g=dY(e.c,e.b,e.a))}i(qsn,"e7c");function bRt(e){var n;n=e.c.d.b,e.b=n,e.a=e.c.d,n.a=e.c.d.b=e}i(bRt,"ytb");function YF(e){var n;bhn(e.a),T5t(e.a),n=new KB(e.a),Rhe(n)}i(YF,"iEb");function Jc(e,n){return n==null?Yl(Sl(e.f,null)):h9(e.i,n)}i(Jc,"fjb");function vRt(e){return e.b==0?null:(In(e.b!=0),dd(e,e.a.a))}i(vRt,"$tb");function Po(e){return Math.max(Math.min(e,Ui),-2147483648)|0}i(Po,"YD");function wRt(e,n,o,u,p){return new kfe(e,(x7(),w0e),n,o,u,p)}i(wRt,"iyb");function GY(e,n){return s_t(n),dhn(e,tt(pi,Pi,30,n,15,1),n)}i(GY,"Pmb");function Ysn(e,n){return $1(),y(oe(n,(uc(),um)),15).a==e}i(Ysn,"AZc");function Xsn(e,n){dGt(e,!0),Zc(e.e.Pf(),new w8e(e,!0,n))}i(Xsn,"EKb");function jY(e,n){return OY(e,"set1"),OY(n,"set2"),new sEt(e,n)}i(jY,"Px");function Ksn(e,n){var o=u0e[e.charCodeAt(0)];return o??e}i(Ksn,"Cz");function Jsn(e,n){var o;return o=chn(e.f,n),ra(Xq(o),e.f.d)}i(Jsn,"wRb");function xRt(e,n){var o,u;return o=n,u=new lt,szt(e,o,u),u.d}i(xRt,"cyb");function Yce(e,n,o,u){var p;p=new X6t,n.a[o.g]=p,B5(e.b,u,p)}i(Yce,"hKb");function j7e(e,n,o){var u;u=e.Fh(n),u>=0?e.$h(u,o):W9e(e,n,o)}i(j7e,"ttd");function CC(e,n,o){UY(),e&&Oi(Kye,e,n),e&&Oi(nz,e,o)}i(CC,"YGd");function TRt(e,n,o){this.i=new Pt,this.b=e,this.g=n,this.a=o}i(TRt,"m8c");function zY(e,n,o){this.c=new Pt,this.e=e,this.f=n,this.b=o}i(zY,"X6c");function z7e(e,n,o){this.a=new Pt,this.e=e,this.f=n,this.c=o}i(z7e,"d7c");function kRt(e){Kq.call(this),KRe(this),this.a=e,this.c=!0}i(kRt,"wIb");function CRt(e){this.a=y(oi(e),277),this.b=(Ir(),new MAe(e))}i(CRt,"ly");function ERt(e,n){Gq(this),this.f=n,this.g=e,MY(this),this.he()}i(ERt,"gz");function XF(e,n){var o;o=e.q.getHours(),e.q.setDate(n),GI(e,o)}i(XF,"fB");function SRt(e,n){var o;for(oi(n),o=e.a;o;o=o.c)n.Wd(o.g,o.i)}i(SRt,"to");function ARt(e){var n;return n=new JH(r3(e.length)),ULe(n,e),n}i(ARt,"Sx");function Qsn(e){function n(){}return i(n,"b"),n.prototype=e||{},new n}i(Qsn,"sdb");function Zsn(e,n){return hMt(e,n)?(fIt(e),!0):!1}i(Zsn,"Alb");function M1(e,n){if(n==null)throw xe(new f5);return Zpn(e,n)}i(M1,"iC");function eon(e){if(e.ye())return null;var n=e.n;return fQ[n]}i(eon,"Jeb");function Vk(e){return e.Db>>16!=3?null:y(e.Cb,26)}i(Vk,"Gwd");function qg(e){return e.Db>>16!=9?null:y(e.Cb,26)}i(qg,"gAd");function RRt(e){return e.Db>>16!=6?null:y(e.Cb,85)}i(RRt,"_wd");function LRt(e,n){var o;return o=e.Fh(n),o>=0?e.Th(o):Lfe(e,n)}i(LRt,"htd");function Xce(e,n,o){var u;u=IMt(e,n,o),e.b=new DX(u.c.length)}i(Xce,"$Ic");function Yg(){Yg=U,Nw=new H6e(tpe,0),h0=new H6e("UP",1)}i(Yg,"nNc");function _Rt(){_Rt=U,$qt=ci((HH(),Se(Ee(Fqt,1),At,538,0,[o0e])))}i(_Rt,"ws");function DRt(e){this.a=e,this.b=tt(ger,Dt,2008,e.e.length,0,2)}i(DRt,"uHc");function IRt(){this.a=new Om,this.e=new gs,this.g=0,this.i=0}i(IRt,"yEb");function ton(e){return!e.a&&(e.a=new xt(Ti,e,10,11)),e.a.i>0}i(ton,"Tzd");function Kce(e,n){return d.Math.abs(e)<d.Math.abs(n)?e:n}i(Kce,"D1b");function ron(e,n){return tY(),qr(),y(n.a,15).a<e}i(ron,"W8b");function non(e,n){return tY(),qr(),y(n.b,15).a<e}i(non,"V8b");function MRt(e,n){return e.b+=n.b,e.c+=n.c,e.d+=n.d,e.a+=n.a,e}i(MRt,"gYb");function U7e(e){var n;return n=e.d,n=e._i(e.f),Zn(e,n),n.Ob()}i(U7e,"JGd");function NRt(e,n){var o;return o=new Y8e(n),lBt(o,e),new Ah(o)}i(NRt,"sFd");function ion(e){if(e.p!=0)throw xe(new hh);return k9(e.f,0)}i(ion,"HId");function aon(e){if(e.p!=0)throw xe(new hh);return k9(e.k,0)}i(aon,"QId");function ORt(e){return e.Db>>16!=7?null:y(e.Cb,241)}i(ORt,"Cyd");function m7(e){return e.Db>>16!=6?null:y(e.Cb,241)}i(m7,"KVd");function V7e(e){return e.Db>>16!=7?null:y(e.Cb,174)}i(V7e,"zzd");function PRt(e){return e.Db>>16!=3?null:y(e.Cb,158)}i(PRt,"xTd");function $a(e){return e.Db>>16!=11?null:y(e.Cb,26)}i($a,"Rzd");function Wk(e){return e.Db>>16!=17?null:y(e.Cb,29)}i(Wk,"HUd");function W7e(e){var n;return mv(e),n=new gs,Hi(e,new Fxt(n))}i(W7e,"UBb");function BRt(e,n){var o=e.a=e.a||[];return o[n]||(o[n]=e.te(n))}i(BRt,"Heb");function son(e,n){var o;o=e.q.getHours(),e.q.setMonth(n),GI(e,o)}i(son,"iB");function Bo(e,n){e.c&&Yu(e.c.g,e),e.c=n,e.c&&Nt(e.c.g,e)}i(Bo,"CWb");function Us(e,n){e.c&&Yu(e.c.a,e),e.c=n,e.c&&Nt(e.c.a,e)}i(Us,"NYb");function mo(e,n){e.d&&Yu(e.d.e,e),e.d=n,e.d&&Nt(e.d.e,e)}i(mo,"DWb");function Kl(e,n){e.i&&Yu(e.i.j,e),e.i=n,e.i&&Nt(e.i.j,e)}i(Kl,"wZb");function Al(e,n,o){return n==null?Ju(e.f,null,o):Ux(e.i,n,o)}i(Al,"ijb");function H9(e,n,o,u,p,g){return new B1(e.e,n,e.Jj(),o,u,p,g)}i(H9,"qXd");function oon(e){return dhe(),qr(),y(e.a,82).d.e!=0}i(oon,"CRb");function FRt(e,n){this.a=e,this.c=Wo(this.a),this.b=new BY(n)}i(FRt,"vMb");function $Rt(e,n,o){this.a=n,this.c=e,this.b=(oi(o),new Ah(o))}i($Rt,"tEb");function GRt(e,n,o){this.a=n,this.c=e,this.b=(oi(o),new Ah(o))}i(GRt,"YTb");function Hk(e,n){if(e<0||e>n)throw xe(new yu(TMe+e+kMe+n))}i(Hk,"PDb");function UY(){UY=U,Kye=new jn,nz=new jn,TZr(iYt,new _bt)}i(UY,"VGd");function jRt(){jRt=U,KZt=Xc(new us,(eo(),hl),(ho(),M6))}i(jRt,"zBc");function zRt(){zRt=U,JZt=Xc(new us,(eo(),hl),(ho(),M6))}i(zRt,"HBc");function URt(){URt=U,QZt=Xc(new us,(eo(),hl),(ho(),M6))}i(URt,"RBc");function H7e(){H7e=U,ZZt=Xc(new us,(eo(),hl),(ho(),M6))}i(H7e,"YBc");function VRt(){VRt=U,ter=Xc(new us,(eo(),hl),(ho(),M6))}i(VRt,"qCc");function q7e(){q7e=U,rer=Xc(new us,(eo(),hl),(ho(),M6))}i(q7e,"wCc");function WRt(){WRt=U,wer=Ei(new us,(eo(),hl),(ho(),NM))}i(WRt,"jKc");function Df(){Df=U,ker=Ei(new us,(eo(),hl),(ho(),NM))}i(Df,"OKc");function HRt(){HRt=U,Cer=Ei(new us,(eo(),hl),(ho(),NM))}i(HRt,"RMc");function Jce(){Jce=U,Ler=Ei(new us,(eo(),hl),(ho(),NM))}i(Jce,"FNc");function qRt(){qRt=U,Ctr=Xc(new us,(o6(),lN),(FI(),Lje))}i(qRt,"qYc");function Q2(e,n,o,u){this.c=e,this.d=u,Zce(this,n),eue(this,o)}i(Q2,"MPc");function z5(e){this.c=new ya,this.b=e.b,this.d=e.c,this.a=e.a}i(z5,"cdd");function Qce(e){this.a=d.Math.cos(e),this.b=d.Math.sin(e)}i(Qce,"kgd");function Zce(e,n){e.a&&Yu(e.a.k,e),e.a=n,e.a&&Nt(e.a.k,e)}i(Zce,"KPc");function eue(e,n){e.b&&Yu(e.b.f,e),e.b=n,e.b&&Nt(e.b.f,e)}i(eue,"LPc");function YRt(e,n){San(e,e.b,e.c),y(e.b.b,68),n&&y(n.b,68).b}i(YRt,"Jad");function lon(e,n){k_e(e,n),Ge(e.Cb,88)&&f3(Hh(y(e.Cb,88)),2)}i(lon,"m4d");function tue(e,n){Ge(e.Cb,88)&&f3(Hh(y(e.Cb,88)),4),wu(e,n)}i(tue,"PUd");function VY(e,n){Ge(e.Cb,184)&&(y(e.Cb,184).tb=null),wu(e,n)}i(VY,"YVd");function XRt(e,n){var o;return o=y(i3(j5(e.a),n),18),o?o.gc():0}i(XRt,"Iw");function KRt(e){var n,o;return o=(V8(),n=new vx,n),k7(o,e),o}i(KRt,"I$d");function JRt(e){var n,o;return o=(V8(),n=new vx,n),k7(o,e),o}i(JRt,"R2d");function QRt(e){for(var n;;)if(n=e.Pb(),!e.Ob())return n}i(QRt,"wr");function KF(e){return J0(),eu(e,0)>=0?yv(e):j9(yv(zy(e)))}i(KF,"yib");function con(e,n){z5t(e,mi(co(Rx(n,24),uJ)),mi(co(n,uJ)))}i(con,"Uvb");function uon(e,n){return ha(y(e.c,65).c.e.b,y(n.c,65).c.e.b)}i(uon,"U$c");function hon(e,n){return ha(y(e.c,65).c.e.a,y(n.c,65).c.e.a)}i(hon,"V$c");function Qc(e,n){return tl(),Due(n)?new lY(n,e):new TF(n,e)}i(Qc,"Eee");function ZRt(e,n,o){return new kfe(e,(x7(),v0e),null,!1,n,o)}i(ZRt,"Yxb");function eLt(e,n,o){return new kfe(e,(x7(),x0e),n,o,null,!1)}i(eLt,"jyb");function tLt(e,n,o){var u;TNt(n,o,e.c.length),u=o-n,g6e(e.c,n,u)}i(tLt,"hmb");function sv(e,n,o){TNt(n,o,e.gc()),this.c=e,this.a=n,this.b=o-n}i(sv,"_jb");function Rr(e,n){this.b=(Ur(e),e),this.a=(n&x3)==0?n|64|Z0:n}i(Rr,"Zvb");function _r(e,n){if(e<0||e>=n)throw xe(new yu(TMe+e+kMe+n))}i(_r,"MDb");function un(e,n){if(e<0||e>=n)throw xe(new n6e(TMe+e+kMe+n))}i(un,"UDb");function fon(e,n){var o,u;o=n.c,u=o!=null,u&&$5(e,new zk(n.c))}i(fon,"aEd");function don(e,n,o){var u;u=new Vo(o.d),ra(u,e),x_e(n,u.a,u.b)}i(don,"eNb");function Y7e(e){var n;return mv(e),n=(Mx(),Mx(),m0e),yX(e,n)}i(Y7e,"fCb");function Xg(e){return Ql(Se(Ee(to,1),Dt,8,0,[e.i.n,e.n,e.a]))}i(Xg,"rZb");function pon(){return Z9(),Se(Ee(zBe,1),At,384,0,[I0e,D0e,M0e])}i(pon,"fQb");function gon(){return md(),Se(Ee(eh,1),At,130,0,[wBe,Zu,xBe])}i(gon,"IAb");function mon(){return yg(),Se(Ee(_3,1),At,237,0,[dc,Cu,pc])}i(mon,"FHb");function yon(){return Lh(),Se(Ee(CYt,1),At,461,0,[om,Iv,Hp])}i(yon,"kIb");function bon(){return Xu(),Se(Ee(SYt,1),At,462,0,[kg,Mv,qp])}i(bon,"bJb");function von(){return fI(),Se(Ee(nje,1),At,352,0,[o1e,rje,_Z])}i(von,"ezc");function won(){return L7(),Se(Ee(kme,1),At,302,0,[xme,Tme,oj])}i(won,"hqc");function xon(){return fv(),Se(Ee(Cme,1),At,329,0,[lj,u$e,B3])}i(xon,"qqc");function Ton(){return F1(),Se(Ee(zKt,1),At,316,0,[cj,pE,N6])}i(Ton,"zqc");function kon(){return jx(),Se(Ee(X0e,1),At,368,0,[mT,Nv,gT])}i(kon,"yic");function Con(){return uI(),Se(Ee(mje,1),At,348,0,[v1e,b1e,Tj])}i(Con,"LAc");function Eon(){return BX(),Se(Ee(gje,1),At,381,0,[dje,y1e,pje])}i(Eon,"CAc");function Son(){return sl(),Se(Ee(UZt,1),At,452,0,[rN,Mh,Eu])}i(Son,"tAc");function Aon(){return O7(),Se(Ee(bje,1),At,349,0,[w1e,yje,nN])}i(Aon,"dBc");function Ron(){return TX(),Se(Ee(xje,1),At,351,0,[wje,x1e,vje])}i(Ron,"mBc");function Lon(){return $X(),Se(Ee(Tje,1),At,382,0,[T1e,dL,X3])}i(Lon,"vBc");function _on(){return cI(),Se(Ee($je,1),At,385,0,[Fje,E1e,Ej])}i(_on,"xWc");function Don(){return R$(),Se(Ee(dze,1),At,386,0,[HZ,hze,fze])}i(Don,"V0c");function Ion(){return QX(),Se(Ee(Oze,1),At,387,0,[Nze,nye,Mze])}i(Ion,"W3c");function Mon(){return kX(),Se(Ee(WFe,1),At,350,0,[VFe,QQ,ame])}i(Mon,"koc");function Non(){return sw(),Se(Ee(MKt,1),At,449,0,[dme,ZR,fE])}i(Non,"Toc");function Oon(){return iK(),Se(Ee(Ize,1),At,436,0,[dN,XZ,K1e])}i(Oon,"T2c");function Pon(){return FX(),Se(Ee(Dze,1),At,304,0,[X1e,_ze,Lze])}i(Pon,"g2c");function Bon(){return YX(),Se(Ee(aUe,1),At,430,0,[nUe,iUe,cye])}i(Bon,"D6c");function Fon(){return uX(),Se(Ee(rUe,1),At,429,0,[lye,tUe,eUe])}i(Fon,"c6c");function $on(){return I$(),Se(Ee(uye,1),At,435,0,[ZZ,eee,tee])}i($on,"f8c");function Gon(){return Qg(),Se(Ee(SVe,1),At,279,0,[xL,i4,TL])}i(Gon,"akd");function jon(){return z1(),Se(Ee(FVe,1),At,347,0,[dee,hb,RN])}i(jon,"Tkd");function zon(){return tI(),Se(Ee(VVe,1),At,300,0,[Yj,jye,UVe])}i(zon,"bnd");function Uon(){return t6(),Se(Ee(qVe,1),At,281,0,[HVe,s4,vee])}i(Uon,"Jnd");function EC(e){return s9(),Ge(e.g,9)?y(e.g,9):null}i(EC,"$dc");function Von(e){return e.a==(b7(),Iee)&&bJr(e,Exn(e.g,e.b)),e.a}i(Von,"Kde");function U5(e){return e.d==(b7(),Iee)&&kJr(e,Ckn(e.g,e.b)),e.d}i(U5,"Mde");function Won(e,n){var o;return o=(Ur(e),e).g,GAe(!!o),Ur(n),o(n)}i(Won,"ls");function rLt(e,n,o){var u;u=new Bmt,u.b=n,u.a=o,++n.b,Nt(e.d,u)}i(rLt,"CNc");function Hon(e,n,o){var u;return u=UI(e,n,!1),u.b<=n&&u.a<=o}i(Hon,"N6c");function nLt(e,n){var o,u;return u=l7(e,n),o=e.a.dd(u),new iEt(e,o)}i(nLt,"iv");function qon(e){return e.Db>>16!=6?null:y(Ife(e),241)}i(qon,"PVd");function Yon(e){if(e.p!=2)throw xe(new hh);return mi(e.f)&As}i(Yon,"JId");function Xon(e){if(e.p!=2)throw xe(new hh);return mi(e.k)&As}i(Xon,"SId");function Z2(e){return oi(e),Ge(e,18)?new Ah(y(e,18)):i7(e.Jc())}i(Z2,"Uu");function rue(e){uY(),this.a=(Ir(),Ge(e,59)?new $oe(e):new Vq(e))}i(rue,"Ex");function co(e,n){return hv(Yin(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n))}i(co,"Ncb");function H0(e,n){return hv(Xin(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n))}i(H0,"_cb");function nue(e,n){return hv(Kin(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n))}i(nue,"idb");function X7e(e,n){return C8t(e.a,n)?z8e(e.b,y(n,24).g,null):null}i(X7e,"erb");function Kon(e){return Ho($m(vc(Qh(e,32)),32),vc(Qh(e,32)))}i(Kon,"Svb");function Jon(e){var n;return n=y(aY(e.b),10),new ud(e.a,n,e.c)}i(Jon,"Irb");function Qon(e,n){var o;o=He(Xe(e.a.mf((Ri(),cee)))),Lzt(e,n,o)}i(Qon,"qHb");function iLt(e,n){X2.call(this,1,2,Se(Ee(pi,1),Pi,30,15,[e,n]))}i(iLt,"lib");function K7e(e,n){KJr.call(this,new w5(r3(e))),Of(n,nUt),this.a=n}i(K7e,"Qi");function aLt(e,n,o){bx.call(this,25),this.b=e,this.a=n,this.c=o}i(aLt,"jse");function If(e){Xi(),bx.call(this,e),this.c=!1,this.a=!1}i(If,"Kre");function sLt(){this.c=new R5t,this.a=new U_t,this.b=new n4t,wEt()}i(sLt,"tQb");function WY(){WY=U,F1e=new X6e("DFS",0),sze=new X6e("BFS",1)}i(WY,"jYc");function J7e(e){return e.b==null||e.b.length==0?"n_"+e.a:"n_"+e.b}i(J7e,"ONb");function JF(e){return y(Zg(e,tt(e1,Zy,9,e.c.length,0,1)),199)}i(JF,"$Xb");function Q7e(e,n){return e&&e.equals?e.equals(n):Qe(e)===Qe(n)}i(Q7e,"zz");function Zon(e,n){return eI(),e.c==n.c?ha(n.d,e.d):ha(e.c,n.c)}i(Zon,"kTb");function eln(e,n){return eI(),e.c==n.c?ha(e.d,n.d):ha(e.c,n.c)}i(eln,"lTb");function tln(e,n){return eI(),e.c==n.c?ha(e.d,n.d):ha(n.c,e.c)}i(tln,"nTb");function rln(e,n){return eI(),e.c==n.c?ha(n.d,e.d):ha(n.c,e.c)}i(rln,"mTb");function nln(e,n){e.b=e.b|n.b,e.c=e.c|n.c,e.d=e.d|n.d,e.a=e.a|n.a}i(nln,"rFb");function iue(e,n,o){var u;u=e.d[n.p],e.d[n.p]=e.d[o.p],e.d[o.p]=u}i(iue,"lJc");function iln(e,n,o){var u;e.n&&n&&o&&(u=new ybt,Nt(e.e,u))}i(iln,"jod");function aln(e,n){var o;o=y(Jr(e.g,n),60),Zc(n.d,new HEt(e,o))}i(aln,"wec");function sln(e,n){var o,u;return o=sPt(e),u=sPt(n),o<u?-1:o>u?1:0}i(sln,"nVb");function oLt(e,n){var o,u;return o=Rue(n),u=o,y(Jr(e.c,u),15).a}i(oLt,"Sgc");function lLt(e,n){var o;for(o=e+"";o.length<n;)o="0"+o;return o}i(lLt,"fVc");function ew(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}i(ew,"LTc");function oln(e){return!!e.u&&Pc(e.u.a).i!=0&&!(e.n&&qhe(e.n))}i(oln,"PWd");function Z7e(e,n){return n==0?!!e.o&&e.o.f!=0:jhe(e,n)}i(Z7e,"$ud");function de(e){return In(e.a<e.c.c.length),e.b=e.a++,e.c.c[e.b]}i(de,"Imb");function aue(e,n){if(ys(e.a,n),n.d)throw xe(new ql(AUt));n.d=e}i(aue,"MRb");function eRe(e,n){this.a=new Pt,this.d=new Pt,this.f=e,this.c=n}i(eRe,"D7c");function cLt(){Z5(),this.b=new jn,this.a=new jn,this.c=new Pt}i(cLt,"hbd");function uLt(e,n,o){this.d=e,this.j=n,this.e=o,this.o=-1,this.p=3}i(uLt,"_Id");function hLt(e,n,o){this.d=e,this.k=n,this.f=o,this.o=-1,this.p=5}i(hLt,"aJd");function fLt(e,n,o,u,p,g){yRe.call(this,e,n,o,u,p),g&&(this.o=-2)}i(fLt,"u2d");function dLt(e,n,o,u,p,g){eLe.call(this,e,n,o,u,p),g&&(this.o=-2)}i(dLt,"d2d");function pLt(e,n,o,u,p,g){tLe.call(this,e,n,o,u,p),g&&(this.o=-2)}i(pLt,"f2d");function gLt(e,n,o,u,p,g){vRe.call(this,e,n,o,u,p),g&&(this.o=-2)}i(gLt,"h2d");function mLt(e,n,o,u,p,g){iLe.call(this,e,n,o,u,p),g&&(this.o=-2)}i(mLt,"j2d");function yLt(e,n,o,u,p,g){bRe.call(this,e,n,o,u,p),g&&(this.o=-2)}i(yLt,"l2d");function bLt(e,n,o,u,p,g){rLe.call(this,e,n,o,u,p),g&&(this.o=-2)}i(bLt,"n2d");function vLt(e,n,o,u,p,g){nLe.call(this,e,n,o,u,p),g&&(this.o=-2)}i(vLt,"s2d");function wLt(e,n,o,u){FH.call(this,o),this.b=e,this.c=n,this.d=u}i(wLt,"$5d");function xLt(e,n){this.f=e,this.a=(b7(),Dee),this.c=Dee,this.b=n}i(xLt,"zde");function TLt(e,n){this.g=e,this.d=(b7(),Iee),this.a=Iee,this.b=n}i(TLt,"Wde");function tRe(e,n){!e.c&&(e.c=new ns(e,0)),ZK(e.c,(ga(),GN),n)}i(tRe,"Tke");function lln(e,n){return n2n(e,n,Ge(n,103)&&(y(n,19).Bb&Jo)!=0)}i(lln,"_ee");function cln(e,n){return K8t(vc(e.q.getTime()),vc(n.q.getTime()))}i(cln,"dB");function kLt(e){return uce(e.e.Pd().gc()*e.c.Pd().gc(),16,new Jwt(e))}i(kLt,"ej");function uln(e){return!!e.a&&Yh(e.a.a).i!=0&&!(e.b&&Yhe(e.b))}i(uln,"C2d");function CLt(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}i(CLt,"Pxb");function q9(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}i(q9,"_hb");function ELt(e){return In(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}i(ELt,"mub");function SLt(e,n){var o;return o=1-n,e.a[o]=_X(e.a[o],o),_X(e,n)}i(SLt,"gyb");function ALt(e,n){var o,u;return u=co(e,ll),o=$m(n,32),H0(o,u)}i(ALt,"WDb");function hln(e,n,o){var u;return u=y(e.Zb().xc(n),18),!!u&&u.Gc(o)}i(hln,"Cc");function RLt(e,n,o){var u;return u=y(e.Zb().xc(n),18),!!u&&u.Kc(o)}i(RLt,"Gc");function LLt(e,n,o){var u;u=(oi(e),new Ah(e)),W0n(new $Rt(u,n,o))}i(LLt,"uEb");function QF(e,n,o){var u;u=(oi(e),new Ah(e)),H0n(new GRt(u,n,o))}i(QF,"ZTb");function fln(e,n,o){e.a=n,e.c=o,e.b.a.$b(),gf(e.d),vk(e.e.a.c,0)}i(fln,"bOc");function lc(e,n,o,u,p,g){return VIt(e,n,o,g),p_e(e,u),g_e(e,p),e}i(lc,"Ryd");function _Lt(e,n,o,u){return e.a+=""+Yd(n==null?Qu:zl(n),o,u),e}i(_Lt,"fhb");function yo(e,n){this.a=e,VD.call(this,e),Hk(n,e.gc()),this.b=n}i(yo,"Tjb");function DLt(e,n){var o;e.e=new X5e,o=p3(n),zs(o,e.c),tGt(e,o,0)}i(DLt,"I2c");function Ga(e,n,o,u){var p;p=new HSe,p.a=n,p.b=o,p.c=u,_i(e.a,p)}i(Ga,"wdd");function _t(e,n,o,u){var p;p=new HSe,p.a=n,p.b=o,p.c=u,_i(e.b,p)}i(_t,"xdd");function dln(e,n){return new ace(n,T6t(Wo(n.e),e,e),(qr(),!0))}i(dln,"hUc");function pln(e,n){return X5(),y(oe(n,(uc(),EE)),15).a>=e.gc()}i(pln,"HYc");function gln(e){return Df(),!Mo(e)&&!(!Mo(e)&&e.c.i.c==e.d.i.c)}i(gln,"lLc");function q0(e){return y(Zg(e,tt(HR,SR,17,e.c.length,0,1)),324)}i(q0,"ZXb");function HY(e){return new vu((Of(e,kde),mX(Ho(Ho(5,e),e/10|0))))}i(HY,"Yu");function mln(e){return uce(e.e.Pd().gc()*e.c.Pd().gc(),273,new Kwt(e))}i(mln,"Ui");function yln(e){$Nt((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a),new vyt)}i(yln,"B3c");function rRe(){var e,n,o;return n=(o=(e=new vx,e),o),Nt(_We,n),n}i(rRe,"g9d");function tw(e){var n;return Gl(e)?(n=e,n==-0?0:n):Lun(e)}i(tw,"fdb");function ILt(e,n){return Ge(n,45)?Zhe(e.a,y(n,45)):!1}i(ILt,"vjb");function MLt(e,n){return Ge(n,45)?Zhe(e.a,y(n,45)):!1}i(MLt,"orb");function NLt(e,n){return Ge(n,45)?Zhe(e.a,y(n,45)):!1}i(NLt,"Ctb");function bln(e,n){return e.a<=e.b?(n.Bd(e.a++),!0):!1}i(bln,"CBb");function ZF(e,n){if(e<0||e>=n)throw xe(new yu(Lbn(e,n)));return e}i(ZF,"Pb");function OLt(e,n,o){if(e<0||n<e||n>o)throw xe(new yu(Kyn(e,n,o)))}i(OLt,"Tb");function vln(e,n,o){e.d&&Yu(e.d.e,e),e.d=n,e.d&&W2(e.d.e,o,e)}i(vln,"EWb");function Y9(e,n){gEn(n,e),P8e(e.d),P8e(y(oe(e,(Bt(),kZ)),213))}i(Y9,"c2b");function sue(e,n){mEn(n,e),O8e(e.d),O8e(y(oe(e,(Bt(),kZ)),213))}i(sue,"d2b");function nRe(e){var n;return iv(e),n=new Ie,lC(e.a,new Oxt(n)),n}i(nRe,"iBb");function qY(e){var n;return iv(e),n=new De,lC(e.a,new Pxt(n)),n}i(qY,"FBb");function wln(e){return kC(e).dc()?!1:(oen(e,new V),!0)}i(wln,"fx");function xln(e){if(!("stack"in e))try{throw e}catch{}return e}i(xln,"iz");function Tln(e,n,o){var u;u=bgn();try{return Atn(e,n,o)}finally{Icn(u)}}i(Tln,"Mz");function Bx(e,n){var o,u;return o=M1(e,n),u=null,o&&(u=o.ne()),u}i(Bx,"SAd");function y7(e,n){var o,u;return o=Jk(e,n),u=null,o&&(u=o.qe()),u}i(y7,"TAd");function X9(e,n){var o,u;return o=M1(e,n),u=null,o&&(u=o.qe()),u}i(X9,"UAd");function N1(e,n){var o,u;return o=M1(e,n),u=null,o&&(u=r9e(o)),u}i(N1,"VAd");function kln(e,n,o){var u;return u=W7(o),qK(e.n,u,n),qK(e.o,n,o),n}i(kln,"_Bd");function iRe(e,n,o){this.d=new YTt(this),this.e=e,this.i=n,this.f=o}i(iRe,"mFc");function aRe(e,n,o,u){this.d=e,this.n=n,this.g=o,this.o=u,this.p=-1}i(aRe,"bJd");function PLt(e,n,o,u){return Ge(o,59)?new d6t(e,n,o,u):new t7e(e,n,o,u)}i(PLt,"Vc");function BLt(e){return y(Zg(e,tt(ZXt,eVt,12,e.c.length,0,1)),2007)}i(BLt,"_Xb");function FLt(e){this.a=tt(Fs,Fr,1,$Le(d.Math.max(8,e))<<1,5,1)}i(FLt,"Hlb");function $Lt(e){Hue.call(this,e,(x7(),b0e),null,!1,null,!1)}i($Lt,"Eyb");function GLt(e){var n;n=e.Dh(),this.a=Ge(n,72)?y(n,72).Gi():n.Jc()}i(GLt,"mie");function Cln(e){return new Rr(ohn(y(e.a.kd(),18).gc(),e.a.jd()),16)}i(Cln,"hx");function qk(e){return Ge(e,18)?y(e,18).dc():!e.Jc().Ob()}i(qk,"ar");function jLt(e){if(e.e.g!=e.b)throw xe(new od);return!!e.c&&e.d>0}i(jLt,"Qo");function Qn(e){return In(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}i(Qn,"lub");function sRe(e,n){Ur(n),as(e.a,e.c,n),e.c=e.c+1&e.a.length-1,dPt(e)}i(sRe,"slb");function ov(e,n){Ur(n),e.b=e.b-1&e.a.length-1,as(e.a,e.b,n),dPt(e)}i(ov,"rlb");function zLt(){zLt=U,Cje=A7t(Et(1),Et(4)),kje=A7t(Et(1),Et(2))}i(zLt,"WDc");function ULt(){ULt=U,Mrr=ci((iq(),Se(Ee(sUe,1),At,477,0,[hye])))}i(ULt,"w8c");function VLt(){VLt=U,Orr=ci((aq(),Se(Ee(Nrr,1),At,547,0,[fye])))}i(VLt,"F8c");function WLt(){WLt=U,Zrr=ci((o9(),Se(Ee(AUe,1),At,528,0,[Mj])))}i(WLt,"dad");function Eln(){return D7(),Se(Ee(jXt,1),At,408,0,[pT,I3,D3,oE])}i(Eln,"$Sb");function Sln(){return zx(),Se(Ee(JYt,1),At,409,0,[QG,JG,S0e,A0e])}i(Sln,"ULb");function Aln(){return x7(),Se(Ee(vQ,1),At,310,0,[b0e,v0e,w0e,x0e])}i(Aln,"ozb");function Rln(){return jX(),Se(Ee(sKt,1),At,367,0,[q0e,HQ,qQ,nj])}i(Rln,"n8b");function Lln(){return i6(),Se(Ee(HBe,1),At,383,0,[IM,WBe,F0e,$0e])}i(Lln,"BUb");function _ln(){return jp(),Se(Ee(yKt,1),At,413,0,[O3,YR,XR,Y0e])}i(_ln,"shc");function Dln(e){var n;return e.j==(zt(),Fn)&&(n=VFt(e),dh(n,bn))}i(Dln,"eic");function Iln(){return vI(),Se(Ee(UFe,1),At,301,0,[PM,jFe,aj,zFe])}i(Iln,"boc");function Mln(){return l3(),Se(Ee(c1e,1),At,203,0,[DZ,l1e,kE,TE])}i(Mln,"qzc");function Nln(){return V1(),Se(Ee(hje,1),At,269,0,[$v,uje,d1e,p1e])}i(Nln,"cAc");function HLt(e,n){return y(ff($k(y(oa(e.k,n),16).Mc(),cE)),113)}i(HLt,"Mkc");function qLt(e,n){return y(ff(P5(y(oa(e.k,n),16).Mc(),cE)),113)}i(qLt,"Nkc");function Oln(e,n){var o;o=n.a,Bo(o,n.c.d),mo(o,n.d.d),e3(o.a,e.n)}i(Oln,"qbc");function oRe(e,n){var o;return o=y(Jg(e.b,n),66),!o&&(o=new ya),o}i(oRe,"N_b");function V5(e){return s9(),Ge(e.g,156)?y(e.g,156):null}i(V5,"_dc");function Pln(e){e.a=null,e.e=null,vk(e.b.c,0),vk(e.f.c,0),e.c=null}i(Pln,"RNc");function YLt(e,n,o,u){this.e=null,this.c=e,this.d=n,this.a=o,this.b=u}i(YLt,"Kk");function lRe(e,n,o,u,p){this.i=e,this.a=n,this.e=o,this.j=u,this.f=p}i(lRe,"lmc");function XLt(e,n,o,u){var p;return p=u[n.g][o.g],He(Xe(oe(e.a,p)))}i(XLt,"PAc");function KLt(e,n){var o;for(o=e.j.c.length;o<n;o++)Nt(e.j,e.Mg())}i(KLt,"Gbd");function Bln(e,n){return A5(new Lt(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)}i(Bln,"YSc");function Fln(){return hI(),Se(Ee(aze,1),At,353,0,[B1e,VZ,P1e,O1e])}i(Fln,"eYc");function $ln(){return yK(),Se(Ee(Rze,1),At,354,0,[Y1e,Sze,Aze,Eze])}i($ln,"Y1c");function Gln(){return cw(),Se(Ee(der,1),At,404,0,[kj,iN,OZ,NZ])}i(Gln,"nHc");function jln(){return AK(),Se(Ee(trr,1),At,401,0,[eye,J1e,Z1e,Q1e])}i(jln,"n3c");function zln(){return o6(),Se(Ee(Aje,1),At,398,0,[$Z,oN,lN,cN])}i(zln,"NSc");function Uln(){return B7(),Se(Ee(EVe,1),At,278,0,[zj,fee,kVe,CVe])}i(Uln,"Tjd");function Vln(){return QY(),Se(Ee(Zj,1),At,288,0,[YVe,KVe,Uye,XVe])}i(Vln,"Tnd");function Wln(){return vf(),Se(Ee(MN,1),At,380,0,[Kj,Fw,Xj,a4])}i(Wln,"lnd");function Hln(){return U1(),Se(Ee($ye,1),At,222,0,[Fye,Uj,kL,eA])}i(Hln,"kkd");function qln(){return Bf(),Se(Ee(Xnr,1),At,292,0,[Wj,n1,Vv,Vj])}i(qln,"cld");function Yln(){return eK(),Se(Ee(eWe,1),At,327,0,[Vye,JVe,ZVe,QVe])}i(Yln,"jpd");function Xln(){return UX(),Se(Ee(dir,1),At,407,0,[Wye,rWe,tWe,nWe])}i(Xln,"Yqd");function Kln(e){return UY(),Kc(Kye,e)?y(Jr(Kye,e),342).Pg():null}i(Kln,"XGd");function hd(e,n,o){return n<0?Lfe(e,o):y(o,69).uk().zk(e,e.ei(),n)}i(hd,"Ysd");function Jln(e,n,o){var u;return u=W7(o),qK(e.f,u,n),Oi(e.g,n,o),n}i(Jln,"$Bd");function Qln(e,n,o){var u;return u=W7(o),qK(e.p,u,n),Oi(e.q,n,o),n}i(Qln,"aCd");function JLt(e){var n,o;return n=(Kb(),o=new noe,o),e&&FK(n,e),n}i(JLt,"WEd");function cRe(e){var n;return n=e.$i(e.i),e.i>0&&$c(e.g,0,n,0,e.i),n}i(cRe,"lGd");function dg(e){var n;for(n=0;e.Ob();)e.Pb(),n=Ho(n,1);return mX(n)}i(dg,"Br");function QLt(e,n){var o;return o=new sC,e.Ed(o),o.a+="..",n.Fd(o),o.a}i(QLt,"vx");function ZLt(e,n){sq();var o;return o=y(Jr(Aee,e),58),!o||o.dk(n)}i(ZLt,"bQd");function Zln(e,n,o){if(o){var u=o.me();e.a[n]=u(o)}else delete e.a[n]}i(Zln,"lC");function SC(e,n){return n.e==0||e.e==0?AM:(iR(),Pfe(e,n))}i(SC,"eib");function ecn(e){if(e.p!=1)throw xe(new hh);return mi(e.f)<<24>>24}i(ecn,"IId");function tcn(e){if(e.p!=1)throw xe(new hh);return mi(e.k)<<24>>24}i(tcn,"RId");function rcn(e){if(e.p!=7)throw xe(new hh);return mi(e.k)<<16>>16}i(rcn,"XId");function ncn(e){if(e.p!=7)throw xe(new hh);return mi(e.f)<<16>>16}i(ncn,"OId");function YY(){YY=U,Eme=new j6e(vR,0),h$e=new j6e("TOP_LEFT",1)}i(YY,"Eqc");function K9(){K9=U,sN=new V6e("UPPER",0),aN=new V6e("LOWER",1)}i(K9,"bKc");function icn(e,n,o){var u;u=y(Jr(e.g,o),60),Nt(e.a.c,new Ko(n,u))}i(icn,"yec");function acn(e,n,o,u,p){var g;g=y2n(p,o,u),Nt(n,xbn(p,g)),gyn(e,p,n)}i(acn,"aQc");function e_t(e,n,o){e.i=0,e.e=0,n!=o&&(OMt(e,n,o),NMt(e,n,o))}i(e_t,"bgc");function scn(e,n,o){return wce(Xe(Yl(Sl(e.f,n))),Xe(Yl(Sl(e.f,o))))}i(scn,"dEb");function ocn(e,n){return y(n==null?Yl(Sl(e.f,null)):h9(e.i,n),290)}i(ocn,"XQd");function t_t(e,n){return Qe(n)===Qe(e)?"(this Map)":n==null?Qu:zl(n)}i(t_t,"Nd");function uRe(e,n){return e==(Yr(),Ya)&&n==Ya?4:e==Ya||n==Ya?8:32}i(uRe,"SKc");function XY(e,n,o){return XK(e,n,o,Ge(n,103)&&(y(n,19).Bb&Jo)!=0)}i(XY,"pee");function lcn(e,n,o){return oR(e,n,o,Ge(n,103)&&(y(n,19).Bb&Jo)!=0)}i(lcn,"wee");function ccn(e,n,o){return c2n(e,n,o,Ge(n,103)&&(y(n,19).Bb&Jo)!=0)}i(ccn,"bfe");function zm(e,n){tl();var o;return o=y(e,69).tk(),Ryn(o,n),o.vl(n)}i(zm,"Bie");function O1(e,n){J0(),X2.call(this,e,1,Se(Ee(pi,1),Pi,30,15,[n]))}i(O1,"kib");function Yk(e,n){Xi(),bx.call(this,e),this.a=n,this.c=-1,this.b=-1}i(Yk,"Xre");function r_t(e,n){B7e.call(this),this.a=e,this.b=n,Nt(this.a.b,this)}i(r_t,"MNb");function J9(e){return In(e.a<e.c.a.length),e.b=e.a,y9t(e),e.c.b[e.b]}i(J9,"Vrb");function Pc(e){return e.n||(Hh(e),e.n=new E8t(e,dl,e),Ol(e)),e.n}i(Pc,"GWd");function n_t(e,n){var o;for(o=n;o;)Mk(e,o.i,o.j),o=$a(o);return e}i(n_t,"fqd");function i_t(e,n){var o;for(o=0;o<n;++o)as(e,o,new g5e(y(e[o],45)))}i(i_t,"Zpb");function hRe(e,n){var o;o=e.q.getHours(),e.q.setFullYear(n+Ev),GI(e,o)}i(hRe,"lB");function a_t(e,n){M7();var o;return o=e.j.g-n.j.g,o!=0?o:0}i(a_t,"yac");function oue(e,n,o){if(o){var u=o.me();o=u(o)}else o=void 0;e.a[n]=o}i(oue,"DB");function s_t(e){if(e<0)throw xe(new Y4t("Negative array size: "+e))}i(s_t,"HDb");function o_t(e){Ge(e,206)&&!Kt(Xt(e.mf((Ri(),lee))))&&wkn(y(e,26))}i(o_t,"$cd");function lue(e){return e.c&&e.d?J7e(e.c)+"->"+J7e(e.d):"e_"+Sx(e)}i(lue,"FNb");function ucn(e,n){var o;return o=n!=null?Jc(e,n):Yl(Sl(e.f,n)),Mq(o)}i(ucn,"fRd");function hcn(e,n){var o;return o=n!=null?Jc(e,n):Yl(Sl(e.f,n)),Mq(o)}i(hcn,"qRd");function fcn(e,n){return Ny(),Zn(wt(e.a),n)}i(fcn,"yZd");function dcn(e,n){return Ny(),Zn(wt(e.a),n)}i(dcn,"DZd");function rw(e,n,o){this.e=e,this.a=Fs,this.b=CGt(n),this.c=n,this.d=o}i(rw,"w5d");function cue(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}i(cue,"Ro");function l_t(e){this.c=e,this.a=y(Qd(e),159),this.b=this.a.hk().ti()}i(l_t,"$7d");function Xk(e,n,o,u){uLt.call(this,1,o,u),this.c=e,this.b=n}i(Xk,"Y1d");function uue(e,n,o,u){hLt.call(this,1,o,u),this.c=e,this.b=n}i(uue,"Z1d");function hue(e,n,o,u,p,g,w){Fue.call(this,n,u,p,g,w),this.c=e,this.a=o}i(hue,"yje");function lv(){jn.call(this),m6t(this),this.d.b=this.d,this.d.a=this.d}i(lv,"otb");function fRe(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}i(fRe,"Ysb");function KY(e){GDe(),z5t(this,mi(co(Rx(e,24),uJ)),mi(co(e,uJ)))}i(KY,"Wvb");function Rh(e,n){var o;return n.b.Kb(a9t(e,n.c.Ve(),(o=new Gxt(n),o)))}i(Rh,"SBb");function pcn(e,n){var o;return s_t(n),o=e.slice(0,n),o.length=n,Cue(o,e)}i(pcn,"Qmb");function JY(e){var n;return e?new Y8e(e):(n=new Om,Wue(n,e),n)}i(JY,"Tx");function gcn(e,n){var o;for(o=e.d-1;o>=0&&e.a[o]===n[o];o--);return o<0}i(gcn,"bib");function mcn(e,n){var o,u;u=!1;do o=SMt(e,n),u=u|o;while(o);return u}i(mcn,"ygc");function Ha(e,n,o,u){var p;p=new Be,p.c=n,p.b=o,p.a=u,u.b=o.a=p,++e.b}i(Ha,"Wtb");function QY(){QY=U,YVe=new o8t,KVe=new N8t,Uye=new yRt,XVe=new q8t}i(QY,"Qnd");function ZY(){ZY=U,Ome=new z6e(wg,0),Nme=new z6e("ALTERNATING",1)}i(ZY,"isc");function c_t(){c_t=U,PKt=ci((l$(),Se(Ee(QFe,1),At,476,0,[JFe,tZ])))}i(c_t,"opc");function u_t(){u_t=U,RKt=ci((oX(),Se(Ee(GFe,1),At,422,0,[$Fe,ime])))}i(u_t,"Snc");function h_t(){h_t=U,IKt=ci((g$(),Se(Ee(XFe,1),At,419,0,[ZQ,YFe])))}i(h_t,"Moc");function f_t(){f_t=U,VKt=ci((YY(),Se(Ee(f$e,1),At,420,0,[Eme,h$e])))}i(f_t,"Jqc");function d_t(){d_t=U,qKt=ci((ZY(),Se(Ee(S$e,1),At,423,0,[Ome,Nme])))}i(d_t,"nsc");function p_t(){p_t=U,zZt=ci((f$(),Se(Ee(fje,1),At,421,0,[g1e,m1e])))}i(p_t,"mAc");function g_t(){g_t=U,ver=ci((K9(),Se(Ee(ber,1),At,519,0,[sN,aN])))}i(g_t,"gKc");function m_t(){m_t=U,Ser=ci((W0(),Se(Ee(Eer,1),At,510,0,[kT,ob])))}i(m_t,"kNc");function y_t(){y_t=U,Rer=ci((Yg(),Se(Ee(Aer,1),At,509,0,[Nw,h0])))}i(y_t,"sNc");function b_t(){b_t=U,Uer=ci((pg(),Se(Ee(zer,1),At,516,0,[K3,Gv])))}i(b_t,"VPc");function v_t(){v_t=U,Ker=ci((Px(),Se(Ee(Xer,1),At,454,0,[jv,CE])))}i(v_t,"TRc");function w_t(){w_t=U,ktr=ci((WY(),Se(Ee(oze,1),At,425,0,[F1e,sze])))}i(w_t,"oYc");function x_t(){x_t=U,Rtr=ci((IX(),Se(Ee(lze,1),At,487,0,[WZ,AE])))}i(x_t,"o_c");function T_t(){T_t=U,Dtr=ci((cX(),Se(Ee(uze,1),At,426,0,[cze,V1e])))}i(T_t,"N0c");function k_t(){k_t=U,Arr=ci((tX(),Se(Ee(Zze,1),At,478,0,[oye,Qze])))}i(k_t,"C5c");function C_t(){C_t=U,Prr=ci((n$(),Se(Ee(oUe,1),At,428,0,[dye,ree])))}i(C_t,"N8c");function E_t(){E_t=U,oXt=ci((gX(),Se(Ee(ABe,1),At,424,0,[R0e,kQ])))}i(E_t,"AOb");function S_t(){S_t=U,nKt=ci((S7(),Se(Ee(rKt,1),At,503,0,[rj,U0e])))}i(S_t,"G2b");function A_t(){A_t=U,enr=ci((T$(),Se(Ee(LUe,1),At,427,0,[iee,RUe])))}i(A_t,"oad");function ycn(){return Ss(),Se(Ee(SN,1),At,86,0,[g0,Bl,Il,p0,Ed])}i(ycn,"Jjd");function bcn(){return zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on])}i(bcn,"Imd");function vcn(e,n,o){return y(n==null?Ju(e.f,null,o):Ux(e.i,n,o),290)}i(vcn,"YQd");function wcn(e){return(e.k==(Yr(),Ya)||e.k==ks)&&ea(e,(Tt(),GM))}i(wcn,"x0b");function dRe(e){e.b!=e.c&&(e.a=tt(Fs,Fr,1,8,5,1),e.b=0,e.c=0)}i(dRe,"tlb");function R_t(e,n){var o;return o=n.jd(),new xx(o,e.e.pc(o,y(n.kd(),18)))}i(R_t,"le");function L_t(e,n){var o;for(o=n;o;)Mk(e,-o.i,-o.j),o=$a(o);return e}i(L_t,"gqd");function pRe(e,n){var o,u;for(o=n,u=0;o>0;)u+=e.a[o],o-=o&-o;return u}i(pRe,"IIc");function Mf(e,n,o){var u;return u=(_r(n,e.c.length),e.c[n]),e.c[n]=o,u}i(Mf,"imb");function Io(e,n){var o,u;for(Ur(n),u=e.Jc();u.Ob();)o=u.Pb(),n.Ad(o)}i(Io,"Hfb");function __t(e,n){var o,u;return o=n.jd(),u=e.De(o),!!u&&Oc(u.e,n.kd())}i(__t,"Lkb");function xcn(e,n){var o;return o=e.a.get(n),o??tt(Fs,Fr,1,0,5,1)}i(xcn,"xsb");function e$(e){e.i=0,cF(e.b,null),cF(e.c,null),e.a=null,e.e=null,++e.g}i(e$,"qo");function gRe(e,n,o){e.a.c.length=0,a4n(e,n,o),e.a.c.length==0||DTn(e,n)}i(gRe,"OEc");function D_t(e,n){this.c=0,this.b=n,KSt.call(this,e,17493),this.a=this.c}i(D_t,"DBb");function I_t(e){Hzt(),j3t(this),this.a=new ya,KLe(this,e),_i(this.a,e)}i(I_t,"wVb");function M_t(){Nle(this),this.b=new Lt(qa,qa),this.a=new Lt(Ys,Ys)}i(M_t,"SUb");function fue(e){eX(),!c0&&(this.c=e,this.e=!0,this.a=new Pt)}i(fue,"wAb");function eX(){eX=U,c0=!0,hYt=!1,fYt=!1,pYt=!1,dYt=!1}i(eX,"oAb");function tX(){tX=U,oye=new Q6e(GMe,0),Qze=new Q6e("TARGET_WIDTH",1)}i(tX,"u5c");function Kk(e,n){return(mv(e),W8(new Er(e,new zRe(n,e.a)))).zd(L6)}i(Kk,"RBb");function Tcn(){return eo(),Se(Ee(UBe,1),At,363,0,[Yp,Zm,jc,Lc,hl])}i(Tcn,"_Qb");function kcn(){return EK(),Se(Ee(Ltr,1),At,364,0,[z1e,$1e,U1e,G1e,j1e])}i(kcn,"V_c");function Ccn(){return NI(),Se(Ee(_rr,1),At,369,0,[RE,q6,vN,bN,Ij])}i(Ccn,"r7c");function Ecn(){return q$(),Se(Ee(hUe,1),At,330,0,[lUe,pye,uUe,gye,cUe])}i(Ecn,"W8c");function Scn(){return c3(),Se(Ee(vKt,1),At,371,0,[ij,KQ,JQ,XQ,YQ])}i(Scn,"Rhc");function Acn(){return TI(),Se(Ee(f1e,1),At,303,0,[ije,u1e,h1e,eN,hL])}i(Acn,"Ezc");function Rcn(){return yf(),Se(Ee(E$e,1),At,165,0,[dj,UM,Q1,VM,Rw])}i(Rcn,"dsc");function Lcn(){return K0(),Se(Ee(f0,1),At,160,0,[Or,ds,Sg,cb,ey])}i(Lcn,"Yed");function _cn(){return BC(),Se(Ee(_N,1),At,257,0,[Wv,Hj,$Ve,LN,GVe])}i(_cn,"Dld");function Dcn(e){return qH(),function(){return Tln(e,this,arguments);var n}}i(Dcn,"Lz");function Mo(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}i(Mo,"AWb");function mRe(e,n){return Ge(n,144)?Cr(e.c,y(n,144).c):!1}i(mRe,"Icd");function Hh(e){return e.t||(e.t=new _3t(e),mI(new q4t(e),0,e.t)),e.t}i(Hh,"LWd");function N_t(e){var n;return e.c||(n=e.r,Ge(n,88)&&(e.c=y(n,29))),e.c}i(N_t,"j4d");function due(e,n){var o;return o=y(Jg(e.d,n),21),o||y(Jg(e.e,n),21)}i(due,"rdd");function O_t(e){this.b=e,Sn.call(this,e),this.a=y(an(this.b.a,4),129)}i(O_t,"ALd");function P_t(e){this.b=e,_5.call(this,e),this.a=y(an(this.b.a,4),129)}i(P_t,"JLd");function Pp(e,n,o,u,p){j_t.call(this,n,u,p),this.c=e,this.b=o}i(Pp,"b2d");function yRe(e,n,o,u,p){j_t.call(this,n,u,p),this.c=e,this.a=o}i(yRe,"t2d");function bRe(e,n,o,u,p){hLt.call(this,n,u,p),this.c=e,this.a=o}i(bRe,"k2d");function vRe(e,n,o,u,p){uLt.call(this,n,u,p),this.c=e,this.a=o}i(vRe,"g2d");function wRe(e){hZr.call(this,e==null?Qu:zl(e),Ge(e,80)?y(e,80):null)}i(wRe,"Ndb");function Icn(e){e&&Bun((r6e(),HPe)),--dQ,e&&pQ!=-1&&(vZr(pQ),pQ=-1)}i(Icn,"Nz");function Mcn(e,n){var o,u;o=y(vdn(e.c,n),18),o&&(u=o.gc(),o.$b(),e.d-=u)}i(Mcn,"Tc");function pue(e){var n,o,u;return n=e&ef,o=e>>22&ef,u=e<0?q1:0,Mu(n,o,u)}i(pue,"ZC");function B_t(e){var n,o;return n=e.c.i,o=e.d.i,n.k==(Yr(),ks)&&o.k==ks}i(B_t,"_7b");function F_t(e){var n;return n=e.length,Cr(Wr.substr(Wr.length-n,n),e)}i(F_t,"ugb");function vn(e){if(Nn(e))return e.c=e.a,e.a.Pb();throw xe(new Hl)}i(vn,"Xr");function W5(e,n){return n==0||e.e==0?e:n>0?rOt(e,n):z$t(e,-n)}i(W5,"hib");function xRe(e,n){return n==0||e.e==0?e:n>0?z$t(e,n):rOt(e,-n)}i(xRe,"iib");function Ncn(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}i(Ncn,"zc");function gue(e){var n;return n=new Nx,wc(n,e),dt(n,(Bt(),Dl),null),n}i(gue,"YVb");function mue(e,n,o){var u;return u=e.Fh(n),u>=0?e.Ih(u,o,!0):Jx(e,n,o)}i(mue,"btd");function Ocn(e,n,o){return ha(A5(H7(e),Wo(n.b)),A5(H7(e),Wo(o.b)))}i(Ocn,"jUc");function Pcn(e,n,o){return ha(A5(H7(e),Wo(n.e)),A5(H7(e),Wo(o.e)))}i(Pcn,"kUc");function Bcn(e,n){return d.Math.min(cv(n.a,e.d.d.c),cv(n.b,e.d.d.c))}i(Bcn,"G7c");function $_t(e,n,o){var u;u=new xAe(e.a),sI(u,e.a.a),Ju(u.f,n,o),e.a.a=u}i($_t,"Lie");function TRe(e,n,o,u){var p;for(p=0;p<xQ;p++)bY(e.a[p][n.g],o,u[n.g])}i(TRe,"RHb");function kRe(e,n,o,u){var p;for(p=0;p<C0e;p++)vY(e.a[n.g][p],o,u[n.g])}i(kRe,"QHb");function oa(e,n){var o;return o=y(e.c.xc(n),18),!o&&(o=e.ic(n)),e.pc(n,o)}i(oa,"Qc");function Fcn(e){var n;return n=(oi(e),e?new Ah(e):i7(e.Jc())),Y$(n),JX(n)}i(Fcn,"sm");function Bp(e){var n,o;return oi(e),n=jan(e.length),o=new vu(n),ULe(o,e),o}i(Bp,"Wu");function Q9(e){var n,o;++e.j,n=e.g,o=e.i,e.g=null,e.i=0,e.Mi(o,n),e.Li()}i(Q9,"dGd");function t$(e,n){e.Zi(e.i+1),L9(e,e.i,e.Xi(e.i,n)),e.Ki(e.i++,n),e.Li()}i(t$,"aGd");function H5(e,n){return lo(n)?n==null?R9e(e.f,null):nMt(e.i,n):R9e(e.f,n)}i(H5,"jjb");function Gy(e,n){var o;return o=(_r(n,e.c.length),e.c[n]),g6e(e.c,n,1),o}i(Gy,"fmb");function yue(e,n,o,u){var p;return p=tt(pi,Pi,30,n,15,1),N1n(p,e,n,o,u),p}i(yue,"Rib");function P1(e,n){return e.a?Li(e.a,e.b):e.a=new Lf(e.d),E9(e.a,n),e}i(P1,"Nxb");function CRe(e,n){if(e<0||e>n)throw xe(new yu(h9e(e,n,"index")));return e}i(CRe,"Sb");function ERe(e){var n;return n=e.e+e.f,isNaN(n)&&Qq(e.d)?e.d:n}i(ERe,"Wqb");function SRe(e,n){var o,u;return o=(Ur(e),e),u=(Ur(n),n),o==u?0:o<u?-1:1}i(SRe,"tgb");function $cn(e,n){var o;o=e.q.getHours()+(n/60|0),e.q.setMinutes(n),GI(e,o)}i($cn,"hB");function G_t(e,n,o){FH.call(this,o),this.b=e,this.c=n,this.d=(Mhe(),tbe)}i(G_t,"Z5d");function j_t(e,n,o){this.d=e,this.k=n?1:0,this.f=o?1:0,this.o=-1,this.p=0}i(j_t,"dJd");function Kg(e){this.c=e,this.a=new ye(this.c.a),this.b=new ye(this.c.b)}i(Kg,"UZb");function rX(){this.e=new Pt,this.c=new Pt,this.d=new Pt,this.b=new Pt}i(rX,"KNb");function z_t(){this.g=new B5e,this.b=new B5e,this.a=new Pt,this.k=new Pt}i(z_t,"hGb");function U_t(){this.a=new j5e,this.b=new c4t,this.d=new Ln,this.e=new la}i(U_t,"mVb");function V_t(e,n,o){this.a=e,this.c=n,this.d=o,Nt(n.e,this),Nt(o.b,this)}i(V_t,"whc");function W_t(e,n){XSt.call(this,n.xd(),n.wd()&-6),Ur(e),this.a=e,this.b=n}i(W_t,"GCb");function H_t(e,n){KSt.call(this,n.xd(),n.wd()&-6),Ur(e),this.a=e,this.b=n}i(H_t,"MCb");function ARe(e,n){Pq.call(this,n.xd(),n.wd()&-6),Ur(e),this.a=e,this.b=n}i(ARe,"SCb");function nX(e,n,o){this.a=e,this.b=n,this.c=o,Nt(e.t,this),Nt(n.i,this)}i(nX,"KRc");function r$(){this.b=new ya,this.a=new ya,this.b=new ya,this.a=new ya}i(r$,"HTc");function b7(){b7=U;var e,n;Dee=(V8(),n=new $H,n),Iee=(e=new Eoe,e)}i(b7,"Ece");function pg(){pg=U,K3=new q6e("REGULAR",0),Gv=new q6e("CRITICAL",1)}i(pg,"QPc");function n$(){n$=U,dye=new Z6e("FIXED",0),ree=new Z6e("CENTER_NODE",1)}i(n$,"I8c");function q_t(){q_t=U,NFe=new Da("separateLayerConnections",(jX(),q0e))}i(q_t,"Y7b");function iX(){iX=U,wN=new ia("org.eclipse.elk.labels.labelManager")}i(iX,"ofd");function RRe(e){if(e.a){if(e.e)return RRe(e.e)}else return e;return null}i(RRe,"umc");function Gcn(e,n){return e.p<n.p?1:e.p>n.p?-1:0}i(Gcn,"GEc");function Y_t(e,n){return Kc(e.a,n)?(H5(e.a,n),!0):!1}i(Y_t,"B8d");function jcn(e){var n,o;return n=e.jd(),o=y(e.kd(),18),PF(o.Lc(),new qwt(n))}i(jcn,"fd");function bue(e){var n;return n=e.b,n.b==0?null:y(Bc(n,0),65).b}i(bue,"KTc");function zcn(e,n){var o;return o=w4n(e,n),e.b=new DX(o.c.length),F3n(e,o)}i(zcn,"YIc");function Ucn(e){var n;return mv(e),n=new zAt(e,e.a.e,e.a.d|4),new YAe(e,n)}i(Ucn,"lBb");function X_t(e){var n;for(iv(e),n=0;e.a.zd(new Ye);)n=Ho(n,1);return n}i(X_t,"TBb");function K_t(e){var n;return e.a||(n=e.r,Ge(n,159)&&(e.a=y(n,159))),e.a}i(K_t,"uVd");function Vcn(e,n,o){var u;return++e.e,--e.f,u=y(e.d[n].ed(o),136),u.kd()}i(Vcn,"zMd");function q5(e,n,o){return ZF(n,e.e.Pd().gc()),ZF(o,e.c.Pd().gc()),e.a[n][o]}i(q5,"Si");function aX(e,n){return Ur(n),e.c<e.d?(e.Qe(n,e.c++),!0):!1}i(aX,"Gwb");function Wcn(e,n){var o;e.C&&(o=y(yl(e.b,n),127).n,o.d=e.C.d,o.a=e.C.a)}i(Wcn,"kKb");function LRe(e){var n,o,u,p;p=e.d,n=e.a,o=e.b,u=e.c,e.d=o,e.a=u,e.b=p,e.c=n}i(LRe,"r2b");function _Re(e,n,o){var u,p;for(u=0,p=0;p<n.length;p++)u+=e.sg(n[p],u,o)}i(_Re,"MEc");function sX(e,n,o,u){this.f=e,this.e=n,this.d=o,this.b=u,this.c=u?u.d:null}i(sX,"jg");function Hcn(e,n){n.Tg("Label management",1),Mq(oe(e,(iX(),wN))),n.Ug()}i(Hcn,"y7b");function J_t(){J_t=U,EYt=ci((Lh(),Se(Ee(CYt,1),At,461,0,[om,Iv,Hp])))}i(J_t,"mIb");function Q_t(){Q_t=U,AYt=ci((Xu(),Se(Ee(SYt,1),At,462,0,[kg,Mv,qp])))}i(Q_t,"dJb");function Z_t(){Z_t=U,kYt=ci((yg(),Se(Ee(_3,1),At,237,0,[dc,Cu,pc])))}i(Z_t,"HHb");function eDt(){eDt=U,gYt=ci((md(),Se(Ee(eh,1),At,130,0,[wBe,Zu,xBe])))}i(eDt,"KAb");function tDt(){tDt=U,MXt=ci((Z9(),Se(Ee(zBe,1),At,384,0,[I0e,D0e,M0e])))}i(tDt,"hQb");function rDt(){rDt=U,GKt=ci((L7(),Se(Ee(kme,1),At,302,0,[xme,Tme,oj])))}i(rDt,"jqc");function nDt(){nDt=U,jKt=ci((fv(),Se(Ee(Cme,1),At,329,0,[lj,u$e,B3])))}i(nDt,"sqc");function iDt(){iDt=U,UKt=ci((F1(),Se(Ee(zKt,1),At,316,0,[cj,pE,N6])))}i(iDt,"Bqc");function aDt(){aDt=U,EKt=ci((jx(),Se(Ee(X0e,1),At,368,0,[mT,Nv,gT])))}i(aDt,"Aic");function sDt(){sDt=U,HZt=ci((uI(),Se(Ee(mje,1),At,348,0,[v1e,b1e,Tj])))}i(sDt,"NAc");function oDt(){oDt=U,WZt=ci((BX(),Se(Ee(gje,1),At,381,0,[dje,y1e,pje])))}i(oDt,"EAc");function lDt(){lDt=U,VZt=ci((sl(),Se(Ee(UZt,1),At,452,0,[rN,Mh,Eu])))}i(lDt,"vAc");function cDt(){cDt=U,qZt=ci((O7(),Se(Ee(bje,1),At,349,0,[w1e,yje,nN])))}i(cDt,"fBc");function uDt(){uDt=U,BZt=ci((fI(),Se(Ee(nje,1),At,352,0,[o1e,rje,_Z])))}i(uDt,"gzc");function hDt(){hDt=U,YZt=ci((TX(),Se(Ee(xje,1),At,351,0,[wje,x1e,vje])))}i(hDt,"oBc");function fDt(){fDt=U,XZt=ci(($X(),Se(Ee(Tje,1),At,382,0,[T1e,dL,X3])))}i(fDt,"xBc");function dDt(){dDt=U,Zer=ci((cI(),Se(Ee($je,1),At,385,0,[Fje,E1e,Ej])))}i(dDt,"zWc");function pDt(){pDt=U,Itr=ci((R$(),Se(Ee(dze,1),At,386,0,[HZ,hze,fze])))}i(pDt,"X0c");function gDt(){gDt=U,arr=ci((QX(),Se(Ee(Oze,1),At,387,0,[Nze,nye,Mze])))}i(gDt,"Y3c");function mDt(){mDt=U,_Kt=ci((kX(),Se(Ee(WFe,1),At,350,0,[VFe,QQ,ame])))}i(mDt,"moc");function yDt(){yDt=U,NKt=ci((sw(),Se(Ee(MKt,1),At,449,0,[dme,ZR,fE])))}i(yDt,"Voc");function bDt(){bDt=U,err=ci((iK(),Se(Ee(Ize,1),At,436,0,[dN,XZ,K1e])))}i(bDt,"V2c");function vDt(){vDt=U,Ztr=ci((FX(),Se(Ee(Dze,1),At,304,0,[X1e,_ze,Lze])))}i(vDt,"i2c");function wDt(){wDt=U,Lrr=ci((YX(),Se(Ee(aUe,1),At,430,0,[nUe,iUe,cye])))}i(wDt,"F6c");function xDt(){xDt=U,Rrr=ci((uX(),Se(Ee(rUe,1),At,429,0,[lye,tUe,eUe])))}i(xDt,"e6c");function TDt(){TDt=U,Irr=ci((I$(),Se(Ee(uye,1),At,435,0,[ZZ,eee,tee])))}i(TDt,"h8c");function kDt(){kDt=U,Vnr=ci((Qg(),Se(Ee(SVe,1),At,279,0,[xL,i4,TL])))}i(kDt,"ckd");function CDt(){CDt=U,Ynr=ci((z1(),Se(Ee(FVe,1),At,347,0,[dee,hb,RN])))}i(CDt,"Vkd");function EDt(){EDt=U,sir=ci((tI(),Se(Ee(VVe,1),At,300,0,[Yj,jye,UVe])))}i(EDt,"dnd");function SDt(){SDt=U,cir=ci((t6(),Se(Ee(qVe,1),At,281,0,[HVe,s4,vee])))}i(SDt,"Lnd");function oX(){oX=U,$Fe=new F6e("QUADRATIC",0),ime=new F6e("SCANLINE",1)}i(oX,"Nnc");function i$(e){return!e.g&&(e.g=new RH),!e.g.c&&(e.g.c=new L3t(e)),e.g.c}i(i$,"uMd");function qcn(e){return!e.g&&(e.g=new RH),!e.g.a&&(e.g.a=new R3t(e)),e.g.a}i(qcn,"nMd");function Ycn(e){return!e.g&&(e.g=new RH),!e.g.b&&(e.g.b=new S3t(e)),e.g.b}i(Ycn,"tMd");function Xcn(e){return!e.g&&(e.g=new RH),!e.g.d&&(e.g.d=new A3t(e)),e.g.d}i(Xcn,"CMd");function Kcn(e,n,o,u){return o&&(u=o.Oh(n,ja(o.Ah(),e.c.sk()),null,u)),u}i(Kcn,"O7d");function Jcn(e,n,o,u){return o&&(u=o.Qh(n,ja(o.Ah(),e.c.sk()),null,u)),u}i(Jcn,"P7d");function vue(e,n,o,u){var p;return p=tt(pi,Pi,30,n+1,15,1),fkn(p,e,n,o,u),p}i(vue,"Mib");function tt(e,n,o,u,p,g){var w;return w=iPt(p,u),p!=10&&Se(Ee(e,g),n,o,p,w),w}i(tt,"SC");function Qcn(e,n,o){var u,p;for(p=new R7(n,e),u=0;u<o;++u)dK(p);return p}i(Qcn,"lee");function wue(e,n,o){var u,p;if(o!=null)for(u=0;u<n;++u)p=o[u],e.Oi(u,p)}i(wue,"pFd");function DRe(e,n){var o;return o=new lt,o.c=!0,o.d=n.kd(),szt(e,n.jd(),o)}i(DRe,"dyb");function Zcn(e,n){var o;o=e.q.getHours()+(n/3600|0),e.q.setSeconds(n),GI(e,o)}i(Zcn,"jB");function IRe(e,n){var o,u;return o=n,u=PY(i7(new Aue(e,o))),hY(new Aue(e,o)),u}i(IRe,"tt");function gg(e,n){return!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),_he(e.o,n)}i(gg,"dvd");function MRe(e,n,o){y(e.b,68),y(e.b,68),y(e.b,68),Zc(e.a,new EAt(o,n,e))}i(MRe,"dMb");function eun(e,n,o,u){ojt(e,n,o,oR(e,n,u,Ge(n,103)&&(y(n,19).Bb&Jo)!=0))}i(eun,"Jee");function ko(e,n,o){if(e<0||n>o||n<e)throw xe(new n6e(hJ+e+xMe+n+bMe+o))}i(ko,"TDb");function ADt(e,n,o){this.d=new zH,this.c=new jn,this.a=e,this.e=n,this.c=o}i(ADt,"F$b");function xue(e){e?(this.c=e,this.b=null):(this.c=null,this.b=new Pt)}i(xue,"eBb");function Tue(e,n){cq.call(this,e,n),this.a=tt(sSn,sJ,438,2,0,1),this.b=!0}i(Tue,"Myb");function NRe(e){jMt.call(this,e,0),m6t(this),this.d.b=this.d,this.d.a=this.d}i(NRe,"ptb");function ORe(e){this.e=e,this.b=this.e.a.entries(),this.a=tt(Fs,Fr,1,0,5,1)}i(ORe,"Esb");function vu(e){Nle(this),FF(e>=0,"Initial capacity must not be negative")}i(vu,"mmb");function cv(e,n){var o,u;return o=e.a-n.a,u=e.b-n.b,d.Math.sqrt(o*o+u*u)}i(cv,"Yfd");function PRe(e,n,o){var u;u=e.b[o.c.p][o.p],u.b+=n.b,u.c+=n.c,u.a+=n.a,++u.a}i(PRe,"sHc");function RDt(){RDt=U,eer=Xc(Ei(new us,(eo(),Yp),(ho(),V0e)),hl,M6)}i(RDt,"jCc");function tun(){return l6(),Se(Ee(QR,1),At,231,0,[JR,OM,KR,P3,hE,uE])}i(tun,"Inc");function run(){return _K(),Se(Ee(KFe,1),At,284,0,[gme,pme,yme,mme,bme,eZ])}i(run,"epc");function nun(){return W$(),Se(Ee(n$e,1),At,282,0,[rZ,e$e,r$e,ZFe,t$e,vme])}i(nun,"ypc");function iun(){return Q7(),Se(Ee(c$e,1),At,283,0,[BM,a$e,l$e,o$e,s$e,i$e])}i(iun,"Kpc");function aun(){return Vm(),Se(Ee(NUe,1),At,256,0,[xye,Nj,Oj,oee,aee,see])}i(aun,"Ogd");function sun(){return uo(),Se(Ee(jVe,1),At,102,0,[Hv,m0,CL,Bw,a1,zc])}i(sun,"Rld");function oun(){return _h(),Se(Ee(pee,1),At,280,0,[qv,ry,qj,IN,DN,tA])}i(oun,"dmd");function lun(){return fw(),Se(Ee(Eye,1),At,299,0,[Cye,CN,kN,kye,xN,TN])}i(lun,"rhd");function cun(){return RK(),Se(Ee(IVe,1),At,328,0,[Gye,LVe,DVe,AVe,_Ve,RVe])}i(cun,"wkd");function BRe(e){var n;return!e.a&&e.b!=-1&&(n=e.c.Ah(),e.a=Nr(n,e.b)),e.a}i(BRe,"X1d");function Zn(e,n){return e.Qi()&&e.Gc(n)?!1:(e.Fi(n),!0)}i(Zn,"lFd");function mg(e,n){return HF(n,"Horizontal alignment cannot be null"),e.b=n,e}i(mg,"uIb");function LDt(e,n,o){Xi();var u;return u=kv(e,n),o&&u&&Lan(e)&&(u=null),u}i(LDt,"vre");function jy(e,n,o){var u,p;for(p=e.Jc();p.Ob();)u=y(p.Pb(),36),aR(u,n,o)}i(jy,"bUb");function FRe(e,n){var o,u;for(u=n.Jc();u.Ob();)o=y(u.Pb(),36),NGt(e,o,0,0)}i(FRe,"_Tb");function uun(e){var n,o;for(o=ei(e.a,0);o.b!=o.d.c;)n=y(Qn(o),65),b9e(n)}i(uun,"pZc");function _Dt(e,n){return LEt(e.e,n)||uw(e.e,n,new ROt(n)),y(Jg(e.e,n),113)}i(_Dt,"zhc");function qh(e,n,o,u){return Ur(e),Ur(n),Ur(o),Ur(u),new l7e(e,n,new Rt)}i(qh,"BAb");function gh(e,n,o,u){this.$j(),this.a=n,this.b=e,this.c=new s7e(this,n,o,u)}i(gh,"QTd");function kue(e,n,o,u,p,g){aRe.call(this,n,u,p,g),this.c=e,this.b=o}i(kue,"_1d");function a$(e,n,o,u,p,g){aRe.call(this,n,u,p,g),this.c=e,this.a=o}i(a$,"p2d");function s$(e,n){var o,u,p;return p=e.r,u=e.d,o=UI(e,n,!0),o.b!=p||o.a!=u}i(s$,"M6c");function o$(e,n,o){var u,p;return p=(u=tR(e.b,n),u),p?eJ(h$(e,p),o):null}i(o$,"gde");function hun(e,n,o){var u,p,g;u=M1(e,o),p=null,u&&(p=r9e(u)),g=p,EOt(n,o,g)}i(hun,"HBd");function fun(e,n,o){var u,p,g;u=M1(e,o),p=null,u&&(p=r9e(u)),g=p,EOt(n,o,g)}i(fun,"IBd");function $Re(e,n,o){var u;e.d[n.g]=o,u=e.g.c,u[n.g]=d.Math.max(u[n.g],o+1)}i($Re,"dhc");function v7(e,n){var o;return o=e.Fh(n),o>=0?e.Ih(o,!0,!0):Jx(e,n,!0)}i(v7,"atd");function dun(e,n){var o;return o=Jr(e.k,n),X9e(e,n),Vfe(e,n),$9e(e,n,o),null}i(dun,"jBd");function pun(e){var n;if(!e.a)throw xe(new rRt);return n=e.a,e.a=$a(e.a),n}i(pun,"eFd");function gun(e){if(e.b<=0)throw xe(new Hl);return--e.b,e.a-=e.c.c,Et(e.a)}i(gun,"cte");function mun(e,n,o){var u;return u=IMt(e,n,o),e.b=new DX(u.c.length),nIe(e,u)}i(mun,"RIc");function Y5(e){var n;return oi(e),Ge(e,204)?(n=y(e,204),n):new lxt(e)}i(Y5,"Er");function yun(e){for(;!e.a;)if(!dAt(e.c,new Bxt(e)))return!1;return!0}i(yun,"nCb");function bun(e,n){e.a.Le(n.d,e.b)>0&&(Nt(e.c,new B8e(n.c,n.d,e.d)),e.b=n.d)}i(bun,"sTb");function GRe(e,n){if(e.g==null||n>=e.i)throw xe(new Rle(n,e.i));return e.g[n]}i(GRe,"cGd");function DDt(e){var n;if(e.ll())for(n=e.i-1;n>=0;--n)je(e,n);return cRe(e)}i(DDt,"vXd");function vun(e){lX(),y(e.mf((Ri(),t4)),182).Ec((_h(),qj)),e.of(Oye,null)}i(vun,"xcd");function lX(){lX=U,inr=new jyt,snr=new zyt,anr=Mfn((Ri(),Oye),inr,Uv,snr)}i(lX,"vcd");function cX(){cX=U,cze=new J6e("LEAF_NUMBER",0),V1e=new J6e("NODE_SIZE",1)}i(cX,"H0c");function IDt(){IDt=U,KK(),FWe=qa,yar=Ys,$We=new YB(qa),bar=new YB(Ys)}i(IDt,"kle");function wun(e){return Ge(e,180)?""+y(e,180).a:e==null?null:zl(e)}i(wun,"U8d");function xun(e){return Ge(e,180)?""+y(e,180).a:e==null?null:zl(e)}i(xun,"V8d");function fd(e,n,o,u,p){return n<0?Jx(e,o,u):y(o,69).uk().wk(e,e.ei(),n,u,p)}i(fd,"Xsd");function w7(e,n,o,u){var p;u=(Mx(),u||dBe),p=e.slice(n,o),f9e(p,e,n,o,-n,u)}i(w7,"enb");function MDt(e,n){var o,u;return u=n/e.c.Pd().gc()|0,o=n%e.c.Pd().gc(),q5(e,u,o)}i(MDt,"Zi");function jRe(e){var n,o;if(!e.b)return null;for(o=e.b;n=o.a[0];)o=n;return o}i(jRe,"Uxb");function NDt(e){var n,o;if(!e.b)return null;for(o=e.b;n=o.a[1];)o=n;return o}i(NDt,"Vxb");function ODt(e,n,o){if(N7(e,o),o!=null&&!e.dk(o))throw xe(new xoe);return o}i(ODt,"a$d");function Cue(e,n){return p$(n)!=10&&Se(mf(n),n.Qm,n.__elementTypeId$,p$(n),e),e}i(Cue,"XC");function zRe(e,n){Pq.call(this,n.xd(),n.wd()&-16449),Ur(e),this.a=e,this.c=n}i(zRe,"ACb");function URe(e,n,o,u,p){M5t(this),this.b=e,this.d=n,this.f=o,this.g=u,this.c=p}i(URe,"Qlc");function PDt(e,n){if(n.a)throw xe(new ql(AUt));ys(e.a,n),n.a=e,!e.j&&(e.j=n)}i(PDt,"xEb");function Lh(){Lh=U,om=new Qoe(w6,0),Iv=new Qoe(vR,1),Hp=new Qoe(x6,2)}i(Lh,"hIb");function x7(){x7=U,b0e=new uq("All",0),v0e=new w5t,w0e=new D5t,x0e=new x5t}i(x7,"jzb");function BDt(){BDt=U,cYt=ci((x7(),Se(Ee(vQ,1),At,310,0,[b0e,v0e,w0e,x0e])))}i(BDt,"xzb");function FDt(){FDt=U,oKt=ci((jX(),Se(Ee(sKt,1),At,367,0,[q0e,HQ,qQ,nj])))}i(FDt,"p8b");function $Dt(){$Dt=U,YXt=ci((i6(),Se(Ee(HBe,1),At,383,0,[IM,WBe,F0e,$0e])))}i($Dt,"DUb");function GDt(){GDt=U,QYt=ci((zx(),Se(Ee(JYt,1),At,409,0,[QG,JG,S0e,A0e])))}i(GDt,"WLb");function jDt(){jDt=U,zXt=ci((D7(),Se(Ee(jXt,1),At,408,0,[pT,I3,D3,oE])))}i(jDt,"aTb");function zDt(){zDt=U,LKt=ci((vI(),Se(Ee(UFe,1),At,301,0,[PM,jFe,aj,zFe])))}i(zDt,"doc");function UDt(){UDt=U,FZt=ci((l3(),Se(Ee(c1e,1),At,203,0,[DZ,l1e,kE,TE])))}i(UDt,"szc");function VDt(){VDt=U,jZt=ci((V1(),Se(Ee(hje,1),At,269,0,[$v,uje,d1e,p1e])))}i(VDt,"eAc");function WDt(){WDt=U,bKt=ci((jp(),Se(Ee(yKt,1),At,413,0,[O3,YR,XR,Y0e])))}i(WDt,"uhc");function HDt(){HDt=U,per=ci((cw(),Se(Ee(der,1),At,404,0,[kj,iN,OZ,NZ])))}i(HDt,"pHc");function qDt(){qDt=U,Qtr=ci((yK(),Se(Ee(Rze,1),At,354,0,[Y1e,Sze,Aze,Eze])))}i(qDt,"$1c");function YDt(){YDt=U,Ttr=ci((hI(),Se(Ee(aze,1),At,353,0,[B1e,VZ,P1e,O1e])))}i(YDt,"gYc");function XDt(){XDt=U,Jer=ci((o6(),Se(Ee(Aje,1),At,398,0,[$Z,oN,lN,cN])))}i(XDt,"PSc");function KDt(){KDt=U,rrr=ci((AK(),Se(Ee(trr,1),At,401,0,[eye,J1e,Z1e,Q1e])))}i(KDt,"p3c");function JDt(){JDt=U,Unr=ci((B7(),Se(Ee(EVe,1),At,278,0,[zj,fee,kVe,CVe])))}i(JDt,"Vjd");function QDt(){QDt=U,Wnr=ci((U1(),Se(Ee($ye,1),At,222,0,[Fye,Uj,kL,eA])))}i(QDt,"mkd");function ZDt(){ZDt=U,Knr=ci((Bf(),Se(Ee(Xnr,1),At,292,0,[Wj,n1,Vv,Vj])))}i(ZDt,"eld");function e9t(){e9t=U,uir=ci((QY(),Se(Ee(Zj,1),At,288,0,[YVe,KVe,Uye,XVe])))}i(e9t,"cod");function t9t(){t9t=U,oir=ci((vf(),Se(Ee(MN,1),At,380,0,[Kj,Fw,Xj,a4])))}i(t9t,"nnd");function r9t(){r9t=U,hir=ci((eK(),Se(Ee(eWe,1),At,327,0,[Vye,JVe,ZVe,QVe])))}i(r9t,"lpd");function n9t(){n9t=U,pir=ci((UX(),Se(Ee(dir,1),At,407,0,[Wye,rWe,tWe,nWe])))}i(n9t,"$qd");function l$(){l$=U,JFe=new G6e(wg,0),tZ=new G6e("IMPROVE_STRAIGHTNESS",1)}i(l$,"jpc");function uX(){uX=U,lye=new wle(VVt,0),tUe=new wle(uOe,1),eUe=new wle(wg,2)}i(uX,"Y5c");function Eue(e){e.a=tt(pi,Pi,30,e.b+1,15,1),e.c=tt(pi,Pi,30,e.b,15,1),e.d=0}i(Eue,"HIc");function c$(e){var n;for(n=e.p+1;n<e.c.a.c.length;++n)--y(Wt(e.c.a,n),9).p}i(c$,"Emc");function Sue(e){var n;n=e.hj(),n!=null&&e.d!=-1&&y(n,94).uh(e),e.i&&e.i.mj()}i(Sue,"GId");function zy(e){var n;return Gl(e)&&(n=0-e,!isNaN(n))?n:hv(I7(e))}i(zy,"Zcb");function VRe(e){var n;if(!Vue(e))throw xe(new Hl);return e.e=1,n=e.d,e.d=null,n}i(VRe,"yc");function Aue(e,n){var o;this.f=e,this.b=n,o=y(Jr(e.b,n),262),this.c=o?o.b:null}i(Aue,"Eu");function Yu(e,n){var o;return o=Jl(e,n,0),o==-1?!1:(Gy(e,o),!0)}i(Yu,"gmb");function i9t(e,n){var o;return o=y(H5(e.e,n),393),o?(G8e(o),o.e):null}i(i9t,"ntb");function Jl(e,n,o){for(;o<e.c.length;++o)if(Oc(n,e.c[o]))return o;return-1}i(Jl,"emb");function a9t(e,n,o){var u;return iv(e),u=new ut,u.a=n,e.a.Nb(new PEt(u,o)),u.a}i(a9t,"cCb");function Tun(e){var n;return iv(e),n=tt(po,vl,30,0,15,1),lC(e.a,new Nxt(n)),n}i(Tun,"mBb");function kun(e,n){return ha(He(Xe(oe(e,(Tt(),vT)))),He(Xe(oe(n,vT))))}i(kun,"v3b");function Cun(e,n){return new ace(n,Mk(Wo(n.e),n.f.a+e,n.f.b+e),(qr(),!1))}i(Cun,"iUc");function Eun(e,n){return a7(),Nt(e,new Ko(n,Et(n.e.c.length+n.g.c.length)))}i(Eun,"nJc");function Sun(e,n){return a7(),Nt(e,new Ko(n,Et(n.e.c.length+n.g.c.length)))}i(Sun,"pJc");function hX(e,n){return Oc(n,Wt(e.f,0))||Oc(n,Wt(e.f,1))||Oc(n,Wt(e.f,2))}i(hX,"nEb");function u$(e,n){if(n<0)throw xe(new yu(aWt+n));return KLt(e,n+1),Wt(e.j,n)}i(u$,"Hbd");function Aun(e,n,o,u,p){return Ur(e),Ur(n),Ur(o),Ur(u),Ur(p),new l7e(e,n,u)}i(Aun,"AAb");function WRe(e,n){s9();var o,u;return o=V5(e),u=V5(n),!!o&&!!u&&!MOt(o.k,u.k)}i(WRe,"aec");function h$(e,n){var o,u;return o=y(n,680),u=o.ui(),!u&&o.xi(u=new zSt(e,n)),u}i(h$,"ade");function Rl(e,n){var o,u;return o=y(n,682),u=o.Yk(),!u&&o.al(u=new TLt(e,n)),u}i(Rl,"bde");function Rue(e){var n,o;return o=y(Wt(e.j,0),12),n=y(oe(o,(Tt(),aa)),12),n}i(Rue,"Rgc");function Yh(e){return e.b||(e.b=new S8t(e,dl,e),!e.a&&(e.a=new DF(e,e))),e.b}i(Yh,"B2d");function Z9(){Z9=U,I0e=new ele("XY",0),D0e=new ele("X",1),M0e=new ele("Y",2)}i(Z9,"cQb");function f$(){f$=U,g1e=new U6e("INPUT_ORDER",0),m1e=new U6e("PORT_DEGREE",1)}i(f$,"hAc");function s9t(){_f(),this.b=new jn,this.f=new jn,this.g=new jn,this.e=new jn}i(s9t,"Eec");function fX(e){Gq(this),this.g=e?FY(e,e.ge()):null,this.f=e,MY(this),this.he()}i(fX,"cRd");function B1(e,n,o,u,p,g,w){Fue.call(this,n,u,p,g,w),this.c=e,this.b=o}i(B1,"a2d");function o9t(e,n,o,u){if(!e)throw xe(new rn(BI(n,Se(Ee(Fs,1),Fr,1,5,[o,u]))))}i(o9t,"Ob");function Um(e,n,o){var u,p;for(u=10,p=0;p<o-1;p++)n<u&&(e.a+="0"),u*=10;e.a+=n}i(Um,"MA");function l9t(e,n){CBe=new ui,ZYt=n,LM=e,y(LM.b,68),MRe(LM,CBe,null),$jt(LM)}i(l9t,"bMb");function dX(e){var n,o;return o=e.length,n=tt(Rd,em,30,o,15,1),Q8t(e,0,o,n,0),n}i(dX,"Kgb");function d$(e){u8t();var n,o;return n=e+128,o=QPe[n],!o&&(o=QPe[n]=new Ext(e)),o}i(d$,"ieb");function c9t(e){return ece(e.d.a.e.g,e.b),In(e.c!=e.d.a.d),e.a=e.c,e.c=e.c.a,e.a}i(c9t,"Jtb");function u9t(e){Dk(!!e.c),ece(e.f.g,e.d),e.c.Qb(),e.c=null,e.b=ILe(e),e.d=e.f.g}i(u9t,"Ejb");function HRe(e){var n;return e.Lh()||(n=On(e.Ah())-e.gi(),e.Xh().Kk(n)),e.wh()}i(HRe,"utd");function qRe(e){var n;return n=K5(an(e,32)),n==null&&(Nu(e),n=K5(an(e,32))),n}i(qRe,"rud");function Lue(e,n){var o;return o=ja(e.d,n),o>=0?fK(e,o,!0,!0):Jx(e,n,!0)}i(Lue,"ctd");function Run(e,n){I5(y(y(e.f,26).mf((Ri(),EN)),102))&&$Nt(R7e(y(e.f,26)),n)}i(Run,"asd");function h9t(e,n){Xh(e,n==null||Qq((Ur(n),n))||isNaN((Ur(n),n))?0:(Ur(n),n))}i(h9t,"MBd");function f9t(e,n){Gx(e,n==null||Qq((Ur(n),n))||isNaN((Ur(n),n))?0:(Ur(n),n))}i(f9t,"OBd");function d9t(e,n){$x(e,n==null||Qq((Ur(n),n))||isNaN((Ur(n),n))?0:(Ur(n),n))}i(d9t,"PBd");function p9t(e,n){Kh(e,n==null||Qq((Ur(n),n))||isNaN((Ur(n),n))?0:(Ur(n),n))}i(p9t,"NBd");function g9t(e){(this.q?this.q:(Ir(),Ir(),Qm)).zc(e.q?e.q:(Ir(),Ir(),Qm))}i(g9t,"Gqd");function _ue(e,n,o){var u;return u=e.g[n],L9(e,n,e.Xi(n,o)),e.Pi(n,o,u),e.Li(),u}i(_ue,"jGd");function pX(e,n){var o;return o=e.bd(n),o>=0?(e.ed(o),!0):!1}i(pX,"uFd");function Due(e){var n;return e.d!=e.r&&(n=Qd(e),e.e=!!n&&n.jk()==qHt,e.d=n),e.e}i(Due,"JUd");function Iue(e,n){var o;for(oi(e),oi(n),o=!1;n.Ob();)o=o|e.Ec(n.Pb());return o}i(Iue,"or");function Jg(e,n){var o;return o=y(Jr(e.e,n),393),o?(U5t(e,o),o.e):null}i(Jg,"ktb");function Mue(e){var n;return n=e.b.c.length==0?null:Wt(e.b,0),n!=null&&zue(e,0),n}i(Mue,"tvb");function jl(e,n){var o,u;return mv(e),u=new ARe(n,e.a),o=new gAt(u),new Er(e,o)}i(jl,"XBb");function Xu(){Xu=U,kg=new Zoe("TOP",0),Mv=new Zoe(vR,1),qp=new Zoe(SMe,2)}i(Xu,"$Ib");function F1(){F1=U,cj=new sle(wg,0),pE=new sle("TOP",1),N6=new sle(SMe,2)}i(F1,"wqc");function eI(){eI=U,WXt=new cs,HXt=new ln,UXt=new Vr,VXt=new gn,qXt=new xi}i(eI,"gTb");function T7(){T7=U,YPe=Mu(ef,ef,524287),qqt=Mu(0,0,wG),XPe=pue(1),pue(2),KPe=pue(0)}i(T7,"ED");function Jk(e,n){var o=e.a[n],u=(nhe(),f0e)[typeof o];return u?u(o):a_e(typeof o)}i(Jk,"BB");function m9t(e){var n,o;return n=e/60|0,o=e%60,o==0?""+n:""+n+":"+(""+o)}i(m9t,"aB");function Lun(e){return vDe(e,(T7(),KPe))<0?-Den(I7(e)):e.l+e.m*v6+e.h*mw}i(Lun,"wD");function _un(e){switch(e.g){case 0:return Ui;case 1:return bo;default:return 0}}i(_un,"bzc");function p$(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}i(p$,"PC");function Dun(e,n){return Ge(n,103)&&(y(n,19).Bb&Jo)!=0?new Lle(n,e):new R7(n,e)}i(Dun,"Dee");function Iun(e,n){return Ge(n,103)&&(y(n,19).Bb&Jo)!=0?new Lle(n,e):new R7(n,e)}i(Iun,"Fee");function Mun(e,n,o){return A5(new Lt(o.e.a+o.f.a/2,o.e.b+o.f.b/2),e)==(Ur(n),n)}i(Mun,"ZSc");function Nun(e,n){var o,u,p;p=n.c.i,o=y(Jr(e.f,p),60),u=o.d.c-o.e.c,ELe(n.a,u,0)}i(Nun,"vec");function YRe(e,n){var o;for(++e.d,++e.c[n],o=n+1;o<e.a.length;)++e.a[o],o+=o&-o}i(YRe,"GIc");function Oun(e,n){var o;for(o=0;e.e!=e.i.gc();)oan(n,_n(e),Et(o)),o!=Ui&&++o}i(Oun,"tte");function y9t(e){var n;for(++e.a,n=e.c.a.length;e.a<n;++e.a)if(e.c.b[e.a])return}i(y9t,"Trb");function Pun(e){var n,o;if(e.a){o=null;do n=e.a,e.a=null,o=BBt(n,o);while(e.a);e.a=o}}i(Pun,"Tz");function Bun(e){var n,o;if(e.b){o=null;do n=e.b,e.b=null,o=BBt(n,o);while(e.b);e.b=o}}i(Bun,"Uz");function XRe(e){if(!e.c)throw xe(new Hl);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}i(XRe,"Cu");function b9t(e){if(!e.e)throw xe(new Hl);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}i(b9t,"Du");function Fun(e,n){var o;return o=Vx(e.e.c,n.e.c),o==0?ha(e.e.d,n.e.d):o}i(Fun,"Wfc");function $un(e,n){var o,u;for(u=n.c,o=u+1;o<=n.f;o++)e.a[o]>e.a[u]&&(u=o);return u}i($un,"X6b");function v9t(e){var n;return n=y(oe(e,(Tt(),yT)),318),n?n.a==e:!1}i(v9t,"mmc");function w9t(e){var n;return n=y(oe(e,(Tt(),yT)),318),n?n.i==e:!1}i(w9t,"nmc");function x9t(e,n){return n==(tce(),tce(),sYt)?e.toLocaleLowerCase():e.toLowerCase()}i(x9t,"Lgb");function T9t(){T9t=U,BXt=ci((eo(),Se(Ee(UBe,1),At,363,0,[Yp,Zm,jc,Lc,hl])))}i(T9t,"bRb");function k9t(){k9t=U,$Zt=ci((TI(),Se(Ee(f1e,1),At,303,0,[ije,u1e,h1e,eN,hL])))}i(k9t,"Gzc");function C9t(){C9t=U,wKt=ci((c3(),Se(Ee(vKt,1),At,371,0,[ij,KQ,JQ,XQ,YQ])))}i(C9t,"Thc");function E9t(){E9t=U,_tr=ci((EK(),Se(Ee(Ltr,1),At,364,0,[z1e,$1e,U1e,G1e,j1e])))}i(E9t,"X_c");function S9t(){S9t=U,Drr=ci((NI(),Se(Ee(_rr,1),At,369,0,[RE,q6,vN,bN,Ij])))}i(S9t,"t7c");function A9t(){A9t=U,Brr=ci((q$(),Se(Ee(hUe,1),At,330,0,[lUe,pye,uUe,gye,cUe])))}i(A9t,"Y8c");function R9t(){R9t=U,HKt=ci((yf(),Se(Ee(E$e,1),At,165,0,[dj,UM,Q1,VM,Rw])))}i(R9t,"fsc");function L9t(){L9t=U,onr=ci((K0(),Se(Ee(f0,1),At,160,0,[Or,ds,Sg,cb,ey])))}i(L9t,"$ed");function _9t(){_9t=U,znr=ci((Ss(),Se(Ee(SN,1),At,86,0,[g0,Bl,Il,p0,Ed])))}i(_9t,"Ljd");function D9t(){D9t=U,tir=ci((zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on])))}i(D9t,"Kmd");function I9t(){I9t=U,Qnr=ci((BC(),Se(Ee(_N,1),At,257,0,[Wv,Hj,$Ve,LN,GVe])))}i(I9t,"Fld");function gX(){gX=U,R0e=new O6e("EADES",0),kQ=new O6e("FRUCHTERMAN_REINGOLD",1)}i(gX,"vOb");function g$(){g$=U,ZQ=new $6e("READING_DIRECTION",0),YFe=new $6e("ROTATION",1)}i(g$,"Hoc");function M9t(e){this.g=e,this.f=new Pt,this.a=d.Math.min(this.g.c.c,this.g.d.c)}i(M9t,"BTb");function N9t(e){this.b=new Pt,this.a=new Pt,this.c=new Pt,this.d=new Pt,this.e=e}i(N9t,"wEb");function O9t(e,n,o,u){Xi(),bx.call(this,26),this.c=e,this.a=n,this.d=o,this.b=u}i(O9t,"fse");function P9t(e,n,o){Kq.call(this),KRe(this),this.a=e,this.c=o,this.b=n.d,this.f=n.e}i(P9t,"xIb");function Gun(e,n,o){var u,p;for(p=new ye(o);p.a<p.c.c.length;)u=de(p),ODe(e,n,u)}i(Gun,"R_b");function jun(e,n,o){var u;return u=e.a.e[y(n.a,9).p]-e.a.e[y(o.a,9).p],Po(GF(u))}i(jun,"WNc");function Nue(e,n){var o;return o=y(Jr(e.a,n),150),o||(o=new Pa,Oi(e.a,n,o)),o}i(Nue,"fbd");function Fp(e,n,o){var u;if(n==null)throw xe(new f5);return u=M1(e,n),Zln(e,n,o),u}i(Fp,"kC");function Nr(e,n){var o;return o=(e.i==null&&Q0(e),e.i),n>=0&&n<o.length?o[n]:null}i(Nr,"IWd");function B9t(e,n){return Ur(n),n7e(e),e.d.Ob()?(n.Ad(e.d.Pb()),!0):!1}i(B9t,"Yvb");function mX(e){return eu(e,Ui)>0?Ui:eu(e,bo)<0?bo:mi(e)}i(mX,"Xy");function zun(e,n){return X5(),-Yc(y(oe(e,(uc(),EE)),15).a,y(oe(n,EE),15).a)}i(zun,"IYc");function Uun(){return Yr(),Se(Ee(G0e,1),At,249,0,[Ya,bs,ks,iu,_c,u0,tj,MM])}i(Uun,"bZb");function Vun(){return eR(),Se(Ee(See,1),At,244,0,[Xye,Cee,Eee,kee,Yye,Tee,xee,qye])}i(Vun,"wEd");function Wun(){return dw(),Se(Ee(lnr,1),At,285,0,[DUe,Ms,jo,X6,Ao,Oa,Y6,d0])}i(Wun,"kfd");function Hun(){return WK(),Se(Ee(FFe,1),At,275,0,[J0e,eme,K0e,nme,Z0e,Q0e,rme,tme])}i(Hun,"tjc");function F9t(e,n){return!!aI(e,n,mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))))}i(F9t,"ro");function qun(e,n){var o;return o=n>0?n-1:n,aCt(BQr(iIt($8e(new g5,o),e.n),e.j),e.k)}i(qun,"god");function Ll(e){var n,o;o=(n=new Soe,n),Zn((!e.q&&(e.q=new xt(lp,e,11,10)),e.q),o)}i(Ll,"Jyd");function Yun(e,n){var o,u;return o=y(i3(e.d,n),18),o?(u=n,e.e.pc(u,o)):null}i(Yun,"je");function yX(e,n){var o;return mv(e),o=new Y7t(e,e.a.xd(),e.a.wd()|4,n),new Er(e,o)}i(yX,"gCb");function Oue(e){var n;Dk(!!e.c),n=e.c.a,dd(e.d,e.c),e.b==e.c?e.b=n:--e.a,e.c=null}i(Oue,"nub");function $9t(e){return e.a>=-.01&&e.a<=a0&&(e.a=0),e.b>=-.01&&e.b<=a0&&(e.b=0),e}i($9t,"ykc");function Xun(e){var n;return n=He(Xe(oe(e,(Bt(),ab)))),n<0&&(n=0,dt(e,ab,n)),n}i(Xun,"y6b");function Kun(e,n){I5(y(oe(y(e.e,9),(Bt(),Qa)),102))&&(Ir(),zs(y(e.e,9).j,n))}i(Kun,"jXb");function bX(e,n){var o,u;for(u=e.Jc();u.Ob();)o=y(u.Pb(),70),dt(o,(Tt(),$6),n)}i(bX,"C7b");function Jun(e,n,o){var u;u=d.Math.max(0,e.b/2-.5),EI(o,u,1),Nt(n,new jEt(o,u))}i(Jun,"Pcc");function Qun(e,n,o,u){var p;e.j=-1,E9e(e,n9e(e,n,o),(tl(),p=y(n,69).tk(),p.vl(u)))}i(Qun,"fee");function G9t(e,n,o,u,p,g){var w;w=gue(u),Bo(w,p),mo(w,g),Sr(e.a,u,new Zq(w,n,o.f))}i(G9t,"WVb");function j9t(e,n){pa(e,(Wm(),rye),n.f),pa(e,irr,n.e),pa(e,tye,n.d),pa(e,nrr,n.c)}i(j9t,"K5c");function Zun(e,n){if(0>e||e>n)throw xe(new i6e("fromIndex: 0, toIndex: "+e+bMe+n))}i(Zun,"qwb");function Fx(e){if(e<0)throw xe(new rn("Illegal Capacity: "+e));this.g=this.$i(e)}i(Fx,"oGd");function z9t(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(HH(),o0e)}i(z9t,"yd");function Qk(e,n){var o;for(o=e;$a(o);)if(o=$a(o),o==n)return!0;return!1}i(Qk,"cFd");function ehn(e,n){return n&&e.b[n.g]==n?(as(e.b,n.g,null),--e.c,!0):!1}i(ehn,"Mrb");function dd(e,n){var o;return o=n.c,n.a.b=n.b,n.b.a=n.a,n.a=n.b=null,n.c=null,--e.b,o}i(dd,"bub");function U9t(e,n){var o;if(o=rG(e.Ah(),n),!o)throw xe(new rn(Lv+n+Ege));return o}i(U9t,"vtd");function AC(e){nR();var n,o;for(o=dOe,n=0;n<e.length;n++)e[n]>o&&(o=e[n]);return o}i(AC,"Cfd");function thn(e){var n;for(n=0;n<e.c.length;n++)(_r(n,e.c.length),y(e.c[n],12)).p=n}i(thn,"Dkc");function rhn(e){var n,o;for(n=e.a.d.j,o=e.c.d.j;n!=o;)Gp(e.b,n),n=XX(n);Gp(e.b,n)}i(rhn,"Gkc");function nhn(e,n){var o,u,p;for(u=n.a.jd(),o=y(n.a.kd(),18).gc(),p=0;p<o;p++)e.Ad(u)}i(nhn,"ax");function Zc(e,n){var o,u,p,g;for(Ur(n),u=e.c,p=0,g=u.length;p<g;++p)o=u[p],n.Ad(o)}i(Zc,"cmb");function Pue(e,n){var o,u,p,g;for(u=e.d,p=0,g=u.length;p<g;++p)o=u[p],Hg(e.g,o).a=n}i(Pue,"RFc");function ihn(e,n,o){var u,p,g;for(p=n[o],u=0;u<p.length;u++)g=p[u],e.e[g.c.p][g.p]=u}i(ihn,"VEc");function V9t(e,n,o){var u,p;u=n;do p=He(e.p[u.p])+o,e.p[u.p]=p,u=e.a[u.p];while(u!=n)}i(V9t,"aNc");function ahn(e){var n;return n=d.Math.sqrt(e.a*e.a+e.b*e.b),n>0&&(e.a/=n,e.b/=n),e}i(ahn,"bgd");function vX(e){this.b=(oi(e),new Ah(e)),this.a=new Pt,this.d=new Pt,this.e=new xo}i(vX,"_od");function KRe(e){e.b=(Lh(),Iv),e.f=(Xu(),Mv),e.d=(Of(2,w3),new vu(2)),e.e=new xo}i(KRe,"nIb");function yg(){yg=U,dc=new Joe("BEGIN",0),Cu=new Joe(vR,1),pc=new Joe("END",2)}i(yg,"CHb");function Qg(){Qg=U,xL=new kle(vR,0),i4=new kle("HEAD",1),TL=new kle("TAIL",2)}i(Qg,"Zjd");function X5(){X5=U,Etr=X0(X0(X0(c9(new us,(o6(),oN)),(FI(),C1e)),Dje),Oje)}i(X5,"AYc");function $1(){$1=U,Atr=X0(X0(X0(c9(new us,(o6(),cN)),(FI(),Mje)),Rje),Ije)}i($1,"kZc");function W9t(){W9t=U,xQ=(yg(),Se(Ee(_3,1),At,237,0,[dc,Cu,pc])).length,C0e=xQ}i(W9t,"PHb");function H9t(e,n){for(;n[0]<e.length&&U0(` \r
|
|
`,Ku(Do(e,n[0])))>=0;)++n[0]}i(H9t,"CA");function k7(e,n){var o,u;u=e.a,o=Gdn(e,n,null),u!=n&&!e.e&&(o=uR(e,n,o)),o&&o.mj()}i(k7,"y0d");function Nf(e){var n;return e.w?e.w:(n=qon(e),n&&!n.Sh()&&(e.w=n),n)}i(Nf,"OVd");function shn(e){var n;return e==null?null:(n=y(e,195),Y1n(n,n.length))}i(shn,"T8d");function je(e,n){if(e.g==null||n>=e.i)throw xe(new Rle(n,e.i));return e.Ui(n,e.g[n])}i(je,"fGd");function ohn(e,n){Ir();var o,u;for(u=new Pt,o=0;o<e;++o)tn(u.c,n);return new $oe(u)}i(ohn,"Nnb");function q9t(e){return mv(e),N5(!0,"n may not be negative"),new Er(e,new gIt(e.a))}i(q9t,"eCb");function JRe(e){return((e.i&2)!=0?"interface ":(e.i&1)!=0?"":"class ")+(_1(e),e.o)}i(JRe,"yeb");function QRe(e,n){return Wg(),$p(Cv),d.Math.abs(e-n)<=Cv||e==n||isNaN(e)&&isNaN(n)}i(QRe,"KEb");function ZRe(e,n){return Wg(),$p(Cv),d.Math.abs(e-n)<=Cv||e==n||isNaN(e)&&isNaN(n)}i(ZRe,"Uy");function lhn(e,n){return vv(),Yc(e.b.c.length-e.e.c.length,n.b.c.length-n.e.c.length)}i(lhn,"qic");function RC(e,n){return zQr(iI(e,n,mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15)))))}i(RC,"uo");function chn(e,n){var o;return o=qs(Wo(y(Jr(e.g,n),8)),vAe(y(Jr(e.f,n),460).b)),o}i(chn,"fRb");function Y9t(e,n,o){var u=i(function(){return e.apply(u,arguments)},"d");return n.apply(u,o),u}i(Y9t,"rdb");function K5(e){var n;return N9(e==null||Array.isArray(e)&&(n=p$(e),!(n>=14&&n<=16))),e}i(K5,"KD");function X9t(){X9t=U,AKt=ci((l6(),Se(Ee(QR,1),At,231,0,[JR,OM,KR,P3,hE,uE])))}i(X9t,"Knc");function K9t(){K9t=U,OKt=ci((_K(),Se(Ee(KFe,1),At,284,0,[gme,pme,yme,mme,bme,eZ])))}i(K9t,"gpc");function J9t(){J9t=U,BKt=ci((W$(),Se(Ee(n$e,1),At,282,0,[rZ,e$e,r$e,ZFe,t$e,vme])))}i(J9t,"Apc");function Q9t(){Q9t=U,FKt=ci((Q7(),Se(Ee(c$e,1),At,283,0,[BM,a$e,l$e,o$e,s$e,i$e])))}i(Q9t,"Mpc");function Z9t(){Z9t=U,unr=ci((Vm(),Se(Ee(NUe,1),At,256,0,[xye,Nj,Oj,oee,aee,see])))}i(Z9t,"Qgd");function eIt(){eIt=U,Znr=ci((uo(),Se(Ee(jVe,1),At,102,0,[Hv,m0,CL,Bw,a1,zc])))}i(eIt,"Tld");function tIt(){tIt=U,eir=ci((_h(),Se(Ee(pee,1),At,280,0,[qv,ry,qj,IN,DN,tA])))}i(tIt,"fmd");function rIt(){rIt=U,mnr=ci((fw(),Se(Ee(Eye,1),At,299,0,[Cye,CN,kN,kye,xN,TN])))}i(rIt,"thd");function nIt(){nIt=U,Hnr=ci((RK(),Se(Ee(IVe,1),At,328,0,[Gye,LVe,DVe,AVe,_Ve,RVe])))}i(nIt,"ykd");function uhn(){return d3(),Se(Ee(fl,1),At,96,0,[Jp,ty,Qp,eg,i1,ap,Vf,Zp,ip])}i(uhn,"sld");function tI(){tI=U,Yj=new Ele(oPe,0),jye=new Ele("PARENT",1),UVe=new Ele("ROOT",2)}i(tI,"$md");function iIt(e,n){return e.n=n,e.n?(e.f=new Pt,e.e=new Pt):(e.f=null,e.e=null),e}i(iIt,"mod");function $x(e,n){var o;o=e.f,e.f=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,3,o,e.f))}i($x,"Yvd");function wX(e,n){var o;o=e.a,e.a=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,0,o,e.a))}i(wX,"rvd");function xX(e,n){var o;o=e.b,e.b=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,1,o,e.b))}i(xX,"svd");function LC(e,n){var o;o=e.b,e.b=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,3,o,e.b))}i(LC,"bxd");function _C(e,n){var o;o=e.c,e.c=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,4,o,e.c))}i(_C,"cxd");function Gx(e,n){var o;o=e.g,e.g=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,4,o,e.g))}i(Gx,"$vd");function Xh(e,n){var o;o=e.i,e.i=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,5,o,e.i))}i(Xh,"_vd");function Kh(e,n){var o;o=e.j,e.j=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,6,o,e.j))}i(Kh,"awd");function DC(e,n){var o;o=e.j,e.j=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,1,o,e.j))}i(DC,"ixd");function IC(e,n){var o;o=e.k,e.k=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Xk(e,2,o,e.k))}i(IC,"jxd");function Bue(e,n){var o;o=e.d,e.d=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new uue(e,2,o,e.d))}i(Bue,"b0d");function Uy(e,n){var o;o=e.s,e.s=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new uue(e,4,o,e.s))}i(Uy,"lUd");function Zk(e,n){var o;o=e.t,e.t=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new uue(e,5,o,e.t))}i(Zk,"oUd");function C7(e,n){var o;o=e.F,e.F=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,5,o,n))}i(C7,"MVd");function m$(e,n){var o;return o=y(Jr((sq(),Aee),e),58),o?o.ek(n):tt(Fs,Fr,1,n,5,1)}i(m$,"ZKd");function G1(e,n){var o,u;return o=n in e.a,o&&(u=M1(e,n).pe(),u)?u.a:null}i(G1,"RAd");function hhn(e,n){var o,u,p;return o=(u=(Kb(),p=new qSe,p),n&&J9e(u,n),u),gLe(o,e),o}i(hhn,"YEd");function aIt(e,n,o){var u;return u=W7(o),Oi(e.c,u,n),Oi(e.d,n,o),Oi(e.e,n,Vk(n)),n}i(aIt,"ZBd");function qn(e,n,o,u,p,g){var w;return w=_ce(e,n),oIt(o,w),w.i=p?8:0,w.f=u,w.e=p,w.g=g,w}i(qn,"Deb");function eLe(e,n,o,u,p){this.d=n,this.k=u,this.f=p,this.o=-1,this.p=1,this.c=e,this.a=o}i(eLe,"c2d");function tLe(e,n,o,u,p){this.d=n,this.k=u,this.f=p,this.o=-1,this.p=2,this.c=e,this.a=o}i(tLe,"e2d");function rLe(e,n,o,u,p){this.d=n,this.k=u,this.f=p,this.o=-1,this.p=6,this.c=e,this.a=o}i(rLe,"m2d");function nLe(e,n,o,u,p){this.d=n,this.k=u,this.f=p,this.o=-1,this.p=7,this.c=e,this.a=o}i(nLe,"r2d");function iLe(e,n,o,u,p){this.d=n,this.j=u,this.e=p,this.o=-1,this.p=4,this.c=e,this.a=o}i(iLe,"i2d");function sIt(e,n){var o,u,p,g;for(u=n,p=0,g=u.length;p<g;++p)o=u[p],PDt(e.a,o);return e}i(sIt,"BEb");function pd(e){var n,o,u,p;for(o=e,u=0,p=o.length;u<p;++u)n=o[u],oi(n);return new o5t(e)}i(pd,"yl");function aLe(e){var n;return n=qs(Wo(e.d.d),e.c.d),X7(n,e.c.e.a,e.c.e.b),ra(n,e.c.d)}i(aLe,"BNb");function sLe(e){var n;return n=qs(Wo(e.c.d),e.d.d),X7(n,e.d.e.a,e.d.e.b),ra(n,e.d.d)}i(sLe,"CNb");function fhn(e){var n=/function(?:\s+([\w$]+))?\s*\(/,o=n.exec(e);return o&&o[1]||Cde}i(fhn,"aA");function oIt(e,n){var o;if(e){n.n=e;var u=eon(n);if(!u){fQ[e]=[n];return}u.Pm=n}}i(oIt,"Peb");function dhn(e,n,o){var u,p;return p=e.length,u=d.Math.min(o,p),C9e(e,0,n,0,u,!0),n}i(dhn,"Rmb");function lIt(e,n,o){if(N7(e,o),!e.il()&&o!=null&&!e.dk(o))throw xe(new xoe);return o}i(lIt,"wXd");function li(e,n){var o;return Ur(n),o=e[":"+n],FF(!!o,"Enum constant undefined: "+n),o}i(li,"ks");function phn(e,n){var o,u;return o=e.c,u=n.e[e.p],u>0?y(Wt(o.a,u-1),9):null}i(phn,"$Mc");function $p(e){if(!(e>=0))throw xe(new rn("tolerance ("+e+") must be >= 0"));return e}i($p,"Wy");function rI(){return vye||(vye=new kGt,e6(vye,Se(Ee(_6,1),Fr,148,0,[new JSe]))),vye}i(rI,"vdd");function TX(){TX=U,wje=new fle("NO",0),x1e=new fle(GMe,1),vje=new fle("LOOK_BACK",2)}i(TX,"jBc");function kX(){kX=U,VFe=new rle("ARD",0),QQ=new rle("MSD",1),ame=new rle("MANUAL",2)}i(kX,"hoc");function sl(){sl=U,rN=new cle(QI,0),Mh=new cle("INPUT",1),Eu=new cle("OUTPUT",2)}i(sl,"qAc");function y$(e,n){var o;if(o=e.gc(),n<0||n>o)throw xe(new Pk(n,o));return new m8e(e,n)}i(y$,"oFd");function nI(e,n){var o,u,p,g;for(u=n,p=0,g=u.length;p<g;++p)o=u[p],Ha(e,o,e.c.b,e.c)}i(nI,"tgd");function cIt(e,n){var o;return Ge(n,45)?e.c.Kc(n):(o=_he(e,n),aK(e,n),o)}i(cIt,"yMd");function bl(e,n,o){return lw(e,n),wu(e,o),Uy(e,0),Zk(e,1),Yy(e,!0),qy(e,!0),e}i(bl,"Uyd");function Fue(e,n,o,u,p){this.d=e,this.n=n,this.g=o,this.o=u,this.p=-1,p||(this.o=-2-u-1)}i(Fue,"cJd");function uIt(e,n,o,u){this.$j(),this.a=n,this.b=e,this.c=null,this.c=new uAt(this,n,o,u)}i(uIt,"Phe");function hIt(){CAe.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=Wp}i(hIt,"UUd");function fIt(e){Dk(e.c>=0),rgn(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}i(fIt,"Tlb");function CX(e,n){e.b=d.Math.max(e.b,n.d),e.e+=n.r+(e.a.c.length==0?0:e.c),Nt(e.a,n)}i(CX,"y7c");function ghn(e,n){n.Tg("Hierarchical port constraint processing",1),Bgn(e),IEn(e),n.Ug()}i(ghn,"P2b");function EX(e){var n,o;for(o=e.c.Bc().Jc();o.Ob();)n=y(o.Pb(),18),n.$b();e.c.$b(),e.d=0}i(EX,"Nc");function dIt(e,n){var o,u;for(o=0,u=e.gc();o<u;++o)if(Oc(n,e.Xb(o)))return o;return-1}i(dIt,"Jt");function mhn(e){var n,o,u,p;for(o=e.a,u=0,p=o.length;u<p;++u)n=o[u],Z8t(n,n.length,null)}i(mhn,"Xi");function yhn(){dEt();for(var e=r0e,n=0;n<arguments.length;n++)e.push(arguments[n])}i(yhn,"kdb");function bhn(e){var n,o;for(o=new ye(uPt(e));o.a<o.c.c.length;)n=y(de(o),685),n.Zf()}i(bhn,"hHb");function oLe(e){var n,o;if(e==0)return 32;for(o=0,n=1;(n&e)==0;n<<=1)++o;return o}i(oLe,"yfb");function Of(e,n){if(e<0)throw xe(new rn(n+" cannot be negative but was: "+e));return e}i(Of,"bk");function pIt(e){T6e(),this.g=new jn,this.f=new jn,this.b=new jn,this.c=new Ox,this.i=e}i(pIt,"iRb");function lLe(){this.f=new xo,this.d=new U5e,this.c=new xo,this.a=new Pt,this.b=new Pt}i(lLe,"JWb");function gIt(e){Pq.call(this,e.yd(64)?gAe(0,Kd(e.xd(),1)):yG,e.wd()),this.b=1,this.a=e}i(gIt,"WCb");function vhn(e,n){var o,u,p;p=n.c.i,o=y(Jr(e.f,p),60),u=o.d.c-o.e.c,Zc(n.b,new OTt(u))}i(vhn,"xec");function SX(e,n){return jQr(aI(e.a,n,mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15)))))}i(SX,"fp");function whn(){return Zh(),Se(Ee(WVe,1),At,266,0,[EL,Qj,gee,NN,mee,bee,yee,zye,Jj])}i(whn,"And");function xhn(){return Z$(),Se(Ee(qFe,1),At,267,0,[lme,HFe,ume,hme,cme,fme,sj,ome,sme])}i(xhn,"Coc");function Thn(){return tG(),Se(Ee(tje,1),At,268,0,[s1e,QGe,ZGe,i1e,JGe,eje,LZ,n1e,a1e])}i(Thn,"Wyc");function mIt(){mIt=U,Yqt=Se(Ee(pi,1),Pi,30,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}i(mIt,"Gfb");function cLe(){cLe=U,ner=Ei(Ei(Ei(new us,(eo(),Yp),(ho(),lE)),Zm,N3),jc,M3)}i(cLe,"HCc");function yIt(){yIt=U,ier=Ei(Ei(Ei(new us,(eo(),Yp),(ho(),lE)),Zm,N3),jc,M3)}i(yIt,"SCc");function uLe(){uLe=U,aer=Ei(Ei(Ei(new us,(eo(),Yp),(ho(),lE)),Zm,N3),jc,M3)}i(uLe,"kDc");function bIt(){bIt=U,ser=Ei(Ei(Ei(new us,(eo(),Yp),(ho(),lE)),Zm,N3),jc,M3)}i(bIt,"FDc");function vIt(){vIt=U,oer=Ei(Ei(Ei(new us,(eo(),Yp),(ho(),lE)),Zm,N3),jc,M3)}i(vIt,"NDc");function wIt(){wIt=U,ler=Ei(Ei(Ei(new us,(eo(),Yp),(ho(),lE)),Zm,N3),jc,M3)}i(wIt,"jEc");function xIt(){xIt=U,her=Xc(Ei(Ei(new us,(eo(),jc),(ho(),FQ)),Lc,MQ),hl,BQ)}i(xIt,"qGc");function khn(e,n){return X5(),y(oe(n,(uc(),EE)),15).a<e.gc()&&y(oe(n,EE),15).a>=0}i(khn,"GYc");function hLe(e,n){e.r>0&&e.c<e.r&&(e.c+=n,e.i&&e.i.d>0&&e.g!=0&&hLe(e.i,n/e.r*e.i.d))}i(hLe,"iod");function fLe(e,n){var o;o=e.c,e.c=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,1,o,e.c))}i(fLe,"uAd");function $ue(e,n){var o;o=e.c,e.c=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,4,o,e.c))}i($ue,"a0d");function dLe(e,n){var o;o=e.c,e.c=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,1,o,e.c))}i(dLe,"G4d");function pLe(e,n){var o;o=e.d,e.d=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,1,o,e.d))}i(pLe,"ATd");function E7(e,n){var o;o=e.k,e.k=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,2,o,e.k))}i(E7,"Hvd");function Gue(e,n){var o;o=e.D,e.D=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,2,o,e.D))}i(Gue,"WVd");function AX(e,n){var o;o=e.f,e.f=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,8,o,e.f))}i(AX,"exd");function RX(e,n){var o;o=e.i,e.i=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,7,o,e.i))}i(RX,"fxd");function gLe(e,n){var o;o=e.a,e.a=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,8,o,e.a))}i(gLe,"Bzd");function mLe(e,n){var o;o=e.b,e.b=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,0,o,e.b))}i(mLe,"tAd");function yLe(e,n){var o;o=e.b,e.b=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,0,o,e.b))}i(yLe,"F4d");function Chn(e,n,o){var u;e.b=n,e.a=o,u=(e.a&512)==512?new A4t:new KSe,e.c=txn(u,e.b,e.a)}i(Chn,"Pre");function TIt(e,n){return W1(e.e,n)?(tl(),Due(n)?new lY(n,e):new TF(n,e)):new HSt(n,e)}i(TIt,"Tee");function Ehn(e){var n,o;return 0>e?new x6e:(n=e+1,o=new D_t(n,e),new XAe(null,o))}i(Ehn,"BBb");function Shn(e,n){Ir();var o;return o=new w5(1),lo(e)?Al(o,e,n):Ju(o.f,e,n),new yoe(o)}i(Shn,"Qnb");function Ahn(e,n){var o;o=new ui,y(n.b,68),y(n.b,68),y(n.b,68),Zc(n.a,new E8e(e,o,n))}i(Ahn,"Tad");function bLe(e,n){var o;o=e.d,e.d=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,11,o,e.d))}i(bLe,"dxd");function kIt(e,n){var o,u;for(u=n.vc().Jc();u.Ob();)o=y(u.Pb(),45),U$(e,o.jd(),o.kd())}i(kIt,"xMd");function LX(e,n){var o;o=e.j,e.j=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,13,o,e.j))}i(LX,"MUd");function CIt(e,n){var o;return Ge(n,8)?(o=y(n,8),e.a==o.a&&e.b==o.b):!1}i(CIt,"$fd");function Rhn(e){var n;return n=oe(e,(Tt(),aa)),Ge(n,174)?UNt(y(n,174)):null}i(Rhn,"L_b");function EIt(e){var n;return e=d.Math.max(e,2),n=$Le(e),e>n?(n<<=1,n>0?n:qI):n}i(EIt,"Qp");function vLe(e){var n;return e.b==null?(Oy(),Oy(),sz):(n=e.sl()?e.rl():e.ql(),n)}i(vLe,"a1d");function MC(e){var n;return ece(e.f.g,e.d),In(e.b),e.c=e.a,n=y(e.a.Pb(),45),e.b=ILe(e),n}i(MC,"Djb");function jue(e,n){var o=e.a,u=0;for(var p in o)o.hasOwnProperty(p)&&(n[u++]=p);return n}i(jue,"gC");function Gp(e,n){var o;return Ur(n),o=n.g,e.b[o]?!1:(as(e.b,o,n),++e.c,!0)}i(Gp,"Hrb");function SIt(e,n){var o;return o=n==null?-1:Jl(e.b,n,0),o<0?!1:(zue(e,o),!0)}i(SIt,"uvb");function zue(e,n){var o;o=Gy(e.b,e.b.c.length-1),n<e.b.c.length&&(Mf(e.b,n,o),nFt(e,n))}i(zue,"vvb");function Lhn(e,n){(eX(),c0?null:n.c).length==0&&P6t(n,new tr),Al(e.a,c0?null:n.c,n)}i(Lhn,"eAb");function wLe(e,n){var o;o=e.b,e.b=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,21,o,e.b))}i(wLe,"o4d");function _X(e,n){var o,u;return o=1-n,u=e.a[o],e.a[o]=u.a[n],u.a[n]=e,e.b=!0,u.b=!1,u}i(_X,"hyb");function _hn(e,n){var o,u;return o=y(oe(e,(Bt(),W3)),8),u=y(oe(n,W3),8),ha(o.b,u.b)}i(_hn,"kcc");function AIt(e){Q8e.call(this),this.b=He(Xe(oe(e,(Bt(),Xp)))),this.a=y(oe(e,Z1),222)}i(AIt,"Qcc");function RIt(e,n,o){iRe.call(this,e,n,o),this.a=new jn,this.b=new jn,this.d=new rkt(this)}i(RIt,"eIc");function LIt(e){this.e=e,this.d=new JH(r3(O5(this.e).gc())),this.c=this.e.a,this.b=this.e.c}i(LIt,"su");function DX(e){this.b=e,this.a=tt(pi,Pi,30,e+1,15,1),this.c=tt(pi,Pi,30,e,15,1),this.d=0}i(DX,"KIc");function Uue(e,n,o){var u;return u=new Pt,eIe(e,n,u,o,!0,!0),e.b=new DX(u.c.length),u}i(Uue,"aJc");function Dhn(e,n){var o,u;u=new Pt,o=n;do tn(u.c,o),o=y(Jr(e.k,o),17);while(o);return u}i(Dhn,"yRc");function _It(e,n){var o;return o=y(Jr(e.c,n),456),o||(o=new s4t,o.c=n,Oi(e.c,o.c,o)),o}i(_It,"wNc");function Vue(e){switch(AAe(e.e!=3),e.e){case 2:return!1;case 0:return!0}return Ncn(e)}i(Vue,"xc");function uv(){uv=U,I6=new ia(IMe),SQ=new ia(MMe),DM=new ia(YUt),ZG=new ia(XUt)}i(uv,"lPb");function S7(){S7=U,rj=new B6e("TO_INTERNAL_LTR",0),U0e=new B6e("TO_INPUT_DIRECTION",1)}i(S7,"B2b");function IX(){IX=U,WZ=new K6e("P1_NODE_PLACEMENT",0),AE=new K6e("P2_EDGE_ROUTING",1)}i(IX,"g_c");function jx(){jx=U,mT=new tle("START",0),Nv=new tle("MIDDLE",1),gT=new tle("END",2)}i(jx,"vic");function J5(){J5=U,H0e=new Da("edgelabelcenterednessanalysis.includelabel",(qr(),Dv))}i(J5,"N6b");function Ihn(e,n){ts(Hi(new Er(null,new Rr(new E1(e.b),1)),new pSt(e,n)),new mSt(e,n))}i(Ihn,"zyc");function Mhn(e,n){n.Tg(uVt,1),ts(jl(new Er(null,new Rr(e.b,16)),new uh),new al),n.Ug()}i(Mhn,"T_b");function Aa(e){return lo(e)?Vy(e):_k(e)?E5(e):Lk(e)?O6t(e):r7e(e)?e.Hb():X8e(e)?Sx(e):P7e(e)}i(Aa,"tb");function Wue(e,n){var o;return Ge(n,18)?(o=y(n,18),e.Fc(o)):Iue(e,y(oi(n),20).Jc())}i(Wue,"Vq");function wu(e,n){var o;o=e.zb,e.zb=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,1,o,e.zb))}i(wu,"jyd");function Ka(e,n){var o,u;o=(u=new Eoe,u),o.n=n,Zn((!e.s&&(e.s=new xt(ih,e,21,17)),e.s),o)}i(Ka,"Eyd");function La(e,n){var o,u;u=(o=new HAe,o),u.n=n,Zn((!e.s&&(e.s=new xt(ih,e,21,17)),e.s),u)}i(La,"Kyd");function xLe(e){var n,o;for(o=new Sn(e);o.e!=o.i.gc();)n=y(_n(o),26),Xh(n,0),Kh(n,0)}i(xLe,"x7c");function DIt(e){var n,o;for(o=e.c.a.ec().Jc();o.Ob();)n=y(o.Pb(),218),iJr(n,new U8t(n.f))}i(DIt,"RGc");function TLe(e){var n,o;for(o=e.c.a.ec().Jc();o.Ob();)n=y(o.Pb(),218),aJr(n,new mBt(n.e))}i(TLe,"SGc");function MX(e,n){var o;o=e.xb,e.xb=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,3,o,e.xb))}i(MX,"Yyd");function NX(e,n){var o;o=e.yb,e.yb=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,2,o,e.yb))}i(NX,"Zyd");function nw(e,n){var o,u;for(o=e.Nc(),w7(o,0,o.length,n),u=0;u<o.length;u++)e.fd(u,o[u])}i(nw,"Bub");function IIt(e,n,o){var u,p,g;for(g=e.a.length-1,p=e.b,u=0;u<o;p=p+1&g,++u)as(n,u,e.a[p])}i(IIt,"vlb");function Fo(e,n){var o,u,p;for(Ur(n),o=!1,p=n.Jc();p.Ob();)u=p.Pb(),o=o|e.Ec(u);return o}i(Fo,"xe");function MIt(e){var n,o,u;for(n=0,u=e.Jc();u.Ob();)o=u.Pb(),n+=o!=null?Aa(o):0,n=~~n;return n}i(MIt,"Ox");function NIt(e){var n;return e==0?"UTC":(e<0?(e=-e,n="UTC+"):n="UTC-",n+m9t(e))}i(NIt,"$A");function kLe(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=KF(vc(e.f))),e.c).e}i(kLe,"Hhb");function OIt(e,n){n?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}i(OIt,"TVd");function Nhn(e,n){typeof window===dG&&typeof window.$gwt===dG&&(window.$gwt[e]=n)}i(Nhn,"ndb");function Ohn(e,n,o){var u,p,g;for(u=0,p=0;p<o;p++)g=n[p],e[p]=g<<1|u,u=g>>>31;u!=0&&(e[o]=u)}i(Ohn,"Cib");function Hue(e,n,o,u,p,g){var w;this.c=e,w=new Pt,aDe(e,w,n,e.b,o,u,p,g),this.a=new yo(w,0)}i(Hue,"Fyb");function PIt(){this.c=new QH(0),this.b=new QH(fOe),this.d=new QH(PVt),this.a=new QH(BVt)}i(PIt,"K2c");function BIt(e,n){return He(Xe(ff(D$(bu(new Er(null,new Rr(e.c.b,16)),new UTt(e)),n))))}i(BIt,"Umc");function CLe(e,n){return He(Xe(ff(D$(bu(new Er(null,new Rr(e.c.b,16)),new zTt(e)),n))))}i(CLe,"Xmc");function Phn(e,n){var o,u;return o=y(St(e,(wv(),qZ)),15),u=y(St(n,qZ),15),Yc(o.a,u.a)}i(Phn,"C2c");function Bhn(e,n){var o;n.Tg("General Compactor",1),o=Rpn(y(St(e,(wv(),H1e)),386)),o.Bg(e)}i(Bhn,"i0c");function Fhn(e,n,o){o.Tg("DFS Treeifying phase",1),qpn(e,n),kwn(e,n),e.a=null,e.b=null,o.Ug()}i(Fhn,"vYc");function ELe(e,n,o){var u,p;for(p=ei(e,0);p.b!=p.d.c;)u=y(Qn(p),8),u.a+=n,u.b+=o;return e}i(ELe,"vgd");function iI(e,n,o){var u;for(u=e.b[o&e.f];u;u=u.b)if(o==u.a&&D1(n,u.g))return u;return null}i(iI,"Ao");function aI(e,n,o){var u;for(u=e.c[o&e.f];u;u=u.d)if(o==u.f&&D1(n,u.i))return u;return null}i(aI,"Bo");function $hn(e,n,o,u){var p;p=new m5,J2(p,"x",kK(e,n,u.a)),J2(p,"y",CK(e,n,u.b)),$5(o,p)}i($hn,"RBd");function Ghn(e,n,o,u){var p;p=new m5,J2(p,"x",kK(e,n,u.a)),J2(p,"y",CK(e,n,u.b)),$5(o,p)}i(Ghn,"UBd");function ss(e,n,o,u,p,g,w,k,A,D,M,F,z){return JBt(e,n,o,u,p,g,w,k,A,D,M,F,z),Che(e,!1),e}i(ss,"Pyd");function gd(e,n,o,u,p,g,w){si.call(this,e,n),this.d=o,this.e=u,this.c=p,this.b=g,this.a=Bp(w)}i(gd,"PJb");function FIt(e,n){return Wg(),$p(a0),d.Math.abs(0-n)<=a0||n==0||isNaN(0)&&isNaN(n)?0:e/n}i(FIt,"cKb");function jhn(e,n){return D7(),e==pT&&n==I3||e==I3&&n==pT||e==oE&&n==D3||e==D3&&n==oE}i(jhn,"XSb");function zhn(e,n){return D7(),e==pT&&n==D3||e==pT&&n==oE||e==I3&&n==oE||e==I3&&n==D3}i(zhn,"YSb");function Uhn(){return ol(),Se(Ee(wme,1),At,261,0,[nZ,Cd,FM,iZ,rL,dE,$M,eL,tL,aZ])}i(Uhn,"$pc");function Vhn(){return Tv(),Se(Ee(cje,1),At,243,0,[IZ,wj,xj,sje,oje,aje,lje,MZ,fL,tN])}i(Vhn,"Uzc");function que(){que=U,$N=new T4t,Zye=Se(Ee(ih,1),iE,179,0,[]),Xir=Se(Ee(lp,1),LPe,62,0,[])}i(que,"yWd");function mh(){mh=U,z0e=new sa,j0e=new da,KBe=new Lr,XBe=new Xa,JBe=new Ze,QBe=new xa}i(mh,"qZb");function Whn(e,n){n.Tg(uVt,1),Rhe(eZr(new KB((K8(),new IY(e,!1,!1,new It))))),n.Ug()}i(Whn,"o4b");function Yue(e){var n;return n=nRe(e),T9(n.a,0)?(Ek(),Ek(),y0e):(Ek(),new Vle(n.b))}i(Yue,"jBb");function Xue(e){var n;return n=nRe(e),T9(n.a,0)?(Ek(),Ek(),y0e):(Ek(),new Vle(n.c))}i(Xue,"kBb");function Hhn(e){var n;return n=qY(e),T9(n.a,0)?(tq(),tq(),oYt):(tq(),new b6t(n.b))}i(Hhn,"GBb");function qhn(e){return e.b.c.i.k==(Yr(),ks)?y(oe(e.b.c.i,(Tt(),aa)),12):e.b.c}i(qhn,"lWb");function $It(e){return e.b.d.i.k==(Yr(),ks)?y(oe(e.b.d.i,(Tt(),aa)),12):e.b.d}i($It,"mWb");function GIt(e){switch(e.g){case 2:return zt(),on;case 4:return zt(),bn;default:return e}}i(GIt,"a2b");function jIt(e){switch(e.g){case 1:return zt(),Fn;case 3:return zt(),sn;default:return e}}i(jIt,"b2b");function Yhn(e,n){var o;return o=zDe(e),v9e(new Lt(o.c,o.d),new Lt(o.b,o.a),e.Kf(),n,e.$f())}i(Yhn,"Tpd");function sI(e,n){var o,u;for(Ur(n),u=n.vc().Jc();u.Ob();)o=y(u.Pb(),45),e.yc(o.jd(),o.kd())}i(sI,"Ld");function Xhn(e,n,o){var u;for(u=o.Jc();u.Ob();)if(!XY(e,n,u.Pb()))return!1;return!0}i(Xhn,"ree");function Khn(e,n){var o;for(oi(n);e.Ob();)if(o=e.Pb(),!DLe(y(o,9)))return!1;return!0}i(Khn,"qr");function Jhn(e,n,o,u,p){var g;return o&&(g=ja(n.Ah(),e.c),p=o.Oh(n,-1-(g==-1?u:g),null,p)),p}i(Jhn,"d5d");function Qhn(e,n,o,u,p){var g;return o&&(g=ja(n.Ah(),e.c),p=o.Qh(n,-1-(g==-1?u:g),null,p)),p}i(Qhn,"e5d");function zIt(e){var n;if(e.b==-2){if(e.e==0)n=-1;else for(n=0;e.a[n]==0;n++);e.b=n}return e.b}i(zIt,"cib");function Zhn(e){if(Ur(e),e.length==0)throw xe(new z0("Zero length BigInteger"));vTn(this,e)}i(Zhn,"pib");function SLe(e){this.i=e.gc(),this.i>0&&(this.g=this.$i(this.i+(this.i/8|0)+1),e.Oc(this.g))}i(SLe,"pGd");function UIt(e,n,o){this.g=e,this.d=n,this.e=o,this.a=new Pt,Fbn(this),Ir(),zs(this.a,null)}i(UIt,"ogc");function ALe(e,n){n.q=e,e.d=d.Math.max(e.d,n.r),e.b+=n.d+(e.a.c.length==0?0:e.c),Nt(e.a,n)}i(ALe,"Y6c");function efn(e,n){return n<e.b.gc()?y(e.b.Xb(n),9):n==e.b.gc()?e.a:y(Wt(e.e,n-e.b.gc()-1),9)}i(efn,"k7b");function b$(e,n){return qr(),lo(e)?SRe(e,di(n)):_k(e)?wce(e,Xe(n)):Lk(e)?qin(e,Xt(n)):e.Dd(n)}i(b$,"Vdb");function tfn(e){var n,o,u;return e.j==(zt(),sn)&&(n=VFt(e),o=dh(n,bn),u=dh(n,on),u||u&&o)}i(tfn,"dic");function rfn(e){var n,o,u;for(u=0,o=new ye(e.b);o.a<o.c.c.length;)n=y(de(o),25),n.p=u,++u}i(rfn,"O6b");function e3(e,n){var o,u;for(u=ei(e,0);u.b!=u.d.c;)o=y(Qn(u),8),o.a+=n.a,o.b+=n.b;return e}i(e3,"wgd");function Kue(e,n){var o,u,p,g;return p=e.c,o=e.c+e.b,g=e.d,u=e.d+e.a,n.a>p&&n.a<o&&n.b>g&&n.b<u}i(Kue,"ufd");function OX(e,n){var o;Ge(n,92)?(y(e.c,78).Ek(),o=y(n,92),kIt(e,o)):y(e.c,78).Wb(n)}i(OX,"PTd");function v$(e,n){var o,u;for(Ur(n),u=e.vc().Jc();u.Ob();)o=y(u.Pb(),45),n.Wd(o.jd(),o.kd())}i(v$,"Jub");function ns(e,n){nY.call(this,Kir,e,n),this.b=this,this.a=Ou(e.Ah(),Nr(this.e.Ah(),this.c))}i(ns,"ffe");function t3(e){this.f=e,this.e=new fRe(this.f.i),this.a=this.e,this.b=ILe(this),this.d=this.f.g}i(t3,"Fjb");function Jue(e,n,o,u){var p;p=e.a.length,o>p?o=p:un(n,o+1),e.a=Yd(e.a,0,n)+(""+u)+p7e(e.a,o)}i(Jue,"zdb");function VIt(e,n,o,u){Ge(e.Cb,184)&&(y(e.Cb,184).tb=null),wu(e,o),n&&evn(e,n),u&&e.el(!0)}i(VIt,"Syd");function WIt(){WIt=U,cnr=ci((dw(),Se(Ee(lnr,1),At,285,0,[DUe,Ms,jo,X6,Ao,Oa,Y6,d0])))}i(WIt,"mfd");function HIt(){HIt=U,Rir=ci((eR(),Se(Ee(See,1),At,244,0,[Xye,Cee,Eee,kee,Yye,Tee,xee,qye])))}i(HIt,"yEd");function qIt(){qIt=U,QXt=ci((Yr(),Se(Ee(G0e,1),At,249,0,[Ya,bs,ks,iu,_c,u0,tj,MM])))}i(qIt,"dZb");function YIt(){YIt=U,SKt=ci((WK(),Se(Ee(FFe,1),At,275,0,[J0e,eme,K0e,nme,Z0e,Q0e,rme,tme])))}i(YIt,"vjc");function XIt(){return FI(),Se(Ee(xSn,1),At,264,0,[C1e,Dje,Oje,Pje,Nje,_je,Bje,Rje,Mje,Ije,Lje])}i(XIt,"JVc");function RLe(){RLe=U,fer=X0(l5t(Ei(Ei(new us,(eo(),jc),(ho(),FQ)),Lc,MQ),hl),BQ)}i(RLe,"DGc");function KIt(){KIt=U,mer=X0(l5t(Ei(Ei(new us,(eo(),jc),(ho(),FQ)),Lc,MQ),hl),BQ)}i(KIt,"mIc");function nfn(){var e;return T0e||(T0e=new X3t,e=new fue(""),ZZr(e,(X8(),vBe)),Lhn(T0e,e)),T0e}i(nfn,"hAb");function JIt(e){return Nk(),e.A.Gc((vf(),a4))&&!e.B.Gc((Zh(),Qj))?YNt(e):null}i(JIt,"wKb");function QIt(e,n){var o;return o=pIe(rI(),e),o?(pa(n,(Ri(),r4),o),!0):!1}i(QIt,"Zcd");function Pf(e,n){var o;for(o=0;o<n.j.c.length;o++)y(u$(e,o),22).Fc(y(u$(n,o),18));return e}i(Pf,"jcd");function ifn(e,n){var o,u;for(u=new ye(n.b);u.a<u.c.c.length;)o=y(de(u),25),e.a[o.p]=hyn(o)}i(ifn,"R6b");function Qi(e,n){var o,u,p;if(o=e.qh(),o!=null&&e.th())for(u=0,p=o.length;u<p;++u)o[u].bj(n)}i(Qi,"Osd");function afn(e,n,o){return e==(cw(),OZ)?new kmt:Qh(n,1)!=0?new u6e(o.length):new oCt(o.length)}i(afn,"oGc");function sfn(e,n,o){return ha(A5(H7(e),new Lt(n.e.a,n.e.b)),A5(H7(e),new Lt(o.e.a,o.e.b)))}i(sfn,"aUc");function iw(e,n,o){var u,p;return p=y(M9(e.d,n),15),u=y(M9(e.b,o),15),!p||!u?null:q5(e,p.a,u.a)}i(iw,"Yi");function hv(e){var n;return n=e.h,n==0?e.l+e.m*v6:n==q1?e.l+e.m*v6-mw:e}i(hv,"Pcb");function ofn(e){var n;if(e.a==e.b.a)throw xe(new Hl);return n=e.a,e.c=n,e.a=y(qd(e.a.e),227),n}i(ofn,"Ps");function ZIt(e){var n;e.d==null?(++e.e,e.f=0,fNt(null)):(++e.e,n=e.d,e.d=null,e.f=0,fNt(n))}i(ZIt,"iMd");function lfn(e,n){var o,u;for(u=new ye(n);u.a<u.c.c.length;)o=y(de(u),70),Nt(e.d,o),fyn(e,o)}i(lfn,"fhc");function A7(e,n){var o,u;for(o=e,u=Zs(o).e;u;){if(o=u,o==n)return!0;u=Zs(o).e}return!1}i(A7,"UXb");function cfn(e,n,o){var u,p;return u=e.a.f[n.p],p=e.a.f[o.p],u<p?-1:u==p?0:1}i(cfn,"dEc");function r3(e){return e<3?(Of(e,oUt),e+1):e<qI?Po(d.Math.ceil(e/.75)):Ui}i(r3,"Jv");function vc(e){return xG<e&&e<mw?e<0?d.Math.ceil(e):d.Math.floor(e):hv(swn(e))}i(vc,"Scb");function eMt(e,n){e.a=Ho(e.a,1),e.c=d.Math.min(e.c,n),e.b=d.Math.max(e.b,n),e.d=Ho(e.d,n)}i(eMt,"ssb");function ufn(e,n){var o;n.Tg("Edge and layer constraint edge reversal",1),o=Mxn(e),dCn(o),n.Ug()}i(ufn,"q0b");function hfn(e,n){var o,u;for(u=new Sn(e);u.e!=u.i.gc();)o=y(_n(u),26),ld(o,o.i+n.b,o.j+n.d)}i(hfn,"X2c");function tMt(e,n){e.c&&(IGt(e,n,!0),ts(new Er(null,new Rr(n,16)),new XTt(e))),IGt(e,n,!1)}i(tMt,"HFc");function cc(e,n){var o,u;return o=(u=new ZSe,u),o.G=n,!e.rb&&(e.rb=new Gk(e,Rg,e)),Zn(e.rb,o),o}i(cc,"Fyd");function zi(e,n){var o,u;return o=(u=new $H,u),o.G=n,!e.rb&&(e.rb=new Gk(e,Rg,e)),Zn(e.rb,o),o}i(zi,"Gyd");function an(e,n){var o;return(e.Db&n)!=0?(o=rfe(e,n),o==-1?e.Eb:K5(e.Eb)[o]):null}i(an,"uud");function PX(e){var n;if(e.g>1||e.Ob())return++e.a,e.g=0,n=e.i,e.Ob(),n;throw xe(new Hl)}i(PX,"x1d");function ffn(e){C5t();var n;return REt(k1e,e)||(n=new $mt,n.a=e,r8e(k1e,e,n)),y(yl(k1e,e),636)}i(ffn,"tOc");function rMt(e){switch(e.a.g){case 1:return new PSt;case 3:return new fPt;default:return new Lwt}}i(rMt,"pOc");function LLe(e,n){switch(n){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Z7e(e,n)}i(LLe,"Dvd");function w$(e){var n;return e<128?(h8t(),n=eBe[e],!n&&(n=eBe[e]=new d5e(e)),n):new d5e(e)}i(w$,"reb");function dfn(e){var n,o,u;for(n=1,u=e.Jc();u.Ob();)o=u.Pb(),n=31*n+(o==null?0:Aa(o)),n=~~n;return n}i(dfn,"Su");function x$(e){var n,o,u;for(u=0,o=new v5(e.a);o.a<o.c.a.length;)n=J9(o),e.b.Gc(n)&&++u;return u}i(x$,"_x");function Xd(e){var n,o,u,p;return p=e,u=0,p<0&&(p+=mw,u=q1),o=Po(p/v6),n=Po(p-o*v6),Mu(n,o,u)}i(Xd,"edb");function nMt(e,n){var o;return o=e.a.get(n),o===void 0?++e.d:(Ltn(e.a,n),--e.c,++e.b.g),o}i(nMt,"Usb");function wc(e,n){var o;return n&&(o=n.lf(),o.dc()||(e.q?sI(e.q,o):e.q=new YSt(o))),e}i(wc,"mNb");function pfn(e,n){var o,u,p;return o=n.p-e.p,o==0?(u=e.f.a*e.f.b,p=n.f.a*n.f.b,ha(u,p)):o}i(pfn,"GVb");function gfn(e,n){var o;try{n.be()}catch(u){if(u=hs(u),Ge(u,80))o=u,tn(e.c,o);else throw xe(u)}}i(gfn,"gBb");function mfn(e){return e.b.c.length!=0&&y(Wt(e.b,0),70).a?y(Wt(e.b,0),70).a:jce(e)}i(mfn,"wWb");function iMt(){this.a=y(Vt((Vp(),CQ)),15).a,this.c=He(Xe(Vt(EQ))),this.b=He(Xe(Vt(L0e)))}i(iMt,"XNb");function R7(e,n){this.b=e,this.e=n,this.d=n.j,this.f=(tl(),y(e,69).vk()),this.k=Ou(n.e.Ah(),e)}i(R7,"age");function aw(e,n,o){this.b=(Ur(e),e),this.d=(Ur(n),n),this.e=(Ur(o),o),this.c=this.d+(""+this.e)}i(aw,"Qxb");function _Le(e,n,o,u,p){BMt.call(this,e,o,u,p),this.f=tt(e1,Zy,9,n.a.c.length,0,1),Zg(n.a,this.f)}i(_Le,"xlc");function oI(e,n,o,u,p){as(e.c[n.g],o.g,u),as(e.c[o.g],n.g,u),as(e.b[n.g],o.g,p),as(e.b[o.g],n.g,p)}i(oI,"UAc");function yfn(e,n){var o,u;return o=e.j,u=n.j,o!=u?o.g-u.g:e.p==n.p?0:o==(zt(),sn)?e.p-n.p:n.p-e.p}i(yfn,"D9b");function DLe(e){var n;return n=y(oe(e,(Tt(),gc)),64),e.k==(Yr(),ks)&&(n==(zt(),on)||n==bn)}i(DLe,"ZOc");function aMt(){aMt=U,Jnr=ci((d3(),Se(Ee(fl,1),At,96,0,[Jp,ty,Qp,eg,i1,ap,Vf,Zp,ip])))}i(aMt,"uld");function sMt(){sMt=U,lir=ci((Zh(),Se(Ee(WVe,1),At,266,0,[EL,Qj,gee,NN,mee,bee,yee,zye,Jj])))}i(sMt,"Cnd");function oMt(){oMt=U,DKt=ci((Z$(),Se(Ee(qFe,1),At,267,0,[lme,HFe,ume,hme,cme,fme,sj,ome,sme])))}i(oMt,"Eoc");function lMt(){lMt=U,PZt=ci((tG(),Se(Ee(tje,1),At,268,0,[s1e,QGe,ZGe,i1e,JGe,eje,LZ,n1e,a1e])))}i(lMt,"Yyc");function BX(){BX=U,dje=new lle("EQUALLY",0),y1e=new lle("NORTH",1),pje=new lle("NORTH_SOUTH",2)}i(BX,"zAc");function L7(){L7=U,xme=new ile("ONE_SIDED",0),Tme=new ile("TWO_SIDED",1),oj=new ile("OFF",2)}i(L7,"eqc");function FX(){FX=U,X1e=new yle(wg,0),_ze=new yle("POLAR_COORDINATE",1),Lze=new yle("ID",2)}i(FX,"c2c");function jp(){jp=U,O3=new mq(vR,0),YR=new mq(w6,1),XR=new mq(x6,2),Y0e=new mq("TOP",3)}i(jp,"phc");function zx(){zx=U,QG=new hq("UP",0),JG=new hq(tpe,1),S0e=new hq(w6,2),A0e=new hq(x6,3)}i(zx,"RLb");function _7(){_7=U,_M=new Da("debugSVG",(qr(),!1)),EBe=new Da("overlapsExisted",!0)}i(_7,"qMb");function $X(){$X=U,T1e=new dle("OFF",0),dL=new dle("SINGLE_EDGE",1),X3=new dle("MULTI_EDGE",2)}i($X,"sBc");function T$(){T$=U,iee=new eAe("MINIMUM_SPANNING_TREE",0),RUe=new eAe("MAXIMUM_SPANNING_TREE",1)}i(T$,"gad");function cMt(e){e.r=new gs,e.w=new gs,e.t=new Pt,e.i=new Pt,e.d=new gs,e.a=new S5,e.c=new jn}i(cMt,"aSc");function k$(e){this.n=new Pt,this.e=new ya,this.j=new ya,this.k=new Pt,this.f=new Pt,this.p=e}i(k$,"DPc");function uMt(e){switch(e.g){case 0:return new Ayt;case 1:return new Ryt;default:return null}}i(uMt,"y6c");function bfn(){return eX(),c0?new fue(null):jFt(nfn(),"com.google.common.base.Strings")}i(bfn,"xAb");function vfn(e){var n;if(e){if(n=e,n.dc())throw xe(new Hl);return n.Xb(n.gc()-1)}return QRt(e.Jc())}i(vfn,"_q");function Que(e){var n;return(!e.a||(e.Bb&1)==0&&e.a.Sh())&&(n=Qd(e),Ge(n,159)&&(e.a=y(n,159))),e.a}i(Que,"vVd");function wfn(e,n,o){var u,p,g,w;return g=null,w=n,p=Bx(w,Mge),u=new wSt(e,o),g=(PPt(u.a,u.b,p),p),g}i(wfn,"hCd");function C$(e,n){var o,u;return u=(o=new aoe,o),wu(u,n),Zn((!e.A&&(e.A=new fh(Gu,e,7)),e.A),u),u}i(C$,"Ayd");function Zue(e,n,o,u){return o==1?(!e.n&&(e.n=new xt(nc,e,1,7)),qo(e.n,n,u)):KDe(e,n,o,u)}i(Zue,"Cvd");function xfn(e,n,o,u){y(o.b,68),y(o.b,68),y(u.b,68),y(u.b,68),y(u.b,68),Zc(u.a,new C8e(e,n,u))}i(xfn,"Mad");function Tfn(e,n){e.d==(Ss(),Il)||e.d==Ed?y(n.a,60).c.Ec(y(n.b,60)):y(n.b,60).c.Ec(y(n.a,60))}i(Tfn,"eFb");function GX(e,n,o){var u,p,g,w;w=Zs(e),u=w.d,p=w.c,g=e.n,n&&(g.a=g.a-u.b-p.a),o&&(g.b=g.b-u.d-p.b)}i(GX,"zYb");function kfn(e,n,o){var u,p;p=y(oe(e,(Bt(),Dl)),79),p&&(u=new Vh,phe(u,0,p),e3(u,o),Fo(n,u))}i(kfn,"PVb");function Is(e,n){var o,u;return o=n.Nc(),u=o.length,u==0?!1:(I8e(e.c,e.c.length,o),!0)}i(Is,"bmb");function E$(e,n){var o,u;for(Ur(n),u=n.Jc();u.Ob();)if(o=u.Pb(),!e.Gc(o))return!1;return!0}i(E$,"Ae");function hMt(e,n){if(n==null)return!1;for(;e.a!=e.b;)if(ta(n,HX(e)))return!0;return!1}i(hMt,"ulb");function ILe(e){return e.a.Ob()?!0:e.a!=e.e?!1:(e.a=new ORe(e.f.f),e.a.Ob())}i(ILe,"Cjb");function hs(e){var n;return Ge(e,80)?e:(n=e&&e.__java$exception,n||(n=new ZMt(e),V3t(n)),n)}i(hs,"Kcb");function ehe(e){if(Ge(e,193))return y(e,125);if(e)return null;throw xe(new y5(rHt))}i(ehe,"UEd");function Cfn(e){switch(y(oe(e,(Bt(),tc)),165).g){case 2:case 4:return!0;default:return!1}}i(Cfn,"a8b");function Efn(e,n){var o,u;return o=e.c,u=n.e[e.p],u<o.a.c.length-1?y(Wt(o.a,u+1),9):null}i(Efn,"ZMc");function Sfn(e){var n,o;for(Wkn(e),o=new ye(e.d);o.a<o.c.c.length;)n=y(de(o),107),n.i&&jyn(n)}i(Sfn,"Yjc");function fMt(e,n){var o,u;for(u=new ye(e.b);u.a<u.c.c.length;)o=y(de(u),70),dt(o,(Tt(),$6),n)}i(fMt,"D7b");function Afn(e,n,o){var u,p;for(p=new ye(e.b);p.a<p.c.c.length;)u=y(de(p),26),ld(u,u.i+n,u.j+o)}i(Afn,"H6c");function the(e){var n,o,u;for(n=new ya,u=ei(e.d,0);u.b!=u.d.c;)o=y(Qn(u),65),_i(n,o.c);return n}i(the,"JTc");function MLe(e){var n,o,u,p;for(n=1,o=0,p=e.gc();o<p;++o)u=e.Ti(o),n=31*n+(u==null?0:Aa(u));return n}i(MLe,"tFd");function dMt(e){var n,o;return o=(n=new aoe,n),wu(o,"T"),Zn((!e.d&&(e.d=new fh(Gu,e,11)),e.d),o),o}i(dMt,"Byd");function pMt(e,n){var o;return o=Pm(n.a.gc()),ts(yX(new Er(null,new Rr(n,1)),e.i),new dSt(e,o)),o}i(pMt,"Pbd");function gMt(e,n,o,u){var p;return ZF(n,e.e.Pd().gc()),ZF(o,e.c.Pd().gc()),p=e.a[n][o],as(e.a[n],o,u),p}i(gMt,"aj");function Se(e,n,o,u,p){return p.Pm=e,p.Qm=n,p.Rm=te,p.__elementTypeId$=o,p.__elementTypeCategory$=u,p}i(Se,"WC");function Rfn(e,n){var o,u,p;return o=e.l+n.l,u=e.m+n.m+(o>>22),p=e.h+n.h+(u>>22),Mu(o&ef,u&ef,p&q1)}i(Rfn,"kD");function mMt(e,n){var o,u,p;return o=e.l-n.l,u=e.m-n.m+(o>>22),p=e.h-n.h+(u>>22),Mu(o&ef,u&ef,p&q1)}i(mMt,"vD");function Lfn(e){var n;Jy(e,!0),n=Qy,ea(e,(Bt(),lL))&&(n+=y(oe(e,lL),15).a),dt(e,lL,Et(n))}i(Lfn,"Y9b");function rhe(e){var n,o,u,p;for(p=new Pt,u=e.Jc();u.Ob();)o=y(u.Pb(),26),n=p3(o),Is(p,n);return p}i(rhe,"w_c");function yMt(e,n,o){var u;Sc(e.a),Zc(o.i,new zkt(e)),u=new $q(y(Jr(e.a,n.b),68)),gOt(e,u,n),o.f=u}i(yMt,"wad");function bMt(e,n){return!e||!n||e==n?!1:cOt(e.d.c,n.d.c+n.d.b)&&cOt(n.d.c,e.d.c+e.d.b)}i(bMt,"wFb");function _fn(e,n,o,u,p){return nR(),d.Math.min(nzt(e,n,o,u,p),nzt(o,u,e,n,Xq(new Lt(p.a,p.b))))}i(_fn,"wfd");function vMt(e,n){if(!e)throw xe(new rn(BI("value already present: %s",Se(Ee(Fs,1),Fr,1,5,[n]))))}i(vMt,"Nb");function NLe(e){var n,o;return o=(Kb(),n=new SH,n),e&&Zn((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a),o),o}i(NLe,"XEd");function Q5(e,n){var o,u;if(u=0,e<64&&e<=n)for(n=n<64?n:63,o=e;o<=n;o++)u=H0(u,$m(1,o));return u}i(Q5,"KQd");function Dfn(e,n){var o,u;for(OY(n,"predicate"),u=0;e.Ob();u++)if(o=e.Pb(),n.Lb(o))return u;return-1}i(Dfn,"Ar");function OLe(e,n){if(n===0){!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),e.o.c.$b();return}Cfe(e,n)}i(OLe,"avd");function wMt(e){switch(e.g){case 1:return Vv;case 2:return n1;case 3:return Vj;default:return Wj}}i(wMt,"_kd");function PLe(e){Ir();var n,o,u;for(u=0,o=e.Jc();o.Ob();)n=o.Pb(),u=u+(n!=null?Aa(n):0),u=u|0;return u}i(PLe,"Lnb");function Ifn(e){var n;return n=new re,n.a=e,n.b=Ffn(e),n.c=tt(Zt,Dt,2,2,6,1),n.c[0]=NIt(e),n.c[1]=NIt(e),n}i(Ifn,"_A");function jX(){jX=U,q0e=new gq(wg,0),HQ=new gq(dVt,1),qQ=new gq(pVt,2),nj=new gq("BOTH",3)}i(jX,"j8b");function D7(){D7=U,pT=new dq("Q1",0),I3=new dq("Q4",1),D3=new dq("Q2",2),oE=new dq("Q3",3)}i(D7,"TSb");function fv(){fv=U,lj=new ale("ONLY_WITHIN_GROUP",0),u$e=new ale(ope,1),B3=new ale("ENFORCED",2)}i(fv,"nqc");function sw(){sw=U,dme=new nle(wg,0),ZR=new nle("INCOMING_ONLY",1),fE=new nle("OUTGOING_ONLY",2)}i(sw,"Qoc");function Z5(){Z5=U,new ia("org.eclipse.elk.addLayoutConfig"),rnr=new Oyt,tnr=new Pyt,nnr=new Nyt}i(Z5,"cbd");function nhe(){nhe=U,f0e={boolean:YQr,number:sQr,string:oQr,object:eFt,function:eFt,undefined:$Jr}}i(nhe,"zC");function xMt(){xMt=U,GZt=ci((Tv(),Se(Ee(cje,1),At,243,0,[IZ,wj,xj,sje,oje,aje,lje,MZ,fL,tN])))}i(xMt,"Wzc");function TMt(){TMt=U,$Kt=ci((ol(),Se(Ee(wme,1),At,261,0,[nZ,Cd,FM,iZ,rL,dE,$M,eL,tL,aZ])))}i(TMt,"aqc");function Mfn(e,n,o,u){return new L6e(Se(Ee(Cw,1),sJ,45,0,[(Jhe(e,n),new xx(e,n)),(Jhe(o,u),new xx(o,u))]))}i(Mfn,"sn");function Nfn(e,n){var o,u;return o=y(y(Jr(e.g,n.a),49).a,68),u=y(y(Jr(e.g,n.b),49).a,68),cjt(o,u)}i(Nfn,"I7c");function BLe(e,n,o){var u;if(u=e.gc(),n>u)throw xe(new Pk(n,u));return e.Qi()&&(o=NRt(e,o)),e.Ci(n,o)}i(BLe,"mFd");function kMt(e){var n,o,u;return o=e.n,u=e.o,n=e.d,new Op(o.a-n.b,o.b-n.d,u.a+(n.b+n.c),u.b+(n.d+n.a))}i(kMt,"L1b");function Ofn(e,n){return!e||!n||e==n?!1:Vx(e.b.c,n.b.c+n.b.b)<0&&Vx(n.b.c,e.b.c+e.b.b)<0}i(Ofn,"wMb");function ihe(e,n,o){return e>=128?!1:e<64?k9(co($m(1,e),o),0):k9(co($m(1,e-64),n),0)}i(ihe,"MQd");function S$(e,n,o){switch(o.g){case 2:e.b=n;break;case 1:e.c=n;break;case 4:e.d=n;break;case 3:e.a=n}}i(S$,"tFb");function CMt(e,n){for(;e.g==null&&!e.c?U7e(e):e.g==null||e.i!=0&&y(e.g[e.i-1],50).Ob();)n.Bi(OK(e))}i(CMt,"ste");function A$(e,n,o){return o==null?(!e.q&&(e.q=new jn),H5(e.q,n)):(!e.q&&(e.q=new jn),Oi(e.q,n,o)),e}i(A$,"qNb");function dt(e,n,o){return o==null?(!e.q&&(e.q=new jn),H5(e.q,n)):(!e.q&&(e.q=new jn),Oi(e.q,n,o)),e}i(dt,"rNb");function EMt(e){var n,o;return o=new rX,wc(o,e),dt(o,(uv(),I6),e),n=new jn,_kn(e,o,n),oCn(e,o,n),o}i(EMt,"bNb");function Pfn(e){nR();var n,o,u;for(o=tt(to,Dt,8,2,0,1),u=0,n=0;n<2;n++)u+=.5,o[n]=g0n(u,e);return o}i(Pfn,"rfd");function SMt(e,n){var o,u,p,g;for(o=!1,u=e.a[n].length,g=0;g<u-1;g++)p=g+1,o=o|Ypn(e,n,g,p);return o}i(SMt,"Bgc");function Bfn(e){var n,o,u,p;for(o=e.a,u=0,p=o.length;u<p;++u)n=o[u],DMt(e,n,(zt(),Fn)),DMt(e,n,sn)}i(Bfn,"Pgc");function I7(e){var n,o,u;return n=~e.l+1&ef,o=~e.m+(n==0?1:0)&ef,u=~e.h+(n==0&&o==0?1:0)&q1,Mu(n,o,u)}i(I7,"pD");function AMt(e){var n,o;return n=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,o=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,n||o}i(AMt,"wEc");function FLe(e){var n;return(!e.c||(e.Bb&1)==0&&(e.c.Db&64)!=0)&&(n=Qd(e),Ge(n,88)&&(e.c=y(n,29))),e.c}i(FLe,"l4d");function $Le(e){var n;if(e<0)return bo;if(e==0)return 0;for(n=qI;(n&e)==0;n>>=1);return n}i($Le,"wfb");function Ffn(e){var n;return e==0?"Etc/GMT":(e<0?(e=-e,n="Etc/GMT-"):n="Etc/GMT+",n+m9t(e))}i(Ffn,"ZA");function RMt(e){var n,o;return o=J$(e.h),o==32?(n=J$(e.m),n==32?J$(e.l)+32:n+20-10):o-12}i(RMt,"gD");function lI(e){var n;return n=e.a[e.b],n==null?null:(as(e.a,e.b,null),e.b=e.b+1&e.a.length-1,n)}i(lI,"ylb");function GLe(){++ZEn,this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}i(GLe,"zeb");function jLe(e,n){this.c=e,this.d=n,this.b=this.d/this.c.c.Pd().gc()|0,this.a=this.d%this.c.c.Pd().gc()}i(jLe,"nj");function LMt(e,n){this.b=e,pC.call(this,(y(je(wt((rv(),Xr).o),10),19),n.i),n.g),this.a=(que(),Zye)}i(LMt,"cZd");function zLe(e,n,o){this.q=new d.Date,this.q.setFullYear(e+Ev,n,o),this.q.setHours(0,0,0,0),GI(this,0)}i(zLe,"nB");function _Mt(e,n,o){var u,p;return u=new Tue(n,o),p=new lt,e.b=H$t(e,e.b,u,p),p.b||++e.c,e.b.b=!1,p.d}i(_Mt,"byb");function ULe(e,n){Ir();var o,u,p,g,w;for(w=!1,u=n,p=0,g=u.length;p<g;++p)o=u[p],w=w|e.Ec(o);return w}i(ULe,"Jnb");function $fn(e,n,o,u,p){var g,w;if(w=e.length,g=o.length,n<0||u<0||p<0||n+p>w||u+p>g)throw xe(new M5e)}i($fn,"shb");function DMt(e,n,o){var u,p,g,w;for(w=pI(n,o),g=0,p=w.Jc();p.Ob();)u=y(p.Pb(),12),Oi(e.c,u,Et(g++))}i(DMt,"Ugc");function dv(e){var n,o;for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),82),n.g.c=-n.g.c-n.g.b;GK(e)}i(dv,"dSb");function pv(e){var n,o;for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),60),n.d.c=-n.d.c-n.d.b;K9e(e)}i(pv,"fFb");function Gfn(e){var n,o,u;return n=y(e.e&&e.e(),10),u=(o=n.slice(),y(Cue(o,n),10)),new ud(n,u,n.length)}i(Gfn,"Erb");function ahe(e){var n,o,u;n=~e.l+1&ef,o=~e.m+(n==0?1:0)&ef,u=~e.h+(n==0&&o==0?1:0)&q1,e.l=n,e.m=o,e.h=u}i(ahe,"fD");function Ql(e){var n,o,u,p,g;for(n=new xo,u=e,p=0,g=u.length;p<g;++p)o=u[p],n.a+=o.a,n.b+=o.b;return n}i(Ql,"rgd");function she(e,n,o){var u,p,g,w;return g=null,w=n,p=Bx(w,"labels"),u=new _St(e,o),g=(t$t(u.a,u.b,p),p),g}i(she,"mCd");function IMt(e,n,o){var u;return u=new Pt,eIe(e,n,u,(zt(),bn),!0,!1),eIe(e,o,u,on,!1,!1),u}i(IMt,"_Ic");function jfn(e,n,o,u){var p;return p=G9e(e,n,o,u),!p&&(p=Udn(e,o,u),p&&!qC(e,n,p))?null:p}i(jfn,"Wce");function zfn(e,n,o,u){var p;return p=j9e(e,n,o,u),!p&&(p=whe(e,o,u),p&&!qC(e,n,p))?null:p}i(zfn,"Zce");function MMt(e,n){var o;for(o=0;o<e.a.a.length;o++)if(!y(g8t(e.a,o),178).Lb(n))return!1;return!0}i(MMt,"Xb");function Ufn(e,n,o){if(oi(n),o.Ob())for(sAe(n,g7t(o.Pb()));o.Ob();)sAe(n,e.a),sAe(n,g7t(o.Pb()));return n}i(Ufn,"Cb");function VLe(e){Ir();var n,o,u;for(u=1,o=e.Jc();o.Ob();)n=o.Pb(),u=31*u+(n!=null?Aa(n):0),u=u|0;return u}i(VLe,"Mnb");function Vfn(e,n,o,u,p){var g;return g=M9e(e,n),o&&ahe(g),p&&(e=x0n(e,n),u?_v=I7(e):_v=Mu(e.l,e.m,e.h)),g}i(Vfn,"cD");function j1(e){var n;return iv(e),n=new ut,e.a.zd(n)?(Q8(),new Doe(Ur(n.a))):(Q8(),Q8(),mBe)}i(j1,"WBb");function ow(e){var n,o;for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),82),n.f.$b();tQr(e.b,e),M$t(e)}i(ow,"YRb");function Wfn(e,n){switch(n.g){case 0:Ge(e.b,632)||(e.b=new iMt);break;case 1:Ge(e.b,633)||(e.b=new UAt)}}i(Wfn,"jNb");function WLe(e,n){switch(n){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return I_e(e,n)}i(WLe,"rwd");function NMt(e,n,o){e.g=Efe(e,n,(zt(),bn),e.b),e.d=Efe(e,o,bn,e.b),!(e.g.c==0||e.d.c==0)&&yBt(e)}i(NMt,"_fc");function OMt(e,n,o){e.g=Efe(e,n,(zt(),on),e.j),e.d=Efe(e,o,on,e.j),!(e.g.c==0||e.d.c==0)&&yBt(e)}i(OMt,"agc");function PMt(e,n){return A5(H7(y(oe(n,(uc(),CT)),86)),new Lt(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}i(PMt,"XSc");function Hfn(e,n,o){return!W8(Hi(new Er(null,new Rr(e.c,16)),new B8(new gSt(n,o)))).zd((z2(),L6))}i(Hfn,"Ayc");function ohe(e,n,o){this.g=e,this.e=new xo,this.f=new xo,this.d=new ya,this.b=new ya,this.a=n,this.c=o}i(ohe,"MTc");function lhe(e,n,o,u){this.b=new Pt,this.n=new Pt,this.i=u,this.j=o,this.s=e,this.t=n,this.r=0,this.d=0}i(lhe,"R6c");function BMt(e,n,o,u){this.b=new jn,this.g=new jn,this.d=(fI(),_Z),this.c=e,this.e=n,this.d=o,this.a=u}i(BMt,"ylc");function HLe(e,n,o){if(n===0){!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),OX(e.o,o);return}Afe(e,n,o)}i(HLe,"_ud");function FMt(e){if(e.g===0)return new Myt;throw xe(new rn(UJ+(e.f!=null?e.f:""+e.g)))}i(FMt,"p8c");function $Mt(e){if(e.g===0)return new Iyt;throw xe(new rn(UJ+(e.f!=null?e.f:""+e.g)))}i($Mt,"Y9c");function M7(){M7=U,PFe=new lgt,BFe=new cgt,fKt=new sgt,hKt=new ugt,uKt=new ogt,OFe=(Ur(uKt),new we)}i(M7,"sac");function cI(){cI=U,Fje=new gle(wg,0),E1e=new gle("MIDDLE_TO_MIDDLE",1),Ej=new gle("AVOID_OVERLAP",2)}i(cI,"uWc");function qLe(e){var n,o,u;for(n=new Vh,u=ei(e,0);u.b!=u.d.c;)o=y(Qn(u),8),e7(n,0,new Vo(o));return n}i(qLe,"Cgd");function Vy(e){var n,o;for(n=0,o=0;o<e.length;o++)n=(n<<5)-n+(un(o,e.length),e.charCodeAt(o))|0;return n}i(Vy,"ygb");function qfn(e){var n,o;n=y(oe(e,(Tt(),Ih)),9),n&&(o=n.c,Yu(o.a,n),o.a.c.length==0&&Yu(Zs(n).b,o))}i(qfn,"g0b");function GMt(e){return c0?tt(uYt,kUt,567,0,0,1):y(Zg(e.a,tt(uYt,kUt,567,e.a.c.length,0,1)),841)}i(GMt,"sAb");function YLe(e){var n;return e.b<=0?!1:(n=U0("MLydhHmsSDkK",Ku(Do(e.c,0))),n>1||n>=0&&e.b<3)}i(YLe,"vA");function Yfn(){Xi();var e;return abe||(e=Ven(kv("M",!0)),e=pY(kv("M",!1),e),abe=e,abe)}i(Yfn,"sre");function XLe(e){switch(e.g){case 1:return PVt;default:case 2:return 0;case 3:return BVt;case 4:return fOe}}i(XLe,"kSc");function N7(e,n){if(!e.Ji()&&n==null)throw xe(new rn("The 'no null' constraint is violated"));return n}i(N7,"xFd");function jMt(e,n){FF(e>=0,"Negative initial capacity"),FF(n>=0,"Non-positive load factor"),Sc(this)}i(jMt,"mjb");function zMt(e,n){var o,u,p;for(p=e.b;p;){if(o=e.a.Le(n,p.d),o==0)return p;u=o<0?0:1,p=p.a[u]}return null}i(zMt,"Txb");function che(e,n){var o;return n===e?!0:Ge(n,229)?(o=y(n,229),ta(e.Zb(),o.Zb())):!1}i(che,"ow");function KLe(e,n){return _$t(e,n)?(Sr(e.b,y(oe(n,(Tt(),J1)),22),n),_i(e.a,n),!0):!1}i(KLe,"uVb");function Xfn(e,n){return ea(e,(Tt(),Ea))&&ea(n,Ea)?y(oe(n,Ea),15).a-y(oe(e,Ea),15).a:0}i(Xfn,"Y8b");function Kfn(e,n){return ea(e,(Tt(),Ea))&&ea(n,Ea)?y(oe(e,Ea),15).a-y(oe(n,Ea),15).a:0}i(Kfn,"b9b");function Jfn(e,n){var o,u;return o=y(St(e,(n0(),_j)),15).a,u=y(St(n,_j),15).a,o==u||o<u?-1:o>u?1:0}i(Jfn,"_2c");function Qfn(e){return Nt(e.c,(Z5(),rnr)),ZRe(e.a,He(Xe(Vt((Dhe(),RZ)))))?new Tbt:new Ykt(e)}i(Qfn,"xyc");function Zfn(e){for(;!e.d||!e.d.Ob();)if(e.b&&!e9(e.b))e.d=y(F5(e.b),50);else return null;return e.d}i(Zfn,"Vr");function UMt(e,n,o){return e.d[n.p][o.p]||(Xgn(e,n,o),e.d[n.p][o.p]=!0,e.d[o.p][n.p]=!0),e.a[n.p][o.p]}i(UMt,"wgc");function NC(e,n,o){var u,p;return p=(u=new Soe,u),bl(p,n,o),Zn((!e.q&&(e.q=new xt(lp,e,11,10)),e.q),p),p}i(NC,"xyd");function uhe(e){var n,o,u,p;for(p=uZr(Cir,e),o=p.length,u=tt(Zt,Dt,2,o,6,1),n=0;n<o;++n)u[n]=p[n];return u}i(uhe,"Txd");function e6(e,n){var o,u,p,g,w;for(u=n,p=0,g=u.length;p<g;++p)o=u[p],w=new d7t(e),o.tf(w),zkn(w);Sc(e.f)}i(e6,"tdd");function JLe(e,n){var o;n*2+1>=e.b.c.length||(JLe(e,2*n+1),o=2*n+2,o<e.b.c.length&&JLe(e,o),nFt(e,n))}i(JLe,"qvb");function edn(e,n){var o,u;for(u=ei(e,0);u.b!=u.d.c;)o=y(Qn(u),218),o.e.length>0&&(n.Ad(o),o.i&&Agn(o))}i(edn,"MGc");function QLe(e,n,o){var u;for(u=o-1;u>=0&&e[u]===n[u];u--);return u<0?0:Yoe(co(e[u],ll),co(n[u],ll))?-1:1}i(QLe,"Oib");function tdn(e,n){var o;return!e||e==n||!ea(n,(Tt(),bT))?!1:(o=y(oe(n,(Tt(),bT)),9),o!=e)}i(tdn,"eJc");function hhe(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.Yl()}}i(hhe,"Ofe");function VMt(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.Zl()}}i(VMt,"Pfe");function rdn(e,n){var o,u;for(u=e.Zb().Bc().Jc();u.Ob();)if(o=y(u.Pb(),18),o.Gc(n))return!0;return!1}i(rdn,"Dc");function WMt(e,n,o){var u,p,g,w;for(Ur(o),w=!1,g=e.dd(n),p=o.Jc();p.Ob();)u=p.Pb(),g.Rb(u),w=!0;return w}i(WMt,"_t");function HMt(e,n,o){var u,p;this.g=e,this.c=n,this.a=this,this.d=this,p=EIt(o),u=tt(Gqt,bG,227,p,0,1),this.b=u}i(HMt,"_s");function fhe(e,n){var o,u;return u=y(an(e.a,4),129),o=tt(Jye,zge,415,n,0,1),u!=null&&$c(u,0,o,0,u.length),o}i(fhe,"cLd");function qMt(e,n){var o;return o=new Gfe((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,n),e.e!=null||(o.c=e),o}i(qMt,"uQd");function ndn(e,n){var o;return e===n?!0:Ge(n,92)?(o=y(n,92),ZDe(q2(e),o.vc())):!1}i(ndn,"Kv");function YMt(e,n,o){var u,p;for(p=o.Jc();p.Ob();)if(u=y(p.Pb(),45),e.ze(n,u.kd()))return!0;return!1}i(YMt,"djb");function mf(e){return lo(e)?Zt:_k(e)?Ts:Lk(e)?Ja:r7e(e)||X8e(e)?e.Pm:e.Pm||Array.isArray(e)&&Ee(zqt,1)||zqt}i(mf,"rb");function dhe(){dhe=U,O0e=ARt(Se(Ee(SN,1),At,86,0,[(Ss(),Il),Bl])),P0e=ARt(Se(Ee(SN,1),At,86,0,[Ed,p0]))}i(dhe,"rRb");function zX(){zX=U,BVe=new Cx(15),qnr=new To((Ri(),r1),BVe),AN=J6,MVe=bnr,NVe=Pw,PVe=IE,OVe=e4}i(zX,"Gkd");function z1(){z1=U,dee=new Cle(oPe,0),hb=new Cle("INCLUDE_CHILDREN",1),RN=new Cle("SEPARATE_CHILDREN",2)}i(z1,"Qkd");function R$(){R$=U,HZ=new mle(wg,0),hze=new mle("RADIAL_COMPACTION",1),fze=new mle("WEDGE_COMPACTION",2)}i(R$,"R0c");function uI(){uI=U,v1e=new ule("STACKED",0),b1e=new ule("REVERSE_STACKED",1),Tj=new ule("SEQUENCED",2)}i(uI,"IAc");function md(){md=U,wBe=new Koe("CONCURRENT",0),Zu=new Koe("IDENTITY_FINISH",1),xBe=new Koe("UNORDERED",2)}i(md,"FAb");function UX(){UX=U,Wye=new _q("ELK",0),rWe=new _q("JSON",1),tWe=new _q("DOT",2),nWe=new _q("SVG",3)}i(UX,"Vqd");function hI(){hI=U,B1e=new Tq(ope,0),VZ=new Tq(GVt,1),P1e=new Tq("FAN",2),O1e=new Tq("CONSTRAINT",3)}i(hI,"bYc");function O7(){O7=U,w1e=new hle("CONSERVATIVE",0),yje=new hle("CONSERVATIVE_SOFT",1),nN=new hle("SLOPPY",2)}i(O7,"aBc");function phe(e,n,o){var u,p,g;for(u=new ya,g=ei(o,0);g.b!=g.d.c;)p=y(Qn(g),8),_i(u,new Vo(p));WMt(e,n,u)}i(phe,"ugd");function idn(e){var n,o,u;for(n=0,u=tt(to,Dt,8,e.b,0,1),o=ei(e,0);o.b!=o.d.c;)u[n++]=y(Qn(o),8);return u}i(idn,"xgd");function adn(e,n){var o,u;return o=y(e.d.Ac(n),18),o?(u=e.e.hc(),u.Fc(o),e.e.d-=o.gc(),o.$b(),u):null}i(adn,"ke");function ZLe(e,n){var o,u;if(u=e.c[n],u!=0)for(e.c[n]=0,e.d-=u,o=n+1;o<e.a.length;)e.a[o]-=u,o+=o&-o}i(ZLe,"JIc");function e_e(e){var n;if(n=e.a.c.length,n>0)return o7(n-1,e.a.c.length),Gy(e.a,n-1);throw xe(new H3t)}i(e_e,"Kxb");function sdn(e,n,o){if(n<0)throw xe(new yu(aWt+n));n<e.j.c.length?Mf(e.j,n,o):(KLt(e,n),Nt(e.j,o))}i(sdn,"Ibd");function XMt(e,n,o){if(e>n)throw xe(new rn(hJ+e+CUt+n));if(e<0||n>o)throw xe(new i6e(hJ+e+xMe+n+bMe+o))}i(XMt,"GDb");function KMt(e){if(!e.a||(e.a.i&8)==0)throw xe(new El("Enumeration class expected for layout option "+e.f))}i(KMt,"red");function JMt(e){ERt.call(this,"The given string does not match the expected format for individual spacings.",e)}i(JMt,"lfb");function QMt(){ZJr.call(this,new NRe(r3(16))),Of(2,nUt),this.b=2,this.a=new C7e(null,null,0,null),QB(this.a,this.a)}i(QMt,"Bs");function ZMt(e){J4t(),Gq(this),MY(this),this.e=e,j$t(this,e),this.g=e==null?Qu:zl(e),this.a="",this.b=e,this.a=""}i(ZMt,"uz");function P7(e,n){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),Gue(e,n==null?null:(Ur(n),n)),e.C&&e.fl(null)}i(P7,"LVd");function odn(e,n){var o,u;for(o=e.a.length-1,e.c=e.c-1&o;n!=e.c;)u=n+1&o,as(e.a,n,e.a[u]),n=u;as(e.a,e.c,null)}i(odn,"Elb");function ldn(e,n){var o,u;for(o=e.a.length-1;n!=e.b;)u=n-1&o,as(e.a,n,e.a[u]),n=u;as(e.a,e.b,null),e.b=e.b+1&o}i(ldn,"Flb");function t_e(e,n,o){var u,p;return Hk(n,e.c.length),u=o.Nc(),p=u.length,p==0?!1:(I8e(e.c,n,u),!0)}i(t_e,"amb");function r_e(e){var n;return n=(!e.a&&(e.a=new xt(ny,e,9,5)),e.a),n.i!=0?lZr(y(je(n,0),684)):null}i(r_e,"L_d");function cdn(e,n){var o;return o=Ho(e,n),Yoe(nue(e,n),0)|Oq(nue(e,o),0)?o:Ho(yG,nue(Y2(o,63),1))}i(cdn,"Vy");function udn(e,n){var o;o=Vt((Dhe(),RZ))!=null&&n.Rg()!=null?He(Xe(n.Rg()))/He(Xe(Vt(RZ))):1,Oi(e.b,n,o)}i(udn,"yyc");function n3(e){var n;++e.j,e.i==0?e.g=null:e.i<e.g.length&&(n=e.g,e.g=e.$i(e.i),$c(n,0,e.g,0,e.i))}i(n3,"kGd");function OC(e){return(e.c!=e.b.b||e.i!=e.g.b)&&(vk(e.a.c,0),Is(e.a,e.b),Is(e.a,e.g),e.c=e.b.b,e.i=e.g.b),e.a}i(OC,"gGb");function hdn(e){var n,o;if(e==null)return null;for(n=0,o=e.length;n<o;n++)if(!KAt(e[n]))return e[n];return null}i(hdn,"GQd");function eNt(e,n,o){var u,p,g,w;for(p=o,g=0,w=p.length;g<w;++g)if(u=p[g],e.b.ze(n,u.jd()))return u;return null}i(eNt,"wsb");function VX(e){var n,o,u,p,g;for(g=1,o=e,u=0,p=o.length;u<p;++u)n=o[u],g=31*g+(n!=null?Aa(n):0),g=g|0;return g}i(VX,"bnb");function ci(e){var n,o,u,p,g;for(n={},u=e,p=0,g=u.length;p<g;++p)o=u[p],n[":"+(o.f!=null?o.f:""+o.g)]=o;return n}i(ci,"gs");function fdn(e){var n;for(oi(e),b8e(!0,"numberToAdvance must be nonnegative"),n=0;n<0&&Nn(e);n++)vn(e);return n}i(fdn,"pr");function tNt(e){var n,o,u;for(u=0,o=new nn(cn(e.a.Jc(),new B));Nn(o);)n=y(vn(o),17),n.c.i==n.d.i||++u;return u}i(tNt,"YDc");function rNt(e,n){var o,u,p;o=e,p=0;do{if(o==n)return p;if(u=o.e,!u)throw xe(new ZB);o=Zs(u),++p}while(!0)}i(rNt,"tWb");function nNt(e,n){var o,u,p;for(p=n-e.f,u=new ye(e.d);u.a<u.c.c.length;)o=y(de(u),320),nOt(o,o.e,o.f+p);e.f=n}i(nNt,"C7c");function ghe(e,n){return!e||n&&!e.j||Ge(e,127)&&y(e,127).a.b==0?0:e.ff()}i(ghe,"LHb");function WX(e,n){return!e||n&&!e.k||Ge(e,127)&&y(e,127).a.a==0?0:e.gf()}i(WX,"MHb");function Wy(e){switch(e.c){case 0:return hce(),VPe;case 1:return new h5(lFt(new v5(e)));default:return new $4t(e)}}i(Wy,"$p");function iNt(e){switch(e.gc()){case 0:return hce(),VPe;case 1:return new h5(e.Jc().Pb());default:return new _6e(e)}}i(iNt,"_n");function aNt(e,n){var o;for(o=0;o<n.length;o++)if(e==(un(o,n.length),n.charCodeAt(o)))return!0;return!1}i(aNt,"rYb");function ddn(e,n){return n<e.length&&(un(n,e.length),e.charCodeAt(n)!=63)&&(un(n,e.length),e.charCodeAt(n)!=35)}i(ddn,"OQd");function sNt(e,n,o,u){var p,g;e.a=n,g=u?0:1,e.f=(p=new IBt(e.c,e.a,o,g),new fGt(o,e.a,p,e.e,e.b,e.c==(cw(),iN)))}i(sNt,"zgc");function lw(e,n){var o,u,p;u=e.Wk(n,null),p=null,n&&(p=(V8(),o=new vx,o),k7(p,e.r)),u=t0(e,p,u),u&&u.mj()}i(lw,"jUd");function pdn(e,n){var o,u;for(u=Qh(e.d,1)!=0,o=!0;o;)o=!1,o=n.c.kg(n.e,u),o=o|nG(e,n,u,!1),u=!u;TLe(e)}i(pdn,"NGc");function oNt(e,n){var o,u,p,g,w,k,A,D;return A=n.i,D=n.j,u=e.f,p=u.i,g=u.j,w=A-p,k=D-g,o=d.Math.sqrt(w*w+k*k),o}i(oNt,"l0c");function n_e(e,n){var o,u,p;return u=!1,o=n.q.d,n.d<e.b&&(p=Y9e(n.q,e.b),n.q.d>p&&(UPt(n.q,p),u=o!=n.q.d)),u}i(n_e,"H5c");function lNt(e,n){var o;for(o=0;o<n.length;o++)if(e==(un(o,n.length),n.charCodeAt(o)))return!0;return!1}i(lNt,"pgd");function gdn(e){var n,o;for(o=new ye(e.r);o.a<o.c.c.length;)if(n=y(de(o),9),e.n[n.p]<=0)return n;return null}i(gdn,"BEc");function mdn(e){var n;return n=new M9t(e),QF(e.a,qXt,new oc(Se(Ee(ej,1),Fr,377,0,[n]))),n.d&&Nt(n.f,n.d),n.f}i(mdn,"hTb");function i_e(e,n){var o,u;return u=oK(e),u||(!Eir&&(Eir=new zbt),o=(ode(),s$t(n)),u=new P3t(o),Zn(u.Cl(),e)),u}i(i_e,"Lyd");function ydn(e){var n,o;if(e==null)return!1;for(n=0,o=e.length;n<o;n++)if(!KAt(e[n]))return!1;return!0}i(ydn,"UQd");function bdn(e){var n;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw xe(new Hl);return n=e.a,e.a+=e.c.c,++e.b,Et(n)}i(bdn,"bte");function L$(e,n){var o,u;return o=y(e.c.Ac(n),18),o?(u=e.hc(),u.Fc(o),e.d-=o.gc(),o.$b(),e.mc(u)):e.jc()}i(L$,"Sc");function vdn(e,n){oi(e);try{return e.Ac(n)}catch(o){if(o=hs(o),Ge(o,211)||Ge(o,172))return null;throw xe(o)}}i(vdn,"Pv");function i3(e,n){oi(e);try{return e.xc(n)}catch(o){if(o=hs(o),Ge(o,211)||Ge(o,172))return null;throw xe(o)}}i(i3,"Ov");function eu(e,n){var o;return Gl(e)&&Gl(n)&&(o=e-n,!isNaN(o))?o:vDe(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n)}i(eu,"Ocb");function mhe(e,n,o){return d.Math.abs(n-e)<BJ||d.Math.abs(o-e)<BJ?!0:n-e>BJ?e-o>BJ:o-e>BJ}i(mhe,"jSc");function a_e(e){throw nhe(),xe(new z4t("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}i(a_e,"FC");function s_e(){this.a=new Lyt,this.f=new Okt(this),this.b=new Pkt(this),this.i=new Bkt(this),this.e=new Fkt(this)}i(s_e,"L7c");function cw(){cw=U,kj=new wq("BARYCENTER",0),iN=new wq(hVt,1),OZ=new wq(fVt,2),NZ=new wq("MEDIAN",3)}i(cw,"kHc");function fI(){fI=U,o1e=new ole("DUMMY_NODE_OVER",0),rje=new ole("DUMMY_NODE_UNDER",1),_Z=new ole("EQUAL",2)}i(fI,"azc");function B7(){B7=U,zj=new Eq(oPe,0),fee=new Eq("CONTAINER",1),kVe=new Eq("PARENT",2),CVe=new Eq("ROOT",3)}i(B7,"Qjd");function wdn(e,n,o){var u;u=new DFt(e,n),Sr(e.r,n.$f(),u),o&&!$9(e.u)&&(u.c=new kRt(e.d),Zc(n.Pf(),new Wxt(u)))}i(wdn,"MKb");function yhe(e){var n;return n=new mAe(e.a),wc(n,e),dt(n,(Tt(),aa),e),n.o.a=e.g,n.o.b=e.f,n.n.a=e.i,n.n.b=e.j,n}i(yhe,"V$b");function HX(e){var n;return In(e.a!=e.b),n=e.d.a[e.a],y6t(e.b==e.d.c&&n!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,n}i(HX,"Slb");function cNt(e){var n;if(e.c!=0)return e.c;for(n=0;n<e.a.length;n++)e.c=e.c*33+(e.a[n]&-1);return e.c=e.c*e.e,e.c}i(cNt,"dib");function xdn(e){var n,o,u,p;for(p=new gs,u=new ye(e);u.a<u.c.c.length;)o=y(de(u),26),n=hxn(o),Fo(p,n);return p}i(xdn,"v_c");function Tdn(e,n,o){var u,p;for(p=n.a.a.ec().Jc();p.Ob();)if(u=y(p.Pb(),60),aRt(e,u,o))return!0;return!1}i(Tdn,"cFb");function kdn(e,n,o,u){var p,g;for(g=e.Jc();g.Ob();)p=y(g.Pb(),70),p.n.a=n.a+(u.a-p.o.a)/2,p.n.b=n.b,n.b+=p.o.b+o}i(kdn,"F6b");function o_e(e,n,o){var u,p;return p=e.a,e.a=n,(e.Db&4)!=0&&(e.Db&1)==0&&(u=new Qs(e,1,1,p,n),o?o.lj(u):o=u),o}i(o_e,"Nxd");function gv(e,n){var o,u,p,g;return g=(p=e?oK(e):null,ZBt((u=n,p&&p.El(),u))),g==n&&(o=oK(e),o&&o.El()),g}i(gv,"rtd");function uNt(e,n,o){var u,p;return p=e.b,e.b=n,(e.Db&4)!=0&&(e.Db&1)==0&&(u=new Qs(e,1,3,p,n),o?o.lj(u):o=u),o}i(uNt,"r0d");function hNt(e,n,o){var u,p;return p=e.f,e.f=n,(e.Db&4)!=0&&(e.Db&1)==0&&(u=new Qs(e,1,0,p,n),o?o.lj(u):o=u),o}i(hNt,"t0d");function l_e(e,n){var o,u,p;for(p=1,o=e,u=n>=0?n:-n;u>0;)u%2==0?(o*=o,u=u/2|0):(p*=o,u-=1);return n<0?1/p:p}i(l_e,"Dfd");function Cdn(e,n){var o,u,p;for(p=1,o=e,u=n>=0?n:-n;u>0;)u%2==0?(o*=o,u=u/2|0):(p*=o,u-=1);return n<0?1/p:p}i(Cdn,"Efd");function fNt(e){var n,o,u,p;if(e!=null){for(o=0;o<e.length;++o)if(n=e[o],n)for(y(n.g,374),p=n.i,u=0;u<p;++u);}}i(fNt,"hMd");function Edn(e){var n;return n=Fq(her),y(oe(e,(Tt(),au)),22).Gc((ol(),rL))&&Ei(n,(eo(),jc),(ho(),jQ)),n}i(Edn,"rGc");function bhe(e){return(zt(),rh).Gc(e.j)?He(Xe(oe(e,(Tt(),nL)))):Ql(Se(Ee(to,1),Dt,8,0,[e.i.n,e.n,e.a])).b}i(bhe,"cSc");function dNt(e,n){var o;return o=new e0(e),C1(o,(Yr(),bs)),dt(o,(Tt(),aa),n),dt(o,(Bt(),Qa),(uo(),zc)),o}i(dNt,"Vlc");function pNt(e,n,o){var u,p;for(p=e.Jc();p.Ob();){if(u=y(p.Pb(),9),u==n)return-1;if(u==o)return 1}return 0}i(pNt,"Llc");function Sdn(e,n,o){var u,p,g,w;for(u=o/e.gc(),p=0,w=e.Jc();w.Ob();)g=y(w.Pb(),186),nNt(g,g.f+u*p),Dmn(g,n,u),++p}i(Sdn,"r6c");function Adn(e){var n,o,u;for(u=new ye(e.b);u.a<u.c.c.length;)o=y(de(u),218),n=o.c.ig()?o.f:o.a,n&&C3n(n,o.j)}i(Adn,"YGc");function Rdn(e){var n,o,u;for(u=0,o=new ye(e.a);o.a<o.c.c.length;)n=y(de(o),173),u=d.Math.max(u,n.g);return u}i(Rdn,"$6c");function gNt(e){switch(e.g){case 0:return new Cyt;case 1:return new Syt;case 2:return new Eyt;default:return null}}i(gNt,"Z5c");function c_e(e,n){switch(n){case 1:!e.n&&(e.n=new xt(nc,e,1,7)),Kn(e.n);return;case 2:E7(e,null);return}OLe(e,n)}i(c_e,"Fvd");function mNt(e,n){oi(e);try{return e._b(n)}catch(o){if(o=hs(o),Ge(o,211)||Ge(o,172))return!1;throw xe(o)}}i(mNt,"Nv");function u_e(e,n){oi(e);try{return e.Gc(n)}catch(o){if(o=hs(o),Ge(o,211)||Ge(o,172))return!1;throw xe(o)}}i(u_e,"Lk");function Ldn(e,n){oi(e);try{return e.Kc(n)}catch(o){if(o=hs(o),Ge(o,211)||Ge(o,172))return!1;throw xe(o)}}i(Ldn,"Mk");function yNt(e,n){var o;e.a.c.length>0&&(o=y(Wt(e.a,e.a.c.length-1),565),KLe(o,n))||Nt(e.a,new I_t(n))}i(yNt,"qUb");function bNt(e,n){var o;e.c.length!=0&&(o=y(Zg(e,tt(e1,Zy,9,e.c.length,0,1)),199),uAe(o,new TH),TFt(o,n))}i(bNt,"f3b");function vNt(e,n){var o;e.c.length!=0&&(o=y(Zg(e,tt(e1,Zy,9,e.c.length,0,1)),199),uAe(o,new dpt),TFt(o,n))}i(vNt,"l3b");function _dn(e,n,o,u,p){n==0||u==0||(n==1?p[u]=Z_e(p,o,u,e[0]):u==1?p[n]=Z_e(p,e,n,o[0]):wvn(e,o,p,n,u))}i(_dn,"Xib");function Et(e){var n,o;return e>-129&&e<128?(l8t(),n=e+128,o=tBe[n],!o&&(o=tBe[n]=new f5e(e)),o):new f5e(e)}i(Et,"Cfb");function F7(e){var n,o;return e>-129&&e<128?(d8t(),n=e+128,o=aBe[n],!o&&(o=aBe[n]=new p5e(e)),o):new p5e(e)}i(F7,"lgb");function wNt(e){var n;return n=new Yb,n.a+="VerticalSegment ",qc(n,e.e),n.a+=" ",Li(n,EAe(new Foe,new ye(e.k))),n.a}i(wNt,"Xfc");function Ddn(e){_f();var n,o;n=e.d.c-e.e.c,o=y(e.g,156),Zc(o.b,new RTt(n)),Zc(o.c,new LTt(n)),Io(o.i,new _Tt(n))}i(Ddn,"Gec");function Idn(e,n){var o;e.c=n,e.a=Ipn(n),e.a<54&&(e.f=(o=n.d>1?ALt(n.a[0],n.a[1]):ALt(n.a[0],0),tw(n.e>0?o:zy(o))))}i(Idn,"Ghb");function vhe(e,n){var o,u,p;for(o=0,p=Zl(e,n).Jc();p.Ob();)u=y(p.Pb(),12),o+=oe(u,(Tt(),Ih))!=null?1:0;return o}i(vhe,"Qgc");function PC(e,n,o){var u,p,g;for(u=0,g=ei(e,0);g.b!=g.d.c&&(p=He(Xe(Qn(g))),!(p>o));)p>=n&&++u;return u}i(PC,"EQc");function h_e(e,n,o){var u,p;return p=e.sb,e.sb=n,(e.Db&4)!=0&&(e.Db&1)==0&&(u=new Qs(e,1,4,p,n),o?o.lj(u):o=u),o}i(h_e,"Dyd");function Mdn(e){var n;return n=y(Jg(e.c.c,""),233),n||(n=new z5(U8(z8(new c5,""),"Other")),uw(e.c.c,"",n)),n}i(Mdn,"Cdd");function dI(e){var n;return(e.Db&64)!=0?zp(e):(n=new Hd(zp(e)),n.a+=" (name: ",ml(n,e.zb),n.a+=")",n.a)}i(dI,"kyd");function f_e(e,n,o){var u,p;return p=e.r,e.r=n,(e.Db&4)!=0&&(e.Db&1)==0&&(u=new Qs(e,1,8,p,e.r),o?o.lj(u):o=u),o}i(f_e,"kUd");function Ndn(e,n,o){var u,p;return u=new B1(e.e,4,13,(p=n.c,p||(Dr(),b0)),null,Xy(e,n),!1),o?o.lj(u):o=u,o}i(Ndn,"D3d");function Odn(e,n,o){var u,p;return u=new B1(e.e,3,13,null,(p=n.c,p||(Dr(),b0)),Xy(e,n),!1),o?o.lj(u):o=u,o}i(Odn,"C3d");function Hy(e,n){var o,u;return o=y(n,681),u=o.cl(),!u&&o.dl(u=Ge(n,88)?new jSt(e,y(n,29)):new xLt(e,y(n,159))),u}i(Hy,"_ce");function _$(e,n,o){var u;e.Zi(e.i+1),u=e.Xi(n,o),n!=e.i&&$c(e.g,n,e.g,n+1,e.i-n),as(e.g,n,u),++e.i,e.Ki(n,o),e.Li()}i(_$,"_Fd");function Pdn(e,n,o,u,p,g,w,k){var A;for(A=o;g<w;)A>=u||n<o&&k.Le(e[n],e[A])<=0?as(p,g++,e[n++]):as(p,g++,e[A++])}i(Pdn,"dnb");function Bdn(e,n){var o,u,p,g;if(n.cj(e.a),g=y(an(e.a,8),2e3),g!=null)for(o=g,u=0,p=o.length;u<p;++u)null.Sm()}i(Bdn,"Mbe");function Fdn(e,n){var o;return n.a&&(o=n.a.a.length,e.a?Li(e.a,e.b):e.a=new Lf(e.d),_Lt(e.a,n.a,n.d.length,o)),e}i(Fdn,"Oxb");function D$(e,n){var o;return o=new ut,e.a.zd(o)?(Q8(),new Doe(Ur(a9t(e,o.a,n)))):(iv(e),Q8(),Q8(),mBe)}i(D$,"dCb");function xNt(e){var n;return eu(e,0)<0&&(e=hv(nan(Gl(e)?Xd(e):e))),n=mi(Y2(e,32)),64-(n!=0?J$(n):J$(mi(e))+32)}i(xNt,"Nhb");function ta(e,n){return lo(e)?Cr(e,n):_k(e)?hAt(e,n):Lk(e)?(Ur(e),Qe(e)===Qe(n)):r7e(e)?e.Fb(n):X8e(e)?c5t(e,n):Q7e(e,n)}i(ta,"pb");function $dn(e){return e?(e.i&1)!=0?e==ah?Ja:e==pi?Ls:e==d4?VR:e==po?Ts:e==LT?fT:e==FE?dT:e==xh?A6:SM:e:null}i($dn,"bie");function pI(e,n){switch(n.g){case 2:case 1:return Zl(e,n);case 3:case 4:return bf(Zl(e,n))}return Ir(),Ir(),Go}i(pI,"LIc");function d_e(e,n,o,u){switch(n){case 1:return!e.n&&(e.n=new xt(nc,e,1,7)),e.n;case 2:return e.k}return lDe(e,n,o,u)}i(d_e,"Avd");function yd(e,n,o){if(n<0)g9e(e,o);else{if(!o.pk())throw xe(new rn(Lv+o.ve()+dM));y(o,69).uk().Ck(e,e.ei(),n)}}i(yd,"$sd");function TNt(e,n,o){if(e<0||n>o)throw xe(new yu(hJ+e+xMe+n+", size: "+o));if(e>n)throw xe(new rn(hJ+e+CUt+n))}i(TNt,"QDb");function qy(e,n){var o;o=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,2,o,n))}i(qy,"mUd");function Yy(e,n){var o;o=(e.Bb&512)!=0,n?e.Bb|=512:e.Bb&=-513,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,3,o,n))}i(Yy,"nUd");function p_e(e,n){var o;o=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,8,o,n))}i(p_e,"RWd");function g_e(e,n){var o;o=(e.Bb&512)!=0,n?e.Bb|=512:e.Bb&=-513,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,9,o,n))}i(g_e,"SWd");function kNt(e){var n;return(e.Db&64)!=0?zp(e):(n=new Hd(zp(e)),n.a+=" (source: ",ml(n,e.d),n.a+=")",n.a)}i(kNt,"BTd");function qX(e,n){var o;o=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,8,o,n))}i(qX,"w_d");function Gdn(e,n,o){var u,p;return p=e.a,e.a=n,(e.Db&4)!=0&&(e.Db&1)==0&&(u=new Qs(e,1,5,p,e.a),o?IDe(o,u):o=u),o}i(Gdn,"z0d");function gI(e,n){var o;return e.b==-1&&e.a&&(o=e.a.nk(),e.b=o?e.c.Eh(e.a.Jj(),o):ja(e.c.Ah(),e.a)),e.c.vh(e.b,n)}i(gI,"xje");function CNt(e,n){var o,u;for(u=new Sn(e);u.e!=u.i.gc();)if(o=y(_n(u),29),Qe(n)===Qe(o))return!0;return!1}i(CNt,"G$d");function jdn(e){aJ();var n,o,u,p;for(o=$he(),u=0,p=o.length;u<p;++u)if(n=o[u],Jl(n.a,e,0)!=-1)return n;return E0e}i(jdn,"QJb");function ENt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}i(ENt,"WQd");function SNt(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}i(SNt,"qfb");function m_e(e){var n,o;return n=e.k,n==(Yr(),ks)?(o=y(oe(e,(Tt(),gc)),64),o==(zt(),sn)||o==Fn):!1}i(m_e,"O2b");function ANt(e){var n;return n=nRe(e),T9(n.a,0)?(Ek(),Ek(),y0e):(Ek(),new Vle(qoe(n.a,0)?ERe(n)/tw(n.a):0))}i(ANt,"hBb");function zdn(e,n){var o;if(o=rG(e,n),Ge(o,335))return y(o,38);throw xe(new rn(Lv+n+"' is not a valid attribute"))}i(zdn,"Usd");function mI(e,n,o){var u;if(u=e.gc(),n>u)throw xe(new Pk(n,u));if(e.Qi()&&e.Gc(o))throw xe(new rn(zG));e.Ei(n,o)}i(mI,"kFd");function RNt(e,n){var o,u;for(u=new Sn(e);u.e!=u.i.gc();)if(o=y(_n(u),143),Qe(n)===Qe(o))return!0;return!1}i(RNt,"P2d");function Udn(e,n,o){var u,p,g;return g=(p=tR(e.b,n),p),g&&(u=y(eJ(h$(e,g),""),29),u)?G9e(e,u,n,o):null}i(Udn,"Vce");function whe(e,n,o){var u,p,g;return g=(p=tR(e.b,n),p),g&&(u=y(eJ(h$(e,g),""),29),u)?j9e(e,u,n,o):null}i(whe,"Yce");function Vdn(e){var n,o,u;for(u=0,o=e.length,n=0;n<o;n++)e[n]==32||e[n]==13||e[n]==10||e[n]==9||(e[u++]=e[n]);return u}i(Vdn,"Qoe");function Wdn(e){var n;return n=e.a[e.c-1&e.a.length-1],n==null?null:(e.c=e.c-1&e.a.length-1,as(e.a,e.c,null),n)}i(Wdn,"zlb");function LNt(e){var n,o;for(o=e.p.a.ec().Jc();o.Ob();)if(n=y(o.Pb(),217),n.f&&e.b[n.c]<-1e-10)return n;return null}i(LNt,"VGb");function y_e(e,n){switch(e.b.g){case 0:case 1:return n;case 2:case 3:return new Op(n.d,0,n.a,n.b);default:return null}}i(y_e,"xLb");function ha(e,n){return e<n?-1:e>n?1:e==n?e==0?ha(1/e,1/n):0:isNaN(e)?isNaN(n)?0:1:-1}i(ha,"$eb");function Hdn(e,n){n.Tg("Sort end labels",1),ts(Hi(jl(new Er(null,new Rr(e.b,16)),new P2),new k1),new ti),n.Ug()}i(Hdn,"i1b");function Ss(){Ss=U,g0=new vF(QI,0),Bl=new vF(x6,1),Il=new vF(w6,2),p0=new vF(tpe,3),Ed=new vF("UP",4)}i(Ss,"Djd");function t6(){t6=U,HVe=new Sle("PARALLEL_NODE",0),s4=new Sle("HIERARCHICAL_NODE",1),vee=new Sle("ROOT_NODE",2)}i(t6,"Gnd");function I$(){I$=U,ZZ=new Tle("P1_STRUCTURE",0),eee=new Tle("P2_PROCESSING_ORDER",1),tee=new Tle("P3_EXECUTION",2)}i(I$,"c8c");function YX(){YX=U,nUe=new xle("EQUAL_BETWEEN_STRUCTURES",0),iUe=new xle("TO_ASPECT_RATIO",1),cye=new xle(wg,2)}i(YX,"x6c");function U1(){U1=U,Fye=new Sq(QI,0),Uj=new Sq("POLYLINE",1),kL=new Sq("ORTHOGONAL",2),eA=new Sq("SPLINES",3)}i(U1,"hkd");function _Nt(){_Nt=U,Str=X0(X0(c9(X0(X0(c9(Ei(new us,(o6(),oN),(FI(),C1e)),lN),Nje),Pje),cN),_je),Bje)}i(_Nt,"aZc");function qdn(e){switch(y(oe(e,(Tt(),Sw)),316).g){case 1:dt(e,Sw,(F1(),N6));break;case 2:dt(e,Sw,(F1(),pE))}}i(qdn,"e2b");function Ydn(e){switch(e){case 0:return new g4t;case 1:return new d4t;case 2:return new p4t;default:throw xe(new ZB)}}i(Ydn,"MQc");function DNt(e){switch(e.g){case 2:return Bl;case 1:return Il;case 4:return p0;case 3:return Ed;default:return g0}}i(DNt,"Gjd");function b_e(e){switch(e.g){case 1:return on;case 2:return sn;case 3:return bn;case 4:return Fn;default:return rc}}i(b_e,"Cmd");function M$(e){switch(e.g){case 1:return Fn;case 2:return on;case 3:return sn;case 4:return bn;default:return rc}}i(M$,"Dmd");function XX(e){switch(e.g){case 1:return bn;case 2:return Fn;case 3:return on;case 4:return sn;default:return rc}}i(XX,"Emd");function yI(e,n,o){var u,p;return e.Nj()?(p=e.Oj(),u=_fe(e,n,o),e.Hj(e.Gj(7,Et(o),u,n,p)),u):_fe(e,n,o)}i(yI,"LJd");function xhe(e,n){var o,u,p;e.d==null?(++e.e,--e.f):(p=n.jd(),o=n.yi(),u=(o&Ui)%e.d.length,Vcn(e,u,d$t(e,u,o,p)))}i(xhe,"kMd");function $7(e,n){var o;o=(e.Bb&vh)!=0,n?e.Bb|=vh:e.Bb&=-8193,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,15,o,n))}i($7,"RUd");function G7(e,n){var o;o=(e.Bb&Wp)!=0,n?e.Bb|=Wp:e.Bb&=-1025,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,10,o,n))}i(G7,"KUd");function j7(e,n){var o;o=(e.Bb&x3)!=0,n?e.Bb|=x3:e.Bb&=-4097,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,12,o,n))}i(j7,"QUd");function z7(e,n){var o;o=(e.Bb&tb)!=0,n?e.Bb|=tb:e.Bb&=-2049,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,11,o,n))}i(z7,"SUd");function Xdn(e,n){var o;return o=ha(e.b.c,n.b.c),o!=0||(o=ha(e.a.a,n.a.a),o!=0)?o:ha(e.a.b,n.a.b)}i(Xdn,"EMb");function Kdn(e){var n,o;for(o=nv(new Yb,91),n=!0;e.Ob();)n||(o.a+=Tu),n=!1,qc(o,e.Pb());return(o.a+="]",o).a}i(Kdn,"Cr");function Jdn(e){var n,o,u;for(n=new Pt,u=new ye(e.b);u.a<u.c.c.length;)o=y(de(u),592),Is(n,y(o.Af(),18));return n}i(Jdn,"UUb");function The(e,n){var o,u;for(u=new ye(n);u.a<u.c.c.length;)o=y(de(u),49),Yu(e.b.b,o.b),vsn(y(o.a,194),y(o.b,82))}i(The,"xRb");function Qdn(e){var n,o;for(o=o$t(Nf(e)).Jc();o.Ob();)if(n=di(o.Pb()),$I(e,n))return ucn((EEt(),Bir),n);return null}i(Qdn,"Whe");function Zdn(e,n,o){var u,p;for(p=e.a.ec().Jc();p.Ob();)if(u=y(p.Pb(),9),E$(o,y(Wt(n,u.p),18)))return u;return null}i(Zdn,"_Dc");function epn(e,n,o){var u,p;for(p=Ge(n,103)&&(y(n,19).Bb&Jo)!=0?new Lle(n,e):new R7(n,e),u=0;u<o;++u)dK(p);return p}i(epn,"Gee");function tpn(e,n){var o,u,p,g,w;for(w=Ou(e.e.Ah(),n),g=0,o=y(e.g,122),p=0;p<e.i;++p)u=o[p],w.$l(u.Jk())&&++g;return g}i(tpn,"$ee");function KX(e){var n,o;return o=y(oe(e,(Bt(),Uf)),86),o==(Ss(),g0)?(n=He(Xe(oe(e,fZ))),n>=1?Bl:p0):o}i(KX,"PXb");function rpn(e){switch(y(oe(e,(Bt(),Z1)),222).g){case 1:return new j0t;case 3:return new H0t;default:return new G0t}}i(rpn,"Xbc");function mv(e){if(e.c)mv(e.c);else if(e.d)throw xe(new El("Stream already terminated, can't be modified or used"))}i(mv,"dBb");function npn(e){var n;if(!e.a)throw xe(new El("Cannot offset an unassigned cut."));n=e.c-e.b,e.b+=n,K7t(e,n),J7t(e,n)}i(npn,"qmc");function INt(e,n,o){var u,p;if(e.c)WDe(e.c,n,o);else for(p=new ye(e.b);p.a<p.c.c.length;)u=y(de(p),167),INt(u,n,o)}i(INt,"$od");function v_e(e,n){var o,u,p;for(Ur(n),o=!1,u=new ye(e);u.a<u.c.c.length;)p=de(u),n.Gc(p)&&(G9(u),o=!0);return o}i(v_e,"Be");function Ux(e,n,o){var u;return u=e.a.get(n),e.a.set(n,o===void 0?null:o),u===void 0?(++e.c,++e.b.g):++e.d,u}i(Ux,"Tsb");function ipn(e,n,o){var u,p;return u=y(n.mf(e.a),35),p=y(o.mf(e.a),35),u!=null&&p!=null?b$(u,p):u!=null?-1:p!=null?1:0}i(ipn,"MEd");function Zl(e,n){var o;return e.i||p9e(e),o=y(yl(e.g,n),49),o?new sv(e.j,y(o.a,15).a,y(o.b,15).a):(Ir(),Ir(),Go)}i(Zl,"IYb");function N$(e,n){this.e=n,this.a=xNt(e),this.a<54?this.f=tw(e):this.c=(J0(),eu(e,0)>=0?yv(e):j9(yv(zy(e))))}i(N$,"Khb");function MNt(e,n,o,u,p,g){this.e=new Pt,this.f=(sl(),rN),Nt(this.e,e),this.d=n,this.a=o,this.b=u,this.f=p,this.c=g}i(MNt,"kWb");function NNt(e,n,o,u,p){M5t(this),this.b=e,this.d=tt(e1,Zy,9,n.a.c.length,0,1),this.f=o,Zg(n.a,this.d),this.g=u,this.c=p}i(NNt,"Plc");function apn(e,n,o){var u;u=o,!u&&(u=$8e(new g5,0)),u.Tg(JUt,2),jOt(e.b,n,u.dh(1)),K3n(e,n,u.dh(1)),YCn(n,u.dh(1)),u.Ug()}i(apn,"nQb");function w_e(e,n,o){var u;return u=0,n&&(mC(e.a)?u+=n.f.a/2:u+=n.f.b/2),o&&(mC(e.a)?u+=o.f.a/2:u+=o.f.b/2),u}i(w_e,"dZc");function x_e(e,n,o){var u,p;return u=(Kb(),p=new EH,p),wX(u,n),xX(u,o),e&&Zn((!e.a&&(e.a=new Es(qf,e,5)),e.a),u),u}i(x_e,"VEd");function khe(e){var n;return(e.Db&64)!=0?zp(e):(n=new Hd(zp(e)),n.a+=" (identifier: ",ml(n,e.k),n.a+=")",n.a)}i(khe,"Ivd");function JX(e){var n;switch(e.gc()){case 0:return uY(),l0e;case 1:return new Yle(oi(e.Xb(0)));default:return n=e,new rue(n)}}i(JX,"Mm");function Ho(e,n){var o;return Gl(e)&&Gl(n)&&(o=e+n,xG<o&&o<mw)?o:hv(Rfn(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n))}i(Ho,"Mcb");function $o(e,n){var o;return Gl(e)&&Gl(n)&&(o=e*n,xG<o&&o<mw)?o:hv(P3n(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n))}i($o,"Ycb");function Kd(e,n){var o;return Gl(e)&&Gl(n)&&(o=e-n,xG<o&&o<mw)?o:hv(mMt(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n))}i(Kd,"ddb");function spn(e,n,o){var u;try{Ufn(e,n,o)}catch(p){throw p=hs(p),Ge(p,596)?(u=p,xe(new wRe(u))):xe(p)}return n}i(spn,"Db");function T_e(e){var n;return n=tt(Rd,em,30,2,15,1),e-=Jo,n[0]=(e>>10)+TG&As,n[1]=(e&1023)+56320&As,Jd(n,0,n.length)}i(T_e,"Dqe");function os(e){var n,o,u;for(n=new Pt,u=new ye(e.j);u.a<u.c.c.length;)o=y(de(u),12),Nt(n,o.e);return oi(n),new S9(n)}i(os,"EYb");function Y0(e){var n,o,u;for(n=new Pt,u=new ye(e.j);u.a<u.c.c.length;)o=y(de(u),12),Nt(n,o.b);return oi(n),new S9(n)}i(Y0,"BYb");function Ra(e){var n,o,u;for(n=new Pt,u=new ye(e.j);u.a<u.c.c.length;)o=y(de(u),12),Nt(n,o.g);return oi(n),new S9(n)}i(Ra,"HYb");function opn(e){var n;return n=u3(e),n>34028234663852886e22?qa:n<-34028234663852886e22?Ys:n}i(opn,"hfb");function U7(e,n){var o;o=(e.Bb&Z0)!=0,n?e.Bb|=Z0:e.Bb&=-16385,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,16,o,n))}i(U7,"NUd");function Che(e,n){var o;o=(e.Bb&Tc)!=0,n?e.Bb|=Tc:e.Bb&=-32769,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,18,o,n))}i(Che,"xVd");function k_e(e,n){var o;o=(e.Bb&Tc)!=0,n?e.Bb|=Tc:e.Bb&=-32769,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,18,o,n))}i(k_e,"n4d");function C_e(e,n){var o;o=(e.Bb&Jo)!=0,n?e.Bb|=Jo:e.Bb&=-65537,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Pp(e,1,20,o,n))}i(C_e,"p4d");function E_e(e,n){e.n.c.length==0&&Nt(e.n,new zY(e.s,e.t,e.i)),Nt(e.b,n),iDe(y(Wt(e.n,e.n.c.length-1),208),n),pjt(e,n)}i(E_e,"G6c");function lpn(e,n,o){var u;o.Tg("Straight Line Edge Routing",1),o.bh(n,TOe),u=y(St(n,(TC(),SE)),26),Ajt(e,u),o.bh(n,GJ)}i(lpn,"u2c");function cpn(e){var n,o;for(o=Dvn(Nf(Wk(e))).Jc();o.Ob();)if(n=di(o.Pb()),$I(e,n))return hcn((SEt(),Fir),n);return null}i(cpn,"Zhe");function ONt(e){var n,o,u,p;for(n=new W6t(e.Pd().gc()),p=0,u=Y5(e.Pd().Jc());u.Ob();)o=u.Pb(),isn(n,o,Et(p++));return Byn(n.a)}i(ONt,"Lv");function mr(e){var n,o,u,p;return o=(n=y(ug((u=e.Pm,p=u.f,p==ii?u:p)),10),new ud(n,y(Np(n,n.length),10),0)),Gp(o,e),o}i(mr,"Frb");function upn(e){var n,o,u;for(o=0,u=e.length;o<u;o++)if(e[o]==null)throw xe(new y5("at index "+o));return n=e,new oc(n)}i(upn,"Fm");function QX(){QX=U,Nze=new vle("ASPECT_RATIO_DRIVEN",0),nye=new vle("MAX_SCALE_DRIVEN",1),Mze=new vle("AREA_DRIVEN",2)}i(QX,"T3c");function Ehe(){GDe();var e,n,o;o=aSn+++Date.now(),e=Po(d.Math.floor(o*CG))&uJ,n=Po(o-e*yMe),this.a=e^1502,this.b=n^Xde}i(Ehe,"Vvb");function hpn(e){return dhe(),qr(),!!(BNt(y(e.a,82).j,y(e.b,86))||y(e.a,82).d.e!=0&&BNt(y(e.a,82).j,y(e.b,86)))}i(hpn,"DRb");function She(e,n){var o,u,p;for(p=0,u=y(n.Kb(e),20).Jc();u.Ob();)o=y(u.Pb(),17),Kt(Xt(oe(o,(Tt(),ib))))||++p;return p}i(She,"Cac");function fpn(e,n){var o,u,p;u=EC(n),p=He(Xe(s3(u,(Bt(),Xp)))),o=d.Math.max(0,p/2-.5),EI(n,o,1),Nt(e,new YEt(n,o))}i(fpn,"Lcc");function PNt(e,n){var o,u;for(o=ei(e,0);o.b!=o.d.c;){if(u=eF(Xe(Qn(o))),u==n)return;if(u>n){ELt(o);break}}EY(o,n)}i(PNt,"HPc");function fr(e,n){var o,u,p,g,w;if(o=n.f,uw(e.c.d,o,n),n.g!=null)for(p=n.g,g=0,w=p.length;g<w;++g)u=p[g],uw(e.c.e,u,n)}i(fr,"Bdd");function dpn(e,n,o,u){var p,g,w;for(p=n+1;p<o;++p)for(g=p;g>n&&u.Le(e[g-1],e[g])>0;--g)w=e[g],as(e,g,e[g-1]),as(e,g-1,w)}i(dpn,"cnb");function bd(e,n,o,u){if(n<0)W9e(e,o,u);else{if(!o.pk())throw xe(new rn(Lv+o.ve()+dM));y(o,69).uk().Ak(e,e.ei(),n,u)}}i(bd,"Zsd");function ppn(e,n){var o;if(o=rG(e.Ah(),n),Ge(o,103))return y(o,19);throw xe(new rn(Lv+n+"' is not a valid reference"))}i(ppn,"qtd");function zl(e){var n;return Array.isArray(e)&&e.Rm===te?j2(mf(e))+"@"+(n=Aa(e)>>>0,n.toString(16)):e.toString()}i(zl,"tdb");function gpn(e,n){return e.h==wG&&e.m==0&&e.l==0?(n&&(_v=Mu(0,0,0)),u5t((T7(),XPe))):(n&&(_v=Mu(e.l,e.m,e.h)),Mu(0,0,0))}i(gpn,"bD");function mpn(e,n){switch(n.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}i(mpn,"sFb");function BNt(e,n){switch(n.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}i(BNt,"mSb");function S_e(e,n,o,u){switch(n){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return d_e(e,n,o,u)}i(S_e,"Tvd");function FNt(e,n,o){switch(n.g){case 1:e.b-=o.b/2;break;case 3:e.b+=o.b/2;break;case 4:e.a-=o.a/2;break;case 2:e.a+=o.a/2}}i(FNt,"jkc");function ypn(e,n){return Cr(n.b&&n.c?ew(n.b)+"->"+ew(n.c):"e_"+Aa(n),e.b&&e.c?ew(e.b)+"->"+ew(e.c):"e_"+Aa(e))}i(ypn,"$Sc");function bpn(e,n){return Cr(n.b&&n.c?ew(n.b)+"->"+ew(n.c):"e_"+Aa(n),e.b&&e.c?ew(e.b)+"->"+ew(e.c):"e_"+Aa(e))}i(bpn,"aTc");function Vx(e,n){return Wg(),$p(Cv),d.Math.abs(e-n)<=Cv||e==n||isNaN(e)&&isNaN(n)?0:e<n?-1:e>n?1:V2(isNaN(e),isNaN(n))}i(Vx,"Ty");function ZX(e,n){if(n==e.d)return e.e;if(n==e.e)return e.d;throw xe(new rn("Node "+n+" not part of edge "+e))}i(ZX,"UFb");function vpn(e){return e.e==null?e:(!e.c&&(e.c=new Gfe((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}i(vpn,"xQd");function wpn(e){return e.k!=(Yr(),Ya)?!1:Kk(new Er(null,new jk(new nn(cn(Ra(e).a.Jc(),new B)))),new v0t)}i(wpn,"Bhc");function Jh(e){var n;if(e.b){if(Jh(e.b),e.b.d!=e.c)throw xe(new od)}else e.d.dc()&&(n=y(e.f.c.xc(e.e),18),n&&(e.d=n))}i(Jh,"gg");function xpn(e){Nk();var n,o,u,p;for(n=e.o.b,u=y(y(oa(e.r,(zt(),Fn)),22),83).Jc();u.Ob();)o=y(u.Pb(),115),p=o.e,p.b+=n}i(xpn,"yKb");function $Nt(e,n){r7();var o,u,p,g;for(u=DDt(e),p=n,w7(u,0,u.length,p),o=0;o<u.length;o++)g=rmn(e,u[o],o),o!=g&&yI(e,o,g)}i($Nt,"AOd");function Tpn(e,n){var o,u,p;for(u=Wxn(e,n),p=u[u.length-1]/2,o=0;o<u.length;o++)if(u[o]>=p)return n.c+o;return n.c+n.b.gc()}i(Tpn,"V6b");function Ahe(e,n,o){var u,p;for(u=0,p=e.length;u<p;u++)if(ihe((un(u,e.length),e.charCodeAt(u)),n,o))return!0;return!1}i(Ahe,"zQd");function kpn(e){var n;return e==null?!0:(n=e.length,n>0&&(un(n-1,e.length),e.charCodeAt(n-1)==58)&&!Ahe(e,BN,FN))}i(kpn,"SQd");function bI(e){var n;this.a=(n=y(e.e&&e.e(),10),new ud(n,y(Np(n,n.length),10),0)),this.b=tt(Fs,Fr,1,this.a.a.length,5,1)}i(bI,"frb");function A_e(e){Dhe(),this.c=Bp(Se(Ee(CSn,1),Fr,830,0,[NZt])),this.b=new jn,this.a=e,Oi(this.b,RZ,1),Zc(OZt,new qkt(this))}i(A_e,"Gyc");function yf(){yf=U,dj=new dF(wg,0),UM=new dF("FIRST",1),Q1=new dF(dVt,2),VM=new dF("LAST",3),Rw=new dF(pVt,4)}i(yf,"asc");function vI(){vI=U,PM=new yq("LAYER_SWEEP",0),jFe=new yq("MEDIAN_LAYER_SWEEP",1),aj=new yq(fpe,2),zFe=new yq(wg,3)}i(vI,"Xnc");function eK(){eK=U,Vye=new Lq(uOe,0),JVe=new Lq("GROUP_DEC",1),ZVe=new Lq("GROUP_MIXED",2),QVe=new Lq("GROUP_INC",3)}i(eK,"gpd");function Cpn(e){var n,o,u,p,g;return g=jDe(e),o=aF(e.c),u=!o,u&&(p=new F2,Fp(g,"knownLayouters",p),n=new T3t(p),Io(e.c,n)),g}i(Cpn,"YDd");function R_e(e,n,o,u,p){var g,w,k;for(w=p;n.b!=n.c;)g=y(F5(n),9),k=y(Zl(g,u).Xb(0),12),e.d[k.p]=w++,tn(o.c,k);return w}i(R_e,"ZIc");function L_e(e,n){var o,u,p,g,w,k;for(u=0,o=0,g=n,w=0,k=g.length;w<k;++w)p=g[w],p>0&&(u+=p,++o);return o>1&&(u+=e.d*(o-1)),u}i(L_e,"$Hb");function __e(e){var n,o,u;for(u=new Dy,u.a+="[",n=0,o=e.gc();n<o;)ml(u,_9(e.Ti(n))),++n<o&&(u.a+=Tu);return u.a+="]",u.a}i(__e,"wFd");function Rhe(e){var n,o,u;for(u=He(Xe(e.a.mf((Ri(),cee)))),o=new ye(e.a.Qf());o.a<o.c.c.length;)n=y(de(o),685),Lzt(e,n,u)}i(Rhe,"oHb");function Epn(e){var n,o,u,p;for(n=(e.j==null&&(e.j=(g7(),p=h0e.ke(e),Gmn(p))),e.j),o=0,u=n.length;o<u;++o);}i(Epn,"bz");function Lhe(e,n){var o,u;for(u=new ye(n);u.a<u.c.c.length;)o=y(de(u),49),Nt(e.b.b,y(o.b,82)),aue(y(o.a,194),y(o.b,82))}i(Lhe,"sRb");function Spn(e,n,o){var u,p;for(p=e.a.b,u=p.c.length;u<o;u++)W2(p,0,new Nc(e.a));Us(n,y(Wt(p,p.c.length-o),25)),e.b[n.p]=o}i(Spn,"HDc");function Apn(e,n,o,u,p){Df(),Up(Dp(_p(Lp(Ip(new Vd,0),p.d.e-e),n),p.d)),Up(Dp(_p(Lp(Ip(new Vd,0),o-p.a.e),p.a),u))}i(Apn,"nLc");function GNt(e,n){var o;return e.d?Kc(e.b,n)?y(Jr(e.b,n),43):(o=n.bg(),Oi(e.b,n,o),o):n.bg()}i(GNt,"Obd");function D_e(e,n){var o;return Qe(e)===Qe(n)?!0:Ge(n,91)?(o=y(n,91),e.e==o.e&&e.d==o.d&&gcn(e,o.a)):!1}i(D_e,"aib");function r6(e){switch(zt(),e.g){case 4:return sn;case 1:return bn;case 3:return Fn;case 2:return on;default:return rc}}i(r6,"Gmd");function I_e(e,n){switch(n){case 3:return e.f!=0;case 4:return e.g!=0;case 5:return e.i!=0;case 6:return e.j!=0}return LLe(e,n)}i(I_e,"Uvd");function Rpn(e){switch(e.g){case 1:return new nyt;case 2:return new U6t;default:throw xe(new rn(sge+(e.f!=null?e.f:""+e.g)))}}i(Rpn,"S0c");function Lpn(e){switch(e.g){case 0:return new hyt;case 1:return new fyt;default:throw xe(new rn(sge+(e.f!=null?e.f:""+e.g)))}}i(Lpn,"I0c");function jNt(e){switch(e.g){case 0:return new uyt;case 1:return new dyt;default:throw xe(new rn(cpe+(e.f!=null?e.f:""+e.g)))}}i(jNt,"h_c");function zNt(e){switch(e.g){case 0:return new Y5e;case 1:return new m4t;default:throw xe(new rn(UJ+(e.f!=null?e.f:""+e.g)))}}i(zNt,"had");function bf(e){var n,o;return Ge(e,312)?(o=Fcn(y(e,312)),n=o,n):Ge(e,432)?y(e,432).a:Ge(e,59)?new G4t(e):new b6e(e)}i(bf,"$u");function _pn(e){var n=e.e;function o(u){return!u||u.length==0?"":" "+u.join(`
|
|
`)}return i(o,"d"),n&&(n.stack||o(e[Ede]))}i(_pn,"ADb");function Dpn(e){var n,o;if(e.b)return e.b;for(o=c0?null:e.d;o;){if(n=c0?null:o.b,n)return n;o=c0?null:o.d}return X8(),vBe}i(Dpn,"rAb");function Ipn(e){var n,o,u;return e.e==0?0:(n=e.d<<5,o=e.a[e.d-1],e.e<0&&(u=zIt(e),u==e.d-1&&(--o,o=o|0)),n-=J$(o),n)}i(Ipn,"zib");function Mpn(e){var n,o,u;return e<yQ.length?yQ[e]:(o=e>>5,n=e&31,u=tt(pi,Pi,30,o+1,15,1),u[o]=1<<n,new X2(1,o+1,u))}i(Mpn,"uib");function UNt(e){var n,o,u;return o=e.ih(),o?(n=e.Bh(),Ge(n,174)&&(u=UNt(y(n,174)),u!=null)?u+"."+o:o):null}i(UNt,"K_b");function a3(e,n,o){var u,p;for(p=e.Jc();p.Ob();)if(u=p.Pb(),Qe(n)===Qe(u)||n!=null&&ta(n,u))return o&&p.Qb(),!0;return!1}i(a3,"ye");function Npn(e,n){var o,u,p,g;for(p=new vu(n.gc()),u=n.Jc();u.Ob();)o=u.Pb(),g=Yfe(e,y(o,57)),g&&tn(p.c,g);return p}i(Npn,"die");function M_e(e){var n,o,u,p;for(n=new F2,p=new iC(e.b.Jc());p.b.Ob();)u=y(p.b.Pb(),690),o=Uyn(u),uan(n,n.a.length,o);return n.a}i(M_e,"eHd");function N_e(e,n,o){var u,p;if(++e.j,o.dc())return!1;for(p=o.Jc();p.Ob();)u=p.Pb(),e.oj(n,e.Xi(n,u)),++n;return!0}i(N_e,"oHd");function VNt(e,n){var o,u;if(n){for(o=0;o<e.i;++o)if(u=y(e.g[o],373),u.kj(n))return!1;return Zn(e,n)}else return!1}i(VNt,"vJd");function ja(e,n){var o,u,p;if(o=(e.i==null&&Q0(e),e.i),u=n.Jj(),u!=-1){for(p=o.length;u<p;++u)if(o[u]==n)return u}return-1}i(ja,"OWd");function Opn(e){var n,o,u,p,g;for(o=y(e.g,679),u=e.i-1;u>=0;--u)for(n=o[u],p=0;p<u;++p)if(g=o[p],sjt(e,n,g)){s6(e,u);break}}i(Opn,"eZd");function WNt(e,n){var o,u,p,g;n&&(p=G1(n,"x"),o=new p3t(e),DC(o.a,(Ur(p),p)),g=G1(n,"y"),u=new g3t(e),IC(u.a,(Ur(g),g)))}i(WNt,"KBd");function HNt(e,n){var o,u,p,g;n&&(p=G1(n,"x"),o=new y3t(e),LC(o.a,(Ur(p),p)),g=G1(n,"y"),u=new b3t(e),_C(u.a,(Ur(g),g)))}i(HNt,"VBd");function Ppn(e,n){var o;return o=y(Rh(e,qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),o.Oc(a8t(o.gc()))}i(Ppn,"iCb");function O_e(e){var n;return!e.c&&(e.c=new $n),zs(e.d,new An),gxn(e),n=sxn(e),ts(new Er(null,new Rr(e.d,16)),new Hxt(e)),n}i(O_e,"yLb");function Bpn(e,n){n.Tg("End label post-processing",1),ts(Hi(jl(new Er(null,new Rr(e.b,16)),new N2),new mu),new mk),n.Ug()}i(Bpn,"u0b");function Wx(e,n){switch(n.g){case 1:return M5(e.j,(mh(),j0e));case 2:return M5(e.j,(mh(),z0e));default:return Ir(),Ir(),Go}}i(Wx,"JYb");function P_e(e,n){switch(n){case 3:$x(e,0);return;case 4:Gx(e,0);return;case 5:Xh(e,0);return;case 6:Kh(e,0);return}c_e(e,n)}i(P_e,"Wvd");function qNt(e,n){var o,u;if(u=new P8(e.a.$c(n,!0)),u.a.gc()<=1)throw xe(new f5);return o=u.a.ec().Jc(),o.Pb(),y(o.Pb(),40)}i(qNt,"YTc");function Fpn(e,n,o){var u,p;return u=He(e.p[n.i.p])+He(e.d[n.i.p])+n.n.b+n.a.b,p=He(e.p[o.i.p])+He(e.d[o.i.p])+o.n.b+o.a.b,p-u}i(Fpn,"WMc");function B_e(e,n){var o;return e.i>0&&(n.length<e.i&&(o=m$(mf(n).c,e.i),n=o),$c(e.g,0,n,0,e.i)),n.length>e.i&&as(n,e.i,null),n}i(B_e,"mGd");function tK(e){var n;return(e.Db&64)!=0?dI(e):(n=new Hd(dI(e)),n.a+=" (instanceClassName: ",ml(n,e.D),n.a+=")",n.a)}i(tK,"ZVd");function rK(e){var n,o,u,p;for(p=0,o=0,u=e.length;o<u;o++)n=(un(o,e.length),e.charCodeAt(o)),n<64&&(p=H0(p,$m(1,n)));return p}i(rK,"LQd");function _he(e,n){var o,u,p;return e.f>0?(e.Zj(),u=n==null?0:Aa(n),p=(u&Ui)%e.d.length,o=d$t(e,p,u,n),o!=-1):!1}i(_he,"fMd");function O$(e,n){var o,u,p,g;for(g=Ou(e.e.Ah(),n),o=y(e.g,122),p=0;p<e.i;++p)if(u=o[p],g.$l(u.Jk()))return!1;return!0}i(O$,"Cee");function $pn(e,n,o,u){var p,g;if(g=o-n,g<3)for(;g<3;)e*=10,++g;else{for(p=1;g>3;)p*=10,--g;e=(e+(p>>1))/p|0}return u.i=e,!0}i($pn,"GA");function Gpn(e,n,o){var u,p;for(u=co(o,ll),p=0;eu(u,0)!=0&&p<n;p++)u=Ho(u,co(e[p],ll)),e[p]=mi(u),u=Rx(u,32);return mi(u)}i(Gpn,"Pib");function nK(e,n){dAe();var o,u;return o=MF((WH(),WH(),EM)),u=null,n==o&&(u=y(Jc(qPe,e),616)),u||(u=new c7t(e),n==o&&Al(qPe,e,u)),u}i(nK,"QA");function YNt(e){Nk();var n;return n=new Vo(y(e.e.mf((Ri(),IE)),8)),e.B.Gc((Zh(),EL))&&(n.a<=0&&(n.a=20),n.b<=0&&(n.b=20)),n}i(YNt,"vKb");function jpn(e){lX(),y(e.mf((Ri(),Uv)),182).Gc((Zh(),yee))&&(y(e.mf(t4),182).Ec((_h(),tA)),y(e.mf(Uv),182).Kc(yee))}i(jpn,"ycd");function XNt(e){var n,o;n=e.d==(l6(),KR),o=DDe(e),n&&!o||!n&&o?dt(e.a,(Bt(),lm),(Vm(),Oj)):dt(e.a,(Bt(),lm),(Vm(),Nj))}i(XNt,"b7b");function zpn(e){var n,o,u,p;for(u=pbn(e),zs(u,tKt),p=e.d,p.c.length=0,o=new ye(u);o.a<o.c.c.length;)n=y(de(o),455),Is(p,n.b)}i(zpn,"k1b");function xu(e,n,o){var u,p,g;return e.Nj()?(u=e.i,g=e.Oj(),_$(e,u,n),p=e.Gj(3,null,n,u,g),o?o.lj(p):o=p):_$(e,e.i,n),o}i(xu,"HJd");function Upn(e,n,o){var u,p;return u=new B1(e.e,4,10,(p=n.c,Ge(p,88)?y(p,29):(Dr(),up)),null,Xy(e,n),!1),o?o.lj(u):o=u,o}i(Upn,"sYd");function Vpn(e,n,o){var u,p;return u=new B1(e.e,3,10,null,(p=n.c,Ge(p,88)?y(p,29):(Dr(),up)),Xy(e,n),!1),o?o.lj(u):o=u,o}i(Vpn,"rYd");function bg(e,n){var o,u,p;return e.f>0&&(e.Zj(),u=n==null?0:Aa(n),p=(u&Ui)%e.d.length,o=T9e(e,p,u,n),o)?o.kd():null}i(bg,"pMd");function KNt(e,n){var o,u,p;return Ge(n,45)?(o=y(n,45),u=o.jd(),p=i3(e.Pc(),u),D1(p,o.kd())&&(p!=null||e.Pc()._b(u))):!1}i(KNt,"Xe");function yv(e){J0();var n,o;return o=mi(e),n=mi(Y2(e,32)),n!=0?new iLt(o,n):o>10||o<0?new O1(1,o):Zqt[o]}i(yv,"tib");function F_e(e){l3();var n;return(e.q?e.q:(Ir(),Ir(),Qm))._b((Bt(),_w))?n=y(oe(e,_w),203):n=y(oe(Zs(e),aL),203),n}i(F_e,"ozc");function Dhe(){Dhe=U,rq(),RZ=(Bt(),Mw),OZt=Bp(Se(Ee(wye,1),cOe,147,0,[bj,Xp,xE,Iw,q3,Qme,cL,uL,Zme,QM,H3,Fv,Y3]))}i(Dhe,"Fyc");function JNt(e,n,o){W9t(),u4t.call(this),this.a=Fk(TYt,[Dt,CMe],[593,216],0,[xQ,C0e],2),this.c=new S5,this.g=e,this.f=n,this.d=o}i(JNt,"_Hb");function QNt(e){this.e=tt(pi,Pi,30,e.length,15,1),this.c=tt(ah,vg,30,e.length,16,1),this.b=tt(ah,vg,30,e.length,16,1),this.f=0}i(QNt,"AIc");function Wpn(e){var n,o;for(e.j=tt(po,vl,30,e.p.c.length,15,1),o=new ye(e.p);o.a<o.c.c.length;)n=y(de(o),9),e.j[n.p]=n.o.b/e.i}i(Wpn,"tEc");function ZNt(e,n){var o,u;e.a=Ho(e.a,1),e.c=d.Math.min(e.c,n),e.b=d.Math.max(e.b,n),e.d+=n,o=n-e.f,u=e.e+o,e.f=u-e.e-o,e.e=u}i(ZNt,"Vqb");function P$(e,n){var o,u;for(u=n.length,o=0;o<u;o+=2)tu(e,(un(o,n.length),n.charCodeAt(o)),(un(o+1,n.length),n.charCodeAt(o+1)))}i(P$,"Bqe");function wI(e,n){var o;hCn(n),o=y(oe(e,(Bt(),bZ)),284),o&&dt(e,bZ,V0n(o)),Py(e.c),Py(e.f),LRe(e.d),LRe(y(oe(e,kZ),213))}i(wI,"s2b");function Ihe(e,n){var o;return Gl(e)&&Gl(n)&&(o=e%n,xG<o&&o<mw)?o:hv((UIe(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n,!0),_v))}i(Ihe,"Xcb");function eOt(e,n){e.Vj();try{e.d._c(e.e++,n),e.f=e.d.j,e.g=-1}catch(o){throw o=hs(o),Ge(o,99)?xe(new od):xe(o)}}i(eOt,"BKd");function Mhe(){Mhe=U,tbe=new Vbt,TWe=new Wbt,kWe=new Hbt,CWe=new qbt,EWe=new Ybt,SWe=new Xbt,AWe=new Kbt,RWe=new Jbt,LWe=new Qbt}i(Mhe,"n6d");function $_e(){$_e=U,zVe=new Cx(15),nir=new To((Ri(),r1),zVe),air=new To(ub,15),iir=new To(Pye,Et(0)),rir=new To(yL,xR)}i($_e,"Qmd");function iK(){iK=U,dN=new ble("P1_WIDTH_APPROXIMATION",0),XZ=new ble("P2_PACKING",1),K1e=new ble("P3_WHITESPACE_ELIMINATION",2)}i(iK,"Q2c");function vf(){vf=U,Kj=new Rq("PORTS",0),Fw=new Rq("PORT_LABELS",1),Xj=new Rq("NODE_LABELS",2),a4=new Rq("MINIMUM_SIZE",3)}i(vf,"ind");function Hpn(e,n){n.Tg("Min Size Postprocessing",1),pa(e,(Wm(),J3),d.Math.max(He(Xe(St(e,J3))),He(Xe(St(e,gN))))),n.Ug()}i(Hpn,"q3c");function tOt(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!y(e.b,52).Gh())return!0;return e.b=null,!1}else return!0}i(tOt,"lie");function s3(e,n){var o,u;return u=null,ea(e,(Bt(),SZ))&&(o=y(oe(e,SZ),105),o.nf(n)&&(u=o.mf(n))),u==null&&(u=oe(Zs(e),n)),u}i(s3,"YAc");function rOt(e,n){var o,u,p,g;return o=n>>5,n&=31,p=e.d+o+(n==0?0:1),u=tt(pi,Pi,30,p,15,1),z1n(u,e.a,o,n),g=new X2(e.e,p,u),q9(g),g}i(rOt,"Aib");function qpn(e,n){var o,u,p,g;for(g=n.b.b,e.a=new ya,e.b=tt(pi,Pi,30,g,15,1),o=0,p=ei(n.b,0);p.b!=p.d.c;)u=y(Qn(p),40),u.g=o++}i(qpn,"uYc");function nOt(e,n,o){var u,p,g,w;for(g=n-e.e,w=o-e.f,p=new ye(e.a);p.a<p.c.c.length;)u=y(de(p),173),F$(u,u.s+g,u.t+w);e.e=n,e.f=o}i(nOt,"b7c");function G_e(e,n,o){var u,p,g,w,k;return w=e.k,k=n.k,u=o[w.g][k.g],p=Xe(s3(e,u)),g=Xe(s3(n,u)),d.Math.max((Ur(p),p),(Ur(g),g))}i(G_e,"QAc");function j_e(e,n,o){var u,p;u=y(Jc(RL,n),121),p=y(Jc(VN,n),121),o?(Al(RL,e,u),Al(VN,e,p)):(Al(VN,e,u),Al(RL,e,p))}i(j_e,"yre");function V7(e,n,o){var u,p,g;for(p=null,g=e.b;g;){if(u=e.a.Le(n,g.d),o&&u==0)return g;u>=0?g=g.a[1]:(p=g,g=g.a[0])}return p}i(V7,"Wxb");function B$(e,n,o){var u,p,g;for(p=null,g=e.b;g;){if(u=e.a.Le(n,g.d),o&&u==0)return g;u<=0?g=g.a[0]:(p=g,g=g.a[1])}return p}i(B$,"Xxb");function iOt(e,n,o){var u,p,g,w;for(p=y(Jr(e.b,o),171),u=0,w=new ye(n.j);w.a<w.c.c.length;)g=y(de(w),113),p[g.d.p]&&++u;return u}i(iOt,"blc");function Ypn(e,n,o,u){var p,g,w;return p=!1,M4n(e.f,o,u)&&(wgn(e.f,e.a[n][o],e.a[n][u]),g=e.a[n],w=g[u],g[u]=g[o],g[o]=w,p=!0),p}i(Ypn,"Cgc");function Xpn(e,n){var o,u,p;for(u=new nn(cn(Ra(e).a.Jc(),new B));Nn(u);)if(o=y(vn(u),17),p=o.d.i,p.c==n)return!1;return!0}i(Xpn,"TCc");function Kpn(e){var n;n=e.a;do n=y(vn(new nn(cn(Ra(n).a.Jc(),new B))),17).d.i,n.k==(Yr(),bs)&&Nt(e.e,n);while(n.k==(Yr(),bs))}i(Kpn,"j7b");function Jpn(){return Error.stackTraceLimit>0?(d.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}i(Jpn,"dA");function Nhe(e){var n;e.c!=0&&(n=y(Wt(e.a,e.b),295),n.b==1?(++e.b,e.b<e.a.c.length&&kxt(y(Wt(e.a,e.b),295))):--n.b,--e.c)}i(Nhe,"ngc");function Ohe(e,n){for(var o=0;!n[o]||n[o]=="";)o++;for(var u=n[o++];o<n.length;o++)!n[o]||n[o]==""||(u+=e+n[o]);return u}i(Ohe,"Oeb");function aOt(e){var n,o;return n=y(an(e.a,4),129),n!=null?(o=tt(Jye,zge,415,n.length,0,1),$c(n,0,o,0,n.length),o):Lir}i(aOt,"bLd");function sOt(e){var n,o,u,p,g;if(e==null)return null;for(g=new Pt,o=uhe(e),u=0,p=o.length;u<p;++u)n=o[u],Nt(g,ru(n,!0));return g}i(sOt,"xle");function oOt(e){var n,o,u,p,g;if(e==null)return null;for(g=new Pt,o=uhe(e),u=0,p=o.length;u<p;++u)n=o[u],Nt(g,ru(n,!0));return g}i(oOt,"Ale");function lOt(e){var n,o,u,p,g;if(e==null)return null;for(g=new Pt,o=uhe(e),u=0,p=o.length;u<p;++u)n=o[u],Nt(g,ru(n,!0));return g}i(lOt,"Ble");function Jd(e,n,o){var u,p,g,w;for(g=n+o,ko(n,g,e.length),w="",p=n;p<g;)u=d.Math.min(p+1e4,g),w+=Uan(e.slice(p,u)),p=u;return w}i(Jd,"Sgb");function Qpn(e,n){return Wg(),Wg(),$p(Cv),(d.Math.abs(e-n)<=Cv||e==n||isNaN(e)&&isNaN(n)?0:e<n?-1:e>n?1:V2(isNaN(e),isNaN(n)))>0}i(Qpn,"LEb");function z_e(e,n){return Wg(),Wg(),$p(Cv),(d.Math.abs(e-n)<=Cv||e==n||isNaN(e)&&isNaN(n)?0:e<n?-1:e>n?1:V2(isNaN(e),isNaN(n)))<0}i(z_e,"NEb");function cOt(e,n){return Wg(),Wg(),$p(Cv),(d.Math.abs(e-n)<=Cv||e==n||isNaN(e)&&isNaN(n)?0:e<n?-1:e>n?1:V2(isNaN(e),isNaN(n)))<=0}i(cOt,"MEb");function U_e(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}i(U_e,"OJb");function V1(){V1=U,$v=new vq(wg,0),uje=new vq("NODES_AND_EDGES",1),d1e=new vq("PREFER_EDGES",2),p1e=new vq("PREFER_NODES",3)}i(V1,"_zc");function V_e(e,n,o,u,p,g){this.a=e,this.c=n,this.b=o,this.f=u,this.d=p,this.e=g,this.c>0&&this.b>0&&(this.g=dY(this.c,this.b,this.a))}i(V_e,"i7c");function Zpn(e,n){var o=e.a,u;n=String(n),o.hasOwnProperty(n)&&(u=o[n]);var p=(nhe(),f0e)[typeof u],g=p?p(u):a_e(typeof u);return g}i(Zpn,"jC");function W7(e){var n,o,u;if(u=null,n=am in e.a,o=!n,o)throw xe(new j0("Every element must have an id."));return u=u6(M1(e,am)),u}i(W7,"QAd");function Hx(e){var n,o;for(o=PBt(e),n=null;e.c==2;)qi(e),n||(n=(Xi(),Xi(),++Za,new A9(2)),pw(n,o),o=n),o.Hm(PBt(e));return o}i(Hx,"bpe");function aK(e,n){var o,u,p;return e.Zj(),u=n==null?0:Aa(n),p=(u&Ui)%e.d.length,o=T9e(e,p,u,n),o?(cIt(e,o),o.kd()):null}i(aK,"AMd");function uOt(e,n){return e.e>n.e?1:e.e<n.e?-1:e.d>n.d?e.e:e.d<n.d?-n.e:e.e*QLe(e.a,n.a,e.d)}i(uOt,"$hb");function hOt(e){return e>=48&&e<48+d.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}i(hOt,"neb");function egn(e,n){if(n.c==e)return n.d;if(n.d==e)return n.c;throw xe(new rn("Input edge is not connected to the input port."))}i(egn,"mEc");function X0(e,n){if(e.a<0)throw xe(new El("Did not call before(...) or after(...) before calling add(...)."));return FAe(e,e.a,n),e}i(X0,"hcd");function fOt(e,n){var o,u,p;if(e.c)$x(e.c,n);else for(o=n-pf(e),p=new ye(e.a);p.a<p.c.c.length;)u=y(de(p),167),fOt(u,pf(u)+o)}i(fOt,"Xod");function dOt(e,n){var o,u,p;if(e.c)Gx(e.c,n);else for(o=n-ph(e),p=new ye(e.d);p.a<p.c.c.length;)u=y(de(p),167),dOt(u,ph(u)+o)}i(dOt,"Yod");function W_e(e){return UY(),Ge(e,166)?y(Jr(nz,iYt),296).Qg(e):Kc(nz,mf(e))?y(Jr(nz,mf(e)),296).Qg(e):null}i(W_e,"WGd");function Nu(e){var n,o;return(e.Db&32)==0&&(o=(n=y(an(e,16),29),On(n||e.fi())-On(e.fi())),o!=0&&n6(e,32,tt(Fs,Fr,1,o,5,1))),e}i(Nu,"sud");function n6(e,n,o){var u;(e.Db&n)!=0?o==null?vvn(e,n):(u=rfe(e,n),u==-1?e.Eb=o:as(K5(e.Eb),u,o)):o!=null&&$wn(e,n,o)}i(n6,"wud");function tgn(e,n,o,u){var p,g;n.c.length!=0&&(p=M2n(o,u),g=jbn(n),ts(yX(new Er(null,new Rr(g,1)),new qmt),new P7t(e,o,p,u)))}i(tgn,"cQc");function rgn(e,n){var o,u,p,g;return u=e.a.length-1,o=n-e.b&u,g=e.c-n&u,p=e.c-e.b&u,y6t(o<p),o>=g?(odn(e,n),-1):(ldn(e,n),1)}i(rgn,"Blb");function ngn(e,n){var o,u;for(o=(un(n,e.length),e.charCodeAt(n)),u=n+1;u<e.length&&(un(u,e.length),e.charCodeAt(u)==o);)++u;return u-n}i(ngn,"tA");function H_e(e){var n,o;switch(o=e.Nc(),o.length){case 0:return uY(),l0e;case 1:return n=o[0],new Yle(oi(n));default:return new rue(upn(o))}}i(H_e,"wm");function q_e(e){switch(typeof e){case bde:return Vy(e);case sMe:return E5(e);case g6:return O6t(e);default:return e==null?0:Sx(e)}}i(q_e,"CDb");function ign(e){if(sK(MR,e))return qr(),UR;if(sK(wge,e))return qr(),Dv;throw xe(new rn("Expecting true or false"))}i(ign,"S8d");function agn(e,n){return e.e<n.e?-1:e.e>n.e?1:e.f<n.f?-1:e.f>n.f?1:Aa(e)-Aa(n)}i(agn,"VJc");function pOt(e,n){var o;return Qe(n)===Qe(e)?!0:!Ge(n,22)||(o=y(n,22),o.gc()!=e.gc())?!1:e.Hc(o)}i(pOt,"Se");function sK(e,n){return Ur(e),n==null?!1:Cr(e,n)?!0:e.length==n.length&&Cr(e.toLowerCase(),n.toLowerCase())}i(sK,"wgb");function o3(e){var n,o;return eu(e,-129)>0&&eu(e,128)<0?(f8t(),n=mi(e)+128,o=rBe[n],!o&&(o=rBe[n]=new h5e(e)),o):new h5e(e)}i(o3,"Rfb");function sgn(e){var n,o;for(o=new ye(e.a.b);o.a<o.c.c.length;)if(n=y(de(o),70),Kt(Xt(oe(n,(Bt(),wE)))))return!0;return!1}i(sgn,"vhc");function ogn(e){var n;return e.b||FQr(e,(n=Qtn(e.e,e.a),!n||!Cr(wge,bg((!n.b&&(n.b=new df((Dr(),Zo),mc,n)),n.b),"qualified")))),e.c}i(ogn,"Hde");function i6(){i6=U,IM=new pq(wg,0),WBe=new pq("INSIDE_PORT_SIDE_GROUPS",1),F0e=new pq("GROUP_MODEL_ORDER",2),$0e=new pq(ope,3)}i(i6,"yUb");function oK(e){var n,o,u;if(u=e.Gh(),!u)for(n=0,o=e.Mh();o;o=o.Mh()){if(++n>Wde)return o.Nh();if(u=o.Gh(),u||o==e)break}return u}i(oK,"dtd");function lgn(e,n,o){var u,p,g;return u=y(je(Yh(e.a),n),87),g=(p=u.c,p||(Dr(),b0)),(g.Sh()?gv(e.b,y(g,52)):g)==o?YK(u):k7(u,o),g}i(lgn,"Q2d");function gOt(e,n,o){var u,p,g;for(g=new ye(o.a);g.a<g.c.c.length;)p=y(de(g),225),u=new $q(y(Jr(e.a,p.b),68)),Nt(n.a,u),gOt(e,u,p)}i(gOt,"vad");function mOt(e,n,o){var u,p,g;u=n.c.p,g=n.p,e.b[u][g]=new X7t(e,n),o&&(e.a[u][g]=new KTt(n),p=y(oe(n,(Tt(),bT)),9),p&&Sr(e.d,p,n))}i(mOt,"GFc");function cgn(e,n){(!n&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,e)}i(cgn,"wDb");function ugn(e,n,o,u){u==e,y(o.b,68),y(o.b,68),y(u.b,68),y(u.b,68).c.b,MRe(u,n,e)}i(ugn,"gMb");function Y_e(e,n,o){n.b=d.Math.max(n.b,-o.a),n.c=d.Math.max(n.c,o.a-e.a),n.d=d.Math.max(n.d,-o.b),n.a=d.Math.max(n.a,o.b-e.b)}i(Y_e,"skc");function X_e(e,n,o){this.c=e,this.f=new Pt,this.e=new xo,this.j=new V8e,this.n=new V8e,this.b=n,this.g=new Op(n.c,n.d,n.b,n.a),this.a=o}i(X_e,"nRb");function Phe(e){var n,o,u,p;for(this.a=new Om,this.d=new gs,this.e=0,o=e,u=0,p=o.length;u<p;++u)n=o[u],!this.f&&(this.f=n),aue(this,n)}i(Phe,"ORb");function yOt(e){J0(),e.length==0?(this.e=0,this.d=1,this.a=Se(Ee(pi,1),Pi,30,15,[0])):(this.e=1,this.d=e.length,this.a=e,q9(this))}i(yOt,"nib");function xI(e,n,o){u4t.call(this),this.a=tt(TYt,CMe,216,(yg(),Se(Ee(_3,1),At,237,0,[dc,Cu,pc])).length,0,1),this.b=e,this.d=n,this.c=o}i(xI,"IIb");function hgn(e){var n,o,u,p,g,w;for(w=y(oe(e,(Tt(),aa)),12),dt(w,nL,e.i.n.b),n=q0(e.e),u=n,p=0,g=u.length;p<g;++p)o=u[p],mo(o,w)}i(hgn,"s9b");function fgn(e){var n,o,u,p,g,w;for(o=y(oe(e,(Tt(),aa)),12),dt(o,nL,e.i.n.b),n=q0(e.g),p=n,g=0,w=p.length;g<w;++g)u=p[g],Bo(u,o)}i(fgn,"t9b");function dgn(e,n){Jce();var o,u;for(u=new nn(cn(Y0(e).a.Jc(),new B));Nn(u);)if(o=y(vn(u),17),o.d.i==n||o.c.i==n)return o;return null}i(dgn,"ONc");function pgn(e,n){var o,u;return o=n.ni(e.a),o&&(u=di(bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),Vi)),u!=null)?u:n.ve()}i(pgn,"Nce");function bOt(e,n){var o,u;return o=n.ni(e.a),o&&(u=di(bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),Vi)),u!=null)?u:n.ve()}i(bOt,"Mce");function ggn(e,n){var o,u;return o=Yc(e.a.c.p,n.a.c.p),o!=0?o:(u=Yc(e.a.d.i.p,n.a.d.i.p),u!=0?u:Yc(n.a.d.p,e.a.d.p))}i(ggn,"n1b");function mgn(e,n,o){var u,p,g,w;return g=n.j,w=o.j,g!=w?g.g-w.g:(u=e.f[n.p],p=e.f[o.p],u==0&&p==0?0:u==0?-1:p==0?1:ha(u,p))}i(mgn,"TEc");function ygn(e,n){var o,u,p,g;for(u=0,p=n.gc();u<p;++u)o=n.Rl(u),Ge(o,103)&&(y(o,19).Bb&Tc)!=0&&(g=n.Sl(u),g!=null&&Yfe(e,y(g,57)))}i(ygn,"hie");function bgn(){var e;return dQ!=0&&(e=Date.now(),e-Uqt>2e3&&(Uqt=e,pQ=d.setTimeout(XQr,10))),dQ++==0?(Pun((r6e(),HPe)),!0):!1}i(bgn,"Kz");function vgn(e,n,o){var u;(hYt?(Dpn(e),!0):fYt||pYt?(X8(),!0):dYt&&(X8(),!1))&&(u=new kAt(n),u.b=o,wyn(e,u))}i(vgn,"tAb");function Bhe(e,n){var o;o=!e.A.Gc((vf(),Fw))||e.q==(uo(),zc),e.u.Gc((_h(),ry))?o?zCn(e,n):yzt(e,n):e.u.Gc(qv)&&(o?uCn(e,n):Izt(e,n))}i(Bhe,"TKb");function vOt(e){var n;Qe(St(e,(Ri(),LE)))===Qe((z1(),dee))&&($a(e)?(n=y(St($a(e),LE),347),pa(e,LE,n)):pa(e,LE,RN))}i(vOt,"wbd");function wgn(e,n,o){var u,p;vfe(e.e,n,o,(zt(),on)),vfe(e.i,n,o,bn),e.a&&(p=y(oe(n,(Tt(),aa)),12),u=y(oe(o,aa),12),iue(e.g,p,u))}i(wgn,"Zgc");function wOt(e,n,o){return new Op(d.Math.min(e.a,n.a)-o/2,d.Math.min(e.b,n.b)-o/2,d.Math.abs(e.a-n.a)+o,d.Math.abs(e.b-n.b)+o)}i(wOt,"MUb");function xOt(e){var n;this.d=new Pt,this.j=new xo,this.g=new xo,n=e.g.b,this.f=y(oe(Zs(n),(Bt(),Uf)),86),this.e=He(Xe(uK(n,q3)))}i(xOt,"khc");function TOt(e){this.d=new Pt,this.e=new lv,this.c=tt(pi,Pi,30,(zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on])).length,15,1),this.b=e}i(TOt,"Ahc");function K_e(e,n,o){var u;switch(u=o[e.g][n],e.g){case 1:case 3:return new Lt(0,u);case 2:case 4:return new Lt(u,0);default:return null}}i(K_e,"okc");function xgn(e,n){var o;if(o=RC(e.o,n),o==null)throw xe(new j0("Node did not exist in input."));return X9e(e,n),Vfe(e,n),$9e(e,n,o),null}i(xgn,"gBd");function kOt(e,n){var o,u;for(u=e.a.length,n.length<u&&(n=YH(new Array(u),n)),o=0;o<u;++o)as(n,o,e.a[o]);return n.length>u&&as(n,u,null),n}i(kOt,"vnb");function Zg(e,n){var o,u;for(u=e.c.length,n.length<u&&(n=YH(new Array(u),n)),o=0;o<u;++o)as(n,o,e.c[o]);return n.length>u&&as(n,u,null),n}i(Zg,"kmb");function Fhe(e,n,o,u){var p;if(p=e.length,n>=p)return p;for(n=n>0?n:0;n<p&&!ihe((un(n,e.length),e.charCodeAt(n)),o,u);n++);return n}i(Fhe,"FQd");function COt(e,n,o){var u,p;p=y(qF(n.f),214);try{p.kf(e,o),E7e(n.f,p)}catch(g){throw g=hs(g),Ge(g,101)?(u=g,xe(u)):xe(g)}}i(COt,"xbd");function EOt(e,n,o){var u,p,g,w,k,A;return u=null,k=HIe(rI(),n),g=null,k&&(p=null,A=VIe(k,o),w=null,A!=null&&(w=e.of(k,A)),p=w,g=p),u=g,u}i(EOt,"bCd");function Tgn(e,n,o,u){var p,g,w;return p=new B1(e.e,1,13,(w=n.c,w||(Dr(),b0)),(g=o.c,g||(Dr(),b0)),Xy(e,n),!1),u?u.lj(p):u=p,u}i(Tgn,"E3d");function kgn(e){var n;if(e==null)return null;if(n=o2n(ru(e,!0)),n==null)throw xe(new Ooe("Invalid hexBinary value: '"+e+"'"));return n}i(kgn,"zle");function lK(e,n,o){var u;n.a.length>0&&(Nt(e.b,new GAt(n.a,o)),u=n.a.length,0<u?n.a=Yd(n.a,0,0):0>u&&(n.a+=B5t(tt(Rd,em,30,-u,15,1))))}i(lK,"oA");function SOt(e,n,o){var u,p,g;if(!o[n.d])for(o[n.d]=!0,p=new ye(OC(n));p.a<p.c.c.length;)u=y(de(p),217),g=ZX(u,n),SOt(e,g,o)}i(SOt,"cGb");function AOt(e,n){var o,u,p,g;for(o=0,p=new ye(n.a);p.a<p.c.c.length;)u=y(de(p),9),g=u.o.a+u.d.c+u.d.b+e.j,o=d.Math.max(o,g);return o}i(AOt,"Wmc");function uw(e,n,o){var u,p,g;return p=y(Jr(e.e,n),393),p?(g=n8e(p,o),U5t(e,p),g):(u=new D8e(e,n,o),Oi(e.e,n,u),bRt(u),null)}i(uw,"ltb");function Cgn(e,n){var o;if(o=Jr(e.q,n),o==null)throw xe(new j0("Port did not exist in input."));return X9e(e,n),Vfe(e,n),$9e(e,n,o),null}i(Cgn,"hBd");function $he(){return aJ(),Se(Ee(XYt,1),At,168,0,[qYt,HYt,YYt,FYt,BYt,$Yt,zYt,jYt,GYt,WYt,VYt,UYt,OYt,NYt,PYt,IYt,DYt,MYt,LYt,RYt,_Yt,E0e])}i($he,"SJb");function H7(e){switch(e.g){case 4:return new Lt(0,-1);case 1:return new Lt(1,0);case 2:return new Lt(-1,0);default:return new Lt(0,1)}}i(H7,"USc");function Ghe(e){switch(e.g){case 1:return Ss(),Ed;case 4:return Ss(),Il;case 2:return Ss(),Bl;case 3:return Ss(),p0}return Ss(),g0}i(Ghe,"LUb");function Egn(e){var n;switch(n=e.fj(null),n){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}i(Egn,"FYd");function K0(){K0=U,Or=new bF("PARENTS",0),ds=new bF("NODES",1),Sg=new bF("EDGES",2),cb=new bF("PORTS",3),ey=new bF("LABELS",4)}i(K0,"Ved");function BC(){BC=U,Wv=new wF("DISTRIBUTED",0),Hj=new wF("JUSTIFIED",1),$Ve=new wF("BEGIN",2),LN=new wF(vR,3),GVe=new wF("END",4)}i(BC,"Ald");function Sgn(e,n,o){var u;switch(u=o.q.getFullYear()-Ev+Ev,u<0&&(u=-u),n){case 1:e.a+=u;break;case 2:Um(e,u%100,2);break;default:Um(e,u,n)}}i(Sgn,"sA");function ei(e,n){var o,u;if(Hk(n,e.b),n>=e.b>>1)for(u=e.c,o=e.b;o>n;--o)u=u.b;else for(u=e.a.a,o=0;o<n;++o)u=u.a;return new TAt(e,n,u)}i(ei,"Ztb");function ROt(e){this.b=new Pt,this.e=new Pt,this.d=e,this.a=!W8(Hi(new Er(null,new jk(new Kg(e.b))),new B8(new w0t))).zd((z2(),L6))}i(ROt,"Fhc");function Agn(e){var n;e.g&&(e.c.ig()?e.f:e.a)&&(n=e.c.ig()?e.f:e.a,tIe(n.a,e.o,!0),tIe(n.a,e.o,!1),dt(e.o,(Bt(),Qa),(uo(),Bw)))}i(Agn,"TGc");function LOt(e,n){var o,u,p;p=n.d.i,u=p.k,!(u==(Yr(),Ya)||u==u0)&&(o=new nn(cn(Ra(p).a.Jc(),new B)),Nn(o)&&Oi(e.k,n,y(vn(o),17)))}i(LOt,"xRc");function Rgn(e,n){return $1(),ha((e.a.b==0?new Lt(e.c.e.a,e.c.e.b):y(t7(e.a),8)).b,(n.a.b==0?new Lt(n.c.e.a,n.c.e.b):y(t7(n.a),8)).b)}i(Rgn,"xZc");function Lgn(e,n){return $1(),ha((e.a.b==0?new Lt(e.c.e.a,e.c.e.b):y(t7(e.a),8)).a,(n.a.b==0?new Lt(n.c.e.a,n.c.e.b):y(t7(n.a),8)).a)}i(Lgn,"yZc");function _gn(e,n){return $1(),ha((e.a.b==0?new Lt(e.b.e.a,e.b.e.b):y(Mp(e.a),8)).a,(n.a.b==0?new Lt(n.b.e.a,n.b.e.b):y(Mp(n.a),8)).a)}i(_gn,"BZc");function Dgn(e,n){return $1(),ha((e.a.b==0?new Lt(e.b.e.a,e.b.e.b):y(Mp(e.a),8)).b,(n.a.b==0?new Lt(n.b.e.a,n.b.e.b):y(Mp(n.a),8)).b)}i(Dgn,"zZc");function jhe(e,n){var o,u,p;return u=Nr(e.Ah(),n),o=n-e.gi(),o<0?(p=e.Fh(u),p>=0?e.Th(p):Lfe(e,u)):o<0?Lfe(e,u):y(u,69).uk().zk(e,e.ei(),o)}i(jhe,"gtd");function _Ot(e){var n,o,u;for(u=(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),e.o),o=u.c.Jc();o.e!=o.i.gc();)n=y(o.Wj(),45),n.kd();return i$(u)}i(_Ot,"bvd");function Vt(e){var n;if(Ge(e.a,4)){if(n=W_e(e.a),n==null)throw xe(new El(oWt+e.b+"'. "+sWt+(_1(iz),iz.k)+ePe));return n}else return e.a}i(Vt,"BEd");function Ign(e){var n;if(e==null)return null;if(n=KCn(ru(e,!0)),n==null)throw xe(new Ooe("Invalid base64Binary value: '"+e+"'"));return n}i(Ign,"vle");function _n(e){var n;try{return n=e.i.Xb(e.e),e.Vj(),e.g=e.e++,n}catch(o){throw o=hs(o),Ge(o,99)?(e.Vj(),xe(new Hl)):xe(o)}}i(_n,"sKd");function zhe(e){var n;try{return n=e.c.Ti(e.e),e.Vj(),e.g=e.e++,n}catch(o){throw o=hs(o),Ge(o,99)?(e.Vj(),xe(new Hl)):xe(o)}}i(zhe,"OKd");function cK(e){var n,o,u,p;for(p=0,o=0,u=e.length;o<u;o++)n=(un(o,e.length),e.charCodeAt(o)),n>=64&&n<128&&(p=H0(p,$m(1,n-64)));return p}i(cK,"IQd");function uK(e,n){var o,u;return u=null,ea(e,(Ri(),Q6))&&(o=y(oe(e,Q6),105),o.nf(n)&&(u=o.mf(n))),u==null&&Zs(e)&&(u=oe(Zs(e),n)),u}i(uK,"RXb");function Mgn(e,n){var o;return o=y(oe(e,(Bt(),Dl)),79),Fle(n,XXt)?o?gf(o):(o=new Vh,dt(e,Dl,o)):o&&dt(e,Dl,null),o}i(Mgn,"OVb");function Ngn(e,n){var o,u,p;for(p=new vu(n.gc()),u=n.Jc();u.Ob();)o=y(u.Pb(),294),o.c==o.f?Z7(e,o,o.c):Yyn(e,o)||tn(p.c,o);return p}i(Ngn,"$6b");function DOt(e,n){var o,u,p;for(o=e.o,p=y(y(oa(e.r,n),22),83).Jc();p.Ob();)u=y(p.Pb(),115),u.e.a=P0n(u,o.a),u.e.b=o.b*He(Xe(u.b.mf(TQ)))}i(DOt,"dLb");function Ogn(e,n){var o,u,p,g;return p=e.k,o=He(Xe(oe(e,(Tt(),vT)))),g=n.k,u=He(Xe(oe(n,vT))),g!=(Yr(),ks)?-1:p!=ks?1:o==u?0:o<u?-1:1}i(Ogn,"V2b");function Pgn(e,n){var o,u;return o=y(y(Jr(e.g,n.a),49).a,68),u=y(y(Jr(e.g,n.b),49).a,68),cv(n.a,n.b)-cv(n.a,vAe(o.b))-cv(n.b,vAe(u.b))}i(Pgn,"H7c");function q7(e,n){var o,u;if(++e.j,n!=null&&(o=(u=e.a.Cb,Ge(u,100)?y(u,100).qh():null),lvn(n,o))){n6(e.a,4,o);return}n6(e.a,4,y(n,129))}i(q7,"Obe");function hK(e){switch(C6e(),this.c=new Pt,this.d=e,e.g){case 0:case 2:this.a=S7e(VBe),this.b=qa;break;case 3:case 1:this.a=VBe,this.b=Ys}}i(hK,"tTb");function Bgn(e){var n;I5(y(oe(e,(Bt(),Qa)),102))&&(n=e.b,EFt((_r(0,n.c.length),y(n.c[0],25))),EFt(y(Wt(n,n.c.length-1),25)))}i(Bgn,"Q2b");function Fgn(e,n){n.Tg("Self-Loop post-processing",1),ts(Hi(Hi(jl(new Er(null,new Rr(e.b,16)),new bgt),new vgt),new wgt),new xgt),n.Ug()}i(Fgn,"obc");function IOt(e,n,o){var u,p;if(e.c)Xh(e.c,e.c.i+n),Kh(e.c,e.c.j+o);else for(p=new ye(e.b);p.a<p.c.c.length;)u=y(de(p),167),IOt(u,n,o)}i(IOt,"Zod");function $gn(e){var n,o,u;for(u=e.c.a,e.p=(oi(u),new Ah(u)),o=new ye(u);o.a<o.c.c.length;)n=y(de(o),9),n.p=ybn(n).a;Ir(),zs(e.p,new gmt)}i($gn,"uEc");function Ggn(e,n){var o,u;if(e.j.length!=n.j.length)return!1;for(o=0,u=e.j.length;o<u;o++)if(!Cr(e.j[o],n.j[o]))return!1;return!0}i(Ggn,"vQd");function MOt(e,n){Ir();var o,u,p,g;for(o=e,g=n,Ge(e,22)&&!Ge(n,22)&&(o=n,g=e),p=o.Jc();p.Ob();)if(u=p.Pb(),g.Gc(u))return!1;return!0}i(MOt,"Knb");function jgn(e,n,o,u){if(n.a<u.a)return!0;if(n.a==u.a){if(n.b<u.b)return!0;if(n.b==u.b&&e.b>o.b)return!0}return!1}i(jgn,"_Pc");function NOt(e){var n;return n=new Yb,n.a+="n",e.k!=(Yr(),Ya)&&Li(Li((n.a+="(",n),Ule(e.k).toLowerCase()),")"),Li((n.a+="_",n),G$(e)),n.a}i(NOt,"PYb");function TI(){TI=U,ije=new pF(uOe,0),u1e=new pF(fpe,1),h1e=new pF("LINEAR_SEGMENTS",2),eN=new pF("BRANDES_KOEPF",3),hL=new pF(DVt,4)}i(TI,"yzc");function a6(e,n,o,u){var p;return o>=0?e.Ph(n,o,u):(e.Mh()&&(u=(p=e.Ch(),p>=0?e.xh(u):e.Mh().Qh(e,-1-p,null,u))),e.zh(n,o,u))}i(a6,"etd");function J_e(e,n){switch(n){case 7:!e.e&&(e.e=new zr(Cs,e,7,4)),Kn(e.e);return;case 8:!e.d&&(e.d=new zr(Cs,e,8,5)),Kn(e.d);return}P_e(e,n)}i(J_e,"twd");function pa(e,n,o){return o==null?(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),aK(e.o,n)):(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),U$(e.o,n,o)),e}i(pa,"evd");function Bc(e,n){var o;o=e.dd(n);try{return o.Pb()}catch(u){throw u=hs(u),Ge(u,112)?xe(new yu("Can't get element "+n)):xe(u)}}i(Bc,"au");function OOt(e,n){var o;switch(o=y(yl(e.b,n),127).n,n.g){case 1:e.t>=0&&(o.d=e.t);break;case 3:e.t>=0&&(o.a=e.t)}e.C&&(o.b=e.C.b,o.c=e.C.c)}i(OOt,"jKb");function zgn(e){var n;n=e.a;do n=y(vn(new nn(cn(os(n).a.Jc(),new B))),17).c.i,n.k==(Yr(),bs)&&e.b.Ec(n);while(n.k==(Yr(),bs));e.b=bf(e.b)}i(zgn,"i7b");function POt(e,n){var o,u,p;for(p=e,u=new nn(cn(os(n).a.Jc(),new B));Nn(u);)o=y(vn(u),17),o.c.i.c&&(p=d.Math.max(p,o.c.i.c.p));return p}i(POt,"mDc");function Ugn(e,n){var o,u,p;for(p=0,u=y(y(oa(e.r,n),22),83).Jc();u.Ob();)o=y(u.Pb(),115),p+=o.d.d+o.b.Kf().b+o.d.a,u.Ob()&&(p+=e.w);return p}i(Ugn,"lLb");function Vgn(e,n){var o,u,p;for(p=0,u=y(y(oa(e.r,n),22),83).Jc();u.Ob();)o=y(u.Pb(),115),p+=o.d.b+o.b.Kf().a+o.d.c,u.Ob()&&(p+=e.w);return p}i(Vgn,"dKb");function BOt(e){var n,o,u,p;if(u=0,p=p3(e),p.c.length==0)return 1;for(o=new ye(p);o.a<o.c.c.length;)n=y(de(o),26),u+=BOt(n);return u}i(BOt,"x_c");function FOt(e){var n,o;for(this.b=new Pt,this.c=e,this.a=!1,o=new ye(e.a);o.a<o.c.c.length;)n=y(de(o),9),this.a=this.a|n.k==(Yr(),Ya)}i(FOt,"VUb");function Wgn(e,n,o){var u,p,g,w;return u=e.bd(n),u!=-1&&(e.Nj()?(g=e.Oj(),w=oY(e,u),p=e.Gj(4,w,null,u,g),o?o.lj(p):o=p):oY(e,u)),o}i(Wgn,"jId");function qo(e,n,o){var u,p,g,w;return u=e.bd(n),u!=-1&&(e.Nj()?(g=e.Oj(),w=s6(e,u),p=e.Gj(4,w,null,u,g),o?o.lj(p):o=p):s6(e,u)),o}i(qo,"IJd");function Hgn(e,n,o,u){var p,g,w;o.Uh(n)&&(tl(),Due(n)?(p=y(o.Jh(n),163),ygn(e,p)):(g=(w=n,w?y(u,52).di(w):null),g&&IJr(o.Jh(n),g)))}i(Hgn,"eie");function fK(e,n,o,u){var p,g,w;return g=Nr(e.Ah(),n),p=n-e.gi(),p<0?(w=e.Fh(g),w>=0?e.Ih(w,o,!0):Jx(e,g,o)):y(g,69).uk().wk(e,e.ei(),p,o,u)}i(fK,"_sd");function qgn(e,n,o,u){var p,g;g=n.nf((Ri(),DE))?y(n.mf(DE),22):e.j,p=jdn(g),p!=(aJ(),E0e)&&(o&&!U_e(p)||e9e(l2n(e,p,u),n))}i(qgn,"FKb");function Uhe(e,n){return lo(e)?!!Pqt[n]:e.Qm?!!e.Qm[n]:_k(e)?!!Oqt[n]:Lk(e)?!!Nqt[n]:!1}i(Uhe,"ID");function Ygn(e){switch(e.g){case 1:return zx(),QG;case 3:return zx(),JG;case 2:return zx(),A0e;case 4:return zx(),S0e;default:return null}}i(Ygn,"K0b");function Xgn(e,n,o){if(e.e)switch(e.b){case 1:usn(e.c,n,o);break;case 0:hsn(e.c,n,o)}else e_t(e.c,n,o);e.a[n.p][o.p]=e.c.i,e.a[o.p][n.p]=e.c.e}i(Xgn,"vgc");function $Ot(e){var n,o;if(e==null)return null;for(o=tt(e1,Dt,199,e.length,0,2),n=0;n<o.length;n++)o[n]=y(pcn(e[n],e[n].length),199);return o}i($Ot,"uIc");function GOt(e){var n;n=y(oe(e,(uc(),Zje)),104),dt(e,(Ca(),pL),new Lt(0,0)),FGt(new r$,e,n.b-He(Xe(oe(e,L1e))),n.d-He(Xe(oe(e,_1e))))}i(GOt,"lSc");function dK(e){var n;if(hhe(e))return wY(e),e.sl()&&(n=DI(e.e,e.b,e.c,e.a,e.j),e.j=n),e.g=e.a,++e.a,++e.c,e.i=0,e.j;throw xe(new Hl)}i(dK,"Qfe");function jOt(e,n,o){o.Tg("Compound graph preprocessor",1),e.a=new Ox,dzt(e,n,null),k3n(e,n),q2n(e),dt(n,(Tt(),m$e),e.a),e.a=null,Sc(e.b),o.Ug()}i(jOt,"cWb");function zOt(e,n,o){var u,p,g;for(p=new nn(cn((n?os(e):Ra(e)).a.Jc(),new B));Nn(p);)u=y(vn(p),17),g=n?u.c.i:u.d.i,g.k==(Yr(),_c)&&Us(g,o)}i(zOt,"Q7b");function UOt(e,n,o){var u,p,g;return u=n.i.j.c.length,ea(n,(Tt(),Ea))&&ea(o,Ea)?(p=Qx(n,o,e.b,u),g=Qx(o,n,e.b,u),p<g?-1:p>g?1:0):0}i(UOt,"Klc");function l3(){l3=U,DZ=new bq(wg,0),l1e=new bq("PORT_POSITION",1),kE=new bq("NODE_SIZE_WHERE_SPACE_PERMITS",2),TE=new bq("NODE_SIZE",3)}i(l3,"lzc");function Kgn(e,n){var o,u,p;for(n.Tg("Untreeify",1),o=y(oe(e,(Ca(),Vje)),16),p=o.Jc();p.Ob();)u=y(p.Pb(),65),_i(u.b.d,u),_i(u.c.b,u);n.Ug()}i(Kgn,"oWc");function Vm(){Vm=U,xye=new y9("AUTOMATIC",0),Nj=new y9(w6,1),Oj=new y9(x6,2),oee=new y9("TOP",3),aee=new y9(SMe,4),see=new y9(vR,5)}i(Vm,"Lgd");function FC(e,n,o){var u,p;if(p=e.gc(),n>=p)throw xe(new Pk(n,p));if(e.Qi()&&(u=e.bd(o),u>=0&&u!=n))throw xe(new rn(zG));return e.Vi(n,o)}i(FC,"vFd");function Xy(e,n){var o,u,p;if(p=xPt(e,n),p>=0)return p;if(e.ml()){for(u=0;u<e.i;++u)if(o=e.nl(y(e.g[u],57)),Qe(o)===Qe(n))return u}return-1}i(Xy,"sXd");function Q_e(e,n){if(this.a=y(oi(e),254),this.b=y(oi(n),254),e.Cd(n)>0||e==(_oe(),i0e)||n==(Loe(),a0e))throw xe(new rn("Invalid range: "+QLt(e,n)))}i(Q_e,"ox");function Z_e(e,n,o,u){iR();var p,g;for(p=0,g=0;g<o;g++)p=Ho($o(co(n[g],ll),co(u,ll)),co(mi(p),ll)),e[g]=mi(p),p=Y2(p,32);return mi(p)}i(Z_e,"Zib");function eDe(e,n,o){var u,p;for(p=0,u=0;u<C0e;u++)p=d.Math.max(p,ghe(e.a[n.g][u],o));return n==(yg(),Cu)&&e.b&&(p=d.Math.max(p,e.b.b)),p}i(eDe,"VHb");function pK(e,n){var o,u;if(GAe(n>0),(n&-n)==n)return Po(n*Qh(e,31)*4656612873077393e-25);do o=Qh(e,31),u=o%n;while(o-u+(n-1)<0);return Po(u)}i(pK,"Qvb");function Jgn(e,n){var o,u,p;for(o=Ex(new G2,e),p=new ye(n);p.a<p.c.c.length;)u=y(de(p),124),Up(Dp(_p(Ip(Lp(new Vd,0),0),o),u));return o}i(Jgn,"bGb");function F$(e,n,o){var u,p;for(Afn(e,n-e.s,o-e.t),p=new ye(e.n);p.a<p.c.c.length;)u=y(de(p),208),hJr(u,u.e+n-e.s),fJr(u,u.f+o-e.t);e.s=n,e.t=o}i(F$,"Q6c");function Qgn(e,n,o){switch(o.g){case 1:e.a=n.a/2,e.b=0;break;case 2:e.a=n.a,e.b=n.b/2;break;case 3:e.a=n.a/2,e.b=n.b;break;case 4:e.a=0,e.b=n.b/2}}i(Qgn,"KXb");function $$(e,n,o,u){var p,g;for(p=n;p<e.c.length;p++)if(g=(_r(p,e.c.length),y(e.c[p],12)),o.Mb(g))tn(u.c,g);else return p;return e.c.length}i($$,"$hc");function Zgn(e){var n,o,u;for(u=y(oa(e.a,(c3(),KQ)),16).Jc();u.Ob();)o=y(u.Pb(),107),n=uDe(o),c7(e,o,n[0],(jx(),gT),0),c7(e,o,n[1],mT,1)}i(Zgn,"jic");function e0n(e){var n,o,u;for(u=y(oa(e.a,(c3(),JQ)),16).Jc();u.Ob();)o=y(u.Pb(),107),n=uDe(o),c7(e,o,n[0],(jx(),gT),0),c7(e,o,n[1],mT,1)}i(e0n,"kic");function Vhe(e){switch(e.g){case 0:return null;case 1:return new PIt;case 2:return new X5e;default:throw xe(new rn(sge+(e.f!=null?e.f:""+e.g)))}}i(Vhe,"d2c");function VOt(e){var n;return n=He(Xe(St(e,(Ri(),n4))))*d.Math.sqrt((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a).i),new Lt(n,n/He(Xe(St(e,vL))))}i(VOt,"Und");function Whe(e){var n;return e.f&&e.f.Sh()&&(n=y(e.f,52),e.f=y(gv(e,n),84),e.f!=n&&(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,9,8,n,e.f))),e.f}i(Whe,"Zwd");function Hhe(e){var n;return e.i&&e.i.Sh()&&(n=y(e.i,52),e.i=y(gv(e,n),84),e.i!=n&&(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,9,7,n,e.i))),e.i}i(Hhe,"$wd");function rl(e){var n;return e.b&&(e.b.Db&64)!=0&&(n=e.b,e.b=y(gv(e,n),19),e.b!=n&&(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,9,21,n,e.b))),e.b}i(rl,"k4d");function gK(e,n){var o,u,p;e.d==null?(++e.e,++e.f):(u=n.yi(),nwn(e,e.f+1),p=(u&Ui)%e.d.length,o=e.d[p],!o&&(o=e.d[p]=e.bk()),o.Ec(n),++e.f)}i(gK,"jMd");function tDe(e,n,o){var u;return n.rk()?!1:n.Gk()!=-2?(u=n.gk(),u==null?o==null:ta(u,o)):n.ok()==e.e.Ah()&&o==null}i(tDe,"Zee");function mK(){var e;Of(16,oUt),e=EIt(16),this.b=tt(s0e,bG,309,e,0,1),this.c=tt(s0e,bG,309,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}i(mK,"Co");function e0(e){s8e.call(this),this.k=(Yr(),Ya),this.j=(Of(6,w3),new vu(6)),this.b=(Of(2,w3),new vu(2)),this.d=new Coe,this.f=new U5e,this.a=e}i(e0,"QYb");function t0n(e){var n,o,u,p,g;for(o=0,p=new ye(e.a);p.a<p.c.c.length;)u=y(de(p),124),u.d=o++;return n=nyn(e),g=null,n.c.length>1&&(g=Jgn(e,n)),g}i(t0n,"eGb");function r0n(e){var n,o,u;for(n=0,u=new ye(e.c.a);u.a<u.c.c.length;)o=y(de(u),9),n+=dg(new nn(cn(Ra(o).a.Jc(),new B)));return n/e.c.a.c.length}i(r0n,"xEc");function qhe(e){var n,o;for(o=new Sn(e);o.e!=o.i.gc();)if(n=y(_n(o),87),n.e||(!n.d&&(n.d=new Es(dl,n,1)),n.d).i!=0)return!0;return!1}i(qhe,"qYd");function Yhe(e){var n,o;for(o=new Sn(e);o.e!=o.i.gc();)if(n=y(_n(o),87),n.e||(!n.d&&(n.d=new Es(dl,n,1)),n.d).i!=0)return!0;return!1}i(Yhe,"B3d");function WOt(e,n,o,u){var p,g,w;for(p=y(oa(u?e.a:e.b,n),22),w=p.Jc();w.Ob();)if(g=y(w.Pb(),26),VK(e,o,g))return!0;return!1}i(WOt,"d0c");function n0n(e,n){for(var o,u;e.Ob();)if(!n.Ob()||(o=e.Pb(),u=n.Pb(),!(Qe(o)===Qe(u)||o!=null&&ta(o,u))))return!1;return!n.Ob()}i(n0n,"tr");function i0n(e){var n,o;e.c.length<=1||(n=Z$t(e,(zt(),Fn)),$Bt(e,y(n.a,15).a,y(n.b,15).a),o=Z$t(e,on),$Bt(e,y(o.a,15).a,y(o.b,15).a))}i(i0n,"wac");function a0n(e,n,o){var u,p;for(p=e.a.b,u=p.c.length;u<o;u++)W2(p,p.c.length,new Nc(e.a));Us(n,(_r(o-1,p.c.length),y(p.c[o-1],25))),e.b[n.p]=o}i(a0n,"PDc");function HOt(e,n){var o,u,p;for(e.b[n.g]=1,u=ei(n.d,0);u.b!=u.d.c;)o=y(Qn(u),65),p=o.c,e.b[p.g]==1?_i(e.a,o):e.b[p.g]==2?e.b[p.g]=1:HOt(e,p)}i(HOt,"tYc");function Xhe(){Xhe=U,SUe=(jfe(),TUe),EUe=new Cx(8),new To((Ri(),r1),EUe),new To(ub,8),Qrr=wUe,kUe=Vrr,CUe=Wrr,Jrr=new To(Bj,(qr(),!1))}i(Xhe,"P9c");function s0n(e,n,o){var u;o.Tg("Shrinking tree compaction",1),Kt(Xt(oe(n,(_7(),_M))))?(Ahn(e,n.f),l9t(n.f,(u=n.c,u))):l9t(n.f,n.c),o.Ug()}i(s0n,"Vad");function rDe(e,n,o,u){switch(n){case 7:return!e.e&&(e.e=new zr(Cs,e,7,4)),e.e;case 8:return!e.d&&(e.d=new zr(Cs,e,8,5)),e.d}return S_e(e,n,o,u)}i(rDe,"owd");function Khe(e){var n;return e.a&&e.a.Sh()&&(n=y(e.a,52),e.a=y(gv(e,n),143),e.a!=n&&(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,9,5,n,e.a))),e.a}i(Khe,"u0d");function hw(e){return e<48||e>102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}i(hw,"ipe");function Jhe(e,n){if(e==null)throw xe(new y5("null key in entry: null="+n));if(n==null)throw xe(new y5("null value in entry: "+e+"=null"))}i(Jhe,"ak");function qOt(e,n){var o;return o=Se(Ee(po,1),vl,30,15,[ghe(e.a[0],n),ghe(e.a[1],n),ghe(e.a[2],n)]),e.d&&(o[0]=d.Math.max(o[0],o[2]),o[2]=o[0]),o}i(qOt,"FIb");function YOt(e,n){var o;return o=Se(Ee(po,1),vl,30,15,[WX(e.a[0],n),WX(e.a[1],n),WX(e.a[2],n)]),e.d&&(o[0]=d.Math.max(o[0],o[2]),o[2]=o[0]),o}i(YOt,"GIb");function nDe(e,n,o){I5(y(oe(n,(Bt(),Qa)),102))||(gRe(e,n,Ky(n,o)),gRe(e,n,Ky(n,(zt(),Fn))),gRe(e,n,Ky(n,sn)),Ir(),zs(n.j,new qTt(e)))}i(nDe,"PEc");function XOt(e){var n,o;for(e.c||i4n(e),o=new Vh,n=new ye(e.a),de(n);n.a<n.c.c.length;)_i(o,y(de(n),410).a);return In(o.b!=0),dd(o,o.c.b),o}i(XOt,"bRc");function o0n(e,n,o){var u,p,g,w,k;for(k=e.r+n,e.r+=n,e.d+=o,u=o/e.n.c.length,p=0,w=new ye(e.n);w.a<w.c.c.length;)g=y(de(w),208),Zvn(g,k,u,p),++p}i(o0n,"K6c");function l0n(e){var n,o,u;for(e.b.a.$b(),e.a=tt(wQ,Fr,60,e.c.c.a.b.c.length,0,1),n=0,u=new ye(e.c.c.a.b);u.a<u.c.c.length;)o=y(de(u),60),o.f=n++}i(l0n,"DFb");function c0n(e){var n,o,u;for(e.b.a.$b(),e.a=tt(N0e,Fr,82,e.c.a.a.b.c.length,0,1),n=0,u=new ye(e.c.a.a.b);u.a<u.c.c.length;)o=y(de(u),82),o.i=n++}i(c0n,"xSb");function u0n(e){var n,o,u,p,g;for(u=new ye(e.b);u.a<u.c.c.length;)for(o=y(de(u),25),n=0,g=new ye(o.a);g.a<g.c.c.length;)p=y(de(g),9),p.p=n++}i(u0n,"K1b");function h0n(e,n,o){var u,p,g,w;for(w=0,u=o/e.a.c.length,g=new ye(e.a);g.a<g.c.c.length;)p=y(de(g),173),F$(p,p.s,p.t+w*u),o0n(p,e.d-p.r+n,u),++w}i(h0n,"Z6c");function KOt(e){var n;if(n=fdn(e),!Nn(e))throw xe(new yu("position (0) must be less than the number of elements that remained ("+n+")"));return vn(e)}i(KOt,"vr");function f0n(e,n){var o;return e.a||(o=tt(po,vl,30,0,15,1),lC(e.b.a,new Mxt(o)),U3t(o,Y9t(se.prototype.Ke,se,[])),e.a=new pAt(o,e.d)),aX(e.a,n)}i(f0n,"qBb");function JOt(e){switch(e.g){case 1:return zt(),on;case 4:return zt(),sn;case 3:return zt(),bn;case 2:return zt(),Fn;default:return zt(),rc}}i(JOt,"v2b");function d0n(e,n,o){n.k==(Yr(),Ya)&&o.k==bs&&(e.d=vhe(n,(zt(),Fn)),e.b=vhe(n,sn)),o.k==Ya&&n.k==bs&&(e.d=vhe(o,(zt(),sn)),e.b=vhe(o,Fn))}i(d0n,"Tgc");function Qhe(e,n){var o,u,p;for(p=Zl(e,n),u=p.Jc();u.Ob();)if(o=y(u.Pb(),12),oe(o,(Tt(),Ih))!=null||D9(new Kg(o.b)))return!0;return!1}i(Qhe,"Xgc");function p0n(e,n,o){o.Tg("Linear segments node placement",1),e.b=y(oe(n,(Tt(),yE)),317),MEn(e,n),a3n(e,n),S3n(e,n),cEn(e),e.a=null,e.b=null,o.Ug()}i(p0n,"AKc");function iDe(e,n){return Xh(n,e.e+e.d+(e.c.c.length==0?0:e.b)),Kh(n,e.f),e.a=d.Math.max(e.a,n.f),e.d+=n.g+(e.c.c.length==0?0:e.b),Nt(e.c,n),!0}i(iDe,"S6c");function g0n(e,n){var o,u,p,g,w,k;for(p=n.length-1,w=0,k=0,u=0;u<=p;u++)g=n[u],o=Eyn(p,u)*l_e(1-e,p-u)*l_e(e,u),w+=g.a*o,k+=g.b*o;return new Lt(w,k)}i(g0n,"yfd");function QOt(e,n){var o,u,p,g,w;for(o=n.gc(),e.Zi(e.i+o),g=n.Jc(),w=e.i,e.i+=o,u=w;u<e.i;++u)p=g.Pb(),L9(e,u,e.Xi(u,p)),e.Ki(u,p),e.Li();return o!=0}i(QOt,"$Fd");function m0n(e,n,o){var u,p,g;return e.Nj()?(u=e.Cj(),g=e.Oj(),++e.j,e.oj(u,e.Xi(u,n)),p=e.Gj(3,null,n,u,g),o?o.lj(p):o=p):$6t(e,e.Cj(),n),o}i(m0n,"iId");function y0n(e,n,o){var u,p,g;return u=y(je(Pc(e.a),n),87),g=(p=u.c,Ge(p,88)?y(p,29):(Dr(),up)),((g.Db&64)!=0?gv(e.b,g):g)==o?YK(u):k7(u,o),g}i(y0n,"H$d");function b0n(e){var n;return e==null?null:new ev((n=ru(e,!0),n.length>0&&(un(0,n.length),n.charCodeAt(0)==43)?(un(1,n.length+1),n.substr(1)):n))}i(b0n,"Cle");function v0n(e){var n;return e==null?null:new ev((n=ru(e,!0),n.length>0&&(un(0,n.length),n.charCodeAt(0)==43)?(un(1,n.length+1),n.substr(1)):n))}i(v0n,"Dle");function aDe(e,n,o,u,p,g,w,k){var A,D;u&&(A=u.a[0],A&&aDe(e,n,o,A,p,g,w,k),sfe(e,o,u.d,p,g,w,k)&&n.Ec(u),D=u.a[1],D&&aDe(e,n,o,D,p,g,w,k))}i(aDe,"Zxb");function kI(e,n){var o,u,p,g;for(g=e.gc(),n.length<g&&(n=YH(new Array(g),n)),p=n,u=e.Jc(),o=0;o<g;++o)as(p,o,u.Pb());return n.length>g&&as(n,g,null),n}i(kI,"De");function w0n(e,n){var o,u;if(u=e.gc(),n==null){for(o=0;o<u;o++)if(e.Xb(o)==null)return o}else for(o=0;o<u;o++)if(ta(n,e.Xb(o)))return o;return-1}i(w0n,"Tu");function Zhe(e,n){var o,u,p;return o=n.jd(),p=n.kd(),u=e.xc(o),!(!(Qe(p)===Qe(u)||p!=null&&ta(p,u))||u==null&&!e._b(o))}i(Zhe,"Jd");function x0n(e,n){var o,u,p;return n<=22?(o=e.l&(1<<n)-1,u=p=0):n<=44?(o=e.l,u=e.m&(1<<n-22)-1,p=0):(o=e.l,u=e.m,p=e.h&(1<<n-44)-1),Mu(o,u,p)}i(x0n,"eD");function T0n(e,n){switch(n.g){case 1:return e.f.n.d+e.t;case 3:return e.f.n.a+e.t;case 2:return e.f.n.c+e.s;case 4:return e.f.n.b+e.s;default:return 0}}i(T0n,"UKb");function k0n(e,n){var o,u;switch(u=n.c,o=n.a,e.b.g){case 0:o.d=e.e-u.a-u.d;break;case 1:o.d+=e.e;break;case 2:o.c=e.e-u.a-u.d;break;case 3:o.c=e.e+u.d}}i(k0n,"wLb");function yK(){yK=U,Y1e=new kq(wg,0),Sze=new kq(yVt,1),Aze=new kq("EDGE_LENGTH_BY_POSITION",2),Eze=new kq("CROSSING_MINIMIZATION_BY_POSITION",3)}i(yK,"U1c");function efe(e,n){var o,u;if(o=y(RC(e.n,n),26),o)return o;if(u=y(RC(e.p,n),125),u)return u;throw xe(new j0("Referenced shape does not exist: "+n))}i(efe,"dCd");function ZOt(e,n){if(e.g==-1)throw xe(new hh);e.Vj();try{e.d.fd(e.g,n),e.f=e.d.j}catch(o){throw o=hs(o),Ge(o,99)?xe(new od):xe(o)}}i(ZOt,"CKd");function sDe(e,n){var o,u;if(Ge(n,254)){u=y(n,254);try{return o=e.Cd(u),o==0}catch(p){if(p=hs(p),Ge(p,211))return!1;throw xe(p)}}return!1}i(sDe,"Nk");function C0n(e,n){if(e.c==n)return e.d;if(e.d==n)return e.c;throw xe(new rn("Node 'one' must be either source or target of edge 'edge'."))}i(C0n,"XPb");function E0n(e,n){if(e.c.i==n)return e.d.i;if(e.d.i==n)return e.c.i;throw xe(new rn("Node "+n+" is neither source nor target of edge "+e))}i(E0n,"aOc");function S0n(e,n,o){o.Tg("Self-Loop ordering",1),ts(bu(Hi(Hi(jl(new Er(null,new Rr(n.b,16)),new dgt),new pgt),new ggt),new mgt),new vTt(e)),o.Ug()}i(S0n,"$ac");function tfe(e,n,o,u,p,g){var w,k,A,D,M;for(w=Smn(n,o,g),k=o==(zt(),sn)||o==on?-1:1,D=e[o.g],M=0;M<D.length;M++)A=D[M],A>0&&(A+=p),D[M]=w,w+=k*(A+u)}i(tfe,"mkc");function A0n(e){var n;for(n=0;n<e.a.c.length;n++)if(ea(y(Wt(e.a,n),9),(Bt(),Hme))&&Kt(Xt(oe(y(Wt(e.a,n),9),Hme))))return!0;return!1}i(A0n,"Xlc");function ePt(e){var n,o,u;for(u=e.f,e.n=tt(po,vl,30,u,15,1),e.d=tt(po,vl,30,u,15,1),n=0;n<u;n++)o=y(Wt(e.c.b,n),25),e.n[n]=AOt(e,o),e.d[n]=S$t(e,o)}i(ePt,"Zmc");function tPt(e,n,o,u){var p;this.c=e,this.d=n,p=new ya,Ha(p,o,p.c.b,p.c),this.a=p,this.b=y(oe(u,(uc(),CT)),86),this.e=He(Xe(oe(u,rze))),Yzt(this)}i(tPt,"T$c");function rfe(e,n){var o,u,p;for(p=0,u=2;u<n;u<<=1)(e.Db&u)!=0&&++p;if(p==0){for(o=n<<=1;o<=128;o<<=1)if((e.Db&o)!=0)return 0;return-1}else return p}i(rfe,"tud");function rPt(e,n){var o,u,p,g,w;for(w=Ou(e.e.Ah(),n),g=null,o=y(e.g,122),p=0;p<e.i;++p)u=o[p],w.$l(u.Jk())&&(!g&&(g=new AH),Zn(g,u));g&&Mzt(e,g)}i(rPt,"dfe");function nPt(e){var n,o,u;if(!e)return null;if(e.dc())return"";for(u=new Dy,o=e.Jc();o.Ob();)n=o.Pb(),ml(u,di(n)),u.a+=" ";return _le(u,u.a.length-1)}i(nPt,"rle");function iPt(e,n){var o=new Array(n),u;switch(e){case 14:case 15:u=0;break;case 16:u=!1;break;default:return o}for(var p=0;p<n;++p)o[p]=u;return o}i(iPt,"TC");function qx(e){var n,o,u;for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),60),n.c.$b();R1(e.d)?u=e.a.c:u=e.a.d,Zc(u,new Vxt(e)),e.c.bf(e),W$t(e)}i(qx,"ZEb");function aPt(e){var n,o,u,p;for(o=new ye(e.e.c);o.a<o.c.c.length;){for(n=y(de(o),291),p=new ye(n.b);p.a<p.c.c.length;)u=y(de(p),445),BIe(u);MFt(n)}}i(aPt,"SNb");function sPt(e){var n,o,u;for(u=Ui,o=new ye(e.a);o.a<o.c.c.length;)n=y(de(o),9),ea(n,(Tt(),Ea))&&(u=d.Math.min(u,y(oe(n,Ea),15).a));return u}i(sPt,"SXb");function bK(e){var n,o,u,p,g;for(u=0,g=0,p=0,o=new ye(e.a);o.a<o.c.c.length;)n=y(de(o),173),g=d.Math.max(g,n.r),u+=n.d+(p>0?e.c:0),++p;e.b=u,e.d=g}i(bK,"c7c");function oPt(e,n){var o;return o=Se(Ee(po,1),vl,30,15,[eDe(e,(yg(),dc),n),eDe(e,Cu,n),eDe(e,pc,n)]),e.f&&(o[0]=d.Math.max(o[0],o[2]),o[2]=o[0]),o}i(oPt,"WHb");function lPt(e){var n;ea(e,(Bt(),xT))&&(n=y(oe(e,xT),22),n.Gc((d3(),Jp))?(n.Kc(Jp),n.Ec(Qp)):n.Gc(Qp)&&(n.Kc(Qp),n.Ec(Jp)))}i(lPt,"g2b");function cPt(e){var n;ea(e,(Bt(),xT))&&(n=y(oe(e,xT),22),n.Gc((d3(),eg))?(n.Kc(eg),n.Ec(ap)):n.Gc(ap)&&(n.Kc(ap),n.Ec(eg)))}i(cPt,"h2b");function nfe(e,n,o,u){var p,g,w,k;return e.a==null&&Cyn(e,n),w=n.b.j.c.length,g=o.d.p,k=u.d.p,p=k-1,p<0&&(p=w-1),g<=p?e.a[p]-e.a[g]:e.a[w-1]-e.a[g]+e.a[p]}i(nfe,"Ekc");function R0n(e){var n;for(n=0;n<e.a.c.length;n++)if(ea(y(Wt(e.a,n),9),(Bt(),qme))&&!Kt(Xt(oe(y(Wt(e.a,n),9),qme))))return!1;return!0}i(R0n,"Ylc");function L0n(e,n,o){var u,p,g,w,k;for(g=e.c,k=o?n:e,u=o?e:n,p=k.p+1;p<u.p;++p)if(w=y(Wt(g.a,p),9),!(w.k==(Yr(),u0)||dmn(w)))return!1;return!0}i(L0n,"zmc");function _0n(e){var n,o;if(!e.b)for(e.b=HY(y(e.f,26).jh().i),o=new Sn(y(e.f,26).jh());o.e!=o.i.gc();)n=y(_n(o),157),Nt(e.b,new Noe(n));return e.b}i(_0n,"$rd");function D0n(e){var n,o;if(!e.e)for(e.e=HY(R7e(y(e.f,26)).i),o=new Sn(R7e(y(e.f,26)));o.e!=o.i.gc();)n=y(_n(o),125),Nt(e.e,new C3t(n));return e.e}i(D0n,"_rd");function uPt(e){var n,o;if(!e.a)for(e.a=HY(NY(y(e.f,26)).i),o=new Sn(NY(y(e.f,26)));o.e!=o.i.gc();)n=y(_n(o),26),Nt(e.a,new Hq(e,n));return e.a}i(uPt,"Wrd");function Yx(e){var n;if(!e.C&&(e.D!=null||e.B!=null))if(n=rCn(e),n)e.fl(n);else try{e.fl(null)}catch(o){if(o=hs(o),!Ge(o,63))throw xe(o)}return e.C}i(Yx,"QVd");function I0n(e){switch(e.q.g){case 5:BPt(e,(zt(),sn)),BPt(e,Fn);break;case 4:Wjt(e,(zt(),sn)),Wjt(e,Fn);break;default:WBt(e,(zt(),sn)),WBt(e,Fn)}}i(I0n,"aKb");function M0n(e){switch(e.q.g){case 5:FPt(e,(zt(),bn)),FPt(e,on);break;case 4:Hjt(e,(zt(),bn)),Hjt(e,on);break;default:HBt(e,(zt(),bn)),HBt(e,on)}}i(M0n,"jLb");function $C(e,n){var o,u,p;for(p=new xo,u=e.Jc();u.Ob();)o=y(u.Pb(),36),aR(o,p.a,0),p.a+=o.f.a+n,p.b=d.Math.max(p.b,o.f.b);return p.b>0&&(p.b+=n),p}i($C,"kUb");function vK(e,n){var o,u,p;for(p=new xo,u=e.Jc();u.Ob();)o=y(u.Pb(),36),aR(o,0,p.b),p.b+=o.f.b+n,p.a=d.Math.max(p.a,o.f.a);return p.a>0&&(p.a+=n),p}i(vK,"mUb");function hPt(e,n){var o,u;if(n.length==0)return 0;for(o=Oce(e.a,n[0],(zt(),on)),o+=Oce(e.a,n[n.length-1],bn),u=0;u<n.length;u++)o+=dyn(e,u,n);return o}i(hPt,"yIc");function fPt(){PI(),this.c=new Pt,this.i=new Pt,this.e=new Om,this.f=new Om,this.g=new Om,this.j=new Pt,this.a=new Pt,this.b=new jn,this.k=new jn}i(fPt,"ERc");function ife(e,n){var o,u;return e.Db>>16==6?e.Cb.Qh(e,5,Ag,n):(u=rl(y(Nr((o=y(an(e,16),29),o||e.fi()),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(ife,"NVd");function N0n(e){g7();var n=e.e;if(n&&n.stack){var o=n.stack,u=n+`
|
|
`;return o.substring(0,u.length)==u&&(o=o.substring(u.length)),o.split(`
|
|
`)}return[]}i(N0n,"cA");function O0n(e){var n;return n=(mIt(),Yqt),n[e>>>28]|n[e>>24&15]<<4|n[e>>20&15]<<8|n[e>>16&15]<<12|n[e>>12&15]<<16|n[e>>8&15]<<20|n[e>>4&15]<<24|n[e&15]<<28}i(O0n,"zfb");function dPt(e){var n,o,u;e.b==e.c&&(u=e.a.length,o=$Le(d.Math.max(8,u))<<1,e.b!=0?(n=Np(e.a,o),IIt(e,n,u),e.a=n,e.b=0):vk(e.a,o),e.c=u)}i(dPt,"wlb");function P0n(e,n){var o;return o=e.b,o.nf((Ri(),tf))?o.$f()==(zt(),on)?-o.Kf().a-He(Xe(o.mf(tf))):n+He(Xe(o.mf(tf))):o.$f()==(zt(),on)?-o.Kf().a:n}i(P0n,"ZKb");function G$(e){var n;return e.b.c.length!=0&&y(Wt(e.b,0),70).a?y(Wt(e.b,0),70).a:(n=jce(e),n??""+(e.c?Jl(e.c.a,e,0):-1))}i(G$,"CYb");function wK(e){var n;return e.f.c.length!=0&&y(Wt(e.f,0),70).a?y(Wt(e.f,0),70).a:(n=jce(e),n??""+(e.i?Jl(e.i.j,e,0):-1))}i(wK,"tZb");function B0n(e,n){var o,u;if(n<0||n>=e.gc())return null;for(o=n;o<e.gc();++o)if(u=y(e.Xb(o),132),o==e.gc()-1||!u.o)return new Ko(Et(o),u);return null}i(B0n,"tec");function oDe(e){var n,o,u,p,g;for(g=0,p=Ys,u=0,o=new ye(e.a);o.a<o.c.c.length;)n=y(de(o),173),g+=n.r+(u>0?e.c:0),p=d.Math.max(p,n.d),++u;e.e=g,e.b=p}i(oDe,"A7c");function F0n(e){var n,o;if(!e.b)for(e.b=HY(y(e.f,125).jh().i),o=new Sn(y(e.f,125).jh());o.e!=o.i.gc();)n=y(_n(o),157),Nt(e.b,new Noe(n));return e.b}i(F0n,"msd");function $0n(e,n){var o,u,p;if(n.dc())return r7(),r7(),az;for(o=new j6t(e,n.gc()),p=new Sn(e);p.e!=p.i.gc();)u=_n(p),n.Gc(u)&&Zn(o,u);return o}i($0n,"rFd");function lDe(e,n,o,u){return n==0?u?(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),e.o):(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),i$(e.o)):fK(e,n,o,u)}i(lDe,"Yud");function afe(e){var n,o;if(e.rb)for(n=0,o=e.rb.i;n<o;++n)RF(je(e.rb,n));if(e.vb)for(n=0,o=e.vb.i;n<o;++n)RF(je(e.vb,n));P9((yh(),Ro),e),e.Bb|=1}i(afe,"Nyd");function _a(e,n,o,u,p,g,w,k,A,D,M,F,z,ee){return JBt(e,n,u,null,p,g,w,k,A,D,z,!0,ee),k_e(e,M),Ge(e.Cb,88)&&f3(Hh(y(e.Cb,88)),2),o&&wLe(e,o),C_e(e,F),e}i(_a,"Vyd");function G0n(e){var n,o;if(e==null)return null;o=0;try{o=Ff(e,bo,Ui)&As}catch(u){if(u=hs(u),Ge(u,131))n=dX(e),o=n[0];else throw xe(u)}return w$(o)}i(G0n,"W8d");function j0n(e){var n,o;if(e==null)return null;o=0;try{o=Ff(e,bo,Ui)&As}catch(u){if(u=hs(u),Ge(u,131))n=dX(e),o=n[0];else throw xe(u)}return w$(o)}i(j0n,"X8d");function z0n(e,n){var o,u,p;return p=e.h-n.h,p<0||(o=e.l-n.l,u=e.m-n.m+(o>>22),p+=u>>22,p<0)?!1:(e.l=o&ef,e.m=u&ef,e.h=p&q1,!0)}i(z0n,"jD");function sfe(e,n,o,u,p,g,w){var k,A;return!(n.Re()&&(A=e.a.Le(o,u),A<0||!p&&A==0)||n.Se()&&(k=e.a.Le(o,g),k>0||!w&&k==0))}i(sfe,"$xb");function U0n(e,n){M7();var o;if(o=e.j.g-n.j.g,o!=0)return 0;switch(e.j.g){case 2:return She(n,BFe)-She(e,BFe);case 4:return She(e,PFe)-She(n,PFe)}return 0}i(U0n,"Aac");function V0n(e){switch(e.g){case 0:return pme;case 1:return gme;case 2:return mme;case 3:return yme;case 4:return eZ;case 5:return bme;default:return null}}i(V0n,"bpc");function _l(e,n,o){var u,p;return u=(p=new Aoe,lw(p,n),wu(p,o),Zn((!e.c&&(e.c=new xt(ET,e,12,10)),e.c),p),p),Uy(u,0),Zk(u,1),Yy(u,!0),qy(u,!0),u}i(_l,"yyd");function s6(e,n){var o,u;if(n>=e.i)throw xe(new Rle(n,e.i));return++e.j,o=e.g[n],u=e.i-n-1,u>0&&$c(e.g,n+1,e.g,n,u),as(e.g,--e.i,null),e.Oi(n,o),e.Li(),o}i(s6,"iGd");function pPt(e,n){var o,u;return e.Db>>16==17?e.Cb.Qh(e,21,op,n):(u=rl(y(Nr((o=y(an(e,16),29),o||e.fi()),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(pPt,"FUd");function W0n(e){var n,o,u,p;for(Ir(),zs(e.c,e.a),p=new ye(e.c);p.a<p.c.c.length;)for(u=de(p),o=new ye(e.b);o.a<o.c.c.length;)n=y(de(o),683),n._e(u)}i(W0n,"sEb");function H0n(e){var n,o,u,p;for(Ir(),zs(e.c,e.a),p=new ye(e.c);p.a<p.c.c.length;)for(u=de(p),o=new ye(e.b);o.a<o.c.c.length;)n=y(de(o),377),n._e(u)}i(H0n,"XTb");function q0n(e){var n,o,u,p,g;for(p=Ui,g=null,u=new ye(e.d);u.a<u.c.c.length;)o=y(de(u),217),o.d.j^o.e.j&&(n=o.e.e-o.d.e-o.a,n<p&&(p=n,g=o));return g}i(q0n,"WGb");function cDe(){cDe=U,SXt=new br(NMe,(qr(),!1)),kXt=new br(OMe,100),OBe=(Z9(),I0e),CXt=new br(PMe,OBe),EXt=new br(BMe,rm),AXt=new br(FMe,Et(Ui))}i(cDe,"sPb");function gPt(e,n){var o,u,p;for(u=new nn(cn(Y0(e).a.Jc(),new B));Nn(u);)return o=y(vn(u),17),p=y(n.Kb(o),9),new _H(oi(p.n.b+p.o.b/2));return QD(),QD(),n0e}i(gPt,"s4b");function mPt(e,n,o){var u,p,g,w,k,A,D,M;for(D=0,p=e.a[n],g=0,w=p.length;g<w;++g)for(u=p[g],M=pI(u,o),A=M.Jc();A.Ob();)k=y(A.Pb(),12),Oi(e.f,k,Et(D++))}i(mPt,"ggc");function yPt(e,n,o){var u,p,g,w;if(o)for(p=o.a.length,u=new H2(p),w=(u.b-u.a)*u.c<0?(Qb(),Qv):new tv(u);w.Ob();)g=y(w.Pb(),15),Sr(e,n,u6(Jk(o,g.a)))}i(yPt,"ABd");function bPt(e,n,o){var u,p,g,w;if(o)for(p=o.a.length,u=new H2(p),w=(u.b-u.a)*u.c<0?(Qb(),Qv):new tv(u);w.Ob();)g=y(w.Pb(),15),Sr(e,n,u6(Jk(o,g.a)))}i(bPt,"BBd");function uDe(e){vv();var n;return n=y(kI(O5(e.k),tt(Qo,Rc,64,2,0,1)),126),w7(n,0,n.length,null),n[0]==(zt(),sn)&&n[1]==on&&(as(n,0,on),as(n,1,sn)),n}i(uDe,"ric");function vPt(e,n,o){var u,p,g;return p=vwn(e,n,o),g=nIe(e,p),Eue(e.b),iue(e,n,o),Ir(),zs(p,new nkt(e)),u=nIe(e,p),Eue(e.b),iue(e,o,n),new Ko(Et(g),Et(u))}i(vPt,"SIc");function wPt(){wPt=U,xer=Ei(new us,(eo(),hl),(ho(),NM)),BZ=new Da("linearSegments.inputPrio",Et(0)),FZ=new Da("linearSegments.outputPrio",Et(0))}i(wPt,"sKc");function o6(){o6=U,$Z=new xq("P1_TREEIFICATION",0),oN=new xq("P2_NODE_ORDERING",1),lN=new xq("P3_NODE_PLACEMENT",2),cN=new xq("P4_EDGE_ROUTING",3)}i(o6,"HSc");function Y0n(e){var n,o,u,p;for(o=0,n=0,p=new Sn(e);p.e!=p.i.gc();)u=y(_n(p),26),o=d.Math.max(u.g+u.i,o),n=d.Math.max(u.f+u.j,n);return new Lt(o,n)}i(Y0n,"u7c");function X0n(e,n){var o,u,p,g;for(g=0,u=new ye(e);u.a<u.c.c.length;)o=y(de(u),26),g+=d.Math.pow(o.g*o.f-n,2);return p=d.Math.sqrt(g/(e.c.length-1)),p}i(X0n,"Cod");function Bf(){Bf=U,Wj=new Aq("UNKNOWN",0),n1=new Aq("ABOVE",1),Vv=new Aq("BELOW",2),Vj=new Aq("INLINE",3),new Da("org.eclipse.elk.labelSide",Wj)}i(Bf,"$kd");function K0n(e,n){if(Ge(n,271))return otn(e,y(n,85));if(Ge(n,276))return y(n,276);throw xe(new rn(FR+r0(new oc(Se(Ee(Fs,1),Fr,1,5,[n])))))}i(K0n,"cCd");function xPt(e,n){var o;if(e.Wi()&&n!=null){for(o=0;o<e.i;++o)if(ta(n,e.g[o]))return o}else for(o=0;o<e.i;++o)if(Qe(e.g[o])===Qe(n))return o;return-1}i(xPt,"gGd");function J0n(e,n,o){var u,p;return n.c==(sl(),Eu)&&o.c==Mh?-1:n.c==Mh&&o.c==Eu?1:(u=rNt(n.a,e.a),p=rNt(o.a,e.a),n.c==Eu?p-u:u-p)}i(J0n,"pWb");function bv(e,n,o){if(o&&(n<0||n>o.a.c.length))throw xe(new rn("index must be >= 0 and <= layer node count"));e.c&&Yu(e.c.a,e),e.c=o,o&&W2(o.a,n,e)}i(bv,"MYb");function TPt(e,n){this.c=new jn,this.a=e,this.b=n,this.d=y(oe(e,(Tt(),yE)),317),Qe(oe(e,(Bt(),IGe)))===Qe((l$(),tZ))?this.e=new f4t:this.e=new h4t}i(TPt,"ANc");function ofe(e,n){var o,u;o=e.dd(n);try{return u=o.Pb(),o.Qb(),u}catch(p){throw p=hs(p),Ge(p,112)?xe(new yu("Can't remove element "+n)):xe(p)}}i(ofe,"bu");function Q0n(e,n){var o,u,p;if(u=new oq,p=new zLe(u.q.getFullYear()-Ev,u.q.getMonth(),u.q.getDate()),o=Ukn(e,n,p),o==0||o<n.length)throw xe(new rn(n));return p}i(Q0n,"yA");function hDe(e,n){var o,u,p;for(Ur(n),GAe(n!=e),p=e.b.c.length,u=n.Jc();u.Ob();)o=u.Pb(),Nt(e.b,Ur(o));return p!=e.b.c.length?(JLe(e,0),!0):!1}i(hDe,"pvb");function j$(){j$=U,$Be=(Ri(),$j),new To(Sye,(qr(),!0)),LXt=Pw,_Xt=IE,DXt=Uv,RXt=DE,jBe=Gj,IXt=t4,FBe=(cDe(),SXt),PBe=CXt,BBe=EXt,GBe=AXt,AQ=kXt}i(j$,"HPb");function Z0n(e,n){if(n==e.c)return e.d;if(n==e.d)return e.c;throw xe(new rn("'port' must be either the source port or target port of the edge."))}i(Z0n,"yWb");function emn(e,n){var o,u;for(e.b=0,e.d=new zH,u=new ye(n.a);u.a<u.c.c.length;)o=y(de(u),9),y(oe(o,(Tt(),zM)),15).a==-1&&(uzt(e,o),e.d.a.c.length=0)}i(emn,"E$b");function kPt(e,n){var o,u,p,g,w;for(u=0,p=0,o=0,w=new ye(e);w.a<w.c.c.length;)g=y(de(w),186),u=d.Math.max(u,g.e),p+=g.b+(o>0?n:0),++o;return new Lt(u,p)}i(kPt,"v7c");function tmn(e,n,o){var u,p;switch(p=e.o,u=e.d,n.g){case 1:return-u.d-o;case 3:return p.b+u.a+o;case 2:return p.a+u.c+o;case 4:return-u.b-o;default:return 0}}i(tmn,"F0b");function fDe(e,n,o,u){var p,g,w,k;for(Us(n,y(u.Xb(0),25)),k=u.hd(1,u.gc()),g=y(o.Kb(n),20).Jc();g.Ob();)p=y(g.Pb(),17),w=p.c.i==n?p.d.i:p.c.i,fDe(e,w,o,k)}i(fDe,"K3b");function CPt(e){var n;return n=new jn,ea(e,(Tt(),Ime))?y(oe(e,Ime),92):(ts(Hi(new Er(null,new Rr(e.j,16)),new Fgt),new TTt(n)),dt(e,Ime,n),n)}i(CPt,"Ccc");function CI(e,n){var o,u;return u=null,e.nf((Ri(),Q6))&&(o=y(e.mf(Q6),105),o.nf(n)&&(u=o.mf(n))),u==null&&e.Rf()&&(u=e.Rf().mf(n)),u==null&&(u=Vt(n)),u}i(CI,"Hqd");function dDe(e,n){var o,u;return e.Db>>16==6?e.Cb.Qh(e,6,Cs,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Ac(),wee)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(dDe,"Ywd");function pDe(e,n){var o,u;return e.Db>>16==7?e.Cb.Qh(e,1,ez,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Ac(),aWe)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(pDe,"yzd");function gDe(e,n){var o,u;return e.Db>>16==9?e.Cb.Qh(e,9,Ti,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Ac(),oWe)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(gDe,"fAd");function EPt(e,n){var o,u;return e.Db>>16==5?e.Cb.Qh(e,9,Lee,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Dr(),pb)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(EPt,"Z_d");function SPt(e,n){var o,u;return e.Db>>16==7?e.Cb.Qh(e,6,Ag,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Dr(),mb)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(SPt,"Myd");function mDe(e,n){var o,u;return e.Db>>16==3?e.Cb.Qh(e,0,rz,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Dr(),db)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(mDe,"vTd");function yDe(e,n){var o,u;return e.Db>>16==3?e.Cb.Qh(e,12,Ti,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Ac(),iWe)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(yDe,"Fwd");function rmn(e,n,o){var u,p,g;for(o<0&&(o=0),g=e.i,p=o;p<g;p++)if(u=je(e,p),n==null){if(u==null)return p}else if(Qe(n)===Qe(u)||ta(n,u))return p;return-1}i(rmn,"zOd");function nmn(e,n){var o,u;return o=n.ni(e.a),o?(u=di(bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),lQ)),Cr(HG,u)?P9(e,Nf(n.ok())):u):null}i(nmn,"Oce");function Y7(e,n){var o,u;if(n){if(n==e)return!0;for(o=0,u=y(n,52).Mh();u&&u!=n;u=u.Mh()){if(++o>Wde)return Y7(e,u);if(u==e)return!0}}return!1}i(Y7,"_he");function imn(e){switch(Yq(),e.q.g){case 5:dFt(e,(zt(),sn)),dFt(e,Fn);break;case 4:b$t(e,(zt(),sn)),b$t(e,Fn);break;default:xzt(e,(zt(),sn)),xzt(e,Fn)}}i(imn,"bLb");function amn(e){switch(Yq(),e.q.g){case 5:IFt(e,(zt(),bn)),IFt(e,on);break;case 4:DOt(e,(zt(),bn)),DOt(e,on);break;default:Tzt(e,(zt(),bn)),Tzt(e,on)}}i(amn,"fLb");function smn(e){var n,o;n=y(oe(e,(Vp(),mXt)),15),n?(o=n.a,o==0?dt(e,(uv(),SQ),new Ehe):dt(e,(uv(),SQ),new KY(o))):dt(e,(uv(),SQ),new KY(1))}i(smn,"iNb");function omn(e,n){var o;switch(o=e.i,n.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-o.o.a;case 3:return e.n.b-o.o.b;case 4:return-(e.n.a+e.o.a)}return 0}i(omn,"IXb");function lmn(e,n){switch(e.g){case 0:return n==(yf(),Q1)?HQ:qQ;case 1:return n==(yf(),Q1)?HQ:nj;case 2:return n==(yf(),Q1)?nj:qQ;default:return nj}}i(lmn,"k8b");function z$(e,n){var o,u,p;for(Yu(e.a,n),e.e-=n.r+(e.a.c.length==0?0:e.c),p=Zpe,u=new ye(e.a);u.a<u.c.c.length;)o=y(de(u),173),p=d.Math.max(p,o.d);e.b=p}i(z$,"B7c");function cmn(e,n,o){var u,p,g;return g=y(Jr(e.r,n),300),p=null,g&&g.g===2?(u=Xe(Jr(e.i,n)),p=(Ur(o),o+(Ur(u),u))):p=o,p}i(cmn,"$Ad");function umn(e,n,o){var u,p,g;return g=y(Jr(e.r,n),300),p=null,g&&g.g===2?(u=Xe(Jr(e.j,n)),p=(Ur(o),o+(Ur(u),u))):p=o,p}i(umn,"aBd");function Qd(e){var n;return(e.Bb&1)==0&&e.r&&e.r.Sh()&&(n=y(e.r,52),e.r=y(gv(e,n),143),e.r!=n&&(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,9,8,n,e.r))),e.r}i(Qd,"hUd");function lfe(e,n,o){var u;return u=Se(Ee(po,1),vl,30,15,[UDe(e,(yg(),dc),n,o),UDe(e,Cu,n,o),UDe(e,pc,n,o)]),e.f&&(u[0]=d.Math.max(u[0],u[2]),u[2]=u[0]),u}i(lfe,"UHb");function hmn(e,n){var o,u,p;if(p=Ngn(e,n),p.c.length!=0)for(zs(p,new Bpt),o=p.c.length,u=0;u<o;u++)Z7(e,(_r(u,p.c.length),y(p.c[u],294)),pxn(e,p,u))}i(hmn,"T6b");function EI(e,n,o){var u,p;u=n*o,Ge(e.g,156)?(p=V5(e),p.f.d?p.f.a||(e.d.a+=u+a0):(e.d.d-=u+a0,e.d.a+=u+a0)):Ge(e.g,9)&&(e.d.d-=u,e.d.a+=2*u)}i(EI,"Jcc");function fmn(e){var n,o,u,p;for(p=y(oa(e.a,(c3(),YQ)),16).Jc();p.Ob();)for(u=y(p.Pb(),107),o=O5(u.k).Jc();o.Ob();)n=y(o.Pb(),64),c7(e,u,n,(jx(),Nv),1)}i(fmn,"gic");function dmn(e){var n,o;if(e.k==(Yr(),bs)){for(o=new nn(cn(Y0(e).a.Jc(),new B));Nn(o);)if(n=y(vn(o),17),!Mo(n)&&e.c==CDe(n,e).c)return!0}return!1}i(dmn,"Amc");function pmn(e){var n,o;if(e.k==(Yr(),bs)){for(o=new nn(cn(Y0(e).a.Jc(),new B));Nn(o);)if(n=y(vn(o),17),!Mo(n)&&n.c.i.c==n.d.i.c)return!0}return!1}i(pmn,"SOc");function bDe(e,n){var o,u;return e.Db>>16==11?e.Cb.Qh(e,10,Ti,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Ac(),sWe)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(bDe,"Ozd");function APt(e,n){var o,u;return e.Db>>16==10?e.Cb.Qh(e,11,op,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Dr(),gb)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(APt,"A2d");function RPt(e,n){var o,u;return e.Db>>16==10?e.Cb.Qh(e,12,lp,n):(u=rl(y(Nr((o=y(an(e,16),29),o||(Dr(),h4)),e.Db>>16),19)),e.Cb.Qh(e,u.n,u.f,n))}i(RPt,"b4d");function LPt(e,n){var o,u,p,g,w;if(n)for(p=n.a.length,o=new H2(p),w=(o.b-o.a)*o.c<0?(Qb(),Qv):new tv(o);w.Ob();)g=y(w.Pb(),15),u=y7(n,g.a),u&&f$t(e,u)}i(LPt,"DBd");function gmn(){S6e();var e,n;for(BEn((rv(),Xr)),AEn(Xr),afe(Xr),xWe=(Dr(),b0),n=new ye(_We);n.a<n.c.c.length;)e=y(de(n),248),uR(e,b0,null);return!0}i(gmn,"o9d");function vDe(e,n){var o,u,p,g,w,k,A,D;return A=e.h>>19,D=n.h>>19,A!=D?D-A:(p=e.h,k=n.h,p!=k?p-k:(u=e.m,w=n.m,u!=w?u-w:(o=e.l,g=n.l,o-g)))}i(vDe,"mD");function _Pt(e,n,o){var u,p,g,w,k;for(p=e[o.g],k=new ye(n.d);k.a<k.c.c.length;)w=y(de(k),107),g=w.i,g&&g.i==o&&(u=w.d[o.g],p[u]=d.Math.max(p[u],g.j.b))}i(_Pt,"pkc");function mmn(e,n){var o,u,p,g,w;for(u=0,p=0,o=0,w=new ye(n.d);w.a<w.c.c.length;)g=y(de(w),320),bK(g),u=d.Math.max(u,g.b),p+=g.d+(o>0?e.b:0),++o;n.b=u,n.e=p}i(mmn,"f6c");function DPt(e){var n,o,u;if(u=e.b,lEt(e.i,u.length)){for(o=u.length*2,e.b=tt(s0e,bG,309,o,0,1),e.c=tt(s0e,bG,309,o,0,1),e.f=o-1,e.i=0,n=e.a;n;n=n.c)K$(e,n,n);++e.g}}i(DPt,"zo");function SI(e,n){return e.b.a=d.Math.min(e.b.a,n.c),e.b.b=d.Math.min(e.b.b,n.d),e.a.a=d.Math.max(e.a.a,n.c),e.a.b=d.Math.max(e.a.b,n.d),tn(e.c,n),!0}i(SI,"QUb");function ymn(e,n,o){var u;u=n.c.i,u.k==(Yr(),bs)?(dt(e,(Tt(),Cg),y(oe(u,Cg),12)),dt(e,np,y(oe(u,np),12))):(dt(e,(Tt(),Cg),n.c),dt(e,np,o.d))}i(ymn,"Tmc");function X7(e,n,o){nR();var u,p,g,w,k,A;return w=n/2,g=o/2,u=d.Math.abs(e.a),p=d.Math.abs(e.b),k=1,A=1,u>w&&(k=w/u),p>g&&(A=g/p),L1(e,d.Math.min(k,A)),e}i(X7,"tfd");function bmn(){KK();var e,n;try{if(n=y(RDe((Jb(),cp),BR),2078),n)return n}catch(o){if(o=hs(o),Ge(o,101))e=o,m7e((fi(),e));else throw xe(o)}return new Sbt}i(bmn,"iyd");function vmn(){KK();var e,n;try{if(n=y(RDe((Jb(),cp),ep),2005),n)return n}catch(o){if(o=hs(o),Ge(o,101))e=o,m7e((fi(),e));else throw xe(o)}return new Zbt}i(vmn,"b9d");function wmn(){IDt();var e,n;try{if(n=y(RDe((Jb(),cp),kw),2087),n)return n}catch(o){if(o=hs(o),Ge(o,101))e=o,m7e((fi(),e));else throw xe(o)}return new Hvt}i(wmn,"Ile");function xmn(e,n,o){var u,p;return p=e.e,e.e=n,(e.Db&4)!=0&&(e.Db&1)==0&&(u=new Qs(e,1,4,p,n),o?o.lj(u):o=u),p!=n&&(n?o=uR(e,PK(e,n),o):o=uR(e,e.a,o)),o}i(xmn,"s0d");function IPt(){oq.call(this),this.e=-1,this.a=!1,this.p=bo,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=bo}i(IPt,"vB");function Tmn(e,n){var o,u,p;if(u=e.b.d.d,e.a||(u+=e.b.d.a),p=n.b.d.d,n.a||(p+=n.b.d.a),o=ha(u,p),o==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return o}i(Tmn,"AFb");function kmn(e,n){var o,u,p;if(u=e.b.b.d,e.a||(u+=e.b.b.a),p=n.b.b.d,n.a||(p+=n.b.b.a),o=ha(u,p),o==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return o}i(kmn,"zMb");function Cmn(e,n){var o,u,p;if(u=e.b.g.d,e.a||(u+=e.b.g.a),p=n.b.g.d,n.a||(p+=n.b.g.a),o=ha(u,p),o==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return o}i(Cmn,"vSb");function cfe(){cfe=U,NXt=Xc(Ei(Ei(Ei(new us,(eo(),Lc),(ho(),xFe)),Lc,TFe),hl,kFe),hl,uFe),PXt=Ei(Ei(new us,Lc,nFe),Lc,hFe),OXt=Xc(new us,hl,dFe)}i(cfe,"DQb");function Emn(e){var n,o,u,p,g;for(n=y(oe(e,(Tt(),GM)),92),g=e.n,u=n.Bc().Jc();u.Ob();)o=y(u.Pb(),319),p=o.i,p.c+=g.a,p.d+=g.b,o.c?nGt(o):iGt(o);dt(e,GM,null)}i(Emn,"v0b");function Smn(e,n,o){var u,p;switch(p=e.b,u=p.d,n.g){case 1:return-u.d-o;case 2:return p.o.a+u.c+o;case 3:return p.o.b+u.a+o;case 4:return-u.b-o;default:return-1}}i(Smn,"kkc");function MPt(e,n){var o,u;for(u=new ye(n);u.a<u.c.c.length;)o=y(de(u),9),e.c[o.c.p][o.p].a=gce(e.i),e.c[o.c.p][o.p].d=He(e.c[o.c.p][o.p].a),e.c[o.c.p][o.p].b=1}i(MPt,"jFc");function Amn(e,n){var o,u,p,g;for(g=0,u=new ye(e);u.a<u.c.c.length;)o=y(de(u),167),g+=d.Math.pow(ph(o)*pf(o)-n,2);return p=d.Math.sqrt(g/(e.c.length-1)),p}i(Amn,"Dod");function Rmn(e,n,o){var u,p;for(o.Tg("Interactive node placement",1),e.a=y(oe(n,(Tt(),yE)),317),p=new ye(n.b);p.a<p.c.c.length;)u=y(de(p),25),exn(e,u);o.Ug()}i(Rmn,"lKc");function Lmn(e){var n,o,u,p,g;if(u=0,p=eE,e.b)for(n=0;n<360;n++)o=n*.017453292519943295,wIe(e,e.d,0,0,vw,o),g=e.b.Cg(e.d),g<p&&(u=o,p=g);wIe(e,e.d,0,0,vw,u)}i(Lmn,"l2c");function _mn(e,n){var o,u,p,g;for(g=new jn,n.e=null,n.f=null,u=new ye(n.i);u.a<u.c.c.length;)o=y(de(u),68),p=y(Jr(e.g,o.a),49),o.a=kY(o.b),Oi(g,o.a,p);e.g=g}i(_mn,"K7c");function Dmn(e,n,o){var u,p,g,w,k,A;for(p=n-e.e,g=p/e.d.c.length,w=0,A=new ye(e.d);A.a<A.c.c.length;)k=y(de(A),320),u=e.b-k.b+o,nOt(k,k.e+w*g,k.f),h0n(k,g,u),++w}i(Dmn,"z7c");function NPt(e){var n;if(e.f.Zj(),e.b!=-1){if(++e.b,n=e.f.d[e.a],e.b<n.i)return;++e.a}for(;e.a<e.f.d.length;++e.a)if(n=e.f.d[e.a],n&&n.i!=0){e.b=0;return}e.b=-1}i(NPt,"MNd");function Imn(e,n){var o,u,p;for(p=n.c.length,o=Rbn(e,p==0?"":(_r(0,n.c.length),di(n.c[0]))),u=1;u<p&&o;++u)o=y(o,52).Wh((_r(u,n.c.length),di(n.c[u])));return o}i(Imn,"Wbe");function OPt(e,n,o,u){var p,g,w;return g=Hxn(e,n,o,u),w=hIe(e,g),vfe(e,n,o,u),Eue(e.b),Ir(),zs(g,new ikt(e)),p=hIe(e,g),vfe(e,o,n,u),Eue(e.b),new Ko(Et(w),Et(p))}i(OPt,"UIc");function Mmn(e,n){var o;n.Tg("Delaunay triangulation",1),o=new Pt,Zc(e.i,new Gkt(o)),Kt(Xt(oe(e,(_7(),_M)))),e.e?Fo(e.e,Fzt(o)):e.e=Fzt(o),n.Ug()}i(Mmn,"pad");function Nmn(e,n,o){var u,p;for(CF(e,e.j+n,e.k+o),p=new Sn((!e.a&&(e.a=new Es(qf,e,5)),e.a));p.e!=p.i.gc();)u=y(_n(p),372),Dle(u,u.a+n,u.b+o);kF(e,e.b+n,e.c+o)}i(Nmn,"hqd");function wDe(e,n,o,u){switch(o){case 7:return!e.e&&(e.e=new zr(Cs,e,7,4)),xu(e.e,n,u);case 8:return!e.d&&(e.d=new zr(Cs,e,8,5)),xu(e.d,n,u)}return mfe(e,n,o,u)}i(wDe,"pwd");function xDe(e,n,o,u){switch(o){case 7:return!e.e&&(e.e=new zr(Cs,e,7,4)),qo(e.e,n,u);case 8:return!e.d&&(e.d=new zr(Cs,e,8,5)),qo(e.d,n,u)}return Zue(e,n,o,u)}i(xDe,"qwd");function PPt(e,n,o){var u,p,g,w,k;if(o)for(g=o.a.length,u=new H2(g),k=(u.b-u.a)*u.c<0?(Qb(),Qv):new tv(u);k.Ob();)w=y(k.Pb(),15),p=y7(o,w.a),p&&fFt(e,p,n)}i(PPt,"rBd");function U$(e,n,o){var u,p,g,w,k;return e.Zj(),g=n==null?0:Aa(n),e.f>0&&(w=(g&Ui)%e.d.length,p=T9e(e,w,g,n),p)?(k=p.ld(o),k):(u=e.ak(g,n,o),e.c.Ec(u),null)}i(U$,"wMd");function TDe(e,n){var o,u,p,g;switch(Hy(e,n).Il()){case 3:case 2:{for(o=HC(n),p=0,g=o.i;p<g;++p)if(u=y(je(o,p),38),Ix(Rl(e,u))==5)return u;break}}return null}i(TDe,"ede");function Omn(e){var n,o,u,p,g;if(lEt(e.f,e.b.length))for(u=tt(Gqt,bG,227,e.b.length*2,0,1),e.b=u,p=u.length-1,o=e.a;o!=e;o=o.Zd())g=y(o,227),n=g.d&p,g.a=u[n],u[n]=g}i(Omn,"Zs");function BPt(e,n){var o,u,p,g;for(g=0,p=y(y(oa(e.r,n),22),83).Jc();p.Ob();)u=y(p.Pb(),115),g=d.Math.max(g,u.e.a+u.b.Kf().a);o=y(yl(e.b,n),127),o.n.b=0,o.a.a=g}i(BPt,"ZJb");function FPt(e,n){var o,u,p,g;for(o=0,g=y(y(oa(e.r,n),22),83).Jc();g.Ob();)p=y(g.Pb(),115),o=d.Math.max(o,p.e.b+p.b.Kf().b);u=y(yl(e.b,n),127),u.n.d=0,u.a.b=o}i(FPt,"gLb");function Pmn(e){var n,o,u;for(o=new ye(e.p);o.a<o.c.c.length;)n=y(de(o),9),n.k==(Yr(),Ya)&&(u=n.o.b,e.i=d.Math.min(e.i,u),e.g=d.Math.max(e.g,u))}i(Pmn,"zEc");function $Pt(e,n,o){var u,p,g;for(g=new ye(n);g.a<g.c.c.length;)u=y(de(g),9),e.c[u.c.p][u.p].e=!1;for(p=new ye(n);p.a<p.c.c.length;)u=y(de(p),9),XIe(e,u,o)}i($Pt,"gFc");function Bmn(e){var n,o;return o=y(oe(e,(Tt(),au)),22),n=Fq(Ber),o.Gc((ol(),dE))&&Pf(n,Ger),o.Gc($M)&&Pf(n,jer),o.Gc(eL)&&Pf(n,Fer),o.Gc(tL)&&Pf(n,$er),n}i(Bmn,"ROc");function kDe(e){if(e<0)throw xe(new rn("The input must be positive"));return e<IUe.length?tw(IUe[e]):d.Math.sqrt(vw*e)*(Cdn(e,e)/l_e(2.718281828459045,e))}i(kDe,"xfd");function K7(e,n){var o;if(e.Wi()&&n!=null){for(o=0;o<e.i;++o)if(ta(n,e.g[o]))return!0}else for(o=0;o<e.i;++o)if(Qe(e.g[o])===Qe(n))return!0;return!1}i(K7,"eGd");function Fmn(e,n){if(n==null){for(;e.a.Ob();)if(y(e.a.Pb(),45).kd()==null)return!0}else for(;e.a.Ob();)if(ta(n,y(e.a.Pb(),45).kd()))return!0;return!1}i(Fmn,"sr");function $mn(e,n){var o,u,p;return n===e?!0:Ge(n,668)?(p=y(n,2011),pOt((u=e.g,u||(e.g=new ooe(e))),(o=p.g,o||(p.g=new ooe(p))))):!1}i($mn,"Jy");function Gmn(e){var n,o,u,p;for(n="$z",o="nz",p=d.Math.min(e.length,5),u=p-1;u>=0;u--)if(Cr(e[u].d,n)||Cr(e[u].d,o)){e.length>=u+1&&e.splice(0,u+1);break}return e}i(Gmn,"_z");function V$(e,n){var o;return Gl(e)&&Gl(n)&&(o=e/n,xG<o&&o<mw)?o<0?d.Math.ceil(o):d.Math.floor(o):hv(UIe(Gl(e)?Xd(e):e,Gl(n)?Xd(n):n,!1))}i(V$,"Qcb");function CDe(e,n){if(n==e.c.i)return e.d.i;if(n==e.d.i)return e.c.i;throw xe(new rn("'node' must either be the source node or target node of the edge."))}i(CDe,"xWb");function jmn(e){var n,o,u,p;if(p=y(oe(e,(Tt(),g$e)),36),p){for(u=new xo,n=Zs(e.c.i);n!=p;)o=n.e,n=Zs(o),Mk(ra(ra(u,o.n),n.c),n.d.b,n.d.d);return u}return eKt}i(jmn,"y_b");function zmn(e){var n;n=y(oe(e,(Tt(),wT)),338),ts(jl(new Er(null,new Rr(n.d,16)),new Tgt),new wTt(e)),ts(Hi(new Er(null,new Rr(n.d,16)),new kgt),new xTt(e))}i(zmn,"pbc");function ufe(e,n){var o,u,p,g;for(p=n?Ra(e):os(e),u=new nn(cn(p.a.Jc(),new B));Nn(u);)if(o=y(vn(u),17),g=CDe(o,e),g.k==(Yr(),bs)&&g.c!=e.c)return g;return null}i(ufe,"Bmc");function hfe(e,n,o){var u,p;u=PC(n.j,o.s,o.c)+PC(o.e,n.s,n.c),p=PC(o.j,n.s,n.c)+PC(n.e,o.s,o.c),u==p?u>0&&(e.b+=2,e.a+=u):(e.b+=1,e.a+=d.Math.min(u,p))}i(hfe,"dQc");function GPt(e,n){var o,u;if(u=!1,lo(n)&&(u=!0,$5(e,new zk(di(n)))),u||Ge(n,242)&&(u=!0,$5(e,(o=Qle(y(n,242)),new DH(o)))),!u)throw xe(new Moe(bPe))}i(GPt,"LAd");function Umn(e,n,o,u){var p,g,w;return p=new B1(e.e,1,10,(w=n.c,Ge(w,88)?y(w,29):(Dr(),up)),(g=o.c,Ge(g,88)?y(g,29):(Dr(),up)),Xy(e,n),!1),u?u.lj(p):u=p,u}i(Umn,"tYd");function EDe(e){var n,o;switch(y(oe(Zs(e),(Bt(),CGe)),420).g){case 0:return n=e.n,o=e.o,new Lt(n.a+o.a/2,n.b+o.b/2);case 1:return new Vo(e.n);default:return null}}i(EDe,"GYb");function W$(){W$=U,rZ=new g9(wg,0),e$e=new g9("LEFTUP",1),r$e=new g9("RIGHTUP",2),ZFe=new g9("LEFTDOWN",3),t$e=new g9("RIGHTDOWN",4),vme=new g9("BALANCED",5)}i(W$,"vpc");function Vmn(e,n,o){var u,p,g;if(u=ha(e.a[n.p],e.a[o.p]),u==0){if(p=y(oe(n,(Tt(),F6)),16),g=y(oe(o,F6),16),p.Gc(o))return-1;if(g.Gc(n))return 1}return u}i(Vmn,"xGc");function Wmn(e){switch(e.g){case 1:return new ayt;case 2:return new syt;case 3:return new iyt;case 0:return null;default:throw xe(new rn(sge+(e.f!=null?e.f:""+e.g)))}}i(Wmn,"V1c");function SDe(e,n,o){switch(n){case 1:!e.n&&(e.n=new xt(nc,e,1,7)),Kn(e.n),!e.n&&(e.n=new xt(nc,e,1,7)),rs(e.n,y(o,18));return;case 2:E7(e,di(o));return}HLe(e,n,o)}i(SDe,"Evd");function ADe(e,n,o){switch(n){case 3:$x(e,He(Xe(o)));return;case 4:Gx(e,He(Xe(o)));return;case 5:Xh(e,He(Xe(o)));return;case 6:Kh(e,He(Xe(o)));return}SDe(e,n,o)}i(ADe,"Vvd");function xK(e,n,o){var u,p,g;g=(u=new Aoe,u),p=t0(g,n,null),p&&p.mj(),wu(g,o),Zn((!e.c&&(e.c=new xt(ET,e,12,10)),e.c),g),Uy(g,0),Zk(g,1),Yy(g,!0),qy(g,!0)}i(xK,"zyd");function RDe(e,n){var o,u,p;return o=h9(e.i,n),Ge(o,241)?(p=y(o,241),p.wi()==null,p.ti()):Ge(o,493)?(u=y(o,2002),p=u.b,p):null}i(RDe,"Z3d");function Hmn(e,n,o,u){var p,g;return oi(n),oi(o),g=y(M9(e.d,n),15),o9t(!!g,"Row %s not in %s",n,e.e),p=y(M9(e.b,o),15),o9t(!!p,"Column %s not in %s",o,e.c),gMt(e,g.a,p.a,u)}i(Hmn,"$i");function qmn(e){var n,o,u,p,g,w;for(o=null,p=e,g=0,w=p.length;g<w;++g){u=p[g];try{V9(u)}catch(k){if(k=hs(k),Ge(k,101))n=k,o?aBt(o,n):o=n;else throw xe(k)}}o&&GJr(o)}i(qmn,"Cy");function jPt(e,n,o,u,p,g,w){var k,A,D,M,F;if(M=p[g],D=g==w-1,k=D?u:0,F=iPt(k,M),u!=10&&Se(Ee(e,w-g),n[g],o[g],k,F),!D)for(++g,A=0;A<M;++A)F[A]=jPt(e,n,o,u,p,g,w);return F}i(jPt,"RC");function Ymn(e){var n,o,u,p,g;for(u=new t3(new yk(e.b).a);u.b;)o=MC(u),n=y(o.jd(),9),g=y(y(o.kd(),49).a,9),p=y(y(o.kd(),49).b,8),ra(hg(n.n),ra(Wo(g.n),p))}i(Ymn,"pec");function Xmn(e,n){var o,u,p,g;for(g=new ye(n.a);g.a<g.c.c.length;)for(p=y(de(g),9),t9(e.d),u=new nn(cn(Ra(p).a.Jc(),new B));Nn(u);)o=y(vn(u),17),UFt(e,p,o.d.i)}i(Xmn,"ZCc");function AI(e){if(e.g==-1)throw xe(new hh);e.Vj();try{e.i.ed(e.g),e.f=e.i.j,e.g<e.e&&--e.e,e.g=-1}catch(n){throw n=hs(n),Ge(n,99)?xe(new od):xe(n)}}i(AI,"tKd");function Kmn(e){var n,o,u,p;for(p=-1,u=0,o=new ye(e);o.a<o.c.c.length;){if(n=y(de(o),250),n.c==(sl(),Mh)){p=u==0?0:u-1;break}else u==e.c.length-1&&(p=u);u+=1}return p}i(Kmn,"_Vb");function Jmn(e){var n,o,u,p;for(p=0,n=0,u=new ye(e.c);u.a<u.c.c.length;)o=y(de(u),26),Xh(o,e.e+p),Kh(o,e.f),p+=o.g+e.b,n=d.Math.max(n,o.f+e.b);e.d=p-e.b,e.a=n-e.b}i(Jmn,"W6c");function GC(e){var n,o,u;for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),60),u=n.d.c,n.d.c=n.d.d,n.d.d=u,u=n.d.b,n.d.b=n.d.a,n.d.a=u,u=n.b.a,n.b.a=n.b.b,n.b.b=u;K9e(e)}i(GC,"lFb");function jC(e){var n,o,u;for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),82),u=n.g.c,n.g.c=n.g.d,n.g.d=u,u=n.g.b,n.g.b=n.g.a,n.g.a=u,u=n.e.a,n.e.a=n.e.b,n.e.b=u;GK(e)}i(jC,"hSb");function Qmn(e){var n,o,u,p,g;for(g=O5(e.k),o=(zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on])),u=0,p=o.length;u<p;++u)if(n=o[u],n!=rc&&!g.Gc(n))return n;return null}i(Qmn,"Fkc");function ffe(e,n){var o,u;return u=y(R5(j1(Hi(new Er(null,new Rr(n.j,16)),new q0t))),12),u&&(o=y(Wt(u.e,0),17),o)?y(oe(o,(Tt(),Ea)),15).a:_un(e.d)}i(ffe,"ulc");function zPt(e){var n,o;return o=Nfe(e),qk(o)?null:(n=(oi(o),y(KOt(new nn(cn(o.a.Jc(),new B))),85)),Pl(y(je((!n.b&&(n.b=new zr(Hn,n,4,7)),n.b),0),84)))}i(zPt,"A_c");function TK(e){var n;return e.o||(n=e.sk(),n?e.o=new x7e(e,e,null):e.$k()?e.o=new a8e(e,null):Ix(Rl((yh(),Ro),e))==1?e.o=new l_t(e):e.o=new Kle(e,null)),e.o}i(TK,"IUd");function Zmn(e,n,o,u){var p,g,w,k,A;o.Uh(n)&&(p=(w=n,w?y(u,52).di(w):null),p&&(A=o.Jh(n),k=n.t,k>1||k==-1?(g=y(A,16),p.Wb(Npn(e,g))):p.Wb(Yfe(e,y(A,57)))))}i(Zmn,"gie");function e1n(e,n,o,u){dEt();var p=r0e;m=n,b=o,QEn=u;function g(){for(var w=0;w<p.length;w++)p[w]()}if(i(g,"g"),e)try{_ar(g)()}catch(w){e(n,w)}else _ar(g)()}i(e1n,"mdb");function t1n(e,n){var o,u,p,g;for(p=(g=new E1(e.b).a.vc().Jc(),new MH(g));p.a.Ob();)if(u=(o=y(p.a.Pb(),45),y(o.jd(),35)),lAe(n,y(u,15))<0)return!1;return!0}i(t1n,"O_b");function r1n(e,n){var o,u,p,g;for(p=(g=new E1(e.b).a.vc().Jc(),new MH(g));p.a.Ob();)if(u=(o=y(p.a.Pb(),45),y(o.jd(),35)),lAe(n,y(u,15))>0)return!1;return!0}i(r1n,"P_b");function n1n(e){switch(y(oe(e.b,(Bt(),yGe)),381).g){case 1:ts(bu(jl(new Er(null,new Rr(e.d,16)),new M0t),new N0t),new O0t);break;case 2:Nxn(e);break;case 0:Abn(e)}}i(n1n,"bjc");function i1n(e,n,o){var u,p,g;for(u=o,!u&&(u=new g5),u.Tg("Layout",e.a.c.length),g=new ye(e.a);g.a<g.c.c.length;){if(p=y(de(g),43),u.Zg())return;p.If(n,u.dh(1))}u.Ug()}i(i1n,"BSc");function a1n(e,n){var o,u;for(Yu(e.b,n),u=new ye(e.n);u.a<u.c.c.length;)if(o=y(de(u),208),Jl(o.c,n,0)!=-1){Yu(o.c,n),Jmn(o),o.c.c.length==0&&Yu(e.n,o);break}Rjt(e)}i(a1n,"P6c");function UPt(e,n){var o,u,p,g,w;for(w=e.f,p=0,g=0,u=new ye(e.a);u.a<u.c.c.length;)o=y(de(u),173),F$(o,e.e,w),s$(o,n),g=d.Math.max(g,o.r),w+=o.d+e.c,p=w;e.d=g,e.b=p}i(UPt,"a7c");function fw(){fw=U,Cye=new b9("V_TOP",0),CN=new b9("V_CENTER",1),kN=new b9("V_BOTTOM",2),kye=new b9("H_LEFT",3),xN=new b9("H_CENTER",4),TN=new b9("H_RIGHT",5)}i(fw,"ohd");function LDe(e){var n;return(e.Db&64)!=0?tK(e):(n=new Hd(tK(e)),n.a+=" (abstract: ",Iy(n,(e.Bb&256)!=0),n.a+=", interface: ",Iy(n,(e.Bb&512)!=0),n.a+=")",n.a)}i(LDe,"TWd");function s1n(e){var n;e.c==null&&(n=Qe(e.b)===Qe(WPe)?null:e.b,e.d=n==null?Qu:B8t(n)?_en(q7t(n)):lo(n)?hMe:j2(mf(n)),e.a=e.a+": "+(B8t(n)?Etn(q7t(n)):n+""),e.c="("+e.d+") "+e.a)}i(s1n,"tz");function o1n(){function e(){try{return new Map().entries().next().done}catch{return!1}}return i(e,"b"),typeof Map===vde&&Map.prototype.entries&&e()?Map:_Cn()}i(o1n,"Osb");function l1n(e,n){var o,u,p,g;for(g=new yo(e.e,0),o=0;g.b<g.d.gc();){if(u=He((In(g.b<g.d.gc()),Xe(g.d.Xb(g.c=g.b++)))),p=u-n,p>rge)return o;p>-1e-6&&++o}return o}i(l1n,"cRc");function kK(e,n,o){if(Ge(n,271))return D2n(e,y(n,85),o);if(Ge(n,276))return cmn(e,y(n,276),o);throw xe(new rn(FR+r0(new oc(Se(Ee(Fs,1),Fr,1,5,[n,o])))))}i(kK,"kBd");function CK(e,n,o){if(Ge(n,271))return I2n(e,y(n,85),o);if(Ge(n,276))return umn(e,y(n,276),o);throw xe(new rn(FR+r0(new oc(Se(Ee(Fs,1),Fr,1,5,[n,o])))))}i(CK,"lBd");function _De(e,n){var o;n!=e.b?(o=null,e.b&&(o=$Y(e.b,e,-4,o)),n&&(o=a6(n,e,-4,o)),o=uNt(e,n,o),o&&o.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,3,n,n))}i(_De,"A0d");function VPt(e,n){var o;n!=e.f?(o=null,e.f&&(o=$Y(e.f,e,-1,o)),n&&(o=a6(n,e,-1,o)),o=hNt(e,n,o),o&&o.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,0,n,n))}i(VPt,"D0d");function c1n(e,n,o,u){var p,g,w,k;return hf(e.e)&&(p=n.Jk(),k=n.kd(),g=o.kd(),w=av(e,1,p,k,g,p.Hk()?oR(e,p,g,Ge(p,103)&&(y(p,19).Bb&Jo)!=0):-1,!0),u?u.lj(w):u=w),u}i(c1n,"Yee");function WPt(e){var n,o,u;if(e==null)return null;if(o=y(e,16),o.dc())return"";for(u=new Dy,n=o.Jc();n.Ob();)ml(u,(ga(),di(n.Pb()))),u.a+=" ";return _le(u,u.a.length-1)}i(WPt,"ole");function HPt(e){var n,o,u;if(e==null)return null;if(o=y(e,16),o.dc())return"";for(u=new Dy,n=o.Jc();n.Ob();)ml(u,(ga(),di(n.Pb()))),u.a+=" ";return _le(u,u.a.length-1)}i(HPt,"sle");function u1n(e,n){var o,u,p,g,w;for(g=new ye(n.a);g.a<g.c.c.length;)for(p=y(de(g),9),u=new nn(cn(os(p).a.Jc(),new B));Nn(u);)o=y(vn(u),17),w=o.c.i.p,e.n[w]=e.n[w]-1}i(u1n,"CEc");function h1n(e,n,o){var u,p;return u=e.c[n.c.p][n.p],p=e.c[o.c.p][o.p],u.a!=null&&p.a!=null?wce(u.a,p.a):u.a!=null?-1:p.a!=null?1:0}i(h1n,"iFc");function f1n(e,n,o){return o.Tg("Tree layout",1),UF(e.b),fg(e.b,(o6(),$Z),$Z),fg(e.b,oN,oN),fg(e.b,lN,lN),fg(e.b,cN,cN),e.a=cG(e.b,n),i1n(e,n,o.dh(1)),o.Ug(),n}i(f1n,"ASc");function qPt(e,n){var o,u,p,g,w,k;if(n)for(g=n.a.length,o=new H2(g),k=(o.b-o.a)*o.c<0?(Qb(),Qv):new tv(o);k.Ob();)w=y(k.Pb(),15),p=y7(n,w.a),u=new s3t(e),M7t(u.a,p)}i(qPt,"FBd");function YPt(e,n){var o,u,p,g,w,k;if(n)for(g=n.a.length,o=new H2(g),k=(o.b-o.a)*o.c<0?(Qb(),Qv):new tv(o);k.Ob();)w=y(k.Pb(),15),p=y7(n,w.a),u=new Jkt(e),I7t(u.a,p)}i(YPt,"WBd");function d1n(e){var n;if(e!=null&&e.length>0&&Do(e,e.length-1)==33)try{return n=s$t(Yd(e,0,e.length-1)),n.e==null}catch(o){if(o=hs(o),!Ge(o,32))throw xe(o)}return!1}i(d1n,"RQd");function p1n(e,n,o){var u,p,g;switch(u=Zs(n),p=KX(u),g=new Fc,Kl(g,n),o.g){case 1:Bs(g,M$(r6(p)));break;case 2:Bs(g,r6(p))}return dt(g,(Bt(),U3),Xe(oe(e,U3))),g}i(p1n,"$Vb");function DDe(e){var n,o;return n=y(vn(new nn(cn(os(e.a).a.Jc(),new B))),17),o=y(vn(new nn(cn(Ra(e.a).a.Jc(),new B))),17),Kt(Xt(oe(n,(Tt(),ib))))||Kt(Xt(oe(o,ib)))}i(DDe,"Z6b");function c3(){c3=U,ij=new fF("ONE_SIDE",0),KQ=new fF("TWO_SIDES_CORNER",1),JQ=new fF("TWO_SIDES_OPPOSING",2),XQ=new fF("THREE_SIDES",3),YQ=new fF("FOUR_SIDES",4)}i(c3,"Nhc");function XPt(e,n){var o,u,p,g;for(g=new Pt,p=0,u=n.Jc();u.Ob();){for(o=Et(y(u.Pb(),15).a+p);o.a<e.f&&!Bin(e,o.a);)o=Et(o.a+1),++p;if(o.a>=e.f)break;tn(g.c,o)}return g}i(XPt,"wnc");function g1n(e){var n,o;for(o=new ye(e.e.b);o.a<o.c.c.length;)n=y(de(o),25),K4n(e,n);ts(Hi(jl(jl(new Er(null,new Rr(e.e.b,16)),new Emt),new Dmt),new Imt),new bkt(e))}i(g1n,"QKc");function IDe(e,n){return n?e.kj(n)?!1:e.i?e.i.lj(n):Ge(n,151)?(e.i=y(n,151),!0):(e.i=new Dbt,e.i.lj(n)):!1}i(IDe,"FId");function KPt(e,n,o){var u,p,g;return u=n.Jk(),g=n.kd(),p=u.Hk()?av(e,3,u,null,g,oR(e,u,g,Ge(u,103)&&(y(u,19).Bb&Jo)!=0),!0):av(e,1,u,u.gk(),g,-1,!0),o?o.lj(p):o=p,o}i(KPt,"Uee");function m1n(e){if(e=ru(e,!0),Cr(MR,e)||Cr("1",e))return qr(),UR;if(Cr(wge,e)||Cr("0",e))return qr(),Dv;throw xe(new Ooe("Invalid boolean value: '"+e+"'"))}i(m1n,"lle");function MDe(e,n,o){var u,p,g;for(p=e.vc().Jc();p.Ob();)if(u=y(p.Pb(),45),g=u.jd(),Qe(n)===Qe(g)||n!=null&&ta(n,g))return o&&(u=new cq(u.jd(),u.kd()),p.Qb()),u;return null}i(MDe,"Kd");function y1n(e){Nk();var n,o,u;e.B.Gc((Zh(),gee))&&(u=e.f.i,n=new BY(e.a.c),o=new p5,o.b=n.c-u.c,o.d=n.d-u.d,o.c=u.c+u.b-(n.c+n.b),o.a=u.d+u.a-(n.d+n.a),e.e.Yf(o))}i(y1n,"zKb");function JPt(e,n,o,u){var p,g,w;for(w=d.Math.min(o,mjt(y(e.b,68),n,o,u)),g=new ye(e.a);g.a<g.c.c.length;)p=y(de(g),225),p!=n&&(w=d.Math.min(w,JPt(p,n,w,u)));return w}i(JPt,"eMb");function NDe(e){var n,o,u,p;for(p=tt(e1,Dt,199,e.b.c.length,0,2),u=new yo(e.b,0);u.b<u.d.gc();)n=(In(u.b<u.d.gc()),y(u.d.Xb(u.c=u.b++),25)),o=u.b-1,p[o]=JF(n.a);return p}i(NDe,"IWb");function ODe(e,n,o){var u,p,g;u=y(Jg(e.a,o),35),u!=null&&(g=y(Jg(e.b,u),66),a3(g,o,!0)),p=y(Jg(e.b,n),66),p||(p=new ya,uw(e.b,n,p)),Ha(p,o,p.c.b,p.c),uw(e.a,o,n)}i(ODe,"Q_b");function dfe(e,n,o,u,p){var g,w,k,A;for(w=EQr(o6e(T8e(Ygn(o)),u),tmn(e,o,p)),A=Ky(e,o).Jc();A.Ob();)k=y(A.Pb(),12),n[k.p]&&(g=n[k.p].i,Nt(w.d,new yce(g,y_e(w,g))));O_e(w)}i(dfe,"N0b");function PDe(e,n){this.f=new jn,this.b=new jn,this.j=new jn,this.a=e,this.c=n,this.c>0&&mPt(this,this.c-1,(zt(),bn)),this.c<this.a.length-1&&mPt(this,this.c+1,(zt(),on))}i(PDe,"hgc");function b1n(e,n){var o,u,p,g,w;for(g=new ye(n.d);g.a<g.c.c.length;)for(p=y(de(g),107),w=y(Jr(e.c,p),116).o,u=new v5(p.b);u.a<u.c.a.length;)o=y(J9(u),64),$Re(p,o,w)}i(b1n,"Ykc");function BDe(e){e.length>0&&e[0].length>0&&(this.c=Kt(Xt(oe(Zs(e[0][0]),(Tt(),b$e))))),this.a=tt(cer,Dt,2082,e.length,0,2),this.b=tt(uer,Dt,2083,e.length,0,2),this.d=new QMt}i(BDe,"KFc");function v1n(e){return e.c.length==0?!1:(_r(0,e.c.length),y(e.c[0],17)).c.i.k==(Yr(),bs)?!0:Kk(bu(new Er(null,new Rr(e,16)),new dmt),new pmt)}i(v1n,"CLc");function QPt(e,n){var o,u,p,g,w,k,A;for(k=p3(n),g=n.f,A=n.g,w=d.Math.sqrt(g*g+A*A),p=0,u=new ye(k);u.a<u.c.c.length;)o=y(de(u),26),p+=QPt(e,o);return d.Math.max(p,w)}i(QPt,"r2c");function uo(){uo=U,Hv=new w9(QI,0),m0=new w9("FREE",1),CL=new w9("FIXED_SIDE",2),Bw=new w9("FIXED_ORDER",3),a1=new w9("FIXED_RATIO",4),zc=new w9("FIXED_POS",5)}i(uo,"Mld");function w1n(e,n){var o,u,p;if(o=n.ni(e.a),o){for(p=di(bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),tp)),u=1;u<(yh(),NWe).length;++u)if(Cr(NWe[u],p))return u}return 0}i(w1n,"Pce");function x1n(e){var n,o,u,p,g;if(e==null)return Qu;for(g=new aw(Tu,"[","]"),o=e,u=0,p=o.length;u<p;++u)n=o[u],P1(g,""+n);return g.a?g.e.length==0?g.a.a:g.a.a+(""+g.e):g.c}i(x1n,"knb");function T1n(e){var n,o,u,p,g;if(e==null)return Qu;for(g=new aw(Tu,"[","]"),o=e,u=0,p=o.length;u<p;++u)n=o[u],P1(g,""+n);return g.a?g.e.length==0?g.a.a:g.a.a+(""+g.e):g.c}i(T1n,"qnb");function ZPt(e){var n,o,u;for(u=new aw(Tu,"{","}"),o=e.vc().Jc();o.Ob();)n=y(o.Pb(),45),P1(u,t_t(e,n.jd())+"="+t_t(e,n.kd()));return u.a?u.e.length==0?u.a.a:u.a.a+(""+u.e):u.c}i(ZPt,"Md");function k1n(e){for(var n,o,u,p;!e9(e.o);)o=y(F5(e.o),49),u=y(o.a,124),n=y(o.b,217),p=ZX(n,u),n.e==u?(Wq(p.g,n),u.e=p.e+n.a):(Wq(p.b,n),u.e=p.e-n.a),Nt(e.e.a,u)}i(k1n,"$Gb");function FDe(e,n){var o,u,p;for(o=null,p=y(n.Kb(e),20).Jc();p.Ob();)if(u=y(p.Pb(),17),!o)o=u.c.i==e?u.d.i:u.c.i;else if((u.c.i==e?u.d.i:u.c.i)!=o)return!1;return!0}i(FDe,"I3b");function eBt(e,n){var o,u,p,g,w;for(o=T$t(e,!1,n),p=new ye(o);p.a<p.c.c.length;)u=y(de(p),133),u.d==0?(Zce(u,null),eue(u,null)):(g=u.a,w=u.b,Zce(u,w),eue(u,g))}i(eBt,"DQc");function C1n(e){var n,o;return n=new us,Pf(n,Ver),o=y(oe(e,(Tt(),au)),22),o.Gc((ol(),$M))&&Pf(n,Yer),o.Gc(eL)&&Pf(n,Wer),o.Gc(dE)&&Pf(n,qer),o.Gc(tL)&&Pf(n,Her),n}i(C1n,"zRc");function $De(e,n,o){var u,p,g,w,k;for(Epn(e),p=(e.k==null&&(e.k=tt(c0e,Dt,80,0,0,1)),e.k),g=0,w=p.length;g<w;++g)u=p[g],$De(u,n," "+o);k=e.f,k&&$De(k,n,o)}i($De,"az");function E1n(e){var n,o,u,p;for(J3n(e),o=new nn(cn(Y0(e).a.Jc(),new B));Nn(o);)n=y(vn(o),17),u=n.c.i==e,p=u?n.d:n.c,u?mo(n,null):Bo(n,null),dt(n,(Tt(),T$e),p),Cvn(e,p.i)}i(E1n,"$7b");function S1n(e,n,o){var u,p,g,w;for(w=Jl(e.e,n,0),g=new z5e,g.b=o,u=new yo(e.e,w);u.b<u.d.gc();)p=(In(u.b<u.d.gc()),y(u.d.Xb(u.c=u.b++),9)),p.p=o,Nt(g.e,p),Wh(u);return g}i(S1n,"HKc");function A1n(e){var n,o,u;for(o=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));o.e!=o.i.gc();)if(n=y(_n(o),26),u=Nfe(n),!Nn(new nn(cn(u.a.Jc(),new B))))return n;return null}i(A1n,"t_c");function EK(){EK=U,z1e=new gF("OVERLAP_REMOVAL",0),$1e=new gF(VVt,1),U1e=new gF("ROTATION",2),G1e=new gF("GRAPH_SIZE_CALCULATION",3),j1e=new gF("OUTGOING_EDGE_ANGLES",4)}i(EK,"R_c");function R1n(){var e;return Sir?y(tR((Jb(),cp),BR),2080):(e=y(Ge(Jc((Jb(),cp),BR),556)?Jc(cp,BR):new qFt,556),Sir=!0,P4n(e),KEn(e),afe(e),Al(cp,BR,e),e)}i(R1n,"wzd");function pfe(e,n,o){var u,p;if(e.j==0)return o;if(p=y(lIt(e,n,o),75),u=o.Jk(),!u.pk()||!e.a.$l(u))throw xe(new ql("Invalid entry feature '"+u.ok().zb+"."+u.ve()+"'"));return p}i(pfe,"efe");function L1n(e,n){var o,u,p,g,w,k,A,D;for(k=e.a,A=0,D=k.length;A<D;++A)for(w=k[A],u=w,p=0,g=u.length;p<g;++p)if(o=u[p],Qe(n)===Qe(o)||n!=null&&ta(n,o))return!0;return!1}i(L1n,"Wi");function _1n(e){var n,o,u;return eu(e,0)>=0?(o=V$(e,lJ),u=Ihe(e,lJ)):(n=Y2(e,1),o=V$(n,5e8),u=Ihe(n,5e8),u=Ho($m(u,1),co(e,1))),H0($m(u,32),co(o,ll))}i(_1n,"Iib");function D1n(e,n,o,u){var p,g,w,k,A;for(p=null,g=0,k=new ye(n);k.a<k.c.c.length;)w=y(de(k),26),A=w.i+w.g,e<w.j+w.f+u&&(p?o.i-A<o.i-g&&(p=w):p=w,g=p.i+p.g);return p?g+u:0}i(D1n,"g5c");function I1n(e,n,o,u){var p,g,w,k,A;for(g=null,p=0,k=new ye(n);k.a<k.c.c.length;)w=y(de(k),26),A=w.j+w.f,e<w.i+w.g+u&&(g?o.j-A<o.j-p&&(g=w):g=w,p=g.j+g.f);return g?p+u:0}i(I1n,"h5c");function M1n(e){var n,o,u;for(n=!1,u=e.b.c.length,o=0;o<u;o++)YLe(y(Wt(e.b,o),434))?!n&&o+1<u&&YLe(y(Wt(e.b,o+1),434))&&(n=!0,y(Wt(e.b,o),434).a=!0):n=!1}i(M1n,"uA");function N1n(e,n,o,u,p){var g,w;for(g=0,w=0;w<p;w++)g=Ho(g,Kd(co(n[w],ll),co(u[w],ll))),e[w]=mi(g),g=Rx(g,32);for(;w<o;w++)g=Ho(g,co(n[w],ll)),e[w]=mi(g),g=Rx(g,32)}i(N1n,"Sib");function O1n(e,n){iR();var o,u;for(u=(J0(),mQ),o=e;n>1;n>>=1)(n&1)!=0&&(u=SC(u,o)),o.d==1?o=SC(o,o):o=new yOt(VGt(o.a,o.d,tt(pi,Pi,30,o.d<<1,15,1)));return u=SC(u,o),u}i(O1n,"_ib");function GDe(){GDe=U;var e,n,o,u;for(yBe=tt(po,vl,30,25,15,1),bBe=tt(po,vl,30,33,15,1),u=152587890625e-16,n=32;n>=0;n--)bBe[n]=u,u*=.5;for(o=1,e=24;e>=0;e--)yBe[e]=o,o*=.5}i(GDe,"Ovb");function P1n(e){var n,o;if(Kt(Xt(St(e,(Bt(),j3))))){for(o=new nn(cn(xv(e).a.Jc(),new B));Nn(o);)if(n=y(vn(o),85),Kx(n)&&Kt(Xt(St(n,Lw))))return!0}return!1}i(P1n,"N$b");function tBt(e){var n,o,u,p;for(n=new ya,o=new ya,p=ei(e,0);p.b!=p.d.c;)u=y(Qn(p),12),u.e.c.length==0?Ha(o,u,o.c.b,o.c):Ha(n,u,n.c.b,n.c);return bf(n).Fc(o),n}i(tBt,"z9b");function rBt(e,n){var o,u,p;ys(e.f,n)&&(n.b=e,u=n.c,Jl(e.j,u,0)!=-1||Nt(e.j,u),p=n.d,Jl(e.j,p,0)!=-1||Nt(e.j,p),o=n.a.b,o.c.length!=0&&(!e.i&&(e.i=new xOt(e)),lfn(e.i,o)))}i(rBt,"_gc");function B1n(e){var n,o,u,p,g;return o=e.c.d,u=o.j,p=e.d.d,g=p.j,u==g?o.p<p.p?0:1:XX(u)==g?0:b_e(u)==g?1:(n=e.b,dh(n.b,XX(u))?0:1)}i(B1n,"lkc");function SK(e,n){var o,u,p,g,w,k;p=e,w=X9(p,"layoutOptions"),!w&&(w=X9(p,qWt)),w&&(k=w,u=null,k&&(u=(g=jue(k,tt(Zt,Dt,2,0,6,1)),new Uoe(k,g))),u&&(o=new RSt(k,n),Io(u,o)))}i(SK,"qCd");function Pl(e){if(Ge(e,206))return y(e,26);if(Ge(e,193))return qg(y(e,125));throw xe(e?new Ly("Only support nodes and ports."):new y5(rHt))}i(Pl,"TEd");function F1n(e,n,o,u){return(n>=0&&Cr(e.substr(n,3),"GMT")||n>=0&&Cr(e.substr(n,3),"UTC"))&&(o[0]=n+3),CIe(e,o,u)}i(F1n,"KA");function $1n(e,n){var o,u,p,g,w;for(g=e.g.a,w=e.g.b,u=new ye(e.d);u.a<u.c.c.length;)o=y(de(u),70),p=o.n,p.a=g,e.i==(zt(),sn)?p.b=w+e.j.b-o.o.b:p.b=w,ra(p,n),g+=o.o.a+e.e}i($1n,"ihc");function nBt(e,n,o){if(e.b)throw xe(new El("The task is already done."));return e.p!=null?!1:(e.p=n,e.r=o,e.k&&(e.o=(Ny(),$o(vc(Date.now()),Qy))),!0)}i(nBt,"fod");function jDe(e){var n,o,u,p,g,w,k;return k=new m5,o=e.Og(),p=o!=null,p&&s7(k,am,e.Og()),u=e.ve(),g=u!=null,g&&s7(k,Vi,e.ve()),n=e.Ng(),w=n!=null,w&&s7(k,"description",e.Ng()),k}i(jDe,"$Dd");function iBt(e,n,o){var u,p,g;return g=e.q,e.q=n,(e.Db&4)!=0&&(e.Db&1)==0&&(p=new Qs(e,1,9,g,n),o?o.lj(p):o=p),n?(u=n.c,u!=e.r&&(o=e.Wk(u,o))):e.r&&(o=e.Wk(null,o)),o}i(iBt,"fUd");function G1n(e,n,o){var u,p,g,w,k;for(o=(k=n,a6(k,e.e,-1-e.c,o)),w=k7e(e.a),g=(u=new t3(new yk(w.a).a),new BH(u));g.a.b;)p=y(MC(g.a).jd(),87),o=uR(p,PK(p,e.a),o);return o}i(G1n,"t8d");function j1n(e,n,o){var u,p,g,w,k;for(o=(k=n,$Y(k,e.e,-1-e.c,o)),w=k7e(e.a),g=(u=new t3(new yk(w.a).a),new BH(u));g.a.b;)p=y(MC(g.a).jd(),87),o=uR(p,PK(p,e.a),o);return o}i(j1n,"u8d");function z1n(e,n,o,u){var p,g,w;if(u==0)$c(n,0,e,o,e.length-o);else for(w=32-u,e[e.length-1]=0,g=e.length-1;g>o;g--)e[g]|=n[g-o-1]>>>w,e[g-1]=n[g-o-1]<<u;for(p=0;p<o;p++)e[p]=0}i(z1n,"Bib");function U1n(e){var n,o,u,p,g;for(n=0,o=0,g=e.Jc();g.Ob();)u=y(g.Pb(),115),n=d.Math.max(n,u.d.b),o=d.Math.max(o,u.d.c);for(p=e.Jc();p.Ob();)u=y(p.Pb(),115),u.d.b=n,u.d.c=o}i(U1n,"fKb");function V1n(e){var n,o,u,p,g;for(o=0,n=0,g=e.Jc();g.Ob();)u=y(g.Pb(),115),o=d.Math.max(o,u.d.d),n=d.Math.max(n,u.d.a);for(p=e.Jc();p.Ob();)u=y(p.Pb(),115),u.d.d=o,u.d.a=n}i(V1n,"nLb");function gfe(e,n,o,u,p){var g,w;g=y(Rh(Hi(n.Mc(),new S0t),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),Y$(g),w=y(iw(e.b,o,u),16),p==0?w.ad(0,g):w.Fc(g)}i(gfe,"_hc");function W1n(e,n,o){o.Tg("Grow Tree",1),e.b=n.f,Kt(Xt(oe(n,(_7(),_M))))?(e.c=new ui,YRt(e,null)):e.c=new ui,e.a=!1,I$t(e,n.f),dt(n,EBe,(qr(),!!e.a)),o.Ug()}i(W1n,"Nad");function Xx(e){var n;this.d=new jn,this.c=e.c,this.e=e.d,this.b=e.b,this.f=new x8t(e.e),this.a=e.a,e.f?this.g=e.f:this.g=(n=y(ug(See),10),new ud(n,y(Np(n,n.length),10),0))}i(Xx,"Kcd");function zDe(e){var n,o,u,p;for(n=null,p=new ye(e.Pf());p.a<p.c.c.length;)u=y(de(p),187),o=new Op(u.Jf().a,u.Jf().b,u.Kf().a,u.Kf().b),n?RI(n,o):n=o;return!n&&(n=new S5),n}i(zDe,"Ypd");function mfe(e,n,o,u){var p,g;return o==1?(!e.n&&(e.n=new xt(nc,e,1,7)),xu(e.n,n,u)):(g=y(Nr((p=y(an(e,16),29),p||e.fi()),o),69),g.uk().xk(e,Nu(e),o-On(e.fi()),n,u))}i(mfe,"Bvd");function yfe(e,n,o){var u,p,g,w,k;for(u=o.gc(),e.Zi(e.i+u),k=e.i-n,k>0&&$c(e.g,n,e.g,n+u,k),w=o.Jc(),e.i+=u,p=0;p<u;++p)g=w.Pb(),L9(e,n,e.Xi(n,g)),e.Ki(n,g),e.Li(),++n;return u!=0}i(yfe,"ZFd");function t0(e,n,o){var u;return n!=e.q?(e.q&&(o=$Y(e.q,e,-10,o)),n&&(o=a6(n,e,-10,o)),o=iBt(e,n,o)):(e.Db&4)!=0&&(e.Db&1)==0&&(u=new Qs(e,1,9,n,n),o?o.lj(u):o=u),o}i(t0,"iUd");function bfe(e,n,o,u){return b8e((o&Z0)==0,"flatMap does not support SUBSIZED characteristic"),b8e((o&4)==0,"flatMap does not support SORTED characteristic"),oi(e),oi(n),new YLt(e,n,o,u)}i(bfe,"ck");function aBt(e,n){c7e(n,"Cannot suppress a null exception."),FF(n!=e,"Exception can not suppress itself."),!e.i&&(e.k==null?e.k=Se(Ee(c0e,1),Dt,80,0,[n]):e.k[e.k.length]=n)}i(aBt,"Zy");function H1n(e,n){var o;if(o=h5t(e.b.$f(),n.b.$f()),o!=0)return o;switch(e.b.$f().g){case 1:case 2:return Yc(e.b.Lf(),n.b.Lf());case 3:case 4:return Yc(n.b.Lf(),e.b.Lf())}return 0}i(H1n,"gJb");function q1n(e){var n,o,u;for(u=e.e.c.length,e.a=Fk(pi,[Dt,Pi],[54,30],15,[u,u],2),o=new ye(e.c);o.a<o.c.c.length;)n=y(de(o),291),e.a[n.c.a][n.d.a]+=y(oe(n,(Vp(),D6)),15).a}i(q1n,"INb");function Y1n(e,n){var o,u,p,g,w;if(e==null)return null;for(w=tt(Rd,em,30,2*n,15,1),u=0,p=0;u<n;++u)o=e[u]>>4&15,g=e[u]&15,w[p++]=lWe[o],w[p++]=lWe[g];return Jd(w,0,w.length)}i(Y1n,"Oxd");function Ku(e){var n,o;return e>=Jo?(n=TG+(e-Jo>>10&1023)&As,o=56320+(e-Jo&1023)&As,String.fromCharCode(n)+(""+String.fromCharCode(o))):String.fromCharCode(e&As)}i(Ku,"Pgb");function X1n(e,n){Nk();var o,u,p,g;return p=y(y(oa(e.r,n),22),83),p.gc()>=2?(u=y(p.Jc().Pb(),115),o=e.u.Gc((_h(),IN)),g=e.u.Gc(tA),!u.a&&!o&&(p.gc()==2||g)):!1}i(X1n,"xKb");function sBt(e,n,o,u,p){var g,w,k;for(g=X$t(e,n,o,u,p),k=!1;!g;)NK(e,p,!0),k=!0,g=X$t(e,n,o,u,p);k&&NK(e,p,!1),w=rhe(p),w.c.length!=0&&(e.d&&e.d.Fg(w),sBt(e,p,o,u,w))}i(sBt,"e0c");function AK(){AK=U,eye=new Cq("NODE_SIZE_REORDERER",0),J1e=new Cq("INTERACTIVE_NODE_REORDERER",1),Z1e=new Cq("MIN_SIZE_PRE_PROCESSOR",2),Q1e=new Cq("MIN_SIZE_POST_PROCESSOR",3)}i(AK,"j3c");function RK(){RK=U,Gye=new v9(wg,0),LVe=new v9("DIRECTED",1),DVe=new v9("UNDIRECTED",2),AVe=new v9("ASSOCIATION",3),_Ve=new v9("GENERALIZATION",4),RVe=new v9("DEPENDENCY",5)}i(RK,"tkd");function K1n(e,n){var o;if(!qg(e))throw xe(new El(MWt));switch(o=qg(e),n.g){case 1:return-(e.j+e.f);case 2:return e.i-o.g;case 3:return e.j-o.f;case 4:return-(e.i+e.g)}return 0}i(K1n,"Ppd");function J1n(e,n,o){var u,p,g;return u=n.Jk(),g=n.kd(),p=u.Hk()?av(e,4,u,g,null,oR(e,u,g,Ge(u,103)&&(y(u,19).Bb&Jo)!=0),!0):av(e,u.rk()?2:1,u,g,u.gk(),-1,!0),o?o.lj(p):o=p,o}i(J1n,"Wee");function J7(e,n){var o,u;for(Ur(n),u=e.b.c.length,Nt(e.b,n);u>0;){if(o=u,u=(u-1)/2|0,e.a.Le(Wt(e.b,u),n)<=0)return Mf(e.b,o,n),!0;Mf(e.b,o,Wt(e.b,u))}return Mf(e.b,u,n),!0}i(J7,"svb");function UDe(e,n,o,u){var p,g;if(p=0,o)p=WX(e.a[o.g][n.g],u);else for(g=0;g<xQ;g++)p=d.Math.max(p,WX(e.a[g][n.g],u));return n==(yg(),Cu)&&e.b&&(p=d.Math.max(p,e.b.a)),p}i(UDe,"XHb");function Q1n(e,n){var o,u,p,g,w,k;return p=e.i,g=n.i,!p||!g||p.i!=g.i||p.i==(zt(),bn)||p.i==(zt(),on)?!1:(w=p.g.a,o=w+p.j.a,k=g.g.a,u=k+g.j.a,w<=u&&o>=k)}i(Q1n,"elc");function oBt(e){switch(e.g){case 0:return new Tyt;case 1:return new kyt;default:throw xe(new rn("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}i(oBt,"v5c");function VDe(e,n,o,u){var p;if(p=!1,lo(u)&&(p=!0,s7(n,o,di(u))),p||Lk(u)&&(p=!0,VDe(e,n,o,u)),p||Ge(u,242)&&(p=!0,J2(n,o,y(u,242))),!p)throw xe(new Moe(bPe))}i(VDe,"NAd");function Z1n(e,n){var o,u,p;if(o=n.ni(e.a),o&&(p=bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),Zd),p!=null)){for(u=1;u<(yh(),IWe).length;++u)if(Cr(IWe[u],p))return u}return 0}i(Z1n,"Hce");function eyn(e,n){var o,u,p;if(o=n.ni(e.a),o&&(p=bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),Zd),p!=null)){for(u=1;u<(yh(),MWe).length;++u)if(Cr(MWe[u],p))return u}return 0}i(eyn,"Ice");function lBt(e,n){var o,u,p,g;if(Ur(n),g=e.a.gc(),g<n.gc())for(o=e.a.ec().Jc();o.Ob();)u=o.Pb(),n.Gc(u)&&o.Qb();else for(p=n.Jc();p.Ob();)u=p.Pb(),e.a.Ac(u)!=null;return g!=e.a.gc()}i(lBt,"Te");function cBt(e){var n,o;switch(o=Wo(Ql(Se(Ee(to,1),Dt,8,0,[e.i.n,e.n,e.a]))),n=e.i.d,e.j.g){case 1:o.b-=n.d;break;case 2:o.a+=n.c;break;case 3:o.b+=n.a;break;case 4:o.a-=n.b}return o}i(cBt,"KUb");function tyn(e){var n;for(n=(J5(),y(vn(new nn(cn(os(e).a.Jc(),new B))),17).c.i);n.k==(Yr(),bs);)dt(n,(Tt(),fj),(qr(),!0)),n=y(vn(new nn(cn(os(n).a.Jc(),new B))),17).c.i}i(tyn,"U6b");function vfe(e,n,o,u){var p,g,w,k;for(k=pI(n,u),w=k.Jc();w.Ob();)p=y(w.Pb(),12),e.d[p.p]=e.d[p.p]+e.c[o.p];for(k=pI(o,u),g=k.Jc();g.Ob();)p=y(g.Pb(),12),e.d[p.p]=e.d[p.p]-e.c[n.p]}i(vfe,"kJc");function WDe(e,n,o){var u,p;for(p=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));p.e!=p.i.gc();)u=y(_n(p),26),ld(u,u.i+n,u.j+o);Io((!e.b&&(e.b=new xt(Cs,e,12,3)),e.b),new ySt(n,o))}i(WDe,"iqd");function ryn(e,n,o,u){var p,g;for(g=n,p=g.d==null||e.a.Le(o.d,g.d)>0?1:0;g.a[p]!=o;)g=g.a[p],p=e.a.Le(o.d,g.d)>0?1:0;g.a[p]=u,u.b=o.b,u.a[0]=o.a[0],u.a[1]=o.a[1],o.a[0]=null,o.a[1]=null}i(ryn,"fyb");function nyn(e){var n,o,u,p;for(n=new Pt,o=tt(ah,vg,30,e.a.c.length,16,1),o7e(o,o.length),p=new ye(e.a);p.a<p.c.c.length;)u=y(de(p),124),o[u.d]||(tn(n.c,u),SOt(e,u,o));return n}i(nyn,"dGb");function uBt(e,n){var o,u,p,g,w;for(p=n==1?P0e:O0e,u=p.a.ec().Jc();u.Ob();)for(o=y(u.Pb(),86),w=y(oa(e.f.c,o),22).Jc();w.Ob();)g=y(w.Pb(),49),Yu(e.b.b,g.b),Yu(e.b.a,y(g.b,82).d)}i(uBt,"yRb");function iyn(e,n){var o;n.Tg("Hierarchical port position processing",1),o=e.b,o.c.length>0&&$Gt((_r(0,o.c.length),y(o.c[0],25)),e),o.c.length>1&&$Gt(y(Wt(o,o.c.length-1),25),e),n.Ug()}i(iyn,"B3b");function ayn(e){_h();var n,o;return n=ka(ry,Se(Ee(pee,1),At,280,0,[qv])),!(x$(jY(n,e))>1||(o=ka(IN,Se(Ee(pee,1),At,280,0,[DN,tA])),x$(jY(o,e))>1))}i(ayn,"bmd");function HDe(e,n){var o;o=Jc((Jb(),cp),e),Ge(o,493)?Al(cp,e,new $St(this,n)):Al(cp,e,this),xfe(this,n),n==(V8(),wWe)?(this.wb=y(this,2003),y(n,2005)):this.wb=(rv(),Xr)}i(HDe,"_yd");function syn(e){var n,o,u;if(e==null)return null;for(n=null,o=0;o<PN.length;++o)try{return AEt(PN[o],e)}catch(p){if(p=hs(p),Ge(p,32))u=p,n=u;else throw xe(p)}throw xe(new fX(n))}i(syn,"Y8d");function hBt(){hBt=U,rYt=Se(Ee(Zt,1),Dt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),nYt=Se(Ee(Zt,1),Dt,2,6,["Jan","Feb","Mar","Apr",y6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}i(hBt,"Uqb");function oe(e,n){var o,u;return u=(!e.q&&(e.q=new jn),Jr(e.q,n)),u??(o=n.Rg(),Ge(o,4)&&(o==null?(!e.q&&(e.q=new jn),H5(e.q,n)):(!e.q&&(e.q=new jn),Oi(e.q,n,o))),o)}i(oe,"oNb");function eo(){eo=U,Yp=new hF("P1_CYCLE_BREAKING",0),Zm=new hF("P2_LAYERING",1),jc=new hF("P3_NODE_ORDERING",2),Lc=new hF("P4_NODE_PLACEMENT",3),hl=new hF("P5_EDGE_ROUTING",4)}i(eo,"YQb");function oyn(e,n){eI();var o;if(e.c==n.c){if(e.b==n.b||jhn(e.b,n.b)){if(o=MZr(e.b)?1:-1,e.a&&!n.a)return o;if(!e.a&&n.a)return-o}return Yc(e.b.g,n.b.g)}else return ha(e.c,n.c)}i(oyn,"oTb");function lyn(e,n,o,u){var p,g,w,k,A;return w=vPt(e.a,n,o),k=y(w.a,15).a,g=y(w.b,15).a,u&&(A=y(oe(n,(Tt(),Ih)),9),p=y(oe(o,Ih),9),A&&p&&(e_t(e.b,A,p),k+=e.b.i,g+=e.b.e)),k>g}i(lyn,"gGc");function fBt(e,n){var o,u,p;if(YDe(e,n))return!0;for(u=new ye(n);u.a<u.c.c.length;)if(o=y(de(u),26),p=zPt(o),VK(e,o,p)||oNt(e,o)-e.g<=e.a)return!0;return!1}i(fBt,"n0c");function H$(){H$=U,nee=(jfe(),TUe),bye=Krr,yye=Xrr,gUe=Hrr,mye=Yrr,pUe=new Cx(8),$rr=new To((Ri(),r1),pUe),Grr=new To(ub,8),jrr=wUe,fUe=zrr,dUe=Urr,Frr=new To(Bj,(qr(),!1))}i(H$,"j9c");function LK(){LK=U,$Ue=new Cx(15),pnr=new To((Ri(),r1),$Ue),gnr=new To(ub,15),GUe=new To(jj,Et(0)),PUe=Tnr,fnr=Pw,dnr=Uv,OUe=new To(yL,lWt),BUe=$j,FUe=IE,Tye=vnr,hnr=Pj}i(LK,"bhd");function cyn(e,n){if(Ge(n,206))return xgn(e,y(n,26));if(Ge(n,193))return Cgn(e,y(n,125));if(n)return null;throw xe(new rn(FR+r0(new oc(Se(Ee(Fs,1),Fr,1,5,[n])))))}i(cyn,"eCd");function uyn(e,n){if(Ge(n,362))return dun(e,y(n,157));if(Ge(n,271))return f3n(e,y(n,85));if(n)return null;throw xe(new rn(FR+r0(new oc(Se(Ee(Fs,1),Fr,1,5,[n])))))}i(uyn,"fCd");function wfe(e){if((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c).i!=1)throw xe(new rn(iHt));return Pl(y(je((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),0),84))}i(wfe,"aFd");function dBt(e){if((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c).i!=1)throw xe(new rn(iHt));return Pl(y(je((!e.c&&(e.c=new zr(Hn,e,5,8)),e.c),0),84))}i(dBt,"bFd");function qDe(e,n,o){var u,p,g;if(++e.j,p=e.Cj(),n>=p||n<0)throw xe(new yu(Pge+n+xw+p));if(o>=p||o<0)throw xe(new yu(Bge+o+xw+p));return n!=o?u=(g=e.Aj(o),e.oj(n,g),g):u=e.vj(o),u}i(qDe,"sHd");function pBt(e){var n,o,u;if(u=e,e)for(n=0,o=e.Bh();o;o=o.Bh()){if(++n>Wde)return pBt(o);if(u=o,o==e)throw xe(new El("There is a cycle in the containment hierarchy of "+e))}return u}i(pBt,"Yhe");function r0(e){var n,o,u;for(u=new aw(Tu,"[","]"),o=e.Jc();o.Ob();)n=o.Pb(),P1(u,Qe(n)===Qe(e)?"(this Collection)":n==null?Qu:zl(n));return u.a?u.e.length==0?u.a.a:u.a.a+(""+u.e):u.c}i(r0,"Ee");function YDe(e,n){var o,u;if(u=!1,n.gc()<2)return!1;for(o=0;o<n.gc();o++)o<n.gc()-1?u=u|VK(e,y(n.Xb(o),26),y(n.Xb(o+1),26)):u=u|VK(e,y(n.Xb(o),26),y(n.Xb(0),26));return u}i(YDe,"$_c");function gBt(e,n){var o;n!=e.a?(o=null,e.a&&(o=y(e.a,52).Qh(e,4,Ag,o)),n&&(o=y(n,52).Oh(e,4,Ag,o)),o=o_e(e,n,o),o&&o.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,1,n,n))}i(gBt,"Sxd");function XDe(e,n){var o;n!=e.e?(e.e&&Y_t(k7e(e.e),e),n&&(!n.b&&(n.b=new PH(new Roe)),fAt(n.b,e)),o=xmn(e,n,null),o&&o.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,4,n,n))}i(XDe,"C0d");function hyn(e){var n,o,u,p;if(mC(y(oe(e.b,(Bt(),Uf)),86)))return 0;for(n=0,u=new ye(e.a);u.a<u.c.c.length;)o=y(de(u),9),o.k==(Yr(),Ya)&&(p=o.o.a,n=d.Math.max(n,p));return n}i(hyn,"OXb");function fyn(e,n){var o;o=n.o,R1(e.f)?(e.j.a=d.Math.max(e.j.a,o.a),e.j.b+=o.b,e.d.c.length>1&&(e.j.b+=e.e)):(e.j.a+=o.a,e.j.b=d.Math.max(e.j.b,o.b),e.d.c.length>1&&(e.j.a+=e.e))}i(fyn,"jhc");function vv(){vv=U,TKt=Se(Ee(Qo,1),Rc,64,0,[(zt(),sn),bn,Fn]),xKt=Se(Ee(Qo,1),Rc,64,0,[bn,Fn,on]),kKt=Se(Ee(Qo,1),Rc,64,0,[Fn,on,sn]),CKt=Se(Ee(Qo,1),Rc,64,0,[on,sn,bn])}i(vv,"Yhc");function mBt(e){var n,o,u,p,g,w,k,A,D;for(this.a=$Ot(e),this.b=new Pt,o=e,u=0,p=o.length;u<p;++u)for(n=o[u],g=new Pt,Nt(this.b,g),k=n,A=0,D=k.length;A<D;++A)w=k[A],Nt(g,new Ah(w.j))}i(mBt,"xIc");function dyn(e,n,o){var u,p,g;return g=0,u=o[n],n<o.length-1&&(p=o[n+1],e.b[n]?(g=qEn(e.d,u,p),g+=Oce(e.a,u,(zt(),bn)),g+=Oce(e.a,p,on)):g=mun(e.a,u,p)),e.c[n]&&(g+=zcn(e.a,u)),g}i(dyn,"zIc");function pyn(e,n,o,u,p){var g,w,k,A;for(A=null,k=new ye(u);k.a<k.c.c.length;)if(w=y(de(k),444),w!=o&&Jl(w.e,p,0)!=-1){A=w;break}g=gue(p),Bo(g,o.b),mo(g,A.b),Sr(e.a,p,new Zq(g,n,o.f))}i(pyn,"XVb");function yBt(e){for(;e.g.c!=0&&e.d.c!=0;)qle(e.g).c>qle(e.d).c?(e.i+=e.g.c,Nhe(e.d)):qle(e.d).c>qle(e.g).c?(e.e+=e.d.c,Nhe(e.g)):(e.i+=w8t(e.g),e.e+=w8t(e.d),Nhe(e.g),Nhe(e.d))}i(yBt,"cgc");function gyn(e,n,o){var u,p,g,w;for(g=n.q,w=n.r,new Q2((pg(),Gv),n,g,1),new Q2(Gv,g,w,1),p=new ye(o);p.a<p.c.c.length;)u=y(de(p),116),u!=g&&u!=n&&u!=w&&(GIe(e.a,u,n),GIe(e.a,u,w))}i(gyn,"eQc");function bBt(e,n,o,u){e.a.d=d.Math.min(n,o),e.a.a=d.Math.max(n,u)-e.a.d,n<o?(e.b=.5*(n+o),e.g=nge*e.b+.9*n,e.f=nge*e.b+.9*o):(e.b=.5*(n+u),e.g=nge*e.b+.9*u,e.f=nge*e.b+.9*n)}i(bBt,"eSc");function myn(e){var n,o,u,p;if(e.b!=0){for(n=new ya,p=ei(e,0);p.b!=p.d.c;)u=y(Qn(p),40),Fo(n,the(u)),o=u.e,o.a=y(oe(u,(Ca(),Aj)),15).a,o.b=y(oe(u,Rj),15).a;return n}return new ya}i(myn,"iWc");function yyn(e){switch(y(oe(e,(Bt(),tc)),165).g){case 1:dt(e,tc,(yf(),VM));break;case 2:dt(e,tc,(yf(),Rw));break;case 3:dt(e,tc,(yf(),UM));break;case 4:dt(e,tc,(yf(),Q1))}}i(yyn,"f2b");function byn(e,n,o){var u;o.Tg("Self-Loop routing",1),u=rpn(n),Mq(oe(n,(iX(),wN))),ts(bu(Hi(Hi(jl(new Er(null,new Rr(n.b,16)),new Rgt),new Lgt),new _gt),new Dgt),new GEt(e,u)),o.Ug()}i(byn,"Wbc");function Q7(){Q7=U,BM=new m9(wg,0),a$e=new m9(w6,1),l$e=new m9(x6,2),o$e=new m9("LEFT_RIGHT_CONSTRAINT_LOCKING",3),s$e=new m9("LEFT_RIGHT_CONNECTION_LOCKING",4),i$e=new m9(yVt,5)}i(Q7,"Hpc");function vBt(e,n,o){var u,p,g,w,k,A,D;k=o.a/2,g=o.b/2,u=d.Math.abs(n.a-e.a),p=d.Math.abs(n.b-e.b),A=1,D=1,u>k&&(A=k/u),p>g&&(D=g/p),w=d.Math.min(A,D),e.a+=w*(n.a-e.a),e.b+=w*(n.b-e.b)}i(vBt,"cTc");function vyn(e,n,o,u,p){var g,w;for(w=!1,g=y(Wt(o.b,0),26);kkn(e,n,g,u,p)&&(w=!0,a1n(o,g),o.b.c.length!=0);)g=y(Wt(o.b,0),26);return o.b.c.length==0&&z$(o.j,o),w&&bK(n.q),w}i(vyn,"D5c");function KDe(e,n,o,u){var p,g;return o==0?(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),Jq(e.o,n,u)):(g=y(Nr((p=y(an(e,16),29),p||e.fi()),o),69),g.uk().yk(e,Nu(e),o-On(e.fi()),n,u))}i(KDe,"Zud");function xfe(e,n){var o;n!=e.sb?(o=null,e.sb&&(o=y(e.sb,52).Qh(e,1,ON,o)),n&&(o=y(n,52).Oh(e,1,ON,o)),o=h_e(e,n,o),o&&o.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,4,n,n))}i(xfe,"Xyd");function wBt(e,n){var o,u,p,g;if(n)p=G1(n,"x"),o=new n3t(e),LC(o.a,(Ur(p),p)),g=G1(n,"y"),u=new i3t(e),_C(u.a,(Ur(g),g));else throw xe(new j0("All edge sections need an end point."))}i(wBt,"EBd");function xBt(e,n){var o,u,p,g;if(n)p=G1(n,"x"),o=new e3t(e),DC(o.a,(Ur(p),p)),g=G1(n,"y"),u=new t3t(e),IC(u.a,(Ur(g),g));else throw xe(new j0("All edge sections need a start point."))}i(xBt,"CBd");function wyn(e,n){var o,u,p,g,w,k,A;for(u=GMt(e),g=0,k=u.length;g<k;++g)CBt(n);for(A=!c0&&e.e?c0?null:e.d:null;A;){for(o=GMt(A),p=0,w=o.length;p<w;++p)CBt(n);A=!c0&&A.e?c0?null:A.d:null}}i(wyn,"pAb");function TBt(e,n){var o,u;u=y(oe(n,(Bt(),Qa)),102),dt(n,(Tt(),k$e),u),o=n.e,o&&(ts(new Er(null,new Rr(o.a,16)),new C5e(e)),ts(jl(new Er(null,new Rr(o.b,16)),new ct),new E5e(e)))}i(TBt,"EQb");function xyn(e){var n,o,u,p;if(n=!1,ea(e,(Tt(),GM)))for(o=y(oe(e,GM),92),p=new ye(e.j);p.a<p.c.c.length;)u=y(de(p),12),b2n(u)&&(n||(Pbn(Zs(e)),n=!0),zpn(y(o.xc(u),319)))}i(xyn,"j1b");function Tyn(e){var n,o,u,p,g,w,k,A,D;return D=jDe(e),o=e.e,g=o!=null,g&&s7(D,YJ,e.e),k=e.k,w=!!k,w&&s7(D,"type",Ule(e.k)),u=aF(e.j),p=!u,p&&(A=new F2,Fp(D,Nge,A),n=new k3t(A),Io(e.j,n)),D}i(Tyn,"ZDd");function kyn(e){var n,o,u,p;for(p=nv((Of(e.gc(),"size"),new sC),123),u=!0,o=q2(e).Jc();o.Ob();)n=y(o.Pb(),45),u||(p.a+=Tu),u=!1,qc(nv(qc(p,n.jd()),61),n.kd());return(p.a+="}",p).a}i(kyn,"Qv");function kBt(e,n){var o,u,p;return n&=63,n<22?(o=e.l<<n,u=e.m<<n|e.l>>22-n,p=e.h<<n|e.m>>22-n):n<44?(o=0,u=e.l<<n-22,p=e.m<<n-22|e.l>>44-n):(o=0,u=0,p=e.l<<n-44),Mu(o&ef,u&ef,p&q1)}i(kBt,"sD");function u3(e){if(JPe==null&&(JPe=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!JPe.test(e))throw xe(new z0(nT+e+'"'));return parseFloat(e)}i(u3,"Xdb");function CBt(e){var n,o,u;n=Cr(typeof console,Qde)?null:new Oe,n&&(X8(),o=(u=900,u>=Qy?"error":u>=900?"warn":u>=800?"info":"log"),l7t(o,e.a),e.b&&Q9e(n,o,e.b,"Exception: ",!0))}i(CBt,"yAb");function EBt(e,n){var o,u,p,g,w;for(p=n==1?P0e:O0e,u=p.a.ec().Jc();u.Ob();)for(o=y(u.Pb(),86),w=y(oa(e.f.c,o),22).Jc();w.Ob();)g=y(w.Pb(),49),Nt(e.b.b,y(g.b,82)),Nt(e.b.a,y(g.b,82).d)}i(EBt,"tRb");function SBt(e,n,o,u){var p,g,w,k,A;switch(A=e.b,g=n.d,w=g.j,k=K_e(w,A.d[w.g],o),p=ra(Wo(g.n),g.a),g.j.g){case 3:case 1:k.a+=p.a;break;case 2:k.b+=p.b;break;case 4:k.b+=p.b}Ha(u,k,u.c.b,u.c)}i(SBt,"ikc");function Cyn(e,n){var o,u,p,g;for(g=n.b.j,e.a=tt(pi,Pi,30,g.c.length,15,1),p=0,u=0;u<g.c.length;u++)o=(_r(u,g.c.length),y(g.c[u],12)),o.e.c.length==0&&o.g.c.length==0?p+=1:p+=3,e.a[u]=p}i(Cyn,"Hkc");function _K(){_K=U,gme=new p9("ALWAYS_UP",0),pme=new p9("ALWAYS_DOWN",1),yme=new p9("DIRECTION_UP",2),mme=new p9("DIRECTION_DOWN",3),bme=new p9("SMART_UP",4),eZ=new p9("SMART_DOWN",5)}i(_K,"apc");function Eyn(e,n){if(e<0||n<0)throw xe(new rn("k and n must be positive"));if(n>e)throw xe(new rn("k must be smaller than n"));return n==0||n==e?1:e==0?0:kDe(e)/(kDe(n)*kDe(e-n))}i(Eyn,"sfd");function JDe(e,n){var o,u,p,g;for(o=new Mle(e);o.g==null&&!o.c?U7e(o):o.g==null||o.i!=0&&y(o.g[o.i-1],50).Ob();)if(g=y(OK(o),57),Ge(g,174))for(u=y(g,174),p=0;p<n.length;p++)n[p].Jg(u)}i(JDe,"Opd");function Tfe(e){var n;return(e.Db&64)!=0?khe(e):(n=new Hd(khe(e)),n.a+=" (height: ",oC(n,e.f),n.a+=", width: ",oC(n,e.g),n.a+=", x: ",oC(n,e.i),n.a+=", y: ",oC(n,e.j),n.a+=")",n.a)}i(Tfe,"bwd");function Syn(e){var n,o,u,p,g,w,k;for(n=new lv,u=e,p=0,g=u.length;p<g;++p)if(o=u[p],w=oi(o.jd()),k=uw(n,w,oi(o.kd())),k!=null)throw xe(new rn("duplicate key: "+w));this.b=(Ir(),new yoe(n))}i(Syn,"An");function Ayn(e){var n,o,u,p,g;if(e==null)return Qu;for(g=new aw(Tu,"[","]"),o=e,u=0,p=o.length;u<p;++u)n=o[u],P1(g,String.fromCharCode(n));return g.a?g.e.length==0?g.a.a:g.a.a+(""+g.e):g.c}i(Ayn,"lnb");function QDe(){QDe=U,SBe=(gX(),kQ),tXt=new br(dJ,SBe),Et(1),eXt=new br(_Me,Et(300)),Et(0),iXt=new br(DMe,Et(0)),new qD,aXt=new br(npe,rm),new qD,rXt=new br(ipe,5),sXt=kQ,nXt=R0e}i(QDe,"qOb");function Ryn(e,n){var o;if(n!=null&&!e.c.Fk().dk(n))throw o=Ge(n,57)?y(n,57).Ah().zb:j2(mf(n)),xe(new G8(Lv+e.c.ve()+"'s type '"+e.c.Fk().ve()+"' does not permit a value of type '"+o+"'"))}i(Ryn,"X4d");function Lyn(e,n,o){var u,p;for(p=new yo(e.b,0);p.b<p.d.gc();)u=(In(p.b<p.d.gc()),y(p.d.Xb(p.c=p.b++),70)),Qe(oe(u,(Tt(),x$e)))===Qe(n)&&(a9e(u.n,Zs(e.c.i),o),Wh(p),Nt(n.b,u))}i(Lyn,"QVb");function ABt(e){var n,o;return o=d.Math.sqrt((e.k==null&&(e.k=CLe(e,new tmt)),He(e.k)/(e.b*(e.g==null&&(e.g=BIt(e,new jSe)),He(e.g))))),n=mi(vc(d.Math.round(o))),n=d.Math.min(n,e.f),n}i(ABt,"cmc");function _yn(){var e,n,o;for(n=0,e=0;e<1;e++){if(o=A9e((un(e,1),"X".charCodeAt(e))),o==0)throw xe(new bi((un(e,2),"Unknown Option: "+"X".substr(e))));n|=o}return n}i(_yn,"Fqe");function Dyn(e){var n,o,u,p,g,w;for(n=new vC,o=new vC,ov(n,e),ov(o,e);o.b!=o.c;)for(p=y(F5(o),36),w=new ye(p.a);w.a<w.c.c.length;)g=y(de(w),9),g.e&&(u=g.e,ov(n,u),ov(o,u));return n}i(Dyn,"mQb");function Fc(){mh(),s8e.call(this),this.j=(zt(),rc),this.a=new xo,new Coe,this.f=(Of(2,w3),new vu(2)),this.e=(Of(4,w3),new vu(4)),this.g=(Of(4,w3),new vu(4)),this.b=new $Et(this.e,this.g)}i(Fc,"yZb");function Iyn(e,n){var o,u;return!(Kt(Xt(oe(n,(Tt(),ib))))||(u=n.c.i,e==(yf(),UM)&&u.k==(Yr(),_c))||(o=y(oe(u,(Bt(),tc)),165),o==Q1))}i(Iyn,"m0b");function Myn(e,n){var o,u;return!(Kt(Xt(oe(n,(Tt(),ib))))||(u=n.d.i,e==(yf(),VM)&&u.k==(Yr(),_c))||(o=y(oe(u,(Bt(),tc)),165),o==Rw))}i(Myn,"n0b");function Nyn(e,n){var o,u,p,g,w,k,A;for(w=e.d,A=e.o,k=new Op(-w.b,-w.d,w.b+A.a+w.c,w.d+A.b+w.a),u=n,p=0,g=u.length;p<g;++p)o=u[p],o&&RI(k,o.i);w.b=-k.c,w.d=-k.d,w.c=k.b-w.b-A.a,w.a=k.a-w.d-A.b}i(Nyn,"O0b");function Oyn(e,n){if(n.a)switch(y(oe(n.b,(Tt(),k$e)),102).g){case 0:case 1:n1n(n);case 2:ts(new Er(null,new Rr(n.d,16)),new BSe),Evn(e.a,n)}else ts(new Er(null,new Rr(n.d,16)),new BSe)}i(Oyn,"_ac");function q$(){q$=U,lUe=new yF("CENTER_DISTANCE",0),pye=new yF("CIRCLE_UNDERLAP",1),uUe=new yF("RECTANGLE_UNDERLAP",2),gye=new yF("INVERTED_OVERLAP",3),cUe=new yF("MINIMUM_ROOT_DISTANCE",4)}i(q$,"T8c");function Pyn(e){aIe();var n,o,u,p,g;if(e==null)return null;for(u=e.length,p=u*2,n=tt(Rd,em,30,p,15,1),o=0;o<u;o++)g=e[o],g<0&&(g+=256),n[o*2]=Nee[g>>4],n[o*2+1]=Nee[g&15];return Jd(n,0,n.length)}i(Pyn,"Voe");function Byn(e){var n,o,u;switch(u=e.c.length,u){case 0:return Bce(),jqt;case 1:return n=y(lFt(new ye(e)),45),ytn(n.jd(),n.kd());default:return o=y(Zg(e,tt(Cw,sJ,45,e.c.length,0,1)),175),new R6e(o)}}i(Byn,"nn");function Ky(e,n){switch(n.g){case 1:return M5(e.j,(mh(),KBe));case 2:return M5(e.j,(mh(),XBe));case 3:return M5(e.j,(mh(),JBe));case 4:return M5(e.j,(mh(),QBe));default:return Ir(),Ir(),Go}}i(Ky,"LYb");function Fyn(e,n){var o,u,p;o=hin(n,e.e),u=y(Jr(e.g.f,o),15).a,p=e.a.c.length-1,e.a.c.length!=0&&y(Wt(e.a,p),295).c==u?(++y(Wt(e.a,p),295).a,++y(Wt(e.a,p),295).b):Nt(e.a,new x6t(u))}i(Fyn,"igc");function wv(){wv=U,Ktr=(Ri(),J6),Jtr=ub,Htr=Pw,qtr=IE,Ytr=Uv,Wtr=DE,vze=Gj,Xtr=t4,W1e=(gIe(),Ntr),H1e=Otr,xze=$tr,q1e=ztr,Tze=Gtr,kze=jtr,wze=Ptr,qZ=Btr,YZ=Ftr,Lj=Utr,Cze=Vtr,bze=Mtr}i(wv,"J1c");function RBt(e,n){var o,u,p,g,w;if(e.e<=n||Hon(e,e.g,n))return e.g;for(g=e.r,u=e.g,w=e.r,p=(g-u)/2+u;u+1<g;)o=UI(e,p,!1),o.b<=p&&o.a<=n?(w=p,g=p):u=p,p=(g-u)/2+u;return w}i(RBt,"L6c");function $yn(e,n,o){var u;u=J$t(e,n,!0),nBt(o,"Recursive Graph Layout",u),JDe(n,Se(Ee(_Ue,1),Fr,525,0,[new $wt])),gg(n,(Ri(),r4))||JDe(n,Se(Ee(_Ue,1),Fr,525,0,[new Uyt])),aMe(e,n,null,o),LBt(o)}i($yn,"zbd");function LBt(e){var n;if(e.p==null)throw xe(new El("The task has not begun yet."));e.b||(e.k&&(n=(Ny(),$o(vc(Date.now()),Qy)),e.q=tw(Kd(n,e.o))*1e-9),e.c<e.r&&hLe(e,e.r-e.c),e.b=!0)}i(LBt,"hod");function Gyn(e){var n,o,u;for(u=new Vh,_i(u,new Lt(e.j,e.k)),o=new Sn((!e.a&&(e.a=new Es(qf,e,5)),e.a));o.e!=o.i.gc();)n=y(_n(o),372),_i(u,new Lt(n.a,n.b));return _i(u,new Lt(e.b,e.c)),u}i(Gyn,"Upd");function _Bt(e,n,o,u,p){var g,w,k,A,D,M;if(p)for(A=p.a.length,g=new H2(A),M=(g.b-g.a)*g.c<0?(Qb(),Qv):new tv(g);M.Ob();)D=y(M.Pb(),15),k=y7(p,D.a),w=new U7t(e,n,o,u),HGt(w.a,w.b,w.c,w.d,k)}i(_Bt,"wBd");function ZDe(e,n){var o;if(Qe(e)===Qe(n))return!0;if(Ge(n,22)){o=y(n,22);try{return e.gc()==o.gc()&&e.Hc(o)}catch(u){if(u=hs(u),Ge(u,172)||Ge(u,211))return!1;throw xe(u)}}return!1}i(ZDe,"Nx");function kfe(e,n,o,u,p,g){switch(this.c=e,n.g){case 2:if(e.a.Le(p,o)<0)throw xe(new rn(vMe+p+TUt+o));break;case 1:e.a.Le(p,p);break;case 3:e.a.Le(o,o)}this.f=n,this.b=o,this.a=u,this.e=p,this.d=g}i(kfe,"Ryb");function e9e(e,n){var o;Nt(e.d,n),o=n.Kf(),e.c?(e.e.a=d.Math.max(e.e.a,o.a),e.e.b+=o.b,e.d.c.length>1&&(e.e.b+=e.a)):(e.e.a+=o.a,e.e.b=d.Math.max(e.e.b,o.b),e.d.c.length>1&&(e.e.a+=e.a))}i(e9e,"oIb");function jyn(e){var n,o,u,p;switch(p=e.i,n=p.b,u=p.j,o=p.g,p.a.g){case 0:o.a=(e.g.b.o.a-u.a)/2;break;case 1:o.a=n.d.n.a+n.d.a.a;break;case 2:o.a=n.d.n.a+n.d.a.a-u.a;break;case 3:o.b=n.d.n.b+n.d.a.b}}i(jyn,"Xjc");function zyn(e,n,o){var u,p,g;for(p=new nn(cn(Y0(o).a.Jc(),new B));Nn(p);)u=y(vn(p),17),!Mo(u)&&!(!Mo(u)&&u.c.i.c==u.d.i.c)&&(g=x$t(e,u,o,new o4t),g.c.length>1&&tn(n.c,g))}i(zyn,"ZKc");function DBt(e,n,o,u,p){if(u<n||p<o)throw xe(new rn("The highx must be bigger then lowx and the highy must be bigger then lowy"));return e.a<n?e.a=n:e.a>u&&(e.a=u),e.b<o?e.b=o:e.b>p&&(e.b=p),e}i(DBt,"Wfd");function Uyn(e){if(Ge(e,144))return uwn(y(e,144));if(Ge(e,233))return Cpn(y(e,233));if(Ge(e,21))return Tyn(y(e,21));throw xe(new rn(FR+r0(new oc(Se(Ee(Fs,1),Fr,1,5,[e])))))}i(Uyn,"cEd");function Vyn(e,n,o,u,p){var g,w,k;for(g=!0,w=0;w<u;w++)g=g&o[w]==0;if(p==0)$c(o,u,e,0,n),w=n;else{for(k=32-p,g=g&o[w]<<k==0,w=0;w<n-1;w++)e[w]=o[w+u]>>>p|o[w+u+1]<<k;e[w]=o[w+u]>>>p,++w}return g}i(Vyn,"Eib");function t9e(e,n,o,u){var p,g,w;if(n.k==(Yr(),bs)){for(g=new nn(cn(os(n).a.Jc(),new B));Nn(g);)if(p=y(vn(g),17),w=p.c.i.k,w==bs&&e.c.a[p.c.i.c.p]==u&&e.c.a[n.c.p]==o)return!0}return!1}i(t9e,"INc");function Wyn(e,n){var o,u,p,g;return n&=63,o=e.h&q1,n<22?(g=o>>>n,p=e.m>>n|o<<22-n,u=e.l>>n|e.m<<22-n):n<44?(g=0,p=o>>>n-22,u=e.m>>n-22|e.h<<44-n):(g=0,p=0,u=o>>>n-44),Mu(u&ef,p&ef,g&q1)}i(Wyn,"uD");function IBt(e,n,o,u){var p;this.b=u,this.e=e==(cw(),iN),p=n[o],this.d=Fk(ah,[Dt,vg],[171,30],16,[p.length,p.length],2),this.a=Fk(pi,[Dt,Pi],[54,30],15,[p.length,p.length],2),this.c=new PDe(n,o)}i(IBt,"xgc");function Hyn(e){var n,o,u;for(e.k=new K7e((zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on])).length,e.j.c.length),u=new ye(e.j);u.a<u.c.c.length;)o=y(de(u),113),n=o.d.j,Sr(e.k,n,o);e.e=J2n(O5(e.k))}i(Hyn,"ahc");function MBt(e,n){var o,u,p;ys(e.d,n),o=new t1t,Oi(e.c,n,o),o.f=bhe(n.c),o.a=bhe(n.d),o.d=(PI(),p=n.c.i.k,p==(Yr(),Ya)||p==u0),o.e=(u=n.d.i.k,u==Ya||u==u0),o.b=n.c.j==(zt(),on),o.c=n.d.j==bn}i(MBt,"bSc");function qyn(e){var n,o,u,p,g;for(g=Ui,p=Ui,u=new ye(OC(e));u.a<u.c.c.length;)o=y(de(u),217),n=o.e.e-o.d.e,o.e==e&&n<p?p=n:n<g&&(g=n);return p==Ui&&(p=-1),g==Ui&&(g=-1),new Ko(Et(p),Et(g))}i(qyn,"XGb");function Yyn(e,n){var o,u,p,g;for(o=n.a.o.a,g=new sv(Zs(n.a).b,n.c,n.f+1),p=new VD(g);p.b<p.d.gc();)if(u=(In(p.b<p.d.gc()),y(p.d.Xb(p.c=p.b++),25)),u.c.a>=o)return Z7(e,n,u.p),!0;return!1}i(Yyn,"Q6b");function zC(e,n,o,u){var p,g,w,k,A,D;for(w=o.length,g=0,p=-1,D=x9t((un(n,e.length+1),e.substr(n)),(tce(),gBe)),k=0;k<w;++k)A=o[k].length,A>g&&ran(D,x9t(o[k],gBe))&&(p=k,g=A);return p>=0&&(u[0]=n+g),p}i(zC,"wA");function Xyn(e,n,o){var u,p,g,w,k,A,D,M;g=e.d.p,k=g.e,A=g.r,e.g=new NF(A),w=e.d.o.c.p,u=w>0?k[w-1]:tt(e1,Zy,9,0,0,1),p=k[w],D=w<k.length-1?k[w+1]:tt(e1,Zy,9,0,0,1),M=n==o-1,M?Xce(e.g,p,D):Xce(e.g,u,p)}i(Xyn,"Ygc");function NBt(e){var n;return(e.Db&64)!=0?Tfe(e):(n=new Lf(cPe),!e.a||Li(Li((n.a+=' "',n),e.a),'"'),Li(wx(Li(wx(Li(wx(Li(wx((n.a+=" (",n),e.i),","),e.j)," | "),e.g),","),e.f),")"),n.a)}i(NBt,"Czd");function OBt(e,n,o){var u,p,g,w,k;for(k=Ou(e.e.Ah(),n),p=y(e.g,122),u=0,w=0;w<e.i;++w)if(g=p[w],k.$l(g.Jk())){if(u==o)return g3(e,w),tl(),y(n,69).vk()?g:g.kd();++u}throw xe(new yu(mM+o+xw+u))}i(OBt,"Kee");function PBt(e){var n,o,u;if(n=e.c,n==2||n==7||n==1)return Xi(),Xi(),WN;for(u=tMe(e),o=null;(n=e.c)!=2&&n!=7&&n!=1;)o||(o=(Xi(),Xi(),++Za,new A9(1)),pw(o,u),u=o),pw(o,tMe(e));return u}i(PBt,"cpe");function Kyn(e,n,o){return e<0||e>o?h9e(e,o,"start index"):n<0||n>o?h9e(n,o,"end index"):BI("end index (%s) must not be less than start index (%s)",Se(Ee(Fs,1),Fr,1,5,[Et(n),Et(e)]))}i(Kyn,"Kb");function BBt(e,n){var o,u,p,g;for(u=0,p=e.length;u<p;u++){g=e[u];try{g[1]?g[0].Sm()&&(n=Fin(n,g)):g[0].Sm()}catch(w){if(w=hs(w),Ge(w,80))o=w,qH(),gsn(Ge(o,474)?y(o,474).ie():o);else throw xe(w)}}return n}i(BBt,"Xz");function Z7(e,n,o){var u,p,g;for(o!=n.c+n.b.gc()&&r3n(n.a,efn(n,o-n.c)),g=n.a.c.p,e.a[g]=d.Math.max(e.a[g],n.a.o.a),p=y(oe(n.a,(Tt(),jM)),16).Jc();p.Ob();)u=y(p.Pb(),70),dt(u,H0e,(qr(),!0))}i(Z7,"P6b");function Jyn(e,n){var o,u,p;p=ywn(n),dt(n,(Tt(),Lme),p),p&&(u=Ui,Sl(e.f,p)&&(u=y(Yl(Sl(e.f,p)),15).a),o=y(Wt(n.g,0),17),Kt(Xt(oe(o,ib)))||Oi(e,p,Et(d.Math.min(y(oe(o,Ea),15).a,u))))}i(Jyn,"Bcc");function Qyn(e){var n,o,u,p;for(o=Ui,p=!0,n=0;n<e.a.c.length;n++)ea(y(Wt(e.a,n),9),(Bt(),xZ))&&(p=!1,u=y(oe(y(Wt(e.a,n),9),xZ),15).a,o=o<u?o:u);return p&&(o=y(Vt((Bt(),xZ)),15).a),o}i(Qyn,"Wlc");function FBt(e,n,o){var u,p,g,w,k;for(n.p=-1,k=Wx(n,(sl(),Eu)).Jc();k.Ob();)for(w=y(k.Pb(),12),p=new ye(w.g);p.a<p.c.c.length;)u=y(de(p),17),g=u.d.i,n!=g&&(g.p<0?o.Ec(u):g.p>0&&FBt(e,g,o));n.p=0}i(FBt,"kCc");function Zyn(e){var n,o,u,p;for(n=nv(Li(new Lf("Predicates."),"and"),40),o=!0,p=new VD(e);p.b<p.d.gc();)u=(In(p.b<p.d.gc()),p.d.Xb(p.c=p.b++)),o||(n.a+=","),n.a+=""+u,o=!1;return(n.a+=")",n).a}i(Zyn,"Wb");function $Bt(e,n,o){var u,p,g;if(!(o<=n+2))for(p=(o-n)/2|0,u=0;u<p;++u)g=(_r(n+u,e.c.length),y(e.c[n+u],12)),Mf(e,n+u,(_r(o-u-1,e.c.length),y(e.c[o-u-1],12))),_r(o-u-1,e.c.length),e.c[o-u-1]=g}i($Bt,"vac");function GBt(e,n){var o,u,p;if(n.c.length!=0){for(o=fBt(e,n),p=!1;!o;)NK(e,n,!0),p=!0,o=fBt(e,n);p&&NK(e,n,!1),u=rhe(n),e.b&&e.b.Fg(u),e.a=oNt(e,(_r(0,n.c.length),y(n.c[0],26))),GBt(e,u)}}i(GBt,"m0c");function Cfe(e,n){var o,u,p;if(u=Nr(e.Ah(),n),o=n-e.gi(),o<0)if(u)if(u.pk())p=e.Fh(u),p>=0?e.hi(p):g9e(e,u);else throw xe(new rn(Lv+u.ve()+dM));else throw xe(new rn(VWt+n+WWt));else yd(e,o,u)}i(Cfe,"wtd");function r9e(e){var n,o;if(o=null,n=!1,Ge(e,210)&&(n=!0,o=y(e,210).a),n||Ge(e,265)&&(n=!0,o=""+y(e,265).a),n||Ge(e,479)&&(n=!0,o=""+y(e,479).a),!n)throw xe(new Moe(bPe));return o}i(r9e,"WAd");function n9e(e,n,o){var u,p,g,w,k,A;for(A=Ou(e.e.Ah(),n),u=0,k=e.i,p=y(e.g,122),w=0;w<e.i;++w)if(g=p[w],A.$l(g.Jk())){if(o==u)return w;++u,k=w+1}if(o==u)return k;throw xe(new yu(mM+o+xw+u))}i(n9e,"tee");function ebn(e,n){var o,u,p,g;if(e.f.c.length==0)return null;for(g=new S5,u=new ye(e.f);u.a<u.c.c.length;)o=y(de(u),70),p=o.o,g.b=d.Math.max(g.b,p.a),g.a+=p.b;return g.a+=(e.f.c.length-1)*n,g}i(ebn,"i6b");function tbn(e){var n,o,u,p;for(u=e.a.d.j,p=e.a.d.j,o=new ye(e.i.d);o.a<o.c.c.length;)n=y(de(o),70),dt(n,(Bt(),wE),null);u==(zt(),sn)||p==sn?Fy(e,Fn,(jp(),O3),null):Fy(e,sn,(jp(),O3),null)}i(tbn,"Qjc");function i9e(e){var n,o,u,p;for(e.e=0,p=ei(e.f,0);p.b!=p.d.c;)u=y(Qn(p),9),u.p>=e.d.b.c.length&&(n=new Nc(e.d),n.p=u.p-1,Nt(e.d.b,n),o=new Nc(e.d),o.p=u.p,Nt(e.d.b,o)),Us(u,y(Wt(e.d.b,u.p),25))}i(i9e,"oDc");function rbn(e){var n,o,u,p;for(o=new ya,Fo(o,e.o),u=new zH;o.b!=0;)n=y(o.b==0?null:(In(o.b!=0),dd(o,o.a.a)),501),p=Rzt(e,n,!0),p&&Nt(u.a,n);for(;u.a.c.length!=0;)n=y(e_e(u),501),Rzt(e,n,!1)}i(rbn,"aLc");function ir(e){var n;this.c=new ya,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(n=y(ug(f0),10),new ud(n,y(Np(n,n.length),10),0)),this.g=e.f}i(ir,"xed");function dw(){dw=U,DUe=new k5(QI,0),Ms=new k5("BOOLEAN",1),jo=new k5("INT",2),X6=new k5("STRING",3),Ao=new k5("DOUBLE",4),Oa=new k5("ENUM",5),Y6=new k5("ENUMSET",6),d0=new k5("OBJECT",7)}i(dw,"hfd");function RI(e,n){var o,u,p,g,w;u=d.Math.min(e.c,n.c),g=d.Math.min(e.d,n.d),p=d.Math.max(e.c+e.b,n.c+n.b),w=d.Math.max(e.d+e.a,n.d+n.a),p<u&&(o=u,u=p,p=o),w<g&&(o=g,g=w,w=o),JAt(e,u,g,p-u,w-g)}i(RI,"Nfd");function jBt(e,n){var o,u;if(e.f){for(;n.Ob();)if(o=y(n.Pb(),75),u=o.Jk(),Ge(u,103)&&(y(u,19).Bb&Tc)!=0&&(!e.e||u.nk()!=SL||u.Jj()!=0)&&o.kd()!=null)return n.Ub(),!0;return!1}else return n.Ob()}i(jBt,"z1d");function zBt(e,n){var o,u;if(e.f){for(;n.Sb();)if(o=y(n.Ub(),75),u=o.Jk(),Ge(u,103)&&(y(u,19).Bb&Tc)!=0&&(!e.e||u.nk()!=SL||u.Jj()!=0)&&o.kd()!=null)return n.Pb(),!0;return!1}else return n.Sb()}i(zBt,"B1d");function yh(){yh=U,MWe=Se(Ee(Zt,1),Dt,2,6,[IPe,WG,sQ,lqt,oQ,Wge,YJ]),IWe=Se(Ee(Zt,1),Dt,2,6,[IPe,"empty",WG,VG,"elementOnly"]),NWe=Se(Ee(Zt,1),Dt,2,6,[IPe,"preserve","replace",Tg]),Ro=new qAt}i(yh,"yie");function a9e(e,n,o){var u,p,g;if(n!=o){u=n;do ra(e,u.c),p=u.e,p&&(g=u.d,Mk(e,g.b,g.d),ra(e,p.n),u=Zs(p));while(p);u=o;do qs(e,u.c),p=u.e,p&&(g=u.d,T6t(e,g.b,g.d),qs(e,p.n),u=Zs(p));while(p)}}i(a9e,"LXb");function Efe(e,n,o,u){var p,g,w,k,A;if(u.f.c+u.i.c==0)for(w=e.a[e.c],k=0,A=w.length;k<A;++k)g=w[k],Oi(u,g,new UIt(e,g,o));return p=y(Yl(Sl(u.f,n)),667),p.b=0,p.c=p.f,p.c==0||kxt(y(Wt(p.a,p.b),295)),p}i(Efe,"fgc");function UBt(e){var n;this.j=new Pt,this.f=new gs,this.b=(n=y(ug(Qo),10),new ud(n,y(Np(n,n.length),10),0)),this.d=tt(pi,Pi,30,(zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on])).length,15,1),this.g=e}i(UBt,"ehc");function l6(){l6=U,JR=new d9("MEDIAN_LAYER",0),OM=new d9("TAIL_LAYER",1),KR=new d9("HEAD_LAYER",2),P3=new d9("SPACE_EFFICIENT_LAYER",3),hE=new d9("WIDEST_LAYER",4),uE=new d9("CENTER_LAYER",5)}i(l6,"Fnc");function s9e(e,n,o){var u,p,g;if(!e.b[n.g]){for(e.b[n.g]=!0,u=o,!u&&(u=new r$),_i(u.b,n),g=e.a[n.g].Jc();g.Ob();)p=y(g.Pb(),65),p.b!=n&&s9e(e,p.b,u),p.c!=n&&s9e(e,p.c,u),_i(u.a,p);return u}return null}i(s9e,"mSc");function nbn(e){switch(e.g){case 0:case 1:case 2:return zt(),sn;case 3:case 4:case 5:return zt(),Fn;case 6:case 7:case 8:return zt(),on;case 9:case 10:case 11:return zt(),bn;default:return zt(),rc}}i(nbn,"NJb");function ibn(e,n){var o;return e.c.length==0?!1:(o=F_e((_r(0,e.c.length),y(e.c[0],17)).c.i),Df(),o==(l3(),kE)||o==TE?!0:Kk(bu(new Er(null,new Rr(e,16)),new bmt),new hkt(n)))}i(ibn,"BLc");function Sfe(e,n){if(Ge(n,206))return HZr(e,y(n,26));if(Ge(n,193))return qZr(e,y(n,125));if(Ge(n,443))return WZr(e,y(n,170));throw xe(new rn(FR+r0(new oc(Se(Ee(Fs,1),Fr,1,5,[n])))))}i(Sfe,"pBd");function VBt(e,n,o){var u,p;if(this.f=e,u=y(Jr(e.b,n),262),p=u?u.a:0,CRe(o,p),o>=(p/2|0))for(this.e=u?u.c:null,this.d=p;o++<p;)b9t(this);else for(this.c=u?u.b:null;o-- >0;)XRe(this);this.b=n,this.a=null}i(VBt,"Fu");function abn(e,n){var o,u;n.a?Rwn(e,n):(o=y(Woe(e.b,n.b),60),o&&o==e.a[n.b.f]&&o.a&&o.a!=n.b.a&&o.c.Ec(n.b),u=y(Voe(e.b,n.b),60),u&&e.a[u.f]==n.b&&u.a&&u.a!=n.b.a&&n.b.c.Ec(u),Gle(e.b,n.b))}i(abn,"BFb");function WBt(e,n){var o,u;if(o=y(yl(e.b,n),127),y(y(oa(e.r,n),22),83).dc()){o.n.b=0,o.n.c=0;return}o.n.b=e.C.b,o.n.c=e.C.c,e.A.Gc((vf(),Fw))&&wGt(e,n),u=Vgn(e,n),Ffe(e,n)==(BC(),Wv)&&(u+=2*e.w),o.a.a=u}i(WBt,"_Jb");function HBt(e,n){var o,u;if(o=y(yl(e.b,n),127),y(y(oa(e.r,n),22),83).dc()){o.n.d=0,o.n.a=0;return}o.n.d=e.C.d,o.n.a=e.C.a,e.A.Gc((vf(),Fw))&&xGt(e,n),u=Ugn(e,n),Ffe(e,n)==(BC(),Wv)&&(u+=2*e.w),o.a.b=u}i(HBt,"iLb");function sbn(e,n){var o,u,p,g;for(g=new Pt,u=new ye(n);u.a<u.c.c.length;)o=y(de(u),68),Nt(g,new N6e(o,!0)),Nt(g,new N6e(o,!1));p=new lRt(e),p.a.a.$b(),LLt(g,e.b,new oc(Se(Ee(mYt,1),Fr,683,0,[p])))}i(sbn,"xMb");function obn(e,n){var o,u,p;n.Tg("End label pre-processing",1),o=He(Xe(oe(e,(Bt(),xE)))),u=He(Xe(oe(e,q3))),p=mC(y(oe(e,Uf),86)),ts(jl(new Er(null,new Rr(e.b,16)),new Rp),new SAt(o,u,p)),n.Ug()}i(obn,"L0b");function o9e(e,n){var o,u,p;if(!e.d[n.p]){for(e.d[n.p]=!0,e.a[n.p]=!0,u=new nn(cn(Ra(n).a.Jc(),new B));Nn(u);)o=y(vn(u),17),!Mo(o)&&(p=o.d.i,e.a[p.p]?Nt(e.b,o):o9e(e,p));e.a[n.p]=!1}}i(o9e,"SBc");function c6(e,n,o){var u;switch(u=0,y(oe(n,(Bt(),tc)),165).g){case 2:u=2*-o+e.a,++e.a;break;case 1:u=-o;break;case 3:u=o;break;case 4:u=2*o+e.b,++e.b}return ea(n,(Tt(),Ea))&&(u+=y(oe(n,Ea),15).a),u}i(c6,"gCc");function qBt(e,n,o){var u,p,g;for(o.yc(n,e),Nt(e.n,n),g=e.p.yg(n),n.j==e.p.zg()?PNt(e.e,g):PNt(e.j,g),SY(e),p=Gm(pd(Se(Ee(kd,1),Fr,20,0,[new F8(n),new u5(n)])));Nn(p);)u=y(vn(p),12),o._b(u)||qBt(e,u,o)}i(qBt,"sPc");function lbn(e,n,o){var u,p,g;for(o.Tg("Processor set neighbors",1),e.a=n.b.b==0?1:n.b.b,p=null,u=ei(n.b,0);!p&&u.b!=u.d.c;)g=y(Qn(u),40),Kt(Xt(oe(g,(Ca(),zv))))&&(p=g);p&&eGt(e,new A1(p),o),o.Ug()}i(lbn,"aWc");function l9e(e){var n,o,u;return o=y(St(e,(Ri(),Pw)),22),o.Gc((vf(),a4))?(u=y(St(e,Uv),22),n=new Vo(y(St(e,IE),8)),u.Gc((Zh(),EL))&&(n.a<=0&&(n.a=20),n.b<=0&&(n.b=20)),n):new xo}i(l9e,"Xpd");function c9e(e){var n,o,u;if(!e.b){for(u=new Gbt,o=new _5(zI(e));o.e!=o.i.gc();)n=y(zhe(o),19),(n.Bb&Tc)!=0&&Zn(u,n);n3(u),e.b=new pC((y(je(wt((rv(),Xr).o),8),19),u.i),u.g),Hh(e).b&=-9}return e.b}i(c9e,"AWd");function h3(e){var n,o,u;for(o=e.length,u=0;u<o&&(un(u,e.length),e.charCodeAt(u)<=32);)++u;for(n=o;n>u&&(un(n-1,e.length),e.charCodeAt(n-1)<=32);)--n;return u>0||n<o?(ko(u,n,e.length),e.substr(u,n-u)):e}i(h3,"Ngb");function cbn(e,n){var o,u,p,g,w,k,A,D;A=y(kI(O5(n.k),tt(Qo,Rc,64,2,0,1)),126),D=n.g,o=qLt(n,A[0]),p=HLt(n,A[1]),u=nfe(e,D,o,p),g=qLt(n,A[1]),k=HLt(n,A[0]),w=nfe(e,D,g,k),u<=w?(n.a=o,n.c=p):(n.a=g,n.c=k)}i(cbn,"Lkc");function YBt(e,n,o,u,p){var g,w,k,A,D;if(n)for(k=n.Jc();k.Ob();)for(w=y(k.Pb(),9),D=cIe(w,(sl(),Eu),o).Jc();D.Ob();)A=y(D.Pb(),12),g=y(Yl(Sl(p.f,A)),116),g||(g=new k$(e.d),tn(u.c,g),qBt(g,A,p))}i(YBt,"zQc");function Y$(e){var n;Ir();var o,u,p,g,w,k;if(Ge(e,59))for(g=0,p=e.gc()-1;g<p;++g,--p)n=e.Xb(g),e.fd(g,e.Xb(p)),e.fd(p,n);else for(o=e.cd(),w=e.dd(e.gc());o.Tb()<w.Vb();)u=o.Pb(),k=w.Ub(),o.Wb(k),w.Wb(u)}i(Y$,"Onb");function DK(e,n){var o,u,p,g,w,k;for(k=0,g=new vC,ov(g,n);g.b!=g.c;)for(w=y(F5(g),218),k+=hPt(w.d,w.e),p=new ye(w.b);p.a<p.c.c.length;)u=y(de(p),36),o=y(Wt(e.b,u.p),218),o.s||(k+=DK(e,o));return k}i(DK,"FGc");function XBt(e,n,o){var u,p;cMt(this),n==(Px(),jv)?ys(this.r,e.c):ys(this.w,e.c),o==jv?ys(this.r,e.d):ys(this.w,e.d),MBt(this,e),u=bhe(e.c),p=bhe(e.d),bBt(this,u,p,p),this.o=(PI(),d.Math.abs(u-p)<.2)}i(XBt,"fSc");function KBt(e,n,o){var u,p,g,w,k,A;if(k=y(an(e.a,8),2e3),k!=null)for(p=k,g=0,w=p.length;g<w;++g)null.Sm();u=o,(e.a.Db&1)==0&&(A=new f7t(e,o,n),u.bj(A)),Ge(u,676)?y(u,676).dj(e.a):u.aj()==e.a&&u.cj(null)}i(KBt,"Nbe");function ubn(){var e;return war?y(tR((Jb(),cp),kw),2009):(LCn(),e=y(Ge(Jc((Jb(),cp),kw),583)?Jc(cp,kw):new E7t,583),war=!0,pEn(e),YEn(e),Oi((E6e(),vWe),e,new qvt),afe(e),Al(cp,kw,e),e)}i(ubn,"Ple");function hbn(e,n,o,u){var p;return p=zC(e,o,Se(Ee(Zt,1),Dt,2,6,[Bde,Fde,$de,Gde,jde,zde,Ude]),n),p<0&&(p=zC(e,o,Se(Ee(Zt,1),Dt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),n)),p<0?!1:(u.d=p,!0)}i(hbn,"FA");function fbn(e,n,o,u){var p;return p=zC(e,o,Se(Ee(Zt,1),Dt,2,6,[Bde,Fde,$de,Gde,jde,zde,Ude]),n),p<0&&(p=zC(e,o,Se(Ee(Zt,1),Dt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),n)),p<0?!1:(u.d=p,!0)}i(fbn,"IA");function Ju(e,n,o){var u,p,g,w;if(w=e.b.Ae(n),p=(u=e.a.get(w),u??tt(Fs,Fr,1,0,5,1)),p.length==0)e.a.set(w,p);else if(g=eNt(e,n,p),g)return g.ld(o);return as(p,p.length,new cq(n,o)),++e.c,++e.b.g,null}i(Ju,"zsb");function dbn(e){var n,o,u;for(h2n(e),u=new Pt,o=new ye(e.a.a.b);o.a<o.c.c.length;)n=y(de(o),82),Nt(u,new P6e(n,!0)),Nt(u,new P6e(n,!1));c0n(e.c),QF(u,e.b,new oc(Se(Ee(ej,1),Fr,377,0,[e.c]))),Avn(e)}i(dbn,"tSb");function X$(e,n){var o,u,p;for(p=new Pt,u=new ye(e.c.a.b);u.a<u.c.c.length;)o=y(de(u),60),n.Lb(o)&&(Nt(p,new M6e(o,!0)),Nt(p,new M6e(o,!1)));l0n(e.e),LLt(p,e.d,new oc(Se(Ee(mYt,1),Fr,683,0,[e.e])))}i(X$,"xFb");function pbn(e){var n,o,u,p;for(o=new jn,p=new ye(e.d);p.a<p.c.c.length;)u=y(de(p),187),n=y(u.mf((Tt(),B6)),17),Sl(o.f,n)||Oi(o,n,new Z7t(n)),Nt(y(Yl(Sl(o.f,n)),455).b,u);return new Ah(new S1(o))}i(pbn,"f1b");function gbn(e,n){var o,u,p,g,w;for(u=new FLt(e.j.c.length),o=null,g=new ye(e.j);g.a<g.c.c.length;)p=y(de(g),12),p.j!=o&&(u.b==u.c||m$t(u,o,n),dRe(u),o=p.j),w=KFt(p),w&&sRe(u,w);u.b==u.c||m$t(u,o,n)}i(gbn,"L7b");function mbn(e,n){var o,u,p;for(u=new yo(e.b,0);u.b<u.d.gc();)o=(In(u.b<u.d.gc()),y(u.d.Xb(u.c=u.b++),70)),p=y(oe(o,(Bt(),cm)),279),p==(Qg(),i4)&&(Wh(u),Nt(n.b,o),ea(o,(Tt(),B6))||dt(o,B6,e))}i(mbn,"z8b");function ybn(e){var n,o,u,p,g;for(n=dg(new nn(cn(Ra(e).a.Jc(),new B))),p=new nn(cn(os(e).a.Jc(),new B));Nn(p);)u=y(vn(p),17),o=u.c.i,g=dg(new nn(cn(Ra(o).a.Jc(),new B))),n=d.Math.max(n,g);return Et(n)}i(ybn,"yEc");function u9e(e,n,o){var u,p,g;u=y(St(e,(Ri(),Pj)),22),p=0,g=0,n.a>o.a&&(u.Gc((fw(),xN))?p=(n.a-o.a)/2:u.Gc(TN)&&(p=n.a-o.a)),n.b>o.b&&(u.Gc((fw(),CN))?g=(n.b-o.b)/2:u.Gc(kN)&&(g=n.b-o.b)),WDe(e,p,g)}i(u9e,"jqd");function JBt(e,n,o,u,p,g,w,k,A,D,M,F,z){Ge(e.Cb,88)&&f3(Hh(y(e.Cb,88)),4),wu(e,o),e.f=w,j7(e,k),z7(e,A),G7(e,D),$7(e,M),Yy(e,F),U7(e,z),qy(e,!0),Uy(e,p),e.Xk(g),lw(e,n),u!=null&&(e.i=null,LX(e,u))}i(JBt,"Wyd");function h9e(e,n,o){if(e<0)return BI(Qzt,Se(Ee(Fs,1),Fr,1,5,[o,Et(e)]));if(n<0)throw xe(new rn(Zzt+n));return BI("%s (%s) must not be greater than size (%s)",Se(Ee(Fs,1),Fr,1,5,[o,Et(e),Et(n)]))}i(h9e,"Jb");function f9e(e,n,o,u,p,g){var w,k,A,D;if(w=u-o,w<7){dpn(n,o,u,g);return}if(A=o+p,k=u+p,D=A+(k-A>>1),f9e(n,e,A,D,-p,g),f9e(n,e,D,k,-p,g),g.Le(e[D-1],e[D])<=0){for(;o<u;)as(n,o++,e[A++]);return}Pdn(e,A,D,k,n,o,u,g)}i(f9e,"fnb");function bbn(e,n){var o,u,p,g,w,k,A;for(A=n.d,p=n.b.j,k=new ye(A);k.a<k.c.c.length;)for(w=y(de(k),107),g=tt(ah,vg,30,p.c.length,16,1),Oi(e.b,w,g),o=w.a.d.p-1,u=w.c.d.p;o!=u;)o=(o+1)%p.c.length,g[o]=!0}i(bbn,"alc");function vbn(e,n){if(cLe(),ea(e,(Tt(),Ea))&&ea(n,Ea))return Yc(y(oe(e,Ea),15).a,y(oe(n,Ea),15).a);throw xe(new b5("The BF model order layer assigner requires all real nodes to have a model order."))}i(vbn,"LCc");function wbn(e,n){if(uLe(),ea(e,(Tt(),Ea))&&ea(n,Ea))return Yc(y(oe(e,Ea),15).a,y(oe(n,Ea),15).a);throw xe(new b5("The DF model order layer assigner requires all real nodes to have a model order."))}i(wbn,"sDc");function xbn(e,n){for(e.r=new k$(e.p),lJr(e.r,e),Fo(e.r.j,e.j),gf(e.j),_i(e.j,n),_i(e.r.e,n),SY(e),SY(e.r);e.f.c.length!=0;)N5t(y(Wt(e.f,0),133));for(;e.k.c.length!=0;)N5t(y(Wt(e.k,0),133));return e.r}i(xbn,"CPc");function Afe(e,n,o){var u,p,g;if(p=Nr(e.Ah(),n),u=n-e.gi(),u<0)if(p)if(p.pk())g=e.Fh(p),g>=0?e.$h(g,o):W9e(e,p,o);else throw xe(new rn(Lv+p.ve()+dM));else throw xe(new rn(VWt+n+WWt));else bd(e,u,p,o)}i(Afe,"std");function QBt(e){var n,o;if(e.f){for(;e.n>0;){if(n=y(e.k.Xb(e.n-1),75),o=n.Jk(),Ge(o,103)&&(y(o,19).Bb&Tc)!=0&&(!e.e||o.nk()!=SL||o.Jj()!=0)&&n.kd()!=null)return!0;--e.n}return!1}else return e.n>0}i(QBt,"A1d");function ZBt(e){var n,o,u,p;if(o=y(e,52).Yh(),o)try{if(u=null,n=tR((Jb(),cp),UGt(vpn(o))),n&&(p=n.Zh(),p&&(u=p.Dl(lQr(o.e)))),u&&u!=e)return ZBt(u)}catch(g){if(g=hs(g),!Ge(g,63))throw xe(g)}return e}i(ZBt,"aie");function Tbn(e,n,o){var u,p,g;o.Tg("Remove overlaps",1),o.bh(n,TOe),u=y(St(n,(TC(),SE)),26),e.f=u,e.a=Vhe(y(St(n,(wv(),Lj)),304)),p=Xe(St(n,(Ri(),ub))),u5e(e,(Ur(p),p)),g=p3(u),hzt(e,n,g,o),o.bh(n,GJ)}i(Tbn,"y0c");function kbn(e){var n,o,u;if(Kt(Xt(St(e,(Ri(),Fj))))){for(u=new Pt,o=new nn(cn(xv(e).a.Jc(),new B));Nn(o);)n=y(vn(o),85),Kx(n)&&Kt(Xt(St(n,Rye)))&&tn(u.c,n);return u}else return Ir(),Ir(),Go}i(kbn,"ybd");function eFt(e){if(!e)return Q4t(),Hqt;var n=e.valueOf?e.valueOf():e;if(n!==e){var o=f0e[typeof n];return o?o(n):a_e(typeof n)}else return e instanceof Array||e instanceof d.Array?new n5e(e):new qB(e)}i(eFt,"CC");function tFt(e,n,o){var u,p,g;switch(g=e.o,u=y(yl(e.p,o),253),p=u.i,p.b=_I(u),p.a=LI(u),p.b=d.Math.max(p.b,g.a),p.b>g.a&&!n&&(p.b=g.a),p.c=-(p.b-g.a)/2,o.g){case 1:p.d=-p.a;break;case 3:p.d=g.b}Jfe(u),Qfe(u)}i(tFt,"lKb");function rFt(e,n,o){var u,p,g;switch(g=e.o,u=y(yl(e.p,o),253),p=u.i,p.b=_I(u),p.a=LI(u),p.a=d.Math.max(p.a,g.b),p.a>g.b&&!n&&(p.a=g.b),p.d=-(p.a-g.b)/2,o.g){case 4:p.c=-p.b;break;case 2:p.c=g.a}Jfe(u),Qfe(u)}i(rFt,"mKb");function Cbn(e,n){var o,u,p;return Ge(n.g,9)&&y(n.g,9).k==(Yr(),ks)?qa:(p=V5(n),p?d.Math.max(0,e.b/2-.5):(o=EC(n),o?(u=He(Xe(s3(o,(Bt(),Mw)))),d.Math.max(0,u/2-.5)):qa))}i(Cbn,"Kcc");function Ebn(e,n){var o,u,p;return Ge(n.g,9)&&y(n.g,9).k==(Yr(),ks)?qa:(p=V5(n),p?d.Math.max(0,e.b/2-.5):(o=EC(n),o?(u=He(Xe(s3(o,(Bt(),Mw)))),d.Math.max(0,u/2-.5)):qa))}i(Ebn,"Mcc");function Sbn(e,n){var o,u,p,g,w;if(!n.dc()){if(p=y(n.Xb(0),132),n.gc()==1){$$t(e,p,p,1,0,n);return}for(o=1;o<n.gc();)(p.j||!p.o)&&(g=B0n(n,o),g&&(u=y(g.a,15).a,w=y(g.b,132),$$t(e,p,w,o,u,n),o=u+1,p=w))}}i(Sbn,"oec");function Abn(e){var n,o,u,p,g,w;for(w=new Ah(e.d),zs(w,new B0t),n=(WK(),Se(Ee(FFe,1),At,275,0,[J0e,eme,K0e,nme,Z0e,Q0e,rme,tme])),o=0,g=new ye(w);g.a<g.c.c.length;)p=y(de(g),107),u=n[o%n.length],dvn(p,u),++o}i(Abn,"cjc");function d9e(e,n){var o,u,p,g,w,k,A,D,M,F;return M=null,F=e,w=G1(F,"x"),o=new l3t(n),h9t(o.a,w),k=G1(F,"y"),u=new c3t(n),p9t(u.a,k),A=G1(F,_ge),p=new u3t(n),f9t(p.a,A),D=G1(F,Lge),g=new h3t(n),M=(d9t(g.a,D),D),M}i(d9e,"rCd");function f3(e,n){yGt(e,n),(e.b&1)!=0&&(e.a.a=null),(e.b&2)!=0&&(e.a.f=null),(e.b&4)!=0&&(e.a.g=null,e.a.i=null),(e.b&16)!=0&&(e.a.d=null,e.a.e=null),(e.b&8)!=0&&(e.a.b=null),(e.b&32)!=0&&(e.a.j=null,e.a.c=null)}i(f3,"IYd");function Rbn(e,n){var o,u,p;if(p=0,n.length>0)try{p=Ff(n,bo,Ui)}catch(g){throw g=hs(g),Ge(g,131)?(u=g,xe(new fX(u))):xe(g)}return o=(!e.a&&(e.a=new voe(e)),e.a),p<o.i&&p>=0?y(je(o,p),57):null}i(Rbn,"Ybe");function Lbn(e,n){if(e<0)return BI(Qzt,Se(Ee(Fs,1),Fr,1,5,["index",Et(e)]));if(n<0)throw xe(new rn(Zzt+n));return BI("%s (%s) must be less than size (%s)",Se(Ee(Fs,1),Fr,1,5,["index",Et(e),Et(n)]))}i(Lbn,"Ib");function _bn(e){var n,o,u,p,g;if(e==null)return Qu;for(g=new aw(Tu,"[","]"),o=e,u=0,p=o.length;u<p;++u)n=o[u],g.a?Li(g.a,g.b):g.a=new Lf(g.d),E9(g.a,""+n);return g.a?g.e.length==0?g.a.a:g.a.a+(""+g.e):g.c}i(_bn,"mnb");function Dbn(e){var n,o,u,p,g;if(e==null)return Qu;for(g=new aw(Tu,"[","]"),o=e,u=0,p=o.length;u<p;++u)n=o[u],g.a?Li(g.a,g.b):g.a=new Lf(g.d),E9(g.a,""+n);return g.a?g.e.length==0?g.a.a:g.a.a+(""+g.e):g.c}i(Dbn,"nnb");function Ibn(e){var n,o,u,p,g;if(e==null)return Qu;for(g=new aw(Tu,"[","]"),o=e,u=0,p=o.length;u<p;++u)n=o[u],g.a?Li(g.a,g.b):g.a=new Lf(g.d),E9(g.a,""+n);return g.a?g.e.length==0?g.a.a:g.a.a+(""+g.e):g.c}i(Ibn,"onb");function Mbn(e){var n,o,u,p,g;if(e==null)return Qu;for(g=new aw(Tu,"[","]"),o=e,u=0,p=o.length;u<p;++u)n=o[u],g.a?Li(g.a,g.b):g.a=new Lf(g.d),E9(g.a,""+n);return g.a?g.e.length==0?g.a.a:g.a.a+(""+g.e):g.c}i(Mbn,"rnb");function nFt(e,n){var o,u,p,g,w,k;for(o=e.b.c.length,p=Wt(e.b,n);n*2+1<o&&(u=(g=2*n+1,w=g+1,k=g,w<o&&e.a.Le(Wt(e.b,w),Wt(e.b,g))<0&&(k=w),k),!(e.a.Le(p,Wt(e.b,u))<0));)Mf(e.b,n,Wt(e.b,u)),n=u;Mf(e.b,n,p)}i(nFt,"rvb");function Rfe(e,n,o){var u,p;return u=o.d,p=o.e,e.g[u.d]<=e.i[n.d]&&e.i[n.d]<=e.i[u.d]&&e.g[p.d]<=e.i[n.d]&&e.i[n.d]<=e.i[p.d]?!(e.i[u.d]<e.i[p.d]):e.i[u.d]<e.i[p.d]}i(Rfe,"TGb");function Nbn(e,n){var o;if(o=y(oe(n,(Bt(),XM)),301),o!=e)throw xe(new b5("The hierarchy aware processor "+o+" in child node "+n+" is only allowed if the root node specifies the same hierarchical processor."))}i(Nbn,"uQb");function Obn(e,n){var o,u,p,g,w;for(u=(!n.s&&(n.s=new xt(ih,n,21,17)),n.s),g=null,p=0,w=u.i;p<w;++p)switch(o=y(je(u,p),179),Ix(Rl(e,o))){case 2:case 3:!g&&(g=new Pt),tn(g.c,o)}return g||(Ir(),Ir(),Go)}i(Obn,"Xce");function iFt(e,n,o){var u,p,g,w,k,A;for(A=qa,g=new ye(R$t(e.b));g.a<g.c.c.length;)for(p=y(de(g),177),k=new ye(R$t(n.b));k.a<k.c.c.length;)w=y(de(k),177),u=_fn(p.a,p.b,w.a,w.b,o),A=d.Math.min(A,u);return A}i(iFt,"rMb");function Bs(e,n){if(!n)throw xe(new f5);if(e.j=n,!e.d)switch(e.j.g){case 1:e.a.a=e.o.a/2,e.a.b=0;break;case 2:e.a.a=e.o.a,e.a.b=e.o.b/2;break;case 3:e.a.a=e.o.a/2,e.a.b=e.o.b;break;case 4:e.a.a=0,e.a.b=e.o.b/2}}i(Bs,"xZb");function Pbn(e){var n,o,u,p,g,w,k;for(u=0,o=new ye(e.b);o.a<o.c.c.length;)for(n=y(de(o),25),g=new ye(n.a);g.a<g.c.c.length;)for(p=y(de(g),9),p.p=u++,k=new ye(p.j);k.a<k.c.c.length;)w=y(de(k),12),w.p=u++}i(Pbn,"g1b");function Bbn(e,n){_f();var o,u,p,g,w,k;for(o=null,w=n.Jc();w.Ob();)g=y(w.Pb(),132),!g.o&&(u=fen(g.a),p=fin(g.a),k=new jI(u,p,null,y(g.d.a.ec().Jc().Pb(),17)),Nt(k.c,g.a),tn(e.c,k),o&&Nt(o.d,k),o=k)}i(Bbn,"Mec");function Fbn(e){var n,o,u,p,g,w;for(w=pI(e.d,e.e),g=w.Jc();g.Ob();)for(p=y(g.Pb(),12),u=e.e==(zt(),on)?p.e:p.g,o=new ye(u);o.a<o.c.c.length;)n=y(de(o),17),!Mo(n)&&n.c.i.c!=n.d.i.c&&(Fyn(e,n),++e.f,++e.c)}i(Fbn,"mgc");function aFt(e,n){var o,u;if(n.dc())return Ir(),Ir(),Go;for(u=new Pt,Nt(u,Et(bo)),o=1;o<e.f;++o)e.a==null&&mGt(e),e.a[o]&&Nt(u,Et(o));return u.c.length==1?(Ir(),Ir(),Go):(Nt(u,Et(Ui)),Nkn(n,u))}i(aFt,"ync");function $bn(e,n){var o,u,p,g,w,k,A;w=n.c.i.k!=(Yr(),Ya),A=w?n.d:n.c,o=Z0n(n,A).i,p=y(Jr(e.k,A),124),u=e.i[o.p].a,bAt(A.i)<(o.c?Jl(o.c.a,o,0):-1)?(g=p,k=u):(g=u,k=p),Up(Dp(_p(Ip(Lp(new Vd,0),4),g),k))}i($bn,"VKc");function sFt(e,n,o){var u,p,g,w,k,A;if(o)for(p=o.a.length,u=new H2(p),k=(u.b-u.a)*u.c<0?(Qb(),Qv):new tv(u);k.Ob();)w=y(k.Pb(),15),A=efe(e,u6(Jk(o,w.a))),A&&(g=(!n.b&&(n.b=new zr(Hn,n,4,7)),n.b),Zn(g,A))}i(sFt,"uBd");function oFt(e,n,o){var u,p,g,w,k,A;if(o)for(p=o.a.length,u=new H2(p),k=(u.b-u.a)*u.c<0?(Qb(),Qv):new tv(u);k.Ob();)w=y(k.Pb(),15),A=efe(e,u6(Jk(o,w.a))),A&&(g=(!n.c&&(n.c=new zr(Hn,n,5,8)),n.c),Zn(g,A))}i(oFt,"vBd");function K$(e,n,o){var u,p;u=n.a&e.f,n.b=e.b[u],e.b[u]=n,p=n.f&e.f,n.d=e.c[p],e.c[p]=n,o?(n.e=o.e,n.e?n.e.c=n:e.a=n,n.c=o.c,n.c?n.c.e=n:e.e=n):(n.e=e.e,n.c=null,e.e?e.e.c=n:e.a=n,e.e=n),++e.i,++e.g}i(K$,"vo");function lFt(e){var n,o,u;if(n=e.Pb(),!e.Ob())return n;for(u=qc(Li(new Yb,"expected one element but was: <"),n),o=0;o<4&&e.Ob();o++)qc((u.a+=Tu,u),e.Pb());throw e.Ob()&&(u.a+=", ..."),u.a+=">",xe(new rn(u.a))}i(lFt,"zr");function Gbn(e){var n,o;return o=-e.a,n=Se(Ee(Rd,1),em,30,15,[43,48,48,48,48]),o<0&&(n[0]=45,o=-o),n[1]=n[1]+((o/60|0)/10|0)&As,n[2]=n[2]+(o/60|0)%10&As,n[3]=n[3]+(o%60/10|0)&As,n[4]=n[4]+o%10&As,Jd(n,0,n.length)}i(Gbn,"WA");function p9e(e){var n,o,u,p;for(e.g=new bI(y(oi(Qo),298)),u=0,o=(zt(),sn),n=0;n<e.j.c.length;n++)p=y(Wt(e.j,n),12),p.j!=o&&(u!=n&&B5(e.g,o,new Ko(Et(u),Et(n))),o=p.j,u=n);B5(e.g,o,new Ko(Et(u),Et(n)))}i(p9e,"AYb");function g9e(e,n){var o,u,p;if(p=qC((yh(),Ro),e.Ah(),n),p)tl(),y(p,69).vk()||(p=U5(Rl(Ro,p))),u=(o=e.Fh(p),y(o>=0?e.Ih(o,!0,!0):Jx(e,p,!0),163)),y(u,219).Xl(n);else throw xe(new rn(Lv+n.ve()+dM))}i(g9e,"ptd");function m9e(e){var n,o;return e>-0x800000000000&&e<0x800000000000?e==0?0:(n=e<0,n&&(e=-e),o=Po(d.Math.floor(d.Math.log(e)/.6931471805599453)),(!n||e!=d.Math.pow(2,o))&&++o,o):xNt(vc(e))}i(m9e,"Mhb");function jbn(e){var n,o,u,p,g,w,k;for(g=new Om,o=new ye(e);o.a<o.c.c.length;)n=y(de(o),133),w=n.a,k=n.b,!(g.a._b(w)||g.a._b(k))&&(p=w,u=k,w.e.b+w.j.b>2&&k.e.b+k.j.b<=2&&(p=k,u=w),g.a.yc(p,g),p.q=u);return g}i(jbn,"ZPc");function zbn(e,n,o){o.Tg("Eades radial",1),o.bh(n,GJ),e.d=y(St(n,(TC(),SE)),26),e.c=He(Xe(St(n,(wv(),YZ)))),e.e=Vhe(y(St(n,Lj),304)),e.a=Lpn(y(St(n,Cze),426)),e.b=Wmn(y(St(n,wze),354)),Lmn(e),o.bh(n,GJ)}i(zbn,"k2c");function Ubn(e,n){if(n.Tg("Target Width Setter",1),gg(e,(n0(),sye)))pa(e,(Wm(),J3),Xe(St(e,sye)));else throw xe(new _y("A target width has to be set if the TargetWidthWidthApproximator should be used."));n.Ug()}i(Ubn,"o5c");function cFt(e,n){var o,u,p;return u=new e0(e),wc(u,n),dt(u,(Tt(),cZ),n),dt(u,(Bt(),Qa),(uo(),zc)),dt(u,lm,(Vm(),see)),C1(u,(Yr(),ks)),o=new Fc,Kl(o,u),Bs(o,(zt(),on)),p=new Fc,Kl(p,u),Bs(p,bn),u}i(cFt,"N2b");function uFt(e,n){var o,u,p,g,w;for(e.c[n.p]=!0,Nt(e.a,n),w=new ye(n.j);w.a<w.c.c.length;)for(g=y(de(w),12),u=new Kg(g.b);Xl(u.a)||Xl(u.b);)o=y(Xl(u.a)?de(u.a):de(u.b),17),p=egn(g,o).i,e.c[p.p]||uFt(e,p)}i(uFt,"lEc");function hFt(e){var n,o,u,p,g,w,k;for(w=0,o=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));o.e!=o.i.gc();)n=y(_n(o),26),k=n.g,p=n.f,u=d.Math.sqrt(k*k+p*p),w=d.Math.max(u,w),g=hFt(n),w=d.Math.max(g,w);return w}i(hFt,"s_c");function _h(){_h=U,qv=new x9("OUTSIDE",0),ry=new x9("INSIDE",1),qj=new x9("NEXT_TO_PORT_IF_POSSIBLE",2),IN=new x9("ALWAYS_SAME_SIDE",3),DN=new x9("ALWAYS_OTHER_SAME_SIDE",4),tA=new x9("SPACE_EFFICIENT",5)}i(_h,"$ld");function fFt(e,n,o){var u,p,g,w,k,A;return u=kln(e,(p=(Kb(),g=new JD,g),o&&$K(p,o),p),n),E7(u,N1(n,am)),SK(n,u),Yvn(n,u),d9e(n,u),v=null,w=n,k=Bx(w,"ports"),A=new DSt(e,u),k$t(A.a,A.b,k),she(e,n,u),wfn(e,n,u),u}i(fFt,"nCd");function Vbn(e){var n,o;return o=-e.a,n=Se(Ee(Rd,1),em,30,15,[43,48,48,58,48,48]),o<0&&(n[0]=45,o=-o),n[1]=n[1]+((o/60|0)/10|0)&As,n[2]=n[2]+(o/60|0)%10&As,n[4]=n[4]+(o%60/10|0)&As,n[5]=n[5]+o%10&As,Jd(n,0,n.length)}i(Vbn,"VA");function Wbn(e){var n;return n=Se(Ee(Rd,1),em,30,15,[71,77,84,45,48,48,58,48,48]),e<=0&&(n[3]=43,e=-e),n[4]=n[4]+((e/60|0)/10|0)&As,n[5]=n[5]+(e/60|0)%10&As,n[7]=n[7]+(e%60/10|0)&As,n[8]=n[8]+e%10&As,Jd(n,0,n.length)}i(Wbn,"YA");function Hbn(e){var n,o,u,p,g;if(e==null)return Qu;for(g=new aw(Tu,"[","]"),o=e,u=0,p=o.length;u<p;++u)n=o[u],g.a?Li(g.a,g.b):g.a=new Lf(g.d),E9(g.a,""+B9(n));return g.a?g.e.length==0?g.a.a:g.a.a+(""+g.e):g.c}i(Hbn,"pnb");function y9e(e,n){var o,u,p;for(p=Ui,u=new ye(OC(n));u.a<u.c.c.length;)o=y(de(u),217),o.f&&!e.c[o.c]&&(e.c[o.c]=!0,p=d.Math.min(p,y9e(e,ZX(o,n))));return e.i[n.d]=e.j,e.g[n.d]=d.Math.min(p,e.j++),e.g[n.d]}i(y9e,"ZGb");function dFt(e,n){var o,u,p;for(p=y(y(oa(e.r,n),22),83).Jc();p.Ob();)u=y(p.Pb(),115),u.e.b=(o=u.b,o.nf((Ri(),tf))?o.$f()==(zt(),sn)?-o.Kf().b-He(Xe(o.mf(tf))):He(Xe(o.mf(tf))):o.$f()==(zt(),sn)?-o.Kf().b:0)}i(dFt,"$Kb");function b9e(e){var n,o,u,p,g;n=e.a,o=e.b,p=e.c,u=new Lt(o.e.a+o.f.a/2,o.e.b+o.f.b/2),g=new Lt(p.e.a+p.f.a/2,p.e.b+p.f.b/2),Ha(n,u,n.a,n.a.a),Ha(n,g,n.c.b,n.c),vBt(u,y(Bc(n,1),8),e.b.f),vBt(g,y(Bc(n,n.b-2),8),e.c.f)}i(b9e,"qZc");function u6(e){var n,o;if(o=!1,Ge(e,210))return o=!0,y(e,210).a;if(!o&&Ge(e,265)&&(n=y(e,265).a%1==0,n))return o=!0,Et(DZr(y(e,265).a));throw xe(new j0("Id must be a string or an integer: '"+e+"'."))}i(u6,"PAd");function qbn(e,n){var o,u,p,g,w,k;for(g=null,p=new H8t((!e.a&&(e.a=new voe(e)),e.a));k9e(p);)if(o=y(OK(p),57),u=(w=o.Ah(),k=(HC(w),w.o),!k||!o.Uh(k)?null:d8e(Que(k),o.Jh(k))),u!=null&&Cr(u,n)){g=o;break}return g}i(qbn,"Xbe");function pFt(e,n){var o;this.e=(oi(e),H_e(e)),this.c=(oi(n),H_e(n)),SAe(this.e.Pd().dc()==this.c.Pd().dc()),this.d=ONt(this.e),this.b=ONt(this.c),o=Fk(Fs,[Dt,Fr],[5,1],5,[this.e.Pd().gc(),this.c.Pd().gc()],2),this.a=o,mhn(this)}i(pFt,"fj");function gFt(e,n,o){var u,p,g,w,k;if(Of(o,"occurrences"),o==0)return k=y(i3(j5(e.a),n),18),k?k.gc():0;if(w=y(i3(j5(e.a),n),18),!w)return 0;if(g=w.gc(),o>=g)w.$b();else for(p=w.Jc(),u=0;u<o;u++)p.Pb(),p.Qb();return g}i(gFt,"Jw");function Ybn(e,n,o){var u,p,g,w;return Of(o,"oldCount"),Of(0,"newCount"),u=y(i3(j5(e.a),n),18),(u?u.gc():0)==o?(Of(0,"count"),p=(g=y(i3(j5(e.a),n),18),g?g.gc():0),w=-p,w>0?t6e():w<0&&gFt(e,n,-w),!0):!1}i(Ybn,"ix");function LI(e){var n,o,u,p,g,w,k;if(k=0,e.b==0){for(w=qOt(e,!0),n=0,u=w,p=0,g=u.length;p<g;++p)o=u[p],o>0&&(k+=o,++n);n>1&&(k+=e.c*(n-1))}else k=eCt(Yue(Uk(Hi(Ece(e.a),new me),new We)));return k>0?k+e.n.d+e.n.a:0}i(LI,"BIb");function _I(e){var n,o,u,p,g,w,k;if(k=0,e.b==0)k=eCt(Yue(Uk(Hi(Ece(e.a),new be),new ke)));else{for(w=YOt(e,!0),n=0,u=w,p=0,g=u.length;p<g;++p)o=u[p],o>0&&(k+=o,++n);n>1&&(k+=e.c*(n-1))}return k>0?k+e.n.b+e.n.c:0}i(_I,"CIb");function Xbn(e){var n,o;if(e.c.length!=2)throw xe(new El("Order only allowed for two paths."));n=(_r(0,e.c.length),y(e.c[0],17)),o=(_r(1,e.c.length),y(e.c[1],17)),n.d.i!=o.c.i&&(e.c.length=0,tn(e.c,o),tn(e.c,n))}i(Xbn,"DLc");function mFt(e,n,o){var u;for(kx(o,n.g,n.f),ld(o,n.i,n.j),u=0;u<(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i;u++)mFt(e,y(je((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a),u),26),y(je((!o.a&&(o.a=new xt(Ti,o,10,11)),o.a),u),26))}i(mFt,"J5c");function Kbn(e,n){var o,u,p,g;for(g=y(yl(e.b,n),127),o=g.a,p=y(y(oa(e.r,n),22),83).Jc();p.Ob();)u=y(p.Pb(),115),u.c&&(o.a=d.Math.max(o.a,j8e(u.c)));if(o.a>0)switch(n.g){case 2:g.n.c=e.s;break;case 4:g.n.b=e.s}}i(Kbn,"gKb");function Jbn(e,n){var o,u,p;return o=y(oe(n,(Vp(),D6)),15).a-y(oe(e,D6),15).a,o==0?(u=qs(Wo(y(oe(e,(uv(),ZG)),8)),y(oe(e,DM),8)),p=qs(Wo(y(oe(n,ZG),8)),y(oe(n,DM),8)),ha(u.a*u.b,p.a*p.b)):o}i(Jbn,"XMb");function Qbn(e,n){var o,u,p;return o=y(oe(n,(uc(),UZ)),15).a-y(oe(e,UZ),15).a,o==0?(u=qs(Wo(y(oe(e,(Ca(),Sj)),8)),y(oe(e,pL),8)),p=qs(Wo(y(oe(n,Sj),8)),y(oe(n,pL),8)),ha(u.a*u.b,p.a*p.b)):o}i(Qbn,"sSc");function yFt(e){var n,o;return o=new Yb,o.a+="e_",n=mfn(e),n!=null&&(o.a+=""+n),e.c&&e.d&&(Li((o.a+=" ",o),wK(e.c)),Li(qc((o.a+="[",o),e.c.i),"]"),Li((o.a+=lpe,o),wK(e.d)),Li(qc((o.a+="[",o),e.d.i),"]")),o.a}i(yFt,"FWb");function bFt(e){switch(e.g){case 0:return new xwt;case 1:return new Twt;case 2:return new Nwt;case 3:return new Owt;default:throw xe(new rn("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}i(bFt,"ISc");function v9e(e,n,o,u,p){var g;switch(g=0,p.g){case 1:g=d.Math.max(0,n.b+e.b-(o.b+u));break;case 3:g=d.Math.max(0,-e.b-u);break;case 2:g=d.Math.max(0,-e.a-u);break;case 4:g=d.Math.max(0,n.a+e.a-(o.a+u))}return g}i(v9e,"Spd");function vFt(e,n,o){var u,p,g,w,k;if(o)for(p=o.a.length,u=new H2(p),k=(u.b-u.a)*u.c<0?(Qb(),Qv):new tv(u);k.Ob();)w=y(k.Pb(),15),g=y7(o,w.a),dPe in g.a||Nge in g.a?rTn(e,g,n):CEn(e,g,n),Len(y(Jr(e.c,W7(g)),85))}i(vFt,"sBd");function w9e(e){var n,o;switch(e.b){case-1:return!0;case 0:return o=e.t,o>1||o==-1?(e.b=-1,!0):(n=Qd(e),n&&(tl(),n.jk()==qHt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}i(w9e,"wVd");function x9e(e,n){var o,u,p,g;if(qi(e),e.c!=0||e.a!=123)throw xe(new bi(ki((fi(),gHt))));if(g=n==112,u=e.d,o=Z8(e.i,125,u),o<0)throw xe(new bi(ki((fi(),mHt))));return p=Yd(e.i,u,o),e.d=o+1,LDt(p,g,(e.e&512)==512)}i(x9e,"dpe");function Zbn(e){var n,o,u,p,g,w,k;for(k=Pm(e.c.length),p=new ye(e);p.a<p.c.c.length;){for(u=y(de(p),9),w=new gs,g=Ra(u),o=new nn(cn(g.a.Jc(),new B));Nn(o);)n=y(vn(o),17),n.c.i==n.d.i||ys(w,n.d.i);tn(k.c,w)}return k}i(Zbn,"ZDc");function evn(e,n){var o,u,p;if(!n)Gue(e,null),C7(e,null);else if((n.i&4)!=0)for(u="[]",o=n.c;;o=o.c){if((o.i&4)==0){p=Z5e((_1(o),o.o+u)),Gue(e,p),C7(e,p);break}u+="[]"}else p=Z5e((_1(n),n.o)),Gue(e,p),C7(e,p);e.fl(n)}i(evn,"UVd");function DI(e,n,o,u,p){var g,w,k,A;return A=Hle(e,y(p,57)),Qe(A)!==Qe(p)?(k=y(e.g[o],75),g=zm(n,A),L9(e,o,pfe(e,o,g)),hf(e.e)&&(w=av(e,9,g.Jk(),p,A,u,!1),IDe(w,new B1(e.e,9,e.c,k,g,u,!1)),Sue(w)),A):p}i(DI,"Oee");function wFt(e,n){var o,u,p;try{return p=Won(e.a,n),p}catch(g){if(g=hs(g),Ge(g,32)){try{if(u=Ff(n,bo,Ui),o=ug(e.a),u>=0&&u<o.length)return o[u]}catch(w){if(w=hs(w),!Ge(w,131))throw xe(w)}return null}else throw xe(g)}}i(wFt,"ued");function Lfe(e,n){var o,u,p;if(p=qC((yh(),Ro),e.Ah(),n),p)return tl(),y(p,69).vk()||(p=U5(Rl(Ro,p))),u=(o=e.Fh(p),y(o>=0?e.Ih(o,!0,!0):Jx(e,p,!0),163)),y(u,219).Ul(n);throw xe(new rn(Lv+n.ve()+Ege))}i(Lfe,"ntd");function tvn(){S6e();var e;return Jir?y(tR((Jb(),cp),ep),2003):(Fi(Cw,new Fvt),H4n(),e=y(Ge(Jc((Jb(),cp),ep),549)?Jc(cp,ep):new C7t,549),Jir=!0,WEn(e),JEn(e),Oi((E6e(),vWe),e,new evt),Al(cp,ep,e),e)}i(tvn,"m9d");function rvn(e,n){var o,u,p,g;e.j=-1,hf(e.e)?(o=e.i,g=e.i!=0,t$(e,n),u=new B1(e.e,3,e.c,null,n,o,g),p=n.xl(e.e,e.c,null),p=KPt(e,n,p),p?(p.lj(u),p.mj()):Qi(e.e,u)):(t$(e,n),p=n.xl(e.e,e.c,null),p&&p.mj())}i(rvn,"gee");function IK(e,n){var o,u,p;if(p=0,u=n[0],u>=e.length)return-1;for(o=(un(u,e.length),e.charCodeAt(u));o>=48&&o<=57&&(p=p*10+(o-48),++u,!(u>=e.length));)o=(un(u,e.length),e.charCodeAt(u));return u>n[0]?n[0]=u:p=-1,p}i(IK,"zA");function nvn(e,n,o){var u,p,g,w,k;w=e.c,k=e.d,g=Ql(Se(Ee(to,1),Dt,8,0,[w.i.n,w.n,w.a])).b,p=(g+Ql(Se(Ee(to,1),Dt,8,0,[k.i.n,k.n,k.a])).b)/2,u=null,w.j==(zt(),bn)?u=new Lt(n+w.i.c.c.a+o,p):u=new Lt(n-o,p),e7(e.a,0,u)}i(nvn,"UOc");function Kx(e){var n,o,u,p;for(n=null,u=Gm(pd(Se(Ee(kd,1),Fr,20,0,[(!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c)])));Nn(u);)if(o=y(vn(u),84),p=Pl(o),!n)n=p;else if(n!=p)return!1;return!0}i(Kx,"Kwd");function _fe(e,n,o){var u;if(++e.j,n>=e.i)throw xe(new yu(Pge+n+xw+e.i));if(o>=e.i)throw xe(new yu(Bge+o+xw+e.i));return u=e.g[o],n!=o&&(n<o?$c(e.g,n,e.g,n+1,o-n):$c(e.g,o+1,e.g,o,n-o),as(e.g,n,u),e.Ni(n,u,o),e.Li()),u}i(_fe,"hGd");function Sr(e,n,o){var u;if(u=y(e.c.xc(n),18),u)return u.Ec(o)?(++e.d,!0):!1;if(u=e.ic(n),u.Ec(o))return++e.d,e.c.yc(n,u),!0;throw xe(new wRe("New Collection violated the Collection spec"))}i(Sr,"Rc");function J$(e){var n,o,u;return e<0?0:e==0?32:(u=-(e>>16),n=u>>16&16,o=16-n,e=e>>n,u=e-256,n=u>>16&8,o+=n,e<<=n,u=e-x3,n=u>>16&4,o+=n,e<<=n,u=e-Z0,n=u>>16&2,o+=n,e<<=n,u=e>>14,n=u&~(u>>1),o+2-n)}i(J$,"xfb");function ivn(e,n){var o,u,p;for(p=new Pt,u=ei(n.a,0);u.b!=u.d.c;)o=y(Qn(u),65),o.c.g==e.g&&Qe(oe(o.b,(uc(),um)))!==Qe(oe(o.c,um))&&!Kk(new Er(null,new Rr(p,16)),new kkt(o))&&tn(p.c,o);return zs(p,new i1t),p}i(ivn,"SSc");function xFt(e,n,o){var u,p,g,w;return Ge(n,155)&&Ge(o,155)?(g=y(n,155),w=y(o,155),e.a[g.a][w.a]+e.a[w.a][g.a]):Ge(n,251)&&Ge(o,251)&&(u=y(n,251),p=y(o,251),u.a==p.a)?y(oe(p.a,(Vp(),D6)),15).a:0}i(xFt,"JNb");function TFt(e,n){var o,u,p,g,w,k,A,D;for(D=He(Xe(oe(n,(Bt(),QM)))),A=e[0].n.a+e[0].o.a+e[0].d.c+D,k=1;k<e.length;k++)u=e[k].n,p=e[k].o,o=e[k].d,g=u.a-o.b-A,g<0&&(u.a-=g),w=n.f,w.a=d.Math.max(w.a,u.a+p.a),A=u.a+p.a+o.c+D}i(TFt,"c3b");function avn(e,n){var o,u,p,g,w,k;return u=y(y(Jr(e.g,n.a),49).a,68),p=y(y(Jr(e.g,n.b),49).a,68),g=u.b,w=p.b,o=_3n(g,w),o>=0?o:(k=U9(qs(new Lt(w.c+w.b/2,w.d+w.a/2),new Lt(g.c+g.b/2,g.d+g.a/2))),-(QGt(g,w)-1)*k)}i(avn,"J7c");function svn(e,n,o){var u;ts(new Er(null,(!o.a&&(o.a=new xt(Ia,o,6,6)),new Rr(o.a,16))),new bSt(e,n)),ts(new Er(null,(!o.n&&(o.n=new xt(nc,o,1,7)),new Rr(o.n,16))),new vSt(e,n)),u=y(St(o,(Ri(),_E)),79),u&&ELe(u,e,n)}i(svn,"$pd");function Jx(e,n,o){var u,p,g;if(g=qC((yh(),Ro),e.Ah(),n),g)return tl(),y(g,69).vk()||(g=U5(Rl(Ro,g))),p=(u=e.Fh(g),y(u>=0?e.Ih(u,!0,!0):Jx(e,g,!0),163)),y(p,219).Ql(n,o);throw xe(new rn(Lv+n.ve()+Ege))}i(Jx,"mtd");function T9e(e,n,o,u){var p,g,w,k,A;if(p=e.d[n],p){if(g=p.g,A=p.i,u!=null){for(k=0;k<A;++k)if(w=y(g[k],136),w.yi()==o&&ta(u,w.jd()))return w}else for(k=0;k<A;++k)if(w=y(g[k],136),Qe(w.jd())===Qe(u))return w}return null}i(T9e,"lMd");function ovn(e,n){var o,u,p,g,w;for(u=(!n.s&&(n.s=new xt(ih,n,21,17)),n.s),g=null,p=0,w=u.i;p<w;++p)switch(o=y(je(u,p),179),Ix(Rl(e,o))){case 4:case 5:case 6:{!g&&(g=new Pt),tn(g.c,o);break}}return g||(Ir(),Ir(),Go)}i(ovn,"$ce");function Q$(e,n){var o;if(n<0)throw xe(new UH("Negative exponent"));if(n==0)return mQ;if(n==1||D_e(e,mQ)||D_e(e,AM))return e;if(!XFt(e,0)){for(o=1;!XFt(e,o);)++o;return SC(Mpn(o*n),Q$(xRe(e,o),n))}return O1n(e,n)}i(Q$,"gib");function lvn(e,n){var o,u,p;if(Qe(e)===Qe(n))return!0;if(e==null||n==null||e.length!=n.length)return!1;for(o=0;o<e.length;++o)if(u=e[o],p=n[o],!(Qe(u)===Qe(p)||u!=null&&ta(u,p)))return!1;return!0}i(lvn,"Tmb");function kFt(e){k6e();var n,o,u;for(this.b=GXt,this.c=(Ss(),g0),this.f=(bEt(),$Xt),this.a=e,l6e(this,new so),GK(this),u=new ye(e.b);u.a<u.c.c.length;)o=y(de(u),82),o.d||(n=new Phe(Se(Ee(N0e,1),Fr,82,0,[o])),Nt(e.a,n))}i(kFt,"iSb");function CFt(e){F7e();var n,o;for(this.b=bYt,this.c=wYt,this.g=(vEt(),yYt),this.d=(Ss(),g0),this.a=e,K9e(this),o=new ye(e.b);o.a<o.c.c.length;)n=y(de(o),60),!n.a&&h6t(sIt(new F5e,Se(Ee(wQ,1),Fr,60,0,[n])),e),n.e=new BY(n.d)}i(CFt,"mFb");function cvn(e,n,o){var u,p,g,w,k,A;if(!e||e.c.length==0)return null;for(g=new mRt(n,!o),p=new ye(e);p.a<p.c.c.length;)u=y(de(p),70),e9e(g,(K8(),new NH(u)));return w=g.i,w.a=(A=g.n,g.e.b+A.d+A.a),w.b=(k=g.n,g.e.a+k.b+k.c),g}i(cvn,"G0b");function EFt(e){var n,o,u,p,g,w,k;for(k=JF(e.a),uAe(k,new Mm),o=null,p=k,g=0,w=p.length;g<w&&(u=p[g],u.k==(Yr(),ks));++g)n=y(oe(u,(Tt(),gc)),64),!(n!=(zt(),on)&&n!=bn)&&(o&&y(oe(o,F6),16).Ec(u),o=u)}i(EFt,"R2b");function uvn(e,n,o){var u,p,g,w,k,A,D;A=(_r(n,e.c.length),y(e.c[n],340)),Gy(e,n),A.b/2>=o&&(u=n,D=(A.c+A.a)/2,w=D-o,A.c<=D-o&&(p=new ice(A.c,w),W2(e,u++,p)),k=D+o,k<=A.a&&(g=new ice(k,A.a),Hk(u,e.c.length),f9(e.c,u,g)))}i(uvn,"fQc");function SFt(e,n,o){var u,p,g,w,k,A;if(!n.dc()){for(p=new ya,A=n.Jc();A.Ob();)for(k=y(A.Pb(),40),Oi(e.a,Et(k.g),Et(o)),w=(u=ei(new A1(k).a.d,0),new aC(u));tF(w.a);)g=y(Qn(w.a),65).c,Ha(p,g,p.c.b,p.c);SFt(e,p,o+1)}}i(SFt,"XVc");function k9e(e){var n;if(!e.c&&e.g==null)e.d=e._i(e.f),Zn(e,e.d),n=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;n=y(e.g[e.i-1],50)}return n==e.b&&null.Tm>=null.Sm()?(OK(e),k9e(e)):n.Ob()}i(k9e,"fce");function AFt(e){if(this.a=e,e.c.i.k==(Yr(),ks))this.c=e.c,this.d=y(oe(e.c.i,(Tt(),gc)),64);else if(e.d.i.k==ks)this.c=e.d,this.d=y(oe(e.d.i,(Tt(),gc)),64);else throw xe(new rn("Edge "+e+" is not an external edge."))}i(AFt,"ZUb");function RFt(e,n){var o,u,p;p=e.b,e.b=n,(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,3,p,e.b)),n?n!=e&&(wu(e,n.zb),Bue(e,n.d),o=(u=n.c,u??n.zb),$ue(e,o==null||Cr(o,n.zb)?null:o)):(wu(e,null),Bue(e,0),$ue(e,null))}i(RFt,"__d");function LFt(e){var n=(!u0e&&(u0e=ZCn()),u0e),o=e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(u){return Ksn(u,n)});return'"'+o+'"'}i(LFt,"Dz");function C9e(e,n,o,u,p,g){var w,k,A,D,M;if(p!=0)for(Qe(e)===Qe(o)&&(e=e.slice(n,n+p),n=0),A=o,k=n,D=n+p;k<D;)w=d.Math.min(k+1e4,D),p=w-k,M=e.slice(k,w),M.splice(0,0,u,g?p:0),Array.prototype.splice.apply(A,M),k=w,u+=p}i(C9e,"mDb");function hvn(e){var n,o,u,p,g,w;for(p=e.e.c.length,u=tt(zf,T3,16,p,0,1),w=new ye(e.e);w.a<w.c.c.length;)g=y(de(w),155),u[g.a]=new ya;for(o=new ye(e.c);o.a<o.c.c.length;)n=y(de(o),291),u[n.c.a].Ec(n),u[n.d.a].Ec(n);return u}i(hvn,"RMb");function fvn(e,n){var o,u,p,g,w;if(o=y(an(e.a,4),129),w=o==null?0:o.length,n>=w)throw xe(new Pk(n,w));return p=o[n],w==1?u=null:(u=tt(Jye,zge,415,w-1,0,1),$c(o,0,u,0,n),g=w-n-1,g>0&&$c(o,n+1,u,n,g)),q7(e,u),KBt(e,n,p),p}i(fvn,"dLd");function _Ft(e){var n,o;if(e.f){for(;e.n<e.o;){if(n=y(e.j?e.j.Yi(e.n):e.k.Xb(e.n),75),o=n.Jk(),Ge(o,103)&&(y(o,19).Bb&Tc)!=0&&(!e.e||o.nk()!=SL||o.Jj()!=0)&&n.kd()!=null)return!0;++e.n}return!1}else return e.n<e.o}i(_Ft,"y1d");function h6(){h6=U,iA=y(je(wt((f6e(),kc).qb),6),38),nA=y(je(wt(kc.qb),3),38),nbe=y(je(wt(kc.qb),4),38),ibe=y(je(wt(kc.qb),5),19),TK(iA),TK(nA),TK(nbe),TK(ibe),tar=new oc(Se(Ee(ih,1),iE,179,0,[iA,nA]))}i(h6,"Yje");function DFt(e,n){var o;this.d=new KD,this.b=n,this.e=new Vo(n.Jf()),o=e.u.Gc((_h(),qj)),e.u.Gc(ry)?e.F?this.a=o&&!n._f():this.a=!0:e.u.Gc(qv)?o?this.a=!(n.Sf().Jc().Ob()||n.Uf().Jc().Ob()):this.a=!1:this.a=!1}i(DFt,"WJb");function IFt(e,n){var o,u,p,g;for(o=e.o.a,g=y(y(oa(e.r,n),22),83).Jc();g.Ob();)p=y(g.Pb(),115),p.e.a=(u=p.b,u.nf((Ri(),tf))?u.$f()==(zt(),on)?-u.Kf().a-He(Xe(u.mf(tf))):o+He(Xe(u.mf(tf))):u.$f()==(zt(),on)?-u.Kf().a:o)}i(IFt,"cLb");function MFt(e){var n,o,u,p,g,w,k;if(u=e.a.c.length,u>0)for(w=e.c.d,k=e.d.d,p=L1(qs(new Lt(k.a,k.b),w),1/(u+1)),g=new Lt(w.a,w.b),o=new ye(e.a);o.a<o.c.c.length;)n=y(de(o),251),n.d.a=g.a+p.a,n.d.b=g.b+p.b,g.a+=p.a,g.b+=p.b}i(MFt,"ANb");function NFt(e,n){var o,u,p,g;o=y(oe(e,(Bt(),Uf)),86),g=y(St(n,oL),64),p=y(oe(e,Qa),102),p!=(uo(),m0)&&p!=Hv?g==(zt(),rc)&&(g=DIe(n,o),g==rc&&(g=r6(o))):(u=Bjt(n),u>0?g=r6(o):g=M$(r6(o))),pa(n,oL,g)}i(NFt,"L$b");function OFt(e,n){var o,u;if(e.c.length!=0){if(e.c.length==2)p6((_r(0,e.c.length),y(e.c[0],9)),(Bf(),n1)),p6((_r(1,e.c.length),y(e.c[1],9)),Vv);else for(u=new ye(e);u.a<u.c.c.length;)o=y(de(u),9),p6(o,n);e.c.length=0}}i(OFt,"F7b");function dvn(e,n){var o,u,p,g,w;for(w=e.j,n.a!=n.b&&zs(w,new F0t),p=w.c.length/2|0,u=0;u<p;u++)g=(_r(u,w.c.length),y(w.c[u],113)),g.c&&Bs(g.d,n.a);for(o=p;o<w.c.length;o++)g=(_r(o,w.c.length),y(w.c[o],113)),g.c&&Bs(g.d,n.b)}i(dvn,"ejc");function f6(e,n,o,u){var p;switch(p=0,y(oe(n,(Bt(),tc)),165).g){case 2:p=2*-o+e.a,++e.a;break;case 1:p=-o;break;case 3:p=o;break;case 4:p=2*o+e.b,++e.b}return ea(n,(Tt(),Ea))&&(p+=y(oe(n,$3),15).a*u+y(oe(n,Ea),15).a),p}i(f6,"fCc");function pvn(e,n,o){var u,p,g;return u=e.c[n.c.p][n.p],p=e.c[o.c.p][o.p],u.a!=null&&p.a!=null?(g=wce(u.a,p.a),g<0?iG(e,n,o):g>0&&iG(e,o,n),g):u.a!=null?(iG(e,n,o),-1):p.a!=null?(iG(e,o,n),1):0}i(pvn,"aIc");function PFt(e){Jce();var n,o,u,p,g,w,k;for(o=new lv,p=new ye(e.e.b);p.a<p.c.c.length;)for(u=y(de(p),25),w=new ye(u.a);w.a<w.c.c.length;)g=y(de(w),9),k=e.g[g.p],n=y(Jg(o,k),16),n||(n=new Pt,uw(o,k,n)),n.Ec(g);return o}i(PFt,"MNc");function gvn(e,n){var o,u,p,g,w;for(p=n.b.b,e.a=tt(zf,T3,16,p,0,1),e.b=tt(ah,vg,30,p,16,1),w=ei(n.b,0);w.b!=w.d.c;)g=y(Qn(w),40),e.a[g.g]=new ya;for(u=ei(n.a,0);u.b!=u.d.c;)o=y(Qn(u),65),e.a[o.b.g].Ec(o),e.a[o.c.g].Ec(o)}i(gvn,"nSc");function BFt(e,n){var o,u,p,g;e.Nj()?(o=e.Cj(),g=e.Oj(),++e.j,e.oj(o,e.Xi(o,n)),u=e.Gj(3,null,n,o,g),e.Kj()?(p=e.Lj(n,null),p?(p.lj(u),p.mj()):e.Hj(u)):e.Hj(u)):(h7t(e,n),e.Kj()&&(p=e.Lj(n,null),p&&p.mj()))}i(BFt,"hId");function E9e(e,n,o){var u,p,g;e.Nj()?(g=e.Oj(),_$(e,n,o),u=e.Gj(3,null,o,n,g),e.Kj()?(p=e.Lj(o,null),e.Rj()&&(p=e.Sj(o,p)),p?(p.lj(u),p.mj()):e.Hj(u)):e.Hj(u)):(_$(e,n,o),e.Kj()&&(p=e.Lj(o,null),p&&p.mj()))}i(E9e,"FJd");function MK(e,n){var o,u,p,g,w;for(w=Ou(e.e.Ah(),n),p=new AH,o=y(e.g,122),g=e.i;--g>=0;)u=o[g],w.$l(u.Jk())&&Zn(p,u);!Mzt(e,p)&&hf(e.e)&&$8(e,n.Hk()?av(e,6,n,(Ir(),Go),null,-1,!1):av(e,n.rk()?2:1,n,null,null,-1,!1))}i(MK,"oee");function mvn(e,n){var o,u,p,g,w;return e.a==(Q7(),BM)?!0:(g=n.a.c,o=n.a.c+n.a.b,!(n.j&&(u=n.A,w=u.c.c.a-u.o.a/2,p=g-(u.n.a+u.o.a),p>w)||n.q&&(u=n.C,w=u.c.c.a-u.o.a/2,p=u.n.a-o,p>w)))}i(mvn,"N1b");function FFt(e,n,o){var u,p,g,w,k,A;for(u=0,A=o,n||(u=o*(e.c.length-1),A*=-1),g=new ye(e);g.a<g.c.c.length;){for(p=y(de(g),9),dt(p,(Bt(),lm),(Vm(),see)),p.o.a=u,k=Ky(p,(zt(),bn)).Jc();k.Ob();)w=y(k.Pb(),12),w.n.a=u;u+=A}}i(FFt,"_2b");function $Ft(e){var n;return(e.Db&64)!=0?zp(e):(n=new Hd(zp(e)),n.a+=" (startX: ",oC(n,e.j),n.a+=", startY: ",oC(n,e.k),n.a+=", endX: ",oC(n,e.b),n.a+=", endY: ",oC(n,e.c),n.a+=", identifier: ",ml(n,e.d),n.a+=")",n.a)}i($Ft,"kxd");function S9e(e){var n;return(e.Db&64)!=0?dI(e):(n=new Hd(dI(e)),n.a+=" (ordered: ",Iy(n,(e.Bb&256)!=0),n.a+=", unique: ",Iy(n,(e.Bb&512)!=0),n.a+=", lowerBound: ",Goe(n,e.s),n.a+=", upperBound: ",Goe(n,e.t),n.a+=")",n.a)}i(S9e,"pUd");function GFt(e,n,o,u,p,g,w,k){var A;return Ge(e.Cb,88)&&f3(Hh(y(e.Cb,88)),4),wu(e,o),e.f=u,j7(e,p),z7(e,g),G7(e,w),$7(e,!1),Yy(e,!0),U7(e,k),qy(e,!0),Uy(e,0),e.b=0,Zk(e,1),A=t0(e,n,null),A&&A.mj(),Che(e,!1),e}i(GFt,"Qyd");function jFt(e,n){var o,u,p,g;return o=y(Jc(e.a,n),512),o||(u=new fue(n),p=(eX(),c0?null:u.c),g=Yd(p,0,d.Math.max(0,Uq(p,Ku(46)))),Vtn(u,jFt(e,g)),(c0?null:u.c).length==0&&P6t(u,new tr),Al(e.a,c0?null:u.c,u),u)}i(jFt,"fAb");function yvn(e,n){var o,u;return ea(e,(Tt(),vE))?ea(n,vE)?(o=Xe(oe(e,vE)),u=Xe(oe(n,vE)),o!=null&&u!=null?ha((Ur(o),o),(Ur(u),u)):o!=null?-1:u!=null?1:0):-1:1}i(yvn,"VHc");function zFt(){this.a=new Rbt,this.n=new mK,this.p=new mK,this.c=new jn,this.f=new mK,this.o=new mK,this.q=new jn,this.d=new jn,this.g=new jn,this.k=new jn,this.e=new jn,this.i=new jn,this.j=new jn,this.r=new jn,this.b=new jn}i(zFt,"sCd");function d6(e,n,o){var u,p,g,w,k,A;return k=e.nl(o),k!=o?(w=e.g[n],A=k,L9(e,n,e.Xi(n,A)),g=w,e.Pi(n,A,g),e.$k()&&(u=o,p=e.Mj(u,null),!y(k,52).Mh()&&(p=e.Lj(A,p)),p&&p.mj()),hf(e.e)&&$8(e,e.Gj(9,o,k,n,!1)),k):o}i(d6,"tXd");function bvn(e,n){var o,u,p,g;for(u=new ye(e.a.a);u.a<u.c.c.length;)o=y(de(u),194),o.g=!0;for(g=new ye(e.a.b);g.a<g.c.c.length;)p=y(de(g),82),p.k=Kt(Xt(e.e.Kb(new Ko(p,n)))),p.d.g=p.d.g&Kt(Xt(e.e.Kb(new Ko(p,n))));return e}i(bvn,"XRb");function UFt(e,n,o){var u,p,g,w,k;if(!e.d[o.p]){for(p=new nn(cn(Ra(o).a.Jc(),new B));Nn(p);){for(u=y(vn(p),17),k=u.d.i,w=new nn(cn(os(k).a.Jc(),new B));Nn(w);)g=y(vn(w),17),g.c.i==n&&(e.a[g.p]=!0);UFt(e,n,k)}e.d[o.p]=!0}}i(UFt,"WCc");function vvn(e,n){var o,u,p,g,w,k,A;if(u=SNt(e.Db&254),u==1)e.Eb=null;else if(g=K5(e.Eb),u==2)p=rfe(e,n),e.Eb=g[p==0?1:0];else{for(w=tt(Fs,Fr,1,u-1,5,1),o=2,k=0,A=0;o<=128;o<<=1)o==n?++k:(e.Db&o)!=0&&(w[A++]=g[k++]);e.Eb=w}e.Db&=~n}i(vvn,"vud");function A9e(e){var n;switch(n=0,e){case 105:n=2;break;case 109:n=8;break;case 115:n=4;break;case 120:n=16;break;case 117:n=32;break;case 119:n=64;break;case 70:n=256;break;case 72:n=128;break;case 88:n=512;break;case 44:n=Wp}return n}i(A9e,"Eqe");function wvn(e,n,o,u,p){var g,w,k,A;if(Qe(e)===Qe(n)&&u==p){VGt(e,u,o);return}for(k=0;k<u;k++){for(w=0,g=e[k],A=0;A<p;A++)w=Ho(Ho($o(co(g,ll),co(n[A],ll)),co(o[k+A],ll)),co(mi(w),ll)),o[k+A]=mi(w),w=Y2(w,32);o[k+p]=mi(w)}}i(wvn,"Yib");function VFt(e){var n,o,u,p,g;if(o=(n=y(ug(Qo),10),new ud(n,y(Np(n,n.length),10),0)),g=y(oe(e,(Tt(),Ih)),9),g)for(p=new ye(g.j);p.a<p.c.c.length;)u=y(de(p),12),Qe(oe(u,aa))===Qe(e)&&D9(new Kg(u.b))&&Gp(o,u.j);return o}i(VFt,"fic");function xvn(e,n){var o,u,p;for(u=new ye(e.i.d);u.a<u.c.c.length;)o=y(de(u),70),dt(o,(Bt(),wE),null);switch(n.g){case 2:case 4:p=e.a,e.c.d.n.b<p.d.n.b&&(p=e.c),Fy(e,n,(jp(),Y0e),p);break;case 1:case 3:Fy(e,n,(jp(),O3),null)}}i(xvn,"Sjc");function WFt(e,n){n.b!=0&&(isNaN(e.s)?e.s=He((In(n.b!=0),Xe(n.a.a.c))):e.s=d.Math.min(e.s,He((In(n.b!=0),Xe(n.a.a.c)))),isNaN(e.c)?e.c=He((In(n.b!=0),Xe(n.c.b.c))):e.c=d.Math.max(e.c,He((In(n.b!=0),Xe(n.c.b.c)))))}i(WFt,"vPc");function II(e){var n,o,u,p;for(n=null,u=Gm(pd(Se(Ee(kd,1),Fr,20,0,[(!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c)])));Nn(u);)if(o=y(vn(u),84),p=Pl(o),!n)n=$a(p);else if(n!=$a(p))return!0;return!1}i(II,"Jwd");function Dfe(e,n){var o,u,p,g;e.Nj()?(o=e.i,g=e.Oj(),t$(e,n),u=e.Gj(3,null,n,o,g),e.Kj()?(p=e.Lj(n,null),e.Rj()&&(p=e.Sj(n,p)),p?(p.lj(u),p.mj()):e.Hj(u)):e.Hj(u)):(t$(e,n),e.Kj()&&(p=e.Lj(n,null),p&&p.mj()))}i(Dfe,"GJd");function Tvn(e,n){var o,u,p,g;if(g=jF(e.a,n.b),!g)throw xe(new El("Invalid hitboxes for scanline overlap calculation."));for(p=!1,u=e.a.a.ec().Jc();u.Ob();)if(o=y(u.Pb(),68),Ofn(n.b,o))$Qr(e.b.a,n.b,o),p=!0;else if(p)break}i(Tvn,"BMb");function kvn(e){var n;if(!e.a)throw xe(new El("IDataType class expected for layout option "+e.f));if(n=Kln(e.a),n==null)throw xe(new El("Couldn't create new instance of property '"+e.f+"'. "+sWt+(_1(iz),iz.k)+ePe));return y(n,414)}i(kvn,"ted");function Ife(e){var n,o,u,p,g;return g=e.Mh(),g&&g.Sh()&&(p=gv(e,g),p!=g)?(o=e.Ch(),u=(n=e.Ch(),n>=0?e.xh(null):e.Mh().Qh(e,-1-n,null,null)),e.yh(y(p,52),o),u&&u.mj(),e.sh()&&e.th()&&o>-1&&Qi(e,new Qs(e,9,o,g,p)),p):g}i(Ife,"Wsd");function R9e(e,n){var o,u,p,g,w;for(g=e.b.Ae(n),u=(o=e.a.get(g),o??tt(Fs,Fr,1,0,5,1)),w=0;w<u.length;w++)if(p=u[w],e.b.ze(n,p.jd()))return u.length==1?(u.length=0,Rtn(e.a,g)):u.splice(w,1),--e.c,++e.b.g,p.kd();return null}i(R9e,"Asb");function HFt(e){var n,o,u,p,g,w,k,A;for(w=0,g=e.f.e,u=0;u<g.c.length;++u)for(k=(_r(u,g.c.length),y(g.c[u],155)),p=u+1;p<g.c.length;++p)A=(_r(p,g.c.length),y(g.c[p],155)),o=cv(k.d,A.d),n=o-e.a[k.a][A.a],w+=e.i[k.a][A.a]*n*n;return w}i(HFt,"TPb");function Cvn(e,n){var o;if(!ea(n,(Bt(),tc))&&(o=lmn(y(oe(n,NFe),367),y(oe(e,tc),165)),dt(n,NFe,o),!Nn(new nn(cn(Y0(n).a.Jc(),new B)))))switch(o.g){case 1:dt(n,tc,(yf(),UM));break;case 2:dt(n,tc,(yf(),VM))}}i(Cvn,"c8b");function Evn(e,n){var o;Pxn(e),e.a=(o=new Boe,ts(new Er(null,new Rr(n.d,16)),new FTt(o)),o),Kxn(e,y(oe(n.b,(Bt(),Ume)),348)),Zgn(e),Ivn(e),fmn(e),e0n(e),Y3n(e,n),ts(jl(new Er(null,kLt(Tan(e.b).a)),new x0t),new T0t),n.a=!1,e.a=null}i(Evn,"mic");function L9e(){L9e=U,ttr=new br(pOe,(qr(),!1)),rtr=new br(gOe,7),Et(0),str=new br(mOe,Et(0)),itr=new br(yOe,Et(-1)),qje=(hI(),B1e),otr=new br(bOe,qje),Wje=(cI(),Ej),ntr=new br(vOe,Wje),Hje=(WY(),F1e),atr=new br(wOe,Hje)}i(L9e,"kXc");function qFt(){HDe.call(this,BR,(Kb(),yir)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}i(qFt,"vzd");function eR(){eR=U,Xye=new C5(bVt,0),Cee=new C5("INSIDE_SELF_LOOPS",1),Eee=new C5("MULTI_EDGES",2),kee=new C5("EDGE_LABELS",3),Yye=new C5("PORTS",4),Tee=new C5("COMPOUND",5),xee=new C5("CLUSTERS",6),qye=new C5("DISCONNECTED",7)}i(eR,"tEd");function YFt(e,n,o){var u,p,g;e.Nj()?(g=e.Oj(),++e.j,e.oj(n,e.Xi(n,o)),u=e.Gj(3,null,o,n,g),e.Kj()?(p=e.Lj(o,null),p?(p.lj(u),p.mj()):e.Hj(u)):e.Hj(u)):(++e.j,e.oj(n,e.Xi(n,o)),e.Kj()&&(p=e.Lj(o,null),p&&p.mj()))}i(YFt,"gId");function XFt(e,n){var o,u,p;if(n==0)return(e.a[0]&1)!=0;if(n<0)throw xe(new UH("Negative bit address"));if(p=n>>5,p>=e.d)return e.e<0;if(o=e.a[p],n=1<<(n&31),e.e<0){if(u=zIt(e),p<u)return!1;u==p?o=-o:o=~o}return(o&n)!=0}i(XFt,"jib");function KFt(e){var n,o,u,p,g;if(p=new Pt,g=YGt(e,p),n=y(oe(e,(Tt(),Ih)),9),n)for(u=new ye(n.j);u.a<u.c.c.length;)o=y(de(u),12),Qe(oe(o,aa))===Qe(e)&&(g=d.Math.max(g,YGt(o,p)));return p.c.length==0||dt(e,gE,g),g!=-1?p:null}i(KFt,"Q0b");function Svn(e,n,o,u){var p;y(o.b,68),y(o.b,68),y(u.b,68),y(u.b,68),p=qs(Wo(y(o.b,68).c),y(u.b,68).c),iY(p,iFt(y(o.b,68),y(u.b,68),p)),y(u.b,68),y(u.b,68),y(u.b,68).c.a+p.a,y(u.b,68).c.b+p.b,y(u.b,68),Zc(u.a,new E8e(e,n,u))}i(Svn,"Uad");function _9e(e,n){var o,u,p,g,w,k,A;if(g=n.e,g){for(o=Ife(g),u=y(e.g,679),w=0;w<e.i;++w)if(A=u[w],Khe(A)==o&&(p=(!A.d&&(A.d=new Es(dl,A,1)),A.d),k=y(o.Jh(Wfe(g,g.Cb,g.Db>>16)),16).bd(g),k<p.i))return _9e(e,y(je(p,k),87))}return n}i(_9e,"gZd");function G(e,n,o){var u=fQ,p,g=u[e],w=g instanceof Array?g[0]:null;g&&!w?x=g:(x=(p=n&&n.prototype,!p&&(p=fQ[n]),Qsn(p)),x.Qm=o,!n&&(x.Rm=te),u[e]=x);for(var k=3;k<arguments.length;++k)arguments[k].prototype=x;w&&(x.Pm=w)}i(G,"pdb");function Nn(e){for(var n;!y(oi(e.a),50).Ob();){if(e.d=Zfn(e),!e.d)return!1;if(e.a=y(e.d.Pb(),50),Ge(e.a,34)){if(n=y(e.a,34),e.a=n.a,!e.b&&(e.b=new vC),ov(e.b,e.d),n.b)for(;!e9(n.b);)ov(e.b,y(can(n.b),50));e.d=n.d}}return!0}i(Nn,"Wr");function D9e(e,n){var o,u,p,g;for(p=1,n.j=!0,g=null,u=new ye(OC(n));u.a<u.c.c.length;)o=y(de(u),217),e.c[o.c]||(e.c[o.c]=!0,g=ZX(o,n),o.f?p+=D9e(e,g):!g.j&&o.a==o.e.e-o.d.e&&(o.f=!0,ys(e.p,o),p+=D9e(e,g)));return p}i(D9e,"aHb");function Avn(e){var n,o,u;for(o=new ye(e.a.a.b);o.a<o.c.c.length;)n=y(de(o),82),u=(Ur(0),0),u>0&&(!(R1(e.a.c)&&n.n.d)&&!(mC(e.a.c)&&n.n.b)&&(n.g.d+=d.Math.max(0,u/2-.5)),!(R1(e.a.c)&&n.n.a)&&!(mC(e.a.c)&&n.n.c)&&(n.g.a-=u-1))}i(Avn,"sSb");function JFt(e,n,o){var u,p,g,w,k,A;g=y(Wt(n.e,0),17).c,u=g.i,p=u.k,A=y(Wt(o.g,0),17).d,w=A.i,k=w.k,p==(Yr(),bs)?dt(e,(Tt(),Cg),y(oe(u,Cg),12)):dt(e,(Tt(),Cg),g),k==bs?dt(e,(Tt(),np),y(oe(w,np),12)):dt(e,(Tt(),np),A)}i(JFt,"f6b");function QFt(e,n){var o,u,p,g,w,k;for(g=new ye(e.b);g.a<g.c.c.length;)for(p=y(de(g),25),k=new ye(p.a);k.a<k.c.c.length;)for(w=y(de(k),9),w.k==(Yr(),_c)&&p6(w,n),u=new nn(cn(Ra(w).a.Jc(),new B));Nn(u);)o=y(vn(u),17),fMt(o,n)}i(QFt,"I7b");function Rvn(e,n){var o,u,p;for(n.Tg("Layer constraint preprocessing",1),o=new Pt,p=new yo(e.a,0);p.b<p.d.gc();)u=(In(p.b<p.d.gc()),y(p.d.Xb(p.c=p.b++),9)),Cfn(u)&&(E1n(u),tn(o.c,u),Wh(p));o.c.length==0||dt(e,(Tt(),Ame),o),n.Ug()}i(Rvn,"b8b");function I9e(e){var n,o,u;this.c=e,u=y(oe(e,(Bt(),Uf)),86),n=He(Xe(oe(e,fZ))),o=He(Xe(oe(e,VGe))),u==(Ss(),Il)||u==Bl||u==g0?this.b=n*o:this.b=1/(n*o),this.j=He(Xe(oe(e,Y3))),this.e=He(Xe(oe(e,Mw))),this.f=e.b.c.length}i(I9e,"anc");function Lvn(e){var n,o;for(e.e=tt(pi,Pi,30,e.p.c.length,15,1),e.k=tt(pi,Pi,30,e.p.c.length,15,1),o=new ye(e.p);o.a<o.c.c.length;)n=y(de(o),9),e.e[n.p]=dg(new nn(cn(os(n).a.Jc(),new B))),e.k[n.p]=dg(new nn(cn(Ra(n).a.Jc(),new B)))}i(Lvn,"sEc");function _vn(e){var n,o,u,p,g,w;for(p=0,e.q=new Pt,n=new gs,w=new ye(e.p);w.a<w.c.c.length;){for(g=y(de(w),9),g.p=p,u=new nn(cn(Ra(g).a.Jc(),new B));Nn(u);)o=y(vn(u),17),ys(n,o.d.i);n.a.Ac(g)!=null,Nt(e.q,new Bk(n)),n.a.$b(),++p}}i(_vn,"vEc");function M9e(e,n){var o,u,p,g,w;return n&=63,o=e.h,u=(o&wG)!=0,u&&(o|=-1048576),n<22?(w=o>>n,g=e.m>>n|o<<22-n,p=e.l>>n|e.m<<22-n):n<44?(w=u?q1:0,g=o>>n-22,p=e.m>>n-22|o<<44-n):(w=u?q1:0,g=u?ef:0,p=o>>n-44),Mu(p&ef,g&ef,w&q1)}i(M9e,"tD");function ZFt(e,n){var o,u,p,g,w,k,A,D,M;if(e.a.f>0&&Ge(n,45)&&(e.a.Zj(),D=y(n,45),A=D.jd(),g=A==null?0:Aa(A),w=t8e(e.a,g),o=e.a.d[w],o)){for(u=y(o.g,374),M=o.i,k=0;k<M;++k)if(p=u[k],p.yi()==g&&p.Fb(D))return ZFt(e,D),!0}return!1}i(ZFt,"FNd");function Dvn(e){var n,o,u,p,g,w,k;if(n=e.ni(ep),n&&(k=di(bg((!n.b&&(n.b=new df((Dr(),Zo),mc,n)),n.b),"settingDelegates")),k!=null)){for(o=new Pt,p=y3(k,"\\w+"),g=0,w=p.length;g<w;++g)u=p[g],tn(o.c,u);return o}return Ir(),Ir(),Go}i(Dvn,"$he");function Ivn(e){var n,o,u,p;for(p=y(oa(e.a,(c3(),XQ)),16).Jc();p.Ob();)u=y(p.Pb(),107),o=(n=O5(u.k),n.Gc((zt(),sn))?n.Gc(bn)?n.Gc(Fn)?n.Gc(on)?null:TKt:CKt:kKt:xKt),c7(e,u,o[0],(jx(),gT),0),c7(e,u,o[1],Nv,1),c7(e,u,o[2],mT,1)}i(Ivn,"iic");function Mvn(e,n){var o,u;o=hTn(n),Zwn(e,n,o),eBt(e.a,y(oe(Zs(n.b),(Tt(),G6)),234)),ITn(e),b1n(e,n),u=tt(pi,Pi,30,n.b.j.c.length,15,1),hde(e,n,(zt(),sn),u,o),hde(e,n,bn,u,o),hde(e,n,Fn,u,o),hde(e,n,on,u,o),e.a=null,e.c=null,e.b=null}i(Mvn,"$kc");function N9e(e,n,o){switch(n){case 7:!e.e&&(e.e=new zr(Cs,e,7,4)),Kn(e.e),!e.e&&(e.e=new zr(Cs,e,7,4)),rs(e.e,y(o,18));return;case 8:!e.d&&(e.d=new zr(Cs,e,8,5)),Kn(e.d),!e.d&&(e.d=new zr(Cs,e,8,5)),rs(e.d,y(o,18));return}ADe(e,n,o)}i(N9e,"swd");function O9e(e,n){var o,u,p,g,w;if(Qe(n)===Qe(e))return!0;if(!Ge(n,16)||(w=y(n,16),e.gc()!=w.gc()))return!1;for(g=w.Jc(),u=e.Jc();u.Ob();)if(o=u.Pb(),p=g.Pb(),!(Qe(o)===Qe(p)||o!=null&&ta(o,p)))return!1;return!0}i(O9e,"It");function Nvn(e,n){var o,u,p,g;for(g=y(Rh(jl(jl(new Er(null,new Rr(n.b,16)),new vpt),new wpt),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),g.Ic(new xpt),o=0,p=g.Jc();p.Ob();)u=y(p.Pb(),12),u.p==-1&&F9e(e,u,o++)}i(Nvn,"X3b");function Ovn(e,n){var o,u,p,g,w;for(n.Tg("Port side processing",1),w=new ye(e.a);w.a<w.c.c.length;)p=y(de(w),9),wjt(p);for(u=new ye(e.b);u.a<u.c.c.length;)for(o=y(de(u),25),g=new ye(o.a);g.a<g.c.c.length;)p=y(de(g),9),wjt(p);n.Ug()}i(Ovn,"Tac");function P9e(e){switch(e.g){case 0:return new Rwt;case 1:return new Swt;case 2:return new Awt;case 3:return new OSt;case 4:return new _8t;default:throw xe(new rn("No implementation is available for the node placer "+(e.f!=null?e.f:""+e.g)))}}i(P9e,"zzc");function Pvn(e,n){var o,u,p,g,w,k;for(u=new lv,w=JY(new oc(e.g)),g=w.a.ec().Jc();g.Ob();){if(p=y(g.Pb(),9),!p){n.ah("There are no classes in a balanced layout.");break}k=e.j[p.p],o=y(Jg(u,k),16),o||(o=new Pt,uw(u,k,o)),o.Ec(p)}return u}i(Pvn,"NNc");function Bvn(e,n){var o,u,p,g,w;u=new ya,Ha(u,n,u.c.b,u.c);do for(o=(In(u.b!=0),y(dd(u,u.a.a),40)),e.b[o.g]=1,g=ei(o.d,0);g.b!=g.d.c;)p=y(Qn(g),65),w=p.c,e.b[w.g]==1?_i(e.a,p):e.b[w.g]==2?e.b[w.g]=1:Ha(u,w,u.c.b,u.c);while(u.b!=0)}i(Bvn,"rYc");function B9e(e,n){if(Ge(n,206))return $a(y(n,26));if(Ge(n,193))return qg(y(n,125));if(Ge(n,362))return V7e(y(n,157));if(Ge(n,271))return stn(e,y(n,85));throw xe(new rn(FR+r0(new oc(Se(Ee(Fs,1),Fr,1,5,[n])))))}i(B9e,"qBd");function Fvn(e,n,o){var u;u=null,n&&(u=n.d),SI(e,new J8(n.n.a-u.b+o.a,n.n.b-u.d+o.b)),SI(e,new J8(n.n.a-u.b+o.a,n.n.b+n.o.b+u.a+o.b)),SI(e,new J8(n.n.a+n.o.a+u.c+o.a,n.n.b-u.d+o.b)),SI(e,new J8(n.n.a+n.o.a+u.c+o.a,n.n.b+n.o.b+u.a+o.b))}i(Fvn,"EUb");function F9e(e,n,o){var u,p,g;for(n.p=o,g=Gm(pd(Se(Ee(kd,1),Fr,20,0,[new F8(n),new u5(n)])));Nn(g);)u=y(vn(g),12),u.p==-1&&F9e(e,u,o);if(n.i.k==(Yr(),bs))for(p=new ye(n.i.j);p.a<p.c.c.length;)u=y(de(p),12),u!=n&&u.p==-1&&F9e(e,u,o)}i(F9e,"W3b");function e$t(e){var n,o,u,p,g;if(p=y(Rh(W7e(Y7e(e)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),u=eE,p.gc()>=2)for(o=p.Jc(),n=Xe(o.Pb());o.Ob();)g=n,n=Xe(o.Pb()),u=d.Math.min(u,(Ur(n),n-(Ur(g),g)));return u}i(e$t,"AQc");function $vn(e,n){var o,u,p;for(p=new Pt,u=ei(n.a,0);u.b!=u.d.c;)o=y(Qn(u),65),o.b.g==e.g&&!Cr(o.b.c,FJ)&&Qe(oe(o.b,(uc(),um)))!==Qe(oe(o.c,um))&&!Kk(new Er(null,new Rr(p,16)),new Ckt(o))&&tn(p.c,o);return zs(p,new l1t),p}i($vn,"TSc");function Gvn(e,n){var o,u,p;if(Qe(n)===Qe(oi(e)))return!0;if(!Ge(n,16)||(u=y(n,16),p=e.gc(),p!=u.gc()))return!1;if(Ge(u,59)){for(o=0;o<p;o++)if(!D1(e.Xb(o),u.Xb(o)))return!1;return!0}else return n0n(e.Jc(),u.Jc())}i(Gvn,"Ru");function jvn(e,n,o,u,p,g){var w,k,A,D;for(k=!W8(Hi(e.Mc(),new B8(new Npt))).zd((z2(),L6)),w=e,g==(Ss(),Ed)&&(w=bf(w)),D=w.Jc();D.Ob();)A=y(D.Pb(),70),A.n.a=n.a,k?A.n.b=n.b+(u.b-A.o.b)/2:p?A.n.b=n.b:A.n.b=n.b+u.b-A.o.b,n.a+=A.o.a+o}i(jvn,"G6b");function t$t(e,n,o){var u,p,g,w,k,A,D;if(o)for(g=o.a.length,u=new H2(g),k=(u.b-u.a)*u.c<0?(Qb(),Qv):new tv(u);k.Ob();)w=y(k.Pb(),15),A=y7(o,w.a),A&&(D=hhn(N1(A,Ige),n),Oi(e.k,D,A),p=am in A.a,p&&E7(D,N1(A,am)),SK(A,D),d9e(A,D))}i(t$t,"JBd");function zvn(e,n,o){var u,p,g,w,k;if(k=o,!k&&(k=$8e(new g5,0)),k.Tg(JUt,1),ezt(e.c,n),w=q4n(e.a,n),w.gc()==1)Ojt(y(w.Xb(0),36),k);else for(g=1/w.gc(),p=w.Jc();p.Ob();){if(u=y(p.Pb(),36),o.Zg())return;Ojt(u,k.dh(g))}pQr(e.a,w,n),wxn(n),k.Ug()}i(zvn,"oQb");function r$t(e,n,o){var u,p,g,w,k;if(p=e.f,!p&&(p=y(e.a.a.ec().Jc().Pb(),60)),EI(p,n,o),e.a.a.gc()!=1)for(u=n*o,w=e.a.a.ec().Jc();w.Ob();)g=y(w.Pb(),60),g!=p&&(k=V5(g),k.f.d?(g.d.d+=u+a0,g.d.a-=u+a0):k.f.a&&(g.d.a-=u+a0))}i(r$t,"Icc");function Uvn(e,n,o,u){var p,g,w,k,A,D,M,F;p=o,M=n,g=M;do g=e.a[g.p],k=(F=e.g[g.p],He(e.p[F.p])+He(e.d[g.p])-g.d.d),A=phn(g,u),A&&(w=(D=e.g[A.p],He(e.p[D.p])+He(e.d[A.p])+A.o.b+A.d.a),p=d.Math.min(p,k-(w+bC(e.k,g,A))));while(M!=g);return p}i(Uvn,"XMc");function Vvn(e,n,o,u){var p,g,w,k,A,D,M,F;p=o,M=n,g=M;do g=e.a[g.p],w=(F=e.g[g.p],He(e.p[F.p])+He(e.d[g.p])+g.o.b+g.d.a),A=Efn(g,u),A&&(k=(D=e.g[A.p],He(e.p[D.p])+He(e.d[A.p])-A.d.d),p=d.Math.min(p,k-(w+bC(e.k,g,A))));while(M!=g);return p}i(Vvn,"YMc");function n$t(e,n){var o;if(n.Tg("Equal Whitespace Eliminator",1),gg(e,(Wm(),JZ)))Sdn(y(St(e,JZ),16),He(Xe(St(e,H6))),(o=He(Xe(St(e,pN))),He(Xe(St(e,(n0(),yN)))),o));else throw xe(new _y("The graph does not contain rows."));n.Ug()}i(n$t,"m6c");function St(e,n){var o,u;return u=(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),bg(e.o,n)),u??(o=n.Rg(),Ge(o,4)&&(o==null?(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),aK(e.o,n)):(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),U$(e.o,n,o))),o)}i(St,"cvd");function d3(){d3=U,Jp=new hC("H_LEFT",0),ty=new hC("H_CENTER",1),Qp=new hC("H_RIGHT",2),eg=new hC("V_TOP",3),i1=new hC("V_CENTER",4),ap=new hC("V_BOTTOM",5),Vf=new hC("INSIDE",6),Zp=new hC("OUTSIDE",7),ip=new hC("H_PRIORITY",8)}i(d3,"old");function Wvn(e,n){var o,u,p,g,w,k,A;if(!n.f)throw xe(new rn("The input edge is not a tree edge."));for(g=null,p=Ui,u=new ye(e.d);u.a<u.c.c.length;)o=y(de(u),217),k=o.d,A=o.e,Rfe(e,k,n)&&!Rfe(e,A,n)&&(w=A.e-k.e-o.a,w<p&&(p=w,g=o));return g}i(Wvn,"OGb");function Hvn(e){var n,o,u,p,g,w;if(!(e.f.e.c.length<=1)){n=0,p=HFt(e),o=qa;do{for(n>0&&(p=o),w=new ye(e.f.e);w.a<w.c.c.length;)g=y(de(w),155),!Kt(Xt(oe(g,(j$(),FBe))))&&(u=rkn(e,g),ra(hg(g.d),u));o=HFt(e)}while(!Ean(e,n++,p,o))}}i(Hvn,"WPb");function qvn(e,n){var o,u,p,g,w;for(g=e.g.a,w=e.g.b,u=new ye(e.d);u.a<u.c.c.length;)o=y(de(u),70),p=o.n,e.a==(jp(),YR)||e.i==(zt(),bn)?p.a=g:e.a==XR||e.i==(zt(),on)?p.a=g+e.j.a-o.o.a:p.a=g+(e.j.a-o.o.a)/2,p.b=w,ra(p,n),w+=o.o.b+e.e}i(qvn,"hhc");function i$t(e){var n,o,u,p;for(p=0,n=y(St(e,(Ri(),jnr)),15).a,u=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));u.e!=u.i.gc();)o=y(_n(u),26),!o.a&&(o.a=new xt(Ti,o,10,11)),o.a&&(!o.a&&(o.a=new xt(Ti,o,10,11)),o.a).i>0?p+=n:p+=1;return p}i(i$t,"dod");function Yvn(e,n){var o,u,p,g,w,k,A,D,M,F;D=e,A=X9(D,"individualSpacings"),A&&(u=gg(n,(Ri(),Q6)),w=!u,w&&(p=new toe,pa(n,Q6,p)),k=y(St(n,Q6),379),F=A,g=null,F&&(g=(M=jue(F,tt(Zt,Dt,2,0,6,1)),new Uoe(F,M))),g&&(o=new LSt(F,k),Io(g,o)))}i(Yvn,"lCd");function Xvn(e,n){var o,u,p,g,w,k,A,D,M,F,z;return A=null,F=e,M=null,(eHt in F.a||tHt in F.a||qJ in F.a)&&(D=null,z=NLe(n),w=X9(F,eHt),o=new o3t(z),WNt(o.a,w),k=X9(F,tHt),u=new m3t(z),HNt(u.a,k),g=Bx(F,qJ),p=new v3t(z),D=(YPt(p.a,g),g),M=D),A=M,A}i(Xvn,"pCd");function Kvn(e,n){var o,u,p;if(n===e)return!0;if(Ge(n,541)){if(p=y(n,834),e.a.d!=p.a.d||kC(e).gc()!=kC(p).gc())return!1;for(u=kC(p).Jc();u.Ob();)if(o=y(u.Pb(),416),XRt(e,o.a.jd())!=y(o.a.kd(),18).gc())return!1;return!0}return!1}i(Kvn,"gx");function Jvn(e,n){var o,u,p,g;for(g=new ye(n.a);g.a<g.c.c.length;)for(p=y(de(g),9),dt(p,(Tt(),hZ),(qr(),!1)),dt(p,j6,Et(-1)),dt(p,zM,Et(-1)),e.d.a.c.length=0,u=new nn(cn(Y0(p).a.Jc(),new B));Nn(u);)o=y(vn(u),17),dt(o,WKt,!1)}i(Jvn,"C$b");function Qvn(e,n){return e.c<n.c?-1:e.c>n.c?1:e.b<n.b?-1:e.b>n.b?1:e.a!=n.a?Aa(e.a)-Aa(n.a):e.d==(K9(),sN)&&n.d==aN?-1:e.d==aN&&n.d==sN?1:0}i(Qvn,"YJc");function Mfe(e){var n,o,u,p,g,w,k,A;for(p=qa,u=Ys,o=new ye(e.e.b);o.a<o.c.c.length;)for(n=y(de(o),25),w=new ye(n.a);w.a<w.c.c.length;)g=y(de(w),9),A=He(e.p[g.p]),k=A+He(e.b[e.g[g.p].p]),p=d.Math.min(p,A),u=d.Math.max(u,k);return u-p}i(Mfe,"_Mc");function a$t(e,n){var o,u,p,g,w;return g=n.a,g.c.i==n.b?w=g.d:w=g.c,g.c.i==n.b?u=g.c:u=g.d,p=Fpn(e.a,w,u),p>0&&p<eE?(o=Uvn(e.a,u.i,p,e.c),V9t(e.a,u.i,-o),o>0):p<0&&-p<eE?(o=Vvn(e.a,u.i,-p,e.c),V9t(e.a,u.i,o),o>0):!1}i(a$t,"jOc");function Zvn(e,n,o,u){var p,g,w,k,A,D,M,F;for(p=(n-e.d)/e.c.c.length,g=0,e.a+=o,e.d=n,F=new ye(e.c);F.a<F.c.c.length;)M=y(de(F),26),D=M.g,A=M.f,Xh(M,M.i+g*p),Kh(M,M.j+u*o),Gx(M,M.g+p),$x(M,e.a),++g,k=M.g,w=M.f,u9e(M,new Lt(k,w),new Lt(D,A))}i(Zvn,"T6c");function e2n(e){var n,o,u,p,g,w,k;if(e==null)return null;for(k=e.length,p=(k+1)/2|0,w=tt(xh,nE,30,p,15,1),k%2!=0&&(w[--p]=lIe((un(k-1,e.length),e.charCodeAt(k-1)))),o=0,u=0;o<p;++o)n=lIe(Do(e,u++)),g=lIe(Do(e,u++)),w[o]=(n<<4|g)<<24>>24;return w}i(e2n,"Rxd");function t2n(e){if(e.xe()){var n=e.c;n.ye()?e.o="["+n.n:n.xe()?e.o="["+n.ve():e.o="[L"+n.ve()+";",e.b=n.ue()+"[]",e.k=n.we()+"[]";return}var o=e.j,u=e.d;u=u.split("/"),e.o=Ohe(".",[o,Ohe("$",u)]),e.b=Ohe(".",[o,Ohe(".",u)]),e.k=u[u.length-1]}i(t2n,"Leb");function r2n(e,n){var o,u,p,g,w;for(w=null,g=new ye(e.e.a);g.a<g.c.c.length;)if(p=y(de(g),124),p.b.a.c.length==p.g.a.c.length){for(u=p.e,w=qyn(p),o=p.e-y(w.a,15).a+1;o<p.e+y(w.b,15).a;o++)n[o]<n[u]&&(u=o);n[u]<n[p.e]&&(--n[p.e],++n[u],p.e=u)}}i(r2n,"MGb");function $9e(e,n,o){var u,p,g,w,k,A,D,M;D=y(o,149),M=B9e(e,n),g=null,u=null,M&&(u=kK(e,M,n.i)),u!=null?g=u:(k=n.i,g=k),J2(D,"x",g),w=null,p=null,M&&(p=CK(e,M,n.j)),p!=null?w=p:(A=n.j,w=A),J2(D,"y",w),J2(D,_ge,n.g),J2(D,Lge,n.f)}i($9e,"gCd");function s$t(e){ode();var n,o,u,p;return u=U0(e,Ku(35)),n=u==-1?e:(ko(0,u,e.length),e.substr(0,u)),o=u==-1?null:(un(u+1,e.length+1),e.substr(u+1)),p=ocn(bWe,n),p?o!=null&&(p=qMt(p,(Ur(o),o))):(p=$En(n),vcn(bWe,n,p),o!=null&&(p=qMt(p,o))),p}i(s$t,"AQd");function G9e(e,n,o,u){var p,g,w,k,A,D;for(A=null,p=mIe(e,n),k=0,D=p.gc();k<D;++k)if(g=y(p.Xb(k),179),Cr(u,d7(Rl(e,g))))if(w=VF(Rl(e,g)),o==null){if(w==null)return g;!A&&(A=g)}else{if(Cr(o,w))return g;w==null&&!A&&(A=g)}return null}i(G9e,"cde");function j9e(e,n,o,u){var p,g,w,k,A,D;for(A=null,p=Hfe(e,n),k=0,D=p.gc();k<D;++k)if(g=y(p.Xb(k),179),Cr(u,d7(Rl(e,g))))if(w=VF(Rl(e,g)),o==null){if(w==null)return g;!A&&(A=g)}else{if(Cr(o,w))return g;w==null&&!A&&(A=g)}return null}i(j9e,"dde");function n2n(e,n,o){var u,p,g,w,k,A;if(w=new AH,k=Ou(e.e.Ah(),n),u=y(e.g,122),tl(),y(n,69).vk())for(g=0;g<e.i;++g)p=u[g],k.$l(p.Jk())&&Zn(w,p);else for(g=0;g<e.i;++g)p=u[g],k.$l(p.Jk())&&(A=p.kd(),Zn(w,o?DI(e,n,g,w.i,A):A));return cRe(w)}i(n2n,"afe");function o$t(e){var n,o,u,p,g,w,k;if(e&&(n=e.ni(ep),n&&(w=di(bg((!n.b&&(n.b=new df((Dr(),Zo),mc,n)),n.b),"conversionDelegates")),w!=null))){for(k=new Pt,u=y3(w,"\\w+"),p=0,g=u.length;p<g;++p)o=u[p],tn(k.c,o);return k}return Ir(),Ir(),Go}i(o$t,"Xhe");function l$t(e,n){var o,u,p,g,w,k,A,D;for(w=n==1?P0e:O0e,g=w.a.ec().Jc();g.Ob();)for(p=y(g.Pb(),86),A=y(oa(e.f.c,p),22).Jc();A.Ob();)switch(k=y(A.Pb(),49),u=y(k.b,82),D=y(k.a,194),o=D.c,p.g){case 2:case 1:u.g.d+=o;break;case 4:case 3:u.g.c+=o}}i(l$t,"ARb");function i2n(e,n){var o,u,p,g,w;for(o=new bI(QR),p=(l6(),Se(Ee(QR,1),At,231,0,[JR,OM,KR,P3,hE,uE])),g=0,w=p.length;g<w;++g)u=p[g],r8e(o,u,new Pt);return ts(bu(Hi(jl(new Er(null,new Rr(e.b,16)),new Opt),new Ppt),new fTt(n)),new dTt(o)),o}i(i2n,"Y6b");function c$t(e,n){var o,u,p;for(o=1;o<e.c.length;o++){for(p=(_r(o,e.c.length),y(e.c[o],9)),u=o;u>0&&fG(n,(_r(u-1,e.c.length),y(e.c[u-1],9)),p)>0;)Mf(e,u,(_r(u-1,e.c.length),y(e.c[u-1],9))),--u;_r(u,e.c.length),e.c[u]=p}n.b=new jn,n.g=new jn}i(c$t,"Acc");function u$t(e,n,o){var u,p,g;for(u=1;u<e.c.length;u++){for(g=(_r(u,e.c.length),y(e.c[u],9)),p=u;p>0&&n.Le((_r(p-1,e.c.length),y(e.c[p-1],9)),g)>0;)Mf(e,p,(_r(p-1,e.c.length),y(e.c[p-1],9))),--p;_r(p,e.c.length),e.c[p]=g}o.a=new jn,o.b=new jn}i(u$t,"fIc");function NK(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(g=n.Jc();g.Ob();)p=y(g.Pb(),26),M=p.i+p.g/2,z=p.j+p.f/2,A=e.f,w=A.i+A.g/2,k=A.j+A.f/2,D=M-w,F=z-k,u=d.Math.sqrt(D*D+F*F),D*=e.e/u,F*=e.e/u,o?(M-=D,z-=F):(M+=D,z+=F),Xh(p,M-p.g/2),Kh(p,z-p.f/2)}i(NK,"Y_c");function UC(e){var n,o,u;if(!e.c&&e.b!=null){for(n=e.b.length-4;n>=0;n-=2)for(o=0;o<=n;o+=2)(e.b[o]>e.b[o+2]||e.b[o]===e.b[o+2]&&e.b[o+1]>e.b[o+3])&&(u=e.b[o+2],e.b[o+2]=e.b[o],e.b[o]=u,u=e.b[o+3],e.b[o+3]=e.b[o+1],e.b[o+1]=u);e.c=!0}}i(UC,"Ire");function zp(e){var n,o;return o=new Lf(j2(e.Pm)),o.a+="@",Li(o,(n=Aa(e)>>>0,n.toString(16))),e.Sh()?(o.a+=" (eProxyURI: ",qc(o,e.Yh()),e.Hh()&&(o.a+=" eClass: ",qc(o,e.Hh())),o.a+=")"):e.Hh()&&(o.a+=" (eClass: ",qc(o,e.Hh()),o.a+=")"),o.a}i(zp,"ytd");function MI(e){var n,o,u,p;if(e.e)throw xe(new El((_1(k0e),Zde+k0e.k+epe)));for(e.d==(Ss(),g0)&&tJ(e,Il),o=new ye(e.a.a);o.a<o.c.c.length;)n=y(de(o),321),n.g=n.i;for(p=new ye(e.a.b);p.a<p.c.c.length;)u=y(de(p),60),u.i=Ys;return e.b.af(e),e}i(MI,"bFb");function a2n(e,n){var o,u,p,g,w,k,A,D,M;for(A=Pm(e.c-e.b&e.a.length-1),D=null,M=null,g=new W9(e);g.a!=g.b;)p=y(HX(g),9),o=(k=y(oe(p,(Tt(),Cg)),12),k?k.i:null),u=(w=y(oe(p,np),12),w?w.i:null),(D!=o||M!=u)&&(OFt(A,n),D=o,M=u),tn(A.c,p);OFt(A,n)}i(a2n,"B7b");function h$t(e){switch(e.g){case 0:return new VH((cw(),kj));case 1:return new VH((cw(),NZ));case 2:return new wwt;case 3:return new kwt;default:throw xe(new rn("No implementation is available for the crossing minimizer "+(e.f!=null?e.f:""+e.g)))}}i(h$t,"Ync");function s2n(e,n){var o,u,p,g,w;if(n<2*e.b)throw xe(new rn("The knot vector must have at least two time the dimension elements."));for(e.f=1,p=0;p<e.b;p++)Nt(e.e,0);for(w=n+1-2*e.b,o=w,g=1;g<w;g++)Nt(e.e,g/o);if(e.d)for(u=0;u<e.b;u++)Nt(e.e,1)}i(s2n,"aRc");function f$t(e,n){var o,u,p,g,w,k,A,D,M;if(D=n,M=y(SX(Mce(e.o),D),26),!M)throw p=N1(D,am),k="Unable to find elk node for json object '"+p,A=k+"' Panic!",xe(new j0(A));g=Bx(D,"edges"),o=new xSt(e,M),vFt(o.a,o.b,g),w=Bx(D,Mge),u=new Zkt(e),LPt(u.a,w)}i(f$t,"kCd");function d$t(e,n,o,u){var p,g,w,k,A;if(u!=null){if(p=e.d[n],p){for(g=p.g,A=p.i,k=0;k<A;++k)if(w=y(g[k],136),w.yi()==o&&ta(u,w.jd()))return k}}else if(p=e.d[n],p){for(g=p.g,A=p.i,k=0;k<A;++k)if(w=y(g[k],136),Qe(w.jd())===Qe(u))return k}return-1}i(d$t,"mMd");function tR(e,n){var o,u,p;return o=n==null?Yl(Sl(e.f,null)):h9(e.i,n),Ge(o,241)?(p=y(o,241),p.wi()==null,p):Ge(o,493)?(u=y(o,2002),p=u.a,p&&(p.yb==null||(n==null?Ju(e.f,null,p):Ux(e.i,n,p))),p):null}i(tR,"$3d");function o2n(e){aIe();var n,o,u,p,g,w,k;if(e==null||(p=e.length,p%2!=0))return null;for(n=dX(e),g=p/2|0,o=tt(xh,nE,30,g,15,1),u=0;u<g;u++){if(w=UN[n[u*2]],w==-1||(k=UN[n[u*2+1]],k==-1))return null;o[u]=(w<<4|k)<<24>>24}return o}i(o2n,"Uoe");function l2n(e,n,o){var u,p,g;if(p=y(yl(e.i,n),319),!p)if(p=new P9t(e.d,n,o),B5(e.i,n,p),U_e(n))ben(e.a,n.c,n.b,p);else switch(g=nbn(n),u=y(yl(e.p,g),253),g.g){case 1:case 3:p.j=!0,Ioe(u,n.b,p);break;case 4:case 2:p.k=!0,Ioe(u,n.c,p)}return p}i(l2n,"HKb");function c2n(e,n,o,u){var p,g,w,k,A,D;if(k=new AH,A=Ou(e.e.Ah(),n),p=y(e.g,122),tl(),y(n,69).vk())for(w=0;w<e.i;++w)g=p[w],A.$l(g.Jk())&&Zn(k,g);else for(w=0;w<e.i;++w)g=p[w],A.$l(g.Jk())&&(D=g.kd(),Zn(k,u?DI(e,n,w,k.i,D):D));return B_e(k,o)}i(c2n,"cfe");function p$t(e,n){var o,u,p,g,w,k,A,D;if(p=e.b[n.p],p>=0)return p;for(g=1,k=new ye(n.j);k.a<k.c.c.length;)for(w=y(de(k),12),u=new ye(w.g);u.a<u.c.c.length;)o=y(de(u),17),D=o.d.i,n!=D&&(A=p$t(e,D),g=d.Math.max(g,A+1));return Spn(e,n,g),g}i(p$t,"IDc");function g$t(e,n){var o,u,p,g,w,k,A,D;if(p=e.b[n.p],p>=0)return p;for(g=1,k=new ye(n.j);k.a<k.c.c.length;)for(w=y(de(k),12),u=new ye(w.e);u.a<u.c.c.length;)o=y(de(u),17),D=o.c.i,n!=D&&(A=g$t(e,D),g=d.Math.max(g,A+1));return a0n(e,n,g),g}i(g$t,"QDc");function u2n(e){var n,o,u,p;for(p=e.length,n=null,u=0;u<p;u++)o=(un(u,e.length),e.charCodeAt(u)),U0(".*+?{[()|\\^$",Ku(o))>=0?(n||(n=new r9,u>0&&ml(n,(ko(0,u,e.length),e.substr(0,u)))),n.a+="\\",u7(n,o&As)):n&&u7(n,o&As);return n?n.a:e}i(u2n,"Gqe");function h2n(e){var n,o,u;for(o=new ye(e.a.a.b);o.a<o.c.c.length;)n=y(de(o),82),u=(Ur(0),0),u>0&&(!(R1(e.a.c)&&n.n.d)&&!(mC(e.a.c)&&n.n.b)&&(n.g.d-=d.Math.max(0,u/2-.5)),!(R1(e.a.c)&&n.n.a)&&!(mC(e.a.c)&&n.n.c)&&(n.g.a+=d.Math.max(0,u-1)))}i(h2n,"qSb");function m$t(e,n,o){var u,p;if((e.c-e.b&e.a.length-1)==2)n==(zt(),sn)||n==bn?(bX(y(lI(e),16),(Bf(),n1)),bX(y(lI(e),16),Vv)):(bX(y(lI(e),16),(Bf(),Vv)),bX(y(lI(e),16),n1));else for(p=new W9(e);p.a!=p.b;)u=y(HX(p),16),bX(u,o)}i(m$t,"M7b");function f2n(e,n,o){var u,p,g,w,k,A,D,M,F;for(M=-1,F=0,k=n,A=0,D=k.length;A<D;++A){for(w=k[A],u=new B7t(e,M==-1?n[0]:n[M],o,(fI(),_Z)),p=0;p<w.length;p++)for(g=p+1;g<w.length;g++)ea(w[p],(Tt(),Ea))&&ea(w[g],Ea)&&fG(u,w[p],w[g])>0&&++F;++M}return F}i(f2n,"HGc");function d2n(e,n){var o,u,p,g,w,k,A;for(p=i7(new L5e(e)),k=new yo(p,p.c.length),g=i7(new L5e(n)),A=new yo(g,g.c.length),w=null;k.b>0&&A.b>0&&(o=(In(k.b>0),y(k.a.Xb(k.c=--k.b),26)),u=(In(A.b>0),y(A.a.Xb(A.c=--A.b),26)),o==u);)w=o;return w}i(d2n,"$Ed");function p2n(e,n){var o,u,p,g;for(n.Tg("Self-Loop pre-processing",1),u=new ye(e.a);u.a<u.c.c.length;)o=y(de(u),9),wpn(o)&&(p=(g=new TOt(o),dt(o,(Tt(),wT),g),PTn(g),g),ts(bu(jl(new Er(null,new Rr(p.d,16)),new Egt),new Sgt),new Agt),Dwn(p));n.Ug()}i(p2n,"Mbc");function y$t(e,n,o){var u,p,g,w;oLt(e,n)>oLt(e,o)?(u=Zl(o,(zt(),bn)),e.d=u.dc()?0:cce(y(u.Xb(0),12)),w=Zl(n,on),e.b=w.dc()?0:cce(y(w.Xb(0),12))):(p=Zl(o,(zt(),on)),e.d=p.dc()?0:cce(y(p.Xb(0),12)),g=Zl(n,bn),e.b=g.dc()?0:cce(y(g.Xb(0),12)))}i(y$t,"Ogc");function g2n(e){var n,o,u,p,g,w,k,A;n=!0,p=null,g=null;e:for(A=new ye(e.a);A.a<A.c.c.length;)for(k=y(de(A),9),u=new nn(cn(os(k).a.Jc(),new B));Nn(u);){if(o=y(vn(u),17),p&&p!=k){n=!1;break e}if(p=k,w=o.c.i,g&&g!=w){n=!1;break e}g=w}return n}i(g2n,"_mc");function m2n(e,n,o){var u,p,g,w,k,A,D,M;for(M=(u=y(n.e&&n.e(),10),new ud(u,y(Np(u,u.length),10),0)),A=y3(o,"[\\[\\]\\s,]+"),g=A,w=0,k=g.length;w<k;++w)if(p=g[w],h3(p).length!=0){if(D=wFt(e,p),D==null)return null;Gp(M,y(D,24))}return M}i(m2n,"ved");function b$t(e,n){var o,u,p,g;for(o=e.o.a,g=y(y(oa(e.r,n),22),83).Jc();g.Ob();)p=y(g.Pb(),115),p.e.a=o*He(Xe(p.b.mf(TQ))),p.e.b=(u=p.b,u.nf((Ri(),tf))?u.$f()==(zt(),sn)?-u.Kf().b-He(Xe(u.mf(tf))):He(Xe(u.mf(tf))):u.$f()==(zt(),sn)?-u.Kf().b:0)}i(b$t,"_Kb");function y2n(e,n,o){var u,p,g,w,k,A;for(g=-1,k=-1,w=0;w<n.c.length&&(p=(_r(w,n.c.length),y(n.c[w],340)),!(p.c>e.c));w++)p.a>=e.s&&(g<0&&(g=w),k=w);return A=(e.s+e.c)/2,g>=0&&(u=eTn(e,n,g,k),A=aZr((_r(u,n.c.length),y(n.c[u],340))),uvn(n,u,o)),A}i(y2n,"XPc");function ni(e,n,o){var u,p,g,w,k,A,D;for(w=(g=new YSe,g),pLe(w,(Ur(n),n)),D=(!w.b&&(w.b=new df((Dr(),Zo),mc,w)),w.b),A=1;A<o.length;A+=2)U$(D,o[A-1],o[A]);for(u=(!e.Ab&&(e.Ab=new xt(Ni,e,0,3)),e.Ab),k=0;k<0;++k)p=Ran(y(je(u,u.i-1),588)),u=p;Zn(u,w)}i(ni,"vyd");function z9e(e,n,o,u,p,g){var w,k,A;if(!p[n.a]){for(p[n.a]=!0,w=u,!w&&(w=new rX),Nt(w.e,n),A=g[n.a].Jc();A.Ob();)k=y(A.Pb(),291),!(k.d==o||k.c==o)&&(k.c!=n&&z9e(e,k.c,n,w,p,g),k.d!=n&&z9e(e,k.d,n,w,p,g),Nt(w.c,k),Is(w.d,k.b));return w}return null}i(z9e,"SMb");function b2n(e){var n,o,u,p,g,w,k;for(n=0,p=new ye(e.e);p.a<p.c.c.length;)u=y(de(p),17),o=Kk(new Er(null,new Rr(u.b,16)),new Ct),o&&++n;for(w=new ye(e.g);w.a<w.c.c.length;)g=y(de(w),17),k=Kk(new Er(null,new Rr(g.b,16)),new xr),k&&++n;return n>=2}i(b2n,"h1b");function v2n(e,n,o,u,p){var g,w,k,A,D,M;for(g=e.c.d.j,w=y(Bc(o,0),8),M=1;M<o.b;M++)D=y(Bc(o,M),8),Ha(u,w,u.c.b,u.c),k=L1(ra(new Vo(w),D),.5),A=L1(new Qce(XLe(g)),p),ra(k,A),Ha(u,k,u.c.b,u.c),w=D,g=n==0?XX(g):b_e(g);_i(u,(In(o.b!=0),y(o.c.b.c,8)))}i(v2n,"plc");function w2n(e){d3();var n,o,u;return o=ka(Vf,Se(Ee(fl,1),At,96,0,[Zp])),!(x$(jY(o,e))>1||(n=ka(Jp,Se(Ee(fl,1),At,96,0,[ty,Qp])),x$(jY(n,e))>1)||(u=ka(eg,Se(Ee(fl,1),At,96,0,[i1,ap])),x$(jY(u,e))>1))}i(w2n,"qld");function v$t(e){var n,o,u,p,g,w,k;for(n=0,u=new ye(e.a);u.a<u.c.c.length;)for(o=y(de(u),9),g=new nn(cn(Ra(o).a.Jc(),new B));Nn(g);)p=y(vn(g),17),e==p.d.i.c&&p.c.j==(zt(),on)&&(w=Xg(p.c).b,k=Xg(p.d).b,n=d.Math.max(n,d.Math.abs(k-w)));return n}i(v$t,"QOc");function U9e(e,n,o){var u,p,g;for(g=new ye(e.t);g.a<g.c.c.length;)u=y(de(g),273),u.b.s<0&&u.c>0&&(u.b.n-=u.c,u.b.n<=0&&u.b.u>0&&_i(n,u.b));for(p=new ye(e.i);p.a<p.c.c.length;)u=y(de(p),273),u.a.s<0&&u.c>0&&(u.a.u-=u.c,u.a.u<=0&&u.a.n>0&&_i(o,u.a))}i(U9e,"JRc");function OK(e){var n,o,u,p,g;if(e.g==null&&(e.d=e._i(e.f),Zn(e,e.d),e.c))return g=e.f,g;if(n=y(e.g[e.i-1],50),p=n.Pb(),e.e=n,o=e._i(p),o.Ob())e.d=o,Zn(e,o);else for(e.d=null;!n.Ob()&&(as(e.g,--e.i,null),e.i!=0);)u=y(e.g[e.i-1],50),n=u;return p}i(OK,"KGd");function x2n(e,n){var o,u,p,g,w,k;if(u=n,p=u.Jk(),W1(e.e,p)){if(p.Qi()&&XY(e,p,u.kd()))return!1}else for(k=Ou(e.e.Ah(),p),o=y(e.g,122),g=0;g<e.i;++g)if(w=o[g],k.$l(w.Jk()))return ta(w,u)?!1:(y(FC(e,g,n),75),!0);return Zn(e,n)}i(x2n,"cee");function Yr(){Yr=U,Ya=new T5("NORMAL",0),bs=new T5("LONG_EDGE",1),ks=new T5("EXTERNAL_PORT",2),iu=new T5("NORTH_SOUTH_PORT",3),_c=new T5("LABEL",4),u0=new T5("BREAKING_POINT",5),tj=new T5("PLACEHOLDER",6),MM=new T5("NONSHIFTING_PLACEHOLDER",7)}i(Yr,"$Yb");function T2n(e,n,o,u){var p,g,w,k;for(p=new e0(e),C1(p,(Yr(),_c)),dt(p,(Tt(),aa),n),dt(p,jM,u),dt(p,(Bt(),Qa),(uo(),zc)),dt(p,Cg,n.c),dt(p,np,n.d),Bfe(n,p),k=d.Math.floor(o/2),w=new ye(p.j);w.a<w.c.c.length;)g=y(de(w),12),g.n.b=k;return p}i(T2n,"w6b");function Z$(){Z$=U,lme=new cC(GMe,0),HFe=new cC(mVt,1),ume=new cC(fpe,2),hme=new cC(ope,3),cme=new cC("GREEDY_MODEL_ORDER",4),fme=new cC("SCC_CONNECTIVITY",5),sj=new cC("SCC_NODE_TYPE",6),ome=new cC("DFS_NODE_ORDER",7),sme=new cC("BFS_NODE_ORDER",8)}i(Z$,"woc");function w$t(e,n,o){var u,p,g,w,k;for(o.Tg("ELK Force",1),Kt(Xt(St(n,(Vp(),_Be))))||YF((u=new WD((U2(),new qb(n))),u)),k=EMt(n),smn(k),Wfn(e,y(oe(k,LBe),424)),w=gjt(e.a,k),g=w.Jc();g.Ob();)p=y(g.Pb(),235),ukn(e.b,p,o.dh(1/w.gc()));k=Azt(w),Pzt(k),o.Ug()}i(w$t,"hNb");function V9e(e,n,o){switch(o.g){case 1:return new Lt(n.a,d.Math.min(e.d.b,n.b));case 2:return new Lt(d.Math.max(e.c.a,n.a),n.b);case 3:return new Lt(n.a,d.Math.max(e.c.b,n.b));case 4:return new Lt(d.Math.min(n.a,e.d.a),n.b)}return new Lt(n.a,n.b)}i(V9e,"JUb");function k2n(e,n){var o,u,p,g,w;if(n.Tg("Breaking Point Processor",1),sCn(e),Kt(Xt(oe(e,(Bt(),XGe))))){for(p=new ye(e.b);p.a<p.c.c.length;)for(u=y(de(p),25),o=0,w=new ye(u.a);w.a<w.c.c.length;)g=y(de(w),9),g.p=o++;Qkn(e),F$t(e,!0),F$t(e,!1)}n.Ug()}i(k2n,"Dmc");function Nfe(e){var n,o,u;for(n=Pm(1+(!e.c&&(e.c=new xt(rf,e,9,9)),e.c).i),Nt(n,(!e.d&&(e.d=new zr(Cs,e,8,5)),e.d)),u=new Sn((!e.c&&(e.c=new xt(rf,e,9,9)),e.c));u.e!=u.i.gc();)o=y(_n(u),125),Nt(n,(!o.d&&(o.d=new zr(Cs,o,8,5)),o.d));return oi(n),new S9(n)}i(Nfe,"REd");function xv(e){var n,o,u;for(n=Pm(1+(!e.c&&(e.c=new xt(rf,e,9,9)),e.c).i),Nt(n,(!e.e&&(e.e=new zr(Cs,e,7,4)),e.e)),u=new Sn((!e.c&&(e.c=new xt(rf,e,9,9)),e.c));u.e!=u.i.gc();)o=y(_n(u),125),Nt(n,(!o.e&&(o.e=new zr(Cs,o,7,4)),o.e));return oi(n),new S9(n)}i(xv,"SEd");function C2n(e){var n,o,u,p;if(e==null)return null;if(u=ru(e,!0),p=YG.length,Cr(u.substr(u.length-p,p),YG)){if(o=u.length,o==4){if(n=(un(0,u.length),u.charCodeAt(0)),n==43)return FWe;if(n==45)return yar}else if(o==3)return FWe}return u3(u)}i(C2n,"wle");function E2n(e,n,o,u){var p,g,w,k,A,D,M,F,z;for(F=u?(zt(),on):(zt(),bn),p=!1,A=n[o],D=0,M=A.length;D<M;++D)k=A[D],!I5(y(oe(k,(Bt(),Qa)),102))&&(w=k.e,z=!Zl(k,F).dc()&&!!w,z&&(g=NDe(w),e.b=new PDe(g,u?0:g.length-1)),p=p|fxn(e,k,F,z));return p}i(E2n,"eGc");function x$t(e,n,o,u){var p,g,w;if(w=CDe(n,o),tn(u.c,n),e.j[w.p]==-1||e.j[w.p]==2||e.a[n.p])return u;for(e.j[w.p]=-1,g=new nn(cn(Y0(w).a.Jc(),new B));Nn(g);)if(p=y(vn(g),17),!(!(!Mo(p)&&!(!Mo(p)&&p.c.i.c==p.d.i.c))||p==n))return x$t(e,p,w,u);return u}i(x$t,"RKc");function S2n(e){var n,o,u,p;for(n=0,o=0,p=new ye(e.j);p.a<p.c.c.length;)if(u=y(de(p),12),n=mi(Ho(n,X_t(Hi(new Er(null,new Rr(u.e,16)),new Lmt)))),o=mi(Ho(o,X_t(Hi(new Er(null,new Rr(u.g,16)),new _mt)))),n>1||o>1)return 2;return n+o==1?2:0}i(S2n,"jLc");function Qh(e,n){var o,u,p,g,w,k;return g=e.a*Xde+e.b*1502,k=e.b*Xde+11,o=d.Math.floor(k*CG),g+=o,k-=o*yMe,g%=yMe,e.a=g,e.b=k,n<=24?d.Math.floor(e.a*yBe[n]):(p=e.a*(1<<n-24),w=d.Math.floor(e.b*bBe[n]),u=p+w,u>=2147483648&&(u-=4294967296),u)}i(Qh,"Rvb");function T$t(e,n,o){var u,p,g,w,k,A,D;for(g=new Pt,D=new ya,w=new ya,jkn(e,D,w,n),T4n(e,D,w,n,o),A=new ye(e);A.a<A.c.c.length;)for(k=y(de(A),116),p=new ye(k.k);p.a<p.c.c.length;)u=y(de(p),133),(!n||u.c==(pg(),Gv))&&k.g>u.b.g&&tn(g.c,u);return g}i(T$t,"dPc");function A2n(e,n,o){var u,p,g,w,k,A;for(k=e.c,w=(o.q?o.q:(Ir(),Ir(),Qm)).vc().Jc();w.Ob();)g=y(w.Pb(),45),u=!W8(Hi(new Er(null,new Rr(k,16)),new B8(new fSt(n,g)))).zd((z2(),L6)),u&&(A=g.kd(),Ge(A,4)&&(p=W_e(A),p!=null&&(A=p)),n.of(y(g.jd(),147),A))}i(A2n,"ebd");function R2n(e,n){var o,u,p,g;for(n.Tg("Resize child graph to fit parent.",1),u=new ye(e.b);u.a<u.c.c.length;)o=y(de(u),25),Is(e.a,o.a),o.a.c.length=0;for(g=new ye(e.a);g.a<g.c.c.length;)p=y(de(g),9),Us(p,null);e.b.c.length=0,Ywn(e),e.e&&zTn(e.e,e),n.Ug()}i(R2n,"I2b");function L2n(e,n){var o,u,p,g,w;for(n.Tg("Edge joining",1),o=Kt(Xt(oe(e,(Bt(),e1e)))),p=new ye(e.b);p.a<p.c.c.length;)for(u=y(de(p),25),w=new yo(u.a,0);w.b<w.d.gc();)g=(In(w.b<w.d.gc()),y(w.d.Xb(w.c=w.b++),9)),g.k==(Yr(),bs)&&(ude(g,o),Wh(w));n.Ug()}i(L2n,"t8b");function _2n(e,n,o){var u,p;if(UF(e.b),fg(e.b,(I$(),ZZ),(o9(),Mj)),fg(e.b,eee,n.g),fg(e.b,tee,n.a),e.a=cG(e.b,n),o.Tg("Compaction by shrinking a tree",e.a.c.length),n.i.c.length>1)for(p=new ye(e.a);p.a<p.c.c.length;)u=y(de(p),43),u.If(n,o.dh(1));o.Ug()}i(_2n,"i8c");function W9e(e,n,o){var u,p,g;if(g=qC((yh(),Ro),e.Ah(),n),g){if(tl(),!y(g,69).vk()&&(g=U5(Rl(Ro,g)),!g))throw xe(new rn(Lv+n.ve()+dM));p=(u=e.Fh(g),y(u>=0?e.Ih(u,!0,!0):Jx(e,g,!0),163)),y(p,219).Vl(n,o)}else throw xe(new rn(Lv+n.ve()+dM))}i(W9e,"otd");function D2n(e,n,o){var u,p,g,w,k,A;if(A=KAe(e,y(Jr(e.e,n),26)),k=null,A)switch(A.g){case 3:u=yAe(e,Vk(n)),k=(Ur(o),o+(Ur(u),u));break;case 2:p=yAe(e,Vk(n)),w=(Ur(o),o+(Ur(p),p)),g=yAe(e,y(Jr(e.e,n),26)),k=w-(Ur(g),g);break;default:k=o}else k=o;return k}i(D2n,"ZAd");function I2n(e,n,o){var u,p,g,w,k,A;if(A=KAe(e,y(Jr(e.e,n),26)),k=null,A)switch(A.g){case 3:u=bAe(e,Vk(n)),k=(Ur(o),o+(Ur(u),u));break;case 2:p=bAe(e,Vk(n)),w=(Ur(o),o+(Ur(p),p)),g=bAe(e,y(Jr(e.e,n),26)),k=w-(Ur(g),g);break;default:k=o}else k=o;return k}i(I2n,"_Ad");function PK(e,n){var o,u,p,g,w;if(n){for(g=Ge(e.Cb,88)||Ge(e.Cb,103),w=!g&&Ge(e.Cb,335),u=new Sn((!n.a&&(n.a=new O9(n,dl,n)),n.a));u.e!=u.i.gc();)if(o=y(_n(u),87),p=YK(o),g?Ge(p,88):w?Ge(p,159):p)return p;return g?(Dr(),up):(Dr(),b0)}else return null}i(PK,"x0d");function M2n(e,n){var o,u,p,g,w;for(o=new Pt,p=jl(new Er(null,new Rr(e,16)),new Ymt),g=jl(new Er(null,new Rr(e,16)),new Xmt),w=Tun(Ucn(Uk(V2n(Se(Ee(lSn,1),Fr,833,0,[p,g])),new Kmt))),u=1;u<w.length;u++)w[u]-w[u-1]>=2*n&&Nt(o,new ice(w[u-1]+n,w[u]-n));return o}i(M2n,"$Pc");function k$t(e,n,o){var u,p,g,w,k,A,D,M;if(o)for(g=o.a.length,u=new H2(g),k=(u.b-u.a)*u.c<0?(Qb(),Qv):new tv(u);k.Ob();)w=y(k.Pb(),15),p=y7(o,w.a),p&&(T=null,A=Qln(e,(D=(Kb(),M=new V5e,M),n&&H9e(D,n),D),p),E7(A,N1(p,am)),SK(p,A),d9e(p,A),she(e,p,A))}i(k$t,"LBd");function BK(e){var n,o,u,p,g,w;if(!e.j){if(w=new jbt,n=$N,g=n.a.yc(e,n),g==null){for(u=new Sn(Ol(e));u.e!=u.i.gc();)o=y(_n(u),29),p=BK(o),rs(w,p),Zn(w,o);n.a.Ac(e)!=null}n3(w),e.j=new pC((y(je(wt((rv(),Xr).o),11),19),w.i),w.g),Hh(e).b&=-33}return e.j}i(BK,"FWd");function N2n(e){var n,o,u,p;if(e==null)return null;if(u=ru(e,!0),p=YG.length,Cr(u.substr(u.length-p,p),YG)){if(o=u.length,o==4){if(n=(un(0,u.length),u.charCodeAt(0)),n==43)return $We;if(n==45)return bar}else if(o==3)return $We}return new P5e(u)}i(N2n,"yle");function O2n(e){var n,o,u;return o=e.l,(o&o-1)!=0||(u=e.m,(u&u-1)!=0)||(n=e.h,(n&n-1)!=0)||n==0&&u==0&&o==0?-1:n==0&&u==0&&o!=0?oLe(o):n==0&&u!=0&&o==0?oLe(u)+22:n!=0&&u==0&&o==0?oLe(n)+44:-1}i(O2n,"hD");function VC(e,n){var o,u,p,g,w;for(p=n.a&e.f,g=null,u=e.b[p];;u=u.b){if(u==n){g?g.b=n.b:e.b[p]=n.b;break}g=u}for(w=n.f&e.f,g=null,o=e.c[w];;o=o.d){if(o==n){g?g.d=n.d:e.c[w]=n.d;break}g=o}n.e?n.e.c=n.c:e.a=n.c,n.c?n.c.e=n.e:e.e=n.e,--e.i,++e.g}i(VC,"so");function P2n(e,n){var o;n.d?n.d.b=n.b:e.a=n.b,n.b?n.b.d=n.d:e.e=n.d,!n.e&&!n.c?(o=y(qd(y(H5(e.b,n.a),262)),262),o.a=0,++e.c):(o=y(qd(y(Jr(e.b,n.a),262)),262),--o.a,n.e?n.e.c=n.c:o.b=y(qd(n.c),498),n.c?n.c.e=n.e:o.c=y(qd(n.e),498)),--e.d}i(P2n,"ut");function Ofe(e,n){var o,u,p,g;for(g=new yo(e,0),o=(In(g.b<g.d.gc()),y(g.d.Xb(g.c=g.b++),146));g.b<g.d.gc();)u=(In(g.b<g.d.gc()),y(g.d.Xb(g.c=g.b++),146)),p=new B8e(u.c,o.d,n),In(g.b>0),g.a.Xb(g.c=--g.b),Ok(g,p),In(g.b<g.d.gc()),g.d.Xb(g.c=g.b++),p.a=!1,o=u}i(Ofe,"jTb");function C$t(e){var n,o,u,p,g,w;for(p=y(oe(e,(Tt(),sZ)),12),w=new ye(e.j);w.a<w.c.c.length;){for(g=y(de(w),12),u=new ye(g.g);u.a<u.c.c.length;)return n=y(de(u),17),mo(n,p),g;for(o=new ye(g.e);o.a<o.c.c.length;)return n=y(de(o),17),Bo(n,p),g}return null}i(C$t,"__b");function E$t(e,n,o){var u,p,g,w,k,A;for(A=y(Ik(e.a,n),15).a,o?ODe(e.a,Et(A+1),n):ODe(e.a,Et(A-1),n),w=new Om,p=new nn(cn((o?Ra(n):os(n)).a.Jc(),new B));Nn(p);)u=y(vn(p),17),o?g=u.d.i:g=u.c.i,Qe(Ik(e.a,g))===Qe(Ik(e.a,n))&&(k=w.a.yc(g,w),k==null);return w}i(E$t,"Q8b");function B2n(e,n,o){var u,p;u=vc(o.q.getTime()),eu(u,0)<0?(p=Qy-mi(Ihe(zy(u),Qy)),p==Qy&&(p=0)):p=mi(Ihe(u,Qy)),n==1?(p=d.Math.min((p+50)/100|0,9),nv(e,48+p&As)):n==2?(p=d.Math.min((p+5)/10|0,99),Um(e,p,2)):(Um(e,p,3),n>3&&Um(e,0,n-3))}i(B2n,"qA");function F2n(e){var n,o,u,p;return Qe(oe(e,(Bt(),G3)))===Qe((z1(),hb))?!e.e&&Qe(oe(e,gj))!==Qe((L7(),oj)):(u=y(oe(e,jme),302),p=Kt(Xt(oe(e,zme)))||Qe(oe(e,XM))===Qe((vI(),aj)),n=y(oe(e,hGe),15).a,o=e.a.c.length,!p&&u!=(L7(),oj)&&(n==0||n>o))}i(F2n,"IQb");function $2n(e,n){var o,u,p,g,w,k,A;for(p=e.Jc();p.Ob();)for(u=y(p.Pb(),9),k=new Fc,Kl(k,u),Bs(k,(zt(),bn)),dt(k,(Tt(),uZ),(qr(),!0)),w=n.Jc();w.Ob();)g=y(w.Pb(),9),A=new Fc,Kl(A,g),Bs(A,on),dt(A,uZ,!0),o=new Nx,dt(o,uZ,!0),Bo(o,k),mo(o,A)}i($2n,"J9b");function G2n(e){var n,o;for(o=0;o<e.c.length&&!(n8t((_r(o,e.c.length),y(e.c[o],113)))>0);o++);if(o>0&&o<e.c.length-1)return o;for(n=0;n<e.c.length&&!(n8t((_r(n,e.c.length),y(e.c[n],113)))>0);n++);return n>0&&o<e.c.length-1?n:e.c.length/2|0}i(G2n,"bic");function S$t(e,n){var o,u,p,g,w,k,A;for(p=0,w=new ye(n.a);w.a<w.c.c.length;)for(g=y(de(w),9),p+=g.o.b+g.d.a+g.d.d+e.e,u=new nn(cn(os(g).a.Jc(),new B));Nn(u);)o=y(vn(u),17),o.c.i.k==(Yr(),iu)&&(A=o.c.i,k=y(oe(A,(Tt(),aa)),9),p+=k.o.b+k.d.a+k.d.d);return p}i(S$t,"Vmc");function j2n(e,n){var o,u,p,g;n.Tg("Min Size Preprocessing",1),u=l9e(e),$a(e)&&(o=(U2(),new qb($a(e))),g=new Hq($a(e)?new qb($a(e)):null,e),p=KIe(o,g,!1,!0),u.a=d.Math.max(u.a,p.a),u.b=d.Math.max(u.b,p.b)),pa(e,(Wm(),gN),u.a),pa(e,KZ,u.b),n.Ug()}i(j2n,"t3c");function A$t(e,n){var o,u;if(n!=e.Cb||e.Db>>16!=6&&n){if(Y7(e,n))throw xe(new rn(pM+$Ft(e)));u=null,e.Cb&&(u=(o=e.Db>>16,o>=0?dDe(e,u):e.Cb.Qh(e,-1-o,null,u))),n&&(u=a6(n,e,6,u)),u=QAe(e,n,u),u&&u.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,6,n,n))}i(A$t,"gxd");function FK(e,n){var o,u;if(n!=e.Cb||e.Db>>16!=3&&n){if(Y7(e,n))throw xe(new rn(pM+Ljt(e)));u=null,e.Cb&&(u=(o=e.Db>>16,o>=0?yDe(e,u):e.Cb.Qh(e,-1-o,null,u))),n&&(u=a6(n,e,12,u)),u=JAe(e,n,u),u&&u.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,3,n,n))}i(FK,"Lwd");function H9e(e,n){var o,u;if(n!=e.Cb||e.Db>>16!=9&&n){if(Y7(e,n))throw xe(new rn(pM+EGt(e)));u=null,e.Cb&&(u=(o=e.Db>>16,o>=0?gDe(e,u):e.Cb.Qh(e,-1-o,null,u))),n&&(u=a6(n,e,9,u)),u=ZAe(e,n,u),u&&u.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,9,n,n))}i(H9e,"hAd");function rR(e){var n,o,u,p,g;if(u=Qd(e),g=e.j,g==null&&u)return e.Hk()?null:u.gk();if(Ge(u,159)){if(o=u.hk(),o&&(p=o.ti(),p!=e.i)){if(n=y(u,159),n.lk())try{e.g=p.qi(n,g)}catch(w){if(w=hs(w),Ge(w,80))e.g=null;else throw xe(w)}e.i=p}return e.g}return null}i(rR,"GUd");function R$t(e){var n;return n=new Pt,Nt(n,new x5(new Lt(e.c,e.d),new Lt(e.c+e.b,e.d))),Nt(n,new x5(new Lt(e.c,e.d),new Lt(e.c,e.d+e.a))),Nt(n,new x5(new Lt(e.c+e.b,e.d+e.a),new Lt(e.c+e.b,e.d))),Nt(n,new x5(new Lt(e.c+e.b,e.d+e.a),new Lt(e.c,e.d+e.a))),n}i(R$t,"PMb");function z2n(e){var n,o,u,p;for(u=e.a.d.j,p=e.c.d.j,o=new ye(e.i.d);o.a<o.c.c.length;)n=y(de(o),70),dt(n,(Bt(),wE),null);u==(zt(),sn)?Fy(e,sn,(jp(),YR),e.a):p==sn?Fy(e,sn,(jp(),XR),e.c):u==Fn?Fy(e,Fn,(jp(),XR),e.a):p==Fn&&Fy(e,Fn,(jp(),YR),e.c)}i(z2n,"Vjc");function U2n(e){var n,o,u;if(e==null)return Qu;try{return zl(e)}catch(p){if(p=hs(p),Ge(p,101))return n=p,u=j2(mf(e))+"@"+(o=(Ny(),q_e(e)>>>0),o.toString(16)),vgn(bfn(),(X8(),"Exception during lenientFormat for "+u),n),"<"+u+" threw "+j2(n.Pm)+">";throw xe(p)}}i(U2n,"ic");function V2n(e){var n,o,u,p,g,w,k,A,D;for(u=!1,n=336,o=0,g=new V6t(e.length),k=e,A=0,D=k.length;A<D;++A)w=k[A],u=u|(mv(w),!1),p=(iv(w),w.a),Nt(g.a,oi(p)),n&=p.wd(),o=cdn(o,p.xd());return y(y(J8t(new Er(null,bfe(new Rr(H_e(g.a),16),new L,n,o)),new wxt(e)),677),833)}i(V2n,"Dy");function W2n(e,n,o,u){var p,g,w,k;p=iOt(e,n,o),g=iOt(e,o,n),w=y(Jr(e.c,n),116),k=y(Jr(e.c,o),116),p<g?new Q2((pg(),K3),w,k,g-p):g<p?new Q2((pg(),K3),k,w,p-g):(p!=0||!(!n.i||!o.i)&&u[n.i.c][o.i.c])&&(new Q2((pg(),K3),w,k,0),new Q2(K3,k,w,0))}i(W2n,"dlc");function H2n(e,n,o){var u,p,g,w,k;for(o.Tg("Breaking Point Removing",1),e.a=y(oe(n,(Bt(),Z1)),222),g=new ye(n.b);g.a<g.c.c.length;)for(p=y(de(g),25),k=new ye(Z2(p.a));k.a<k.c.c.length;)w=y(de(k),9),v9t(w)&&(u=y(oe(w,(Tt(),yT)),318),!u.d&&bzt(e,u));o.Ug()}i(H2n,"Mmc");function NI(){NI=U,RE=new mF("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),q6=new mF("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),vN=new mF("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),bN=new mF("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),Ij=new mF("WHOLE_DRAWING",4)}i(NI,"o7c");function q2n(e){var n,o,u,p;for(u=new t3(new yk(e.b).a);u.b;)o=MC(u),p=y(o.jd(),12),n=y(o.kd(),9),dt(n,(Tt(),aa),p),dt(p,Ih,n),dt(p,hj,(qr(),!0)),Bs(p,y(oe(n,gc),64)),oe(n,gc),dt(p.i,(Bt(),Qa),(uo(),CL)),y(oe(Zs(p.i),au),22).Ec((ol(),rL))}i(q2n,"gWb");function Y2n(e){var n,o,u,p,g,w,k;for(g=new ya,p=new ye(e.d.a);p.a<p.c.c.length;)u=y(de(p),124),u.b.a.c.length==0&&Ha(g,u,g.c.b,g.c);if(g.b>1)for(n=Ex((o=new G2,++e.b,o),e.d),k=ei(g,0);k.b!=k.d.c;)w=y(Qn(k),124),Up(Dp(_p(Ip(Lp(new Vd,1),0),n),w))}i(Y2n,"Rfc");function $K(e,n){var o,u;if(n!=e.Cb||e.Db>>16!=11&&n){if(Y7(e,n))throw xe(new rn(pM+dIe(e)));u=null,e.Cb&&(u=(o=e.Db>>16,o>=0?bDe(e,u):e.Cb.Qh(e,-1-o,null,u))),n&&(u=a6(n,e,10,u)),u=l8e(e,n,u),u&&u.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,11,n,n))}i($K,"Uzd");function X2n(e,n,o){var u,p,g,w,k,A;if(g=0,w=0,e.c)for(A=new ye(e.d.i.j);A.a<A.c.c.length;)k=y(de(A),12),g+=k.e.c.length;else g=1;if(e.d)for(A=new ye(e.c.i.j);A.a<A.c.c.length;)k=y(de(A),12),w+=k.g.c.length;else w=1;return p=Po(GF(w-g)),u=(o+n)/2+(o-n)*(.4*p),u}i(X2n,"J1b");function K2n(e,n){var o,u,p,g,w,k;for(n.Tg("Partition postprocessing",1),u=new ye(e.b);u.a<u.c.c.length;)for(o=y(de(u),25),g=new ye(o.a);g.a<g.c.c.length;)for(p=y(de(g),9),k=new ye(p.j);k.a<k.c.c.length;)w=y(de(k),12),Kt(Xt(oe(w,(Tt(),uZ))))&&G9(k);n.Ug()}i(K2n,"S9b");function J2n(e){c3();var n,o;if(e.Gc((zt(),rc)))throw xe(new rn("Port sides must not contain UNDEFINED"));switch(e.gc()){case 1:return ij;case 2:return n=e.Gc(bn)&&e.Gc(on),o=e.Gc(sn)&&e.Gc(Fn),n||o?JQ:KQ;case 3:return XQ;case 4:return YQ;default:return null}}i(J2n,"Phc");function L$t(e,n,o){return nR(),Kue(e,n)&&Kue(e,o)?!1:fde(new Lt(e.c,e.d),new Lt(e.c+e.b,e.d),n,o)||fde(new Lt(e.c+e.b,e.d),new Lt(e.c+e.b,e.d+e.a),n,o)||fde(new Lt(e.c+e.b,e.d+e.a),new Lt(e.c,e.d+e.a),n,o)||fde(new Lt(e.c,e.d+e.a),new Lt(e.c,e.d),n,o)}i(L$t,"zfd");function q9e(e,n){var o,u,p,g;if(!e.dc()){for(o=0,u=e.gc();o<u;++o)if(g=di(e.Xb(o)),g==null?n==null:Cr(g.substr(0,3),"!##")?n!=null&&(p=n.length,!Cr(g.substr(g.length-p,p),n)||g.length!=n.length+3)&&!Cr(kw,n):Cr(g,qge)&&!Cr(kw,n)||Cr(g,n))return!0}return!1}i(q9e,"ide");function Q2n(e,n,o,u){var p,g,w,k,A,D;for(w=e.j.c.length,A=tt(hSn,CMe,319,w,0,1),k=0;k<w;k++)g=y(Wt(e.j,k),12),g.p=k,A[k]=cvn(KFt(g),o,u);for(Cwn(e,A,o,n,u),D=new jn,p=0;p<A.length;p++)A[p]&&Oi(D,y(Wt(e.j,p),12),A[p]);D.f.c+D.i.c!=0&&(dt(e,(Tt(),GM),D),Nyn(e,A))}i(Q2n,"M0b");function Z2n(e,n,o){var u,p,g;for(p=new ye(e.a.b);p.a<p.c.c.length;)if(u=y(de(p),60),g=EC(u),g&&g.k==(Yr(),ks))switch(y(oe(g,(Tt(),gc)),64).g){case 4:g.n.a=n.a;break;case 2:g.n.a=o.a-(g.o.a+g.d.c);break;case 1:g.n.b=n.b;break;case 3:g.n.b=o.b-(g.o.b+g.d.a)}}i(Z2n,"qec");function ewn(e,n,o){var u,p,g;for(o.Tg("Processor determine the height for each level",1),e.a=n.b.b==0?1:n.b.b,p=null,u=ei(n.b,0);!p&&u.b!=u.d.c;)g=y(Qn(u),40),Kt(Xt(oe(g,(Ca(),zv))))&&(p=g);p&&vjt(e,Bp(Se(Ee(GZ,1),$J,40,0,[p])),o,y(oe(n,(uc(),CT)),86)),o.Ug()}i(ewn,"PVc");function twn(e){var n,o,u,p,g,w;for(u=(Kb(),g=new JD,g),eG(u,e),o=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));o.e!=o.i.gc();)n=y(_n(o),26),w=(p=new JD,p),$K(w,u),kx(w,n.g,n.f),E7(w,n.k),ld(w,n.i,n.j),Zn((!u.a&&(u.a=new xt(Ti,u,10,11)),u.a),w),eG(w,n);return u}i(twn,"I5c");function rwn(e,n,o){var u,p,g,w,k;return p=y(St(n,(LK(),GUe)),15),!p&&(p=Et(0)),g=y(St(o,GUe),15),!g&&(g=Et(0)),p.a>g.a?-1:p.a<g.a?1:e.a&&(u=ha(n.j,o.j),u!=0||(u=ha(n.i,o.i),u!=0))?u:(w=n.g*n.f,k=o.g*o.f,ha(w,k))}i(rwn,"Qod");function nwn(e,n){var o,u,p,g,w,k,A,D,M,F;if(++e.e,A=e.d==null?0:e.d.length,n>A){for(M=e.d,e.d=tt(uWe,APe,67,2*A+4,0,1),g=0;g<A;++g)if(D=M[g],D)for(u=D.g,F=D.i,k=0;k<F;++k)p=y(u[k],136),w=t8e(e,p.yi()),o=e.d[w],!o&&(o=e.d[w]=e.bk()),o.Ec(p);return!0}else return!1}i(nwn,"qMd");function iwn(e,n,o){var u,p,g,w,k,A;if(p=o,g=p.Jk(),W1(e.e,g)){if(g.Qi()){for(u=y(e.g,122),w=0;w<e.i;++w)if(k=u[w],ta(k,p)&&w!=n)throw xe(new rn(zG))}}else for(A=Ou(e.e.Ah(),g),u=y(e.g,122),w=0;w<e.i;++w)if(k=u[w],A.$l(k.Jk()))throw xe(new rn(qG));mI(e,n,o)}i(iwn,"_de");function _$t(e,n){var o,u,p,g,w,k;for(o=y(oe(n,(Tt(),J1)),22),w=y(oa((mde(),va),o),22),k=y(oa(Mi,o),22),g=w.Jc();g.Ob();)if(u=y(g.Pb(),22),!y(oa(e.b,u),16).dc())return!1;for(p=k.Jc();p.Ob();)if(u=y(p.Pb(),22),!y(oa(e.b,u),16).dc())return!1;return!0}i(_$t,"vVb");function awn(e,n,o){e.d=0,e.b=0,n.k==(Yr(),iu)&&o.k==iu&&y(oe(n,(Tt(),aa)),9)==y(oe(o,aa),9)&&(Rue(n).j==(zt(),sn)?y$t(e,n,o):y$t(e,o,n)),n.k==iu&&o.k==bs?Rue(n).j==(zt(),sn)?e.d=1:e.b=1:o.k==iu&&n.k==bs&&(Rue(o).j==(zt(),sn)?e.b=1:e.d=1),d0n(e,n,o)}i(awn,"Ngc");function Y9e(e,n){var o,u,p,g,w,k,A,D,M;if(e.a.c.length==1)return RBt(y(Wt(e.a,0),173),n);for(w=Rdn(e),A=0,D=e.d,g=w,M=e.d,k=(D-g)/2+g;g+1<D;){for(A=0,u=new ye(e.a);u.a<u.c.c.length;)o=y(de(u),173),A+=(p=UI(o,k,!1),p.a);A<n?(M=k,D=k):g=k,k=(D-g)/2+g}return M}i(Y9e,"_6c");function eG(e,n){var o,u,p,g,w;if(!n)return e;if(Ge(n,343))for(p=y(n,343),g=(!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),e.o),u=p.fh().c.Jc();u.e!=u.i.gc();)o=y(u.Wj(),45),w=o.kd(),U$(g,y(o.jd(),147),w);else!e.o&&(e.o=new gh((Ac(),s1),fb,e,0)),kIt(e.o,n.lf());return e}i(eG,"Xud");function X9e(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;return M=null,ie=B9e(e,n),A=null,ie&&(A=K0n(e,ie)),ue=A,o=null,p=Xe(Jr(e.i,ue)),p!=null?o=p:o=Et(0),z=o,u=null,g=Xe(Jr(e.j,ue)),g!=null?u=g:u=Et(0),ee=u,D=n.i,w=M6t(D,z),Oi(e.i,n,w),F=n.j,k=M6t(F,ee),M=Xe(Oi(e.j,n,k)),M}i(X9e,"YBd");function swn(e){var n,o,u,p,g;return isNaN(e)?(T7(),KPe):e<-9223372036854776e3?(T7(),qqt):e>=9223372036854776e3?(T7(),YPe):(p=!1,e<0&&(p=!0,e=-e),u=0,e>=mw&&(u=Po(e/mw),e-=u*mw),o=0,e>=v6&&(o=Po(e/v6),e-=o*v6),n=Po(e),g=Mu(n,o,u),p&&ahe(g),g)}i(swn,"nD");function own(e){var n,o,u,p,g;if(g=new Pt,Zc(e.b,new jxt(g)),e.b.c.length=0,g.c.length!=0){for(n=(_r(0,g.c.length),y(g.c[0],80)),o=1,u=g.c.length;o<u;++o)p=(_r(o,g.c.length),y(g.c[o],80)),p!=n&&aBt(n,p);if(Ge(n,63))throw xe(y(n,63));if(Ge(n,297))throw xe(y(n,297))}}i(own,"bBb");function lwn(e,n){var o,u,p,g;for(o=!n||!e.u.Gc((_h(),ry)),g=0,p=new ye(e.e.Vf());p.a<p.c.c.length;){if(u=y(de(p),837),u.$f()==(zt(),rc))throw xe(new rn("Label and node size calculator can only be used with ports that have port sides assigned."));u.Of(g++),wdn(e,u,o)}}i(lwn,"NKb");function K9e(e){var n,o,u,p,g;for(o=new ye(e.a.a);o.a<o.c.c.length;){for(n=y(de(o),321),n.j=null,g=n.a.a.ec().Jc();g.Ob();)u=y(g.Pb(),60),hg(u.b),(!n.j||u.d.c<n.j.d.c)&&(n.j=u);for(p=n.a.a.ec().Jc();p.Ob();)u=y(p.Pb(),60),u.b.a=u.d.c-n.j.d.c,u.b.b=u.d.d-n.j.d.d}return e}i(K9e,"_Eb");function GK(e){var n,o,u,p,g;for(o=new ye(e.a.a);o.a<o.c.c.length;){for(n=y(de(o),194),n.f=null,g=n.a.a.ec().Jc();g.Ob();)u=y(g.Pb(),82),hg(u.e),(!n.f||u.g.c<n.f.g.c)&&(n.f=u);for(p=n.a.a.ec().Jc();p.Ob();)u=y(p.Pb(),82),u.e.a=u.g.c-n.f.g.c,u.e.b=u.g.d-n.f.g.d}return e}i(GK,"$Rb");function cwn(e,n,o){var u,p,g,w,k;for(w=pI(e,o),k=tt(e1,Zy,9,n.length,0,1),u=0,g=w.Jc();g.Ob();)p=y(g.Pb(),12),Kt(Xt(oe(p,(Tt(),hj))))&&(k[u++]=y(oe(p,Ih),9));if(u<n.length)throw xe(new El("Expected "+n.length+" hierarchical ports, but found only "+u+"."));return k}i(cwn,"UGc");function uwn(e){var n,o,u,p,g,w,k,A,D,M,F;return F=jDe(e),n=e.a,A=n!=null,A&&s7(F,"category",e.a),p=aF(new E1(e.d)),w=!p,w&&(D=new F2,Fp(F,"knownOptions",D),o=new w3t(D),Io(new E1(e.d),o)),g=aF(e.g),k=!g,k&&(M=new F2,Fp(F,"supportedFeatures",M),u=new x3t(M),Io(e.g,u)),F}i(uwn,"XDd");function hwn(e,n){var o;e.d&&(n.c!=e.e.c||zhn(e.e.b,n.b))&&(Nt(e.f,e.d),e.a=e.d.c+e.d.b,e.d=null,e.e=null),IZr(n.b)?e.c=n:e.b=n,(n.b==(D7(),pT)&&!n.a||n.b==D3&&n.a||n.b==oE&&n.a||n.b==I3&&!n.a)&&e.c&&e.b&&(o=new Op(e.a,e.c.d,n.c-e.a,e.b.d-e.c.d),e.d=o,e.e=n)}i(hwn,"ATb");function J9e(e,n){var o,u;if(n!=e.Cb||e.Db>>16!=7&&n){if(Y7(e,n))throw xe(new rn(pM+NBt(e)));u=null,e.Cb&&(u=(o=e.Db>>16,o>=0?pDe(e,u):e.Cb.Qh(e,-1-o,null,u))),n&&(u=y(n,52).Oh(e,1,ez,u)),u=K8e(e,n,u),u&&u.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,7,n,n))}i(J9e,"Azd");function D$t(e,n){var o,u;if(n!=e.Cb||e.Db>>16!=3&&n){if(Y7(e,n))throw xe(new rn(pM+kNt(e)));u=null,e.Cb&&(u=(o=e.Db>>16,o>=0?mDe(e,u):e.Cb.Qh(e,-1-o,null,u))),n&&(u=y(n,52).Oh(e,0,rz,u)),u=J8e(e,n,u),u&&u.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,3,n,n))}i(D$t,"yTd");function Pfe(e,n){iR();var o,u,p,g,w,k,A,D,M;return n.d>e.d&&(k=e,e=n,n=k),n.d<63?Jwn(e,n):(w=(e.d&-2)<<4,D=xRe(e,w),M=xRe(n,w),u=rde(e,W5(D,w)),p=rde(n,W5(M,w)),A=Pfe(D,M),o=Pfe(u,p),g=Pfe(rde(D,u),rde(p,M)),g=cde(cde(g,A),o),g=W5(g,w),A=W5(A,w<<1),cde(cde(A,g),o))}i(Pfe,"Wib");function tG(){tG=U,s1e=new uC(DVt,0),QGe=new uC("LONGEST_PATH",1),ZGe=new uC("LONGEST_PATH_SOURCE",2),i1e=new uC("COFFMAN_GRAHAM",3),JGe=new uC(fpe,4),eje=new uC("STRETCH_WIDTH",5),LZ=new uC("MIN_WIDTH",6),n1e=new uC("BF_MODEL_ORDER",7),a1e=new uC("DF_MODEL_ORDER",8)}i(tG,"Qyc");function fwn(e,n){var o,u,p,g,w,k;if(!e.tb){for(g=(!e.rb&&(e.rb=new Gk(e,Rg,e)),e.rb),k=new w5(g.i),p=new Sn(g);p.e!=p.i.gc();)u=y(_n(p),143),w=u.ve(),o=y(w==null?Ju(k.f,null,u):Ux(k.i,w,u),143),o&&(w==null?Ju(k.f,null,o):Ux(k.i,w,o));e.tb=k}return y(Jc(e.tb,n),143)}i(fwn,"Oyd");function rG(e,n){var o,u,p,g,w;if((e.i==null&&Q0(e),e.i).length,!e.p){for(w=new w5((3*e.g.i/2|0)+1),p=new _5(e.g);p.e!=p.i.gc();)u=y(zhe(p),179),g=u.ve(),o=y(g==null?Ju(w.f,null,u):Ux(w.i,g,u),179),o&&(g==null?Ju(w.f,null,o):Ux(w.i,g,o));e.p=w}return y(Jc(e.p,n),179)}i(rG,"JWd");function Q9e(e,n,o,u,p){var g,w,k,A,D;for(cgn(u+FY(o,o.ge()),p),l7t(n,_pn(o)),g=o.f,g&&Q9e(e,n,g,"Caused by: ",!1),k=(o.k==null&&(o.k=tt(c0e,Dt,80,0,0,1)),o.k),A=0,D=k.length;A<D;++A)w=k[A],Q9e(e,n,w,"Suppressed: ",!1);console.groupEnd!=null&&console.groupEnd.call(console)}i(Q9e,"yDb");function nG(e,n,o,u){var p,g,w,k,A;for(A=n.e,k=A.length,w=n.q.tg(A,o?0:k-1,o),p=A[o?0:k-1],w=w|bGt(e,p,o,u),g=o?1:k-2;o?g<k:g>=0;g+=o?1:-1)w=w|n.c.jg(A,g,o,u&&!Kt(Xt(oe(n.j,(Tt(),Ov))))&&!Kt(Xt(oe(n.j,(Tt(),mE))))),w=w|n.q.tg(A,g,o),w=w|bGt(e,A[g],o,u);return ys(e.c,n),w}i(nG,"XGc");function jK(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(M=BLt(e.j),F=0,z=M.length;F<z;++F){if(D=M[F],o==(sl(),Mh)||o==rN)for(A=q0(D.g),p=A,g=0,w=p.length;g<w;++g)u=p[g],Myn(n,u)&&Jy(u,!0);if(o==Eu||o==rN)for(k=q0(D.e),p=k,g=0,w=p.length;g<w;++g)u=p[g],Iyn(n,u)&&Jy(u,!0)}}i(jK,"r0b");function dwn(e){var n,o;switch(n=null,o=null,Qmn(e).g){case 1:n=(zt(),bn),o=on;break;case 2:n=(zt(),Fn),o=sn;break;case 3:n=(zt(),on),o=bn;break;case 4:n=(zt(),sn),o=Fn}l5e(e,y(ff(P5(y(oa(e.k,n),16).Mc(),cE)),113)),o5e(e,y(ff($k(y(oa(e.k,o),16).Mc(),cE)),113))}i(dwn,"Kkc");function OI(e){var n;if(_4t.call(this),this.i=new Gyt,this.g=e,this.f=y(e.e&&e.e(),10).length,this.f==0)throw xe(new rn("There must be at least one phase in the phase enumeration."));this.c=(n=y(ug(this.g),10),new ud(n,y(Np(n,n.length),10),0)),this.a=new us,this.b=new jn}i(OI,"Rbd");function pwn(e){var n,o,u,p,g,w;if(p=y(Wt(e.j,0),12),p.e.c.length+p.g.c.length==0)e.n.a=0;else{for(w=0,u=Gm(pd(Se(Ee(kd,1),Fr,20,0,[new F8(p),new u5(p)])));Nn(u);)o=y(vn(u),12),w+=o.i.n.a+o.n.a+o.a.a;n=y(oe(e,(Bt(),TT)),8),g=n?n.a:0,e.n.a=w/(p.e.c.length+p.g.c.length)-g}}i(pwn,"d3b");function I$t(e,n){var o,u,p;for(u=new ye(n.a);u.a<u.c.c.length;)o=y(de(u),225),mce(y(o.b,68),qs(Wo(y(n.b,68).c),y(n.b,68).a)),p=QGt(y(n.b,68).b,y(o.b,68).b),p>1&&(e.a=!0),Gin(y(o.b,68),ra(Wo(y(n.b,68).c),L1(qs(Wo(y(o.b,68).a),y(n.b,68).a),p))),YRt(e,n),I$t(e,o)}i(I$t,"Lad");function M$t(e){var n,o,u,p,g,w,k;for(g=new ye(e.a.a);g.a<g.c.c.length;)u=y(de(g),194),u.e=0,u.d.a.$b();for(p=new ye(e.a.a);p.a<p.c.c.length;)for(u=y(de(p),194),o=u.a.a.ec().Jc();o.Ob();)for(n=y(o.Pb(),82),k=n.f.Jc();k.Ob();)w=y(k.Pb(),82),w.d!=u&&(ys(u.d,w),++w.d.e)}i(M$t,"ZRb");function gwn(e,n){var o,u,p,g,w,k,A;for(n.Tg("Constraints Postprocessor",1),w=0,g=new ye(e.b);g.a<g.c.c.length;){for(p=y(de(g),25),A=0,k=!1,u=new ye(p.a);u.a<u.c.c.length;)o=y(de(u),9),o.k==(Yr(),Ya)&&(k=!0,dt(o,(Bt(),KM),Et(w)),dt(o,mZ,Et(A)),++A);k&&++w}n.Ug()}i(gwn,"j0b");function mwn(e){var n,o,u,p,g,w,k,A;for(A=e.j.c.length,o=0,n=A,p=2*A,k=new ye(e.j);k.a<k.c.c.length;)switch(w=y(de(k),12),w.j.g){case 2:case 4:w.p=-1;break;case 1:case 3:u=w.e.c.length,g=w.g.c.length,u>0&&g>0?w.p=n++:u>0?w.p=o++:g>0?w.p=p++:w.p=o++}Ir(),zs(e.j,new Qpt)}i(mwn,"B9b");function ywn(e){var n,o;o=null,n=y(Wt(e.g,0),17);do{if(o=n.d.i,ea(o,(Tt(),np)))return y(oe(o,np),12).i;if(o.k!=(Yr(),Ya)&&Nn(new nn(cn(Ra(o).a.Jc(),new B))))n=y(vn(new nn(cn(Ra(o).a.Jc(),new B))),17);else if(o.k!=Ya)return null}while(o&&o.k!=(Yr(),Ya));return o}i(ywn,"zcc");function bwn(e,n){var o,u,p,g,w,k,A,D,M;for(k=n.j,w=n.g,A=y(Wt(k,k.c.length-1),113),M=(_r(0,k.c.length),y(k.c[0],113)),D=nfe(e,w,A,M),g=1;g<k.c.length;g++)o=(_r(g-1,k.c.length),y(k.c[g-1],113)),p=(_r(g,k.c.length),y(k.c[g],113)),u=nfe(e,w,o,p),u>D&&(A=o,M=p,D=u);n.a=M,n.c=A}i(bwn,"Ikc");function Qx(e,n,o,u){var p,g;if(p=Qe(oe(o,(Bt(),qM)))===Qe((fv(),B3)),g=y(oe(o,uGe),16),ea(e,(Tt(),Ea)))if(p){if(g.Gc(oe(e,YM))&&g.Gc(oe(n,YM)))return u*y(oe(e,YM),15).a+y(oe(e,Ea),15).a}else return y(oe(e,Ea),15).a;else return-1;return y(oe(e,Ea),15).a}i(Qx,"slc");function vwn(e,n,o){var u,p,g,w,k,A,D;for(D=new My(new skt(e)),w=Se(Ee(ZXt,1),eVt,12,0,[n,o]),k=0,A=w.length;k<A;++k)for(g=w[k],D.a.yc(g,(qr(),Dv))==null,p=new Kg(g.b);Xl(p.a)||Xl(p.b);)u=y(Xl(p.a)?de(p.a):de(p.b),17),u.c==u.d||jF(D,g==u.c?u.d:u.c);return oi(D),new Ah(D)}i(vwn,"QIc");function Up(e){if(!e.a.d||!e.a.e)throw xe(new El((_1(xYt),xYt.k+" must have a source and target "+(_1(TBe),TBe.k)+" specified.")));if(e.a.d==e.a.e)throw xe(new El("Network simplex does not support self-loops: "+e.a+" "+e.a.d+" "+e.a.e));return Wq(e.a.d.g,e.a),Wq(e.a.e.b,e.a),e.a}i(Up,"XFb");function wwn(e,n,o){var u,p,g,w,k;for(o.Tg("Longest path layering",1),e.a=n,k=e.a.a,e.b=tt(pi,Pi,30,k.c.length,15,1),u=0,w=new ye(k);w.a<w.c.c.length;)p=y(de(w),9),p.p=u,e.b[u]=-1,++u;for(g=new ye(k);g.a<g.c.c.length;)p=y(de(g),9),p$t(e,p);k.c.length=0,e.a=null,e.b=null,o.Ug()}i(wwn,"GDc");function N$t(e,n,o){var u,p,g,w,k,A;if(u=0,n.b!=0&&o.b!=0){g=ei(n,0),w=ei(o,0),k=He(Xe(Qn(g))),A=He(Xe(Qn(w))),p=!0;do{if(k>A-e.b&&k<A+e.b)return-1;k>A-e.a&&k<A+e.a&&++u,k<=A&&g.b!=g.d.c?k=He(Xe(Qn(g))):A<=k&&w.b!=w.d.c?A=He(Xe(Qn(w))):p=!1}while(p)}return u}i(N$t,"xQc");function O$t(e,n){var o,u;return UF(e.a),fg(e.a,(IX(),WZ),WZ),fg(e.a,AE,AE),u=new us,Ei(u,AE,(EK(),z1e)),Qe(St(n,(wv(),H1e)))!==Qe((R$(),HZ))&&Ei(u,AE,$1e),Kt(Xt(St(n,xze)))&&Ei(u,AE,U1e),Ei(u,AE,G1e),Kt(Xt(St(n,kze)))&&Xc(u,AE,j1e),hAe(e.a,u),o=cG(e.a,n),o}i(O$t,"p_c");function P$t(){return ho(),Se(Ee(mSn,1),At,77,0,[cFe,sFe,lE,V0e,LFe,NQ,VQ,N3,AFe,yFe,EFe,M3,RFe,pFe,_Fe,eFe,FQ,W0e,IQ,jQ,IFe,GQ,tFe,SFe,MFe,zQ,ZBe,DFe,MQ,hFe,TFe,xFe,WQ,iFe,DQ,PQ,nFe,qR,vFe,gFe,CFe,kFe,NM,oFe,aFe,wFe,mFe,BQ,UQ,rFe,$Q,bFe,OQ,fFe,uFe,M6,_Q,dFe,lFe])}i(P$t,"_5b");function xwn(e,n,o,u){var p,g,w,k,A,D,M,F,z;for(A=0,M=new ye(e.a);M.a<M.c.c.length;){for(D=y(de(M),9),k=0,g=new nn(cn(os(D).a.Jc(),new B));Nn(g);)p=y(vn(g),17),F=Xg(p.c).b,z=Xg(p.d).b,k=d.Math.max(k,d.Math.abs(z-F));A=d.Math.max(A,k)}return w=u*d.Math.min(1,n/o)*A,w}i(xwn,"sRc");function Twn(e){var n,o;for(o=new nn(cn(Ra(e).a.Jc(),new B));Nn(o);)if(n=y(vn(o),17),n.d.i.k!=(Yr(),_c))throw xe(new _y(hpe+G$(e)+"' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen."))}i(Twn,"U7b");function kwn(e,n){var o,u,p,g,w;for(w=y(oe(n,(uc(),tze)),425),g=ei(n.b,0);g.b!=g.d.c;)if(p=y(Qn(g),40),e.b[p.g]==0){switch(w.g){case 0:HOt(e,p);break;case 1:Bvn(e,p)}e.b[p.g]=2}for(u=ei(e.a,0);u.b!=u.d.c;)o=y(Qn(u),65),a3(o.b.d,o,!0),a3(o.c.b,o,!0);dt(n,(Ca(),Vje),e.a)}i(kwn,"sYc");function Z9e(e){var n;return n=new r9,(e&256)!=0&&(n.a+="F"),(e&128)!=0&&(n.a+="H"),(e&512)!=0&&(n.a+="X"),(e&2)!=0&&(n.a+="i"),(e&8)!=0&&(n.a+="m"),(e&4)!=0&&(n.a+="s"),(e&32)!=0&&(n.a+="u"),(e&64)!=0&&(n.a+="w"),(e&16)!=0&&(n.a+="x"),(e&Wp)!=0&&(n.a+=","),Z5e(n.a)}i(Z9e,"Cqe");function Cwn(e,n,o,u,p){var g,w,k,A;for(A=(g=y(ug(Qo),10),new ud(g,y(Np(g,g.length),10),0)),k=new ye(e.j);k.a<k.c.c.length;)w=y(de(k),12),n[w.p]&&(WCn(w,n[w.p],u),Gp(A,w.j));p?(dfe(e,n,(zt(),bn),2*o,u),dfe(e,n,on,2*o,u)):(dfe(e,n,(zt(),sn),2*o,u),dfe(e,n,Fn,2*o,u))}i(Cwn,"I0b");function Ewn(e,n){var o,u,p,g,w,k,A;for(p=new Pt,o=0;o<=e.j;o++)u=new Nc(n),u.p=e.j-o,tn(p.c,u);for(k=new ye(e.p);k.a<k.c.c.length;)w=y(de(k),9),Us(w,y(Wt(p,e.j-e.g[w.p]),25));for(g=new ye(p);g.a<g.c.c.length;)A=y(de(g),25),A.a.c.length==0&&G9(g);n.b.c.length=0,Is(n.b,p)}i(Ewn,"S8b");function Swn(e,n,o){var u,p,g,w,k,A;for(u=y(oa(e.c,n),16),p=y(oa(e.c,o),16),g=u.dd(u.gc()),w=p.dd(p.gc());g.Sb()&&w.Sb();)if(k=y(g.Ub(),15),A=y(w.Ub(),15),k!=A)return Yc(k.a,A.a);return!g.Ob()&&!w.Ob()?n.p<o.p?-1:n.p>o.p?1:0:g.Ob()?1:-1}i(Swn,"UCc");function Awn(e,n){var o,u,p,g,w,k;n.Tg(tWt,1),p=y(St(e,(n0(),mN)),104),g=(!e.a&&(e.a=new xt(Ti,e,10,11)),e.a),w=Y0n(g),k=d.Math.max(w.a,He(Xe(St(e,(Wm(),gN))))-(p.b+p.c)),u=d.Math.max(w.b,He(Xe(St(e,KZ)))-(p.d+p.a)),o=u-w.b,pa(e,pN,o),pa(e,H6,k),pa(e,mL,u+o),n.Ug()}i(Awn,"R5c");function zK(e){var n,o;if((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i==0)return NLe(e);for(n=y(je((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a),0),170),Kn((!n.a&&(n.a=new Es(qf,n,5)),n.a)),DC(n,0),IC(n,0),LC(n,0),_C(n,0),o=(!e.a&&(e.a=new xt(Ia,e,6,6)),e.a);o.i>1;)g3(o,o.i-1);return n}i(zK,"_Ed");function Ou(e,n){tl();var o,u,p,g;return n?n==(ga(),mar)||(n==iar||n==Gw||n==nar)&&e!=BWe?new JIe(e,n):(u=y(n,682),o=u.Yk(),o||(d7(Rl((yh(),Ro),n)),o=u.Yk()),g=(!o.i&&(o.i=new jn),o.i),p=y(Yl(Sl(g.f,e)),2006),!p&&Oi(g,e,p=new JIe(e,n)),p):ear}i(Ou,"Cie");function Rwn(e,n){var o,u;if(u=jF(e.b,n.b),!u)throw xe(new El("Invalid hitboxes for scanline constraint calculation."));(bMt(n.b,y(JQr(e.b,n.b),60))||bMt(n.b,y(KQr(e.b,n.b),60)))&&Ny(),e.a[n.b.f]=y(Woe(e.b,n.b),60),o=y(Voe(e.b,n.b),60),o&&(e.a[o.f]=n.b)}i(Rwn,"CFb");function Lwn(e,n){var o,u,p,g,w,k,A,D,M;for(A=y(oe(e,(Tt(),aa)),12),D=Ql(Se(Ee(to,1),Dt,8,0,[A.i.n,A.n,A.a])).a,M=e.i.n.b,o=q0(e.e),p=o,g=0,w=p.length;g<w;++g)u=p[g],mo(u,A),Uo(u.a,new Lt(D,M)),n&&(k=y(oe(u,(Bt(),Dl)),79),k||(k=new Vh,dt(u,Dl,k)),_i(k,new Lt(D,M)))}i(Lwn,"q9b");function _wn(e,n){var o,u,p,g,w,k,A,D,M;for(p=y(oe(e,(Tt(),aa)),12),D=Ql(Se(Ee(to,1),Dt,8,0,[p.i.n,p.n,p.a])).a,M=e.i.n.b,o=q0(e.g),w=o,k=0,A=w.length;k<A;++k)g=w[k],Bo(g,p),dC(g.a,new Lt(D,M)),n&&(u=y(oe(g,(Bt(),Dl)),79),u||(u=new Vh,dt(g,Dl,u)),_i(u,new Lt(D,M)))}i(_wn,"r9b");function Dwn(e){var n,o,u,p,g,w,k,A,D;if(u=e.b,g=u.e,w=I5(y(oe(u,(Bt(),Qa)),102)),o=!!g&&y(oe(g,(Tt(),au)),22).Gc((ol(),Cd)),!(w||o))for(D=(k=new S1(e.e).a.vc().Jc(),new bk(k));D.a.Ob();)A=(n=y(D.a.Pb(),45),y(n.kd(),113)),A.a&&(p=A.d,Kl(p,null),A.c=!0,e.a=!0)}i(Dwn,"Kbc");function Iwn(e,n){var o,u,p,g;for(n.Tg("Semi-Interactive Crossing Minimization Processor",1),o=!1,p=new ye(e.b);p.a<p.c.c.length;)u=y(de(p),25),g=D$(yX(Hi(Hi(new Er(null,new Rr(u.a,16)),new Mgt),new Ngt),new Ogt),new Pgt),o=o|g.a!=null;o&&dt(e,(Tt(),b$e),(qr(),!0)),n.Ug()}i(Iwn,"icc");function Mwn(e,n){var o,u,p,g,w,k;for(e.b=new Pt,e.d=y(oe(n,(Tt(),G6)),234),e.e=Kon(e.d),g=new ya,p=Bp(Se(Ee(KXt,1),QUt,36,0,[n])),w=0;w<p.c.length;)u=(_r(w,p.c.length),y(p.c[w],36)),u.p=w++,o=new rzt(u,e.a,e.b),Is(p,o.b),Nt(e.b,o),o.s&&(k=ei(g,0),EY(k,o));return e.c=new gs,g}i(Mwn,"LGc");function Nwn(e,n){var o,u,p,g,w,k;for(w=y(y(oa(e.r,n),22),83).Jc();w.Ob();)g=y(w.Pb(),115),o=g.c?j8e(g.c):0,o>0?g.a?(k=g.b.Kf().a,o>k&&(p=(o-k)/2,g.d.b=p,g.d.c=p)):g.d.c=e.s+o:$9(e.u)&&(u=zDe(g.b),u.c<0&&(g.d.b=-u.c),u.c+u.b>g.b.Kf().a&&(g.d.c=u.c+u.b-g.b.Kf().a))}i(Nwn,"bKb");function Own(e,n){var o,u,p,g,w;w=new Pt,o=n;do g=y(Jr(e.b,o),132),g.B=o.c,g.D=o.d,tn(w.c,g),o=y(Jr(e.k,o),17);while(o);return u=(_r(0,w.c.length),y(w.c[0],132)),u.j=!0,u.A=y(u.d.a.ec().Jc().Pb(),17).c.i,p=y(Wt(w,w.c.length-1),132),p.q=!0,p.C=y(p.d.a.ec().Jc().Pb(),17).d.i,w}i(Own,"ARc");function Pwn(e){var n,o;o=y(oe(e,(Bt(),tc)),165),n=y(oe(e,(Tt(),Sw)),316),o==(yf(),Q1)?(dt(e,tc,dj),dt(e,Sw,(F1(),pE))):o==Rw?(dt(e,tc,dj),dt(e,Sw,(F1(),N6))):n==(F1(),pE)?(dt(e,tc,Q1),dt(e,Sw,cj)):n==N6&&(dt(e,tc,Rw),dt(e,Sw,cj))}i(Pwn,"t2b");function UK(){UK=U,Cj=new Gmt,Ber=Ei(new us,(eo(),jc),(ho(),IQ)),Ger=Xc(Ei(new us,jc,GQ),hl,$Q),jer=X0(X0(c9(Xc(Ei(new us,Yp,VQ),hl,UQ),Lc),zQ),WQ),Fer=Xc(Ei(Ei(Ei(new us,Zm,NQ),Lc,PQ),Lc,qR),hl,OQ),$er=Xc(Ei(Ei(new us,Lc,qR),Lc,DQ),hl,_Q)}i(UK,"OOc");function PI(){PI=U,Ver=Ei(Xc(new us,(eo(),hl),(ho(),fFe)),jc,IQ),Yer=X0(X0(c9(Xc(Ei(new us,Yp,VQ),hl,UQ),Lc),zQ),WQ),Wer=Xc(Ei(Ei(Ei(new us,Zm,NQ),Lc,PQ),Lc,qR),hl,OQ),qer=Ei(Ei(new us,jc,GQ),hl,$Q),Her=Xc(Ei(Ei(new us,Lc,qR),Lc,DQ),hl,_Q)}i(PI,"qRc");function Bwn(e,n,o,u,p){var g,w;(!Mo(n)&&n.c.i.c==n.d.i.c||!CIt(Ql(Se(Ee(to,1),Dt,8,0,[p.i.n,p.n,p.a])),o))&&!Mo(n)&&(n.c==p?e7(n.a,0,new Vo(o)):_i(n.a,new Vo(o)),u&&!Wd(e.a,o)&&(w=y(oe(n,(Bt(),Dl)),79),w||(w=new Vh,dt(n,Dl,w)),g=new Vo(o),Ha(w,g,w.c.b,w.c),ys(e.a,g)))}i(Bwn,"POc");function B$t(e,n){var o,u,p,g;for(g=mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))),o=g&e.b.length-1,p=null,u=e.b[o];u;p=u,u=u.a)if(u.d==g&&D1(u.i,n))return p?p.a=u.a:e.b[o]=u.a,nCt(y(qd(u.c),594),y(qd(u.f),594)),QB(y(qd(u.b),227),y(qd(u.e),227)),--e.f,++e.e,!0;return!1}i(B$t,"$s");function Fwn(e){var n,o;for(o=new nn(cn(os(e).a.Jc(),new B));Nn(o);)if(n=y(vn(o),17),n.c.i.k!=(Yr(),_c))throw xe(new _y(hpe+G$(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}i(Fwn,"T7b");function F$t(e,n){var o,u,p,g,w,k,A,D,M,F,z;p=n?new J0t:new Q0t,g=!1;do for(g=!1,D=n?bf(e.b):e.b,A=D.Jc();A.Ob();)for(k=y(A.Pb(),25),z=Z2(k.a),n||bf(z),F=new ye(z);F.a<F.c.c.length;)M=y(de(F),9),p.Mb(M)&&(u=M,o=y(oe(M,(Tt(),yT)),318),w=n?o.b:o.k,g=uGt(u,w,n,!1));while(g)}i(F$t,"ymc");function $wn(e,n,o){var u,p,g,w,k,A,D;if(p=SNt(e.Db&254),p==0)e.Eb=o;else{if(p==1)k=tt(Fs,Fr,1,2,5,1),g=rfe(e,n),g==0?(k[0]=o,k[1]=e.Eb):(k[0]=e.Eb,k[1]=o);else for(k=tt(Fs,Fr,1,p+1,5,1),w=K5(e.Eb),u=2,A=0,D=0;u<=128;u<<=1)u==n?k[D++]=o:(e.Db&u)!=0&&(k[D++]=w[A++]);e.Eb=k}e.Db|=n}i($wn,"pud");function $$t(e,n,o,u,p,g){var w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(M=u,n.j&&n.o?(ee=y(Jr(e.f,n.A),60),ue=ee.d.c+ee.d.b,--M):ue=n.a.c+n.a.b,F=p,o.q&&o.o?(ee=y(Jr(e.f,o.C),60),D=ee.d.c,++F):D=o.a.c,fe=D-ue,A=d.Math.max(2,F-M),k=fe/A,ie=ue+k,z=M;z<F;++z)w=y(g.Xb(z),132),Ce=w.a.b,w.a.c=ie-Ce/2,ie+=k}i($$t,"nec");function eIe(e,n,o,u,p,g){var w,k,A,D,M,F;for(D=o.c.length,g&&(e.c=tt(pi,Pi,30,n.length,15,1)),w=p?0:n.length-1;p?w<n.length:w>=0;w+=p?1:-1){for(k=n[w],A=u==(zt(),bn)?p?Zl(k,u):bf(Zl(k,u)):p?bf(Zl(k,u)):Zl(k,u),g&&(e.c[k.p]=A.gc()),F=A.Jc();F.Ob();)M=y(F.Pb(),12),e.d[M.p]=D++;Is(o,A)}}i(eIe,"bJc");function G$t(e,n,o){var u,p,g,w,k,A,D,M;for(g=He(Xe(e.b.Jc().Pb())),D=He(Xe(vfn(n.b))),u=L1(Wo(e.a),D-o),p=L1(Wo(n.a),o-g),M=ra(u,p),L1(M,1/(D-g)),this.a=M,this.b=new Pt,k=!0,w=e.b.Jc(),w.Pb();w.Ob();)A=He(Xe(w.Pb())),k&&A-o>rge&&(this.b.Ec(o),k=!1),this.b.Ec(A);k&&this.b.Ec(o)}i(G$t,"jRc");function Gwn(e){var n,o,u,p;if(nTn(e,e.n),e.d.c.length>0){for(t9(e.c);D9e(e,y(de(new ye(e.e.a)),124))<e.e.a.c.length;){for(n=q0n(e),p=n.e.e-n.d.e-n.a,n.e.j&&(p=-p),u=new ye(e.e.a);u.a<u.c.c.length;)o=y(de(u),124),o.j&&(o.e+=p);t9(e.c)}t9(e.c),y9e(e,y(de(new ye(e.e.a)),124)),Vjt(e)}}i(Gwn,"RGb");function jwn(e,n,o){var u,p,g,w,k;for(o.Tg("Longest path to source layering",1),e.a=n,k=e.a.a,e.b=tt(pi,Pi,30,k.c.length,15,1),u=0,w=new ye(k);w.a<w.c.c.length;)p=y(de(w),9),p.p=u,e.b[u]=-1,++u;for(g=new ye(k);g.a<g.c.c.length;)p=y(de(g),9),g$t(e,p);k.c.length=0,e.a=null,e.b=null,o.Ug()}i(jwn,"ODc");function zwn(e,n){Z5();var o,u;if(o=due(rI(),n.Og()),o){if(u=o.j,Ge(e,206))return ton(y(e,26))?dh(u,(K0(),ds))||dh(u,Or):dh(u,(K0(),ds));if(Ge(e,271))return dh(u,(K0(),Sg));if(Ge(e,193))return dh(u,(K0(),cb));if(Ge(e,362))return dh(u,(K0(),ey))}return!0}i(zwn,"ibd");function Uwn(e,n,o){var u,p,g,w,k,A;if(p=o,g=p.Jk(),W1(e.e,g)){if(g.Qi()){for(u=y(e.g,122),w=0;w<e.i;++w)if(k=u[w],ta(k,p)&&w!=n)throw xe(new rn(zG))}}else for(A=Ou(e.e.Ah(),g),u=y(e.g,122),w=0;w<e.i;++w)if(k=u[w],A.$l(k.Jk())&&w!=n)throw xe(new rn(qG));return y(FC(e,n,o),75)}i(Uwn,"Pee");function j$t(e,n){if(n instanceof Object)try{if(n.__java$exception=e,navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&$doc.documentMode<9)return;var o=e;Object.defineProperties(n,{cause:{get:i(function(){var u=o.fe();return u&&u.de()},"get")},suppressed:{get:i(function(){return o.ee()},"get")}})}catch{}}i(j$t,"_y");function z$t(e,n){var o,u,p,g,w;if(u=n>>5,n&=31,u>=e.d)return e.e<0?(J0(),Qqt):(J0(),AM);if(g=e.d-u,p=tt(pi,Pi,30,g+1,15,1),Vyn(p,g,e.a,u,n),e.e<0){for(o=0;o<u&&e.a[o]==0;o++);if(o<u||n>0&&e.a[o]<<32-n!=0){for(o=0;o<g&&p[o]==-1;o++)p[o]=0;o==g&&++g,++p[o]}}return w=new X2(e.e,g,p),q9(w),w}i(z$t,"Dib");function Vwn(e,n,o,u){var p,g,w,k,A;return k=Pl(y(je((!n.b&&(n.b=new zr(Hn,n,4,7)),n.b),0),84)),A=Pl(y(je((!n.c&&(n.c=new zr(Hn,n,5,8)),n.c),0),84)),$a(k)==$a(A)||Qk(A,k)?null:(w=Vk(n),w==o?u:(g=y(Jr(e.a,w),9),g&&(p=g.e,p)?p:null))}i(Vwn,"M$b");function Wwn(e,n){var o;switch(o=y(oe(e,(Bt(),bZ)),284),n.Tg("Label side selection ("+o+")",1),o.g){case 0:QFt(e,(Bf(),n1));break;case 1:QFt(e,(Bf(),Vv));break;case 2:xjt(e,(Bf(),n1));break;case 3:xjt(e,(Bf(),Vv));break;case 4:K$t(e,(Bf(),n1));break;case 5:K$t(e,(Bf(),Vv))}n.Ug()}i(Wwn,"H7b");function W1(e,n){tl();var o,u,p;return n.Hk()?!0:n.Gk()==-2?n==(h6(),iA)||n==nA||n==nbe||n==ibe?!0:(p=e.Ah(),ja(p,n)>=0?!1:(o=qC((yh(),Ro),p,n),o?(u=o.Gk(),(u>1||u==-1)&&Ix(Rl(Ro,o))!=3):!0)):!1}i(W1,"Die");function Hwn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee;if(A=e.c.d,D=e.d.d,A.j!=D.j)for(ee=e.b,M=null,k=null,w=sgn(e),w&&ee.i&&(M=e.b.i.i,k=ee.i.j),p=A.j,F=null;p!=D.j;)F=n==0?XX(p):b_e(p),g=K_e(p,ee.d[p.g],o),z=K_e(F,ee.d[F.g],o),w&&M&&k&&(p==M?FNt(g,M,k):F==M&&FNt(z,M,k)),_i(u,ra(g,z)),p=F}i(Hwn,"hkc");function tIe(e,n,o){var u,p,g,w,k,A;if(u=NQr(o,e.length),w=e[u],g=iCt(o,w.length),w[g].k==(Yr(),ks))for(A=n.j,p=0;p<A.c.length;p++)k=(_r(p,A.c.length),y(A.c[p],12)),(o?k.j==(zt(),bn):k.j==(zt(),on))&&Kt(Xt(oe(k,(Tt(),hj))))&&(Mf(A,p,y(oe(w[g],(Tt(),aa)),12)),g+=o?1:-1)}i(tIe,"VGc");function qwn(e,n){var o,u,p,g,w,k,A,D;n.Tg("Greedy Width Approximator",1),o=He(Xe(St(e,(n0(),QZ)))),A=y(St(e,mN),104),g=y(St(e,Xze),387),w=Kt(Xt(St(e,Yze))),k=He(Xe(St(e,yN))),D=(!e.a&&(e.a=new xt(Ti,e,10,11)),e.a),xLe(D),p=new NAt(o,g,w),u=tTn(p,D,k,A),pa(e,(Wm(),J3),u.c),n.Ug()}i(qwn,"i5c");function U$t(e){if(e.g==null)switch(e.p){case 0:e.g=ion(e)?(qr(),UR):(qr(),Dv);break;case 1:e.g=d$(ecn(e));break;case 2:e.g=w$(Yon(e));break;case 3:e.g=Oan(e);break;case 4:e.g=new YB(Pan(e));break;case 6:e.g=o3(Man(e));break;case 5:e.g=Et(Vsn(e));break;case 7:e.g=F7(ncn(e))}return e.g}i(U$t,"PId");function rIe(e){if(e.n==null)switch(e.p){case 0:e.n=aon(e)?(qr(),UR):(qr(),Dv);break;case 1:e.n=d$(tcn(e));break;case 2:e.n=w$(Xon(e));break;case 3:e.n=Fan(e);break;case 4:e.n=new YB(Ban(e));break;case 6:e.n=o3(Nan(e));break;case 5:e.n=Et(Wsn(e));break;case 7:e.n=F7(rcn(e))}return e.n}i(rIe,"YId");function V$t(e,n,o,u){var p,g,w,k,A;if(k=(tl(),y(n,69).vk()),W1(e.e,n)){if(n.Qi()&&XK(e,n,u,Ge(n,103)&&(y(n,19).Bb&Jo)!=0))throw xe(new rn(zG))}else for(A=Ou(e.e.Ah(),n),p=y(e.g,122),w=0;w<e.i;++w)if(g=p[w],A.$l(g.Jk()))throw xe(new rn(qG));mI(e,n9e(e,n,o),k?y(u,75):zm(n,u))}i(V$t,"aee");function W$t(e){var n,o,u,p,g,w,k;for(g=new ye(e.a.a);g.a<g.c.c.length;)u=y(de(g),321),u.g=0,u.i=0,u.e.a.$b();for(p=new ye(e.a.a);p.a<p.c.c.length;)for(u=y(de(p),321),o=u.a.a.ec().Jc();o.Ob();)for(n=y(o.Pb(),60),k=n.c.Jc();k.Ob();)w=y(k.Pb(),60),w.a!=u&&(ys(u.e,w),++w.a.g,++w.a.i)}i(W$t,"$Eb");function Ywn(e){var n,o,u,p,g;p=y(oe(e,(Bt(),Bv)),22),g=y(oe(e,EZ),22),o=new Lt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),n=new Vo(o),p.Gc((vf(),a4))&&(u=y(oe(e,sL),8),g.Gc((Zh(),EL))&&(u.a<=0&&(u.a=20),u.b<=0&&(u.b=20)),n.a=d.Math.max(o.a,u.a),n.b=d.Math.max(o.b,u.b)),Ykn(e,o,n)}i(Ywn,"J2b");function Xwn(e,n){var o,u,p;n.a?(jF(e.b,n.b),e.a[n.b.i]=y(Woe(e.b,n.b),82),o=y(Voe(e.b,n.b),82),o&&(e.a[o.i]=n.b)):(u=y(Woe(e.b,n.b),82),u&&u==e.a[n.b.i]&&u.d&&u.d!=n.b.d&&u.f.Ec(n.b),p=y(Voe(e.b,n.b),82),p&&e.a[p.i]==n.b&&p.d&&p.d!=n.b.d&&n.b.f.Ec(p),Gle(e.b,n.b))}i(Xwn,"wSb");function Bfe(e,n){var o,u,p,g,w,k;return g=e.d,k=He(Xe(oe(e,(Bt(),ab)))),k<0&&(k=0,dt(e,ab,k)),n.o.b=k,w=d.Math.floor(k/2),u=new Fc,Bs(u,(zt(),on)),Kl(u,n),u.n.b=w,p=new Fc,Bs(p,bn),Kl(p,n),p.n.b=w,mo(e,u),o=new Nx,wc(o,e),dt(o,Dl,null),Bo(o,p),mo(o,g),okn(n,e,o),mbn(e,o),o}i(Bfe,"C8b");function Kwn(e){var n,o;return o=y(oe(e,(Tt(),au)),22),n=new us,o.Gc((ol(),FM))&&(Pf(n,Mer),Pf(n,Sje)),(o.Gc(rL)||Kt(Xt(oe(e,(Bt(),Wme)))))&&(Pf(n,Sje),o.Gc(dE)&&Pf(n,Oer)),o.Gc(Cd)&&Pf(n,Ier),o.Gc($M)&&Pf(n,Per),o.Gc(iZ)&&Pf(n,Ner),o.Gc(eL)&&Pf(n,_er),o.Gc(tL)&&Pf(n,Der),n}i(Kwn,"DOc");function Jwn(e,n){var o,u,p,g,w,k,A,D,M,F,z;return u=e.d,g=n.d,k=u+g,A=e.e!=n.e?-1:1,k==2?(M=$o(co(e.a[0],ll),co(n.a[0],ll)),z=mi(M),F=mi(Y2(M,32)),F==0?new O1(A,z):new X2(A,2,Se(Ee(pi,1),Pi,30,15,[z,F]))):(o=e.a,p=n.a,w=tt(pi,Pi,30,k,15,1),_dn(o,u,p,g,w),D=new X2(A,k,w),q9(D),D)}i(Jwn,"$ib");function H$t(e,n,o,u){var p,g;if(n){if(p=e.a.Le(o.d,n.d),p==0)return u.d=n8e(n,o.e),u.b=!0,n;g=p<0?0:1,n.a[g]=H$t(e,n.a[g],o,u),wk(n.a[g])&&(wk(n.a[1-g])?(n.b=!0,n.a[0].b=!1,n.a[1].b=!1):wk(n.a[g].a[g])?n=_X(n,1-g):wk(n.a[g].a[1-g])&&(n=SLt(n,1-g)))}else return o;return n}i(H$t,"_xb");function q$t(e,n,o){var u,p,g,w;p=e.i,u=e.n,TRe(e,(yg(),dc),p.c+u.b,o),TRe(e,pc,p.c+p.b-u.c-o[2],o),w=p.b-u.b-u.c,o[0]>0&&(o[0]+=e.d,w-=o[0]),o[2]>0&&(o[2]+=e.d,w-=o[2]),g=d.Math.max(0,w),o[1]=d.Math.max(o[1],w),TRe(e,Cu,p.c+u.b+o[0]-(o[1]-w)/2,o),n==Cu&&(e.c.b=g,e.c.c=p.c+u.b+(g-w)/2)}i(q$t,"SHb");function Y$t(){this.c=tt(po,vl,30,(zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on])).length,15,1),this.b=tt(po,vl,30,Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on]).length,15,1),this.a=tt(po,vl,30,Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on]).length,15,1),D6e(this.c,qa),D6e(this.b,Ys),D6e(this.a,Ys)}i(Y$t,"hVb");function Qwn(e,n,o,u){var p,g,w,k,A;for(A=n.i,k=o[A.g][e.d[A.g]],p=!1,w=new ye(n.d);w.a<w.c.c.length;)if(g=y(de(w),70),Kt(Xt(oe(g,(Bt(),wE))))){p=!0;break}switch(p&&(u=0),A.g){case 1:k-=u+n.j.b,n.g.b=k;break;case 3:k+=u,n.g.b=k;break;case 4:k-=u+n.j.a,n.g.a=k;break;case 2:k+=u,n.g.a=k}}i(Qwn,"qkc");function tu(e,n,o){var u,p,g,w;if(n<=o?(p=n,g=o):(p=o,g=n),u=0,e.b==null)e.b=tt(pi,Pi,30,2,15,1),e.b[0]=p,e.b[1]=g,e.c=!0;else{if(u=e.b.length,e.b[u-1]+1==p){e.b[u-1]=g;return}w=tt(pi,Pi,30,u+2,15,1),$c(e.b,0,w,0,u),e.b=w,e.b[u-1]>=p&&(e.c=!1,e.a=!1),e.b[u++]=p,e.b[u]=g,e.c||UC(e)}}i(tu,"Ere");function Zwn(e,n,o){var u,p,g,w,k,A,D;for(D=n.d,e.a=new vu(D.c.length),e.c=new jn,k=new ye(D);k.a<k.c.c.length;)w=y(de(k),107),g=new k$(null),Nt(e.a,g),Oi(e.c,w,g);for(e.b=new jn,bbn(e,n),u=0;u<D.c.length-1;u++)for(A=y(Wt(n.d,u),107),p=u+1;p<D.c.length;p++)W2n(e,A,y(Wt(n.d,p),107),o)}i(Zwn,"clc");function exn(e,n){var o,u,p,g,w,k,A;for(o=Ys,k=(Yr(),Ya),p=new ye(n.a);p.a<p.c.c.length;)u=y(de(p),9),g=u.k,g!=Ya&&(w=Xe(oe(u,(Tt(),w$e))),w==null?(o=d.Math.max(o,0),u.n.b=o+OAe(e.a,g,k)):u.n.b=(Ur(w),w)),A=OAe(e.a,g,k),u.n.b<o+A+u.d.d&&(u.n.b=o+A+u.d.d),o=u.n.b+u.o.b+u.d.a,k=g}i(exn,"kKc");function p3(e){var n,o,u,p,g;for(p=new Pt,n=new Bk((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a)),u=new nn(cn(xv(e).a.Jc(),new B));Nn(u);)o=y(vn(u),85),Ge(je((!o.b&&(o.b=new zr(Hn,o,4,7)),o.b),0),193)||(g=Pl(y(je((!o.c&&(o.c=new zr(Hn,o,5,8)),o.c),0),84)),n.a._b(g)||tn(p.c,g));return p}i(p3,"z_c");function txn(e,n,o){var u,p,g;if(e.e=o,e.d=0,e.b=0,e.f=1,e.i=n,(e.e&16)==16&&(e.i=lTn(e.i)),e.j=e.i.length,qi(e),g=Hx(e),e.d!=e.j)throw xe(new bi(ki((fi(),sHt))));if(e.g){for(u=0;u<e.g.a.c.length;u++)if(p=y(Dx(e.g,u),581),e.f<=p.a)throw xe(new bi(ki((fi(),oHt))));e.g.a.c.length=0}return g}i(txn,"$oe");function rxn(e,n){var o,u,p,g,w,k,A;for(n.Tg("Comment post-processing",1),g=new ye(e.b);g.a<g.c.c.length;){for(p=y(de(g),25),u=new Pt,k=new ye(p.a);k.a<k.c.c.length;)w=y(de(k),9),A=y(oe(w,(Tt(),z6)),16),o=y(oe(w,O6),16),(A||o)&&(bCn(w,A,o),A&&Is(u,A),o&&Is(u,o));Is(p.a,u)}n.Ug()}i(rxn,"a0b");function X$t(e,n,o,u,p){var g,w,k,A,D,M;if(e.d&&e.d.Fg(p),g=y(p.Xb(0),26),WOt(e,o,g,!1)||(w=y(p.Xb(p.gc()-1),26),WOt(e,u,w,!0))||YDe(e,p))return!0;for(M=p.Jc();M.Ob();)for(D=y(M.Pb(),26),A=n.Jc();A.Ob();)if(k=y(A.Pb(),26),VK(e,D,k))return!0;return!1}i(X$t,"f0c");function nxn(e,n,o){var u,p,g,w,k,A,D,M,F,z;z=n.c.length,F=(D=e.Fh(o),y(D>=0?e.Ih(D,!1,!0):Jx(e,o,!1),61));e:for(g=F.Jc();g.Ob();){for(p=y(g.Pb(),57),M=0;M<z;++M)if(w=(_r(M,n.c.length),y(n.c[M],75)),A=w.kd(),k=w.Jk(),u=p.Kh(k,!1),A==null?u!=null:!ta(A,u))continue e;return p}return null}i(nxn,"ktd");function ixn(e,n,o,u){var p,g,w,k;for(p=y(Ky(n,(zt(),on)).Jc().Pb(),12),g=y(Ky(n,bn).Jc().Pb(),12),k=new ye(e.j);k.a<k.c.c.length;){for(w=y(de(k),12);w.e.c.length!=0;)mo(y(Wt(w.e,0),17),p);for(;w.g.c.length!=0;)Bo(y(Wt(w.g,0),17),g)}o||dt(n,(Tt(),Cg),null),u||dt(n,(Tt(),np),null)}i(ixn,"Y3b");function K$t(e,n){var o,u,p,g,w,k,A;for(o=new vC,g=new ye(e.b);g.a<g.c.c.length;){for(p=y(de(g),25),A=!0,u=0,k=new ye(p.a);k.a<k.c.c.length;)switch(w=y(de(k),9),w.k.g){case 4:++u;case 1:sRe(o,w);break;case 0:gbn(w,n);default:o.b==o.c||GGt(o,u,A,!1,n),A=!1,u=0}o.b==o.c||GGt(o,u,A,!0,n)}}i(K$t,"J7b");function axn(e){var n,o,u,p,g,w,k,A,D;for(e.a=new o8e,D=0,p=0,u=new ye(e.i.b);u.a<u.c.c.length;){for(n=y(de(u),25),n.p=p,A=new ye(n.a);A.a<A.c.c.length;)k=y(de(A),9),k.p=D,++D;++p}for(g=e.r==(Tv(),fL),w=g?cKt:lKt,o=new ye(e.i.b);o.a<o.c.c.length;)n=y(de(o),25),zs(n.a,w),Gun(e.a,Et(n.p),n.a)}i(axn,"N8b");function nIe(e,n){var o,u,p,g,w,k;for(o=0,k=new ye(n);k.a<k.c.c.length;){for(w=y(de(k),12),ZLe(e.b,e.d[w.p]),p=new Kg(w.b);Xl(p.a)||Xl(p.b);)u=y(Xl(p.a)?de(p.a):de(p.b),17),g=m6e(e,w==u.c?u.d:u.c),g>e.d[w.p]&&(o+=pRe(e.b,g),ov(e.a,Et(g)));for(;!e9(e.a);)YRe(e.b,y(F5(e.a),15).a)}return o}i(nIe,"TIc");function J$t(e,n,o){var u,p,g,w;for(g=(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i,p=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));p.e!=p.i.gc();)u=y(_n(p),26),(!u.a&&(u.a=new xt(Ti,u,10,11)),u.a).i==0||(g+=J$t(e,u,!1));if(o)for(w=$a(n);w;)g+=(!w.a&&(w.a=new xt(Ti,w,10,11)),w.a).i,w=$a(w);return g}i(J$t,"ubd");function g3(e,n){var o,u,p,g;return e.Nj()?(u=null,p=e.Oj(),e.Rj()&&(u=e.Tj(e.Yi(n),null)),o=e.Gj(4,g=s6(e,n),null,n,p),e.Kj()&&g!=null&&(u=e.Mj(g,u)),u?(u.lj(o),u.mj()):e.Hj(o),g):(g=s6(e,n),e.Kj()&&g!=null&&(u=e.Mj(g,null),u&&u.mj()),g)}i(g3,"MJd");function sxn(e){var n,o,u,p,g,w,k,A,D,M;for(D=e.a,n=new gs,A=0,u=new ye(e.d);u.a<u.c.c.length;){for(o=y(de(u),226),M=0,nw(o.b,new Ut),w=ei(o.b,0);w.b!=w.d.c;)g=y(Qn(w),226),n.a._b(g)&&(p=o.c,k=g.c,M<k.d+k.a+D&&M+p.a+D>k.d&&(M=k.d+k.a+D));o.c.d=M,n.a.yc(o,n),A=d.Math.max(A,o.c.d+o.c.a)}return A}i(sxn,"oLb");function oxn(e,n,o){var u,p,g,w,k,A;for(w=y(oe(e,(Tt(),Ame)),16).Jc();w.Ob();){switch(g=y(w.Pb(),9),y(oe(g,(Bt(),tc)),165).g){case 2:Us(g,n);break;case 4:Us(g,o)}for(p=new nn(cn(Y0(g).a.Jc(),new B));Nn(p);)u=y(vn(p),17),!(u.c&&u.d)&&(k=!u.d,A=y(oe(u,T$e),12),k?mo(u,A):Bo(u,A))}}i(oxn,"S7b");function ol(){ol=U,nZ=new Ak("COMMENTS",0),Cd=new Ak("EXTERNAL_PORTS",1),FM=new Ak("HYPEREDGES",2),iZ=new Ak("HYPERNODES",3),rL=new Ak("NON_FREE_PORTS",4),dE=new Ak("NORTH_SOUTH_PORTS",5),$M=new Ak(bVt,6),eL=new Ak("CENTER_LABELS",7),tL=new Ak("END_LABELS",8),aZ=new Ak("PARTITIONS",9)}i(ol,"Xpc");function lxn(e,n,o,u,p){return u<0?(u=zC(e,p,Se(Ee(Zt,1),Dt,2,6,[Sde,Ade,Rde,Lde,y6,_de,Dde,Ide,Mde,Nde,Ode,Pde]),n),u<0&&(u=zC(e,p,Se(Ee(Zt,1),Dt,2,6,["Jan","Feb","Mar","Apr",y6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n)),u<0?!1:(o.k=u,!0)):u>0?(o.k=u-1,!0):!1}i(lxn,"HA");function cxn(e,n,o,u,p){return u<0?(u=zC(e,p,Se(Ee(Zt,1),Dt,2,6,[Sde,Ade,Rde,Lde,y6,_de,Dde,Ide,Mde,Nde,Ode,Pde]),n),u<0&&(u=zC(e,p,Se(Ee(Zt,1),Dt,2,6,["Jan","Feb","Mar","Apr",y6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n)),u<0?!1:(o.k=u,!0)):u>0?(o.k=u-1,!0):!1}i(cxn,"JA");function uxn(e,n,o,u,p,g){var w,k,A,D;if(k=32,u<0){if(n[0]>=e.length||(k=Do(e,n[0]),k!=43&&k!=45)||(++n[0],u=IK(e,n),u<0))return!1;k==45&&(u=-u)}return k==32&&n[0]-o==2&&p.b==2&&(A=new oq,D=A.q.getFullYear()-Ev+Ev-80,w=D%100,g.a=u==w,u+=(D/100|0)*100+(u<w?100:0)),g.p=u,!0}i(uxn,"LA");function Q$t(e,n){var o,u,p,g,w;$a(e)&&(w=y(oe(n,(Bt(),Bv)),182),Qe(St(e,Qa))===Qe((uo(),Hv))&&pa(e,Qa,m0),u=(U2(),new qb($a(e))),g=new Hq($a(e)?new qb($a(e)):null,e),p=KIe(u,g,!1,!0),Gp(w,(vf(),a4)),o=y(oe(n,sL),8),o.a=d.Math.max(p.a,o.a),o.b=d.Math.max(p.b,o.b))}i(Q$t,"G$b");function hxn(e){var n,o,u,p,g,w;for(g=new gs,n=new Bk((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a)),p=new nn(cn(xv(e).a.Jc(),new B));Nn(p);)u=y(vn(p),85),Ge(je((!u.b&&(u.b=new zr(Hn,u,4,7)),u.b),0),193)||(w=Pl(y(je((!u.c&&(u.c=new zr(Hn,u,5,8)),u.c),0),84)),n.a._b(w)||(o=g.a.yc(w,g),o==null));return g}i(hxn,"y_c");function nR(){nR=U,IUe=Se(Ee(LT,1),mUt,30,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),d.Math.pow(2,-65)}i(nR,"qfd");function iR(){iR=U;var e,n;for(R6=tt(sE,Dt,91,32,0,1),RM=tt(sE,Dt,91,32,0,1),e=1,n=0;n<=18;n++)R6[n]=(J0(),eu(e,0)>=0?yv(e):j9(yv(zy(e)))),RM[n]=Oq($m(e,n),0)?yv($m(e,n)):j9(yv(zy($m(e,n)))),e=$o(e,5);for(;n<RM.length;n++)R6[n]=SC(R6[n-1],R6[1]),RM[n]=SC(RM[n-1],(J0(),g0e))}i(iR,"Vib");function Z$t(e,n){var o,u,p,g,w;if(e.c.length==0)return new Ko(Et(0),Et(0));for(o=(_r(0,e.c.length),y(e.c[0],12)).j,w=0,g=n.g,u=n.g+1;w<e.c.length-1&&o.g<g;)++w,o=(_r(w,e.c.length),y(e.c[w],12)).j;for(p=w;p<e.c.length-1&&o.g<u;)++p,o=(_r(w,e.c.length),y(e.c[w],12)).j;return new Ko(Et(w),Et(p))}i(Z$t,"tac");function fxn(e,n,o,u){var p,g,w,k,A,D,M;A=Zl(n,o),(o==(zt(),Fn)||o==on)&&(A=bf(A)),w=!1;do for(p=!1,g=0;g<A.gc()-1;g++)D=y(A.Xb(g),12),k=y(A.Xb(g+1),12),lyn(e,D,k,u)&&(w=!0,iue(e.a,y(A.Xb(g),12),y(A.Xb(g+1),12)),M=y(A.Xb(g+1),12),A.fd(g+1,y(A.Xb(g),12)),A.fd(g,M),p=!0);while(p);return w}i(fxn,"fGc");function dxn(e,n,o){var u,p,g,w;for(o.Tg(FVt,1),p=y(Rh(Hi(new Er(null,new Rr(n.b,16)),new E1t),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),SFt(e,p,0),w=ei(n.b,0);w.b!=w.d.c;)g=y(Qn(w),40),u=Jr(e.a,Et(g.g))!=null?y(Jr(e.a,Et(g.g)),15).a:0,dt(g,(uc(),um),Et(u));o.Ug()}i(dxn,"WVc");function VK(e,n,o){var u,p,g,w,k,A,D,M;return k=n.i-e.g/2,A=o.i-e.g/2,D=n.j-e.g/2,M=o.j-e.g/2,g=n.g+e.g,w=o.g+e.g,u=n.f+e.g,p=o.f+e.g,k<A+w&&A<k&&D<M+p&&M<D||A<k+g&&k<A&&M<D+u&&D<M||k<A+w&&A<k&&D<M&&M<D+u?!0:A<k+g&&k<A&&D<M+p&&M<D}i(VK,"Z_c");function pxn(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(g=n.c.length,w=(_r(o,n.c.length),y(n.c[o],294)),k=w.a.o.a,F=w.c,z=0,D=w.c;D<=w.f;D++){if(k<=e.a[D])return D;for(M=e.a[D],A=null,p=o+1;p<g;p++)u=(_r(p,n.c.length),y(n.c[p],294)),u.c<=D&&u.f>=D&&(A=u);A&&(M=d.Math.max(M,A.a.o.a)),M>z&&(F=D,z=M)}return F}i(pxn,"W6b");function gxn(e){var n,o,u,p,g,w,k;for(g=new My(y(oi(new Un),51)),k=Ys,o=new ye(e.d);o.a<o.c.c.length;){for(n=y(de(o),226),k=n.c.c;g.a.gc()!=0&&(w=y(g.a.Rc(),226),w.c.c+w.c.b<k);)g.a.Ac(w)!=null;for(p=g.a.ec().Jc();p.Ob();)u=y(p.Pb(),226),_i(u.b,n),_i(n.b,u);g.a.yc(n,(qr(),Dv))==null}}i(gxn,"vLb");function eGt(e,n,o){var u,p,g,w,k;if(!qk(n)){for(k=o.dh((Ge(n,18)?y(n,18).gc():dg(n.Jc()))/e.a|0),k.Tg($Vt,1),w=new A1t,g=null,p=n.Jc();p.Ob();)u=y(p.Pb(),40),w=pd(Se(Ee(kd,1),Fr,20,0,[w,new A1(u)])),g&&(dt(g,(Ca(),etr),u),dt(u,D1e,g),bue(u)==bue(g)&&(dt(g,I1e,u),dt(u,jZ,g))),g=u;k.Ug(),eGt(e,w,o)}}i(eGt,"bWc");function mxn(e,n){var o,u,p;if(n==null){for(u=(!e.a&&(e.a=new xt(ny,e,9,5)),new Sn(e.a));u.e!=u.i.gc();)if(o=y(_n(u),684),p=o.c,(p??o.zb)==null)return o}else for(u=(!e.a&&(e.a=new xt(ny,e,9,5)),new Sn(e.a));u.e!=u.i.gc();)if(o=y(_n(u),684),Cr(n,(p=o.c,p??o.zb)))return o;return null}i(mxn,"M_d");function Ffe(e,n){var o;switch(o=null,n.g){case 1:e.e.nf((Ri(),Dye))&&(o=y(e.e.mf(Dye),257));break;case 3:e.e.nf((Ri(),Iye))&&(o=y(e.e.mf(Iye),257));break;case 2:e.e.nf((Ri(),_ye))&&(o=y(e.e.mf(_ye),257));break;case 4:e.e.nf((Ri(),Mye))&&(o=y(e.e.mf(Mye),257))}return!o&&(o=y(e.e.mf((Ri(),lVe)),257)),o}i(Ffe,"eJb");function tGt(e,n,o){var u,p,g,w,k,A;for(p=o,g=0,k=new ye(n);k.a<k.c.c.length;)w=y(de(k),26),pa(w,(wv(),qZ),Et(p++)),A=p3(w),u=d.Math.atan2(w.j+w.f/2,w.i+w.g/2),u+=u<0?vw:0,u<.7853981633974483||u>XVt?zs(A,e.b):u<=XVt&&u>KVt?zs(A,e.d):u<=KVt&&u>JVt?zs(A,e.c):u<=JVt&&zs(A,e.a),g=tGt(e,A,g);return p}i(tGt,"J2c");function rGt(e,n,o,u){var p,g,w,k,A,D;for(p=(u.c+u.a)/2,gf(n.j),_i(n.j,p),gf(o.e),_i(o.e,p),D=new sCt,k=new ye(e.f);k.a<k.c.c.length;)g=y(de(k),133),A=g.a,hfe(D,n,A),hfe(D,o,A);for(w=new ye(e.k);w.a<w.c.c.length;)g=y(de(w),133),A=g.b,hfe(D,n,A),hfe(D,o,A);return D.b+=2,D.a+=Q7t(n,e.q),D.a+=Q7t(e.q,o),D}i(rGt,"bQc");function yxn(e,n,o){var u;o.Tg("Processor arrange node",1),Kt(Xt(oe(n,(uc(),Xje)))),u=y(ff(j1(Hi(new Er(null,new Rr(n.b,16)),new F1t))),40),e.a=y(oe(n,ize),353),e.a==(hI(),P1e)||e.a==VZ?gzt(e,new oc(Se(Ee(GZ,1),$J,40,0,[u])),o.dh(1)):e.a==O1e&&zzt(e,new oc(Se(Ee(GZ,1),$J,40,0,[u])),o.dh(1)),o.Ug()}i(yxn,"DYc");function nGt(e){var n,o,u,p,g,w,k;for(o=e.i,n=e.n,k=o.d,e.f==(Xu(),Mv)?k+=(o.a-e.e.b)/2:e.f==qp&&(k+=o.a-e.e.b),p=new ye(e.d);p.a<p.c.c.length;){switch(u=y(de(p),187),w=u.Kf(),g=new xo,g.b=k,k+=w.b+e.a,e.b.g){case 0:g.a=o.c+n.b;break;case 1:g.a=o.c+n.b+(o.b-w.a)/2;break;case 2:g.a=o.c+o.b-n.c-w.a}u.Mf(g)}}i(nGt,"pIb");function iGt(e){var n,o,u,p,g,w,k;for(o=e.i,n=e.n,k=o.c,e.b==(Lh(),Iv)?k+=(o.b-e.e.a)/2:e.b==Hp&&(k+=o.b-e.e.a),p=new ye(e.d);p.a<p.c.c.length;){switch(u=y(de(p),187),w=u.Kf(),g=new xo,g.a=k,k+=w.a+e.a,e.f.g){case 0:g.b=o.d+n.d;break;case 1:g.b=o.d+n.d+(o.a-w.b)/2;break;case 2:g.b=o.d+o.a-n.a-w.b}u.Mf(g)}}i(iGt,"rIb");function bxn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;M=o.a.c,w=o.a.c+o.a.b,g=y(Jr(o.c,n),457),ee=g.f,ie=g.a,A=new Lt(M,ee),F=new Lt(w,ie),p=M,o.p||(p+=e.c),p+=o.F+o.v*e.b,D=new Lt(p,ee),z=new Lt(p,ie),nI(n.a,Se(Ee(to,1),Dt,8,0,[A,D])),k=o.d.a.gc()>1,k&&(u=new Lt(p,o.b),_i(n.a,u)),nI(n.a,Se(Ee(to,1),Dt,8,0,[z,F]))}i(bxn,"G1b");function iIe(e,n,o){var u,p;for(n<e.d.b.c.length?(e.b=y(Wt(e.d.b,n),25),e.a=y(Wt(e.d.b,n-1),25),e.c=n):(e.a=new Nc(e.d),e.a.p=n-1,Nt(e.d.b,e.a),e.b=new Nc(e.d),e.b.p=n,Nt(e.d.b,e.b),e.c=n),Us(o,e.b),p=new nn(cn(os(o).a.Jc(),new B));Nn(p);)u=y(vn(p),17),!u.c.i.c&&u.c.i.k==(Yr(),_c)&&Us(u.c.i,e.a)}i(iIe,"lDc");function vxn(e,n){var o,u,p,g;for(g=Zl(n,(zt(),Fn)).Jc();g.Ob();)u=y(g.Pb(),12),o=y(oe(u,(Tt(),Ih)),9),o&&Up(Dp(_p(Ip(Lp(new Vd,0),.1),e.i[n.p].d),e.i[o.p].a));for(p=Zl(n,sn).Jc();p.Ob();)u=y(p.Pb(),12),o=y(oe(u,(Tt(),Ih)),9),o&&Up(Dp(_p(Ip(Lp(new Vd,0),.1),e.i[o.p].d),e.i[n.p].a))}i(vxn,"WKc");function aGt(e){Sk(e,new Xx(Ck(xk(kk(Tk(new yx,WJ),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new fbt))),_t(e,WJ,C3,zVe),_t(e,WJ,k3,15),_t(e,WJ,pJ,Et(0)),_t(e,WJ,TR,xR)}i(aGt,"Rmd");function aIe(){aIe=U;var e,n,o,u,p,g;for(UN=tt(xh,nE,30,255,15,1),Nee=tt(Rd,em,30,16,15,1),n=0;n<255;n++)UN[n]=-1;for(o=57;o>=48;o--)UN[o]=o-48<<24>>24;for(u=70;u>=65;u--)UN[u]=u-65+10<<24>>24;for(p=102;p>=97;p--)UN[p]=p-97+10<<24>>24;for(g=0;g<10;g++)Nee[g]=48+g&As;for(e=10;e<=15;e++)Nee[e]=65+e-10&As}i(aIe,"Toe");function sGt(e,n){n.Tg("Process graph bounds",1),dt(e,(Ca(),L1e),uF(Xue(Uk(new Er(null,new Rr(e.b,16)),new b1t)))),dt(e,_1e,uF(Xue(Uk(new Er(null,new Rr(e.b,16)),new v1t)))),dt(e,zje,uF(Yue(Uk(new Er(null,new Rr(e.b,16)),new w1t)))),dt(e,Uje,uF(Yue(Uk(new Er(null,new Rr(e.b,16)),new x1t)))),n.Ug()}i(sGt,"hVc");function wxn(e){var n,o,u,p,g;p=y(oe(e,(Bt(),Bv)),22),g=y(oe(e,EZ),22),o=new Lt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),n=new Vo(o),p.Gc((vf(),a4))&&(u=y(oe(e,sL),8),g.Gc((Zh(),EL))&&(u.a<=0&&(u.a=20),u.b<=0&&(u.b=20)),n.a=d.Math.max(o.a,u.a),n.b=d.Math.max(o.b,u.b)),Kt(Xt(oe(e,Kme)))||qkn(e,o,n)}i(wxn,"rQb");function xxn(e){var n,o,u,p,g,w,k;for(n=!1,o=0,p=new ye(e.d.b);p.a<p.c.c.length;)for(u=y(de(p),25),u.p=o++,w=new ye(u.a);w.a<w.c.c.length;)g=y(de(w),9),!n&&!qk(Y0(g))&&(n=!0);k=ka((Ss(),g0),Se(Ee(SN,1),At,86,0,[Il,Bl])),n||(Gp(k,Ed),Gp(k,p0)),e.a=new N9t(k),Sc(e.f),Sc(e.b),Sc(e.e),Sc(e.g)}i(xxn,"uec");function $fe(e){var n,o,u,p,g,w;if(!e.c){if(w=new Bbt,n=$N,g=n.a.yc(e,n),g==null){for(u=new Sn(Pc(e));u.e!=u.i.gc();)o=y(_n(u),87),p=YK(o),Ge(p,88)&&rs(w,$fe(y(p,29))),Zn(w,o);n.a.Ac(e)!=null,n.a.gc()==0}Opn(w),n3(w),e.c=new pC((y(je(wt((rv(),Xr).o),15),19),w.i),w.g),Hh(e).b&=-33}return e.c}i($fe,"BWd");function sIe(e){var n;if(e.c!=10)throw xe(new bi(ki((fi(),JJ))));switch(n=e.a,n){case 110:n=10;break;case 114:n=13;break;case 116:n=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw xe(new bi(ki((fi(),Td))))}return n}i(sIe,"Qpe");function oGt(e){var n,o,u,p,g;if(e.l==0&&e.m==0&&e.h==0)return"0";if(e.h==wG&&e.m==0&&e.l==0)return"-9223372036854775808";if(e.h>>19!=0)return"-"+oGt(I7(e));for(o=e,u="";!(o.l==0&&o.m==0&&o.h==0);){if(p=pue(lJ),o=UIe(o,p,!0),n=""+CCt(_v),!(o.l==0&&o.m==0&&o.h==0))for(g=9-n.length;g>0;g--)n="0"+n;u=n+u}return u}i(oGt,"yD");function Txn(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",n=Object.create(null);if(n[e]!==void 0)return!1;var o=Object.getOwnPropertyNames(n);return!(o.length!=0||(n[e]=42,n[e]!==42)||Object.getOwnPropertyNames(n).length==0)}i(Txn,"Nsb");function kxn(e,n,o){var u,p,g,w,k,A,D,M,F;for(u=o.c,p=o.d,k=Xg(n.c),A=Xg(n.d),u==n.c?(k=V9e(e,k,p),A=cBt(n.d)):(k=cBt(n.c),A=V9e(e,A,p)),D=new KH(n.a),Ha(D,k,D.a,D.a.a),Ha(D,A,D.c.b,D.c),w=n.c==u,F=new Q3t,g=0;g<D.b-1;++g)M=new Ko(y(Bc(D,g),8),y(Bc(D,g+1),8)),w&&g==0||!w&&g==D.b-2?F.b=M:Nt(F.a,M);return F}i(kxn,"IUb");function Cxn(e,n){var o,u,p,g;if(g=e.j.g-n.j.g,g!=0)return g;if(o=y(oe(e,(Bt(),sb)),15),u=y(oe(n,sb),15),o&&u&&(p=o.a-u.a,p!=0))return p;switch(e.j.g){case 1:return ha(e.n.a,n.n.a);case 2:return ha(e.n.b,n.n.b);case 3:return ha(n.n.a,e.n.a);case 4:return ha(n.n.b,e.n.b);default:throw xe(new El($Me))}}i(Cxn,"BXb");function oIe(e,n,o,u){var p,g,w,k,A;if(dg((OF(),new nn(cn(Y0(n).a.Jc(),new B))))>=e.a||!FDe(n,o))return-1;if(qk(y(u.Kb(n),20)))return 1;for(p=0,w=y(u.Kb(n),20).Jc();w.Ob();)if(g=y(w.Pb(),17),A=g.c.i==n?g.d.i:g.c.i,k=oIe(e,A,o,u),k==-1||(p=d.Math.max(p,k),p>e.c-1))return-1;return p+1}i(oIe,"J3b");function n0(){n0=U,QZ=new To((Ri(),yL),1.3),krr=new To(e4,(qr(),!1)),Wze=new Cx(15),mN=new To(r1,Wze),yN=new To(ub,15),vrr=Pj,Trr=Pw,Crr=IE,Err=Uv,xrr=DE,iye=Gj,Srr=t4,Xze=(SIe(),mrr),Yze=grr,sye=brr,Kze=yrr,Vze=frr,aye=hrr,Uze=urr,qze=prr,jze=$j,wrr=Lye,_j=orr,Gze=srr,Dj=lrr,Hze=drr,zze=crr}i(n0,"S4c");function lGt(e,n){var o,u,p,g,w,k;if(Qe(n)===Qe(e))return!0;if(!Ge(n,16)||(u=y(n,16),k=e.gc(),u.gc()!=k))return!1;if(w=u.Jc(),e.Wi()){for(o=0;o<k;++o)if(p=e.Ti(o),g=w.Pb(),p==null?g!=null:!ta(p,g))return!1}else for(o=0;o<k;++o)if(p=e.Ti(o),g=w.Pb(),Qe(p)!==Qe(g))return!1;return!0}i(lGt,"qFd");function cGt(e,n){var o,u,p,g,w,k;if(e.f>0){if(e.Zj(),n!=null){for(g=0;g<e.d.length;++g)if(o=e.d[g],o){for(u=y(o.g,374),k=o.i,w=0;w<k;++w)if(p=u[w],ta(n,p.kd()))return!0}}else for(g=0;g<e.d.length;++g)if(o=e.d[g],o){for(u=y(o.g,374),k=o.i,w=0;w<k;++w)if(p=u[w],Qe(n)===Qe(p.kd()))return!0}}return!1}i(cGt,"gMd");function Exn(e,n){var o,u,p;return o=n.ni(e.a),o&&(p=di(bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),"affiliation")),p!=null)?(u=Uq(p,Ku(35)),u==-1?whe(e,P9(e,Nf(n.ok())),p):u==0?whe(e,null,(un(1,p.length+1),p.substr(1))):whe(e,(ko(0,u,p.length),p.substr(0,u)),(un(u+1,p.length+1),p.substr(u+1)))):null}i(Exn,"Fce");function WK(){WK=U,J0e=new G5("NORTH",0,(zt(),sn),sn),eme=new G5("SOUTH",1,Fn,Fn),K0e=new G5("EAST",2,bn,bn),nme=new G5("WEST",3,on,on),Z0e=new G5("NORTH_WEST_CORNER",4,on,sn),Q0e=new G5("NORTH_EAST_CORNER",5,sn,bn),rme=new G5("SOUTH_WEST_CORNER",6,Fn,on),tme=new G5("SOUTH_EAST_CORNER",7,bn,Fn)}i(WK,"qjc");function Sxn(e,n,o){var u,p,g,w;o.Tg("Orthogonally routing hierarchical port edges",1),e.a=0,u=v3n(n),R4n(n,u),h4n(e,n,u),ACn(n),p=y(oe(n,(Bt(),Qa)),102),g=n.b,fzt((_r(0,g.c.length),y(g.c[0],25)),p,n),fzt(y(Wt(g,g.c.length-1),25),p,n),w=n.b,Cjt((_r(0,w.c.length),y(w.c[0],25))),Cjt(y(Wt(w,w.c.length-1),25)),o.Ug()}i(Sxn,"h3b");function lIe(e){switch(e){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e-48<<24>>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw xe(new z0("Invalid hexadecimal"))}}i(lIe,"dyd");function uGt(e,n,o,u){var p,g,w,k,A,D;for(A=ufe(e,o),D=ufe(n,o),p=!1;A&&D&&(u||L0n(A,D,o));)w=ufe(A,o),k=ufe(D,o),c$(n),c$(e),g=A.c,ude(A,!1),ude(D,!1),o?(bv(n,D.p,g),n.p=D.p,bv(e,A.p+1,g),e.p=A.p):(bv(e,A.p,g),e.p=A.p,bv(n,D.p+1,g),n.p=D.p),Us(A,null),Us(D,null),A=w,D=k,p=!0;return p}i(uGt,"wmc");function hGt(e){switch(e.g){case 0:return new gwt;case 1:return new bwt;case 3:return new TEt;case 4:return new imt;case 5:return new Z6t;case 6:return new mwt;case 2:return new vwt;case 7:return new uwt;case 8:return new ywt;default:throw xe(new rn("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}i(hGt,"Ryc");function Axn(e,n,o,u){var p,g,w,k,A;for(p=!1,g=!1,k=new ye(u.j);k.a<k.c.c.length;)w=y(de(k),12),Qe(oe(w,(Tt(),aa)))===Qe(o)&&(w.g.c.length==0?w.e.c.length==0||(p=!0):g=!0);return A=0,p&&p^g?A=o.j==(zt(),sn)?-e.e[u.c.p][u.p]:n-e.e[u.c.p][u.p]:g&&p^g?A=e.e[u.c.p][u.p]+1:p&&g&&(A=o.j==(zt(),sn)?0:n/2),A}i(Axn,"NEc");function Gfe(e,n,o,u,p,g,w,k){var A,D,M;for(A=0,n!=null&&(A^=Vy(n.toLowerCase())),o!=null&&(A^=Vy(o)),u!=null&&(A^=Vy(u)),w!=null&&(A^=Vy(w)),k!=null&&(A^=Vy(k)),D=0,M=g.length;D<M;D++)A^=Vy(g[D]);e?A|=256:A&=-257,p?A|=16:A&=-17,this.f=A,this.i=n==null?null:(Ur(n),n),this.a=o,this.d=u,this.j=g,this.g=w,this.e=k}i(Gfe,"yQd");function cIe(e,n,o){var u,p;switch(p=null,n.g){case 1:p=(mh(),j0e);break;case 2:p=(mh(),z0e)}switch(u=null,o.g){case 1:u=(mh(),KBe);break;case 2:u=(mh(),XBe);break;case 3:u=(mh(),JBe);break;case 4:u=(mh(),QBe)}return p&&u?M5(e.j,new Vwt(new oc(Se(Ee(eSn,1),Fr,178,0,[y(oi(p),178),y(oi(u),178)])))):(Ir(),Ir(),Go)}i(cIe,"KYb");function Rxn(e){var n,o,u;switch(n=y(oe(e,(Bt(),sL)),8),dt(e,sL,new Lt(n.b,n.a)),y(oe(e,lm),256).g){case 1:dt(e,lm,(Vm(),oee));break;case 2:dt(e,lm,(Vm(),aee));break;case 3:dt(e,lm,(Vm(),Nj));break;case 4:dt(e,lm,(Vm(),Oj))}(e.q?e.q:(Ir(),Ir(),Qm))._b(W3)&&(o=y(oe(e,W3),8),u=o.a,o.a=o.b,o.b=u)}i(Rxn,"w2b");function fGt(e,n,o,u,p,g){if(this.b=o,this.d=p,e>=n.length)throw xe(new yu("Greedy SwitchDecider: Free layer not in graph."));this.c=n[e],this.e=new NF(u),Uue(this.e,this.c,(zt(),on)),this.i=new NF(u),Uue(this.i,this.c,bn),this.f=new b8t(this.c),this.a=!g&&p.i&&!p.s&&this.c[0].k==(Yr(),ks),this.a&&Xyn(this,e,n.length)}i(fGt,"$gc");function dGt(e,n){var o,u,p,g,w,k;g=!e.B.Gc((Zh(),Jj)),w=e.B.Gc(zye),e.a=new JNt(w,g,e.c),e.n&&M7e(e.a.n,e.n),Ioe(e.g,(yg(),Cu),e.a),n||(u=new xI(1,g,e.c),u.n.a=e.k,B5(e.p,(zt(),sn),u),p=new xI(1,g,e.c),p.n.d=e.k,B5(e.p,Fn,p),k=new xI(0,g,e.c),k.n.c=e.k,B5(e.p,on,k),o=new xI(0,g,e.c),o.n.b=e.k,B5(e.p,bn,o))}i(dGt,"DKb");function Lxn(e){var n,o,u;switch(n=y(oe(e.d,(Bt(),Z1)),222),n.g){case 2:o=bEn(e);break;case 3:o=(u=new Pt,ts(Hi(bu(jl(jl(new Er(null,new Rr(e.d.b,16)),new g0t),new m0t),new y0t),new e0t),new PTt(u)),u);break;default:throw xe(new El("Compaction not supported for "+n+" edges."))}z3n(e,o),Io(new E1(e.g),new ITt(e))}i(Lxn,"Bec");function _xn(e,n){var o,u,p,g,w,k,A;if(n.Tg("Process directions",1),o=y(oe(e,(uc(),CT)),86),o!=(Ss(),p0))for(p=ei(e.b,0);p.b!=p.d.c;){switch(u=y(Qn(p),40),k=y(oe(u,(Ca(),Aj)),15).a,A=y(oe(u,Rj),15).a,o.g){case 4:A*=-1;break;case 1:g=k,k=A,A=g;break;case 2:w=k,k=-A,A=w}dt(u,Aj,Et(k)),dt(u,Rj,Et(A))}n.Ug()}i(_xn,"_Uc");function Dxn(e){var n,o,u,p,g,w,k,A;for(A=new M_t,k=new ye(e.a);k.a<k.c.c.length;)if(w=y(de(k),9),w.k!=(Yr(),ks)){for(Fvn(A,w,new xo),g=new nn(cn(Ra(w).a.Jc(),new B));Nn(g);)if(p=y(vn(g),17),!(p.c.i.k==ks||p.d.i.k==ks))for(u=ei(p.a,0);u.b!=u.d.c;)o=y(Qn(u),8),n=o,SI(A,new J8(n.a,n.b))}return A}i(Dxn,"GUb");function jfe(){jfe=U,TUe=new ia(dge),xUe=(o9(),Mj),wUe=new br(mge,xUe),vUe=(T$(),iee),Krr=new br(YOe,vUe),bUe=(q$(),pye),Xrr=new br(XOe,bUe),Hrr=new br(pge,null),yUe=(n$(),ree),Yrr=new br(gge,yUe),mUe=(iq(),hye),zrr=new br(KOe,mUe),Urr=new br(JOe,(qr(),!1)),Vrr=new br(QOe,Et(64)),Wrr=new br(ZOe,!0),qrr=dye}i(jfe,"G9c");function pGt(e,n){var o,u,p,g,w,k,A,D,M,F;for(e.p=1,p=e.c,F=new Om,M=Wx(e,(sl(),Eu)).Jc();M.Ob();)for(D=y(M.Pb(),12),u=new ye(D.g);u.a<u.c.c.length;)o=y(de(u),17),A=o.d.i,e!=A&&(g=A.c,g.p<=p.p&&(w=p.p+1,w==n.b.c.length?(k=new Nc(n),k.p=w,Nt(n.b,k),Us(A,k)):(k=y(Wt(n.b,w),25),Us(A,k)),F.a.yc(A,F)));return F}i(pGt,"yDc");function gGt(e){switch(e.g){case 0:return new Z8e;case 1:return new dwt;case 2:return new cwt;case 3:return new lwt;case 4:return new ZSt;case 5:return new JSt;case 6:return new QSt;case 7:return new hwt;case 8:return new fwt;default:throw xe(new rn("No implementation is available for the cycle breaker "+(e.f!=null?e.f:""+e.g)))}}i(gGt,"xoc");function Ixn(e,n){var o,u;if(o=y(oe(e,(Ca(),S1e)),16),!o||o.gc()<1)return null;if(o.gc()==1)return y(o.Xb(0),40);switch(u=null,n.g){case 2:u=y(ff(P5(o.Mc(),new g1t)),40);break;case 1:u=y(ff($k(o.Mc(),new h1t)),40);break;case 4:u=y(ff(P5(o.Mc(),new f1t)),40);break;case 3:u=y(ff($k(o.Mc(),new d1t)),40)}return u}i(Ixn,"XTc");function mGt(e){var n,o,u,p,g,w;if(e.a==null)if(e.a=tt(ah,vg,30,e.c.b.c.length,16,1),e.a[0]=!1,ea(e.c,(Bt(),r1e)))for(u=y(oe(e.c,r1e),16),o=u.Jc();o.Ob();)n=y(o.Pb(),15).a,n>0&&n<e.a.length&&(e.a[n]=!1);else for(w=new ye(e.c.b),w.a<w.c.c.length&&de(w),p=1;w.a<w.c.c.length;)g=y(de(w),25),e.a[p++]=g2n(g)}i(mGt,"Ymc");function Wm(){Wm=U,pN=new ia("additionalHeight"),mL=new ia("drawingHeight"),H6=new ia("drawingWidth"),KZ=new ia("minHeight"),gN=new ia("minWidth"),JZ=new ia("rows"),J3=new ia("targetWidth"),rye=new Da("minRowIncrease",0),irr=new Da("maxRowIncrease",0),tye=new Da("minRowDecrease",0),nrr=new Da("maxRowDecrease",0)}i(Wm,"P3c");function yGt(e,n){var o,u,p,g;switch(p=e.b,n){case 1:{e.b|=1,e.b|=4,e.b|=8;break}case 2:{e.b|=2,e.b|=4,e.b|=8;break}case 4:{e.b|=1,e.b|=2,e.b|=4,e.b|=8;break}case 3:{e.b|=16,e.b|=8;break}case 0:{e.b|=32,e.b|=16,e.b|=8,e.b|=1,e.b|=2,e.b|=4;break}}if(e.b!=p&&e.c)for(u=new Sn(e.c);u.e!=u.i.gc();)g=y(_n(u),471),o=Hh(g),f3(o,n)}i(yGt,"EYd");function bGt(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie;for(p=!1,w=n,k=0,A=w.length;k<A;++k)g=w[k],Kt((qr(),!!g.e))&&!y(Wt(e.b,g.e.p),218).s&&(p=p|(D=g.e,M=y(Wt(e.b,D.p),218),F=M.e,z=iCt(o,F.length),ee=F[z][0],ee.k==(Yr(),ks)?F[z]=cwn(g,F[z],o?(zt(),on):(zt(),bn)):M.c.kg(F,o),ie=nG(e,M,o,u),tIe(M.e,M.o,o),ie));return p}i(bGt,"WGc");function vGt(e,n){var o,u,p,g,w;for(g=(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i,p=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));p.e!=p.i.gc();)u=y(_n(p),26),Qe(St(u,(Ri(),LE)))!==Qe((z1(),RN))&&(w=y(St(n,r4),144),o=y(St(u,r4),144),(w==o||w&&mRe(w,o))&&(!u.a&&(u.a=new xt(Ti,u,10,11)),u.a).i!=0&&(g+=vGt(e,u)));return g}i(vGt,"vbd");function Mxn(e){var n,o,u,p,g;for(g=new vu(e.a.c.length),p=new ye(e.a);p.a<p.c.c.length;){switch(u=y(de(p),9),o=y(oe(u,(Bt(),tc)),165),n=null,o.g){case 1:case 2:n=(sw(),fE);break;case 3:case 4:n=(sw(),ZR)}n?(dt(u,(Tt(),lZ),(sw(),fE)),n==ZR?jK(u,o,(sl(),Mh)):n==fE&&jK(u,o,(sl(),Eu))):tn(g.c,u)}return g}i(Mxn,"p0b");function Nxn(e){var n,o,u,p,g,w,k;for(u=0,k=0,w=new ye(e.d);w.a<w.c.c.length;)g=y(de(w),107),p=y(Rh(Hi(new Er(null,new Rr(g.j,16)),new FSe),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),o=null,u<=k?(o=(zt(),sn),u+=p.gc()):k<u&&(o=(zt(),Fn),k+=p.gc()),n=o,ts(bu(p.Mc(),new P0t),new $Tt(n))}i(Nxn,"djc");function Oxn(e,n){var o;return o=new Pa,n&&wc(o,y(Jr(e.a,ez),105)),Ge(n,276)&&wc(o,y(Jr(e.a,tz),105)),Ge(n,362)?(wc(o,y(Jr(e.a,nc),105)),o):(Ge(n,84)&&wc(o,y(Jr(e.a,Hn),105)),Ge(n,206)?(wc(o,y(Jr(e.a,Ti),105)),o):Ge(n,193)?(wc(o,y(Jr(e.a,rf),105)),o):(Ge(n,271)&&wc(o,y(Jr(e.a,Cs),105)),o))}i(Oxn,"gbd");function Pxn(e){var n,o,u,p,g,w,k,A;for(e.b=new pFt(new oc((zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on]))),new oc((jx(),Se(Ee(X0e,1),At,368,0,[mT,Nv,gT])))),w=Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on]),k=0,A=w.length;k<A;++k)for(g=w[k],o=Se(Ee(X0e,1),At,368,0,[mT,Nv,gT]),u=0,p=o.length;u<p;++u)n=o[u],Hmn(e.b,g,n,new Pt)}i(Pxn,"cic");function wGt(e,n){var o,u,p,g,w,k,A,D,M,F;if(w=y(y(oa(e.r,n),22),83),k=e.u.Gc((_h(),qv)),o=e.u.Gc(IN),u=e.u.Gc(DN),D=e.u.Gc(tA),F=e.B.Gc((Zh(),bee)),M=!o&&!u&&(D||w.gc()==2),Nwn(e,n),p=null,A=null,k){for(g=w.Jc(),p=y(g.Pb(),115),A=p;g.Ob();)A=y(g.Pb(),115);p.d.b=0,A.d.c=0,M&&!p.a&&(p.d.c=0)}F&&(U1n(w),k&&(p.d.b=0,A.d.c=0))}i(wGt,"eKb");function xGt(e,n){var o,u,p,g,w,k,A,D,M,F;if(w=y(y(oa(e.r,n),22),83),k=e.u.Gc((_h(),qv)),o=e.u.Gc(IN),u=e.u.Gc(DN),A=e.u.Gc(tA),F=e.B.Gc((Zh(),bee)),D=!o&&!u&&(A||w.gc()==2),ZTn(e,n),M=null,p=null,k){for(g=w.Jc(),M=y(g.Pb(),115),p=M;g.Ob();)p=y(g.Pb(),115);M.d.d=0,p.d.a=0,D&&!M.a&&(M.d.a=0)}F&&(V1n(w),k&&(M.d.d=0,p.d.a=0))}i(xGt,"mLb");function TGt(e,n,o){var u,p,g,w,k,A,D,M;if(p=n.k,n.p>=0)return!1;if(n.p=o.b,Nt(o.e,n),p==(Yr(),bs)||p==iu){for(w=new ye(n.j);w.a<w.c.c.length;)for(g=y(de(w),12),M=(u=new ye(new u5(g).a.g),new A5e(u));Xl(M.a);)if(D=y(de(M.a),17).d,k=D.i,A=k.k,n.c!=k.c&&(A==bs||A==iu)&&TGt(e,k,o))return!0}return!0}i(TGt,"xKc");function HK(e){var n;return(e.Db&64)!=0?S9e(e):(n=new Hd(S9e(e)),n.a+=" (changeable: ",Iy(n,(e.Bb&Wp)!=0),n.a+=", volatile: ",Iy(n,(e.Bb&tb)!=0),n.a+=", transient: ",Iy(n,(e.Bb&x3)!=0),n.a+=", defaultValueLiteral: ",ml(n,e.j),n.a+=", unsettable: ",Iy(n,(e.Bb&vh)!=0),n.a+=", derived: ",Iy(n,(e.Bb&Z0)!=0),n.a+=")",n.a)}i(HK,"TUd");function Bxn(e,n){var o,u,p,g,w;return p=n.ni(e.a),p&&(u=(!p.b&&(p.b=new df((Dr(),Zo),mc,p)),p.b),o=di(bg(u,Oo)),o!=null&&(g=o.lastIndexOf("#"),w=g==-1?WAe(e,n.hk(),o):g==0?o$(e,null,(un(1,o.length+1),o.substr(1))):o$(e,(ko(0,g,o.length),o.substr(0,g)),(un(g+1,o.length+1),o.substr(g+1))),Ge(w,159)))?y(w,159):null}i(Bxn,"Gce");function Fxn(e,n){var o,u,p,g,w;return u=n.ni(e.a),u&&(o=(!u.b&&(u.b=new df((Dr(),Zo),mc,u)),u.b),g=di(bg(o,Hge)),g!=null&&(p=g.lastIndexOf("#"),w=p==-1?WAe(e,n.hk(),g):p==0?o$(e,null,(un(1,g.length+1),g.substr(1))):o$(e,(ko(0,p,g.length),g.substr(0,p)),(un(p+1,g.length+1),g.substr(p+1))),Ge(w,159)))?y(w,159):null}i(Fxn,"Kce");function $xn(e,n){var o,u,p,g,w,k,A,D,M,F,z;for(n.Tg("Restoring reversed edges",1),A=new ye(e.b);A.a<A.c.c.length;)for(k=y(de(A),25),M=new ye(k.a);M.a<M.c.c.length;)for(D=y(de(M),9),z=new ye(D.j);z.a<z.c.c.length;)for(F=y(de(z),12),w=q0(F.g),u=w,p=0,g=u.length;p<g;++p)o=u[p],Kt(Xt(oe(o,(Tt(),ib))))&&Jy(o,!1);n.Ug()}i($xn,"Xac");function Gxn(e,n,o,u){var p,g,w,k,A;for(A=tt(po,Dt,108,(zt(),Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on])).length,0,2),g=Se(Ee(Qo,1),Rc,64,0,[rc,sn,bn,Fn,on]),w=0,k=g.length;w<k;++w)p=g[w],A[p.g]=tt(po,vl,30,e.c[p.g],15,1);return _Pt(A,e,sn),_Pt(A,e,Fn),tfe(A,e,sn,n,o,u),tfe(A,e,bn,n,o,u),tfe(A,e,Fn,n,o,u),tfe(A,e,on,n,o,u),A}i(Gxn,"nkc");function jxn(e,n,o){if(Kc(e.a,n)){if(Wd(y(Jr(e.a,n),48),o))return 1}else Oi(e.a,n,new gs);if(Kc(e.a,o)){if(Wd(y(Jr(e.a,o),48),n))return-1}else Oi(e.a,o,new gs);if(Kc(e.b,n)){if(Wd(y(Jr(e.b,n),48),o))return-1}else Oi(e.b,n,new gs);if(Kc(e.b,o)){if(Wd(y(Jr(e.b,o),48),n))return 1}else Oi(e.b,o,new gs);return 0}i(jxn,"bIc");function zxn(e){var n,o,u,p,g,w;e.q==(uo(),a1)||e.q==zc||(p=e.f.n.d+sY(y(yl(e.b,(zt(),sn)),127))+e.c,n=e.f.n.a+sY(y(yl(e.b,Fn),127))+e.c,u=y(yl(e.b,bn),127),w=y(yl(e.b,on),127),g=d.Math.max(0,u.n.d-p),g=d.Math.max(g,w.n.d-p),o=d.Math.max(0,u.n.a-n),o=d.Math.max(o,w.n.a-n),u.n.d=g,w.n.d=g,u.n.a=o,w.n.a=o)}i(zxn,"YJb");function uIe(e,n,o,u){var p,g,w,k,A,D;if(o==null){for(p=y(e.g,122),k=0;k<e.i;++k)if(w=p[k],w.Jk()==n)return qo(e,w,u)}return g=(tl(),y(n,69).vk()?y(o,75):zm(n,o)),hf(e.e)?(D=!O$(e,n),u=xu(e,g,u),A=n.Hk()?av(e,3,n,null,o,oR(e,n,o,Ge(n,103)&&(y(n,19).Bb&Jo)!=0),D):av(e,1,n,n.gk(),o,-1,D),u?u.lj(A):u=A):u=xu(e,g,u),u}i(uIe,"iee");function kGt(){this.b=new lv,this.d=new lv,this.e=new lv,this.c=new lv,this.a=new jn,this.f=new jn,CC(to,new Vyt,new Wyt),CC(MUe,new rbt,new nbt),CC(qBe,new ibt,new abt),CC(YBe,new sbt,new obt),CC(fir,new lbt,new cbt),CC(tSn,new Hyt,new qyt),CC(iSn,new Yyt,new Xyt),CC(rSn,new Kyt,new Jyt),CC(nSn,new Qyt,new Zyt),CC(oSn,new ebt,new tbt)}i(kGt,"udd");function BI(e,n){var o,u,p,g,w;for(e=e==null?Qu:(Ur(e),e),p=0;p<n.length;p++)n[p]=U2n(n[p]);for(o=new sC,w=0,u=0;u<n.length&&(g=e.indexOf("%s",w),g!=-1);)o.a+=""+Yd(e==null?Qu:(Ur(e),e),w,g),qc(o,n[u++]),w=g+2;if(_Lt(o,e,w,e.length),u<n.length){for(o.a+=" [",qc(o,n[u++]);u<n.length;)o.a+=Tu,qc(o,n[u++]);o.a+="]"}return o.a}i(BI,"hc");function hIe(e,n){var o,u,p,g,w,k,A;for(o=0,A=new ye(n);A.a<A.c.c.length;){for(k=y(de(A),12),ZLe(e.b,e.d[k.p]),w=0,p=new Kg(k.b);Xl(p.a)||Xl(p.b);)u=y(Xl(p.a)?de(p.a):de(p.b),17),x7t(u)?(g=m6e(e,k==u.c?u.d:u.c),g>e.d[k.p]&&(o+=pRe(e.b,g),ov(e.a,Et(g)))):++w;for(o+=e.b.d*w;!e9(e.a);)YRe(e.b,y(F5(e.a),15).a)}return o}i(hIe,"VIc");function CGt(e){var n,o,u,p,g,w;return g=0,n=Qd(e),n.ik()&&(g|=4),(e.Bb&vh)!=0&&(g|=2),Ge(e,103)?(o=y(e,19),p=rl(o),(o.Bb&Tc)!=0&&(g|=32),p&&(On(Wk(p)),g|=8,w=p.t,(w>1||w==-1)&&(g|=16),(p.Bb&Tc)!=0&&(g|=64)),(o.Bb&Jo)!=0&&(g|=tb),g|=Wp):Ge(n,459)?g|=512:(u=n.ik(),u&&(u.i&1)!=0&&(g|=256)),(e.Bb&512)!=0&&(g|=128),g}i(CGt,"Che");function Uxn(e,n){var o;return e.f==rbe?(o=Ix(Rl((yh(),Ro),n)),e.e?o==4&&n!=(h6(),iA)&&n!=(h6(),nA)&&n!=(h6(),nbe)&&n!=(h6(),ibe):o==2):e.d&&(e.d.Gc(n)||e.d.Gc(U5(Rl((yh(),Ro),n)))||e.d.Gc(qC((yh(),Ro),e.b,n)))?!0:e.f&&q9e((yh(),e.f),VF(Rl(Ro,n)))?(o=Ix(Rl(Ro,n)),e.e?o==4:o==2):!1}i(Uxn,"Iie");function Vxn(e,n){var o,u,p,g,w,k,A,D;for(g=new Pt,n.b.c.length=0,o=y(Rh(Y7e(new Er(null,new Rr(new E1(e.a.b),1))),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),p=o.Jc();p.Ob();)if(u=y(p.Pb(),15),w=oRe(e.a,u),w.b!=0)for(k=new Nc(n),tn(g.c,k),k.p=u.a,D=ei(w,0);D.b!=D.d.c;)A=y(Qn(D),9),Us(A,k);Is(n.b,g)}i(Vxn,"T8b");function zfe(e){var n,o,u,p,g,w,k;for(k=new jn,u=new ye(e.a.b);u.a<u.c.c.length;)n=y(de(u),60),Oi(k,n,new Pt);for(p=new ye(e.a.b);p.a<p.c.c.length;)for(n=y(de(p),60),n.i=Ys,w=n.c.Jc();w.Ob();)g=y(w.Pb(),60),y(Yl(Sl(k.f,g)),16).Ec(n);for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),60),n.c.$b(),n.c=y(Yl(Sl(k.f,n)),16);W$t(e)}i(zfe,"gFb");function Ufe(e){var n,o,u,p,g,w,k;for(k=new jn,u=new ye(e.a.b);u.a<u.c.c.length;)n=y(de(u),82),Oi(k,n,new Pt);for(p=new ye(e.a.b);p.a<p.c.c.length;)for(n=y(de(p),82),n.o=Ys,w=n.f.Jc();w.Ob();)g=y(w.Pb(),82),y(Yl(Sl(k.f,g)),16).Ec(n);for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),82),n.f.$b(),n.f=y(Yl(Sl(k.f,n)),16);M$t(e)}i(Ufe,"eSb");function Wxn(e,n){var o,u,p,g,w,k,A,D,M,F,z;for(A=Zs(n.a),p=He(Xe(oe(A,(Bt(),Fv))))*2,M=He(Xe(oe(A,Y3))),D=d.Math.max(p,M),g=tt(po,vl,30,n.f-n.c+1,15,1),u=-D,o=0,k=n.b.Jc();k.Ob();)w=y(k.Pb(),9),u+=e.a[w.c.p]+D,g[o++]=u;for(u+=e.a[n.a.c.p]+D,g[o++]=u,z=new ye(n.e);z.a<z.c.c.length;)F=y(de(z),9),u+=e.a[F.c.p]+D,g[o++]=u;return g}i(Wxn,"S6b");function Hxn(e,n,o,u){var p,g,w,k,A,D,M,F,z;for(z=new My(new akt(e)),k=Se(Ee(e1,1),Zy,9,0,[n,o]),A=0,D=k.length;A<D;++A)for(w=k[A],F=pI(w,u).Jc();F.Ob();)for(M=y(F.Pb(),12),g=new Kg(M.b);Xl(g.a)||Xl(g.b);)p=y(Xl(g.a)?de(g.a):de(g.b),17),Mo(p)||(z.a.yc(M,(qr(),Dv))==null,x7t(p)&&jF(z,M==p.c?p.d:p.c));return oi(z),new Ah(z)}i(Hxn,"PIc");function qxn(e,n,o,u){var p,g,w,k,A,D,M,F;return w=y(St(o,(Ri(),J6)),8),A=w.a,M=w.b+e,p=d.Math.atan2(M,A),p<0&&(p+=vw),p+=n,p>vw&&(p-=vw),k=y(St(u,J6),8),D=k.a,F=k.b+e,g=d.Math.atan2(F,D),g<0&&(g+=vw),g+=n,g>vw&&(g-=vw),Wg(),$p(1e-10),d.Math.abs(p-g)<=1e-10||p==g||isNaN(p)&&isNaN(g)?0:p<g?-1:p>g?1:V2(isNaN(p),isNaN(g))}i(qxn,"B_c");function fIe(e,n,o,u){var p,g,w;n&&(g=He(Xe(oe(n,(Ca(),lb))))+u,w=o+He(Xe(oe(n,zZ)))/2,dt(n,Aj,Et(mi(vc(d.Math.round(g))))),dt(n,Rj,Et(mi(vc(d.Math.round(w))))),n.d.b==0||fIe(e,y(jq((p=ei(new A1(n).a.d,0),new aC(p))),40),o+He(Xe(oe(n,zZ)))+e.b,u+He(Xe(oe(n,gL)))),oe(n,I1e)!=null&&fIe(e,y(oe(n,I1e),40),o,u))}i(fIe,"fZc");function Yxn(e,n){var o,u,p,g;if(g=y(St(e,(Ri(),ME)),64).g-y(St(n,ME),64).g,g!=0)return g;if(o=y(St(e,Nye),15),u=y(St(n,Nye),15),o&&u&&(p=o.a-u.a,p!=0))return p;switch(y(St(e,ME),64).g){case 1:return ha(e.i,n.i);case 2:return ha(e.j,n.j);case 3:return ha(n.i,e.i);case 4:return ha(n.j,e.j);default:throw xe(new El($Me))}}i(Yxn,"tsd");function dIe(e){var n,o,u;return(e.Db&64)!=0?Tfe(e):(n=new Lf(uPe),o=e.k,o?Li(Li((n.a+=' "',n),o),'"'):(!e.n&&(e.n=new xt(nc,e,1,7)),e.n.i>0&&(u=(!e.n&&(e.n=new xt(nc,e,1,7)),y(je(e.n,0),157)).a,!u||Li(Li((n.a+=' "',n),u),'"'))),Li(wx(Li(wx(Li(wx(Li(wx((n.a+=" (",n),e.i),","),e.j)," | "),e.g),","),e.f),")"),n.a)}i(dIe,"Vzd");function EGt(e){var n,o,u;return(e.Db&64)!=0?Tfe(e):(n=new Lf(hPe),o=e.k,o?Li(Li((n.a+=' "',n),o),'"'):(!e.n&&(e.n=new xt(nc,e,1,7)),e.n.i>0&&(u=(!e.n&&(e.n=new xt(nc,e,1,7)),y(je(e.n,0),157)).a,!u||Li(Li((n.a+=' "',n),u),'"'))),Li(wx(Li(wx(Li(wx(Li(wx((n.a+=" (",n),e.i),","),e.j)," | "),e.g),","),e.f),")"),n.a)}i(EGt,"iAd");function Xxn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;for(ee=-1,ie=0,M=n,F=0,z=M.length;F<z;++F){for(D=M[F],w=D,k=0,A=w.length;k<A;++k)for(g=w[k],o=new URe(e,ee==-1?n[0]:n[ee],y(oe(Zs(g),(Bt(),t1)),269),CPt(g),Kt(Xt(oe(Zs(g),$me)))),u=0;u<g.j.c.length;u++)for(p=u+1;p<g.j.c.length;p++)G8t(o,y(Wt(g.j,u),12),y(Wt(g.j,p),12))>0&&++ie;++ee}return ie}i(Xxn,"IGc");function Kxn(e,n){var o,u,p,g,w;for(n==(uI(),b1e)&&Y$(y(oa(e.a,(c3(),ij)),16)),p=y(oa(e.a,(c3(),ij)),16).Jc();p.Ob();)switch(u=y(p.Pb(),107),o=y(Wt(u.j,0),113).d.j,g=new Ah(u.j),zs(g,new E0t),n.g){case 2:gfe(e,g,o,(jx(),Nv),1);break;case 1:case 0:w=G2n(g),gfe(e,new sv(g,0,w),o,(jx(),Nv),0),gfe(e,new sv(g,w,g.c.length),o,Nv,1)}}i(Kxn,"hic");function Jxn(e){var n,o,u,p,g,w,k;for(p=y(oe(e,(Tt(),bT)),9),u=e.j,o=(_r(0,u.c.length),y(u.c[0],12)),w=new ye(p.j);w.a<w.c.c.length;)if(g=y(de(w),12),Qe(g)===Qe(oe(o,aa))){g.j==(zt(),sn)&&e.p>p.p?(Bs(g,Fn),g.d&&(k=g.o.b,n=g.a.b,g.a.b=k-n)):g.j==Fn&&p.p>e.p&&(Bs(g,sn),g.d&&(k=g.o.b,n=g.a.b,g.a.b=-(k-n)));break}return p}i(Jxn,"tIc");function pIe(e,n){var o,u,p,g,w,k,A;if(n==null||n.length==0)return null;if(p=y(Jc(e.a,n),144),!p){for(u=(k=new S1(e.b).a.vc().Jc(),new bk(k));u.a.Ob();)if(o=(g=y(u.a.Pb(),45),y(g.kd(),144)),w=o.c,A=n.length,Cr(w.substr(w.length-A,A),n)&&(n.length==w.length||Do(w,w.length-n.length-1)==46)){if(p)return null;p=o}p&&Al(e.a,n,p)}return p}i(pIe,"pdd");function aR(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(g=new Lt(n,o),M=new ye(e.a);M.a<M.c.c.length;)for(D=y(de(M),9),ra(D.n,g),z=new ye(D.j);z.a<z.c.c.length;)for(F=y(de(z),12),p=new ye(F.g);p.a<p.c.c.length;)for(u=y(de(p),17),e3(u.a,g),w=y(oe(u,(Bt(),Dl)),79),w&&e3(w,g),A=new ye(u.b);A.a<A.c.c.length;)k=y(de(A),70),ra(k.n,g)}i(aR,"aUb");function Qxn(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(g=new Lt(n,o),M=new ye(e.a);M.a<M.c.c.length;)for(D=y(de(M),9),ra(D.n,g),z=new ye(D.j);z.a<z.c.c.length;)for(F=y(de(z),12),p=new ye(F.g);p.a<p.c.c.length;)for(u=y(de(p),17),e3(u.a,g),w=y(oe(u,(Bt(),Dl)),79),w&&e3(w,g),A=new ye(u.b);A.a<A.c.c.length;)k=y(de(A),70),ra(k.n,g)}i(Qxn,"VXb");function SGt(e){if((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b).i==0)throw xe(new b5("Edges must have a source."));if((!e.c&&(e.c=new zr(Hn,e,5,8)),e.c).i==0)throw xe(new b5("Edges must have a target."));if(!e.b&&(e.b=new zr(Hn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c.i<=1)))throw xe(new b5("Hyperedges are not supported."))}i(SGt,"I$b");function Zxn(e,n){var o,u;n.Tg("Partition preprocessing",1),u=y(Rh(Hi(new Er(null,new Rr(e.a,16)),new rgt),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),o=y(Rh(Hi(jl(Hi(new Er(null,new Rr(e.a,16)),new ngt),new igt),new yTt(u)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[Zu]))),16),ts(o.Mc(),new agt),n.Ug()}i(Zxn,"X9b");function AGt(e){var n,o,u;ea(e,(Bt(),xT))&&(u=y(oe(e,xT),22),!u.dc()&&(o=(n=y(ug(fl),10),new ud(n,y(Np(n,n.length),10),0)),u.Gc((d3(),Vf))?Gp(o,Vf):Gp(o,Zp),u.Gc(ip)||Gp(o,ip),u.Gc(Jp)?Gp(o,eg):u.Gc(ty)?Gp(o,i1):u.Gc(Qp)&&Gp(o,ap),u.Gc(eg)?Gp(o,Jp):u.Gc(i1)?Gp(o,ty):u.Gc(ap)&&Gp(o,Qp),dt(e,xT,o)))}i(AGt,"u2b");function RGt(e,n){var o,u;for(this.b=new Pt,this.e=new Pt,this.a=e,this.d=n,zgn(this),Kpn(this),this.b.dc()?this.c=e.c.p:this.c=y(this.b.Xb(0),9).c.p,this.e.c.length==0?this.f=e.c.p:this.f=y(Wt(this.e,this.e.c.length-1),9).c.p,u=y(oe(e,(Tt(),jM)),16).Jc();u.Ob();)if(o=y(u.Pb(),70),ea(o,(Bt(),yZ))){this.d=y(oe(o,yZ),231);break}}i(RGt,"l7b");function wf(e,n,o){var u,p,g,w,k,A,D,M;for(u=y(Jr(e.b,n),48),g=y(Jr(e.b,o),48),p=y(Jr(e.g,n),48),w=y(Jr(e.g,o),48),u.a.yc(o,u),w.a.yc(n,w),M=g.a.ec().Jc();M.Ob();)D=y(M.Pb(),9),u.a.yc(D,u),ys(y(Jr(e.g,D),48),n),Fo(y(Jr(e.g,D),48),p);for(A=p.a.ec().Jc();A.Ob();)k=y(A.Pb(),9),w.a.yc(k,w),ys(y(Jr(e.b,k),48),o),Fo(y(Jr(e.b,k),48),g)}i(wf,"wlc");function iG(e,n,o){var u,p,g,w,k,A,D,M;for(u=y(Jr(e.a,n),48),g=y(Jr(e.a,o),48),p=y(Jr(e.b,n),48),w=y(Jr(e.b,o),48),u.a.yc(o,u),w.a.yc(n,w),M=g.a.ec().Jc();M.Ob();)D=y(M.Pb(),9),u.a.yc(D,u),ys(y(Jr(e.b,D),48),n),Fo(y(Jr(e.b,D),48),p);for(A=p.a.ec().Jc();A.Ob();)k=y(A.Pb(),9),w.a.yc(k,w),ys(y(Jr(e.a,k),48),o),Fo(y(Jr(e.a,k),48),g)}i(iG,"dIc");function J0(){J0=U;var e;for(mQ=new O1(1,1),g0e=new O1(1,10),AM=new O1(0,0),Qqt=new O1(-1,1),Zqt=Se(Ee(sE,1),Dt,91,0,[AM,mQ,new O1(1,2),new O1(1,3),new O1(1,4),new O1(1,5),new O1(1,6),new O1(1,7),new O1(1,8),new O1(1,9),g0e]),yQ=tt(sE,Dt,91,32,0,1),e=0;e<yQ.length;e++)yQ[e]=Oq($m(1,e),0)?yv($m(1,e)):j9(yv(zy($m(1,e))))}i(J0,"Zhb");function LGt(e,n,o,u,p,g,w){if(e.c=u.Jf().a,e.d=u.Jf().b,p&&(e.c+=p.Jf().a,e.d+=p.Jf().b),e.b=n.Kf().a,e.a=n.Kf().b,!p)o?e.c-=w+n.Kf().a:e.c+=u.Kf().a+w;else switch(p.$f().g){case 0:case 2:e.c+=p.Kf().a+w+g.a+w;break;case 4:e.c-=w+g.a+w+n.Kf().a;break;case 1:e.c+=p.Kf().a+w,e.d-=w+g.b+w+n.Kf().b;break;case 3:e.c+=p.Kf().a+w,e.d+=p.Kf().b+w+g.b+w}}i(LGt,"mHb");function eTn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie;if(g=o,o<u)for(z=(ee=new k$(e.p),ie=new k$(e.p),Fo(ee.e,e.e),ee.q=e.q,ee.r=ie,SY(ee),Fo(ie.j,e.j),ie.r=ee,SY(ie),new Ko(ee,ie)),F=y(z.a,116),M=y(z.b,116),p=(_r(g,n.c.length),y(n.c[g],340)),w=rGt(e,F,M,p),D=o+1;D<=u;D++)k=(_r(D,n.c.length),y(n.c[D],340)),A=rGt(e,F,M,k),jgn(k,A,p,w)&&(p=k,w=A,g=D);return g}i(eTn,"WPc");function tTn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie;for(w=y(je(n,0),26),Xh(w,0),Kh(w,0),z=new Pt,tn(z.c,w),k=w,g=new U8e(e.a,w.g,w.f,(NI(),Ij)),ee=1;ee<n.i;ee++)ie=y(je(n,ee),26),A=ede(e,RE,ie,k,g,z,o),D=ede(e,q6,ie,k,g,z,o),M=ede(e,vN,ie,k,g,z,o),F=ede(e,bN,ie,k,g,z,o),p=I3n(e,A,D,M,F,ie,k,u),Xh(ie,p.d),Kh(ie,p.e),pJr(p,Ij),g=p,k=ie,tn(z.c,ie);return g}i(tTn,"Z4c");function rTn(e,n,o){var u,p,g,w,k,A,D,M,F,z;if(M=null,z=n,F=aIt(e,JLt(o),z),E7(F,N1(z,am)),w=Bx(z,dPe),u=new TSt(e,F),sFt(u.a,u.b,w),k=Bx(z,Nge),p=new kSt(e,F),oFt(p.a,p.b,k),(!F.b&&(F.b=new zr(Hn,F,4,7)),F.b).i==0||(!F.c&&(F.c=new zr(Hn,F,5,8)),F.c).i==0)throw g=N1(z,am),A=JWt+g,D=A+$R,xe(new j0(D));return SK(z,F),uEn(e,z,F),M=she(e,z,F),M}i(rTn,"iCd");function nTn(e,n){var o,u,p,g,w,k,A;for(p=tt(pi,Pi,30,e.e.a.c.length,15,1),w=new ye(e.e.a);w.a<w.c.c.length;)g=y(de(w),124),p[g.d]+=g.b.a.c.length;for(k=BF(n);k.b!=0;)for(g=y(k.b==0?null:(In(k.b!=0),dd(k,k.a.a)),124),u=Y5(new ye(g.g.a));u.Ob();)o=y(u.Pb(),217),A=o.e,A.e=d.Math.max(A.e,g.e+o.a),--p[A.d],p[A.d]==0&&Ha(k,A,k.c.b,k.c)}i(nTn,"UGb");function _Gt(e){var n,o,u,p,g,w,k,A,D,M,F;for(o=bo,p=Ui,k=new ye(e.e.a);k.a<k.c.c.length;)g=y(de(k),124),p=d.Math.min(p,g.e),o=d.Math.max(o,g.e);for(n=tt(pi,Pi,30,o-p+1,15,1),w=new ye(e.e.a);w.a<w.c.c.length;)g=y(de(w),124),g.e-=p,++n[g.e];if(u=0,e.k!=null)for(D=e.k,M=0,F=D.length;M<F&&(A=D[M],n[u++]+=A,n.length!=u);++M);return n}i(_Gt,"YGb");function iTn(e,n){var o,u,p,g,w,k;if(n.Tg("Edge routing",1),p=y(oe(e,(uc(),M1e)),385),p==(cI(),E1e))uun(e);else if(p==Ej)for(y(ff(j1(Hi(new Er(null,new Rr(e.b,16)),new o1t))),40),g=He(Xe(oe(e,rze))),w=He(Xe(oe(e,Jje))),k=y(oe(e,CT),86),fEn(e,k,g),VEn(e,k,g,w),HEn(e,k,g,w),u=ei(e.a,0);u.b!=u.d.c;)o=y(Qn(u),65),o.a.b<2&&b9e(o);n.Ug()}i(iTn,"rZc");function DGt(e){switch(e.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return y(rIe(e),15).a==e.o;case 1:case 2:{if(e.o==-2)return!1;switch(e.p){case 0:case 1:case 2:case 6:case 5:case 7:return T9(e.k,e.f);case 3:case 4:return e.j==e.e;default:return e.n==null?e.g==null:ta(e.n,e.g)}}default:return!1}}i(DGt,"ZId");function aTn(e){var n,o,u,p;for(p=e.b,n=!1,u=new ye(e.i.d);u.a<u.c.c.length;)if(o=y(de(u),70),Kt(Xt(oe(o,(Bt(),wE))))){n=!0;break}dh(p,(zt(),sn))?dh(p,Fn)?dh(p,on)?dh(p,bn)||Fy(e,n?on:sn,n?(jp(),O3):(jp(),XR),n?null:e.c):Fy(e,n?bn:sn,n?(jp(),O3):(jp(),YR),n?null:e.a):Fy(e,sn,(jp(),O3),null):Fy(e,Fn,(jp(),O3),null)}i(aTn,"Wjc");function IGt(e,n,o){var u,p,g,w,k,A,D,M,F;for(g=new vu(n.c.length),D=new ye(n);D.a<D.c.c.length;)w=y(de(D),9),Nt(g,e.b[w.c.p][w.p]);for(V3n(e,g,o),F=null;F=G4n(g);)Ekn(e,y(F.a,239),y(F.b,239),g);for(n.c.length=0,p=new ye(g);p.a<p.c.c.length;)for(u=y(de(p),239),k=u.d,A=0,M=k.length;A<M;++A)w=k[A],tn(n.c,w),e.a[w.c.p][w.p].a=Hg(u.g,u.d[0]).a}i(IGt,"IFc");function sTn(e,n){var o,u,p;switch(n.Tg("Breaking Point Insertion",1),u=new I9e(e),y(oe(e,(Bt(),t1e)),350).g){case 2:p=new zSe;break;case 0:p=new $Se;break;default:p=new USe}if(o=p.mg(e,u),Kt(Xt(oe(e,YGe)))&&(o=Q3n(e,o)),!p.ng()&&ea(e,AZ))switch(y(oe(e,AZ),351).g){case 2:o=aFt(u,o);break;case 1:o=XPt(u,o)}if(o.dc()){n.Ug();return}yEn(e,o),n.Ug()}i(sTn,"imc");function MGt(e){Sk(e,new Xx(Ck(xk(kk(Tk(new yx,OR),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new hbt))),_t(e,OR,C3,BVe),_t(e,OR,OJ,Vt(AN)),_t(e,OR,nPe,Vt(MVe)),_t(e,OR,QC,Vt(NVe)),_t(e,OR,C6,Vt(PVe)),_t(e,OR,kR,Vt(OVe))}i(MGt,"Hkd");function qK(e,n,o){var u,p,g,w,k;if(u=mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))),k=mi($o(Ym,jm(mi($o(o==null?0:Aa(o),Xm)),15))),g=iI(e,n,u),g&&k==g.f&&D1(o,g.i))return o;if(w=aI(e,o,k),w)throw xe(new rn("value already present: "+o));return p=new LY(n,u,o,k),g?(VC(e,g),K$(e,p,g),g.e=null,g.c=null,g.i):(K$(e,p,null),DPt(e),null)}i(qK,"xo");function oTn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;M=o.a.c,w=o.a.c+o.a.b,g=y(Jr(o.c,n),457),ee=g.f,ie=g.a,g.b?A=new Lt(w,ee):A=new Lt(M,ee),g.c?F=new Lt(M,ie):F=new Lt(w,ie),p=M,o.p||(p+=e.c),p+=o.F+o.v*e.b,D=new Lt(p,ee),z=new Lt(p,ie),nI(n.a,Se(Ee(to,1),Dt,8,0,[A,D])),k=o.d.a.gc()>1,k&&(u=new Lt(p,o.b),_i(n.a,u)),nI(n.a,Se(Ee(to,1),Dt,8,0,[z,F]))}i(oTn,"H1b");function Tv(){Tv=U,IZ=new Rk(wg,0),wj=new Rk("NIKOLOV",1),xj=new Rk("NIKOLOV_PIXEL",2),sje=new Rk("NIKOLOV_IMPROVED",3),oje=new Rk("NIKOLOV_IMPROVED_PIXEL",4),aje=new Rk("DUMMYNODE_PERCENTAGE",5),lje=new Rk("NODECOUNT_PERCENTAGE",6),MZ=new Rk("NO_BOUNDARY",7),fL=new Rk("MODEL_ORDER_LEFT_TO_RIGHT",8),tN=new Rk("MODEL_ORDER_RIGHT_TO_LEFT",9)}i(Tv,"Rzc");function Vfe(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee;return M=null,z=B9e(e,n),u=null,k=y(St(n,(Ri(),Enr)),300),k?u=k:u=(tI(),Yj),ee=u,ee==(tI(),Yj)&&(p=null,D=y(Jr(e.r,z),300),D?p=D:p=jye,ee=p),Oi(e.r,n,ee),g=null,A=y(St(n,Cnr),278),A?g=A:g=(B7(),zj),F=g,F==(B7(),zj)&&(w=null,o=y(Jr(e.b,z),278),o?w=o:w=fee,F=w),M=y(Oi(e.b,n,F),278),M}i(Vfe,"XBd");function lTn(e){var n,o,u,p,g;for(u=e.length,n=new r9,g=0;g<u;)if(o=Do(e,g++),!(o==9||o==10||o==12||o==13||o==32)){if(o==35){for(;g<u&&(o=Do(e,g++),!(o==13||o==10)););continue}o==92&&g<u?(p=(un(g,e.length),e.charCodeAt(g)))==35||p==9||p==10||p==12||p==13||p==32?(u7(n,p&As),++g):(n.a+="\\",u7(n,p&As),++g):u7(n,o&As)}return n.a}i(lTn,"Hqe");function gIe(){gIe=U,Mtr=new br(EOe,(qr(),!1)),Btr=new br(SOe,Et(0)),Ftr=new br(AOe,0),$tr=new br(jJ,!1),pze=(R$(),HZ),Otr=new br(oge,pze),Et(0),Ntr=new br(lge,Et(1)),mze=(FX(),X1e),Utr=new br(ROe,mze),yze=(cX(),V1e),Vtr=new br(LOe,yze),gze=(yK(),Y1e),Ptr=new br(_Oe,gze),ztr=new br(cge,0),Gtr=new br(uge,!1),jtr=new br(DOe,!1)}i(gIe,"m1c");function cTn(e,n){var o,u,p;for(u=new ye(n);u.a<u.c.c.length;)if(o=y(de(u),26),Sr(e.a,o,o),Sr(e.b,o,o),p=p3(o),p.c.length!=0)for(e.d&&e.d.Fg(p),Sr(e.a,o,(_r(0,p.c.length),y(p.c[0],26))),Sr(e.b,o,y(Wt(p,p.c.length-1),26));rhe(p).c.length!=0;)p=rhe(p),e.d&&e.d.Fg(p),Sr(e.a,o,(_r(0,p.c.length),y(p.c[0],26))),Sr(e.b,o,y(Wt(p,p.c.length-1),26))}i(cTn,"c0c");function Wfe(e,n,o){var u,p,g,w,k,A;if(n)if(o<=-1){if(u=Nr(n.Ah(),-1-o),Ge(u,103))return y(u,19);for(w=y(n.Jh(u),163),k=0,A=w.gc();k<A;++k)if(Qe(w.Sl(k))===Qe(e)&&(p=w.Rl(k),Ge(p,103)&&(g=y(p,19),(g.Bb&Tc)!=0)))return g;throw xe(new El("The containment feature could not be located"))}else return rl(y(Nr(e.Ah(),o),19));else return null}i(Wfe,"Htd");function uTn(e,n){var o,u,p,g,w,k,A;for(n.Tg("Node placement repeater",1),A=P9e(y(oe(e,(Bt(),Xme)),303)),dt(e,aL,null),g=new ye(e.b);g.a<g.c.c.length;)for(p=y(de(g),25),k=new ye(p.a);k.a<k.c.c.length;)w=y(de(k),9),dt(w,_w,null),dt(w,Bv,null),w.n.b=0;o=(K8(),new IY(e,!0,!0,new Wpt)),Zc(djt(o),new T5e(o)),u=new KB(o),Rhe(u),A.If(e,n),n.Ug()}i(uTn,"D8b");function hTn(e){var n,o,u,p,g,w,k,A,D,M;for(o=0,k=new ye(e.d);k.a<k.c.c.length;)w=y(de(k),107),w.i&&(w.i.c=o++);for(n=Fk(ah,[Dt,vg],[171,30],16,[o,o],2),M=e.d,p=0;p<M.c.length;p++)if(A=(_r(p,M.c.length),y(M.c[p],107)),A.i)for(g=p+1;g<M.c.length;g++)D=(_r(g,M.c.length),y(M.c[g],107)),D.i&&(u=Q1n(A,D),n[A.i.c][D.i.c]=u,n[D.i.c][A.i.c]=u);return n}i(hTn,"_kc");function FI(){FI=U,C1e=new Tx("ROOT_PROC",0),Dje=new Tx("FAN_PROC",1),Oje=new Tx("LEVEL_PROC",2),Pje=new Tx("NEIGHBORS_PROC",3),Nje=new Tx("LEVEL_HEIGHT",4),_je=new Tx("DIRECTION_PROC",5),Bje=new Tx("NODE_POSITION_PROC",6),Rje=new Tx("COMPACTION_PROC",7),Mje=new Tx("LEVEL_COORDS",8),Ije=new Tx("GRAPH_BOUNDS_PROC",9),Lje=new Tx("DETREEIFYING_PROC",10)}i(FI,"FVc");function mIe(e,n){var o,u,p,g,w,k,A,D,M,F;for(F=Ol(n),D=null,p=!1,k=0,M=Pc(F.a).i;k<M;++k)w=y(uG(F,k,(g=y(je(Pc(F.a),k),87),A=g.c,Ge(A,88)?y(A,29):(Dr(),up))),29),o=mIe(e,w),o.dc()||(D?(p||(p=!0,D=new mY(D)),D.Fc(o)):D=o);return u=Obn(e,n),u.dc()?D||(Ir(),Ir(),Go):D?(p||(D=new mY(D)),D.Fc(u),D):u}i(mIe,"Sce");function Hfe(e,n){var o,u,p,g,w,k,A,D,M,F;for(F=Ol(n),D=null,u=!1,k=0,M=Pc(F.a).i;k<M;++k)g=y(uG(F,k,(p=y(je(Pc(F.a),k),87),A=p.c,Ge(A,88)?y(A,29):(Dr(),up))),29),o=Hfe(e,g),o.dc()||(D?(u||(u=!0,D=new mY(D)),D.Fc(o)):D=o);return w=ovn(e,n),w.dc()?D||(Ir(),Ir(),Go):D?(u||(D=new mY(D)),D.Fc(w),D):w}i(Hfe,"Tce");function fTn(e,n){var o,u,p,g,w;for(e.c==null||e.c.length<n.c.length?e.c=tt(ah,vg,30,n.c.length,16,1):t9(e.c),e.a=new Pt,u=0,w=new ye(n);w.a<w.c.c.length;)p=y(de(w),9),p.p=u++;for(o=new ya,g=new ye(n);g.a<g.c.c.length;)p=y(de(g),9),e.c[p.p]||(uFt(e,p),o.b==0||(In(o.b!=0),y(o.a.a.c,16)).gc()<e.a.c.length?dC(o,e.a):Uo(o,e.a),e.a=new Pt);return o}i(fTn,"kEc");function dTn(e,n,o,u){var p,g,w;oe(u.d.i,(Tt(),Ea))==null?Oi(n,Et(Ui-(n.f.c+n.i.c)),new Bk(new oc(Se(Ee(HR,1),SR,17,0,[u])))):(w=0,g=u.d.i,o?(p=y(oe(e.c,Pv),15).a,w=p*y(oe(g,(Bt(),$3)),15).a+y(oe(g,Ea),15).a):w=y(oe(u.d.i,Ea),15).a,Kc(n,Et(w))?ys(y(Jr(n,Et(w)),48),u):Oi(n,Et(w),new Bk(new oc(Se(Ee(HR,1),SR,17,0,[u])))))}i(dTn,"JBc");function aG(e,n,o){var u,p,g,w,k,A;if(Ge(n,75))return qo(e,n,o);for(k=null,g=null,u=y(e.g,122),w=0;w<e.i;++w)if(p=u[w],ta(n,p.kd())&&(g=p.Jk(),Ge(g,103)&&(y(g,19).Bb&Tc)!=0)){k=p;break}return k&&(hf(e.e)&&(A=g.Hk()?av(e,4,g,n,null,oR(e,g,n,Ge(g,103)&&(y(g,19).Bb&Jo)!=0),!0):av(e,g.rk()?2:1,g,n,g.gk(),-1,!0),o?o.lj(A):o=A),o=aG(e,k,o)),o}i(aG,"mee");function pTn(e,n,o){var u,p,g,w;if(w=Ou(e.e.Ah(),n),u=y(e.g,122),tl(),y(n,69).vk()){for(g=0;g<e.i;++g)if(p=u[g],w.$l(p.Jk())&&ta(p,o))return g3(e,g),!0}else if(o!=null){for(g=0;g<e.i;++g)if(p=u[g],w.$l(p.Jk())&&ta(o,p.kd()))return g3(e,g),!0}else for(g=0;g<e.i;++g)if(p=u[g],w.$l(p.Jk())&&p.kd()==null)return g3(e,g),!0;return!1}i(pTn,"Lee");function NGt(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee;for(w=Mk(n.c,o,u),F=new ye(n.a);F.a<F.c.c.length;){for(M=y(de(F),9),ra(M.n,w),ee=new ye(M.j);ee.a<ee.c.c.length;)for(z=y(de(ee),12),g=new ye(z.g);g.a<g.c.c.length;)for(p=y(de(g),17),e3(p.a,w),k=y(oe(p,(Bt(),Dl)),79),k&&e3(k,w),D=new ye(p.b);D.a<D.c.c.length;)A=y(de(D),70),ra(A.n,w);Nt(e.a,M),M.a=e}}i(NGt,"$Tb");function gTn(e,n){var o,u,p,g,w;if(n.Tg("Node and Port Label Placement and Node Sizing",1),T5t((K8(),new IY(e,!0,!0,new _pt))),y(oe(e,(Tt(),au)),22).Gc((ol(),Cd)))for(g=y(oe(e,(Bt(),V3)),22),p=g.Gc((_h(),qj)),w=Kt(Xt(oe(e,FGe))),u=new ye(e.b);u.a<u.c.c.length;)o=y(de(u),25),ts(Hi(new Er(null,new Rr(o.a,16)),new Dpt),new AAt(g,p,w));n.Ug()}i(gTn,"l6b");function OGt(e){Sk(e,new Xx(Ck(xk(kk(Tk(new yx,DR),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new Dyt))),_t(e,DR,dge,Vt(SUe)),_t(e,DR,C3,EUe),_t(e,DR,k3,8),_t(e,DR,mge,Vt(Qrr)),_t(e,DR,QOe,Vt(kUe)),_t(e,DR,ZOe,Vt(CUe)),_t(e,DR,$G,(qr(),!1))}i(OGt,"Q9c");function mTn(e,n){var o,u,p,g,w,k,A;if(o=n.ni(e.a),o&&(A=di(bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),MPe)),A!=null)){for(u=new Pt,g=y3(A,"\\w"),w=0,k=g.length;w<k;++w)p=g[w],Cr(p,"##other")?Nt(u,"!##"+P9(e,Nf(n.ok()))):Cr(p,"##local")?u.c.push(null):Cr(p,HG)?Nt(u,P9(e,Nf(n.ok()))):tn(u.c,p);return u}return Ir(),Ir(),Go}i(mTn,"Qce");function WC(e,n,o,u){this.e=e,this.k=y(oe(e,(Tt(),yE)),317),this.g=tt(e1,Zy,9,n,0,1),this.b=tt(Ts,Dt,346,n,7,1),this.a=tt(e1,Zy,9,n,0,1),this.d=tt(Ts,Dt,346,n,7,1),this.j=tt(e1,Zy,9,n,0,1),this.i=tt(Ts,Dt,346,n,7,1),this.p=tt(Ts,Dt,346,n,7,1),this.n=tt(Ja,Dt,473,n,8,1),cF(this.n,(qr(),!1)),this.f=tt(Ja,Dt,473,n,8,1),cF(this.f,!0),this.o=o,this.c=u}i(WC,"bNc");function sG(e){var n,o,u,p,g,w,k,A;if(e.d)throw xe(new El((_1(B0e),Zde+B0e.k+epe)));for(e.c==(Ss(),g0)&&YC(e,Il),o=new ye(e.a.a);o.a<o.c.c.length;)n=y(de(o),194),n.e=0;for(w=new ye(e.a.b);w.a<w.c.c.length;)for(g=y(de(w),82),g.o=Ys,p=g.f.Jc();p.Ob();)u=y(p.Pb(),82),++u.d.e;for(gCn(e),A=new ye(e.a.b);A.a<A.c.c.length;)k=y(de(A),82),k.k=!0;return e}i(sG,"aSb");function yTn(e,n){var o,u,p,g,w,k,A,D;for(k=new UBt(e),o=new ya,Ha(o,n,o.c.b,o.c);o.b!=0;){for(u=y(o.b==0?null:(In(o.b!=0),dd(o,o.a.a)),113),u.d.p=1,w=new ye(u.e);w.a<w.c.c.length;)p=y(de(w),341),rBt(k,p),D=p.d,D.d.p==0&&Ha(o,D,o.c.b,o.c);for(g=new ye(u.b);g.a<g.c.c.length;)p=y(de(g),341),rBt(k,p),A=p.c,A.d.p==0&&Ha(o,A,o.c.b,o.c)}return k}i(yTn,"yhc");function yIe(e,n){var o,u,p,g,w,k,A;if(!e.e[n.p]){for(e.e[n.p]=!0,e.a[n.p]=!0,g=new jn,o=Qe(oe(e.c,(Bt(),U6)))===Qe((fv(),B3)),Io(Ra(n),new _At(e,g,o)),w=new NAe(new E1(g)),p=w.a.ec().Jc();p.Ob();)u=y(p.Pb(),15).a,k=y(y(Jr(g,Et(u)),48).a.ec().Jc().Pb(),17),!Mo(k)&&(A=k.d.i,e.a[A.p]?Is(e.b,y(Jr(g,Et(u)),18)):yIe(e,A));e.a[n.p]=!1}}i(yIe,"IBc");function PGt(e){var n,o,u,p,g;if(u=He(Xe(St(e,(Ri(),Lnr)))),u!=1)for(kx(e,u*e.g,u*e.f),o=_Zr(Znn((!e.c&&(e.c=new xt(rf,e,9,9)),e.c),new gbt)),g=Gm(pd(Se(Ee(kd,1),Fr,20,0,[(!e.n&&(e.n=new xt(nc,e,1,7)),e.n),(!e.c&&(e.c=new xt(rf,e,9,9)),e.c),o])));Nn(g);)p=y(vn(g),276),p.ph(u*p.mh(),u*p.nh()),p.oh(u*p.lh(),u*p.kh()),n=y(p.mf(uVe),8),n&&(n.a*=u,n.b*=u)}i(PGt,"Mpd");function bIe(e,n,o){var u,p,g,w,k;if(w=(tl(),y(n,69).vk()),W1(e.e,n)){if(n.Qi()&&XK(e,n,o,Ge(n,103)&&(y(n,19).Bb&Jo)!=0))return!1}else for(k=Ou(e.e.Ah(),n),u=y(e.g,122),g=0;g<e.i;++g)if(p=u[g],k.$l(p.Jk()))return(w?ta(p,o):o==null?p.kd()==null:ta(o,p.kd()))?!1:(y(FC(e,g,w?y(o,75):zm(n,o)),75),!0);return Zn(e,w?y(o,75):zm(n,o))}i(bIe,"bee");function bTn(e,n,o,u,p){var g,w,k,A,D,M,F,z;for(w=new ye(e.b);w.a<w.c.c.length;)for(g=y(de(w),25),z=JF(g.a),D=z,M=0,F=D.length;M<F;++M)switch(A=D[M],y(oe(A,(Bt(),tc)),165).g){case 1:Fwn(A),Us(A,n),zOt(A,!0,u);break;case 3:Twn(A),Us(A,o),zOt(A,!1,p)}for(k=new yo(e.b,0);k.b<k.d.gc();)(In(k.b<k.d.gc()),y(k.d.Xb(k.c=k.b++),25)).a.c.length==0&&Wh(k)}i(bTn,"P7b");function vTn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(ee=n.length,A=ee,un(0,n.length),n.charCodeAt(0)==45?(F=-1,z=1,--ee):(F=1,z=0),g=(tde(),tYt)[10],p=ee/g|0,fe=ee%g,fe!=0&&++p,k=tt(pi,Pi,30,p,15,1),o=eYt[8],w=0,ie=z+(fe==0?g:fe),ue=z;ue<A;ue=ie,ie=ue+g)u=Ff((ko(ue,ie,n.length),n.substr(ue,ie-ue)),bo,Ui),D=(iR(),Z_e(k,k,w,o)),D+=Gpn(k,w,u),k[w++]=D;M=w,e.e=F,e.d=M,e.a=k,q9(e)}i(vTn,"wib");function wTn(e){var n,o,u,p,g,w,k,A,D,M,F,z;for(k=e.i,p=Kt(Xt(oe(k,(Bt(),j3)))),M=0,u=0,D=new ye(e.g);D.a<D.c.c.length;)A=y(de(D),17),w=Mo(A),g=w&&p&&Kt(Xt(oe(A,Lw))),z=A.d.i,w&&g?++u:w&&!g?++M:Zs(z).e==k?++u:++M;for(o=new ye(e.e);o.a<o.c.c.length;)n=y(de(o),17),w=Mo(n),g=w&&p&&Kt(Xt(oe(n,Lw))),F=n.c.i,w&&g?++M:w&&!g?++u:Zs(F).e==k?++M:++u;return M-u}i(wTn,"VVb");function BGt(e,n){var o,u,p,g,w,k;if(!n.dc())if(y(n.Xb(0),294).d==(l6(),P3))hmn(e,n);else for(u=n.Jc();u.Ob();){switch(o=y(u.Pb(),294),o.d.g){case 5:Z7(e,o,Tpn(e,o));break;case 0:Z7(e,o,(w=o.f-o.c+1,k=(w-1)/2|0,o.c+k));break;case 4:Z7(e,o,$un(e,o));break;case 2:XNt(o),Z7(e,o,(g=DDe(o),g?o.c:o.f));break;case 1:XNt(o),Z7(e,o,(p=DDe(o),p?o.f:o.c))}tyn(o.a)}}i(BGt,"a7b");function vIe(e,n,o,u){var p,g,w;return w=new rEt(n,o),e.a?u?(p=y(qd(y(Jr(e.b,n),262)),262),++p.a,w.d=u.d,w.e=u.e,w.b=u,w.c=u,u.e?u.e.c=w:p.b=w,u.d?u.d.b=w:e.a=w,u.d=w,u.e=w):(y(qd(e.e),498).b=w,w.d=e.e,e.e=w,p=y(Jr(e.b,n),262),p?(++p.a,g=p.c,g.c=w,w.e=g,p.c=w):(Oi(e.b,n,p=new O7e(w)),++e.c)):(e.a=e.e=w,Oi(e.b,n,new O7e(w)),++e.c),++e.d,w}i(vIe,"qt");function qfe(e,n){var o,u,p,g,w;if(n.Tg("Network simplex",1),e.e.a.c.length<1){n.Ug();return}for(g=new ye(e.e.a);g.a<g.c.c.length;)p=y(de(g),124),p.e=0;for(w=e.e.a.c.length>=40,w&&lkn(e),w3n(e),Gwn(e),o=LNt(e),u=0;o&&u<e.f;)ETn(e,o,Wvn(e,o)),o=LNt(e),++u;w&&k1n(e),e.a?r2n(e,_Gt(e)):_Gt(e),e.b=null,e.d=null,e.p=null,e.c=null,e.g=null,e.i=null,e.n=null,e.o=null,n.Ug()}i(qfe,"QGb");function xTn(e,n){var o,u,p,g,w,k,A;if(!n.e){for(n.e=!0,u=n.d.a.ec().Jc();u.Ob();){if(o=y(u.Pb(),17),n.o&&n.d.a.gc()<=1){w=n.a.c,k=n.a.c+n.a.b,A=new Lt(w+(k-w)/2,n.b),_i(y(n.d.a.ec().Jc().Pb(),17).a,A);continue}if(p=y(Jr(n.c,o),457),p.b||p.c){oTn(e,o,n);continue}g=e.d==(O7(),nN)&&(p.d||p.e)&&mvn(e,n)&&n.d.a.gc()<=1,g?eCn(o,n):bxn(e,o,n)}n.k&&Io(n.d,new Ud)}}i(xTn,"F1b");function wIe(e,n,o,u,p,g){var w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(z=g,k=(u+p)/2+z,fe=o*d.Math.cos(k),Ce=o*d.Math.sin(k),Me=fe-n.g/2,$e=Ce-n.f/2,Xh(n,Me),Kh(n,$e),F=e.a.Dg(n),ue=2*d.Math.acos(o/o+e.c),ue<p-u?(ee=ue/F,w=(u+p-ue)/2):(ee=(p-u)/F,w=u),ie=p3(n),e.e&&(e.e.Eg(e.d),e.e.Fg(ie)),D=new ye(ie);D.a<D.c.c.length;)A=y(de(D),26),M=e.a.Dg(A),wIe(e,A,o+e.c,w,w+ee*M,g),w+=ee*M}i(wIe,"j2c");function TTn(e,n,o){var u;switch(u=o.q.getMonth(),n){case 5:Li(e,Se(Ee(Zt,1),Dt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[u]);break;case 4:Li(e,Se(Ee(Zt,1),Dt,2,6,[Sde,Ade,Rde,Lde,y6,_de,Dde,Ide,Mde,Nde,Ode,Pde])[u]);break;case 3:Li(e,Se(Ee(Zt,1),Dt,2,6,["Jan","Feb","Mar","Apr",y6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[u]);break;default:Um(e,u+1,n)}}i(TTn,"rA");function kTn(e,n,o,u){var p,g,w,k,A,D,M,F,z;for(A=new Lt(o,u),qs(A,y(oe(n,(uv(),DM)),8)),z=new ye(n.e);z.a<z.c.c.length;)F=y(de(z),155),ra(F.d,A),Nt(e.e,F);for(k=new ye(n.c);k.a<k.c.c.length;){for(w=y(de(k),291),g=new ye(w.a);g.a<g.c.c.length;)p=y(de(g),251),ra(p.d,A);Nt(e.c,w)}for(M=new ye(n.d);M.a<M.c.c.length;)D=y(de(M),445),ra(D.d,A),Nt(e.d,D)}i(kTn,"TMb");function xIe(e,n){var o,u,p,g,w,k,A,D;for(A=new ye(n.j);A.a<A.c.c.length;)for(k=y(de(A),12),p=new Kg(k.b);Xl(p.a)||Xl(p.b);)u=y(Xl(p.a)?de(p.a):de(p.b),17),o=u.c==k?u.d:u.c,g=o.i,n!=g&&(D=y(oe(u,(Bt(),lL)),15).a,D<0&&(D=0),w=g.p,e.c[w]==0&&(u.d==o?(e.a[w]-=D+1,e.a[w]<=0&&e.d[w]>0&&_i(e.g,g)):(e.d[w]-=D+1,e.d[w]<=0&&e.a[w]>0&&_i(e.f,g))))}i(xIe,"$Bc");function FGt(e,n,o,u){var p,g,w,k,A,D,M;for(A=new Lt(o,u),qs(A,y(oe(n,(Ca(),pL)),8)),M=ei(n.b,0);M.b!=M.d.c;)D=y(Qn(M),40),ra(D.e,A),_i(e.b,D);for(k=y(Rh(W7e(new Er(null,new Rr(n.a,16))),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16).Jc();k.Ob();){for(w=y(k.Pb(),65),g=ei(w.a,0);g.b!=g.d.c;)p=y(Qn(g),8),p.a+=A.a,p.b+=A.b;_i(e.a,w)}}i(FGt,"oSc");function TIe(e,n){var o,u,p,g;if(0<(Ge(e,18)?y(e,18).gc():dg(e.Jc()))){if(p=n,1<p){for(--p,g=new a1t,u=e.Jc();u.Ob();)o=y(u.Pb(),40),g=pd(Se(Ee(kd,1),Fr,20,0,[g,new A1(o)]));return TIe(g,p)}if(p<0){for(g=new s1t,u=e.Jc();u.Ob();)o=y(u.Pb(),40),g=pd(Se(Ee(kd,1),Fr,20,0,[g,new A1(o)]));if(0<(Ge(g,18)?y(g,18).gc():dg(g.Jc())))return TIe(g,p)}}return y(jq(e.Jc()),40)}i(TIe,"VSc");function CTn(e,n,o){var u,p,g,w;for(o.Tg("Processor order nodes",2),e.b=He(Xe(oe(n,(uc(),N1e)))),e.a=y(oe(n,CT),86),e.a==(Ss(),g0)&&(e.a=p0,dt(n,CT,e.a)),p=new ya,w=ei(n.b,0);w.b!=w.d.c;)g=y(Qn(w),40),Kt(Xt(oe(g,(Ca(),zv))))&&Ha(p,g,p.c.b,p.c);u=(In(p.b!=0),y(p.a.a.c,40)),Njt(e,u),o.eh(1),fIe(e,u,0-He(Xe(oe(u,(Ca(),zZ))))/2,0),o.eh(1),o.Ug()}i(CTn,"eZc");function Zh(){Zh=U,EL=new fC("DEFAULT_MINIMUM_SIZE",0),Qj=new fC("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),gee=new fC("COMPUTE_PADDING",2),NN=new fC("OUTSIDE_NODE_LABELS_OVERHANG",3),mee=new fC("PORTS_OVERHANG",4),bee=new fC("UNIFORM_PORT_SPACING",5),yee=new fC("SPACE_EFFICIENT_PORT_LABELS",6),zye=new fC("FORCE_TABULAR_NODE_LABELS",7),Jj=new fC("ASYMMETRICAL",8)}i(Zh,"xnd");function Yfe(e,n){var o,u,p,g,w,k,A,D;if(n){if(o=(g=n.Ah(),g?Nf(g).ti().pi(g):null),o){for(uw(e,n,o),p=n.Ah(),A=0,D=(p.i==null&&Q0(p),p.i).length;A<D;++A)k=(u=(p.i==null&&Q0(p),p.i),A>=0&&A<u.length?u[A]:null),k.pk()&&!k.qk()&&(Ge(k,335)?Hgn(e,y(k,38),n,o):(w=y(k,19),(w.Bb&Tc)!=0&&Zmn(e,w,n,o)));n.Sh()&&y(o,52).bi(y(n,52).Yh())}return o}else return null}i(Yfe,"cie");function ETn(e,n,o){var u,p,g;if(!n.f)throw xe(new rn("Given leave edge is no tree edge."));if(o.f)throw xe(new rn("Given enter edge is a tree edge already."));for(n.f=!1,wAe(e.p,n),o.f=!0,ys(e.p,o),u=o.e.e-o.d.e-o.a,Rfe(e,o.e,n)||(u=-u),g=new ye(e.e.a);g.a<g.c.c.length;)p=y(de(g),124),Rfe(e,p,n)||(p.e+=u);e.j=1,t9(e.c),y9e(e,y(de(new ye(e.e.a)),124)),Vjt(e)}i(ETn,"PGb");function $Gt(e,n){var o,u,p,g,w,k;if(k=y(oe(n,(Bt(),Qa)),102),k==(uo(),a1)||k==zc)for(p=new Lt(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a).b,w=new ye(e.a);w.a<w.c.c.length;)g=y(de(w),9),g.k==(Yr(),ks)&&(o=y(oe(g,(Tt(),gc)),64),!(o!=(zt(),bn)&&o!=on)&&(u=He(Xe(oe(g,vT))),k==a1&&(u*=p),g.n.b=u-y(oe(g,TT),8).b,GX(g,!1,!0)))}i($Gt,"A3b");function GGt(e,n,o,u,p){o&&(!u||(e.c-e.b&e.a.length-1)>1)&&n==1&&y(e.a[e.b],9).k==(Yr(),_c)?p6(y(e.a[e.b],9),(Bf(),n1)):u&&(!o||(e.c-e.b&e.a.length-1)>1)&&n==1&&y(e.a[e.c-1&e.a.length-1],9).k==(Yr(),_c)?p6(y(e.a[e.c-1&e.a.length-1],9),(Bf(),Vv)):(e.c-e.b&e.a.length-1)==2?(p6(y(lI(e),9),(Bf(),n1)),p6(y(lI(e),9),Vv)):a2n(e,p),dRe(e)}i(GGt,"K7b");function STn(e){var n,o,u,p,g,w,k,A;for(A=new jn,n=new Toe,w=e.Jc();w.Ob();)p=y(w.Pb(),9),k=Ex(sF(new G2,p),n),Ju(A.f,p,k);for(g=e.Jc();g.Ob();)for(p=y(g.Pb(),9),u=new nn(cn(Ra(p).a.Jc(),new B));Nn(u);)o=y(vn(u),17),!Mo(o)&&Up(Dp(_p(Lp(Ip(new Vd,d.Math.max(1,y(oe(o,(Bt(),GGe)),15).a)),1),y(Jr(A,o.c.i),124)),y(Jr(A,o.d.i),124)));return n}i(STn,"nEc");function jGt(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee;if(ihn(e,n,o),g=n[o],ee=u?(zt(),on):(zt(),bn),Aen(n.length,o,u)){for(p=n[u?o-1:o+1],_Re(e,p,u?(sl(),Eu):(sl(),Mh)),A=g,M=0,z=A.length;M<z;++M)w=A[M],nDe(e,w,ee);for(_Re(e,g,u?(sl(),Mh):(sl(),Eu)),k=p,D=0,F=k.length;D<F;++D)w=k[D],w.e||nDe(e,w,M$(ee))}else for(k=g,D=0,F=k.length;D<F;++D)w=k[D],nDe(e,w,ee);return!1}i(jGt,"QEc");function ATn(e,n,o,u,p){var g,w,k,A,D,M,F;for(Ir(),zs(e,new wbt),k=new yo(e,0),F=new Pt,g=0;k.b<k.d.gc();)w=(In(k.b<k.d.gc()),y(k.d.Xb(k.c=k.b++),167)),F.c.length!=0&&ph(w)*pf(w)>g*2?(M=new vX(F),D=ph(w)/pf(w),A=pde(M,n,new p5,o,u,p,D),ra(hg(M.e),A),F.c.length=0,g=0,tn(F.c,M),tn(F.c,w),g=ph(M)*pf(M)+ph(w)*pf(w)):(tn(F.c,w),g+=ph(w)*pf(w));return F}i(ATn,"God");function RTn(e,n){var o,u,p,g,w,k,A;for(n.Tg("Port order processing",1),A=y(oe(e,(Bt(),$Ge)),421),u=new ye(e.b);u.a<u.c.c.length;)for(o=y(de(u),25),g=new ye(o.a);g.a<g.c.c.length;)p=y(de(g),9),w=y(oe(p,Qa),102),k=p.j,w==(uo(),Bw)||w==a1||w==zc?(Ir(),zs(k,OFe)):w!=m0&&w!=Hv&&(Ir(),zs(k,fKt),i0n(k),A==(f$(),m1e)&&zs(k,hKt)),p.i=!0,p9e(p);n.Ug()}i(RTn,"uac");function LTn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;if(hf(e.e)){if(n!=o&&(p=y(e.g,122),ee=p[o],w=ee.Jk(),W1(e.e,w))){for(ie=Ou(e.e.Ah(),w),A=-1,k=-1,u=0,D=0,F=n>o?n:o;D<=F;++D)D==o?k=u++:(g=p[D],M=ie.$l(g.Jk()),D==n&&(A=D==F&&!M?u-1:u),M&&++u);return z=y(yI(e,n,o),75),k!=A&&$8(e,new a$(e.e,7,w,Et(k),ee.kd(),A)),z}}else return y(_fe(e,n,o),75);return y(yI(e,n,o),75)}i(LTn,"Hee");function kIe(e,n){var o,u,p,g,w,k,A,D,M,F;for(F=0,g=new vC,ov(g,n);g.b!=g.c;)for(A=y(F5(g),218),D=0,M=y(oe(n.j,(Bt(),t1)),269),y(oe(n.j,qM),329),w=He(Xe(oe(n.j,pj))),k=He(Xe(oe(n.j,Bme))),M!=(V1(),$v)&&(D+=w*f2n(n.j,A.e,M),D+=k*Xxn(n.j,A.e)),F+=hPt(A.d,A.e)+D,p=new ye(A.b);p.a<p.c.c.length;)u=y(de(p),36),o=y(Wt(e.b,u.p),218),o.s||(F+=DK(e,o));return F}i(kIe,"GGc");function zGt(){zGt=U,Mer=Ei(new us,(eo(),Lc),(ho(),vFe)),Sje=Ei(new us,jc,IQ),Oer=Xc(Ei(new us,jc,GQ),hl,$Q),Ier=Xc(Ei(Ei(new us,jc,pFe),Lc,gFe),hl,mFe),Per=X0(X0(c9(Xc(Ei(new us,Yp,VQ),hl,UQ),Lc),zQ),WQ),Ner=Xc(new us,hl,wFe),_er=Xc(Ei(Ei(Ei(new us,Zm,NQ),Lc,PQ),Lc,qR),hl,OQ),Der=Xc(Ei(Ei(new us,Lc,qR),Lc,DQ),hl,_Q)}i(zGt,"COc");function _Tn(e,n,o,u,p,g){var w,k,A,D,M,F,z;for(D=RMt(n)-RMt(e),w=kBt(n,D),A=Mu(0,0,0);D>=0&&(k=z0n(e,w),!(k&&(D<22?A.l|=1<<D:D<44?A.m|=1<<D-22:A.h|=1<<D-44,e.l==0&&e.m==0&&e.h==0)));)M=w.m,F=w.h,z=w.l,w.h=F>>>1,w.m=M>>>1|(F&1)<<21,w.l=z>>>1|(M&1)<<21,--D;return o&&ahe(A),g&&(u?(_v=I7(e),p&&(_v=mMt(_v,(T7(),XPe)))):_v=Mu(e.l,e.m,e.h)),A}i(_Tn,"dD");function DTn(e,n){var o,u,p,g,w,k,A,D,M,F;for(D=e.e[n.c.p][n.p]+1,A=n.c.a.c.length+1,k=new ye(e.a);k.a<k.c.c.length;){for(w=y(de(k),12),F=0,g=0,p=Gm(pd(Se(Ee(kd,1),Fr,20,0,[new F8(w),new u5(w)])));Nn(p);)u=y(vn(p),12),u.i.c==n.c&&(F+=wen(e,u.i)+1,++g);o=F/g,M=w.j,M==(zt(),bn)?o<D?e.f[w.p]=e.c-o:e.f[w.p]=e.b+(A-o):M==on&&(o<D?e.f[w.p]=e.b+o:e.f[w.p]=e.c-(A-o))}}i(DTn,"LEc");function Ff(e,n,o){var u,p,g,w,k;if(e==null)throw xe(new z0(Qu));for(g=e.length,w=g>0&&(un(0,e.length),e.charCodeAt(0)==45||(un(0,e.length),e.charCodeAt(0)==43))?1:0,u=w;u<g;u++)if(hOt((un(u,e.length),e.charCodeAt(u)))==-1)throw xe(new z0(nT+e+'"'));if(k=parseInt(e,10),p=k<n,isNaN(k))throw xe(new z0(nT+e+'"'));if(p||k>o)throw xe(new z0(nT+e+'"'));return k}i(Ff,"Ydb");function ITn(e){var n,o,u,p,g,w,k;for(w=new ya,g=new ye(e.a);g.a<g.c.c.length;)p=y(de(g),116),foe(p,p.f.c.length),IH(p,p.k.c.length),p.i==0&&(p.o=0,Ha(w,p,w.c.b,w.c));for(;w.b!=0;)for(p=y(w.b==0?null:(In(w.b!=0),dd(w,w.a.a)),116),u=p.o+1,o=new ye(p.f);o.a<o.c.c.length;)n=y(de(o),133),k=n.a,c5e(k,d.Math.max(k.o,u)),IH(k,k.i-1),k.i==0&&Ha(w,k,w.c.b,w.c)}i(ITn,"Zkc");function MTn(e){var n,o,u,p,g,w,k,A;for(w=new ye(e);w.a<w.c.c.length;){for(g=y(de(w),85),u=Pl(y(je((!g.b&&(g.b=new zr(Hn,g,4,7)),g.b),0),84)),k=u.i,A=u.j,p=y(je((!g.a&&(g.a=new xt(Ia,g,6,6)),g.a),0),170),CF(p,p.j+k,p.k+A),kF(p,p.b+k,p.c+A),o=new Sn((!p.a&&(p.a=new Es(qf,p,5)),p.a));o.e!=o.i.gc();)n=y(_n(o),372),Dle(n,n.a+k,n.b+A);ELe(y(St(g,(Ri(),_E)),79),k,A)}}i(MTn,"Bbd");function sR(e){var n;switch(e){case 100:return XC(CM,!0);case 68:return XC(CM,!1);case 119:return XC(Kge,!0);case 87:return XC(Kge,!1);case 115:return XC(Jge,!0);case 83:return XC(Jge,!1);case 99:return XC(Qge,!0);case 67:return XC(Qge,!1);case 105:return XC(Zge,!0);case 73:return XC(Zge,!1);default:throw xe(new ql((n=e,Eqt+n.toString(16))))}}i(sR,"Rpe");function NTn(e){var n,o,u,p,g;switch(p=y(Wt(e.a,0),9),n=new e0(e),Nt(e.a,n),n.o.a=d.Math.max(1,p.o.a),n.o.b=d.Math.max(1,p.o.b),n.n.a=p.n.a,n.n.b=p.n.b,y(oe(p,(Tt(),gc)),64).g){case 4:n.n.a+=2;break;case 1:n.n.b+=2;break;case 2:n.n.a-=2;break;case 3:n.n.b-=2}return u=new Fc,Kl(u,n),o=new Nx,g=y(Wt(p.j,0),12),Bo(o,g),mo(o,u),ra(hg(u.n),g.n),ra(hg(u.a),g.a),n}i(NTn,"HUb");function vd(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee;for(p=n,k=o,u<0&&(p=o,k=n),g=y(Jr(e.a,p),48),A=y(Jr(e.a,k),48),w=y(Jr(e.e,p),48),D=y(Jr(e.e,k),48),g.a.yc(k,g),D.a.yc(p,D),ee=A.a.ec().Jc();ee.Ob();)z=y(ee.Pb(),12),g.a.yc(z,g),ys(y(Jr(e.e,z),48),p),Fo(y(Jr(e.e,z),48),w);for(F=w.a.ec().Jc();F.Ob();)M=y(F.Pb(),12),D.a.yc(M,D),ys(y(Jr(e.a,M),48),k),Fo(y(Jr(e.a,M),48),A)}i(vd,"Olc");function OTn(e,n,o){var u,p,g,w,k;for(g=0,p=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));p.e!=p.i.gc();)u=y(_n(p),26),w="",(!u.n&&(u.n=new xt(nc,u,1,7)),u.n).i==0||(w=y(je((!u.n&&(u.n=new xt(nc,u,1,7)),u.n),0),157).a),k=new ohe(g++,n,w),wc(k,u),dt(k,(Ca(),hN),u),k.e.b=u.j+u.f/2,k.f.a=d.Math.max(u.g,1),k.e.a=u.i+u.g/2,k.f.b=d.Math.max(u.f,1),_i(n.b,k),Ju(o.f,u,k)}i(OTn,"zSc");function CIe(e,n,o){var u,p,g,w;if(n[0]>=e.length)return o.o=0,!0;switch(Do(e,n[0])){case 43:p=1;break;case 45:p=-1;break;default:return o.o=0,!0}if(++n[0],g=n[0],w=IK(e,n),w==0&&n[0]==g)return!1;if(n[0]<e.length&&Do(e,n[0])==58){if(u=w*60,++n[0],g=n[0],w=IK(e,n),w==0&&n[0]==g)return!1;u+=w}else u=w,u<24&&n[0]-g<=2?u*=60:u=u%100+(u/100|0)*60;return u*=p,o.o=-u,!0}i(CIe,"BA");function PTn(e){var n,o,u,p,g,w,k,A,D;for(w=new Pt,u=new nn(cn(Ra(e.b).a.Jc(),new B));Nn(u);)o=y(vn(u),17),Mo(o)&&Nt(w,new V_t(o,_Dt(e,o.c),_Dt(e,o.d)));for(D=(g=new S1(e.e).a.vc().Jc(),new bk(g));D.a.Ob();)k=(n=y(D.a.Pb(),45),y(n.kd(),113)),k.d.p=0;for(A=(p=new S1(e.e).a.vc().Jc(),new bk(p));A.a.Ob();)k=(n=y(A.a.Pb(),45),y(n.kd(),113)),k.d.p==0&&Nt(e.d,yTn(e,k))}i(PTn,"xhc");function BTn(e,n){var o,u,p,g,w,k,A,D,M;for(w=new ye(n.b);w.a<w.c.c.length;)for(g=y(de(w),25),D=new ye(g.a);D.a<D.c.c.length;){for(A=y(de(D),9),M=new Pt,k=0,u=new nn(cn(os(A).a.Jc(),new B));Nn(u);)o=y(vn(u),17),!(Mo(o)||!Mo(o)&&o.c.i.c==o.d.i.c)&&(p=y(oe(o,(Bt(),W6)),15).a,p>k&&(k=p,M.c.length=0),p==k&&Nt(M,new Ko(o.c.i,o)));Ir(),zs(M,e.c),W2(e.b,A.p,M)}}i(BTn,"UNc");function FTn(e,n){var o,u,p,g,w,k,A,D,M;for(w=new ye(n.b);w.a<w.c.c.length;)for(g=y(de(w),25),D=new ye(g.a);D.a<D.c.c.length;){for(A=y(de(D),9),M=new Pt,k=0,u=new nn(cn(Ra(A).a.Jc(),new B));Nn(u);)o=y(vn(u),17),!(Mo(o)||!Mo(o)&&o.c.i.c==o.d.i.c)&&(p=y(oe(o,(Bt(),W6)),15).a,p>k&&(k=p,M.c.length=0),p==k&&Nt(M,new Ko(o.d.i,o)));Ir(),zs(M,e.c),W2(e.f,A.p,M)}}i(FTn,"VNc");function $Tn(e){var n,o,u,p,g,w,k;for(g=qg(e),p=new Sn((!e.e&&(e.e=new zr(Cs,e,7,4)),e.e));p.e!=p.i.gc();)if(u=y(_n(p),85),k=Pl(y(je((!u.c&&(u.c=new zr(Hn,u,5,8)),u.c),0),84)),!Qk(k,g))return!0;for(o=new Sn((!e.d&&(e.d=new zr(Cs,e,8,5)),e.d));o.e!=o.i.gc();)if(n=y(_n(o),85),w=Pl(y(je((!n.b&&(n.b=new zr(Hn,n,4,7)),n.b),0),84)),!Qk(w,g))return!0;return!1}i($Tn,"R$b");function GTn(e){var n,o,u,p,g;u=y(oe(e,(Tt(),aa)),26),g=y(St(u,(Bt(),Bv)),182).Gc((vf(),Fw)),e.e||(p=y(oe(e,au),22),n=new Lt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),p.Gc((ol(),Cd))?(pa(u,Qa,(uo(),zc)),eT(u,n.a,n.b,!1,!0)):Kt(Xt(St(u,Kme)))||eT(u,n.a,n.b,!0,!0)),g?pa(u,Bv,mr(Fw)):pa(u,Bv,(o=y(ug(MN),10),new ud(o,y(Np(o,o.length),10),0)))}i(GTn,"x_b");function jTn(e,n){var o,u,p,g,w,k,A,D;if(D=Xt(oe(n,(uc(),ytr))),D==null||(Ur(D),D)){for(gvn(e,n),p=new Pt,A=ei(n.b,0);A.b!=A.d.c;)w=y(Qn(A),40),o=s9e(e,w,null),o&&(wc(o,n),tn(p.c,o));if(e.a=null,e.b=null,p.c.length>1)for(u=new ye(p);u.a<u.c.c.length;)for(o=y(de(u),120),g=0,k=ei(o.b,0);k.b!=k.d.c;)w=y(Qn(k),40),w.g=g++;return p}return Bp(Se(Ee(wSn,1),VUt,120,0,[n]))}i(jTn,"qSc");function zTn(e,n){var o,u,p,g,w,k;for(p=new ye(n.a);p.a<p.c.c.length;)u=y(de(p),9),g=oe(u,(Tt(),aa)),Ge(g,12)&&(w=y(g,12),k=ljt(n,u,w.o.a,w.o.b),w.n.a=k.a,w.n.b=k.b,Bs(w,y(oe(u,gc),64)));o=new Lt(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),y(oe(n,(Tt(),au)),22).Gc((ol(),Cd))?(dt(e,(Bt(),Qa),(uo(),zc)),y(oe(Zs(e),au),22).Ec(rL),Xjt(e,o,!1)):Xjt(e,o,!0)}i(zTn,"H2b");function UTn(e){var n,o,u,p,g,w,k,A;for(A=new Vh,n=ei(e,0),k=null,o=y(Qn(n),8),p=y(Qn(n),8);n.b!=n.d.c;)k=o,o=p,p=y(Qn(n),8),g=$9t(qs(new Lt(k.a,k.b),o)),w=$9t(qs(new Lt(p.a,p.b),o)),u=10,u=d.Math.min(u,d.Math.abs(g.a+g.b)/2),u=d.Math.min(u,d.Math.abs(w.a+w.b)/2),g.a=GF(g.a)*u,g.b=GF(g.b)*u,w.a=GF(w.a)*u,w.b=GF(w.b)*u,_i(A,ra(g,o)),_i(A,ra(w,o));return A}i(UTn,"xkc");function VTn(e,n,o){var u,p,g,w,k,A;if(o.Tg("Minimize Crossings "+e.a,1),u=n.b.c.length==0||!W8(Hi(new Er(null,new Rr(n.b,16)),new B8(new smt))).zd((z2(),L6)),A=n.b.c.length==1&&y(Wt(n.b,0),25).a.c.length==1,g=Qe(oe(n,(Bt(),G3)))===Qe((z1(),hb)),u||A&&!g){o.Ug();return}p=Mwn(e,n),w=(k=y(Bc(p,0),218),k.c.ig()?k.c.cg()?new ekt(e):new tkt(e):new ZTt(e)),edn(p,w),Adn(e),o.Ug()}i(VTn,"QGc");function $f(e,n,o,u){var p,g,w,k,A;return w=e.Mh(),A=e.Gh(),p=null,A?n&&(Wfe(e,n,o).Bb&Jo)==0?(u=qo(A.Cl(),e,u),e.ai(null),p=n.Nh()):A=null:(w&&(A=w.Nh()),n&&(p=n.Nh())),A!=p&&A&&A.Gl(e),k=e.Ch(),e.yh(n,o),A!=p&&p&&p.Fl(e),e.sh()&&e.th()&&(w&&k>=0&&k!=o&&(g=new Qs(e,1,k,w,null),u?u.lj(g):u=g),o>=0&&(g=new Qs(e,1,o,k==o?w:null,n),u?u.lj(g):u=g)),u}i($f,"Vsd");function UGt(e){var n,o,u;if(e.b==null){if(u=new Dy,e.i!=null&&(ml(u,e.i),u.a+=":"),(e.f&256)!=0){for((e.f&256)!=0&&e.a!=null&&(Yan(e.i)||(u.a+="//"),ml(u,e.a)),e.d!=null&&(u.a+="/",ml(u,e.d)),(e.f&16)!=0&&(u.a+="/"),n=0,o=e.j.length;n<o;n++)n!=0&&(u.a+="/"),ml(u,e.j[n]);e.g!=null&&(u.a+="?",ml(u,e.g))}else ml(u,e.a);e.e!=null&&(u.a+="#",ml(u,e.e)),e.b=u.a}return e.b}i(UGt,"wQd");function WTn(e,n,o,u,p){var g,w,k,A;g=new e0(e),C1(g,(Yr(),iu)),dt(g,(Bt(),Qa),(uo(),zc)),dt(g,(Tt(),aa),n.c.i),w=new Fc,dt(w,aa,n.c),Bs(w,p),Kl(w,g),dt(n.c,Ih,g),k=new e0(e),C1(k,iu),dt(k,Qa,zc),dt(k,aa,n.d.i),A=new Fc,dt(A,aa,n.d),Bs(A,p),Kl(A,k),dt(n.d,Ih,k),Bo(n,w),mo(n,A),Hk(0,o.c.length),f9(o.c,0,g),tn(u.c,k),dt(g,oZ,Et(1)),dt(k,oZ,Et(1))}i(WTn,"y9b");function HTn(e,n,o,u){var p,g,w,k,A;if(A=mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))),p=mi($o(Ym,jm(mi($o(o==null?0:Aa(o),Xm)),15))),k=aI(e,n,A),w=iI(e,o,p),k&&p==k.a&&D1(o,k.g))return o;if(w&&!u)throw xe(new rn("key already present: "+o));return k&&VC(e,k),w&&VC(e,w),g=new LY(o,p,n,A),K$(e,g,w),w&&(w.e=null,w.c=null),k&&(k.e=null,k.c=null),DPt(e),k?k.g:null}i(HTn,"yo");function VGt(e,n,o){var u,p,g,w,k;for(g=0;g<n;g++){for(u=0,k=g+1;k<n;k++)u=Ho(Ho($o(co(e[g],ll),co(e[k],ll)),co(o[g+k],ll)),co(mi(u),ll)),o[g+k]=mi(u),u=Y2(u,32);o[g+n]=mi(u)}for(Ohn(o,o,n<<1),u=0,p=0,w=0;p<n;++p,w++)u=Ho(Ho($o(co(e[p],ll),co(e[p],ll)),co(o[w],ll)),co(mi(u),ll)),o[w]=mi(u),u=Y2(u,32),++w,u=Ho(u,co(o[w],ll)),o[w]=mi(u),u=Y2(u,32);return o}i(VGt,"bjb");function WGt(e,n,o){var u,p,g,w,k,A,D,M;if(!qk(n)){for(A=He(Xe(s3(o.c,(Bt(),QM)))),D=y(s3(o.c,vj),140),!D&&(D=new KD),u=o.a,p=null,k=n.Jc();k.Ob();)w=y(k.Pb(),12),M=0,p?(M=A,M+=p.o.b):M=D.d,g=Ex(sF(new G2,w),e.f),Oi(e.k,w,g),Up(Dp(_p(Lp(Ip(new Vd,0),Po(d.Math.ceil(M))),u),g)),p=w,u=g;Up(Dp(_p(Lp(Ip(new Vd,0),Po(d.Math.ceil(D.a+p.o.b))),u),o.d))}}i(WGt,"gLc");function qTn(e,n,o,u,p,g,w,k){var A,D,M,F,z,ee;return ee=!1,z=g-o.s,M=o.t-n.f+(D=UI(o,z,!1),D.a),u.g+k>z?!1:(F=(A=UI(u,z,!1),A.a),M+k+F<=n.b&&(s$(o,g-o.s),o.c=!0,s$(u,g-o.s),F$(u,o.s,o.t+o.d+k),u.k=!0,ALe(o.q,u),ee=!0,p&&(CX(n,u),u.j=n,e.c.length>w&&(z$((_r(w,e.c.length),y(e.c[w],186)),u),(_r(w,e.c.length),y(e.c[w],186)).a.c.length==0&&Gy(e,w)))),ee)}i(qTn,"F5c");function YTn(e,n){var o,u,p,g,w,k;if(n.Tg("Partition midprocessing",1),p=new Ox,ts(Hi(new Er(null,new Rr(e.a,16)),new egt),new mTt(p)),p.d!=0){for(k=y(Rh(Y7e((g=p.i,new Er(null,(g||(p.i=new xC(p,p.c))).Lc()))),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),u=k.Jc(),o=y(u.Pb(),15);u.Ob();)w=y(u.Pb(),15),$2n(y(oa(p,o),22),y(oa(p,w),22)),o=w;n.Ug()}}i(YTn,"K9b");function $I(e,n){var o,u,p,g,w;if(e.Ab){if(e.Ab){if(w=e.Ab.i,w>0){if(p=y(e.Ab.g,1998),n==null){for(g=0;g<w;++g)if(o=p[g],o.d==null)return o}else for(g=0;g<w;++g)if(o=p[g],Cr(n,o.d))return o}}else if(n==null){for(u=new Sn(e.Ab);u.e!=u.i.gc();)if(o=y(_n(u),588),o.d==null)return o}else for(u=new Sn(e.Ab);u.e!=u.i.gc();)if(o=y(_n(u),588),Cr(n,o.d))return o}return null}i($I,"xxd");function HGt(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;ee=Jln(e,NLe(n),p),bLe(ee,N1(p,am)),C=null,ie=p,ue=X9(ie,KWt),fe=new Qkt(ee),xBt(fe.a,ue),Ce=X9(ie,"endPoint"),Me=new r3t(ee),wBt(Me.a,Ce),$e=Bx(ie,qJ),Ve=new a3t(ee),qPt(Ve.a,$e),F=N1(p,gPe),g=new CSt(e,ee),iAt(g.a,g.b,F),z=N1(p,pPe),w=new ESt(e,ee),aAt(w.a,w.b,z),D=Bx(p,yPe),k=new SSt(o,ee),yPt(k.b,k.a,D),M=Bx(p,mPe),A=new ASt(u,ee),bPt(A.b,A.a,M)}i(HGt,"xBd");function qGt(e,n,o){var u,p,g,w,k,A,D,M;if(n.p==0){for(n.p=1,w=o,w||(p=new Pt,g=(u=y(ug(Qo),10),new ud(u,y(Np(u,u.length),10),0)),w=new Ko(p,g)),y(w.a,16).Ec(n),n.k==(Yr(),ks)&&y(w.b,22).Ec(y(oe(n,(Tt(),gc)),64)),A=new ye(n.j);A.a<A.c.c.length;)for(k=y(de(A),12),M=Gm(pd(Se(Ee(kd,1),Fr,20,0,[new F8(k),new u5(k)])));Nn(M);)D=y(vn(M),12),qGt(e,D.i,w);return w}return null}i(qGt,"kVb");function EIe(e,n,o){var u,p,g,w,k;switch(k=null,n.g){case 1:for(p=new ye(e.j);p.a<p.c.c.length;)if(u=y(de(p),12),Kt(Xt(oe(u,(Tt(),Rme)))))return u;k=new Fc,dt(k,(Tt(),Rme),(qr(),!0));break;case 2:for(w=new ye(e.j);w.a<w.c.c.length;)if(g=y(de(w),12),Kt(Xt(oe(g,(Tt(),_me)))))return g;k=new Fc,dt(k,(Tt(),_me),(qr(),!0))}return k&&(Kl(k,e),Bs(k,o),Qgn(k.n,e.o,o)),k}i(EIe,"XXb");function YGt(e,n){var o,u,p,g,w,k;for(k=-1,w=new ya,u=new Kg(e.b);Xl(u.a)||Xl(u.b);){for(o=y(Xl(u.a)?de(u.a):de(u.b),17),k=d.Math.max(k,He(Xe(oe(o,(Bt(),ab))))),o.c==e?ts(Hi(new Er(null,new Rr(o.b,16)),new Vg),new aTt(w)):ts(Hi(new Er(null,new Rr(o.b,16)),new o5),new sTt(w)),g=ei(w,0);g.b!=g.d.c;)p=y(Qn(g),70),ea(p,(Tt(),B6))||dt(p,B6,o);Is(n,w),gf(w)}return k}i(YGt,"R0b");function Zx(e,n,o,u,p){var g,w,k,A,D;k=p?u.b:u.a,!Wd(e.a,u)&&(D=k>o.s&&k<o.c,A=!1,o.e.b!=0&&o.j.b!=0&&(A=A|(d.Math.abs(k-He(Xe(t7(o.e))))<rm&&d.Math.abs(k-He(Xe(t7(o.j))))<rm),A=A|(d.Math.abs(k-He(Xe(Mp(o.e))))<rm&&d.Math.abs(k-He(Xe(Mp(o.j))))<rm)),(D||A)&&(w=y(oe(n,(Bt(),Dl)),79),w||(w=new Vh,dt(n,Dl,w)),g=new Vo(u),Ha(w,g,w.c.b,w.c),ys(e.a,g)))}i(Zx,"KQc");function XTn(e,n,o){var u,p,g,w,k,A,D,M,F;for(o.Tg("Processor set coordinates",1),e.a=n.b.b==0?1:n.b.b,D=null,u=ei(n.b,0);!D&&u.b!=u.d.c;)F=y(Qn(u),40),Kt(Xt(oe(F,(Ca(),zv))))&&(D=F,A=F.e,A.a=y(oe(F,Aj),15).a,A.b=y(oe(F,Rj),15).a);k=the(D),M=1;do k=myn((p=k,o.dh(M),p)),M=k.b/e.a|0;while(k.b!=0);for(w=ei(n.b,0);w.b!=w.d.c;)g=y(Qn(w),40),qs(g.e,new Lt(g.f.a/2,g.f.b/2));o.Ug()}i(XTn,"hWc");function KTn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(o=!1,M=He(Xe(oe(n,(Bt(),Mw)))),ie=Cv*M,p=new ye(n.b);p.a<p.c.c.length;)for(u=y(de(p),25),D=new ye(u.a),g=y(de(D),9),F=i7e(e.a[g.p]);D.a<D.c.c.length;)k=y(de(D),9),z=i7e(e.a[k.p]),F!=z&&(ee=bC(e.b,g,k),w=g.n.b+g.o.b+g.d.a+F.a+ee,A=k.n.b-k.d.d+z.a,w>A+ie&&(ue=F.g+z.g,z.a=(z.g*z.a+F.g*F.a)/ue,z.g=ue,F.f=z,o=!0)),g=k,F=z;return o}i(KTn,"yKc");function JTn(e,n,o){var u,p,g,w,k,A,D,M;for(o.Tg(FVt,1),Sc(e.b),Sc(e.a),k=null,g=ei(n.b,0);!k&&g.b!=g.d.c;)D=y(Qn(g),40),Kt(Xt(oe(D,(Ca(),zv))))&&(k=D);for(A=new ya,Ha(A,k,A.c.b,A.c),kzt(e,A),M=ei(n.b,0);M.b!=M.d.c;)D=y(Qn(M),40),w=di(oe(D,(Ca(),uN))),p=Jc(e.b,w)!=null?y(Jc(e.b,w),15).a:0,dt(D,R1e,Et(p)),u=1+(Jc(e.a,w)!=null?y(Jc(e.a,w),15).a:0),dt(D,jje,Et(u));o.Ug()}i(JTn,"dVc");function XGt(e){Sk(e,new Xx(Ck(xk(kk(Tk(new yx,cT),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new ubt))),_t(e,cT,C3,$Ue),_t(e,cT,k3,15),_t(e,cT,RG,Et(0)),_t(e,cT,tPe,Vt(PUe)),_t(e,cT,QC,Vt(fnr)),_t(e,cT,k6,Vt(dnr)),_t(e,cT,TR,lWt),_t(e,cT,tM,Vt(BUe)),_t(e,cT,C6,Vt(FUe)),_t(e,cT,rPe,Vt(Tye)),_t(e,cT,NJ,Vt(hnr))}i(XGt,"chd");function KGt(e,n){var o,u,p,g,w,k,A,D,M;if(p=e.i,w=p.o.a,g=p.o.b,w<=0&&g<=0)return zt(),rc;switch(D=e.n.a,M=e.n.b,k=e.o.a,o=e.o.b,n.g){case 2:case 1:if(D<0)return zt(),on;if(D+k>w)return zt(),bn;break;case 4:case 3:if(M<0)return zt(),sn;if(M+o>g)return zt(),Fn}return A=(D+k/2)/w,u=(M+o/2)/g,A+u<=1&&A-u<=0?(zt(),on):A+u>=1&&A-u>=0?(zt(),bn):u<.5?(zt(),sn):(zt(),Fn)}i(KGt,"JXb");function JGt(e,n,o,u,p,g,w){var k,A,D,M,F,z;for(z=new S5,D=n.Jc();D.Ob();)for(k=y(D.Pb(),838),F=new ye(k.Pf());F.a<F.c.c.length;)M=y(de(F),187),Qe(M.mf((Ri(),Aye)))===Qe((Qg(),TL))&&(LGt(z,M,!1,u,p,g,w),RI(e,z));for(A=o.Jc();A.Ob();)for(k=y(A.Pb(),838),F=new ye(k.Pf());F.a<F.c.c.length;)M=y(de(F),187),Qe(M.mf((Ri(),Aye)))===Qe((Qg(),i4))&&(LGt(z,M,!0,u,p,g,w),RI(e,z))}i(JGt,"pHb");function QTn(e,n,o){var u,p,g,w,k,A,D;for(w=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));w.e!=w.i.gc();)for(g=y(_n(w),26),p=new nn(cn(xv(g).a.Jc(),new B));Nn(p);)u=y(vn(p),85),!II(u)&&!II(u)&&!Kx(u)&&(A=y(Yl(Sl(o.f,g)),40),D=y(Jr(o,Pl(y(je((!u.c&&(u.c=new zr(Hn,u,5,8)),u.c),0),84))),40),A&&D&&(k=new N7e(A,D),dt(k,(Ca(),hN),u),wc(k,u),_i(A.d,k),_i(D.b,k),_i(n.a,k)))}i(QTn,"ySc");function ZTn(e,n){var o,u,p,g,w,k,A,D;for(A=y(y(oa(e.r,n),22),83).Jc();A.Ob();)k=y(A.Pb(),115),p=k.c?r8t(k.c):0,p>0?k.a?(D=k.b.Kf().b,p>D&&(e.v||k.c.d.c.length==1?(w=(p-D)/2,k.d.d=w,k.d.a=w):(o=y(Wt(k.c.d,0),187).Kf().b,u=(o-D)/2,k.d.d=d.Math.max(0,u),k.d.a=p-u-D))):k.d.a=e.t+p:$9(e.u)&&(g=zDe(k.b),g.d<0&&(k.d.d=-g.d),g.d+g.a>k.b.Kf().b&&(k.d.a=g.d+g.a-k.b.Kf().b))}i(ZTn,"kLb");function Vp(){Vp=U,D6=new To((Ri(),jj),Et(1)),EQ=new To(ub,80),bXt=new To(gVe,5),lXt=new To(yL,xR),mXt=new To(Pye,Et(1)),yXt=new To(Bye,(qr(),!0)),DBe=new Cx(50),pXt=new To(r1,DBe),RBe=$j,IBe=EN,cXt=new To(Sye,!1),_Be=Gj,fXt=e4,dXt=Uv,hXt=Pw,uXt=DE,gXt=t4,LBe=(QDe(),tXt),_0e=aXt,CQ=eXt,L0e=rXt,MBe=iXt,xXt=wL,TXt=uee,wXt=n4,vXt=vL,NBe=(t6(),s4),new To(Z6,NBe)}i(Vp,"aPb");function ekn(e,n){var o;switch(p$(e)){case 6:return lo(n);case 7:return _k(n);case 8:return Lk(n);case 3:return Array.isArray(n)&&(o=p$(n),!(o>=14&&o<=16));case 11:return n!=null&&typeof n===vde;case 12:return n!=null&&(typeof n===dG||typeof n==vde);case 0:return Uhe(n,e.__elementTypeId$);case 2:return kce(n)&&n.Rm!==te;case 1:return kce(n)&&n.Rm!==te||Uhe(n,e.__elementTypeId$);default:return!0}}i(ekn,"NC");function tkn(e){var n,o,u,p;u=e.o,Nk(),e.A.dc()||ta(e.A,kBe)?p=u.a:(e.D?p=d.Math.max(u.a,_I(e.f)):p=_I(e.f),e.A.Gc((vf(),Xj))&&!e.B.Gc((Zh(),NN))&&(p=d.Math.max(p,_I(y(yl(e.p,(zt(),sn)),253))),p=d.Math.max(p,_I(y(yl(e.p,Fn),253)))),n=JIt(e),n&&(p=d.Math.max(p,n.a))),Kt(Xt(e.e.Rf().mf((Ri(),e4))))?u.a=d.Math.max(u.a,p):u.a=p,o=e.f.i,o.c=0,o.b=p,Jfe(e.f)}i(tkn,"LKb");function QGt(e,n){var o,u,p,g;return u=d.Math.min(d.Math.abs(e.c-(n.c+n.b)),d.Math.abs(e.c+e.b-n.c)),g=d.Math.min(d.Math.abs(e.d-(n.d+n.a)),d.Math.abs(e.d+e.a-n.d)),o=d.Math.abs(e.c+e.b/2-(n.c+n.b/2)),o>e.b/2+n.b/2||(p=d.Math.abs(e.d+e.a/2-(n.d+n.a/2)),p>e.a/2+n.a/2)?1:o==0&&p==0?0:o==0?g/p+1:p==0?u/o+1:d.Math.min(u/o,g/p)+1}i(QGt,"QMb");function rkn(e,n){var o,u,p,g,w,k,A;for(g=0,k=0,A=0,p=new ye(e.f.e);p.a<p.c.c.length;)u=y(de(p),155),n!=u&&(w=e.i[n.a][u.a],g+=w,o=cv(n.d,u.d),o>0&&e.d!=(Z9(),M0e)&&(k+=w*(u.d.a+e.a[n.a][u.a]*(n.d.a-u.d.a)/o)),o>0&&e.d!=(Z9(),D0e)&&(A+=w*(u.d.b+e.a[n.a][u.a]*(n.d.b-u.d.b)/o)));switch(e.d.g){case 1:return new Lt(k/g,n.d.b);case 2:return new Lt(n.d.a,A/g);default:return new Lt(k/g,A/g)}}i(rkn,"SPb");function ZGt(e){var n,o,u,p,g,w;for(o=(!e.a&&(e.a=new Es(qf,e,5)),e.a).i+2,w=new vu(o),Nt(w,new Lt(e.j,e.k)),ts(new Er(null,(!e.a&&(e.a=new Es(qf,e,5)),new Rr(e.a,16))),new Xkt(w)),Nt(w,new Lt(e.b,e.c)),n=1;n<w.c.length-1;)u=(_r(n-1,w.c.length),y(w.c[n-1],8)),p=(_r(n,w.c.length),y(w.c[n],8)),g=(_r(n+1,w.c.length),y(w.c[n+1],8)),u.a==p.a&&p.a==g.a||u.b==p.b&&p.b==g.b?Gy(w,n):++n;return w}i(ZGt,"Zpd");function ejt(e,n){M7();var o,u,p,g,w;if(w=y(oe(e.i,(Bt(),Qa)),102),g=e.j.g-n.j.g,g!=0||!(w==(uo(),Bw)||w==a1||w==zc))return 0;if(w==(uo(),Bw)&&(o=y(oe(e,sb),15),u=y(oe(n,sb),15),o&&u&&(p=o.a-u.a,p!=0)))return p;switch(e.j.g){case 1:return ha(e.n.a,n.n.a);case 2:return ha(e.n.b,n.n.b);case 3:return ha(n.n.a,e.n.a);case 4:return ha(n.n.b,e.n.b);default:throw xe(new El($Me))}}i(ejt,"zac");function tjt(e,n){var o,u,p,g,w,k,A;for(o=u6t(yEt(gEt(mEt(new $5e,n),new BY(n.e)),gKt),e.a),n.j.c.length==0||PDt(y(Wt(n.j,0),60).a,o),A=new woe,Oi(e.e,o,A),w=new gs,k=new gs,g=new ye(n.k);g.a<g.c.c.length;)p=y(de(g),17),ys(w,p.c),ys(k,p.d);u=w.a.gc()-k.a.gc(),u<0?(S$(A,!0,(Ss(),Il)),S$(A,!1,Bl)):u>0&&(S$(A,!1,(Ss(),Il)),S$(A,!0,Bl)),Zc(n.g,new qEt(e,o)),Oi(e.g,n,o)}i(tjt,"Dec");function SIe(){SIe=U,drr=new br(NOe,(qr(),!1)),Et(-1),srr=new br(OOe,Et(-1)),Et(-1),orr=new br(POe,Et(-1)),lrr=new br(BOe,!1),crr=new br(FOe,!1),$ze=(tX(),oye),yrr=new br($Oe,$ze),brr=new br(GOe,-1),Fze=(QX(),nye),mrr=new br(jOe,Fze),grr=new br(zOe,!0),Pze=(uX(),lye),frr=new br(UOe,Pze),hrr=new br(VOe,!1),Et(1),urr=new br(WOe,Et(1)),Bze=(YX(),cye),prr=new br(HOe,Bze)}i(SIe,"o4c");function rjt(){rjt=U;var e;for(nBe=Se(Ee(pi,1),Pi,30,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),d0e=tt(pi,Pi,30,37,15,1),Xqt=Se(Ee(pi,1),Pi,30,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),iBe=tt(LT,mUt,30,37,14,1),e=2;e<=36;e++)d0e[e]=Po(d.Math.pow(e,nBe[e])),iBe[e]=V$(yG,d0e[e])}i(rjt,"cgb");function nkn(e){var n;if((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i!=1)throw xe(new rn(NWt+(!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i));return n=new Vh,ehe(y(je((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),0),84))&&Fo(n,jzt(e,ehe(y(je((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),0),84)),!1)),ehe(y(je((!e.c&&(e.c=new zr(Hn,e,5,8)),e.c),0),84))&&Fo(n,jzt(e,ehe(y(je((!e.c&&(e.c=new zr(Hn,e,5,8)),e.c),0),84)),!0)),n}i(nkn,"Vpd");function njt(e,n){var o,u,p,g,w;for(n.d?p=e.a.c==(W0(),kT)?os(n.b):Ra(n.b):p=e.a.c==(W0(),ob)?os(n.b):Ra(n.b),g=!1,u=new nn(cn(p.a.Jc(),new B));Nn(u);)if(o=y(vn(u),17),w=Kt(e.a.f[e.a.g[n.b.p].p]),!(!w&&!Mo(o)&&o.c.i.c==o.d.i.c)&&!(Kt(e.a.n[e.a.g[n.b.p].p])||Kt(e.a.n[e.a.g[n.b.p].p]))&&(g=!0,Wd(e.b,e.a.g[E0n(o,n.b).p])))return n.c=!0,n.a=o,n;return n.c=g,n.a=null,n}i(njt,"iOc");function AIe(e,n,o){var u,p,g,w,k,A,D;if(u=o.gc(),u==0)return!1;if(e.Nj())if(A=e.Oj(),N_e(e,n,o),w=u==1?e.Gj(3,null,o.Jc().Pb(),n,A):e.Gj(5,null,o,n,A),e.Kj()){for(k=u<100?null:new Xb(u),g=n+u,p=n;p<g;++p)D=e.vj(p),k=e.Lj(D,k),k=k;k?(k.lj(w),k.mj()):e.Hj(w)}else e.Hj(w);else if(N_e(e,n,o),e.Kj()){for(k=u<100?null:new Xb(u),g=n+u,p=n;p<g;++p)k=e.Lj(e.vj(p),k);k&&k.mj()}return!0}i(AIe,"fId");function ijt(e,n,o){var u,p,g,w,k;return e.Nj()?(p=null,g=e.Oj(),u=e.Gj(1,k=(w=e.Bj(n,e.Xi(n,o)),w),o,n,g),e.Kj()&&!(e.Wi()&&k?ta(k,o):Qe(k)===Qe(o))&&(k&&(p=e.Mj(k,p)),p=e.Lj(o,p)),p?(p.lj(u),p.mj()):e.Hj(u),k):(k=(w=e.Bj(n,e.Xi(n,o)),w),e.Kj()&&!(e.Wi()&&k?ta(k,o):Qe(k)===Qe(o))&&(p=null,k&&(p=e.Mj(k,null)),p=e.Lj(o,p),p&&p.mj()),k)}i(ijt,"lId");function RIe(e,n){var o,u,p,g,w,k,A,D,M;if(e.e=n,e.f=y(oe(n,(uv(),SQ)),234),q1n(n),e.d=d.Math.max(n.e.c.length*16+n.c.c.length,256),!Kt(Xt(oe(n,(Vp(),RBe)))))for(M=e.e.e.c.length,A=new ye(n.e);A.a<A.c.c.length;)k=y(de(A),155),D=k.d,D.a=gce(e.f)*M,D.b=gce(e.f)*M;for(o=n.b,g=new ye(n.c);g.a<g.c.c.length;)if(p=y(de(g),291),u=y(oe(p,MBe),15).a,u>0){for(w=0;w<u;w++)Nt(o,new n7t(p));MFt(p)}}i(RIe,"RNb");function ikn(e,n){var o,u,p,g,w,k,A,D,M,F;for(n.Tg("Hypernodes processing",1),p=new ye(e.b);p.a<p.c.c.length;)for(u=y(de(p),25),k=new ye(u.a);k.a<k.c.c.length;)if(w=y(de(k),9),Kt(Xt(oe(w,(Bt(),vZ))))&&w.j.c.length<=2){for(F=0,M=0,o=0,g=0,D=new ye(w.j);D.a<D.c.c.length;)switch(A=y(de(D),12),A.j.g){case 1:++F;break;case 2:++M;break;case 3:++o;break;case 4:++g}F==0&&o==0&&hEn(e,w,g<=M)}n.Ug()}i(ikn,"i4b");function ajt(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie;if(z=new zk(e.Yg()),Fp(n,Vi,z),o&&!e.Wg().a.dc())for(M=new F2,Fp(n,"logs",M),k=0,ie=new iC(e.Wg().b.Jc());ie.b.Ob();)ee=di(ie.b.Pb()),F=new zk(ee),Jk(M,k),oue(M,k,F),++k;if(u&&(D=new DH(e.Vg()),Fp(n,"executionTime",D)),!e.Xg().a.dc())for(w=new F2,Fp(n,Mge,w),k=0,g=new iC(e.Xg().b.Jc());g.b.Ob();)p=y(g.b.Pb(),853),A=new m5,Jk(w,k),oue(w,k,A),ajt(p,A,o,u),++k}i(ajt,"cHd");function LIe(){LIe=U,Hoe(),Lar=new H2t,Se(Ee(rA,2),Dt,376,0,[Se(Ee(rA,1),hQ,590,0,[new rF(gqt)])]),Se(Ee(rA,2),Dt,376,0,[Se(Ee(rA,1),hQ,590,0,[new rF(BPe)])]),Se(Ee(rA,2),Dt,376,0,[Se(Ee(rA,1),hQ,590,0,[new rF(mqt)]),Se(Ee(rA,1),hQ,590,0,[new rF(BPe)])]),new ev("-1"),Se(Ee(rA,2),Dt,376,0,[Se(Ee(rA,1),hQ,590,0,[new rF("\\c+")])]),new ev("0"),new ev("0"),new ev("1"),new ev("0"),new ev(Tqt)}i(LIe,"Ese");function akn(e,n,o){var u,p,g,w,k,A,D,M,F;for(o.Tg("Hyperedge merging",1),Nvn(e,n),A=new yo(n.b,0);A.b<A.d.gc();)if(k=(In(A.b<A.d.gc()),y(A.d.Xb(A.c=A.b++),25)),M=k.a,M.c.length!=0)for(u=null,p=null,g=null,w=null,D=0;D<M.c.length;D++)u=(_r(D,M.c.length),y(M.c[D],9)),p=u.k,p==(Yr(),bs)&&w==bs&&(F=t3n(u,g),F.a&&(ixn(u,g,F.b,F.c),_r(D,M.c.length),g6e(M.c,D,1),--D,u=g,p=w)),g=u,w=p;o.Ug()}i(akn,"Z3b");function skn(e,n,o,u,p){var g,w,k,A,D,M,F;for(w=new ye(n);w.a<w.c.c.length;){if(g=y(de(w),17),A=g.c,o.a._b(A))D=(Px(),jv);else if(u.a._b(A))D=(Px(),CE);else throw xe(new rn("Source port must be in one of the port sets."));if(M=g.d,o.a._b(M))F=(Px(),jv);else if(u.a._b(M))F=(Px(),CE);else throw xe(new rn("Target port must be in one of the port sets."));k=new XBt(g,D,F),Oi(e.b,g,k),tn(p.c,k)}}i(skn,"vRc");function YK(e){var n,o;return e.c&&e.c.Sh()&&(o=y(e.c,52),e.c=y(gv(e,o),143),e.c!=o&&((e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,9,2,o,e.c)),Ge(e.Cb,403)?e.Db>>16==-15&&e.Cb.Vh()&&Sue(new kue(e.Cb,9,13,o,e.c,Xy(Yh(y(e.Cb,62)),e))):Ge(e.Cb,88)&&e.Db>>16==-23&&e.Cb.Vh()&&(n=e.c,Ge(n,88)||(n=(Dr(),up)),Ge(o,88)||(o=(Dr(),up)),Sue(new kue(e.Cb,9,10,o,n,Xy(Pc(y(e.Cb,29)),e)))))),e.c}i(YK,"v0d");function sjt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;if(n==o)return!0;if(n=_9e(e,n),o=_9e(e,o),u=Khe(n),u){if(M=Khe(o),M!=u)return M?(A=u.kk(),ie=M.kk(),A==ie&&A!=null):!1;if(w=(!n.d&&(n.d=new Es(dl,n,1)),n.d),g=w.i,z=(!o.d&&(o.d=new Es(dl,o,1)),o.d),g==z.i){for(D=0;D<g;++D)if(p=y(je(w,D),87),F=y(je(z,D),87),!sjt(e,p,F))return!1}return!0}else return k=n.e,ee=o.e,k==ee}i(sjt,"fZd");function ojt(e,n,o,u){var p,g,w,k,A,D,M,F;if(W1(e.e,n)){for(F=Ou(e.e.Ah(),n),g=y(e.g,122),M=null,A=-1,k=-1,p=0,D=0;D<e.i;++D)w=g[D],F.$l(w.Jk())&&(p==o&&(A=D),p==u&&(k=D,M=w.kd()),++p);if(A==-1)throw xe(new yu(Pge+o+xw+p));if(k==-1)throw xe(new yu(Bge+u+xw+p));return yI(e,A,k),hf(e.e)&&$8(e,av(e,7,n,Et(u),M,o,!0)),M}else throw xe(new rn("The feature must be many-valued to support move"))}i(ojt,"Iee");function ljt(e,n,o,u){var p,g,w,k,A;switch(A=new Vo(n.n),A.a+=n.o.a/2,A.b+=n.o.b/2,k=He(Xe(oe(n,(Bt(),U3)))),g=e.f,w=e.d,p=e.c,y(oe(n,(Tt(),gc)),64).g){case 1:A.a+=w.b+p.a-o/2,A.b=-u-k,n.n.b=-(w.d+k+p.b);break;case 2:A.a=g.a+w.b+w.c+k,A.b+=w.d+p.b-u/2,n.n.a=g.a+w.c+k-p.a;break;case 3:A.a+=w.b+p.a-o/2,A.b=g.b+w.d+w.a+k,n.n.b=g.b+w.a+k-p.b;break;case 4:A.a=-o-k,A.b+=w.d+p.b-u/2,n.n.a=-(w.b+k+p.a)}return A}i(ljt,"QXb");function okn(e,n,o){var u,p;u=n.c.i,p=o.d.i,u.k==(Yr(),bs)?(dt(e,(Tt(),Cg),y(oe(u,Cg),12)),dt(e,np,y(oe(u,np),12)),dt(e,F3,Xt(oe(u,F3)))):u.k==_c?(dt(e,(Tt(),Cg),y(oe(u,Cg),12)),dt(e,np,y(oe(u,np),12)),dt(e,F3,(qr(),!0))):p.k==_c?(dt(e,(Tt(),Cg),y(oe(p,Cg),12)),dt(e,np,y(oe(p,np),12)),dt(e,F3,(qr(),!0))):(dt(e,(Tt(),Cg),n.c),dt(e,np,o.d))}i(okn,"B8b");function lkn(e){var n,o,u,p,g,w,k;for(e.o=new vC,u=new ya,w=new ye(e.e.a);w.a<w.c.c.length;)g=y(de(w),124),OC(g).c.length==1&&Ha(u,g,u.c.b,u.c);for(;u.b!=0;)g=y(u.b==0?null:(In(u.b!=0),dd(u,u.a.a)),124),OC(g).c.length!=0&&(n=y(Wt(OC(g),0),217),o=g.g.a.c.length>0,k=ZX(n,g),PAe(o?k.b:k.g,n),OC(k).c.length==1&&Ha(u,k,u.c.b,u.c),p=new Ko(g,n),ov(e.o,p),Yu(e.e.a,g))}i(lkn,"_Gb");function cjt(e,n){var o,u,p,g,w,k,A;return u=d.Math.abs(kY(e.b).a-kY(n.b).a),k=d.Math.abs(kY(e.b).b-kY(n.b).b),p=0,A=0,o=1,w=1,u>e.b.b/2+n.b.b/2&&(p=d.Math.min(d.Math.abs(e.b.c-(n.b.c+n.b.b)),d.Math.abs(e.b.c+e.b.b-n.b.c)),o=1-p/u),k>e.b.a/2+n.b.a/2&&(A=d.Math.min(d.Math.abs(e.b.d-(n.b.d+n.b.a)),d.Math.abs(e.b.d+e.b.a-n.b.d)),w=1-A/k),g=d.Math.min(o,w),(1-g)*d.Math.sqrt(u*u+k*k)}i(cjt,"uMb");function ckn(e){var n,o,u,p;for(dde(e,e.e,e.f,(Px(),jv),!0,e.c,e.i),dde(e,e.e,e.f,jv,!1,e.c,e.i),dde(e,e.e,e.f,CE,!0,e.c,e.i),dde(e,e.e,e.f,CE,!1,e.c,e.i),skn(e,e.c,e.e,e.f,e.i),u=new yo(e.i,0);u.b<u.d.gc();)for(n=(In(u.b<u.d.gc()),y(u.d.Xb(u.c=u.b++),132)),p=new yo(e.i,u.b);p.b<p.d.gc();)o=(In(p.b<p.d.gc()),y(p.d.Xb(p.c=p.b++),132)),Z3n(n,o);xEn(e.i,y(oe(e.d,(Tt(),G6)),234)),F4n(e.i)}i(ckn,"uRc");function Xfe(e,n){var o,u;if(n!=null){if(u=Yx(e),u)if((u.i&1)!=0){if(u==ah)return Lk(n);if(u==pi)return Ge(n,15);if(u==d4)return Ge(n,164);if(u==xh)return Ge(n,221);if(u==Rd)return Ge(n,180);if(u==po)return _k(n);if(u==FE)return Ge(n,191);if(u==LT)return Ge(n,190)}else return sq(),o=y(Jr(Aee,u),58),!o||o.dk(n);else if(Ge(n,57))return e.bl(y(n,57))}return!1}i(Xfe,"SVd");function _Ie(){_Ie=U;var e,n,o,u,p,g,w,k,A;for(v0=tt(xh,nE,30,255,15,1),yb=tt(Rd,em,30,64,15,1),n=0;n<255;n++)v0[n]=-1;for(o=90;o>=65;o--)v0[o]=o-65<<24>>24;for(u=122;u>=97;u--)v0[u]=u-97+26<<24>>24;for(p=57;p>=48;p--)v0[p]=p-48+52<<24>>24;for(v0[43]=62,v0[47]=63,g=0;g<=25;g++)yb[g]=65+g&As;for(w=26,A=0;w<=51;++w,A++)yb[w]=97+A&As;for(e=52,k=0;e<=61;++e,k++)yb[e]=48+k&As;yb[62]=43,yb[63]=47}i(_Ie,"Moe");function ujt(e,n){var o,u,p,g,w,k;return p=kLe(e),k=kLe(n),p==k?e.e==n.e&&e.a<54&&n.a<54?e.f<n.f?-1:e.f>n.f?1:0:(u=e.e-n.e,o=(e.d>0?e.d:d.Math.floor((e.a-1)*yUt)+1)-(n.d>0?n.d:d.Math.floor((n.a-1)*yUt)+1),o>u+1?p:o<u-1?-p:(g=(!e.c&&(e.c=KF(vc(e.f))),e.c),w=(!n.c&&(n.c=KF(vc(n.f))),n.c),u<0?g=SC(g,kjt(-u)):u>0&&(w=SC(w,kjt(u))),uOt(g,w))):p<k?-1:1}i(ujt,"Ehb");function hjt(e){var n,o,u,p,g,w;return u=new lLe,wc(u,e),Qe(oe(u,(Bt(),Uf)))===Qe((Ss(),g0))&&dt(u,Uf,KX(u)),oe(u,(iX(),wN))==null&&(w=y(pBt(e),174),dt(u,wN,Mq(w.mf(wN)))),dt(u,(Tt(),aa),e),dt(u,au,(n=y(ug(wme),10),new ud(n,y(Np(n,n.length),10),0))),p=cCn(($a(e)&&(U2(),new qb($a(e))),U2(),new Hq($a(e)?new qb($a(e)):null,e)),Bl),g=y(oe(u,NGe),104),o=u.d,MRt(o,g),MRt(o,p),u}i(hjt,"K$b");function ukn(e,n,o){var u,p,g,w,k,A,D,M;for(o.Tg(qUt,1),e.qf(n),g=0;e.sf(g)&&!o.Zg();){for(e.rf(),M=Gm(pd(Se(Ee(kd,1),Fr,20,0,[n.e,n.d,n.b])));Nn(M);)for(A=y(vn(M),314),k=Gm(pd(Se(Ee(kd,1),Fr,20,0,[n.e,n.d,n.b])));Nn(k);)w=y(vn(k),314),w!=A&&(p=e.pf(w,A),p&&ra(A.c,p));for(D=Gm(pd(Se(Ee(kd,1),Fr,20,0,[n.e,n.d,n.b])));Nn(D);)A=y(vn(D),314),u=A.c,DBt(u,-e.d,-e.d,e.d,e.d),ra(A.d,u),u.a=0,u.b=0;++g}o.Ug()}i(ukn,"TNb");function hkn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee;if(e.dc())return new xo;for(D=0,F=0,p=e.Jc();p.Ob();)u=y(p.Pb(),36),g=u.f,D=d.Math.max(D,g.a),F+=g.a*g.b;for(D=d.Math.max(D,d.Math.sqrt(F)*He(Xe(oe(y(e.Jc().Pb(),36),(Bt(),fZ))))),z=0,ee=0,A=0,o=n,k=e.Jc();k.Ob();)w=y(k.Pb(),36),M=w.f,z+M.a>D&&(z=0,ee+=A+n,A=0),aR(w,z,ee),o=d.Math.max(o,z+M.a),A=d.Math.max(A,M.b),z+=M.a+n;return new Lt(o+n,ee+A+n)}i(hkn,"lUb");function DIe(e,n){var o,u,p,g,w,k,A;if(!qg(e))throw xe(new El(MWt));if(u=qg(e),g=u.g,p=u.f,g<=0&&p<=0)return zt(),rc;switch(k=e.i,A=e.j,n.g){case 2:case 1:if(k<0)return zt(),on;if(k+e.g>g)return zt(),bn;break;case 4:case 3:if(A<0)return zt(),sn;if(A+e.f>p)return zt(),Fn}return w=(k+e.g/2)/g,o=(A+e.f/2)/p,w+o<=1&&w-o<=0?(zt(),on):w+o>=1&&w-o>=0?(zt(),bn):o<.5?(zt(),sn):(zt(),Fn)}i(DIe,"Qpd");function fkn(e,n,o,u,p){var g,w;if(g=Ho(co(n[0],ll),co(u[0],ll)),e[0]=mi(g),g=Rx(g,32),o>=p){for(w=1;w<p;w++)g=Ho(g,Ho(co(n[w],ll),co(u[w],ll))),e[w]=mi(g),g=Rx(g,32);for(;w<o;w++)g=Ho(g,co(n[w],ll)),e[w]=mi(g),g=Rx(g,32)}else{for(w=1;w<o;w++)g=Ho(g,Ho(co(n[w],ll),co(u[w],ll))),e[w]=mi(g),g=Rx(g,32);for(;w<p;w++)g=Ho(g,co(u[w],ll)),e[w]=mi(g),g=Rx(g,32)}eu(g,0)!=0&&(e[w]=mi(g))}i(fkn,"Nib");function dkn(e,n){var o,u,p,g,w,k,A,D,M;for(n.Tg("Layer constraint edge reversal",1),w=new ye(e.b);w.a<w.c.c.length;){for(g=y(de(w),25),M=-1,o=new Pt,D=JF(g.a),p=0;p<D.length;p++)u=y(oe(D[p],(Tt(),Sw)),316),M==-1?u!=(F1(),pE)&&(M=p):u==(F1(),pE)&&(Us(D[p],null),bv(D[p],M++,g)),u==(F1(),N6)&&tn(o.c,D[p]);for(A=new ye(o);A.a<A.c.c.length;)k=y(de(A),9),Us(k,null),Us(k,g)}n.Ug()}i(dkn,"l4b");function m3(e){Xi();var n,o,u,p,g,w;if(e.e!=4&&e.e!=5)throw xe(new rn("Token#complementRanges(): must be RANGE: "+e.e));for(g=e,UC(g),VI(g),u=g.b.length+2,g.b[0]==0&&(u-=2),o=g.b[g.b.length-1],o==jR&&(u-=2),p=(++Za,new If(4)),p.b=tt(pi,Pi,30,u,15,1),w=0,g.b[0]>0&&(p.b[w++]=0,p.b[w++]=g.b[0]-1),n=1;n<g.b.length-2;n+=2)p.b[w++]=g.b[n]+1,p.b[w++]=g.b[n+1]-1;return o!=jR&&(p.b[w++]=o+1,p.b[w]=jR),p.a=!0,p}i(m3,"Lre");function pkn(e,n){var o,u,p,g,w,k,A,D,M;for(n.Tg("Hierarchical port dummy size processing",1),A=new Pt,M=new Pt,u=He(Xe(oe(e,(Bt(),H3)))),o=u*2,g=new ye(e.b);g.a<g.c.c.length;){for(p=y(de(g),25),A.c.length=0,M.c.length=0,k=new ye(p.a);k.a<k.c.c.length;)w=y(de(k),9),w.k==(Yr(),ks)&&(D=y(oe(w,(Tt(),gc)),64),D==(zt(),sn)?tn(A.c,w):D==Fn&&tn(M.c,w));FFt(A,!0,o),FFt(M,!1,o)}n.Ug()}i(pkn,"$2b");function Kfe(e,n,o){var u,p,g,w,k,A,D,M;if(u=o.gc(),u==0)return!1;if(e.Nj())if(D=e.Oj(),yfe(e,n,o),w=u==1?e.Gj(3,null,o.Jc().Pb(),n,D):e.Gj(5,null,o,n,D),e.Kj()){for(k=u<100?null:new Xb(u),g=n+u,p=n;p<g;++p)M=e.g[p],k=e.Lj(M,k),k=e.Sj(M,k);k?(k.lj(w),k.mj()):e.Hj(w)}else e.Hj(w);else if(yfe(e,n,o),e.Kj()){for(k=u<100?null:new Xb(u),g=n+u,p=n;p<g;++p)A=e.g[p],k=e.Lj(A,k);k&&k.mj()}return!0}i(Kfe,"EJd");function IIe(e,n,o,u){var p,g,w,k,A;for(w=new ye(e.k);w.a<w.c.c.length;)p=y(de(w),133),(!u||p.c==(pg(),Gv))&&(A=p.b,A.g<0&&p.d>0&&(foe(A,A.d-p.d),p.c==(pg(),Gv)&&sJr(A,A.a-p.d),A.d<=0&&A.i>0&&Ha(n,A,n.c.b,n.c)));for(g=new ye(e.f);g.a<g.c.c.length;)p=y(de(g),133),(!u||p.c==(pg(),Gv))&&(k=p.a,k.g<0&&p.d>0&&(IH(k,k.i-p.d),p.c==(pg(),Gv)&&oJr(k,k.b-p.d),k.i<=0&&k.d>0&&Ha(o,k,o.c.b,o.c)))}i(IIe,"fPc");function gkn(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee;for(Ir(),zs(e,new bbt),w=BF(e),ee=new Pt,z=new Pt,k=null,A=0;w.b!=0;)g=y(w.b==0?null:(In(w.b!=0),dd(w,w.a.a)),167),!k||ph(k)*pf(k)/2<ph(g)*pf(g)?(k=g,tn(ee.c,g)):(A+=ph(g)*pf(g),tn(z.c,g),z.c.length>1&&(A>ph(k)*pf(k)/2||w.b==0)&&(F=new vX(z),M=ph(k)/pf(k),D=pde(F,n,new p5,o,u,p,M),ra(hg(F.e),D),k=F,tn(ee.c,F),A=0,z.c.length=0));return Is(ee,z),ee}i(gkn,"Fod");function $c(e,n,o,u,p){Ny();var g,w,k,A,D,M,F;if(c7e(e,"src"),c7e(o,"dest"),F=mf(e),A=mf(o),M8e((F.i&4)!=0,"srcType is not an array"),M8e((A.i&4)!=0,"destType is not an array"),M=F.c,w=A.c,M8e((M.i&1)!=0?M==w:(w.i&1)==0,"Array types don't match"),$fn(e,n,o,u,p),(M.i&1)==0&&F!=A)if(D=K5(e),g=K5(o),Qe(e)===Qe(o)&&n<u)for(n+=p,k=u+p;k-- >u;)as(g,k,D[--n]);else for(k=u+p;u<k;)as(g,u++,D[n++]);else C9e(e,n,o,u,p,!0)}i($c,"rhb");function fjt(e,n){var o,u,p,g,w,k,A,D,M;n.Tg("Box layout",2),p=eF(Xe(St(e,(LK(),gnr)))),g=y(St(e,pnr),104),o=Kt(Xt(St(e,PUe))),u=Kt(Xt(St(e,BUe))),y(St(e,Tye),327).g===0?(w=(M=new Ah((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a)),Ir(),zs(M,new Hkt(u)),M),k=l9e(e),A=Xe(St(e,OUe)),(A==null||(Ur(A),A<=0))&&(A=1.3),D=iEn(w,p,g,k.a,k.b,o,(Ur(A),A)),eT(e,D.a,D.b,!1,!0)):W3n(e,p,g,o),n.Ug()}i(fjt,"Eod");function mkn(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie;for(z=l1n(e,o),A=0;A<n;A++){for(Ok(p,o),ee=new Pt,ie=(In(u.b<u.d.gc()),y(u.d.Xb(u.c=u.b++),410)),M=z+A;M<e.b;M++)k=ie,ie=(In(u.b<u.d.gc()),y(u.d.Xb(u.c=u.b++),410)),Nt(ee,new G$t(k,ie,o));for(F=z+A;F<e.b;F++)In(u.b>0),u.a.Xb(u.c=--u.b),F>z+A&&Wh(u);for(w=new ye(ee);w.a<w.c.c.length;)g=y(de(w),410),Ok(u,g);if(A<n-1)for(D=z+A;D<e.b;D++)In(u.b>0),u.a.Xb(u.c=--u.b)}}i(mkn,"dRc");function ykn(){Xi();var e,n,o,u,p,g;if(sbe)return sbe;for(e=(++Za,new If(4)),b3(e,kv(e0e,!0)),HI(e,kv("M",!0)),HI(e,kv("C",!0)),g=(++Za,new If(4)),u=0;u<11;u++)tu(g,u,u);return n=(++Za,new If(4)),b3(n,kv("M",!0)),tu(n,4448,4607),tu(n,65438,65439),p=(++Za,new A9(2)),pw(p,e),pw(p,WN),o=(++Za,new A9(2)),o.Hm(pY(g,kv("L",!0))),o.Hm(n),o=(++Za,new Yk(3,o)),o=(++Za,new h7e(p,o)),sbe=o,sbe}i(ykn,"tre");function y3(e,n){var o,u,p,g,w,k,A,D;for(o=new RegExp(n,"g"),A=tt(Zt,Dt,2,0,6,1),u=0,D=e,g=null;;)if(k=o.exec(D),k==null||D==""){A[u]=D;break}else w=k.index,A[u]=(ko(0,w,D.length),D.substr(0,w)),D=Yd(D,w+k[0].length,D.length),o.lastIndex=0,g==D&&(A[u]=(ko(0,1,D.length),D.substr(0,1)),D=(un(1,D.length+1),D.substr(1))),g=D,++u;if(e.length>0){for(p=A.length;p>0&&A[p-1]=="";)--p;p<A.length&&(A.length=p)}return A}i(y3,"Fgb");function djt(e){var n,o,u,p,g,w;if(!e.b){for(e.b=new Pt,p=new ye(e.a.b);p.a<p.c.c.length;)for(u=y(de(p),25),w=new ye(u.a);w.a<w.c.c.length;)if(g=y(de(w),9),e.c.Mb(g)&&(Nt(e.b,new eY(e,g,e.e)),e.d)){if(ea(g,(Tt(),z6)))for(o=y(oe(g,z6),16).Jc();o.Ob();)n=y(o.Pb(),9),Nt(e.b,new eY(e,n,!1));if(ea(g,O6))for(o=y(oe(g,O6),16).Jc();o.Ob();)n=y(o.Pb(),9),Nt(e.b,new eY(e,n,!1))}}return e.b}i(djt,"ZWb");function uc(){uc=U,eze=new Cx(20),Zje=new To((Ri(),r1),eze),N1e=new To(ub,20),rze=new To(mVe,3),ltr=new To(yL,xR),UZ=new To(jj,Et(1)),ytr=new To(Bye,(qr(),!0)),Xje=Bj,Kje=(Ss(),g0),CT=new To(Ow,Kje),ctr=$j,utr=Lye,ftr=Pw,dtr=e4,ptr=IE,gtr=Uv,htr=DE,Qje=Gj,mtr=t4,ize=(L9e(),otr),tze=atr,wtr=wL,xtr=uee,vtr=n4,btr=vL,nze=(t6(),s4),new To(Z6,nze),EE=itr,M1e=ntr,um=str,Yje=ttr,Jje=rtr}i(uc,"SXc");function bkn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee;if(k=$a(e),z=i$t(e),n=y(St(e,(Ri(),$nr)),15).a,k){for(F=Ui,M=bo,u=new Sn((!k.a&&(k.a=new xt(Ti,k,10,11)),k.a));u.e!=u.i.gc();)o=y(_n(u),26),A=i$t(o),A>M&&(M=A),A<F&&(F=A);for(D=d.Math.pow(4,n),M>D&&(D=M),ee=(d.Math.log(D)-d.Math.log(1))/n,g=d.Math.exp(ee),p=g,w=0;w<n;w++){if(z<p)return d.Math.pow(2,w);p*=g}return d.Math.pow(2,n-1)}else return 1}i(bkn,"eod");function vkn(e){var n,o,u,p,g,w,k,A,D,M,F;for(F=new Fmt,F.d=0,w=new ye(e.b);w.a<w.c.c.length;)g=y(de(w),25),F.d+=g.a.c.length;for(u=0,p=0,F.a=tt(pi,Pi,30,e.b.c.length,15,1),D=0,M=0,F.e=tt(pi,Pi,30,F.d,15,1),o=new ye(e.b);o.a<o.c.c.length;)for(n=y(de(o),25),n.p=u++,F.a[n.p]=p++,M=0,A=new ye(n.a);A.a<A.c.c.length;)k=y(de(A),9),k.p=D++,F.e[k.p]=M++;return F.c=new vkt(F),F.b=Pm(F.d),BTn(F,e),F.f=Pm(F.d),FTn(F,e),F}i(vkn,"TNc");function wkn(e){var n,o;if(n=di(St(e,(Ri(),K6))),!QIt(n,e)&&!gg(e,r4)&&((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a).i!=0||Kt(Xt(St(e,Fj)))))if(n==null||h3(n).length==0){if(!QIt(Wr,e))throw o=Li(Li(new Lf("Unable to load default layout algorithm "),Wr)," for unconfigured node "),rJ(e,o),xe(new _y(o.a))}else throw o=Li(Li(new Lf("Layout algorithm '"),n),"' not found for "),rJ(e,o),xe(new _y(o.a))}i(wkn,"Ycd");function Jfe(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee;if(o=e.i,n=e.n,e.b==0)for(ee=o.c+n.b,z=o.b-n.b-n.c,w=e.a,A=0,M=w.length;A<M;++A)p=w[A],bY(p,ee,z);else u=YOt(e,!1),bY(e.a[0],o.c+n.b,u[0]),bY(e.a[2],o.c+o.b-n.c-u[2],u[2]),F=o.b-n.b-n.c,u[0]>0&&(F-=u[0]+e.c,u[0]+=e.c),u[2]>0&&(F-=u[2]+e.c),u[1]=d.Math.max(u[1],F),bY(e.a[1],o.c+n.b+u[0]-(u[1]-F)/2,u[1]);for(g=e.a,k=0,D=g.length;k<D;++k)p=g[k],Ge(p,337)&&y(p,337).hf()}i(Jfe,"DIb");function xkn(e){var n,o,u,p,g,w,k,A,D,M;for(M=tt(pi,Pi,30,e.b.c.length+1,15,1),D=new gs,u=0,g=new ye(e.b);g.a<g.c.c.length;){for(p=y(de(g),25),M[u++]=D.a.gc(),A=new ye(p.a);A.a<A.c.c.length;)for(w=y(de(A),9),o=new nn(cn(Ra(w).a.Jc(),new B));Nn(o);)n=y(vn(o),17),D.a.yc(n,D);for(k=new ye(p.a);k.a<k.c.c.length;)for(w=y(de(k),9),o=new nn(cn(os(w).a.Jc(),new B));Nn(o);)n=y(vn(o),17),D.a.Ac(n)!=null}return M}i(xkn,"gmc");function pjt(e,n){var o,u,p,g;for(g=y(Wt(e.n,e.n.c.length-1),208).d,e.p=d.Math.min(e.p,n.g),e.r=d.Math.max(e.r,g),e.g=d.Math.max(e.g,n.g+(e.b.c.length==1?0:e.i)),e.o=d.Math.min(e.o,n.f),e.e+=n.f+(e.b.c.length==1?0:e.i),e.f=d.Math.max(e.f,n.f),p=e.n.c.length>0?(e.n.c.length-1)*e.i:0,u=new ye(e.n);u.a<u.c.c.length;)o=y(de(u),208),p+=o.a;e.d=p,e.a=e.e/e.b.c.length-e.i*((e.b.c.length-1)/e.b.c.length),oDe(e.j)}i(pjt,"I6c");function gjt(e,n){var o,u,p,g,w,k,A,D,M,F;if(M=Xt(oe(n,(Vp(),yXt))),M==null||(Ur(M),M)){for(F=tt(ah,vg,30,n.e.c.length,16,1),w=hvn(n),p=new ya,D=new ye(n.e);D.a<D.c.c.length;)k=y(de(D),155),o=z9e(e,k,null,null,F,w),o&&(wc(o,n),Ha(p,o,p.c.b,p.c));if(p.b>1)for(u=ei(p,0);u.b!=u.d.c;)for(o=y(Qn(u),235),g=0,A=new ye(o.e);A.a<A.c.c.length;)k=y(de(A),155),k.a=g++;return p}return Bp(Se(Ee(dSn,1),VUt,235,0,[n]))}i(gjt,"VMb");function Q0(e){var n,o,u,p,g,w,k;if(!e.g){if(k=new ioe,n=$N,w=n.a.yc(e,n),w==null){for(u=new Sn(Ol(e));u.e!=u.i.gc();)o=y(_n(u),29),rs(k,Q0(o));n.a.Ac(e)!=null,n.a.gc()==0}for(p=k.i,g=(!e.s&&(e.s=new xt(ih,e,21,17)),new Sn(e.s));g.e!=g.i.gc();++p)gJr(y(_n(g),451),p);rs(k,(!e.s&&(e.s=new xt(ih,e,21,17)),e.s)),n3(k),e.g=new LMt(e,k),e.i=y(k.g,255),e.i==null&&(e.i=Zye),e.p=null,Hh(e).b&=-5}return e.g}i(Q0,"EWd");function Tkn(e,n){var o,u,p,g,w,k,A,D,M;if(o=n.ni(e.a),o&&(A=di(bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),"memberTypes")),A!=null)){for(D=new Pt,g=y3(A,"\\w"),w=0,k=g.length;w<k;++w)p=g[w],u=p.lastIndexOf("#"),M=u==-1?WAe(e,n.hk(),p):u==0?o$(e,null,(un(1,p.length+1),p.substr(1))):o$(e,(ko(0,u,p.length),p.substr(0,u)),(un(u+1,p.length+1),p.substr(u+1))),Ge(M,159)&&Nt(D,y(M,159));return D}return Ir(),Ir(),Go}i(Tkn,"Lce");function Qfe(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(u=e.i,o=e.n,e.b==0)n=qOt(e,!1),vY(e.a[0],u.d+o.d,n[0]),vY(e.a[2],u.d+u.a-o.a-n[2],n[2]),z=u.a-o.d-o.a,F=z,n[0]>0&&(n[0]+=e.c,F-=n[0]),n[2]>0&&(F-=n[2]+e.c),n[1]=d.Math.max(n[1],F),vY(e.a[1],u.d+o.d+n[0]-(n[1]-F)/2,n[1]);else for(ie=u.d+o.d,ee=u.a-o.d-o.a,w=e.a,A=0,M=w.length;A<M;++A)p=w[A],vY(p,ie,ee);for(g=e.a,k=0,D=g.length;k<D;++k)p=g[k],Ge(p,337)&&y(p,337).jf()}i(Qfe,"EIb");function kkn(e,n,o,u,p){var g,w,k;if(o.f>=n.o&&o.f<=n.f||n.a*.5<=o.f&&n.a*1.5>=o.f){if(w=y(Wt(n.n,n.n.c.length-1),208),w.e+w.d+o.g+p<=u&&(g=y(Wt(n.n,n.n.c.length-1),208),g.f-e.f+o.f<=e.b||e.a.c.length==1))return E_e(n,o),!0;if(n.s+o.g<=u&&n.t+n.d+o.f+p<=e.f+e.b)return Nt(n.b,o),k=y(Wt(n.n,n.n.c.length-1),208),Nt(n.n,new zY(n.s,k.f+k.a+n.i,n.i)),iDe(y(Wt(n.n,n.n.c.length-1),208),o),pjt(n,o),!0}return!1}i(kkn,"Q5c");function XK(e,n,o,u){var p,g,w,k,A;if(A=Ou(e.e.Ah(),n),p=y(e.g,122),tl(),y(n,69).vk()){for(w=0;w<e.i;++w)if(g=p[w],A.$l(g.Jk())&&ta(g,o))return!0}else if(o!=null){for(k=0;k<e.i;++k)if(g=p[k],A.$l(g.Jk())&&ta(o,g.kd()))return!0;if(u){for(w=0;w<e.i;++w)if(g=p[w],A.$l(g.Jk())&&Qe(o)===Qe(Hle(e,y(g.kd(),57))))return!0}}else for(w=0;w<e.i;++w)if(g=p[w],A.$l(g.Jk())&&g.kd()==null)return!1;return!1}i(XK,"qee");function Ckn(e,n){var o,u,p,g,w,k;if(o=n.ni(e.a),o&&(k=di(bg((!o.b&&(o.b=new df((Dr(),Zo),mc,o)),o.b),YJ)),k!=null))switch(p=Uq(k,Ku(35)),u=n.ok(),p==-1?(w=P9(e,Nf(u)),g=k):p==0?(w=null,g=(un(1,k.length+1),k.substr(1))):(w=(ko(0,p,k.length),k.substr(0,p)),g=(un(p+1,k.length+1),k.substr(p+1))),Ix(Rl(e,n))){case 2:case 3:return jfn(e,u,w,g);case 0:case 4:case 5:case 6:return zfn(e,u,w,g)}return null}i(Ckn,"Jce");function mjt(e,n,o,u){var p,g,w,k;for(k=o,w=new ye(n.a);w.a<w.c.c.length;){if(g=y(de(w),225),p=y(g.b,68),Vx(e.b.c,p.b.c+p.b.b)<=0&&Vx(p.b.c,e.b.c+e.b.b)<=0&&Vx(e.b.d,p.b.d+p.b.a)<=0&&Vx(p.b.d,e.b.d+e.b.a)<=0){if(Vx(p.b.c,e.b.c+e.b.b)==0&&u.a<0||Vx(p.b.c+p.b.b,e.b.c)==0&&u.a>0||Vx(p.b.d,e.b.d+e.b.a)==0&&u.b<0||Vx(p.b.d+p.b.a,e.b.d)==0&&u.b>0){k=0;break}}else k=d.Math.min(k,iFt(e,p,u));k=d.Math.min(k,mjt(e,g,k,u))}return k}i(mjt,"hMb");function MIe(e,n){var o,u,p,g,w,k,A;if(e.b<2)throw xe(new rn("The vector chain must contain at least a source and a target point."));for(p=(In(e.b!=0),y(e.a.a.c,8)),CF(n,p.a,p.b),A=new L5((!n.a&&(n.a=new Es(qf,n,5)),n.a)),w=ei(e,1);w.a<e.b-1;)k=y(Qn(w),8),A.e!=A.i.gc()?o=y(_n(A),372):(o=(Kb(),u=new EH,u),eOt(A,o)),Dle(o,k.a,k.b);for(;A.e!=A.i.gc();)_n(A),AI(A);g=(In(e.b!=0),y(e.c.b.c,8)),kF(n,g.a,g.b)}i(MIe,"Npd");function yjt(e,n,o,u){var p,g,w,k,A,D;if(D=Ou(e.e.Ah(),n),w=y(e.g,122),W1(e.e,n)){if(n.Qi()&&(g=oR(e,n,u,Ge(n,103)&&(y(n,19).Bb&Jo)!=0),g>=0&&g!=o))throw xe(new rn(zG));for(p=0,A=0;A<e.i;++A)if(k=w[A],D.$l(k.Jk())){if(p==o)return y(FC(e,A,(tl(),y(n,69).vk()?y(u,75):zm(n,u))),75);++p}throw xe(new yu(mM+o+xw+p))}else{for(A=0;A<e.i;++A)if(k=w[A],D.$l(k.Jk()))return tl(),y(n,69).vk()?k:k.kd();return null}}i(yjt,"Ree");function bjt(e,n){var o,u,p,g,w,k,A,D,M;for(o=0,p=new ye((_r(0,e.c.length),y(e.c[0],107)).g.b.j);p.a<p.c.c.length;)u=y(de(p),12),u.p=o++;for(n==(zt(),sn)?zs(e,new I0t):zs(e,new $0t),k=0,M=e.c.length-1;k<M;)w=(_r(k,e.c.length),y(e.c[k],107)),D=(_r(M,e.c.length),y(e.c[M],107)),g=n==sn?w.c:w.a,A=n==sn?D.a:D.c,Fy(w,n,(jp(),XR),g),Fy(D,n,YR,A),++k,--M;k==M&&Fy((_r(k,e.c.length),y(e.c[k],107)),n,(jp(),O3),null)}i(bjt,"Rjc");function Ekn(e,n,o,u){var p,g,w,k,A,D;for(w=new qjt(e,n,o),A=new yo(u,0),p=!1;A.b<A.d.gc();)k=(In(A.b<A.d.gc()),y(A.d.Xb(A.c=A.b++),239)),k==n||k==o?Wh(A):!p&&He(Hg(k.g,k.d[0]).a)>He(Hg(w.g,w.d[0]).a)?(In(A.b>0),A.a.Xb(A.c=--A.b),Ok(A,w),p=!0):k.e&&k.e.gc()>0&&(g=(!k.e&&(k.e=new Pt),k.e).Kc(n),D=(!k.e&&(k.e=new Pt),k.e).Kc(o),(g||D)&&((!k.e&&(k.e=new Pt),k.e).Ec(w),++w.c));p||tn(u.c,w)}i(Ekn,"FFc");function Skn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;return F=e.a.i+e.a.g/2,z=e.a.i+e.a.g/2,ie=n.i+n.g/2,fe=n.j+n.f/2,k=new Lt(ie,fe),D=y(St(n,(Ri(),J6)),8),D.a=D.a+F,D.b=D.b+z,g=(k.b-D.b)/(k.a-D.a),u=k.b-g*k.a,ue=o.i+o.g/2,Ce=o.j+o.f/2,A=new Lt(ue,Ce),M=y(St(o,J6),8),M.a=M.a+F,M.b=M.b+z,w=(A.b-M.b)/(A.a-M.a),p=A.b-w*A.a,ee=(u-p)/(w-g),D.a<ee&&k.a<ee||ee<D.a&&ee<k.a?!1:!(M.a<ee&&A.a<ee||ee<M.a&&ee<A.a)}i(Skn,"q0c");function Akn(e,n,o){var u,p,g,w;for(o.Tg(MVt,1),e.a=n,e.c=new Pt,g=d.Math.max(n.a.c.length,y(oe(n,(Tt(),Pv)),15).a);w=new ADt(e.c,e.d,e.b),Jvn(w,n),emn(w,n),e.d.b!=0;){for(e.rg(g,g*y(oe(n,uj),15).a),p=new ye(e.c);p.a<p.c.c.length;)u=y(de(p),17),Jy(u,!1),dt(u.c.i,(Bt(),KM),Et(y(oe(u.c.i,KM),15).a+1)),dt(n,P6,(qr(),!0));gf(e.d),Sc(e.b),e.c.c.length=0}o.Ug(),o.ah("Execution Time: "+o.Vg())}i(Akn,"xCc");function vjt(e,n,o,u){var p,g,w,k,A,D;if(!qk(n)){if(D=o.dh((Ge(n,18)?y(n,18).gc():dg(n.Jc()))/e.a|0),D.Tg($Vt,1),A=new C1t,k=0,u==(Ss(),Il)||u==Bl)for(w=n.Jc();w.Ob();)p=y(w.Pb(),40),A=pd(Se(Ee(kd,1),Fr,20,0,[A,new A1(p)])),k<p.f.a&&(k=p.f.a);else for(w=n.Jc();w.Ob();)p=y(w.Pb(),40),A=pd(Se(Ee(kd,1),Fr,20,0,[A,new A1(p)])),k<p.f.b&&(k=p.f.b);for(g=n.Jc();g.Ob();)p=y(g.Pb(),40),dt(p,(Ca(),zZ),k);D.Ug(),vjt(e,A,o,u)}}i(vjt,"QVc");function NIe(e,n,o){var u,p,g,w,k,A,D,M;this.a=e,this.b=n,this.c=o,this.e=Bp(Se(Ee(uSn,1),Fr,177,0,[new x5(e,n),new x5(n,o),new x5(o,e)])),this.f=Bp(Se(Ee(to,1),Dt,8,0,[e,n,o])),this.d=(u=qs(Wo(this.b),this.a),p=qs(Wo(this.c),this.a),g=qs(Wo(this.c),this.b),w=u.a*(this.a.a+this.b.a)+u.b*(this.a.b+this.b.b),k=p.a*(this.a.a+this.c.a)+p.b*(this.a.b+this.c.b),A=2*(u.a*g.b-u.b*g.a),D=(p.b*w-u.b*k)/A,M=(u.a*k-p.a*w)/A,new Lt(D,M))}i(NIe,"oEb");function Jy(e,n){var o,u,p,g,w,k;for(g=e.c,w=e.d,Bo(e,null),mo(e,null),n&&Kt(Xt(oe(w,(Tt(),Rme))))?Bo(e,EIe(w.i,(sl(),Eu),(zt(),bn))):Bo(e,w),n&&Kt(Xt(oe(g,(Tt(),_me))))?mo(e,EIe(g.i,(sl(),Mh),(zt(),on))):mo(e,g),u=new ye(e.b);u.a<u.c.c.length;)o=y(de(u),70),p=y(oe(o,(Bt(),cm)),279),p==(Qg(),TL)?dt(o,cm,i4):p==i4&&dt(o,cm,TL);k=Kt(Xt(oe(e,(Tt(),ib)))),dt(e,ib,(qr(),!k)),e.a=qLe(e.a)}i(Jy,"BWb");function Rkn(e,n){var o,u,p,g,w;return o=H7(y(oe(n,(uc(),CT)),86)),e.b.b==0?null:(w=y(Rh(bu(new Er(null,new Rr(e.b,16)),new c1t),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),g=y(Rh(Hi(new Er(null,new Rr(n.b,16)),new xkt(w)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[Zu]))),16),p=Xe(ff($k(bu(g.Mc(),new Tkt(o)),(Mx(),Mx(),m0e)))),u=y(ff(j1(Hi(g.Mc(),new sSt(o,p)))),40),u)}i(Rkn,"WSc");function Lkn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;o=Ex(new G2,e.f),D=e.i[n.c.i.p],ee=e.i[n.d.i.p],A=n.c,z=n.d,k=A.a.b,F=z.a.b,D.b||(k+=A.n.b),ee.b||(F+=z.n.b),M=Po(d.Math.max(0,k-F)),w=Po(d.Math.max(0,F-k)),ie=(ue=d.Math.max(1,y(oe(n,(Bt(),W6)),15).a),fe=uRe(n.c.i.k,n.d.i.k),ue*fe),p=Up(Dp(_p(Lp(Ip(new Vd,ie),w),o),y(Jr(e.k,n.c),124))),g=Up(Dp(_p(Lp(Ip(new Vd,ie),M),o),y(Jr(e.k,n.d),124))),u=new ZEt(p,g),e.c[n.p]=u}i(Lkn,"eLc");function _kn(e,n,o){var u,p,g,w,k,A;for(u=0,g=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));g.e!=g.i.gc();)p=y(_n(g),26),w="",(!p.n&&(p.n=new xt(nc,p,1,7)),p.n).i==0||(w=y(je((!p.n&&(p.n=new xt(nc,p,1,7)),p.n),0),157).a),k=new _5t(w),wc(k,p),dt(k,(uv(),I6),p),k.a=u++,k.d.a=p.i+p.g/2,k.d.b=p.j+p.f/2,k.e.a=d.Math.max(p.g,1),k.e.b=d.Math.max(p.f,1),Nt(n.e,k),Ju(o.f,p,k),A=y(St(p,(Vp(),IBe)),102),A==(uo(),Hv)&&(A=m0)}i(_kn,"dNb");function wjt(e){var n,o,u;if(gC(y(oe(e,(Bt(),Qa)),102)))for(o=new ye(e.j);o.a<o.c.c.length;)n=y(de(o),12),n.j==(zt(),rc)&&(u=y(oe(n,(Tt(),Ih)),9),u?Bs(n,y(oe(u,gc),64)):n.e.c.length-n.g.c.length<0?Bs(n,bn):Bs(n,on));else{for(o=new ye(e.j);o.a<o.c.c.length;)n=y(de(o),12),u=y(oe(n,(Tt(),Ih)),9),u?Bs(n,y(oe(u,gc),64)):n.e.c.length-n.g.c.length<0?Bs(n,(zt(),bn)):Bs(n,(zt(),on));dt(e,Qa,(uo(),CL))}}i(wjt,"Uac");function Dkn(e,n){var o,u,p,g,w,k,A;n.Tg("Layer constraint postprocessing",1),A=e.b,A.c.length!=0&&(u=(_r(0,A.c.length),y(A.c[0],25)),w=y(Wt(A,A.c.length-1),25),o=new Nc(e),g=new Nc(e),bTn(e,u,w,o,g),o.a.c.length==0||(Hk(0,A.c.length),f9(A.c,0,o)),g.a.c.length==0||tn(A.c,g)),ea(e,(Tt(),Ame))&&(p=new Nc(e),k=new Nc(e),oxn(e,p,k),p.a.c.length==0||(Hk(0,A.c.length),f9(A.c,0,p)),k.a.c.length==0||tn(A.c,k)),n.Ug()}i(Dkn,"R7b");function oG(e){var n,o,u;switch(e){case 91:case 93:case 45:case 94:case 44:case 92:u="\\"+String.fromCharCode(e&As);break;case 12:u="\\f";break;case 10:u="\\n";break;case 13:u="\\r";break;case 9:u="\\t";break;case 27:u="\\e";break;default:e<32?(o=(n=e>>>0,"0"+n.toString(16)),u="\\x"+Yd(o,o.length-2,o.length)):e>=Jo?(o=(n=e>>>0,"0"+n.toString(16)),u="\\v"+Yd(o,o.length-6,o.length)):u=""+String.fromCharCode(e&As)}return u}i(oG,"Mre");function xjt(e,n){var o,u,p,g,w,k,A,D,M;for(g=new ye(e.b);g.a<g.c.c.length;)for(p=y(de(g),25),k=new ye(p.a);k.a<k.c.c.length;)for(w=y(de(k),9),w.k==(Yr(),_c)&&(A=(D=y(vn(new nn(cn(os(w).a.Jc(),new B))),17),M=y(vn(new nn(cn(Ra(w).a.Jc(),new B))),17),!Kt(Xt(oe(D,(Tt(),ib))))||!Kt(Xt(oe(M,ib)))?n:wMt(n)),p6(w,A)),u=new nn(cn(Ra(w).a.Jc(),new B));Nn(u);)o=y(vn(u),17),A=Kt(Xt(oe(o,(Tt(),ib))))?wMt(n):n,fMt(o,A)}i(xjt,"G7b");function OIe(e){var n,o,u,p,g,w;for(this.e=new Pt,this.a=new Pt,o=e.b-1;o<3;o++)e7(e,0,y(Bc(e,0),8));if(e.b<4)throw xe(new rn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,s2n(this,e.b+this.b-1),w=new Pt,g=new ye(this.e),n=0;n<this.b-1;n++)Nt(w,Xe(de(g)));for(p=ei(e,0);p.b!=p.d.c;)u=y(Qn(p),8),Nt(w,Xe(de(g))),Nt(this.a,new gRt(u,w)),_r(0,w.c.length),w.c.splice(0,1)}i(OIe,"fRc");function Tjt(e,n,o){var u,p,g,w;return e.Nj()?(p=null,g=e.Oj(),u=e.Gj(1,w=_ue(e,n,o),o,n,g),e.Kj()&&!(e.Wi()&&w!=null?ta(w,o):Qe(w)===Qe(o))?(w!=null&&(p=e.Mj(w,p)),p=e.Lj(o,p),e.Rj()&&(p=e.Uj(w,o,p)),p?(p.lj(u),p.mj()):e.Hj(u)):(e.Rj()&&(p=e.Uj(w,o,p)),p?(p.lj(u),p.mj()):e.Hj(u)),w):(w=_ue(e,n,o),e.Kj()&&!(e.Wi()&&w!=null?ta(w,o):Qe(w)===Qe(o))&&(p=null,w!=null&&(p=e.Mj(w,null)),p=e.Lj(o,p),p&&p.mj()),w)}i(Tjt,"OJd");function Ikn(e,n){var o,u,p,g,w;if(n.Tg("Path-Like Graph Wrapping",1),e.b.c.length==0){n.Ug();return}if(p=new I9e(e),w=(p.i==null&&(p.i=CLe(p,new GSe)),He(p.i)*p.f),o=w/(p.i==null&&(p.i=CLe(p,new GSe)),He(p.i)),p.b>o){n.Ug();return}switch(y(oe(e,(Bt(),t1e)),350).g){case 2:g=new zSe;break;case 0:g=new $Se;break;default:g=new USe}if(u=g.mg(e,p),!g.ng())switch(y(oe(e,AZ),351).g){case 2:u=aFt(p,u);break;case 1:u=XPt(p,u)}A3n(e,p,u),n.Ug()}i(Ikn,"tnc");function GI(e,n){var o,u,p,g,w,k,A,D;n%=24,e.q.getHours()!=n&&(u=new d.Date(e.q.getTime()),u.setDate(u.getDate()+1),k=e.q.getTimezoneOffset()-u.getTimezoneOffset(),k>0&&(A=k/60|0,D=k%60,p=e.q.getDate(),o=e.q.getHours(),o+A>=24&&++p,g=new d.Date(e.q.getFullYear(),e.q.getMonth(),p,n+A,e.q.getMinutes()+D,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(g.getTime()))),w=e.q.getTime(),e.q.setTime(w+36e5),e.q.getHours()!=n&&e.q.setTime(w)}i(GI,"eB");function Mkn(e,n){var o,u,p,g;if(con(e.d,e.e),e.c.a.$b(),He(Xe(oe(n.j,(Bt(),pj))))!=0||He(Xe(oe(n.j,pj)))!=0)for(o=eE,Qe(oe(n.j,t1))!==Qe((V1(),$v))&&dt(n.j,(Tt(),Ov),(qr(),!0)),g=y(oe(n.j,ZM),15).a,p=0;p<g&&(u=Hkn(e,n),!(u<o&&(o=u,DIt(e),o==0)));p++);else for(o=Ui,Qe(oe(n.j,t1))!==Qe((V1(),$v))&&dt(n.j,(Tt(),Ov),(qr(),!0)),g=y(oe(n.j,ZM),15).a,p=0;p<g&&(u=Sjt(e,n),!(u<o&&(o=u,DIt(e),o==0)));p++);}i(Mkn,"EGc");function Nkn(e,n){var o,u,p,g,w,k,A,D;for(w=new Pt,k=0,o=0,A=0;k<n.c.length-1&&o<e.gc();){for(u=y(e.Xb(o),15).a+A;(_r(k+1,n.c.length),y(n.c[k+1],15)).a<u;)++k;for(D=0,g=u-(_r(k,n.c.length),y(n.c[k],15)).a,p=(_r(k+1,n.c.length),y(n.c[k+1],15)).a-u,g>p&&++D,Nt(w,(_r(k+D,n.c.length),y(n.c[k+D],15))),A+=(_r(k+D,n.c.length),y(n.c[k+D],15)).a-u,++o;o<e.gc()&&y(e.Xb(o),15).a+A<=(_r(k+D,n.c.length),y(n.c[k+D],15)).a;)++o;k+=1+D}return w}i(Nkn,"xnc");function Okn(e,n){var o,u,p,g,w;for(w=new nn(cn(os(n).a.Jc(),new B));Nn(w);)if(g=y(vn(w),17),e.f.b==0?(p=g.c.i.k==(Yr(),Ya)&&!!g.c.i.c&&g.c.i.c.p==e.c,Nn(new nn(cn(os(g.c.i).a.Jc(),new B)))?(o=y(vn(new nn(cn(os(g.c.i).a.Jc(),new B))),17).c.i.c,u=g.c.i.k==_c&&!!o&&o.p==e.c):u=!1):(p=g.c.i.k==(Yr(),Ya)&&g.c.i.p==e.c,u=g.c.i.k==_c&&y(vn(new nn(cn(os(g.c.i).a.Jc(),new B))),17).c.i.p==e.c),p||u)return!0;return!1}i(Okn,"nDc");function Pkn(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(z=new Pt,Ce=JY(u),fe=n*e.a,F=0,ie=0,g=new gs,w=new gs,k=new Pt,Me=0,$e=0,ee=0,ue=0,D=0,M=0;Ce.a.gc()!=0;)A=Zdn(Ce,p,w),A&&(Ce.a.Ac(A)!=null,tn(k.c,A),g.a.yc(A,g),ie=e.f[A.p],Me+=e.e[A.p]-ie*e.b,F=e.c[A.p],$e+=F*e.b,M+=ie*e.b,ue+=e.e[A.p]),(!A||Ce.a.gc()==0||Me>=fe&&e.e[A.p]>ie*e.b||$e>=o*fe)&&(tn(z.c,k),k=new Pt,Fo(w,g),g.a.$b(),D-=M,ee=d.Math.max(ee,D*e.b+ue),D+=$e,Me=$e,$e=0,M=0,ue=0);return new Ko(ee,z)}i(Pkn,"XDc");function Zfe(e){var n,o,u,p,g,w,k;if(!e.d){if(k=new $bt,n=$N,g=n.a.yc(e,n),g==null){for(u=new Sn(Ol(e));u.e!=u.i.gc();)o=y(_n(u),29),rs(k,Zfe(o));n.a.Ac(e)!=null,n.a.gc()==0}for(w=k.i,p=(!e.q&&(e.q=new xt(lp,e,11,10)),new Sn(e.q));p.e!=p.i.gc();++w)y(_n(p),403);rs(k,(!e.q&&(e.q=new xt(lp,e,11,10)),e.q)),n3(k),e.d=new pC((y(je(wt((rv(),Xr).o),9),19),k.i),k.g),e.e=y(k.g,678),e.e==null&&(e.e=Xir),Hh(e).b&=-17}return e.d}i(Zfe,"CWd");function oR(e,n,o,u){var p,g,w,k,A,D;if(D=Ou(e.e.Ah(),n),A=0,p=y(e.g,122),tl(),y(n,69).vk()){for(w=0;w<e.i;++w)if(g=p[w],D.$l(g.Jk())){if(ta(g,o))return A;++A}}else if(o!=null){for(k=0;k<e.i;++k)if(g=p[k],D.$l(g.Jk())){if(ta(o,g.kd()))return A;++A}if(u){for(A=0,w=0;w<e.i;++w)if(g=p[w],D.$l(g.Jk())){if(Qe(o)===Qe(Hle(e,y(g.kd(),57))))return A;++A}}}else for(w=0;w<e.i;++w)if(g=p[w],D.$l(g.Jk())){if(g.kd()==null)return A;++A}return-1}i(oR,"xee");function Bkn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue;if(o.Uh(n)&&(M=(ee=n,ee?y(u,52).di(ee):null),M))if(ue=o.Kh(n,e.a),ie=n.t,ie>1||ie==-1)if(F=y(ue,72),z=y(M,72),F.dc())z.$b();else for(w=!!rl(n),g=0,k=e.a?F.Jc():F.Gi();k.Ob();)D=y(k.Pb(),57),p=y(Jg(e,D),57),p?(w?(A=z.bd(p),A==-1?z.Ei(g,p):g!=A&&z.Si(g,p)):z.Ei(g,p),++g):e.b&&!w&&(z.Ei(g,D),++g);else ue==null?M.Wb(null):(p=Jg(e,ue),p==null?e.b&&!rl(n)&&M.Wb(ue):M.Wb(p))}i(Bkn,"iie");function Fkn(e,n){var o,u,p,g,w,k,A,D;for(o=new gpt,p=new nn(cn(os(n).a.Jc(),new B));Nn(p);)if(u=y(vn(p),17),!Mo(u)&&(k=u.c.i,FDe(k,LQ))){if(D=oIe(e,k,LQ,RQ),D==-1)continue;o.b=d.Math.max(o.b,D),!o.a&&(o.a=new Pt),Nt(o.a,k)}for(w=new nn(cn(Ra(n).a.Jc(),new B));Nn(w);)if(g=y(vn(w),17),!Mo(g)&&(A=g.d.i,FDe(A,RQ))){if(D=oIe(e,A,RQ,LQ),D==-1)continue;o.d=d.Math.max(o.d,D),!o.c&&(o.c=new Pt),Nt(o.c,A)}return o}i(Fkn,"H3b");function $kn(e,n,o,u){var p,g,w,k,A,D,M;if(o.d.i!=n.i){for(p=new e0(e),C1(p,(Yr(),bs)),dt(p,(Tt(),aa),o),dt(p,(Bt(),Qa),(uo(),zc)),tn(u.c,p),w=new Fc,Kl(w,p),Bs(w,(zt(),on)),k=new Fc,Kl(k,p),Bs(k,bn),M=o.d,mo(o,w),g=new Nx,wc(g,o),dt(g,Dl,null),Bo(g,k),mo(g,M),D=new yo(o.b,0);D.b<D.d.gc();)A=(In(D.b<D.d.gc()),y(D.d.Xb(D.c=D.b++),70)),Qe(oe(A,cm))===Qe((Qg(),i4))&&(dt(A,B6,o),Wh(D),Nt(g.b,A));JFt(p,w,k)}}i($kn,"d6b");function Gkn(e,n,o,u){var p,g,w,k,A,D,M;if(o.c.i!=n.i)for(p=new e0(e),C1(p,(Yr(),bs)),dt(p,(Tt(),aa),o),dt(p,(Bt(),Qa),(uo(),zc)),tn(u.c,p),w=new Fc,Kl(w,p),Bs(w,(zt(),on)),k=new Fc,Kl(k,p),Bs(k,bn),mo(o,w),g=new Nx,wc(g,o),dt(g,Dl,null),Bo(g,k),mo(g,n),JFt(p,w,k),D=new yo(o.b,0);D.b<D.d.gc();)A=(In(D.b<D.d.gc()),y(D.d.Xb(D.c=D.b++),70)),M=y(oe(A,cm),279),M==(Qg(),i4)&&(ea(A,B6)||dt(A,B6,o),Wh(D),Nt(g.b,A))}i(Gkn,"c6b");function kjt(e){iR();var n,o,u,p;if(n=Po(e),e<RM.length)return RM[n];if(e<=50)return Q$((J0(),g0e),n);if(e<=Qy)return W5(Q$(R6[1],n),n);if(e>1e6)throw xe(new UH("power of ten too big"));if(e<=Ui)return W5(Q$(R6[1],n),n);for(u=Q$(R6[1],Ui),p=u,o=vc(e-Ui),n=Po(e%Ui);eu(o,Ui)>0;)p=SC(p,u),o=Kd(o,Ui);for(p=SC(p,Q$(R6[1],n)),p=W5(p,Ui),o=vc(e-Ui);eu(o,Ui)>0;)p=W5(p,Ui),o=Kd(o,Ui);return p=W5(p,n),p}i(kjt,"ajb");function Cjt(e){var n,o,u,p,g,w,k,A,D,M;for(A=new ye(e.a);A.a<A.c.c.length;)if(k=y(de(A),9),k.k==(Yr(),ks)&&(p=y(oe(k,(Tt(),gc)),64),p==(zt(),bn)||p==on))for(u=new nn(cn(Y0(k).a.Jc(),new B));Nn(u);)o=y(vn(u),17),n=o.a,n.b!=0&&(D=o.c,D.i==k&&(g=(In(n.b!=0),y(n.a.a.c,8)),g.b=Ql(Se(Ee(to,1),Dt,8,0,[D.i.n,D.n,D.a])).b),M=o.d,M.i==k&&(w=(In(n.b!=0),y(n.c.b.c,8)),w.b=Ql(Se(Ee(to,1),Dt,8,0,[M.i.n,M.n,M.a])).b))}i(Cjt,"e3b");function jI(e,n,o,u){var p,g,w;if(this.j=new Pt,this.k=new Pt,this.b=new Pt,this.c=new Pt,this.e=new S5,this.i=new Vh,this.f=new woe,this.d=new Pt,this.g=new Pt,Nt(this.b,e),Nt(this.b,n),this.e.c=d.Math.min(e.a,n.a),this.e.d=d.Math.min(e.b,n.b),this.e.b=d.Math.abs(e.a-n.a),this.e.a=d.Math.abs(e.b-n.b),p=y(oe(u,(Bt(),Dl)),79),p)for(w=ei(p,0);w.b!=w.d.c;)g=y(Qn(w),8),QRe(g.a,e.a)&&_i(this.i,g);o&&Nt(this.j,o),Nt(this.k,u)}i(jI,"Yfc");function jkn(e,n,o,u){var p,g,w,k,A,D,M;for(k=-1,M=new ye(e);M.a<M.c.c.length;)D=y(de(M),116),D.g=k--,p=mi(qY(_Y(Hi(new Er(null,new Rr(D.f,16)),new jmt),new zmt)).d),g=mi(qY(_Y(Hi(new Er(null,new Rr(D.k,16)),new Umt),new Vmt)).d),w=p,A=g,u||(w=mi(qY(_Y(new Er(null,new Rr(D.f,16)),new Wmt)).d),A=mi(qY(_Y(new Er(null,new Rr(D.k,16)),new Hmt)).d)),D.d=w,D.a=p,D.i=A,D.b=g,A==0?Ha(o,D,o.c.b,o.c):w==0&&Ha(n,D,n.c.b,n.c)}i(jkn,"ePc");function p6(e,n){var o,u,p,g,w,k;if(e.k==(Yr(),_c)&&(o=e.k==_c&&!W8(Hi(y(oe(e,(Tt(),jM)),16).Mc(),new B8(new Ai))).zd((z2(),L6))?(Bf(),Vj):n,dt(e,(Tt(),$6),o),o!=(Bf(),Vv)))for(u=y(oe(e,aa),17),k=He(Xe(oe(u,(Bt(),ab)))),w=0,o==n1?w=e.o.b-d.Math.ceil(k/2):o==Vj&&(w=d.Math.ceil(e.o.b-He(Xe(oe(Zs(e),xE)))-k)/2,e.o.b-=He(Xe(oe(Zs(e),xE))),e.o.b-=k),g=new ye(e.j);g.a<g.c.c.length;)p=y(de(g),12),p.n.b=w}i(p6,"E7b");function Ejt(e,n,o){var u,p,g,w,k,A,D,M,F;for(p=!0,w=new ye(e.b);w.a<w.c.c.length;){for(g=y(de(w),25),D=Ys,M=null,A=new ye(g.a);A.a<A.c.c.length;)if(k=y(de(A),9),F=He(n.p[k.p])+He(n.d[k.p])-k.d.d,u=He(n.p[k.p])+He(n.d[k.p])+k.o.b+k.d.a,F>D&&u>D)M=k,D=He(n.p[k.p])+He(n.d[k.p])+k.o.b+k.d.a;else{p=!1,o.$g()&&o.ah("bk node placement breaks on "+k+" which should have been after "+M);break}if(!p)break}return o.$g()&&o.ah(n+" is feasible: "+p),p}i(Ejt,"GNc");function PIe(e,n,o,u){var p,g,w,k,A,D,M,F,z;if(g=new e0(e),C1(g,(Yr(),iu)),dt(g,(Bt(),Qa),(uo(),zc)),p=0,n){for(w=new Fc,dt(w,(Tt(),aa),n),dt(g,aa,n.i),Bs(w,(zt(),on)),Kl(w,g),z=q0(n.e),D=z,M=0,F=D.length;M<F;++M)A=D[M],mo(A,w);dt(n,Ih,g),++p}if(o){for(k=new Fc,dt(g,(Tt(),aa),o.i),dt(k,aa,o),Bs(k,(zt(),bn)),Kl(k,g),z=q0(o.g),D=z,M=0,F=D.length;M<F;++M)A=D[M],Bo(A,k);dt(o,Ih,g),++p}return dt(g,(Tt(),oZ),Et(p)),tn(u.c,g),g}i(PIe,"w9b");function zkn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee;for(o=(D=new S1(e.c.b).a.vc().Jc(),new bk(D));o.a.Ob();)n=(k=y(o.a.Pb(),45),y(k.kd(),144)),p=n.a,p==null&&(p=""),u=Ctn(e.c,p),!u&&p.length==0&&(u=Mdn(e)),u&&!a3(u.c,n,!1)&&_i(u.c,n);for(w=ei(e.a,0);w.b!=w.d.c;)g=y(Qn(w),475),M=due(e.c,g.a),ee=due(e.c,g.b),M&&ee&&_i(M.c,new Ko(ee,g.c));for(gf(e.a),z=ei(e.b,0);z.b!=z.d.c;)F=y(Qn(z),475),n=ktn(e.c,F.a),A=due(e.c,F.b),n&&A&&iZr(n,A,F.c);gf(e.b)}i(zkn,"ydd");function Ukn(e,n,o){var u,p,g,w,k,A,D,M,F;for(w=new IPt,D=Se(Ee(pi,1),Pi,30,15,[0]),p=-1,g=0,u=0,A=0;A<e.b.c.length;++A)if(M=y(Wt(e.b,A),434),M.b>0){if(p<0&&M.a&&(p=A,g=D[0],u=0),p>=0){if(k=M.b,A==p&&(k-=u++,k==0))return 0;if(!Szt(n,D,M,k,w)){A=p-1,D[0]=g;continue}}else if(p=-1,!Szt(n,D,M,0,w))return 0}else{if(p=-1,Do(M.c,0)==32){if(F=D[0],H9t(n,D),D[0]>F)continue}else if(ksn(n,M.c,D[0])){D[0]+=M.c.length;continue}return 0}return ICn(w,o)?D[0]:0}i(Ukn,"xA");function Vkn(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(M=new xY(new qxt(o)),k=tt(ah,vg,30,e.f.e.c.length,16,1),o7e(k,k.length),o[n.a]=0,D=new ye(e.f.e);D.a<D.c.c.length;)A=y(de(D),155),A.a!=n.a&&(o[A.a]=Ui),N5(J7(M,A),yR);for(;M.b.c.length!=0;)for(F=y(Mue(M),155),k[F.a]=!0,g=a6t(new zoe(e.b,F),0);g.c;)p=y(XRe(g),291),z=C0n(p,F),!k[z.a]&&(ea(p,(j$(),AQ))?w=He(Xe(oe(p,AQ))):w=e.c,u=o[F.a]+w,u<o[z.a]&&(o[z.a]=u,SIt(M,z),N5(J7(M,z),yR)))}i(Vkn,"UPb");function BIe(e){var n,o,u,p,g,w,k,A;o=Kt(Xt(oe(e,(Vp(),cXt)))),g=e.a.c.d,k=e.a.d.d,o?(w=L1(qs(new Lt(k.a,k.b),g),.5),A=L1(Wo(e.e),.5),n=qs(ra(new Lt(g.a,g.b),w),A),jAe(e.d,n)):(p=He(Xe(oe(e.a,bXt))),u=e.d,g.a>=k.a?g.b>=k.b?(u.a=k.a+(g.a-k.a)/2+p,u.b=k.b+(g.b-k.b)/2-p-e.e.b):(u.a=k.a+(g.a-k.a)/2+p,u.b=g.b+(k.b-g.b)/2+p):g.b>=k.b?(u.a=g.a+(k.a-g.a)/2+p,u.b=k.b+(g.b-k.b)/2+p):(u.a=g.a+(k.a-g.a)/2+p,u.b=g.b+(k.b-g.b)/2-p-e.e.b))}i(BIe,"LNb");function zI(e){var n,o,u,p,g,w,k,A;if(!e.f){if(A=new XSe,k=new XSe,n=$N,w=n.a.yc(e,n),w==null){for(g=new Sn(Ol(e));g.e!=g.i.gc();)p=y(_n(g),29),rs(A,zI(p));n.a.Ac(e)!=null,n.a.gc()==0}for(u=(!e.s&&(e.s=new xt(ih,e,21,17)),new Sn(e.s));u.e!=u.i.gc();)o=y(_n(u),179),Ge(o,103)&&Zn(k,y(o,19));n3(k),e.r=new HAt(e,(y(je(wt((rv(),Xr).o),6),19),k.i),k.g),rs(A,e.r),n3(A),e.f=new pC((y(je(wt(Xr.o),5),19),A.i),A.g),Hh(e).b&=-3}return e.f}i(zI,"DWd");function KK(){KK=U,lWe=Se(Ee(Rd,1),em,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Cir=new RegExp(`[
|
|
\r\f]+`);try{PN=Se(Ee(LSn,1),Fr,2079,0,[new JB((dAe(),nK("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",MF((WH(),WH(),EM))))),new JB(nK("yyyy-MM-dd'T'HH:mm:ss'.'SSS",MF(EM))),new JB(nK("yyyy-MM-dd'T'HH:mm:ss",MF(EM))),new JB(nK("yyyy-MM-dd'T'HH:mm",MF(EM))),new JB(nK("yyyy-MM-dd",MF(EM)))])}catch(e){if(e=hs(e),!Ge(e,80))throw xe(e)}}i(KK,"Mxd");function Wkn(e){var n,o,u,p,g,w,k;for(o=null,k=null,u=y(oe(e.b,(Bt(),Ume)),348),u==(uI(),Tj)&&(o=new Pt,k=new Pt),w=new ye(e.d);w.a<w.c.c.length;)if(g=y(de(w),107),p=g.i,!!p)switch(g.e.g){case 0:n=y(J9(new v5(g.b)),64),u==Tj&&n==(zt(),sn)?tn(o.c,g):u==Tj&&n==(zt(),Fn)?tn(k.c,g):xvn(g,n);break;case 1:z2n(g);break;case 2:case 3:aTn(g);break;case 4:tbn(g)}o&&(o.c.length==0||bjt(o,(zt(),sn)),k.c.length==0||bjt(k,(zt(),Fn)))}i(Wkn,"Ujc");function Hkn(e,n){var o,u,p,g;if(p=Qh(e.d,1)!=0,u=kIe(e,n),u==0&&Kt(Xt(oe(n.j,(Tt(),Ov)))))return 0;!Kt(Xt(oe(n.j,(Tt(),Ov))))&&!Kt(Xt(oe(n.j,mE)))||Qe(oe(n.j,(Bt(),t1)))===Qe((V1(),$v))?n.c.kg(n.e,p):p=Kt(Xt(oe(n.j,Ov))),nG(e,n,p,!0),Kt(Xt(oe(n.j,mE)))&&dt(n.j,mE,(qr(),!1)),Kt(Xt(oe(n.j,Ov)))&&(dt(n.j,Ov,(qr(),!1)),dt(n.j,mE,!0)),o=kIe(e,n);do{if(TLe(e),o==0)return 0;p=!p,g=o,nG(e,n,p,!1),o=kIe(e,n)}while(g>o);return g}i(Hkn,"OGc");function Sjt(e,n){var o,u,p,g;if(p=Qh(e.d,1)!=0,u=DK(e,n),u==0&&Kt(Xt(oe(n.j,(Tt(),Ov)))))return 0;!Kt(Xt(oe(n.j,(Tt(),Ov))))&&!Kt(Xt(oe(n.j,mE)))||Qe(oe(n.j,(Bt(),t1)))===Qe((V1(),$v))?n.c.kg(n.e,p):p=Kt(Xt(oe(n.j,Ov))),nG(e,n,p,!0),Kt(Xt(oe(n.j,mE)))&&dt(n.j,mE,(qr(),!1)),Kt(Xt(oe(n.j,Ov)))&&(dt(n.j,Ov,(qr(),!1)),dt(n.j,mE,!0)),o=DK(e,n);do{if(TLe(e),o==0)return 0;p=!p,g=o,nG(e,n,p,!1),o=DK(e,n)}while(g>o);return g}i(Sjt,"PGc");function qkn(e,n,o){var u,p,g,w,k;if(u=y(oe(e,(Bt(),Gme)),22),o.a>n.a&&(u.Gc((fw(),xN))?e.c.a+=(o.a-n.a)/2:u.Gc(TN)&&(e.c.a+=o.a-n.a)),o.b>n.b&&(u.Gc((fw(),CN))?e.c.b+=(o.b-n.b)/2:u.Gc(kN)&&(e.c.b+=o.b-n.b)),y(oe(e,(Tt(),au)),22).Gc((ol(),Cd))&&(o.a>n.a||o.b>n.b))for(k=new ye(e.a);k.a<k.c.c.length;)w=y(de(k),9),w.k==(Yr(),ks)&&(p=y(oe(w,gc),64),p==(zt(),bn)?w.n.a+=o.a-n.a:p==Fn&&(w.n.b+=o.b-n.b));g=e.d,e.f.a=o.a-g.b-g.c,e.f.b=o.b-g.d-g.a}i(qkn,"sQb");function Ykn(e,n,o){var u,p,g,w,k;if(u=y(oe(e,(Bt(),Gme)),22),o.a>n.a&&(u.Gc((fw(),xN))?e.c.a+=(o.a-n.a)/2:u.Gc(TN)&&(e.c.a+=o.a-n.a)),o.b>n.b&&(u.Gc((fw(),CN))?e.c.b+=(o.b-n.b)/2:u.Gc(kN)&&(e.c.b+=o.b-n.b)),y(oe(e,(Tt(),au)),22).Gc((ol(),Cd))&&(o.a>n.a||o.b>n.b))for(w=new ye(e.a);w.a<w.c.c.length;)g=y(de(w),9),g.k==(Yr(),ks)&&(p=y(oe(g,gc),64),p==(zt(),bn)?g.n.a+=o.a-n.a:p==Fn&&(g.n.b+=o.b-n.b));k=e.d,e.f.a=o.a-k.b-k.c,e.f.b=o.b-k.d-k.a}i(Ykn,"K2b");function Xkn(e){var n,o,u,p,g,w,k,A,D,M,F,z;for(n=PFt(e),M=(k=new E1(n).a.vc().Jc(),new MH(k));M.a.Ob();){for(D=(p=y(M.a.Pb(),45),y(p.jd(),9)),F=0,z=0,F=D.d.d,z=D.o.b+D.d.a,e.d[D.p]=0,o=D;(g=e.a[o.p])!=D;)u=dgn(o,g),A=0,e.c==(W0(),ob)?A=u.d.n.b+u.d.a.b-u.c.n.b-u.c.a.b:A=u.c.n.b+u.c.a.b-u.d.n.b-u.d.a.b,w=He(e.d[o.p])+A,e.d[g.p]=w,F=d.Math.max(F,g.d.d-w),z=d.Math.max(z,w+g.o.b+g.d.a),o=g;o=D;do e.d[o.p]=He(e.d[o.p])+F,o=e.a[o.p];while(o!=D);e.b[D.p]=F+z}}i(Xkn,"tNc");function FIe(e,n,o,u){var p,g,w,k,A,D,M,F,z;return A=qs(new Lt(o.a,o.b),e),D=A.a*n.b-A.b*n.a,M=n.a*u.b-n.b*u.a,F=(A.a*u.b-A.b*u.a)/M,z=D/M,M==0?D==0?(p=ra(new Lt(o.a,o.b),L1(new Lt(u.a,u.b),.5)),g=cv(e,p),w=cv(ra(new Lt(e.a,e.b),n),p),k=d.Math.sqrt(u.a*u.a+u.b*u.b)*.5,g<w&&g<=k?new Lt(e.a,e.b):w<=k?ra(new Lt(e.a,e.b),n):null):null:F>=0&&F<=1&&z>=0&&z<=1?ra(new Lt(e.a,e.b),L1(new Lt(n.a,n.b),F)):null}i(FIe,"Bfd");function UI(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(g=0,w=e.t,p=0,u=0,A=0,z=0,F=0,o&&(e.n.c.length=0,Nt(e.n,new zY(e.s,e.t,e.i))),k=0,M=new ye(e.b);M.a<M.c.c.length;)D=y(de(M),26),g+D.g+(k>0?e.i:0)>n&&A>0&&(g=0,w+=A+e.i,p=d.Math.max(p,z),u+=A+e.i,A=0,z=0,o&&(++F,Nt(e.n,new zY(e.s,w,e.i))),k=0),z+=D.g+(k>0?e.i:0),A=d.Math.max(A,D.f),o&&iDe(y(Wt(e.n,F),208),D),g+=D.g+(k>0?e.i:0),++k;return p=d.Math.max(p,z),u+=A,o&&(e.r=p,e.d=u,oDe(e.j)),new Op(e.s,e.t,p,u)}i(UI,"O6c");function JK(e){var n,o,u;return o=Qe(St(e,(Bt(),V6)))===Qe((Z$(),hme))||Qe(St(e,V6))===Qe(sme)||Qe(St(e,V6))===Qe(ome)||Qe(St(e,V6))===Qe(cme)||Qe(St(e,V6))===Qe(fme)||Qe(St(e,V6))===Qe(sj),u=Qe(St(e,wZ))===Qe((tG(),n1e))||Qe(St(e,wZ))===Qe(a1e)||Qe(St(e,mj))===Qe((Tv(),fL))||Qe(St(e,mj))===Qe((Tv(),tN)),n=Qe(St(e,t1))!==Qe((V1(),$v))||Kt(Xt(St(e,iL)))||Qe(St(e,HM))!==Qe((i6(),IM))||He(Xe(St(e,pj)))!=0||He(Xe(St(e,Bme)))!=0,o||u||n}i(JK,"S$b");function HC(e){var n,o,u,p,g,w,k,A;if(!e.a){if(e.o=null,A=new D3t(e),n=new Fbt,o=$N,k=o.a.yc(e,o),k==null){for(w=new Sn(Ol(e));w.e!=w.i.gc();)g=y(_n(w),29),rs(A,HC(g));o.a.Ac(e)!=null,o.a.gc()==0}for(p=(!e.s&&(e.s=new xt(ih,e,21,17)),new Sn(e.s));p.e!=p.i.gc();)u=y(_n(p),179),Ge(u,335)&&Zn(n,y(u,38));n3(n),e.k=new WAt(e,(y(je(wt((rv(),Xr).o),7),19),n.i),n.g),rs(A,e.k),n3(A),e.a=new pC((y(je(wt(Xr.o),4),19),A.i),A.g),Hh(e).b&=-2}return e.a}i(HC,"zWd");function Kkn(e){var n,o,u,p,g,w,k,A,D,M,F,z;if(k=e.d,F=y(oe(e,(Tt(),z6)),16),n=y(oe(e,O6),16),!(!F&&!n)){if(g=He(Xe(s3(e,(Bt(),Jme)))),w=He(Xe(s3(e,jGe))),z=0,F){for(D=0,p=F.Jc();p.Ob();)u=y(p.Pb(),9),D=d.Math.max(D,u.o.b),z+=u.o.a;z+=g*(F.gc()-1),k.d+=D+w}if(o=0,n){for(D=0,p=n.Jc();p.Ob();)u=y(p.Pb(),9),D=d.Math.max(D,u.o.b),o+=u.o.a;o+=g*(n.gc()-1),k.a+=D+w}A=d.Math.max(z,o),A>e.o.a&&(M=(A-e.o.a)/2,k.b=d.Math.max(k.b,M),k.c=d.Math.max(k.c,M))}}i(Kkn,"U_b");function $Ie(e,n,o,u){var p,g,w,k,A,D,M;if(M=Ou(e.e.Ah(),n),p=0,g=y(e.g,122),A=null,tl(),y(n,69).vk()){for(k=0;k<e.i;++k)if(w=g[k],M.$l(w.Jk())){if(ta(w,o)){A=w;break}++p}}else if(o!=null){for(k=0;k<e.i;++k)if(w=g[k],M.$l(w.Jk())){if(ta(o,w.kd())){A=w;break}++p}}else for(k=0;k<e.i;++k)if(w=g[k],M.$l(w.Jk())){if(w.kd()==null){A=w;break}++p}return A&&(hf(e.e)&&(D=n.Hk()?new hue(e.e,4,n,o,null,p,!0):av(e,n.rk()?2:1,n,o,n.gk(),-1,!0),u?u.lj(D):u=D),u=aG(e,A,u)),u}i($Ie,"nee");function ede(e,n,o,u,p,g,w){var k,A,D,M,F,z,ee,ie,ue;switch(ie=0,ue=0,A=p.c,k=p.b,M=o.f,ee=o.g,n.g){case 0:ie=u.i+u.g+w,e.c?ue=I1n(ie,g,u,w):ue=u.j,z=d.Math.max(A,ie+ee),D=d.Math.max(k,ue+M);break;case 1:ue=u.j+u.f+w,e.c?ie=D1n(ue,g,u,w):ie=u.i,z=d.Math.max(A,ie+ee),D=d.Math.max(k,ue+M);break;case 2:ie=A+w,ue=0,z=A+w+ee,D=d.Math.max(k,M);break;case 3:ie=0,ue=k+w,z=d.Math.max(A,ee),D=k+w+M;break;default:throw xe(new rn("IllegalPlacementOption."))}return F=new V_e(e.a,z,D,n,ie,ue),F}i(ede,"$4c");function Jkn(e){var n,o,u,p,g,w,k,A;for(g=new cLt,BZr(g,(Z5(),tnr)),u=(p=jue(e,tt(Zt,Dt,2,0,6,1)),new VD(new oc(new Uoe(e,p).b)));u.b<u.d.gc();)o=(In(u.b<u.d.gc()),di(u.d.Xb(u.c=u.b++))),w=HIe($w,o),w&&(n=M1(e,o),n.re()?k=n.re().a:n.oe()?k=""+n.oe().a:n.pe()?k=""+n.pe().a:k=n.Ib(),A=VIe(w,k),A!=null&&((dh(w.j,(K0(),ds))||dh(w.j,Or))&&A$(Nue(g,Ti),w,A),dh(w.j,Sg)&&A$(Nue(g,Cs),w,A),dh(w.j,cb)&&A$(Nue(g,rf),w,A),dh(w.j,ey)&&A$(Nue(g,nc),w,A)));return g}i(Jkn,"gHd");function lG(e,n,o){var u,p,g,w,k,A,D,M;if(p=y(e.g,122),W1(e.e,n))return tl(),y(n,69).vk()?new lY(n,e):new TF(n,e);for(D=Ou(e.e.Ah(),n),u=0,k=0;k<e.i;++k){if(g=p[k],w=g.Jk(),D.$l(w)){if(tl(),y(n,69).vk())return g;if(w==(h6(),iA)||w==nA){for(A=new Lf(zl(g.kd()));++k<e.i;)g=p[k],w=g.Jk(),(w==iA||w==nA)&&Li(A,zl(g.kd()));return p8e(y(n.Fk(),159),A.a)}else return M=g.kd(),M!=null&&o&&Ge(n,103)&&(y(n,19).Bb&Jo)!=0&&(M=DI(e,n,k,u,M)),M}++u}return n.gk()}i(lG,"vee");function Qkn(e){var n,o,u,p,g,w,k,A;for(p=new ye(e.b);p.a<p.c.c.length;)for(u=y(de(p),25),w=new ye(Z2(u.a));w.a<w.c.c.length;)if(g=y(de(w),9),w9t(g)&&(o=y(oe(g,(Tt(),yT)),318),!o.g&&o.d))for(n=o,A=o.d;A;)uGt(A.i,A.k,!1,!0),c$(n.a),c$(A.i),c$(A.k),c$(A.b),mo(A.c,n.c.d),mo(n.c,null),Us(n.a,null),Us(A.i,null),Us(A.k,null),Us(A.b,null),k=new lRe(n.i,A.a,n.e,A.j,A.f),k.k=n.k,k.n=n.n,k.b=n.b,k.c=A.c,k.g=n.g,k.d=A.d,dt(n.i,yT,k),dt(A.a,yT,k),A=A.d,n=k}i(Qkn,"xmc");function QK(e,n,o,u){var p,g,w,k,A,D;if(A=Ou(e.e.Ah(),n),g=y(e.g,122),W1(e.e,n)){for(p=0,k=0;k<e.i;++k)if(w=g[k],A.$l(w.Jk())){if(p==o)return tl(),y(n,69).vk()?w:(D=w.kd(),D!=null&&u&&Ge(n,103)&&(y(n,19).Bb&Jo)!=0&&(D=DI(e,n,k,p,D)),D);++p}throw xe(new yu(mM+o+xw+p))}else{for(p=0,k=0;k<e.i;++k){if(w=g[k],A.$l(w.Jk()))return tl(),y(n,69).vk()?w:(D=w.kd(),D!=null&&u&&Ge(n,103)&&(y(n,19).Bb&Jo)!=0&&(D=DI(e,n,k,p,D)),D);++p}return n.gk()}}i(QK,"uee");function tde(){tde=U,eYt=Se(Ee(pi,1),Pi,30,15,[bo,1162261467,qI,1220703125,362797056,1977326743,qI,387420489,lJ,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,qI,1291467969,1544804416,1838265625,60466176]),tYt=Se(Ee(pi,1),Pi,30,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}i(tde,"Hib");function rde(e,n){var o,u,p,g,w,k,A,D,M,F;if(w=e.e,A=n.e,A==0)return e;if(w==0)return n.e==0?n:new X2(-n.e,n.d,n.a);if(g=e.d,k=n.d,g+k==2)return o=co(e.a[0],ll),u=co(n.a[0],ll),w<0&&(o=zy(o)),A<0&&(u=zy(u)),J0(),Oq(Kd(o,u),0)?yv(Kd(o,u)):j9(yv(zy(Kd(o,u))));if(p=g!=k?g>k?1:-1:QLe(e.a,n.a,g),p==-1)F=-A,M=w==A?yue(n.a,k,e.a,g):vue(n.a,k,e.a,g);else if(F=w,w==A){if(p==0)return J0(),AM;M=yue(e.a,g,n.a,k)}else M=vue(e.a,g,n.a,k);return D=new X2(F,M.length,M),q9(D),D}i(rde,"Qib");function Zkn(e,n){var o,u,p,g;if(g=hjt(n),!n.c&&(n.c=new xt(rf,n,9,9)),ts(new Er(null,(!n.c&&(n.c=new xt(rf,n,9,9)),new Rr(n.c,16))),new Jxt(g)),p=y(oe(g,(Tt(),au)),22),X4n(n,p),p.Gc((ol(),Cd)))for(u=new Sn((!n.c&&(n.c=new xt(rf,n,9,9)),n.c));u.e!=u.i.gc();)o=y(_n(u),125),wCn(e,n,g,o);return y(St(n,(Bt(),Bv)),182).gc()!=0&&Q$t(n,g),Kt(Xt(oe(g,PGe)))&&p.Ec(aZ),ea(g,yj)&&V4t(new A_e(He(Xe(oe(g,yj)))),g),Qe(St(n,G3))===Qe((z1(),hb))?zEn(e,n,g):SCn(e,n,g),g}i(Zkn,"P$b");function ru(e,n){var o,u,p,g,w,k,A;if(e==null)return null;if(g=e.length,g==0)return"";for(A=tt(Rd,em,30,g,15,1),ko(0,g,e.length),ko(0,g,A.length),Q8t(e,0,g,A,0),o=null,k=n,p=0,w=0;p<g;p++)u=A[p],Jzt(),u<=32&&(_e[u]&2)!=0?k?(!o&&(o=new Hd(e)),Hen(o,p-w++)):(k=n,u!=32&&(!o&&(o=new Hd(e)),Jue(o,p-w,p-w+1," "))):k=!1;return k?o?(g=o.a.length,g>0?Yd(o.a,0,g-1):""):(ko(0,g-1,e.length),e.substr(0,g-1)):o?o.a:e}i(ru,"Ase");function e3n(e,n,o){var u,p,g;if(ea(n,(Bt(),tc))&&(Qe(oe(n,tc))===Qe((yf(),Q1))||Qe(oe(n,tc))===Qe(Rw))||ea(o,tc)&&(Qe(oe(o,tc))===Qe((yf(),Q1))||Qe(oe(o,tc))===Qe(Rw)))return 0;if(u=Zs(n),p=jxn(e,n,o),p!=0)return p;if(ea(n,(Tt(),Ea))&&ea(o,Ea)){if(g=Yc(Qx(n,o,u,y(oe(u,Pv),15).a),Qx(o,n,u,y(oe(u,Pv),15).a)),Qe(oe(u,qM))===Qe((fv(),lj))&&Qe(oe(n,YM))!==Qe(oe(o,YM))&&(g=0),g<0)return iG(e,n,o),g;if(g>0)return iG(e,o,n),g}return pvn(e,n,o)}i(e3n,"cIc");function Ajt(e,n){var o,u,p,g,w,k,A,D,M,F,z;for(u=new nn(cn(xv(n).a.Jc(),new B));Nn(u);)o=y(vn(u),85),Ge(je((!o.b&&(o.b=new zr(Hn,o,4,7)),o.b),0),193)||(A=Pl(y(je((!o.c&&(o.c=new zr(Hn,o,5,8)),o.c),0),84)),II(o)||(w=n.i+n.g/2,k=n.j+n.f/2,M=A.i+A.g/2,F=A.j+A.f/2,z=new xo,z.a=M-w,z.b=F-k,g=new Lt(z.a,z.b),X7(g,n.g,n.f),z.a-=g.a,z.b-=g.b,w=M-z.a,k=F-z.b,D=new Lt(z.a,z.b),X7(D,A.g,A.f),z.a-=D.a,z.b-=D.b,M=w+z.a,F=k+z.b,p=zK(o),DC(p,w),IC(p,k),LC(p,M),_C(p,F),Ajt(e,A)))}i(Ajt,"v2c");function b3(e,n){var o,u,p,g,w;if(w=y(n,137),UC(e),UC(w),w.b!=null){if(e.c=!0,e.b==null){e.b=tt(pi,Pi,30,w.b.length,15,1),$c(w.b,0,e.b,0,w.b.length);return}for(g=tt(pi,Pi,30,e.b.length+w.b.length,15,1),o=0,u=0,p=0;o<e.b.length||u<w.b.length;)o>=e.b.length?(g[p++]=w.b[u++],g[p++]=w.b[u++]):u>=w.b.length?(g[p++]=e.b[o++],g[p++]=e.b[o++]):w.b[u]<e.b[o]||w.b[u]===e.b[o]&&w.b[u+1]<e.b[o+1]?(g[p++]=w.b[u++],g[p++]=w.b[u++]):(g[p++]=e.b[o++],g[p++]=e.b[o++]);e.b=g}}i(b3,"Hre");function t3n(e,n){var o,u,p,g,w,k,A,D,M,F;return o=Kt(Xt(oe(e,(Tt(),F3)))),k=Kt(Xt(oe(n,F3))),u=y(oe(e,Cg),12),A=y(oe(n,Cg),12),p=y(oe(e,np),12),D=y(oe(n,np),12),M=!!u&&u==A,F=!!p&&p==D,!o&&!k?new x8e(y(de(new ye(e.j)),12).p==y(de(new ye(n.j)),12).p,M,F):(g=(!Kt(Xt(oe(e,F3)))||Kt(Xt(oe(e,fj))))&&(!Kt(Xt(oe(n,F3)))||Kt(Xt(oe(n,fj)))),w=(!Kt(Xt(oe(e,F3)))||!Kt(Xt(oe(e,fj))))&&(!Kt(Xt(oe(n,F3)))||!Kt(Xt(oe(n,fj)))),new x8e(M&&g||F&&w,M,F))}i(t3n,"V3b");function Rjt(e){var n,o,u,p,g,w,k,A;for(u=0,o=0,A=new ya,n=0,k=new ye(e.n);k.a<k.c.c.length;)w=y(de(k),208),w.c.c.length==0?Ha(A,w,A.c.b,A.c):(u=d.Math.max(u,w.d),o+=w.a+(n>0?e.i:0)),++n;for(v_e(e.n,A),e.d=o,e.r=u,e.g=0,e.f=0,e.e=0,e.o=qa,e.p=qa,g=new ye(e.b);g.a<g.c.c.length;)p=y(de(g),26),e.p=d.Math.min(e.p,p.g),e.g=d.Math.max(e.g,p.g),e.f=d.Math.max(e.f,p.f),e.o=d.Math.min(e.o,p.f),e.e+=p.f+e.i;e.a=e.e/e.b.c.length-e.i*((e.b.c.length-1)/e.b.c.length),oDe(e.j)}i(Rjt,"J6c");function Ljt(e){var n,o,u,p;return(e.Db&64)!=0?khe(e):(n=new Lf(lPe),u=e.k,u?Li(Li((n.a+=' "',n),u),'"'):(!e.n&&(e.n=new xt(nc,e,1,7)),e.n.i>0&&(p=(!e.n&&(e.n=new xt(nc,e,1,7)),y(je(e.n,0),157)).a,!p||Li(Li((n.a+=' "',n),p),'"'))),o=(!e.b&&(e.b=new zr(Hn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c.i<=1))),o?n.a+=" [":n.a+=" ",Li(n,EAe(new Foe,new Sn(e.b))),o&&(n.a+="]"),n.a+=lpe,o&&(n.a+="["),Li(n,EAe(new Foe,new Sn(e.c))),o&&(n.a+="]"),n.a)}i(Ljt,"Mwd");function r3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;for(ht=e.c,st=n.c,o=Jl(ht.a,e,0),u=Jl(st.a,n,0),$e=y(Wx(e,(sl(),Mh)).Jc().Pb(),12),gr=y(Wx(e,Eu).Jc().Pb(),12),Ve=y(Wx(n,Mh).Jc().Pb(),12),Pr=y(Wx(n,Eu).Jc().Pb(),12),Ce=q0($e.e),Ht=q0(gr.g),Me=q0(Ve.e),yr=q0(Pr.g),bv(e,u,st),w=Me,M=0,ie=w.length;M<ie;++M)p=w[M],mo(p,$e);for(k=yr,F=0,ue=k.length;F<ue;++F)p=k[F],Bo(p,gr);for(bv(n,o,ht),A=Ce,z=0,fe=A.length;z<fe;++z)p=A[z],mo(p,Ve);for(g=Ht,D=0,ee=g.length;D<ee;++D)p=g[D],Bo(p,Pr)}i(r3n,"c7b");function n3n(e){var n,o,u,p,g,w,k;for(w=y(St(e,(TC(),SE)),26),u=new Sn((!w.e&&(w.e=new zr(Cs,w,7,4)),w.e));u.e!=u.i.gc();)o=y(_n(u),85),k=new Lt(y(je((!o.a&&(o.a=new xt(Ia,o,6,6)),o.a),0),170).j,y(je((!o.a&&(o.a=new xt(Ia,o,6,6)),o.a),0),170).k),g=new Lt(y(je((!o.a&&(o.a=new xt(Ia,o,6,6)),o.a),0),170).b,y(je((!o.a&&(o.a=new xt(Ia,o,6,6)),o.a),0),170).c),p=new Lt(g.a-k.a,g.b-k.b),n=d.Math.atan2(p.b,p.a),y(je((!o.c&&(o.c=new zr(Hn,o,5,8)),o.c),0),84).of((wv(),q1e),n)}i(n3n,"J_c");function i3n(e,n){var o,u,p,g,w,k,A,D,M;for(n.Tg("Interactive Node Reorderer",1),M=(!e.a&&(e.a=new xt(Ti,e,10,11)),e.a),k=new Pt,p=new Sn(M);p.e!=p.i.gc();)o=y(_n(p),26),gg(o,(n0(),_j))&&tn(k.c,o);for(g=new ye(k);g.a<g.c.c.length;)o=y(de(g),26),pX(M,o);for(Ir(),zs(k,new myt),w=new ye(k);w.a<w.c.c.length;)o=y(de(w),26),D=y(St(o,(n0(),_j)),15).a,D=d.Math.min(D,M.i),mI(M,D,o);for(A=0,u=new Sn(M);u.e!=u.i.gc();)o=y(_n(u),26),pa(o,(n0(),Gze),Et(A)),++A;n.Ug()}i(i3n,"Z2c");function a3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(k=tt(pi,Pi,30,n.b.c.length,15,1),D=tt(G0e,At,249,n.b.c.length,0,1),A=tt(e1,Zy,9,n.b.c.length,0,1),F=e.a,z=0,ee=F.length;z<ee;++z){for(M=F[z],ue=0,w=new ye(M.e);w.a<w.c.c.length;)p=y(de(w),9),u=cAe(p.c),++k[u],ie=He(Xe(oe(n,(Bt(),Xp)))),k[u]>0&&A[u]&&(ie=bC(e.b,A[u],p)),ue=d.Math.max(ue,p.c.c.b+ie);for(g=new ye(M.e);g.a<g.c.c.length;)p=y(de(g),9),p.n.b=ue+p.d.d,o=p.c,o.c.b=ue+p.d.d+p.o.b+p.d.a,D[Jl(o.b.b,o,0)]=p.k,A[Jl(o.b.b,o,0)]=p}}i(a3n,"wKc");function GIe(e,n,o){var u,p,g,w,k,A,D,M;return d.Math.abs(n.s-n.c)<rm||d.Math.abs(o.s-o.c)<rm?0:(u=N$t(e,n.j,o.e),p=N$t(e,o.j,n.e),g=u==-1||p==-1,w=0,g?(u==-1&&(new Q2((pg(),Gv),o,n,1),++w),p==-1&&(new Q2((pg(),Gv),n,o,1),++w)):(k=PC(n.j,o.s,o.c),k+=PC(o.e,n.s,n.c),A=PC(o.j,n.s,n.c),A+=PC(n.e,o.s,o.c),D=u+16*k,M=p+16*A,D<M?new Q2((pg(),K3),n,o,M-D):D>M?new Q2((pg(),K3),o,n,D-M):D>0&&M>0&&(new Q2((pg(),K3),n,o,0),new Q2(K3,o,n,0))),w)}i(GIe,"yQc");function s3n(e,n,o){var u,p,g;for(e.a=new Pt,g=ei(n.b,0);g.b!=g.d.c;){for(p=y(Qn(g),40);y(oe(p,(uc(),um)),15).a>e.a.c.length-1;)Nt(e.a,new Ko(eE,dOe));u=y(oe(p,um),15).a,o==(Ss(),Il)||o==Bl?(p.e.a<He(Xe(y(Wt(e.a,u),49).a))&&doe(y(Wt(e.a,u),49),p.e.a),p.e.a+p.f.a>He(Xe(y(Wt(e.a,u),49).b))&&poe(y(Wt(e.a,u),49),p.e.a+p.f.a)):(p.e.b<He(Xe(y(Wt(e.a,u),49).a))&&doe(y(Wt(e.a,u),49),p.e.b),p.e.b+p.f.b>He(Xe(y(Wt(e.a,u),49).b))&&poe(y(Wt(e.a,u),49),p.e.b+p.f.b))}}i(s3n,"$Tc");function _jt(e,n,o,u){var p,g,w,k,A,D,M;if(g=KX(u),k=Kt(Xt(oe(u,(Bt(),_Ge)))),(k||Kt(Xt(oe(e,vZ))))&&!gC(y(oe(e,Qa),102)))p=r6(g),A=EIe(e,o,o==(sl(),Eu)?p:M$(p));else switch(A=new Fc,Kl(A,e),n?(M=A.n,M.a=n.a-e.n.a,M.b=n.b-e.n.b,DBt(M,0,0,e.o.a,e.o.b),Bs(A,KGt(A,g))):(p=r6(g),Bs(A,o==(sl(),Eu)?p:M$(p))),w=y(oe(u,(Tt(),au)),22),D=A.j,g.g){case 2:case 1:(D==(zt(),sn)||D==Fn)&&w.Ec((ol(),dE));break;case 4:case 3:(D==(zt(),bn)||D==on)&&w.Ec((ol(),dE))}return A}i(_jt,"NXb");function Djt(e,n){var o,u,p,g,w,k;for(w=new t3(new yk(e.f.b).a);w.b;){if(g=MC(w),p=y(g.jd(),592),n==1){if(p.yf()!=(Ss(),Ed)&&p.yf()!=p0)continue}else if(p.yf()!=(Ss(),Il)&&p.yf()!=Bl)continue;switch(u=y(y(g.kd(),49).b,82),k=y(y(g.kd(),49).a,194),o=k.c,p.yf().g){case 2:u.g.c=e.e.a,u.g.b=d.Math.max(1,u.g.b+o);break;case 1:u.g.c=u.g.c+o,u.g.b=d.Math.max(1,u.g.b-o);break;case 4:u.g.d=e.e.b,u.g.a=d.Math.max(1,u.g.a+o);break;case 3:u.g.d=u.g.d+o,u.g.a=d.Math.max(1,u.g.a-o)}}}i(Djt,"zRb");function o3n(e,n){var o,u,p,g,w,k,A,D,M,F;for(n.Tg("Simple node placement",1),F=y(oe(e,(Tt(),yE)),317),k=0,g=new ye(e.b);g.a<g.c.c.length;){for(u=y(de(g),25),w=u.c,w.b=0,o=null,D=new ye(u.a);D.a<D.c.c.length;)A=y(de(D),9),o&&(w.b+=G_e(A,o,F.c)),w.b+=A.d.d+A.o.b+A.d.a,o=A;k=d.Math.max(k,w.b)}for(p=new ye(e.b);p.a<p.c.c.length;)for(u=y(de(p),25),w=u.c,M=(k-w.b)/2,o=null,D=new ye(u.a);D.a<D.c.c.length;)A=y(de(D),9),o&&(M+=G_e(A,o,F.c)),M+=A.d.d,A.n.b=M,M+=A.o.b+A.d.a,o=A;n.Ug()}i(o3n,"SMc");function Ijt(e){Sk(e,new Xx(Ck(xk(kk(Tk(new yx,oT),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new _yt))),_t(e,oT,dge,Vt(nee)),_t(e,oT,YOe,Vt(bye)),_t(e,oT,XOe,Vt(yye)),_t(e,oT,pge,Vt(gUe)),_t(e,oT,gge,Vt(mye)),_t(e,oT,C3,pUe),_t(e,oT,k3,8),_t(e,oT,mge,Vt(jrr)),_t(e,oT,KOe,Vt(fUe)),_t(e,oT,JOe,Vt(dUe)),_t(e,oT,$G,(qr(),!1))}i(Ijt,"k9c");function l3n(e,n){var o,u,p,g;for(thn(n.b.j),ts(bu(new Er(null,new Rr(n.d,16)),new U0t),new V0t),g=new ye(n.d);g.a<g.c.c.length;){switch(p=y(de(g),107),p.e.g){case 0:o=y(Wt(p.j,0),113).d.j,l5e(p,y(ff(P5(y(oa(p.k,o),16).Mc(),cE)),113)),o5e(p,y(ff($k(y(oa(p.k,o),16).Mc(),cE)),113));break;case 1:u=uDe(p),l5e(p,y(ff(P5(y(oa(p.k,u[0]),16).Mc(),cE)),113)),o5e(p,y(ff($k(y(oa(p.k,u[1]),16).Mc(),cE)),113));break;case 2:cbn(e,p);break;case 3:dwn(p);break;case 4:bwn(e,p)}rhn(p)}e.a=null}i(l3n,"Jkc");function nde(e,n,o){var u,p,g,w,k,A,D,M;return u=e.a.o==(Yg(),h0)?qa:Ys,k=njt(e,new aSt(n,o)),!k.a&&k.c?(_i(e.d,k),u):k.a?(p=k.a.c,A=k.a.d,o?(D=e.a.c==(W0(),kT)?A:p,g=e.a.c==kT?p:A,w=e.a.g[g.i.p],M=He(e.a.p[w.p])+He(e.a.d[g.i.p])+g.n.b+g.a.b-He(e.a.d[D.i.p])-D.n.b-D.a.b):(D=e.a.c==(W0(),ob)?A:p,g=e.a.c==ob?p:A,M=He(e.a.p[e.a.g[g.i.p].p])+He(e.a.d[g.i.p])+g.n.b+g.a.b-He(e.a.d[D.i.p])-D.n.b-D.a.b),e.a.n[e.a.g[p.i.p].p]=(qr(),!0),e.a.n[e.a.g[A.i.p].p]=!0,M):u}i(nde,"hOc");function c3n(e,n,o,u){var p,g,w,k,A,D,M,F;if(u.gc()==0)return!1;if(A=(tl(),y(n,69).vk()),w=A?u:new Fx(u.gc()),W1(e.e,n)){if(n.Qi())for(M=u.Jc();M.Ob();)D=M.Pb(),XK(e,n,D,Ge(n,103)&&(y(n,19).Bb&Jo)!=0)||(g=zm(n,D),w.Ec(g));else if(!A)for(M=u.Jc();M.Ob();)D=M.Pb(),g=zm(n,D),w.Ec(g)}else{for(F=Ou(e.e.Ah(),n),p=y(e.g,122),k=0;k<e.i;++k)if(g=p[k],F.$l(g.Jk()))throw xe(new rn(qG));if(u.gc()>1)throw xe(new rn(qG));A||(g=zm(n,u.Jc().Pb()),w.Ec(g))}return BLe(e,n9e(e,n,o),w)}i(c3n,"dee");function ZK(e,n,o){var u,p,g,w,k,A,D,M;if(W1(e.e,n))A=(tl(),y(n,69).vk()?new lY(n,e):new TF(n,e)),MK(A.c,A.b),R9(A,y(o,18));else{for(M=Ou(e.e.Ah(),n),u=y(e.g,122),w=0;w<e.i;++w)if(p=u[w],g=p.Jk(),M.$l(g)){if(g==(h6(),iA)||g==nA){for(D=tDe(e,n,o),k=w,D?g3(e,w):++w;w<e.i;)p=u[w],g=p.Jk(),g==iA||g==nA?g3(e,w):++w;D||y(FC(e,k,zm(n,o)),75)}else tDe(e,n,o)?g3(e,w):y(FC(e,w,(tl(),y(n,69).vk()?y(o,75):zm(n,o))),75);return}tDe(e,n,o)||Zn(e,(tl(),y(n,69).vk()?y(o,75):zm(n,o)))}}i(ZK,"See");function Mjt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(F=0;F<n.length;F++){for(k=e.Jc();k.Ob();)g=y(k.Pb(),220),g.fg(F,n);for(z=0;z<n[F].length;z++){for(A=e.Jc();A.Ob();)g=y(A.Pb(),220),g.gg(F,z,n);for(ue=n[F][z].j,ee=0;ee<ue.c.length;ee++){for(D=e.Jc();D.Ob();)g=y(D.Pb(),220),g.hg(F,z,ee,n);for(ie=(_r(ee,ue.c.length),y(ue.c[ee],12)),o=0,p=new Kg(ie.b);Xl(p.a)||Xl(p.b);)for(u=y(Xl(p.a)?de(p.a):de(p.b),17),M=e.Jc();M.Ob();)g=y(M.Pb(),220),g.eg(F,z,ee,o++,u,n)}}}for(w=e.Jc();w.Ob();)g=y(w.Pb(),220),g.dg()}i(Mjt,"hKc");function u3n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee;for(o.Tg(IVt,1),F=n.a,M=F.c.length,e.c=new Pt,e.d=tt(ah,vg,30,M,16,1),e.a=tt(ah,vg,30,M,16,1),e.b=new Pt,w=0,D=new ye(F);D.a<D.c.c.length;)A=y(de(D),9),A.p=w,qk(os(A))&&Nt(e.c,A),++w;for(ee=new ye(e.c);ee.a<ee.c.c.length;)z=y(de(ee),9),o9e(e,z);for(g=0;g<M;g++)e.d[g]||(k=(_r(g,F.c.length),y(F.c[g],9)),o9e(e,k));for(p=new ye(e.b);p.a<p.c.c.length;)u=y(de(p),17),Jy(u,!0),dt(n,(Tt(),P6),(qr(),!0));e.c=null,e.d=null,e.a=null,e.b=null,o.Ug()}i(u3n,"TBc");function h3n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee;for(o.Tg(IVt,1),e.c=n,F=n.a,M=F.c.length,e.d=new Pt,e.e=tt(ah,vg,30,M,16,1),e.a=tt(ah,vg,30,M,16,1),e.b=new Pt,w=0,D=new ye(F);D.a<D.c.c.length;)A=y(de(D),9),A.p=w,qk(os(A))&&Nt(e.d,A),++w;for(ee=new ye(e.d);ee.a<ee.c.c.length;)z=y(de(ee),9),yIe(e,z);for(g=0;g<M;g++)e.e[g]||(k=(_r(g,F.c.length),y(F.c[g],9)),yIe(e,k));for(p=new ye(e.b);p.a<p.c.c.length;)u=y(de(p),17),Jy(u,!0),dt(n,(Tt(),P6),(qr(),!0));e.d=null,e.e=null,e.a=null,e.b=null,o.Ug()}i(h3n,"KBc");function f3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;if(ie=y(Jr(e.d,n),149),!ie)throw xe(new j0("Edge did not exist in input."));return Vfe(e,n),F=W7(ie),w=aF((!n.a&&(n.a=new xt(Ia,n,6,6)),n.a)),A=!w,A&&(ue=new F2,u=new j7t(e,F,ue,n),kZr((!n.a&&(n.a=new xt(Ia,n,6,6)),n.a),u),Fp(ie,Oge,null),Fp(ie,Oge,ue)),g=gg(n,(Ri(),_E)),g&&(z=y(St(n,_E),79),k=!z||p7t(z),D=!k,D&&(ee=new F2,p=new IAt(e,n,ee),Io(z,p),Fp(ie,"junctionPoints",ee))),o=KAe(e,y(Jr(e.e,n),26)),M=o==(B7(),fee),M&&s7(ie,"container",Vk(n).k),null}i(f3n,"iBd");function d3n(e,n){var o,u,p,g,w,k,A;for(e.b=He(Xe(oe(n,(Bt(),H3)))),e.c=He(Xe(oe(n,Fv))),e.d=y(oe(n,Vme),349),e.a=y(oe(n,pZ),283),u0n(n),k=y(Rh(Hi(Hi(jl(jl(new Er(null,new Rr(n.b,16)),new Wn),new xs),new oo),new gl),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),p=k.Jc();p.Ob();)o=y(p.Pb(),17),w=y(oe(o,(Tt(),Aw)),16),w.Ic(new oTt(e)),dt(o,Aw,null);for(u=k.Jc();u.Ob();)o=y(u.Pb(),17),A=y(oe(o,(Tt(),C$e)),17),g=y(oe(o,bE),16),REn(e,g,A),dt(o,bE,null)}i(d3n,"M1b");function ide(e,n){var o,u,p,g,w,k,A;if(e.a){if(k=e.a.ve(),A=null,k!=null?n.a+=""+k:(w=e.a.kk(),w!=null&&(g=U0(w,Ku(91)),g!=-1?(A=(un(g,w.length+1),w.substr(g)),n.a+=""+Yd(w==null?Qu:(Ur(w),w),0,g)):n.a+=""+w)),e.d&&e.d.i!=0){for(p=!0,n.a+="<",u=new Sn(e.d);u.e!=u.i.gc();)o=y(_n(u),87),p?p=!1:n.a+=Tu,ide(o,n);n.a+=">"}A!=null&&(n.a+=""+A)}else e.e?(k=e.e.zb,k!=null&&(n.a+=""+k)):(n.a+="?",e.b?(n.a+=" super ",ide(e.b,n)):e.f&&(n.a+=" extends ",ide(e.f,n)))}i(ide,"E0d");function p3n(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}i(p3n,"f9d");function g3n(e){var n,o,u,p;if(u=yde((!e.c&&(e.c=KF(vc(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return u;if(n=kLe(e)<0?1:0,o=e.e,p=(u.length+1+d.Math.abs(Po(e.e)),new sC),n==1&&(p.a+="-"),e.e>0)if(o-=u.length-n,o>=0){for(p.a+="0.";o>Ew.length;o-=Ew.length)p8t(p,Ew);q6t(p,Ew,Po(o)),Li(p,(un(n,u.length+1),u.substr(n)))}else o=n-o,Li(p,Yd(u,n,Po(o))),p.a+=".",Li(p,p7e(u,Po(o)));else{for(Li(p,(un(n,u.length+1),u.substr(n)));o<-Ew.length;o+=Ew.length)p8t(p,Ew);q6t(p,Ew,Po(-o))}return p.a}i(g3n,"Ihb");function ade(e){var n,o,u,p,g,w,k,A,D;return!(e.k!=(Yr(),Ya)||e.j.c.length<=1||(g=y(oe(e,(Bt(),Qa)),102),g==(uo(),zc))||(p=(l3(),(e.q?e.q:(Ir(),Ir(),Qm))._b(_w)?u=y(oe(e,_w),203):u=y(oe(Zs(e),aL),203),u),p==DZ)||!(p==kE||p==TE)&&(w=He(Xe(s3(e,QM))),n=y(oe(e,vj),140),!n&&(n=new c8e(w,w,w,w)),D=Zl(e,(zt(),on)),A=n.d+n.a+(D.gc()-1)*w,A>e.o.b||(o=Zl(e,bn),k=n.d+n.a+(o.gc()-1)*w,k>e.o.b)))}i(ade,"kLc");function m3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;n.Tg("Orthogonal edge routing",1),D=He(Xe(oe(e,(Bt(),Y3)))),o=He(Xe(oe(e,H3))),u=He(Xe(oe(e,Fv))),z=new Dce(0,o),fe=0,w=new yo(e.b,0),k=null,M=null,A=null,F=null;do M=w.b<w.d.gc()?(In(w.b<w.d.gc()),y(w.d.Xb(w.c=w.b++),25)):null,F=M?M.a:null,k&&(zIe(k,fe),fe+=k.c.a),ue=k?fe+u:fe,ie=qIe(z,e,A,F,ue),p=!k||Nq(A,(UK(),Cj)),g=!M||Nq(F,(UK(),Cj)),ie>0?(ee=(ie-1)*o,k&&(ee+=u),M&&(ee+=u),ee<D&&!p&&!g&&(ee=D),fe+=ee):!p&&!g&&(fe+=D),k=M,A=F;while(M);e.f.a=fe,n.Ug()}i(m3n,"EOc");function eJ(e,n){var o,u,p,g,w,k,A,D,M,F;if(M=null,e.d&&(M=y(Jc(e.d,n),143)),!M){if(g=e.a.si(),F=g.i,!e.d||a9(e.d)!=F){for(A=new jn,e.d&&sI(A,e.d),D=A.f.c+A.i.c,k=D;k<F;++k)u=y(je(g,k),143),p=Hy(e.e,u).ve(),o=y(p==null?Ju(A.f,null,u):Ux(A.i,p,u),143),o&&o!=u&&(p==null?Ju(A.f,null,o):Ux(A.i,p,o));if(A.f.c+A.i.c!=F)for(w=0;w<D;++w)u=y(je(g,w),143),p=Hy(e.e,u).ve(),o=y(p==null?Ju(A.f,null,u):Ux(A.i,p,u),143),o&&o!=u&&(p==null?Ju(A.f,null,o):Ux(A.i,p,o));e.d=A}M=y(Jc(e.d,n),143)}return M}i(eJ,"Gde");function sde(e,n,o,u,p,g,w){var k,A,D,M,F,z,ee;return F=Kt(Xt(oe(n,(Bt(),DGe)))),z=null,g==(sl(),Mh)&&u.c.i==o?z=u.c:g==Eu&&u.d.i==o&&(z=u.d),D=w,!D||!F||z?(M=(zt(),rc),z?M=z.j:gC(y(oe(o,Qa),102))&&(M=g==Mh?on:bn),A=y3n(e,n,o,g,M,u),k=gue((Zs(o),u)),g==Mh?(Bo(k,y(Wt(A.j,0),12)),mo(k,p)):(Bo(k,p),mo(k,y(Wt(A.j,0),12))),D=new MNt(u,k,A,y(oe(A,(Tt(),aa)),12),g,!z)):(Nt(D.e,u),ee=d.Math.max(He(Xe(oe(D.d,ab))),He(Xe(oe(u,ab)))),dt(D.d,ab,ee)),Sr(e.a,u,new Zq(D.d,n,g)),D}i(sde,"aWb");function ode(){ode=U;var e;bWe=new v4t,Nir=tt(Zt,Dt,2,0,6,1),Iir=H0(Q5(33,58),Q5(1,26)),Mir=H0(Q5(97,122),Q5(65,90)),dWe=Q5(48,57),_ir=H0(Iir,0),Dir=H0(Mir,dWe),pWe=H0(H0(0,Q5(1,6)),Q5(33,38)),gWe=H0(H0(dWe,Q5(65,70)),Q5(97,102)),Oir=H0(_ir,cK("-_.!~*'()")),Pir=H0(Dir,rK("-_.!~*'()")),cK(NHt),rK(NHt),H0(Oir,cK(";:@&=+$,")),H0(Pir,rK(";:@&=+$,")),mWe=cK(":/?#"),yWe=rK(":/?#"),BN=cK("/?#"),FN=rK("/?#"),e=new gs,e.a.yc("jar",e),e.a.yc("zip",e),e.a.yc("archive",e),Ree=(Ir(),new j8(e))}i(ode,"tQd");function y3n(e,n,o,u,p,g){var w,k,A,D,M,F;return w=null,D=u==(sl(),Mh)?g.c:g.d,A=KX(n),D.i==o?(w=y(Jr(e.b,D),9),w||(w=hG(D,y(oe(o,(Bt(),Qa)),102),p,wTn(D),null,D.n,D.o,A,n),dt(w,(Tt(),aa),D),Oi(e.b,D,w))):(w=hG((M=new Pa,F=He(Xe(oe(n,(Bt(),Xp))))/2,A$(M,U3,F),M),y(oe(o,Qa),102),p,u==Mh?-1:1,null,new xo,new Lt(0,0),A,n),k=p1n(w,o,u),dt(w,(Tt(),aa),k),Oi(e.b,k,w)),y(oe(n,(Tt(),au)),22).Ec((ol(),Cd)),gC(y(oe(n,(Bt(),Qa)),102))?dt(n,Qa,(uo(),CL)):dt(n,Qa,(uo(),m0)),w}i(y3n,"ZVb");function lR(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;k=0,ie=0,A=GY(e.g,e.g.length),g=e.e,w=e.j,u=e.b,p=e.c;do{for(ee=0,M=new ye(e.q);M.a<M.c.c.length;)D=y(de(M),9),z=Zjt(e,D),o=!0,(e.r==(Tv(),wj)||e.r==xj)&&(o=Kt(Xt(z.b))),y(z.a,15).a<0&&o?(++ee,A=GY(e.g,e.g.length),e.e=e.e+y(z.a,15).a,ie+=g-e.e,g=e.e+y(z.a,15).a,w=e.j,u=Z2(e.b),p=Z2(e.c)):(e.g=GY(A,A.length),e.e=g,e.b=(oi(u),u?new Ah(u):i7(new ye(u))),e.c=(oi(p),p?new Ah(p):i7(new ye(p))),e.j=w);++k,F=ee!=0&&Kt(Xt(n.Kb(new Ko(Et(ie),Et(k)))))}while(F)}i(lR,"R8b");function b3n(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr;return w=e.f,z=n.f,k=w==(NI(),q6)||w==bN,ee=z==q6||z==bN,A=w==RE||w==vN,ie=z==RE||z==vN,D=w==RE||w==q6,ue=z==RE||z==q6,k&&ee?e.f==bN?e:n:A&&ie?e.f==vN?e:n:D&&ue?(w==RE?(F=e,M=n):(F=n,M=e),g=(fe=o.j+o.f,Ce=F.e+u.f,Me=d.Math.max(fe,Ce),$e=Me-d.Math.min(o.j,F.e),Ve=F.d+u.g-o.i,Ve*$e),p=(ht=o.i+o.g,st=M.d+u.g,Ht=d.Math.max(ht,st),yr=Ht-d.Math.min(o.i,M.d),gr=M.e+u.f-o.j,yr*gr),g<=p?e.f==RE?e:n:e.f==q6?e:n):e}i(b3n,"_4c");function Njt(e,n){var o,u,p,g,w,k,A,D,M,F;if(dt(n,(Ca(),gL),0),A=y(oe(n,jZ),40),n.d.b==0)A?(M=He(Xe(oe(A,lb)))+e.b+w_e(e,A,n),dt(n,lb,M)):dt(n,lb,0);else{for(u=(g=ei(new A1(n).a.d,0),new aC(g));tF(u.a);)o=y(Qn(u.a),65).c,Njt(e,o);k=y(jq((w=ei(new A1(n).a.d,0),new aC(w))),40),F=y(Ien((p=ei(new A1(n).a.d,0),new aC(p))),40),D=(He(Xe(oe(F,lb)))+He(Xe(oe(k,lb))))/2,A?(M=He(Xe(oe(A,lb)))+e.b+w_e(e,A,n),dt(n,lb,M),dt(n,gL,He(Xe(oe(n,lb)))-D),N4n(e,n)):dt(n,lb,D)}}i(Njt,"cZc");function v3n(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee;if(D=new Pt,!ea(e,(Tt(),Sme)))return D;for(u=y(oe(e,Sme),16).Jc();u.Ob();)n=y(u.Pb(),9),j3n(n,e),tn(D.c,n);for(g=new ye(e.b);g.a<g.c.c.length;)for(p=y(de(g),25),k=new ye(p.a);k.a<k.c.c.length;)w=y(de(k),9),w.k==(Yr(),ks)&&(A=y(oe(w,cZ),9),A&&(M=new Fc,Kl(M,w),F=y(oe(w,gc),64),Bs(M,F),z=y(Wt(A.j,0),12),ee=new Nx,Bo(ee,M),mo(ee,z)));for(o=new ye(D);o.a<o.c.c.length;)n=y(de(o),9),Us(n,y(Wt(e.b,e.b.c.length-1),25));return D}i(v3n,"k3b");function w3n(e){var n,o,u,p,g,w,k,A,D,M,F;for(M=e.e.a.c.length,w=new ye(e.e.a);w.a<w.c.c.length;)g=y(de(w),124),g.j=!1;for(e.i=tt(pi,Pi,30,M,15,1),e.g=tt(pi,Pi,30,M,15,1),e.n=new Pt,p=0,F=new Pt,A=new ye(e.e.a);A.a<A.c.c.length;)k=y(de(A),124),k.d=p++,k.b.a.c.length==0&&Nt(e.n,k),Is(F,k.g);for(n=0,u=new ye(F);u.a<u.c.c.length;)o=y(de(u),217),o.c=n++,o.f=!1;D=F.c.length,e.b==null||e.b.length<D?(e.b=tt(po,vl,30,D,15,1),e.c=tt(ah,vg,30,D,16,1)):t9(e.c),e.d=F,e.p=new jle(r3(e.d.c.length)),e.j=1}i(w3n,"SGb");function x3n(e,n){var o,u,p,g,w,k,A,D,M;if(!(n.e.c.length<=1)){for(e.f=n,e.d=y(oe(e.f,(j$(),PBe)),384),e.g=y(oe(e.f,GBe),15).a,e.e=He(Xe(oe(e.f,BBe))),e.c=He(Xe(oe(e.f,AQ))),e7t(e.b),p=new ye(e.f.c);p.a<p.c.c.length;)u=y(de(p),291),vIe(e.b,u.c,u,null),vIe(e.b,u.d,u,null);for(k=e.f.e.c.length,e.a=Fk(po,[Dt,vl],[108,30],15,[k,k],2),D=new ye(e.f.e);D.a<D.c.c.length;)A=y(de(D),155),Vkn(e,A,e.a[A.a]);for(e.i=Fk(po,[Dt,vl],[108,30],15,[k,k],2),g=0;g<k;++g)for(w=0;w<k;++w)o=e.a[g][w],M=1/(o*o),e.i[g][w]=M}}i(x3n,"YPb");function Ojt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(k=n._g(),k||n.Tg(qUt,1),o=y(oe(e,(Tt(),Dme)),16),w=1/o.gc(),n.$g())for(n.ah("ELK Layered uses the following "+o.gc()+" modules:"),ee=0,z=o.Jc();z.Ob();)M=y(z.Pb(),43),u=(ee<10?"0":"")+ee++,n.ah(" Slot "+u+": "+j2(mf(M)));for(ie=0,F=o.Jc();F.Ob();){if(M=y(F.Pb(),43),n.Zg())return;M.If(e,n.dh(w)),++ie}for(g=new ye(e.b);g.a<g.c.c.length;)p=y(de(g),25),Is(e.a,p.a),p.a.c.length=0;for(D=new ye(e.a);D.a<D.c.c.length;)A=y(de(D),9),Us(A,null);e.b.c.length=0,k||n.Ug()}i(Ojt,"qQb");function T3n(e,n){var o,u,p,g,w,k,A,D,M;if(ea(e.d.i,(Bt(),z3)))return k=y(oe(e.c.i,z3),15),D=y(oe(e.d.i,z3),15),Yc(k.a,D.a)>0;for(k=y(oe(e.c.i,z3),15).a,g=y(Rh(Hi(n.Mc(),new bTt(k)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),w=new ya,M=new gs,_i(w,e.c.i),ys(M,e.c.i);w.b!=0;){if(o=y(w.b==0?null:(In(w.b!=0),dd(w,w.a.a)),9),g.Gc(o))return!0;for(p=new nn(cn(Ra(o).a.Jc(),new B));Nn(p);)u=y(vn(p),17),A=u.d.i,M.a._b(A)||(M.a.yc(A,M),Ha(w,A,w.c.b,w.c))}return!1}i(T3n,"W9b");function Pjt(e,n,o){var u,p,g,w,k,A,D,M,F;for(F=new Pt,M=new eRe(0,o),g=0,CX(M,new lhe(0,0,M,o)),p=0,D=new Sn(e);D.e!=D.i.gc();)A=y(_n(D),26),u=y(Wt(M.a,M.a.c.length-1),173),k=p+A.g+(y(Wt(M.a,0),173).b.c.length==0?0:o),(k>n||Kt(Xt(St(A,(n0(),Dj)))))&&(p=0,g+=M.b+o,tn(F.c,M),M=new eRe(g,o),u=new lhe(0,M.f,M,o),CX(M,u),p=0),u.b.c.length==0||!Kt(Xt(St($a(A),(n0(),aye))))&&(A.f>=u.o&&A.f<=u.f||u.a*.5<=A.f&&u.a*1.5>=A.f)?E_e(u,A):(w=new lhe(u.s+u.r+o,M.f,M,o),CX(M,w),E_e(w,A)),p=A.i+A.g;return tn(F.c,M),F}i(Pjt,"P5c");function VI(e){var n,o,u,p;if(!(e.b==null||e.b.length<=2)&&!e.a){for(n=0,p=0;p<e.b.length;){for(n!=p?(e.b[n]=e.b[p++],e.b[n+1]=e.b[p++]):p+=2,o=e.b[n+1];p<e.b.length&&!(o+1<e.b[p]);)if(o+1==e.b[p])e.b[n+1]=e.b[p+1],o=e.b[n+1],p+=2;else if(o>=e.b[p+1])p+=2;else if(o<e.b[p+1])e.b[n+1]=e.b[p+1],o=e.b[n+1],p+=2;else throw xe(new ql("Token#compactRanges(): Internel Error: ["+e.b[n]+","+e.b[n+1]+"] ["+e.b[p]+","+e.b[p+1]+"]"));n+=2}n!=e.b.length&&(u=tt(pi,Pi,30,n,15,1),$c(e.b,0,u,0,n),e.b=u),e.a=!0}}i(VI,"Fre");function k3n(e,n){var o,u,p,g,w,k,A;for(w=O5(e.a).Jc();w.Ob();){if(g=y(w.Pb(),17),g.b.c.length>0)for(u=new Ah(y(oa(e.a,g),22)),Ir(),zs(u,new S5e(n)),p=new yo(g.b,0);p.b<p.d.gc();){switch(o=(In(p.b<p.d.gc()),y(p.d.Xb(p.c=p.b++),70)),k=-1,y(oe(o,(Bt(),cm)),279).g){case 1:k=u.c.length-1;break;case 0:k=Kmn(u);break;case 2:k=0}k!=-1&&(A=(_r(k,u.c.length),y(u.c[k],250)),Nt(A.b.b,o),y(oe(Zs(A.b.c.i),(Tt(),au)),22).Ec((ol(),tL)),y(oe(Zs(A.b.c.i),au),22).Ec(eL),Wh(p),dt(o,x$e,g))}Bo(g,null),mo(g,null)}}i(k3n,"bWb");function C3n(e,n){var o,u,p,g,w,k,A,D,M,F,z;for(M=new Pt,z=new gs,w=n.b,p=0;p<w.c.length;p++){for(D=(_r(p,w.c.length),y(w.c[p],25)).a,M.c.length=0,g=0;g<D.c.length;g++)k=e.a[p][g],k.p=g,k.k==(Yr(),iu)&&tn(M.c,k),Mf(y(Wt(n.b,p),25).a,g,k),k.j.c.length=0,Is(k.j,y(y(Wt(e.b,p),16).Xb(g),18)),I5(y(oe(k,(Bt(),Qa)),102))||dt(k,Qa,(uo(),Bw));for(u=new ye(M);u.a<u.c.c.length;)o=y(de(u),9),F=Jxn(o),z.a.yc(F,z),z.a.yc(o,z)}for(A=z.a.ec().Jc();A.Ob();)k=y(A.Pb(),9),Ir(),zs(k.j,(M7(),OFe)),k.i=!0,p9e(k)}i(C3n,"vIc");function E3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee;if(n.Tg("Edge splitting",1),e.b.c.length<=2){n.Ug();return}for(g=new yo(e.b,0),w=(In(g.b<g.d.gc()),y(g.d.Xb(g.c=g.b++),25));g.b<g.d.gc();)for(p=w,w=(In(g.b<g.d.gc()),y(g.d.Xb(g.c=g.b++),25)),A=new ye(p.a);A.a<A.c.c.length;)for(k=y(de(A),9),M=new ye(k.j);M.a<M.c.c.length;)for(D=y(de(M),12),u=new ye(D.g);u.a<u.c.c.length;)o=y(de(u),17),z=o.d,F=z.i.c,F!=p&&F!=w&&Bfe(o,(ee=new e0(e),C1(ee,(Yr(),bs)),dt(ee,(Tt(),aa),o),dt(ee,(Bt(),Qa),(uo(),zc)),Us(ee,w),ee));n.Ug()}i(E3n,"x8b");function Bjt(e){var n,o,u,p,g,w,k,A,D,M,F,z;for(n=qg(e),g=Kt(Xt(St(n,(Bt(),j3)))),M=0,p=0,D=new Sn((!e.e&&(e.e=new zr(Cs,e,7,4)),e.e));D.e!=D.i.gc();)A=y(_n(D),85),k=Kx(A),w=k&&g&&Kt(Xt(St(A,Lw))),z=Pl(y(je((!A.c&&(A.c=new zr(Hn,A,5,8)),A.c),0),84)),k&&w?++p:k&&!w?++M:$a(z)==n||z==n?++p:++M;for(u=new Sn((!e.d&&(e.d=new zr(Cs,e,8,5)),e.d));u.e!=u.i.gc();)o=y(_n(u),85),k=Kx(o),w=k&&g&&Kt(Xt(St(o,Lw))),F=Pl(y(je((!o.b&&(o.b=new zr(Hn,o,4,7)),o.b),0),84)),k&&w?++M:k&&!w?++p:$a(F)==n||F==n?++M:++p;return M-p}i(Bjt,"H$b");function Fjt(e){var n,o,u,p,g;return e.g!=null?e.g:e.a<32?(e.g=UCn(vc(e.f),Po(e.e)),e.g):(p=yde((!e.c&&(e.c=KF(vc(e.f))),e.c),0),e.e==0?p:(n=(!e.c&&(e.c=KF(vc(e.f))),e.c).e<0?2:1,o=p.length,u=-e.e+o-n,g=new Yb,g.a+=""+p,e.e>0&&u>=-6?u>=0?EF(g,o-Po(e.e),"."):(Jue(g,n-1,n-1,"0."),EF(g,n+1,Jd(Ew,0,-Po(u)-1))):(o-n>=1&&(EF(g,n,"."),++o),EF(g,o,"E"),u>0&&EF(g,++o,"+"),EF(g,++o,""+B9(vc(u)))),e.g=g.a,e.g))}i(Fjt,"Jhb");function S3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht;u=He(Xe(oe(n,(Bt(),MGe)))),ht=y(oe(n,ZM),15).a,z=4,p=3,st=20/ht,ee=!1,A=0,w=Ui;do{for(g=A!=1,F=A!=0,Ht=0,fe=e.a,Me=0,Ve=fe.length;Me<Ve;++Me)ie=fe[Me],ie.f=null,pCn(e,ie,g,F,u),Ht+=d.Math.abs(ie.a);do k=KTn(e,n);while(k);for(ue=e.a,Ce=0,$e=ue.length;Ce<$e;++Ce)if(ie=ue[Ce],o=i7e(ie).a,o!=0)for(M=new ye(ie.e);M.a<M.c.c.length;)D=y(de(M),9),D.n.b+=o;A==0||A==1?(--z,z<=0&&(Ht<w||-z>ht)?(A=2,w=Ui):A==0?(A=1,w=Ht):(A=0,w=Ht)):(ee=Ht>=w||w-Ht<st,w=Ht,ee&&--p)}while(!(ee&&p<=0))}i(S3n,"tKc");function lde(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;for(ie=new jn,g=e.a.ec().Jc();g.Ob();)u=y(g.Pb(),177),Oi(ie,u,o.$e(u));for(w=(oi(e),e?new Ah(e):i7(e.a.ec().Jc())),zs(w,new Uxt(ie)),k=JY(w),A=new $q(n),ee=new jn,Ju(ee.f,n,A);k.a.gc()!=0;){for(D=null,M=null,F=null,p=k.a.ec().Jc();p.Ob();)if(u=y(p.Pb(),177),He(Xe(Yl(Sl(ie.f,u))))<=qa){if(Kc(ee,u.a)&&!Kc(ee,u.b)){M=u.b,F=u.a,D=u;break}if(Kc(ee,u.b)&&!Kc(ee,u.a)){M=u.a,F=u.b,D=u;break}}if(!D)break;z=new $q(M),Nt(y(Yl(Sl(ee.f,F)),225).a,z),Ju(ee.f,M,z),k.a.Ac(D)!=null}return A}i(lde,"cEb");function pw(e,n){var o,u,p,g,w,k;if(n){if(!e.a&&(e.a=new jH),e.e==2){GH(e.a,n);return}if(n.e==1){for(p=0;p<n.Nm();p++)pw(e,n.Jm(p));return}if(k=e.a.a.c.length,k==0){GH(e.a,n);return}if(w=y(Dx(e.a,k-1),121),!((w.e==0||w.e==10)&&(n.e==0||n.e==10))){GH(e.a,n);return}g=n.e==0?2:n.Km().length,w.e==0?(o=new r9,u=w.Im(),u>=Jo?ml(o,T_e(u)):u7(o,u&As),w=(++Za,new qce(10,null,0)),aan(e.a,w,k-1)):(o=(w.Km().length+g,new r9),ml(o,w.Km())),n.e==0?(u=n.Im(),u>=Jo?ml(o,T_e(u)):u7(o,u&As)):ml(o,n.Km()),y(w,518).b=o.a}}i(pw,"use");function A3n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(!o.dc()){for(k=0,z=0,u=o.Jc(),ie=y(u.Pb(),15).a;k<n.f;){if(k==ie&&(z=0,u.Ob()?ie=y(u.Pb(),15).a:ie=n.f+1),k!=z){for(fe=y(Wt(e.b,k),25),ee=y(Wt(e.b,z),25),ue=Z2(fe.a),F=new ye(ue);F.a<F.c.c.length;)if(M=y(de(F),9),bv(M,ee.a.c.length,ee),z==0)for(w=Z2(os(M)),g=new ye(w);g.a<g.c.c.length;)p=y(de(g),17),Jy(p,!0),dt(e,(Tt(),P6),(qr(),!0)),Ujt(e,p,1)}++z,++k}for(A=new yo(e.b,0);A.b<A.d.gc();)D=(In(A.b<A.d.gc()),y(A.d.Xb(A.c=A.b++),25)),D.a.c.length==0&&Wh(A)}}i(A3n,"snc");function R3n(e,n,o){var u,p,g;if(p=y(oe(n,(Bt(),pZ)),283),p!=(Q7(),BM)){switch(o.Tg("Horizontal Compaction",1),e.a=n,g=new s9t,u=new CFt((g.d=n,g.c=y(oe(g.d,Z1),222),xxn(g),I4n(g),Lxn(g),g.a)),kQr(u,e.b),y(oe(n,oGe),422).g===1?rCt(u,new AIt(e.a)):rCt(u,(F7e(),vYt)),p.g){case 1:MI(u);break;case 2:MI(tJ(u,(Ss(),Bl)));break;case 3:MI(tCt(tJ(MI(u),(Ss(),Bl)),new Zgt));break;case 4:MI(tCt(tJ(MI(u),(Ss(),Bl)),new ATt(g)));break;case 5:MI(TQr(u,dKt))}tJ(u,(Ss(),Il)),u.e=!0,ECn(g),o.Ug()}}i(R3n,"Ydc");function L3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(w=n.b,M=w.o,A=w.d,u=He(Xe(uK(w,(Bt(),Xp)))),p=He(Xe(uK(w,xE))),D=He(Xe(uK(w,Zme))),k=new Coe,N8e(k,A.d,A.c,A.a,A.b),z=Gxn(n,u,p,D),Ce=new ye(n.d);Ce.a<Ce.c.c.length;){for(fe=y(de(Ce),107),ie=fe.f.a.ec().Jc();ie.Ob();)ee=y(ie.Pb(),341),g=ee.a,F=B1n(ee),o=(Me=new Vh,SBt(ee,ee.c,z,Me),Hwn(ee,F,z,Me),SBt(ee,ee.d,z,Me),Me),o=e.lg(ee,F,o),gf(g.a),Fo(g.a,o),ts(new Er(null,new Rr(o,16)),new KEt(M,k));ue=fe.i,ue&&(Qwn(fe,ue,z,p),$e=new Vo(ue.g),Y_e(M,k,$e),ra($e,ue.j),Y_e(M,k,$e))}N8e(A,k.d,k.c,k.a,k.b)}i(L3n,"rkc");function _3n(e,n){nR();var o,u,p,g,w,k;return g=n.c-(e.c+e.b),p=e.c-(n.c+n.b),w=e.d-(n.d+n.a),o=n.d-(e.d+e.a),u=d.Math.max(p,g),k=d.Math.max(w,o),Wg(),$p(im),(d.Math.abs(u)<=im||u==0||isNaN(u)&&isNaN(0)?0:u<0?-1:u>0?1:V2(isNaN(u),isNaN(0)))>=0^($p(im),(d.Math.abs(k)<=im||k==0||isNaN(k)&&isNaN(0)?0:k<0?-1:k>0?1:V2(isNaN(k),isNaN(0)))>=0)?d.Math.max(k,u):($p(im),(d.Math.abs(u)<=im||u==0||isNaN(u)&&isNaN(0)?0:u<0?-1:u>0?1:V2(isNaN(u),isNaN(0)))>0?d.Math.sqrt(k*k+u*u):-d.Math.sqrt(k*k+u*u))}i(_3n,"Ffd");function D3n(e){var n,o,u,p;p=e.o,Nk(),e.A.dc()||ta(e.A,kBe)?n=p.b:(e.D?n=d.Math.max(p.b,LI(e.f)):n=LI(e.f),e.A.Gc((vf(),Xj))&&!e.B.Gc((Zh(),NN))&&(n=d.Math.max(n,LI(y(yl(e.p,(zt(),bn)),253))),n=d.Math.max(n,LI(y(yl(e.p,on),253)))),o=JIt(e),o&&(n=d.Math.max(n,o.b)),e.A.Gc(Kj)&&(e.q==(uo(),a1)||e.q==zc)&&(n=d.Math.max(n,sY(y(yl(e.b,(zt(),bn)),127))),n=d.Math.max(n,sY(y(yl(e.b,on),127))))),Kt(Xt(e.e.Rf().mf((Ri(),e4))))?p.b=d.Math.max(p.b,n):p.b=n,u=e.f.i,u.d=0,u.a=n,Qfe(e.f)}i(D3n,"KKb");function I3n(e,n,o,u,p,g,w,k){var A,D,M,F;switch(A=Bp(Se(Ee(kSn,1),Fr,238,0,[n,o,u,p])),F=null,e.b.g){case 1:F=Bp(Se(Ee(Jze,1),Fr,524,0,[new eoe,new Qse,new Zse]));break;case 0:F=Bp(Se(Ee(Jze,1),Fr,524,0,[new Zse,new Qse,new eoe]));break;case 2:F=Bp(Se(Ee(Jze,1),Fr,524,0,[new Qse,new eoe,new Zse]))}for(M=new ye(F);M.a<M.c.c.length;)D=y(de(M),524),A.c.length>1&&(A=D.Gg(A,e.a,k));return A.c.length==1?y(Wt(A,A.c.length-1),238):A.c.length==2?b3n((_r(0,A.c.length),y(A.c[0],238)),(_r(1,A.c.length),y(A.c[1],238)),w,g):null}i(I3n,"a5c");function M3n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;p=new qB(e),g=new zFt,u=(e$(g.n),e$(g.p),Sc(g.c),e$(g.f),e$(g.o),Sc(g.q),Sc(g.d),Sc(g.g),Sc(g.k),Sc(g.e),Sc(g.i),Sc(g.j),Sc(g.r),Sc(g.b),z=fFt(g,p,null),f$t(g,p),z),n&&(A=new qB(n),w=Jkn(A),JDe(u,Se(Ee(_Ue,1),Fr,525,0,[w]))),F=!1,M=!1,o&&(A=new qB(o),KJ in A.a&&(F=M1(A,KJ).oe().a),aHt in A.a&&(M=M1(A,aHt).oe().a)),D=aCt(iIt(new g5,F),M),$yn(new Byt,u,D),KJ in p.a&&Fp(p,KJ,null),(F||M)&&(k=new m5,ajt(D,k,F,M),Fp(p,KJ,k)),ee=new f3t(g),CMt(new Mle(u),ee),ie=new d3t(g),CMt(new Mle(u),ie)}i(M3n,"fHd");function N3n(e,n,o){var u,p,g,w,k,A,D;for(o.Tg("Find roots",1),e.a.c.length=0,p=ei(n.b,0);p.b!=p.d.c;)u=y(Qn(p),40),u.b.b==0&&(dt(u,(Ca(),zv),(qr(),!0)),Nt(e.a,u));switch(e.a.c.length){case 0:g=new ohe(0,n,"DUMMY_ROOT"),dt(g,(Ca(),zv),(qr(),!0)),dt(g,A1e,!0),_i(n.b,g);break;case 1:break;default:for(w=new ohe(0,n,FJ),A=new ye(e.a);A.a<A.c.c.length;)k=y(de(A),40),D=new N7e(w,k),dt(D,(Ca(),A1e),(qr(),!0)),_i(w.a.a,D),_i(w.d,D),_i(k.b,D),dt(k,zv,!1);dt(w,(Ca(),zv),(qr(),!0)),dt(w,A1e,!0),_i(n.b,w)}o.Ug()}i(N3n,"lWc");function $jt(e){var n,o,u,p,g,w;for(Zc(e.a,new En),o=new ye(e.a);o.a<o.c.c.length;)n=y(de(o),225),u=qs(Wo(y(e.b,68).c),y(n.b,68).c),ZYt?(w=y(e.b,68).b,g=y(n.b,68).b,d.Math.abs(u.a)>=d.Math.abs(u.b)?(u.b=0,g.d+g.a>w.d&&g.d<w.d+w.a&&iY(u,d.Math.max(w.c-(g.c+g.b),g.c-(w.c+w.b)))):(u.a=0,g.c+g.b>w.c&&g.c<w.c+w.b&&iY(u,d.Math.max(w.d-(g.d+g.a),g.d-(w.d+w.a))))):iY(u,cjt(y(e.b,68),y(n.b,68))),p=d.Math.sqrt(u.a*u.a+u.b*u.b),p=JPt(LM,n,p,u),iY(u,p),mce(y(n.b,68),u),Zc(n.a,new k5e(u)),y(LM.b,68),MRe(LM,CBe,n)}i($jt,"cMb");function O3n(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie;for(e.f=new Toe,D=0,p=0,w=new ye(e.e.b);w.a<w.c.c.length;)for(g=y(de(w),25),A=new ye(g.a);A.a<A.c.c.length;){for(k=y(de(A),9),k.p=D++,u=new nn(cn(Ra(k).a.Jc(),new B));Nn(u);)o=y(vn(u),17),o.p=p++;for(n=ade(k),z=new ye(k.j);z.a<z.c.c.length;)F=y(de(z),12),n&&(ie=F.a.b,ie!=d.Math.floor(ie)&&(M=ie-tw(vc(d.Math.round(ie))),F.a.b-=M)),ee=F.n.b+F.a.b,ee!=d.Math.floor(ee)&&(M=ee-tw(vc(d.Math.round(ee))),F.n.b-=M)}e.g=D,e.b=p,e.i=tt(vSn,Fr,405,D,0,1),e.c=tt(bSn,Fr,645,p,0,1),e.d.a.$b()}i(O3n,"cLc");function Kn(e){var n,o,u,p,g,w,k,A,D;if(e.Nj())if(A=e.Oj(),e.i>0){if(n=new nAe(e.i,e.g),o=e.i,g=o<100?null:new Xb(o),e.Rj())for(u=0;u<e.i;++u)w=e.g[u],g=e.Tj(w,g);if(Q9(e),p=o==1?e.Gj(4,je(n,0),null,0,A):e.Gj(6,n,null,-1,A),e.Kj()){for(u=new _5(n);u.e!=u.i.gc();)g=e.Mj(zhe(u),g);g?(g.lj(p),g.mj()):e.Hj(p)}else g?(g.lj(p),g.mj()):e.Hj(p)}else Q9(e),e.Hj(e.Gj(6,(Ir(),Go),null,-1,A));else if(e.Kj())if(e.i>0){for(k=e.g,D=e.i,Q9(e),g=D<100?null:new Xb(D),u=0;u<D;++u)w=k[u],g=e.Mj(w,g);g&&g.mj()}else Q9(e);else Q9(e)}i(Kn,"JJd");function jIe(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(cMt(this),o==(Px(),jv)?ys(this.r,e):ys(this.w,e),M=qa,D=Ys,w=n.a.ec().Jc();w.Ob();)p=y(w.Pb(),49),k=y(p.a,454),u=y(p.b,17),A=u.c,A==e&&(A=u.d),k==jv?ys(this.r,A):ys(this.w,A),z=(zt(),rh).Gc(A.j)?He(Xe(oe(A,(Tt(),nL)))):Ql(Se(Ee(to,1),Dt,8,0,[A.i.n,A.n,A.a])).b,M=d.Math.min(M,z),D=d.Math.max(D,z);for(F=(zt(),rh).Gc(e.j)?He(Xe(oe(e,(Tt(),nL)))):Ql(Se(Ee(to,1),Dt,8,0,[e.i.n,e.n,e.a])).b,bBt(this,F,M,D),g=n.a.ec().Jc();g.Ob();)p=y(g.Pb(),49),MBt(this,y(p.b,17));this.o=!1}i(jIe,"gSc");function P3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn;return o=e.l&8191,u=e.l>>13|(e.m&15)<<9,p=e.m>>4&8191,g=e.m>>17|(e.h&255)<<5,w=(e.h&1048320)>>8,k=n.l&8191,A=n.l>>13|(n.m&15)<<9,D=n.m>>4&8191,M=n.m>>17|(n.h&255)<<5,F=(n.h&1048320)>>8,yr=o*k,gr=u*k,Pr=p*k,Mr=g*k,wn=w*k,A!=0&&(gr+=o*A,Pr+=u*A,Mr+=p*A,wn+=g*A),D!=0&&(Pr+=o*D,Mr+=u*D,wn+=p*D),M!=0&&(Mr+=o*M,wn+=u*M),F!=0&&(wn+=o*F),ee=yr&ef,ie=(gr&511)<<13,z=ee+ie,fe=yr>>22,Ce=gr>>9,Me=(Pr&262143)<<4,$e=(Mr&31)<<17,ue=fe+Ce+Me+$e,ht=Pr>>18,st=Mr>>5,Ht=(wn&4095)<<8,Ve=ht+st+Ht,ue+=z>>22,z&=ef,Ve+=ue>>22,ue&=ef,Ve&=q1,Mu(z,ue,Ve)}i(P3n,"oD");function Gjt(e){var n,o,u,p,g,w,k;if(k=y(Wt(e.j,0),12),k.g.c.length!=0&&k.e.c.length!=0)throw xe(new El("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(k.g.c.length!=0){for(g=qa,o=new ye(k.g);o.a<o.c.c.length;)n=y(de(o),17),w=n.d.i,u=y(oe(w,(Bt(),TZ)),140),g=d.Math.min(g,w.n.a-u.b);return new _H(oi(g))}if(k.e.c.length!=0){for(p=Ys,o=new ye(k.e);o.a<o.c.c.length;)n=y(de(o),17),w=n.c.i,u=y(oe(w,(Bt(),TZ)),140),p=d.Math.max(p,w.n.a+w.o.a+u.c);return new _H(oi(p))}return QD(),QD(),n0e}i(Gjt,"r4b");function B3n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(o.Tg("Interactive cycle breaking",1),F=new Pt,ee=new ye(n.a);ee.a<ee.c.c.length;)for(z=y(de(ee),9),z.p=1,ie=EDe(z).a,M=Wx(z,(sl(),Eu)).Jc();M.Ob();)for(D=y(M.Pb(),12),g=new ye(D.g);g.a<g.c.c.length;)u=y(de(g),17),ue=u.d.i,ue!=z&&(fe=EDe(ue).a,fe<ie&&tn(F.c,u));for(w=new ye(F);w.a<w.c.c.length;)u=y(de(w),17),Jy(u,!0);for(F.c.length=0,A=new ye(n.a);A.a<A.c.c.length;)k=y(de(A),9),k.p>0&&FBt(e,k,F);for(p=new ye(F);p.a<p.c.c.length;)u=y(de(p),17),Jy(u,!0);F.c.length=0,o.Ug()}i(B3n,"lCc");function jjt(e,n){var o,u,p,g,w,k,A;if(e.ml()){if(e.i>4)if(e.dk(n)){if(e.$k()){if(p=y(n,52),u=p.Bh(),A=u==e.e&&(e.kl()?p.vh(p.Ch(),e.gl())==e.hl():-1-p.Ch()==e.Jj()),e.ll()&&!A&&!u&&p.Gh()){for(g=0;g<e.i;++g)if(o=e.nl(y(e.g[g],57)),Qe(o)===Qe(n))return!0}return A}else if(e.kl()&&!e.jl()){if(w=y(n,57).Jh(rl(y(e.Jk(),19))),Qe(w)===Qe(e.e))return!0;if(w==null||!y(w,57).Sh())return!1}}else return!1;if(k=K7(e,n),e.ll()&&!k){for(g=0;g<e.i;++g)if(p=e.nl(y(e.g[g],57)),Qe(p)===Qe(n))return!0}return k}else return K7(e,n)}i(jjt,"pXd");function F3n(e,n){var o,u,p,g,w,k,A,D,M;for(o=0,M=new Pt,k=new ye(n);k.a<k.c.c.length;){switch(w=y(de(k),12),ZLe(e.b,e.d[w.p]),M.c.length=0,w.i.k.g){case 0:u=y(oe(w,(Tt(),Ih)),9),Zc(u.j,new okt(M));break;case 1:ien(j1(Hi(new Er(null,new Rr(w.i.j,16)),new lkt(w))),new ckt(M));break;case 3:p=y(oe(w,(Tt(),aa)),12),Nt(M,new Ko(p,Et(w.e.c.length+w.g.c.length)))}for(D=new ye(M);D.a<D.c.c.length;)A=y(de(D),49),g=m6e(e,y(A.a,12)),g>e.d[w.p]&&(o+=pRe(e.b,g)*y(A.b,15).a,ov(e.a,Et(g)));for(;!e9(e.a);)YRe(e.b,y(F5(e.a),15).a)}return o}i(F3n,"XIc");function $3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(n.Tg(MVt,1),ee=new Pt,M=d.Math.max(e.a.c.length,y(oe(e,(Tt(),Pv)),15).a),o=M*y(oe(e,uj),15).a,k=Qe(oe(e,(Bt(),U6)))===Qe((fv(),B3)),ue=new ye(e.a);ue.a<ue.c.c.length;)for(ie=y(de(ue),9),u=new HB,A=k?f6(u,ie,o,M):c6(u,ie,M),z=Wx(ie,(sl(),Eu)).Jc();z.Ob();)for(F=y(z.Pb(),12),w=new ye(F.g);w.a<w.c.c.length;)p=y(de(w),17),fe=p.d.i,D=k?f6(u,fe,o,M):c6(u,fe,M),D<A&&tn(ee.c,p);for(g=new ye(ee);g.a<g.c.c.length;)p=y(de(g),17),Jy(p,!0),dt(e,P6,(qr(),!0));ee.c.length=0,n.Ug()}i($3n,"rCc");function G3n(e){var n,o,u;for(e6($w,Se(Ee(_6,1),Fr,148,0,[new JSe])),o=new n5e(e),u=0;u<o.a.length;++u)n=Jk(o,u).re().a,Cr(n,"layered")?e6($w,Se(Ee(_6,1),Fr,148,0,[new owt])):Cr(n,"force")?e6($w,Se(Ee(_6,1),Fr,148,0,[new Y2t])):Cr(n,"stress")?e6($w,Se(Ee(_6,1),Fr,148,0,[new K2t])):Cr(n,"mrtree")?e6($w,Se(Ee(_6,1),Fr,148,0,[new _wt])):Cr(n,"radial")?e6($w,Se(Ee(_6,1),Fr,148,0,[new Cwt])):Cr(n,"sporeOverlap")||Cr(n,"sporeCompaction")?e6($w,Se(Ee(_6,1),Fr,148,0,[new Bwt])):Cr(n,"rectpacking")&&e6($w,Se(Ee(_6,1),Fr,148,0,[new Mwt]))}i(G3n,"hHd");function j3n(e,n){var o,u,p,g,w,k,A,D,M,F;if(M=y(oe(e,(Tt(),gc)),64),u=y(Wt(e.j,0),12),M==(zt(),sn)?Bs(u,Fn):M==Fn&&Bs(u,sn),y(oe(n,(Bt(),Bv)),182).Gc((vf(),Fw))){if(A=He(Xe(oe(e,cL))),D=He(Xe(oe(e,uL))),w=He(Xe(oe(e,q3))),k=y(oe(n,V3),22),k.Gc((_h(),ry)))for(o=D,F=e.o.a/2-u.n.a,g=new ye(u.f);g.a<g.c.c.length;)p=y(de(g),70),p.n.b=o,p.n.a=F-p.o.a/2,o+=p.o.b+w;else if(k.Gc(qv))for(g=new ye(u.f);g.a<g.c.c.length;)p=y(de(g),70),p.n.a=A+e.o.a-u.n.a;Qon(new KB((K8(),new IY(n,!1,!1,new It))),new eY(null,e,!1))}}i(j3n,"j3b");function z3n(e,n){var o,u,p,g,w,k,A,D,M;if(n.c.length!=0){for(Ir(),dce(n.c,n.c.length,null),p=new ye(n),u=y(de(p),156);p.a<p.c.c.length;)o=y(de(p),156),QRe(u.e.c,o.e.c)&&!(z_e(B6t(u.e).b,o.e.d)||z_e(B6t(o.e).b,u.e.d))?u=(Is(u.k,o.k),Is(u.b,o.b),Is(u.c,o.c),Fo(u.i,o.i),Is(u.d,o.d),Is(u.j,o.j),g=d.Math.min(u.e.c,o.e.c),w=d.Math.min(u.e.d,o.e.d),k=d.Math.max(u.e.c+u.e.b,o.e.c+o.e.b),A=k-g,D=d.Math.max(u.e.d+u.e.a,o.e.d+o.e.a),M=D-w,JAt(u.e,g,w,A,M),nln(u.f,o.f),!u.a&&(u.a=o.a),Is(u.g,o.g),Nt(u.g,o),u):(tjt(e,u),u=o);tjt(e,u)}}i(z3n,"Aec");function U3n(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht;for(A=new Pt,g=new ye(n.a);g.a<g.c.c.length;)for(p=y(de(g),9),k=new ye(p.j);k.a<k.c.c.length;){for(w=y(de(k),12),M=null,$e=q0(w.g),Ve=0,ht=$e.length;Ve<ht;++Ve)Me=$e[Ve],A7(Me.d.i,o)||(Ce=sde(e,n,o,Me,Me.c,(sl(),Eu),M),Ce!=M&&tn(A.c,Ce),Ce.c&&(M=Ce));for(D=null,ie=q0(w.e),ue=0,fe=ie.length;ue<fe;++ue)ee=ie[ue],A7(ee.c.i,o)||(Ce=sde(e,n,o,ee,ee.d,(sl(),Mh),D),Ce!=D&&tn(A.c,Ce),Ce.c&&(D=Ce))}for(z=new ye(A);z.a<z.c.c.length;)F=y(de(z),444),Jl(n.a,F.a,0)!=-1||Nt(n.a,F.a),F.c&&tn(u.c,F)}i(U3n,"fWb");function V3n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee;for(k=new ye(n);k.a<k.c.c.length;)g=y(de(k),239),g.e=null,g.c=0;for(A=null,w=new ye(n);w.a<w.c.c.length;)if(g=y(de(w),239),F=g.d[0],!(o&&F.k!=(Yr(),Ya))){for(ee=y(oe(F,(Tt(),F6)),16).Jc();ee.Ob();)z=y(ee.Pb(),9),(!o||z.k==(Yr(),Ya))&&((!g.e&&(g.e=new Pt),g.e).Ec(e.b[z.c.p][z.p]),++e.b[z.c.p][z.p].c);if(!o&&F.k==(Yr(),Ya)){if(A)for(M=y(oa(e.d,A),22).Jc();M.Ob();)for(D=y(M.Pb(),9),p=y(oa(e.d,F),22).Jc();p.Ob();)u=y(p.Pb(),9),rin(e.b[D.c.p][D.p]).Ec(e.b[u.c.p][u.p]),++e.b[u.c.p][u.p].c;A=F}}}i(V3n,"DFc");function W3n(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(F=new Vo(y(St(e,(LK(),FUe)),8)),F.a=d.Math.max(F.a-o.b-o.c,0),F.b=d.Math.max(F.b-o.d-o.a,0),p=Xe(St(e,OUe)),(p==null||(Ur(p),p<=0))&&(p=1.3),k=new Pt,ie=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));ie.e!=ie.i.gc();)ee=y(_n(ie),26),w=new k6t(ee),tn(k.c,w);switch(z=y(St(e,Tye),327),z.g){case 3:fe=ATn(k,n,F.a,F.b,(D=u,Ur(p),D));break;case 1:fe=gkn(k,n,F.a,F.b,(M=u,Ur(p),M));break;default:fe=q3n(k,n,F.a,F.b,(A=u,Ur(p),A))}g=new vX(fe),ue=pde(g,n,o,F.a,F.b,u,(Ur(p),p)),eT(e,ue.a,ue.b,!1,!0)}i(W3n,"Jod");function H3n(e,n,o,u){var p,g,w,k,A,D;if(k=e.j,k==(zt(),rc)&&n!=(uo(),m0)&&n!=(uo(),Hv)&&(k=KGt(e,o),Bs(e,k),!(e.q?e.q:(Ir(),Ir(),Qm))._b((Bt(),U3))&&k!=rc&&(e.n.a!=0||e.n.b!=0)&&dt(e,U3,omn(e,k))),n==(uo(),a1)){switch(D=0,k.g){case 1:case 3:g=e.i.o.a,g>0&&(D=e.n.a/g);break;case 2:case 4:p=e.i.o.b,p>0&&(D=e.n.b/p)}dt(e,(Tt(),vT),D)}if(A=e.o,w=e.a,u)w.a=u.a,w.b=u.b,e.d=!0;else if(n!=m0&&n!=Hv&&k!=rc)switch(k.g){case 1:w.a=A.a/2;break;case 2:w.a=A.a,w.b=A.b/2;break;case 3:w.a=A.a/2,w.b=A.b;break;case 4:w.b=A.b/2}else w.a=A.a/2,w.b=A.b/2}i(H3n,"TXb");function WI(e){var n,o,u,p,g,w,k,A,D,M;if(e.Nj())if(M=e.Cj(),A=e.Oj(),M>0)if(n=new SLe(e.nj()),o=M,g=o<100?null:new Xb(o),_F(e,o,n.g),p=o==1?e.Gj(4,je(n,0),null,0,A):e.Gj(6,n,null,-1,A),e.Kj()){for(u=new Sn(n);u.e!=u.i.gc();)g=e.Mj(_n(u),g);g?(g.lj(p),g.mj()):e.Hj(p)}else g?(g.lj(p),g.mj()):e.Hj(p);else _F(e,e.Cj(),e.Dj()),e.Hj(e.Gj(6,(Ir(),Go),null,-1,A));else if(e.Kj())if(M=e.Cj(),M>0){for(k=e.Dj(),D=M,_F(e,M,k),g=D<100?null:new Xb(D),u=0;u<D;++u)w=k[u],g=e.Mj(w,g);g&&g.mj()}else _F(e,e.Cj(),e.Dj());else _F(e,e.Cj(),e.Dj())}i(WI,"kId");function q3n(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(k=tt(po,vl,30,e.c.length,15,1),z=new xY(new vbt),hDe(z,e),D=0,ue=new Pt;z.b.c.length!=0;)if(w=y(z.b.c.length==0?null:Wt(z.b,0),167),D>1&&ph(w)*pf(w)/2>k[0]){for(g=0;g<ue.c.length-1&&ph(w)*pf(w)/2>k[g];)++g;ie=new sv(ue,0,g+1),F=new vX(ie),M=ph(w)/pf(w),A=pde(F,n,new p5,o,u,p,M),ra(hg(F.e),A),N5(J7(z,F),yR),ee=new sv(ue,g+1,ue.c.length),hDe(z,ee),ue.c.length=0,D=0,k8t(k,k.length,0)}else fe=z.b.c.length==0?null:Wt(z.b,0),fe!=null&&zue(z,0),D>0&&(k[D]=k[D-1]),k[D]+=ph(w)*pf(w),++D,tn(ue.c,w);return ue}i(q3n,"Hod");function Y3n(e,n){var o,u,p,g;o=n.b,g=new Ah(o.j),p=0,u=o.j,u.c.length=0,Lx(y(iw(e.b,(zt(),sn),(jx(),mT)),16),o),p=$$(g,p,new A0t,u),Lx(y(iw(e.b,sn,Nv),16),o),p=$$(g,p,new R0t,u),Lx(y(iw(e.b,sn,gT),16),o),Lx(y(iw(e.b,bn,mT),16),o),Lx(y(iw(e.b,bn,Nv),16),o),p=$$(g,p,new L0t,u),Lx(y(iw(e.b,bn,gT),16),o),Lx(y(iw(e.b,Fn,mT),16),o),p=$$(g,p,new _0t,u),Lx(y(iw(e.b,Fn,Nv),16),o),p=$$(g,p,new D0t,u),Lx(y(iw(e.b,Fn,gT),16),o),Lx(y(iw(e.b,on,mT),16),o),p=$$(g,p,new k0t,u),Lx(y(iw(e.b,on,Nv),16),o),Lx(y(iw(e.b,on,gT),16),o)}i(Y3n,"lic");function X3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(n.Tg("Layer size calculation",1),M=qa,D=Ys,p=!1,k=new ye(e.b);k.a<k.c.c.length;)if(w=y(de(k),25),A=w.c,A.a=0,A.b=0,w.a.c.length!=0){for(p=!0,z=new ye(w.a);z.a<z.c.c.length;)F=y(de(z),9),ie=F.o,ee=F.d,A.a=d.Math.max(A.a,ie.a+ee.b+ee.c);u=y(Wt(w.a,0),9),ue=u.n.b-u.d.d,u.k==(Yr(),ks)&&(ue-=y(oe(e,(Bt(),vj)),140).d),g=y(Wt(w.a,w.a.c.length-1),9),o=g.n.b+g.o.b+g.d.a,g.k==ks&&(o+=y(oe(e,(Bt(),vj)),140).a),A.b=o-ue,M=d.Math.min(M,ue),D=d.Math.max(D,o)}p||(M=0,D=0),e.f.b=D-M,e.c.b-=M,n.Ug()}i(X3n,"q8b");function zjt(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(w=n.d,k=o.d;w.a-k.a==0&&w.b-k.b==0;)A=!1,Ge(n,251)&&Ge(o,251)&&!A?(D=y(n,251).a,M=qs(new Vo(sLe(D)),aLe(D)),u=2,p=new Lt(M.a/d.Math.sqrt(M.a*M.a+M.b*M.b)*u,-M.b/d.Math.sqrt(M.a*M.a+M.b*M.b)*u),ra(w,p),F=y(o,251).a,z=qs(new Vo(sLe(F)),aLe(F)),u=M==z?-2:2,g=new Lt(z.a/d.Math.sqrt(z.a*z.a+z.b*z.b)*u,-(z.b/d.Math.sqrt(z.a*z.a+z.b*z.b))*u),ra(w,g),A=!0):(w.a+=Qh(e,26)*YI+Qh(e,27)*XI-.5,w.b+=Qh(e,26)*YI+Qh(e,27)*XI-.5,k.a+=Qh(e,26)*YI+Qh(e,27)*XI-.5,k.b+=Qh(e,26)*YI+Qh(e,27)*XI-.5)}i(zjt,"UNb");function K3n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(D=Dyn(n),fe=y(oe(n,(Bt(),XM)),301),Io(D,new Yxt(fe)),Ce=y(oe(n,gj),302),Io(D,new Xxt(Ce)),ue=0,M=new Pt,g=new W9(D);g.a!=g.b;)p=y(HX(g),36),ezt(e.c,p),z=y(oe(p,(Tt(),Dme)),16),ue+=z.gc(),u=z.Jc(),Nt(M,new Ko(p,u));for(o.Tg("Recursive hierarchical layout",ue),ie=0,ee=y(y(Wt(M,M.c.length-1),49).b,50);ee.Ob();)for(A=new ye(M);A.a<A.c.c.length;)for(k=y(de(A),49),z=y(k.b,50),w=y(k.a,36);z.Ob();)if(F=y(z.Pb(),43),Ge(F,453)){if(w.e)break;F.If(w,o.dh(1)),++ie;break}else F.If(w,o.dh(1)),++ie;o.Ug()}i(K3n,"pQb");function zIe(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(g=0,w=0,D=new ye(e.a);D.a<D.c.c.length;)k=y(de(D),9),g=d.Math.max(g,k.d.b),w=d.Math.max(w,k.d.c);for(A=new ye(e.a);A.a<A.c.c.length;){switch(k=y(de(A),9),o=y(oe(k,(Bt(),lm)),256),o.g){case 1:ie=0;break;case 2:ie=1;break;case 5:ie=.5;break;default:for(u=0,F=0,ee=new ye(k.j);ee.a<ee.c.c.length;)z=y(de(ee),12),z.e.c.length==0||++u,z.g.c.length==0||++F;u+F==0?ie=.5:ie=F/(u+F)}fe=e.c,M=k.o.a,Ce=(fe.a-M)*ie,ie>.5?Ce-=w*2*(ie-.5):ie<.5&&(Ce+=g*2*(.5-ie)),p=k.d.b,Ce<p&&(Ce=p),ue=k.d.c,Ce>fe.a-ue-M&&(Ce=fe.a-ue-M),k.n.a=n+Ce}}i(zIe,"WXb");function J3n(e){var n,o,u,p,g;if(u=y(oe(e,(Bt(),tc)),165),u==(yf(),Q1)){for(o=new nn(cn(os(e).a.Jc(),new B));Nn(o);)if(n=y(vn(o),17),!B_t(n))throw xe(new _y(hpe+G$(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(u==Rw){for(g=new nn(cn(Ra(e).a.Jc(),new B));Nn(g);)if(p=y(vn(g),17),!B_t(p))throw xe(new _y(hpe+G$(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}i(J3n,"Z7b");function cG(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(e.e&&e.c.c<e.f)throw xe(new El("Expected "+e.f+" phases to be configured; only found "+e.c.c));for(M=y(ug(e.g),10),ee=Pm(e.f),g=M,k=0,D=g.length;k<D;++k)u=g[k],F=y(u$(e,u.g),188),F?Nt(ee,y(GNt(e,F),95)):ee.c.push(null);for(ie=new us,ts(Hi(bu(Hi(new Er(null,new Rr(ee,16)),new Fyt),new Ukt(n)),new $yt),new Vkt(ie)),Pf(ie,e.a),o=new Pt,p=M,w=0,A=p.length;w<A;++w)u=p[w],Is(o,pMt(e,Vce(y(u$(ie,u.g),20)))),z=y(Wt(ee,u.g),95),z&&tn(o.c,z);return Is(o,pMt(e,Vce(y(u$(ie,M[M.length-1].g+1),20)))),o}i(cG,"Lbd");function Q3n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;for(z=new Pt,p=new Pt,ue=null,k=n.Jc();k.Ob();)w=y(k.Pb(),15),g=new JTt(w.a),tn(p.c,g),ue&&(g.d=ue,ue.e=g),ue=g;for($e=xkn(e),M=0;M<p.c.length;++M){for(ee=null,fe=RRe((_r(0,p.c.length),y(p.c[0],651))),o=null,u=qa,F=1;F<e.b.c.length;++F)Ce=fe?d.Math.abs(fe.b-F):d.Math.abs(F-ee.b)+1,ie=ee?d.Math.abs(F-ee.b):Ce+1,ie<Ce?(D=ee,A=ie):(D=fe,A=Ce),Me=(Ve=He(Xe(oe(e,(Bt(),qGe)))),$e[F]+d.Math.pow(A,Ve)),Me<u&&(u=Me,o=D,o.c=F),fe&&F==fe.b&&(ee=fe,fe=Zin(fe));o&&(Nt(z,Et(o.c)),o.a=!0,npn(o))}return Ir(),dce(z.c,z.c.length,null),z}i(Q3n,"hmc");function UIe(e,n,o){var u,p,g,w,k,A;if(n.l==0&&n.m==0&&n.h==0)throw xe(new UH("divide by zero"));if(e.l==0&&e.m==0&&e.h==0)return o&&(_v=Mu(0,0,0)),Mu(0,0,0);if(n.h==wG&&n.m==0&&n.l==0)return gpn(e,o);if(A=!1,n.h>>19!=0&&(n=I7(n),A=!A),w=O2n(n),g=!1,p=!1,u=!1,e.h==wG&&e.m==0&&e.l==0)if(p=!0,g=!0,w==-1)e=u5t((T7(),YPe)),u=!0,A=!A;else return k=M9e(e,w),A&&ahe(k),o&&(_v=Mu(0,0,0)),k;else e.h>>19!=0&&(g=!0,e=I7(e),u=!0,A=!A);return w!=-1?Vfn(e,w,A,g,o):vDe(e,n)<0?(o&&(g?_v=I7(e):_v=Mu(e.l,e.m,e.h)),Mu(0,0,0)):_Tn(u?e:Mu(e.l,e.m,e.h),n,A,g,p,o)}i(UIe,"aD");function cde(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(w=e.e,A=n.e,w==0)return n;if(A==0)return e;if(g=e.d,k=n.d,g+k==2)return o=co(e.a[0],ll),u=co(n.a[0],ll),w==A?(M=Ho(o,u),ie=mi(M),ee=mi(Y2(M,32)),ee==0?new O1(w,ie):new X2(w,2,Se(Ee(pi,1),Pi,30,15,[ie,ee]))):(J0(),Oq(w<0?Kd(u,o):Kd(o,u),0)?yv(w<0?Kd(u,o):Kd(o,u)):j9(yv(zy(w<0?Kd(u,o):Kd(o,u)))));if(w==A)z=w,F=g>=k?vue(e.a,g,n.a,k):vue(n.a,k,e.a,g);else{if(p=g!=k?g>k?1:-1:QLe(e.a,n.a,g),p==0)return J0(),AM;p==1?(z=w,F=yue(e.a,g,n.a,k)):(z=A,F=yue(n.a,k,e.a,g))}return D=new X2(z,F.length,F),q9(D),D}i(cde,"Lib");function Z3n(e,n){var o,u,p,g,w,k,A;if(!(e.g>n.f||n.g>e.f)){for(o=0,u=0,w=e.w.a.ec().Jc();w.Ob();)p=y(w.Pb(),12),mhe(Ql(Se(Ee(to,1),Dt,8,0,[p.i.n,p.n,p.a])).b,n.g,n.f)&&++o;for(k=e.r.a.ec().Jc();k.Ob();)p=y(k.Pb(),12),mhe(Ql(Se(Ee(to,1),Dt,8,0,[p.i.n,p.n,p.a])).b,n.g,n.f)&&--o;for(A=n.w.a.ec().Jc();A.Ob();)p=y(A.Pb(),12),mhe(Ql(Se(Ee(to,1),Dt,8,0,[p.i.n,p.n,p.a])).b,e.g,e.f)&&++u;for(g=n.r.a.ec().Jc();g.Ob();)p=y(g.Pb(),12),mhe(Ql(Se(Ee(to,1),Dt,8,0,[p.i.n,p.n,p.a])).b,e.g,e.f)&&--u;o<u?new nX(e,n,u-o):u<o?new nX(n,e,o-u):(new nX(n,e,0),new nX(e,n,0))}}i(Z3n,"tRc");function e4n(e){var n,o,u,p,g,w,k,A,D,M;for(n=new ioe,o=new ioe,D=Cr(VG,(p=$I(e.b,Si),p?di(bg((!p.b&&(p.b=new df((Dr(),Zo),mc,p)),p.b),Zd)):null)),A=0;A<e.i;++A)k=y(e.g[A],179),Ge(k,103)?(w=y(k,19),(w.Bb&Tc)!=0?((w.Bb&Z0)==0||!D&&(g=$I(w,Si),(g?di(bg((!g.b&&(g.b=new df((Dr(),Zo),mc,g)),g.b),YJ)):null)==null))&&Zn(n,w):(M=rl(w),M&&(M.Bb&Tc)!=0||((w.Bb&Z0)==0||!D&&(u=$I(w,Si),(u?di(bg((!u.b&&(u.b=new df((Dr(),Zo),mc,u)),u.b),YJ)):null)==null))&&Zn(o,w))):(tl(),y(k,69).vk()&&(k.qk()||(Zn(n,k),Zn(o,k))));n3(n),n3(o),e.a=y(n.g,255),y(o.g,255)}i(e4n,"bZd");function qC(e,n,o){var u,p,g,w,k,A,D,M,F;if(ja(n,o)>=0)return o;switch(Ix(Rl(e,o))){case 2:{if(Cr("",Hy(e,o.ok()).ve())){if(A=VF(Rl(e,o)),k=d7(Rl(e,o)),M=G9e(e,n,A,k),M)return M;for(p=mIe(e,n),w=0,F=p.gc();w<F;++w)if(M=y(p.Xb(w),179),q9e(Sce(Rl(e,M)),A))return M}return null}case 4:{if(Cr("",Hy(e,o.ok()).ve())){for(u=o;u;u=Von(Rl(e,u)))if(D=VF(Rl(e,u)),k=d7(Rl(e,u)),M=j9e(e,n,D,k),M)return M;if(A=VF(Rl(e,o)),Cr(kw,A))return TDe(e,n);for(g=Hfe(e,n),w=0,F=g.gc();w<F;++w)if(M=y(g.Xb(w),179),q9e(Sce(Rl(e,M)),A))return M}return null}default:return null}}i(qC,"Rce");function t4n(e,n,o){var u,p,g,w,k,A,D,M;if(o.gc()==0)return!1;if(k=(tl(),y(n,69).vk()),g=k?o:new Fx(o.gc()),W1(e.e,n)){if(n.Qi())for(D=o.Jc();D.Ob();)A=D.Pb(),XK(e,n,A,Ge(n,103)&&(y(n,19).Bb&Jo)!=0)||(p=zm(n,A),g.Gc(p)||g.Ec(p));else if(!k)for(D=o.Jc();D.Ob();)A=D.Pb(),p=zm(n,A),g.Ec(p)}else{if(o.gc()>1)throw xe(new rn(qG));for(M=Ou(e.e.Ah(),n),u=y(e.g,122),w=0;w<e.i;++w)if(p=u[w],M.$l(p.Jk())){if(o.Gc(k?p:p.kd()))return!1;for(D=o.Jc();D.Ob();)A=D.Pb(),y(FC(e,w,k?y(A,75):zm(n,A)),75);return!0}k||(p=zm(n,o.Jc().Pb()),g.Ec(p))}return rs(e,g)}i(t4n,"eee");function r4n(e,n){var o,u,p,g,w,k,A,D,M;for(M=new ya,k=(D=new S1(e.c).a.vc().Jc(),new bk(D));k.a.Ob();)g=(p=y(k.a.Pb(),45),y(p.kd(),456)),g.b==0&&Ha(M,g,M.c.b,M.c);for(;M.b!=0;)for(g=y(M.b==0?null:(In(M.b!=0),dd(M,M.a.a)),456),g.a==null&&(g.a=0),u=new ye(g.d);u.a<u.c.c.length;)o=y(de(u),653),o.b.a==null?o.b.a=He(g.a)+o.a:n.o==(Yg(),Nw)?o.b.a=d.Math.min(He(o.b.a),He(g.a)+o.a):o.b.a=d.Math.max(He(o.b.a),He(g.a)+o.a),--o.b.b,o.b.b==0&&_i(M,o.b);for(w=(A=new S1(e.c).a.vc().Jc(),new bk(A));w.a.Ob();)g=(p=y(w.a.Pb(),45),y(p.kd(),456)),n.i[g.c.p]=g.a}i(r4n,"zNc");function n4n(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie;for(M=o+n.c.c.a,ee=new ye(n.j);ee.a<ee.c.c.length;){if(z=y(de(ee),12),p=Ql(Se(Ee(to,1),Dt,8,0,[z.i.n,z.n,z.a])),n.k==(Yr(),iu)&&(k=y(oe(z,(Tt(),aa)),12),p.a=Ql(Se(Ee(to,1),Dt,8,0,[k.i.n,k.n,k.a])).a,n.n.a=p.a),w=new Lt(0,p.b),z.j==(zt(),bn))w.a=M;else if(z.j==on)w.a=o;else continue;if(ie=d.Math.abs(p.a-w.a),!(ie<=u&&!pmn(n)))for(g=z.g.c.length+z.e.c.length>1,D=new Kg(z.b);Xl(D.a)||Xl(D.b);)A=y(Xl(D.a)?de(D.a):de(D.b),17),F=A.c==z?A.d:A.c,d.Math.abs(Ql(Se(Ee(to,1),Dt,8,0,[F.i.n,F.n,F.a])).b-w.b)>1&&Bwn(e,A,w,g,z)}}i(n4n,"VOc");function i4n(e){var n,o,u,p,g,w;if(p=new yo(e.e,0),u=new yo(e.a,0),e.d)for(o=0;o<e.b;o++)In(p.b<p.d.gc()),p.d.Xb(p.c=p.b++);else for(o=0;o<e.b-1;o++)In(p.b<p.d.gc()),p.d.Xb(p.c=p.b++),Wh(p);for(n=He((In(p.b<p.d.gc()),Xe(p.d.Xb(p.c=p.b++))));e.f-n>rge;){for(g=n,w=0;d.Math.abs(n-g)<rge;)++w,n=He((In(p.b<p.d.gc()),Xe(p.d.Xb(p.c=p.b++)))),In(u.b<u.d.gc()),u.d.Xb(u.c=u.b++);w<e.b&&(In(p.b>0),p.a.Xb(p.c=--p.b),mkn(e,e.b-w,g,u,p),In(p.b<p.d.gc()),p.d.Xb(p.c=p.b++)),In(u.b>0),u.a.Xb(u.c=--u.b)}if(!e.d)for(o=0;o<e.b-1;o++)In(p.b<p.d.gc()),p.d.Xb(p.c=p.b++),Wh(p);e.d=!0,e.c=!0}i(i4n,"eRc");function ga(){ga=U,BWe=(f6e(),kc).b,iar=y(je(wt(kc.b),0),38),Gw=y(je(wt(kc.b),1),38),nar=y(je(wt(kc.b),2),38),OE=kc.bb,y(je(wt(kc.bb),0),38),y(je(wt(kc.bb),1),38),PE=kc.fb,GN=y(je(wt(kc.fb),0),38),y(je(wt(kc.fb),1),38),y(je(wt(kc.fb),2),19),RT=kc.qb,mar=y(je(wt(kc.qb),0),38),y(je(wt(kc.qb),1),19),y(je(wt(kc.qb),2),19),cz=y(je(wt(kc.qb),3),38),uz=y(je(wt(kc.qb),4),38),zN=y(je(wt(kc.qb),6),38),jN=y(je(wt(kc.qb),5),19),aar=kc.j,sar=kc.k,oar=kc.q,lar=kc.w,car=kc.B,uar=kc.A,har=kc.C,far=kc.D,dar=kc._,par=kc.cb,gar=kc.hb}i(ga,"Ake");function a4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee;e.c=0,e.b=0,u=2*n.c.a.c.length+1;e:for(F=o.Jc();F.Ob();){if(M=y(F.Pb(),12),k=M.j==(zt(),sn)||M.j==Fn,ee=0,k){if(z=y(oe(M,(Tt(),Ih)),9),!z)continue;ee+=Axn(e,u,M,z)}else{for(D=new ye(M.g);D.a<D.c.c.length;)if(A=y(de(D),17),p=A.d,p.i.c==n.c){Nt(e.a,M);continue e}else ee+=e.g[p.p];for(w=new ye(M.e);w.a<w.c.c.length;)if(g=y(de(w),17),p=g.c,p.i.c==n.c){Nt(e.a,M);continue e}else ee-=e.g[p.p]}M.e.c.length+M.g.c.length>0?(e.f[M.p]=ee/(M.e.c.length+M.g.c.length),e.c=d.Math.min(e.c,e.f[M.p]),e.b=d.Math.max(e.b,e.f[M.p])):k&&(e.f[M.p]=ee)}}i(a4n,"SEc");function s4n(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}i(s4n,"Kle");function o4n(e,n,o){var u,p,g,w;for(o.Tg("Graph transformation ("+e.a+")",1),w=Z2(n.a),g=new ye(n.b);g.a<g.c.c.length;)p=y(de(g),25),Is(w,p.a);if(u=y(oe(n,(Bt(),dGe)),419),u==(g$(),ZQ))switch(y(oe(n,Uf),86).g){case 2:Y9(n,w);break;case 3:wI(n,w);break;case 4:e.a==(S7(),rj)?(wI(n,w),sue(n,w)):(sue(n,w),wI(n,w))}else if(e.a==(S7(),rj))switch(y(oe(n,Uf),86).g){case 2:Y9(n,w),sue(n,w);break;case 3:wI(n,w),Y9(n,w);break;case 4:Y9(n,w),wI(n,w)}else switch(y(oe(n,Uf),86).g){case 2:Y9(n,w),sue(n,w);break;case 3:Y9(n,w),wI(n,w);break;case 4:wI(n,w),Y9(n,w)}o.Ug()}i(o4n,"o2b");function l4n(e){var n,o,u,p,g,w,k,A;for(g=new ye(e.a.b);g.a<g.c.c.length;)p=y(de(g),82),p.b.c=p.g.c,p.b.d=p.g.d;for(A=new Lt(qa,qa),n=new Lt(Ys,Ys),u=new ye(e.a.b);u.a<u.c.c.length;)o=y(de(u),82),A.a=d.Math.min(A.a,o.g.c),A.b=d.Math.min(A.b,o.g.d),n.a=d.Math.max(n.a,o.g.c+o.g.b),n.b=d.Math.max(n.b,o.g.d+o.g.a);for(k=AY(e.c).a.nc();k.Ob();)w=y(k.Pb(),49),o=y(w.b,82),A.a=d.Math.min(A.a,o.g.c),A.b=d.Math.min(A.b,o.g.d),n.a=d.Math.max(n.a,o.g.c+o.g.b),n.b=d.Math.max(n.b,o.g.d+o.g.a);e.d=Xq(new Lt(A.a,A.b)),e.e=qs(new Lt(n.a,n.b),A),e.a.a.c.length=0,e.a.b.c.length=0}i(l4n,"eRb");function c4n(e){eI();var n,o,u,p,g,w,k;for(k=new J3t,o=new ye(e);o.a<o.c.c.length;)n=y(de(o),146),(!k.b||n.c>=k.b.c)&&(k.b=n),(!k.c||n.c<=k.c.c)&&(k.d=k.c,k.c=n),(!k.e||n.d>=k.e.d)&&(k.e=n),(!k.f||n.d<=k.f.d)&&(k.f=n);return u=new hK((D7(),pT)),QF(e,HXt,new oc(Se(Ee(ej,1),Fr,377,0,[u]))),w=new hK(I3),QF(e,WXt,new oc(Se(Ee(ej,1),Fr,377,0,[w]))),p=new hK(D3),QF(e,VXt,new oc(Se(Ee(ej,1),Fr,377,0,[p]))),g=new hK(oE),QF(e,UXt,new oc(Se(Ee(ej,1),Fr,377,0,[g]))),Ofe(u.c,pT),Ofe(p.c,D3),Ofe(g.c,oE),Ofe(w.c,I3),k.a.c.length=0,Is(k.a,u.c),Is(k.a,bf(p.c)),Is(k.a,g.c),Is(k.a,bf(w.c)),k}i(c4n,"pTb");function u4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;for(n.Tg(tWt,1),ee=He(Xe(St(e,(Wm(),J3)))),w=He(Xe(St(e,(n0(),yN)))),k=y(St(e,mN),104),xLe((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a)),M=Pjt((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a),ee,w),!e.a&&(e.a=new xt(Ti,e,10,11)),D=new ye(M);D.a<D.c.c.length;)for(A=y(de(D),186),p=new ye(A.a);p.a<p.c.c.length;)u=y(de(p),173),z=new z7e(u.s,u.t,He(Xe(St(e,yN)))),ALe(z,u),Nt(A.d,z);F=kPt(M,w),ie=d.Math.max(F.a,He(Xe(St(e,gN)))-(k.b+k.c)),g=d.Math.max(F.b,He(Xe(St(e,KZ)))-(k.d+k.a)),o=g-F.b,pa(e,pN,o),pa(e,H6,ie),pa(e,mL,g+o),pa(e,JZ,M),n.Ug()}i(u4n,"i6c");function h4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(D=new Om,M=new Om,ie=new Om,ue=new Om,A=He(Xe(oe(n,(Bt(),Mw)))),g=He(Xe(oe(n,Xp))),k=new ye(o);k.a<k.c.c.length;)if(w=y(de(k),9),F=y(oe(w,(Tt(),gc)),64),F==(zt(),sn))for(M.a.yc(w,M),p=new nn(cn(os(w).a.Jc(),new B));Nn(p);)u=y(vn(p),17),ys(D,u.c.i);else if(F==Fn)for(ue.a.yc(w,ue),p=new nn(cn(os(w).a.Jc(),new B));Nn(p);)u=y(vn(p),17),ys(ie,u.c.i);D.a.gc()!=0&&(z=new Dce(2,g),ee=qIe(z,n,D,M,-A-n.c.b),ee>0&&(e.a=A+(ee-1)*g,n.c.b+=e.a,n.f.b+=e.a)),ie.a.gc()!=0&&(z=new Dce(1,g),ee=qIe(z,n,ie,ue,n.f.b+A-n.c.b),ee>0&&(n.f.b+=A+(ee-1)*g))}i(h4n,"m3b");function Ujt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;for(M=He(Xe(oe(e,(Bt(),Iw)))),u=He(Xe(oe(e,UGe))),z=new toe,dt(z,Iw,M+u),D=n,Ce=D.d,ue=D.c.i,Me=D.d.i,fe=cAe(ue.c),$e=cAe(Me.c),p=new Pt,F=fe;F<=$e;F++)k=new e0(e),C1(k,(Yr(),bs)),dt(k,(Tt(),aa),D),dt(k,Qa,(uo(),zc)),dt(k,SZ,z),ee=y(Wt(e.b,F),25),F==fe?bv(k,ee.a.c.length-o,ee):Us(k,ee),Ve=He(Xe(oe(D,ab))),Ve<0&&(Ve=0,dt(D,ab,Ve)),k.o.b=Ve,ie=d.Math.floor(Ve/2),w=new Fc,Bs(w,(zt(),on)),Kl(w,k),w.n.b=ie,A=new Fc,Bs(A,bn),Kl(A,k),A.n.b=ie,mo(D,w),g=new Nx,wc(g,D),dt(g,Dl,null),Bo(g,A),mo(g,Ce),ymn(k,D,g),tn(p.c,g),D=g;return p}i(Ujt,"Smc");function f4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;if(ue=n.b.c.length,!(ue<3)){for(ee=tt(pi,Pi,30,ue,15,1),F=0,M=new ye(n.b);M.a<M.c.c.length;)D=y(de(M),25),ee[F++]=D.a.c.length;for(z=new yo(n.b,2),u=1;u<ue-1;u++)for(o=(In(z.b<z.d.gc()),y(z.d.Xb(z.c=z.b++),25)),ie=new ye(o.a),g=0,k=0,A=0;A<ee[u+1];A++)if($e=y(de(ie),9),A==ee[u+1]-1||t9e(e,$e,u+1,u)){for(w=ee[u]-1,t9e(e,$e,u+1,u)&&(w=e.c.e[y(y(y(Wt(e.c.b,$e.p),16).Xb(0),49).a,9).p]);k<=A;){if(Me=y(Wt(o.a,k),9),!t9e(e,Me,u+1,u))for(Ce=y(Wt(e.c.b,Me.p),16).Jc();Ce.Ob();)fe=y(Ce.Pb(),49),p=e.c.e[y(fe.a,9).p],(p<g||p>w)&&ys(e.b,y(fe.b,17));++k}g=w}}}i(f4n,"JNc");function ude(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(A=y(Ky(e,(zt(),on)).Jc().Pb(),12).e,ee=y(Ky(e,bn).Jc().Pb(),12).g,k=A.c.length,$e=Xg(y(Wt(e.j,0),12));k-- >0;){for(ue=(_r(0,A.c.length),y(A.c[0],17)),p=(_r(0,ee.c.length),y(ee.c[0],17)),Me=p.d.e,g=Jl(Me,p,0),vln(ue,p.d,g),Bo(p,null),mo(p,null),ie=ue.a,n&&_i(ie,new Vo($e)),u=ei(p.a,0);u.b!=u.d.c;)o=y(Qn(u),8),_i(ie,new Vo(o));for(Ce=ue.b,z=new ye(p.b);z.a<z.c.c.length;)F=y(de(z),70),tn(Ce.c,F);if(fe=y(oe(ue,(Bt(),Dl)),79),w=y(oe(p,Dl),79),w)for(fe||(fe=new Vh,dt(ue,Dl,fe)),M=ei(w,0);M.b!=M.d.c;)D=y(Qn(M),8),_i(fe,new Vo(D))}}i(ude,"v8b");function d4n(e,n){var o,u,p,g,w,k,A,D;for(n.Tg("Sort By Input Model "+oe(e,(Bt(),t1)),1),g=0,p=new ye(e.b);p.a<p.c.c.length;){for(u=y(de(p),25),u.p=g,D=g==0?0:g-1,A=y(Wt(e.b,D),25),o=new _Le(e,A,y(oe(e,t1),269),y(oe(e,Fme),352),(y(oe(e,qM),329),!0)),c$t(u.a,o),k=new ye(u.a);k.a<k.c.c.length;)w=y(de(k),9),Qe(oe(w,Qa))!==Qe((uo(),Bw))&&Qe(oe(w,Qa))!==Qe(zc)&&(Ir(),zs(w.j,new NNt(e,A,y(oe(e,t1),269),CPt(w),Kt(Xt(oe(e,$me))))),n.ah("Node "+w+" ports: "+w.j));o=new _Le(e,A,y(oe(e,t1),269),y(oe(e,Fme),352),(y(oe(e,qM),329),!1)),c$t(u.a,o),n.ah("Layer "+g+": "+u),++g}n.Ug()}i(d4n,"xcc");function VIe(e,n){var o;if(n==null||Cr(n,Qu)||n.length==0&&e.k!=(dw(),Y6))return null;switch(e.k.g){case 1:return sK(n,MR)?(qr(),UR):sK(n,wge)?(qr(),Dv):null;case 2:try{return Et(Ff(n,bo,Ui))}catch(u){if(u=hs(u),Ge(u,131))return null;throw xe(u)}case 4:try{return u3(n)}catch(u){if(u=hs(u),Ge(u,131))return null;throw xe(u)}case 3:return n;case 5:return KMt(e),wFt(e,n);case 6:return KMt(e),m2n(e,e.a,n);case 7:try{return o=kvn(e),o.ag(n),o}catch(u){if(u=hs(u),Ge(u,32))return null;throw xe(u)}default:throw xe(new El("Invalid type set for this layout option."))}}i(VIe,"wed");function WIe(e){var n;switch(e.d){case 1:{if(e.Qj())return e.o!=-2;break}case 2:{if(e.Qj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(n=e.Pj(),e.p){case 0:return n!=null&&Kt(Xt(n))!=k9(e.k,0);case 1:return n!=null&&y(n,221).a!=mi(e.k)<<24>>24;case 2:return n!=null&&y(n,180).a!=(mi(e.k)&As);case 6:return n!=null&&k9(y(n,190).a,e.k);case 5:return n!=null&&y(n,15).a!=mi(e.k);case 7:return n!=null&&y(n,191).a!=mi(e.k)<<16>>16;case 3:return n!=null&&He(Xe(n))!=e.j;case 4:return n!=null&&y(n,164).a!=e.j;default:return n==null?e.n!=null:!ta(n,e.n)}}i(WIe,"$Id");function uG(e,n,o){var u,p,g,w;return e.ml()&&e.ll()&&(w=Tce(e,y(o,57)),Qe(w)!==Qe(o))?(e.vj(n),e.Bj(n,ODt(e,n,w)),e.$k()&&(g=(p=y(o,52),e.kl()?e.il()?p.Qh(e.b,rl(y(Nr(qu(e.b),e.Jj()),19)).n,y(Nr(qu(e.b),e.Jj()).Fk(),29).ik(),null):p.Qh(e.b,ja(p.Ah(),rl(y(Nr(qu(e.b),e.Jj()),19))),null,null):p.Qh(e.b,-1-e.Jj(),null,null)),!y(w,52).Mh()&&(g=(u=y(w,52),e.kl()?e.il()?u.Oh(e.b,rl(y(Nr(qu(e.b),e.Jj()),19)).n,y(Nr(qu(e.b),e.Jj()).Fk(),29).ik(),g):u.Oh(e.b,ja(u.Ah(),rl(y(Nr(qu(e.b),e.Jj()),19))),null,g):u.Oh(e.b,-1-e.Jj(),null,g))),g&&g.mj()),hf(e.b)&&e.Hj(e.Gj(9,o,w,n,!1)),w):o}i(uG,"$Zd");function Vjt(e){var n,o,u,p,g,w,k,A,D,M;for(u=new Pt,w=new ye(e.e.a);w.a<w.c.c.length;){for(p=y(de(w),124),M=0,p.k.c.length=0,o=new ye(OC(p));o.a<o.c.c.length;)n=y(de(o),217),n.f&&(Nt(p.k,n),++M);M==1&&tn(u.c,p)}for(g=new ye(u);g.a<g.c.c.length;)for(p=y(de(g),124);p.k.c.length==1;){for(D=y(de(new ye(p.k)),217),e.b[D.c]=D.g,k=D.d,A=D.e,o=new ye(OC(p));o.a<o.c.c.length;)n=y(de(o),217),ta(n,D)||(n.f?k==n.d||A==n.e?e.b[D.c]-=e.b[n.c]-n.g:e.b[D.c]+=e.b[n.c]-n.g:p==k?n.d==p?e.b[D.c]+=n.g:e.b[D.c]-=n.g:n.d==p?e.b[D.c]-=n.g:e.b[D.c]+=n.g);Yu(k.k,D),Yu(A.k,D),k==p?p=D.e:p=D.d}}i(Vjt,"NGb");function Wjt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee;if(o=y(yl(e.b,n),127),A=y(y(oa(e.r,n),22),83),A.dc()){o.n.b=0,o.n.c=0;return}for(D=e.u.Gc((_h(),ry)),w=0,k=A.Jc(),M=null,F=0,z=0;k.Ob();)u=y(k.Pb(),115),p=He(Xe(u.b.mf((Yq(),TQ)))),g=u.b.Kf().a,e.A.Gc((vf(),Fw))&&wGt(e,n),M?(ee=z+M.d.c+e.w+u.d.b,w=d.Math.max(w,(Wg(),$p(a0),d.Math.abs(F-p)<=a0||F==p||isNaN(F)&&isNaN(p)?0:ee/(p-F)))):e.C&&e.C.b>0&&(w=d.Math.max(w,FIt(e.C.b+u.d.b,p))),M=u,F=p,z=g;e.C&&e.C.c>0&&(ee=z+e.C.c,D&&(ee+=M.d.c),w=d.Math.max(w,(Wg(),$p(a0),d.Math.abs(F-1)<=a0||F==1||isNaN(F)&&isNaN(1)?0:ee/(1-F)))),o.n.b=0,o.a.a=w}i(Wjt,"$Jb");function Hjt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee;if(o=y(yl(e.b,n),127),A=y(y(oa(e.r,n),22),83),A.dc()){o.n.d=0,o.n.a=0;return}for(D=e.u.Gc((_h(),ry)),w=0,e.A.Gc((vf(),Fw))&&xGt(e,n),k=A.Jc(),M=null,z=0,F=0;k.Ob();)u=y(k.Pb(),115),g=He(Xe(u.b.mf((Yq(),TQ)))),p=u.b.Kf().b,M?(ee=F+M.d.a+e.w+u.d.d,w=d.Math.max(w,(Wg(),$p(a0),d.Math.abs(z-g)<=a0||z==g||isNaN(z)&&isNaN(g)?0:ee/(g-z)))):e.C&&e.C.d>0&&(w=d.Math.max(w,FIt(e.C.d+u.d.d,g))),M=u,z=g,F=p;e.C&&e.C.a>0&&(ee=F+e.C.a,D&&(ee+=M.d.a),w=d.Math.max(w,(Wg(),$p(a0),d.Math.abs(z-1)<=a0||z==1||isNaN(z)&&isNaN(1)?0:ee/(1-z)))),o.n.d=0,o.a.b=w}i(Hjt,"hLb");function qjt(e,n,o){var u,p,g,w,k,A;for(this.g=e,k=n.d.length,A=o.d.length,this.d=tt(e1,Zy,9,k+A,0,1),w=0;w<k;w++)this.d[w]=n.d[w];for(g=0;g<A;g++)this.d[k+g]=o.d[g];if(n.e){if(this.e=BF(n.e),this.e.Kc(o),o.e)for(p=o.e.Jc();p.Ob();)u=y(p.Pb(),239),u!=n&&(this.e.Gc(u)?--u.c:this.e.Ec(u))}else o.e&&(this.e=BF(o.e),this.e.Kc(n));this.f=n.f+o.f,this.a=n.a+o.a,this.a>0?Pue(this,this.f/this.a):Hg(n.g,n.d[0]).a!=null&&Hg(o.g,o.d[0]).a!=null?Pue(this,(He(Hg(n.g,n.d[0]).a)+He(Hg(o.g,o.d[0]).a))/2):Hg(n.g,n.d[0]).a!=null?Pue(this,Hg(n.g,n.d[0]).a):Hg(o.g,o.d[0]).a!=null&&Pue(this,Hg(o.g,o.d[0]).a)}i(qjt,"TFc");function p4n(e,n,o,u,p,g,w,k){var A,D,M,F,z,ee,ie,ue,fe,Ce;if(ie=!1,D=Y9e(o.q,n.f+n.b-o.q.f),ee=u.f>n.b&&k,Ce=p-(o.q.e+D-w),F=(A=UI(u,Ce,!1),A.a),ee&&F>u.f)return!1;if(ee){for(z=0,fe=new ye(n.d);fe.a<fe.c.c.length;)ue=y(de(fe),320),z+=Y9e(ue,u.f)+w;Ce=p-z}return Ce<u.g||(M=g==e.c.length-1&&Ce>=(_r(g,e.c.length),y(e.c[g],186)).e,!ee&&F>n.b&&!M)?!1:((M||ee||F<=n.b)&&(M&&F>n.b?(o.d=F,s$(o,RBt(o,F))):(UPt(o.q,D),o.c=!0),s$(u,p-(o.s+o.r)),F$(u,o.q.e+o.q.d,n.f),CX(n,u),e.c.length>g&&(z$((_r(g,e.c.length),y(e.c[g],186)),u),(_r(g,e.c.length),y(e.c[g],186)).a.c.length==0&&Gy(e,g)),ie=!0),ie)}i(p4n,"G5c");function g4n(e,n){var o,u,p,g,w,k,A,D,M,F;for(e.a=new u7t(Gfn(SN)),u=new ye(n.a);u.a<u.c.c.length;){for(o=y(de(u),840),k=new Phe(Se(Ee(N0e,1),Fr,82,0,[])),Nt(e.a.a,k),D=new ye(o.d);D.a<D.c.c.length;)A=y(de(D),119),M=new BAe(e,A),YIe(M,y(oe(o.c,(Tt(),J1)),22)),Kc(e.g,o)||(Oi(e.g,o,new Lt(A.c,A.d)),Oi(e.f,o,M)),Nt(e.a.b,M),aue(k,M);for(w=new ye(o.b);w.a<w.c.c.length;)g=y(de(w),592),M=new BAe(e,g.Bf()),Oi(e.b,g,new Ko(k,M)),YIe(M,y(oe(o.c,(Tt(),J1)),22)),g.zf()&&(F=new X_e(e,g.zf(),1),YIe(F,y(oe(o.c,J1),22)),p=new Phe(Se(Ee(N0e,1),Fr,82,0,[])),aue(p,F),Sr(e.c,g.yf(),new Ko(k,F)))}return e.a}i(g4n,"hRb");function m4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee;for(o.Tg("Breadth-first cycle removal",1),e.c=n,F=n.a,e.a=new ya,e.e=new gs,e.d=new gs,e.f=tt(ah,vg,30,F.c.length,16,1),e.b=new Pt,k=0,M=new ye(F);M.a<M.c.c.length;)D=y(de(M),9),D.p=k,qk(os(D))&&ys(e.e,D),qk(Ra(D))&&ys(e.d,D),++k;for(ee=e.e.a.ec().Jc();ee.Ob();)z=y(ee.Pb(),9),_i(e.a,z),v7e(e);for(v7e(e),u=!0;u;){for(u=!1,w=0;w<F.c.length;w++)if(!e.f[w]){A=(_r(w,F.c.length),y(F.c[w],9)),_i(e.a,A),u=!0;break}v7e(e)}for(g=new ye(e.b);g.a<g.c.c.length;)p=y(de(g),17),Jy(p,!0),dt(n,(Tt(),P6),(qr(),!0));e.e=null,e.f=null,e.a=null,e.b=null,o.Ug()}i(m4n,"CBc");function y4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(w=o.Jk(),Ge(w,103)&&(y(w,19).Bb&Jo)!=0&&(z=y(o.kd(),52),ue=gv(e.e,z),ue!=z)){if(M=zm(w,ue),L9(e,n,pfe(e,n,M)),F=null,hf(e.e)&&(u=qC((yh(),Ro),e.e.Ah(),w),u!=Nr(e.e.Ah(),e.c))){for(fe=Ou(e.e.Ah(),w),k=0,g=y(e.g,122),A=0;A<n;++A)p=g[A],fe.$l(p.Jk())&&++k;F=new hue(e.e,9,u,z,ue,k,!1),F.lj(new B1(e.e,9,e.c,o,M,n,!1))}return ie=y(w,19),ee=rl(ie),ee?(F=z.Qh(e.e,ja(z.Ah(),ee),null,F),F=y(ue,52).Oh(e.e,ja(ue.Ah(),ee),null,F)):(ie.Bb&Tc)!=0&&(D=-1-ja(e.e.Ah(),ie),F=z.Qh(e.e,D,null,null),!y(ue,52).Mh()&&(F=y(ue,52).Oh(e.e,D,null,F))),F&&F.mj(),M}return o}i(y4n,"Mee");function Yjt(e){var n;this.a=e,n=(Yr(),Se(Ee(G0e,1),At,249,0,[Ya,bs,ks,iu,_c,u0,tj,MM])).length,this.b=Fk(wye,[Dt,cOe],[591,147],0,[n,n],2),this.c=Fk(wye,[Dt,cOe],[591,147],0,[n,n],2),Hce(this,Ya,(Bt(),Mw),Y3),oI(this,Ya,bs,Iw,Fv),WF(this,Ya,iu,Iw),WF(this,Ya,ks,Iw),oI(this,Ya,_c,Mw,Y3),Hce(this,bs,Xp,H3),WF(this,bs,iu,Xp),WF(this,bs,ks,Xp),oI(this,bs,_c,Iw,Fv),k5t(this,iu,Xp),WF(this,iu,ks,Xp),WF(this,iu,_c,Qme),k5t(this,ks,QM),oI(this,ks,_c,uL,cL),Hce(this,_c,Xp,Xp),Hce(this,u0,Xp,H3),oI(this,u0,Ya,Iw,Fv),oI(this,u0,_c,Iw,Fv),oI(this,u0,bs,Iw,Fv)}i(Yjt,"XAc");function b4n(e,n,o,u,p,g){var w;if(!(n==null||!Ahe(n,mWe,yWe)))throw xe(new rn("invalid scheme: "+n));if(!e&&!(o!=null&&U0(o,Ku(35))==-1&&o.length>0&&(un(0,o.length),o.charCodeAt(0)!=47)))throw xe(new rn("invalid opaquePart: "+o));if(e&&!(n!=null&&i9(Ree,n.toLowerCase()))&&!(o==null||!Ahe(o,BN,FN)))throw xe(new rn(OHt+o));if(e&&n!=null&&i9(Ree,n.toLowerCase())&&!d1n(o))throw xe(new rn(OHt+o));if(!kpn(u))throw xe(new rn("invalid device: "+u));if(!ydn(p))throw w=p==null?"invalid segments: null":"invalid segment: "+hdn(p),xe(new rn(w));if(!(g==null||U0(g,Ku(35))==-1))throw xe(new rn("invalid query: "+g))}i(b4n,"VQd");function Xjt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;if(z=new Vo(e.o),Ce=n.a/z.a,k=n.b/z.b,ue=n.a-z.a,g=n.b-z.b,o)for(p=Qe(oe(e,(Bt(),Qa)))===Qe((uo(),zc)),ie=new ye(e.j);ie.a<ie.c.c.length;)switch(ee=y(de(ie),12),ee.j.g){case 1:p||(ee.n.a*=Ce);break;case 2:ee.n.a+=ue,p||(ee.n.b*=k);break;case 3:p||(ee.n.a*=Ce),ee.n.b+=g;break;case 4:p||(ee.n.b*=k)}for(D=new ye(e.b);D.a<D.c.c.length;)A=y(de(D),70),M=A.n.a+A.o.a/2,F=A.n.b+A.o.b/2,fe=M/z.a,w=F/z.b,fe+w>=1&&(fe-w>0&&F>=0?(A.n.a+=ue,A.n.b+=g*w):fe-w<0&&M>=0&&(A.n.a+=ue*fe,A.n.b+=g));e.o.a=n.a,e.o.b=n.b,dt(e,(Bt(),Bv),(vf(),u=y(ug(MN),10),new ud(u,y(Np(u,u.length),10),0)))}i(Xjt,"YXb");function v4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;if(o.Tg("Network simplex layering",1),e.b=n,Ce=y(oe(n,(Bt(),ZM)),15).a*4,fe=e.b.a,fe.c.length<1){o.Ug();return}for(g=fTn(e,fe),ue=null,p=ei(g,0);p.b!=p.d.c;){for(u=y(Qn(p),16),k=Ce*Po(d.Math.sqrt(u.gc())),w=STn(u),qfe(a6e(CQr(s6e(rce(w),k),ue),!0),o.dh(1)),z=e.b.b,ie=new ye(w.a);ie.a<ie.c.c.length;){for(ee=y(de(ie),124);z.c.length<=ee.e;)W2(z,z.c.length,new Nc(e.b));M=y(ee.f,9),Us(M,y(Wt(z,ee.e),25))}if(g.b>1)for(ue=tt(pi,Pi,30,e.b.b.c.length,15,1),F=0,D=new ye(e.b.b);D.a<D.c.c.length;)A=y(de(D),25),ue[F++]=A.a.c.length}fe.c.length=0,e.a=null,e.b=null,e.c=null,o.Ug()}i(v4n,"oEc");function w4n(e,n){var o,u,p,g,w,k,A,D,M,F;for(M=new Pt,F=new vC,g=null,p=0,u=0;u<n.length;++u)switch(o=n[u],tdn(g,o)&&(p=R_e(e,F,M,PZ,p)),ea(o,(Tt(),bT))&&(g=y(oe(o,bT),9)),o.k.g){case 0:for(A=fAe(M5(Zl(o,(zt(),sn)),new VSe));Vue(A);)w=y(VRe(A),12),e.d[w.p]=p++,tn(M.c,w);for(p=R_e(e,F,M,PZ,p),D=fAe(M5(Zl(o,Fn),new VSe));Vue(D);)w=y(VRe(D),12),e.d[w.p]=p++,tn(M.c,w);break;case 3:Zl(o,Eje).dc()||(w=y(Zl(o,Eje).Xb(0),12),e.d[w.p]=p++,tn(M.c,w)),Zl(o,PZ).dc()||ov(F,o);break;case 1:for(k=Zl(o,(zt(),on)).Jc();k.Ob();)w=y(k.Pb(),12),e.d[w.p]=p++,tn(M.c,w);Zl(o,bn).Ic(new QEt(F,o))}return R_e(e,F,M,PZ,p),M}i(w4n,"cJc");function HIe(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(n==null||n.length==0)return null;if(g=y(Jc(e.f,n),21),!g){for(p=(ee=new S1(e.d).a.vc().Jc(),new bk(ee));p.a.Ob();)if(o=(w=y(p.a.Pb(),45),y(w.kd(),21)),k=o.f,ie=n.length,Cr(k.substr(k.length-ie,ie),n)&&(n.length==k.length||Do(k,k.length-n.length-1)==46)){if(g)return null;g=o}if(!g){for(u=(z=new S1(e.d).a.vc().Jc(),new bk(z));u.a.Ob();)if(o=(w=y(u.a.Pb(),45),y(w.kd(),21)),F=o.g,F!=null){for(A=F,D=0,M=A.length;D<M;++D)if(k=A[D],ie=n.length,Cr(k.substr(k.length-ie,ie),n)&&(n.length==k.length||Do(k,k.length-n.length-1)==46)){if(g)return null;g=o}}}g&&Al(e.f,n,g)}return g}i(HIe,"sdd");function x4n(e,n){var o,u,p,g,w;for(o=new sC,w=!1,g=0;g<n.length;g++){if(u=(un(g,n.length),n.charCodeAt(g)),u==32){for(lK(e,o,0),o.a+=" ",lK(e,o,0);g+1<n.length&&(un(g+1,n.length),n.charCodeAt(g+1)==32);)++g;continue}if(w){u==39?g+1<n.length&&(un(g+1,n.length),n.charCodeAt(g+1)==39)?(o.a+=String.fromCharCode(u),++g):w=!1:o.a+=String.fromCharCode(u);continue}if(U0("GyMLdkHmsSEcDahKzZv",Ku(u))>0){lK(e,o,0),o.a+=String.fromCharCode(u),p=ngn(n,g),lK(e,o,p),g+=p-1;continue}u==39?g+1<n.length&&(un(g+1,n.length),n.charCodeAt(g+1)==39)?(o.a+="'",++g):w=!0:o.a+=String.fromCharCode(u)}lK(e,o,0),M1n(e)}i(x4n,"AA");function T4n(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for($e=jAt(e),A=new Pt,g=e.c.length,D=g-1,M=g+1;$e.a.gc()!=0;){for(;o.b!=0;)Ce=(In(o.b!=0),y(dd(o,o.a.a),116)),$e.a.Ac(Ce)!=null,Ce.g=D--,IIe(Ce,n,o,u);for(;n.b!=0;)Me=(In(n.b!=0),y(dd(n,n.a.a),116)),$e.a.Ac(Me)!=null,Me.g=M++,IIe(Me,n,o,u);for(k=bo,ue=$e.a.ec().Jc();ue.Ob();){if(ie=y(ue.Pb(),116),!u&&ie.b>0&&ie.a<=0){A.c.length=0,tn(A.c,ie);break}ee=ie.i-ie.d,ee>=k&&(ee>k&&(A.c.length=0,k=ee),tn(A.c,ie))}A.c.length!=0&&(w=y(Wt(A,pK(p,A.c.length)),116),$e.a.Ac(w)!=null,w.g=M++,IIe(w,n,o,u),A.c.length=0)}for(fe=e.c.length+1,z=new ye(e);z.a<z.c.c.length;)F=y(de(z),116),F.g<g&&(F.g=F.g+fe)}i(T4n,"cPc");function k4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(D=Zpe,A=eE,Ce=new Pt,ie=new ye(n);ie.a<ie.c.c.length;){for(ee=y(de(ie),9),p=new Pt,k=new nn(cn(os(ee).a.Jc(),new B));Nn(k);)g=y(vn(k),17),fe=g.d.i,ue=g.c.i,fe.c.p==o&&tn(p.c,fe),ue.c.p==o&&tn(p.c,ue);for(w=new nn(cn(Ra(ee).a.Jc(),new B));Nn(w);)g=y(vn(w),17),fe=g.d.i,ue=g.c.i,fe.c.p==o&&tn(p.c,fe),ue.c.p==o&&tn(p.c,ue);p.c.length==0?tn(Ce.c,ee):(Ir(),zs(p,e.b),z=He(Xe(oe(y(Wt(p,p.c.length/2|0),9),(Tt(),vE)))),dt(ee,vE,z),D=d.Math.min(D,z),A=d.Math.max(A,z))}for(u=(A+D)/2,F=new ye(Ce);F.a<F.c.c.length;)M=y(de(F),9),dt(M,(Tt(),vE),u)}i(k4n,"MHc");function C4n(e,n){var o,u,p,g,w,k,A,D,M,F,z;for(p=new ye(e.a.b);p.a<p.c.c.length;)for(o=y(de(p),25),A=new ye(o.a);A.a<A.c.c.length;)k=y(de(A),9),n.j[k.p]=k,n.i[k.p]=n.o==(Yg(),h0)?Ys:qa;for(Sc(e.c),w=e.a.b,n.c==(W0(),ob)&&(w=bf(w)),fln(e.e,n,e.b),cF(n.p,null),g=w.Jc();g.Ob();)for(o=y(g.Pb(),25),D=o.a,n.o==(Yg(),h0)&&(D=bf(D)),z=D.Jc();z.Ob();)F=y(z.Pb(),9),n.g[F.p]==F&&Nzt(e,F,n);for(r4n(e,n),u=w.Jc();u.Ob();)for(o=y(u.Pb(),25),z=new ye(o.a);z.a<z.c.c.length;)F=y(de(z),9),n.p[F.p]=n.p[n.g[F.p].p],F==n.g[F.p]&&(M=He(n.i[n.j[F.p].p]),(n.o==(Yg(),h0)&&M>Ys||n.o==Nw&&M<qa)&&(n.p[F.p]=He(n.p[F.p])+M));e.e.wg()}i(C4n,"xNc");function E4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(Kt(Xt(oe(o,(Bt(),j3)))))for(k=new ye(o.j);k.a<k.c.c.length;)for(w=y(de(k),12),z=q0(w.g),D=z,M=0,F=D.length;M<F;++M)A=D[M],g=A.d.i==o,p=g&&Kt(Xt(oe(A,Lw))),p&&(ie=A.c,ee=y(Jr(e.b,ie),9),ee||(ee=hG(ie,(uo(),m0),ie.j,-1,null,null,ie.o,y(oe(n,Uf),86),n),dt(ee,(Tt(),aa),ie),Oi(e.b,ie,ee),Nt(n.a,ee)),fe=A.d,ue=y(Jr(e.b,fe),9),ue||(ue=hG(fe,(uo(),m0),fe.j,1,null,null,fe.o,y(oe(n,Uf),86),n),dt(ue,(Tt(),aa),fe),Oi(e.b,fe,ue),Nt(n.a,ue)),u=gue(A),Bo(u,y(Wt(ee.j,0),12)),mo(u,y(Wt(ue.j,0),12)),Sr(e.a,A,new Zq(u,n,(sl(),Eu))),y(oe(n,(Tt(),au)),22).Ec((ol(),Cd)))}i(E4n,"eWb");function S4n(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(g=new Pt,D=new ye(u);D.a<D.c.c.length;)if(k=y(de(D),444),w=null,k.f==(sl(),Eu))for(ie=new ye(k.e);ie.a<ie.c.c.length;)ee=y(de(ie),17),fe=ee.d.i,Zs(fe)==n?G9t(e,n,k,ee,k.b,ee.d):!o||A7(fe,o)?pyn(e,n,k,u,ee):(z=sde(e,n,o,ee,k.b,Eu,w),z!=w&&tn(g.c,z),z.c&&(w=z));else for(F=new ye(k.e);F.a<F.c.c.length;)if(M=y(de(F),17),ue=M.c.i,Zs(ue)==n)G9t(e,n,k,M,M.c,k.b);else{if(!o||A7(ue,o))continue;z=sde(e,n,o,M,k.b,Mh,w),z!=w&&tn(g.c,z),z.c&&(w=z)}for(A=new ye(g);A.a<A.c.c.length;)k=y(de(A),444),Jl(n.a,k.a,0)!=-1||Nt(n.a,k.a),k.c&&tn(p.c,k)}i(S4n,"dWb");function A4n(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;for(p=y(oe(e,(Ca(),hN)),26),D=Ui,M=Ui,k=bo,A=bo,$e=ei(e.b,0);$e.b!=$e.d.c;)Ce=y(Qn($e),40),ee=Ce.e,ie=Ce.f,D=d.Math.min(D,ee.a-ie.a/2),M=d.Math.min(M,ee.b-ie.b/2),k=d.Math.max(k,ee.a+ie.a/2),A=d.Math.max(A,ee.b+ie.b/2);for(z=y(St(p,(uc(),Zje)),104),Me=ei(e.b,0);Me.b!=Me.d.c;)Ce=y(Qn(Me),40),F=oe(Ce,hN),Ge(F,206)&&(g=y(F,26),ld(g,Ce.e.a,Ce.e.b),eG(g,Ce));for(fe=ei(e.a,0);fe.b!=fe.d.c;)ue=y(Qn(fe),65),u=y(oe(ue,hN),85),u&&(n=ue.a,o=zK(u),MIe(n,o));Ve=k-D+(z.b+z.c),w=A-M+(z.d+z.a),Kt(Xt(St(p,(Ri(),e4))))||eT(p,Ve,w,!1,!1),pa(p,Z3,Ve-(z.b+z.c)),pa(p,Q3,w-(z.d+z.a))}i(A4n,"xSc");function Kjt(e){var n,o,u,p,g,w,k;for(n=0,g=new ye(e.b.a);g.a<g.c.c.length;)u=y(de(g),194),u.b=0,u.c=0;for(EBt(e,0),Lhe(e,e.g),GK(e.c),e6e(e.c),o=(Ss(),Il),sG(ple(YC(sG(ple(YC(sG(YC(e.c,o)),DNt(o)))),o))),YC(e.c,Il),The(e,e.g),uBt(e,0),Djt(e,0),l$t(e,1),EBt(e,1),Lhe(e,e.d),GK(e.c),w=new ye(e.b.a);w.a<w.c.c.length;)u=y(de(w),194),n+=d.Math.abs(u.c);for(k=new ye(e.b.a);k.a<k.c.c.length;)u=y(de(k),194),u.b=0,u.c=0;for(o=Ed,sG(ple(YC(sG(ple(YC(sG(e6e(YC(e.c,o))),DNt(o)))),o))),YC(e.c,Il),The(e,e.d),uBt(e,1),Djt(e,1),l$t(e,0),e6e(e.c),p=new ye(e.b.a);p.a<p.c.c.length;)u=y(de(p),194),n+=d.Math.abs(u.c);return n}i(Kjt,"uRb");function R4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(o=y(oe(e,(Bt(),Qa)),102),w=e.f,g=e.d,k=w.a+g.b+g.c,A=0-g.d-e.c.b,M=w.b+g.d+g.a-e.c.b,D=new Pt,F=new Pt,p=new ye(n);p.a<p.c.c.length;){switch(u=y(de(p),9),o.g){case 1:case 2:case 3:pwn(u);break;case 4:z=y(oe(u,TT),8),ee=z?z.a:0,u.n.a=k*He(Xe(oe(u,(Tt(),vT))))-ee,GX(u,!0,!1);break;case 5:ie=y(oe(u,TT),8),ue=ie?ie.a:0,u.n.a=He(Xe(oe(u,(Tt(),vT))))-ue,GX(u,!0,!1),w.a=d.Math.max(w.a,u.n.a+u.o.a/2)}switch(y(oe(u,(Tt(),gc)),64).g){case 1:u.n.b=A,tn(D.c,u);break;case 3:u.n.b=M,tn(F.c,u)}}switch(o.g){case 1:case 2:bNt(D,e),bNt(F,e);break;case 3:vNt(D,e),vNt(F,e)}}i(R4n,"n3b");function L4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;for(o.Tg("Label dummy switching",1),u=y(oe(n,(Bt(),yZ)),231),rfn(n),p=i2n(n,u),e.a=tt(po,vl,30,n.b.c.length,15,1),k=(l6(),Se(Ee(QR,1),At,231,0,[JR,OM,KR,P3,hE,uE])),M=0,ee=k.length;M<ee;++M)if(g=k[M],(g==hE||g==uE||g==P3)&&!y(dh(p.a,g)?p.b[g.g]:null,16).dc()){ifn(e,n);break}for(A=Se(Ee(QR,1),At,231,0,[JR,OM,KR,P3,hE,uE]),F=0,ie=A.length;F<ie;++F)g=A[F],g==hE||g==uE||g==P3||BGt(e,y(dh(p.a,g)?p.b[g.g]:null,16));for(w=Se(Ee(QR,1),At,231,0,[JR,OM,KR,P3,hE,uE]),D=0,z=w.length;D<z;++D)g=w[D],(g==hE||g==uE||g==P3)&&BGt(e,y(dh(p.a,g)?p.b[g.g]:null,16));e.a=null,o.Ug()}i(L4n,"_6b");function Jjt(e,n){var o,u,p,g,w,k,A,D,M;if(D=n,!(D.b==null||e.b==null)){for(UC(e),VI(e),UC(D),VI(D),o=tt(pi,Pi,30,e.b.length+D.b.length,15,1),M=0,u=0,w=0;u<e.b.length&&w<D.b.length;)if(p=e.b[u],g=e.b[u+1],k=D.b[w],A=D.b[w+1],g<k)u+=2;else if(g>=k&&p<=A)k<=p&&g<=A?(o[M++]=p,o[M++]=g,u+=2):k<=p?(o[M++]=p,o[M++]=A,e.b[u]=A+1,w+=2):g<=A?(o[M++]=k,o[M++]=g,u+=2):(o[M++]=k,o[M++]=A,e.b[u]=A+1);else if(A<p)w+=2;else throw xe(new ql("Token#intersectRanges(): Internal Error: ["+e.b[u]+","+e.b[u+1]+"] & ["+D.b[w]+","+D.b[w+1]+"]"));for(;u<e.b.length;)o[M++]=e.b[u++],o[M++]=e.b[u++];e.b=tt(pi,Pi,30,M,15,1),$c(o,0,e.b,0,M)}}i(Jjt,"Gre");function _4n(e){var n,o,u,p,g,w,k;for(n=new Pt,e.g=new Pt,e.d=new Pt,w=new t3(new yk(e.f.b).a);w.b;)g=MC(w),Nt(n,y(y(g.kd(),49).b,82)),R1(y(g.jd(),592).yf())?Nt(e.d,y(g.kd(),49)):Nt(e.g,y(g.kd(),49));for(Lhe(e,e.d),Lhe(e,e.g),e.c=new kFt(e.b),SQr(e.c,(T6e(),FXt)),The(e,e.d),The(e,e.g),Is(n,e.c.a.b),e.e=new Lt(qa,qa),e.a=new Lt(Ys,Ys),u=new ye(n);u.a<u.c.c.length;)o=y(de(u),82),e.e.a=d.Math.min(e.e.a,o.g.c),e.e.b=d.Math.min(e.e.b,o.g.d),e.a.a=d.Math.max(e.a.a,o.g.c+o.g.b),e.a.b=d.Math.max(e.a.b,o.g.d+o.g.a);l6e(e.c,new Bn),k=0;do p=Kjt(e),++k;while((k<2||p>Cv)&&k<10);l6e(e.c,new Hs),Kjt(e),lan(e.c),l4n(e.f)}i(_4n,"vRb");function D4n(e,n){var o,u,p,g,w,k,A,D,M,F,z;switch(e.k.g){case 1:if(u=y(oe(e,(Tt(),aa)),17),o=y(oe(u,v$e),79),o?Kt(Xt(oe(u,ib)))&&(o=qLe(o)):o=new Vh,D=y(oe(e,Cg),12),D){if(M=Ql(Se(Ee(to,1),Dt,8,0,[D.i.n,D.n,D.a])),n<=M.a)return M.b;Ha(o,M,o.a,o.a.a)}if(F=y(oe(e,np),12),F){if(z=Ql(Se(Ee(to,1),Dt,8,0,[F.i.n,F.n,F.a])),z.a<=n)return z.b;Ha(o,z,o.c.b,o.c)}if(o.b>=2){for(A=ei(o,0),w=y(Qn(A),8),k=y(Qn(A),8);k.a<n&&A.b!=A.d.c;)w=k,k=y(Qn(A),8);return w.b+(n-w.a)/(k.a-w.a)*(k.b-w.b)}break;case 3:switch(g=y(oe(y(Wt(e.j,0),12),(Tt(),aa)),12),p=g.i,g.j.g){case 1:return p.n.b;case 3:return p.n.b+p.o.b}}return EDe(e).b}i(D4n,"sGc");function I4n(e){var n,o,u,p,g,w,k,A,D,M,F;for(w=new ye(e.d.b);w.a<w.c.c.length;)for(g=y(de(w),25),A=new ye(g.a);A.a<A.c.c.length;){if(k=y(de(A),9),Kt(Xt(oe(k,(Bt(),WM))))&&!qk(Y0(k))){u=y(msn(Y0(k)),17),M=u.c.i,M==k&&(M=u.d.i),F=new Ko(M,qs(Wo(k.n),M.n)),Oi(e.b,k,F);continue}p=new Op(k.n.a-k.d.b,k.n.b-k.d.d,k.o.a+k.d.b+k.d.c,k.o.b+k.d.d+k.d.a),n=u6t(yEt(gEt(mEt(new $5e,k),p),pKt),e.a),h6t(ZQr(sIt(new F5e,Se(Ee(wQ,1),Fr,60,0,[n])),n),e.a),D=new woe,Oi(e.e,n,D),o=dg(new nn(cn(os(k).a.Jc(),new B)))-dg(new nn(cn(Ra(k).a.Jc(),new B))),o<0?S$(D,!0,(Ss(),Il)):o>0&&S$(D,!0,(Ss(),Bl)),k.k==(Yr(),ks)&&b7t(D),Oi(e.f,k,n)}}i(I4n,"Cec");function Qjt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me;for(D=qa,M=qa,k=Ys,A=Ys,z=new ye(n.i);z.a<z.c.c.length;)F=y(de(z),68),p=y(y(Jr(e.g,F.a),49).b,26),ld(p,F.b.c,F.b.d),D=d.Math.min(D,p.i),M=d.Math.min(M,p.j),k=d.Math.max(k,p.i+p.g),A=d.Math.max(A,p.j+p.f);for(ee=y(St(e.c,(H$(),$rr)),104),eT(e.c,k-D+(ee.b+ee.c),A-M+(ee.d+ee.a),!0,!0),WDe(e.c,-D+ee.b,-M+ee.d),u=new Sn(F7t(e.c));u.e!=u.i.gc();)o=y(_n(u),85),w=zK(o),ie=wfe(o),fe=dBt(o),ue=new Lt(ie.i+ie.g/2,ie.j+ie.f/2),g=new Lt(fe.i+fe.g/2,fe.j+fe.f/2),Ce=qs(new Lt(g.a,g.b),ue),X7(Ce,ie.g,ie.f),ra(ue,Ce),Me=qs(new Lt(ue.a,ue.b),g),X7(Me,fe.g,fe.f),ra(g,Me),CF(w,ue.a,ue.b),kF(w,g.a,g.b)}i(Qjt,"E7c");function Zjt(e,n){var o,u,p,g,w,k,A,D,M,F;for(A=!0,p=0,D=e.g[n.p],M=n.o.b+e.o,o=e.d[n.p][2],Mf(e.b,D,Et(y(Wt(e.b,D),15).a-1+o)),Mf(e.c,D,He(Xe(Wt(e.c,D)))-M+o*e.f),++D,D>=e.j?(++e.j,Nt(e.b,Et(1)),Nt(e.c,M)):(u=e.d[n.p][1],Mf(e.b,D,Et(y(Wt(e.b,D),15).a+1-u)),Mf(e.c,D,He(Xe(Wt(e.c,D)))+M-u*e.f)),(e.r==(Tv(),wj)&&(y(Wt(e.b,D),15).a>e.k||y(Wt(e.b,D-1),15).a>e.k)||e.r==xj&&(He(Xe(Wt(e.c,D)))>e.n||He(Xe(Wt(e.c,D-1)))>e.n))&&(A=!1),w=new nn(cn(os(n).a.Jc(),new B));Nn(w);)g=y(vn(w),17),k=g.c.i,e.g[k.p]==D&&(F=Zjt(e,k),p=p+y(F.a,15).a,A=A&&Kt(Xt(F.b)));return e.g[n.p]=D,p=p+e.d[n.p][0],new Ko(Et(p),(qr(),!!A))}i(Zjt,"P8b");function M4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;return z=e.c[n],ee=e.c[o],ie=y(oe(z,(Tt(),F6)),16),!!ie&&ie.gc()!=0&&ie.Gc(ee)||(ue=z.k!=(Yr(),bs)&&ee.k!=bs,fe=y(oe(z,bT),9),Ce=y(oe(ee,bT),9),Me=fe!=Ce,$e=!!fe&&fe!=z||!!Ce&&Ce!=ee,Ve=Qhe(z,(zt(),sn)),ht=Qhe(ee,Fn),$e=$e|(Qhe(z,Fn)||Qhe(ee,sn)),st=$e&&Me||Ve||ht,ue&&st)||z.k==(Yr(),iu)&&ee.k==Ya||ee.k==(Yr(),iu)&&z.k==Ya?!1:(M=e.c[n],g=e.c[o],p=OPt(e.e,M,g,(zt(),on)),A=OPt(e.i,M,g,bn),awn(e.f,M,g),D=UMt(e.b,M,g)+y(p.a,15).a+y(A.a,15).a+e.f.d,k=UMt(e.b,g,M)+y(p.b,15).a+y(A.b,15).a+e.f.b,e.a&&(F=y(oe(M,aa),12),w=y(oe(g,aa),12),u=vPt(e.g,F,w),D+=y(u.a,15).a,k+=y(u.b,15).a),D>k)}i(M4n,"Wgc");function ezt(e,n){var o,u,p,g,w;o=He(Xe(oe(n,(Bt(),Xp)))),o<2&&dt(n,Xp,2),u=y(oe(n,Uf),86),u==(Ss(),g0)&&dt(n,Uf,KX(n)),p=y(oe(n,RZt),15),p.a==0?dt(n,(Tt(),G6),new Ehe):dt(n,(Tt(),G6),new KY(p.a)),g=Xt(oe(n,JM)),g==null&&dt(n,JM,(qr(),Qe(oe(n,Z1))===Qe((U1(),kL)))),ts(new Er(null,new Rr(n.a,16)),new C5e(e)),ts(jl(new Er(null,new Rr(n.b,16)),new ct),new E5e(e)),w=new Yjt(n),dt(n,(Tt(),yE),w),UF(e.a),fg(e.a,(eo(),Yp),y(oe(n,V6),188)),fg(e.a,Zm,y(oe(n,wZ),188)),fg(e.a,jc,y(oe(n,XM),188)),fg(e.a,Lc,y(oe(n,CZ),188)),fg(e.a,hl,ffn(y(oe(n,Z1),222))),hAe(e.a,DEn(n)),dt(n,Dme,cG(e.a,n))}i(ezt,"GQb");function qIe(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(F=new jn,w=new Pt,YBt(e,o,e.d.zg(),w,F),YBt(e,u,e.d.Ag(),w,F),e.b=.2*(ue=e$t(jl(new Er(null,new Rr(w,16)),new Jmt)),fe=e$t(jl(new Er(null,new Rr(w,16)),new Qmt)),d.Math.min(ue,fe)),g=0,k=0;k<w.c.length-1;k++)for(A=(_r(k,w.c.length),y(w.c[k],116)),ie=k+1;ie<w.c.length;ie++)g+=GIe(e,A,(_r(ie,w.c.length),y(w.c[ie],116)));for(z=y(oe(n,(Tt(),G6)),234),g>=2&&(Ce=T$t(w,!0,z),!e.e&&(e.e=new wkt(e)),tgn(e.e,Ce,w,e.b)),eBt(w,z),$4n(w),ee=-1,M=new ye(w);M.a<M.c.c.length;)D=y(de(M),116),!(d.Math.abs(D.s-D.c)<rm)&&(ee=d.Math.max(ee,D.o),e.d.xg(D,p,e.c));return e.d.a.a.$b(),ee+1}i(qIe,"BQc");function N4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;for(F=y(jq((w=ei(new A1(n).a.d,0),new aC(w))),40),ie=F?y(oe(F,(Ca(),D1e)),40):null,p=1;F&&ie;){for(A=0,Ve=0,o=F,u=ie,k=0;k<p;k++)o=bue(o),u=bue(u),Ve+=He(Xe(oe(o,(Ca(),gL)))),A+=He(Xe(oe(u,gL)));if($e=He(Xe(oe(ie,(Ca(),lb)))),Me=He(Xe(oe(F,lb))),z=w_e(e,F,ie),ee=$e+A+e.b+z-Me-Ve,0<ee){for(D=n,M=0;D&&D!=u;)++M,D=y(oe(D,jZ),40);if(D)for(Ce=ee/M,D=n;D!=u;)fe=He(Xe(oe(D,lb)))+ee,dt(D,lb,fe),ue=He(Xe(oe(D,gL)))+ee,dt(D,gL,ue),ee-=Ce,D=y(oe(D,jZ),40);else return}++p,F.d.b==0?F=TIe(new A1(n),p):F=y(jq((g=ei(new A1(F).a.d,0),new aC(g))),40),ie=F?y(oe(F,D1e),40):null}}i(N4n,"bZc");function O4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;for(n.Tg("Label dummy removal",1),u=He(Xe(oe(e,(Bt(),xE)))),p=He(Xe(oe(e,q3))),D=y(oe(e,Uf),86),A=new ye(e.b);A.a<A.c.c.length;)for(k=y(de(A),25),F=new yo(k.a,0);F.b<F.d.gc();)M=(In(F.b<F.d.gc()),y(F.d.Xb(F.c=F.b++),9)),M.k==(Yr(),_c)&&(z=y(oe(M,(Tt(),aa)),17),ie=He(Xe(oe(z,ab))),w=Qe(oe(M,$6))===Qe((Bf(),Vv)),o=new Vo(M.n),w&&(o.b+=ie+u),g=new Lt(M.o.a,M.o.b+(M.k==_c&&!W8(Hi(y(oe(M,jM),16).Mc(),new B8(new Ai))).zd((z2(),L6))?0:-ie-u)),ee=y(oe(M,jM),16),D==(Ss(),Ed)||D==p0?jvn(ee,o,p,g,w,D):kdn(ee,o,p,g),Is(z.b,ee),ude(M,Qe(oe(e,Z1))===Qe((U1(),Uj))),Wh(F));n.Ug()}i(O4n,"H6b");function P4n(e){e.q||(e.q=!0,e.p=cc(e,0),e.a=cc(e,1),La(e.a,0),e.f=cc(e,2),La(e.f,1),Ka(e.f,2),e.n=cc(e,3),Ka(e.n,3),Ka(e.n,4),Ka(e.n,5),Ka(e.n,6),e.g=cc(e,4),La(e.g,7),Ka(e.g,8),e.c=cc(e,5),La(e.c,7),La(e.c,8),e.i=cc(e,6),La(e.i,9),La(e.i,10),La(e.i,11),La(e.i,12),Ka(e.i,13),e.j=cc(e,7),La(e.j,9),e.d=cc(e,8),La(e.d,3),La(e.d,4),La(e.d,5),La(e.d,6),Ka(e.d,7),Ka(e.d,8),Ka(e.d,9),Ka(e.d,10),e.b=cc(e,9),Ka(e.b,0),Ka(e.b,1),e.e=cc(e,10),Ka(e.e,1),Ka(e.e,2),Ka(e.e,3),Ka(e.e,4),La(e.e,5),La(e.e,6),La(e.e,7),La(e.e,8),La(e.e,9),La(e.e,10),Ka(e.e,11),e.k=cc(e,11),Ka(e.k,0),Ka(e.k,1),e.o=zi(e,12),e.s=zi(e,13))}i(P4n,"tzd");function YIe(e,n){n.dc()&&Bm(e.j,!0,!0,!0,!0),ta(n,(zt(),tg))&&Bm(e.j,!0,!0,!0,!1),ta(n,Sd)&&Bm(e.j,!1,!0,!0,!0),ta(n,Wf)&&Bm(e.j,!0,!0,!1,!0),ta(n,sp)&&Bm(e.j,!0,!1,!0,!0),ta(n,Nh)&&Bm(e.j,!1,!0,!0,!1),ta(n,Ad)&&Bm(e.j,!1,!0,!1,!0),ta(n,Hf)&&Bm(e.j,!0,!1,!1,!0),ta(n,rg)&&Bm(e.j,!0,!1,!0,!1),ta(n,rh)&&Bm(e.j,!0,!0,!0,!0),ta(n,$u)&&Bm(e.j,!0,!0,!0,!0),ta(n,rh)&&Bm(e.j,!0,!0,!0,!0),ta(n,th)&&Bm(e.j,!0,!0,!0,!0),ta(n,nh)&&Bm(e.j,!0,!0,!0,!0),ta(n,Oh)&&Bm(e.j,!0,!0,!0,!0),ta(n,su)&&Bm(e.j,!0,!0,!0,!0)}i(YIe,"gRb");function tzt(e,n,o){var u,p,g,w,k,A,D,M,F;if(e.a!=n.hk())throw xe(new rn(PR+n.ve()+uT));if(u=Hy((yh(),Ro),n).Hl(),u)return u.hk().ti().oi(u,o);if(w=Hy(Ro,n).Jl(),w){if(o==null)return null;if(k=y(o,16),k.dc())return"";for(F=new Dy,g=k.Jc();g.Ob();)p=g.Pb(),ml(F,w.hk().ti().oi(w,p)),F.a+=" ";return _le(F,F.a.length-1)}if(M=Hy(Ro,n).Kl(),!M.dc()){for(D=M.Jc();D.Ob();)if(A=y(D.Pb(),159),A.dk(o))try{if(F=A.hk().ti().oi(A,o),F!=null)return F}catch(z){if(z=hs(z),!Ge(z,101))throw xe(z)}throw xe(new rn("Invalid value: '"+o+"' for datatype :"+n.ve()))}return y(n,832).mk(),o==null?null:Ge(o,180)?""+y(o,180).a:mf(o)==gQ?O5t(PN[0],y(o,205)):zl(o)}i(tzt,"Pxd");function rzt(e,n,o){var u,p,g,w;this.j=e,this.e=NDe(e),this.o=this.j.e,this.i=!!this.o,this.p=this.i?y(Wt(o,Zs(this.o).p),218):null,p=y(oe(e,(Tt(),au)),22),this.g=p.Gc((ol(),Cd)),this.b=new Pt,this.d=new QNt(this.e),w=y(oe(this.j,G6),234),this.q=afn(n,w,this.e),this.k=new DRt(this),g=Bp(Se(Ee(mKt,1),Fr,220,0,[this,this.d,this.k,this.q])),n==(cw(),kj)&&!Kt(Xt(oe(e,(Bt(),iL))))?(u=new BDe(this.e),tn(g.c,u),this.c=new iRe(u,w,y(this.q,406))):n==kj&&Kt(Xt(oe(e,(Bt(),iL))))?(u=new BDe(this.e),tn(g.c,u),this.c=new RIt(u,w,y(this.q,406))):n==NZ?this.c=new eRt(w):this.c=new JEt(n,this),Nt(g,this.c),Mjt(g,this.e),this.s=lEn(this.k)}i(rzt,"ZFc");function B4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(n.Tg("Interactive crossing minimization",1),w=0,g=new ye(e.b);g.a<g.c.c.length;)u=y(de(g),25),u.p=w++;for(z=NDe(e),fe=new u6e(z.length),Mjt(new oc(Se(Ee(mKt,1),Fr,220,0,[fe])),z),ue=0,w=0,p=new ye(e.b);p.a<p.c.c.length;){for(u=y(de(p),25),o=0,F=0,M=new ye(u.a);M.a<M.c.c.length;)for(A=y(de(M),9),A.n.a>0&&(o+=A.n.a+A.o.a/2,++F),ie=new ye(A.j);ie.a<ie.c.c.length;)ee=y(de(ie),12),ee.p=ue++;for(F>0&&(o/=F),Ce=tt(po,vl,30,u.a.c.length,15,1),k=0,D=new ye(u.a);D.a<D.c.c.length;)A=y(de(D),9),A.p=k++,Ce[A.p]=D4n(A,o),A.k==(Yr(),bs)&&dt(A,(Tt(),w$e),Ce[A.p]);Ir(),zs(u.a,new QTt(Ce)),jGt(fe,z,w,!0),++w}n.Ug()}i(B4n,"tGc");function F4n(e){var n,o,u,p,g,w,k,A,D,M;for(D=new ya,k=new ya,g=new ye(e);g.a<g.c.c.length;)u=y(de(g),132),u.v=0,u.n=u.i.c.length,u.u=u.t.c.length,u.n==0&&Ha(D,u,D.c.b,D.c),u.u==0&&u.r.a.gc()==0&&Ha(k,u,k.c.b,k.c);for(w=-1;D.b!=0;)for(u=y(ofe(D,0),132),o=new ye(u.t);o.a<o.c.c.length;)n=y(de(o),273),M=n.b,M.v=d.Math.max(M.v,u.v+1),w=d.Math.max(w,M.v),--M.n,M.n==0&&Ha(D,M,D.c.b,D.c);if(w>-1){for(p=ei(k,0);p.b!=p.d.c;)u=y(Qn(p),132),u.v=w;for(;k.b!=0;)for(u=y(ofe(k,0),132),o=new ye(u.i);o.a<o.c.c.length;)n=y(de(o),273),A=n.a,A.r.a.gc()==0&&(A.v=d.Math.min(A.v,u.v-1),--A.u,A.u==0&&Ha(k,A,k.c.b,k.c))}}i(F4n,"IRc");function $4n(e){var n,o,u,p,g,w,k,A,D,M;for(D=new Pt,k=new Pt,w=new ye(e);w.a<w.c.c.length;)p=y(de(w),116),foe(p,p.f.c.length),IH(p,p.k.c.length),p.d==0&&tn(D.c,p),p.i==0&&p.e.b==0&&tn(k.c,p);for(u=-1;D.c.length!=0;)for(p=y(Gy(D,0),116),o=new ye(p.k);o.a<o.c.c.length;)n=y(de(o),133),M=n.b,c5e(M,d.Math.max(M.o,p.o+1)),u=d.Math.max(u,M.o),foe(M,M.d-1),M.d==0&&tn(D.c,M);if(u>-1){for(g=new ye(k);g.a<g.c.c.length;)p=y(de(g),116),p.o=u;for(;k.c.length!=0;)for(p=y(Gy(k,0),116),o=new ye(p.f);o.a<o.c.c.length;)n=y(de(o),133),A=n.a,!(A.e.b>0)&&(c5e(A,d.Math.min(A.o,p.o-1)),IH(A,A.i-1),A.i==0&&tn(k.c,A))}}i($4n,"FQc");function nzt(e,n,o,u,p){var g,w,k,A;return A=qa,w=!1,k=FIe(e,qs(new Lt(n.a,n.b),e),ra(new Lt(o.a,o.b),p),qs(new Lt(u.a,u.b),o)),g=!!k&&!(d.Math.abs(k.a-e.a)<=lT&&d.Math.abs(k.b-e.b)<=lT||d.Math.abs(k.a-n.a)<=lT&&d.Math.abs(k.b-n.b)<=lT),k=FIe(e,qs(new Lt(n.a,n.b),e),o,p),k&&((d.Math.abs(k.a-e.a)<=lT&&d.Math.abs(k.b-e.b)<=lT)==(d.Math.abs(k.a-n.a)<=lT&&d.Math.abs(k.b-n.b)<=lT)||g?A=d.Math.min(A,U9(qs(k,o))):w=!0),k=FIe(e,qs(new Lt(n.a,n.b),e),u,p),k&&(w||(d.Math.abs(k.a-e.a)<=lT&&d.Math.abs(k.b-e.b)<=lT)==(d.Math.abs(k.a-n.a)<=lT&&d.Math.abs(k.b-n.b)<=lT)||g)&&(A=d.Math.min(A,U9(qs(k,u)))),A}i(nzt,"Gfd");function izt(e){Sk(e,new Xx(XH(Ck(xk(kk(Tk(new yx,Sv),KUt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new Rn),Pu))),_t(e,Sv,tM,Vt($Be)),_t(e,Sv,gJ,(qr(),!0)),_t(e,Sv,QC,Vt(LXt)),_t(e,Sv,C6,Vt(_Xt)),_t(e,Sv,k6,Vt(DXt)),_t(e,Sv,CR,Vt(RXt)),_t(e,Sv,rM,Vt(jBe)),_t(e,Sv,ER,Vt(IXt)),_t(e,Sv,NMe,Vt(FBe)),_t(e,Sv,PMe,Vt(PBe)),_t(e,Sv,BMe,Vt(BBe)),_t(e,Sv,FMe,Vt(GBe)),_t(e,Sv,OMe,Vt(AQ))}i(izt,"IPb");function G4n(e){var n,o,u,p,g,w,k,A;for(n=null,u=new ye(e);u.a<u.c.c.length;)o=y(de(u),239),He(Hg(o.g,o.d[0]).a),o.b=null,o.e&&o.e.gc()>0&&o.c==0&&(!n&&(n=new Pt),tn(n.c,o));if(n)for(;n.c.length!=0;){if(o=y(Gy(n,0),239),o.b&&o.b.c.length>0){for(g=(!o.b&&(o.b=new Pt),new ye(o.b));g.a<g.c.c.length;)if(p=y(de(g),239),eF(Hg(p.g,p.d[0]).a)==eF(Hg(o.g,o.d[0]).a)){if(Jl(e,p,0)>Jl(e,o,0))return new Ko(p,o)}else if(He(Hg(p.g,p.d[0]).a)>He(Hg(o.g,o.d[0]).a))return new Ko(p,o)}for(k=(!o.e&&(o.e=new Pt),o.e).Jc();k.Ob();)w=y(k.Pb(),239),A=(!w.b&&(w.b=new Pt),w.b),Hk(0,A.c.length),f9(A.c,0,o),w.c==A.c.length&&tn(n.c,w)}return null}i(G4n,"EFc");function HI(e,n){var o,u,p,g,w,k,A,D,M;if(n.e==5){Jjt(e,n);return}if(D=n,!(D.b==null||e.b==null)){for(UC(e),VI(e),UC(D),VI(D),o=tt(pi,Pi,30,e.b.length+D.b.length,15,1),M=0,u=0,w=0;u<e.b.length&&w<D.b.length;)if(p=e.b[u],g=e.b[u+1],k=D.b[w],A=D.b[w+1],g<k)o[M++]=e.b[u++],o[M++]=e.b[u++];else if(g>=k&&p<=A)k<=p&&g<=A?u+=2:k<=p?(e.b[u]=A+1,w+=2):g<=A?(o[M++]=p,o[M++]=k-1,u+=2):(o[M++]=p,o[M++]=k-1,e.b[u]=A+1,w+=2);else if(A<p)w+=2;else throw xe(new ql("Token#subtractRanges(): Internal Error: ["+e.b[u]+","+e.b[u+1]+"] - ["+D.b[w]+","+D.b[w+1]+"]"));for(;u<e.b.length;)o[M++]=e.b[u++],o[M++]=e.b[u++];e.b=tt(pi,Pi,30,M,15,1),$c(o,0,e.b,0,M)}}i(HI,"Jre");function j4n(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(u=new ye(e.e.b);u.a<u.c.c.length;)for(o=y(de(u),25),g=new ye(o.a);g.a<g.c.c.length;)if(p=y(de(g),9),ee=e.i[p.p],D=ee.a.e,A=ee.d.e,p.n.b=D,Ce=A-D-p.o.b,n=ade(p),z=(l3(),(p.q?p.q:(Ir(),Ir(),Qm))._b((Bt(),_w))?F=y(oe(p,_w),203):F=y(oe(Zs(p),aL),203),F),n&&(z==kE||z==TE)&&(p.o.b+=Ce),n&&(z==l1e||z==kE||z==TE)){for(ue=new ye(p.j);ue.a<ue.c.c.length;)ie=y(de(ue),12),(zt(),$u).Gc(ie.j)&&(M=y(Jr(e.k,ie),124),ie.n.b=M.e-D);for(k=new ye(p.b);k.a<k.c.c.length;)w=y(de(k),70),fe=y(oe(p,xT),22),fe.Gc((d3(),ap))?w.n.b+=Ce:fe.Gc(i1)&&(w.n.b+=Ce/2);(z==kE||z==TE)&&Zl(p,(zt(),Fn)).Ic(new pkt(Ce))}}i(j4n,"PKc");function z4n(e){var n,o,u,p,g,w,k;if(!e.A.dc()){if(e.A.Gc((vf(),Kj))&&(y(yl(e.b,(zt(),sn)),127).k=!0,y(yl(e.b,Fn),127).k=!0,n=e.q!=(uo(),a1)&&e.q!=zc,s5e(y(yl(e.b,bn),127),n),s5e(y(yl(e.b,on),127),n),s5e(e.g,n),e.A.Gc(Fw)&&(y(yl(e.b,sn),127).j=!0,y(yl(e.b,Fn),127).j=!0,y(yl(e.b,bn),127).k=!0,y(yl(e.b,on),127).k=!0,e.g.k=!0)),e.A.Gc(Xj))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,k=e.B.Gc((Zh(),NN)),p=$he(),g=0,w=p.length;g<w;++g)u=p[g],o=y(yl(e.i,u),319),o&&(U_e(u)?(o.j=!0,o.k=!0):(o.j=!k,o.k=!k));e.A.Gc(a4)&&e.B.Gc((Zh(),Qj))&&(e.g.j=!0,e.g.j=!0,e.a.j||(e.a.j=!0,e.a.k=!0,e.a.e=!0))}}i(z4n,"XJb");function U4n(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(D=new Pt,A=new ye(n.a);A.a<A.c.c.length;)for(w=y(de(A),9),z=Zl(w,(zt(),bn)).Jc();z.Ob();)for(F=y(z.Pb(),12),p=new ye(F.g);p.a<p.c.c.length;)u=y(de(p),17),!(!Mo(u)&&u.c.i.c==u.d.i.c||Mo(u)||u.d.i.c!=o)&&tn(D.c,u);for(k=bf(o.a).Jc();k.Ob();)for(w=y(k.Pb(),9),z=Zl(w,(zt(),on)).Jc();z.Ob();)for(F=y(z.Pb(),12),p=new ye(F.e);p.a<p.c.c.length;)if(u=y(de(p),17),!(!Mo(u)&&u.c.i.c==u.d.i.c||Mo(u)||u.c.i.c!=n)&&D.c.length!=0){for(M=new yo(D,D.c.length),g=(In(M.b>0),y(M.a.Xb(M.c=--M.b),17));g!=u&&M.b>0;)e.a[g.p]=!0,e.a[u.p]=!0,g=(In(M.b>0),y(M.a.Xb(M.c=--M.b),17));M.b>0&&Wh(M)}}i(U4n,"_Kc");function azt(e,n,o){var u,p,g,w,k,A,D,M,F,z;if(o)for(u=-1,M=new yo(n,0);M.b<M.d.gc();){if(k=(In(M.b<M.d.gc()),y(M.d.Xb(M.c=M.b++),9)),F=e.c[k.c.p][k.p].a,F==null){for(w=u+1,g=new yo(n,M.b);g.b<g.d.gc();)if(z=ven(e,(In(g.b<g.d.gc()),y(g.d.Xb(g.c=g.b++),9))).a,z!=null){w=(Ur(z),z);break}F=(u+w)/2,e.c[k.c.p][k.p].a=F,e.c[k.c.p][k.p].d=(Ur(F),F),e.c[k.c.p][k.p].b=1}u=(Ur(F),F)}else{for(p=0,D=new ye(n);D.a<D.c.c.length;)k=y(de(D),9),e.c[k.c.p][k.p].a!=null&&(p=d.Math.max(p,He(e.c[k.c.p][k.p].a)));for(p+=2,A=new ye(n);A.a<A.c.c.length;)k=y(de(A),9),e.c[k.c.p][k.p].a==null&&(F=Qh(e.i,24)*CG*p-1,e.c[k.c.p][k.p].a=F,e.c[k.c.p][k.p].d=F,e.c[k.c.p][k.p].b=1)}}i(azt,"hFc");function V4n(e){var n,o,u,p,g,w,k,A,D,M,F,z;for(p=new ye(e.a.a.b);p.a<p.c.c.length;)for(u=y(de(p),60),A=u.c.Jc();A.Ob();)k=y(A.Pb(),60),u.a!=k.a&&(R1(e.a.d)?F=e.a.g.df(u,k):F=e.a.g.ef(u,k),g=u.b.a+u.d.b+F-k.b.a,g=d.Math.ceil(g),g=d.Math.max(0,g),WRe(u,k)?(w=Ex(new G2,e.d),D=Po(d.Math.ceil(k.b.a-u.b.a)),n=D-(k.b.a-u.b.a),M=V5(u).a,o=u,M||(M=V5(k).a,n=-n,o=k),M&&(o.b.a-=n,M.n.a-=n),Up(Dp(_p(Ip(Lp(new Vd,d.Math.max(0,D)),1),w),e.c[u.a.d])),Up(Dp(_p(Ip(Lp(new Vd,d.Math.max(0,-D)),1),w),e.c[k.a.d]))):(z=1,(Ge(u.g,156)&&Ge(k.g,9)||Ge(k.g,156)&&Ge(u.g,9))&&(z=2),Up(Dp(_p(Ip(Lp(new Vd,Po(g)),z),e.c[u.a.d]),e.c[k.a.d]))))}i(V4n,"Tfc");function szt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee;if(!e.b)return!1;for(w=null,z=null,A=new Tue(null,null),p=1,A.a[1]=e.b,F=A;F.a[p];)D=p,k=z,z=F,F=F.a[p],u=e.a.Le(n,F.d),p=u<0?0:1,u==0&&(!o.c||Oc(F.e,o.d))&&(w=F),!(F&&F.b)&&!wk(F.a[p])&&(wk(F.a[1-p])?z=z.a[D]=_X(F,p):wk(F.a[1-p])||(ee=z.a[1-D],ee&&(!wk(ee.a[1-D])&&!wk(ee.a[D])?(z.b=!1,ee.b=!0,F.b=!0):(g=k.a[1]==z?1:0,wk(ee.a[D])?k.a[g]=SLt(z,D):wk(ee.a[1-D])&&(k.a[g]=_X(z,D)),F.b=k.a[g].b=!0,k.a[g].a[0].b=!1,k.a[g].a[1].b=!1))));return w&&(o.b=!0,o.d=w.e,F!=w&&(M=new Tue(F.d,F.e),ryn(e,A,w,M),z==w&&(z=M)),z.a[z.a[1]==F?1:0]=F.a[F.a[0]?0:1],--e.c),e.b=A.a[1],e.b&&(e.b.b=!1),o.b}i(szt,"eyb");function W4n(e,n,o){var u,p,g,w,k,A,D,M,F;for(!o&&(o=Ifn(n.q.getTimezoneOffset())),p=(n.q.getTimezoneOffset()-o.a)*6e4,k=new e8e(Ho(vc(n.q.getTime()),p)),A=k,k.q.getTimezoneOffset()!=n.q.getTimezoneOffset()&&(p>0?p-=864e5:p+=864e5,A=new e8e(Ho(vc(n.q.getTime()),p))),M=new sC,D=e.a.length,g=0;g<D;)if(u=Do(e.a,g),u>=97&&u<=122||u>=65&&u<=90){for(w=g+1;w<D&&Do(e.a,w)==u;++w);UEn(M,u,w-g,k,A,o),g=w}else if(u==39){if(++g,g<D&&Do(e.a,g)==39){M.a+="'",++g;continue}for(F=!1;!F;){for(w=g;w<D&&Do(e.a,w)!=39;)++w;if(w>=D)throw xe(new rn("Missing trailing '"));w+1<D&&Do(e.a,w+1)==39?++w:F=!0,Li(M,Yd(e.a,g,w)),g=w+1}}else M.a+=String.fromCharCode(u),++g;return M.a}i(W4n,"pA");function H4n(){Fi(l4,new hvt),Fi(Ni,new Tvt),Fi(op,new Mvt),Fi(Rg,new $vt),Fi(Qye,new Gvt),Fi(Lee,new jvt),Fi(ny,new zvt),Fi(ON,new Uvt),Fi(rz,new tvt),Fi(Hye,new rvt),Fi(Yv,new nvt),Fi(lp,new ivt),Fi(Ag,new avt),Fi(ET,new svt),Fi(c4,new ovt),Fi(ih,new lvt),Fi(o4,new cvt),Fi(mc,new uvt),Fi(dl,new fvt),Fi(Gu,new dvt),Fi(Ja,new pvt),Fi(Ee(xh,1),new gvt),Fi(A6,new mvt),Fi(SM,new yvt),Fi(gQ,new bvt),Fi(YWe,new vvt),Fi(Ts,new wvt),Fi(cWe,new xvt),Fi(fWe,new kvt),Fi(OWe,new Cvt),Fi(_ee,new Evt),Fi(VR,new Svt),Fi(Ls,new Avt),Fi(zPe,new Rvt),Fi(fT,new Lvt),Fi(UPe,new _vt),Fi(DWe,new Dvt),Fi(XWe,new Ivt),Fi(dT,new Nvt),Fi(Zt,new Ovt),Fi(hWe,new Pvt),Fi(KWe,new Bvt)}i(H4n,"n9d");function ozt(e,n){var o,u,p,g,w,k,A,D,M;if(e==null)return Qu;if(A=n.a.yc(e,n),A!=null)return"[...]";for(o=new aw(Tu,"[","]"),p=e,g=0,w=p.length;g<w;++g)u=p[g],u!=null&&(mf(u).i&4)!=0?Array.isArray(u)&&(M=p$(u),!(M>=14&&M<=16))?n.a._b(u)?(o.a?Li(o.a,o.b):o.a=new Lf(o.d),E9(o.a,"[...]")):(k=K5(u),D=new Bk(n),P1(o,ozt(k,D))):Ge(u,171)?P1(o,Mbn(y(u,171))):Ge(u,195)?P1(o,x1n(y(u,195))):Ge(u,201)?P1(o,Ayn(y(u,201))):Ge(u,2076)?P1(o,T1n(y(u,2076))):Ge(u,54)?P1(o,Ibn(y(u,54))):Ge(u,585)?P1(o,Hbn(y(u,585))):Ge(u,831)?P1(o,Dbn(y(u,831))):Ge(u,108)&&P1(o,_bn(y(u,108))):P1(o,u==null?Qu:zl(u));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}i(ozt,"Smb");function cR(e,n){var o,u,p,g;g=e.F,n==null?(e.F=null,P7(e,null)):(e.F=(Ur(n),n),u=U0(n,Ku(60)),u!=-1?(p=(ko(0,u,n.length),n.substr(0,u)),U0(n,Ku(46))==-1&&!Cr(p,g6)&&!Cr(p,yM)&&!Cr(p,ZJ)&&!Cr(p,bM)&&!Cr(p,vM)&&!Cr(p,wM)&&!Cr(p,xM)&&!Cr(p,TM)&&(p=YHt),o=Uq(n,Ku(62)),o!=-1&&(p+=""+(un(o+1,n.length+1),n.substr(o+1))),P7(e,p)):(p=n,U0(n,Ku(46))==-1&&(u=U0(n,Ku(91)),u!=-1&&(p=(ko(0,u,n.length),n.substr(0,u))),!Cr(p,g6)&&!Cr(p,yM)&&!Cr(p,ZJ)&&!Cr(p,bM)&&!Cr(p,vM)&&!Cr(p,wM)&&!Cr(p,xM)&&!Cr(p,TM)?(p=YHt,u!=-1&&(p+=""+(un(u,n.length+1),n.substr(u)))):p=n),P7(e,p),p==n&&(e.F=e.D))),(e.Db&4)!=0&&(e.Db&1)==0&&Qi(e,new Qs(e,1,5,g,n))}i(cR,"XVd");function q4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(e.c=e.e,ie=Xt(oe(n,(Bt(),LZt))),ee=ie==null||(Ur(ie),ie),g=y(oe(n,(Tt(),au)),22).Gc((ol(),Cd)),p=y(oe(n,Qa),102),o=!(p==(uo(),Bw)||p==a1||p==zc),ee&&(o||!g)){for(F=new ye(n.a);F.a<F.c.c.length;)D=y(de(F),9),D.p=0;for(z=new Pt,M=new ye(n.a);M.a<M.c.c.length;)if(D=y(de(M),9),u=qGt(e,D,null),u){for(A=new lLe,wc(A,n),dt(A,J1,y(u.b,22)),M7e(A.d,n.d),dt(A,sL,null),k=y(u.a,16).Jc();k.Ob();)w=y(k.Pb(),9),Nt(A.a,w),w.a=A;z.Ec(A)}g&&(Qe(oe(n,HM))===Qe((i6(),F0e))?e.c=e.b:Qe(oe(n,HM))===Qe($0e)?e.c=e.d:e.c=e.a)}else z=new oc(Se(Ee(KXt,1),QUt,36,0,[n]));return Qe(oe(n,HM))!==Qe((i6(),IM))&&(Ir(),z.gd(new Vn)),z}i(q4n,"lVb");function lzt(e,n){var o,u,p,g,w,k,A,D,M,F;if(A=n.length-1,k=(un(A,n.length),n.charCodeAt(A)),k==93){if(w=U0(n,Ku(91)),w>=0)return p=ppn(e,(ko(1,w,n.length),n.substr(1,w-1))),M=(ko(w+1,A,n.length),n.substr(w+1,A-(w+1))),vEn(e,M,p)}else{if(o=-1,ZPe==null&&(ZPe=new RegExp("\\d")),ZPe.test(String.fromCharCode(k))&&(o=g8e(n,Ku(46),A-1),o>=0)){u=y(mue(e,U9t(e,(ko(1,o,n.length),n.substr(1,o-1))),!1),61),D=0;try{D=Ff((un(o+1,n.length+1),n.substr(o+1)),bo,Ui)}catch(z){throw z=hs(z),Ge(z,131)?(g=z,xe(new fX(g))):xe(z)}if(D<u.gc())return F=u.Xb(D),Ge(F,75)&&(F=y(F,75).kd()),y(F,57)}if(o<0)return y(mue(e,U9t(e,(un(1,n.length+1),n.substr(1))),!1),57)}return null}i(lzt,"ltd");function Y4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(n.Tg("Label dummy insertions",1),F=new Pt,w=He(Xe(oe(e,(Bt(),xE)))),D=He(Xe(oe(e,q3))),M=y(oe(e,Uf),86),ee=new ye(e.a);ee.a<ee.c.c.length;)for(z=y(de(ee),9),g=new nn(cn(Ra(z).a.Jc(),new B));Nn(g);)if(p=y(vn(g),17),p.c.i!=p.d.i&&Fle(p.b,aKt)){for(ue=Xun(p),ie=Pm(p.b.c.length),o=T2n(e,p,ue,ie),tn(F.c,o),u=o.o,k=new yo(p.b,0);k.b<k.d.gc();)A=(In(k.b<k.d.gc()),y(k.d.Xb(k.c=k.b++),70)),Qe(oe(A,cm))===Qe((Qg(),xL))&&(M==(Ss(),Ed)||M==p0?(u.a+=A.o.a+D,u.b=d.Math.max(u.b,A.o.b)):(u.a=d.Math.max(u.a,A.o.a),u.b+=A.o.b+D),tn(ie.c,A),Wh(k));M==(Ss(),Ed)||M==p0?(u.a-=D,u.b+=w+ue):u.b+=w-D+ue}Is(e.a,F),n.Ug()}i(Y4n,"x6b");function uR(e,n,o){var u,p,g,w,k,A,D;if(D=e.c,!n&&(n=xWe),e.c=n,(e.Db&4)!=0&&(e.Db&1)==0&&(A=new Qs(e,1,2,D,e.c),o?o.lj(A):o=A),D!=n){if(Ge(e.Cb,293))e.Db>>16==-10?o=y(e.Cb,293).Wk(n,o):e.Db>>16==-15&&(!n&&(n=(Dr(),b0)),!D&&(D=(Dr(),b0)),e.Cb.Vh()&&(A=new B1(e.Cb,1,13,D,n,Xy(Yh(y(e.Cb,62)),e),!1),o?o.lj(A):o=A));else if(Ge(e.Cb,88))e.Db>>16==-23&&(Ge(n,88)||(n=(Dr(),up)),Ge(D,88)||(D=(Dr(),up)),e.Cb.Vh()&&(A=new B1(e.Cb,1,10,D,n,Xy(Pc(y(e.Cb,29)),e),!1),o?o.lj(A):o=A));else if(Ge(e.Cb,446))for(k=y(e.Cb,835),w=(!k.b&&(k.b=new PH(new Roe)),k.b),g=(u=new t3(new yk(w.a).a),new BH(u));g.a.b;)p=y(MC(g.a).jd(),87),o=uR(p,PK(p,k),o)}return o}i(uR,"B0d");function X4n(e,n){var o,u,p,g,w,k,A,D,M,F,z;for(w=Kt(Xt(St(e,(Bt(),j3)))),z=y(St(e,V3),22),A=!1,D=!1,F=new Sn((!e.c&&(e.c=new xt(rf,e,9,9)),e.c));F.e!=F.i.gc()&&(!A||!D);){for(g=y(_n(F),125),k=0,p=Gm(pd(Se(Ee(kd,1),Fr,20,0,[(!g.d&&(g.d=new zr(Cs,g,8,5)),g.d),(!g.e&&(g.e=new zr(Cs,g,7,4)),g.e)])));Nn(p)&&(u=y(vn(p),85),M=w&&Kx(u)&&Kt(Xt(St(u,Lw))),o=jjt((!u.b&&(u.b=new zr(Hn,u,4,7)),u.b),g)?e==$a(Pl(y(je((!u.c&&(u.c=new zr(Hn,u,5,8)),u.c),0),84))):e==$a(Pl(y(je((!u.b&&(u.b=new zr(Hn,u,4,7)),u.b),0),84))),!((M||o)&&(++k,k>1))););(k>0||z.Gc((_h(),ry))&&(!g.n&&(g.n=new xt(nc,g,1,7)),g.n).i>0)&&(A=!0),k>1&&(D=!0)}A&&n.Ec((ol(),Cd)),D&&n.Ec((ol(),FM))}i(X4n,"J$b");function czt(e){var n,o,u,p,g,w,k,A,D,M,F,z;if(z=y(St(e,(Ri(),Pw)),22),z.dc())return null;if(k=0,w=0,z.Gc((vf(),Kj))){for(M=y(St(e,EN),102),u=2,o=2,p=2,g=2,n=$a(e)?y(St($a(e),Ow),86):y(St(e,Ow),86),D=new Sn((!e.c&&(e.c=new xt(rf,e,9,9)),e.c));D.e!=D.i.gc();)if(A=y(_n(D),125),F=y(St(A,ME),64),F==(zt(),rc)&&(F=DIe(A,n),pa(A,ME,F)),M==(uo(),zc))switch(F.g){case 1:u=d.Math.max(u,A.i+A.g);break;case 2:o=d.Math.max(o,A.j+A.f);break;case 3:p=d.Math.max(p,A.i+A.g);break;case 4:g=d.Math.max(g,A.j+A.f)}else switch(F.g){case 1:u+=A.g+2;break;case 2:o+=A.f+2;break;case 3:p+=A.g+2;break;case 4:g+=A.f+2}k=d.Math.max(u,p),w=d.Math.max(o,g)}return eT(e,k,w,!0,!0)}i(czt,"dqd");function K4n(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(p=null,u=new ye(n.a);u.a<u.c.c.length;)o=y(de(u),9),ade(o)?g=(k=Ex(sF(new G2,o),e.f),A=Ex(sF(new G2,o),e.f),D=new D7e(o,!0,k,A),M=o.o.b,F=(l3(),(o.q?o.q:(Ir(),Ir(),Qm))._b((Bt(),_w))?z=y(oe(o,_w),203):z=y(oe(Zs(o),aL),203),z),ee=1e4,F==TE&&(ee=1),ie=Up(Dp(_p(Lp(Ip(new Vd,ee),Po(d.Math.ceil(M))),k),A)),F==kE&&ys(e.d,ie),WGt(e,bf(Zl(o,(zt(),on))),D),WGt(e,Zl(o,bn),D),D):g=(ue=Ex(sF(new G2,o),e.f),ts(Hi(new Er(null,new Rr(o.j,16)),new ymt),new eSt(e,ue)),new D7e(o,!1,ue,ue)),e.i[o.p]=g,p&&(w=p.c.d.a+bC(e.n,p.c,o)+o.d.d,p.b||(w+=p.c.o.b),Up(Dp(_p(Ip(Lp(new Vd,Po(d.Math.ceil(w))),0),p.d),g.a))),p=g}i(K4n,"fLc");function hde(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;for(Me=y(Rh(yX(Hi(new Er(null,new Rr(n.d,16)),new GTt(o)),new jTt(o)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),F=Ui,M=bo,A=new ye(n.b.j);A.a<A.c.c.length;)k=y(de(A),12),k.j==o&&(F=d.Math.min(F,k.p),M=d.Math.max(M,k.p));if(F==Ui)for(w=0;w<Me.gc();w++)$Re(y(Me.Xb(w),107),o,w);else for($e=tt(pi,Pi,30,p.length,15,1),Rin($e,$e.length),Ce=Me.Jc();Ce.Ob();){for(fe=y(Ce.Pb(),107),g=y(Jr(e.b,fe),171),D=0,ue=F;ue<=M;ue++)g[ue]&&(D=d.Math.max(D,u[ue]));if(fe.i){for(ee=fe.i.c,Ve=new gs,z=0;z<p.length;z++)p[ee][z]&&ys(Ve,Et($e[z]));for(;Wd(Ve,Et(D));)++D}for($Re(fe,o,D),ie=F;ie<=M;ie++)g[ie]&&(u[ie]=D+1);fe.i&&($e[fe.i.c]=D)}}i(hde,"flc");function uzt(e,n){var o,u,p,g,w,k,A,D;for(dt(n,(Tt(),zM),Et(e.b)),dt(n,j6,Et(e.b)),++e.b,f5t(e.d,n),dt(n,hZ,(qr(),!0)),u=new nn(cn(Y0(n).a.Jc(),new B));Nn(u);)o=y(vn(u),17),!(o.c.i!=n&&Jl(e.a,o,0)==-1)&&(o.c.i==n&&Jl(e.a,o,0)!=-1||(D=null,o.d.i==n?D=o.c.i:D=o.d.i,y(oe(D,zM),15).a==-1?(uzt(e,D),dt(n,j6,Et(d.Math.min(y(oe(n,j6),15).a,y(oe(D,j6),15).a)))):Kt(Xt(oe(D,hZ)))&&dt(n,j6,Et(d.Math.min(y(oe(n,j6),15).a,y(oe(D,zM),15).a)))));if(Qe(oe(n,j6))===Qe(oe(n,zM))){A=new gs,g=null;do g=y(e_e(e.d),9),dt(g,hZ,!1),A.a.yc(g,A);while(n!=g);if(A.a.gc()>1)for(p=e.e.b,_i(e.e,A),k=A.a.ec().Jc();k.Ob();)w=y(k.Pb(),9),Oi(e.c,w,Et(p))}}i(uzt,"D$b");function J4n(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee;for(g=new AFt(n),F=kxn(e,n,g),ee=d.Math.max(He(Xe(oe(n,(Bt(),ab)))),1),M=new ye(F.a);M.a<M.c.c.length;)D=y(de(M),49),A=wOt(y(D.a,8),y(D.b,8),ee),C=!0,C=C&Ax(o,new Lt(A.c,A.d)),C=C&Ax(o,Mk(new Lt(A.c,A.d),A.b,0)),C=C&Ax(o,Mk(new Lt(A.c,A.d),0,A.a)),C&Ax(o,Mk(new Lt(A.c,A.d),A.b,A.a));switch(z=g.d,k=wOt(y(F.b.a,8),y(F.b.b,8),ee),z==(zt(),on)||z==bn?(u.c[z.g]=d.Math.min(u.c[z.g],k.d),u.b[z.g]=d.Math.max(u.b[z.g],k.d+k.a)):(u.c[z.g]=d.Math.min(u.c[z.g],k.c),u.b[z.g]=d.Math.max(u.b[z.g],k.c+k.b)),p=Ys,w=g.c.i.d,z.g){case 4:p=w.c;break;case 2:p=w.b;break;case 1:p=w.a;break;case 3:p=w.d}return u.a[z.g]=d.Math.max(u.a[z.g],p),g}i(J4n,"NUb");function Q4n(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee;if(g=y(oe(e,(Tt(),aa)),85),!!g){for(u=e.a,p=new Vo(o),ra(p,jmn(e)),A7(e.d.i,e.c.i)?(z=e.c,F=Ql(Se(Ee(to,1),Dt,8,0,[z.n,z.a])),qs(F,o)):F=Xg(e.c),Ha(u,F,u.a,u.a.a),ee=Xg(e.d),oe(e,Mme)!=null&&ra(ee,y(oe(e,Mme),8)),Ha(u,ee,u.c.b,u.c),e3(u,p),w=zK(g),AX(w,y(je((!g.b&&(g.b=new zr(Hn,g,4,7)),g.b),0),84)),RX(w,y(je((!g.c&&(g.c=new zr(Hn,g,5,8)),g.c),0),84)),MIe(u,w),M=new ye(e.b);M.a<M.c.c.length;)D=y(de(M),70),k=y(oe(D,aa),157),Gx(k,D.o.a),$x(k,D.o.b),ld(k,D.n.a+p.a,D.n.b+p.b),pa(k,(J5(),H0e),Xt(oe(D,H0e)));A=y(oe(e,(Bt(),Dl)),79),A?(e3(A,p),pa(g,Dl,A)):pa(g,Dl,null),n==(U1(),eA)?pa(g,Z1,eA):pa(g,Z1,null)}}i(Q4n,"u_b");function Z4n(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me;for(ee=n.c.length,z=0,F=new ye(e.b);F.a<F.c.c.length;)if(M=y(de(F),25),Ce=M.a,Ce.c.length!=0){for(fe=new ye(Ce),D=0,Me=null,p=y(de(fe),9),g=null;p;){if(g=y(Wt(n,p.p),263),g.c>=0){for(A=null,k=new yo(M.a,D+1);k.b<k.d.gc()&&(w=(In(k.b<k.d.gc()),y(k.d.Xb(k.c=k.b++),9)),A=y(Wt(n,w.p),263),!(A.d==g.d&&A.c<g.c));)A=null;A&&(Me&&(Mf(u,p.p,Et(y(Wt(u,p.p),15).a-1)),y(Wt(o,Me.p),16).Kc(g)),g=S1n(g,p,ee++),tn(n.c,g),Nt(o,new Pt),Me?(y(Wt(o,Me.p),16).Ec(g),Nt(u,Et(1))):Nt(u,Et(0)))}ie=null,fe.a<fe.c.c.length&&(ie=y(de(fe),9),ue=y(Wt(n,ie.p),263),y(Wt(o,p.p),16).Ec(ue),Mf(u,ie.p,Et(y(Wt(u,ie.p),15).a+1))),g.d=z,g.c=D++,Me=p,p=ie}++z}}i(Z4n,"vKc");function eCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;k=y(Jr(n.c,e),457),Me=n.a.c,A=n.a.c+n.a.b,gr=k.f,Pr=k.a,w=gr<Pr,ue=new Lt(Me,gr),$e=new Lt(A,Pr),p=(Me+A)/2,fe=new Lt(p,gr),Ve=new Lt(p,Pr),g=X2n(e,gr,Pr),st=Xg(n.B),Ht=new Lt(p,g),yr=Xg(n.D),o=Pfn(Se(Ee(to,1),Dt,8,0,[st,Ht,yr])),ee=!1,Ce=n.B.i,Ce&&Ce.c&&k.d&&(D=w&&Ce.p<Ce.c.a.c.length-1||!w&&Ce.p>0,D?D&&(z=Ce.p,w?++z:--z,F=y(Wt(Ce.c.a,z),9),u=kMt(F),ee=!(L$t(u,st,o[0])||j8t(u,st,o[0]))):ee=!0),ie=!1,ht=n.D.i,ht&&ht.c&&k.e&&(M=w&&ht.p>0||!w&&ht.p<ht.c.a.c.length-1,M?(z=ht.p,w?--z:++z,F=y(Wt(ht.c.a,z),9),u=kMt(F),ie=!(L$t(u,o[0],yr)||j8t(u,o[0],yr))):ie=!0),ee&&ie&&_i(e.a,Ht),ee||nI(e.a,Se(Ee(to,1),Dt,8,0,[ue,fe])),ie||nI(e.a,Se(Ee(to,1),Dt,8,0,[Ve,$e]))}i(eCn,"I1b");function hzt(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr;if(o.c.length!=0){for(ie=new Pt,ee=new ye(o);ee.a<ee.c.c.length;)z=y(de(ee),26),Nt(ie,new Lt(z.i,z.j));for(u.bh(n,"Before removing overlaps");YDe(e,o);)NK(e,o,!1);if(u.bh(n,"After removing overlaps"),k=0,A=0,p=null,o.c.length!=0&&(p=(_r(0,o.c.length),y(o.c[0],26)),k=p.i-(_r(0,ie.c.length),y(ie.c[0],8)).a,A=p.j-(_r(0,ie.c.length),y(ie.c[0],8)).b),w=d.Math.sqrt(k*k+A*A),F=xdn(o),g=1,F.a.gc()!=0){for(M=F.a.ec().Jc();M.Ob();)D=y(M.Pb(),26),ue=e.f,fe=ue.i+ue.g/2,Ce=ue.j+ue.f/2,Me=D.i+D.g/2,$e=D.j+D.f/2,Ve=Me-fe,ht=$e-Ce,st=d.Math.sqrt(Ve*Ve+ht*ht),Ht=Ve/st,yr=ht/st,Xh(D,D.i+Ht*w),Kh(D,D.j+yr*w);u.bh(n,"Child movement "+g),++g}e.a&&e.a.Fg(new Ah(F)),hzt(e,n,new Ah(F),u)}}i(hzt,"x0c");function tCn(e,n){var o,u,p,g,w,k,A,D,M,F,z;if(!e.f[n.p]){for(e.f[n.p]=!0,A=new jn,p=Qe(oe(e.c,(Bt(),U6)))===Qe((fv(),B3)),u=new nn(cn(Ra(n).a.Jc(),new B));Nn(u);)o=y(vn(u),17),ea(o.d.i,(Tt(),Ea))?(z=0,F=o.d.i,p?(k=y(oe(e.c,Pv),15).a,z=k*y(oe(F,$3),15).a+y(oe(F,Ea),15).a):z=y(oe(o.d.i,Ea),15).a,Kc(A,Et(z))?ys(y(Jr(A,Et(z)),48),o):Oi(A,Et(z),new Bk(new oc(Se(Ee(HR,1),SR,17,0,[o]))))):Oi(A,Et(Ui-(A.f.c+A.i.c)),new Bk(new oc(Se(Ee(HR,1),SR,17,0,[o]))));for(D=new NAe(new E1(A)),w=D.a.ec().Jc();w.Ob();)g=y(w.Pb(),15).a,M=y(y(Jr(A,Et(g)),48).a.ec().Jc().Pb(),17),!Mo(M)&&(F=M.d.i,e.f[F.p]&&!Wd(e.e,n)&&!Wd(e.d,F)?Is(e.b,y(Jr(A,Et(g)),18)):_i(e.a,F))}}i(tCn,"ABc");function rCn(e){var n,o,u,p;if(o=e.D!=null?e.D:e.B,n=U0(o,Ku(91)),n!=-1){u=(ko(0,n,o.length),o.substr(0,n)),p=new Dy;do p.a+="[";while((n=Z8(o,91,++n))!=-1);Cr(u,g6)?p.a+="Z":Cr(u,yM)?p.a+="B":Cr(u,ZJ)?p.a+="C":Cr(u,bM)?p.a+="D":Cr(u,vM)?p.a+="F":Cr(u,wM)?p.a+="I":Cr(u,xM)?p.a+="J":Cr(u,TM)?p.a+="S":(p.a+="L",p.a+=""+u,p.a+=";");try{return null}catch(g){if(g=hs(g),!Ge(g,63))throw xe(g)}}else if(U0(o,Ku(46))==-1){if(Cr(o,g6))return ah;if(Cr(o,yM))return xh;if(Cr(o,ZJ))return Rd;if(Cr(o,bM))return po;if(Cr(o,vM))return d4;if(Cr(o,wM))return pi;if(Cr(o,xM))return LT;if(Cr(o,TM))return FE}return null}i(rCn,"RVd");function nCn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;for(F=new y7e(new y5e(e));F.c!=F.d.a.d;)for(M=c9t(F),k=y(M.d,57),n=y(M.e,57),w=k.Ah(),ue=0,Ve=(w.i==null&&Q0(w),w.i).length;ue<Ve;++ue)if(D=(g=(w.i==null&&Q0(w),w.i),ue>=0&&ue<g.length?g[ue]:null),D.pk()&&!D.qk()){if(Ge(D,103))A=y(D,19),(A.Bb&Tc)==0&&(st=rl(A),!(st&&(st.Bb&Tc)!=0))&&Bkn(e,A,k,n);else if(tl(),y(D,69).vk()&&(o=(ht=D,y(ht?y(n,52).di(ht):null,163)),o))for(ee=y(k.Jh(D),163),u=o.gc(),fe=0,ie=ee.gc();fe<ie;++fe)if(z=ee.Rl(fe),Ge(z,103)){if($e=ee.Sl(fe),p=Jg(e,$e),p==null&&$e!=null){if(Me=y(z,19),!e.b||(Me.Bb&Tc)!=0||rl(Me))continue;p=$e}if(!o.Ml(z,p)){for(Ce=0;Ce<u;++Ce)if(o.Rl(Ce)==z&&Qe(o.Sl(Ce))===Qe(p)){o.Ri(o.gc()-1,Ce),--u;break}}}else o.Ml(ee.Rl(fe),ee.Sl(fe))}}i(nCn,"jie");function iCn(e,n,o){var u;if(o.Tg("StretchWidth layering",1),n.a.c.length==0){o.Ug();return}for(e.c=n,e.t=0,e.u=0,e.i=qa,e.g=Ys,e.d=He(Xe(oe(n,(Bt(),Xp)))),$gn(e),_vn(e),Lvn(e),Pmn(e),Wpn(e),e.i=d.Math.max(1,e.i),e.g=d.Math.max(1,e.g),e.d=e.d/e.i,e.f=e.g/e.i,e.s=r0n(e),u=new Nc(e.c),Nt(e.c.b,u),e.r=Z2(e.p),e.n=GY(e.k,e.k.length);e.r.c.length!=0;)e.o=gdn(e),!e.o||AMt(e)&&e.b.a.gc()!=0?(u1n(e,u),u=new Nc(e.c),Nt(e.c.b,u),Fo(e.a,e.b),e.b.a.$b(),e.t=e.u,e.u=0):AMt(e)?(e.c.b.c.length=0,u=new Nc(e.c),Nt(e.c.b,u),e.t=0,e.u=0,e.b.a.$b(),e.a.a.$b(),++e.f,e.r=Z2(e.p),e.n=GY(e.k,e.k.length)):(Us(e.o,u),Yu(e.r,e.o),ys(e.b,e.o),e.t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p],e.u+=e.e[e.o.p]*e.d);n.a.c.length=0,Y$(n.b),o.Ug()}i(iCn,"AEc");function fde(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;return A=e,M=qs(new Lt(n.a,n.b),e),D=o,F=qs(new Lt(u.a,u.b),o),z=A.a,fe=A.b,ie=D.a,Me=D.b,ee=M.a,Ce=M.b,ue=F.a,$e=F.b,p=ue*Ce-ee*$e,Wg(),$p(im),d.Math.abs(0-p)<=im||p==0||isNaN(0)&&isNaN(p)?!1:(w=1/p*((z-ie)*Ce-(fe-Me)*ee),k=1/p*-(-(z-ie)*$e+(fe-Me)*ue),g=($p(im),(d.Math.abs(0-w)<=im||w==0||isNaN(0)&&isNaN(w)?0:0<w?-1:0>w?1:V2(isNaN(0),isNaN(w)))<0&&($p(im),(d.Math.abs(w-1)<=im||w==1||isNaN(w)&&isNaN(1)?0:w<1?-1:w>1?1:V2(isNaN(w),isNaN(1)))<0)&&($p(im),(d.Math.abs(0-k)<=im||k==0||isNaN(0)&&isNaN(k)?0:0<k?-1:0>k?1:V2(isNaN(0),isNaN(k)))<0)&&($p(im),(d.Math.abs(k-1)<=im||k==1||isNaN(k)&&isNaN(1)?0:k<1?-1:k>1?1:V2(isNaN(k),isNaN(1)))<0)),g)}i(fde,"Afd");function aCn(e){var n,o,u,p,g,w,k,A,D,M,F;for(e.j=tt(pi,Pi,30,e.g,15,1),e.o=new Pt,ts(jl(new Er(null,new Rr(e.e.b,16)),new Smt),new gkt(e)),e.a=tt(ah,vg,30,e.b,16,1),D$(new Er(null,new Rr(e.e.b,16)),new ykt(e)),u=(F=new Pt,ts(Hi(jl(new Er(null,new Rr(e.e.b,16)),new Rmt),new mkt(e)),new tSt(e,F)),F),A=new ye(u);A.a<A.c.c.length;)if(k=y(de(A),501),!(k.c.length<=1)){if(k.c.length==2){Xbn(k),ade((_r(0,k.c.length),y(k.c[0],17)).d.i)||Nt(e.o,k);continue}if(!(v1n(k)||ibn(k,new Amt)))for(D=new ye(k),p=null;D.a<D.c.c.length;)n=y(de(D),17),o=e.c[n.p],!p||D.a>=D.c.c.length?M=uRe((Yr(),Ya),bs):M=uRe((Yr(),bs),bs),M*=2,g=o.a.g,o.a.g=d.Math.max(g,g+(M-g)),w=o.b.g,o.b.g=d.Math.max(w,w+(M-w)),p=n}}i(aCn,"bLc");function tJ(e,n){var o;if(e.e)throw xe(new El((_1(k0e),Zde+k0e.k+epe)));if(!yZr(e.a,n))throw xe(new ql(LUt+n+_Ut));if(n==e.d)return e;switch(o=e.d,e.d=n,o.g){case 0:switch(n.g){case 2:qx(e);break;case 1:pv(e),qx(e);break;case 4:GC(e),qx(e);break;case 3:GC(e),pv(e),qx(e)}break;case 2:switch(n.g){case 1:pv(e),zfe(e);break;case 4:GC(e),qx(e);break;case 3:GC(e),pv(e),qx(e)}break;case 1:switch(n.g){case 2:pv(e),zfe(e);break;case 4:pv(e),GC(e),qx(e);break;case 3:pv(e),GC(e),pv(e),qx(e)}break;case 4:switch(n.g){case 2:GC(e),qx(e);break;case 1:GC(e),pv(e),qx(e);break;case 3:pv(e),zfe(e)}break;case 3:switch(n.g){case 2:pv(e),GC(e),qx(e);break;case 1:pv(e),GC(e),pv(e),qx(e);break;case 4:pv(e),zfe(e)}}return e}i(tJ,"aFb");function YC(e,n){var o;if(e.d)throw xe(new El((_1(B0e),Zde+B0e.k+epe)));if(!mZr(e.a,n))throw xe(new ql(LUt+n+_Ut));if(n==e.c)return e;switch(o=e.c,e.c=n,o.g){case 0:switch(n.g){case 2:ow(e);break;case 1:dv(e),ow(e);break;case 4:jC(e),ow(e);break;case 3:jC(e),dv(e),ow(e)}break;case 2:switch(n.g){case 1:dv(e),Ufe(e);break;case 4:jC(e),ow(e);break;case 3:jC(e),dv(e),ow(e)}break;case 1:switch(n.g){case 2:dv(e),Ufe(e);break;case 4:dv(e),jC(e),ow(e);break;case 3:dv(e),jC(e),dv(e),ow(e)}break;case 4:switch(n.g){case 2:jC(e),ow(e);break;case 1:jC(e),dv(e),ow(e);break;case 3:dv(e),Ufe(e)}break;case 3:switch(n.g){case 2:dv(e),jC(e),ow(e);break;case 1:dv(e),jC(e),dv(e),ow(e);break;case 4:dv(e),Ufe(e)}}return e}i(YC,"_Rb");function sCn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(F=e.b,M=new yo(F,0),Ok(M,new Nc(e)),Me=!1,w=1;M.b<M.d.gc();){for(D=(In(M.b<M.d.gc()),y(M.d.Xb(M.c=M.b++),25)),ue=(_r(w,F.c.length),y(F.c[w],25)),fe=Z2(D.a),Ce=fe.c.length,ie=new ye(fe);ie.a<ie.c.c.length;)z=y(de(ie),9),Us(z,ue);if(Me){for(ee=bf(fe).Jc();ee.Ob();)for(z=y(ee.Pb(),9),g=new ye(Z2(os(z)));g.a<g.c.c.length;)p=y(de(g),17),Jy(p,!0),dt(e,(Tt(),P6),(qr(),!0)),u=Ujt(e,p,Ce),o=y(oe(z,yT),318),$e=y(Wt(u,u.c.length-1),17),o.k=$e.c.i,o.n=$e,o.b=p.d.i,o.c=p;Me=!1}else fe.c.length!=0&&(n=(_r(0,fe.c.length),y(fe.c[0],9)),n.k==(Yr(),u0)&&(Me=!0,w=-1));++w}for(k=new yo(e.b,0);k.b<k.d.gc();)A=(In(k.b<k.d.gc()),y(k.d.Xb(k.c=k.b++),25)),A.a.c.length==0&&Wh(k)}i(sCn,"Cmc");function rJ(e,n){var o,u,p,g,w,k,A,D;if(Ge(e.Bh(),174)?(rJ(y(e.Bh(),174),n),n.a+=" > "):n.a+="Root ",o=e.Ah().zb,Cr(o.substr(0,3),"Elk")?Li(n,(un(3,o.length+1),o.substr(3))):n.a+=""+o,p=e.ih(),p){Li((n.a+=" ",n),p);return}if(Ge(e,362)&&(D=y(e,157).a,D)){Li((n.a+=" ",n),D);return}for(w=new Sn(e.jh());w.e!=w.i.gc();)if(g=y(_n(w),157),D=g.a,D){Li((n.a+=" ",n),D);return}if(Ge(e,271)&&(u=y(e,85),!u.b&&(u.b=new zr(Hn,u,4,7)),u.b.i!=0&&(!u.c&&(u.c=new zr(Hn,u,5,8)),u.c.i!=0))){for(n.a+=" (",k=new L5((!u.b&&(u.b=new zr(Hn,u,4,7)),u.b));k.e!=k.i.gc();)k.e>0&&(n.a+=Tu),rJ(y(_n(k),174),n);for(n.a+=lpe,A=new L5((!u.c&&(u.c=new zr(Hn,u,5,8)),u.c));A.e!=A.i.gc();)A.e>0&&(n.a+=Tu),rJ(y(_n(A),174),n);n.a+=")"}}i(rJ,"cqd");function oCn(e,n,o){var u,p,g,w,k,A,D,M;for(A=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));A.e!=A.i.gc();)for(k=y(_n(A),26),p=new nn(cn(xv(k).a.Jc(),new B));Nn(p);){if(u=y(vn(p),85),!u.b&&(u.b=new zr(Hn,u,4,7)),!(u.b.i<=1&&(!u.c&&(u.c=new zr(Hn,u,5,8)),u.c.i<=1)))throw xe(new b5("Graph must not contain hyperedges."));if(!II(u)&&k!=Pl(y(je((!u.c&&(u.c=new zr(Hn,u,5,8)),u.c),0),84)))for(D=new J6t,wc(D,u),dt(D,(uv(),I6),u),eJr(D,y(Yl(Sl(o.f,k)),155)),tJr(D,y(Jr(o,Pl(y(je((!u.c&&(u.c=new zr(Hn,u,5,8)),u.c),0),84))),155)),Nt(n.c,D),w=new Sn((!u.n&&(u.n=new xt(nc,u,1,7)),u.n));w.e!=w.i.gc();)g=y(_n(w),157),M=new r_t(D,g.a),wc(M,g),dt(M,I6,g),M.e.a=d.Math.max(g.g,1),M.e.b=d.Math.max(g.f,1),BIe(M),Nt(n.d,M)}}i(oCn,"cNb");function lCn(e,n,o){var u,p,g,w,k,A,D,M,F,z;switch(o.Tg("Node promotion heuristic",1),e.i=n,e.r=y(oe(n,(Bt(),mj)),243),e.r!=(Tv(),fL)&&e.r!=tN?NCn(e):axn(e),M=y(oe(e.i,RGe),15).a,g=new Xpt,e.r.g){case 2:case 1:lR(e,g);break;case 3:for(e.r=MZ,lR(e,g),A=0,k=new ye(e.b);k.a<k.c.c.length;)w=y(de(k),15),A=d.Math.max(A,w.a);A>e.k&&(e.r=wj,lR(e,g));break;case 4:for(e.r=MZ,lR(e,g),D=0,p=new ye(e.c);p.a<p.c.c.length;)u=Xe(de(p)),D=d.Math.max(D,(Ur(u),u));D>e.n&&(e.r=xj,lR(e,g));break;case 6:z=Po(d.Math.ceil(e.g.length*M/100)),lR(e,new pTt(z));break;case 5:F=Po(d.Math.ceil(e.e*M/100)),lR(e,new gTt(F));break;case 8:Wzt(e,!0);break;case 9:Wzt(e,!1);break;default:lR(e,g)}e.r!=fL&&e.r!=tN?Ewn(e,n):Vxn(e,n),o.Ug()}i(lCn,"O8b");function cCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(F=new QIe(e),Xsn(F,!(n==(Ss(),Ed)||n==p0)),M=F.a,z=new p5,p=(yg(),Se(Ee(_3,1),At,237,0,[dc,Cu,pc])),w=0,A=p.length;w<A;++w)o=p[w],D=$le(M,dc,o),D&&(z.d=d.Math.max(z.d,D.ff()));for(u=Se(Ee(_3,1),At,237,0,[dc,Cu,pc]),g=0,k=u.length;g<k;++g)o=u[g],D=$le(M,pc,o),D&&(z.a=d.Math.max(z.a,D.ff()));for(ue=Se(Ee(_3,1),At,237,0,[dc,Cu,pc]),Ce=0,$e=ue.length;Ce<$e;++Ce)ee=ue[Ce],D=$le(M,ee,dc),D&&(z.b=d.Math.max(z.b,D.gf()));for(ie=Se(Ee(_3,1),At,237,0,[dc,Cu,pc]),fe=0,Me=ie.length;fe<Me;++fe)ee=ie[fe],D=$le(M,ee,pc),D&&(z.c=d.Math.max(z.c,D.gf()));return z.d>0&&(z.d+=M.n.d,z.d+=M.d),z.a>0&&(z.a+=M.n.a,z.a+=M.d),z.b>0&&(z.b+=M.n.b,z.b+=M.d),z.c>0&&(z.c+=M.n.c,z.c+=M.d),z}i(cCn,"iHb");function fzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;for(z=o.d,F=o.c,g=new Lt(o.f.a+o.d.b+o.d.c,o.f.b+o.d.d+o.d.a),w=g.b,D=new ye(e.a);D.a<D.c.c.length;)if(k=y(de(D),9),k.k==(Yr(),ks)){switch(u=y(oe(k,(Tt(),gc)),64),p=y(oe(k,y$e),8),M=k.n,u.g){case 2:M.a=o.f.a+z.c-F.a;break;case 4:M.a=-F.a-z.b}switch(ie=0,u.g){case 2:case 4:n==(uo(),a1)?(ee=He(Xe(oe(k,vT))),M.b=g.b*ee-y(oe(k,(Bt(),TT)),8).b,ie=M.b+p.b,GX(k,!1,!0)):n==zc&&(M.b=He(Xe(oe(k,vT)))-y(oe(k,(Bt(),TT)),8).b,ie=M.b+p.b,GX(k,!1,!0))}w=d.Math.max(w,ie)}for(o.f.b+=w-g.b,A=new ye(e.a);A.a<A.c.c.length;)if(k=y(de(A),9),k.k==(Yr(),ks))switch(u=y(oe(k,(Tt(),gc)),64),M=k.n,u.g){case 1:M.b=-F.b-z.d;break;case 3:M.b=o.f.b+z.a-F.b}}i(fzt,"g3b");function uCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;if(M=y(y(oa(e.r,n),22),83),M.gc()<=2||n==(zt(),bn)||n==(zt(),on)){Izt(e,n);return}for(ue=e.u.Gc((_h(),tA)),o=n==(zt(),sn)?(zx(),QG):(zx(),JG),Ce=n==sn?(Xu(),qp):(Xu(),kg),u=o6e(T8e(o),e.s),fe=n==sn?qa:Ys,D=M.Jc();D.Ob();)k=y(D.Pb(),115),!(!k.c||k.c.d.c.length<=0)&&(ie=k.b.Kf(),ee=k.e,F=k.c,z=F.i,z.b=(g=F.n,F.e.a+g.b+g.c),z.a=(w=F.n,F.e.b+w.d+w.a),ue?(z.c=ee.a-(p=F.n,F.e.a+p.b+p.c)-e.s,ue=!1):z.c=ee.a+ie.a+e.s,HF(Ce,EMe),F.f=Ce,mg(F,(Lh(),Hp)),Nt(u.d,new yce(z,y_e(u,z))),fe=n==sn?d.Math.min(fe,ee.b):d.Math.max(fe,ee.b+k.b.Kf().b));for(fe+=n==sn?-e.t:e.t,O_e((u.e=fe,u)),A=M.Jc();A.Ob();)k=y(A.Pb(),115),!(!k.c||k.c.d.c.length<=0)&&(z=k.c.i,z.c-=k.e.a,z.d-=k.e.b)}i(uCn,"SKb");function dzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(p=new Pt,ue=new ye(n.a);ue.a<ue.c.c.length;)if(ie=y(de(ue),9),ee=ie.e,ee&&(u=dzt(e,ee,ie),Is(p,u),E4n(e,ee,ie),y(oe(ee,(Tt(),au)),22).Gc((ol(),Cd))))for(Me=y(oe(ie,(Bt(),Qa)),102),z=y(oe(ie,V3),182).Gc((_h(),ry)),Ce=new ye(ie.j);Ce.a<Ce.c.c.length;)for(fe=y(de(Ce),12),g=y(Jr(e.b,fe),9),g||(g=hG(fe,Me,fe.j,-(fe.e.c.length-fe.g.c.length),null,new xo,fe.o,y(oe(ee,Uf),86),ee),dt(g,aa,fe),Oi(e.b,fe,g),Nt(ee.a,g)),w=y(Wt(g.j,0),12),M=new ye(fe.f);M.a<M.c.c.length;)D=y(de(M),70),k=new uCt,k.o.a=D.o.a,k.o.b=D.o.b,Nt(w.f,k),z||($e=fe.j,F=0,$9(y(oe(ie,V3),22))&&(F=v9e(D.n,D.o,fe.o,0,$e)),Me==(uo(),m0)||(zt(),$u).Gc($e)?k.o.a=F:k.o.b=F);return A=new Pt,S4n(e,n,o,p,A),o&&U3n(e,n,o,A),A}i(dzt,"hWb");function XIe(e,n,o){var u,p,g,w,k,A,D,M,F;if(!e.c[n.c.p][n.p].e){for(e.c[n.c.p][n.p].e=!0,e.c[n.c.p][n.p].b=0,e.c[n.c.p][n.p].d=0,e.c[n.c.p][n.p].a=null,M=new ye(n.j);M.a<M.c.c.length;)for(D=y(de(M),12),F=o?new F8(D):new u5(D),A=F.Jc();A.Ob();)k=y(A.Pb(),12),w=k.i,w.c==n.c?w!=n&&(XIe(e,w,o),e.c[n.c.p][n.p].b+=e.c[w.c.p][w.p].b,e.c[n.c.p][n.p].d+=e.c[w.c.p][w.p].d):(e.c[n.c.p][n.p].d+=e.g[k.p],++e.c[n.c.p][n.p].b);if(g=y(oe(n,(Tt(),d$e)),16),g)for(p=g.Jc();p.Ob();)u=y(p.Pb(),9),n.c==u.c&&(XIe(e,u,o),e.c[n.c.p][n.p].b+=e.c[u.c.p][u.p].b,e.c[n.c.p][n.p].d+=e.c[u.c.p][u.p].d);e.c[n.c.p][n.p].b>0&&(e.c[n.c.p][n.p].d+=Qh(e.i,24)*CG*.07000000029802322-.03500000014901161,e.c[n.c.p][n.p].a=e.c[n.c.p][n.p].d/e.c[n.c.p][n.p].b)}}i(XIe,"fFc");function hCn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(ie=new ye(e);ie.a<ie.c.c.length;){for(ee=y(de(ie),9),Py(ee.n),Py(ee.o),LRe(ee.f),AGt(ee),Rxn(ee),fe=new ye(ee.j);fe.a<fe.c.c.length;){for(ue=y(de(fe),12),Py(ue.n),Py(ue.a),Py(ue.o),Bs(ue,JOt(ue.j)),g=y(oe(ue,(Bt(),sb)),15),g&&dt(ue,sb,Et(-g.a)),p=new ye(ue.g);p.a<p.c.c.length;){for(u=y(de(p),17),o=ei(u.a,0);o.b!=o.d.c;)n=y(Qn(o),8),Py(n);if(A=y(oe(u,Dl),79),A)for(k=ei(A,0);k.b!=k.d.c;)w=y(Qn(k),8),Py(w);for(F=new ye(u.b);F.a<F.c.c.length;)D=y(de(F),70),Py(D.n),Py(D.o)}for(z=new ye(ue.f);z.a<z.c.c.length;)D=y(de(z),70),Py(D.n),Py(D.o)}for(ee.k==(Yr(),ks)&&(dt(ee,(Tt(),gc),JOt(y(oe(ee,gc),64))),Pwn(ee)),M=new ye(ee.b);M.a<M.c.c.length;)D=y(de(M),70),AGt(D),Py(D.o),Py(D.n)}}i(hCn,"p2b");function fCn(e){Nk();var n,o,u,p,g,w,k;for(u=e.f.n,w=f7e(e.r).a.nc();w.Ob();){if(g=y(w.Pb(),115),p=0,g.b.nf((Ri(),tf))&&(p=He(Xe(g.b.mf(tf))),p<0))switch(g.b.$f().g){case 1:u.d=d.Math.max(u.d,-p);break;case 3:u.a=d.Math.max(u.a,-p);break;case 2:u.c=d.Math.max(u.c,-p);break;case 4:u.b=d.Math.max(u.b,-p)}if($9(e.u))switch(n=Yhn(g.b,p),k=!y(e.e.mf(Uv),182).Gc((Zh(),Jj)),o=!1,g.b.$f().g){case 1:o=n>u.d,u.d=d.Math.max(u.d,n),k&&o&&(u.d=d.Math.max(u.d,u.a),u.a=u.d+p);break;case 3:o=n>u.a,u.a=d.Math.max(u.a,n),k&&o&&(u.a=d.Math.max(u.a,u.d),u.d=u.a+p);break;case 2:o=n>u.c,u.c=d.Math.max(u.c,n),k&&o&&(u.c=d.Math.max(u.b,u.c),u.b=u.c+p);break;case 4:o=n>u.b,u.b=d.Math.max(u.b,n),k&&o&&(u.b=d.Math.max(u.b,u.c),u.c=u.b+p)}}}i(fCn,"AKb");function pzt(e,n){var o,u,p,g,w,k,A,D,M;return D="",n.length==0?e.le(dMe,Cde,-1,-1):(M=h3(n),Cr(M.substr(0,3),"at ")&&(M=(un(3,M.length+1),M.substr(3))),M=M.replace(/\[.*?\]/g,""),w=M.indexOf("("),w==-1?(w=M.indexOf("@"),w==-1?(D=M,M=""):(D=h3((un(w+1,M.length+1),M.substr(w+1))),M=h3((ko(0,w,M.length),M.substr(0,w))))):(o=M.indexOf(")",w),D=(ko(w+1,o,M.length),M.substr(w+1,o-(w+1))),M=h3((ko(0,w,M.length),M.substr(0,w)))),w=U0(M,Ku(46)),w!=-1&&(M=(un(w+1,M.length+1),M.substr(w+1))),(M.length==0||Cr(M,"Anonymous function"))&&(M=Cde),k=Uq(D,Ku(58)),p=g8e(D,Ku(58),k-1),A=-1,u=-1,g=dMe,k!=-1&&p!=-1&&(g=(ko(0,p,D.length),D.substr(0,p)),A=p6t((ko(p+1,k,D.length),D.substr(p+1,k-(p+1)))),u=p6t((un(k+1,D.length+1),D.substr(k+1)))),e.le(g,M,A,u))}i(pzt,"hA");function dCn(e){var n,o,u,p,g,w,k,A,D,M,F;for(D=new ye(e);D.a<D.c.c.length;){switch(A=y(de(D),9),w=y(oe(A,(Bt(),tc)),165),g=null,w.g){case 1:case 2:g=(sw(),fE);break;case 3:case 4:g=(sw(),ZR)}if(g)dt(A,(Tt(),lZ),(sw(),fE)),g==ZR?jK(A,w,(sl(),Mh)):g==fE&&jK(A,w,(sl(),Eu));else if(gC(y(oe(A,Qa),102))&&A.j.c.length!=0){for(n=!0,F=new ye(A.j);F.a<F.c.c.length;){if(M=y(de(F),12),!(M.j==(zt(),bn)&&M.e.c.length-M.g.c.length>0||M.j==on&&M.e.c.length-M.g.c.length<0)){n=!1;break}for(p=new ye(M.g);p.a<p.c.c.length;)if(o=y(de(p),17),k=y(oe(o.d.i,tc),165),k==(yf(),VM)||k==Rw){n=!1;break}for(u=new ye(M.e);u.a<u.c.c.length;)if(o=y(de(u),17),k=y(oe(o.c.i,tc),165),k==(yf(),UM)||k==Q1){n=!1;break}}n&&jK(A,w,(sl(),rN))}}}i(dCn,"o0b");function pCn(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;for(st=0,ee=0,F=new ye(n.e);F.a<F.c.c.length;){for(M=y(de(F),9),z=0,k=0,A=o?y(oe(M,BZ),15).a:bo,Ce=u?y(oe(M,FZ),15).a:bo,D=d.Math.max(A,Ce),$e=new ye(M.j);$e.a<$e.c.c.length;){if(Me=y(de($e),12),Ve=M.n.b+Me.n.b+Me.a.b,u)for(w=new ye(Me.g);w.a<w.c.c.length;)g=y(de(w),17),ue=g.d,ie=ue.i,n!=e.a[ie.p]&&(fe=d.Math.max(y(oe(ie,BZ),15).a,y(oe(ie,FZ),15).a),ht=y(oe(g,(Bt(),W6)),15).a,ht>=D&&ht>=fe&&(z+=ie.n.b+ue.n.b+ue.a.b-Ve,++k));if(o)for(w=new ye(Me.e);w.a<w.c.c.length;)g=y(de(w),17),ue=g.c,ie=ue.i,n!=e.a[ie.p]&&(fe=d.Math.max(y(oe(ie,BZ),15).a,y(oe(ie,FZ),15).a),ht=y(oe(g,(Bt(),W6)),15).a,ht>=D&&ht>=fe&&(z+=ie.n.b+ue.n.b+ue.a.b-Ve,++k))}k>0&&(st+=z/k,++ee)}ee>0?(n.a=p*st/ee,n.g=ee):(n.a=0,n.g=0)}i(pCn,"uKc");function KIe(e,n,o,u){var p,g,w,k,A;return k=new QIe(n),lwn(k,u),p=!0,e&&e.nf((Ri(),Ow))&&(g=y(e.mf((Ri(),Ow)),86),p=g==(Ss(),g0)||g==Il||g==Bl),dGt(k,!1),Zc(k.e.Pf(),new w8e(k,!1,p)),Yce(k,k.f,(yg(),dc),(zt(),sn)),Yce(k,k.f,pc,Fn),Yce(k,k.g,dc,on),Yce(k,k.g,pc,bn),OOt(k,sn),OOt(k,Fn),D7t(k,bn),D7t(k,on),Nk(),w=k.A.Gc((vf(),a4))&&k.B.Gc((Zh(),Qj))?YNt(k):null,w&&AQr(k.a,w),fCn(k),I0n(k),M0n(k),z4n(k),tkn(k),imn(k),Bhe(k,sn),Bhe(k,Fn),zxn(k),D3n(k),o&&(xpn(k),amn(k),Bhe(k,bn),Bhe(k,on),A=k.B.Gc((Zh(),NN)),tFt(k,A,sn),tFt(k,A,Fn),rFt(k,A,bn),rFt(k,A,on),ts(new Er(null,new Rr(new S1(k.i),0)),new Gt),ts(Hi(new Er(null,f7e(k.r).a.oc()),new jt),new Zr),y1n(k),k.e.Nf(k.o),ts(new Er(null,f7e(k.r).a.oc()),new yt)),k.o}i(KIe,"jHb");function gCn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(D=qa,u=new ye(e.a.b);u.a<u.c.c.length;)n=y(de(u),82),D=d.Math.min(D,n.d.f.g.c+n.e.a);for(ee=new ya,w=new ye(e.a.a);w.a<w.c.c.length;)g=y(de(w),194),g.i=D,g.e==0&&Ha(ee,g,ee.c.b,ee.c);for(;ee.b!=0;){for(g=y(ee.b==0?null:(In(ee.b!=0),dd(ee,ee.a.a)),194),p=g.f.g.c,z=g.a.a.ec().Jc();z.Ob();)M=y(z.Pb(),82),ue=g.i+M.e.a,M.d.g||M.g.c<ue?M.o=ue:M.o=M.g.c;for(p-=g.f.o,g.b+=p,e.c==(Ss(),Bl)||e.c==p0?g.c+=p:g.c-=p,F=g.a.a.ec().Jc();F.Ob();)for(M=y(F.Pb(),82),A=M.f.Jc();A.Ob();)k=y(A.Pb(),82),R1(e.c)?ie=e.f.wf(M,k):ie=e.f.xf(M,k),k.d.i=d.Math.max(k.d.i,M.o+M.g.b+ie-k.e.a),k.k||(k.d.i=d.Math.max(k.d.i,k.g.c-k.e.a)),--k.d.e,k.d.e==0&&_i(ee,k.d)}for(o=new ye(e.a.b);o.a<o.c.c.length;)n=y(de(o),82),n.g.c=n.o}i(gCn,"pSb");function gzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;for(o.Tg(UVt,1),z=(Ca(),R1e),e.a==(hI(),VZ)&&(z=jje),M=0,Ir(),n.gd(new boe(z)),g=n.gc(),k=n.dd(n.gc()),D=!0;D&&k.Sb();)Me=y(k.Ub(),40),y(oe(Me,z),15).a==0?--g:D=!1;if(st=n.hd(0,g),w=new Zle(st),st=n.hd(g,n.gc()),A=new Zle(st),w.b==0)for(ue=ei(A,0);ue.b!=ue.d.c;)ie=y(Qn(ue),40),dt(ie,fN,Et(M++));else for(F=w.b,ht=ei(w,0);ht.b!=ht.d.c;){for(Ve=y(Qn(ht),40),dt(Ve,fN,Et(M++)),u=the(Ve),gzt(e,u,o.dh(1/F|0)),nw(u,S7e(new boe(fN))),ee=new ya,$e=ei(u,0);$e.b!=$e.d.c;)for(Me=y(Qn($e),40),Ce=ei(Ve.d,0);Ce.b!=Ce.d.c;)fe=y(Qn(Ce),65),fe.c==Me&&Ha(ee,fe,ee.c.b,ee.c);for(gf(Ve.d),Fo(Ve.d,ee),k=ei(A,A.b),p=Ve.d.b,D=!0;0<p&&D&&k.Sb();)Me=y(k.Ub(),40),y(oe(Me,z),15).a==0?(dt(Me,fN,Et(M++)),--p,k.Qb()):D=!1}o.Ug()}i(gzt,"CYc");function mzt(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(M=new e0(o),wc(M,n),dt(M,(Tt(),aa),n),M.o.a=n.g,M.o.b=n.f,M.n.a=n.i,M.n.b=n.j,Nt(o.a,M),Oi(e.a,n,M),((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i!=0||Kt(Xt(St(n,(Bt(),j3)))))&&dt(M,p$e,(qr(),!0)),D=y(oe(o,au),22),F=y(oe(M,(Bt(),Qa)),102),F==(uo(),Hv)?dt(M,Qa,m0):F!=m0&&D.Ec((ol(),rL)),z=0,u=y(oe(o,Uf),86),A=new Sn((!n.c&&(n.c=new xt(rf,n,9,9)),n.c));A.e!=A.i.gc();)k=y(_n(A),125),p=$a(n),JK(p)&&!Kt(Xt(St(n,gZ)))&&pa(k,Ea,Et(z++)),Kt(Xt(St(k,Dw)))||xCn(e,k,M,D,u,F);for(w=new Sn((!n.n&&(n.n=new xt(nc,n,1,7)),n.n));w.e!=w.i.gc();)g=y(_n(w),157),!Kt(Xt(St(g,Dw)))&&g.a&&Nt(M.b,yhe(g));return Kt(Xt(oe(M,WM)))&&D.Ec((ol(),nZ)),Kt(Xt(oe(M,vZ)))&&(D.Ec((ol(),iZ)),D.Ec(FM),dt(M,Qa,m0)),M}i(mzt,"W$b");function mCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(n.Tg("Inverted port preprocessing",1),M=e.b,D=new yo(M,0),o=null,$e=new Pt;D.b<D.d.gc();){for(Me=o,o=(In(D.b<D.d.gc()),y(D.d.Xb(D.c=D.b++),25)),ee=new ye($e);ee.a<ee.c.c.length;)F=y(de(ee),9),Us(F,Me);for($e.c.length=0,ie=new ye(o.a);ie.a<ie.c.c.length;)if(F=y(de(ie),9),F.k==(Yr(),Ya)&&gC(y(oe(F,(Bt(),Qa)),102))){for(Ce=cIe(F,(sl(),Mh),(zt(),bn)).Jc();Ce.Ob();)for(ue=y(Ce.Pb(),12),A=ue.e,k=y(Zg(A,tt(HR,SR,17,A.c.length,0,1)),324),p=k,g=0,w=p.length;g<w;++g)u=p[g],Gkn(e,ue,u,$e);for(fe=cIe(F,Eu,on).Jc();fe.Ob();)for(ue=y(fe.Pb(),12),A=ue.g,k=y(Zg(A,tt(HR,SR,17,A.c.length,0,1)),324),p=k,g=0,w=p.length;g<w;++g)u=p[g],$kn(e,ue,u,$e)}}for(z=new ye($e);z.a<z.c.c.length;)F=y(de(z),9),Us(F,o);n.Ug()}i(mCn,"e6b");function yCn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee;for(F=He(Xe(St(e,(wv(),q1e)))),Kt(Xt(St(e,Tze)))&&(M=y(St(e,(TC(),SE)),26),g=y(je(A7e(y(je((!M.e&&(M.e=new zr(Cs,M,7,4)),M.e),(!M.e&&(M.e=new zr(Cs,M,7,4)),M.e).i-1),85)),0),26),u=y(je(A7e(y(je((!M.e&&(M.e=new zr(Cs,M,7,4)),M.e),0),85)),0),26),w=new Lt(g.i+g.g/2,g.j+g.f/2),p=new Lt(u.i+u.g/2,u.j+u.f/2),o=F,o<=0&&(o+=vw),z=d.Math.acos((w.a*p.a+w.b*p.b)/(d.Math.sqrt(w.a*w.a+w.b*w.b)*d.Math.sqrt(p.a*p.a+p.b*p.b))),z<=0&&(z+=vw),n=d.Math.atan2(w.b,w.a),n<=0&&(n+=vw),F=fOe-(n-o+z/2)),A=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));A.e!=A.i.gc();)k=y(_n(A),26),D=new Lt(k.i+k.g/2,k.j+k.f/2),ee=D.a*d.Math.cos(F)-D.b*d.Math.sin(F),D.b=D.a*d.Math.sin(F)+D.b*d.Math.cos(F),D.a=ee,ld(k,D.a-k.g/2,D.b-k.f/2)}i(yCn,"B0c");function bCn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;if(ue=e.n,fe=e.o,z=e.d,F=He(Xe(s3(e,(Bt(),Jme)))),n){for(M=F*(n.gc()-1),ee=0,A=n.Jc();A.Ob();)w=y(A.Pb(),9),M+=w.o.a,ee=d.Math.max(ee,w.o.b);for(Ce=ue.a-(M-fe.a)/2,g=ue.b-z.d+ee,u=fe.a/(n.gc()+1),p=u,k=n.Jc();k.Ob();)w=y(k.Pb(),9),w.n.a=Ce,w.n.b=g-w.o.b,Ce+=w.o.a+F,D=C$t(w),D.n.a=w.o.a/2-D.a.a,D.n.b=w.o.b,ie=y(oe(w,(Tt(),sZ)),12),ie.e.c.length+ie.g.c.length==1&&(ie.n.a=p-ie.a.a,ie.n.b=0,Kl(ie,e)),p+=u}if(o){for(M=F*(o.gc()-1),ee=0,A=o.Jc();A.Ob();)w=y(A.Pb(),9),M+=w.o.a,ee=d.Math.max(ee,w.o.b);for(Ce=ue.a-(M-fe.a)/2,g=ue.b+fe.b+z.a-ee,u=fe.a/(o.gc()+1),p=u,k=o.Jc();k.Ob();)w=y(k.Pb(),9),w.n.a=Ce,w.n.b=g,Ce+=w.o.a+F,D=C$t(w),D.n.a=w.o.a/2-D.a.a,D.n.b=0,ie=y(oe(w,(Tt(),sZ)),12),ie.e.c.length+ie.g.c.length==1&&(ie.n.a=p-ie.a.a,ie.n.b=fe.b,Kl(ie,e)),p+=u}}i(bCn,"b0b");function dde(e,n,o,u,p,g,w){var k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(z=null,u==(Px(),jv)?z=n:u==CE&&(z=o),ue=z.a.ec().Jc();ue.Ob();){for(ie=y(ue.Pb(),12),fe=Ql(Se(Ee(to,1),Dt,8,0,[ie.i.n,ie.n,ie.a])).b,$e=new gs,k=new gs,D=new Kg(ie.b);Xl(D.a)||Xl(D.b);)if(A=y(Xl(D.a)?de(D.a):de(D.b),17),Kt(Xt(oe(A,(Tt(),ib))))==p&&Jl(g,A,0)!=-1){if(A.d==ie?Ce=A.c:Ce=A.d,Me=Ql(Se(Ee(to,1),Dt,8,0,[Ce.i.n,Ce.n,Ce.a])).b,d.Math.abs(Me-fe)<.2)continue;Me<fe?n.a._b(Ce)?ys($e,new Ko(jv,A)):ys($e,new Ko(CE,A)):n.a._b(Ce)?ys(k,new Ko(jv,A)):ys(k,new Ko(CE,A))}if($e.a.gc()>1)for(ee=new jIe(ie,$e,u),Io($e,new nSt(e,ee)),tn(w.c,ee),F=$e.a.ec().Jc();F.Ob();)M=y(F.Pb(),49),Yu(g,M.b);if(k.a.gc()>1)for(ee=new jIe(ie,k,u),Io(k,new iSt(e,ee)),tn(w.c,ee),F=k.a.ec().Jc();F.Ob();)M=y(F.Pb(),49),Yu(g,M.b)}}i(dde,"wRc");function vCn(e,n){var o,u,p,g,w,k;if(y(oe(n,(Tt(),au)),22).Gc((ol(),Cd))){for(k=new ye(n.a);k.a<k.c.c.length;)g=y(de(k),9),g.k==(Yr(),Ya)&&(p=y(oe(g,(Bt(),TZ)),140),e.c=d.Math.min(e.c,g.n.a-p.b),e.a=d.Math.max(e.a,g.n.a+g.o.a+p.c),e.d=d.Math.min(e.d,g.n.b-p.d),e.b=d.Math.max(e.b,g.n.b+g.o.b+p.a));for(w=new ye(n.a);w.a<w.c.c.length;)if(g=y(de(w),9),g.k!=(Yr(),Ya))switch(g.k.g){case 2:if(u=y(oe(g,(Bt(),tc)),165),u==(yf(),Q1)){g.n.a=e.c-10,gPt(g,new Spt).Jb(new lTt(g));break}if(u==Rw){g.n.a=e.a+10,gPt(g,new Apt).Jb(new cTt(g));break}if(o=y(oe(g,Sw),316),o==(F1(),pE)){Gjt(g).Jb(new uTt(g)),g.n.b=e.d-10;break}if(o==N6){Gjt(g).Jb(new hTt(g)),g.n.b=e.b+10;break}break;default:throw xe(new rn("The node type "+g.k+" is not supported by the "+gSn))}}}i(vCn,"t4b");function wCn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(A=new Lt(u.i+u.g/2,u.j+u.f/2),ee=Bjt(u),ie=y(St(n,(Bt(),Qa)),102),fe=y(St(u,oL),64),USt(_Ot(u),U3)||(u.i==0&&u.j==0?ue=0:ue=K1n(u,fe),pa(u,U3,ue)),D=new Lt(n.g,n.f),p=hG(u,ie,fe,ee,D,A,new Lt(u.g,u.f),y(oe(o,Uf),86),o),dt(p,(Tt(),aa),u),g=y(Wt(p.j,0),12),nJr(g,$Tn(u)),dt(p,V3,(_h(),mr(qv))),F=y(St(n,V3),182).Gc(ry),k=new Sn((!u.n&&(u.n=new xt(nc,u,1,7)),u.n));k.e!=k.i.gc();)if(w=y(_n(k),157),!Kt(Xt(St(w,Dw)))&&w.a&&(z=yhe(w),Nt(g.f,z),!F))switch(M=0,$9(y(St(n,V3),22))&&(M=v9e(new Lt(w.i,w.j),new Lt(w.g,w.f),new Lt(u.g,u.f),0,fe)),fe.g){case 2:case 4:z.o.a=M;break;case 1:case 3:z.o.b=M}dt(p,cL,Xe(St($a(n),cL))),dt(p,uL,Xe(St($a(n),uL))),dt(p,q3,Xe(St($a(n),q3))),Nt(o.a,p),Oi(e.a,u,p)}i(wCn,"U$b");function xCn(e,n,o,u,p,g){var w,k,A,D,M,F;for(D=new Fc,wc(D,n),Bs(D,y(St(n,(Bt(),oL)),64)),dt(D,(Tt(),aa),n),Kl(D,o),F=D.o,F.a=n.g,F.b=n.f,M=D.n,M.a=n.i,M.b=n.j,Oi(e.a,n,D),w=Kk(bu(jl(new Er(null,(!n.e&&(n.e=new zr(Cs,n,7,4)),new Rr(n.e,16))),new Dm),new at),new Zxt(n)),w||(w=Kk(bu(jl(new Er(null,(!n.d&&(n.d=new zr(Cs,n,8,5)),new Rr(n.d,16))),new I2),new pl),new eTt(n))),w||(w=Kk(new Er(null,(!n.e&&(n.e=new zr(Cs,n,7,4)),new Rr(n.e,16))),new M2)),dt(D,hj,(qr(),!!w)),H3n(D,g,p,y(St(n,TT),8)),A=new Sn((!n.n&&(n.n=new xt(nc,n,1,7)),n.n));A.e!=A.i.gc();)k=y(_n(A),157),!Kt(Xt(St(k,Dw)))&&k.a&&Nt(D.f,yhe(k));switch(p.g){case 2:case 1:(D.j==(zt(),sn)||D.j==Fn)&&u.Ec((ol(),dE));break;case 4:case 3:(D.j==(zt(),bn)||D.j==on)&&u.Ec((ol(),dE))}return D}i(xCn,"X$b");function TCn(e,n,o,u,p,g){var w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn;Mr=Jr(e.g,p),Mr==null&&(Mr=new m5,ie=y(Mr,149),$e=n+"_s",Ve=$e+g,ee=new zk(Ve),Fp(ie,am,ee)),Pr=y(Mr,149),$5(o,Pr),Jn=new m5,J2(Jn,"x",kK(e,u,p.j)),J2(Jn,"y",CK(e,u,p.k)),Fp(Pr,KWt,Jn),yr=new m5,J2(yr,"x",kK(e,u,p.b)),J2(yr,"y",CK(e,u,p.c)),Fp(Pr,"endPoint",yr),z=aF((!p.a&&(p.a=new Es(qf,p,5)),p.a)),ue=!z,ue&&(Ht=new F2,w=new DAt(e,u,Ht),Io((!p.a&&(p.a=new Es(qf,p,5)),p.a),w),Fp(Pr,qJ,Ht)),D=Whe(p),ht=!!D,ht&&VDe(e.a,Pr,gPe,Sfe(e,Whe(p))),Me=Hhe(p),st=!!Me,st&&VDe(e.a,Pr,pPe,Sfe(e,Hhe(p))),M=(!p.e&&(p.e=new zr(Ia,p,10,9)),p.e).i==0,fe=!M,fe&&(gr=new F2,k=new ISt(e,gr),Io((!p.e&&(p.e=new zr(Ia,p,10,9)),p.e),k),Fp(Pr,yPe,gr)),F=(!p.g&&(p.g=new zr(Ia,p,9,10)),p.g).i==0,Ce=!F,Ce&&(wn=new F2,A=new MSt(e,wn),Io((!p.g&&(p.g=new zr(Ia,p,9,10)),p.g),A),Fp(Pr,mPe,wn))}i(TCn,"QBd");function kCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(n.Tg("Comment pre-processing",1),o=0,A=new ye(e.a);A.a<A.c.c.length;)if(k=y(de(A),9),Kt(Xt(oe(k,(Bt(),WM))))){for(++o,p=0,u=null,D=null,ie=new ye(k.j);ie.a<ie.c.c.length;)z=y(de(ie),12),p+=z.e.c.length+z.g.c.length,z.e.c.length==1&&(u=y(Wt(z.e,0),17),D=u.c),z.g.c.length==1&&(u=y(Wt(z.g,0),17),D=u.d);if(p==1&&D.e.c.length+D.g.c.length==1&&!Kt(Xt(oe(D.i,WM))))tEn(k,u,D,D.i),G9(A);else{for(Ce=new Pt,ee=new ye(k.j);ee.a<ee.c.c.length;){for(z=y(de(ee),12),F=new ye(z.g);F.a<F.c.c.length;)M=y(de(F),17),M.d.g.c.length==0||tn(Ce.c,M);for(w=new ye(z.e);w.a<w.c.c.length;)g=y(de(w),17),g.c.e.c.length==0||tn(Ce.c,g)}for(fe=new ye(Ce);fe.a<fe.c.c.length;)ue=y(de(fe),17),Jy(ue,!0)}}n.$g()&&n.ah("Found "+o+" comment boxes"),n.Ug()}i(kCn,"e0b");function CCn(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;for($e=0,ie=0,ee=0,z=1,Me=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));Me.e!=Me.i.gc();)fe=y(_n(Me),26),z+=dg(new nn(cn(xv(fe).a.Jc(),new B))),yr=fe.g,ie=d.Math.max(ie,yr),F=fe.f,ee=d.Math.max(ee,F),$e+=yr*F;for(ue=(!e.a&&(e.a=new xt(Ti,e,10,11)),e.a).i,w=$e+2*u*u*z*ue,g=d.Math.sqrt(w),A=d.Math.max(g*o,ie),k=d.Math.max(g/o,ee),Ce=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));Ce.e!=Ce.i.gc();)fe=y(_n(Ce),26),gr=p.b+(Qh(n,26)*YI+Qh(n,27)*XI)*(A-fe.g),Pr=p.b+(Qh(n,26)*YI+Qh(n,27)*XI)*(k-fe.f),Xh(fe,gr),Kh(fe,Pr);for(Ht=A+(p.b+p.c),st=k+(p.d+p.a),ht=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));ht.e!=ht.i.gc();)for(Ve=y(_n(ht),26),M=new nn(cn(xv(Ve).a.Jc(),new B));Nn(M);)D=y(vn(M),85),II(D)||LEn(D,n,Ht,st);Ht+=p.b+p.c,st+=p.d+p.a,eT(e,Ht,st,!1,!0)}i(CCn,"Brd");function ECn(e){var n,o,u,p;for(ts(Hi(new Er(null,new Rr(e.a.b,16)),new n0t),new i0t),Ymn(e),ts(Hi(new Er(null,new Rr(e.a.b,16)),new a0t),new s0t),e.c==(U1(),eA)&&(ts(Hi(jl(new Er(null,new Rr(new E1(e.f),1)),new o0t),new l0t),new DTt(e)),ts(Hi(bu(jl(jl(new Er(null,new Rr(e.d.b,16)),new c0t),new u0t),new h0t),new f0t),new MTt(e))),ts(Hi(jl(new Er(null,new Rr(new E1(e.f),1)),new d0t),new p0t),new NTt(e)),p=new Lt(qa,qa),n=new Lt(Ys,Ys),u=new ye(e.a.b);u.a<u.c.c.length;)o=y(de(u),60),p.a=d.Math.min(p.a,o.d.c),p.b=d.Math.min(p.b,o.d.d),n.a=d.Math.max(n.a,o.d.c+o.d.b),n.b=d.Math.max(n.b,o.d.d+o.d.a);ra(hg(e.d.c),Xq(new Lt(p.a,p.b))),ra(hg(e.d.f),qs(new Lt(n.a,n.b),p)),Z2n(e,p,n),Sc(e.f),Sc(e.b),Sc(e.g),Sc(e.e),e.a.a.c.length=0,e.a.b.c.length=0,e.a=null,e.d=null}i(ECn,"rec");function JIe(e,n){XAt();var o,u,p,g,w,k,A;if(this.a=new xAe(this),this.b=e,this.c=n,this.f=Sce(Rl((yh(),Ro),n)),this.f.dc())if((k=TDe(Ro,e))==n)for(this.e=!0,this.d=new Pt,this.f=new Nbt,this.f.Ec(kw),y(eJ(h$(Ro,Nf(e)),""),29)==e&&this.f.Ec(P9(Ro,Nf(e))),p=Hfe(Ro,e).Jc();p.Ob();)switch(u=y(p.Pb(),179),Ix(Rl(Ro,u))){case 4:{this.d.Ec(u);break}case 5:{this.f.Fc(Sce(Rl(Ro,u)));break}}else if(tl(),y(n,69).vk())for(this.e=!0,this.f=null,this.d=new Pt,w=0,A=(e.i==null&&Q0(e),e.i).length;w<A;++w)for(u=(o=(e.i==null&&Q0(e),e.i),w>=0&&w<o.length?o[w]:null),g=U5(Rl(Ro,u));g;g=U5(Rl(Ro,g)))g==n&&this.d.Ec(u);else Ix(Rl(Ro,n))==1&&k?(this.f=null,this.d=(h6(),tar)):(this.f=null,this.e=!0,this.d=(Ir(),new goe(n)));else this.e=Ix(Rl(Ro,n))==5,this.f.Fb(rbe)&&(this.f=rbe)}i(JIe,"Jie");function yzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;for(o=0,u=T0n(e,n),z=e.s,ee=e.t,D=y(y(oa(e.r,n),22),83).Jc();D.Ob();)if(A=y(D.Pb(),115),!(!A.c||A.c.d.c.length<=0)){switch(ie=A.b.Kf(),k=A.b.nf((Ri(),tf))?He(Xe(A.b.mf(tf))):0,M=A.c,F=M.i,F.b=(w=M.n,M.e.a+w.b+w.c),F.a=(g=M.n,M.e.b+g.d+g.a),n.g){case 1:F.c=A.a?(ie.a-F.b)/2:ie.a+z,F.d=ie.b+k+u,mg(M,(Lh(),Iv)),V0(M,(Xu(),kg));break;case 3:F.c=A.a?(ie.a-F.b)/2:ie.a+z,F.d=-k-u-F.a,mg(M,(Lh(),Iv)),V0(M,(Xu(),qp));break;case 2:F.c=-k-u-F.b,A.a?(p=e.v?F.a:y(Wt(M.d,0),187).Kf().b,F.d=(ie.b-p)/2):F.d=ie.b+ee,mg(M,(Lh(),Hp)),V0(M,(Xu(),Mv));break;case 4:F.c=ie.a+k+u,A.a?(p=e.v?F.a:y(Wt(M.d,0),187).Kf().b,F.d=(ie.b-p)/2):F.d=ie.b+ee,mg(M,(Lh(),om)),V0(M,(Xu(),Mv))}(n==(zt(),sn)||n==Fn)&&(o=d.Math.max(o,F.a))}o>0&&(y(yl(e.b,n),127).a.b=o)}i(yzt,"VKb");function SCn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(ee=0,u=new gs,g=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));g.e!=g.i.gc();)p=y(_n(g),26),Kt(Xt(St(p,(Bt(),Dw))))||(F=$a(p),JK(F)&&!Kt(Xt(St(p,gZ)))&&(pa(p,(Tt(),Ea),Et(ee)),++ee,gg(p,$3)&&ys(u,y(St(p,$3),15))),mzt(e,p,o));for(dt(o,(Tt(),Pv),Et(ee)),dt(o,uj,Et(u.a.gc())),ee=0,M=new Sn((!n.b&&(n.b=new xt(Cs,n,12,3)),n.b));M.e!=M.i.gc();)A=y(_n(M),85),JK(n)&&(pa(A,Ea,Et(ee)),++ee),fe=wfe(A),Ce=dBt(A),z=Kt(Xt(St(fe,(Bt(),j3)))),ue=!Kt(Xt(St(A,Dw))),ie=z&&Kx(A)&&Kt(Xt(St(A,Lw))),w=$a(fe)==n&&$a(fe)==$a(Ce),k=($a(fe)==n&&Ce==n)^($a(Ce)==n&&fe==n),ue&&!ie&&(k||w)&&nMe(e,A,n,o);if($a(n))for(D=new Sn(F7t($a(n)));D.e!=D.i.gc();)A=y(_n(D),85),fe=wfe(A),fe==n&&Kx(A)&&(ie=Kt(Xt(St(fe,(Bt(),j3))))&&Kt(Xt(St(A,Lw))),ie&&nMe(e,A,n,o))}i(SCn,"O$b");function ACn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr;for(st=new Pt,ie=new ye(e.b);ie.a<ie.c.c.length;)for(ee=y(de(ie),25),Ce=new ye(ee.a);Ce.a<Ce.c.c.length;)if(ue=y(de(Ce),9),ue.k==(Yr(),ks)&&ea(ue,(Tt(),cZ))){for(Me=null,Ve=null,$e=null,gr=new ye(ue.j);gr.a<gr.c.c.length;)switch(yr=y(de(gr),12),yr.j.g){case 4:Me=yr;break;case 2:Ve=yr;break;default:$e=yr}for(ht=y(Wt($e.g,0),17),M=new KH(ht.a),D=new Vo($e.n),ra(D,ue.n),F=ei(M,0),EY(F,D),Ht=qLe(ht.a),z=new Vo($e.n),ra(z,ue.n),Ha(Ht,z,Ht.c.b,Ht.c),Pr=y(oe(ue,cZ),9),Mr=y(Wt(Pr.j,0),12),A=y(Zg(Me.e,tt(HR,SR,17,0,0,1)),324),u=A,g=0,k=u.length;g<k;++g)n=u[g],mo(n,Mr),phe(n.a,n.a.b,M);for(A=q0(Ve.g),o=A,p=0,w=o.length;p<w;++p)n=o[p],Bo(n,Mr),phe(n.a,0,Ht);Bo(ht,null),mo(ht,null),tn(st.c,ue)}for(fe=new ye(st);fe.a<fe.c.c.length;)ue=y(de(fe),9),Us(ue,null)}i(ACn,"i3b");function RCn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue;if(z=He(Xe(oe(e,(Bt(),cL)))),ee=He(Xe(oe(e,uL))),F=He(Xe(oe(e,q3))),k=e.o,g=y(Wt(e.j,0),12),w=g.n,ue=ebn(g,F),!!ue){if(n.Gc((_h(),ry)))switch(y(oe(e,(Tt(),gc)),64).g){case 1:ue.c=(k.a-ue.b)/2-w.a,ue.d=ee;break;case 3:ue.c=(k.a-ue.b)/2-w.a,ue.d=-ee-ue.a;break;case 2:o&&g.e.c.length==0&&g.g.c.length==0?(M=u?ue.a:y(Wt(g.f,0),70).o.b,ue.d=(k.b-M)/2-w.b):ue.d=k.b+ee-w.b,ue.c=-z-ue.b;break;case 4:o&&g.e.c.length==0&&g.g.c.length==0?(M=u?ue.a:y(Wt(g.f,0),70).o.b,ue.d=(k.b-M)/2-w.b):ue.d=k.b+ee-w.b,ue.c=z}else if(n.Gc(qv))switch(y(oe(e,(Tt(),gc)),64).g){case 1:case 3:ue.c=w.a+z;break;case 2:case 4:o&&!g.c?(M=u?ue.a:y(Wt(g.f,0),70).o.b,ue.d=(k.b-M)/2-w.b):ue.d=w.b+ee}for(p=ue.d,D=new ye(g.f);D.a<D.c.c.length;)A=y(de(D),70),ie=A.n,ie.a=ue.c,ie.b=p,p+=A.o.b+F}}i(RCn,"k6b");function QIe(e){var n;if(this.r=Xan(new $t,new qt),this.b=new bI(y(oi(Qo),298)),this.p=new bI(y(oi(Qo),298)),this.i=new bI(y(oi(XYt),298)),this.e=e,this.o=new Vo(e.Kf()),this.D=Kt(Xt(e.mf((Ri(),wL)))),this.F=e.Wf()||Kt(Xt(e.mf(Fj))),this.A=y(e.mf(Pw),22),this.B=y(e.mf(Uv),22),this.q=y(e.mf(EN),102),this.u=y(e.mf(t4),22),!ayn(this.u))throw xe(new _y("Invalid port label placement: "+this.u));if(this.v=Kt(Xt(e.mf(dVe))),this.j=y(e.mf(DE),22),!w2n(this.j))throw xe(new _y("Invalid node label placement: "+this.j));this.n=y(CI(e,eVe),104),this.k=He(Xe(CI(e,cee))),this.d=He(Xe(CI(e,yVe))),this.w=He(Xe(CI(e,TVe))),this.s=He(Xe(CI(e,bVe))),this.t=He(Xe(CI(e,vVe))),this.C=y(CI(e,wVe),140),this.c=2*this.d,n=!this.B.Gc((Zh(),Jj)),this.f=new xI(0,n,0),this.g=new xI(1,n,0),Ioe(this.f,(yg(),Cu),this.g)}i(QIe,"fJb");function LCn(){Fi(oz,new a2t),Fi(Mee,new m2t),Fi(lz,new A2t),Fi(PWe,new F2t),Fi(Zt,new z2t),Fi(Ee(xh,1),new U2t),Fi(Ja,new V2t),Fi(A6,new W2t),Fi(Zt,new Yvt),Fi(Zt,new Xvt),Fi(Zt,new Kvt),Fi(Ts,new Qvt),Fi(Zt,new Zvt),Fi(zf,new e2t),Fi(zf,new t2t),Fi(Zt,new r2t),Fi(VR,new n2t),Fi(Zt,new i2t),Fi(Zt,new s2t),Fi(Zt,new o2t),Fi(Zt,new l2t),Fi(Zt,new c2t),Fi(Ee(xh,1),new u2t),Fi(Zt,new h2t),Fi(Zt,new f2t),Fi(zf,new d2t),Fi(zf,new p2t),Fi(Zt,new g2t),Fi(Ls,new y2t),Fi(Zt,new b2t),Fi(fT,new v2t),Fi(Zt,new w2t),Fi(Zt,new x2t),Fi(Zt,new T2t),Fi(Zt,new k2t),Fi(zf,new C2t),Fi(zf,new E2t),Fi(Zt,new S2t),Fi(Zt,new R2t),Fi(Zt,new L2t),Fi(Zt,new _2t),Fi(Zt,new D2t),Fi(Zt,new I2t),Fi(dT,new M2t),Fi(Zt,new N2t),Fi(Zt,new O2t),Fi(Zt,new P2t),Fi(dT,new B2t),Fi(fT,new $2t),Fi(Zt,new G2t),Fi(Ls,new j2t)}i(LCn,"Qle");function bzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;switch(M=new Vh,e.a.g){case 3:z=y(oe(n.e,(Tt(),Aw)),16),ee=y(oe(n.j,Aw),16),ie=y(oe(n.f,Aw),16),o=y(oe(n.e,bE),16),u=y(oe(n.j,bE),16),p=y(oe(n.f,bE),16),w=new Pt,Is(w,z),ee.Ic(new emt),Is(w,bf(ee)),Is(w,ie),g=new Pt,Is(g,o),Is(g,bf(u)),Is(g,p),dt(n.f,Aw,w),dt(n.f,bE,g),dt(n.f,C$e,n.f),dt(n.e,Aw,null),dt(n.e,bE,null),dt(n.j,Aw,null),dt(n.j,bE,null);break;case 1:Fo(M,n.e.a),_i(M,n.i.n),Fo(M,bf(n.j.a)),_i(M,n.a.n),Fo(M,n.f.a);break;default:Fo(M,n.e.a),Fo(M,bf(n.j.a)),Fo(M,n.f.a)}gf(n.f.a),Fo(n.f.a,M),Bo(n.f,n.e.c),k=y(oe(n.e,(Bt(),Dl)),79),D=y(oe(n.j,Dl),79),A=y(oe(n.f,Dl),79),(k||D||A)&&(F=new Vh,u7e(F,A),u7e(F,D),u7e(F,k),dt(n.f,Dl,F)),Bo(n.j,null),mo(n.j,null),Bo(n.e,null),mo(n.e,null),Us(n.a,null),Us(n.i,null),n.g&&bzt(e,n.g)}i(bzt,"Nmc");function vzt(){vzt=U;var e,n,o;for(new N$(1,0),new N$(10,0),new N$(0,0),Jqt=tt(p0e,Dt,247,11,0,1),Ew=tt(Rd,em,30,100,15,1),oBe=Se(Ee(po,1),vl,30,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),lBe=tt(pi,Pi,30,oBe.length,15,1),cBe=Se(Ee(po,1),vl,30,15,[1,10,100,Qy,1e4,Wde,1e6,1e7,1e8,lJ,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),uBe=tt(pi,Pi,30,cBe.length,15,1),hBe=tt(p0e,Dt,247,11,0,1),e=0;e<hBe.length;e++)Jqt[e]=new N$(e,0),hBe[e]=new N$(0,e),Ew[e]=48;for(;e<Ew.length;e++)Ew[e]=48;for(o=0;o<lBe.length;o++)lBe[o]=m9e(oBe[o]);for(n=0;n<uBe.length;n++)uBe[n]=m9e(cBe[n]);iR()}i(vzt,"Dhb");function _Cn(){function e(){this.obj=this.createObject()}return i(e,"e"),e.prototype.createObject=function(n){return Object.create(null)},e.prototype.get=function(n){return this.obj[n]},e.prototype.set=function(n,o){this.obj[n]=o},e.prototype[Yde]=function(n){delete this.obj[n]},e.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},e.prototype.entries=function(){var n=this.keys(),o=this,u=0;return{next:i(function(){if(u>=n.length)return{done:!0};var p=n[u++];return{value:[p,o.get(p)],done:!1}},"next")}},Txn()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(n){return this.obj[":"+n]},e.prototype.set=function(n,o){this.obj[":"+n]=o},e.prototype[Yde]=function(n){delete this.obj[":"+n]},e.prototype.keys=function(){var n=[];for(var o in this.obj)o.charCodeAt(0)==58&&n.push(o.substring(1));return n}),e}i(_Cn,"Psb");function Ca(){Ca=U,hN=new ia(IMe),new ia(MMe),new Da("DEPTH",Et(0)),R1e=new Da("FAN",Et(0)),jje=new Da(GVt,Et(0)),zv=new Da("ROOT",(qr(),!1)),D1e=new Da("LEFTNEIGHBOR",null),etr=new Da("RIGHTNEIGHBOR",null),jZ=new Da("LEFTSIBLING",null),I1e=new Da("RIGHTSIBLING",null),A1e=new Da("DUMMY",!1),new Da("LEVEL",Et(0)),Vje=new Da("REMOVABLE_EDGES",new ya),Aj=new Da("XCOOR",Et(0)),Rj=new Da("YCOOR",Et(0)),zZ=new Da("LEVELHEIGHT",0),Eg=new Da("LEVELMIN",0),Kp=new Da("LEVELMAX",0),L1e=new Da("GRAPH_XMIN",0),_1e=new Da("GRAPH_YMIN",0),zje=new Da("GRAPH_XMAX",0),Uje=new Da("GRAPH_YMAX",0),Gje=new Da("COMPACT_LEVEL_ASCENSION",!1),S1e=new Da("COMPACT_CONSTRAINTS",new Pt),uN=new Da("ID",""),fN=new Da("POSITION",Et(0)),lb=new Da("PRELIM",0),gL=new Da("MODIFIER",0),pL=new ia(YUt),Sj=new ia(XUt)}i(Ca,"_Wc");function DCn(e){_Ie();var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(e==null)return null;if(F=e.length*8,F==0)return"";for(k=F%24,ee=F/24|0,z=k!=0?ee+1:ee,g=null,g=tt(Rd,em,30,z*4,15,1),D=0,M=0,n=0,o=0,u=0,w=0,p=0,A=0;A<ee;A++)n=e[p++],o=e[p++],u=e[p++],M=(o&15)<<24>>24,D=(n&3)<<24>>24,ie=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,ue=(o&-128)==0?o>>4<<24>>24:(o>>4^240)<<24>>24,fe=(u&-128)==0?u>>6<<24>>24:(u>>6^252)<<24>>24,g[w++]=yb[ie],g[w++]=yb[ue|D<<4],g[w++]=yb[M<<2|fe],g[w++]=yb[u&63];return k==8?(n=e[p],D=(n&3)<<24>>24,ie=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,g[w++]=yb[ie],g[w++]=yb[D<<4],g[w++]=61,g[w++]=61):k==16&&(n=e[p],o=e[p+1],M=(o&15)<<24>>24,D=(n&3)<<24>>24,ie=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,ue=(o&-128)==0?o>>4<<24>>24:(o>>4^240)<<24>>24,g[w++]=yb[ie],g[w++]=yb[ue|D<<4],g[w++]=yb[M<<2],g[w++]=61),Jd(g,0,g.length)}i(DCn,"Ooe");function ICn(e,n){var o,u,p,g,w,k,A;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>bo&&hRe(n,e.p-Ev),w=n.q.getDate(),XF(n,1),e.k>=0&&son(n,e.k),e.c>=0?XF(n,e.c):e.k>=0?(A=new zLe(n.q.getFullYear()-Ev,n.q.getMonth(),35),u=35-A.q.getDate(),XF(n,d.Math.min(u,w))):XF(n,w),e.f<0&&(e.f=n.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),pen(n,e.f==24&&e.g?0:e.f),e.j>=0&&$cn(n,e.j),e.n>=0&&Zcn(n,e.n),e.i>=0&&qSt(n,Ho($o(V$(vc(n.q.getTime()),Qy),Qy),e.i)),e.a&&(p=new oq,hRe(p,p.q.getFullYear()-Ev-80),Yoe(vc(n.q.getTime()),vc(p.q.getTime()))&&hRe(n,p.q.getFullYear()-Ev+100)),e.d>=0){if(e.c==-1)o=(7+e.d-n.q.getDay())%7,o>3&&(o-=7),k=n.q.getMonth(),XF(n,n.q.getDate()+o),n.q.getMonth()!=k&&XF(n,n.q.getDate()+(o>0?-7:7));else if(n.q.getDay()!=e.d)return!1}return e.o>bo&&(g=n.q.getTimezoneOffset(),qSt(n,Ho(vc(n.q.getTime()),(e.o-g)*60*Qy))),!0}i(ICn,"uB");function wzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;if(p=oe(n,(Tt(),aa)),!!Ge(p,206)){for(ie=y(p,26),ue=n.e,z=new Vo(n.c),g=n.d,z.a+=g.b,z.b+=g.d,Ve=y(St(ie,(Bt(),EZ)),182),dh(Ve,(Zh(),gee))&&(ee=y(St(ie,NGe),104),JKr(ee,g.a),rJr(ee,g.d),QKr(ee,g.b),ZKr(ee,g.c)),o=new Pt,M=new ye(n.a);M.a<M.c.c.length;)for(A=y(de(M),9),Ge(oe(A,aa),206)?PCn(A,z):Ge(oe(A,aa),193)&&!ue&&(u=y(oe(A,aa),125),Me=ljt(n,A,u.g,u.f),ld(u,Me.a,Me.b)),Ce=new ye(A.j);Ce.a<Ce.c.c.length;)fe=y(de(Ce),12),ts(Hi(new Er(null,new Rr(fe.g,16)),new tTt(A)),new rTt(o));if(ue)for(Ce=new ye(ue.j);Ce.a<Ce.c.c.length;)fe=y(de(Ce),12),ts(Hi(new Er(null,new Rr(fe.g,16)),new nTt(ue)),new iTt(o));for($e=y(St(ie,Z1),222),k=new ye(o);k.a<k.c.c.length;)w=y(de(k),17),Q4n(w,$e,z);for(GTn(n),D=new ye(n.a);D.a<D.c.c.length;)A=y(de(D),9),F=A.e,F&&wzt(e,F)}}i(wzt,"v_b");function xzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee;if(!y(y(oa(e.r,n),22),83).dc()){if(w=y(yl(e.b,n),127),A=w.i,k=w.n,M=Ffe(e,n),u=A.b-k.b-k.c,p=w.a.a,g=A.c+k.b,ee=e.w,(M==(BC(),Wv)||M==Hj)&&y(y(oa(e.r,n),22),83).gc()==1&&(p=M==Wv?p-2*e.w:p,M=LN),u<p&&!e.B.Gc((Zh(),mee)))M==Wv?(ee+=(u-p)/(y(y(oa(e.r,n),22),83).gc()+1),g+=ee):ee+=(u-p)/(y(y(oa(e.r,n),22),83).gc()-1);else switch(u<p&&(p=M==Wv?p-2*e.w:p,M=LN),M.g){case 3:g+=(u-p)/2;break;case 4:g+=u-p;break;case 0:o=(u-p)/(y(y(oa(e.r,n),22),83).gc()+1),ee+=d.Math.max(0,o),g+=ee;break;case 1:o=(u-p)/(y(y(oa(e.r,n),22),83).gc()-1),ee+=d.Math.max(0,o)}for(z=y(y(oa(e.r,n),22),83).Jc();z.Ob();)F=y(z.Pb(),115),F.e.a=g+F.d.b,F.e.b=(D=F.b,D.nf((Ri(),tf))?D.$f()==(zt(),sn)?-D.Kf().b-He(Xe(D.mf(tf))):He(Xe(D.mf(tf))):D.$f()==(zt(),sn)?-D.Kf().b:0),g+=F.d.b+F.b.Kf().a+F.d.c+ee}}i(xzt,"aLb");function Tzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(!y(y(oa(e.r,n),22),83).dc()){if(w=y(yl(e.b,n),127),A=w.i,k=w.n,F=Ffe(e,n),u=A.a-k.d-k.a,p=w.a.b,g=A.d+k.d,ie=e.w,D=e.o.a,(F==(BC(),Wv)||F==Hj)&&y(y(oa(e.r,n),22),83).gc()==1&&(p=F==Wv?p-2*e.w:p,F=LN),u<p&&!e.B.Gc((Zh(),mee)))F==Wv?(ie+=(u-p)/(y(y(oa(e.r,n),22),83).gc()+1),g+=ie):ie+=(u-p)/(y(y(oa(e.r,n),22),83).gc()-1);else switch(u<p&&(p=F==Wv?p-2*e.w:p,F=LN),F.g){case 3:g+=(u-p)/2;break;case 4:g+=u-p;break;case 0:o=(u-p)/(y(y(oa(e.r,n),22),83).gc()+1),ie+=d.Math.max(0,o),g+=ie;break;case 1:o=(u-p)/(y(y(oa(e.r,n),22),83).gc()-1),ie+=d.Math.max(0,o)}for(ee=y(y(oa(e.r,n),22),83).Jc();ee.Ob();)z=y(ee.Pb(),115),z.e.a=(M=z.b,M.nf((Ri(),tf))?M.$f()==(zt(),on)?-M.Kf().a-He(Xe(M.mf(tf))):D+He(Xe(M.mf(tf))):M.$f()==(zt(),on)?-M.Kf().a:D),z.e.b=g+z.d.d,g+=z.d.d+z.b.Kf().b+z.d.a+ie}}i(Tzt,"eLb");function MCn(e,n){var o,u,p,g,w;for(n.Tg("Processor determine the coords for each level",1),u=new Pt,w=ei(e.b,0);w.b!=w.d.c;){for(p=y(Qn(w),40);y(oe(p,(uc(),um)),15).a>u.c.length-1;)Nt(u,new Ko(eE,dOe));o=y(oe(p,um),15).a,R1(y(oe(e,CT),86))?(p.e.a<He(Xe((_r(o,u.c.length),y(u.c[o],49)).a))&&doe((_r(o,u.c.length),y(u.c[o],49)),p.e.a),p.e.a+p.f.a>He(Xe((_r(o,u.c.length),y(u.c[o],49)).b))&&poe((_r(o,u.c.length),y(u.c[o],49)),p.e.a+p.f.a)):(p.e.b<He(Xe((_r(o,u.c.length),y(u.c[o],49)).a))&&doe((_r(o,u.c.length),y(u.c[o],49)),p.e.b),p.e.b+p.f.b>He(Xe((_r(o,u.c.length),y(u.c[o],49)).b))&&poe((_r(o,u.c.length),y(u.c[o],49)),p.e.b+p.f.b))}for(g=ei(e.b,0);g.b!=g.d.c;)p=y(Qn(g),40),o=y(oe(p,(uc(),um)),15).a,dt(p,(Ca(),Eg),Xe((_r(o,u.c.length),y(u.c[o],49)).a)),dt(p,Kp,Xe((_r(o,u.c.length),y(u.c[o],49)).b));n.Ug()}i(MCn,"MVc");function NCn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(e.o=He(Xe(oe(e.i,(Bt(),Mw)))),e.f=He(Xe(oe(e.i,Fv))),e.j=e.i.b.c.length,k=e.j-1,z=0,e.k=0,e.n=0,e.b=Bp(tt(Ls,Dt,15,e.j,0,1)),e.c=Bp(tt(Ts,Dt,346,e.j,7,1)),w=new ye(e.i.b);w.a<w.c.c.length;){for(p=y(de(w),25),p.p=k,F=new ye(p.a);F.a<F.c.c.length;)M=y(de(F),9),M.p=z,++z;--k}for(e.g=tt(pi,Pi,30,z,15,1),e.d=Fk(pi,[Dt,Pi],[54,30],15,[z,3],2),e.p=new Pt,e.q=new Pt,n=0,e.e=0,g=new ye(e.i.b);g.a<g.c.c.length;){for(p=y(de(g),25),k=p.p,u=0,ue=0,A=p.a.c.length,D=0,F=new ye(p.a);F.a<F.c.c.length;)M=y(de(F),9),z=M.p,e.g[z]=M.c.p,D+=M.o.b+e.o,o=dg(new nn(cn(os(M).a.Jc(),new B))),ie=dg(new nn(cn(Ra(M).a.Jc(),new B))),e.d[z][0]=ie-o,e.d[z][1]=o,e.d[z][2]=ie,u+=o,ue+=ie,o>0&&Nt(e.q,M),Nt(e.p,M);n-=u,ee=A+n,D+=n*e.f,Mf(e.b,k,Et(ee)),Mf(e.c,k,D),e.k=d.Math.max(e.k,ee),e.n=d.Math.max(e.n,D),e.e+=n,n+=ue}}i(NCn,"M8b");function kzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;if(n.b!=0){for(ee=new ya,k=null,ie=null,u=Po(d.Math.floor(d.Math.log(n.b)*d.Math.LOG10E)+1),A=0,$e=ei(n,0);$e.b!=$e.d.c;)for(Ce=y(Qn($e),40),Qe(ie)!==Qe(oe(Ce,(Ca(),uN)))&&(ie=di(oe(Ce,uN)),A=0),ie!=null?k=ie+lLt(A++,u):k=lLt(A++,u),dt(Ce,uN,k),fe=(p=ei(new A1(Ce).a.d,0),new aC(p));tF(fe.a);)ue=y(Qn(fe.a),65).c,Ha(ee,ue,ee.c.b,ee.c),dt(ue,uN,k);for(z=new jn,w=0;w<k.length-u;w++)for(Me=ei(n,0);Me.b!=Me.d.c;)Ce=y(Qn(Me),40),D=Yd(di(oe(Ce,(Ca(),uN))),0,w+1),o=(D==null?Yl(Sl(z.f,null)):h9(z.i,D))!=null?y(D==null?Yl(Sl(z.f,null)):h9(z.i,D),15).a+1:1,Al(z,D,Et(o));for(F=new t3(new yk(z).a);F.b;)M=MC(F),g=Et(Jr(e.a,M.jd())!=null?y(Jr(e.a,M.jd()),15).a:0),Al(e.a,di(M.jd()),Et(y(M.kd(),15).a+g.a)),g=y(Jr(e.b,M.jd()),15),(!g||g.a<y(M.kd(),15).a)&&Al(e.b,di(M.jd()),y(M.kd(),15));kzt(e,ee)}}i(kzt,"cVc");function OCn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(o.Tg("Breadth first model order layering",1),e.a=n,fe=new Pt,ue=new ye(e.a.a);ue.a<ue.c.c.length;)ee=y(de(ue),9),ee.k==(Yr(),Ya)&&tn(fe.c,ee);for(Ir(),zs(fe,new mmt),A=!0,p=new Nc(e.a),u=null,Nt(e.a.b,p),ie=new ye(fe);ie.a<ie.c.c.length;)if(ee=y(de(ie),9),A)Us(ee,p),A=!1;else{for(k=new nn(cn(os(ee).a.Jc(),new B));Nn(k);)g=y(vn(k),17),(g.c.i.k==(Yr(),Ya)&&g.c.i.c==p||g.c.i.k==_c&&y(vn(new nn(cn(os(g.c.i).a.Jc(),new B))),17).c.i.c==p)&&(u=new Nc(e.a),Nt(e.a.b,u),p=new Nc(e.a),Nt(e.a.b,p));for(w=new nn(cn(os(ee).a.Jc(),new B));Nn(w);)g=y(vn(w),17),g.c.i.k==(Yr(),_c)&&!g.c.i.c&&Us(g.c.i,u);Us(ee,p)}for(e.a.a.c.length=0,Ce=new Pt,F=new ye(e.a.b);F.a<F.c.c.length;)D=y(de(F),25),D.a.c.length==0&&tn(Ce.c,D);for(v_e(e.a.b,Ce),z=0,M=new ye(e.a.b);M.a<M.c.c.length;)D=y(de(M),25),D.p=z,++z;o.Ug()}i(OCn,"ICc");function zt(){zt=U;var e;rc=new xF(QI,0),sn=new xF("NORTH",1),bn=new xF("EAST",2),Fn=new xF("SOUTH",3),on=new xF("WEST",4),y0=(Ir(),new j8((e=y(ug(Qo),10),new ud(e,y(Np(e,e.length),10),0)))),tg=Wy(ka(sn,Se(Ee(Qo,1),Rc,64,0,[]))),Sd=Wy(ka(bn,Se(Ee(Qo,1),Rc,64,0,[]))),Wf=Wy(ka(Fn,Se(Ee(Qo,1),Rc,64,0,[]))),sp=Wy(ka(on,Se(Ee(Qo,1),Rc,64,0,[]))),rh=Wy(ka(sn,Se(Ee(Qo,1),Rc,64,0,[Fn]))),$u=Wy(ka(bn,Se(Ee(Qo,1),Rc,64,0,[on]))),rg=Wy(ka(sn,Se(Ee(Qo,1),Rc,64,0,[on]))),Nh=Wy(ka(sn,Se(Ee(Qo,1),Rc,64,0,[bn]))),Hf=Wy(ka(Fn,Se(Ee(Qo,1),Rc,64,0,[on]))),Ad=Wy(ka(bn,Se(Ee(Qo,1),Rc,64,0,[Fn]))),Oh=Wy(ka(sn,Se(Ee(Qo,1),Rc,64,0,[bn,on]))),th=Wy(ka(bn,Se(Ee(Qo,1),Rc,64,0,[Fn,on]))),nh=Wy(ka(sn,Se(Ee(Qo,1),Rc,64,0,[Fn,on]))),wh=Wy(ka(sn,Se(Ee(Qo,1),Rc,64,0,[bn,Fn]))),su=Wy(ka(sn,Se(Ee(Qo,1),Rc,64,0,[bn,Fn,on])))}i(zt,"Bmd");function PCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(u=y(oe(e,(Tt(),aa)),26),ie=y(oe(e,(Bt(),mZ)),15).a,g=y(oe(e,KM),15).a,pa(u,mZ,Et(ie)),pa(u,KM,Et(g)),Xh(u,e.n.a+n.a),Kh(u,e.n.b+n.b),(y(St(u,Bv),182).gc()!=0||e.e||Qe(oe(Zs(e),CZ))===Qe((TI(),hL))&&y5t((l3(),(e.q?e.q:(Ir(),Ir(),Qm))._b(_w)?z=y(oe(e,_w),203):z=y(oe(Zs(e),aL),203),z)))&&(Gx(u,e.o.a),$x(u,e.o.b)),F=new ye(e.j);F.a<F.c.c.length;)D=y(de(F),12),ue=oe(D,aa),Ge(ue,193)&&(p=y(ue,125),ld(p,D.n.a,D.n.b),pa(p,oL,D.j));for(ee=y(oe(e,xT),182).gc()!=0,A=new ye(e.b);A.a<A.c.c.length;)w=y(de(A),70),(ee||y(oe(w,xT),182).gc()!=0)&&(o=y(oe(w,aa),157),kx(o,w.o.a,w.o.b),ld(o,w.n.a,w.n.b));if(!$9(y(oe(e,V3),22)))for(M=new ye(e.j);M.a<M.c.c.length;)for(D=y(de(M),12),k=new ye(D.f);k.a<k.c.c.length;)w=y(de(k),70),o=y(oe(w,aa),157),Gx(o,w.o.a),$x(o,w.o.b),ld(o,w.n.a,w.n.b)}i(PCn,"w_b");function BCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr;for(n.Tg("Calculate Graph Size",1),n.bh(e,TOe),F=eE,z=eE,D=Zpe,M=Zpe,ue=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));ue.e!=ue.i.gc();)ee=y(_n(ue),26),Me=ee.i,$e=ee.j,gr=ee.g,k=ee.f,A=y(St(ee,(Ri(),bL)),140),F=d.Math.min(F,Me-A.b),z=d.Math.min(z,$e-A.d),D=d.Math.max(D,Me+gr+A.c),M=d.Math.max(M,$e+k+A.a);for(Ce=y(St(e,(Ri(),r1)),104),fe=new Lt(F-Ce.b,z-Ce.d),yr=D-F+(Ce.b+Ce.c),w=M-z+(Ce.d+Ce.a),Kt(Xt(St(e,(wv(),bze))))&&(Ve=y(St(e,(TC(),SE)),26),ht=y(St(Ve,bL),140),st=Ve.i+Ve.g/2+(ht.b+ht.c)/2-fe.a,Ht=Ve.j+Ve.f/2+(ht.d+ht.a)/2-fe.b,p=yr-st,g=w-Ht,p<yr/2?(o=p-st,yr+=o,fe.a-=o):(o=st-p,yr+=o),g<w/2?(u=g-Ht,w+=u,fe.b-=u):(u=Ht-g,w+=u)),ie=new Sn((!e.a&&(e.a=new xt(Ti,e,10,11)),e.a));ie.e!=ie.i.gc();)ee=y(_n(ie),26),Xh(ee,ee.i-fe.a),Kh(ee,ee.j-fe.b);Kt(Xt(St(e,e4)))||(Gx(e,yr),$x(e,w)),pa(e,Z3,yr-(Ce.b+Ce.c)),pa(e,Q3,w-(Ce.d+Ce.a)),n.bh(e,GJ)}i(BCn,"G_c");function FCn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee;if(e.e.a.$b(),e.f.a.$b(),e.c.c.length=0,e.i.c.length=0,e.g.a.$b(),n)for(w=new ye(n.a);w.a<w.c.c.length;)for(g=y(de(w),9),F=Ky(g,(zt(),bn)).Jc();F.Ob();)for(M=y(F.Pb(),12),ys(e.e,M),p=new ye(M.g);p.a<p.c.c.length;)u=y(de(p),17),!Mo(u)&&(Nt(e.c,u),LOt(e,u),k=u.c.i.k,(k==(Yr(),Ya)||k==iu||k==ks||k==u0)&&Nt(e.j,u),ee=u.d,z=ee.i.c,z==o?ys(e.f,ee):z==n?ys(e.e,ee):Yu(e.c,u));if(o)for(w=new ye(o.a);w.a<w.c.c.length;){for(g=y(de(w),9),D=new ye(g.j);D.a<D.c.c.length;)for(A=y(de(D),12),p=new ye(A.g);p.a<p.c.c.length;)u=y(de(p),17),Mo(u)&&ys(e.g,u);for(F=Ky(g,(zt(),on)).Jc();F.Ob();)for(M=y(F.Pb(),12),ys(e.f,M),p=new ye(M.g);p.a<p.c.c.length;)u=y(de(p),17),!Mo(u)&&(Nt(e.c,u),LOt(e,u),k=u.c.i.k,(k==(Yr(),Ya)||k==iu||k==ks||k==u0)&&Nt(e.j,u),ee=u.d,z=ee.i.c,z==o?ys(e.f,ee):z==n?ys(e.e,ee):Yu(e.c,u))}}i(FCn,"rRc");function $Cn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;for(o.Tg("Polyline edge routing",1),fe=He(Xe(oe(n,(Bt(),mGe)))),ee=He(Xe(oe(n,Y3))),p=He(Xe(oe(n,H3))),u=d.Math.min(1,p/ee),$e=0,A=0,n.b.c.length!=0&&(Ve=v$t(y(Wt(n.b,0),25)),$e=.4*u*Ve),k=new yo(n.b,0);k.b<k.d.gc();){for(w=(In(k.b<k.d.gc()),y(k.d.Xb(k.c=k.b++),25)),g=Nq(w,Cj),g&&$e>0&&($e-=ee),zIe(w,$e),M=0,z=new ye(w.a);z.a<z.c.c.length;){for(F=y(de(z),9),D=0,ue=new nn(cn(Ra(F).a.Jc(),new B));Nn(ue);)ie=y(vn(ue),17),Ce=Xg(ie.c).b,Me=Xg(ie.d).b,w==ie.d.i.c&&!Mo(ie)&&(nvn(ie,$e,.4*u*d.Math.abs(Ce-Me)),ie.c.j==(zt(),on)&&(Ce=0,Me=0)),D=d.Math.max(D,d.Math.abs(Me-Ce));switch(F.k.g){case 0:case 4:case 1:case 3:case 5:n4n(e,F,$e,fe)}M=d.Math.max(M,D)}k.b<k.d.gc()&&(Ve=v$t((In(k.b<k.d.gc()),y(k.d.Xb(k.c=k.b++),25))),M=d.Math.max(M,Ve),In(k.b>0),k.a.Xb(k.c=--k.b)),A=.4*u*M,!g&&k.b<k.d.gc()&&(A+=ee),$e+=w.c.a+A}e.a.a.$b(),n.f.a=$e,o.Ug()}i($Cn,"TOc");function GCn(e){var n,o,u,p,g;switch(HF(e,nHt),(!e.b&&(e.b=new zr(Hn,e,4,7)),e.b).i+(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c).i){case 0:throw xe(new rn("The edge must have at least one source or target."));case 1:return(!e.b&&(e.b=new zr(Hn,e,4,7)),e.b).i==0?$a(Pl(y(je((!e.c&&(e.c=new zr(Hn,e,5,8)),e.c),0),84))):$a(Pl(y(je((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),0),84)))}if((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b).i==1&&(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c).i==1){if(p=Pl(y(je((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),0),84)),g=Pl(y(je((!e.c&&(e.c=new zr(Hn,e,5,8)),e.c),0),84)),$a(p)==$a(g))return $a(p);if(p==$a(g))return p;if(g==$a(p))return g}for(u=Gm(pd(Se(Ee(kd,1),Fr,20,0,[(!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),(!e.c&&(e.c=new zr(Hn,e,5,8)),e.c)]))),n=Pl(y(vn(u),84));Nn(u);)if(o=Pl(y(vn(u),84)),o!=n&&!Qk(o,n)){if($a(o)==$a(n))n=$a(o);else if(n=d2n(n,o),!n)return null}return n}i(GCn,"ZEd");function ZIe(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;if(z=n.length,z>0&&(A=(un(0,n.length),n.charCodeAt(0)),A!=64)){if(A==37&&(F=n.lastIndexOf("%"),D=!1,F!=0&&(F==z-1||(D=(un(F+1,n.length),n.charCodeAt(F+1)==46))))){if(w=(ko(1,F,n.length),n.substr(1,F-1)),$e=Cr("%",w)?null:eMe(w),u=0,D)try{u=Ff((un(F+2,n.length+1),n.substr(F+2)),bo,Ui)}catch(Ve){throw Ve=hs(Ve),Ge(Ve,131)?(k=Ve,xe(new fX(k))):xe(Ve)}for(fe=vLe(e.Dh());fe.Ob();)if(ie=PX(fe),Ge(ie,505)&&(p=y(ie,588),Me=p.d,($e==null?Me==null:Cr($e,Me))&&u--==0))return p;return null}if(M=n.lastIndexOf("."),ee=M==-1?n:(ko(0,M,n.length),n.substr(0,M)),o=0,M!=-1)try{o=Ff((un(M+1,n.length+1),n.substr(M+1)),bo,Ui)}catch(Ve){if(Ve=hs(Ve),Ge(Ve,131))ee=n;else throw xe(Ve)}for(ee=Cr("%",ee)?null:eMe(ee),ue=vLe(e.Dh());ue.Ob();)if(ie=PX(ue),Ge(ie,197)&&(g=y(ie,197),Ce=g.ve(),(ee==null?Ce==null:Cr(ee,Ce))&&o--==0))return g;return null}return lzt(e,n)}i(ZIe,"vxd");function jCn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me;for(M=new jn,A=new Ox,u=new ye(e.a.a.b);u.a<u.c.c.length;)if(n=y(de(u),60),D=EC(n),D)Ju(M.f,D,n);else if(Me=V5(n),Me)for(g=new ye(Me.k);g.a<g.c.c.length;)p=y(de(g),17),Sr(A,p,n);for(o=new ye(e.a.a.b);o.a<o.c.c.length;)if(n=y(de(o),60),D=EC(n),D){for(k=new nn(cn(Ra(D).a.Jc(),new B));Nn(k);)if(w=y(vn(k),17),!Mo(w)&&(ie=w.c,Ce=w.d,!((zt(),rh).Gc(w.c.j)&&rh.Gc(w.d.j)))){if(ue=y(Jr(M,w.d.i),60),Up(Dp(_p(Ip(Lp(new Vd,0),100),e.c[n.a.d]),e.c[ue.a.d])),ie.j==on&&$8t((mh(),ie))){for(z=y(oa(A,w),22).Jc();z.Ob();)if(F=y(z.Pb(),60),F.d.c<n.d.c){if(ee=e.c[F.a.d],fe=e.c[n.a.d],ee==fe)continue;Up(Dp(_p(Ip(Lp(new Vd,1),100),ee),fe))}}if(Ce.j==bn&&F8t((mh(),Ce))){for(z=y(oa(A,w),22).Jc();z.Ob();)if(F=y(z.Pb(),60),F.d.c>n.d.c){if(ee=e.c[n.a.d],fe=e.c[F.a.d],ee==fe)continue;Up(Dp(_p(Ip(Lp(new Vd,1),100),ee),fe))}}}}}i(jCn,"Sfc");function zCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;if(z=y(y(oa(e.r,n),22),83),n==(zt(),bn)||n==on){yzt(e,n);return}for(g=n==sn?(zx(),JG):(zx(),QG),Ve=n==sn?(Xu(),kg):(Xu(),qp),o=y(yl(e.b,n),127),u=o.i,p=u.c+AC(Se(Ee(po,1),vl,30,15,[o.n.b,e.C.b,e.k])),Ce=u.c+u.b-AC(Se(Ee(po,1),vl,30,15,[o.n.c,e.C.c,e.k])),w=o6e(T8e(g),e.t),Me=n==sn?Ys:qa,F=z.Jc();F.Ob();)D=y(F.Pb(),115),!(!D.c||D.c.d.c.length<=0)&&(fe=D.b.Kf(),ue=D.e,ee=D.c,ie=ee.i,ie.b=(A=ee.n,ee.e.a+A.b+A.c),ie.a=(k=ee.n,ee.e.b+k.d+k.a),HF(Ve,EMe),ee.f=Ve,mg(ee,(Lh(),Hp)),ie.c=ue.a-(ie.b-fe.a)/2,ht=d.Math.min(p,ue.a),st=d.Math.max(Ce,ue.a+fe.a),ie.c<ht?ie.c=ht:ie.c+ie.b>st&&(ie.c=st-ie.b),Nt(w.d,new yce(ie,y_e(w,ie))),Me=n==sn?d.Math.max(Me,ue.b+D.b.Kf().b):d.Math.min(Me,ue.b));for(Me+=n==sn?e.t:-e.t,$e=O_e((w.e=Me,w)),$e>0&&(y(yl(e.b,n),127).a.b=$e),M=z.Jc();M.Ob();)D=y(M.Pb(),115),!(!D.c||D.c.d.c.length<=0)&&(ie=D.c.i,ie.c-=D.e.a,ie.d-=D.e.b)}i(zCn,"RKb");function UCn(e,n){tde();var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;if(A=eu(e,0)<0,A&&(e=zy(e)),eu(e,0)==0)switch(n){case 0:return"0";case 1:return mR;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return ee=new Yb,n<0?ee.a+="0E+":ee.a+="0E",ee.a+=n==bo?"2147483648":""+-n,ee.a}M=18,F=tt(Rd,em,30,M+1,15,1),o=M,ue=e;do D=ue,ue=V$(ue,10),F[--o]=mi(Ho(48,Kd(D,$o(ue,10))))&As;while(eu(ue,0)!=0);if(p=Kd(Kd(Kd(M,o),n),1),n==0)return A&&(F[--o]=45),Jd(F,o,M-o);if(n>0&&eu(p,-6)>=0){if(eu(p,0)>=0){for(g=o+mi(p),k=M-1;k>=g;k--)F[k+1]=F[k];return F[++g]=46,A&&(F[--o]=45),Jd(F,o,M-o+1)}for(w=2;Yoe(w,Ho(zy(p),1));w++)F[--o]=48;return F[--o]=46,F[--o]=48,A&&(F[--o]=45),Jd(F,o,M-o)}return ie=o+1,u=M,z=new sC,A&&(z.a+="-"),u-ie>=1?(nv(z,F[o]),z.a+=".",z.a+=Jd(F,o+1,M-o-1)):z.a+=Jd(F,o,M-o),z.a+="E",eu(p,0)>0&&(z.a+="+"),z.a+=""+B9(p),z.a}i(UCn,"Jib");function Czt(e){Sk(e,new Xx(XH(Ck(xk(kk(Tk(new yx,wd),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new cyt),wd))),_t(e,wd,OJ,Vt(Ktr)),_t(e,wd,k3,Vt(Jtr)),_t(e,wd,QC,Vt(Htr)),_t(e,wd,C6,Vt(qtr)),_t(e,wd,k6,Vt(Ytr)),_t(e,wd,CR,Vt(Wtr)),_t(e,wd,rM,Vt(vze)),_t(e,wd,ER,Vt(Xtr)),_t(e,wd,lge,Vt(W1e)),_t(e,wd,oge,Vt(H1e)),_t(e,wd,jJ,Vt(xze)),_t(e,wd,cge,Vt(q1e)),_t(e,wd,uge,Vt(Tze)),_t(e,wd,DOe,Vt(kze)),_t(e,wd,_Oe,Vt(wze)),_t(e,wd,SOe,Vt(qZ)),_t(e,wd,AOe,Vt(YZ)),_t(e,wd,ROe,Vt(Lj)),_t(e,wd,LOe,Vt(Cze)),_t(e,wd,EOe,Vt(bze))}i(Czt,"K1c");function eT(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;if(fe=new Lt(e.g,e.f),ue=l9e(e),ue.a=d.Math.max(ue.a,n),ue.b=d.Math.max(ue.b,o),st=ue.a/fe.a,M=ue.b/fe.b,Ve=ue.a-fe.a,A=ue.b-fe.b,u)for(w=$a(e)?y(St($a(e),(Ri(),Ow)),86):y(St(e,(Ri(),Ow)),86),k=Qe(St(e,(Ri(),EN)))===Qe((uo(),zc)),Me=new Sn((!e.c&&(e.c=new xt(rf,e,9,9)),e.c));Me.e!=Me.i.gc();)switch(Ce=y(_n(Me),125),$e=y(St(Ce,ME),64),$e==(zt(),rc)&&($e=DIe(Ce,w),pa(Ce,ME,$e)),$e.g){case 1:k||Xh(Ce,Ce.i*st);break;case 2:Xh(Ce,Ce.i+Ve),k||Kh(Ce,Ce.j*M);break;case 3:k||Xh(Ce,Ce.i*st),Kh(Ce,Ce.j+A);break;case 4:k||Kh(Ce,Ce.j*M)}if(kx(e,ue.a,ue.b),p)for(z=new Sn((!e.n&&(e.n=new xt(nc,e,1,7)),e.n));z.e!=z.i.gc();)F=y(_n(z),157),ee=F.i+F.g/2,ie=F.j+F.f/2,ht=ee/fe.a,D=ie/fe.b,ht+D>=1&&(ht-D>0&&ie>=0?(Xh(F,F.i+Ve),Kh(F,F.j+A*D)):ht-D<0&&ee>=0&&(Xh(F,F.i+Ve*ht),Kh(F,F.j+A)));return pa(e,(Ri(),Pw),(vf(),g=y(ug(MN),10),new ud(g,y(Np(g,g.length),10),0))),new Lt(st,M)}i(eT,"eqd");function nJ(e){var n,o,u,p,g,w,k,A,D,M,F;if(e==null)throw xe(new z0(Qu));if(D=e,g=e.length,A=!1,g>0&&(n=(un(0,e.length),e.charCodeAt(0)),(n==45||n==43)&&(e=(un(1,e.length+1),e.substr(1)),--g,A=n==45)),g==0)throw xe(new z0(nT+D+'"'));for(;e.length>0&&(un(0,e.length),e.charCodeAt(0)==48);)e=(un(1,e.length+1),e.substr(1)),--g;if(g>(rjt(),Xqt)[10])throw xe(new z0(nT+D+'"'));for(p=0;p<g;p++)if(hOt((un(p,e.length),e.charCodeAt(p)))==-1)throw xe(new z0(nT+D+'"'));for(F=0,w=nBe[10],M=d0e[10],k=zy(iBe[10]),o=!0,u=g%w,u>0&&(F=-parseInt((ko(0,u,e.length),e.substr(0,u)),10),e=(un(u,e.length+1),e.substr(u)),g-=u,o=!1);g>=w;){if(u=parseInt((ko(0,w,e.length),e.substr(0,w)),10),e=(un(w,e.length+1),e.substr(w)),g-=w,o)o=!1;else{if(eu(F,k)<0)throw xe(new z0(nT+D+'"'));F=$o(F,M)}F=Kd(F,u)}if(eu(F,0)>0)throw xe(new z0(nT+D+'"'));if(!A&&(F=zy(F),eu(F,0)<0))throw xe(new z0(nT+D+'"'));return F}i(nJ,"Zdb");function eMe(e){ode();var n,o,u,p,g,w,k,A;if(e==null)return null;if(p=U0(e,Ku(37)),p<0)return e;for(A=new Lf((ko(0,p,e.length),e.substr(0,p))),n=tt(xh,nE,30,4,15,1),k=0,u=0,w=e.length;p<w;p++)if(un(p,e.length),e.charCodeAt(p)==37&&e.length>p+2&&ihe((un(p+1,e.length),e.charCodeAt(p+1)),pWe,gWe)&&ihe((un(p+2,e.length),e.charCodeAt(p+2)),pWe,gWe))if(o=din((un(p+1,e.length),e.charCodeAt(p+1)),(un(p+2,e.length),e.charCodeAt(p+2))),p+=2,u>0?(o&192)==128?n[k++]=o<<24>>24:u=0:o>=128&&((o&224)==192?(n[k++]=o<<24>>24,u=2):(o&240)==224?(n[k++]=o<<24>>24,u=3):(o&248)==240&&(n[k++]=o<<24>>24,u=4)),u>0){if(k==u){switch(k){case 2:{nv(A,((n[0]&31)<<6|n[1]&63)&As);break}case 3:{nv(A,((n[0]&15)<<12|(n[1]&63)<<6|n[2]&63)&As);break}}k=0,u=0}}else{for(g=0;g<k;++g)nv(A,n[g]&As);k=0,A.a+=String.fromCharCode(o)}else{for(g=0;g<k;++g)nv(A,n[g]&As);k=0,nv(A,(un(p,e.length),e.charCodeAt(p)))}return A.a}i(eMe,"BQd");function Ezt(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(ee=$a(Pl(y(je((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),0),84))),ie=$a(Pl(y(je((!e.c&&(e.c=new zr(Hn,e,5,8)),e.c),0),84))),F=ee==ie,k=new xo,n=y(St(e,(zX(),MVe)),79),n&&n.b>=2){if((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i==0)o=(Kb(),p=new SH,p),Zn((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a),o);else if((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i>1)for(z=new L5((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a));z.e!=z.i.gc();)AI(z);MIe(n,y(je((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a),0),170))}if(F)for(u=new Sn((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a));u.e!=u.i.gc();)for(o=y(_n(u),170),D=new Sn((!o.a&&(o.a=new Es(qf,o,5)),o.a));D.e!=D.i.gc();)A=y(_n(D),372),k.a=d.Math.max(k.a,A.a),k.b=d.Math.max(k.b,A.b);for(w=new Sn((!e.n&&(e.n=new xt(nc,e,1,7)),e.n));w.e!=w.i.gc();)g=y(_n(w),157),M=y(St(g,AN),8),M&&ld(g,M.a,M.b),F&&(k.a=d.Math.max(k.a,g.i+g.g),k.b=d.Math.max(k.b,g.j+g.f));return k}i(Ezt,"Cqd");function Szt(e,n,o,u,p){var g,w,k;if(H9t(e,n),w=n[0],g=Do(o.c,0),k=-1,YLe(o))if(u>0){if(w+u>e.length)return!1;k=IK((ko(0,w+u,e.length),e.substr(0,w+u)),n)}else k=IK(e,n);switch(g){case 71:return k=zC(e,w,Se(Ee(Zt,1),Dt,2,6,[uUt,hUt]),n),p.e=k,!0;case 77:return lxn(e,n,p,k,w);case 76:return cxn(e,n,p,k,w);case 69:return hbn(e,n,w,p);case 99:return fbn(e,n,w,p);case 97:return k=zC(e,w,Se(Ee(Zt,1),Dt,2,6,["AM","PM"]),n),p.b=k,!0;case 121:return uxn(e,n,w,k,o,p);case 100:return k<=0?!1:(p.c=k,!0);case 83:return k<0?!1:$pn(k,w,n[0],p);case 104:k==12&&(k=0);case 75:case 72:return k<0?!1:(p.f=k,p.g=!1,!0);case 107:return k<0?!1:(p.f=k,p.g=!0,!0);case 109:return k<0?!1:(p.j=k,!0);case 115:return k<0?!1:(p.n=k,!0);case 90:if(w<e.length&&(un(w,e.length),e.charCodeAt(w)==90))return++n[0],p.o=0,!0;case 122:case 118:return F1n(e,w,n,p);default:return!1}}i(Szt,"EA");function VCn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr;for($e=n.c.length,p=new WC(e.a,o,null,null),yr=tt(po,vl,30,$e,15,1),ue=tt(po,vl,30,$e,15,1),ie=tt(po,vl,30,$e,15,1),fe=0,k=0;k<$e;k++)ue[k]=Ui,ie[k]=bo;for(A=0;A<$e;A++)for(u=(_r(A,n.c.length),y(n.c[A],185)),yr[A]=Mfe(u),yr[fe]>yr[A]&&(fe=A),F=new ye(e.a.b);F.a<F.c.c.length;)for(M=y(de(F),25),Me=new ye(M.a);Me.a<Me.c.c.length;)Ce=y(de(Me),9),st=He(u.p[Ce.p])+He(u.d[Ce.p]),ue[A]=d.Math.min(ue[A],st),ie[A]=d.Math.max(ie[A],st+Ce.o.b);for(Ht=tt(po,vl,30,$e,15,1),D=0;D<$e;D++)(_r(D,n.c.length),y(n.c[D],185)).o==(Yg(),Nw)?Ht[D]=ue[fe]-ue[D]:Ht[D]=ie[fe]-ie[D];for(g=tt(po,vl,30,$e,15,1),ee=new ye(e.a.b);ee.a<ee.c.c.length;)for(z=y(de(ee),25),ht=new ye(z.a);ht.a<ht.c.c.length;){for(Ve=y(de(ht),9),w=0;w<$e;w++)g[w]=He((_r(w,n.c.length),y(n.c[w],185)).p[Ve.p])+He((_r(w,n.c.length),y(n.c[w],185)).d[Ve.p])+Ht[w];U3t(g,Y9t(se.prototype.Ke,se,[])),p.p[Ve.p]=(g[1]+g[2])/2,p.d[Ve.p]=0}return p}i(VCn,"HNc");function WCn(e,n,o){var u,p,g,w,k;switch(u=n.i,g=e.i.o,p=e.i.d,k=e.n,w=Ql(Se(Ee(to,1),Dt,8,0,[k,e.a])),e.j.g){case 1:V0(n,(Xu(),qp)),u.d=-p.d-o-u.a,y(y(Wt(n.d,0),187).mf((Tt(),$6)),292)==(Bf(),n1)?(mg(n,(Lh(),Hp)),u.c=w.a-He(Xe(oe(e,gE)))-o-u.b):(mg(n,(Lh(),om)),u.c=w.a+He(Xe(oe(e,gE)))+o);break;case 2:mg(n,(Lh(),om)),u.c=g.a+p.c+o,y(y(Wt(n.d,0),187).mf((Tt(),$6)),292)==(Bf(),n1)?(V0(n,(Xu(),qp)),u.d=w.b-He(Xe(oe(e,gE)))-o-u.a):(V0(n,(Xu(),kg)),u.d=w.b+He(Xe(oe(e,gE)))+o);break;case 3:V0(n,(Xu(),kg)),u.d=g.b+p.a+o,y(y(Wt(n.d,0),187).mf((Tt(),$6)),292)==(Bf(),n1)?(mg(n,(Lh(),Hp)),u.c=w.a-He(Xe(oe(e,gE)))-o-u.b):(mg(n,(Lh(),om)),u.c=w.a+He(Xe(oe(e,gE)))+o);break;case 4:mg(n,(Lh(),Hp)),u.c=-p.b-o-u.b,y(y(Wt(n.d,0),187).mf((Tt(),$6)),292)==(Bf(),n1)?(V0(n,(Xu(),qp)),u.d=w.b-He(Xe(oe(e,gE)))-o-u.a):(V0(n,(Xu(),kg)),u.d=w.b+He(Xe(oe(e,gE)))+o)}}i(WCn,"J0b");function HCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me;for(n.Tg("Interactive node layering",1),o=new Pt,z=new ye(e.a);z.a<z.c.c.length;){for(M=y(de(z),9),A=M.n.a,k=A+M.o.a,k=d.Math.max(A+1,k),Me=new yo(o,0),u=null;Me.b<Me.d.gc();)if(fe=(In(Me.b<Me.d.gc()),y(Me.d.Xb(Me.c=Me.b++),564)),fe.c>=k){In(Me.b>0),Me.a.Xb(Me.c=--Me.b);break}else fe.a>A&&(u?(Is(u.b,fe.b),u.a=d.Math.max(u.a,fe.a),Wh(Me)):(Nt(fe.b,M),fe.c=d.Math.min(fe.c,A),fe.a=d.Math.max(fe.a,k),u=fe));u||(u=new i4t,u.c=A,u.a=k,Ok(Me,u),Nt(u.b,M))}for(w=e.b,D=0,Ce=new ye(o);Ce.a<Ce.c.c.length;)for(fe=y(de(Ce),564),p=new Nc(e),p.p=D++,tn(w.c,p),ee=new ye(fe.b);ee.a<ee.c.c.length;)M=y(de(ee),9),Us(M,p),M.p=0;for(F=new ye(e.a);F.a<F.c.c.length;)if(M=y(de(F),9),M.p==0)for(ue=pGt(M,e);ue.a.gc()!=0;)ie=y(ue.a.ec().Jc().Pb(),9),ue.a.Ac(ie)!=null,Fo(ue,pGt(ie,e));for(g=new yo(w,0);g.b<g.d.gc();)(In(g.b<g.d.gc()),y(g.d.Xb(g.c=g.b++),25)).a.c.length==0&&Wh(g);e.a.c.length=0,n.Ug()}i(HCn,"zDc");function qCn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue;for(o.Tg(qVt,1),!n.a&&(n.a=new xt(Ti,n,10,11)),u=He(Xe(St(n,(n0(),QZ)))),M=He(Xe(St(n,yN))),z=y(St(n,mN),104),ee=new tAe(u,M),g=Uzt(ee,n,z),j9t(n,ee),k=y(St(n,Uze),15).a;k>1;){if(p=twn(n),F=g.g,ie=y(St(n,mN),104),ue=He(Xe(St(n,QZ))),(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i>1&&He(Xe(St(n,(Wm(),rye))))!=qa&&(g.c+(ie.b+ie.c))/(g.b+(ie.d+ie.a))<ue?pa(p,(Wm(),J3),He(Xe(St(n,J3)))+He(Xe(St(n,rye)))):(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i>1&&He(Xe(St(n,(Wm(),tye))))!=qa&&(g.c+(ie.b+ie.c))/(g.b+(ie.d+ie.a))>ue&&pa(p,(Wm(),J3),d.Math.max(He(Xe(St(n,gN))),He(Xe(St(p,J3)))-He(Xe(St(n,tye))))),ee=new tAe(u,M),A=Uzt(ee,p,z),D=A.g,D>=F&&D==D){for(w=0;w<(!p.a&&(p.a=new xt(Ti,p,10,11)),p.a).i;w++)mFt(e,y(je((!p.a&&(p.a=new xt(Ti,p,10,11)),p.a),w),26),y(je((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a),w),26));j9t(n,ee),Hsn(g,A.c),qsn(g,A.b)}--k}pa(n,(Wm(),mL),g.b),pa(n,H6,g.c),o.Ug()}i(qCn,"L5c");function YCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr;for(n.Tg("Compound graph postprocessor",1),o=Kt(Xt(oe(e,(Bt(),e1e)))),k=y(oe(e,(Tt(),m$e)),229),M=new gs,Ce=k.ec().Jc();Ce.Ob();){for(fe=y(Ce.Pb(),17),w=new Ah(k.cc(fe)),Ir(),zs(w,new S5e(e)),ht=qhn((_r(0,w.c.length),y(w.c[0],250))),Ht=$It(y(Wt(w,w.c.length-1),250)),$e=ht.i,A7(Ht.i,$e)?Me=$e.e:Me=Zs($e),F=Mgn(fe,w),gf(fe.a),z=null,g=new ye(w);g.a<g.c.c.length;)p=y(de(g),250),ue=new xo,a9e(ue,p.a,Me),ee=p.b,u=new Vh,phe(u,0,ee.a),e3(u,ue),Ve=new Vo(Xg(ee.c)),st=new Vo(Xg(ee.d)),ra(Ve,ue),ra(st,ue),z&&(u.b==0?ie=st:ie=(In(u.b!=0),y(u.a.a.c,8)),yr=d.Math.abs(z.a-ie.a)>rm,gr=d.Math.abs(z.b-ie.b)>rm,(!o&&yr&&gr||o&&(yr||gr))&&_i(fe.a,Ve)),Fo(fe.a,u),u.b==0?z=Ve:z=(In(u.b!=0),y(u.c.b.c,8)),kfn(ee,F,ue),$It(p)==Ht&&(Zs(Ht.i)!=p.a&&(ue=new xo,a9e(ue,Zs(Ht.i),Me)),dt(fe,Mme,ue)),Lyn(ee,fe,Me),M.a.yc(ee,M);Bo(fe,ht),mo(fe,Ht)}for(D=M.a.ec().Jc();D.Ob();)A=y(D.Pb(),17),Bo(A,null),mo(A,null);n.Ug()}i(YCn,"NVb");function XCn(e,n){var o,u,p,g,w,k,A,D,M,F,z;for(p=y(oe(e,(uc(),CT)),86),M=p==(Ss(),Il)||p==Bl?p0:Bl,o=y(Rh(Hi(new Er(null,new Rr(e.b,16)),new p1t),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),A=y(Rh(bu(o.Mc(),new Rkt(n)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[Zu]))),16),A.Fc(y(Rh(bu(o.Mc(),new Lkt(n)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[Zu]))),18)),A.gd(new _kt(M)),z=new My(new Dkt(p)),u=new jn,k=A.Jc();k.Ob();)w=y(k.Pb(),240),D=y(w.a,40),Kt(Xt(w.c))?(z.a.yc(D,(qr(),Dv))==null,new P8(z.a.Xc(D,!1)).a.gc()>0&&Oi(u,D,y(new P8(z.a.Xc(D,!1)).a.Tc(),40)),new P8(z.a.$c(D,!0)).a.gc()>1&&Oi(u,qNt(z,D),D)):(new P8(z.a.Xc(D,!1)).a.gc()>0&&(g=y(new P8(z.a.Xc(D,!1)).a.Tc(),40),Qe(g)===Qe(Yl(Sl(u.f,D)))&&y(oe(D,(Ca(),S1e)),16).Ec(g)),new P8(z.a.$c(D,!0)).a.gc()>1&&(F=qNt(z,D),Qe(Yl(Sl(u.f,F)))===Qe(D)&&y(oe(F,(Ca(),S1e)),16).Ec(D)),z.a.Ac(D)!=null)}i(XCn,"WTc");function Azt(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;if(e.gc()==1)return y(e.Xb(0),235);if(e.gc()<=0)return new rX;for(p=e.Jc();p.Ob();){for(o=y(p.Pb(),235),ie=0,M=Ui,F=Ui,A=bo,D=bo,ee=new ye(o.e);ee.a<ee.c.c.length;)z=y(de(ee),155),ie+=y(oe(z,(Vp(),D6)),15).a,M=d.Math.min(M,z.d.a-z.e.a/2),F=d.Math.min(F,z.d.b-z.e.b/2),A=d.Math.max(A,z.d.a+z.e.a/2),D=d.Math.max(D,z.d.b+z.e.b/2);dt(o,(Vp(),D6),Et(ie)),dt(o,(uv(),DM),new Lt(M,F)),dt(o,ZG,new Lt(A,D))}for(Ir(),e.gd(new Wi),ue=new rX,wc(ue,y(e.Xb(0),105)),k=0,Me=0,g=e.Jc();g.Ob();)o=y(g.Pb(),235),fe=qs(Wo(y(oe(o,(uv(),ZG)),8)),y(oe(o,DM),8)),k=d.Math.max(k,fe.a),Me+=fe.a*fe.b;for(k=d.Math.max(k,d.Math.sqrt(Me)*He(Xe(oe(ue,(Vp(),lXt))))),Ce=He(Xe(oe(ue,EQ))),$e=0,Ve=0,w=0,n=Ce,u=e.Jc();u.Ob();)o=y(u.Pb(),235),fe=qs(Wo(y(oe(o,(uv(),ZG)),8)),y(oe(o,DM),8)),$e+fe.a>k&&($e=0,Ve+=w+Ce,w=0),kTn(ue,o,$e,Ve),n=d.Math.max(n,$e+fe.a),w=d.Math.max(w,fe.b),$e+=fe.a+Ce;return ue}i(Azt,"UMb");function KCn(e){_Ie();var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(e==null||(g=dX(e),ie=Vdn(g),ie%4!=0))return null;if(ue=ie/4|0,ue==0)return tt(xh,nE,30,0,15,1);for(F=null,n=0,o=0,u=0,p=0,w=0,k=0,A=0,D=0,ee=0,z=0,M=0,F=tt(xh,nE,30,ue*3,15,1);ee<ue-1;ee++){if(!iF(w=g[M++])||!iF(k=g[M++])||!iF(A=g[M++])||!iF(D=g[M++]))return null;n=v0[w],o=v0[k],u=v0[A],p=v0[D],F[z++]=(n<<2|o>>4)<<24>>24,F[z++]=((o&15)<<4|u>>2&15)<<24>>24,F[z++]=(u<<6|p)<<24>>24}return!iF(w=g[M++])||!iF(k=g[M++])?null:(n=v0[w],o=v0[k],A=g[M++],D=g[M++],v0[A]==-1||v0[D]==-1?A==61&&D==61?(o&15)!=0?null:(fe=tt(xh,nE,30,ee*3+1,15,1),$c(F,0,fe,0,ee*3),fe[z]=(n<<2|o>>4)<<24>>24,fe):A!=61&&D==61?(u=v0[A],(u&3)!=0?null:(fe=tt(xh,nE,30,ee*3+2,15,1),$c(F,0,fe,0,ee*3),fe[z++]=(n<<2|o>>4)<<24>>24,fe[z]=((o&15)<<4|u>>2&15)<<24>>24,fe)):null:(u=v0[A],p=v0[D],F[z++]=(n<<2|o>>4)<<24>>24,F[z++]=((o&15)<<4|u>>2&15)<<24>>24,F[z++]=(u<<6|p)<<24>>24,F))}i(KCn,"Noe");function JCn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht;for(n.Tg(gVt,1),ie=y(oe(e,(Bt(),Z1)),222),p=new ye(e.b);p.a<p.c.c.length;)for(u=y(de(p),25),D=JF(u.a),w=D,k=0,A=w.length;k<A;++k)if(g=w[k],g.k==(Yr(),iu)){if(ie==(U1(),eA))for(F=new ye(g.j);F.a<F.c.c.length;)M=y(de(F),12),M.e.c.length==0||hgn(M),M.g.c.length==0||fgn(M);else if(Ge(oe(g,(Tt(),aa)),17))fe=y(oe(g,aa),17),Ce=y(Ky(g,(zt(),on)).Jc().Pb(),12),Me=y(Ky(g,bn).Jc().Pb(),12),$e=y(oe(Ce,aa),12),Ve=y(oe(Me,aa),12),Bo(fe,Ve),mo(fe,$e),ht=new Vo(Me.i.n),ht.a=Ql(Se(Ee(to,1),Dt,8,0,[Ve.i.n,Ve.n,Ve.a])).a,_i(fe.a,ht),ht=new Vo(Ce.i.n),ht.a=Ql(Se(Ee(to,1),Dt,8,0,[$e.i.n,$e.n,$e.a])).a,_i(fe.a,ht);else{if(g.j.c.length>=2){for(ue=!0,z=new ye(g.j),o=y(de(z),12),ee=null;z.a<z.c.c.length;)if(ee=o,o=y(de(z),12),!ta(oe(ee,aa),oe(o,aa))){ue=!1;break}}else ue=!1;for(F=new ye(g.j);F.a<F.c.c.length;)M=y(de(F),12),M.e.c.length==0||Lwn(M,ue),M.g.c.length==0||_wn(M,ue)}Us(g,null)}n.Ug()}i(JCn,"p9b");function QCn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht;for(k=new ye(e.a.b);k.a<k.c.c.length;)for(g=y(de(k),25),$e=new ye(g.a);$e.a<$e.c.c.length;)Me=y(de($e),9),n.g[Me.p]=Me,n.a[Me.p]=Me,n.d[Me.p]=0;for(A=e.a.b,n.c==(W0(),ob)&&(A=bf(A)),w=A.Jc();w.Ob();)for(g=y(w.Pb(),25),ee=-1,z=g.a,n.o==(Yg(),h0)&&(ee=Ui,z=bf(z)),ht=z.Jc();ht.Ob();)if(Ve=y(ht.Pb(),9),F=null,n.c==ob?F=y(Wt(e.b.f,Ve.p),16):F=y(Wt(e.b.b,Ve.p),16),F.gc()>0)if(u=F.gc(),D=Po(d.Math.floor((u+1)/2))-1,p=Po(d.Math.ceil((u+1)/2))-1,n.o==h0)for(M=p;M>=D;M--)n.a[Ve.p]==Ve&&(ue=y(F.Xb(M),49),ie=y(ue.a,9),!Wd(o,ue.b)&&ee>e.b.e[ie.p]&&(n.a[ie.p]=Ve,n.g[Ve.p]=n.g[ie.p],n.a[Ve.p]=n.g[Ve.p],n.f[n.g[Ve.p].p]=(qr(),!!(Kt(n.f[n.g[Ve.p].p])&Ve.k==(Yr(),bs))),ee=e.b.e[ie.p]));else for(M=D;M<=p;M++)n.a[Ve.p]==Ve&&(Ce=y(F.Xb(M),49),fe=y(Ce.a,9),!Wd(o,Ce.b)&&ee<e.b.e[fe.p]&&(n.a[fe.p]=Ve,n.g[Ve.p]=n.g[fe.p],n.a[Ve.p]=n.g[Ve.p],n.f[n.g[Ve.p].p]=(qr(),!!(Kt(n.f[n.g[Ve.p].p])&Ve.k==(Yr(),bs))),ee=e.b.e[fe.p]))}i(QCn,"uNc");function Rzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr;return $e=e.c[(_r(0,n.c.length),y(n.c[0],17)).p],Ht=e.c[(_r(1,n.c.length),y(n.c[1],17)).p],$e.a.e.e-$e.a.a-($e.b.e.e-$e.b.a)==0&&Ht.a.e.e-Ht.a.a-(Ht.b.e.e-Ht.b.a)==0||(Ce=$e.b.e.f,!Ge(Ce,9))?!1:(fe=y(Ce,9),ht=e.i[fe.p],st=fe.c?Jl(fe.c.a,fe,0):-1,g=qa,st>0&&(p=y(Wt(fe.c.a,st-1),9),w=e.i[p.p],yr=d.Math.ceil(bC(e.n,p,fe)),g=ht.a.e-fe.d.d-(w.a.e+p.o.b+p.d.a)-yr),D=qa,st<fe.c.a.c.length-1&&(A=y(Wt(fe.c.a,st+1),9),M=e.i[A.p],yr=d.Math.ceil(bC(e.n,A,fe)),D=M.a.e-A.d.d-(ht.a.e+fe.o.b+fe.d.a)-yr),o&&(Wg(),$p(im),d.Math.abs(g-D)<=im||g==D||isNaN(g)&&isNaN(D))?!0:(u=Rce($e.a),k=-Rce($e.b),F=-Rce(Ht.a),Me=Rce(Ht.b),ue=$e.a.e.e-$e.a.a-($e.b.e.e-$e.b.a)>0&&Ht.a.e.e-Ht.a.a-(Ht.b.e.e-Ht.b.a)<0,ie=$e.a.e.e-$e.a.a-($e.b.e.e-$e.b.a)<0&&Ht.a.e.e-Ht.a.a-(Ht.b.e.e-Ht.b.a)>0,ee=$e.a.e.e+$e.b.a<Ht.b.e.e+Ht.a.a,z=$e.a.e.e+$e.b.a>Ht.b.e.e+Ht.a.a,Ve=0,!ue&&!ie&&(z?g+F>0?Ve=F:D-u>0&&(Ve=u):ee&&(g+k>0?Ve=k:D-Me>0&&(Ve=Me))),ht.a.e+=Ve,ht.b&&(ht.d.e+=Ve),!1))}i(Rzt,"TKc");function Lzt(e,n,o){var u,p,g,w,k,A,D,M,F,z;if(u=new Op(n.Jf().a,n.Jf().b,n.Kf().a,n.Kf().b),p=new S5,e.c)for(w=new ye(n.Pf());w.a<w.c.c.length;)g=y(de(w),187),p.c=g.Jf().a+n.Jf().a,p.d=g.Jf().b+n.Jf().b,p.b=g.Kf().a,p.a=g.Kf().b,RI(u,p);for(D=new ye(n.Vf());D.a<D.c.c.length;){if(A=y(de(D),837),M=A.Jf().a+n.Jf().a,F=A.Jf().b+n.Jf().b,e.e&&(p.c=M,p.d=F,p.b=A.Kf().a,p.a=A.Kf().b,RI(u,p)),e.d)for(w=new ye(A.Pf());w.a<w.c.c.length;)g=y(de(w),187),p.c=g.Jf().a+M,p.d=g.Jf().b+F,p.b=g.Kf().a,p.a=g.Kf().b,RI(u,p);if(e.b){if(z=new Lt(-o,-o),y(n.mf((Ri(),t4)),182).Gc((_h(),qv)))for(w=new ye(A.Pf());w.a<w.c.c.length;)g=y(de(w),187),z.a+=g.Kf().a+o,z.b+=g.Kf().b+o;z.a=d.Math.max(z.a,0),z.b=d.Math.max(z.b,0),JGt(u,A.Uf(),A.Sf(),n,A,z,o)}}e.b&&JGt(u,n.Uf(),n.Sf(),n,null,null,o),k=new nce(n.Tf()),k.d=d.Math.max(0,n.Jf().b-u.d),k.a=d.Math.max(0,u.d+u.a-(n.Jf().b+n.Kf().b)),k.b=d.Math.max(0,n.Jf().a-u.c),k.c=d.Math.max(0,u.c+u.b-(n.Jf().a+n.Kf().a)),n.Xf(k)}i(Lzt,"rHb");function ZCn(){var e=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return e[34]='\\"',e[92]="\\\\",e[173]="\\u00ad",e[1536]="\\u0600",e[1537]="\\u0601",e[1538]="\\u0602",e[1539]="\\u0603",e[1757]="\\u06dd",e[1807]="\\u070f",e[6068]="\\u17b4",e[6069]="\\u17b5",e[8203]="\\u200b",e[8204]="\\u200c",e[8205]="\\u200d",e[8206]="\\u200e",e[8207]="\\u200f",e[8232]="\\u2028",e[8233]="\\u2029",e[8234]="\\u202a",e[8235]="\\u202b",e[8236]="\\u202c",e[8237]="\\u202d",e[8238]="\\u202e",e[8288]="\\u2060",e[8289]="\\u2061",e[8290]="\\u2062",e[8291]="\\u2063",e[8292]="\\u2064",e[8298]="\\u206a",e[8299]="\\u206b",e[8300]="\\u206c",e[8301]="\\u206d",e[8302]="\\u206e",e[8303]="\\u206f",e[65279]="\\ufeff",e[65529]="\\ufff9",e[65530]="\\ufffa",e[65531]="\\ufffb",e}i(ZCn,"Ez");function _zt(e){Sk(e,new Xx(c6e(XH(Ck(xk(kk(Tk(new yx,Pu),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new qe),Pu),ka((eR(),Eee),Se(Ee(See,1),At,244,0,[kee]))))),_t(e,Pu,RG,Et(1)),_t(e,Pu,k3,80),_t(e,Pu,ape,5),_t(e,Pu,TR,xR),_t(e,Pu,pJ,Et(1)),_t(e,Pu,eM,(qr(),!0)),_t(e,Pu,C3,DBe),_t(e,Pu,tM,Vt(RBe)),_t(e,Pu,spe,Vt(IBe)),_t(e,Pu,gJ,!1),_t(e,Pu,rM,Vt(_Be)),_t(e,Pu,kR,Vt(fXt)),_t(e,Pu,k6,Vt(dXt)),_t(e,Pu,QC,Vt(hXt)),_t(e,Pu,CR,Vt(uXt)),_t(e,Pu,ER,Vt(gXt)),_t(e,Pu,dJ,Vt(LBe)),_t(e,Pu,npe,Vt(_0e)),_t(e,Pu,_Me,Vt(CQ)),_t(e,Pu,ipe,Vt(L0e)),_t(e,Pu,DMe,Vt(MBe)),_t(e,Pu,LG,Vt(xXt)),_t(e,Pu,_G,Vt(TXt)),_t(e,Pu,DG,Vt(wXt)),_t(e,Pu,IG,Vt(vXt)),_t(e,Pu,aT,NBe)}i(_zt,"bPb");function eEn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(ee=y(Wt((_r(0,n.c.length),y(n.c[0],25)).a,u),9),o>0&&Us(ee,(_r(o,n.c.length),y(n.c[o],25))),g=0,z=!0,Ce=bf(Z2(os(ee))),A=Ce.Jc();A.Ob();){for(k=y(A.Pb(),17),z=!1,F=k,D=0;D<o;D++)p=dNt(e,F),u+g>(_r(D,n.c.length),y(n.c[D],25)).a.c.length?Us(p,(_r(D,n.c.length),y(n.c[D],25))):bv(p,u+g,(_r(D,n.c.length),y(n.c[D],25))),F=Bfe(F,p);o>0&&(g+=1)}if(z){for(D=0;D<o;D++)p=new e0(e),C1(p,(Yr(),tj)),u+g>(_r(D,n.c.length),y(n.c[D],25)).a.c.length?Us(p,(_r(D,n.c.length),y(n.c[D],25))):bv(p,u+g,(_r(D,n.c.length),y(n.c[D],25)));o>0&&(g+=1)}for(w=!1,ue=new nn(cn(Ra(ee).a.Jc(),new B));Nn(ue);){for(ie=y(vn(ue),17),F=ie,M=o+1;M<n.c.length;M++)p=dNt(e,F),Us(p,(_r(M,n.c.length),y(n.c[M],25))),F=Bfe(F,p);for(D=0;D<=o;D++)w&&(fe=new e0(e),C1(fe,(Yr(),MM)),u+1>(_r(D,n.c.length),y(n.c[D],25)).a.c.length?Us(fe,(_r(D,n.c.length),y(n.c[D],25))):bv(fe,u+1,(_r(D,n.c.length),y(n.c[D],25))));w&&(g+=1),w=!0}return g>0?g-1:0}i(eEn,"$lc");function kv(e,n){Xi();var o,u,p,g,w,k,A,D,M,F,z,ee,ie;if(a9(RL)==0){for(F=tt(_Sn,Dt,121,xar.length,0,1),w=0;w<F.length;w++)F[w]=(++Za,new If(4));for(u=new r9,g=0;g<GWe.length;g++){if(M=(++Za,new If(4)),g<84?(k=g*2,ee=(un(k,t0e.length),t0e.charCodeAt(k)),z=(un(k+1,t0e.length),t0e.charCodeAt(k+1)),tu(M,ee,z)):(k=(g-84)*2,tu(M,jWe[k],jWe[k+1])),A=GWe[g],Cr(A,"Specials")&&tu(M,65520,65533),Cr(A,Rqt)&&(tu(M,983040,1048573),tu(M,1048576,1114109)),Al(RL,A,M),Al(VN,A,m3(M)),D=u.a.length,0<D?u.a=Yd(u.a,0,0):0>D&&(u.a+=B5t(tt(Rd,em,30,-D,15,1))),u.a+="Is",U0(A,Ku(32))>=0)for(p=0;p<A.length;p++)un(p,A.length),A.charCodeAt(p)!=32&&u7(u,(un(p,A.length),A.charCodeAt(p)));else u.a+=""+A;j_e(u.a,A,!0)}j_e(e0e,"Cn",!1),j_e(GPe,"Cn",!0),o=(++Za,new If(4)),tu(o,0,jR),Al(RL,"ALL",o),Al(VN,"ALL",m3(o)),!f4&&(f4=new jn),Al(f4,e0e,e0e),!f4&&(f4=new jn),Al(f4,GPe,GPe),!f4&&(f4=new jn),Al(f4,"ALL","ALL")}return ie=y(Jc(n?RL:VN,e),137),ie}i(kv,"ure");function Dzt(e){Sk(e,new Xx(c6e(XH(Ck(xk(kk(Tk(new yx,Fu),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new _1t),zVt),mr((eR(),qye))))),_t(e,Fu,C3,eze),_t(e,Fu,k3,20),_t(e,Fu,Xpe,3),_t(e,Fu,TR,xR),_t(e,Fu,RG,Et(1)),_t(e,Fu,eM,(qr(),!0)),_t(e,Fu,$G,Vt(Xje)),_t(e,Fu,Kpe,Kje),_t(e,Fu,tM,Vt(ctr)),_t(e,Fu,PJ,Vt(utr)),_t(e,Fu,QC,Vt(ftr)),_t(e,Fu,kR,Vt(dtr)),_t(e,Fu,C6,Vt(ptr)),_t(e,Fu,k6,Vt(gtr)),_t(e,Fu,CR,Vt(htr)),_t(e,Fu,rM,Vt(Qje)),_t(e,Fu,ER,Vt(mtr)),_t(e,Fu,bOe,Vt(ize)),_t(e,Fu,wOe,Vt(tze)),_t(e,Fu,LG,Vt(wtr)),_t(e,Fu,_G,Vt(xtr)),_t(e,Fu,DG,Vt(vtr)),_t(e,Fu,IG,Vt(btr)),_t(e,Fu,aT,nze),_t(e,Fu,yOe,Vt(EE)),_t(e,Fu,vOe,Vt(M1e)),_t(e,Fu,mOe,Vt(um)),_t(e,Fu,pOe,Vt(Yje)),_t(e,Fu,gOe,Vt(Jje))}i(Dzt,"TXc");function Izt(e,n){var o,u,p,g,w,k,A,D,M,F,z;for(D=y(y(oa(e.r,n),22),83),w=X1n(e,n),o=e.u.Gc((_h(),DN)),A=D.Jc();A.Ob();)if(k=y(A.Pb(),115),!(!k.c||k.c.d.c.length<=0)){switch(z=k.b.Kf(),M=k.c,F=M.i,F.b=(g=M.n,M.e.a+g.b+g.c),F.a=(p=M.n,M.e.b+p.d+p.a),n.g){case 1:k.a?(F.c=(z.a-F.b)/2,mg(M,(Lh(),Iv))):w||o?(F.c=-F.b-e.s,mg(M,(Lh(),Hp))):(F.c=z.a+e.s,mg(M,(Lh(),om))),F.d=-F.a-e.t,V0(M,(Xu(),qp));break;case 3:k.a?(F.c=(z.a-F.b)/2,mg(M,(Lh(),Iv))):w||o?(F.c=-F.b-e.s,mg(M,(Lh(),Hp))):(F.c=z.a+e.s,mg(M,(Lh(),om))),F.d=z.b+e.t,V0(M,(Xu(),kg));break;case 2:k.a?(u=e.v?F.a:y(Wt(M.d,0),187).Kf().b,F.d=(z.b-u)/2,V0(M,(Xu(),Mv))):w||o?(F.d=-F.a-e.t,V0(M,(Xu(),qp))):(F.d=z.b+e.t,V0(M,(Xu(),kg))),F.c=z.a+e.s,mg(M,(Lh(),om));break;case 4:k.a?(u=e.v?F.a:y(Wt(M.d,0),187).Kf().b,F.d=(z.b-u)/2,V0(M,(Xu(),Mv))):w||o?(F.d=-F.a-e.t,V0(M,(Xu(),qp))):(F.d=z.b+e.t,V0(M,(Xu(),kg))),F.c=-F.b-e.s,mg(M,(Lh(),Hp))}w=!1}}i(Izt,"WKb");function tEn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me;if(z=!1,F=!1,gC(y(oe(u,(Bt(),Qa)),102))){w=!1,k=!1;e:for(ie=new ye(u.j);ie.a<ie.c.c.length;)for(ee=y(de(ie),12),fe=Gm(pd(Se(Ee(kd,1),Fr,20,0,[new F8(ee),new u5(ee)])));Nn(fe);)if(ue=y(vn(fe),12),!Kt(Xt(oe(ue.i,WM)))){if(ee.j==(zt(),sn)){w=!0;break e}if(ee.j==Fn){k=!0;break e}}z=k&&!w,F=w&&!k}if(!z&&!F&&u.b.c.length!=0){for(M=0,D=new ye(u.b);D.a<D.c.c.length;)A=y(de(D),70),M+=A.n.b+A.o.b/2;M/=u.b.c.length,Me=M>=u.o.b/2}else Me=!F;Me?(Ce=y(oe(u,(Tt(),z6)),16),Ce?z?g=Ce:(p=y(oe(u,O6),16),p?Ce.gc()<=p.gc()?g=Ce:g=p:(g=new Pt,dt(u,O6,g))):(g=new Pt,dt(u,z6,g))):(p=y(oe(u,(Tt(),O6)),16),p?F?g=p:(Ce=y(oe(u,z6),16),Ce?p.gc()<=Ce.gc()?g=p:g=Ce:(g=new Pt,dt(u,z6,g))):(g=new Pt,dt(u,O6,g))),g.Ec(e),dt(e,(Tt(),sZ),o),n.d==o?(mo(n,null),o.e.c.length+o.g.c.length==0&&Kl(o,null),qfn(o)):(Bo(n,null),o.e.c.length+o.g.c.length==0&&Kl(o,null)),gf(n.a)}i(tEn,"f0b");function rEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua;for(o.Tg("MinWidth layering",1),ee=n.b,Ht=n.a,Ua=y(oe(n,(Bt(),SGe)),15).a,k=y(oe(n,AGe),15).a,e.b=He(Xe(oe(n,Xp))),e.d=qa,Ve=new ye(Ht);Ve.a<Ve.c.c.length;)Me=y(de(Ve),9),Me.k==(Yr(),Ya)&&(Pr=Me.o.b,e.d=d.Math.min(e.d,Pr));for(e.d=d.Math.max(1,e.d),yr=Ht.c.length,e.c=tt(pi,Pi,30,yr,15,1),e.f=tt(pi,Pi,30,yr,15,1),e.e=tt(po,vl,30,yr,15,1),D=0,e.a=0,ht=new ye(Ht);ht.a<ht.c.c.length;)Me=y(de(ht),9),Me.p=D++,e.c[Me.p]=tNt(os(Me)),e.f[Me.p]=tNt(Ra(Me)),e.e[Me.p]=Me.o.b/e.d,e.a+=e.e[Me.p];for(e.b/=e.d,e.a/=yr,st=Zbn(Ht),zs(Ht,S7e(new HTt(e))),ue=qa,ie=Ui,w=null,Jn=Ua,wn=Ua,g=k,p=k,Ua<0&&(Jn=y(Cje.a.Gd(),15).a,wn=y(Cje.b.Gd(),15).a),k<0&&(g=y(kje.a.Gd(),15).a,p=y(kje.b.Gd(),15).a),Mr=Jn;Mr<=wn;Mr++)for(u=g;u<=p;u++)gr=Pkn(e,Mr,u,Ht,st),Ce=He(Xe(gr.a)),z=y(gr.b,16),fe=z.gc(),(Ce<ue||Ce==ue&&fe<ie)&&(ue=Ce,ie=fe,w=z);for(F=w.Jc();F.Ob();){for(M=y(F.Pb(),16),A=new Nc(n),$e=M.Jc();$e.Ob();)Me=y($e.Pb(),9),Us(Me,A);tn(ee.c,A)}Y$(ee),Ht.c.length=0,o.Ug()}i(rEn,"$Dc");function nEn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht;for(n.Tg(gVt,1),ue=new Pt,st=new Pt,D=new ye(e.b);D.a<D.c.c.length;)for(A=y(de(D),25),Ce=-1,ie=JF(A.a),F=ie,z=0,ee=F.length;z<ee;++z)if(M=F[z],++Ce,!!(M.k==(Yr(),Ya)&&gC(y(oe(M,(Bt(),Qa)),102)))){for(!I5(y(oe(M,(Bt(),Qa)),102))&&Qe(oe(Zs(M),t1))===Qe((V1(),$v))&&mwn(M),dt(M,(Tt(),bT),M),ue.c.length=0,st.c.length=0,o=new Pt,Ve=new ya,Wue(Ve,Ky(M,(zt(),sn))),Qe(oe(Zs(M),t1))!==Qe((V1(),$v))&&(Ve=tBt(Ve)),Ozt(e,Ve,ue,st,o),k=Ce,Ht=M,g=new ye(ue);g.a<g.c.c.length;)u=y(de(g),9),bv(u,k,A),++Ce,dt(u,bT,M),w=y(Wt(u.j,0),12),fe=y(oe(w,aa),12),Kt(Xt(oe(fe,Pme)))||y(oe(u,F6),16).Ec(Ht);for(gf(Ve),$e=Ky(M,Fn).Jc();$e.Ob();)Me=y($e.Pb(),12),Ha(Ve,Me,Ve.a,Ve.a.a);for(Qe(oe(Zs(M),t1))!==Qe($v)&&(Ve=tBt(Ve)),Ozt(e,Ve,st,null,o),ht=M,p=new ye(st);p.a<p.c.c.length;)u=y(de(p),9),bv(u,++Ce,A),dt(u,bT,M),w=y(Wt(u.j,0),12),fe=y(oe(w,aa),12),Kt(Xt(oe(fe,Pme)))||y(oe(ht,F6),16).Ec(u);o.c.length==0||dt(M,d$e,o)}n.Ug()}i(nEn,"A9b");function iEn(e,n,o,u,p,g,w){var k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua;for(ee=0,Pr=0,A=new ye(e);A.a<A.c.c.length;)k=y(de(A),26),czt(k),ee=d.Math.max(ee,k.g),Pr+=k.g*k.f;for(ie=Pr/e.c.length,gr=X0n(e,ie),Pr+=e.c.length*gr,Pr+=d.Math.sqrt(Pr)*(o.a+o.d),Pr+=d.Math.sqrt(Pr)*o.c,ee=d.Math.max(ee,d.Math.sqrt(Pr*w))+o.b,Jn=o.b,Ua=o.d,z=0,M=o.b+o.c,yr=new ya,_i(yr,Et(0)),st=new ya,D=new yo(e,0);D.b<D.d.gc();)k=(In(D.b<D.d.gc()),y(D.d.Xb(D.c=D.b++),26)),wn=k.g,F=k.f,Jn+wn>ee&&(g&&(Uo(st,z),Uo(yr,Et(D.b-1))),Jn=o.b,Ua+=z+n,z=0,M=d.Math.max(M,o.b+o.c+wn)),Xh(k,Jn),Kh(k,Ua),M=d.Math.max(M,Jn+wn+o.c),z=d.Math.max(z,F),Jn+=wn+n;if(M=d.Math.max(M,u),Mr=Ua+z+o.a,Mr<p&&(z+=p-Mr,Mr=p),g)for(Jn=o.b,D=new yo(e,0),Uo(yr,Et(e.c.length)),Ht=ei(yr,0),Ce=y(Qn(Ht),15).a,Uo(st,z),ht=ei(st,0),Ve=0;D.b<D.d.gc();)D.b==Ce&&(Jn=o.b,Ve=He(Xe(Qn(ht))),Ce=y(Qn(Ht),15).a),k=(In(D.b<D.d.gc()),y(D.d.Xb(D.c=D.b++),26)),Me=k.f,$x(k,Ve),ue=Ve,D.b==Ce&&(fe=M-Jn-o.c,$e=k.g,Gx(k,fe),u9e(k,new Lt(fe,ue),new Lt($e,Me))),Jn+=k.g+n;return new Lt(M,Mr)}i(iEn,"Iod");function aEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn;if(o.Tg("Spline edge routing",1),n.b.c.length==0){n.f.a=0,o.Ug();return}Me=He(Xe(oe(n,(Bt(),Y3)))),k=He(Xe(oe(n,Fv))),w=He(Xe(oe(n,H3))),Ce=y(oe(n,Vme),349),yr=Ce==(O7(),nN),Ht=He(Xe(oe(n,bGe))),e.d=n,e.j.c.length=0,e.a.c.length=0,Sc(e.k),A=y(Wt(n.b,0),25),M=Nq(A.a,(UK(),Cj)),ie=y(Wt(n.b,n.b.c.length-1),25),F=Nq(ie.a,Cj),ue=new ye(n.b),fe=null,wn=0;do{for($e=ue.a<ue.c.c.length?y(de(ue),25):null,FCn(e,fe,$e),ckn(e),gr=xQr(Hhn(_Y(Hi(new Er(null,new Rr(e.i,16)),new Zmt),new e1t))),Mr=0,Ve=wn,z=!fe||M&&fe==A,ee=!$e||F&&$e==ie,gr>0?(D=0,fe&&(D+=k),D+=(gr-1)*w,$e&&(D+=k),yr&&$e&&(D=d.Math.max(D,xwn($e,w,Me,Ht))),D<Me&&!z&&!ee&&(Mr=(Me-D)/2,D=Me),Ve+=D):!z&&!ee&&(Ve+=Me),$e&&zIe($e,Ve),st=new ye(e.i);st.a<st.c.c.length;)ht=y(de(st),132),ht.a.c=wn,ht.a.b=Ve-wn,ht.F=Mr,ht.p=!fe;Is(e.a,e.i),wn=Ve,$e&&(wn+=$e.c.a),fe=$e,z=ee}while($e);for(p=new ye(e.j);p.a<p.c.c.length;)u=y(de(p),17),g=Dhn(e,u),dt(u,(Tt(),bE),g),Pr=Own(e,u),dt(u,Aw,Pr);n.f.a=wn,e.d=null,o.Ug()}i(aEn,"DRc");function sEn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;for(e.b=n,e.a=y(oe(n,(Bt(),wGe)),15).a,e.c=y(oe(n,TGe),15).a,e.c==0&&(e.c=Ui),fe=new yo(n.b,0);fe.b<fe.d.gc();){for(ue=(In(fe.b<fe.d.gc()),y(fe.d.Xb(fe.c=fe.b++),25)),k=new Pt,M=-1,Ve=-1,$e=new ye(ue.a);$e.a<$e.c.c.length;)Me=y(de($e),9),dg((OF(),new nn(cn(Y0(Me).a.Jc(),new B))))>=e.a&&(u=Fkn(e,Me),M=d.Math.max(M,u.b),Ve=d.Math.max(Ve,u.d),Nt(k,new Ko(Me,u)));for(yr=new Pt,D=0;D<M;++D)W2(yr,0,(In(fe.b>0),fe.a.Xb(fe.c=--fe.b),gr=new Nc(e.b),Ok(fe,gr),In(fe.b<fe.d.gc()),fe.d.Xb(fe.c=fe.b++),gr));for(w=new ye(k);w.a<w.c.c.length;)if(p=y(de(w),49),ee=y(p.b,566).a,!!ee)for(z=new ye(ee);z.a<z.c.c.length;)F=y(de(z),9),fDe(e,F,RQ,yr);for(o=new Pt,A=0;A<Ve;++A)Nt(o,(Pr=new Nc(e.b),Ok(fe,Pr),Pr));for(g=new ye(k);g.a<g.c.c.length;)if(p=y(de(g),49),Ht=y(p.b,566).c,!!Ht)for(st=new ye(Ht);st.a<st.c.c.length;)ht=y(de(st),9),fDe(e,ht,LQ,o)}for(Ce=new yo(n.b,0);Ce.b<Ce.d.gc();)ie=(In(Ce.b<Ce.d.gc()),y(Ce.d.Xb(Ce.c=Ce.b++),25)),ie.a.c.length==0&&Wh(Ce)}i(sEn,"L3b");function Mzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;if(ue=e.i!=0,$e=!1,Ce=null,hf(e.e)){if(M=n.gc(),M>0){for(z=M<100?null:new Xb(M),D=new SLe(n),ie=D.g,Ce=tt(pi,Pi,30,M,15,1),u=0,Ve=new Fx(M),p=0;p<e.i;++p){k=e.g[p],ee=k;e:for(Me=0;Me<2;++Me){for(A=M;--A>=0;)if(ee!=null?ta(ee,ie[A]):Qe(ee)===Qe(ie[A])){Ce.length<=u&&(fe=Ce,Ce=tt(pi,Pi,30,2*Ce.length,15,1),$c(fe,0,Ce,0,u)),Ce[u++]=p,Zn(Ve,ie[A]);break e}if(ee=ee,Qe(ee)===Qe(k))break}}if(D=Ve,ie=Ve.g,M=u,u>Ce.length&&(fe=Ce,Ce=tt(pi,Pi,30,u,15,1),$c(fe,0,Ce,0,u)),u>0){for($e=!0,g=0;g<u;++g)ee=ie[g],z=vAt(e,y(ee,75),z);for(w=u;--w>=0;)s6(e,Ce[w]);if(u!=M){for(p=M;--p>=u;)s6(D,p);fe=Ce,Ce=tt(pi,Pi,30,u,15,1),$c(fe,0,Ce,0,u)}n=D}}}else for(n=$0n(e,n),p=e.i;--p>=0;)n.Gc(e.g[p])&&(s6(e,p),$e=!0);if($e){if(Ce!=null){for(o=n.gc(),F=o==1?H9(e,4,n.Jc().Pb(),null,Ce[0],ue):H9(e,6,n,Ce,Ce[0],ue),z=o<100?null:new Xb(o),p=n.Jc();p.Ob();)ee=p.Pb(),z=y8e(e,y(ee,75),z);z?(z.lj(F),z.mj()):Qi(e.e,F)}else{for(z=Wtn(n.gc()),p=n.Jc();p.Ob();)ee=p.Pb(),z=y8e(e,y(ee,75),z);z&&z.mj()}return!0}else return!1}i(Mzt,"NJd");function oEn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(o=new FOt(n),o.a||NTn(n),D=Dxn(n),A=new Ox,fe=new Y$t,ue=new ye(n.a);ue.a<ue.c.c.length;)for(ie=y(de(ue),9),p=new nn(cn(Ra(ie).a.Jc(),new B));Nn(p);)u=y(vn(p),17),(u.c.i.k==(Yr(),ks)||u.d.i.k==ks)&&(M=J4n(e,u,D,fe),Sr(A,Ghe(M.d),M.a));for(w=new Pt,$e=y(oe(o.c,(Tt(),J1)),22).Jc();$e.Ob();){switch(Me=y($e.Pb(),64),ee=fe.c[Me.g],z=fe.b[Me.g],k=fe.a[Me.g],g=null,Ce=null,Me.g){case 4:g=new Op(e.d.a,ee,D.b.a-e.d.a,z-ee),Ce=new Op(e.d.a,ee,k,z-ee),Ax(D,new Lt(g.c+g.b,g.d)),Ax(D,new Lt(g.c+g.b,g.d+g.a));break;case 2:g=new Op(D.a.a,ee,e.c.a-D.a.a,z-ee),Ce=new Op(e.c.a-k,ee,k,z-ee),Ax(D,new Lt(g.c,g.d)),Ax(D,new Lt(g.c,g.d+g.a));break;case 1:g=new Op(ee,e.d.b,z-ee,D.b.b-e.d.b),Ce=new Op(ee,e.d.b,z-ee,k),Ax(D,new Lt(g.c,g.d+g.a)),Ax(D,new Lt(g.c+g.b,g.d+g.a));break;case 3:g=new Op(ee,D.a.b,z-ee,e.c.b-D.a.b),Ce=new Op(ee,e.c.b-k,z-ee,k),Ax(D,new Lt(g.c,g.d)),Ax(D,new Lt(g.c+g.b,g.d))}g&&(F=new t4t,F.d=Me,F.b=g,F.c=Ce,F.a=Vce(y(oa(A,Ghe(Me)),22)),tn(w.c,F))}return Is(o.b,w),o.d=mdn(c4n(D)),o}i(oEn,"OUb");function Nzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue;if(o.p[n.p]==null){k=!0,o.p[n.p]=0,w=n,ue=o.o==(Yg(),Nw)?Ys:qa;do p=e.b.e[w.p],g=w.c.a.c.length,o.o==Nw&&p>0||o.o==h0&&p<g-1?(A=null,D=null,o.o==h0?A=y(Wt(w.c.a,p+1),9):A=y(Wt(w.c.a,p-1),9),D=o.g[A.p],Nzt(e,D,o),ue=e.e.vg(ue,n,w),o.j[n.p]==n&&(o.j[n.p]=o.j[D.p]),o.j[n.p]==o.j[D.p]?(ie=bC(e.d,w,A),o.o==h0?(u=He(o.p[n.p]),F=He(o.p[D.p])+He(o.d[A.p])-A.d.d-ie-w.d.a-w.o.b-He(o.d[w.p]),k?(k=!1,o.p[n.p]=d.Math.min(F,ue)):o.p[n.p]=d.Math.min(u,d.Math.min(F,ue))):(u=He(o.p[n.p]),F=He(o.p[D.p])+He(o.d[A.p])+A.o.b+A.d.a+ie+w.d.d-He(o.d[w.p]),k?(k=!1,o.p[n.p]=d.Math.max(F,ue)):o.p[n.p]=d.Math.max(u,d.Math.max(F,ue)))):(ie=He(Xe(oe(e.a,(Bt(),Mw)))),ee=_It(e,o.j[n.p]),M=_It(e,o.j[D.p]),o.o==h0?(z=He(o.p[n.p])+He(o.d[w.p])+w.o.b+w.d.a+ie-(He(o.p[D.p])+He(o.d[A.p])-A.d.d),rLt(ee,M,z)):(z=He(o.p[n.p])+He(o.d[w.p])-w.d.d-He(o.p[D.p])-He(o.d[A.p])-A.o.b-A.d.a-ie,rLt(ee,M,z)))):ue=e.e.vg(ue,n,w),w=o.a[w.p];while(w!=n);HJr(e.e,n)}}i(Nzt,"yNc");function lEn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr;if(o=He(Xe(oe(e.a.j,(Bt(),fGe)))),o<-1||!e.a.i||I5(y(oe(e.a.o,Qa),102))||Zl(e.a.o,(zt(),bn)).gc()<2&&Zl(e.a.o,on).gc()<2)return!0;if(e.a.c.ig())return!1;for(ht=0,Ve=0,$e=new Pt,A=e.a.e,D=0,M=A.length;D<M;++D){for(k=A[D],z=k,ee=0,ue=z.length;ee<ue;++ee){if(F=z[ee],F.k==(Yr(),iu)){tn($e.c,F);continue}for(u=e.b[F.c.p][F.p],F.k==ks?(u.b=1,y(oe(F,(Tt(),aa)),12).j==(zt(),bn)&&(Ve+=u.a)):(gr=Zl(F,(zt(),on)),gr.dc()||!Fle(gr,new lmt)?u.c=1:(p=Zl(F,bn),(p.dc()||!Fle(p,new omt))&&(ht+=u.a))),w=new nn(cn(Ra(F).a.Jc(),new B));Nn(w);)g=y(vn(w),17),ht+=u.c,Ve+=u.b,yr=g.d.i,PRe(e,u,yr);for(Ce=pd(Se(Ee(kd,1),Fr,20,0,[Zl(F,(zt(),sn)),Zl(F,Fn)])),Ht=new nn(new _Ae(Ce.a.length,Ce.a));Nn(Ht);)st=y(vn(Ht),12),Me=y(oe(st,(Tt(),Ih)),9),Me&&(ht+=u.c,Ve+=u.b,PRe(e,u,Me))}for(ie=new ye($e);ie.a<ie.c.c.length;)for(F=y(de(ie),9),u=e.b[F.c.p][F.p],w=new nn(cn(Ra(F).a.Jc(),new B));Nn(w);)g=y(vn(w),17),ht+=u.c,Ve+=u.b,yr=g.d.i,PRe(e,u,yr);$e.c.length=0}return n=ht+Ve,fe=n==0?qa:(ht-Ve)/n,fe>=o}i(lEn,"tHc");function cEn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;for($e=e.a,Ve=0,ht=$e.length;Ve<ht;++Ve){for(Me=$e[Ve],D=Ui,M=Ui,ie=new ye(Me.e);ie.a<ie.c.c.length;)z=y(de(ie),9),w=z.c?Jl(z.c.a,z,0):-1,w>0?(F=y(Wt(z.c.a,w-1),9),yr=bC(e.b,z,F),fe=z.n.b-z.d.d-(F.n.b+F.o.b+F.d.a+yr)):fe=z.n.b-z.d.d,D=d.Math.min(fe,D),w<z.c.a.c.length-1?(F=y(Wt(z.c.a,w+1),9),yr=bC(e.b,z,F),Ce=F.n.b-F.d.d-(z.n.b+z.o.b+z.d.a+yr)):Ce=2*z.n.b,M=d.Math.min(Ce,M);for(A=Ui,g=!1,p=y(Wt(Me.e,0),9),Pr=new ye(p.j);Pr.a<Pr.c.c.length;)for(gr=y(de(Pr),12),ue=p.n.b+gr.n.b+gr.a.b,u=new ye(gr.e);u.a<u.c.c.length;)o=y(de(u),17),st=o.c,n=st.i.n.b+st.n.b+st.a.b-ue,d.Math.abs(n)<d.Math.abs(A)&&d.Math.abs(n)<(n<0?D:M)&&(A=n,g=!0);for(k=y(Wt(Me.e,Me.e.c.length-1),9),Ht=new ye(k.j);Ht.a<Ht.c.c.length;)for(st=y(de(Ht),12),ue=k.n.b+st.n.b+st.a.b,u=new ye(st.g);u.a<u.c.c.length;)o=y(de(u),17),gr=o.d,n=gr.i.n.b+gr.n.b+gr.a.b-ue,d.Math.abs(n)<d.Math.abs(A)&&d.Math.abs(n)<(n<0?D:M)&&(A=n,g=!0);if(g&&A!=0)for(ee=new ye(Me.e);ee.a<ee.c.c.length;)z=y(de(ee),9),z.n.b+=A}}i(cEn,"zKc");function uEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn;for($e=n,Me=new Ox,Ve=new Ox,M=Bx($e,Oge),u=new z7t(e,o,Me,Ve),_Bt(u.a,u.b,u.c,u.d,M),A=(Ht=Me.i,Ht||(Me.i=new xC(Me,Me.c))),gr=A.Jc();gr.Ob();)for(yr=y(gr.Pb(),170),p=y(oa(Me,yr),22),ue=p.Jc();ue.Ob();)if(ie=ue.Pb(),ht=y(RC(e.f,ie),170),ht)k=(!yr.e&&(yr.e=new zr(Ia,yr,10,9)),yr.e),Zn(k,ht);else throw w=N1($e,am),z=QWt+ie+ZWt+w,ee=z+$R,xe(new j0(ee));for(D=(st=Ve.i,st||(Ve.i=new xC(Ve,Ve.c))),Mr=D.Jc();Mr.Ob();)for(Pr=y(Mr.Pb(),170),g=y(oa(Ve,Pr),22),Ce=g.Jc();Ce.Ob();)if(fe=Ce.Pb(),ht=y(RC(e.f,fe),170),ht)F=(!Pr.g&&(Pr.g=new zr(Ia,Pr,9,10)),Pr.g),Zn(F,ht);else throw w=N1($e,am),z=QWt+fe+ZWt+w,ee=z+$R,xe(new j0(ee));!o.b&&(o.b=new zr(Hn,o,4,7)),o.b.i!=0&&(!o.c&&(o.c=new zr(Hn,o,5,8)),o.c.i!=0)&&(!o.b&&(o.b=new zr(Hn,o,4,7)),o.b.i<=1&&(!o.c&&(o.c=new zr(Hn,o,5,8)),o.c.i<=1))&&(!o.a&&(o.a=new xt(Ia,o,6,6)),o.a).i==1&&(wn=y(je((!o.a&&(o.a=new xt(Ia,o,6,6)),o.a),0),170),!Whe(wn)&&!Hhe(wn)&&(AX(wn,y(je((!o.b&&(o.b=new zr(Hn,o,4,7)),o.b),0),84)),RX(wn,y(je((!o.c&&(o.c=new zr(Hn,o,5,8)),o.c),0),84))))}i(uEn,"jCd");function hEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;if(u=new Pt,p=Ui,g=Ui,w=Ui,o)for(p=e.f.a,ue=new ye(n.j);ue.a<ue.c.c.length;)for(ie=y(de(ue),12),A=new ye(ie.g);A.a<A.c.c.length;)k=y(de(A),17),k.a.b!=0&&(M=y(t7(k.a),8),M.a<p&&(g=p-M.a,w=Ui,u.c.length=0,p=M.a),M.a<=p&&(tn(u.c,k),k.a.b>1&&(w=d.Math.min(w,d.Math.abs(y(Bc(k.a,1),8).b-M.b)))));else for(ue=new ye(n.j);ue.a<ue.c.c.length;)for(ie=y(de(ue),12),A=new ye(ie.e);A.a<A.c.c.length;)k=y(de(A),17),k.a.b!=0&&(z=y(Mp(k.a),8),z.a>p&&(g=z.a-p,w=Ui,u.c.length=0,p=z.a),z.a>=p&&(tn(u.c,k),k.a.b>1&&(w=d.Math.min(w,d.Math.abs(y(Bc(k.a,k.a.b-2),8).b-z.b)))));if(u.c.length!=0&&g>n.o.a/2&&w>n.o.b/2){for(ee=new Fc,Kl(ee,n),Bs(ee,(zt(),sn)),ee.n.a=n.o.a/2,Ce=new Fc,Kl(Ce,n),Bs(Ce,Fn),Ce.n.a=n.o.a/2,Ce.n.b=n.o.b,A=new ye(u);A.a<A.c.c.length;)k=y(de(A),17),o?(D=y(oce(k.a),8),fe=k.a.b==0?Xg(k.d):y(t7(k.a),8),fe.b>=D.b?Bo(k,Ce):Bo(k,ee)):(D=y(sin(k.a),8),fe=k.a.b==0?Xg(k.c):y(Mp(k.a),8),fe.b>=D.b?mo(k,Ce):mo(k,ee)),F=y(oe(k,(Bt(),Dl)),79),F&&a3(F,D,!0);n.n.a=p-n.o.a/2}}i(hEn,"h4b");function fEn(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(k=ei(e.b,0);k.b!=k.d.c;)if(w=y(Qn(k),40),!Cr(w.c,FJ))for(D=$vn(w,e),n==(Ss(),Il)||n==Bl?zs(D,new W1t):zs(D,new H1t),A=D.c.length,u=0;u<A;u++)M=(_r(u,D.c.length),y(D.c[u],65)).c,Cr(M.c,"n11"),!(Kt(Xt(oe(w,(Ca(),Gje))))&&!PMt((_r(u,D.c.length),y(D.c[u],65)),e))&&(p=A==1?.5:(u+1)/(A+1),n==Il?(g=He(Xe(oe(w,Eg))),z=w.e.b+w.f.b*p,dC((_r(u,D.c.length),y(D.c[u],65)).a,new Lt(d.Math.min(g,w.e.a-o),z)),dC((_r(u,D.c.length),y(D.c[u],65)).a,new Lt(w.e.a,z))):n==Bl?(g=He(Xe(oe(w,Kp)))+o,z=w.e.b+w.f.b*p,dC((_r(u,D.c.length),y(D.c[u],65)).a,new Lt(g,z)),dC((_r(u,D.c.length),y(D.c[u],65)).a,new Lt(w.e.a+w.f.a,z))):n==Ed?(g=He(Xe(oe(w,Eg))),F=w.e.a+w.f.a*p,dC((_r(u,D.c.length),y(D.c[u],65)).a,new Lt(F,d.Math.min(w.e.b-o,g))),dC((_r(u,D.c.length),y(D.c[u],65)).a,new Lt(F,w.e.b))):(g=He(Xe(oe(w,Kp)))+o,F=w.e.a+w.f.a*p,dC((_r(u,D.c.length),y(D.c[u],65)).a,new Lt(F,g)),dC((_r(u,D.c.length),y(D.c[u],65)).a,new Lt(F,w.e.b+w.f.b))))}i(fEn,"nZc");function hG(e,n,o,u,p,g,w,k,A){var D,M,F,z,ee,ie,ue;switch(ee=o,M=new e0(A),C1(M,(Yr(),ks)),dt(M,(Tt(),y$e),w),dt(M,(Bt(),Qa),(uo(),zc)),ue=He(Xe(e.mf(U3))),dt(M,U3,ue),F=new Fc,Kl(F,M),n!=m0&&n!=Hv||(u>=0?ee=r6(k):ee=M$(r6(k)),e.of(oL,ee)),D=new xo,z=!1,e.nf(TT)?(jAe(D,y(e.mf(TT),8)),z=!0):Ren(D,w.a/2,w.b/2),ee.g){case 4:dt(M,tc,(yf(),Q1)),dt(M,lZ,(sw(),fE)),M.o.b=w.b,ue<0&&(M.o.a=-ue),Bs(F,(zt(),bn)),z||(D.a=w.a),D.a-=w.a;break;case 2:dt(M,tc,(yf(),Rw)),dt(M,lZ,(sw(),ZR)),M.o.b=w.b,ue<0&&(M.o.a=-ue),Bs(F,(zt(),on)),z||(D.a=0);break;case 1:dt(M,Sw,(F1(),pE)),M.o.a=w.a,ue<0&&(M.o.b=-ue),Bs(F,(zt(),Fn)),z||(D.b=w.b),D.b-=w.b;break;case 3:dt(M,Sw,(F1(),N6)),M.o.a=w.a,ue<0&&(M.o.b=-ue),Bs(F,(zt(),sn)),z||(D.b=0)}if(jAe(F.n,D),dt(M,TT,D),n==Bw||n==a1||n==zc){if(ie=0,n==Bw&&e.nf(sb))switch(ee.g){case 1:case 2:ie=y(e.mf(sb),15).a;break;case 3:case 4:ie=-y(e.mf(sb),15).a}else switch(ee.g){case 4:case 2:ie=g.b,n==a1&&(ie/=p.b);break;case 1:case 3:ie=g.a,n==a1&&(ie/=p.a)}dt(M,vT,ie)}return dt(M,gc,ee),M}i(hG,"MXb");function dEn(){h6e();function e(u){var p=this;this.dispatch=function(g){var w=g.data;switch(w.cmd){case"algorithms":var k=M_e((Ir(),new O8(new S1($w.b))));u.postMessage({id:w.id,data:k});break;case"categories":var A=M_e((Ir(),new O8(new S1($w.c))));u.postMessage({id:w.id,data:A});break;case"options":var D=M_e((Ir(),new O8(new S1($w.d))));u.postMessage({id:w.id,data:D});break;case"register":G3n(w.algorithms),u.postMessage({id:w.id});break;case"layout":M3n(w.graph,w.layoutOptions||{},w.options||{}),u.postMessage({id:w.id,data:w.graph});break}},this.saveDispatch=function(g){try{p.dispatch(g)}catch(w){u.postMessage({id:g.data.id,error:w})}}}i(e,"h");function n(u){var p=this;this.dispatcher=new e({postMessage:i(function(g){p.onmessage({data:g})},"postMessage")}),this.postMessage=function(g){setTimeout(function(){p.dispatcher.saveDispatch({data:g})},0)}}if(i(n,"j"),typeof document===Qde&&typeof self!==Qde){var o=new e(self);self.onmessage=o.saveDispatch}else typeof l!==Qde&&l.exports&&(Object.defineProperty(h,"__esModule",{value:!0}),l.exports={default:n,Worker:n})}i(dEn,"dHd");function pde(e,n,o,u,p,g,w){var k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua;for(ue=0,Pr=0,D=new ye(e.b);D.a<D.c.c.length;)A=y(de(D),167),A.c&&czt(A.c),ue=d.Math.max(ue,ph(A)),Pr+=ph(A)*pf(A);for(fe=Pr/e.b.c.length,gr=Amn(e.b,fe),Pr+=e.b.c.length*gr,ue=d.Math.max(ue,d.Math.sqrt(Pr*w))+o.b,Jn=o.b,Ua=o.d,ee=0,F=o.b+o.c,yr=new ya,_i(yr,Et(0)),st=new ya,M=new yo(e.b,0),ie=null,k=new Pt;M.b<M.d.gc();)A=(In(M.b<M.d.gc()),y(M.d.Xb(M.c=M.b++),167)),wn=ph(A),z=pf(A),Jn+wn>ue&&(g&&(Uo(st,ee),Uo(yr,Et(M.b-1)),Nt(e.d,ie),k.c.length=0),Jn=o.b,Ua+=ee+n,ee=0,F=d.Math.max(F,o.b+o.c+wn)),tn(k.c,A),IOt(A,Jn,Ua),F=d.Math.max(F,Jn+wn+o.c),ee=d.Math.max(ee,z),Jn+=wn+n,ie=A;if(Is(e.a,k),Nt(e.d,y(Wt(k,k.c.length-1),167)),F=d.Math.max(F,u),Mr=Ua+ee+o.a,Mr<p&&(ee+=p-Mr,Mr=p),g)for(Jn=o.b,M=new yo(e.b,0),Uo(yr,Et(e.b.c.length)),Ht=ei(yr,0),Me=y(Qn(Ht),15).a,Uo(st,ee),ht=ei(st,0),Ve=0;M.b<M.d.gc();)M.b==Me&&(Jn=o.b,Ve=He(Xe(Qn(ht))),Me=y(Qn(Ht),15).a),A=(In(M.b<M.d.gc()),y(M.d.Xb(M.c=M.b++),167)),fOt(A,Ve),M.b==Me&&(Ce=F-Jn-o.c,$e=ph(A),dOt(A,Ce),INt(A,(Ce-$e)/2,0)),Jn+=ph(A)+n;return new Lt(F,Mr)}i(pde,"Kod");function pEn(e){e.N||(e.N=!0,e.b=cc(e,0),Ka(e.b,0),Ka(e.b,1),Ka(e.b,2),e.bb=cc(e,1),Ka(e.bb,0),Ka(e.bb,1),e.fb=cc(e,2),Ka(e.fb,3),Ka(e.fb,4),La(e.fb,5),e.qb=cc(e,3),Ka(e.qb,0),La(e.qb,1),La(e.qb,2),Ka(e.qb,3),Ka(e.qb,4),La(e.qb,5),Ka(e.qb,6),e.a=zi(e,4),e.c=zi(e,5),e.d=zi(e,6),e.e=zi(e,7),e.f=zi(e,8),e.g=zi(e,9),e.i=zi(e,10),e.j=zi(e,11),e.k=zi(e,12),e.n=zi(e,13),e.o=zi(e,14),e.p=zi(e,15),e.q=zi(e,16),e.s=zi(e,17),e.r=zi(e,18),e.t=zi(e,19),e.u=zi(e,20),e.v=zi(e,21),e.w=zi(e,22),e.B=zi(e,23),e.A=zi(e,24),e.C=zi(e,25),e.D=zi(e,26),e.F=zi(e,27),e.G=zi(e,28),e.H=zi(e,29),e.J=zi(e,30),e.I=zi(e,31),e.K=zi(e,32),e.M=zi(e,33),e.L=zi(e,34),e.P=zi(e,35),e.Q=zi(e,36),e.R=zi(e,37),e.S=zi(e,38),e.T=zi(e,39),e.U=zi(e,40),e.V=zi(e,41),e.X=zi(e,42),e.W=zi(e,43),e.Y=zi(e,44),e.Z=zi(e,45),e.$=zi(e,46),e._=zi(e,47),e.ab=zi(e,48),e.cb=zi(e,49),e.db=zi(e,50),e.eb=zi(e,51),e.gb=zi(e,52),e.hb=zi(e,53),e.ib=zi(e,54),e.jb=zi(e,55),e.kb=zi(e,56),e.lb=zi(e,57),e.mb=zi(e,58),e.nb=zi(e,59),e.ob=zi(e,60),e.pb=zi(e,61))}i(pEn,"Mle");function gEn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;if(Me=0,n.f.a==0)for(fe=new ye(e);fe.a<fe.c.c.length;)ie=y(de(fe),9),Me=d.Math.max(Me,ie.n.a+ie.o.a+ie.d.c);else Me=n.f.a-n.c.a;for(Me-=n.c.a,ue=new ye(e);ue.a<ue.c.c.length;){switch(ie=y(de(ue),9),XD(ie.n,Me-ie.o.a),P8e(ie.f),lPt(ie),(ie.q?ie.q:(Ir(),Ir(),Qm))._b((Bt(),W3))&&XD(y(oe(ie,W3),8),Me-ie.o.a),y(oe(ie,lm),256).g){case 1:dt(ie,lm,(Vm(),Oj));break;case 2:dt(ie,lm,(Vm(),Nj))}for(Ce=ie.o,Ve=new ye(ie.j);Ve.a<Ve.c.c.length;){for($e=y(de(Ve),12),XD($e.n,Ce.a-$e.o.a),XD($e.a,$e.o.a),Bs($e,GIt($e.j)),w=y(oe($e,sb),15),w&&dt($e,sb,Et(-w.a)),g=new ye($e.g);g.a<g.c.c.length;){for(p=y(de(g),17),u=ei(p.a,0);u.b!=u.d.c;)o=y(Qn(u),8),o.a=Me-o.a;if(D=y(oe(p,Dl),79),D)for(A=ei(D,0);A.b!=A.d.c;)k=y(Qn(A),8),k.a=Me-k.a;for(z=new ye(p.b);z.a<z.c.c.length;)M=y(de(z),70),XD(M.n,Me-M.o.a)}for(ee=new ye($e.f);ee.a<ee.c.c.length;)M=y(de(ee),70),XD(M.n,$e.o.a-M.o.a)}for(ie.k==(Yr(),ks)&&(dt(ie,(Tt(),gc),GIt(y(oe(ie,gc),64))),yyn(ie)),F=new ye(ie.b);F.a<F.c.c.length;)M=y(de(F),70),lPt(M),XD(M.n,Ce.a-M.o.a)}}i(gEn,"i2b");function mEn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;if(Me=0,n.f.b==0)for(fe=new ye(e);fe.a<fe.c.c.length;)ie=y(de(fe),9),Me=d.Math.max(Me,ie.n.b+ie.o.b+ie.d.a);else Me=n.f.b-n.c.b;for(Me-=n.c.b,ue=new ye(e);ue.a<ue.c.c.length;){switch(ie=y(de(ue),9),YD(ie.n,Me-ie.o.b),O8e(ie.f),cPt(ie),(ie.q?ie.q:(Ir(),Ir(),Qm))._b((Bt(),W3))&&YD(y(oe(ie,W3),8),Me-ie.o.b),y(oe(ie,lm),256).g){case 3:dt(ie,lm,(Vm(),aee));break;case 4:dt(ie,lm,(Vm(),oee))}for(Ce=ie.o,Ve=new ye(ie.j);Ve.a<Ve.c.c.length;){for($e=y(de(Ve),12),YD($e.n,Ce.b-$e.o.b),YD($e.a,$e.o.b),Bs($e,jIt($e.j)),w=y(oe($e,sb),15),w&&dt($e,sb,Et(-w.a)),g=new ye($e.g);g.a<g.c.c.length;){for(p=y(de(g),17),u=ei(p.a,0);u.b!=u.d.c;)o=y(Qn(u),8),o.b=Me-o.b;if(D=y(oe(p,Dl),79),D)for(A=ei(D,0);A.b!=A.d.c;)k=y(Qn(A),8),k.b=Me-k.b;for(z=new ye(p.b);z.a<z.c.c.length;)M=y(de(z),70),YD(M.n,Me-M.o.b)}for(ee=new ye($e.f);ee.a<ee.c.c.length;)M=y(de(ee),70),YD(M.n,$e.o.b-M.o.b)}for(ie.k==(Yr(),ks)&&(dt(ie,(Tt(),gc),jIt(y(oe(ie,gc),64))),qdn(ie)),F=new ye(ie.b);F.a<F.c.c.length;)M=y(de(F),70),cPt(M),YD(M.n,Ce.b-M.o.b)}}i(mEn,"l2b");function yEn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn;for(Me=new yo(e.b,0),M=n.Jc(),ie=0,D=y(M.Pb(),15).a,ht=0,o=new gs,Ht=new Om;Me.b<Me.d.gc();){for(Ce=(In(Me.b<Me.d.gc()),y(Me.d.Xb(Me.c=Me.b++),25)),Ve=new ye(Ce.a);Ve.a<Ve.c.c.length;){for($e=y(de(Ve),9),ee=new nn(cn(Ra($e).a.Jc(),new B));Nn(ee);)F=y(vn(ee),17),Ht.a.yc(F,Ht);for(z=new nn(cn(os($e).a.Jc(),new B));Nn(z);)F=y(vn(z),17),Ht.a.Ac(F)!=null}if(ie+1==D){for(p=new Nc(e),Ok(Me,p),g=new Nc(e),Ok(Me,g),gr=Ht.a.ec().Jc();gr.Ob();)yr=y(gr.Pb(),17),o.a._b(yr)||(++ht,o.a.yc(yr,o)),w=new e0(e),dt(w,(Bt(),Qa),(uo(),CL)),Us(w,p),C1(w,(Yr(),u0)),ue=new Fc,Kl(ue,w),Bs(ue,(zt(),on)),Pr=new Fc,Kl(Pr,w),Bs(Pr,bn),u=new e0(e),dt(u,Qa,CL),Us(u,g),C1(u,u0),fe=new Fc,Kl(fe,u),Bs(fe,on),Mr=new Fc,Kl(Mr,u),Bs(Mr,bn),st=new Nx,Bo(st,yr.c),mo(st,ue),dt(st,(Tt(),Ea),y(oe(yr,Ea),15)),Jn=new Nx,Bo(Jn,Pr),mo(Jn,fe),dt(Jn,Ea,y(oe(yr,Ea),15)),Bo(yr,Mr),k=new lRe(w,u,st,Jn,yr),dt(w,yT,k),dt(u,yT,k),wn=st.c.i,wn.k==u0&&(A=y(oe(wn,yT),318),A.d=k,k.g=A);if(M.Ob())D=y(M.Pb(),15).a;else break}++ie}return Et(ht)}i(yEn,"fmc");function bEn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(ue=new Pt,z=new ye(e.d.b);z.a<z.c.c.length;)for(F=y(de(z),25),ie=new ye(F.a);ie.a<ie.c.c.length;){for(ee=y(de(ie),9),p=y(Jr(e.f,ee),60),A=new nn(cn(Ra(ee).a.Jc(),new B));Nn(A);)if(w=y(vn(A),17),u=ei(w.a,0),D=!0,M=null,u.b!=u.d.c){for(n=y(Qn(u),8),o=null,w.c.j==(zt(),sn)&&(fe=new jI(n,new Lt(n.a,p.d.d),p,w),fe.f.a=!0,fe.a=w.c,tn(ue.c,fe)),w.c.j==Fn&&(fe=new jI(n,new Lt(n.a,p.d.d+p.d.a),p,w),fe.f.d=!0,fe.a=w.c,tn(ue.c,fe));u.b!=u.d.c;)o=y(Qn(u),8),QRe(n.b,o.b)||(M=new jI(n,o,null,w),tn(ue.c,M),D&&(D=!1,o.b<p.d.d?M.f.a=!0:o.b>p.d.d+p.d.a?M.f.d=!0:(M.f.d=!0,M.f.a=!0))),u.b!=u.d.c&&(n=o);M&&(g=y(Jr(e.f,w.d.i),60),n.b<g.d.d?M.f.a=!0:n.b>g.d.d+g.d.a?M.f.d=!0:(M.f.d=!0,M.f.a=!0))}for(k=new nn(cn(os(ee).a.Jc(),new B));Nn(k);)w=y(vn(k),17),w.a.b!=0&&(n=y(Mp(w.a),8),w.d.j==(zt(),sn)&&(fe=new jI(n,new Lt(n.a,p.d.d),p,w),fe.f.a=!0,fe.a=w.d,tn(ue.c,fe)),w.d.j==Fn&&(fe=new jI(n,new Lt(n.a,p.d.d+p.d.a),p,w),fe.f.d=!0,fe.a=w.d,tn(ue.c,fe)))}return ue}i(bEn,"sec");function vEn(e,n,o){var u,p,g,w,k,A,D,M,F,z;for(A=new Pt,F=n.length,w=FLe(o),D=0;D<F;++D){switch(M=DAe(n,Ku(61),D),u=zdn(w,(ko(D,M,n.length),n.substr(D,M-D))),p=Que(u),g=p.hk().ti(),Do(n,++M)){case 39:{k=Z8(n,39,++M),Nt(A,new Dq(u,$ce((ko(M,k,n.length),n.substr(M,k-M)),g,p))),D=k+1;break}case 34:{k=Z8(n,34,++M),Nt(A,new Dq(u,$ce((ko(M,k,n.length),n.substr(M,k-M)),g,p))),D=k+1;break}case 91:{z=new Pt,Nt(A,new Dq(u,z));e:for(;;){switch(Do(n,++M)){case 39:{k=Z8(n,39,++M),Nt(z,$ce((ko(M,k,n.length),n.substr(M,k-M)),g,p)),M=k+1;break}case 34:{k=Z8(n,34,++M),Nt(z,$ce((ko(M,k,n.length),n.substr(M,k-M)),g,p)),M=k+1;break}case 110:{if(++M,n.indexOf("ull",M)==M)z.c.push(null);else throw xe(new ql(UWt));M+=3;break}}if(M<F)switch(un(M,n.length),n.charCodeAt(M)){case 44:break;case 93:break e;default:throw xe(new ql("Expecting , or ]"))}else break}D=M+1;break}case 110:{if(++M,n.indexOf("ull",M)==M)Nt(A,new Dq(u,null));else throw xe(new ql(UWt));D=M+3;break}}if(D<F){if(un(D,n.length),n.charCodeAt(D)!=44)throw xe(new ql("Expecting ,"))}else break}return nxn(e,A,o)}i(vEn,"jtd");function wEn(e){var n,o,u,p,g;switch(n=e.c,g=null,n){case 6:return e.Cm();case 13:return e.Dm();case 23:return e.um();case 22:return e.zm();case 18:return e.wm();case 8:qi(e),g=(Xi(),zWe);break;case 9:return e.cm(!0);case 19:return e.dm();case 10:switch(e.a){case 100:case 68:case 119:case 87:case 115:case 83:return g=e.bm(e.a),qi(e),g;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:o=e.am(),o<Jo?g=(Xi(),Xi(),++Za,new Fm(0,o)):g=D8t(T_e(o));break;case 99:return e.mm();case 67:return e.hm();case 105:return e.pm();case 73:return e.im();case 103:return e.nm();case 88:return e.jm();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e.em();case 80:case 112:if(g=x9e(e,e.a),!g)throw xe(new bi(ki((fi(),Gge))));break;default:g=YAt(e.a)}qi(e);break;case 0:if(e.a==93||e.a==123||e.a==125)throw xe(new bi(ki((fi(),xPe))));g=YAt(e.a),u=e.a,qi(e),(u&64512)==TG&&e.c==0&&(e.a&64512)==56320&&(p=tt(Rd,em,30,2,15,1),p[0]=u&As,p[1]=e.a&As,g=Cce(D8t(Jd(p,0,p.length)),0),qi(e));break;default:throw xe(new bi(ki((fi(),xPe))))}return g}i(wEn,"_oe");function xEn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr;for(gr=new ya,st=new ya,fe=-1,A=new ye(e);A.a<A.c.c.length;){for(w=y(de(A),132),w.s=fe--,M=0,$e=0,g=new ye(w.t);g.a<g.c.c.length;)u=y(de(g),273),$e+=u.c;for(p=new ye(w.i);p.a<p.c.c.length;)u=y(de(p),273),M+=u.c;w.n=M,w.u=$e,$e==0?Ha(st,w,st.c.b,st.c):M==0&&Ha(gr,w,gr.c.b,gr.c)}for(Mr=JY(e),F=e.c.length,ue=F+1,Ce=F-1,ee=new Pt;Mr.a.gc()!=0;){for(;st.b!=0;)ht=(In(st.b!=0),y(dd(st,st.a.a),132)),Mr.a.Ac(ht)!=null,ht.s=Ce--,U9e(ht,gr,st);for(;gr.b!=0;)Ht=(In(gr.b!=0),y(dd(gr,gr.a.a),132)),Mr.a.Ac(Ht)!=null,Ht.s=ue++,U9e(Ht,gr,st);for(ie=bo,D=Mr.a.ec().Jc();D.Ob();)w=y(D.Pb(),132),Me=w.u-w.n,Me>=ie&&(Me>ie&&(ee.c.length=0,ie=Me),tn(ee.c,w));ee.c.length!=0&&(z=y(Wt(ee,pK(n,ee.c.length)),132),Mr.a.Ac(z)!=null,z.s=ue++,U9e(z,gr,st),ee.c.length=0)}for(Ve=e.c.length+1,k=new ye(e);k.a<k.c.c.length;)w=y(de(k),132),w.s<F&&(w.s+=Ve);for(yr=new ye(e);yr.a<yr.c.c.length;)for(Ht=y(de(yr),132),o=new yo(Ht.t,0);o.b<o.d.gc();)u=(In(o.b<o.d.gc()),y(o.d.Xb(o.c=o.b++),273)),Pr=u.b,Ht.s>Pr.s&&(Wh(o),Yu(Pr.i,u),u.c>0&&(u.a=Pr,Nt(Pr.t,u),u.b=Ht,Nt(Ht.i,u)))}i(xEn,"FRc");function Ozt(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr;for(ue=new vu(n.b),Ve=new vu(n.b),z=new vu(n.b),yr=new vu(n.b),fe=new vu(n.b),Ht=ei(n,0);Ht.b!=Ht.d.c;)for(ht=y(Qn(Ht),12),k=new ye(ht.g);k.a<k.c.c.length;)if(g=y(de(k),17),g.c.i==g.d.i){if(ht.j==g.d.j){tn(yr.c,g);continue}else if(ht.j==(zt(),sn)&&g.d.j==Fn){tn(fe.c,g);continue}}for(A=new ye(fe);A.a<A.c.c.length;)g=y(de(A),17),WTn(e,g,o,u,(zt(),bn));for(w=new ye(yr);w.a<w.c.c.length;)g=y(de(w),17),gr=new e0(e),C1(gr,(Yr(),iu)),dt(gr,(Bt(),Qa),(uo(),zc)),dt(gr,(Tt(),aa),g),Pr=new Fc,dt(Pr,aa,g.d),Bs(Pr,(zt(),on)),Kl(Pr,gr),Mr=new Fc,dt(Mr,aa,g.c),Bs(Mr,bn),Kl(Mr,gr),dt(g.c,Ih,gr),dt(g.d,Ih,gr),Bo(g,null),mo(g,null),tn(o.c,gr),dt(gr,oZ,Et(2));for(st=ei(n,0);st.b!=st.d.c;)ht=y(Qn(st),12),D=ht.e.c.length>0,Ce=ht.g.c.length>0,D&&Ce?tn(z.c,ht):D?tn(ue.c,ht):Ce&&tn(Ve.c,ht);for(ie=new ye(ue);ie.a<ie.c.c.length;)ee=y(de(ie),12),Nt(p,PIe(e,ee,null,o));for($e=new ye(Ve);$e.a<$e.c.c.length;)Me=y(de($e),12),Nt(p,PIe(e,null,Me,o));for(F=new ye(z);F.a<F.c.c.length;)M=y(de(F),12),Nt(p,PIe(e,M,M,o))}i(Ozt,"x9b");function gde(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(z=qa,ee=qa,M=0,F=0,A=new Pt,k=new Sn((!e.b&&(e.b=new xt(Cs,e,12,3)),e.b));k.e!=k.i.gc();)g=y(_n(k),85),A=pd(Se(Ee(kd,1),Fr,20,0,[A,(!g.n&&(g.n=new xt(nc,g,1,7)),g.n)]));for($e=Gm(pd(Se(Ee(kd,1),Fr,20,0,[(!e.n&&(e.n=new xt(nc,e,1,7)),e.n),(!e.a&&(e.a=new xt(Ti,e,10,11)),e.a),A])));Nn($e);)Me=y(vn($e),276),D=y(Me.mf((Ri(),bL)),140),z>Me.mh()-D.b&&(z=Me.mh()-D.b),ee>Me.nh()-D.d&&(ee=Me.nh()-D.d),M<Me.mh()+Me.lh()+D.c&&(M=Me.mh()+Me.lh()+D.c),F<Me.nh()+Me.kh()+D.a&&(F=Me.nh()+Me.kh()+D.a);for(w=new Sn((!e.b&&(e.b=new xt(Cs,e,12,3)),e.b));w.e!=w.i.gc();)for(g=y(_n(w),85),Ce=new Sn((!g.a&&(g.a=new xt(Ia,g,6,6)),g.a));Ce.e!=Ce.i.gc();)for(fe=y(_n(Ce),170),ie=fe.j,u=fe.b,ue=fe.k,p=fe.c,z=d.Math.min(z,ie),z=d.Math.min(z,u),M=d.Math.max(M,ie),M=d.Math.max(M,u),ee=d.Math.min(ee,ue),ee=d.Math.min(ee,p),F=d.Math.max(F,ue),F=d.Math.max(F,p),o=new Sn((!fe.a&&(fe.a=new Es(qf,fe,5)),fe.a));o.e!=o.i.gc();)n=y(_n(o),372),z=d.Math.min(z,n.a),M=d.Math.max(M,n.a),ee=d.Math.min(ee,n.b),F=d.Math.max(F,n.b);pa(e,(Ri(),Z3),M-z),pa(e,Q3,F-ee)}i(gde,"Rpd");function Pzt(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua;for(ee=y(oe(e,(uv(),I6)),26),$e=Ui,Ve=Ui,Ce=bo,Me=bo,st=new ye(e.e);st.a<st.c.c.length;)ht=y(de(st),155),Mr=ht.d,wn=ht.e,$e=d.Math.min($e,Mr.a-wn.a/2),Ve=d.Math.min(Ve,Mr.b-wn.b/2),Ce=d.Math.max(Ce,Mr.a+wn.a/2),Me=d.Math.max(Me,Mr.b+wn.b/2);for(o=new ye(e.b);o.a<o.c.c.length;)n=y(de(o),251),Mr=n.d,wn=n.e,$e=d.Math.min($e,Mr.a-wn.a/2),Ve=d.Math.min(Ve,Mr.b-wn.b/2),Ce=d.Math.max(Ce,Mr.a+wn.a/2),Me=d.Math.max(Me,Mr.b+wn.b/2);for(Pr=y(St(ee,(Vp(),pXt)),104),gr=new Lt(Pr.b-$e,Pr.d-Ve),D=new ye(e.e);D.a<D.c.c.length;)A=y(de(D),155),yr=oe(A,I6),Ge(yr,206)&&(ue=y(yr,26),Ht=ra(new Vo(A.d),gr),ld(ue,Ht.a-ue.g/2,Ht.b-ue.f/2));for(g=new ye(e.c);g.a<g.c.c.length;)p=y(de(g),291),F=y(oe(p,I6),85),z=zK(F),Jn=new Vo(aLe(p)),ra(Jn,gr),CF(z,Jn.a,Jn.b),Zc(p.a,new BEt(gr,z)),u=new Vo(sLe(p)),ra(u,gr),kF(z,u.a,u.b);for(k=new ye(e.d);k.a<k.c.c.length;)w=y(de(k),445),ie=y(oe(w,I6),157),fe=ra(new Vo(w.d),gr),ld(ie,fe.a,fe.b);Ua=Ce-$e+(Pr.b+Pr.c),M=Me-Ve+(Pr.d+Pr.a),Kt(Xt(St(ee,(Ri(),e4))))||eT(ee,Ua,M,!1,!0),pa(ee,Z3,Ua-(Pr.b+Pr.c)),pa(ee,Q3,M-(Pr.d+Pr.a))}i(Pzt,"aNb");function TEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e;for(o.Tg("Depth first model order layering",1),e.d=n,fe=new Pt,ue=new ye(e.d.a);ue.a<ue.c.c.length;)ee=y(de(ue),9),ee.k==(Yr(),Ya)&&tn(fe.c,ee);for(Ir(),zs(fe,new nmt),w=!0,e.b=new Nc(e.d),e.a=null,Nt(e.d.b,e.b),e.b.p=0,e.c=0,e.f=new ya,ie=new ye(fe);ie.a<ie.c.c.length;)if(ee=y(de(ie),9),w)Us(ee,e.b),w=!1;else if(Okn(e,ee))if(z=e.c,z=POt(z,ee),u=z+2,M=z-e.c,e.f.b==0)iIe(e,u,ee);else if(M>0){for($e=ei(e.f,0);$e.b!=$e.d.c;)Me=y(Qn($e),9),Me.p+=z-e.e;i9e(e),gf(e.f),iIe(e,u,ee)}else{for(_i(e.f,ee),ee.p=u,e.e=d.Math.max(e.e,u),g=new nn(cn(os(ee).a.Jc(),new B));Nn(g);)p=y(vn(g),17),!p.c.i.c&&p.c.i.k==(Yr(),_c)&&(_i(e.f,p.c.i),p.c.i.p=u-1);e.c=u}else i9e(e),gf(e.f),u=0,Nn(new nn(cn(os(ee).a.Jc(),new B)))?(z=0,z=POt(z,ee),u=z+2,iIe(e,u,ee)):(_i(e.f,ee),ee.p=0,e.e=d.Math.max(e.e,0),e.b=y(Wt(e.d.b,0),25),e.c=0);for(e.f.b==0||i9e(e),e.d.a.c.length=0,Ce=new Pt,D=new ye(e.d.b);D.a<D.c.c.length;)k=y(de(D),25),k.a.c.length==0&&tn(Ce.c,k);for(v_e(e.d.b,Ce),F=0,A=new ye(e.d.b);A.a<A.c.c.length;)k=y(de(A),25),k.p=F,++F;o.Ug()}i(TEn,"pDc");function kEn(e,n,o){var u,p,g,w,k,A,D,M,F;if(o.Tg("Network simplex node placement",1),e.e=n,e.n=y(oe(n,(Tt(),yE)),317),O3n(e),g1n(e),ts(jl(new Er(null,new Rr(e.e.b,16)),new vmt),new dkt(e)),ts(Hi(jl(Hi(jl(new Er(null,new Rr(e.e.b,16)),new Mmt),new Nmt),new Omt),new Pmt),new fkt(e)),Kt(Xt(oe(e.e,(Bt(),JM))))&&(w=o.dh(1),w.Tg("Straight Edges Pre-Processing",1),aCn(e),w.Ug()),t0n(e.f),g=y(oe(n,ZM),15).a*e.f.a.c.length,qfe(a6e(s6e(rce(e.f),g),!1),o.dh(1)),e.d.a.gc()!=0){for(w=o.dh(1),w.Tg("Flexible Where Space Processing",1),k=y(ff(P5(bu(new Er(null,new Rr(e.f.a,16)),new wmt),new hmt)),15).a,A=y(ff($k(bu(new Er(null,new Rr(e.f.a,16)),new xmt),new fmt)),15).a,D=A-k,M=Ex(new G2,e.f),F=Ex(new G2,e.f),Up(Dp(_p(Lp(Ip(new Vd,2e4),D),M),F)),ts(Hi(Hi(Ece(e.i),new Tmt),new Cmt),new O7t(k,M,D,F)),p=e.d.a.ec().Jc();p.Ob();)u=y(p.Pb(),217),u.g=1;qfe(a6e(s6e(rce(e.f),g),!1),w.dh(1)),w.Ug()}Kt(Xt(oe(n,JM)))&&(w=o.dh(1),w.Tg("Straight Edges Post-Processing",1),rbn(e),w.Ug()),j4n(e),e.e=null,e.f=null,e.i=null,e.c=null,Sc(e.k),e.j=null,e.a=null,e.o=null,e.d.a.$b(),o.Ug()}i(kEn,"dLc");function Bzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;return F=hkn(Hu(e,(zt(),y0)),n),ie=$C(Hu(e,tg),n),Ve=$C(Hu(e,Wf),n),yr=vK(Hu(e,sp),n),z=vK(Hu(e,Sd),n),Me=$C(Hu(e,rg),n),ue=$C(Hu(e,Nh),n),st=$C(Hu(e,Hf),n),ht=$C(Hu(e,Ad),n),gr=vK(Hu(e,$u),n),Ce=$C(Hu(e,rh),n),$e=$C(Hu(e,Oh),n),Ht=$C(Hu(e,th),n),Pr=vK(Hu(e,nh),n),ee=vK(Hu(e,wh),n),fe=$C(Hu(e,su),n),o=AC(Se(Ee(po,1),vl,30,15,[Me.a,yr.a,st.a,Pr.a])),u=AC(Se(Ee(po,1),vl,30,15,[ie.a,F.a,Ve.a,fe.a])),p=Ce.a,g=AC(Se(Ee(po,1),vl,30,15,[ue.a,z.a,ht.a,ee.a])),D=AC(Se(Ee(po,1),vl,30,15,[Me.b,ie.b,ue.b,$e.b])),A=AC(Se(Ee(po,1),vl,30,15,[yr.b,F.b,z.b,fe.b])),M=gr.b,k=AC(Se(Ee(po,1),vl,30,15,[st.b,Ve.b,ht.b,Ht.b])),jy(Hu(e,y0),o+p,D+M),jy(Hu(e,su),o+p,D+M),jy(Hu(e,tg),o+p,0),jy(Hu(e,Wf),o+p,D+M+A),jy(Hu(e,sp),0,D+M),jy(Hu(e,Sd),o+p+u,D+M),jy(Hu(e,Nh),o+p+u,0),jy(Hu(e,Hf),0,D+M+A),jy(Hu(e,Ad),o+p+u,D+M+A),jy(Hu(e,$u),0,D),jy(Hu(e,rh),o,0),jy(Hu(e,th),0,D+M+A),jy(Hu(e,wh),o+p+u,0),w=new xo,w.a=AC(Se(Ee(po,1),vl,30,15,[o+u+p+g,gr.a,$e.a,Ht.a])),w.b=AC(Se(Ee(po,1),vl,30,15,[D+A+M+k,Ce.b,Pr.b,ee.b])),w}i(Bzt,"jUb");function CEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua,Ph,Ml;if(Pr=null,wn=n,Mr=aIt(e,JLt(o),wn),E7(Mr,N1(wn,am)),Jn=y(RC(e.n,u6(M1(wn,Rge))),26),z=M1(wn,"sourcePort"),u=null,z&&(u=u6(z)),Ua=y(RC(e.p,u),125),!Jn)throw k=W7(wn),ie="An edge must have a source node (edge id: '"+k,ue=ie+$R,xe(new j0(ue));if(Ua&&!Oc(qg(Ua),Jn))throw A=N1(wn,am),fe="The source port of an edge must be a port of the edge's source node (edge id: '"+A,Ce=fe+$R,xe(new j0(Ce));if(yr=(!Mr.b&&(Mr.b=new zr(Hn,Mr,4,7)),Mr.b),g=null,Ua?g=Ua:g=Jn,Zn(yr,g),Ph=y(RC(e.n,u6(M1(wn,vPe))),26),ee=M1(wn,"targetPort"),p=null,ee&&(p=u6(ee)),Ml=y(RC(e.p,p),125),!Ph)throw F=W7(wn),Me="An edge must have a target node (edge id: '"+F,$e=Me+$R,xe(new j0($e));if(Ml&&!Oc(qg(Ml),Ph))throw D=N1(wn,am),Ve="The target port of an edge must be a port of the edge's target node (edge id: '"+D,ht=Ve+$R,xe(new j0(ht));if(gr=(!Mr.c&&(Mr.c=new zr(Hn,Mr,5,8)),Mr.c),w=null,Ml?w=Ml:w=Ph,Zn(gr,w),(!Mr.b&&(Mr.b=new zr(Hn,Mr,4,7)),Mr.b).i==0||(!Mr.c&&(Mr.c=new zr(Hn,Mr,5,8)),Mr.c).i==0)throw M=N1(wn,am),st=JWt+M,Ht=st+$R,xe(new j0(Ht));return SK(wn,Mr),Xvn(wn,Mr),Pr=she(e,wn,Mr),Pr}i(CEn,"oCd");function Fzt(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;for(Me=new Lt(qa,qa),n=new Lt(Ys,Ys),yr=new ye(e);yr.a<yr.c.c.length;)Ht=y(de(yr),8),Me.a=d.Math.min(Me.a,Ht.a),Me.b=d.Math.min(Me.b,Ht.b),n.a=d.Math.max(n.a,Ht.a),n.b=d.Math.max(n.b,Ht.b);for(z=new Lt(n.a-Me.a,n.b-Me.b),D=new Lt(Me.a-50,Me.b-z.a-50),M=new Lt(Me.a-50,n.b+z.a+50),F=new Lt(n.a+z.b/2+50,Me.b+z.b/2),ee=new NIe(D,M,F),st=new gs,g=new Pt,o=new Pt,st.a.yc(ee,st),Pr=new ye(e);Pr.a<Pr.c.c.length;){for(gr=y(de(Pr),8),g.c.length=0,ht=st.a.ec().Jc();ht.Ob();)$e=y(ht.Pb(),322),u=$e.d,cv(u,$e.a),Vx(cv($e.d,gr),cv($e.d,$e.a))<0&&tn(g.c,$e);for(o.c.length=0,Ve=new ye(g);Ve.a<Ve.c.c.length;)for($e=y(de(Ve),322),fe=new ye($e.e);fe.a<fe.c.c.length;){for(ie=y(de(fe),177),w=!0,A=new ye(g);A.a<A.c.c.length;)k=y(de(A),322),k!=$e&&(Oc(ie,Wt(k.e,0))||Oc(ie,Wt(k.e,1))||Oc(ie,Wt(k.e,2)))&&(w=!1);w&&tn(o.c,ie)}for(lBt(st,g),Io(st,new K),ue=new ye(o);ue.a<ue.c.c.length;)ie=y(de(ue),177),ys(st,new NIe(gr,ie.a,ie.b))}for(Ce=new gs,Io(st,new zxt(Ce)),p=Ce.a.ec().Jc();p.Ob();)ie=y(p.Pb(),177),(hX(ee,ie.a)||hX(ee,ie.b))&&p.Qb();return Io(Ce,new Te),Ce}i(Fzt,"XDb");function Ac(){Ac=U,fCt(),Tir=ro.a,y(je(wt(ro.a),0),19),wir=ro.f,y(je(wt(ro.f),0),19),y(je(wt(ro.f),1),38),xir=ro.n,y(je(wt(ro.n),0),38),y(je(wt(ro.n),1),38),y(je(wt(ro.n),2),38),y(je(wt(ro.n),3),38),aWe=ro.g,y(je(wt(ro.g),0),19),y(je(wt(ro.g),1),38),vir=ro.c,y(je(wt(ro.c),0),19),y(je(wt(ro.c),1),19),sWe=ro.i,y(je(wt(ro.i),0),19),y(je(wt(ro.i),1),19),y(je(wt(ro.i),2),19),y(je(wt(ro.i),3),19),y(je(wt(ro.i),4),38),oWe=ro.j,y(je(wt(ro.j),0),19),iWe=ro.d,y(je(wt(ro.d),0),19),y(je(wt(ro.d),1),19),y(je(wt(ro.d),2),19),y(je(wt(ro.d),3),19),y(je(wt(ro.d),4),38),y(je(wt(ro.d),5),38),y(je(wt(ro.d),6),38),y(je(wt(ro.d),7),38),bir=ro.b,y(je(wt(ro.b),0),38),y(je(wt(ro.b),1),38),wee=ro.e,y(je(wt(ro.e),0),38),y(je(wt(ro.e),1),38),y(je(wt(ro.e),2),38),y(je(wt(ro.e),3),38),y(je(wt(ro.e),4),19),y(je(wt(ro.e),5),19),y(je(wt(ro.e),6),19),y(je(wt(ro.e),7),19),y(je(wt(ro.e),8),19),y(je(wt(ro.e),9),19),y(je(wt(ro.e),10),38),s1=ro.k,y(je(wt(ro.k),0),38),y(je(wt(ro.k),1),38)}i(Ac,"Nsd");function tMe(e){var n,o,u,p,g;switch(n=e.c,n){case 11:return e.tm();case 12:return e.vm();case 14:return e.xm();case 15:return e.Am();case 16:return e.ym();case 17:return e.Bm();case 21:return qi(e),Xi(),Xi(),WN;case 10:switch(e.a){case 65:return e.fm();case 90:return e.km();case 122:return e.rm();case 98:return e.lm();case 66:return e.gm();case 60:return e.qm();case 62:return e.om()}}switch(g=wEn(e),n=e.c,n){case 3:return e.Gm(g);case 4:return e.Em(g);case 5:return e.Fm(g);case 0:if(e.a==123&&e.d<e.j){if(p=e.d,u=0,o=-1,(n=Do(e.i,p++))>=48&&n<=57){for(u=n-48;p<e.j&&(n=Do(e.i,p++))>=48&&n<=57;)if(u=u*10+n-48,u<0)throw xe(new bi(ki((fi(),EPe))))}else throw xe(new bi(ki((fi(),SHt))));if(o=u,n==44){if(p>=e.j)throw xe(new bi(ki((fi(),RHt))));if((n=Do(e.i,p++))>=48&&n<=57){for(o=n-48;p<e.j&&(n=Do(e.i,p++))>=48&&n<=57;)if(o=o*10+n-48,o<0)throw xe(new bi(ki((fi(),EPe))));if(u>o)throw xe(new bi(ki((fi(),LHt))))}else o=-1}if(n!=125)throw xe(new bi(ki((fi(),AHt))));e._l(p)?(g=(Xi(),Xi(),++Za,new Yk(9,g)),e.d=p+1):(g=(Xi(),Xi(),++Za,new Yk(3,g)),e.d=p),g.Mm(u),g.Lm(o),qi(e)}}return g}i(tMe,"ape");function EEn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht;for(p=1,ee=new Pt,u=0;u<e.b.c.length;u++){if(n=Qyn(y(Wt(e.b,u),25)),$e=R0n(y(Wt(e.b,u),25)),M=A0n(y(Wt(e.b,u),25)),M){for(D=0,o=0,ue=new ye(y(Wt(e.b,u),25).a);ue.a<ue.c.c.length;)ie=y(de(ue),9),D=d.Math.max(D,ie.o.a),o+=ie.o.b;if(o/=y(Wt(e.b,u),25).a.c.length,D+=d.Math.max(2*He(Xe(oe(e,(Bt(),Fv)))),d.Math.max(y(Wt(e.b,u),25).a.c.length*He(Xe(oe(e,H3))),He(Xe(oe(e,Y3))))),o+=d.Math.max(He(Xe(oe(e,Mw))),He(Xe(oe(e,Iw)))),D/o>=y(Wt(e.b,u),25).a.c.length/4)continue}if(y(Wt(e.b,u),25).a.c.length>=n){for(Ve=new Pt,Nt(Ve,y(Wt(e.b,u),25)),w=0;w<n-1;w++)F=new Nc(e),Nt(ee,new Ko(F,Et(u+w+p))),tn(Ve.c,F);for(p+=n-1,Me=(_r(0,Ve.c.length),y(Ve.c[0],25)).a.c.length,g=0,fe=0,ht=0;g<Me;++g,++fe,ht++)ie=y(Wt((_r(0,Ve.c.length),y(Ve.c[0],25)).a,fe),9),ie.k!=(Yr(),MM)?fe+=eEn(e,Ve,ht%n,fe):(g-=1,ht-=1),$e&&ie.k==bs&&(ht=-1)}}for(z=new ye(ee);z.a<z.c.c.length;)F=y(de(z),49),W2(e.b,y(F.b,15).a,y(F.a,25));for(A=new ye(e.b);A.a<A.c.c.length;)for(k=y(de(A),25),Ce=new yo(k.a,0);Ce.b<Ce.d.gc();)ie=(In(Ce.b<Ce.d.gc()),y(Ce.d.Xb(Ce.c=Ce.b++),9)),(ie.k==(Yr(),tj)||ie.k==MM)&&Wh(Ce)}i(EEn,"Zlc");function tT(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(o==null)return null;if(e.a!=n.hk())throw xe(new rn(PR+n.ve()+uT));if(Ge(n,459)){if(fe=mxn(y(n,675),o),!fe)throw xe(new rn(Sge+o+"' is not a valid enumerator of '"+n.ve()+"'"));return fe}switch(Hy((yh(),Ro),n).Ll()){case 2:{o=ru(o,!1);break}case 3:{o=ru(o,!0);break}}if(u=Hy(Ro,n).Hl(),u)return u.hk().ti().qi(u,o);if(z=Hy(Ro,n).Jl(),z){for(fe=new Pt,D=uhe(o),M=0,F=D.length;M<F;++M)A=D[M],Nt(fe,z.hk().ti().qi(z,A));return fe}if(ue=Hy(Ro,n).Kl(),!ue.dc()){for(ie=ue.Jc();ie.Ob();){ee=y(ie.Pb(),159);try{if(fe=ee.hk().ti().qi(ee,o),fe!=null)return fe}catch(Ce){if(Ce=hs(Ce),!Ge(Ce,63))throw xe(Ce)}}throw xe(new rn(Sge+o+"' does not match any member types of the union datatype '"+n.ve()+"'"))}if(y(n,832).mk(),p=$dn(n.ik()),!p)return null;if(p==SM){w=0;try{w=Ff(o,bo,Ui)&As}catch(Ce){if(Ce=hs(Ce),Ge(Ce,131))g=dX(o),w=g[0];else throw xe(Ce)}return w$(w)}if(p==gQ){for(k=0;k<PN.length;++k)try{return AEt(PN[k],o)}catch(Ce){if(Ce=hs(Ce),!Ge(Ce,32))throw xe(Ce)}throw xe(new rn(Sge+o+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw xe(new rn(Sge+o+"' is invalid. "))}i(tT,"Qxd");function mde(){mde=U,va=new Ox,Sr(va,(zt(),y0),su),Sr(va,sp,su),Sr(va,sp,nh),Sr(va,Sd,wh),Sr(va,Sd,su),Sr(va,tg,su),Sr(va,tg,Oh),Sr(va,Wf,th),Sr(va,Wf,su),Sr(va,rh,$u),Sr(va,rh,su),Sr(va,rh,Oh),Sr(va,rh,th),Sr(va,$u,rh),Sr(va,$u,nh),Sr(va,$u,wh),Sr(va,$u,su),Sr(va,rg,rg),Sr(va,rg,Oh),Sr(va,rg,nh),Sr(va,Nh,Nh),Sr(va,Nh,Oh),Sr(va,Nh,wh),Sr(va,Hf,Hf),Sr(va,Hf,th),Sr(va,Hf,nh),Sr(va,Ad,Ad),Sr(va,Ad,th),Sr(va,Ad,wh),Sr(va,Oh,tg),Sr(va,Oh,rh),Sr(va,Oh,rg),Sr(va,Oh,Nh),Sr(va,Oh,su),Sr(va,Oh,Oh),Sr(va,Oh,nh),Sr(va,Oh,wh),Sr(va,th,Wf),Sr(va,th,rh),Sr(va,th,Hf),Sr(va,th,Ad),Sr(va,th,th),Sr(va,th,nh),Sr(va,th,wh),Sr(va,th,su),Sr(va,nh,sp),Sr(va,nh,$u),Sr(va,nh,rg),Sr(va,nh,Hf),Sr(va,nh,Oh),Sr(va,nh,th),Sr(va,nh,nh),Sr(va,nh,su),Sr(va,wh,Sd),Sr(va,wh,$u),Sr(va,wh,Nh),Sr(va,wh,Ad),Sr(va,wh,Oh),Sr(va,wh,th),Sr(va,wh,wh),Sr(va,wh,su),Sr(va,su,y0),Sr(va,su,sp),Sr(va,su,Sd),Sr(va,su,tg),Sr(va,su,Wf),Sr(va,su,rh),Sr(va,su,$u),Sr(va,su,Oh),Sr(va,su,th),Sr(va,su,nh),Sr(va,su,wh),Sr(va,su,su)}i(mde,"dUb");function rMe(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr;for(e.d=new Lt(qa,qa),e.c=new Lt(Ys,Ys),z=n.Jc();z.Ob();)for(M=y(z.Pb(),36),$e=new ye(M.a);$e.a<$e.c.c.length;)Me=y(de($e),9),e.d.a=d.Math.min(e.d.a,Me.n.a-Me.d.b),e.d.b=d.Math.min(e.d.b,Me.n.b-Me.d.d),e.c.a=d.Math.max(e.c.a,Me.n.a+Me.o.a+Me.d.c),e.c.b=d.Math.max(e.c.b,Me.n.b+Me.o.b+Me.d.a);for(k=new Z3t,F=n.Jc();F.Ob();)M=y(F.Pb(),36),u=oEn(e,M),Nt(k.a,u),u.a=u.a|!y(oe(u.c,(Tt(),J1)),22).dc();for(e.b=(dhe(),yr=new pn,yr.f=new pIt(o),yr.b=g4n(yr.f,k),yr),_4n((ie=e.b,new g5,ie)),e.e=new xo,e.a=e.b.f.e,w=new ye(k.a);w.a<w.c.c.length;)for(p=y(de(w),840),Ve=Jsn(e.b,p),Qxn(p.c,Ve.a,Ve.b),fe=new ye(p.c.a);fe.a<fe.c.c.length;)ue=y(de(fe),9),ue.k==(Yr(),ks)&&(Ce=V9e(e,ue.n,y(oe(ue,(Tt(),gc)),64)),ra(hg(ue.n),Ce));for(g=new ye(k.a);g.a<g.c.c.length;)for(p=y(de(g),840),D=new ye(Jdn(p));D.a<D.c.c.length;)for(A=y(de(D),17),Ht=new KH(A.a),e7(Ht,0,Xg(A.c)),_i(Ht,Xg(A.d)),ee=null,st=ei(Ht,0);st.b!=st.d.c;){if(ht=y(Qn(st),8),!ee){ee=ht;continue}ZRe(ee.a,ht.a)?(e.e.a=d.Math.min(e.e.a,ee.a),e.a.a=d.Math.max(e.a.a,ee.a)):ZRe(ee.b,ht.b)&&(e.e.b=d.Math.min(e.e.b,ee.b),e.a.b=d.Math.max(e.a.b,ee.b)),ee=ht}Xq(e.e),ra(e.a,e.e)}i(rMe,"FUb");function SEn(e,n){var o,u,p,g,w,k,A,D;if(o=0,w=0,g=n.length,k=null,D=new sC,w<g&&(un(w,n.length),n.charCodeAt(w)==43)&&(++w,++o,w<g&&(un(w,n.length),n.charCodeAt(w)==43||(un(w,n.length),n.charCodeAt(w)==45))))throw xe(new z0(nT+n+'"'));for(;w<g&&(un(w,n.length),n.charCodeAt(w)!=46)&&(un(w,n.length),n.charCodeAt(w)!=101)&&(un(w,n.length),n.charCodeAt(w)!=69);)++w;if(D.a+=""+Yd(n==null?Qu:(Ur(n),n),o,w),w<g&&(un(w,n.length),n.charCodeAt(w)==46)){for(++w,o=w;w<g&&(un(w,n.length),n.charCodeAt(w)!=101)&&(un(w,n.length),n.charCodeAt(w)!=69);)++w;e.e=w-o,D.a+=""+Yd(n==null?Qu:(Ur(n),n),o,w)}else e.e=0;if(w<g&&(un(w,n.length),n.charCodeAt(w)==101||(un(w,n.length),n.charCodeAt(w)==69))&&(++w,o=w,w<g&&(un(w,n.length),n.charCodeAt(w)==43)&&(++w,w<g&&(un(w,n.length),n.charCodeAt(w)!=45)&&++o),k=(ko(o,g,n.length),n.substr(o,g-o)),e.e=e.e-Ff(k,bo,Ui),e.e!=Po(e.e)))throw xe(new z0("Scale out of range."));if(A=D.a,A.length<16){if(e.f=(fBe==null&&(fBe=new RegExp("^[+-]?\\d*$","i")),fBe.test(A)?parseInt(A,10):NaN),isNaN(e.f))throw xe(new z0(nT+n+'"'));e.a=m9e(e.f)}else Idn(e,new ev(A));for(e.d=D.a.length,p=0;p<D.a.length&&(u=Do(D.a,p),!(u!=45&&u!=48));++p)--e.d;e.d==0&&(e.d=1)}i(SEn,"Fhb");function AEn(e){ni(e.b,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"ConsistentTransient"])),ni(e.a,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"WellFormedSourceURI"])),ni(e.o,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),ni(e.p,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),ni(e.v,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),ni(e.R,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"WellFormedName"])),ni(e.T,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),ni(e.U,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),ni(e.W,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),ni(e.bb,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"ValidDefaultValueLiteral"])),ni(e.eb,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),ni(e.H,ep,Se(Ee(Zt,1),Dt,2,6,[hT,"ConsistentType ConsistentBounds ConsistentArguments"]))}i(AEn,"h9d");function REn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr;if(!n.dc()){if(p=new Vh,k=o||y(n.Xb(0),17),ie=k.c,PI(),z=ie.i.k,!(z==(Yr(),Ya)||z==iu||z==ks||z==u0))throw xe(new rn("The target node of the edge must be a normal node or a northSouthPort."));for(Uo(p,Ql(Se(Ee(to,1),Dt,8,0,[ie.i.n,ie.n,ie.a]))),(zt(),rh).Gc(ie.j)&&(fe=He(Xe(oe(ie,(Tt(),nL)))),F=new Lt(Ql(Se(Ee(to,1),Dt,8,0,[ie.i.n,ie.n,ie.a])).a,fe),Ha(p,F,p.c.b,p.c)),M=null,u=!1,A=n.Jc();A.Ob();)w=y(A.Pb(),17),g=w.a,g.b!=0&&(u?(D=L1(ra(M,(In(g.b!=0),y(g.a.a.c,8))),.5),Ha(p,D,p.c.b,p.c),u=!1):u=!0,M=Wo((In(g.b!=0),y(g.c.b.c,8))),Fo(p,g),gf(g));ue=k.d,rh.Gc(ue.j)&&(fe=He(Xe(oe(ue,(Tt(),nL)))),F=new Lt(Ql(Se(Ee(to,1),Dt,8,0,[ue.i.n,ue.n,ue.a])).a,fe),Ha(p,F,p.c.b,p.c)),Uo(p,Ql(Se(Ee(to,1),Dt,8,0,[ue.i.n,ue.n,ue.a]))),e.d==(O7(),w1e)&&(Ce=(In(p.b!=0),y(p.a.a.c,8)),Me=y(Bc(p,1),8),$e=new Qce(XLe(ie.j)),$e.a*=5,$e.b*=5,Ve=qs(new Lt(Me.a,Me.b),Ce),ht=new Lt(Kce($e.a,Ve.a),Kce($e.b,Ve.b)),ra(ht,Ce),st=ei(p,1),EY(st,ht),Ht=(In(p.b!=0),y(p.c.b.c,8)),yr=y(Bc(p,p.b-2),8),$e=new Qce(XLe(ue.j)),$e.a*=5,$e.b*=5,Ve=qs(new Lt(yr.a,yr.b),Ht),gr=new Lt(Kce($e.a,Ve.a),Kce($e.b,Ve.b)),ra(gr,Ht),e7(p,p.b-1,gr)),ee=new OIe(p),Fo(k.a,XOt(ee))}}i(REn,"E1b");function LEn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua,Ph,Ml,Yf,$E,bb,ng,iy;if($e=y(je((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),0),84),ht=$e.mh(),st=$e.nh(),Ve=$e.lh()/2,ue=$e.kh()/2,Ge($e,193)&&(Me=y($e,125),ht+=qg(Me).i,ht+=qg(Me).i),ht+=Ve,st+=ue,Mr=y(je((!e.b&&(e.b=new zr(Hn,e,4,7)),e.b),0),84),Jn=Mr.mh(),Ua=Mr.nh(),wn=Mr.lh()/2,Ht=Mr.kh()/2,Ge(Mr,193)&&(Pr=y(Mr,125),Jn+=qg(Pr).i,Jn+=qg(Pr).i),Jn+=wn,Ua+=Ht,(!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i==0)k=(Kb(),D=new SH,D),Zn((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a),k);else if((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i>1)for(ie=new L5((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a));ie.e!=ie.i.gc();)AI(ie);for(w=y(je((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a),0),170),fe=Jn,Jn>ht+Ve?fe=ht+Ve:Jn<ht-Ve&&(fe=ht-Ve),Ce=Ua,Ua>st+ue?Ce=st+ue:Ua<st-ue&&(Ce=st-ue),fe>ht-Ve&&fe<ht+Ve&&Ce>st-ue&&Ce<st+ue&&(fe=ht+Ve),DC(w,fe),IC(w,Ce),yr=ht,ht>Jn+wn?yr=Jn+wn:ht<Jn-wn&&(yr=Jn-wn),gr=st,st>Ua+Ht?gr=Ua+Ht:st<Ua-Ht&&(gr=Ua-Ht),yr>Jn-wn&&yr<Jn+wn&&gr>Ua-Ht&&gr<Ua+Ht&&(gr=Ua+Ht),LC(w,yr),_C(w,gr),Kn((!w.a&&(w.a=new Es(qf,w,5)),w.a)),g=pK(n,5),$e==Mr&&++g,Yf=yr-fe,ng=gr-Ce,Ph=d.Math.sqrt(Yf*Yf+ng*ng),F=Ph*.20000000298023224,$E=Yf/(g+1),iy=ng/(g+1),Ml=fe,bb=Ce,M=0;M<g;M++)Ml+=$E,bb+=iy,z=Ml+Qh(n,24)*CG*F-F/2,z<0?z=1:z>o&&(z=o-1),ee=bb+Qh(n,24)*CG*F-F/2,ee<0?ee=1:ee>u&&(ee=u-1),p=(Kb(),A=new EH,A),wX(p,z),xX(p,ee),Zn((!w.a&&(w.a=new Es(qf,w,5)),w.a),p)}i(LEn,"Ard");function yde(e,n){tde();var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn;if(yr=e.e,ie=e.d,p=e.a,yr==0)switch(n){case 0:return"0";case 1:return mR;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return st=new Yb,n<0?st.a+="0E+":st.a+="0E",st.a+=-n,st.a}if($e=ie*10+1+7,Ve=tt(Rd,em,30,$e+1,15,1),o=$e,ie==1)if(k=p[0],k<0){Jn=co(k,ll);do ue=Jn,Jn=V$(Jn,10),Ve[--o]=48+mi(Kd(ue,$o(Jn,10)))&As;while(eu(Jn,0)!=0)}else{Jn=k;do ue=Jn,Jn=Jn/10|0,Ve[--o]=48+(ue-Jn*10)&As;while(Jn!=0)}else{Pr=tt(pi,Pi,30,ie,15,1),wn=ie,$c(p,0,Pr,0,wn);e:for(;;){for(Ht=0,D=wn-1;D>=0;D--)Mr=Ho($m(Ht,32),co(Pr[D],ll)),Ce=_1n(Mr),Pr[D]=mi(Ce),Ht=mi(Rx(Ce,32));Me=mi(Ht),fe=o;do Ve[--o]=48+Me%10&As;while((Me=Me/10|0)!=0&&o!=0);for(u=9-fe+o,A=0;A<u&&o>0;A++)Ve[--o]=48;for(F=wn-1;Pr[F]==0;F--)if(F==0)break e;wn=F+1}for(;Ve[o]==48;)++o}if(ee=yr<0,w=$e-o-n-1,n==0)return ee&&(Ve[--o]=45),Jd(Ve,o,$e-o);if(n>0&&w>=-6){if(w>=0){for(M=o+w,z=$e-1;z>=M;z--)Ve[z+1]=Ve[z];return Ve[++M]=46,ee&&(Ve[--o]=45),Jd(Ve,o,$e-o+1)}for(F=2;F<-w+1;F++)Ve[--o]=48;return Ve[--o]=46,Ve[--o]=48,ee&&(Ve[--o]=45),Jd(Ve,o,$e-o)}return gr=o+1,g=$e,ht=new sC,ee&&(ht.a+="-"),g-gr>=1?(nv(ht,Ve[o]),ht.a+=".",ht.a+=Jd(Ve,o+1,$e-o-1)):ht.a+=Jd(Ve,o,$e-o),ht.a+="E",w>0&&(ht.a+="+"),ht.a+=""+w,ht.a}i(yde,"Kib");function $zt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;switch(e.c=n,e.g=new jn,o=(U2(),new qb(e.c)),u=new KB(o),Rhe(u),$e=di(St(e.c,(H$(),gUe))),A=y(St(e.c,yye),330),ht=y(St(e.c,bye),427),w=y(St(e.c,fUe),477),Ve=y(St(e.c,mye),428),e.j=He(Xe(St(e.c,Grr))),k=e.a,A.g){case 0:k=e.a;break;case 1:k=e.b;break;case 2:k=e.i;break;case 3:k=e.e;break;case 4:k=e.f;break;default:throw xe(new rn(UJ+(A.f!=null?A.f:""+A.g)))}if(e.d=new TRt(k,ht,w),dt(e.d,(_7(),_M),Xt(St(e.c,Frr))),e.d.c=Kt(Xt(St(e.c,dUe))),NY(e.c).i==0)return e.d;for(F=new Sn(NY(e.c));F.e!=F.i.gc();){for(M=y(_n(F),26),ee=M.g/2,z=M.f/2,st=new Lt(M.i+ee,M.j+z);Kc(e.g,st);)Mk(st,(d.Math.random()-.5)*rm,(d.Math.random()-.5)*rm);ue=y(St(M,(Ri(),bL)),140),fe=new FRt(st,new Op(st.a-ee-e.j/2-ue.b,st.b-z-e.j/2-ue.d,M.g+e.j+(ue.b+ue.c),M.f+e.j+(ue.d+ue.a))),Nt(e.d.i,fe),Oi(e.g,st,new Ko(fe,M))}switch(Ve.g){case 0:if($e==null)e.d.d=y(Wt(e.d.i,0),68);else for(Me=new ye(e.d.i);Me.a<Me.c.c.length;)fe=y(de(Me),68),ie=y(y(Jr(e.g,fe.a),49).b,26).ih(),ie!=null&&Cr(ie,$e)&&(e.d.d=fe);break;case 1:for(p=new Lt(e.c.g,e.c.f),p.a*=.5,p.b*=.5,Mk(p,e.c.i,e.c.j),g=qa,Ce=new ye(e.d.i);Ce.a<Ce.c.c.length;)fe=y(de(Ce),68),D=cv(fe.a,p),D<g&&(g=D,e.d.d=fe);break;default:throw xe(new rn(UJ+(Ve.f!=null?Ve.f:""+Ve.g)))}return e.d}i($zt,"F7c");function Gzt(e){Sk(e,new Xx(Ck(xk(kk(Tk(new yx,Dh),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new xyt))),_t(e,Dh,TR,1.3),_t(e,Dh,kR,(qr(),!1)),_t(e,Dh,C3,Wze),_t(e,Dh,k3,15),_t(e,Dh,NJ,Vt(vrr)),_t(e,Dh,QC,Vt(Trr)),_t(e,Dh,C6,Vt(Crr)),_t(e,Dh,k6,Vt(Err)),_t(e,Dh,CR,Vt(xrr)),_t(e,Dh,rM,Vt(iye)),_t(e,Dh,ER,Vt(Srr)),_t(e,Dh,jOe,Vt(Xze)),_t(e,Dh,zOe,Vt(Yze)),_t(e,Dh,GOe,Vt(sye)),_t(e,Dh,$Oe,Vt(Kze)),_t(e,Dh,UOe,Vt(Vze)),_t(e,Dh,VOe,Vt(aye)),_t(e,Dh,WOe,Vt(Uze)),_t(e,Dh,HOe,Vt(qze)),_t(e,Dh,tM,Vt(jze)),_t(e,Dh,PJ,Vt(wrr)),_t(e,Dh,POe,Vt(_j)),_t(e,Dh,OOe,Vt(Gze)),_t(e,Dh,BOe,Vt(Dj)),_t(e,Dh,NOe,Vt(Hze)),_t(e,Dh,FOe,Vt(zze))}i(Gzt,"T4c");function _En(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua,Ph,Ml,Yf;for(o.Tg("Greedy cycle removal",1),e.b=n,$e=n.a,Yf=$e.c.length,e.a=tt(pi,Pi,30,Yf,15,1),e.d=tt(pi,Pi,30,Yf,15,1),e.c=tt(pi,Pi,30,Yf,15,1),D=0,Ce=new ye($e);Ce.a<Ce.c.c.length;){for(ue=y(de(Ce),9),ue.p=D,gr=new ye(ue.j);gr.a<gr.c.c.length;){for(st=y(de(gr),12),k=new ye(st.e);k.a<k.c.c.length;)u=y(de(k),17),u.c.i!=ue&&(wn=y(oe(u,(Bt(),lL)),15).a,e.a[D]+=wn>0?wn+1:1);for(w=new ye(st.g);w.a<w.c.c.length;)u=y(de(w),17),u.d.i!=ue&&(wn=y(oe(u,(Bt(),lL)),15).a,e.d[D]+=wn>0?wn+1:1)}e.d[D]==0?_i(e.f,ue):e.a[D]==0&&_i(e.g,ue),++D}for(ie=-1,ee=1,F=new Pt,e.e=y(oe(n,(Tt(),G6)),234);Yf>0;){for(;e.f.b!=0;)Ua=y(oce(e.f),9),e.c[Ua.p]=ie--,xIe(e,Ua),--Yf;for(;e.g.b!=0;)Ph=y(oce(e.g),9),e.c[Ph.p]=ee++,xIe(e,Ph),--Yf;if(Yf>0){for(z=bo,Me=new ye($e);Me.a<Me.c.c.length;)ue=y(de(Me),9),e.c[ue.p]==0&&(Ve=e.d[ue.p]-e.a[ue.p],Ve>=z&&(Ve>z&&(F.c.length=0,z=Ve),tn(F.c,ue)));M=e.qg(F),e.c[M.p]=ee++,xIe(e,M),--Yf}}for(Jn=$e.c.length+1,D=0;D<$e.c.length;D++)e.c[D]<0&&(e.c[D]+=Jn);for(fe=new ye($e);fe.a<fe.c.c.length;)for(ue=y(de(fe),9),Mr=BLt(ue.j),Ht=Mr,yr=0,Pr=Ht.length;yr<Pr;++yr)for(st=Ht[yr],ht=q0(st.g),p=ht,g=0,A=p.length;g<A;++g)u=p[g],Ml=u.d.i.p,e.c[ue.p]>e.c[Ml]&&(Jy(u,!0),dt(n,P6,(qr(),!0)));e.a=null,e.d=null,e.c=null,gf(e.g),gf(e.f),o.Ug()}i(_En,"ZBc");function jzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;for(ht=y(je((!e.a&&(e.a=new xt(Ia,e,6,6)),e.a),0),170),M=new Vh,Ve=new jn,st=ZGt(ht),Ju(Ve.f,ht,st),z=new jn,u=new ya,ie=Gm(pd(Se(Ee(kd,1),Fr,20,0,[(!n.d&&(n.d=new zr(Cs,n,8,5)),n.d),(!n.e&&(n.e=new zr(Cs,n,7,4)),n.e)])));Nn(ie);){if(ee=y(vn(ie),85),(!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i!=1)throw xe(new rn(NWt+(!e.a&&(e.a=new xt(Ia,e,6,6)),e.a).i));ee!=e&&(fe=y(je((!ee.a&&(ee.a=new xt(Ia,ee,6,6)),ee.a),0),170),Ha(u,fe,u.c.b,u.c),ue=y(Yl(Sl(Ve.f,fe)),13),ue||(ue=ZGt(fe),Ju(Ve.f,fe,ue)),F=o?qs(new Vo(y(Wt(st,st.c.length-1),8)),y(Wt(ue,ue.c.length-1),8)):qs(new Vo((_r(0,st.c.length),y(st.c[0],8))),(_r(0,ue.c.length),y(ue.c[0],8))),Ju(z.f,fe,F))}if(u.b!=0)for(Ce=y(Wt(st,o?st.c.length-1:0),8),D=1;D<st.c.length;D++){for(Me=y(Wt(st,o?st.c.length-1-D:D),8),p=ei(u,0);p.b!=p.d.c;)fe=y(Qn(p),170),ue=y(Yl(Sl(Ve.f,fe)),13),ue.c.length<=D?Oue(p):($e=ra(new Vo(y(Wt(ue,o?ue.c.length-1-D:D),8)),y(Yl(Sl(z.f,fe)),8)),(Me.a!=$e.a||Me.b!=$e.b)&&(g=Me.a-Ce.a,k=Me.b-Ce.b,w=$e.a-Ce.a,A=$e.b-Ce.b,w*k==A*g&&(g==0||isNaN(g)?g:g<0?-1:1)==(w==0||isNaN(w)?w:w<0?-1:1)&&(k==0||isNaN(k)?k:k<0?-1:1)==(A==0||isNaN(A)?A:A<0?-1:1)?(d.Math.abs(g)<d.Math.abs(w)||d.Math.abs(k)<d.Math.abs(A))&&Ha(M,Me,M.c.b,M.c):D>1&&Ha(M,Ce,M.c.b,M.c),Oue(p)));Ce=Me}return M}i(jzt,"Wpd");function DEn(e){var n,o,u,p,g;switch(o=y(oe(e,(Tt(),au)),22),n=Fq(NXt),p=y(oe(e,(Bt(),G3)),347),p==(z1(),hb)&&Pf(n,OXt),Kt(Xt(oe(e,Wme)))?Ei(n,(eo(),Yp),(ho(),W0e)):Ei(n,(eo(),jc),(ho(),W0e)),oe(e,(iX(),wN))!=null&&Pf(n,PXt),(Kt(Xt(oe(e,kGe)))||Kt(Xt(oe(e,vGe))))&&Xc(n,(eo(),hl),(ho(),oFe)),y(oe(e,Uf),86).g){case 2:case 3:case 4:Xc(Ei(n,(eo(),Yp),(ho(),cFe)),hl,lFe)}switch(o.Gc((ol(),nZ))&&Xc(Ei(Ei(n,(eo(),Yp),(ho(),sFe)),Lc,iFe),hl,aFe),Qe(oe(e,mj))!==Qe((Tv(),IZ))&&Ei(n,(eo(),jc),(ho(),EFe)),o.Gc(aZ)&&(Ei(n,(eo(),Yp),(ho(),LFe)),Ei(n,Zm,AFe),Ei(n,jc,RFe)),Qe(oe(e,pZ))!==Qe((Q7(),BM))&&Qe(oe(e,Z1))!==Qe((U1(),Uj))&&Xc(n,(eo(),hl),(ho(),bFe)),Kt(Xt(oe(e,xGe)))&&Ei(n,(eo(),jc),(ho(),yFe)),Kt(Xt(oe(e,zme)))&&Ei(n,(eo(),jc),(ho(),_Fe)),F2n(e)&&(Qe(oe(e,G3))===Qe(hb)?u=y(oe(e,gj),302):u=y(oe(e,jme),302),g=u==(L7(),xme)?(ho(),SFe):(ho(),MFe),Ei(n,(eo(),Lc),g)),y(oe(e,LGe),423).g==1&&Ei(n,(eo(),Lc),(ho(),ZBe)),y(oe(e,KGe),382).g){case 1:Ei(n,(eo(),Lc),(ho(),DFe));break;case 2:Xc(Ei(Ei(n,(eo(),jc),(ho(),eFe)),Lc,tFe),hl,rFe)}return Qe(oe(e,t1))!==Qe((V1(),$v))&&Ei(n,(eo(),jc),(ho(),IFe)),Kk(new Er(null,new Rr(e.a,16)),new dr)&&ea(e,Xme)&&Xc(n,(eo(),Lc),(ho(),CFe)),n}i(DEn,"FQb");function zzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;for(o.Tg(UVt,1),Pr=y(Rh(Hi(new Er(null,new Rr(n,16)),new $1t),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),M=y(Rh(Hi(new Er(null,new Rr(n,16)),new Mkt(n)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[Zu]))),16),ie=y(Rh(Hi(new Er(null,new Rr(n,16)),new Ikt(n)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[Zu]))),16),ue=tt(GZ,$J,40,n.gc(),0,1),w=0;w<M.gc();w++)p=y(M.Xb(w),40),gr=y(oe(p,(uc(),EE)),15).a,gr>=0&&gr<M.gc()&&!ue[gr]&&(ue[gr]=p,M.ed(w),--w);for(k=0;k<M.gc();k++)for(p=y(M.Xb(k),40),gr=y(oe(p,(uc(),EE)),15).a,z=0;;z++){if(ee=gr+z,ee<ue.length&&ee>=0&&!ue[ee]){ue[ee]=p,M.ed(k),--k;break}if(ee=gr-z,ee<ue.length&&ee>=0&&!ue[ee]){ue[ee]=p,M.ed(k),--k;break}}for(ie.gd(new G1t),A=ue.length-1;A>=0;A--)!ue[A]&&!ie.dc()&&(ue[A]=y(ie.Xb(0),40),ie.ed(0));for(D=0;D<ue.length;D++)!ue[D]&&!Pr.dc()&&(ue[D]=y(Pr.Xb(0),40),Pr.ed(0));for(g=0;g<ue.length;g++)dt(ue[g],(Ca(),fN),Et(g));for(F=y(Ppn(Hi(new Er(null,new Rr(n,16)),new j1t),new B1t),523),st=F,Ht=0,yr=st.length;Ht<yr;++Ht){for(ht=st[Ht],u=the(ht),zzt(e,u,o.dh(1/F.length|0)),Ir(),nw(u,new boe((Ca(),fN))),fe=new ya,Ve=ei(u,0);Ve.b!=Ve.d.c;)for($e=y(Qn(Ve),40),Me=ei(ht.d,0);Me.b!=Me.d.c;)Ce=y(Qn(Me),65),Ce.c==$e&&Ha(fe,Ce,fe.c.b,fe.c);gf(ht.d),Fo(ht.d,fe)}o.Ug()}i(zzt,"BYc");function Uzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;for($e=He(Xe(St(n,(Wm(),J3)))),ee=He(Xe(St(n,gN))),z=He(Xe(St(n,KZ))),xLe((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a)),Ce=Pjt((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a),$e,e.b),fe=0;fe<Ce.c.length;fe++)if(A=(_r(fe,Ce.c.length),y(Ce.c[fe],186)),fe!=0&&(ie=(_r(fe-1,Ce.c.length),y(Ce.c[fe-1],186)),nNt(A,ie.f+ie.b+e.b)),ue=NEn(fe,Ce,$e,e.b,Kt(Xt(St(n,(n0(),aye))))),Kt(Xt(ue.b))){for(g=new ye(A.a);g.a<g.c.c.length;)p=y(de(g),173),p.c=!1,p.k=!1,Rjt(p);A.d=new Pt,A.e=$e,--fe}else if(mmn(e,A),fe+1<Ce.c.length&&(e.e=d.Math.max(A.e+e.b+y(Wt((_r(fe+1,Ce.c.length),y(Ce.c[fe+1],186)).a,0),173).r-$e,e.c),e.f=d.Math.min(A.e+e.b+y(Wt((_r(fe+1,Ce.c.length),y(Ce.c[fe+1],186)).a,0),173).r-$e,e.d),A.d.c.length!=0&&(e.c=d.Math.max(e.c,y(Wt(A.d,A.d.c.length-1),320).d+(A.d.c.length<=1?0:e.b)),e.d=d.Math.min(e.c,y(Wt(A.d,A.d.c.length-1),320).d+(A.d.c.length<=1?0:e.b)))),Ce.c.length==1)for(F=y(Wt(A.d,A.d.c.length-1),320),M=y(Wt(F.a,F.a.c.length-1),173),k=new ye(M.n);k.a<k.c.c.length;)w=y(de(k),208),e.c=d.Math.max(e.c,M.r-w.d),e.d=d.Math.min(e.d,M.r-w.d),e.e=d.Math.max(e.e,w.d+e.b),e.f=d.Math.min(e.f,w.d+e.b);return Me=kPt(Ce,e.b),Ve=d.Math.max(Me.a,ee-(o.b+o.c)),D=d.Math.max(Me.b,z-(o.d+o.a)),u=D-Me.b,pa(n,pN,u),pa(n,JZ,Ce),new U8e(e.a,Ve,Me.b+u,(NI(),Ij))}i(Uzt,"g6c");function IEn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn;if(Ht=y(oe(e,(Bt(),Qa)),102),Ht!=(uo(),m0)&&Ht!=Hv){for(ie=e.b,ee=ie.c.length,M=new vu((Of(ee+2,kde),mX(Ho(Ho(5,ee+2),(ee+2)/10|0)))),ue=new vu((Of(ee+2,kde),mX(Ho(Ho(5,ee+2),(ee+2)/10|0)))),Nt(M,new jn),Nt(M,new jn),Nt(ue,new Pt),Nt(ue,new Pt),st=new Pt,n=0;n<ee;n++)for(o=(_r(n,ie.c.length),y(ie.c[n],25)),yr=(_r(n,M.c.length),y(M.c[n],92)),fe=new jn,tn(M.c,fe),Pr=(_r(n,ue.c.length),y(ue.c[n],16)),Me=new Pt,tn(ue.c,Me),p=new ye(o.a);p.a<p.c.c.length;){if(u=y(de(p),9),m_e(u)){tn(st.c,u);continue}for(D=new nn(cn(os(u).a.Jc(),new B));Nn(D);)k=y(vn(D),17),Mr=k.c.i,m_e(Mr)&&(gr=y(yr.xc(oe(Mr,(Tt(),aa))),9),gr||(gr=cFt(e,Mr),yr.yc(oe(Mr,aa),gr),Pr.Ec(gr)),Bo(k,y(Wt(gr.j,1),12)));for(A=new nn(cn(Ra(u).a.Jc(),new B));Nn(A);)k=y(vn(A),17),wn=k.d.i,m_e(wn)&&(Ce=y(Jr(fe,oe(wn,(Tt(),aa))),9),Ce||(Ce=cFt(e,wn),Oi(fe,oe(wn,aa),Ce),tn(Me.c,Ce)),mo(k,y(Wt(Ce.j,0),12)))}for(F=0;F<ue.c.length;F++)if($e=(_r(F,ue.c.length),y(ue.c[F],16)),!$e.dc())for(z=null,F==0?(z=new Nc(e),Hk(0,ie.c.length),f9(ie.c,0,z)):F==M.c.length-1?(z=new Nc(e),tn(ie.c,z)):z=(_r(F-1,ie.c.length),y(ie.c[F-1],25)),w=$e.Jc();w.Ob();)g=y(w.Pb(),9),Us(g,z);for(ht=new ye(st);ht.a<ht.c.c.length;)Ve=y(de(ht),9),Us(Ve,null);dt(e,(Tt(),Sme),st)}}i(IEn,"S2b");function MEn(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua,Ph,Ml;for(Ua=new Pt,ie=new ye(n.b);ie.a<ie.c.c.length;)for(z=y(de(ie),25),ht=new ye(z.a);ht.a<ht.c.c.length;){for(Ve=y(de(ht),9),Ve.p=-1,F=bo,yr=bo,Pr=new ye(Ve.j);Pr.a<Pr.c.c.length;){for(gr=y(de(Pr),12),p=new ye(gr.e);p.a<p.c.c.length;)o=y(de(p),17),Mr=y(oe(o,(Bt(),W6)),15).a,F=d.Math.max(F,Mr);for(u=new ye(gr.g);u.a<u.c.c.length;)o=y(de(u),17),Mr=y(oe(o,(Bt(),W6)),15).a,yr=d.Math.max(yr,Mr)}dt(Ve,BZ,Et(F)),dt(Ve,FZ,Et(yr))}for(Ce=0,ee=new ye(n.b);ee.a<ee.c.c.length;)for(z=y(de(ee),25),ht=new ye(z.a);ht.a<ht.c.c.length;)Ve=y(de(ht),9),Ve.p<0&&(Jn=new z5e,Jn.b=Ce++,TGt(e,Ve,Jn),tn(Ua.c,Jn));for(Ht=Pm(Ua.c.length),M=Pm(Ua.c.length),w=0;w<Ua.c.length;w++)Nt(Ht,new Pt),Nt(M,Et(0));for(Z4n(n,Ua,Ht,M),Ph=y(Zg(Ua,tt(Ter,OVt,263,Ua.c.length,0,1)),839),st=y(Zg(Ht,tt(zf,T3,16,Ht.c.length,0,1)),198),D=tt(pi,Pi,30,M.c.length,15,1),k=0;k<D.length;k++)D[k]=(_r(k,M.c.length),y(M.c[k],15)).a;for(Me=0,$e=new Pt,A=0;A<Ph.length;A++)D[A]==0&&tn($e.c,Ph[A]);for(fe=tt(pi,Pi,30,Ph.length,15,1);$e.c.length!=0;)for(Jn=y(Gy($e,0),263),fe[Jn.b]=Me++;!st[Jn.b].dc();)Ml=y(st[Jn.b].ed(0),263),--D[Ml.b],D[Ml.b]==0&&tn($e.c,Ml);for(e.a=tt(Ter,OVt,263,Ph.length,0,1),g=0;g<Ph.length;g++)for(ue=Ph[g],wn=fe[g],e.a[wn]=ue,ue.b=wn,ht=new ye(ue.e);ht.a<ht.c.c.length;)Ve=y(de(ht),9),Ve.p=wn;return e.a}i(MEn,"BKc");function NEn(e,n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;for(ue=!1,A=!1,z=e+1,ie=(_r(e,n.c.length),y(n.c[e],186)),k=ie.a,D=null,w=0;w<ie.a.c.length;w++)if(g=(_r(w,k.c.length),y(k.c[w],173)),!g.c){if(g.b.c.length==0){Ny(),z$(ie,g),--w,ue=!0;continue}if(g.k||(D&&bK(D),D=new z7e(D?D.e+D.d+u:0,ie.f,u),F$(g,D.e+D.d,ie.f),Nt(ie.d,D),ALe(D,g),g.k=!0),M=null,M=(Ce=null,w<ie.a.c.length-1?Ce=y(Wt(ie.a,w+1),173):z<n.c.length&&(_r(z,n.c.length),y(n.c[z],186)).a.c.length!=0&&(Ce=y(Wt((_r(z,n.c.length),y(n.c[z],186)).a,0),173)),Ce),fe=!1,M&&(fe=!ta(M.j,ie)),M){if(M.b.c.length!=0&&!Kt(Xt(y(Wt(M.b,0),26).mf((n0(),Dj)))))s$(g,o-g.s),bK(g.q),ue=ue|vyn(ie,g,M,o,u);else{z$(ie,M);break}if(M.b.c.length==0)for(n.c.length>z&&z$((_r(z,n.c.length),y(n.c[z],186)),M),M=null;n.c.length>z&&(_r(z,n.c.length),y(n.c[z],186)).a.c.length==0;)Yu(n,(_r(z,n.c.length),n.c[z]));if(!M){--w;continue}if(!Kt(Xt(y(Wt(M.b,0),26).mf((n0(),Dj))))&&qTn(n,ie,g,M,fe,o,z,u)){ue=!0;continue}if(fe){if(ee=ie.b,F=M.f,!Kt(Xt(y(Wt(M.b,0),26).mf(Dj)))&&p4n(n,ie,g,M,o,z,u,p)){if(ue=!0,ee<F){A=!0,M.j=ie;break}continue}else if(n_e(ie,g)){g.c=!0,ue=!0;continue}}else if(n_e(ie,g)){g.c=!0,ue=!0;continue}if(ue)continue}if(n_e(ie,g)){g.c=!0,ue=!0,M&&(M.k=!1);continue}else bK(g.q)}return new Ko((qr(),!!ue),!!A)}i(NEn,"E5c");function qi(e){var n,o,u;if(e.d>=e.j){e.a=-1,e.c=1;return}if(n=Do(e.i,e.d++),e.a=n,e.b==1){switch(n){case 92:if(u=10,e.d>=e.j)throw xe(new bi(ki((fi(),JJ))));e.a=Do(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d<e.j&&Do(e.i,e.d)==91?(++e.d,u=24):u=0;break;case 91:if((e.e&512)!=512&&e.d<e.j&&Do(e.i,e.d)==58){++e.d,u=20;break}default:(n&64512)==TG&&e.d<e.j&&(o=Do(e.i,e.d),(o&64512)==56320&&(e.a=Jo+(n-TG<<10)+o-56320,++e.d)),u=0}e.c=u;return}switch(n){case 124:u=2;break;case 42:u=3;break;case 43:u=4;break;case 63:u=5;break;case 41:u=7;break;case 46:u=8;break;case 91:u=9;break;case 94:u=11;break;case 36:u=12;break;case 40:if(u=6,e.d>=e.j||Do(e.i,e.d)!=63)break;if(++e.d>=e.j)throw xe(new bi(ki((fi(),$ge))));switch(n=Do(e.i,e.d++),n){case 58:u=13;break;case 61:u=14;break;case 33:u=15;break;case 91:u=19;break;case 62:u=18;break;case 60:if(e.d>=e.j)throw xe(new bi(ki((fi(),$ge))));if(n=Do(e.i,e.d++),n==61)u=16;else if(n==33)u=17;else throw xe(new bi(ki((fi(),lHt))));break;case 35:for(;e.d<e.j&&(n=Do(e.i,e.d++),n!=41););if(n!=41)throw xe(new bi(ki((fi(),cHt))));u=21;break;default:if(n==45||97<=n&&n<=122||65<=n&&n<=90){--e.d,u=22;break}else if(n==40){u=23;break}throw xe(new bi(ki((fi(),$ge))))}break;case 92:if(u=10,e.d>=e.j)throw xe(new bi(ki((fi(),JJ))));e.a=Do(e.i,e.d++);break;default:u=0}e.c=u}i(qi,"Zoe");function OEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(o.Tg("Process compaction",1),!!Kt(Xt(oe(n,(uc(),Yje))))){for(p=y(oe(n,CT),86),ee=He(Xe(oe(n,N1e))),s3n(e,n,p),XCn(n,ee/2/2),ie=n.b,nw(ie,new Ekt(p)),D=ei(ie,0);D.b!=D.d.c;)if(A=y(Qn(D),40),!Kt(Xt(oe(A,(Ca(),zv))))){if(u=Ixn(A,p),ue=Rkn(A,n),F=0,z=0,u)switch(fe=u.e,p.g){case 2:F=fe.a-ee-A.f.a,ue.e.a-ee-A.f.a<F&&(F=ue.e.a-ee-A.f.a),z=F+A.f.a;break;case 1:F=fe.a+u.f.a+ee,ue.e.a+ee>F&&(F=ue.e.a+ue.f.a+ee),z=F+A.f.a;break;case 4:F=fe.b-ee-A.f.b,ue.e.b-ee-A.f.b<F&&(F=ue.e.b-ee-A.f.b),z=F+A.f.b;break;case 3:F=fe.b+u.f.b+ee,ue.e.b+ee>F&&(F=ue.e.b+ue.f.b+ee),z=F+A.f.b}else if(ue)switch(p.g){case 2:F=ue.e.a-ee-A.f.a,z=F+A.f.a;break;case 1:F=ue.e.a+ue.f.a+ee,z=F+A.f.a;break;case 4:F=ue.e.b-ee-A.f.b,z=F+A.f.b;break;case 3:F=ue.e.b+ue.f.b+ee,z=F+A.f.b}Qe(oe(n,M1e))===Qe((cI(),Ej))?(g=F,w=z,k=j1(Hi(new Er(null,new Rr(e.a,16)),new oSt(g,w))),k.a!=null?p==(Ss(),Il)||p==Bl?A.e.a=F:A.e.b=F:(p==(Ss(),Il)||p==Ed?k=j1(Hi(q9t(new Er(null,new Rr(e.a,16))),new Skt(g))):k=j1(Hi(q9t(new Er(null,new Rr(e.a,16))),new Akt(g))),k.a!=null&&(p==Il||p==Bl?A.e.a=He(Xe((In(k.a!=null),y(k.a,49)).a)):A.e.b=He(Xe((In(k.a!=null),y(k.a,49)).a)))),k.a!=null&&(M=Jl(e.a,(In(k.a!=null),k.a),0),M>0&&M!=y(oe(A,um),15).a&&(dt(A,Gje,(qr(),!0)),dt(A,um,Et(M))))):p==(Ss(),Il)||p==Bl?A.e.a=F:A.e.b=F}o.Ug()}}i(OEn,"ZTc");function PEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht;if(o.Tg("Coffman-Graham Layering",1),n.a.c.length==0){o.Ug();return}for(ht=y(oe(n,(Bt(),EGe)),15).a,A=0,w=0,z=new ye(n.a);z.a<z.c.c.length;)for(F=y(de(z),9),F.p=A++,g=new nn(cn(Ra(F).a.Jc(),new B));Nn(g);)p=y(vn(g),17),p.p=w++;for(e.d=tt(ah,vg,30,A,16,1),e.a=tt(ah,vg,30,w,16,1),e.b=tt(pi,Pi,30,A,15,1),e.e=tt(pi,Pi,30,A,15,1),e.f=tt(pi,Pi,30,A,15,1),EX(e.c),Xmn(e,n),ie=new xY(new VTt(e)),Ve=new ye(n.a);Ve.a<Ve.c.c.length;){for(Me=y(de(Ve),9),g=new nn(cn(os(Me).a.Jc(),new B));Nn(g);)p=y(vn(g),17),e.a[p.p]||++e.b[Me.p];e.b[Me.p]==0&&N5(J7(ie,Me),yR)}for(k=0;ie.b.c.length!=0;)for(Me=y(Mue(ie),9),e.f[Me.p]=k++,g=new nn(cn(Ra(Me).a.Jc(),new B));Nn(g);)p=y(vn(g),17),!e.a[p.p]&&(fe=p.d.i,--e.b[fe.p],Sr(e.c,fe,Et(e.f[Me.p])),e.b[fe.p]==0&&N5(J7(ie,fe),yR));for(ee=new xY(new WTt(e)),$e=new ye(n.a);$e.a<$e.c.c.length;){for(Me=y(de($e),9),g=new nn(cn(Ra(Me).a.Jc(),new B));Nn(g);)p=y(vn(g),17),e.a[p.p]||++e.e[Me.p];e.e[Me.p]==0&&N5(J7(ee,Me),yR)}for(M=new Pt,u=_7t(n,M);ee.b.c.length!=0;)for(Ce=y(Mue(ee),9),(u.a.c.length>=ht||!Xpn(Ce,u))&&(u=_7t(n,M)),Us(Ce,u),g=new nn(cn(os(Ce).a.Jc(),new B));Nn(g);)p=y(vn(g),17),!e.a[p.p]&&(ue=p.c.i,--e.e[ue.p],e.e[ue.p]==0&&N5(J7(ee,ue),yR));for(D=M.c.length-1;D>=0;--D)Nt(n.b,(_r(D,M.c.length),y(M.c[D],25)));n.a.c.length=0,o.Ug()}i(PEn,"YCc");function Vzt(e){var n,o,u,p,g,w,k,A,D;for(e.b=1,qi(e),n=null,e.c==0&&e.a==94?(qi(e),n=(Xi(),Xi(),++Za,new If(4)),tu(n,0,jR),k=(++Za,new If(4))):k=(Xi(),Xi(),++Za,new If(4)),p=!0;(D=e.c)!=1;){if(D==0&&e.a==93&&!p){n&&(HI(n,k),k=n);break}if(o=e.a,u=!1,D==10)switch(o){case 100:case 68:case 119:case 87:case 115:case 83:b3(k,sR(o)),u=!0;break;case 105:case 73:case 99:case 67:o=(b3(k,sR(o)),-1),o<0&&(u=!0);break;case 112:case 80:if(A=x9e(e,o),!A)throw xe(new bi(ki((fi(),Gge))));b3(k,A),u=!0;break;default:o=sIe(e)}else if(D==24&&!p){if(n&&(HI(n,k),k=n),g=Vzt(e),HI(k,g),e.c!=0||e.a!=93)throw xe(new bi(ki((fi(),bHt))));break}if(qi(e),!u){if(D==0){if(o==91)throw xe(new bi(ki((fi(),kPe))));if(o==93)throw xe(new bi(ki((fi(),CPe))));if(o==45&&!p&&e.a!=93)throw xe(new bi(ki((fi(),jge))))}if(e.c!=0||e.a!=45||o==45&&p)tu(k,o,o);else{if(qi(e),(D=e.c)==1)throw xe(new bi(ki((fi(),QJ))));if(D==0&&e.a==93)tu(k,o,o),tu(k,45,45);else{if(D==0&&e.a==93||D==24)throw xe(new bi(ki((fi(),jge))));if(w=e.a,D==0){if(w==91)throw xe(new bi(ki((fi(),kPe))));if(w==93)throw xe(new bi(ki((fi(),CPe))));if(w==45)throw xe(new bi(ki((fi(),jge))))}else D==10&&(w=sIe(e));if(qi(e),o>w)throw xe(new bi(ki((fi(),xHt))));tu(k,o,w)}}}p=!1}if(e.c==1)throw xe(new bi(ki((fi(),QJ))));return UC(k),VI(k),e.b=0,qi(e),k}i(Vzt,"Spe");function Wzt(e,n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;Ve=!1;do for(Ve=!1,g=n?new E1(e.a.b).a.gc()-2:1;n?g>=0:g<new E1(e.a.b).a.gc();g+=n?-1:1)for(p=oRe(e.a,Et(g)),ee=0;ee<p.b;ee++)if(F=y(Bc(p,ee),9),!!ea(F,(Tt(),Ea))&&!(t1n(e.a,Et(g))&&e.r==(Tv(),fL)||r1n(e.a,Et(g))&&e.r==(Tv(),tN))){for($e=!0,Ce=0;Ce<p.b;Ce++)fe=y(Bc(p,Ce),9),ea(fe,Ea)&&(n&&y(oe(F,Ea),15).a<y(oe(fe,Ea),15).a||!n&&y(oe(F,Ea),15).a>y(oe(fe,Ea),15).a)&&($e=!1);if($e){for(A=n?g+1:g-1,k=oRe(e.a,Et(A)),w=!1,Me=!0,u=!1,M=ei(k,0);M.b!=M.d.c;)D=y(Qn(M),9),ea(D,Ea)?D.p!=F.p&&(w=w|(n?y(oe(D,Ea),15).a<y(oe(F,Ea),15).a:y(oe(D,Ea),15).a>y(oe(F,Ea),15).a),Me=!1):!w&&Me&&D.k==(Yr(),_c)&&(u=!0,n?z=y(vn(new nn(cn(os(D).a.Jc(),new B))),17).c.i:z=y(vn(new nn(cn(Ra(D).a.Jc(),new B))),17).d.i,z==F&&(n?o=y(vn(new nn(cn(Ra(D).a.Jc(),new B))),17).d.i:o=y(vn(new nn(cn(os(D).a.Jc(),new B))),17).c.i,(n?y(Ik(e.a,o),15).a-y(Ik(e.a,z),15).a:y(Ik(e.a,z),15).a-y(Ik(e.a,o),15).a)<=2&&(Me=!1)));if(u&&Me&&(n?o=y(vn(new nn(cn(Ra(F).a.Jc(),new B))),17).d.i:o=y(vn(new nn(cn(os(F).a.Jc(),new B))),17).c.i,(n?y(Ik(e.a,o),15).a-y(Ik(e.a,F),15).a:y(Ik(e.a,F),15).a-y(Ik(e.a,o),15).a)<=2&&o.k==(Yr(),Ya)&&(Me=!1)),w||Me){for(ue=E$t(e,F,n);ue.a.gc()!=0;)ie=y(ue.a.ec().Jc().Pb(),9),ue.a.Ac(ie)!=null,Fo(ue,E$t(e,ie,n));--ee,Ve=!0}}}while(Ve)}i(Wzt,"L8b");function BEn(e){ni(e.c,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#decimal"])),ni(e.d,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#integer"])),ni(e.e,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#boolean"])),ni(e.f,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"EBoolean",Vi,"EBoolean:Object"])),ni(e.i,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#byte"])),ni(e.g,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),ni(e.j,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"EByte",Vi,"EByte:Object"])),ni(e.n,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"EChar",Vi,"EChar:Object"])),ni(e.t,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#double"])),ni(e.u,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"EDouble",Vi,"EDouble:Object"])),ni(e.F,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#float"])),ni(e.G,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"EFloat",Vi,"EFloat:Object"])),ni(e.I,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#int"])),ni(e.J,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"EInt",Vi,"EInt:Object"])),ni(e.N,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#long"])),ni(e.O,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"ELong",Vi,"ELong:Object"])),ni(e.Z,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#short"])),ni(e.$,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"EShort",Vi,"EShort:Object"])),ni(e._,Si,Se(Ee(Zt,1),Dt,2,6,[Oo,"http://www.w3.org/2001/XMLSchema#string"]))}i(BEn,"i9d");function FEn(e,n,o,u,p,g,w){var k,A,D,M,F,z,ee,ie;return z=y(u.a,15).a,ee=y(u.b,15).a,F=e.b,ie=e.c,k=0,M=0,n==(Ss(),Il)||n==Bl?(M=uF(ANt(Uk(bu(new Er(null,new Rr(o.b,16)),new J1t),new M1t))),F.e.b+F.f.b/2>M?(D=++ee,k=He(Xe(ff($k(bu(new Er(null,new Rr(o.b,16)),new uSt(p,D)),new N1t))))):(A=++z,k=He(Xe(ff(P5(bu(new Er(null,new Rr(o.b,16)),new hSt(p,A)),new O1t)))))):(M=uF(ANt(Uk(bu(new Er(null,new Rr(o.b,16)),new V1t),new D1t))),F.e.a+F.f.a/2>M?(D=++ee,k=He(Xe(ff($k(bu(new Er(null,new Rr(o.b,16)),new cSt(p,D)),new P1t))))):(A=++z,k=He(Xe(ff(P5(bu(new Er(null,new Rr(o.b,16)),new lSt(p,A)),new z1t)))))),n==Il?(Uo(e.a,new Lt(He(Xe(oe(F,(Ca(),Eg))))-p,k)),Uo(e.a,new Lt(ie.e.a+ie.f.a+p+g,k)),Uo(e.a,new Lt(ie.e.a+ie.f.a+p+g,ie.e.b+ie.f.b/2)),Uo(e.a,new Lt(ie.e.a+ie.f.a,ie.e.b+ie.f.b/2))):n==Bl?(Uo(e.a,new Lt(He(Xe(oe(F,(Ca(),Kp))))+p,F.e.b+F.f.b/2)),Uo(e.a,new Lt(F.e.a+F.f.a+p,k)),Uo(e.a,new Lt(ie.e.a-p-g,k)),Uo(e.a,new Lt(ie.e.a-p-g,ie.e.b+ie.f.b/2)),Uo(e.a,new Lt(ie.e.a,ie.e.b+ie.f.b/2))):n==Ed?(Uo(e.a,new Lt(k,He(Xe(oe(F,(Ca(),Eg))))-p)),Uo(e.a,new Lt(k,ie.e.b+ie.f.b+p+g)),Uo(e.a,new Lt(ie.e.a+ie.f.a/2,ie.e.b+ie.f.b+p+g)),Uo(e.a,new Lt(ie.e.a+ie.f.a/2,ie.e.b+ie.f.b+p))):(e.a.b==0||(y(Mp(e.a),8).b=He(Xe(oe(F,(Ca(),Kp))))+p*y(w.b,15).a),Uo(e.a,new Lt(k,He(Xe(oe(F,(Ca(),Kp))))+p*y(w.b,15).a)),Uo(e.a,new Lt(k,ie.e.b-p*y(w.a,15).a-g))),new Ko(Et(z),Et(ee))}i(FEn,"lZc");function Bt(){Bt=U,Jme=(Ri(),_nr),jGe=Dnr,bj=Inr,Xp=Mnr,xE=gVe,Iw=mVe,q3=yVe,cL=bVe,uL=vVe,Qme=cee,Mw=ub,Zme=Nnr,QM=TVe,SZ=Q6,yj=(iMe(),FQt),H3=$Qt,Fv=GQt,Y3=jQt,AZt=new To(jj,Et(0)),lL=OQt,GGe=PQt,W6=BQt,KGe=cZt,UGe=VQt,VGe=qQt,t1e=eZt,WGe=KQt,HGe=QQt,AZ=dZt,r1e=uZt,YGe=aZt,qGe=nZt,XGe=oZt,LGe=gQt,Hme=hQt,xZ=uQt,qme=dQt,_w=AQt,aL=RQt,Xme=DQt,Vme=$Jt,bGe=jJt,IZt=wL,MZt=uee,DZt=n4,_Zt=vL,zGe=(t6(),s4),new To(Z6,zGe),OGe=new Cx(12),NGe=new To(r1,OGe),gGe=(U1(),kL),Z1=new To(HUe,gGe),U3=new To(tf,0),RZt=new To(Pye,Et(1)),fZ=new To(yL,xR),Dw=lee,Qa=EN,oL=ME,wZt=Bj,lm=ynr,G3=LE,LZt=new To(Bye,(qr(),!0)),j3=Fj,Lw=Rye,Bv=Pw,EZ=Uv,Kme=e4,pGe=(Ss(),g0),Uf=new To(Ow,pGe),xT=DE,kZ=eVe,V3=t4,SZt=Oye,FGe=dVe,BGe=(BC(),Hj),new To(lVe,BGe),kZt=Dye,CZt=Iye,EZt=Mye,TZt=_ye,e1e=UQt,wZ=cQt,mj=lQt,ZM=zQt,tc=tQt,V6=DJt,XM=_Jt,iL=gJt,hGe=mJt,jme=wJt,gj=yJt,zme=RJt,_Ge=mQt,DGe=yQt,CGe=XJt,CZ=MQt,Yme=wQt,Wme=VJt,MGe=EQt,yGe=BJt,Ume=FJt,Gme=Pj,IGe=bQt,pZ=JKt,oGe=KKt,dZ=XKt,xGe=qJt,wGe=HJt,TGe=YJt,sL=IE,Dl=_E,ab=xnr,cm=Aye,wE=Sye,fGe=TJt,sb=Nye,WM=wnr,vZ=knr,TT=uVe,PGe=Snr,z3=Anr,SGe=nQt,AGe=aQt,W3=J6,Pme=YKt,RGe=oQt,bZ=NJt,yZ=MJt,TZ=bL,EGe=QJt,JM=TQt,vj=wVe,dGe=IJt,$Ge=NQt,mGe=OJt,yZt=CJt,bZt=EJt,xZt=eQt,vZt=SJt,kGe=Lye,KM=rQt,mZ=AJt,t1=pJt,Fme=hJt,pj=ZKt,Bme=eJt,gZ=fJt,HM=QKt,$me=dJt,$3=uJt,YM=cJt,mZt=lJt,U6=tJt,qM=oJt,uGe=sJt,lGe=rJt,cGe=iJt,vGe=WJt}i(Bt,"nyc");function $En(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee;if(w=!0,F=null,u=null,p=null,n=!1,ee=Nir,D=null,g=null,k=0,A=Fhe(e,k,mWe,yWe),A<e.length&&(un(A,e.length),e.charCodeAt(A)==58)&&(F=(ko(k,A,e.length),e.substr(k,A-k)),k=A+1),o=F!=null&&i9(Ree,F.toLowerCase()),o){if(A=e.lastIndexOf("!/"),A==-1)throw xe(new rn("no archive separator"));w=!0,u=Yd(e,k,++A),k=A}else k>=0&&Cr(e.substr(k,2),"//")?(k+=2,A=Fhe(e,k,BN,FN),u=(ko(k,A,e.length),e.substr(k,A-k)),k=A):F!=null&&(k==e.length||(un(k,e.length),e.charCodeAt(k)!=47))&&(w=!1,A=DAe(e,Ku(35),k),A==-1&&(A=e.length),u=(ko(k,A,e.length),e.substr(k,A-k)),k=A);if(!o&&k<e.length&&(un(k,e.length),e.charCodeAt(k)==47)&&(A=Fhe(e,k+1,BN,FN),M=(ko(k+1,A,e.length),e.substr(k+1,A-(k+1))),M.length>0&&Do(M,M.length-1)==58&&(p=M,k=A)),k<e.length&&(un(k,e.length),e.charCodeAt(k)==47)&&(++k,n=!0),k<e.length&&(un(k,e.length),e.charCodeAt(k)!=63)&&(un(k,e.length),e.charCodeAt(k)!=35)){for(z=new Pt;k<e.length&&(un(k,e.length),e.charCodeAt(k)!=63)&&(un(k,e.length),e.charCodeAt(k)!=35);)A=Fhe(e,k,BN,FN),Nt(z,(ko(k,A,e.length),e.substr(k,A-k))),k=A,k<e.length&&(un(k,e.length),e.charCodeAt(k)==47)&&(ddn(e,++k)||z.c.push(""));ee=tt(Zt,Dt,2,z.c.length,6,1),Zg(z,ee)}return k<e.length&&(un(k,e.length),e.charCodeAt(k)==63)&&(A=Z8(e,35,++k),A==-1&&(A=e.length),D=(ko(k,A,e.length),e.substr(k,A-k)),k=A),k<e.length&&(g=p7e(e,++k)),b4n(w,F,u,p,ee,D),new Gfe(w,F,u,p,n,ee,D,g)}i($En,"NQd");function fG(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;if(Kc(e.b,n)){if(Wd(y(Jr(e.b,n),48),o))return 1}else Oi(e.b,n,new gs);if(Kc(e.b,o)){if(Wd(y(Jr(e.b,o),48),n))return-1}else Oi(e.b,o,new gs);if(Kc(e.g,n)){if(Wd(y(Jr(e.g,n),48),o))return-1}else Oi(e.g,n,new gs);if(Kc(e.g,o)){if(Wd(y(Jr(e.b,o),48),n))return 1}else Oi(e.g,o,new gs);if(e.e==(V1(),d1e)||!ea(n,(Tt(),Ea))||!ea(o,(Tt(),Ea))){for(z=null,M=new ye(n.j);M.a<M.c.c.length;)if(A=y(de(M),12),A.e.c.length!=0&&y(Wt(A.e,0),17).c.i.c.p==n.c.p-1){z=y(Wt(A.e,0),17).c;break}for(ie=null,D=new ye(o.j);D.a<D.c.c.length;)if(A=y(de(D),12),A.e.c.length!=0&&y(Wt(A.e,0),17).c.i.c.p==o.c.p-1){ie=y(Wt(A.e,0),17).c;break}if(z&&ie){if(F=z.i,ee=ie.i,F&&F==ee){for(fe=new ye(F.j);fe.a<fe.c.c.length;){if(ue=y(de(fe),12),ue==z)return wf(e,o,n),-1;if(ue==ie)return wf(e,n,o),1}return p=ffe(e,n),w=ffe(e,o),p>w?(wf(e,n,o),1):(wf(e,o,n),-1)}for(Me=e.f,$e=0,Ve=Me.length;$e<Ve;++$e){if(Ce=Me[$e],Ce==F)return wf(e,o,n),-1;if(Ce==ee)return wf(e,n,o),1}}if(z&&!ie||!z&&ie){if(u=qzt(e,n,o),u!=0)return u>0?wf(e,n,o):wf(e,o,n),u;if(!ea(n,(Tt(),Ea))||!ea(o,Ea))return g=ffe(e,n),k=ffe(e,o),g>k?(wf(e,n,o),1):(wf(e,o,n),-1)}if(!z&&!ie&&(u=qzt(e,n,o),u!=0))return u>0?wf(e,n,o):wf(e,o,n),u}return ea(n,(Tt(),Ea))&&ea(o,Ea)?(g=Qx(n,o,e.c,y(oe(e.c,Pv),15).a),k=Qx(o,n,e.c,y(oe(e.c,Pv),15).a),g>k?(wf(e,n,o),1):(wf(e,o,n),-1)):(wf(e,o,n),-1)}i(fG,"tlc");function Hzt(){Hzt=U,mde(),Mi=new Ox,Sr(Mi,(zt(),tg),y0),Sr(Mi,sp,y0),Sr(Mi,Nh,y0),Sr(Mi,rg,y0),Sr(Mi,nh,y0),Sr(Mi,Oh,y0),Sr(Mi,rg,tg),Sr(Mi,y0,Sd),Sr(Mi,tg,Sd),Sr(Mi,sp,Sd),Sr(Mi,Nh,Sd),Sr(Mi,rh,Sd),Sr(Mi,rg,Sd),Sr(Mi,nh,Sd),Sr(Mi,Oh,Sd),Sr(Mi,$u,Sd),Sr(Mi,y0,Wf),Sr(Mi,tg,Wf),Sr(Mi,Sd,Wf),Sr(Mi,sp,Wf),Sr(Mi,Nh,Wf),Sr(Mi,rh,Wf),Sr(Mi,rg,Wf),Sr(Mi,$u,Wf),Sr(Mi,Hf,Wf),Sr(Mi,nh,Wf),Sr(Mi,wh,Wf),Sr(Mi,Oh,Wf),Sr(Mi,tg,sp),Sr(Mi,Nh,sp),Sr(Mi,rg,sp),Sr(Mi,Oh,sp),Sr(Mi,tg,Nh),Sr(Mi,sp,Nh),Sr(Mi,rg,Nh),Sr(Mi,Nh,Nh),Sr(Mi,nh,Nh),Sr(Mi,y0,Ad),Sr(Mi,tg,Ad),Sr(Mi,Sd,Ad),Sr(Mi,Wf,Ad),Sr(Mi,sp,Ad),Sr(Mi,Nh,Ad),Sr(Mi,rh,Ad),Sr(Mi,rg,Ad),Sr(Mi,Hf,Ad),Sr(Mi,$u,Ad),Sr(Mi,Oh,Ad),Sr(Mi,nh,Ad),Sr(Mi,su,Ad),Sr(Mi,y0,Hf),Sr(Mi,tg,Hf),Sr(Mi,Sd,Hf),Sr(Mi,sp,Hf),Sr(Mi,Nh,Hf),Sr(Mi,rh,Hf),Sr(Mi,rg,Hf),Sr(Mi,$u,Hf),Sr(Mi,Oh,Hf),Sr(Mi,wh,Hf),Sr(Mi,su,Hf),Sr(Mi,tg,$u),Sr(Mi,sp,$u),Sr(Mi,Nh,$u),Sr(Mi,rg,$u),Sr(Mi,Hf,$u),Sr(Mi,Oh,$u),Sr(Mi,nh,$u),Sr(Mi,y0,th),Sr(Mi,tg,th),Sr(Mi,Sd,th),Sr(Mi,sp,th),Sr(Mi,Nh,th),Sr(Mi,rh,th),Sr(Mi,rg,th),Sr(Mi,$u,th),Sr(Mi,Oh,th),Sr(Mi,tg,nh),Sr(Mi,Sd,nh),Sr(Mi,Wf,nh),Sr(Mi,Nh,nh),Sr(Mi,y0,wh),Sr(Mi,tg,wh),Sr(Mi,Wf,wh),Sr(Mi,sp,wh),Sr(Mi,Nh,wh),Sr(Mi,rh,wh),Sr(Mi,rg,wh),Sr(Mi,rg,su),Sr(Mi,Nh,su),Sr(Mi,$u,y0),Sr(Mi,$u,sp),Sr(Mi,$u,Sd),Sr(Mi,rh,y0),Sr(Mi,rh,tg),Sr(Mi,rh,Wf)}i(Hzt,"tVb");function GEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;switch(o.Tg("Brandes & Koepf node placement",1),e.a=n,e.c=vkn(n),u=y(oe(n,(Bt(),Yme)),282),ee=Kt(Xt(oe(n,JM))),e.d=u==(W$(),rZ)&&!ee||u==vme,f4n(e,n),ht=null,st=null,Ce=null,Me=null,fe=(Of(4,w3),new vu(4)),y(oe(n,Yme),282).g){case 3:Ce=new WC(n,e.c.d,(Yg(),Nw),(W0(),ob)),tn(fe.c,Ce);break;case 1:Me=new WC(n,e.c.d,(Yg(),h0),(W0(),ob)),tn(fe.c,Me);break;case 4:ht=new WC(n,e.c.d,(Yg(),Nw),(W0(),kT)),tn(fe.c,ht);break;case 2:st=new WC(n,e.c.d,(Yg(),h0),(W0(),kT)),tn(fe.c,st);break;default:Ce=new WC(n,e.c.d,(Yg(),Nw),(W0(),ob)),Me=new WC(n,e.c.d,h0,ob),ht=new WC(n,e.c.d,Nw,kT),st=new WC(n,e.c.d,h0,kT),tn(fe.c,ht),tn(fe.c,st),tn(fe.c,Ce),tn(fe.c,Me)}for(p=new rSt(n,e.c),k=new ye(fe);k.a<k.c.c.length;)g=y(de(k),185),QCn(p,g,e.b),Xkn(g);for(z=new TPt(n,e.c),A=new ye(fe);A.a<A.c.c.length;)g=y(de(A),185),C4n(z,g);if(o.$g())for(D=new ye(fe);D.a<D.c.c.length;)g=y(de(D),185),o.ah(g+" size is "+Mfe(g));if(F=null,e.d&&(M=VCn(e,fe,e.c.d),Ejt(n,M,o)&&(F=M)),!F)for(D=new ye(fe);D.a<D.c.c.length;)g=y(de(D),185),Ejt(n,g,o)&&(!F||Mfe(F)>Mfe(g))&&(F=g);for(!F&&(F=(_r(0,fe.c.length),y(fe.c[0],185))),ue=new ye(n.b);ue.a<ue.c.c.length;)for(ie=y(de(ue),25),Ve=new ye(ie.a);Ve.a<Ve.c.c.length;)$e=y(de(Ve),9),$e.n.b=He(F.p[$e.p])+He(F.d[$e.p]);for(o.$g()&&(o.ah("Chosen node placement: "+F),o.ah("Blocks: "+PFt(F)),o.ah("Classes: "+Pvn(F,o)),o.ah("Marked edges: "+e.b)),w=new ye(fe);w.a<w.c.c.length;)g=y(de(w),185),g.g=null,g.b=null,g.a=null,g.d=null,g.j=null,g.i=null,g.p=null;Pln(e.c),e.b.a.$b(),o.Ug()}i(GEn,"KNc");function qzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;if(n.k==(Yr(),bs)&&o.k==Ya)return g=y(Wt(y(R5(j1(Hi(new Er(null,new Rr(n.j,16)),new kH))),12).e,0),17).c,p=g.i,k=y(Wt(y(R5(j1(Hi(new Er(null,new Rr(n.j,16)),new CH))),12).g,0),17).d,w=k.i,u=n.c.p,p.c.p!=u&&w.c.p!=u?0:p==o||w==o?(wf(e,n,o),1):fG(e,p,o);if(n.k==Ya&&o.k==bs)return g=y(Wt(y(R5(j1(Hi(new Er(null,new Rr(o.j,16)),new kH))),12).e,0),17).c,p=g.i,k=y(Wt(y(R5(j1(Hi(new Er(null,new Rr(o.j,16)),new CH))),12).g,0),17).d,w=k.i,u=n.c.p,p.c.p!=u&&w.c.p!=u?0:p==n||w==n?(wf(e,o,n),-1):fG(e,n,p);if(n.k==bs&&o.k==bs){if(z=y(Wt(y(R5(j1(Hi(new Er(null,new Rr(n.j,16)),new kH))),12).e,0),17).c,ee=y(Wt(y(R5(j1(Hi(new Er(null,new Rr(n.j,16)),new CH))),12).g,0),17).d,ie=z.i,ue=ee.i,A=n.c.p,M=!1,F=!1,Ve=y(Wt(y(R5(j1(Hi(new Er(null,new Rr(o.j,16)),new kH))),12).e,0),17).c,ht=y(Wt(y(R5(j1(Hi(new Er(null,new Rr(o.j,16)),new CH))),12).g,0),17).d,st=Ve.i,Ht=ht.i,fe=o.c.p,Me=!1,$e=!1,D=n,Ce=o,ie.c.p==A?(M=!0,D=ie):ue.c.p==A&&(F=!0,D=ue),st.c.p==fe?(Me=!0,Ce=st):Ht.c.p==fe&&($e=!0,Ce=Ht),D==Ce)if(e.a){if(M&&Me)return Pr=Xzt(new URe(e.c,e.f,e.e,null,$e),z,Ve),Pr>0?(wf(e,o,n),1):(wf(e,n,o),-1);if(M&&$e)return wf(e,o,n),1;if(F&&Me)return wf(e,n,o),-1;if(F&&$e)return 0}else for(gr=new ye(D.j);gr.a<gr.c.c.length;){if(yr=y(de(gr),12),z==yr)return wf(e,o,n),-1;if(Ve==yr)return wf(e,n,o),1}return fG(e,D,Ce)}else return 0}i(qzt,"vlc");function jEn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn;if(e.c.length==1)return GOt((_r(0,e.c.length),y(e.c[0],120))),_r(0,e.c.length),y(e.c[0],120);if(e.c.length<=0)return new r$;for(A=new ye(e);A.a<A.c.c.length;){for(w=y(de(A),120),Me=0,ie=Ui,ue=Ui,z=bo,ee=bo,Ce=ei(w.b,0);Ce.b!=Ce.d.c;)fe=y(Qn(Ce),40),Me+=y(oe(fe,(uc(),UZ)),15).a,ie=d.Math.min(ie,fe.e.a),ue=d.Math.min(ue,fe.e.b),z=d.Math.max(z,fe.e.a+fe.f.a),ee=d.Math.max(ee,fe.e.b+fe.f.b);dt(w,(uc(),UZ),Et(Me)),dt(w,(Ca(),pL),new Lt(ie,ue)),dt(w,Sj,new Lt(z,ee))}for(Ir(),zs(e,new n1t),ht=new r$,wc(ht,(_r(0,e.c.length),y(e.c[0],105))),F=0,Pr=0,D=new ye(e);D.a<D.c.c.length;)w=y(de(D),120),st=qs(Wo(y(oe(w,(Ca(),Sj)),8)),y(oe(w,pL),8)),F=d.Math.max(F,st.a),Pr+=st.a*st.b;for(F=d.Math.max(F,d.Math.sqrt(Pr)*He(Xe(oe(ht,(uc(),ltr))))),Ht=He(Xe(oe(ht,N1e))),Mr=0,wn=0,M=0,n=Ht,k=new ye(e);k.a<k.c.c.length;)w=y(de(k),120),st=qs(Wo(y(oe(w,(Ca(),Sj)),8)),y(oe(w,pL),8)),Mr+st.a>F&&(Mr=0,wn+=M+Ht,M=0),FGt(ht,w,Mr,wn),n=d.Math.max(n,Mr+st.a),M=d.Math.max(M,st.b),Mr+=st.a+Ht;for(Ve=new jn,o=new jn,gr=new ye(e);gr.a<gr.c.c.length;)for(yr=y(de(gr),120),u=Kt(Xt(oe(yr,(Ri(),Bj)))),$e=yr.q?yr.q:Qm,g=$e.vc().Jc();g.Ob();)p=y(g.Pb(),45),Kc(Ve,p.jd())?Qe(y(p.jd(),147).Rg())!==Qe(p.kd())&&(u&&Kc(o,p.jd())?(Ny(),""+y(p.jd(),147).Og()):(Oi(Ve,y(p.jd(),147),p.kd()),dt(ht,y(p.jd(),147),p.kd()),u&&Oi(o,y(p.jd(),147),p.kd()))):(Oi(Ve,y(p.jd(),147),p.kd()),dt(ht,y(p.jd(),147),p.kd()));return sGt(ht,new roe),GOt(ht),ht}i(jEn,"pSc");function iJ(e,n){switch(e.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new nRt(e.b,e.a,n,e.c);case 1:return new zq(e.a,n,ja(n.Ah(),e.c));case 43:return new H5t(e.a,n,ja(n.Ah(),e.c));case 3:return new Es(e.a,n,ja(n.Ah(),e.c));case 45:return new fh(e.a,n,ja(n.Ah(),e.c));case 41:return new gh(y(Qd(e.c),29),e.a,n,ja(n.Ah(),e.c));case 50:return new uIt(y(Qd(e.c),29),e.a,n,ja(n.Ah(),e.c));case 5:return new u8e(e.a,n,ja(n.Ah(),e.c),e.d.n);case 47:return new sAt(e.a,n,ja(n.Ah(),e.c),e.d.n);case 7:return new xt(e.a,n,ja(n.Ah(),e.c),e.d.n);case 49:return new D5(e.a,n,ja(n.Ah(),e.c),e.d.n);case 9:return new W5t(e.a,n,ja(n.Ah(),e.c));case 11:return new V5t(e.a,n,ja(n.Ah(),e.c));case 13:return new TAe(e.a,n,ja(n.Ah(),e.c));case 15:return new nY(e.a,n,ja(n.Ah(),e.c));case 17:return new q5t(e.a,n,ja(n.Ah(),e.c));case 19:return new wC(e.a,n,ja(n.Ah(),e.c));case 21:return new kAe(e.a,n,ja(n.Ah(),e.c));case 23:return new $F(e.a,n,ja(n.Ah(),e.c));case 25:return new cAt(e.a,n,ja(n.Ah(),e.c),e.d.n);case 27:return new zr(e.a,n,ja(n.Ah(),e.c),e.d.n);case 29:return new lAt(e.a,n,ja(n.Ah(),e.c),e.d.n);case 31:return new oAt(e.a,n,ja(n.Ah(),e.c),e.d.n);case 33:return new f8e(e.a,n,ja(n.Ah(),e.c),e.d.n);case 35:return new h8e(e.a,n,ja(n.Ah(),e.c),e.d.n);case 37:return new Jle(e.a,n,ja(n.Ah(),e.c),e.d.n);case 39:return new TY(e.a,n,ja(n.Ah(),e.c),e.d.n);case 40:return new ns(n,ja(n.Ah(),e.c));default:throw xe(new ql("Unknown feature style: "+e.e))}}i(iJ,"s5d");function zEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn;for(k=new ya,Ht=y(oe(o,(Bt(),Uf)),86),fe=0,u=new gs,Fo(k,(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));k.b!=0;)F=y(k.b==0?null:(In(k.b!=0),dd(k,k.a.a)),26),M=$a(F),JK(M)&&!Kt(Xt(St(F,gZ)))&&(pa(F,(Tt(),Ea),Et(fe++)),gg(F,$3)&&ys(u,y(St(F,$3),15))),Me=!Kt(Xt(St(F,Dw))),Me&&(ee=(!F.a&&(F.a=new xt(Ti,F,10,11)),F.a).i!=0,ue=P1n(F),ie=Qe(St(F,G3))===Qe((z1(),hb)),Jn=!gg(F,(Ri(),K6))||F_t(di(St(F,K6))),ht=null,Jn&&ie&&(ee||ue)&&(ht=hjt(F),dt(ht,Uf,Ht),ea(ht,yj)&&V4t(new A_e(He(Xe(oe(ht,yj)))),ht),y(St(F,Bv),182).gc()!=0&&(z=ht,ts(new Er(null,(!F.c&&(F.c=new xt(rf,F,9,9)),new Rr(F.c,16))),new Qxt(z)),Q$t(F,ht))),yr=o,gr=y(Jr(e.a,$a(F)),9),gr&&(yr=gr.e),Ve=mzt(e,F,yr),ht&&(Ve.e=ht,ht.e=Ve,Fo(k,(!F.a&&(F.a=new xt(Ti,F,10,11)),F.a))));for(dt(o,(Tt(),Pv),Et(fe)),dt(o,uj,Et(u.a.gc())),fe=0,Ha(k,n,k.c.b,k.c);k.b!=0;){for(w=y(k.b==0?null:(In(k.b!=0),dd(k,k.a.a)),26),D=new Sn((!w.b&&(w.b=new xt(Cs,w,12,3)),w.b));D.e!=D.i.gc();)A=y(_n(D),85),SGt(A),JK(n)&&pa(A,Ea,Et(fe++)),Mr=Pl(y(je((!A.b&&(A.b=new zr(Hn,A,4,7)),A.b),0),84)),wn=Pl(y(je((!A.c&&(A.c=new zr(Hn,A,5,8)),A.c),0),84)),!(Kt(Xt(St(A,Dw)))||Kt(Xt(St(Mr,Dw)))||Kt(Xt(St(wn,Dw))))&&(Ce=Kx(A)&&Kt(Xt(St(Mr,j3)))&&Kt(Xt(St(A,Lw))),st=w,Ce||Qk(wn,Mr)?st=Mr:Qk(Mr,wn)&&(st=wn),yr=o,gr=y(Jr(e.a,st),9),gr&&(yr=gr.e),$e=nMe(e,A,st,yr),dt($e,g$e,Vwn(e,A,n,o)));if(ie=Qe(St(w,G3))===Qe((z1(),hb)),ie)for(g=new Sn((!w.a&&(w.a=new xt(Ti,w,10,11)),w.a));g.e!=g.i.gc();)p=y(_n(g),26),Jn=!gg(p,(Ri(),K6))||F_t(di(St(p,K6))),Pr=Qe(St(p,G3))===Qe(hb),Jn&&Pr&&Ha(k,p,k.c.b,k.c)}}i(zEn,"Q$b");function Yzt(e){var n,o,u,p,g,w,k,A;for(g=0,p=e.a.b,A=ei(e.a,0);A.b!=A.d.c;){if(k=y(Qn(A),240),w=(g+1)/(p+1),!e.c&&!e.d)return;e.c&&!e.d?(e.g=!0,e.b==(Ss(),Il)?(u=e.c.e.b+e.c.f.b+e.e*(g+1),n=new Lt(He(Xe(oe(e.c,(Ca(),Kp))))+e.e,u),o=new Lt(He(Xe(oe(e.c,Eg)))-e.e,u)):e.b==Bl?(u=e.c.e.b+e.c.f.b+e.e*(g+1),n=new Lt(He(Xe(oe(e.c,(Ca(),Eg))))-e.e,u),o=new Lt(He(Xe(oe(e.c,Kp)))+e.e,u)):e.b==Ed?(u=e.c.e.a+e.c.f.a+e.e*(g+1),n=new Lt(u,He(Xe(oe(e.c,(Ca(),Kp))))+e.e),o=new Lt(u,He(Xe(oe(e.c,Eg)))-e.e)):(u=e.c.e.a+e.c.f.a+e.e*(g+1),n=new Lt(u,He(Xe(oe(e.c,(Ca(),Eg))))-e.e),o=new Lt(u,He(Xe(oe(e.c,Kp)))+e.e))):e.c&&e.d?e.b==(Ss(),Il)?(u=e.d.e.b*w+(e.c.e.b+e.c.f.b)*(1-w),n=new Lt(He(Xe(oe(e.c,(Ca(),Kp))))+e.e,u),o=new Lt(He(Xe(oe(e.c,Eg)))-e.e,u)):e.b==Bl?(u=e.d.e.b*w+(e.c.e.b+e.c.f.b)*(1-w),n=new Lt(He(Xe(oe(e.c,(Ca(),Eg))))-e.e,u),o=new Lt(He(Xe(oe(e.c,Kp)))+e.e,u)):e.b==Ed?(u=e.d.e.a*w+(e.c.e.a+e.c.f.a)*(1-w),n=new Lt(u,He(Xe(oe(e.c,(Ca(),Kp))))+e.e),o=new Lt(u,He(Xe(oe(e.c,Eg)))-e.e)):(u=e.d.e.a*w+(e.c.e.a+e.c.f.a)*(1-w),n=new Lt(u,He(Xe(oe(e.c,(Ca(),Eg))))-e.e),o=new Lt(u,He(Xe(oe(e.c,Kp)))+e.e)):(e.f=!0,e.b==(Ss(),Il)?(u=e.d.e.b-e.e*(g+1),n=new Lt(He(Xe(oe(e.d,(Ca(),Kp))))+e.e,u),o=new Lt(He(Xe(oe(e.d,Eg)))-e.e,u)):e.b==Bl?(u=e.d.e.b-e.e*(g+1),n=new Lt(He(Xe(oe(e.d,(Ca(),Eg))))-e.e,u),o=new Lt(He(Xe(oe(e.d,Kp)))+e.e,u)):e.b==Ed?(u=e.d.e.a-e.e*(g+1),n=new Lt(u,He(Xe(oe(e.d,(Ca(),Kp))))+e.e),o=new Lt(u,He(Xe(oe(e.d,Eg)))-e.e)):(u=e.d.e.a-e.e*(g+1),n=new Lt(u,He(Xe(oe(e.d,(Ca(),Eg))))-e.e),o=new Lt(u,He(Xe(oe(e.d,Kp)))+e.e))),y(k.a,8).a=n.a,y(k.a,8).b=n.b,k.b.a=o.a,k.b.b=o.b,++g}}i(Yzt,"S$c");function UEn(e,n,o,u,p,g){var w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;switch(n){case 71:k=u.q.getFullYear()-Ev>=-1900?1:0,o>=4?Li(e,Se(Ee(Zt,1),Dt,2,6,[uUt,hUt])[k]):Li(e,Se(Ee(Zt,1),Dt,2,6,["BC","AD"])[k]);break;case 121:Sgn(e,o,u);break;case 77:TTn(e,o,u);break;case 107:A=p.q.getHours(),A==0?Um(e,24,o):Um(e,A,o);break;case 83:B2n(e,o,p);break;case 69:M=u.q.getDay(),o==5?Li(e,Se(Ee(Zt,1),Dt,2,6,["S","M","T","W","T","F","S"])[M]):o==4?Li(e,Se(Ee(Zt,1),Dt,2,6,[Bde,Fde,$de,Gde,jde,zde,Ude])[M]):Li(e,Se(Ee(Zt,1),Dt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[M]);break;case 97:p.q.getHours()>=12&&p.q.getHours()<24?Li(e,Se(Ee(Zt,1),Dt,2,6,["AM","PM"])[1]):Li(e,Se(Ee(Zt,1),Dt,2,6,["AM","PM"])[0]);break;case 104:F=p.q.getHours()%12,F==0?Um(e,12,o):Um(e,F,o);break;case 75:z=p.q.getHours()%12,Um(e,z,o);break;case 72:ee=p.q.getHours(),Um(e,ee,o);break;case 99:ie=u.q.getDay(),o==5?Li(e,Se(Ee(Zt,1),Dt,2,6,["S","M","T","W","T","F","S"])[ie]):o==4?Li(e,Se(Ee(Zt,1),Dt,2,6,[Bde,Fde,$de,Gde,jde,zde,Ude])[ie]):o==3?Li(e,Se(Ee(Zt,1),Dt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[ie]):Um(e,ie,1);break;case 76:ue=u.q.getMonth(),o==5?Li(e,Se(Ee(Zt,1),Dt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[ue]):o==4?Li(e,Se(Ee(Zt,1),Dt,2,6,[Sde,Ade,Rde,Lde,y6,_de,Dde,Ide,Mde,Nde,Ode,Pde])[ue]):o==3?Li(e,Se(Ee(Zt,1),Dt,2,6,["Jan","Feb","Mar","Apr",y6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[ue]):Um(e,ue+1,o);break;case 81:fe=u.q.getMonth()/3|0,o<4?Li(e,Se(Ee(Zt,1),Dt,2,6,["Q1","Q2","Q3","Q4"])[fe]):Li(e,Se(Ee(Zt,1),Dt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[fe]);break;case 100:Ce=u.q.getDate(),Um(e,Ce,o);break;case 109:D=p.q.getMinutes(),Um(e,D,o);break;case 115:w=p.q.getSeconds(),Um(e,w,o);break;case 122:o<4?Li(e,g.c[0]):Li(e,g.c[1]);break;case 118:Li(e,g.b);break;case 90:o<3?Li(e,Gbn(g)):o==3?Li(e,Vbn(g)):Li(e,Wbn(g.a));break;default:return!1}return!0}i(UEn,"DA");function nMe(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn;if(SGt(n),A=y(je((!n.b&&(n.b=new zr(Hn,n,4,7)),n.b),0),84),M=y(je((!n.c&&(n.c=new zr(Hn,n,5,8)),n.c),0),84),k=Pl(A),D=Pl(M),w=(!n.a&&(n.a=new xt(Ia,n,6,6)),n.a).i==0?null:y(je((!n.a&&(n.a=new xt(Ia,n,6,6)),n.a),0),170),Ht=y(Jr(e.a,k),9),Mr=y(Jr(e.a,D),9),yr=null,wn=null,Ge(A,193)&&(st=y(Jr(e.a,A),246),Ge(st,12)?yr=y(st,12):Ge(st,9)&&(Ht=y(st,9),yr=y(Wt(Ht.j,0),12))),Ge(M,193)&&(Pr=y(Jr(e.a,M),246),Ge(Pr,12)?wn=y(Pr,12):Ge(Pr,9)&&(Mr=y(Pr,9),wn=y(Wt(Mr.j,0),12))),!Ht||!Mr)throw xe(new b5("The source or the target of edge "+n+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(ue=new Nx,wc(ue,n),dt(ue,(Tt(),aa),n),dt(ue,(Bt(),Dl),null),ee=y(oe(u,au),22),Ht==Mr&&ee.Ec((ol(),$M)),yr||(ht=(sl(),Eu),gr=null,w&&gC(y(oe(Ht,Qa),102))&&(gr=new Lt(w.j,w.k),n_t(gr,Vk(n)),L_t(gr,o),Qk(D,k)&&(ht=Mh,ra(gr,Ht.n))),yr=_jt(Ht,gr,ht,u)),wn||(ht=(sl(),Mh),Jn=null,w&&gC(y(oe(Mr,Qa),102))&&(Jn=new Lt(w.b,w.c),n_t(Jn,Vk(n)),L_t(Jn,o)),wn=_jt(Mr,Jn,ht,Zs(Mr))),Bo(ue,yr),mo(ue,wn),(yr.e.c.length>1||yr.g.c.length>1||wn.e.c.length>1||wn.g.c.length>1)&&ee.Ec((ol(),FM)),z=new Sn((!n.n&&(n.n=new xt(nc,n,1,7)),n.n));z.e!=z.i.gc();)if(F=y(_n(z),157),!Kt(Xt(St(F,Dw)))&&F.a)switch(fe=yhe(F),Nt(ue.b,fe),y(oe(fe,cm),279).g){case 1:case 2:ee.Ec((ol(),tL));break;case 0:ee.Ec((ol(),eL)),dt(fe,cm,(Qg(),xL))}if(g=y(oe(u,XM),301),Ce=y(oe(u,CZ),303),p=g==(vI(),aj)||Ce==(TI(),u1e),w&&(!w.a&&(w.a=new Es(qf,w,5)),w.a).i!=0&&p){for(Me=Gyn(w),ie=new Vh,Ve=ei(Me,0);Ve.b!=Ve.d.c;)$e=y(Qn(Ve),8),_i(ie,new Vo($e));dt(ue,v$e,ie)}return ue}i(nMe,"T$b");function VEn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua;for(gr=0,Pr=0,Ht=new jn,ht=y(ff($k(bu(new Er(null,new Rr(e.b,16)),new U1t),new I1t)),15).a+1,yr=tt(pi,Pi,30,ht,15,1),fe=tt(pi,Pi,30,ht,15,1),ue=0;ue<ht;ue++)yr[ue]=0,fe[ue]=0;for(A=y(Rh(W7e(new Er(null,new Rr(e.a,16))),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),M=A.Jc();M.Ob();)if(D=y(M.Pb(),65),wn=y(oe(D.b,(uc(),um)),15).a,Ua=y(oe(D.c,um),15).a,Ve=Ua-wn,Ve>1)for(k=wn+1;k<Ua;k++){if(F=k,st=y(Rh(Hi(new Er(null,new Rr(e.b,16)),new Nkt(F)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[Zu]))),16),ie=0,n==(Ss(),Il)||n==Bl){for(st.gd(new X1t),ie=0;ie<st.gc()&&(Ce=(k-wn)/(Ua-wn),!(y(st.Xb(ie),40).e.b>D.b.e.b*(1-Ce)+D.c.e.b*Ce));ie++);if(st.gc()>0&&(Jn=D.a.b==0?Wo(D.b.e):y(Mp(D.a),8),$e=ra(Wo(y(st.Xb(st.gc()-1),40).e),y(st.Xb(st.gc()-1),40).f),z=ra(Wo(y(st.Xb(0),40).e),y(st.Xb(0),40).f),ie>=st.gc()-1&&Jn.b>$e.b&&D.c.e.b>$e.b||ie<=0&&Jn.b<z.a&&D.c.e.b<z.b))continue}else{for(st.gd(new K1t),ie=0;ie<st.gc()&&(Ce=(k-wn)/(Ua-wn),!(y(st.Xb(ie),40).e.a>D.b.e.a*(1-Ce)+D.c.e.a*Ce));ie++);if(st.gc()>0&&(Jn=D.a.b==0?Wo(D.b.e):y(Mp(D.a),8),$e=ra(Wo(y(st.Xb(st.gc()-1),40).e),y(st.Xb(st.gc()-1),40).f),z=ra(Wo(y(st.Xb(0),40).e),y(st.Xb(0),40).f),ie>=st.gc()-1&&Jn.a>$e.a&&D.c.e.a>$e.a||ie<=0&&Jn.a<z.a&&D.c.e.a<z.a))continue}p=new xo,g=new xo,_i(D.a,p),_i(D.a,g),w=new ace(p,g,D),Me=H0($m(k,32),co(ie,ll)),Kc(Ht,o3(Me))?(ee=y(Jr(Ht,o3(Me)),662),_i(ee.a,w),R1(ee.b)?nw(ee.a,new Q1t):nw(ee.a,new Z1t),Yzt(ee)):(ee=new tPt(ie==0?null:y(st.Xb(ie-1),40),ie==st.gc()?null:y(st.Xb(ie),40),w,e),Oi(Ht,o3(Me),ee)),n==Il||n==Bl?(ee.f&&ee.d.e.b<=He(Xe(oe(e,(Ca(),_1e))))&&++gr,ee.g&&ee.c.e.b+ee.c.f.b>=He(Xe(oe(e,(Ca(),Uje))))&&++Pr):(ee.f&&ee.d.e.a<=He(Xe(oe(e,(Ca(),L1e))))&&++gr,ee.g&&ee.c.e.a+ee.c.f.a>=He(Xe(oe(e,(Ca(),zje))))&&++Pr)}else Ve==0?b9e(D):Ve<0&&(++yr[wn],++fe[Ua],Mr=FEn(D,n,e,new Ko(Et(gr),Et(Pr)),o,u,new Ko(Et(fe[Ua]),Et(yr[wn]))),gr=y(Mr.a,15).a,Pr=y(Mr.b,15).a)}i(VEn,"oZc");function WEn(e){e.gb||(e.gb=!0,e.b=cc(e,0),Ka(e.b,18),La(e.b,19),e.a=cc(e,1),Ka(e.a,1),La(e.a,2),La(e.a,3),La(e.a,4),La(e.a,5),e.o=cc(e,2),Ka(e.o,8),Ka(e.o,9),La(e.o,10),La(e.o,11),La(e.o,12),La(e.o,13),La(e.o,14),La(e.o,15),La(e.o,16),La(e.o,17),La(e.o,18),La(e.o,19),La(e.o,20),La(e.o,21),La(e.o,22),La(e.o,23),Ll(e.o),Ll(e.o),Ll(e.o),Ll(e.o),Ll(e.o),Ll(e.o),Ll(e.o),Ll(e.o),Ll(e.o),Ll(e.o),e.p=cc(e,3),Ka(e.p,2),Ka(e.p,3),Ka(e.p,4),Ka(e.p,5),La(e.p,6),La(e.p,7),Ll(e.p),Ll(e.p),e.q=cc(e,4),Ka(e.q,8),e.v=cc(e,5),La(e.v,9),Ll(e.v),Ll(e.v),Ll(e.v),e.w=cc(e,6),Ka(e.w,2),Ka(e.w,3),Ka(e.w,4),La(e.w,5),e.B=cc(e,7),La(e.B,1),Ll(e.B),Ll(e.B),Ll(e.B),e.Q=cc(e,8),La(e.Q,0),Ll(e.Q),e.R=cc(e,9),Ka(e.R,1),e.S=cc(e,10),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),Ll(e.S),e.T=cc(e,11),La(e.T,10),La(e.T,11),La(e.T,12),La(e.T,13),La(e.T,14),Ll(e.T),Ll(e.T),e.U=cc(e,12),Ka(e.U,2),Ka(e.U,3),La(e.U,4),La(e.U,5),La(e.U,6),La(e.U,7),Ll(e.U),e.V=cc(e,13),La(e.V,10),e.W=cc(e,14),Ka(e.W,18),Ka(e.W,19),Ka(e.W,20),La(e.W,21),La(e.W,22),La(e.W,23),e.bb=cc(e,15),Ka(e.bb,10),Ka(e.bb,11),Ka(e.bb,12),Ka(e.bb,13),Ka(e.bb,14),Ka(e.bb,15),Ka(e.bb,16),La(e.bb,17),Ll(e.bb),Ll(e.bb),e.eb=cc(e,16),Ka(e.eb,2),Ka(e.eb,3),Ka(e.eb,4),Ka(e.eb,5),Ka(e.eb,6),Ka(e.eb,7),La(e.eb,8),La(e.eb,9),e.ab=cc(e,17),Ka(e.ab,0),Ka(e.ab,1),e.H=cc(e,18),La(e.H,0),La(e.H,1),La(e.H,2),La(e.H,3),La(e.H,4),La(e.H,5),Ll(e.H),e.db=cc(e,19),La(e.db,2),e.c=zi(e,20),e.d=zi(e,21),e.e=zi(e,22),e.f=zi(e,23),e.i=zi(e,24),e.g=zi(e,25),e.j=zi(e,26),e.k=zi(e,27),e.n=zi(e,28),e.r=zi(e,29),e.s=zi(e,30),e.t=zi(e,31),e.u=zi(e,32),e.fb=zi(e,33),e.A=zi(e,34),e.C=zi(e,35),e.D=zi(e,36),e.F=zi(e,37),e.G=zi(e,38),e.I=zi(e,39),e.J=zi(e,40),e.L=zi(e,41),e.M=zi(e,42),e.N=zi(e,43),e.O=zi(e,44),e.P=zi(e,45),e.X=zi(e,46),e.Y=zi(e,47),e.Z=zi(e,48),e.$=zi(e,49),e._=zi(e,50),e.cb=zi(e,51),e.K=zi(e,52))}i(WEn,"j9d");function HEn(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie;for(F=ei(e.b,0);F.b!=F.d.c;)if(M=y(Qn(F),40),!Cr(M.c,FJ))for(g=y(Rh(new Er(null,new Rr(ivn(M,e),16)),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),16),n==(Ss(),Il)||n==Bl?g.gd(new q1t):g.gd(new Y1t),ie=g.gc(),p=0;p<ie;p++)w=ie==1?.5:(1+p)/(ie+1),n==Il?(D=He(Xe(oe(M,(Ca(),Kp)))),M.e.a+M.f.a+u<D?Uo(y(g.Xb(p),65).a,new Lt(D+o,M.e.b+M.f.b*w)):y(g.Xb(p),65).a.b>0&&(k=y(Mp(y(g.Xb(p),65).a),8).a,z=M.e.a+M.f.a/2,A=y(Mp(y(g.Xb(p),65).a),8).b,ee=M.e.b+M.f.b/2,u>0&&d.Math.abs(A-ee)/(d.Math.abs(k-z)/40)>50&&(ee>A?Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a+u/5.3,M.e.b+M.f.b*w-u/2)):Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a+u/5.3,M.e.b+M.f.b*w+u/2)))),Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a,M.e.b+M.f.b*w))):n==Bl?(D=He(Xe(oe(M,(Ca(),Eg)))),M.e.a-u>D?Uo(y(g.Xb(p),65).a,new Lt(D-o,M.e.b+M.f.b*w)):y(g.Xb(p),65).a.b>0&&(k=y(Mp(y(g.Xb(p),65).a),8).a,z=M.e.a+M.f.a/2,A=y(Mp(y(g.Xb(p),65).a),8).b,ee=M.e.b+M.f.b/2,u>0&&d.Math.abs(A-ee)/(d.Math.abs(k-z)/40)>50&&(ee>A?Uo(y(g.Xb(p),65).a,new Lt(M.e.a-u/5.3,M.e.b+M.f.b*w-u/2)):Uo(y(g.Xb(p),65).a,new Lt(M.e.a-u/5.3,M.e.b+M.f.b*w+u/2)))),Uo(y(g.Xb(p),65).a,new Lt(M.e.a,M.e.b+M.f.b*w))):n==Ed?(D=He(Xe(oe(M,(Ca(),Kp)))),M.e.b+M.f.b+u<D?Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w,D+o)):y(g.Xb(p),65).a.b>0&&(k=y(Mp(y(g.Xb(p),65).a),8).a,z=M.e.a+M.f.a/2,A=y(Mp(y(g.Xb(p),65).a),8).b,ee=M.e.b+M.f.b/2,u>0&&d.Math.abs(k-z)/(d.Math.abs(A-ee)/40)>50&&(z>k?Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w-u/2,M.e.b+u/5.3+M.f.b)):Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w+u/2,M.e.b+u/5.3+M.f.b)))),Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w,M.e.b+M.f.b))):(D=He(Xe(oe(M,(Ca(),Eg)))),PMt(y(g.Xb(p),65),e)?Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w,y(Mp(y(g.Xb(p),65).a),8).b)):M.e.b-u>D?Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w,D-o)):y(g.Xb(p),65).a.b>0&&(k=y(Mp(y(g.Xb(p),65).a),8).a,z=M.e.a+M.f.a/2,A=y(Mp(y(g.Xb(p),65).a),8).b,ee=M.e.b+M.f.b/2,u>0&&d.Math.abs(k-z)/(d.Math.abs(A-ee)/40)>50&&(z>k?Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w-u/2,M.e.b-u/5.3)):Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w+u/2,M.e.b-u/5.3)))),Uo(y(g.Xb(p),65).a,new Lt(M.e.a+M.f.a*w,M.e.b)))}i(HEn,"mZc");function Xzt(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st;if(w=n,z=o,Kc(e.a,w)){if(Wd(y(Jr(e.a,w),48),z))return 1}else Oi(e.a,w,new gs);if(Kc(e.a,z)){if(Wd(y(Jr(e.a,z),48),w))return-1}else Oi(e.a,z,new gs);if(Kc(e.e,w)){if(Wd(y(Jr(e.e,w),48),z))return-1}else Oi(e.e,w,new gs);if(Kc(e.e,z)){if(Wd(y(Jr(e.a,z),48),w))return 1}else Oi(e.e,z,new gs);if(w.j!=z.j)return ht=$Zr(w.j,z.j),ht>0?vd(e,w,z,1):vd(e,z,w,1),ht;if(st=1,w.e.c.length!=0&&z.e.c.length!=0){if((w.j==(zt(),on)&&z.j==on||w.j==sn&&z.j==sn||w.j==Fn&&z.j==Fn)&&(st=-st),M=y(Wt(w.e,0),17).c,fe=y(Wt(z.e,0),17).c,A=M.i,ie=fe.i,A==ie)for($e=new ye(A.j);$e.a<$e.c.c.length;){if(Me=y(de($e),12),M==Me)return vd(e,z,w,st),-st;if(fe==Me)return vd(e,w,z,st),st}if(M.i.k==(Yr(),bs)&&fe.i.k==bs&&A.c.p==ie.c.p&&A.c.p==w.i.c.p&&(Ve=A.c,p=pNt(Ve,A,ie),p!=0))return w.j==bn&&z.j==bn&&(st=-st),p>0?(vd(e,w,z,st),st):(vd(e,z,w,st),-st);if(u=pNt(y(Rh(Ece(e.d),qh(new it,new ot,new pt,Se(Ee(eh,1),At,130,0,[(md(),Zu)]))),20),A,ie),u!=0)return u>0?(vd(e,w,z,st),st):(vd(e,z,w,st),-st);if(e.c&&(ht=UOt(e,w,z),ht!=0))return ht>0?(vd(e,w,z,st),st):(vd(e,z,w,st),-st)}return w.g.c.length!=0&&z.g.c.length!=0?((w.j==(zt(),on)&&z.j==on||w.j==Fn&&z.j==Fn)&&(st=-st),F=y(oe(w,(Tt(),Lme)),9),Ce=y(oe(z,Lme),9),e.f==(V1(),p1e)&&F&&Ce&&ea(F,Ea)&&ea(Ce,Ea)?(k=Qx(F,Ce,e.b,y(oe(e.b,Pv),15).a),ee=Qx(Ce,F,e.b,y(oe(e.b,Pv),15).a),k>ee?(vd(e,w,z,st),st):(vd(e,z,w,st),-st)):e.c&&(ht=UOt(e,w,z),ht!=0)?ht>0?(vd(e,w,z,st),st):(vd(e,z,w,st),-st):(D=0,ue=0,ea(y(Wt(w.g,0),17),Ea)&&(D=Qx(y(Wt(w.g,0),246),y(Wt(z.g,0),246),e.b,w.g.c.length+w.e.c.length)),ea(y(Wt(z.g,0),17),Ea)&&(ue=Qx(y(Wt(z.g,0),246),y(Wt(w.g,0),246),e.b,z.g.c.length+z.e.c.length)),F&&F==Ce||e.g&&(e.g._b(F)&&(D=y(e.g.xc(F),15).a),e.g._b(Ce)&&(ue=y(e.g.xc(Ce),15).a)),D>ue?(vd(e,w,z,st),st):(vd(e,z,w,st),-st))):w.e.c.length!=0&&z.g.c.length!=0?(vd(e,w,z,st),1):w.g.c.length!=0&&z.e.c.length!=0?(vd(e,z,w,st),-1):ea(w,(Tt(),Ea))&&ea(z,Ea)?(g=w.i.j.c.length,k=Qx(w,z,e.b,g),ee=Qx(z,w,e.b,g),(w.j==(zt(),on)&&z.j==on||w.j==Fn&&z.j==Fn)&&(st=-st),k>ee?(vd(e,w,z,st),st):(vd(e,z,w,st),-st)):(vd(e,z,w,st),-st)}i(Xzt,"Nlc");function Tt(){Tt=U;var e,n;aa=new ia(IMe),g$e=new ia("coordinateOrigin"),Dme=new ia("processors"),p$e=new Da("compoundNode",(qr(),!1)),hj=new Da("insideConnections",!1),v$e=new ia("originalBendpoints"),w$e=new ia("originalDummyNodePosition"),x$e=new ia("originalLabelEdge"),jM=new ia("representedLabels"),GM=new ia("endLabels"),B6=new ia("endLabel.origin"),$6=new Da("labelSide",(Bf(),Wj)),gE=new Da("maxEdgeThickness",0),ib=new Da("reversed",!1),G6=new ia(MMe),Cg=new Da("longEdgeSource",null),np=new Da("longEdgeTarget",null),F3=new Da("longEdgeHasLabelDummies",!1),fj=new Da("longEdgeBeforeLabelDummy",!1),lZ=new Da("edgeConstraint",(sw(),dme)),bT=new ia("inLayerLayoutUnit"),Sw=new Da("inLayerConstraint",(F1(),cj)),F6=new Da("inLayerSuccessorConstraint",new Pt),b$e=new Da("inLayerSuccessorConstraintBetweenNonDummies",!1),Ih=new ia("portDummy"),oZ=new Da("crossingHint",Et(0)),au=new Da("graphProperties",(n=y(ug(wme),10),new ud(n,y(Np(n,n.length),10),0))),gc=new Da("externalPortSide",(zt(),rc)),y$e=new Da("externalPortSize",new xo),Sme=new ia("externalPortReplacedDummies"),cZ=new ia("externalPortReplacedDummy"),J1=new Da("externalPortConnections",(e=y(ug(Qo),10),new ud(e,y(Np(e,e.length),10),0))),vT=new Da(UUt,0),d$e=new ia("barycenterAssociates"),z6=new ia("TopSideComments"),O6=new ia("BottomSideComments"),sZ=new ia("CommentConnectionPort"),Rme=new Da("inputCollect",!1),_me=new Da("outputCollect",!1),P6=new Da("cyclic",!1),m$e=new ia("crossHierarchyMap"),Mme=new ia("targetOffset"),new Da("splineLabelSize",new xo),yE=new ia("spacings"),uZ=new Da("partitionConstraint",!1),yT=new ia("breakingPoint.info"),C$e=new ia("splines.survivingEdge"),Aw=new ia("splines.route.start"),bE=new ia("splines.edgeChain"),k$e=new ia("originalPortConstraints"),wT=new ia("selfLoopHolder"),nL=new ia("splines.nsPortY"),Ea=new ia("modelOrder"),Pv=new ia("modelOrder.maximum"),uj=new ia("modelOrderGroups.cb.number"),Lme=new ia("longEdgeTargetNode"),Ov=new Da(vVt,!1),mE=new Da(vVt,!1),Ame=new ia("layerConstraints.hiddenNodes"),T$e=new ia("layerConstraints.opposidePort"),Ime=new ia("targetNode.modelOrder"),j6=new Da("tarjan.lowlink",Et(Ui)),zM=new Da("tarjan.id",Et(-1)),hZ=new Da("tarjan.onstack",!1),WKt=new Da("partOfCycle",!1),vE=new ia("medianHeuristic.weight")}i(Tt,"Wrc");function Ri(){Ri=U;var e,n;K6=new ia(cWt),r4=new ia(uWt),jUe=(Vm(),xye),ynr=new br(UNe,jUe),new qD,yL=new br(TR,null),bnr=new ia(nPe),UUe=(fw(),ka(Cye,Se(Ee(Eye,1),At,299,0,[kye]))),Pj=new br(NJ,UUe),Bj=new br($G,(qr(),!1)),VUe=(Ss(),g0),Ow=new br(Kpe,VUe),qUe=(U1(),Fye),HUe=new br(FG,qUe),Tnr=new br(tPe,!1),XUe=(z1(),dee),LE=new br(MJ,XUe),sVe=new Cx(12),r1=new br(C3,sVe),$j=new br(tM,!1),Lye=new br(PJ,!1),Gj=new br(rM,!1),hVe=(uo(),Hv),EN=new br(spe,hVe),J6=new ia(OJ),jj=new ia(RG),Pye=new ia(pJ),Bye=new ia(eM),QUe=new Vh,_E=new br(eOe,QUe),wnr=new br(iOe,!1),knr=new br(aOe,!1),new ia(hWt),new br(fWt,0),ZUe=new KD,bL=new br(oOe,ZUe),lee=new br(jNe,!1),new qD,Lnr=new br(dWt,1),Z3=new ia(pWt),Q3=new ia(gWt),wL=new br(LG,!1),new br(mWt,!0),Et(0),new br(yWt,Et(100)),new br(bWt,!1),Et(0),new br(vWt,Et(4e3)),Et(0),new br(wWt,Et(400)),new br(xWt,!1),new br(TWt,!1),new br(kWt,!0),new br(CWt,!1),zUe=(eK(),Vye),vnr=new br(rPe,zUe),JUe=(tI(),Yj),Enr=new br(EWt,JUe),KUe=(B7(),zj),Cnr=new br(SWt,KUe),_nr=new br(LNe,10),Dnr=new br(_Ne,10),Inr=new br(DNe,20),Mnr=new br(INe,10),gVe=new br(ape,2),mVe=new br(Xpe,10),yVe=new br(MNe,0),cee=new br(PNe,5),bVe=new br(NNe,1),vVe=new br(ONe,1),ub=new br(k3,20),Nnr=new br(BNe,10),TVe=new br(FNe,10),Q6=new ia($Ne),xVe=new g5t,wVe=new br(lOe,xVe),Anr=new ia(Qpe),oVe=!1,Snr=new br(Jpe,oVe),tVe=new Cx(5),eVe=new br(HNe,tVe),rVe=(d3(),n=y(ug(fl),10),new ud(n,y(Np(n,n.length),10),0)),DE=new br(CR,rVe),cVe=(BC(),Wv),lVe=new br(XNe,cVe),Dye=new ia(KNe),Iye=new ia(JNe),Mye=new ia(QNe),_ye=new ia(ZNe),nVe=(e=y(ug(MN),10),new ud(e,y(Np(e,e.length),10),0)),Pw=new br(QC,nVe),aVe=mr((Zh(),EL)),Uv=new br(k6,aVe),iVe=new Lt(0,0),IE=new br(C6,iVe),e4=new br(kR,!1),WUe=(Qg(),xL),Aye=new br(rOe,WUe),Sye=new br(gJ,!1),new ia(AWt),Et(1),new br(RWt,null),uVe=new ia(sOe),Nye=new ia(nOe),pVe=(zt(),rc),ME=new br(zNe,pVe),tf=new ia(GNe),fVe=(_h(),mr(qv)),t4=new br(ER,fVe),Oye=new br(qNe,!1),dVe=new br(YNe,!0),Et(1),$nr=new br(xge,Et(3)),Et(1),jnr=new br(iPe,Et(4)),new qD,uee=new br(_G,1),hee=new br(Tge,null),n4=new br(DG,150),vL=new br(IG,1.414),Z6=new br(aT,null),Onr=new br(aPe,1),Fj=new br(VNe,!1),Rye=new br(WNe,!1),xnr=new br(tOe,1),YUe=(RK(),Gye),new br(LWt,YUe),Rnr=!0,Gnr=(QY(),Uye),Bnr=(t6(),s4),Fnr=s4,Pnr=s4}i(Ri,"vjd");function ho(){ho=U,cFe=new ms("DIRECTION_PREPROCESSOR",0),sFe=new ms("COMMENT_PREPROCESSOR",1),lE=new ms("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),V0e=new ms("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),LFe=new ms("PARTITION_PREPROCESSOR",4),NQ=new ms("LABEL_DUMMY_INSERTER",5),VQ=new ms("SELF_LOOP_PREPROCESSOR",6),N3=new ms("LAYER_CONSTRAINT_PREPROCESSOR",7),AFe=new ms("PARTITION_MIDPROCESSOR",8),yFe=new ms("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),EFe=new ms("NODE_PROMOTION",10),M3=new ms("LAYER_CONSTRAINT_POSTPROCESSOR",11),RFe=new ms("PARTITION_POSTPROCESSOR",12),pFe=new ms("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),_Fe=new ms("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),eFe=new ms("BREAKING_POINT_INSERTER",15),FQ=new ms("LONG_EDGE_SPLITTER",16),W0e=new ms("PORT_SIDE_PROCESSOR",17),IQ=new ms("INVERTED_PORT_PROCESSOR",18),jQ=new ms("PORT_LIST_SORTER",19),IFe=new ms("SORT_BY_INPUT_ORDER_OF_MODEL",20),GQ=new ms("NORTH_SOUTH_PORT_PREPROCESSOR",21),tFe=new ms("BREAKING_POINT_PROCESSOR",22),SFe=new ms(hVt,23),MFe=new ms(fVt,24),zQ=new ms("SELF_LOOP_PORT_RESTORER",25),ZBe=new ms("ALTERNATING_LAYER_UNZIPPER",26),DFe=new ms("SINGLE_EDGE_GRAPH_WRAPPER",27),MQ=new ms("IN_LAYER_CONSTRAINT_PROCESSOR",28),hFe=new ms("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",29),TFe=new ms("LABEL_AND_NODE_SIZE_PROCESSOR",30),xFe=new ms("INNERMOST_NODE_MARGIN_CALCULATOR",31),WQ=new ms("SELF_LOOP_ROUTER",32),iFe=new ms("COMMENT_NODE_MARGIN_CALCULATOR",33),DQ=new ms("END_LABEL_PREPROCESSOR",34),PQ=new ms("LABEL_DUMMY_SWITCHER",35),nFe=new ms("CENTER_LABEL_MANAGEMENT_PROCESSOR",36),qR=new ms("LABEL_SIDE_SELECTOR",37),vFe=new ms("HYPEREDGE_DUMMY_MERGER",38),gFe=new ms("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",39),CFe=new ms("NODE_PLACEMENT_REPEATER",40),kFe=new ms("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",41),NM=new ms("HIERARCHICAL_PORT_POSITION_PROCESSOR",42),oFe=new ms("CONSTRAINTS_POSTPROCESSOR",43),aFe=new ms("COMMENT_POSTPROCESSOR",44),wFe=new ms("HYPERNODE_PROCESSOR",45),mFe=new ms("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",46),BQ=new ms("LONG_EDGE_JOINER",47),UQ=new ms("SELF_LOOP_POSTPROCESSOR",48),rFe=new ms("BREAKING_POINT_REMOVER",49),$Q=new ms("NORTH_SOUTH_PORT_POSTPROCESSOR",50),bFe=new ms("HORIZONTAL_COMPACTOR",51),OQ=new ms("LABEL_DUMMY_REMOVER",52),fFe=new ms("FINAL_SPLINE_BENDPOINTS_CALCULATOR",53),uFe=new ms("END_LABEL_SORTER",54),M6=new ms("REVERSED_EDGE_RESTORER",55),_Q=new ms("END_LABEL_POSTPROCESSOR",56),dFe=new ms("HIERARCHICAL_NODE_RESIZER",57),lFe=new ms("DIRECTION_POSTPROCESSOR",58)}i(ho,"X5b");function qEn(e,n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua,Ph,Ml,Yf,$E,bb,ng,iy,Ld,sA,HN,ay,Lg,vb,jw,zw,oA,Uw,Vw,sy,p4,JWe,_T,qN,obe,lA,YN,g4,XN,lbe,Iar;for(JWe=0,Jn=n,Ml=0,bb=Jn.length;Ml<bb;++Ml)for(Mr=Jn[Ml],vb=new ye(Mr.j);vb.a<vb.c.c.length;){for(Lg=y(de(vb),12),zw=0,k=new ye(Lg.g);k.a<k.c.c.length;)w=y(de(k),17),Mr.c!=w.d.i.c&&++zw;zw>0&&(e.a[Lg.p]=JWe++)}for(YN=0,Ua=o,Yf=0,ng=Ua.length;Yf<ng;++Yf){for(Mr=Ua[Yf],iy=0,vb=new ye(Mr.j);vb.a<vb.c.c.length&&(Lg=y(de(vb),12),Lg.j==(zt(),sn));)for(k=new ye(Lg.e);k.a<k.c.c.length;)if(w=y(de(k),17),Mr.c!=w.c.i.c){++iy;break}for(sA=0,oA=new yo(Mr.j,Mr.j.c.length);oA.b>0;){for(Lg=(In(oA.b>0),y(oA.a.Xb(oA.c=--oA.b),12)),zw=0,k=new ye(Lg.e);k.a<k.c.c.length;)w=y(de(k),17),Mr.c!=w.c.i.c&&++zw;zw>0&&(Lg.j==(zt(),sn)?(e.a[Lg.p]=YN,++YN):(e.a[Lg.p]=YN+iy+sA,++sA))}YN+=sA}for(jw=new jn,ie=new Om,wn=n,Ph=0,$E=wn.length;Ph<$E;++Ph)for(Mr=wn[Ph],obe=new ye(Mr.j);obe.a<obe.c.c.length;)for(qN=y(de(obe),12),k=new ye(qN.g);k.a<k.c.c.length;)if(w=y(de(k),17),XN=w.d,Mr.c!=XN.i.c)if(_T=y(Yl(Sl(jw.f,qN)),467),g4=y(Yl(Sl(jw.f,XN)),467),!_T&&!g4)ee=new eAt,ie.a.yc(ee,ie),Nt(ee.a,w),Nt(ee.d,qN),Ju(jw.f,qN,ee),Nt(ee.d,XN),Ju(jw.f,XN,ee);else if(!_T)Nt(g4.a,w),Nt(g4.d,qN),Ju(jw.f,qN,g4);else if(!g4)Nt(_T.a,w),Nt(_T.d,XN),Ju(jw.f,XN,_T);else if(_T==g4)Nt(_T.a,w);else{for(Nt(_T.a,w),ay=new ye(g4.d);ay.a<ay.c.c.length;)HN=y(de(ay),12),Ju(jw.f,HN,_T);Is(_T.a,g4.a),Is(_T.d,g4.d),ie.a.Ac(g4)!=null}for(ue=y(kI(ie,tt(ySn,{3:1,4:1,5:1,2010:1},467,ie.a.gc(),0,1)),2010),Pr=n[0].c,p4=o[0].c,M=ue,F=0,z=M.length;F<z;++F)for(D=M[F],D.e=JWe,D.f=YN,vb=new ye(D.d);vb.a<vb.c.c.length;)Lg=y(de(vb),12),Uw=e.a[Lg.p],Lg.i.c==Pr?(Uw<D.e&&(D.e=Uw),Uw>D.b&&(D.b=Uw)):Lg.i.c==p4&&(Uw<D.f&&(D.f=Uw),Uw>D.c&&(D.c=Uw));for(w7(ue,0,ue.length,null),lA=tt(pi,Pi,30,ue.length,15,1),u=tt(pi,Pi,30,YN+1,15,1),Ce=0;Ce<ue.length;Ce++)lA[Ce]=ue[Ce].f,u[lA[Ce]]=1;for(g=0,Me=0;Me<u.length;Me++)u[Me]==1?u[Me]=g:--g;for(Vw=0,$e=0;$e<lA.length;$e++)lA[$e]+=u[lA[$e]],Vw=d.Math.max(Vw,lA[$e]+1);for(A=1;A<Vw;)A*=2;for(Iar=2*A-1,A-=1,lbe=tt(pi,Pi,30,Iar,15,1),p=0,yr=0;yr<lA.length;yr++)for(Ht=lA[yr]+A,++lbe[Ht];Ht>0;)Ht%2>0&&(p+=lbe[Ht+1]),Ht=(Ht-1)/2|0,++lbe[Ht];for(gr=tt(yer,Fr,370,ue.length*2,0,1),Ve=0;Ve<ue.length;Ve++)gr[2*Ve]=new DY(ue[Ve],ue[Ve].e,ue[Ve].b,(K9(),sN)),gr[2*Ve+1]=new DY(ue[Ve],ue[Ve].b,ue[Ve].e,aN);for(w7(gr,0,gr.length,null),Ld=0,ht=0;ht<gr.length;ht++)switch(gr[ht].d.g){case 0:++Ld;break;case 1:--Ld,p+=Ld}for(sy=tt(yer,Fr,370,ue.length*2,0,1),st=0;st<ue.length;st++)sy[2*st]=new DY(ue[st],ue[st].f,ue[st].c,(K9(),sN)),sy[2*st+1]=new DY(ue[st],ue[st].c,ue[st].f,aN);for(w7(sy,0,sy.length,null),Ld=0,fe=0;fe<sy.length;fe++)switch(sy[fe].d.g){case 0:++Ld;break;case 1:--Ld,p+=Ld}return p}i(qEn,"TJc");function Xi(){Xi=U,WN=new bx(7),UWe=(++Za,new Fm(8,94)),++Za,new Fm(8,64),VWe=(++Za,new Fm(8,36)),kar=(++Za,new Fm(8,65)),Car=(++Za,new Fm(8,122)),Ear=(++Za,new Fm(8,90)),Aar=(++Za,new Fm(8,98)),Tar=(++Za,new Fm(8,66)),Sar=(++Za,new Fm(8,60)),Rar=(++Za,new Fm(8,62)),zWe=new bx(11),Oee=(++Za,new If(4)),tu(Oee,48,57),LL=(++Za,new If(4)),tu(LL,48,57),tu(LL,65,90),tu(LL,95,95),tu(LL,97,122),aA=(++Za,new If(4)),tu(aA,9,9),tu(aA,10,10),tu(aA,12,12),tu(aA,13,13),tu(aA,32,32),WWe=m3(Oee),qWe=m3(LL),HWe=m3(aA),RL=new jn,VN=new jn,xar=Se(Ee(Zt,1),Dt,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),GWe=Se(Ee(Zt,1),Dt,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",Rqt,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),jWe=Se(Ee(pi,1),Pi,30,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}i(Xi,"gre");function aJ(){aJ=U,qYt=new gd("OUT_T_L",0,(Lh(),om),(Xu(),qp),(yg(),dc),dc,Se(Ee(rp,1),Fr,22,0,[ka((d3(),Zp),Se(Ee(fl,1),At,96,0,[eg,Jp]))])),HYt=new gd("OUT_T_C",1,Iv,qp,dc,Cu,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[eg,ty])),ka(Zp,Se(Ee(fl,1),At,96,0,[eg,ty,ip]))])),YYt=new gd("OUT_T_R",2,Hp,qp,dc,pc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[eg,Qp]))])),FYt=new gd("OUT_B_L",3,om,kg,pc,dc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[ap,Jp]))])),BYt=new gd("OUT_B_C",4,Iv,kg,pc,Cu,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[ap,ty])),ka(Zp,Se(Ee(fl,1),At,96,0,[ap,ty,ip]))])),$Yt=new gd("OUT_B_R",5,Hp,kg,pc,pc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[ap,Qp]))])),zYt=new gd("OUT_L_T",6,Hp,kg,dc,dc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[Jp,eg,ip]))])),jYt=new gd("OUT_L_C",7,Hp,Mv,Cu,dc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[Jp,i1])),ka(Zp,Se(Ee(fl,1),At,96,0,[Jp,i1,ip]))])),GYt=new gd("OUT_L_B",8,Hp,qp,pc,dc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[Jp,ap,ip]))])),WYt=new gd("OUT_R_T",9,om,kg,dc,pc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[Qp,eg,ip]))])),VYt=new gd("OUT_R_C",10,om,Mv,Cu,pc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[Qp,i1])),ka(Zp,Se(Ee(fl,1),At,96,0,[Qp,i1,ip]))])),UYt=new gd("OUT_R_B",11,om,qp,pc,pc,Se(Ee(rp,1),Fr,22,0,[ka(Zp,Se(Ee(fl,1),At,96,0,[Qp,ap,ip]))])),OYt=new gd("IN_T_L",12,om,kg,dc,dc,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[eg,Jp])),ka(Vf,Se(Ee(fl,1),At,96,0,[eg,Jp,ip]))])),NYt=new gd("IN_T_C",13,Iv,kg,dc,Cu,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[eg,ty])),ka(Vf,Se(Ee(fl,1),At,96,0,[eg,ty,ip]))])),PYt=new gd("IN_T_R",14,Hp,kg,dc,pc,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[eg,Qp])),ka(Vf,Se(Ee(fl,1),At,96,0,[eg,Qp,ip]))])),IYt=new gd("IN_C_L",15,om,Mv,Cu,dc,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[i1,Jp])),ka(Vf,Se(Ee(fl,1),At,96,0,[i1,Jp,ip]))])),DYt=new gd("IN_C_C",16,Iv,Mv,Cu,Cu,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[i1,ty])),ka(Vf,Se(Ee(fl,1),At,96,0,[i1,ty,ip]))])),MYt=new gd("IN_C_R",17,Hp,Mv,Cu,pc,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[i1,Qp])),ka(Vf,Se(Ee(fl,1),At,96,0,[i1,Qp,ip]))])),LYt=new gd("IN_B_L",18,om,qp,pc,dc,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[ap,Jp])),ka(Vf,Se(Ee(fl,1),At,96,0,[ap,Jp,ip]))])),RYt=new gd("IN_B_C",19,Iv,qp,pc,Cu,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[ap,ty])),ka(Vf,Se(Ee(fl,1),At,96,0,[ap,ty,ip]))])),_Yt=new gd("IN_B_R",20,Hp,qp,pc,pc,Se(Ee(rp,1),Fr,22,0,[ka(Vf,Se(Ee(fl,1),At,96,0,[ap,Qp])),ka(Vf,Se(Ee(fl,1),At,96,0,[ap,Qp,ip]))])),E0e=new gd(QI,21,null,null,null,null,Se(Ee(rp,1),Fr,22,0,[]))}i(aJ,"MJb");function iMe(){iMe=U,$$e=(g$(),ZQ),IJt=new br(jMe,$$e),VJt=new br(zMe,(qr(),!1)),W$e=(YY(),Eme),XJt=new br(wJ,W$e),mQt=new br(UMe,!1),yQt=new br(VMe,!0),YKt=new br(WMe,!1),rGe=(f$(),g1e),NQt=new br(HMe,rGe),Et(1),zQt=new br(qMe,Et(7)),UQt=new br(YMe,!1),WJt=new br(XMe,!1),F$e=(Z$(),lme),DJt=new br(OG,F$e),Y$e=(tG(),s1e),cQt=new br(PG,Y$e),H$e=(yf(),dj),tQt=new br(KMe,H$e),Et(-1),eQt=new br(JMe,null),Et(-1),rQt=new br(QMe,Et(-1)),Et(-1),nQt=new br(dpe,Et(4)),Et(-1),aQt=new br(ppe,Et(2)),q$e=(Tv(),IZ),lQt=new br(gpe,q$e),Et(0),oQt=new br(mpe,Et(0)),QJt=new br(ype,Et(Ui)),B$e=(vI(),PM),_Jt=new br(sM,B$e),gJt=new br(ZMe,!1),TJt=new br(bpe,.1),RJt=new br(vpe,!1),CJt=new br(eNe,null),EJt=new br(tNe,null),Et(-1),SJt=new br(rNe,null),Et(-1),AJt=new br(nNe,Et(-1)),Et(0),mJt=new br(iNe,Et(40)),P$e=(L7(),Tme),wJt=new br(wpe,P$e),O$e=oj,yJt=new br(xJ,O$e),tGe=(TI(),eN),MQt=new br(E3,tGe),TQt=new ia(TJ),Q$e=(l$(),tZ),bQt=new br(xpe,Q$e),Z$e=(W$(),rZ),wQt=new br(Tpe,Z$e),new qD,EQt=new br(kpe,.3),AQt=new ia(Cpe),eGe=(l3(),DZ),RQt=new br(Epe,eGe),DQt=new br(Spe,null),z$e=(BX(),y1e),BJt=new br(aNe,z$e),U$e=(uI(),v1e),FJt=new br(sNe,U$e),V$e=(O7(),nN),$Jt=new br(kJ,V$e),jJt=new br(CJ,.2),OJt=new br(Ape,2),FQt=new br(oNe,null),GQt=new br(lNe,10),$Qt=new br(cNe,10),jQt=new br(uNe,20),Et(0),OQt=new br(hNe,Et(0)),Et(0),PQt=new br(fNe,Et(0)),Et(0),BQt=new br(dNe,Et(0)),XKt=new br(Rpe,!1),R$e=(Q7(),BM),JKt=new br(pNe,R$e),A$e=(oX(),ime),KKt=new br(gNe,A$e),qJt=new br(EJ,!1),Et(0),HJt=new br(Lpe,Et(16)),Et(0),YJt=new br(_pe,Et(5)),aGe=($X(),T1e),cZt=new br(Y1,aGe),VQt=new br(SJ,10),qQt=new br(AJ,1),iGe=(kX(),QQ),eZt=new br(oM,iGe),KQt=new ia(Dpe),nGe=Et(1),Et(0),QQt=new br(Ipe,nGe),sGe=(TX(),x1e),dZt=new br(RJ,sGe),uZt=new ia(LJ),aZt=new br(_J,!0),nZt=new br(DJ,2),oZt=new br(Mpe,!0),J$e=(ZY(),Ome),gQt=new br(Npe,J$e),hQt=new br(Ope,!1),X$e=Et(2),Et(1),uQt=new br(Ppe,X$e),K$e=!0,dQt=new br(Bpe,K$e),j$e=(_K(),eZ),NJt=new br(mNe,j$e),G$e=(l6(),JR),MJt=new br(yNe,G$e),N$e=(V1(),$v),pJt=new br(IJ,N$e),dJt=new br(bNe,!1),fJt=new br(BG,!1),L$e=(i6(),IM),QKt=new br(Fpe,L$e),M$e=(fI(),o1e),hJt=new br(vNe,M$e),ZKt=new br($pe,0),eJt=new br(Gpe,0),uJt=new br(jpe,Et(0)),cJt=new br(zpe,Et(0)),lJt=new br(Upe,Et(0)),_$e=(fv(),lj),tJt=new br(wNe,_$e),rJt=new ia(Vpe),iJt=new ia(Wpe),I$e=lj,oJt=new br(xNe,I$e),D$e=PY(asn(Se(Ee(Ls,1),Dt,15,0,[Et(1),Et(2),Et(6),Et(7),Et(10),Et(11)]))),sJt=new br(TNe,D$e),JJt=ume,KJt=aj,iQt=LZ,sQt=LZ,ZJt=i1e,kJt=(z1(),hb),LJt=PM,xJt=PM,bJt=PM,vJt=hb,kQt=hL,CQt=eN,vQt=eN,xQt=eN,SQt=h1e,_Qt=hL,LQt=hL,IQt=hL,GJt=(U1(),eA),zJt=eA,UJt=nN,PJt=Uj,WQt=dL,HQt=X3,YQt=dL,XQt=X3,tZt=dL,rZt=X3,JQt=ame,ZQt=QQ,pZt=dL,gZt=X3,hZt=dL,fZt=X3,sZt=X3,iZt=X3,lZt=X3,fQt=Et(2),pQt=Nme,nJt=sj,aJt=sj}i(iMe,"qvc");function Dr(){Dr=U,u4=(rv(),Xr).b,y(je(wt(Xr.b),0),38),y(je(wt(Xr.b),1),19),db=Xr.a,y(je(wt(Xr.a),0),38),y(je(wt(Xr.a),1),19),y(je(wt(Xr.a),2),19),y(je(wt(Xr.a),3),19),y(je(wt(Xr.a),4),19),Xv=Xr.o,y(je(wt(Xr.o),0),38),y(je(wt(Xr.o),1),38),Gir=y(je(wt(Xr.o),2),19),y(je(wt(Xr.o),3),19),y(je(wt(Xr.o),4),19),y(je(wt(Xr.o),5),19),y(je(wt(Xr.o),6),19),y(je(wt(Xr.o),7),19),y(je(wt(Xr.o),8),19),y(je(wt(Xr.o),9),19),y(je(wt(Xr.o),10),19),y(je(wt(Xr.o),11),19),y(je(wt(Xr.o),12),19),y(je(wt(Xr.o),13),19),y(je(wt(Xr.o),14),19),y(je(wt(Xr.o),15),19),y(je(ca(Xr.o),0),62),y(je(ca(Xr.o),1),62),y(je(ca(Xr.o),2),62),y(je(ca(Xr.o),3),62),y(je(ca(Xr.o),4),62),y(je(ca(Xr.o),5),62),y(je(ca(Xr.o),6),62),y(je(ca(Xr.o),7),62),y(je(ca(Xr.o),8),62),y(je(ca(Xr.o),9),62),$ir=Xr.p,y(je(wt(Xr.p),0),38),y(je(wt(Xr.p),1),38),y(je(wt(Xr.p),2),38),y(je(wt(Xr.p),3),38),y(je(wt(Xr.p),4),19),y(je(wt(Xr.p),5),19),y(je(ca(Xr.p),0),62),y(je(ca(Xr.p),1),62),jir=Xr.q,y(je(wt(Xr.q),0),38),Kv=Xr.v,y(je(wt(Xr.v),0),19),y(je(ca(Xr.v),0),62),y(je(ca(Xr.v),1),62),y(je(ca(Xr.v),2),62),pb=Xr.w,y(je(wt(Xr.w),0),38),y(je(wt(Xr.w),1),38),y(je(wt(Xr.w),2),38),y(je(wt(Xr.w),3),19),Jv=Xr.B,y(je(wt(Xr.B),0),19),y(je(ca(Xr.B),0),62),y(je(ca(Xr.B),1),62),y(je(ca(Xr.B),2),62),zir=Xr.Q,y(je(wt(Xr.Q),0),19),y(je(ca(Xr.Q),0),62),Uir=Xr.R,y(je(wt(Xr.R),0),38),up=Xr.S,y(je(ca(Xr.S),0),62),y(je(ca(Xr.S),1),62),y(je(ca(Xr.S),2),62),y(je(ca(Xr.S),3),62),y(je(ca(Xr.S),4),62),y(je(ca(Xr.S),5),62),y(je(ca(Xr.S),6),62),y(je(ca(Xr.S),7),62),y(je(ca(Xr.S),8),62),y(je(ca(Xr.S),9),62),y(je(ca(Xr.S),10),62),y(je(ca(Xr.S),11),62),y(je(ca(Xr.S),12),62),y(je(ca(Xr.S),13),62),y(je(ca(Xr.S),14),62),gb=Xr.T,y(je(wt(Xr.T),0),19),y(je(wt(Xr.T),2),19),Vir=y(je(wt(Xr.T),3),19),y(je(wt(Xr.T),4),19),y(je(ca(Xr.T),0),62),y(je(ca(Xr.T),1),62),y(je(wt(Xr.T),1),19),mb=Xr.U,y(je(wt(Xr.U),0),38),y(je(wt(Xr.U),1),38),y(je(wt(Xr.U),2),19),y(je(wt(Xr.U),3),19),y(je(wt(Xr.U),4),19),y(je(wt(Xr.U),5),19),y(je(ca(Xr.U),0),62),h4=Xr.V,y(je(wt(Xr.V),0),19),NE=Xr.W,y(je(wt(Xr.W),0),38),y(je(wt(Xr.W),1),38),y(je(wt(Xr.W),2),38),y(je(wt(Xr.W),3),19),y(je(wt(Xr.W),4),19),y(je(wt(Xr.W),5),19),Wir=Xr.bb,y(je(wt(Xr.bb),0),38),y(je(wt(Xr.bb),1),38),y(je(wt(Xr.bb),2),38),y(je(wt(Xr.bb),3),38),y(je(wt(Xr.bb),4),38),y(je(wt(Xr.bb),5),38),y(je(wt(Xr.bb),6),38),y(je(wt(Xr.bb),7),19),y(je(ca(Xr.bb),0),62),y(je(ca(Xr.bb),1),62),Hir=Xr.eb,y(je(wt(Xr.eb),0),38),y(je(wt(Xr.eb),1),38),y(je(wt(Xr.eb),2),38),y(je(wt(Xr.eb),3),38),y(je(wt(Xr.eb),4),38),y(je(wt(Xr.eb),5),38),y(je(wt(Xr.eb),6),19),y(je(wt(Xr.eb),7),19),Zo=Xr.ab,y(je(wt(Xr.ab),0),38),y(je(wt(Xr.ab),1),38),ST=Xr.H,y(je(wt(Xr.H),0),19),y(je(wt(Xr.H),1),19),y(je(wt(Xr.H),2),19),y(je(wt(Xr.H),3),19),y(je(wt(Xr.H),4),19),y(je(wt(Xr.H),5),19),y(je(ca(Xr.H),0),62),AT=Xr.db,y(je(wt(Xr.db),0),19),b0=Xr.M}i(Dr,"WRd");function YEn(e){var n;e.O||(e.O=!0,wu(e,"type"),MX(e,"ecore.xml.type"),NX(e,kw),n=y(tR((Jb(),cp),kw),2009),Zn(Ol(e.fb),e.b),lc(e.b,oz,"AnyType",!1,!1,!0),ss(y(je(wt(e.b),0),38),e.wb.D,VG,null,0,-1,oz,!1,!1,!0,!1,!1,!1),ss(y(je(wt(e.b),1),38),e.wb.D,"any",null,0,-1,oz,!0,!0,!0,!1,!1,!0),ss(y(je(wt(e.b),2),38),e.wb.D,"anyAttribute",null,0,-1,oz,!1,!1,!0,!1,!1,!1),lc(e.bb,Mee,cqt,!1,!1,!0),ss(y(je(wt(e.bb),0),38),e.gb,"data",null,0,1,Mee,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.bb),1),38),e.gb,vPe,null,1,1,Mee,!1,!1,!0,!1,!0,!1),lc(e.fb,lz,uqt,!1,!1,!0),ss(y(je(wt(e.fb),0),38),n.gb,"rawValue",null,0,1,lz,!0,!0,!0,!1,!0,!0),ss(y(je(wt(e.fb),1),38),n.a,gM,null,0,1,lz,!0,!0,!0,!1,!0,!0),_a(y(je(wt(e.fb),2),19),e.wb.q,null,"instanceType",1,1,lz,!1,!1,!0,!1,!1,!1,!1),lc(e.qb,PWe,hqt,!1,!1,!0),ss(y(je(wt(e.qb),0),38),e.wb.D,VG,null,0,-1,null,!1,!1,!0,!1,!1,!1),_a(y(je(wt(e.qb),1),19),e.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.qb),2),19),e.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),ss(y(je(wt(e.qb),3),38),e.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),ss(y(je(wt(e.qb),4),38),e.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),_a(y(je(wt(e.qb),5),19),e.bb,null,Cqt,0,-2,null,!0,!0,!0,!0,!1,!1,!0),ss(y(je(wt(e.qb),6),38),e.gb,Ige,null,0,-2,null,!0,!0,!0,!1,!1,!0),ji(e.a,Fs,"AnySimpleType",!0),ji(e.c,Zt,"AnyURI",!0),ji(e.d,Ee(xh,1),"Base64Binary",!0),ji(e.e,ah,"Boolean",!0),ji(e.f,Ja,"BooleanObject",!0),ji(e.g,xh,"Byte",!0),ji(e.i,A6,"ByteObject",!0),ji(e.j,Zt,"Date",!0),ji(e.k,Zt,"DateTime",!0),ji(e.n,p0e,"Decimal",!0),ji(e.o,po,"Double",!0),ji(e.p,Ts,"DoubleObject",!0),ji(e.q,Zt,"Duration",!0),ji(e.s,zf,"ENTITIES",!0),ji(e.r,zf,"ENTITIESBase",!0),ji(e.t,Zt,OPe,!0),ji(e.u,d4,"Float",!0),ji(e.v,VR,"FloatObject",!0),ji(e.w,Zt,"GDay",!0),ji(e.B,Zt,"GMonth",!0),ji(e.A,Zt,"GMonthDay",!0),ji(e.C,Zt,"GYear",!0),ji(e.D,Zt,"GYearMonth",!0),ji(e.F,Ee(xh,1),"HexBinary",!0),ji(e.G,Zt,"ID",!0),ji(e.H,Zt,"IDREF",!0),ji(e.J,zf,"IDREFS",!0),ji(e.I,zf,"IDREFSBase",!0),ji(e.K,pi,"Int",!0),ji(e.M,sE,"Integer",!0),ji(e.L,Ls,"IntObject",!0),ji(e.P,Zt,"Language",!0),ji(e.Q,LT,"Long",!0),ji(e.R,fT,"LongObject",!0),ji(e.S,Zt,"Name",!0),ji(e.T,Zt,uQ,!0),ji(e.U,sE,"NegativeInteger",!0),ji(e.V,Zt,FPe,!0),ji(e.X,zf,"NMTOKENS",!0),ji(e.W,zf,"NMTOKENSBase",!0),ji(e.Y,sE,"NonNegativeInteger",!0),ji(e.Z,sE,"NonPositiveInteger",!0),ji(e.$,Zt,"NormalizedString",!0),ji(e._,Zt,"NOTATION",!0),ji(e.ab,Zt,"PositiveInteger",!0),ji(e.cb,Zt,"QName",!0),ji(e.db,FE,"Short",!0),ji(e.eb,dT,"ShortObject",!0),ji(e.gb,Zt,hMe,!0),ji(e.hb,Zt,"Time",!0),ji(e.ib,Zt,"Token",!0),ji(e.jb,FE,"UnsignedByte",!0),ji(e.kb,dT,"UnsignedByteObject",!0),ji(e.lb,LT,"UnsignedInt",!0),ji(e.mb,fT,"UnsignedIntObject",!0),ji(e.nb,sE,"UnsignedLong",!0),ji(e.ob,pi,"UnsignedShort",!0),ji(e.pb,Ls,"UnsignedShortObject",!0),i_e(e,kw),XEn(e))}i(YEn,"Nle");function aMe(e,n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr,wn,Jn,Ua,Ph,Ml,Yf,$E,bb,ng,iy,Ld,sA,HN,ay,Lg,vb,jw,zw,oA,Uw,Vw,sy,p4;if(u.Zg()||Kt(Xt(St(n,(Ri(),lee)))))return Ir(),Ir(),Go;if(Ht=(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i!=0,gr=kbn(n),yr=!gr.dc(),Ht||yr){if(p=y(St(n,r4),144),!p)throw xe(new _y("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(Uw=rAe(p,(eR(),Cee)),vOt(n),!Ht&&yr&&!Uw)return Ir(),Ir(),Go;if($e=new Pt,Qe(St(n,LE))===Qe((z1(),hb))&&(rAe(p,Tee)||rAe(p,xee))){if(Kt(Xt(St(n,wL))))throw xe(new _y("Topdown layout cannot be used together with hierarchy handling."));for($E=vGt(e,n),bb=new ya,Fo(bb,(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));bb.b!=0;)Ml=y(bb.b==0?null:(In(bb.b!=0),dd(bb,bb.a.a)),26),vOt(Ml),oA=Qe(St(Ml,LE))===Qe(RN),oA||gg(Ml,K6)&&!mRe(p,St(Ml,r4))?(fe=aMe(e,Ml,o,u),Is($e,fe),pa(Ml,LE,RN),PGt(Ml)):Fo(bb,(!Ml.a&&(Ml.a=new xt(Ti,Ml,10,11)),Ml.a))}else{if($E=(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i,Kt(Xt(St(n,wL)))){if(Vw=u.dh(1),Vw.Tg(iWt,1),St(n,Z6)==null)throw xe(new _y(n.k+" has not been assigned a top-down node type."));if(y(St(n,Z6),281)==(t6(),s4)||y(St(n,Z6),281)==vee)for(Me=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));Me.e!=Me.i.gc();)Ce=y(_n(Me),26),Ph=y(St(Ce,r4),144),iy=y(St(Ce,r1),104),(!Ce.a&&(Ce.a=new xt(Ti,Ce,10,11)),Ce.a).i>0&&qF(Ph.f),St(Ce,hee)!=null&&(!Ce.a&&(Ce.a=new xt(Ti,Ce,10,11)),!!Ce.a)&&(!Ce.a&&(Ce.a=new xt(Ti,Ce,10,11)),Ce.a).i>0?(k=y(St(Ce,hee),522),zw=k.Sg(Ce),kx(Ce,d.Math.max(Ce.g,zw.a+iy.b+iy.c),d.Math.max(Ce.f,zw.b+iy.d+iy.a))):(!Ce.a&&(Ce.a=new xt(Ti,Ce,10,11)),Ce.a).i!=0&&(zw=new Lt(He(Xe(St(Ce,n4))),He(Xe(St(Ce,n4)))/He(Xe(St(Ce,vL)))),kx(Ce,d.Math.max(Ce.g,zw.a+iy.b+iy.c),d.Math.max(Ce.f,zw.b+iy.d+iy.a)));if(ng=y(St(n,r1),104),ee=n.g-(ng.b+ng.c),z=n.f-(ng.d+ng.a),Vw.ah("Available Child Area: ("+ee+"|"+z+")"),pa(n,yL,ee/z),COt(n,p,u.dh($E)),y(St(n,Z6),281)==vee&&(gde(n),kx(n,ng.b+He(Xe(St(n,Z3)))+ng.c,ng.d+He(Xe(St(n,Q3)))+ng.a)),Vw.ah("Executed layout algorithm: "+di(St(n,K6))+" on node "+n.k),y(St(n,Z6),281)==s4){if(ee<0||z<0)throw xe(new _y("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+n.k));for(gg(n,Z3)||gg(n,Q3)||gde(n),ue=He(Xe(St(n,Z3))),ie=He(Xe(St(n,Q3))),Vw.ah("Desired Child Area: ("+ue+"|"+ie+")"),sA=ee/ue,HN=z/ie,Ld=d.Math.min(sA,d.Math.min(HN,He(Xe(St(n,Onr))))),pa(n,uee,Ld),Vw.ah(n.k+" -- Local Scale Factor (X|Y): ("+sA+"|"+HN+")"),Ve=y(St(n,Pj),22),g=0,w=0,Ld<sA&&(Ve.Gc((fw(),xN))?g=(ee/2-ue*Ld/2)/Ld:Ve.Gc(TN)&&(g=(ee-ue*Ld)/Ld)),Ld<HN&&(Ve.Gc((fw(),CN))?w=(z/2-ie*Ld/2)/Ld:Ve.Gc(kN)&&(w=(z-ie*Ld)/Ld)),sy=g+(ng.b/Ld-ng.b),p4=w+(ng.d/Ld-ng.d),Vw.ah("Shift: ("+sy+"|"+p4+")"),Yf=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));Yf.e!=Yf.i.gc();)Ml=y(_n(Yf),26),Xh(Ml,Ml.i+sy),Kh(Ml,Ml.j+p4);for(st=new Sn((!n.b&&(n.b=new xt(Cs,n,12,3)),n.b));st.e!=st.i.gc();){for(ht=y(_n(st),85),Lg=new Sn((!ht.a&&(ht.a=new xt(Ia,ht,6,6)),ht.a));Lg.e!=Lg.i.gc();)for(ay=y(_n(Lg),170),CF(ay,ay.j+sy,ay.k+p4),kF(ay,ay.b+sy,ay.c+p4),D=new Sn((!ay.a&&(ay.a=new Es(qf,ay,5)),ay.a));D.e!=D.i.gc();)A=y(_n(D),372),Dle(A,A.a+sy,A.b+p4);for(Ua=new Sn((!ht.n&&(ht.n=new xt(nc,ht,1,7)),ht.n));Ua.e!=Ua.i.gc();)Jn=y(_n(Ua),157),ld(Jn,Jn.i+sy,Jn.j+p4);for(wn=y(St(ht,_E),79),Mr=ei(wn,0);Mr.b!=Mr.d.c;)Pr=y(Qn(Mr),8),Pr.a+=sy,Pr.b+=p4;pa(ht,_E,wn)}}Vw.Ug()}for(F=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));F.e!=F.i.gc();)M=y(_n(F),26),fe=aMe(e,M,o,u),Is($e,fe),PGt(M)}if(u.Zg())return Ir(),Ir(),Go;for(jw=new ye($e);jw.a<jw.c.c.length;)vb=y(de(jw),85),pa(vb,lee,(qr(),!0));return Kt(Xt(St(n,wL)))||COt(n,p,u.dh($E)),MTn($e),yr&&Uw?gr:(Ir(),Ir(),Go)}else return Ir(),Ir(),Go}i(aMe,"Abd");function XC(e,n){var o,u;return BE||(BE=new jn,AL=new jn,u=(Xi(),Xi(),++Za,new If(4)),P$(u,`
|
|
\r\r `),Al(BE,Jge,u),Al(AL,Jge,m3(u)),u=(++Za,new If(4)),P$(u,Sqt),Al(BE,CM,u),Al(AL,CM,m3(u)),u=(++Za,new If(4)),P$(u,Sqt),Al(BE,CM,u),Al(AL,CM,m3(u)),u=(++Za,new If(4)),P$(u,Aqt),b3(u,y(Jc(BE,CM),121)),Al(BE,Kge,u),Al(AL,Kge,m3(u)),u=(++Za,new If(4)),P$(u,"-.0:AZ__az\xB7\xB7\xC0\xD6\xD8\xF6\xF8\u0131\u0134\u013E\u0141\u0148\u014A\u017E\u0180\u01C3\u01CD\u01F0\u01F4\u01F5\u01FA\u0217\u0250\u02A8\u02BB\u02C1\u02D0\u02D1\u0300\u0345\u0360\u0361\u0386\u038A\u038C\u038C\u038E\u03A1\u03A3\u03CE\u03D0\u03D6\u03DA\u03DA\u03DC\u03DC\u03DE\u03DE\u03E0\u03E0\u03E2\u03F3\u0401\u040C\u040E\u044F\u0451\u045C\u045E\u0481\u0483\u0486\u0490\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0\u04EB\u04EE\u04F5\u04F8\u04F9\u0531\u0556\u0559\u0559\u0561\u0586\u0591\u05A1\u05A3\u05B9\u05BB\u05BD\u05BF\u05BF\u05C1\u05C2\u05C4\u05C4\u05D0\u05EA\u05F0\u05F2\u0621\u063A\u0640\u0652\u0660\u0669\u0670\u06B7\u06BA\u06BE\u06C0\u06CE\u06D0\u06D3\u06D5\u06E8\u06EA\u06ED\u06F0\u06F9\u0901\u0903\u0905\u0939\u093C\u094D\u0951\u0954\u0958\u0963\u0966\u096F\u0981\u0983\u0985\u098C\u098F\u0990\u0993\u09A8\u09AA\u09B0\u09B2\u09B2\u09B6\u09B9\u09BC\u09BC\u09BE\u09C4\u09C7\u09C8\u09CB\u09CD\u09D7\u09D7\u09DC\u09DD\u09DF\u09E3\u09E6\u09F1\u0A02\u0A02\u0A05\u0A0A\u0A0F\u0A10\u0A13\u0A28\u0A2A\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3C\u0A3E\u0A42\u0A47\u0A48\u0A4B\u0A4D\u0A59\u0A5C\u0A5E\u0A5E\u0A66\u0A74\u0A81\u0A83\u0A85\u0A8B\u0A8D\u0A8D\u0A8F\u0A91\u0A93\u0AA8\u0AAA\u0AB0\u0AB2\u0AB3\u0AB5\u0AB9\u0ABC\u0AC5\u0AC7\u0AC9\u0ACB\u0ACD\u0AE0\u0AE0\u0AE6\u0AEF\u0B01\u0B03\u0B05\u0B0C\u0B0F\u0B10\u0B13\u0B28\u0B2A\u0B30\u0B32\u0B33\u0B36\u0B39\u0B3C\u0B43\u0B47\u0B48\u0B4B\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F\u0B61\u0B66\u0B6F\u0B82\u0B83\u0B85\u0B8A\u0B8E\u0B90\u0B92\u0B95\u0B99\u0B9A\u0B9C\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8\u0BAA\u0BAE\u0BB5\u0BB7\u0BB9\u0BBE\u0BC2\u0BC6\u0BC8\u0BCA\u0BCD\u0BD7\u0BD7\u0BE7\u0BEF\u0C01\u0C03\u0C05\u0C0C\u0C0E\u0C10\u0C12\u0C28\u0C2A\u0C33\u0C35\u0C39\u0C3E\u0C44\u0C46\u0C48\u0C4A\u0C4D\u0C55\u0C56\u0C60\u0C61\u0C66\u0C6F\u0C82\u0C83\u0C85\u0C8C\u0C8E\u0C90\u0C92\u0CA8\u0CAA\u0CB3\u0CB5\u0CB9\u0CBE\u0CC4\u0CC6\u0CC8\u0CCA\u0CCD\u0CD5\u0CD6\u0CDE\u0CDE\u0CE0\u0CE1\u0CE6\u0CEF\u0D02\u0D03\u0D05\u0D0C\u0D0E\u0D10\u0D12\u0D28\u0D2A\u0D39\u0D3E\u0D43\u0D46\u0D48\u0D4A\u0D4D\u0D57\u0D57\u0D60\u0D61\u0D66\u0D6F\u0E01\u0E2E\u0E30\u0E3A\u0E40\u0E4E\u0E50\u0E59\u0E81\u0E82\u0E84\u0E84\u0E87\u0E88\u0E8A\u0E8A\u0E8D\u0E8D\u0E94\u0E97\u0E99\u0E9F\u0EA1\u0EA3\u0EA5\u0EA5\u0EA7\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB9\u0EBB\u0EBD\u0EC0\u0EC4\u0EC6\u0EC6\u0EC8\u0ECD\u0ED0\u0ED9\u0F18\u0F19\u0F20\u0F29\u0F35\u0F35\u0F37\u0F37\u0F39\u0F39\u0F3E\u0F47\u0F49\u0F69\u0F71\u0F84\u0F86\u0F8B\u0F90\u0F95\u0F97\u0F97\u0F99\u0FAD\u0FB1\u0FB7\u0FB9\u0FB9\u10A0\u10C5\u10D0\u10F6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110B\u110C\u110E\u1112\u113C\u113C\u113E\u113E\u1140\u1140\u114C\u114C\u114E\u114E\u1150\u1150\u1154\u1155\u1159\u1159\u115F\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116D\u116E\u1172\u1173\u1175\u1175\u119E\u119E\u11A8\u11A8\u11AB\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BA\u11BC\u11C2\u11EB\u11EB\u11F0\u11F0\u11F9\u11F9\u1E00\u1E9B\u1EA0\u1EF9\u1F00\u1F15\u1F18\u1F1D\u1F20\u1F45\u1F48\u1F4D\u1F50\u1F57\u1F59\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F7D\u1F80\u1FB4\u1FB6\u1FBC\u1FBE\u1FBE\u1FC2\u1FC4\u1FC6\u1FCC\u1FD0\u1FD3\u1FD6\u1FDB\u1FE0\u1FEC\u1FF2\u1FF4\u1FF6\u1FFC\u20D0\u20DC\u20E1\u20E1\u2126\u2126\u212A\u212B\u212E\u212E\u2180\u2182\u3005\u3005\u3007\u3007\u3021\u302F\u3031\u3035\u3041\u3094\u3099\u309A\u309D\u309E\u30A1\u30FA\u30FC\u30FE\u3105\u312C\u4E00\u9FA5\uAC00\uD7A3"),Al(BE,Qge,u),Al(AL,Qge,m3(u)),u=(++Za,new If(4)),P$(u,Aqt),tu(u,95,95),tu(u,58,58),Al(BE,Zge,u),Al(AL,Zge,m3(u))),o=y(Jc(n?BE:AL,e),137),o}i(XC,"Wpe");function Kzt(e){Sk(e,new Xx(c6e(XH(Ck(xk(kk(Tk(new yx,Wr),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new umt),Wr),ka((eR(),Xye),Se(Ee(See,1),At,244,0,[Cee,Eee,kee,Yye,Tee,xee]))))),_t(e,Wr,LNe,Vt(Jme)),_t(e,Wr,_Ne,Vt(jGe)),_t(e,Wr,DNe,Vt(bj)),_t(e,Wr,INe,Vt(Xp)),_t(e,Wr,ape,Vt(xE)),_t(e,Wr,Xpe,Vt(Iw)),_t(e,Wr,MNe,Vt(q3)),_t(e,Wr,NNe,Vt(cL)),_t(e,Wr,ONe,Vt(uL)),_t(e,Wr,PNe,Vt(Qme)),_t(e,Wr,k3,Vt(Mw)),_t(e,Wr,BNe,Vt(Zme)),_t(e,Wr,FNe,Vt(QM)),_t(e,Wr,$Ne,Vt(SZ)),_t(e,Wr,oNe,Vt(yj)),_t(e,Wr,cNe,Vt(H3)),_t(e,Wr,lNe,Vt(Fv)),_t(e,Wr,uNe,Vt(Y3)),_t(e,Wr,RG,Et(0)),_t(e,Wr,hNe,Vt(lL)),_t(e,Wr,fNe,Vt(GGe)),_t(e,Wr,dNe,Vt(W6)),_t(e,Wr,Y1,Vt(KGe)),_t(e,Wr,SJ,Vt(UGe)),_t(e,Wr,AJ,Vt(VGe)),_t(e,Wr,oM,Vt(t1e)),_t(e,Wr,Dpe,Vt(WGe)),_t(e,Wr,Ipe,Vt(HGe)),_t(e,Wr,RJ,Vt(AZ)),_t(e,Wr,LJ,Vt(r1e)),_t(e,Wr,_J,Vt(YGe)),_t(e,Wr,DJ,Vt(qGe)),_t(e,Wr,Mpe,Vt(XGe)),_t(e,Wr,Npe,Vt(LGe)),_t(e,Wr,Ope,Vt(Hme)),_t(e,Wr,Ppe,Vt(xZ)),_t(e,Wr,Bpe,Vt(qme)),_t(e,Wr,Cpe,Vt(_w)),_t(e,Wr,Epe,Vt(aL)),_t(e,Wr,Spe,Vt(Xme)),_t(e,Wr,kJ,Vt(Vme)),_t(e,Wr,CJ,Vt(bGe)),_t(e,Wr,LG,Vt(IZt)),_t(e,Wr,_G,Vt(MZt)),_t(e,Wr,DG,Vt(DZt)),_t(e,Wr,IG,Vt(_Zt)),_t(e,Wr,aT,zGe),_t(e,Wr,C3,OGe),_t(e,Wr,FG,gGe),_t(e,Wr,GNe,0),_t(e,Wr,pJ,Et(1)),_t(e,Wr,TR,xR),_t(e,Wr,jNe,Vt(Dw)),_t(e,Wr,spe,Vt(Qa)),_t(e,Wr,zNe,Vt(oL)),_t(e,Wr,$G,Vt(wZt)),_t(e,Wr,UNe,Vt(lm)),_t(e,Wr,MJ,Vt(G3)),_t(e,Wr,eM,(qr(),!0)),_t(e,Wr,VNe,Vt(j3)),_t(e,Wr,WNe,Vt(Lw)),_t(e,Wr,QC,Vt(Bv)),_t(e,Wr,k6,Vt(EZ)),_t(e,Wr,kR,Vt(Kme)),_t(e,Wr,Kpe,pGe),_t(e,Wr,CR,Vt(xT)),_t(e,Wr,HNe,Vt(kZ)),_t(e,Wr,ER,Vt(V3)),_t(e,Wr,qNe,Vt(SZt)),_t(e,Wr,YNe,Vt(FGe)),_t(e,Wr,XNe,BGe),_t(e,Wr,KNe,Vt(kZt)),_t(e,Wr,JNe,Vt(CZt)),_t(e,Wr,QNe,Vt(EZt)),_t(e,Wr,ZNe,Vt(TZt)),_t(e,Wr,YMe,Vt(e1e)),_t(e,Wr,PG,Vt(wZ)),_t(e,Wr,gpe,Vt(mj)),_t(e,Wr,qMe,Vt(ZM)),_t(e,Wr,KMe,Vt(tc)),_t(e,Wr,OG,Vt(V6)),_t(e,Wr,sM,Vt(XM)),_t(e,Wr,ZMe,Vt(iL)),_t(e,Wr,iNe,Vt(hGe)),_t(e,Wr,wpe,Vt(jme)),_t(e,Wr,xJ,Vt(gj)),_t(e,Wr,vpe,Vt(zme)),_t(e,Wr,UMe,Vt(_Ge)),_t(e,Wr,VMe,Vt(DGe)),_t(e,Wr,wJ,Vt(CGe)),_t(e,Wr,E3,Vt(CZ)),_t(e,Wr,Tpe,Vt(Yme)),_t(e,Wr,zMe,Vt(Wme)),_t(e,Wr,kpe,Vt(MGe)),_t(e,Wr,aNe,Vt(yGe)),_t(e,Wr,sNe,Vt(Ume)),_t(e,Wr,NJ,Vt(Gme)),_t(e,Wr,xpe,Vt(IGe)),_t(e,Wr,pNe,Vt(pZ)),_t(e,Wr,gNe,Vt(oGe)),_t(e,Wr,Rpe,Vt(dZ)),_t(e,Wr,EJ,Vt(xGe)),_t(e,Wr,Lpe,Vt(wGe)),_t(e,Wr,_pe,Vt(TGe)),_t(e,Wr,C6,Vt(sL)),_t(e,Wr,eOe,Vt(Dl)),_t(e,Wr,tOe,Vt(ab)),_t(e,Wr,rOe,Vt(cm)),_t(e,Wr,gJ,Vt(wE)),_t(e,Wr,bpe,Vt(fGe)),_t(e,Wr,nOe,Vt(sb)),_t(e,Wr,iOe,Vt(WM)),_t(e,Wr,aOe,Vt(vZ)),_t(e,Wr,sOe,Vt(TT)),_t(e,Wr,Jpe,Vt(PGe)),_t(e,Wr,Qpe,Vt(z3)),_t(e,Wr,dpe,Vt(SGe)),_t(e,Wr,ppe,Vt(AGe)),_t(e,Wr,OJ,Vt(W3)),_t(e,Wr,WMe,Vt(Pme)),_t(e,Wr,mpe,Vt(RGe)),_t(e,Wr,mNe,Vt(bZ)),_t(e,Wr,yNe,Vt(yZ)),_t(e,Wr,oOe,Vt(TZ)),_t(e,Wr,ype,Vt(EGe)),_t(e,Wr,TJ,Vt(JM)),_t(e,Wr,lOe,Vt(vj)),_t(e,Wr,jMe,Vt(dGe)),_t(e,Wr,HMe,Vt($Ge)),_t(e,Wr,Ape,Vt(mGe)),_t(e,Wr,eNe,Vt(yZt)),_t(e,Wr,tNe,Vt(bZt)),_t(e,Wr,JMe,Vt(xZt)),_t(e,Wr,rNe,Vt(vZt)),_t(e,Wr,PJ,Vt(kGe)),_t(e,Wr,QMe,Vt(KM)),_t(e,Wr,nNe,Vt(mZ)),_t(e,Wr,IJ,Vt(t1)),_t(e,Wr,vNe,Vt(Fme)),_t(e,Wr,$pe,Vt(pj)),_t(e,Wr,Gpe,Vt(Bme)),_t(e,Wr,BG,Vt(gZ)),_t(e,Wr,Fpe,Vt(HM)),_t(e,Wr,bNe,Vt($me)),_t(e,Wr,jpe,Vt($3)),_t(e,Wr,zpe,Vt(YM)),_t(e,Wr,Upe,Vt(mZt)),_t(e,Wr,wNe,Vt(U6)),_t(e,Wr,xNe,Vt(qM)),_t(e,Wr,TNe,Vt(uGe)),_t(e,Wr,Vpe,Vt(lGe)),_t(e,Wr,Wpe,Vt(cGe)),_t(e,Wr,XMe,Vt(vGe))}i(Kzt,"oyc");function XEn(e){ni(e.a,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"anySimpleType"])),ni(e.b,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"anyType",Zd,VG])),ni(y(je(wt(e.b),0),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,Wge,Vi,":mixed"])),ni(y(je(wt(e.b),1),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,Wge,MPe,qge,Vi,":1",fqt,"lax"])),ni(y(je(wt(e.b),2),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,lqt,MPe,qge,Vi,":2",fqt,"lax"])),ni(e.c,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"anyURI",tp,Tg])),ni(e.d,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"base64Binary",tp,Tg])),ni(e.e,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,g6,tp,Tg])),ni(e.f,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"boolean:Object",Oo,g6])),ni(e.g,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,yM])),ni(e.i,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"byte:Object",Oo,yM])),ni(e.j,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"date",tp,Tg])),ni(e.k,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"dateTime",tp,Tg])),ni(e.n,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"decimal",tp,Tg])),ni(e.o,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,bM,tp,Tg])),ni(e.p,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"double:Object",Oo,bM])),ni(e.q,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"duration",tp,Tg])),ni(e.s,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"ENTITIES",Oo,dqt,NPe,"1"])),ni(e.r,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,dqt,Hge,OPe])),ni(e.t,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,OPe,Oo,uQ])),ni(e.u,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,vM,tp,Tg])),ni(e.v,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"float:Object",Oo,vM])),ni(e.w,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"gDay",tp,Tg])),ni(e.B,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"gMonth",tp,Tg])),ni(e.A,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"gMonthDay",tp,Tg])),ni(e.C,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"gYear",tp,Tg])),ni(e.D,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"gYearMonth",tp,Tg])),ni(e.F,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"hexBinary",tp,Tg])),ni(e.G,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"ID",Oo,uQ])),ni(e.H,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"IDREF",Oo,uQ])),ni(e.J,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"IDREFS",Oo,pqt,NPe,"1"])),ni(e.I,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,pqt,Hge,"IDREF"])),ni(e.K,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,wM])),ni(e.M,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,PPe])),ni(e.L,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"int:Object",Oo,wM])),ni(e.P,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"language",Oo,Yge,Xge,gqt])),ni(e.Q,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,xM])),ni(e.R,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"long:Object",Oo,xM])),ni(e.S,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"Name",Oo,Yge,Xge,BPe])),ni(e.T,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,uQ,Oo,"Name",Xge,mqt])),ni(e.U,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"negativeInteger",Oo,yqt,XG,"-1"])),ni(e.V,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,FPe,Oo,Yge,Xge,"\\c+"])),ni(e.X,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"NMTOKENS",Oo,bqt,NPe,"1"])),ni(e.W,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,bqt,Hge,FPe])),ni(e.Y,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,$Pe,Oo,PPe,KG,"0"])),ni(e.Z,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,yqt,Oo,PPe,XG,"0"])),ni(e.$,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,vqt,Oo,bde,tp,"replace"])),ni(e._,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"NOTATION",tp,Tg])),ni(e.ab,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"positiveInteger",Oo,$Pe,KG,"1"])),ni(e.bb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"processingInstruction_._type",Zd,"empty"])),ni(y(je(wt(e.bb),0),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,sQ,Vi,"data"])),ni(y(je(wt(e.bb),1),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,sQ,Vi,vPe])),ni(e.cb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"QName",tp,Tg])),ni(e.db,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,TM])),ni(e.eb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"short:Object",Oo,TM])),ni(e.fb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"simpleAnyType",Zd,WG])),ni(y(je(wt(e.fb),0),38),Si,Se(Ee(Zt,1),Dt,2,6,[Vi,":3",Zd,WG])),ni(y(je(wt(e.fb),1),38),Si,Se(Ee(Zt,1),Dt,2,6,[Vi,":4",Zd,WG])),ni(y(je(wt(e.fb),2),19),Si,Se(Ee(Zt,1),Dt,2,6,[Vi,":5",Zd,WG])),ni(e.gb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,bde,tp,"preserve"])),ni(e.hb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"time",tp,Tg])),ni(e.ib,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,Yge,Oo,vqt,tp,Tg])),ni(e.jb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,wqt,XG,"255",KG,"0"])),ni(e.kb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"unsignedByte:Object",Oo,wqt])),ni(e.lb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,xqt,XG,"4294967295",KG,"0"])),ni(e.mb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"unsignedInt:Object",Oo,xqt])),ni(e.nb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"unsignedLong",Oo,$Pe,XG,Tqt,KG,"0"])),ni(e.ob,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,kqt,XG,"65535",KG,"0"])),ni(e.pb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"unsignedShort:Object",Oo,kqt])),ni(e.qb,Si,Se(Ee(Zt,1),Dt,2,6,[Vi,"",Zd,VG])),ni(y(je(wt(e.qb),0),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,Wge,Vi,":mixed"])),ni(y(je(wt(e.qb),1),19),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,sQ,Vi,"xmlns:prefix"])),ni(y(je(wt(e.qb),2),19),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,sQ,Vi,"xsi:schemaLocation"])),ni(y(je(wt(e.qb),3),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,oQ,Vi,"cDATA",lQ,HG])),ni(y(je(wt(e.qb),4),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,oQ,Vi,"comment",lQ,HG])),ni(y(je(wt(e.qb),5),19),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,oQ,Vi,Cqt,lQ,HG])),ni(y(je(wt(e.qb),6),38),Si,Se(Ee(Zt,1),Dt,2,6,[Zd,oQ,Vi,Ige,lQ,HG]))}i(XEn,"Lle");function ki(e){return Cr("_UI_EMFDiagnostic_marker",e)?"EMF Problem":Cr("_UI_CircularContainment_diagnostic",e)?"An object may not circularly contain itself":Cr(sHt,e)?"Wrong character.":Cr(oHt,e)?"Invalid reference number.":Cr(JJ,e)?"A character is required after \\.":Cr($ge,e)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":Cr(lHt,e)?"'(?<' or '(?<!' is expected.":Cr(cHt,e)?"A comment is not terminated.":Cr(Tw,e)?"')' is expected.":Cr(wPe,e)?"Unexpected end of the pattern in a modifier group.":Cr(uHt,e)?"':' is expected.":Cr(hHt,e)?"Unexpected end of the pattern in a conditional group.":Cr(fHt,e)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":Cr(dHt,e)?"There are more than three choices in a conditional group.":Cr(pHt,e)?"A character in U+0040-U+005f must follow \\c.":Cr(gHt,e)?"A '{' is required before a character category.":Cr(mHt,e)?"A property name is not closed by '}'.":Cr(xPe,e)?"Unexpected meta character.":Cr(Gge,e)?"Unknown property.":Cr(TPe,e)?"A POSIX character class must be closed by ':]'.":Cr(QJ,e)?"Unexpected end of the pattern in a character class.":Cr(yHt,e)?"Unknown name for a POSIX character class.":Cr("parser.cc.4",e)?"'-' is invalid here.":Cr(bHt,e)?"']' is expected.":Cr(kPe,e)?"'[' is invalid in a character class. Write '\\['.":Cr(CPe,e)?"']' is invalid in a character class. Write '\\]'.":Cr(jge,e)?"'-' is an invalid character range. Write '\\-'.":Cr(vHt,e)?"'[' is expected.":Cr(wHt,e)?"')' or '-[' or '+[' or '&[' is expected.":Cr(xHt,e)?"The range end code point is less than the start code point.":Cr(rb,e)?"Invalid Unicode hex notation.":Cr(THt,e)?"Overflow in a hex notation.":Cr(kHt,e)?"'\\x{' must be closed by '}'.":Cr(CHt,e)?"Invalid Unicode code point.":Cr(EHt,e)?"An anchor must not be here.":Cr(Td,e)?"This expression is not supported in the current option setting.":Cr(SHt,e)?"Invalid quantifier. A digit is expected.":Cr(AHt,e)?"Invalid quantifier. Invalid quantity or a '}' is missing.":Cr(RHt,e)?"Invalid quantifier. A digit or '}' is expected.":Cr(LHt,e)?"Invalid quantifier. A min quantity must be <= a max quantity.":Cr(EPe,e)?"Invalid quantifier. A quantity value overflow.":Cr("_UI_PackageRegistry_extensionpoint",e)?"Ecore Package Registry for Generated Packages":Cr("_UI_DynamicPackageRegistry_extensionpoint",e)?"Ecore Package Registry for Dynamic Packages":Cr("_UI_FactoryRegistry_extensionpoint",e)?"Ecore Factory Override Registry":Cr("_UI_URIExtensionParserRegistry_extensionpoint",e)?"URI Extension Parser Registry":Cr("_UI_URIProtocolParserRegistry_extensionpoint",e)?"URI Protocol Parser Registry":Cr("_UI_URIContentParserRegistry_extensionpoint",e)?"URI Content Parser Registry":Cr("_UI_ContentHandlerRegistry_extensionpoint",e)?"Content Handler Registry":Cr("_UI_URIMappingRegistry_extensionpoint",e)?"URI Converter Mapping Registry":Cr("_UI_PackageRegistryImplementation_extensionpoint",e)?"Ecore Package Registry Implementation":Cr("_UI_ValidationDelegateRegistry_extensionpoint",e)?"Validation Delegate Registry":Cr("_UI_SettingDelegateRegistry_extensionpoint",e)?"Feature Setting Delegate Factory Registry":Cr("_UI_InvocationDelegateRegistry_extensionpoint",e)?"Operation Invocation Delegate Factory Registry":Cr("_UI_EClassInterfaceNotAbstract_diagnostic",e)?"A class that is an interface must also be abstract":Cr("_UI_EClassNoCircularSuperTypes_diagnostic",e)?"A class may not be a super type of itself":Cr("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",e)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":Cr("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",e)?"The opposite of the opposite may not be a reference different from this one":Cr("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",e)?"The opposite must be a feature of the reference's type":Cr("_UI_EReferenceTransientOppositeNotTransient_diagnostic",e)?"The opposite of a transient reference must be transient if it is proxy resolving":Cr("_UI_EReferenceOppositeBothContainment_diagnostic",e)?"The opposite of a containment reference must not be a containment reference":Cr("_UI_EReferenceConsistentUnique_diagnostic",e)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":Cr("_UI_ETypedElementNoType_diagnostic",e)?"The typed element must have a type":Cr("_UI_EAttributeNoDataType_diagnostic",e)?"The generic attribute type must not refer to a class":Cr("_UI_EReferenceNoClass_diagnostic",e)?"The generic reference type must not refer to a data type":Cr("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",e)?"A generic type can't refer to both a type parameter and a classifier":Cr("_UI_EGenericTypeNoClass_diagnostic",e)?"A generic super type must refer to a class":Cr("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",e)?"A generic type in this context must refer to a classifier or a type parameter":Cr("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",e)?"A generic type may have bounds only when used as a type argument":Cr("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",e)?"A generic type must not have both a lower and an upper bound":Cr("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",e)?"A generic type with bounds must not also refer to a type parameter or classifier":Cr("_UI_EGenericTypeNoArguments_diagnostic",e)?"A generic type may have arguments only if it refers to a classifier":Cr("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",e)?"A generic type may only refer to a type parameter that is in scope":e}i(ki,"iHd");function KEn(e){var n,o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue;e.r||(e.r=!0,wu(e,"graph"),MX(e,"graph"),NX(e,BR),C$(e.o,"T"),Zn(Ol(e.a),e.p),Zn(Ol(e.f),e.a),Zn(Ol(e.n),e.f),Zn(Ol(e.g),e.n),Zn(Ol(e.c),e.n),Zn(Ol(e.i),e.c),Zn(Ol(e.j),e.c),Zn(Ol(e.d),e.f),Zn(Ol(e.e),e.a),lc(e.p,fSn,HUt,!0,!0,!1),ie=NC(e.p,e.p,"setProperty"),ue=dMt(ie),D=I1(e.o),M=(o=(u=new vx,u),o),Zn((!D.d&&(D.d=new Es(dl,D,1)),D.d),M),F=Gce(ue),_De(M,F),xK(ie,D,fPe),D=Gce(ue),xK(ie,D,gM),ie=NC(e.p,null,"getProperty"),ue=dMt(ie),D=I1(e.o),M=Gce(ue),Zn((!D.d&&(D.d=new Es(dl,D,1)),D.d),M),xK(ie,D,fPe),D=Gce(ue),ee=t0(ie,D,null),ee&&ee.mj(),ie=NC(e.p,e.wb.e,"hasProperty"),D=I1(e.o),M=(p=(g=new vx,g),p),Zn((!D.d&&(D.d=new Es(dl,D,1)),D.d),M),xK(ie,D,fPe),ie=NC(e.p,e.p,"copyProperties"),_l(ie,e.p,Rge),ie=NC(e.p,null,"getAllProperties"),D=I1(e.wb.P),M=I1(e.o),Zn((!D.d&&(D.d=new Es(dl,D,1)),D.d),M),F=(w=(k=new vx,k),w),Zn((!M.d&&(M.d=new Es(dl,M,1)),M.d),F),M=I1(e.wb.M),Zn((!D.d&&(D.d=new Es(dl,D,1)),D.d),M),z=t0(ie,D,null),z&&z.mj(),lc(e.a,SL,OWt,!0,!1,!0),_a(y(je(wt(e.a),0),19),e.k,null,qWt,0,-1,SL,!1,!1,!0,!0,!1,!1,!1),lc(e.f,ez,BWt,!0,!1,!0),_a(y(je(wt(e.f),0),19),e.g,y(je(wt(e.g),0),19),"labels",0,-1,ez,!1,!1,!0,!0,!1,!1,!1),ss(y(je(wt(e.f),1),38),e.wb._,YWt,null,0,1,ez,!1,!1,!0,!1,!0,!1),lc(e.n,tz,"ElkShape",!0,!1,!0),ss(y(je(wt(e.n),0),38),e.wb.t,Lge,mR,1,1,tz,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.n),1),38),e.wb.t,_ge,mR,1,1,tz,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.n),2),38),e.wb.t,"x",mR,1,1,tz,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.n),3),38),e.wb.t,"y",mR,1,1,tz,!1,!1,!0,!1,!0,!1),ie=NC(e.n,null,"setDimensions"),_l(ie,e.wb.t,_ge),_l(ie,e.wb.t,Lge),ie=NC(e.n,null,"setLocation"),_l(ie,e.wb.t,"x"),_l(ie,e.wb.t,"y"),lc(e.g,nc,cPe,!1,!1,!0),_a(y(je(wt(e.g),0),19),e.f,y(je(wt(e.f),0),19),Dge,0,1,nc,!1,!1,!0,!1,!1,!1,!1),ss(y(je(wt(e.g),1),38),e.wb._,Ige,"",0,1,nc,!1,!1,!0,!1,!0,!1),lc(e.c,Hn,FWt,!0,!1,!0),_a(y(je(wt(e.c),0),19),e.d,y(je(wt(e.d),1),19),"outgoingEdges",0,-1,Hn,!1,!1,!0,!1,!0,!1,!1),_a(y(je(wt(e.c),1),19),e.d,y(je(wt(e.d),2),19),"incomingEdges",0,-1,Hn,!1,!1,!0,!1,!0,!1,!1),lc(e.i,Ti,uPe,!1,!1,!0),_a(y(je(wt(e.i),0),19),e.j,y(je(wt(e.j),0),19),"ports",0,-1,Ti,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.i),1),19),e.i,y(je(wt(e.i),2),19),Mge,0,-1,Ti,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.i),2),19),e.i,y(je(wt(e.i),1),19),Dge,0,1,Ti,!1,!1,!0,!1,!1,!1,!1),_a(y(je(wt(e.i),3),19),e.d,y(je(wt(e.d),0),19),"containedEdges",0,-1,Ti,!1,!1,!0,!0,!1,!1,!1),ss(y(je(wt(e.i),4),38),e.wb.e,XWt,null,0,1,Ti,!0,!0,!1,!1,!0,!0),lc(e.j,rf,hPe,!1,!1,!0),_a(y(je(wt(e.j),0),19),e.i,y(je(wt(e.i),0),19),Dge,0,1,rf,!1,!1,!0,!1,!1,!1,!1),lc(e.d,Cs,lPe,!1,!1,!0),_a(y(je(wt(e.d),0),19),e.i,y(je(wt(e.i),3),19),"containingNode",0,1,Cs,!1,!1,!0,!1,!1,!1,!1),_a(y(je(wt(e.d),1),19),e.c,y(je(wt(e.c),0),19),dPe,0,-1,Cs,!1,!1,!0,!1,!0,!1,!1),_a(y(je(wt(e.d),2),19),e.c,y(je(wt(e.c),1),19),Nge,0,-1,Cs,!1,!1,!0,!1,!0,!1,!1),_a(y(je(wt(e.d),3),19),e.e,y(je(wt(e.e),5),19),Oge,0,-1,Cs,!1,!1,!0,!0,!1,!1,!1),ss(y(je(wt(e.d),4),38),e.wb.e,"hyperedge",null,0,1,Cs,!0,!0,!1,!1,!0,!0),ss(y(je(wt(e.d),5),38),e.wb.e,XWt,null,0,1,Cs,!0,!0,!1,!1,!0,!0),ss(y(je(wt(e.d),6),38),e.wb.e,"selfloop",null,0,1,Cs,!0,!0,!1,!1,!0,!0),ss(y(je(wt(e.d),7),38),e.wb.e,"connected",null,0,1,Cs,!0,!0,!1,!1,!0,!0),lc(e.b,qf,PWt,!1,!1,!0),ss(y(je(wt(e.b),0),38),e.wb.t,"x",mR,1,1,qf,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.b),1),38),e.wb.t,"y",mR,1,1,qf,!1,!1,!0,!1,!0,!1),ie=NC(e.b,null,"set"),_l(ie,e.wb.t,"x"),_l(ie,e.wb.t,"y"),lc(e.e,Ia,$Wt,!1,!1,!0),ss(y(je(wt(e.e),0),38),e.wb.t,"startX",null,0,1,Ia,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.e),1),38),e.wb.t,"startY",null,0,1,Ia,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.e),2),38),e.wb.t,"endX",null,0,1,Ia,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.e),3),38),e.wb.t,"endY",null,0,1,Ia,!1,!1,!0,!1,!0,!1),_a(y(je(wt(e.e),4),19),e.b,null,qJ,0,-1,Ia,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.e),5),19),e.d,y(je(wt(e.d),3),19),Dge,0,1,Ia,!1,!1,!0,!1,!1,!1,!1),_a(y(je(wt(e.e),6),19),e.c,null,pPe,0,1,Ia,!1,!1,!0,!1,!0,!1,!1),_a(y(je(wt(e.e),7),19),e.c,null,gPe,0,1,Ia,!1,!1,!0,!1,!0,!1,!1),_a(y(je(wt(e.e),8),19),e.e,y(je(wt(e.e),9),19),mPe,0,-1,Ia,!1,!1,!0,!1,!0,!1,!1),_a(y(je(wt(e.e),9),19),e.e,y(je(wt(e.e),8),19),yPe,0,-1,Ia,!1,!1,!0,!1,!0,!1,!1),ss(y(je(wt(e.e),10),38),e.wb._,YWt,null,0,1,Ia,!1,!1,!0,!1,!0,!1),ie=NC(e.e,null,"setStartLocation"),_l(ie,e.wb.t,"x"),_l(ie,e.wb.t,"y"),ie=NC(e.e,null,"setEndLocation"),_l(ie,e.wb.t,"x"),_l(ie,e.wb.t,"y"),lc(e.k,Cw,"ElkPropertyToValueMapEntry",!1,!1,!1),D=I1(e.o),M=(A=(n=new vx,n),A),Zn((!D.d&&(D.d=new Es(dl,D,1)),D.d),M),GFt(y(je(wt(e.k),0),38),D,"key",Cw,!1,!1,!0,!1),ss(y(je(wt(e.k),1),38),e.s,gM,null,0,1,Cw,!1,!1,!0,!1,!0,!1),ji(e.o,wye,"IProperty",!0),ji(e.s,Fs,"PropertyValue",!0),i_e(e,BR))}i(KEn,"uzd");function Jzt(){Jzt=U,_e=tt(xh,nE,30,Jo,15,1),_e[9]=35,_e[10]=19,_e[13]=19,_e[32]=51,_e[33]=49,_e[34]=33,Ke(_e,35,38,49),_e[38]=1,Ke(_e,39,45,49),Ke(_e,45,47,-71),_e[47]=49,Ke(_e,48,58,-71),_e[58]=61,_e[59]=49,_e[60]=1,_e[61]=49,_e[62]=33,Ke(_e,63,65,49),Ke(_e,65,91,-3),Ke(_e,91,93,33),_e[93]=1,_e[94]=33,_e[95]=-3,_e[96]=33,Ke(_e,97,123,-3),Ke(_e,123,183,33),_e[183]=-87,Ke(_e,184,192,33),Ke(_e,192,215,-19),_e[215]=33,Ke(_e,216,247,-19),_e[247]=33,Ke(_e,248,306,-19),Ke(_e,306,308,33),Ke(_e,308,319,-19),Ke(_e,319,321,33),Ke(_e,321,329,-19),_e[329]=33,Ke(_e,330,383,-19),_e[383]=33,Ke(_e,384,452,-19),Ke(_e,452,461,33),Ke(_e,461,497,-19),Ke(_e,497,500,33),Ke(_e,500,502,-19),Ke(_e,502,506,33),Ke(_e,506,536,-19),Ke(_e,536,592,33),Ke(_e,592,681,-19),Ke(_e,681,699,33),Ke(_e,699,706,-19),Ke(_e,706,720,33),Ke(_e,720,722,-87),Ke(_e,722,768,33),Ke(_e,768,838,-87),Ke(_e,838,864,33),Ke(_e,864,866,-87),Ke(_e,866,902,33),_e[902]=-19,_e[903]=-87,Ke(_e,904,907,-19),_e[907]=33,_e[908]=-19,_e[909]=33,Ke(_e,910,930,-19),_e[930]=33,Ke(_e,931,975,-19),_e[975]=33,Ke(_e,976,983,-19),Ke(_e,983,986,33),_e[986]=-19,_e[987]=33,_e[988]=-19,_e[989]=33,_e[990]=-19,_e[991]=33,_e[992]=-19,_e[993]=33,Ke(_e,994,1012,-19),Ke(_e,1012,1025,33),Ke(_e,1025,1037,-19),_e[1037]=33,Ke(_e,1038,1104,-19),_e[1104]=33,Ke(_e,1105,1117,-19),_e[1117]=33,Ke(_e,1118,1154,-19),_e[1154]=33,Ke(_e,1155,1159,-87),Ke(_e,1159,1168,33),Ke(_e,1168,1221,-19),Ke(_e,1221,1223,33),Ke(_e,1223,1225,-19),Ke(_e,1225,1227,33),Ke(_e,1227,1229,-19),Ke(_e,1229,1232,33),Ke(_e,1232,1260,-19),Ke(_e,1260,1262,33),Ke(_e,1262,1270,-19),Ke(_e,1270,1272,33),Ke(_e,1272,1274,-19),Ke(_e,1274,1329,33),Ke(_e,1329,1367,-19),Ke(_e,1367,1369,33),_e[1369]=-19,Ke(_e,1370,1377,33),Ke(_e,1377,1415,-19),Ke(_e,1415,1425,33),Ke(_e,1425,1442,-87),_e[1442]=33,Ke(_e,1443,1466,-87),_e[1466]=33,Ke(_e,1467,1470,-87),_e[1470]=33,_e[1471]=-87,_e[1472]=33,Ke(_e,1473,1475,-87),_e[1475]=33,_e[1476]=-87,Ke(_e,1477,1488,33),Ke(_e,1488,1515,-19),Ke(_e,1515,1520,33),Ke(_e,1520,1523,-19),Ke(_e,1523,1569,33),Ke(_e,1569,1595,-19),Ke(_e,1595,1600,33),_e[1600]=-87,Ke(_e,1601,1611,-19),Ke(_e,1611,1619,-87),Ke(_e,1619,1632,33),Ke(_e,1632,1642,-87),Ke(_e,1642,1648,33),_e[1648]=-87,Ke(_e,1649,1720,-19),Ke(_e,1720,1722,33),Ke(_e,1722,1727,-19),_e[1727]=33,Ke(_e,1728,1743,-19),_e[1743]=33,Ke(_e,1744,1748,-19),_e[1748]=33,_e[1749]=-19,Ke(_e,1750,1765,-87),Ke(_e,1765,1767,-19),Ke(_e,1767,1769,-87),_e[1769]=33,Ke(_e,1770,1774,-87),Ke(_e,1774,1776,33),Ke(_e,1776,1786,-87),Ke(_e,1786,2305,33),Ke(_e,2305,2308,-87),_e[2308]=33,Ke(_e,2309,2362,-19),Ke(_e,2362,2364,33),_e[2364]=-87,_e[2365]=-19,Ke(_e,2366,2382,-87),Ke(_e,2382,2385,33),Ke(_e,2385,2389,-87),Ke(_e,2389,2392,33),Ke(_e,2392,2402,-19),Ke(_e,2402,2404,-87),Ke(_e,2404,2406,33),Ke(_e,2406,2416,-87),Ke(_e,2416,2433,33),Ke(_e,2433,2436,-87),_e[2436]=33,Ke(_e,2437,2445,-19),Ke(_e,2445,2447,33),Ke(_e,2447,2449,-19),Ke(_e,2449,2451,33),Ke(_e,2451,2473,-19),_e[2473]=33,Ke(_e,2474,2481,-19),_e[2481]=33,_e[2482]=-19,Ke(_e,2483,2486,33),Ke(_e,2486,2490,-19),Ke(_e,2490,2492,33),_e[2492]=-87,_e[2493]=33,Ke(_e,2494,2501,-87),Ke(_e,2501,2503,33),Ke(_e,2503,2505,-87),Ke(_e,2505,2507,33),Ke(_e,2507,2510,-87),Ke(_e,2510,2519,33),_e[2519]=-87,Ke(_e,2520,2524,33),Ke(_e,2524,2526,-19),_e[2526]=33,Ke(_e,2527,2530,-19),Ke(_e,2530,2532,-87),Ke(_e,2532,2534,33),Ke(_e,2534,2544,-87),Ke(_e,2544,2546,-19),Ke(_e,2546,2562,33),_e[2562]=-87,Ke(_e,2563,2565,33),Ke(_e,2565,2571,-19),Ke(_e,2571,2575,33),Ke(_e,2575,2577,-19),Ke(_e,2577,2579,33),Ke(_e,2579,2601,-19),_e[2601]=33,Ke(_e,2602,2609,-19),_e[2609]=33,Ke(_e,2610,2612,-19),_e[2612]=33,Ke(_e,2613,2615,-19),_e[2615]=33,Ke(_e,2616,2618,-19),Ke(_e,2618,2620,33),_e[2620]=-87,_e[2621]=33,Ke(_e,2622,2627,-87),Ke(_e,2627,2631,33),Ke(_e,2631,2633,-87),Ke(_e,2633,2635,33),Ke(_e,2635,2638,-87),Ke(_e,2638,2649,33),Ke(_e,2649,2653,-19),_e[2653]=33,_e[2654]=-19,Ke(_e,2655,2662,33),Ke(_e,2662,2674,-87),Ke(_e,2674,2677,-19),Ke(_e,2677,2689,33),Ke(_e,2689,2692,-87),_e[2692]=33,Ke(_e,2693,2700,-19),_e[2700]=33,_e[2701]=-19,_e[2702]=33,Ke(_e,2703,2706,-19),_e[2706]=33,Ke(_e,2707,2729,-19),_e[2729]=33,Ke(_e,2730,2737,-19),_e[2737]=33,Ke(_e,2738,2740,-19),_e[2740]=33,Ke(_e,2741,2746,-19),Ke(_e,2746,2748,33),_e[2748]=-87,_e[2749]=-19,Ke(_e,2750,2758,-87),_e[2758]=33,Ke(_e,2759,2762,-87),_e[2762]=33,Ke(_e,2763,2766,-87),Ke(_e,2766,2784,33),_e[2784]=-19,Ke(_e,2785,2790,33),Ke(_e,2790,2800,-87),Ke(_e,2800,2817,33),Ke(_e,2817,2820,-87),_e[2820]=33,Ke(_e,2821,2829,-19),Ke(_e,2829,2831,33),Ke(_e,2831,2833,-19),Ke(_e,2833,2835,33),Ke(_e,2835,2857,-19),_e[2857]=33,Ke(_e,2858,2865,-19),_e[2865]=33,Ke(_e,2866,2868,-19),Ke(_e,2868,2870,33),Ke(_e,2870,2874,-19),Ke(_e,2874,2876,33),_e[2876]=-87,_e[2877]=-19,Ke(_e,2878,2884,-87),Ke(_e,2884,2887,33),Ke(_e,2887,2889,-87),Ke(_e,2889,2891,33),Ke(_e,2891,2894,-87),Ke(_e,2894,2902,33),Ke(_e,2902,2904,-87),Ke(_e,2904,2908,33),Ke(_e,2908,2910,-19),_e[2910]=33,Ke(_e,2911,2914,-19),Ke(_e,2914,2918,33),Ke(_e,2918,2928,-87),Ke(_e,2928,2946,33),Ke(_e,2946,2948,-87),_e[2948]=33,Ke(_e,2949,2955,-19),Ke(_e,2955,2958,33),Ke(_e,2958,2961,-19),_e[2961]=33,Ke(_e,2962,2966,-19),Ke(_e,2966,2969,33),Ke(_e,2969,2971,-19),_e[2971]=33,_e[2972]=-19,_e[2973]=33,Ke(_e,2974,2976,-19),Ke(_e,2976,2979,33),Ke(_e,2979,2981,-19),Ke(_e,2981,2984,33),Ke(_e,2984,2987,-19),Ke(_e,2987,2990,33),Ke(_e,2990,2998,-19),_e[2998]=33,Ke(_e,2999,3002,-19),Ke(_e,3002,3006,33),Ke(_e,3006,3011,-87),Ke(_e,3011,3014,33),Ke(_e,3014,3017,-87),_e[3017]=33,Ke(_e,3018,3022,-87),Ke(_e,3022,3031,33),_e[3031]=-87,Ke(_e,3032,3047,33),Ke(_e,3047,3056,-87),Ke(_e,3056,3073,33),Ke(_e,3073,3076,-87),_e[3076]=33,Ke(_e,3077,3085,-19),_e[3085]=33,Ke(_e,3086,3089,-19),_e[3089]=33,Ke(_e,3090,3113,-19),_e[3113]=33,Ke(_e,3114,3124,-19),_e[3124]=33,Ke(_e,3125,3130,-19),Ke(_e,3130,3134,33),Ke(_e,3134,3141,-87),_e[3141]=33,Ke(_e,3142,3145,-87),_e[3145]=33,Ke(_e,3146,3150,-87),Ke(_e,3150,3157,33),Ke(_e,3157,3159,-87),Ke(_e,3159,3168,33),Ke(_e,3168,3170,-19),Ke(_e,3170,3174,33),Ke(_e,3174,3184,-87),Ke(_e,3184,3202,33),Ke(_e,3202,3204,-87),_e[3204]=33,Ke(_e,3205,3213,-19),_e[3213]=33,Ke(_e,3214,3217,-19),_e[3217]=33,Ke(_e,3218,3241,-19),_e[3241]=33,Ke(_e,3242,3252,-19),_e[3252]=33,Ke(_e,3253,3258,-19),Ke(_e,3258,3262,33),Ke(_e,3262,3269,-87),_e[3269]=33,Ke(_e,3270,3273,-87),_e[3273]=33,Ke(_e,3274,3278,-87),Ke(_e,3278,3285,33),Ke(_e,3285,3287,-87),Ke(_e,3287,3294,33),_e[3294]=-19,_e[3295]=33,Ke(_e,3296,3298,-19),Ke(_e,3298,3302,33),Ke(_e,3302,3312,-87),Ke(_e,3312,3330,33),Ke(_e,3330,3332,-87),_e[3332]=33,Ke(_e,3333,3341,-19),_e[3341]=33,Ke(_e,3342,3345,-19),_e[3345]=33,Ke(_e,3346,3369,-19),_e[3369]=33,Ke(_e,3370,3386,-19),Ke(_e,3386,3390,33),Ke(_e,3390,3396,-87),Ke(_e,3396,3398,33),Ke(_e,3398,3401,-87),_e[3401]=33,Ke(_e,3402,3406,-87),Ke(_e,3406,3415,33),_e[3415]=-87,Ke(_e,3416,3424,33),Ke(_e,3424,3426,-19),Ke(_e,3426,3430,33),Ke(_e,3430,3440,-87),Ke(_e,3440,3585,33),Ke(_e,3585,3631,-19),_e[3631]=33,_e[3632]=-19,_e[3633]=-87,Ke(_e,3634,3636,-19),Ke(_e,3636,3643,-87),Ke(_e,3643,3648,33),Ke(_e,3648,3654,-19),Ke(_e,3654,3663,-87),_e[3663]=33,Ke(_e,3664,3674,-87),Ke(_e,3674,3713,33),Ke(_e,3713,3715,-19),_e[3715]=33,_e[3716]=-19,Ke(_e,3717,3719,33),Ke(_e,3719,3721,-19),_e[3721]=33,_e[3722]=-19,Ke(_e,3723,3725,33),_e[3725]=-19,Ke(_e,3726,3732,33),Ke(_e,3732,3736,-19),_e[3736]=33,Ke(_e,3737,3744,-19),_e[3744]=33,Ke(_e,3745,3748,-19),_e[3748]=33,_e[3749]=-19,_e[3750]=33,_e[3751]=-19,Ke(_e,3752,3754,33),Ke(_e,3754,3756,-19),_e[3756]=33,Ke(_e,3757,3759,-19),_e[3759]=33,_e[3760]=-19,_e[3761]=-87,Ke(_e,3762,3764,-19),Ke(_e,3764,3770,-87),_e[3770]=33,Ke(_e,3771,3773,-87),_e[3773]=-19,Ke(_e,3774,3776,33),Ke(_e,3776,3781,-19),_e[3781]=33,_e[3782]=-87,_e[3783]=33,Ke(_e,3784,3790,-87),Ke(_e,3790,3792,33),Ke(_e,3792,3802,-87),Ke(_e,3802,3864,33),Ke(_e,3864,3866,-87),Ke(_e,3866,3872,33),Ke(_e,3872,3882,-87),Ke(_e,3882,3893,33),_e[3893]=-87,_e[3894]=33,_e[3895]=-87,_e[3896]=33,_e[3897]=-87,Ke(_e,3898,3902,33),Ke(_e,3902,3904,-87),Ke(_e,3904,3912,-19),_e[3912]=33,Ke(_e,3913,3946,-19),Ke(_e,3946,3953,33),Ke(_e,3953,3973,-87),_e[3973]=33,Ke(_e,3974,3980,-87),Ke(_e,3980,3984,33),Ke(_e,3984,3990,-87),_e[3990]=33,_e[3991]=-87,_e[3992]=33,Ke(_e,3993,4014,-87),Ke(_e,4014,4017,33),Ke(_e,4017,4024,-87),_e[4024]=33,_e[4025]=-87,Ke(_e,4026,4256,33),Ke(_e,4256,4294,-19),Ke(_e,4294,4304,33),Ke(_e,4304,4343,-19),Ke(_e,4343,4352,33),_e[4352]=-19,_e[4353]=33,Ke(_e,4354,4356,-19),_e[4356]=33,Ke(_e,4357,4360,-19),_e[4360]=33,_e[4361]=-19,_e[4362]=33,Ke(_e,4363,4365,-19),_e[4365]=33,Ke(_e,4366,4371,-19),Ke(_e,4371,4412,33),_e[4412]=-19,_e[4413]=33,_e[4414]=-19,_e[4415]=33,_e[4416]=-19,Ke(_e,4417,4428,33),_e[4428]=-19,_e[4429]=33,_e[4430]=-19,_e[4431]=33,_e[4432]=-19,Ke(_e,4433,4436,33),Ke(_e,4436,4438,-19),Ke(_e,4438,4441,33),_e[4441]=-19,Ke(_e,4442,4447,33),Ke(_e,4447,4450,-19),_e[4450]=33,_e[4451]=-19,_e[4452]=33,_e[4453]=-19,_e[4454]=33,_e[4455]=-19,_e[4456]=33,_e[4457]=-19,Ke(_e,4458,4461,33),Ke(_e,4461,4463,-19),Ke(_e,4463,4466,33),Ke(_e,4466,4468,-19),_e[4468]=33,_e[4469]=-19,Ke(_e,4470,4510,33),_e[4510]=-19,Ke(_e,4511,4520,33),_e[4520]=-19,Ke(_e,4521,4523,33),_e[4523]=-19,Ke(_e,4524,4526,33),Ke(_e,4526,4528,-19),Ke(_e,4528,4535,33),Ke(_e,4535,4537,-19),_e[4537]=33,_e[4538]=-19,_e[4539]=33,Ke(_e,4540,4547,-19),Ke(_e,4547,4587,33),_e[4587]=-19,Ke(_e,4588,4592,33),_e[4592]=-19,Ke(_e,4593,4601,33),_e[4601]=-19,Ke(_e,4602,7680,33),Ke(_e,7680,7836,-19),Ke(_e,7836,7840,33),Ke(_e,7840,7930,-19),Ke(_e,7930,7936,33),Ke(_e,7936,7958,-19),Ke(_e,7958,7960,33),Ke(_e,7960,7966,-19),Ke(_e,7966,7968,33),Ke(_e,7968,8006,-19),Ke(_e,8006,8008,33),Ke(_e,8008,8014,-19),Ke(_e,8014,8016,33),Ke(_e,8016,8024,-19),_e[8024]=33,_e[8025]=-19,_e[8026]=33,_e[8027]=-19,_e[8028]=33,_e[8029]=-19,_e[8030]=33,Ke(_e,8031,8062,-19),Ke(_e,8062,8064,33),Ke(_e,8064,8117,-19),_e[8117]=33,Ke(_e,8118,8125,-19),_e[8125]=33,_e[8126]=-19,Ke(_e,8127,8130,33),Ke(_e,8130,8133,-19),_e[8133]=33,Ke(_e,8134,8141,-19),Ke(_e,8141,8144,33),Ke(_e,8144,8148,-19),Ke(_e,8148,8150,33),Ke(_e,8150,8156,-19),Ke(_e,8156,8160,33),Ke(_e,8160,8173,-19),Ke(_e,8173,8178,33),Ke(_e,8178,8181,-19),_e[8181]=33,Ke(_e,8182,8189,-19),Ke(_e,8189,8400,33),Ke(_e,8400,8413,-87),Ke(_e,8413,8417,33),_e[8417]=-87,Ke(_e,8418,8486,33),_e[8486]=-19,Ke(_e,8487,8490,33),Ke(_e,8490,8492,-19),Ke(_e,8492,8494,33),_e[8494]=-19,Ke(_e,8495,8576,33),Ke(_e,8576,8579,-19),Ke(_e,8579,12293,33),_e[12293]=-87,_e[12294]=33,_e[12295]=-19,Ke(_e,12296,12321,33),Ke(_e,12321,12330,-19),Ke(_e,12330,12336,-87),_e[12336]=33,Ke(_e,12337,12342,-87),Ke(_e,12342,12353,33),Ke(_e,12353,12437,-19),Ke(_e,12437,12441,33),Ke(_e,12441,12443,-87),Ke(_e,12443,12445,33),Ke(_e,12445,12447,-87),Ke(_e,12447,12449,33),Ke(_e,12449,12539,-19),_e[12539]=33,Ke(_e,12540,12543,-87),Ke(_e,12543,12549,33),Ke(_e,12549,12589,-19),Ke(_e,12589,19968,33),Ke(_e,19968,40870,-19),Ke(_e,40870,44032,33),Ke(_e,44032,55204,-19),Ke(_e,55204,TG,33),Ke(_e,57344,65534,33)}i(Jzt,"Xoe");function JEn(e){var n,o,u,p,g,w,k;e.hb||(e.hb=!0,wu(e,"ecore"),MX(e,"ecore"),NX(e,ep),C$(e.fb,"E"),C$(e.L,"T"),C$(e.P,"K"),C$(e.P,"V"),C$(e.cb,"E"),Zn(Ol(e.b),e.bb),Zn(Ol(e.a),e.Q),Zn(Ol(e.o),e.p),Zn(Ol(e.p),e.R),Zn(Ol(e.q),e.p),Zn(Ol(e.v),e.q),Zn(Ol(e.w),e.R),Zn(Ol(e.B),e.Q),Zn(Ol(e.R),e.Q),Zn(Ol(e.T),e.eb),Zn(Ol(e.U),e.R),Zn(Ol(e.V),e.eb),Zn(Ol(e.W),e.bb),Zn(Ol(e.bb),e.eb),Zn(Ol(e.eb),e.R),Zn(Ol(e.db),e.R),lc(e.b,l4,$Ht,!1,!1,!0),ss(y(je(wt(e.b),0),38),e.e,"iD",null,0,1,l4,!1,!1,!0,!1,!0,!1),_a(y(je(wt(e.b),1),19),e.q,null,"eAttributeType",1,1,l4,!0,!0,!1,!1,!0,!1,!0),lc(e.a,Ni,PHt,!1,!1,!0),ss(y(je(wt(e.a),0),38),e._,Rge,null,0,1,Ni,!1,!1,!0,!1,!0,!1),_a(y(je(wt(e.a),1),19),e.ab,null,"details",0,-1,Ni,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.a),2),19),e.Q,y(je(wt(e.Q),0),19),"eModelElement",0,1,Ni,!0,!1,!0,!1,!1,!1,!1),_a(y(je(wt(e.a),3),19),e.S,null,"contents",0,-1,Ni,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.a),4),19),e.S,null,"references",0,-1,Ni,!1,!1,!0,!1,!0,!1,!1),lc(e.o,op,"EClass",!1,!1,!0),ss(y(je(wt(e.o),0),38),e.e,"abstract",null,0,1,op,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.o),1),38),e.e,"interface",null,0,1,op,!1,!1,!0,!1,!0,!1),_a(y(je(wt(e.o),2),19),e.o,null,"eSuperTypes",0,-1,op,!1,!1,!0,!1,!0,!0,!1),_a(y(je(wt(e.o),3),19),e.T,y(je(wt(e.T),0),19),"eOperations",0,-1,op,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.o),4),19),e.b,null,"eAllAttributes",0,-1,op,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.o),5),19),e.W,null,"eAllReferences",0,-1,op,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.o),6),19),e.W,null,"eReferences",0,-1,op,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.o),7),19),e.b,null,"eAttributes",0,-1,op,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.o),8),19),e.W,null,"eAllContainments",0,-1,op,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.o),9),19),e.T,null,"eAllOperations",0,-1,op,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.o),10),19),e.bb,null,"eAllStructuralFeatures",0,-1,op,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.o),11),19),e.o,null,"eAllSuperTypes",0,-1,op,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.o),12),19),e.b,null,"eIDAttribute",0,1,op,!0,!0,!1,!1,!1,!1,!0),_a(y(je(wt(e.o),13),19),e.bb,y(je(wt(e.bb),7),19),"eStructuralFeatures",0,-1,op,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.o),14),19),e.H,null,"eGenericSuperTypes",0,-1,op,!1,!1,!0,!0,!1,!0,!1),_a(y(je(wt(e.o),15),19),e.H,null,"eAllGenericSuperTypes",0,-1,op,!0,!0,!1,!1,!0,!1,!0),k=bl(y(je(ca(e.o),0),62),e.e,"isSuperTypeOf"),_l(k,e.o,"someClass"),bl(y(je(ca(e.o),1),62),e.I,"getFeatureCount"),k=bl(y(je(ca(e.o),2),62),e.bb,JHt),_l(k,e.I,"featureID"),k=bl(y(je(ca(e.o),3),62),e.I,QHt),_l(k,e.bb,kM),k=bl(y(je(ca(e.o),4),62),e.bb,JHt),_l(k,e._,"featureName"),bl(y(je(ca(e.o),5),62),e.I,"getOperationCount"),k=bl(y(je(ca(e.o),6),62),e.T,"getEOperation"),_l(k,e.I,"operationID"),k=bl(y(je(ca(e.o),7),62),e.I,ZHt),_l(k,e.T,DPe),k=bl(y(je(ca(e.o),8),62),e.T,"getOverride"),_l(k,e.T,DPe),k=bl(y(je(ca(e.o),9),62),e.H,"getFeatureType"),_l(k,e.bb,kM),lc(e.p,Rg,GHt,!0,!1,!0),ss(y(je(wt(e.p),0),38),e._,"instanceClassName",null,0,1,Rg,!1,!0,!0,!0,!0,!1),n=I1(e.L),o=rRe(),Zn((!n.d&&(n.d=new Es(dl,n,1)),n.d),o),GFt(y(je(wt(e.p),1),38),n,"instanceClass",Rg,!0,!0,!1,!0),ss(y(je(wt(e.p),2),38),e.M,eqt,null,0,1,Rg,!0,!0,!1,!1,!0,!0),ss(y(je(wt(e.p),3),38),e._,"instanceTypeName",null,0,1,Rg,!1,!0,!0,!0,!0,!1),_a(y(je(wt(e.p),4),19),e.U,y(je(wt(e.U),3),19),"ePackage",0,1,Rg,!0,!1,!1,!1,!0,!1,!1),_a(y(je(wt(e.p),5),19),e.db,null,tqt,0,-1,Rg,!1,!1,!0,!0,!0,!1,!1),k=bl(y(je(ca(e.p),0),62),e.e,rqt),_l(k,e.M,dG),bl(y(je(ca(e.p),1),62),e.I,"getClassifierID"),lc(e.q,Qye,"EDataType",!1,!1,!0),ss(y(je(wt(e.q),0),38),e.e,"serializable",MR,0,1,Qye,!1,!1,!0,!1,!0,!1),lc(e.v,Lee,"EEnum",!1,!1,!0),_a(y(je(wt(e.v),0),19),e.w,y(je(wt(e.w),3),19),"eLiterals",0,-1,Lee,!1,!1,!0,!0,!1,!1,!1),k=bl(y(je(ca(e.v),0),62),e.w,nqt),_l(k,e._,Vi),k=bl(y(je(ca(e.v),1),62),e.w,nqt),_l(k,e.I,gM),k=bl(y(je(ca(e.v),2),62),e.w,"getEEnumLiteralByLiteral"),_l(k,e._,"literal"),lc(e.w,ny,jHt,!1,!1,!0),ss(y(je(wt(e.w),0),38),e.I,gM,null,0,1,ny,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.w),1),38),e.A,"instance",null,0,1,ny,!0,!1,!0,!1,!0,!1),ss(y(je(wt(e.w),2),38),e._,"literal",null,0,1,ny,!1,!1,!0,!1,!0,!1),_a(y(je(wt(e.w),3),19),e.v,y(je(wt(e.v),0),19),"eEnum",0,1,ny,!0,!1,!1,!1,!1,!1,!1),lc(e.B,ON,"EFactory",!1,!1,!0),_a(y(je(wt(e.B),0),19),e.U,y(je(wt(e.U),2),19),"ePackage",1,1,ON,!0,!1,!0,!1,!1,!1,!1),k=bl(y(je(ca(e.B),0),62),e.S,"create"),_l(k,e.o,"eClass"),k=bl(y(je(ca(e.B),1),62),e.M,"createFromString"),_l(k,e.q,"eDataType"),_l(k,e._,"literalValue"),k=bl(y(je(ca(e.B),2),62),e._,"convertToString"),_l(k,e.q,"eDataType"),_l(k,e.M,"instanceValue"),lc(e.Q,rz,GWt,!0,!1,!0),_a(y(je(wt(e.Q),0),19),e.a,y(je(wt(e.a),2),19),"eAnnotations",0,-1,rz,!1,!1,!0,!0,!1,!1,!1),k=bl(y(je(ca(e.Q),0),62),e.a,"getEAnnotation"),_l(k,e._,Rge),lc(e.R,Hye,jWt,!0,!1,!0),ss(y(je(wt(e.R),0),38),e._,Vi,null,0,1,Hye,!1,!1,!0,!1,!0,!1),lc(e.S,Yv,"EObject",!1,!1,!0),bl(y(je(ca(e.S),0),62),e.o,"eClass"),bl(y(je(ca(e.S),1),62),e.e,"eIsProxy"),bl(y(je(ca(e.S),2),62),e.X,"eResource"),bl(y(je(ca(e.S),3),62),e.S,"eContainer"),bl(y(je(ca(e.S),4),62),e.bb,"eContainingFeature"),bl(y(je(ca(e.S),5),62),e.W,"eContainmentFeature"),k=bl(y(je(ca(e.S),6),62),null,"eContents"),n=I1(e.fb),o=I1(e.S),Zn((!n.d&&(n.d=new Es(dl,n,1)),n.d),o),p=t0(k,n,null),p&&p.mj(),k=bl(y(je(ca(e.S),7),62),null,"eAllContents"),n=I1(e.cb),o=I1(e.S),Zn((!n.d&&(n.d=new Es(dl,n,1)),n.d),o),g=t0(k,n,null),g&&g.mj(),k=bl(y(je(ca(e.S),8),62),null,"eCrossReferences"),n=I1(e.fb),o=I1(e.S),Zn((!n.d&&(n.d=new Es(dl,n,1)),n.d),o),w=t0(k,n,null),w&&w.mj(),k=bl(y(je(ca(e.S),9),62),e.M,"eGet"),_l(k,e.bb,kM),k=bl(y(je(ca(e.S),10),62),e.M,"eGet"),_l(k,e.bb,kM),_l(k,e.e,"resolve"),k=bl(y(je(ca(e.S),11),62),null,"eSet"),_l(k,e.bb,kM),_l(k,e.M,"newValue"),k=bl(y(je(ca(e.S),12),62),e.e,"eIsSet"),_l(k,e.bb,kM),k=bl(y(je(ca(e.S),13),62),null,"eUnset"),_l(k,e.bb,kM),k=bl(y(je(ca(e.S),14),62),e.M,"eInvoke"),_l(k,e.T,DPe),n=I1(e.fb),o=rRe(),Zn((!n.d&&(n.d=new Es(dl,n,1)),n.d),o),xK(k,n,"arguments"),$an(k,e.K),lc(e.T,lp,UHt,!1,!1,!0),_a(y(je(wt(e.T),0),19),e.o,y(je(wt(e.o),3),19),iqt,0,1,lp,!0,!1,!1,!1,!1,!1,!1),_a(y(je(wt(e.T),1),19),e.db,null,tqt,0,-1,lp,!1,!1,!0,!0,!0,!1,!1),_a(y(je(wt(e.T),2),19),e.V,y(je(wt(e.V),0),19),"eParameters",0,-1,lp,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.T),3),19),e.p,null,"eExceptions",0,-1,lp,!1,!1,!0,!1,!0,!0,!1),_a(y(je(wt(e.T),4),19),e.H,null,"eGenericExceptions",0,-1,lp,!1,!1,!0,!0,!1,!0,!1),bl(y(je(ca(e.T),0),62),e.I,ZHt),k=bl(y(je(ca(e.T),1),62),e.e,"isOverrideOf"),_l(k,e.T,"someOperation"),lc(e.U,Ag,"EPackage",!1,!1,!0),ss(y(je(wt(e.U),0),38),e._,"nsURI",null,0,1,Ag,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.U),1),38),e._,"nsPrefix",null,0,1,Ag,!1,!1,!0,!1,!0,!1),_a(y(je(wt(e.U),2),19),e.B,y(je(wt(e.B),0),19),"eFactoryInstance",1,1,Ag,!0,!1,!0,!1,!1,!1,!1),_a(y(je(wt(e.U),3),19),e.p,y(je(wt(e.p),4),19),"eClassifiers",0,-1,Ag,!1,!1,!0,!0,!0,!1,!1),_a(y(je(wt(e.U),4),19),e.U,y(je(wt(e.U),5),19),"eSubpackages",0,-1,Ag,!1,!1,!0,!0,!0,!1,!1),_a(y(je(wt(e.U),5),19),e.U,y(je(wt(e.U),4),19),"eSuperPackage",0,1,Ag,!0,!1,!1,!1,!0,!1,!1),k=bl(y(je(ca(e.U),0),62),e.p,"getEClassifier"),_l(k,e._,Vi),lc(e.V,ET,VHt,!1,!1,!0),_a(y(je(wt(e.V),0),19),e.T,y(je(wt(e.T),2),19),"eOperation",0,1,ET,!0,!1,!1,!1,!1,!1,!1),lc(e.W,c4,WHt,!1,!1,!0),ss(y(je(wt(e.W),0),38),e.e,"containment",null,0,1,c4,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.W),1),38),e.e,"container",null,0,1,c4,!0,!0,!1,!1,!0,!0),ss(y(je(wt(e.W),2),38),e.e,"resolveProxies",MR,0,1,c4,!1,!1,!0,!1,!0,!1),_a(y(je(wt(e.W),3),19),e.W,null,"eOpposite",0,1,c4,!1,!1,!0,!1,!0,!1,!1),_a(y(je(wt(e.W),4),19),e.o,null,"eReferenceType",1,1,c4,!0,!0,!1,!1,!0,!1,!0),_a(y(je(wt(e.W),5),19),e.b,null,"eKeys",0,-1,c4,!1,!1,!0,!1,!0,!1,!1),lc(e.bb,ih,FHt,!0,!1,!0),ss(y(je(wt(e.bb),0),38),e.e,"changeable",MR,0,1,ih,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.bb),1),38),e.e,"volatile",null,0,1,ih,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.bb),2),38),e.e,"transient",null,0,1,ih,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.bb),3),38),e._,"defaultValueLiteral",null,0,1,ih,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.bb),4),38),e.M,eqt,null,0,1,ih,!0,!0,!1,!1,!0,!0),ss(y(je(wt(e.bb),5),38),e.e,"unsettable",null,0,1,ih,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.bb),6),38),e.e,"derived",null,0,1,ih,!1,!1,!0,!1,!0,!1),_a(y(je(wt(e.bb),7),19),e.o,y(je(wt(e.o),13),19),iqt,0,1,ih,!0,!1,!1,!1,!1,!1,!1),bl(y(je(ca(e.bb),0),62),e.I,QHt),k=bl(y(je(ca(e.bb),1),62),null,"getContainerClass"),n=I1(e.L),o=rRe(),Zn((!n.d&&(n.d=new Es(dl,n,1)),n.d),o),u=t0(k,n,null),u&&u.mj(),lc(e.eb,o4,BHt,!0,!1,!0),ss(y(je(wt(e.eb),0),38),e.e,"ordered",MR,0,1,o4,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.eb),1),38),e.e,"unique",MR,0,1,o4,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.eb),2),38),e.I,"lowerBound",null,0,1,o4,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.eb),3),38),e.I,"upperBound","1",0,1,o4,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.eb),4),38),e.e,"many",null,0,1,o4,!0,!0,!1,!1,!0,!0),ss(y(je(wt(e.eb),5),38),e.e,"required",null,0,1,o4,!0,!0,!1,!1,!0,!0),_a(y(je(wt(e.eb),6),19),e.p,null,"eType",0,1,o4,!1,!0,!0,!1,!0,!0,!1),_a(y(je(wt(e.eb),7),19),e.H,null,"eGenericType",0,1,o4,!1,!0,!0,!0,!1,!0,!1),lc(e.ab,Cw,"EStringToStringMapEntry",!1,!1,!1),ss(y(je(wt(e.ab),0),38),e._,"key",null,0,1,Cw,!1,!1,!0,!1,!0,!1),ss(y(je(wt(e.ab),1),38),e._,gM,null,0,1,Cw,!1,!1,!0,!1,!0,!1),lc(e.H,dl,zHt,!1,!1,!0),_a(y(je(wt(e.H),0),19),e.H,null,"eUpperBound",0,1,dl,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.H),1),19),e.H,null,"eTypeArguments",0,-1,dl,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.H),2),19),e.p,null,"eRawType",1,1,dl,!0,!1,!1,!1,!0,!1,!0),_a(y(je(wt(e.H),3),19),e.H,null,"eLowerBound",0,1,dl,!1,!1,!0,!0,!1,!1,!1),_a(y(je(wt(e.H),4),19),e.db,null,"eTypeParameter",0,1,dl,!1,!1,!0,!1,!1,!1,!1),_a(y(je(wt(e.H),5),19),e.p,null,"eClassifier",0,1,dl,!1,!1,!0,!1,!0,!1,!1),k=bl(y(je(ca(e.H),0),62),e.e,rqt),_l(k,e.M,dG),lc(e.db,Gu,HHt,!1,!1,!0),_a(y(je(wt(e.db),0),19),e.H,null,"eBounds",0,-1,Gu,!1,!1,!0,!0,!1,!1,!1),ji(e.c,p0e,"EBigDecimal",!0),ji(e.d,sE,"EBigInteger",!0),ji(e.e,ah,"EBoolean",!0),ji(e.f,Ja,"EBooleanObject",!0),ji(e.i,xh,"EByte",!0),ji(e.g,Ee(xh,1),"EByteArray",!0),ji(e.j,A6,"EByteObject",!0),ji(e.k,Rd,"EChar",!0),ji(e.n,SM,"ECharacterObject",!0),ji(e.r,gQ,"EDate",!0),ji(e.s,YWe,"EDiagnosticChain",!1),ji(e.t,po,"EDouble",!0),ji(e.u,Ts,"EDoubleObject",!0),ji(e.fb,cWe,"EEList",!1),ji(e.A,fWe,"EEnumerator",!1),ji(e.C,OWe,"EFeatureMap",!1),ji(e.D,_ee,"EFeatureMapEntry",!1),ji(e.F,d4,"EFloat",!0),ji(e.G,VR,"EFloatObject",!0),ji(e.I,pi,"EInt",!0),ji(e.J,Ls,"EIntegerObject",!0),ji(e.L,zPe,"EJavaClass",!0),ji(e.M,Fs,"EJavaObject",!0),ji(e.N,LT,"ELong",!0),ji(e.O,fT,"ELongObject",!0),ji(e.P,UPe,"EMap",!1),ji(e.X,DWe,"EResource",!1),ji(e.Y,XWe,"EResourceSet",!1),ji(e.Z,FE,"EShort",!0),ji(e.$,dT,"EShortObject",!0),ji(e._,Zt,"EString",!0),ji(e.cb,hWe,"ETreeIterator",!1),ji(e.K,KWe,"EInvocationTargetException",!1),i_e(e,ep))}i(JEn,"k9d");var dG="object",g6="boolean",sMe="number",bde="string",vde="function",Ui=2147483647,hc="java.lang",pG={3:1},gG="com.google.common.base",Tu=", ",Qzt="%s (%s) must not be negative",Fr={3:1,4:1,5:1},Zzt="negative size: ",oMe="no calls to next() since the last call to remove()",eUt="Optional.of(",Qu="null",hR={204:1,50:1},wr="com.google.common.collect",fR={204:1,50:1,128:1},gw={229:1,3:1},fo={50:1},zn="java.util",rT={92:1},v3={20:1,31:1,18:1},i0=2028,bh={20:1,31:1,18:1,22:1},lMe={92:1,138:1,134:1},tUt={20:1,31:1,18:1,22:1,83:1},cMe={20:1,31:1,18:1,277:1,22:1,83:1},Hm={50:1,128:1},wde={358:1,45:1},rUt="AbstractMapEntry",nUt="expectedValuesPerKey",Dt={3:1,6:1,4:1,5:1},Z0=16384,Gf={162:1},xn={41:1},mG={202:1},yG={l:4194303,m:4194303,h:524287},xde={254:1,3:1,35:1},iUt="range unbounded on this side",qm={20:1},aUt={20:1,18:1},uMe={3:1,20:1,31:1,18:1},dR={312:1,3:1,20:1,31:1,18:1,16:1,59:1},sJ={3:1,4:1,5:1,175:1},pR={3:1,92:1},Tde={20:1,18:1,22:1},m6={3:1,20:1,31:1,18:1,22:1},sUt={20:1,18:1,22:1,83:1},Ym=461845907,Xm=-862048943,bG={3:1,6:1,4:1,5:1,175:1},oUt="expectedSize",qI=1073741824,w3="initialArraySize",At={3:1,6:1,4:1,10:1,5:1},gR={20:1,31:1,56:1,18:1,16:1},kde="arraySize",lUt={20:1,31:1,56:1,18:1,16:1,59:1},yi={46:1},oJ={375:1},Cv=1e-4,bo=-2147483648,cUt="__noinit__",H1={3:1,101:1,63:1,80:1},vG="com.google.gwt.core.client.impl",hMe="String",fMe="com.google.gwt.core.client",Cde="anonymous",Ede="fnStack",dMe="Unknown",em={201:1,3:1,4:1},Qy=1e3,As=65535,Sde="January",Ade="February",Rde="March",Lde="April",y6="May",_de="June",Dde="July",Ide="August",Mde="September",Nde="October",Ode="November",Pde="December",Ev=1900,Pi={54:1,3:1,4:1},uUt="Before Christ",hUt="Anno Domini",Bde="Sunday",Fde="Monday",$de="Tuesday",Gde="Wednesday",jde="Thursday",zde="Friday",Ude="Saturday",pMe="com.google.gwt.i18n.shared",fUt="DateTimeFormat",Vde="com.google.gwt.i18n.client",dUt="DefaultDateTimeFormatInfo",pUt={3:1,4:1,35:1,205:1},b6="com.google.gwt.json.client",ef=4194303,q1=1048575,wG=524288,v6=4194304,mw=17592186044416,lJ=1e9,xG=-17592186044416,gMe="java.io",cJ={3:1,101:1,99:1,63:1,80:1},gUt={3:1,297:1,80:1},nT='For input string: "',qa=1/0,Ys=-1/0,x3=4096,mUt={3:1,4:1,585:1},Wr="org.eclipse.elk.layered",Jo=65536,TG=55296,vl={108:1,3:1,4:1},Wde=1e5,yUt=.3010299956639812,ll=4294967295,mR="0.0",Hde={45:1},yR="Unable to add element to queue",bUt={3:1,4:1,20:1,31:1,56:1,13:1,18:1,16:1,59:1},vUt={3:1,20:1,31:1,56:1,18:1,16:1,59:1},wUt={20:1,18:1,16:1},qde={3:1,51:1},kG={189:1},KC={3:1,4:1,92:1},mMe={3:1,4:1,20:1,31:1,18:1,48:1,22:1},Yde="delete",YI=14901161193847656e-24,XI=11102230246251565e-32,Xde=15525485,CG=5960464477539063e-23,yMe=16777216,uJ=16777215,bMe=", length: ",xUt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1},vMe="subMap: ",TUt=" less than ",Kde={3:1,35:1,24:1,310:1},Jde="java.util.function",KI="java.util.logging",kUt={3:1,4:1,5:1,841:1},Qde="undefined",cl="java.util.stream",wMe={521:1,677:1},hJ="fromIndex: ",CUt=" > toIndex: ",xMe=", toIndex: ",TMe="Index: ",kMe=", Size: ",bR="org.eclipse.elk.alg.common",Di={51:1},EUt="org.eclipse.elk.alg.common.compaction",SUt="Scanline/EventHandler",Km="org.eclipse.elk.alg.common.compaction.oned",AUt="CNode belongs to another CGroup.",RUt="ISpacingsHandler/1",Zde="The ",epe=" instance has been finished already.",LUt="The direction ",_Ut=" is not supported by the CGraph instance.",DUt="OneDimensionalCompactor",IUt="OneDimensionalCompactor/lambda$0$Type",MUt="Quadruplet",NUt="ScanlineConstraintCalculator",OUt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",PUt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",BUt="ScanlineConstraintCalculator/Timestamp",FUt="ScanlineConstraintCalculator/lambda$0$Type",tm={178:1,46:1},JI="org.eclipse.elk.alg.common.networksimplex",vg={171:1,3:1,4:1},$Ut="org.eclipse.elk.alg.common.nodespacing",yw="org.eclipse.elk.alg.common.nodespacing.cellsystem",vR="CENTER",GUt={216:1,337:1},CMe={3:1,4:1,5:1,593:1},w6="LEFT",x6="RIGHT",EMe="Vertical alignment cannot be null",SMe="BOTTOM",fJ="org.eclipse.elk.alg.common.nodespacing.internal",QI="UNDEFINED",a0=.01,EG="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",jUt="LabelPlacer/lambda$0$Type",zUt="LabelPlacer/lambda$1$Type",UUt="portRatioOrPosition",wR="org.eclipse.elk.alg.common.overlaps",tpe="DOWN",T6="org.eclipse.elk.alg.common.spore",T3={3:1,4:1,5:1,198:1},VUt={3:1,6:1,4:1,5:1,90:1,110:1},rpe="org.eclipse.elk.alg.force",AMe="ComponentsProcessor",WUt="ComponentsProcessor/1",RMe="ElkGraphImporter/lambda$0$Type",iT={214:1},JC="org.eclipse.elk.core",SG="org.eclipse.elk.graph.properties",HUt="IPropertyHolder",AG="org.eclipse.elk.alg.force.graph",qUt="Component Layout",LMe="org.eclipse.elk.alg.force.model",ec="org.eclipse.elk.core.data",dJ="org.eclipse.elk.force.model",_Me="org.eclipse.elk.force.iterations",DMe="org.eclipse.elk.force.repulsivePower",npe="org.eclipse.elk.force.temperature",rm=.001,ipe="org.eclipse.elk.force.repulsion",s0={148:1},ZI="org.eclipse.elk.alg.force.options",xR=1.600000023841858,Pu="org.eclipse.elk.force",RG="org.eclipse.elk.priority",k3="org.eclipse.elk.spacing.nodeNode",ape="org.eclipse.elk.spacing.edgeLabel",TR="org.eclipse.elk.aspectRatio",pJ="org.eclipse.elk.randomSeed",eM="org.eclipse.elk.separateConnectedComponents",C3="org.eclipse.elk.padding",tM="org.eclipse.elk.interactive",spe="org.eclipse.elk.portConstraints",gJ="org.eclipse.elk.edgeLabels.inline",rM="org.eclipse.elk.omitNodeMicroLayout",kR="org.eclipse.elk.nodeSize.fixedGraphSize",k6="org.eclipse.elk.nodeSize.options",QC="org.eclipse.elk.nodeSize.constraints",CR="org.eclipse.elk.nodeLabels.placement",ER="org.eclipse.elk.portLabels.placement",LG="org.eclipse.elk.topdownLayout",_G="org.eclipse.elk.topdown.scaleFactor",DG="org.eclipse.elk.topdown.hierarchicalNodeWidth",IG="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",aT="org.eclipse.elk.topdown.nodeType",IMe="origin",MMe="random",YUt="boundingBox.upLeft",XUt="boundingBox.lowRight",NMe="org.eclipse.elk.stress.fixed",OMe="org.eclipse.elk.stress.desiredEdgeLength",PMe="org.eclipse.elk.stress.dimension",BMe="org.eclipse.elk.stress.epsilon",FMe="org.eclipse.elk.stress.iterationLimit",Sv="org.eclipse.elk.stress",KUt="ELK Stress",C6="org.eclipse.elk.nodeSize.minimum",mJ="org.eclipse.elk.alg.force.stress",JUt="Layered layout",ZC="org.eclipse.elk.alg.layered",MG="org.eclipse.elk.alg.layered.compaction.components",nM="org.eclipse.elk.alg.layered.compaction.oned",yJ="org.eclipse.elk.alg.layered.compaction.oned.algs",bw="org.eclipse.elk.alg.layered.compaction.recthull",o0="org.eclipse.elk.alg.layered.components",wg="NONE",ope="MODEL_ORDER",Rc={3:1,6:1,4:1,10:1,5:1,126:1},QUt={3:1,6:1,4:1,5:1,135:1,90:1,110:1},bJ="org.eclipse.elk.alg.layered.compound",ba={43:1},Gc="org.eclipse.elk.alg.layered.graph",lpe=" -> ",ZUt="Not supported by LGraph",$Me="Port side is undefined",SR={3:1,6:1,4:1,5:1,324:1,135:1,90:1,110:1},Zy={3:1,6:1,4:1,5:1,135:1,199:1,209:1,90:1,110:1},eVt={3:1,6:1,4:1,5:1,135:1,2007:1,209:1,90:1,110:1},tVt=`([{"' \r
|
|
`,rVt=`)]}"' \r
|
|
`,nVt="The given string contains parts that cannot be parsed as numbers.",NG="org.eclipse.elk.core.math",iVt={3:1,4:1,140:1,213:1,414:1},aVt={3:1,4:1,104:1,213:1,414:1},eb="org.eclipse.elk.alg.layered.graph.transform",sVt="ElkGraphImporter",oVt="ElkGraphImporter/lambda$1$Type",lVt="ElkGraphImporter/lambda$2$Type",cVt="ElkGraphImporter/lambda$4$Type",hn="org.eclipse.elk.alg.layered.intermediate",uVt="Node margin calculation",hVt="ONE_SIDED_GREEDY_SWITCH",fVt="TWO_SIDED_GREEDY_SWITCH",cpe="No implementation is available for the layout processor ",upe="IntermediateProcessorStrategy",hpe="Node '",dVt="FIRST_SEPARATE",pVt="LAST_SEPARATE",gVt="Odd port side processing",fs="org.eclipse.elk.alg.layered.intermediate.compaction",iM="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Jm="org.eclipse.elk.alg.layered.p3order.counting",aM={220:1},E6="org.eclipse.elk.alg.layered.intermediate.loops",jf="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Av="org.eclipse.elk.alg.layered.intermediate.loops.routing",vJ="org.eclipse.elk.alg.layered.intermediate.preserveorder",nm="org.eclipse.elk.alg.layered.intermediate.wrapping",fc="org.eclipse.elk.alg.layered.options",fpe="INTERACTIVE",GMe="GREEDY",mVt="DEPTH_FIRST",yVt="EDGE_LENGTH",bVt="SELF_LOOPS",vVt="firstTryWithInitialOrder",jMe="org.eclipse.elk.layered.directionCongruency",zMe="org.eclipse.elk.layered.feedbackEdges",wJ="org.eclipse.elk.layered.interactiveReferencePoint",UMe="org.eclipse.elk.layered.mergeEdges",VMe="org.eclipse.elk.layered.mergeHierarchyEdges",WMe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",HMe="org.eclipse.elk.layered.portSortingStrategy",qMe="org.eclipse.elk.layered.thoroughness",YMe="org.eclipse.elk.layered.unnecessaryBendpoints",XMe="org.eclipse.elk.layered.generatePositionAndLayerIds",OG="org.eclipse.elk.layered.cycleBreaking.strategy",PG="org.eclipse.elk.layered.layering.strategy",KMe="org.eclipse.elk.layered.layering.layerConstraint",JMe="org.eclipse.elk.layered.layering.layerChoiceConstraint",QMe="org.eclipse.elk.layered.layering.layerId",dpe="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",ppe="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",gpe="org.eclipse.elk.layered.layering.nodePromotion.strategy",mpe="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",ype="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",sM="org.eclipse.elk.layered.crossingMinimization.strategy",ZMe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",bpe="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",vpe="org.eclipse.elk.layered.crossingMinimization.semiInteractive",eNe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",tNe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",rNe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",nNe="org.eclipse.elk.layered.crossingMinimization.positionId",iNe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",wpe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",xJ="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",E3="org.eclipse.elk.layered.nodePlacement.strategy",TJ="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",xpe="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Tpe="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",kpe="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Cpe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Epe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Spe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.recomputeNodePlacement",aNe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",sNe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",kJ="org.eclipse.elk.layered.edgeRouting.splines.mode",CJ="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Ape="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",oNe="org.eclipse.elk.layered.spacing.baseValue",lNe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",cNe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",uNe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",hNe="org.eclipse.elk.layered.priority.direction",fNe="org.eclipse.elk.layered.priority.shortness",dNe="org.eclipse.elk.layered.priority.straightness",Rpe="org.eclipse.elk.layered.compaction.connectedComponents",pNe="org.eclipse.elk.layered.compaction.postCompaction.strategy",gNe="org.eclipse.elk.layered.compaction.postCompaction.constraints",EJ="org.eclipse.elk.layered.highDegreeNodes.treatment",Lpe="org.eclipse.elk.layered.highDegreeNodes.threshold",_pe="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Y1="org.eclipse.elk.layered.wrapping.strategy",SJ="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",AJ="org.eclipse.elk.layered.wrapping.correctionFactor",oM="org.eclipse.elk.layered.wrapping.cutting.strategy",Dpe="org.eclipse.elk.layered.wrapping.cutting.cuts",Ipe="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",RJ="org.eclipse.elk.layered.wrapping.validify.strategy",LJ="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",_J="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",DJ="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Mpe="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Npe="org.eclipse.elk.layered.layerUnzipping.strategy",Ope="org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength",Ppe="org.eclipse.elk.layered.layerUnzipping.layerSplit",Bpe="org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges",mNe="org.eclipse.elk.layered.edgeLabels.sideSelection",yNe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",IJ="org.eclipse.elk.layered.considerModelOrder.strategy",bNe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",BG="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Fpe="org.eclipse.elk.layered.considerModelOrder.components",vNe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",$pe="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",Gpe="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",jpe="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId",zpe="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId",Upe="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId",wNe="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy",Vpe="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId",Wpe="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId",xNe="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy",TNe="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders",Hpe="layering",wVt="layering.minWidth",xVt="layering.nodePromotion",AR="crossingMinimization",MJ="org.eclipse.elk.hierarchyHandling",TVt="crossingMinimization.greedySwitch",kVt="nodePlacement",CVt="nodePlacement.bk",EVt="nodePlacement.networkSimplex.nodeFlexibility",SVt="edgeRouting",FG="org.eclipse.elk.edgeRouting",l0="spacing",kNe="priority",CNe="compaction",AVt="compaction.postCompaction",RVt="Specifies whether and how post-process compaction is applied.",ENe="highDegreeNodes",SNe="wrapping",LVt="wrapping.cutting",_Vt="wrapping.validify",ANe="wrapping.multiEdge",qpe="layerUnzipping",Ype="edgeLabels",lM="considerModelOrder",RR="considerModelOrder.groupModelOrder",RNe="Group ID of the Node Type",LNe="org.eclipse.elk.spacing.commentComment",_Ne="org.eclipse.elk.spacing.commentNode",DNe="org.eclipse.elk.spacing.componentComponent",INe="org.eclipse.elk.spacing.edgeEdge",Xpe="org.eclipse.elk.spacing.edgeNode",MNe="org.eclipse.elk.spacing.labelLabel",NNe="org.eclipse.elk.spacing.labelPortHorizontal",ONe="org.eclipse.elk.spacing.labelPortVertical",PNe="org.eclipse.elk.spacing.labelNode",BNe="org.eclipse.elk.spacing.nodeSelfLoop",FNe="org.eclipse.elk.spacing.portPort",$Ne="org.eclipse.elk.spacing.individual",GNe="org.eclipse.elk.port.borderOffset",jNe="org.eclipse.elk.noLayout",zNe="org.eclipse.elk.port.side",$G="org.eclipse.elk.debugMode",UNe="org.eclipse.elk.alignment",VNe="org.eclipse.elk.insideSelfLoops.activate",WNe="org.eclipse.elk.insideSelfLoops.yo",Kpe="org.eclipse.elk.direction",HNe="org.eclipse.elk.nodeLabels.padding",qNe="org.eclipse.elk.portLabels.nextToPortIfPossible",YNe="org.eclipse.elk.portLabels.treatAsGroup",XNe="org.eclipse.elk.portAlignment.default",KNe="org.eclipse.elk.portAlignment.north",JNe="org.eclipse.elk.portAlignment.south",QNe="org.eclipse.elk.portAlignment.west",ZNe="org.eclipse.elk.portAlignment.east",NJ="org.eclipse.elk.contentAlignment",eOe="org.eclipse.elk.junctionPoints",tOe="org.eclipse.elk.edge.thickness",rOe="org.eclipse.elk.edgeLabels.placement",nOe="org.eclipse.elk.port.index",iOe="org.eclipse.elk.commentBox",aOe="org.eclipse.elk.hypernode",sOe="org.eclipse.elk.port.anchor",Jpe="org.eclipse.elk.partitioning.activate",Qpe="org.eclipse.elk.partitioning.partition",OJ="org.eclipse.elk.position",oOe="org.eclipse.elk.margins",lOe="org.eclipse.elk.spacing.portsSurrounding",PJ="org.eclipse.elk.interactiveLayout",xc="org.eclipse.elk.core.util",cOe={3:1,4:1,5:1,591:1},DVt="NETWORK_SIMPLEX",uOe="SIMPLE",No={95:1,43:1},sT="org.eclipse.elk.alg.layered.p1cycles",IVt="Depth-first cycle removal",MVt="Model order cycle breaking",X1="org.eclipse.elk.alg.layered.p2layers",hOe={406:1,220:1},NVt={831:1,3:1,4:1},Bu="org.eclipse.elk.alg.layered.p3order",eE=17976931348623157e292,Zpe=5e-324,ul="org.eclipse.elk.alg.layered.p4nodes",OVt={3:1,4:1,5:1,839:1},im=1e-5,Rv="org.eclipse.elk.alg.layered.p4nodes.bk",ege="org.eclipse.elk.alg.layered.p5edges",xg="org.eclipse.elk.alg.layered.p5edges.orthogonal",tge="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",rge=1e-6,S3="org.eclipse.elk.alg.layered.p5edges.splines",nge=.09999999999999998,BJ=1e-8,PVt=4.71238898038469,BVt=1.5707963267948966,fOe=3.141592653589793,K1="org.eclipse.elk.alg.mrtree",ige=.10000000149011612,FJ="SUPER_ROOT",cM="org.eclipse.elk.alg.mrtree.graph",dOe=-17976931348623157e292,nu="org.eclipse.elk.alg.mrtree.intermediate",FVt="Processor compute fanout",$J={3:1,6:1,4:1,5:1,523:1,90:1,110:1},$Vt="Set neighbors in level",GG="org.eclipse.elk.alg.mrtree.options",GVt="DESCENDANTS",pOe="org.eclipse.elk.mrtree.compaction",gOe="org.eclipse.elk.mrtree.edgeEndTextureLength",mOe="org.eclipse.elk.mrtree.treeLevel",yOe="org.eclipse.elk.mrtree.positionConstraint",bOe="org.eclipse.elk.mrtree.weighting",vOe="org.eclipse.elk.mrtree.edgeRoutingMode",wOe="org.eclipse.elk.mrtree.searchOrder",jVt="Position Constraint",Fu="org.eclipse.elk.mrtree",zVt="org.eclipse.elk.tree",UVt="Processor arrange level",LR="org.eclipse.elk.alg.mrtree.p2order",xf="org.eclipse.elk.alg.mrtree.p4route",xOe="org.eclipse.elk.alg.radial",vw=6.283185307179586,TOe="Before",GJ="After",kOe="org.eclipse.elk.alg.radial.intermediate",VVt="COMPACTION",age="org.eclipse.elk.alg.radial.intermediate.compaction",WVt={3:1,4:1,5:1,90:1},COe="org.eclipse.elk.alg.radial.intermediate.optimization",sge="No implementation is available for the layout option ",uM="org.eclipse.elk.alg.radial.options",HVt="CompactionStrategy",EOe="org.eclipse.elk.radial.centerOnRoot",SOe="org.eclipse.elk.radial.orderId",AOe="org.eclipse.elk.radial.radius",jJ="org.eclipse.elk.radial.rotate",oge="org.eclipse.elk.radial.compactor",lge="org.eclipse.elk.radial.compactionStepSize",ROe="org.eclipse.elk.radial.sorter",LOe="org.eclipse.elk.radial.wedgeCriteria",_Oe="org.eclipse.elk.radial.optimizationCriteria",cge="org.eclipse.elk.radial.rotation.targetAngle",uge="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",DOe="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",qVt="Compaction",IOe="rotation",wd="org.eclipse.elk.radial",YVt="org.eclipse.elk.alg.radial.p1position.wedge",MOe="org.eclipse.elk.alg.radial.sorting",XVt=5.497787143782138,KVt=3.9269908169872414,JVt=2.356194490192345,QVt="org.eclipse.elk.alg.rectpacking",hM="org.eclipse.elk.alg.rectpacking.intermediate",hge="org.eclipse.elk.alg.rectpacking.options",NOe="org.eclipse.elk.rectpacking.trybox",OOe="org.eclipse.elk.rectpacking.currentPosition",POe="org.eclipse.elk.rectpacking.desiredPosition",BOe="org.eclipse.elk.rectpacking.inNewRow",FOe="org.eclipse.elk.rectpacking.orderBySize",$Oe="org.eclipse.elk.rectpacking.widthApproximation.strategy",GOe="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",jOe="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",zOe="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",UOe="org.eclipse.elk.rectpacking.packing.strategy",VOe="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",WOe="org.eclipse.elk.rectpacking.packing.compaction.iterations",HOe="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",fge="widthApproximation",ZVt="Compaction Strategy",eWt="packing.compaction",Dh="org.eclipse.elk.rectpacking",_R="org.eclipse.elk.alg.rectpacking.p1widthapproximation",zJ="org.eclipse.elk.alg.rectpacking.p2packing",tWt="No Compaction",qOe="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",jG="org.eclipse.elk.alg.rectpacking.util",UJ="No implementation available for ",A3="org.eclipse.elk.alg.spore",R3="org.eclipse.elk.alg.spore.options",oT="org.eclipse.elk.sporeCompaction",dge="org.eclipse.elk.underlyingLayoutAlgorithm",YOe="org.eclipse.elk.processingOrder.treeConstruction",XOe="org.eclipse.elk.processingOrder.spanningTreeCostFunction",pge="org.eclipse.elk.processingOrder.preferredRoot",gge="org.eclipse.elk.processingOrder.rootSelection",mge="org.eclipse.elk.structure.structureExtractionStrategy",KOe="org.eclipse.elk.compaction.compactionStrategy",JOe="org.eclipse.elk.compaction.orthogonal",QOe="org.eclipse.elk.overlapRemoval.maxIterations",ZOe="org.eclipse.elk.overlapRemoval.runScanline",yge="processingOrder",rWt="overlapRemoval",DR="org.eclipse.elk.sporeOverlap",nWt="org.eclipse.elk.alg.spore.p1structure",bge="org.eclipse.elk.alg.spore.p2processingorder",vge="org.eclipse.elk.alg.spore.p3execution",iWt="Topdown Layout",aWt="Invalid index: ",IR="org.eclipse.elk.core.alg",tE={342:1},L3={296:1},sWt="Make sure its type is registered with the ",ePe=" utility class.",MR="true",wge="false",oWt="Couldn't clone property '",lT=.05,ku="org.eclipse.elk.core.options",lWt=1.2999999523162842,cT="org.eclipse.elk.box",tPe="org.eclipse.elk.expandNodes",rPe="org.eclipse.elk.box.packingMode",cWt="org.eclipse.elk.algorithm",uWt="org.eclipse.elk.resolvedAlgorithm",nPe="org.eclipse.elk.bendPoints",hWt="org.eclipse.elk.labelManager",fWt="org.eclipse.elk.softwrappingFuzziness",dWt="org.eclipse.elk.scaleFactor",pWt="org.eclipse.elk.childAreaWidth",gWt="org.eclipse.elk.childAreaHeight",mWt="org.eclipse.elk.animate",yWt="org.eclipse.elk.animTimeFactor",bWt="org.eclipse.elk.layoutAncestors",vWt="org.eclipse.elk.maxAnimTime",wWt="org.eclipse.elk.minAnimTime",xWt="org.eclipse.elk.progressBar",TWt="org.eclipse.elk.validateGraph",kWt="org.eclipse.elk.validateOptions",CWt="org.eclipse.elk.zoomToFit",EWt="org.eclipse.elk.json.shapeCoords",SWt="org.eclipse.elk.json.edgeCoords",AWt="org.eclipse.elk.font.name",RWt="org.eclipse.elk.font.size",xge="org.eclipse.elk.topdown.sizeCategories",iPe="org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight",Tge="org.eclipse.elk.topdown.sizeApproximator",aPe="org.eclipse.elk.topdown.scaleCap",LWt="org.eclipse.elk.edge.type",_Wt="partitioning",DWt="nodeLabels",VJ="portAlignment",kge="nodeSize",Cge="port",sPe="portLabels",NR="topdown",IWt="insideSelfLoops",oPe="INHERIT",OR="org.eclipse.elk.fixed",WJ="org.eclipse.elk.random",HJ={3:1,35:1,24:1,522:1,288:1},MWt="port must have a parent node to calculate the port side",NWt="The edge needs to have exactly one edge section. Found: ",fM="org.eclipse.elk.core.util.adapters",xd="org.eclipse.emf.ecore",rE="org.eclipse.elk.graph",OWt="EMapPropertyHolder",PWt="ElkBendPoint",BWt="ElkGraphElement",FWt="ElkConnectableShape",lPe="ElkEdge",$Wt="ElkEdgeSection",GWt="EModelElement",jWt="ENamedElement",cPe="ElkLabel",uPe="ElkNode",hPe="ElkPort",zWt={94:1,93:1},S6="org.eclipse.emf.common.notify.impl",Lv="The feature '",dM="' is not a valid changeable feature",UWt="Expecting null",Ege="' is not a valid feature",VWt="The feature ID",WWt=" is not a valid feature ID",Tc=32768,HWt={109:1,94:1,93:1,57:1,52:1,100:1},Qr="org.eclipse.emf.ecore.impl",tb=2048,ww="org.eclipse.elk.graph.impl",pM="Recursive containment not allowed for ",PR="The datatype '",uT="' is not a valid classifier",Sge="The value '",nE={195:1,3:1,4:1},Age="The class '",BR="http://www.eclipse.org/elk/ElkGraph",fPe="property",gM="value",Rge="source",qWt="properties",YWt="identifier",Lge="height",_ge="width",Dge="parent",Ige="text",Mge="children",XWt="hierarchical",dPe="sources",Nge="targets",Oge="sections",qJ="bendPoints",pPe="outgoingShape",gPe="incomingShape",mPe="outgoingSections",yPe="incomingSections",Yo="org.eclipse.emf.common.util",bPe="Severe implementation error in the Json to ElkGraph importer.",am="id",Co="org.eclipse.elk.graph.json",FR="Unhandled parameter types: ",KWt="startPoint",JWt="An edge must have at least one source and one target (edge id: '",$R="').",QWt="Referenced edge section does not exist: ",ZWt=" (edge id: '",vPe="target",eHt="sourcePoint",tHt="targetPoint",YJ="group",Vi="name",rHt="connectableShape cannot be null",nHt="edge cannot be null",iHt="Passed edge is not 'simple'.",XJ="org.eclipse.elk.graph.util",zG="The 'no duplicates' constraint is violated",Pge="targetIndex=",xw=", size=",Bge="sourceIndex=",sm={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},Fge={3:1,4:1,20:1,31:1,56:1,18:1,50:1,16:1,59:1,71:1,67:1,61:1,586:1},KJ="logging",aHt="measureExecutionTime",sHt="parser.parse.1",oHt="parser.parse.2",JJ="parser.next.1",$ge="parser.next.2",lHt="parser.next.3",cHt="parser.next.4",Tw="parser.factor.1",wPe="parser.factor.2",uHt="parser.factor.3",hHt="parser.factor.4",fHt="parser.factor.5",dHt="parser.factor.6",pHt="parser.atom.1",gHt="parser.atom.2",mHt="parser.atom.3",xPe="parser.atom.4",Gge="parser.atom.5",TPe="parser.cc.1",QJ="parser.cc.2",yHt="parser.cc.3",bHt="parser.cc.5",kPe="parser.cc.6",CPe="parser.cc.7",jge="parser.cc.8",vHt="parser.ope.1",wHt="parser.ope.2",xHt="parser.ope.3",rb="parser.descape.1",THt="parser.descape.2",kHt="parser.descape.3",CHt="parser.descape.4",EHt="parser.descape.5",Td="parser.process.1",SHt="parser.quantifier.1",AHt="parser.quantifier.2",RHt="parser.quantifier.3",LHt="parser.quantifier.4",EPe="parser.quantifier.5",_Ht="org.eclipse.emf.common.notify",SPe={415:1,676:1},DHt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1},UG={373:1,151:1},mM="index=",zge={3:1,4:1,5:1,129:1},IHt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,61:1},APe={3:1,6:1,4:1,5:1,198:1},MHt={3:1,4:1,5:1,175:1,374:1},NHt=";/?:@&=+$,",OHt="invalid authority: ",PHt="EAnnotation",BHt="ETypedElement",FHt="EStructuralFeature",$Ht="EAttribute",GHt="EClassifier",jHt="EEnumLiteral",zHt="EGenericType",UHt="EOperation",VHt="EParameter",WHt="EReference",Wp=1024,HHt="ETypeParameter",Na="org.eclipse.emf.ecore.util",Uge={78:1},RPe={3:1,20:1,18:1,16:1,61:1,587:1,78:1,72:1,98:1},qHt="org.eclipse.emf.ecore.util.FeatureMap$Entry",vh=8192,yM="byte",ZJ="char",bM="double",vM="float",wM="int",xM="long",TM="short",YHt="java.lang.Object",iE={3:1,4:1,5:1,255:1},LPe={3:1,4:1,5:1,678:1},XHt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,72:1},Ul={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,72:1,98:1},VG="mixed",Si="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Zd="kind",KHt={3:1,4:1,5:1,679:1},_Pe={3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},eQ={20:1,31:1,56:1,18:1,16:1,61:1,72:1},tQ={50:1,128:1,287:1},rQ={75:1,344:1},nQ="The value of type '",iQ="' must be of type '",aE=1307,ep="http://www.eclipse.org/emf/2002/Ecore",aQ=-32768,hT="constraints",Oo="baseType",JHt="getEStructuralFeature",QHt="getFeatureID",kM="feature",ZHt="getOperationID",DPe="operation",eqt="defaultValue",tqt="eTypeParameters",rqt="isInstance",nqt="getEEnumLiteral",iqt="eContainingClass",$i={58:1},aqt={3:1,4:1,5:1,122:1},sqt="org.eclipse.emf.ecore.resource",oqt={94:1,93:1,589:1,1999:1},Vge="org.eclipse.emf.ecore.resource.impl",IPe="unspecified",WG="simple",sQ="attribute",lqt="attributeWildcard",oQ="element",Wge="elementWildcard",Tg="collapse",Hge="itemType",lQ="namespace",HG="##targetNamespace",tp="whiteSpace",MPe="wildcards",kw="http://www.eclipse.org/emf/2003/XMLType",qge="##any",GR="uninitialized",qG="The multiplicity constraint is violated",cQ="org.eclipse.emf.ecore.xml.type",cqt="ProcessingInstruction",uqt="SimpleAnyType",hqt="XMLTypeDocumentRoot",Rs="org.eclipse.emf.ecore.xml.type.impl",YG="INF",fqt="processing",dqt="ENTITIES_._base",NPe="minLength",OPe="ENTITY",uQ="NCName",pqt="IDREFS_._base",PPe="integer",Yge="token",Xge="pattern",gqt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",BPe="\\i\\c*",mqt="[\\i-[:]][\\c-[:]]*",yqt="nonPositiveInteger",XG="maxInclusive",FPe="NMTOKEN",bqt="NMTOKENS_._base",$Pe="nonNegativeInteger",KG="minInclusive",vqt="normalizedString",wqt="unsignedByte",xqt="unsignedInt",Tqt="18446744073709551615",kqt="unsignedShort",Cqt="processingInstruction",nb="org.eclipse.emf.ecore.xml.type.internal",jR=1114111,Eqt="Internal Error: shorthands: \\u",CM="xml:isDigit",Kge="xml:isWord",Jge="xml:isSpace",Qge="xml:isNameChar",Zge="xml:isInitialNameChar",Sqt="09\u0660\u0669\u06F0\u06F9\u0966\u096F\u09E6\u09EF\u0A66\u0A6F\u0AE6\u0AEF\u0B66\u0B6F\u0BE7\u0BEF\u0C66\u0C6F\u0CE6\u0CEF\u0D66\u0D6F\u0E50\u0E59\u0ED0\u0ED9\u0F20\u0F29",Aqt="AZaz\xC0\xD6\xD8\xF6\xF8\u0131\u0134\u013E\u0141\u0148\u014A\u017E\u0180\u01C3\u01CD\u01F0\u01F4\u01F5\u01FA\u0217\u0250\u02A8\u02BB\u02C1\u0386\u0386\u0388\u038A\u038C\u038C\u038E\u03A1\u03A3\u03CE\u03D0\u03D6\u03DA\u03DA\u03DC\u03DC\u03DE\u03DE\u03E0\u03E0\u03E2\u03F3\u0401\u040C\u040E\u044F\u0451\u045C\u045E\u0481\u0490\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0\u04EB\u04EE\u04F5\u04F8\u04F9\u0531\u0556\u0559\u0559\u0561\u0586\u05D0\u05EA\u05F0\u05F2\u0621\u063A\u0641\u064A\u0671\u06B7\u06BA\u06BE\u06C0\u06CE\u06D0\u06D3\u06D5\u06D5\u06E5\u06E6\u0905\u0939\u093D\u093D\u0958\u0961\u0985\u098C\u098F\u0990\u0993\u09A8\u09AA\u09B0\u09B2\u09B2\u09B6\u09B9\u09DC\u09DD\u09DF\u09E1\u09F0\u09F1\u0A05\u0A0A\u0A0F\u0A10\u0A13\u0A28\u0A2A\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59\u0A5C\u0A5E\u0A5E\u0A72\u0A74\u0A85\u0A8B\u0A8D\u0A8D\u0A8F\u0A91\u0A93\u0AA8\u0AAA\u0AB0\u0AB2\u0AB3\u0AB5\u0AB9\u0ABD\u0ABD\u0AE0\u0AE0\u0B05\u0B0C\u0B0F\u0B10\u0B13\u0B28\u0B2A\u0B30\u0B32\u0B33\u0B36\u0B39\u0B3D\u0B3D\u0B5C\u0B5D\u0B5F\u0B61\u0B85\u0B8A\u0B8E\u0B90\u0B92\u0B95\u0B99\u0B9A\u0B9C\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8\u0BAA\u0BAE\u0BB5\u0BB7\u0BB9\u0C05\u0C0C\u0C0E\u0C10\u0C12\u0C28\u0C2A\u0C33\u0C35\u0C39\u0C60\u0C61\u0C85\u0C8C\u0C8E\u0C90\u0C92\u0CA8\u0CAA\u0CB3\u0CB5\u0CB9\u0CDE\u0CDE\u0CE0\u0CE1\u0D05\u0D0C\u0D0E\u0D10\u0D12\u0D28\u0D2A\u0D39\u0D60\u0D61\u0E01\u0E2E\u0E30\u0E30\u0E32\u0E33\u0E40\u0E45\u0E81\u0E82\u0E84\u0E84\u0E87\u0E88\u0E8A\u0E8A\u0E8D\u0E8D\u0E94\u0E97\u0E99\u0E9F\u0EA1\u0EA3\u0EA5\u0EA5\u0EA7\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB0\u0EB2\u0EB3\u0EBD\u0EBD\u0EC0\u0EC4\u0F40\u0F47\u0F49\u0F69\u10A0\u10C5\u10D0\u10F6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110B\u110C\u110E\u1112\u113C\u113C\u113E\u113E\u1140\u1140\u114C\u114C\u114E\u114E\u1150\u1150\u1154\u1155\u1159\u1159\u115F\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116D\u116E\u1172\u1173\u1175\u1175\u119E\u119E\u11A8\u11A8\u11AB\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BA\u11BC\u11C2\u11EB\u11EB\u11F0\u11F0\u11F9\u11F9\u1E00\u1E9B\u1EA0\u1EF9\u1F00\u1F15\u1F18\u1F1D\u1F20\u1F45\u1F48\u1F4D\u1F50\u1F57\u1F59\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F7D\u1F80\u1FB4\u1FB6\u1FBC\u1FBE\u1FBE\u1FC2\u1FC4\u1FC6\u1FCC\u1FD0\u1FD3\u1FD6\u1FDB\u1FE0\u1FEC\u1FF2\u1FF4\u1FF6\u1FFC\u2126\u2126\u212A\u212B\u212E\u212E\u2180\u2182\u3007\u3007\u3021\u3029\u3041\u3094\u30A1\u30FA\u3105\u312C\u4E00\u9FA5\uAC00\uD7A3",Rqt="Private Use",e0e="ASSIGNED",t0e="\0\x7F\x80\xFF\u0100\u017F\u0180\u024F\u0250\u02AF\u02B0\u02FF\u0300\u036F\u0370\u03FF\u0400\u04FF\u0530\u058F\u0590\u05FF\u0600\u06FF\u0700\u074F\u0780\u07BF\u0900\u097F\u0980\u09FF\u0A00\u0A7F\u0A80\u0AFF\u0B00\u0B7F\u0B80\u0BFF\u0C00\u0C7F\u0C80\u0CFF\u0D00\u0D7F\u0D80\u0DFF\u0E00\u0E7F\u0E80\u0EFF\u0F00\u0FFF\u1000\u109F\u10A0\u10FF\u1100\u11FF\u1200\u137F\u13A0\u13FF\u1400\u167F\u1680\u169F\u16A0\u16FF\u1780\u17FF\u1800\u18AF\u1E00\u1EFF\u1F00\u1FFF\u2000\u206F\u2070\u209F\u20A0\u20CF\u20D0\u20FF\u2100\u214F\u2150\u218F\u2190\u21FF\u2200\u22FF\u2300\u23FF\u2400\u243F\u2440\u245F\u2460\u24FF\u2500\u257F\u2580\u259F\u25A0\u25FF\u2600\u26FF\u2700\u27BF\u2800\u28FF\u2E80\u2EFF\u2F00\u2FDF\u2FF0\u2FFF\u3000\u303F\u3040\u309F\u30A0\u30FF\u3100\u312F\u3130\u318F\u3190\u319F\u31A0\u31BF\u3200\u32FF\u3300\u33FF\u3400\u4DB5\u4E00\u9FFF\uA000\uA48F\uA490\uA4CF\uAC00\uD7A3\uE000\uF8FF\uF900\uFAFF\uFB00\uFB4F\uFB50\uFDFF\uFE20\uFE2F\uFE30\uFE4F\uFE50\uFE6F\uFE70\uFEFE\uFEFF\uFEFF\uFF00\uFFEF",GPe="UNASSIGNED",zR={3:1,121:1},Lqt="org.eclipse.emf.ecore.xml.type.util",hQ={3:1,4:1,5:1,376:1},jPe="org.eclipse.xtext.xbase.lib",_qt="Cannot add elements to a Range",Dqt="Cannot set elements in a Range",Iqt="Cannot remove elements from a Range",Mqt="user.agent",x,fQ,r0e,QEn=-1;d.goog=d.goog||{},d.goog.global=d.goog.global||d,fQ={},G(1,null,{},E),x.Fb=i(function(n){return c5t(this,n)},"ob"),x.Gb=i(function(){return this.Pm},"qb"),x.Hb=i(function(){return Sx(this)},"sb"),x.Ib=i(function(){var n;return j2(mf(this))+"@"+(n=Aa(this)>>>0,n.toString(16))},"ub"),x.equals=function(e){return this.Fb(e)},x.hashCode=function(){return this.Hb()},x.toString=function(){return this.Ib()};var Nqt,Oqt,Pqt;G(298,1,{298:1,2089:1},GLe),x.te=i(function(n){var o;return o=new GLe,o.i=4,n>1?o.c=BRt(this,n-1):o.c=this,o},"Aeb"),x.ue=i(function(){return _1(this),this.b},"Geb"),x.ve=i(function(){return j2(this)},"Ieb"),x.we=i(function(){return _1(this),this.k},"Keb"),x.xe=i(function(){return(this.i&4)!=0},"Meb"),x.ye=i(function(){return(this.i&1)!=0},"Neb"),x.Ib=i(function(){return JRe(this)},"Qeb"),x.i=0;var ZEn=1,Fs=j(hc,"Object",1),zPe=j(hc,"Class",298);G(2061,1,pG);var xxi=j(gG,"Optional",2061);G(1161,2061,pG,S),x.Fb=i(function(n){return n===this},"yb"),x.Hb=i(function(){return 2040732332},"zb"),x.Ib=i(function(){return"Optional.absent()"},"Ab"),x.Jb=i(function(n){return oi(n),QD(),n0e},"Bb");var n0e,Txi=j(gG,"Absent",1161);G(628,1,{},Foe);var kxi=j(gG,"Joiner",628),eSn=za(gG,"Predicate");G(578,1,{178:1,578:1,3:1,46:1},Vwt),x.Mb=i(function(n){return MMt(this,n)},"ac"),x.Lb=i(function(n){return MMt(this,n)},"Zb"),x.Fb=i(function(n){var o;return Ge(n,578)?(o=y(n,578),O9e(this.a,o.a)):!1},"$b"),x.Hb=i(function(){return VLe(this.a)+306654252},"_b"),x.Ib=i(function(){return Zyn(this.a)},"bc");var Cxi=j(gG,"Predicates/AndPredicate",578);G(411,2061,{411:1,3:1},_H),x.Fb=i(function(n){var o;return Ge(n,411)?(o=y(n,411),ta(this.a,o.a)):!1},"dc"),x.Hb=i(function(){return 1502476572+Aa(this.a)},"ec"),x.Ib=i(function(){return eUt+this.a+")"},"fc"),x.Jb=i(function(n){return new _H(OY(n.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},"gc");var Exi=j(gG,"Present",411);G(204,1,hR),x.Nb=i(function(n){So(this,n)},"kc"),x.Qb=i(function(){X4t()},"lc");var Sxi=j(wr,"UnmodifiableIterator",204);G(2041,204,fR),x.Qb=i(function(){X4t()},"nc"),x.Rb=i(function(n){throw xe(new hi)},"mc"),x.Wb=i(function(n){throw xe(new hi)},"oc");var Axi=j(wr,"UnmodifiableListIterator",2041);G(392,2041,fR),x.Ob=i(function(){return this.b<this.c},"rc"),x.Sb=i(function(){return this.b>0},"sc"),x.Pb=i(function(){if(this.b>=this.c)throw xe(new Hl);return this.Xb(this.b++)},"tc"),x.Tb=i(function(){return this.b},"uc"),x.Ub=i(function(){if(this.b<=0)throw xe(new Hl);return this.Xb(--this.b)},"vc"),x.Vb=i(function(){return this.b-1},"wc"),x.b=0,x.c=0;var Rxi=j(wr,"AbstractIndexedListIterator",392);G(702,204,hR),x.Ob=i(function(){return Vue(this)},"Ac"),x.Pb=i(function(){return VRe(this)},"Bc"),x.e=1;var Lxi=j(wr,"AbstractIterator",702);G(2049,1,{229:1}),x.Zb=i(function(){var n;return n=this.f,n||(this.f=this.ac())},"Hc"),x.Fb=i(function(n){return che(this,n)},"Ic"),x.Hb=i(function(){return Aa(this.Zb())},"Jc"),x.dc=i(function(){return this.gc()==0},"Kc"),x.ec=i(function(){return O5(this)},"Lc"),x.Ib=i(function(){return zl(this.Zb())},"Mc");var _xi=j(wr,"AbstractMultimap",2049);G(730,2049,gw),x.$b=i(function(){EX(this)},"Xc"),x._b=i(function(n){return pCt(this,n)},"Yc"),x.ac=i(function(){return new H8(this,this.c)},"Zc"),x.ic=i(function(n){return this.hc()},"$c"),x.bc=i(function(){return new xC(this,this.c)},"_c"),x.jc=i(function(){return this.mc(this.hc())},"ad"),x.kc=i(function(){return new P4t(this)},"bd"),x.lc=i(function(){return bfe(this.c.vc().Lc(),new _,64,this.d)},"cd"),x.cc=i(function(n){return oa(this,n)},"dd"),x.fc=i(function(n){return L$(this,n)},"gd"),x.gc=i(function(){return this.d},"hd"),x.mc=i(function(n){return Ir(),new O8(n)},"jd"),x.nc=i(function(){return new O4t(this)},"kd"),x.oc=i(function(){return bfe(this.c.Bc().Lc(),new R,64,this.d)},"ld"),x.pc=i(function(n,o){return new sX(this,n,o,null)},"md"),x.d=0;var Dxi=j(wr,"AbstractMapBasedMultimap",730);G(1664,730,gw),x.hc=i(function(){return new vu(this.a)},"pd"),x.jc=i(function(){return Ir(),Ir(),Go},"qd"),x.cc=i(function(n){return y(oa(this,n),16)},"sd"),x.fc=i(function(n){return y(L$(this,n),16)},"ud"),x.Zb=i(function(){return j5(this)},"od"),x.Fb=i(function(n){return che(this,n)},"rd"),x.qc=i(function(n){return y(oa(this,n),16)},"td"),x.rc=i(function(n){return y(L$(this,n),16)},"vd"),x.mc=i(function(n){return PY(y(n,16))},"wd"),x.pc=i(function(n,o){return PLt(this,n,y(o,16),null)},"xd");var Ixi=j(wr,"AbstractListMultimap",1664);G(736,1,fo),x.Nb=i(function(n){So(this,n)},"zd"),x.Ob=i(function(){return this.c.Ob()||this.e.Ob()},"Ad"),x.Pb=i(function(){var n;return this.e.Ob()||(n=y(this.c.Pb(),45),this.b=n.jd(),this.a=y(n.kd(),18),this.e=this.a.Jc()),this.sc(this.b,this.e.Pb())},"Bd"),x.Qb=i(function(){this.e.Qb(),y(qd(this.a),18).dc()&&this.c.Qb(),--this.d.d},"Cd");var Mxi=j(wr,"AbstractMapBasedMultimap/Itr",736);G(1099,736,fo,O4t),x.sc=i(function(n,o){return o},"Ed");var Nxi=j(wr,"AbstractMapBasedMultimap/1",1099);G(1100,1,{},R),x.Kb=i(function(n){return y(n,18).Lc()},"Gd");var Oxi=j(wr,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100);G(1101,736,fo,P4t),x.sc=i(function(n,o){return new xx(n,o)},"Id");var Pxi=j(wr,"AbstractMapBasedMultimap/2",1101),UPe=za(zn,"Map");G(2030,1,rT),x.wc=i(function(n){v$(this,n)},"Td"),x.$b=i(function(){this.vc().$b()},"Od"),x.tc=i(function(n){return Zhe(this,n)},"Pd"),x._b=i(function(n){return!!MDe(this,n,!1)},"Qd"),x.uc=i(function(n){var o,u,p;for(u=this.vc().Jc();u.Ob();)if(o=y(u.Pb(),45),p=o.kd(),Qe(n)===Qe(p)||n!=null&&ta(n,p))return!0;return!1},"Rd"),x.Fb=i(function(n){var o,u,p;if(n===this)return!0;if(!Ge(n,92)||(p=y(n,92),this.gc()!=p.gc()))return!1;for(u=p.vc().Jc();u.Ob();)if(o=y(u.Pb(),45),!this.tc(o))return!1;return!0},"Sd"),x.xc=i(function(n){return Yl(MDe(this,n,!1))},"Ud"),x.Hb=i(function(){return PLe(this.vc())},"Xd"),x.dc=i(function(){return this.gc()==0},"Yd"),x.ec=i(function(){return new E1(this)},"Zd"),x.yc=i(function(n,o){throw xe(new Ly("Put not supported on this map"))},"$d"),x.zc=i(function(n){sI(this,n)},"_d"),x.Ac=i(function(n){return Yl(MDe(this,n,!0))},"ae"),x.gc=i(function(){return this.vc().gc()},"be"),x.Ib=i(function(){return ZPt(this)},"ce"),x.Bc=i(function(){return new S1(this)},"de");var Bxi=j(zn,"AbstractMap",2030);G(2050,2030,rT),x.bc=i(function(){return new ZH(this)},"fe"),x.vc=i(function(){return I8t(this)},"ge"),x.ec=i(function(){var n;return n=this.g,n||(this.g=this.bc())},"he"),x.Bc=i(function(){var n;return n=this.i,n||(this.i=new aEt(this))},"ie");var Fxi=j(wr,"Maps/ViewCachingAbstractMap",2050);G(395,2050,rT,H8),x.xc=i(function(n){return Yun(this,n)},"re"),x.Ac=i(function(n){return adn(this,n)},"ue"),x.$b=i(function(){this.d==this.e.c?this.e.$b():hY(new q8e(this))},"ne"),x._b=i(function(n){return mNt(this.d,n)},"oe"),x.Dc=i(function(){return new Wwt(this)},"pe"),x.Cc=function(){return this.Dc()},x.Fb=i(function(n){return this===n||ta(this.d,n)},"qe"),x.Hb=i(function(){return Aa(this.d)},"se"),x.ec=i(function(){return this.e.ec()},"te"),x.gc=i(function(){return this.d.gc()},"ve"),x.Ib=i(function(){return zl(this.d)},"we");var $xi=j(wr,"AbstractMapBasedMultimap/AsMap",395),kd=za(hc,"Iterable");G(31,1,v3),x.Ic=i(function(n){Io(this,n)},"Ke"),x.Lc=i(function(){return new Rr(this,0)},"Ne"),x.Mc=i(function(){return new Er(null,this.Lc())},"Oe"),x.Ec=i(function(n){throw xe(new Ly("Add not supported on this collection"))},"Fe"),x.Fc=i(function(n){return Fo(this,n)},"Ge"),x.$b=i(function(){L7e(this)},"He"),x.Gc=i(function(n){return a3(this,n,!1)},"Ie"),x.Hc=i(function(n){return E$(this,n)},"Je"),x.dc=i(function(){return this.gc()==0},"Le"),x.Kc=i(function(n){return a3(this,n,!0)},"Me"),x.Nc=i(function(){return e7e(this)},"Pe"),x.Oc=i(function(n){return kI(this,n)},"Qe"),x.Ib=i(function(){return r0(this)},"Re");var Gxi=j(zn,"AbstractCollection",31),rp=za(zn,"Set");G(i0,31,bh),x.Lc=i(function(){return new Rr(this,1)},"We"),x.Fb=i(function(n){return pOt(this,n)},"Ue"),x.Hb=i(function(){return PLe(this)},"Ve");var jxi=j(zn,"AbstractSet",i0);G(2033,i0,bh);var zxi=j(wr,"Sets/ImprovedAbstractSet",2033);G(2034,2033,bh),x.$b=i(function(){this.Pc().$b()},"Ye"),x.Gc=i(function(n){return KNt(this,n)},"Ze"),x.dc=i(function(){return this.Pc().dc()},"$e"),x.Kc=i(function(n){var o;return this.Gc(n)&&Ge(n,45)?(o=y(n,45),this.Pc().ec().Kc(o.jd())):!1},"_e"),x.gc=i(function(){return this.Pc().gc()},"af");var Uxi=j(wr,"Maps/EntrySet",2034);G(1097,2034,bh,Wwt),x.Gc=i(function(n){return u_e(this.a.d.vc(),n)},"cf"),x.Jc=i(function(){return new q8e(this.a)},"df"),x.Pc=i(function(){return this.a},"ef"),x.Kc=i(function(n){var o;return u_e(this.a.d.vc(),n)?(o=y(qd(y(n,45)),45),Mcn(this.a.e,o.jd()),!0):!1},"ff"),x.Lc=i(function(){return PF(this.a.d.vc().Lc(),new Hwt(this.a))},"gf");var Vxi=j(wr,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097);G(1098,1,{},Hwt),x.Kb=i(function(n){return R_t(this.a,y(n,45))},"jf");var Wxi=j(wr,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098);G(734,1,fo,q8e),x.Nb=i(function(n){So(this,n)},"lf"),x.Pb=i(function(){var n;return n=y(this.b.Pb(),45),this.a=y(n.kd(),18),R_t(this.c,n)},"nf"),x.Ob=i(function(){return this.b.Ob()},"mf"),x.Qb=i(function(){n7(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},"of");var Hxi=j(wr,"AbstractMapBasedMultimap/AsMap/AsMapIterator",734);G(531,2033,bh,ZH),x.$b=i(function(){this.b.$b()},"qf"),x.Gc=i(function(n){return this.b._b(n)},"rf"),x.Ic=i(function(n){oi(n),this.b.wc(new uxt(n))},"sf"),x.dc=i(function(){return this.b.dc()},"tf"),x.Jc=i(function(){return new ZD(this.b.vc().Jc())},"uf"),x.Kc=i(function(n){return this.b._b(n)?(this.b.Ac(n),!0):!1},"vf"),x.gc=i(function(){return this.b.gc()},"wf");var qxi=j(wr,"Maps/KeySet",531);G(332,531,bh,xC),x.$b=i(function(){var n;hY((n=this.b.vc().Jc(),new y6e(this,n)))},"yf"),x.Hc=i(function(n){return this.b.ec().Hc(n)},"zf"),x.Fb=i(function(n){return this===n||ta(this.b.ec(),n)},"Af"),x.Hb=i(function(){return Aa(this.b.ec())},"Bf"),x.Jc=i(function(){var n;return n=this.b.vc().Jc(),new y6e(this,n)},"Cf"),x.Kc=i(function(n){var o,u;return u=0,o=y(this.b.Ac(n),18),o&&(u=o.gc(),o.$b(),this.a.d-=u),u>0},"Df"),x.Lc=i(function(){return this.b.ec().Lc()},"Ef");var Yxi=j(wr,"AbstractMapBasedMultimap/KeySet",332);G(735,1,fo,y6e),x.Nb=i(function(n){So(this,n)},"Gf"),x.Ob=i(function(){return this.c.Ob()},"Hf"),x.Pb=i(function(){return this.a=y(this.c.Pb(),45),this.a.jd()},"If"),x.Qb=i(function(){var n;n7(!!this.a),n=y(this.a.kd(),18),this.c.Qb(),this.b.a.d-=n.gc(),n.$b(),this.a=null},"Jf");var Xxi=j(wr,"AbstractMapBasedMultimap/KeySet/1",735);G(489,395,{92:1,134:1},LF),x.bc=i(function(){return this.Qc()},"Lf"),x.ec=i(function(){return this.Sc()},"Of"),x.Qc=i(function(){return new nF(this.c,this.Uc())},"Mf"),x.Rc=i(function(){return this.Uc().Rc()},"Nf"),x.Sc=i(function(){var n;return n=this.b,n||(this.b=this.Qc())},"Pf"),x.Tc=i(function(){return this.Uc().Tc()},"Qf"),x.Uc=i(function(){return y(this.d,134)},"Rf");var Kxi=j(wr,"AbstractMapBasedMultimap/SortedAsMap",489);G(437,489,lMe,I9),x.bc=i(function(){return new q8(this.a,y(y(this.d,134),138))},"Uf"),x.Qc=i(function(){return new q8(this.a,y(y(this.d,134),138))},"Vf"),x.ec=i(function(){var n;return n=this.b,y(n||(this.b=new q8(this.a,y(y(this.d,134),138))),277)},"Zf"),x.Sc=i(function(){var n;return n=this.b,y(n||(this.b=new q8(this.a,y(y(this.d,134),138))),277)},"$f"),x.Uc=i(function(){return y(y(this.d,134),138)},"ag"),x.Vc=i(function(n){return y(y(this.d,134),138).Vc(n)},"Tf"),x.Wc=i(function(n){return y(y(this.d,134),138).Wc(n)},"Wf"),x.Xc=i(function(n,o){return new I9(this.a,y(y(this.d,134),138).Xc(n,o))},"Xf"),x.Yc=i(function(n){return y(y(this.d,134),138).Yc(n)},"Yf"),x.Zc=i(function(n){return y(y(this.d,134),138).Zc(n)},"_f"),x.$c=i(function(n,o){return new I9(this.a,y(y(this.d,134),138).$c(n,o))},"bg");var Jxi=j(wr,"AbstractMapBasedMultimap/NavigableAsMap",437);G(488,332,tUt,nF),x.Lc=i(function(){return this.b.ec().Lc()},"dg");var Qxi=j(wr,"AbstractMapBasedMultimap/SortedKeySet",488);G(394,488,cMe,q8);var Zxi=j(wr,"AbstractMapBasedMultimap/NavigableKeySet",394);G(540,31,v3,sX),x.Ec=i(function(n){var o,u;return Jh(this),u=this.d.dc(),o=this.d.Ec(n),o&&(++this.f.d,u&&IF(this)),o},"kg"),x.Fc=i(function(n){var o,u,p;return n.dc()?!1:(p=(Jh(this),this.d.gc()),o=this.d.Fc(n),o&&(u=this.d.gc(),this.f.d+=u-p,p==0&&IF(this)),o)},"lg"),x.$b=i(function(){var n;n=(Jh(this),this.d.gc()),n!=0&&(this.d.$b(),this.f.d-=n,yY(this))},"mg"),x.Gc=i(function(n){return Jh(this),this.d.Gc(n)},"ng"),x.Hc=i(function(n){return Jh(this),this.d.Hc(n)},"og"),x.Fb=i(function(n){return n===this?!0:(Jh(this),ta(this.d,n))},"pg"),x.Hb=i(function(){return Jh(this),Aa(this.d)},"qg"),x.Jc=i(function(){return Jh(this),new _8e(this)},"rg"),x.Kc=i(function(n){var o;return Jh(this),o=this.d.Kc(n),o&&(--this.f.d,yY(this)),o},"sg"),x.gc=i(function(){return VSt(this)},"tg"),x.Lc=i(function(){return Jh(this),this.d.Lc()},"ug"),x.Ib=i(function(){return Jh(this),zl(this.d)},"vg");var eTi=j(wr,"AbstractMapBasedMultimap/WrappedCollection",540),zf=za(zn,"List");G(732,540,{20:1,31:1,18:1,16:1},t7e),x.gd=i(function(n){nw(this,n)},"Fg"),x.Lc=i(function(){return Jh(this),this.d.Lc()},"Gg"),x._c=i(function(n,o){var u;Jh(this),u=this.d.dc(),y(this.d,16)._c(n,o),++this.a.d,u&&IF(this)},"xg"),x.ad=i(function(n,o){var u,p,g;return o.dc()?!1:(g=(Jh(this),this.d.gc()),u=y(this.d,16).ad(n,o),u&&(p=this.d.gc(),this.a.d+=p-g,g==0&&IF(this)),u)},"yg"),x.Xb=i(function(n){return Jh(this),y(this.d,16).Xb(n)},"zg"),x.bd=i(function(n){return Jh(this),y(this.d,16).bd(n)},"Ag"),x.cd=i(function(){return Jh(this),new S5t(this)},"Bg"),x.dd=i(function(n){return Jh(this),new H7t(this,n)},"Cg"),x.ed=i(function(n){var o;return Jh(this),o=y(this.d,16).ed(n),--this.a.d,yY(this),o},"Dg"),x.fd=i(function(n,o){return Jh(this),y(this.d,16).fd(n,o)},"Eg"),x.hd=i(function(n,o){return Jh(this),PLt(this.a,this.e,y(this.d,16).hd(n,o),this.b?this.b:this)},"Hg");var tTi=j(wr,"AbstractMapBasedMultimap/WrappedList",732);G(1096,732,{20:1,31:1,18:1,16:1,59:1},d6t);var rTi=j(wr,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096);G(620,1,fo,_8e),x.Nb=i(function(n){So(this,n)},"Og"),x.Ob=i(function(){return p7(this),this.b.Ob()},"Pg"),x.Pb=i(function(){return p7(this),this.b.Pb()},"Qg"),x.Qb=i(function(){J5t(this)},"Rg");var nTi=j(wr,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620);G(733,620,Hm,S5t,H7t),x.Qb=i(function(){J5t(this)},"Zg"),x.Rb=i(function(n){var o;o=VSt(this.a)==0,(p7(this),y(this.b,128)).Rb(n),++this.a.a.d,o&&IF(this.a)},"Ug"),x.Sb=i(function(){return(p7(this),y(this.b,128)).Sb()},"Vg"),x.Tb=i(function(){return(p7(this),y(this.b,128)).Tb()},"Wg"),x.Ub=i(function(){return(p7(this),y(this.b,128)).Ub()},"Xg"),x.Vb=i(function(){return(p7(this),y(this.b,128)).Vb()},"Yg"),x.Wb=i(function(n){(p7(this),y(this.b,128)).Wb(n)},"$g");var iTi=j(wr,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",733);G(731,540,tUt,qAe),x.Lc=i(function(){return Jh(this),this.d.Lc()},"ah");var aTi=j(wr,"AbstractMapBasedMultimap/WrappedSortedSet",731);G(1095,731,cMe,v5t);var sTi=j(wr,"AbstractMapBasedMultimap/WrappedNavigableSet",1095);G(1094,540,bh,N6t),x.Lc=i(function(){return Jh(this),this.d.Lc()},"eh");var oTi=j(wr,"AbstractMapBasedMultimap/WrappedSet",1094);G(1103,1,{},_),x.Kb=i(function(n){return jcn(y(n,45))},"gh");var lTi=j(wr,"AbstractMapBasedMultimap/lambda$1$Type",1103);G(1102,1,{},qwt),x.Kb=i(function(n){return new xx(this.a,n)},"ih");var cTi=j(wr,"AbstractMapBasedMultimap/lambda$2$Type",1102),Cw=za(zn,"Map/Entry");G(358,1,wde),x.Fb=i(function(n){var o;return Ge(n,45)?(o=y(n,45),D1(this.jd(),o.jd())&&D1(this.kd(),o.kd())):!1},"jh"),x.Hb=i(function(){var n,o;return n=this.jd(),o=this.kd(),(n==null?0:Aa(n))^(o==null?0:Aa(o))},"kh"),x.ld=i(function(n){throw xe(new hi)},"lh"),x.Ib=i(function(){return this.jd()+"="+this.kd()},"mh");var uTi=j(wr,rUt,358);G(2051,31,v3),x.$b=i(function(){this.md().$b()},"nh"),x.Gc=i(function(n){var o;return Ge(n,45)?(o=y(n,45),hln(this.md(),o.jd(),o.kd())):!1},"oh"),x.Kc=i(function(n){var o;return Ge(n,45)?(o=y(n,45),RLt(this.md(),o.jd(),o.kd())):!1},"ph"),x.gc=i(function(){return this.md().d},"qh");var hTi=j(wr,"Multimaps/Entries",2051);G(737,2051,v3,t5e),x.Jc=i(function(){return this.a.kc()},"sh"),x.md=i(function(){return this.a},"th"),x.Lc=i(function(){return this.a.lc()},"uh");var fTi=j(wr,"AbstractMultimap/Entries",737);G(738,737,bh,K5e),x.Lc=i(function(){return this.a.lc()},"yh"),x.Fb=i(function(n){return ZDe(this,n)},"wh"),x.Hb=i(function(){return MIt(this)},"xh");var dTi=j(wr,"AbstractMultimap/EntrySet",738);G(739,31,v3,r5e),x.$b=i(function(){this.a.$b()},"Ah"),x.Gc=i(function(n){return rdn(this.a,n)},"Bh"),x.Jc=i(function(){return this.a.nc()},"Ch"),x.gc=i(function(){return this.a.d},"Dh"),x.Lc=i(function(){return this.a.oc()},"Eh");var pTi=j(wr,"AbstractMultimap/Values",739);G(2052,31,{834:1,20:1,31:1,18:1}),x.Ic=i(function(n){oi(n),kC(this).Ic(new bxt(n))},"Mh"),x.Lc=i(function(){var n;return n=kC(this).Lc(),bfe(n,new Y,64|n.wd()&1296,this.a.d)},"Qh"),x.Ec=i(function(n){return t6e(),!0},"Ih"),x.Fc=i(function(n){return oi(this),oi(n),Ge(n,541)?wln(y(n,834)):!n.dc()&&Iue(this,n.Jc())},"Jh"),x.Gc=i(function(n){var o;return o=y(i3(j5(this.a),n),18),(o?o.gc():0)>0},"Kh"),x.Fb=i(function(n){return Kvn(this,n)},"Lh"),x.Hb=i(function(){return Aa(kC(this))},"Nh"),x.dc=i(function(){return kC(this).dc()},"Oh"),x.Kc=i(function(n){return gFt(this,n,1)>0},"Ph"),x.Ib=i(function(){return zl(kC(this))},"Rh");var gTi=j(wr,"AbstractMultiset",2052);G(2054,2033,bh),x.$b=i(function(){EX(this.a.a)},"Sh"),x.Gc=i(function(n){var o,u;return Ge(n,490)?(u=y(n,416),y(u.a.kd(),18).gc()<=0?!1:(o=XRt(this.a,u.a.jd()),o==y(u.a.kd(),18).gc())):!1},"Th"),x.Kc=i(function(n){var o,u,p,g;return Ge(n,490)&&(u=y(n,416),o=u.a.jd(),p=y(u.a.kd(),18).gc(),p!=0)?(g=this.a,Ybn(g,o,p)):!1},"Uh");var mTi=j(wr,"Multisets/EntrySet",2054);G(1109,2054,bh,Ywt),x.Jc=i(function(){return new j4t(I8t(j5(this.a.a)).Jc())},"Wh"),x.gc=i(function(){return j5(this.a.a).gc()},"Xh");var yTi=j(wr,"AbstractMultiset/EntrySet",1109);G(619,730,gw),x.hc=i(function(){return this.nd()},"$h"),x.jc=i(function(){return this.od()},"_h"),x.cc=i(function(n){return this.pd(n)},"ci"),x.fc=i(function(n){return this.qd(n)},"ei"),x.Zb=i(function(){var n;return n=this.f,n||(this.f=this.ac())},"Zh"),x.od=i(function(){return Ir(),Ir(),bQ},"ai"),x.Fb=i(function(n){return che(this,n)},"bi"),x.pd=i(function(n){return y(oa(this,n),22)},"di"),x.qd=i(function(n){return y(L$(this,n),22)},"fi"),x.mc=i(function(n){return Ir(),new j8(y(n,22))},"gi"),x.pc=i(function(n,o){return new N6t(this,n,y(o,22))},"hi");var bTi=j(wr,"AbstractSetMultimap",619);G(1692,619,gw),x.hc=i(function(){return new My(this.b)},"ki"),x.nd=i(function(){return new My(this.b)},"li"),x.jc=i(function(){return d7e(new My(this.b))},"mi"),x.od=i(function(){return d7e(new My(this.b))},"ni"),x.cc=i(function(n){return y(y(oa(this,n),22),83)},"oi"),x.pd=i(function(n){return y(y(oa(this,n),22),83)},"pi"),x.fc=i(function(n){return y(y(L$(this,n),22),83)},"qi"),x.qd=i(function(n){return y(y(L$(this,n),22),83)},"ri"),x.mc=i(function(n){return Ge(n,277)?d7e(y(n,277)):(Ir(),new MAe(y(n,83)))},"si"),x.Zb=i(function(){var n;return n=this.f,n||(this.f=Ge(this.c,138)?new I9(this,y(this.c,138)):Ge(this.c,134)?new LF(this,y(this.c,134)):new H8(this,this.c))},"ji"),x.pc=i(function(n,o){return Ge(o,277)?new v5t(this,n,y(o,277)):new qAe(this,n,y(o,83))},"ti");var vTi=j(wr,"AbstractSortedSetMultimap",1692);G(1693,1692,gw),x.Zb=i(function(){var n;return n=this.f,y(y(n||(this.f=Ge(this.c,138)?new I9(this,y(this.c,138)):Ge(this.c,134)?new LF(this,y(this.c,134)):new H8(this,this.c)),134),138)},"vi"),x.ec=i(function(){var n;return n=this.i,y(y(n||(this.i=Ge(this.c,138)?new q8(this,y(this.c,138)):Ge(this.c,134)?new nF(this,y(this.c,134)):new xC(this,this.c)),83),277)},"xi"),x.bc=i(function(){return Ge(this.c,138)?new q8(this,y(this.c,138)):Ge(this.c,134)?new nF(this,y(this.c,134)):new xC(this,this.c)},"wi");var wTi=j(wr,"AbstractSortedKeySortedSetMultimap",1693);G(2074,1,{2011:1}),x.Fb=i(function(n){return $mn(this,n)},"yi"),x.Hb=i(function(){var n;return PLe((n=this.g,n||(this.g=new ooe(this))))},"zi"),x.Ib=i(function(){var n;return ZPt((n=this.f,n||(this.f=new LAe(this))))},"Ai");var xTi=j(wr,"AbstractTable",2074);G(669,i0,bh,ooe),x.$b=i(function(){K4t()},"Ci"),x.Gc=i(function(n){var o,u;return Ge(n,468)?(o=y(n,687),u=y(i3(s7t(this.a),Zb(o.c.e,o.b)),92),!!u&&u_e(u.vc(),new xx(Zb(o.c.c,o.a),q5(o.c,o.b,o.a)))):!1},"Di"),x.Jc=i(function(){return ysn(this.a)},"Ei"),x.Kc=i(function(n){var o,u;return Ge(n,468)?(o=y(n,687),u=y(i3(s7t(this.a),Zb(o.c.e,o.b)),92),!!u&&Ldn(u.vc(),new xx(Zb(o.c.c,o.a),q5(o.c,o.b,o.a)))):!1},"Fi"),x.gc=i(function(){return c8t(this.a)},"Gi"),x.Lc=i(function(){return mln(this.a)},"Hi");var TTi=j(wr,"AbstractTable/CellSet",669);G(1990,31,v3,Xwt),x.$b=i(function(){K4t()},"Ji"),x.Gc=i(function(n){return L1n(this.a,n)},"Ki"),x.Jc=i(function(){return bsn(this.a)},"Li"),x.gc=i(function(){return c8t(this.a)},"Mi"),x.Lc=i(function(){return kLt(this.a)},"Ni");var kTi=j(wr,"AbstractTable/Values",1990);G(1665,1664,gw);var CTi=j(wr,"ArrayListMultimapGwtSerializationDependencies",1665);G(507,1665,gw,Boe,K7e),x.hc=i(function(){return new vu(this.a)},"Ri"),x.a=0;var ETi=j(wr,"ArrayListMultimap",507);G(668,2074,{668:1,2011:1,3:1},pFt);var STi=j(wr,"ArrayTable",668);G(1986,392,fR,Q5t),x.Xb=i(function(n){return new jLe(this.a,n)},"hj");var ATi=j(wr,"ArrayTable/1",1986);G(1987,1,{},Kwt),x.rd=i(function(n){return new jLe(this.a,n)},"jj");var RTi=j(wr,"ArrayTable/1methodref$getCell$Type",1987);G(2075,1,{687:1}),x.Fb=i(function(n){var o;return n===this?!0:Ge(n,468)?(o=y(n,687),D1(Zb(this.c.e,this.b),Zb(o.c.e,o.b))&&D1(Zb(this.c.c,this.a),Zb(o.c.c,o.a))&&D1(q5(this.c,this.b,this.a),q5(o.c,o.b,o.a))):!1},"kj"),x.Hb=i(function(){return VX(Se(Ee(Fs,1),Fr,1,5,[Zb(this.c.e,this.b),Zb(this.c.c,this.a),q5(this.c,this.b,this.a)]))},"lj"),x.Ib=i(function(){return"("+Zb(this.c.e,this.b)+","+Zb(this.c.c,this.a)+")="+q5(this.c,this.b,this.a)},"mj");var LTi=j(wr,"Tables/AbstractCell",2075);G(468,2075,{468:1,687:1},jLe),x.a=0,x.b=0,x.d=0;var _Ti=j(wr,"ArrayTable/2",468);G(1989,1,{},Jwt),x.rd=i(function(n){return MDt(this.a,n)},"pj");var DTi=j(wr,"ArrayTable/2methodref$getValue$Type",1989);G(1988,392,fR,Z5t),x.Xb=i(function(n){return MDt(this.a,n)},"rj");var ITi=j(wr,"ArrayTable/3",1988);G(2042,2030,rT),x.$b=i(function(){hY(this.kc())},"tj"),x.vc=i(function(){return new dxt(this)},"uj"),x.lc=i(function(){return new N7t(this.kc(),this.gc())},"vj");var MTi=j(wr,"Maps/IteratorBasedAbstractMap",2042);G(827,2042,rT),x.$b=i(function(){throw xe(new hi)},"zj"),x._b=i(function(n){return gCt(this.c,n)},"Aj"),x.kc=i(function(){return new e6t(this,this.c.b.c.gc())},"Bj"),x.lc=i(function(){return uce(this.c.b.c.gc(),16,new Qwt(this))},"Cj"),x.xc=i(function(n){var o;return o=y(M9(this.c,n),15),o?this.td(o.a):null},"Dj"),x.dc=i(function(){return this.c.b.c.dc()},"Ej"),x.ec=i(function(){return bce(this.c)},"Fj"),x.yc=i(function(n,o){var u;if(u=y(M9(this.c,n),15),!u)throw xe(new rn(this.sd()+" "+n+" not in "+bce(this.c)));return this.ud(u.a,o)},"Gj"),x.Ac=i(function(n){throw xe(new hi)},"Hj"),x.gc=i(function(){return this.c.b.c.gc()},"Ij");var NTi=j(wr,"ArrayTable/ArrayMap",827);G(1985,1,{},Qwt),x.rd=i(function(n){return o7t(this.a,n)},"Kj");var OTi=j(wr,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1985);G(1983,358,wde,UCt),x.jd=i(function(){return Uen(this.a,this.b)},"Mj"),x.kd=i(function(){return this.a.td(this.b)},"Nj"),x.ld=i(function(n){return this.a.ud(this.b,n)},"Oj"),x.b=0;var PTi=j(wr,"ArrayTable/ArrayMap/1",1983);G(1984,392,fR,e6t),x.Xb=i(function(n){return o7t(this.a,n)},"Qj");var BTi=j(wr,"ArrayTable/ArrayMap/2",1984);G(1982,827,rT,Y8t),x.sd=i(function(){return"Column"},"Sj"),x.td=i(function(n){return q5(this.b,this.a,n)},"Tj"),x.ud=i(function(n,o){return gMt(this.b,this.a,n,o)},"Uj"),x.a=0;var FTi=j(wr,"ArrayTable/Row",1982);G(828,827,rT,LAe),x.td=i(function(n){return new Y8t(this.a,n)},"Zj"),x.yc=i(function(n,o){return y(o,92),hQr()},"$j"),x.ud=i(function(n,o){return y(o,92),fQr()},"_j"),x.sd=i(function(){return"Row"},"Yj");var $Ti=j(wr,"ArrayTable/RowMap",828);G(1127,1,Gf,VCt),x.yd=i(function(n){return(this.a.wd()&-262&n)!=0},"jk"),x.wd=i(function(){return this.a.wd()&-262},"gk"),x.xd=i(function(){return this.a.xd()},"hk"),x.Nb=i(function(n){this.a.Nb(new HCt(n,this.b))},"ik"),x.zd=i(function(n){return this.a.zd(new WCt(n,this.b))},"kk");var GTi=j(wr,"CollectSpliterators/1",1127);G(1128,1,xn,WCt),x.Ad=i(function(n){this.a.Ad(this.b.Kb(n))},"mk");var jTi=j(wr,"CollectSpliterators/1/lambda$0$Type",1128);G(1129,1,xn,HCt),x.Ad=i(function(n){this.a.Ad(this.b.Kb(n))},"ok");var zTi=j(wr,"CollectSpliterators/1/lambda$1$Type",1129);G(1124,1,Gf,yAt),x.yd=i(function(n){return((16464|this.b)&n)!=0},"tk"),x.wd=i(function(){return 16464|this.b},"qk"),x.xd=i(function(){return this.a.xd()},"rk"),x.Nb=i(function(n){this.a.Oe(new YCt(n,this.c))},"sk"),x.zd=i(function(n){return this.a.Pe(new qCt(n,this.c))},"uk"),x.b=0;var UTi=j(wr,"CollectSpliterators/1WithCharacteristics",1124);G(1125,1,mG,qCt),x.Bd=i(function(n){this.a.Ad(this.b.rd(n))},"wk");var VTi=j(wr,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1125);G(1126,1,mG,YCt),x.Bd=i(function(n){this.a.Ad(this.b.rd(n))},"yk");var WTi=j(wr,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1126);G(1120,1,Gf),x.yd=i(function(n){return(this.a&n)!=0},"Ek"),x.wd=i(function(){return this.a},"Bk"),x.xd=i(function(){return this.e&&(this.b=gAe(this.b,this.e.xd())),gAe(this.b,0)},"Ck"),x.Nb=i(function(n){this.e&&(this.e.Nb(n),this.e=null),this.c.Nb(new XCt(this,n)),this.b=0},"Dk"),x.zd=i(function(n){for(;;){if(this.e&&this.e.zd(n))return k9(this.b,yG)&&(this.b=Kd(this.b,1)),!0;if(this.e=null,!this.c.zd(new axt(this)))return!1}},"Fk"),x.a=0,x.b=0;var HTi=j(wr,"CollectSpliterators/FlatMapSpliterator",1120);G(1122,1,xn,axt),x.Ad=i(function(n){Otn(this.a,n)},"Hk");var qTi=j(wr,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1122);G(1123,1,xn,XCt),x.Ad=i(function(n){Kan(this.a,this.b,n)},"Jk");var YTi=j(wr,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1123);G(1121,1120,Gf,YLt);var XTi=j(wr,"CollectSpliterators/FlatMapSpliteratorOfObject",1121);G(254,1,xde),x.Dd=i(function(n){return this.Cd(y(n,254))},"Qk"),x.Cd=i(function(n){var o;return n==(Loe(),a0e)?1:n==(_oe(),i0e)?-1:(o=(cY(),b$(this.a,n.a)),o!=0?o:(qr(),Ge(this,514)==Ge(n,514)?0:Ge(this,514)?1:-1))},"Pk"),x.Gd=i(function(){return this.a},"Rk"),x.Fb=i(function(n){return sDe(this,n)},"Sk");var KTi=j(wr,"Cut",254);G(1796,254,xde,M4t),x.Cd=i(function(n){return n==this?0:1},"Wk"),x.Ed=i(function(n){throw xe(new N5e)},"Xk"),x.Fd=i(function(n){n.a+="+\u221E)"},"Yk"),x.Gd=i(function(){throw xe(new El(iUt))},"Zk"),x.Hb=i(function(){return Ny(),q_e(this)},"$k"),x.Hd=i(function(n){return!1},"_k"),x.Ib=i(function(){return"+\u221E"},"al");var i0e,JTi=j(wr,"Cut/AboveAll",1796);G(514,254,{254:1,514:1,3:1,35:1},s6t),x.Ed=i(function(n){qc((n.a+="(",n),this.a)},"cl"),x.Fd=i(function(n){nv(qc(n,this.a),93)},"dl"),x.Hb=i(function(){return~Aa(this.a)},"el"),x.Hd=i(function(n){return cY(),b$(this.a,n)<0},"fl"),x.Ib=i(function(){return"/"+this.a+"\\"},"gl");var QTi=j(wr,"Cut/AboveValue",514);G(1795,254,xde,N4t),x.Cd=i(function(n){return n==this?0:-1},"kl"),x.Ed=i(function(n){n.a+="(-\u221E"},"ll"),x.Fd=i(function(n){throw xe(new N5e)},"ml"),x.Gd=i(function(){throw xe(new El(iUt))},"nl"),x.Hb=i(function(){return Ny(),q_e(this)},"ol"),x.Hd=i(function(n){return!0},"pl"),x.Ib=i(function(){return"-\u221E"},"ql");var a0e,ZTi=j(wr,"Cut/BelowAll",1795);G(1797,254,xde,o6t),x.Ed=i(function(n){qc((n.a+="[",n),this.a)},"sl"),x.Fd=i(function(n){nv(qc(n,this.a),41)},"tl"),x.Hb=i(function(){return Aa(this.a)},"ul"),x.Hd=i(function(n){return cY(),b$(this.a,n)<=0},"vl"),x.Ib=i(function(){return"\\"+this.a+"/"},"wl");var eki=j(wr,"Cut/BelowValue",1797);G(536,1,qm),x.Ic=i(function(n){Io(this,n)},"zl"),x.Ib=i(function(){return Kdn(y(OY(this,"use Optional.orNull() instead of Optional.or(null)"),20).Jc())},"Al");var tki=j(wr,"FluentIterable",536);G(433,536,qm,S9),x.Jc=i(function(){return new nn(cn(this.a.Jc(),new B))},"Cl");var rki=j(wr,"FluentIterable/2",433);G(37,1,{},B),x.Kb=i(function(n){return y(n,20).Jc()},"El"),x.Fb=i(function(n){return this===n},"Fl");var nki=j(wr,"FluentIterable/2/0methodref$iterator$Type",37);G(1041,536,qm,o5t),x.Jc=i(function(){return Gm(this)},"Il");var iki=j(wr,"FluentIterable/3",1041);G(714,392,fR,_Ae),x.Xb=i(function(n){return this.a[n].Jc()},"Kl");var aki=j(wr,"FluentIterable/3/1",714);G(2035,1,{}),x.Ib=i(function(){return zl(this.Id().b)},"Ll");var ski=j(wr,"ForwardingObject",2035);G(2036,2035,aUt),x.Id=i(function(){return this.Jd()},"Rl"),x.Ic=i(function(n){Io(this,n)},"Sl"),x.Lc=i(function(){return new Rr(this,0)},"Xl"),x.Mc=i(function(){return new Er(null,this.Lc())},"Yl"),x.Ec=i(function(n){return this.Jd(),vCt()},"Ml"),x.Fc=i(function(n){return this.Jd(),wCt()},"Nl"),x.$b=i(function(){this.Jd(),xCt()},"Ol"),x.Gc=i(function(n){return this.Jd().Gc(n)},"Pl"),x.Hc=i(function(n){return this.Jd().Hc(n)},"Ql"),x.dc=i(function(){return this.Jd().b.dc()},"Tl"),x.Jc=i(function(){return this.Jd().Jc()},"Ul"),x.Kc=i(function(n){return this.Jd(),TCt()},"Vl"),x.gc=i(function(){return this.Jd().b.gc()},"Wl"),x.Nc=i(function(){return this.Jd().Nc()},"Zl"),x.Oc=i(function(n){return this.Jd().Oc(n)},"$l");var oki=j(wr,"ForwardingCollection",2036);G(2043,31,uMe),x.Jc=i(function(){return this.Md()},"fm"),x.Ec=i(function(n){throw xe(new hi)},"_l"),x.Fc=i(function(n){throw xe(new hi)},"am"),x.Kd=i(function(){var n;return n=this.c,n||(this.c=this.Ld())},"bm"),x.$b=i(function(){throw xe(new hi)},"cm"),x.Gc=i(function(n){return n!=null&&a3(this,n,!1)},"dm"),x.Ld=i(function(){switch(this.gc()){case 0:return uY(),l0e;case 1:return new Yle(oi(this.Md().Pb()));default:return new L8e(this,this.Nc())}},"em"),x.Kc=i(function(n){throw xe(new hi)},"gm");var lki=j(wr,"ImmutableCollection",2043);G(1261,2043,uMe,sxt),x.Jc=i(function(){return Y5(new iC(this.a.b.Jc()))},"mm"),x.Gc=i(function(n){return n!=null&&i9(this.a,n)},"im"),x.Hc=i(function(n){return v6e(this.a,n)},"jm"),x.dc=i(function(){return this.a.b.dc()},"km"),x.Md=i(function(){return Y5(new iC(this.a.b.Jc()))},"lm"),x.gc=i(function(){return this.a.b.gc()},"nm"),x.Nc=i(function(){return this.a.b.Nc()},"om"),x.Oc=i(function(n){return w6e(this.a,n)},"pm"),x.Ib=i(function(){return zl(this.a.b)},"qm");var cki=j(wr,"ForwardingImmutableCollection",1261);G(312,2043,dR),x.Jc=i(function(){return this.Md()},"Bm"),x.cd=i(function(){return this.Nd(0)},"Cm"),x.dd=i(function(n){return this.Nd(n)},"Em"),x.gd=i(function(n){nw(this,n)},"Im"),x.Lc=i(function(){return new Rr(this,16)},"Jm"),x.hd=i(function(n,o){return this.Od(n,o)},"Lm"),x._c=i(function(n,o){throw xe(new hi)},"tm"),x.ad=i(function(n,o){throw xe(new hi)},"um"),x.Kd=i(function(){return this},"vm"),x.Fb=i(function(n){return Gvn(this,n)},"xm"),x.Hb=i(function(){return dfn(this)},"ym"),x.bd=i(function(n){return n==null?-1:w0n(this,n)},"zm"),x.Md=i(function(){return this.Nd(0)},"Am"),x.Nd=i(function(n){return zle(this,n)},"Dm"),x.ed=i(function(n){throw xe(new hi)},"Gm"),x.fd=i(function(n,o){throw xe(new hi)},"Hm"),x.Od=i(function(n,o){var u;return JX((u=new nEt(this),new sv(u,n,o)))},"Km");var uki=j(wr,"ImmutableList",312);G(2070,312,dR),x.Jc=i(function(){return Y5(this.Pd().Jc())},"Wm"),x.hd=i(function(n,o){return JX(this.Pd().hd(n,o))},"Zm"),x.Gc=i(function(n){return n!=null&&this.Pd().Gc(n)},"Om"),x.Hc=i(function(n){return this.Pd().Hc(n)},"Pm"),x.Fb=i(function(n){return ta(this.Pd(),n)},"Qm"),x.Xb=i(function(n){return Zb(this,n)},"Rm"),x.Hb=i(function(){return Aa(this.Pd())},"Sm"),x.bd=i(function(n){return this.Pd().bd(n)},"Tm"),x.dc=i(function(){return this.Pd().dc()},"Um"),x.Md=i(function(){return Y5(this.Pd().Jc())},"Vm"),x.gc=i(function(){return this.Pd().gc()},"Xm"),x.Od=i(function(n,o){return JX(this.Pd().hd(n,o))},"Ym"),x.Nc=i(function(){return this.Pd().Oc(tt(Fs,Fr,1,this.Pd().gc(),5,1))},"$m"),x.Oc=i(function(n){return this.Pd().Oc(n)},"_m"),x.Ib=i(function(){return zl(this.Pd())},"an");var hki=j(wr,"ForwardingImmutableList",2070);G(717,1,pR),x.vc=i(function(){return q2(this)},"kn"),x.wc=i(function(n){v$(this,n)},"mn"),x.ec=i(function(){return bce(this)},"qn"),x.Bc=i(function(){return this.Td()},"xn"),x.$b=i(function(){throw xe(new hi)},"en"),x._b=i(function(n){return this.xc(n)!=null},"fn"),x.uc=i(function(n){return this.Td().Gc(n)},"gn"),x.Rd=i(function(){return new txt(this)},"hn"),x.Sd=i(function(){return new rxt(this)},"jn"),x.Fb=i(function(n){return ndn(this,n)},"ln"),x.Hb=i(function(){return q2(this).Hb()},"on"),x.dc=i(function(){return this.gc()==0},"pn"),x.yc=i(function(n,o){return dQr()},"tn"),x.Ac=i(function(n){throw xe(new hi)},"un"),x.Ib=i(function(){return kyn(this)},"vn"),x.Td=i(function(){return this.e?this.e:this.e=this.Sd()},"wn"),x.c=null,x.d=null,x.e=null;var fki=j(wr,"ImmutableMap",717);G(718,717,pR),x._b=i(function(n){return gCt(this,n)},"Bn"),x.uc=i(function(n){return uEt(this.b,n)},"Cn"),x.Qd=i(function(){return iNt(new ixt(this))},"Dn"),x.Rd=i(function(){return iNt(L7t(this.b))},"En"),x.Sd=i(function(){return new sxt(R7t(this.b))},"Fn"),x.Fb=i(function(n){return fEt(this.b,n)},"Gn"),x.xc=i(function(n){return M9(this,n)},"Hn"),x.Hb=i(function(){return Aa(this.b.c)},"In"),x.dc=i(function(){return this.b.c.dc()},"Jn"),x.gc=i(function(){return this.b.c.gc()},"Kn"),x.Ib=i(function(){return zl(this.b.c)},"Ln");var dki=j(wr,"ForwardingImmutableMap",718);G(2037,2036,Tde),x.Id=i(function(){return this.Ud()},"Mn"),x.Jd=i(function(){return this.Ud()},"Nn"),x.Lc=i(function(){return new Rr(this,1)},"Qn"),x.Fb=i(function(n){return n===this||this.Ud().Fb(n)},"On"),x.Hb=i(function(){return this.Ud().Hb()},"Pn");var pki=j(wr,"ForwardingSet",2037);G(1056,2037,Tde,ixt),x.Id=i(function(){return f7(this.a.b)},"Tn"),x.Jd=i(function(){return f7(this.a.b)},"Un"),x.Gc=i(function(n){if(Ge(n,45)&&y(n,45).jd()==null)return!1;try{return hEt(f7(this.a.b),n)}catch(o){if(o=hs(o),Ge(o,211))return!1;throw xe(o)}},"Sn"),x.Ud=i(function(){return f7(this.a.b)},"Vn"),x.Oc=i(function(n){var o,u;return o=pRt(f7(this.a.b),n),f7(this.a.b).b.gc()<o.length&&(u=o,as(u,f7(this.a.b).b.gc(),null)),o},"Wn");var gki=j(wr,"ForwardingImmutableMap/1",1056);G(2044,2043,m6),x.Jc=i(function(){return this.Md()},"Zn"),x.Lc=i(function(){return new Rr(this,1)},"$n"),x.Fb=i(function(n){return ZDe(this,n)},"Xn"),x.Hb=i(function(){return MIt(this)},"Yn");var mki=j(wr,"ImmutableSet",2044);G(709,2044,m6),x.Jc=i(function(){return Y5(new iC(this.a.b.Jc()))},"ho"),x.Gc=i(function(n){return n!=null&&i9(this.a,n)},"bo"),x.Hc=i(function(n){return v6e(this.a,n)},"co"),x.Hb=i(function(){return Aa(this.a.b)},"eo"),x.dc=i(function(){return this.a.b.dc()},"fo"),x.Md=i(function(){return Y5(new iC(this.a.b.Jc()))},"go"),x.gc=i(function(){return this.a.b.gc()},"io"),x.Nc=i(function(){return this.a.b.Nc()},"jo"),x.Oc=i(function(n){return w6e(this.a,n)},"ko"),x.Ib=i(function(){return zl(this.a.b)},"lo");var yki=j(wr,"ForwardingImmutableSet",709);G(2038,2037,sUt),x.Id=i(function(){return this.b},"mo"),x.Jd=i(function(){return this.b},"no"),x.Ud=i(function(){return this.b},"oo"),x.Lc=i(function(){return new fq(this)},"po");var bki=j(wr,"ForwardingSortedSet",2038);G(532,2042,pR,mK),x.zc=i(function(n){sI(this,n)},"Lo"),x.Bc=i(function(){var n;return n=this.d,new Ple(n||(this.d=new hoe(this)))},"Oo"),x.$b=i(function(){e$(this)},"Do"),x._b=i(function(n){return!!iI(this,n,mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))))},"Eo"),x.uc=i(function(n){return F9t(this,n)},"Fo"),x.kc=i(function(){return new t6t(this,this)},"Go"),x.wc=i(function(n){SRt(this,n)},"Ho"),x.xc=i(function(n){return RC(this,n)},"Io"),x.ec=i(function(){return new Ble(this)},"Jo"),x.yc=i(function(n,o){return qK(this,n,o)},"Ko"),x.Ac=i(function(n){var o;return o=iI(this,n,mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15)))),o?(VC(this,o),o.e=null,o.c=null,o.i):null},"Mo"),x.gc=i(function(){return this.i},"No"),x.vd=i(function(){var n;return n=this.d,new Ple(n||(this.d=new hoe(this)))},"Po"),x.f=0,x.g=0,x.i=0;var vki=j(wr,"HashBiMap",532);G(533,1,fo),x.Nb=i(function(n){So(this,n)},"So"),x.Ob=i(function(){return jLt(this)},"To"),x.Pb=i(function(){var n;if(!jLt(this))throw xe(new Hl);return n=y(qd(this.c),309),this.c=n.c,this.f=n,--this.d,this.Vd(n)},"Uo"),x.Qb=i(function(){if(this.e.g!=this.b)throw xe(new od);if(!this.f)throw xe(new El(oMe));VC(this.e,this.f),this.b=this.e.g,this.f=null},"Vo"),x.b=0,x.d=0,x.f=null;var wki=j(wr,"HashBiMap/Itr",533);G(1006,533,fo,t6t),x.Vd=i(function(n){return new KCt(this,n)},"Xo");var xki=j(wr,"HashBiMap/1",1006);G(1007,358,wde,KCt),x.jd=i(function(){return this.a.g},"Zo"),x.kd=i(function(){return this.a.i},"$o"),x.ld=i(function(n){var o,u,p;return u=this.a.i,p=mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))),p==this.a.f&&(Qe(n)===Qe(u)||n!=null&&ta(n,u))?n:(vMt(!aI(this.b.a,n,p),n),VC(this.b.a,this.a),o=new LY(this.a.g,this.a.a,n,p),K$(this.b.a,o,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=o),this.a=o,u)},"_o");var Tki=j(wr,"HashBiMap/1/MapEntry",1007);G(245,358,{358:1,245:1,3:1,45:1},xx),x.jd=i(function(){return this.g},"bp"),x.kd=i(function(){return this.i},"cp"),x.ld=i(function(n){throw xe(new hi)},"dp");var kki=j(wr,"ImmutableEntry",245);G(309,245,{358:1,309:1,245:1,3:1,45:1},LY),x.a=0,x.f=0;var s0e=j(wr,"HashBiMap/BiEntry",309);G(610,2042,pR,hoe),x.zc=i(function(n){sI(this,n)},"pp"),x.Bc=i(function(){return new Ble(this.a)},"sp"),x.$b=i(function(){e$(this.a)},"hp"),x._b=i(function(n){return F9t(this.a,n)},"ip"),x.kc=i(function(){return new r6t(this,this.a)},"jp"),x.wc=i(function(n){oi(n),SRt(this.a,new oxt(n))},"kp"),x.xc=i(function(n){return SX(this,n)},"lp"),x.ec=i(function(){return new Ple(this)},"mp"),x.yc=i(function(n,o){return HTn(this.a,n,o,!1)},"op"),x.Ac=i(function(n){var o;return o=aI(this.a,n,mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15)))),o?(VC(this.a,o),o.e=null,o.c=null,o.g):null},"qp"),x.gc=i(function(){return this.a.i},"rp"),x.vd=i(function(){return new Ble(this.a)},"tp");var Cki=j(wr,"HashBiMap/Inverse",610);G(1003,533,fo,r6t),x.Vd=i(function(n){return new JCt(this,n)},"vp");var Eki=j(wr,"HashBiMap/Inverse/1",1003);G(1004,358,wde,JCt),x.jd=i(function(){return this.a.i},"xp"),x.kd=i(function(){return this.a.g},"yp"),x.ld=i(function(n){var o,u,p;return p=this.a.g,o=mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))),o==this.a.a&&(Qe(n)===Qe(p)||n!=null&&ta(n,p))?n:(vMt(!iI(this.b.a.a,n,o),n),VC(this.b.a.a,this.a),u=new LY(n,o,this.a.i,this.a.f),this.a=u,K$(this.b.a.a,u,null),this.b.b=this.b.a.a.g,p)},"zp");var Ski=j(wr,"HashBiMap/Inverse/1/InverseEntry",1004);G(611,531,bh,Ple),x.Jc=i(function(){return new B4t(this.a.a)},"Bp"),x.Kc=i(function(n){var o;return o=aI(this.a.a,n,mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15)))),o?(VC(this.a.a,o),!0):!1},"Cp");var Aki=j(wr,"HashBiMap/Inverse/InverseKeySet",611);G(1002,533,fo,B4t),x.Vd=i(function(n){return n.i},"Ep");var Rki=j(wr,"HashBiMap/Inverse/InverseKeySet/1",1002);G(1005,1,{},oxt),x.Wd=i(function(n,o){UJr(this.a,n,o)},"Gp");var Lki=j(wr,"HashBiMap/Inverse/lambda$0$Type",1005);G(609,531,bh,Ble),x.Jc=i(function(){return new F4t(this.a)},"Ip"),x.Kc=i(function(n){var o;return o=iI(this.a,n,mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15)))),o?(VC(this.a,o),o.e=null,o.c=null,!0):!1},"Jp");var _ki=j(wr,"HashBiMap/KeySet",609);G(1001,533,fo,F4t),x.Vd=i(function(n){return n.g},"Lp");var Dki=j(wr,"HashBiMap/KeySet/1",1001);G(1093,619,gw);var Iki=j(wr,"HashMultimapGwtSerializationDependencies",1093);G(272,1093,gw,Ox),x.hc=i(function(){return new JH(r3(this.a))},"Op"),x.nd=i(function(){return new JH(r3(this.a))},"Pp"),x.a=2;var Mki=j(wr,"HashMultimap",272);G(2062,312,dR),x.Gc=i(function(n){return this.Xd().Gc(n)},"Sp"),x.dc=i(function(){return this.Xd().dc()},"Tp"),x.gc=i(function(){return this.Xd().gc()},"Up");var Nki=j(wr,"ImmutableAsList",2062);G(1995,718,pR),x.Td=i(function(){return new h5(this.a)},"Wp"),x.Bc=i(function(){return new h5(this.a)},"Xp"),x.vd=i(function(){return new h5(this.a)},"Yp");var Oki=j(wr,"ImmutableBiMap",1995);G(2040,1,{});var Pki=j(wr,"ImmutableCollection/Builder",2040);G(1017,709,m6,$4t);var Bki=j(wr,"ImmutableEnumSet",1017);G(963,392,fR,mAt),x.Xb=i(function(n){return this.a.Xb(n)},"aq");var Fki=j(wr,"ImmutableList/1",963);G(962,2040,{},V6t);var $ki=j(wr,"ImmutableList/Builder",962);G(614,204,hR,loe),x.Ob=i(function(){return this.a.Ob()},"dq"),x.Pb=i(function(){return y(this.a.Pb(),45).jd()},"eq");var Gki=j(wr,"ImmutableMap/1",614);G(1036,1,{},I),x.Kb=i(function(n){return y(n,45).jd()},"gq");var jki=j(wr,"ImmutableMap/2methodref$getKey$Type",1036);G(1035,1,{},W6t);var zki=j(wr,"ImmutableMap/Builder",1035);G(2063,2044,m6),x.Kd=i(function(){var n;return n=this.b,n||(this.b=new coe(this))},"jq"),x.Ld=i(function(){return new L8e(this,kI(this,tt(Fs,Fr,1,this.gc(),5,1)))},"kq");var Uki=j(wr,"ImmutableSet/CachingAsList",2063);G(2064,2063,m6),x.Jc=i(function(){var n;return n=q2(this.a).Md(),new loe(n)},"oq"),x.Ld=i(function(){return new coe(this)},"lq"),x.Ic=i(function(n){var o,u;for(oi(n),u=this.gc(),o=0;o<u;o++)n.Ad(y(q2(this.a).Kd().Xb(o),45).jd())},"mq"),x.Md=i(function(){var n;return n=this.b,zle(n||(this.b=new coe(this)),0)},"nq"),x.Lc=i(function(){return uce(this.gc(),1296,new nxt(this))},"pq");var Vki=j(wr,"IndexedImmutableSet",2064);G(1196,2064,m6,txt),x.Jc=i(function(){var n;return n=q2(this.a).Md(),new loe(n)},"vq"),x.Gc=i(function(n){return this.a._b(n)},"sq"),x.Ic=i(function(n){oi(n),v$(this.a,new ext(n))},"tq"),x.Md=i(function(){var n;return n=q2(this.a).Md(),new loe(n)},"uq"),x.gc=i(function(){return this.a.gc()},"wq"),x.Lc=i(function(){return PF(q2(this.a).Lc(),new I)},"xq");var Wki=j(wr,"ImmutableMapKeySet",1196);G(1197,1,{},ext),x.Wd=i(function(n,o){this.a.Ad(n)},"zq");var Hki=j(wr,"ImmutableMapKeySet/lambda$0$Type",1197);G(1193,2043,uMe,rxt),x.Jc=i(function(){return new lce(this)},"Eq"),x.Kd=i(function(){var n;return n=q2(this.a).Kd(),new QCt(this,n)},"Bq"),x.Gc=i(function(n){return n!=null&&Fmn(new lce(this),n)},"Cq"),x.Md=i(function(){return new lce(this)},"Dq"),x.gc=i(function(){return this.a.gc()},"Fq"),x.Lc=i(function(){return PF(q2(this.a).Lc(),new N)},"Gq");var qki=j(wr,"ImmutableMapValues",1193);G(1194,1,{},N),x.Kb=i(function(n){return y(n,45).kd()},"Iq");var Yki=j(wr,"ImmutableMapValues/0methodref$getValue$Type",1194);G(629,204,hR,lce),x.Ob=i(function(){return this.a.Ob()},"Kq"),x.Pb=i(function(){return y(this.a.Pb(),45).kd()},"Lq");var Xki=j(wr,"ImmutableMapValues/1",629);G(1195,2062,dR,QCt),x.Xd=i(function(){return this.a},"Nq"),x.Xb=i(function(n){return y(this.b.Xb(n),45).kd()},"Oq");var Kki=j(wr,"ImmutableMapValues/2",1195);G(1198,1,{},nxt),x.rd=i(function(n){return a7t(this.a,n)},"Qq");var Jki=j(wr,"IndexedImmutableSet/0methodref$get$Type",1198);G(630,2062,dR,coe),x.Xd=i(function(){return this.a},"Sq"),x.Xb=i(function(n){return a7t(this.a,n)},"Tq"),x.gc=i(function(){return this.a.a.gc()},"Uq");var Qki=j(wr,"IndexedImmutableSet/1",630);G(1037,536,qm,QAt),x.Ic=i(function(n){oi(n),this.b.Ic(new eEt(this.a,n))},"er"),x.Jc=i(function(){return fAe(this)},"fr");var Zki=j(wr,"Iterables/4",1037);G(1038,1,xn,eEt),x.Ad=i(function(n){fZr(this.b,this.a,n)},"ir");var e3i=j(wr,"Iterables/4/lambda$0$Type",1038);G(1039,536,qm,ZAt),x.Ic=i(function(n){oi(n),Io(this.a,new ZCt(n,this.b))},"kr"),x.Jc=i(function(){return cn(new Sn(this.a),this.b)},"lr");var t3i=j(wr,"Iterables/5",1039);G(1040,1,xn,ZCt),x.Ad=i(function(n){this.a.Ad(m5t(n))},"nr");var r3i=j(wr,"Iterables/5/lambda$0$Type",1040);G(1058,204,hR,lxt),x.Ob=i(function(){return this.a.Ob()},"Gr"),x.Pb=i(function(){return this.a.Pb()},"Hr");var n3i=j(wr,"Iterators/1",1058);G(1059,702,hR,tEt),x.Yb=i(function(){for(var n;this.b.Ob();)if(n=this.b.Pb(),this.a.Lb(n))return n;return this.e=2,null},"Jr");var i3i=j(wr,"Iterators/5",1059);G(483,1,fo),x.Nb=i(function(n){So(this,n)},"Lr"),x.Ob=i(function(){return this.b.Ob()},"Mr"),x.Pb=i(function(){return this.Yd(this.b.Pb())},"Nr"),x.Qb=i(function(){this.b.Qb()},"Or");var a3i=j(wr,"TransformedIterator",483);G(1060,483,fo,n6t),x.Yd=i(function(n){return this.a.Kb(n)},"Qr");var s3i=j(wr,"Iterators/6",1060);G(1057,392,fR,t8t),x.Xb=i(function(n){return this.a[n]},"Ur");var Bqt,o3i=j(wr,"Iterators/ArrayItr",1057);G(34,1,{34:1,50:1},nn),x.Nb=i(function(n){So(this,n)},"Zr"),x.Ob=i(function(){return Nn(this)},"$r"),x.Pb=i(function(){return vn(this)},"_r"),x.Qb=i(function(){if(!this.c)throw xe(new El(oMe));this.c.Qb(),this.c=null},"as");var l3i=j(wr,"Iterators/ConcatenatedIterator",34);G(24,1,{3:1,35:1,24:1}),x.Dd=i(function(n){return W4t(this,y(n,24))},"fs"),x.Fb=i(function(n){return this===n},"hs"),x.Hb=i(function(){return Sx(this)},"is"),x.Ib=i(function(){return Ule(this)},"js"),x.g=0;var ii=j(hc,"Enum",24);G(538,24,{538:1,3:1,35:1,24:1,50:1},G5t),x.Nb=i(function(n){So(this,n)},"ps"),x.Ob=i(function(){return!1},"qs"),x.Pb=i(function(){throw xe(new Hl)},"rs"),x.Qb=i(function(){n7(!1)},"ss");var o0e,Fqt=qn(wr,"Iterators/EmptyModifiableIterator",538,ii,ban,Wen),$qt;G(720,204,hR,a5e),x.Ob=i(function(){return!this.a},"ys"),x.Pb=i(function(){if(this.a)throw xe(new Hl);return this.a=!0,this.b},"zs"),x.a=!1;var c3i=j(wr,"Iterators/SingletonIterator",720);G(1880,619,gw);var u3i=j(wr,"LinkedHashMultimapGwtSerializationDependencies",1880);G(1881,1880,gw,QMt),x.hc=i(function(){return new jle(r3(this.b))},"Ds"),x.$b=i(function(){EX(this),QB(this.a,this.a)},"Cs"),x.nd=i(function(){return new jle(r3(this.b))},"Es"),x.ic=i(function(n){return new HMt(this,n,this.b)},"Fs"),x.kc=i(function(){return new b7e(this)},"Gs"),x.lc=i(function(){var n;return new Rr((n=this.g,y(n||(this.g=new K5e(this)),22)),17)},"Hs"),x.ec=i(function(){var n;return n=this.i,n||(this.i=new xC(this,this.c))},"Is"),x.nc=i(function(){return new Q5e(new b7e(this))},"Ls"),x.oc=i(function(){var n;return PF(new Rr((n=this.g,y(n||(this.g=new K5e(this)),22)),17),new O)},"Ms"),x.b=2;var h3i=j(wr,"LinkedHashMultimap",1881);G(1884,1,{},O),x.Kb=i(function(n){return y(n,45).kd()},"Os");var f3i=j(wr,"LinkedHashMultimap/0methodref$getValue$Type",1884);G(819,1,fo,b7e),x.Nb=i(function(n){So(this,n)},"Rs"),x.Pb=i(function(){return ofn(this)},"Ts"),x.Ob=i(function(){return this.a!=this.b.a},"Ss"),x.Qb=i(function(){n7(!!this.c),RLt(this.b,this.c.g,this.c.i),this.c=null},"Us");var d3i=j(wr,"LinkedHashMultimap/1",819);G(227,245,{358:1,245:1,227:1,594:1,3:1,45:1},C7e),x.Zd=i(function(){return y(qd(this.f),594)},"Ws"),x.$d=i(function(n){this.c=n},"Xs"),x._d=i(function(n){this.f=n},"Ys"),x.d=0;var Gqt=j(wr,"LinkedHashMultimap/ValueEntry",227);G(1882,2033,{594:1,20:1,31:1,18:1,22:1},HMt),x.Ec=i(function(n){var o,u,p,g,w;for(w=mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))),o=w&this.b.length-1,g=this.b[o],u=g;u;u=u.a)if(u.d==w&&D1(u.i,n))return!1;return p=new C7e(this.c,n,w,g),nCt(this.d,p),p.f=this,this.d=p,QB(y(qd(this.g.a.b),227),p),QB(p,this.g.a),this.b[o]=p,++this.f,++this.e,Omn(this),!0},"at"),x.$b=i(function(){var n,o;for(cF(this.b,null),this.f=0,n=this.a;n!=this;n=n.Zd())o=y(n,227),QB(y(qd(o.b),227),y(qd(o.e),227));this.a=this,this.d=this,++this.e},"bt"),x.Gc=i(function(n){var o,u;for(u=mi($o(Ym,jm(mi($o(n==null?0:Aa(n),Xm)),15))),o=this.b[u&this.b.length-1];o;o=o.a)if(o.d==u&&D1(o.i,n))return!0;return!1},"ct"),x.Ic=i(function(n){var o;for(oi(n),o=this.a;o!=this;o=o.Zd())n.Ad(y(o,227).i)},"dt"),x.Zd=i(function(){return this.a},"et"),x.Jc=i(function(){return new v7t(this)},"ft"),x.Kc=i(function(n){return B$t(this,n)},"gt"),x.$d=i(function(n){this.d=n},"ht"),x._d=i(function(n){this.a=n},"it"),x.gc=i(function(){return this.f},"jt"),x.e=0,x.f=0;var p3i=j(wr,"LinkedHashMultimap/ValueSet",1882);G(1883,1,fo,v7t),x.Nb=i(function(n){So(this,n)},"mt"),x.Ob=i(function(){return W8e(this),this.b!=this.c},"nt"),x.Pb=i(function(){var n,o;if(W8e(this),this.b==this.c)throw xe(new Hl);return n=y(this.b,227),o=n.i,this.d=n,this.b=y(qd(n.f),594),o},"ot"),x.Qb=i(function(){W8e(this),n7(!!this.d),B$t(this.c,this.d.i),this.a=this.c.e,this.d=null},"pt"),x.a=0;var g3i=j(wr,"LinkedHashMultimap/ValueSet/1",1883);G(768,2049,gw,n5t),x.Zb=i(function(){var n;return n=this.f,n||(this.f=new A6e(this))},"wt"),x.Fb=i(function(n){return che(this,n)},"Bt"),x.cc=i(function(n){return new zoe(this,n)},"Ct"),x.fc=i(function(n){return IRe(this,n)},"Ft"),x.$b=i(function(){e7t(this)},"xt"),x._b=i(function(n){return oEt(this,n)},"yt"),x.ac=i(function(){return new A6e(this)},"zt"),x.bc=i(function(){return new fxt(this)},"At"),x.qc=i(function(n){return new zoe(this,n)},"Dt"),x.dc=i(function(){return!this.a},"Et"),x.rc=i(function(n){return IRe(this,n)},"Gt"),x.gc=i(function(){return this.d},"Ht"),x.c=0,x.d=0;var m3i=j(wr,"LinkedListMultimap",768);G(56,31,gR),x.gd=i(function(n){nw(this,n)},"Xt"),x.Lc=i(function(){return new Rr(this,16)},"Yt"),x._c=i(function(n,o){throw xe(new Ly("Add not supported on this list"))},"Kt"),x.Ec=i(function(n){return this._c(this.gc(),n),!0},"Lt"),x.ad=i(function(n,o){var u,p,g;for(Ur(o),u=!1,g=o.Jc();g.Ob();)p=g.Pb(),this._c(n++,p),u=!0;return u},"Mt"),x.$b=i(function(){this.ae(0,this.gc())},"Nt"),x.Fb=i(function(n){return O9e(this,n)},"Ot"),x.Hb=i(function(){return VLe(this)},"Pt"),x.bd=i(function(n){return dIt(this,n)},"Qt"),x.Jc=i(function(){return new VD(this)},"Rt"),x.cd=i(function(){return this.dd(0)},"St"),x.dd=i(function(n){return new yo(this,n)},"Tt"),x.ed=i(function(n){throw xe(new Ly("Remove not supported on this list"))},"Ut"),x.ae=i(function(n,o){var u,p;for(p=this.dd(n),u=n;u<o;++u)p.Pb(),p.Qb()},"Vt"),x.fd=i(function(n,o){throw xe(new Ly("Set not supported on this list"))},"Wt"),x.hd=i(function(n,o){return new sv(this,n,o)},"Zt"),x.j=0;var y3i=j(zn,"AbstractList",56);G(2027,56,gR),x._c=i(function(n,o){e7(this,n,o)},"cu"),x.ad=i(function(n,o){return WMt(this,n,o)},"du"),x.Xb=i(function(n){return Bc(this,n)},"eu"),x.Jc=i(function(){return this.dd(0)},"fu"),x.ed=i(function(n){return ofe(this,n)},"gu"),x.fd=i(function(n,o){var u,p;u=this.dd(n);try{return p=u.Pb(),u.Wb(o),p}catch(g){throw g=hs(g),Ge(g,112)?xe(new yu("Can't set element "+n)):xe(g)}},"hu");var b3i=j(zn,"AbstractSequentialList",2027);G(637,2027,gR,zoe),x.dd=i(function(n){return a6t(this,n)},"ku"),x.gc=i(function(){var n;return n=y(Jr(this.a.b,this.b),262),n?n.a:0},"lu");var v3i=j(wr,"LinkedListMultimap/1",637);G(1281,2033,bh,fxt),x.Gc=i(function(n){return oEt(this.a,n)},"nu"),x.Jc=i(function(){return new LIt(this.a)},"ou"),x.Kc=i(function(n){return!IRe(this.a,n).a.dc()},"pu"),x.gc=i(function(){return a9(this.a.b)},"qu");var w3i=j(wr,"LinkedListMultimap/1KeySetImpl",1281);G(1280,1,fo,LIt),x.Nb=i(function(n){So(this,n)},"tu"),x.Ob=i(function(){return H8e(this),!!this.c},"uu"),x.Pb=i(function(){if(H8e(this),!this.c)throw xe(new Hl);this.a=this.c,ys(this.d,this.a.a);do this.c=this.c.b;while(this.c&&!ys(this.d,this.c.a));return this.a.a},"vu"),x.Qb=i(function(){H8e(this),n7(!!this.a),hY(new Aue(this.e,this.a.a)),this.a=null,this.b=this.e.c},"wu"),x.b=0;var x3i=j(wr,"LinkedListMultimap/DistinctKeyIterator",1280);G(262,1,{262:1},O7e),x.a=0;var T3i=j(wr,"LinkedListMultimap/KeyList",262);G(498,358,{358:1,498:1,45:1},rEt),x.jd=i(function(){return this.a},"zu"),x.kd=i(function(){return this.f},"Au"),x.ld=i(function(n){var o;return o=this.f,this.f=n,o},"Bu");var k3i=j(wr,"LinkedListMultimap/Node",498);G(555,1,Hm,Aue,VBt),x.Nb=i(function(n){So(this,n)},"Hu"),x.Rb=i(function(n){this.e=vIe(this.f,this.b,n,this.c),++this.d,this.a=null},"Gu"),x.Ob=i(function(){return!!this.c},"Iu"),x.Sb=i(function(){return!!this.e},"Ju"),x.Pb=i(function(){return XRe(this)},"Ku"),x.Tb=i(function(){return this.d},"Lu"),x.Ub=i(function(){return b9t(this)},"Mu"),x.Vb=i(function(){return this.d-1},"Nu"),x.Qb=i(function(){n7(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,P2n(this.f,this.a),this.a=null},"Ou"),x.Wb=i(function(n){AAe(!!this.a),this.a.f=n},"Pu"),x.d=0;var C3i=j(wr,"LinkedListMultimap/ValueForKeyIterator",555);G(1013,56,gR),x._c=i(function(n,o){this.a._c(n,o)},"_u"),x.ad=i(function(n,o){return this.a.ad(n,o)},"av"),x.Gc=i(function(n){return this.a.Gc(n)},"bv"),x.Xb=i(function(n){return this.a.Xb(n)},"cv"),x.ed=i(function(n){return this.a.ed(n)},"dv"),x.fd=i(function(n,o){return this.a.fd(n,o)},"ev"),x.gc=i(function(){return this.a.gc()},"fv");var E3i=j(wr,"Lists/AbstractListWrapper",1013);G(1014,1013,lUt);var S3i=j(wr,"Lists/RandomAccessListWrapper",1014);G(1016,1014,lUt,nEt),x.dd=i(function(n){return this.a.dd(n)},"hv");var A3i=j(wr,"Lists/1",1016);G(432,56,{432:1,20:1,31:1,56:1,18:1,16:1},b6e),x._c=i(function(n,o){this.a._c(l7(this,n),o)},"mv"),x.$b=i(function(){this.a.$b()},"nv"),x.Xb=i(function(n){return this.a.Xb(g7e(this,n))},"ov"),x.Jc=i(function(){return nLt(this,0)},"pv"),x.dd=i(function(n){return nLt(this,n)},"qv"),x.ed=i(function(n){return this.a.ed(g7e(this,n))},"rv"),x.ae=i(function(n,o){(OLt(n,o,this.a.gc()),bf(this.a.hd(l7(this,o),l7(this,n)))).$b()},"sv"),x.fd=i(function(n,o){return this.a.fd(g7e(this,n),o)},"tv"),x.gc=i(function(){return this.a.gc()},"uv"),x.hd=i(function(n,o){return OLt(n,o,this.a.gc()),bf(this.a.hd(l7(this,o),l7(this,n)))},"vv");var R3i=j(wr,"Lists/ReverseList",432);G(1012,432,{432:1,20:1,31:1,56:1,18:1,16:1,59:1},G4t);var L3i=j(wr,"Lists/RandomAccessReverseList",1012);G(1015,1,Hm,iEt),x.Nb=i(function(n){So(this,n)},"zv"),x.Rb=i(function(n){this.c.Rb(n),this.c.Ub(),this.a=!1},"yv"),x.Ob=i(function(){return this.c.Sb()},"Av"),x.Sb=i(function(){return this.c.Ob()},"Bv"),x.Pb=i(function(){if(!this.c.Sb())throw xe(new Hl);return this.a=!0,this.c.Ub()},"Cv"),x.Tb=i(function(){return l7(this.b,this.c.Tb())},"Dv"),x.Ub=i(function(){if(!this.c.Ob())throw xe(new Hl);return this.a=!0,this.c.Pb()},"Ev"),x.Vb=i(function(){return l7(this.b,this.c.Tb())-1},"Fv"),x.Qb=i(function(){n7(this.a),this.c.Qb(),this.a=!1},"Gv"),x.Wb=i(function(n){AAe(this.a),this.c.Wb(n)},"Hv"),x.a=!1;var _3i=j(wr,"Lists/ReverseList/1",1015);G(431,483,fo,ZD),x.Yd=i(function(n){return lq(n)},"Uv");var D3i=j(wr,"Maps/1",431);G(701,483,fo,Q5e),x.Yd=i(function(n){return y(n,45).kd()},"Wv");var I3i=j(wr,"Maps/2",701);G(959,483,fo,i6t),x.Yd=i(function(n){return new xx(n,mCt(this.a,n))},"Yv");var M3i=j(wr,"Maps/3",959);G(956,2034,bh,dxt),x.Ic=i(function(n){XJr(this.a,n)},"$v"),x.Jc=i(function(){return this.a.kc()},"_v"),x.Pc=i(function(){return this.a},"aw"),x.Lc=i(function(){return this.a.lc()},"bw");var N3i=j(wr,"Maps/IteratorBasedAbstractMap/1",956);G(957,1,{},uxt),x.Wd=i(function(n,o){this.a.Ad(n)},"dw");var O3i=j(wr,"Maps/KeySet/lambda$0$Type",957);G(955,31,v3,aEt),x.$b=i(function(){this.a.$b()},"fw"),x.Gc=i(function(n){return this.a.uc(n)},"gw"),x.Ic=i(function(n){oi(n),this.a.wc(new hxt(n))},"hw"),x.dc=i(function(){return this.a.dc()},"iw"),x.Jc=i(function(){return new Q5e(this.a.vc().Jc())},"jw"),x.Kc=i(function(n){var o,u;try{return a3(this,n,!0)}catch(p){if(p=hs(p),Ge(p,47)){for(u=this.a.vc().Jc();u.Ob();)if(o=y(u.Pb(),45),D1(n,o.kd()))return this.a.Ac(o.jd()),!0;return!1}else throw xe(p)}},"kw"),x.gc=i(function(){return this.a.gc()},"lw");var P3i=j(wr,"Maps/Values",955);G(958,1,{},hxt),x.Wd=i(function(n,o){this.a.Ad(o)},"nw");var B3i=j(wr,"Maps/Values/lambda$0$Type",958);G(740,2050,rT,A6e),x.xc=i(function(n){return this.a._b(n)?this.a.cc(n):null},"uw"),x.Ac=i(function(n){return this.a._b(n)?this.a.fc(n):null},"xw"),x.$b=i(function(){this.a.$b()},"rw"),x._b=i(function(n){return this.a._b(n)},"sw"),x.Dc=i(function(){return new gxt(this)},"tw"),x.Cc=function(){return this.Dc()},x.dc=i(function(){return this.a.dc()},"vw"),x.ec=i(function(){return this.a.ec()},"ww"),x.gc=i(function(){return this.a.ec().gc()},"yw");var F3i=j(wr,"Multimaps/AsMap",740);G(1104,2034,bh,gxt),x.Jc=i(function(){return den(this.a.a.ec(),new cxt(this))},"Bw"),x.Pc=i(function(){return this.a},"Cw"),x.Kc=i(function(n){var o;return KNt(this,n)?(o=y(qd(y(n,45)),45),aQr(this.a,o.jd()),!0):!1},"Dw");var $3i=j(wr,"Multimaps/AsMap/EntrySet",1104);G(1108,1,{},cxt),x.Kb=i(function(n){return mCt(this,n)},"Gw"),x.Fb=i(function(n){return this===n},"Hw");var G3i=j(wr,"Multimaps/AsMap/EntrySet/lambda$0$Type",1108);G(541,2052,{541:1,834:1,20:1,31:1,18:1},mxt),x.$b=i(function(){EX(this.a)},"Lw"),x.Gc=i(function(n){return pCt(this.a,n)},"Mw"),x.Ic=i(function(n){oi(n),Io(z9(this.a),new pxt(n))},"Nw"),x.Jc=i(function(){return new ZD(z9(this.a).a.kc())},"Ow"),x.gc=i(function(){return this.a.d},"Pw"),x.Lc=i(function(){return PF(z9(this.a).Lc(),new P)},"Qw");var j3i=j(wr,"Multimaps/Keys",541);G(1106,1,{},P),x.Kb=i(function(n){return y(n,45).jd()},"Sw");var z3i=j(wr,"Multimaps/Keys/0methodref$getKey$Type",1106);G(1105,483,fo,j4t),x.Yd=i(function(n){return new yxt(y(n,45))},"Uw");var U3i=j(wr,"Multimaps/Keys/1",1105);G(2053,1,{416:1}),x.Fb=i(function(n){var o;return Ge(n,490)?(o=y(n,416),y(this.a.kd(),18).gc()==y(o.a.kd(),18).gc()&&D1(this.a.jd(),o.a.jd())):!1},"Vw"),x.Hb=i(function(){var n;return n=this.a.jd(),(n==null?0:Aa(n))^y(this.a.kd(),18).gc()},"Ww"),x.Ib=i(function(){var n,o;return o=_9(this.a.jd()),n=y(this.a.kd(),18).gc(),n==1?o:o+" x "+n},"Xw");var V3i=j(wr,"Multisets/AbstractEntry",2053);G(490,2053,{490:1,416:1},yxt);var W3i=j(wr,"Multimaps/Keys/1/1",490);G(1107,1,xn,pxt),x.Ad=i(function(n){this.a.Ad(y(n,45).jd())},"$w");var H3i=j(wr,"Multimaps/Keys/lambda$1$Type",1107);G(1110,1,xn,$),x.Ad=i(function(n){Cin(y(n,416))},"cx");var q3i=j(wr,"Multiset/lambda$0$Type",1110);G(741,1,xn,bxt),x.Ad=i(function(n){nhn(this.a,y(n,416))},"ex");var Y3i=j(wr,"Multiset/lambda$1$Type",741);G(1111,1,{},V);var X3i=j(wr,"Multisets/0methodref$add$Type",1111);G(742,1,{},Y),x.Kb=i(function(n){return Cln(y(n,416))},"lx");var K3i=j(wr,"Multisets/lambda$1$Type",742);G(2071,1,pG);var J3i=j(wr,"RangeGwtSerializationDependencies",2071);G(508,2071,{178:1,508:1,3:1,46:1},Q_e),x.Lb=i(function(n){return P8t(this,y(n,35))},"px"),x.Mb=i(function(n){return P8t(this,y(n,35))},"tx"),x.Fb=i(function(n){var o;return Ge(n,508)?(o=y(n,508),sDe(this.a,o.a)&&sDe(this.b,o.b)):!1},"rx"),x.Hb=i(function(){return this.a.Hb()*31+this.b.Hb()},"sx"),x.Ib=i(function(){return QLt(this.a,this.b)},"ux");var Q3i=j(wr,"Range",508);G(643,2062,dR,L8e),x.dd=i(function(n){return zle(this.b,n)},"Bx"),x.Xd=i(function(){return this.a},"yx"),x.Xb=i(function(n){return Zb(this.b,n)},"zx"),x.Nd=i(function(n){return zle(this.b,n)},"Ax");var Z3i=j(wr,"RegularImmutableAsList",643);G(646,2070,dR,rue),x.Pd=i(function(){return this.a},"Fx");var l0e,e4i=j(wr,"RegularImmutableList",646);G(537,718,pR,R6e,L6e);var jqt,t4i=j(wr,"RegularImmutableMap",537);G(719,709,m6,_6e);var VPe,r4i=j(wr,"RegularImmutableSet",719);G(2039,i0,bh),x.Jc=i(function(){return new _7e(this.a,this.b)},"Zx"),x.Ec=i(function(n){throw xe(new hi)},"Wx"),x.Fc=i(function(n){throw xe(new hi)},"Xx"),x.$b=i(function(){throw xe(new hi)},"Yx"),x.Kc=i(function(n){throw xe(new hi)},"$x");var n4i=j(wr,"Sets/SetView",2039);G(960,2039,bh,sEt),x.Jc=i(function(){return new _7e(this.a,this.b)},"ey"),x.Gc=i(function(n){return pce(this.a,n)&&this.b.Gc(n)},"by"),x.Hc=i(function(n){return E$(this.a,n)&&this.b.Hc(n)},"cy"),x.dc=i(function(){return MOt(this.b,this.a)},"dy"),x.gc=i(function(){return x$(this)},"fy"),x.Mc=i(function(){return Hi(new Er(null,new Rr(this.a,1)),new vxt(this.b))},"gy");var i4i=j(wr,"Sets/2",960);G(961,1,yi,vxt),x.Mb=i(function(n){return this.a.Gc(n)},"iy");var a4i=j(wr,"Sets/2/0methodref$contains$Type",961);G(703,702,hR,_7e),x.Yb=i(function(){for(var n;pAe(this.a);)if(n=J9(this.a),this.c.Gc(n))return n;return this.e=2,null},"ky");var s4i=j(wr,"Sets/2/1",703);G(607,2038,{607:1,3:1,20:1,18:1,277:1,22:1,83:1},CRt),x.Id=i(function(){return this.b},"my"),x.Jd=i(function(){return this.b},"ny"),x.Ud=i(function(){return this.b},"oy"),x.Ic=i(function(n){this.a.Ic(n)},"py"),x.Mc=i(function(){return this.a.Mc()},"qy");var o4i=j(wr,"Sets/UnmodifiableNavigableSet",607);G(1996,1995,pR,S7t),x.Td=i(function(){return new h5(this.a)},"sy"),x.Bc=i(function(){return new h5(this.a)},"ty"),x.vd=i(function(){return new h5(this.a)},"uy");var l4i=j(wr,"SingletonImmutableBiMap",1996);G(647,2070,dR,Yle),x.Pd=i(function(){return this.a},"wy");var c4i=j(wr,"SingletonImmutableList",647);G(359,2044,m6,h5),x.Jc=i(function(){return new a5e(this.a)},"Ay"),x.Gc=i(function(n){return ta(this.a,n)},"yy"),x.Md=i(function(){return new a5e(this.a)},"zy"),x.gc=i(function(){return 1},"By");var u4i=j(wr,"SingletonImmutableSet",359);G(1118,1,{},L),x.Kb=i(function(n){return y(n,162)},"Gy");var h4i=j(wr,"Streams/lambda$0$Type",1118);G(1119,1,oJ,wxt),x.be=i(function(){qmn(this.a)},"Iy");var f4i=j(wr,"Streams/lambda$1$Type",1119);G(1694,1693,gw,iRt),x.Zb=i(function(){var n;return n=this.f,y(y(n||(this.f=Ge(this.c,138)?new I9(this,y(this.c,138)):Ge(this.c,134)?new LF(this,y(this.c,134)):new H8(this,this.c)),134),138)},"Ly"),x.hc=i(function(){return new My(this.b)},"Oy"),x.nd=i(function(){return new My(this.b)},"Py"),x.ec=i(function(){var n;return n=this.i,y(y(n||(this.i=Ge(this.c,138)?new q8(this,y(this.c,138)):Ge(this.c,134)?new nF(this,y(this.c,134)):new xC(this,this.c)),83),277)},"Ry"),x.ac=i(function(){return Ge(this.c,138)?new I9(this,y(this.c,138)):Ge(this.c,134)?new LF(this,y(this.c,134)):new H8(this,this.c)},"Ny"),x.ic=i(function(n){return n==null&&this.a.Le(n,n),new My(this.b)},"Qy");var d4i=j(wr,"TreeMultimap",1694);G(80,1,{3:1,80:1}),x.ce=i(function(n){return new Error(n)},"hz"),x.de=i(function(){return this.e},"jz"),x.ee=i(function(){var n,o,u;for(u=(this.k==null&&(this.k=tt(c0e,Dt,80,0,0,1)),this.k),o=tt(Fs,Fr,1,u.length,5,1),n=0;n<u.length;n++)o[n]=u[n].e;return o},"kz"),x.fe=i(function(){return this.f},"lz"),x.ge=i(function(){return this.g},"mz"),x.he=i(function(){eQr(this,xln(this.ce(FY(this,this.g)))),V3t(this)},"nz"),x.Ib=i(function(){return FY(this,this.ge())},"oz"),x.e=cUt,x.i=!1,x.n=!0;var c0e=j(hc,"Throwable",80);G(101,80,{3:1,101:1,80:1});var p4i=j(hc,"Exception",101);G(63,101,H1,$2,ql);var g4i=j(hc,"RuntimeException",63);G(597,63,H1);var m4i=j(hc,"JsException",597);G(857,597,H1);var y4i=j(vG,"JavaScriptExceptionBase",857);G(474,857,{474:1,3:1,101:1,63:1,80:1},ZMt),x.ge=i(function(){return s1n(this),this.c},"xz"),x.ie=i(function(){return Qe(this.b)===Qe(WPe)?null:this.b},"yz");var WPe,b4i=j(fMe,"JavaScriptException",474),zqt=j(fMe,"JavaScriptObject$",0),u0e;G(2012,1,{});var v4i=j(fMe,"Scheduler",2012),dQ=0,Uqt=0,pQ=-1;G(884,2012,{},Q);var HPe,w4i=j(vG,"SchedulerImpl",884),h0e;G(2023,1,{});var x4i=j(vG,"StackTraceCreator/Collector",2023);G(858,2023,{},q),x.je=i(function(n){var o={},u,p=[];n[Ede]=p;for(var g=arguments.callee.caller;g;){var w=(g7(),g.name||(g.name=fhn(g.toString())));p.push(w);var k=":"+w,A=o[k];if(A){var D,M;for(D=0,M=A.length;D<M;D++)if(A[D]===g)return}(A||(o[k]=[])).push(g),g=g.caller}},"fA"),x.ke=i(function(n){var o,u,p,g;for(p=(g7(),n&&n[Ede]?n[Ede]:[]),u=p.length,g=tt(sBe,Dt,325,u,0,1),o=0;o<u;o++)g[o]=new Fce(p[o],null,-1);return g},"gA");var T4i=j(vG,"StackTraceCreator/CollectorLegacy",858);G(2024,2023,{}),x.je=i(function(n){},"iA"),x.le=i(function(n,o,u,p){return new Fce(o,n+"@"+p,u<0?-1:u)},"jA"),x.ke=i(function(n){var o,u,p,g,w,k;if(g=N0n(n),w=tt(sBe,Dt,325,0,0,1),o=0,p=g.length,p==0)return w;for(k=pzt(this,g[0]),Cr(k.d,Cde)||(w[o++]=k),u=1;u<p;u++)w[o++]=pzt(this,g[u]);return w},"kA");var k4i=j(vG,"StackTraceCreator/CollectorModern",2024);G(859,2024,{},W),x.le=i(function(n,o,u,p){return new Fce(o,n,-1)},"mA");var C4i=j(vG,"StackTraceCreator/CollectorModernNoSourceMap",859);G(1045,1,{});var E4i=j(pMe,fUt,1045);G(616,1045,{616:1},c7t);var qPe,S4i=j(Vde,fUt,616);G(2066,1,{});var A4i=j(pMe,dUt,2066);G(2067,2066,{});var R4i=j(Vde,dUt,2067);G(1090,1,{},H);var EM,L4i=j(Vde,"LocaleInfo",1090);G(1992,1,{},re),x.a=0;var _4i=j(Vde,"TimeZone",1992);G(1258,2067,{},X);var D4i=j("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1258);G(434,1,{434:1},GAt),x.a=!1,x.b=0;var I4i=j(pMe,"DateTimeFormat/PatternPart",434);G(205,1,pUt,oq,zLe,e8e),x.Dd=i(function(n){return cln(this,y(n,205))},"pB"),x.Fb=i(function(n){return Ge(n,205)&&T9(vc(this.q.getTime()),vc(y(n,205).q.getTime()))},"qB"),x.Hb=i(function(){var n;return n=vc(this.q.getTime()),mi(nue(n,Y2(n,32)))},"rB"),x.Ib=i(function(){var n,o,u;return u=-this.q.getTimezoneOffset(),n=(u>=0?"+":"")+(u/60|0),o=Bq(d.Math.abs(u)%60),(hBt(),rYt)[this.q.getDay()]+" "+nYt[this.q.getMonth()]+" "+Bq(this.q.getDate())+" "+Bq(this.q.getHours())+":"+Bq(this.q.getMinutes())+":"+Bq(this.q.getSeconds())+" GMT"+n+o+" "+this.q.getFullYear()},"tB");var gQ=j(zn,"Date",205);G(1980,205,pUt,IPt),x.a=!1,x.b=0,x.c=0,x.d=0,x.e=0,x.f=0,x.g=!1,x.i=0,x.j=0,x.k=0,x.n=0,x.o=0,x.p=0;var M4i=j("com.google.gwt.i18n.shared.impl","DateRecord",1980);G(2029,1,{}),x.ne=i(function(){return null},"wB"),x.oe=i(function(){return null},"xB"),x.pe=i(function(){return null},"yB"),x.qe=i(function(){return null},"zB"),x.re=i(function(){return null},"AB");var N4i=j(b6,"JSONValue",2029);G(139,2029,{139:1},F2,n5e),x.Fb=i(function(n){return Ge(n,139)?Q7e(this.a,y(n,139).a):!1},"GB"),x.me=i(function(){return PJr},"HB"),x.Hb=i(function(){return P7e(this.a)},"IB"),x.ne=i(function(){return this},"JB"),x.Ib=i(function(){var n,o,u;for(u=new Lf("["),o=0,n=this.a.length;o<n;o++)o>0&&(u.a+=","),qc(u,Jk(this,o));return u.a+="]",u.a},"KB");var O4i=j(b6,"JSONArray",139);G(479,2029,{479:1},i5e),x.me=i(function(){return BJr},"QB"),x.oe=i(function(){return this},"RB"),x.Ib=i(function(){return qr(),""+this.a},"SB"),x.a=!1;var Vqt,Wqt,P4i=j(b6,"JSONBoolean",479);G(982,63,H1,z4t);var B4i=j(b6,"JSONException",982);G(1018,2029,{},Z),x.me=i(function(){return FJr},"YB"),x.Ib=i(function(){return Qu},"ZB");var Hqt,F4i=j(b6,"JSONNull",1018);G(265,2029,{265:1},DH),x.Fb=i(function(n){return Ge(n,265)?this.a==y(n,265).a:!1},"aC"),x.me=i(function(){return MJr},"bC"),x.Hb=i(function(){return E5(this.a)},"cC"),x.pe=i(function(){return this},"dC"),x.Ib=i(function(){return this.a+""},"eC"),x.a=0;var $4i=j(b6,"JSONNumber",265);G(149,2029,{149:1},m5,qB),x.Fb=i(function(n){return Ge(n,149)?Q7e(this.a,y(n,149).a):!1},"oC"),x.me=i(function(){return NJr},"pC"),x.Hb=i(function(){return P7e(this.a)},"qC"),x.qe=i(function(){return this},"rC"),x.Ib=i(function(){var n,o,u,p,g,w,k;for(k=new Lf("{"),n=!0,w=jue(this,tt(Zt,Dt,2,0,6,1)),u=w,p=0,g=u.length;p<g;++p)o=u[p],n?n=!1:k.a+=Tu,Li(k,LFt(o)),k.a+=":",qc(k,M1(this,o));return k.a+="}",k.a},"sC");var G4i=j(b6,"JSONObject",149);G(595,i0,bh,Uoe),x.Gc=i(function(n){return lo(n)&&wQr(this.a,di(n))},"vC"),x.Jc=i(function(){return new VD(new oc(this.b))},"wC"),x.gc=i(function(){return this.b.length},"xC");var j4i=j(b6,"JSONObject/1",595),f0e;G(210,2029,{210:1},zk),x.Fb=i(function(n){return Ge(n,210)?Cr(this.a,y(n,210).a):!1},"HC"),x.me=i(function(){return OJr},"IC"),x.Hb=i(function(){return Vy(this.a)},"JC"),x.re=i(function(){return this},"KC"),x.Ib=i(function(){return LFt(this.a)},"LC");var z4i=j(b6,"JSONString",210),_v,YPe,qqt,XPe,KPe;G(2025,1,{521:1});var U4i=j(gMe,"OutputStream",2025);G(2026,2025,{521:1});var V4i=j(gMe,"FilterOutputStream",2026);G(860,2026,{521:1},ne);var W4i=j(gMe,"PrintStream",860);G(418,1,{472:1}),x.Ib=i(function(){return this.a},"Cdb");var H4i=j(hc,"AbstractStringBuilder",418);G(527,63,H1,UH);var q4i=j(hc,"ArithmeticException",527);G(99,63,cJ,M5e,yu);var Y4i=j(hc,"IndexOutOfBoundsException",99);G(644,99,cJ,l4t,i6e);var X4i=j(hc,"ArrayIndexOutOfBoundsException",644);G(526,63,H1,xoe,H4t);var K4i=j(hc,"ArrayStoreException",526);G(297,80,gUt,Moe);var J4i=j(hc,"Error",297);G(200,297,gUt,N5e,wRe);var Q4i=j(hc,"AssertionError",200);Nqt={3:1,473:1,35:1};var Dv,UR,Ja=j(hc,"Boolean",473);G(242,1,{3:1,242:1});var JPe,Z4i=j(hc,"Number",242);G(221,242,{3:1,221:1,35:1,242:1},Ext),x.Dd=i(function(n){return yQr(this,y(n,221))},"beb"),x.se=i(function(){return this.a},"ceb"),x.Fb=i(function(n){return Ge(n,221)&&y(n,221).a==this.a},"deb"),x.Hb=i(function(){return this.a},"eeb"),x.Ib=i(function(){return""+this.a},"feb"),x.a=0;var A6=j(hc,"Byte",221),QPe;G(180,1,{3:1,180:1,35:1},d5e),x.Dd=i(function(n){return bQr(this,y(n,180))},"meb"),x.Fb=i(function(n){return Ge(n,180)&&y(n,180).a==this.a},"oeb"),x.Hb=i(function(){return this.a},"peb"),x.Ib=i(function(){return String.fromCharCode(this.a)},"qeb"),x.a=0;var ZPe,SM=j(hc,"Character",180),eBe;G(211,63,{3:1,211:1,101:1,63:1,80:1},W3t,G8);var eCi=j(hc,"ClassCastException",211);Oqt={3:1,35:1,346:1,242:1};var Ts=j(hc,"Double",346);G(164,242,{3:1,35:1,164:1,242:1},YB,P5e),x.Dd=i(function(n){return RZr(this,y(n,164))},"dfb"),x.se=i(function(){return this.a},"efb"),x.Fb=i(function(n){return Ge(n,164)&&hAt(this.a,y(n,164).a)},"ffb"),x.Hb=i(function(){return Po(this.a)},"gfb"),x.Ib=i(function(){return""+this.a},"ifb"),x.a=0;var VR=j(hc,"Float",164);G(32,63,{3:1,101:1,32:1,63:1,80:1},ZB,rn,JMt);var tCi=j(hc,"IllegalArgumentException",32);G(73,63,H1,hh,El);var rCi=j(hc,"IllegalStateException",73);G(15,242,{3:1,35:1,15:1,242:1},f5e),x.Dd=i(function(n){return lAe(this,y(n,15))},"sfb"),x.se=i(function(){return this.a},"tfb"),x.Fb=i(function(n){return Ge(n,15)&&y(n,15).a==this.a},"ufb"),x.Hb=i(function(){return this.a},"vfb"),x.Ib=i(function(){return""+this.a},"Bfb"),x.a=0;var Ls=j(hc,"Integer",15),tBe,Yqt;G(190,242,{3:1,35:1,190:1,242:1},h5e),x.Dd=i(function(n){return LZr(this,y(n,190))},"Lfb"),x.se=i(function(){return tw(this.a)},"Mfb"),x.Fb=i(function(n){return Ge(n,190)&&T9(y(n,190).a,this.a)},"Nfb"),x.Hb=i(function(){return Stn(this.a)},"Ofb"),x.Ib=i(function(){return""+B9(this.a)},"Qfb"),x.a=0;var fT=j(hc,"Long",190),rBe;G(2105,1,{}),G(1877,63,H1,Y4t);var nCi=j(hc,"NegativeArraySizeException",1877);G(172,597,{3:1,101:1,172:1,63:1,80:1},f5,y5),x.ce=i(function(n){return new TypeError(n)},"Zfb");var iCi=j(hc,"NullPointerException",172),nBe,d0e,Xqt,iBe;G(131,32,{3:1,101:1,32:1,131:1,63:1,80:1},z0);var aCi=j(hc,"NumberFormatException",131);G(191,242,{3:1,35:1,242:1,191:1},p5e),x.Dd=i(function(n){return vQr(this,y(n,191))},"ggb"),x.se=i(function(){return this.a},"hgb"),x.Fb=i(function(n){return Ge(n,191)&&y(n,191).a==this.a},"igb"),x.Hb=i(function(){return this.a},"jgb"),x.Ib=i(function(){return""+this.a},"kgb"),x.a=0;var dT=j(hc,"Short",191),aBe;G(325,1,{3:1,325:1},Fce),x.Fb=i(function(n){var o;return Ge(n,325)?(o=y(n,325),this.c==o.c&&this.d==o.d&&this.a==o.a&&this.b==o.b):!1},"pgb"),x.Hb=i(function(){return VX(Se(Ee(Fs,1),Fr,1,5,[Et(this.c),this.a,this.d,this.b]))},"qgb"),x.Ib=i(function(){return this.a+"."+this.d+"("+(this.b!=null?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},"rgb"),x.c=0;var sBe=j(hc,"StackTraceElement",325);Pqt={3:1,472:1,35:1,2:1};var Zt=j(hc,hMe,2);G(111,418,{472:1},Dy,r9,Hd);var sCi=j(hc,"StringBuffer",111);G(106,418,{472:1},Yb,sC,Lf);var oCi=j(hc,"StringBuilder",106);G(691,99,cJ,n6e);var lCi=j(hc,"StringIndexOutOfBoundsException",691);G(2110,1,{});var Kqt;G(47,63,{3:1,101:1,63:1,80:1,47:1},hi,Ly);var cCi=j(hc,"UnsupportedOperationException",47);G(247,242,{3:1,35:1,242:1,247:1},N$,d6e),x.Dd=i(function(n){return ujt(this,y(n,247))},"Ohb"),x.se=i(function(){return u3(Fjt(this))},"Phb"),x.Fb=i(function(n){var o;return this===n?!0:Ge(n,247)?(o=y(n,247),this.e==o.e&&ujt(this,o)==0):!1},"Qhb"),x.Hb=i(function(){var n;return this.b!=0?this.b:this.a<54?(n=vc(this.f),this.b=mi(co(n,-1)),this.b=33*this.b+mi(co(Rx(n,32),-1)),this.b=17*this.b+Po(this.e),this.b):(this.b=17*cNt(this.c)+Po(this.e),this.b)},"Rhb"),x.Ib=i(function(){return Fjt(this)},"Shb"),x.a=0,x.b=0,x.d=0,x.e=0,x.f=0;var Jqt,Ew,oBe,lBe,cBe,uBe,hBe,fBe,p0e=j("java.math","BigDecimal",247);G(91,242,{3:1,35:1,242:1,91:1},O1,iLt,X2,yOt,ev),x.Dd=i(function(n){return uOt(this,y(n,91))},"qib"),x.se=i(function(){return u3(yde(this,0))},"rib"),x.Fb=i(function(n){return D_e(this,n)},"sib"),x.Hb=i(function(){return cNt(this)},"vib"),x.Ib=i(function(){return yde(this,0)},"xib"),x.b=-2,x.c=0,x.d=0,x.e=0;var Qqt,mQ,Zqt,g0e,yQ,AM,sE=j("java.math","BigInteger",91),eYt,tYt,R6,RM;G(484,2030,rT),x.$b=i(function(){Sc(this)},"njb"),x._b=i(function(n){return Kc(this,n)},"ojb"),x.uc=i(function(n){return YMt(this,n,this.i)||YMt(this,n,this.f)},"pjb"),x.vc=i(function(){return new yk(this)},"qjb"),x.xc=i(function(n){return Jr(this,n)},"rjb"),x.yc=i(function(n,o){return Oi(this,n,o)},"sjb"),x.Ac=i(function(n){return H5(this,n)},"tjb"),x.gc=i(function(){return a9(this)},"ujb"),x.g=0;var uCi=j(zn,"AbstractHashMap",484);G(307,i0,bh,yk),x.$b=i(function(){this.a.$b()},"xjb"),x.Gc=i(function(n){return ILt(this,n)},"yjb"),x.Jc=i(function(){return new t3(this.a)},"zjb"),x.Kc=i(function(n){var o;return ILt(this,n)?(o=y(n,45).jd(),this.a.Ac(o),!0):!1},"Ajb"),x.gc=i(function(){return this.a.gc()},"Bjb");var hCi=j(zn,"AbstractHashMap/EntrySet",307);G(308,1,fo,t3),x.Nb=i(function(n){So(this,n)},"Gjb"),x.Pb=i(function(){return MC(this)},"Ijb"),x.Ob=i(function(){return this.b},"Hjb"),x.Qb=i(function(){u9t(this)},"Jjb"),x.b=!1,x.d=0;var fCi=j(zn,"AbstractHashMap/EntrySetIterator",308);G(417,1,fo,VD),x.Nb=i(function(n){So(this,n)},"Ojb"),x.Ob=i(function(){return Xoe(this)},"Pjb"),x.Pb=i(function(){return I7e(this)},"Qjb"),x.Qb=i(function(){Wh(this)},"Rjb"),x.b=0,x.c=-1;var dCi=j(zn,"AbstractList/IteratorImpl",417);G(97,417,Hm,yo),x.Qb=i(function(){Wh(this)},"Zjb"),x.Rb=i(function(n){Ok(this,n)},"Ujb"),x.Sb=i(function(){return this.b>0},"Vjb"),x.Tb=i(function(){return this.b},"Wjb"),x.Ub=i(function(){return In(this.b>0),this.a.Xb(this.c=--this.b)},"Xjb"),x.Vb=i(function(){return this.b-1},"Yjb"),x.Wb=i(function(n){Dk(this.c!=-1),this.a.fd(this.c,n)},"$jb");var pCi=j(zn,"AbstractList/ListIteratorImpl",97);G(258,56,gR,sv),x._c=i(function(n,o){Hk(n,this.b),this.c._c(this.a+n,o),++this.b},"akb"),x.Xb=i(function(n){return _r(n,this.b),this.c.Xb(this.a+n)},"bkb"),x.ed=i(function(n){var o;return _r(n,this.b),o=this.c.ed(this.a+n),--this.b,o},"ckb"),x.fd=i(function(n,o){return _r(n,this.b),this.c.fd(this.a+n,o)},"dkb"),x.gc=i(function(){return this.b},"ekb"),x.a=0,x.b=0;var gCi=j(zn,"AbstractList/SubList",258);G(232,i0,bh,E1),x.$b=i(function(){this.a.$b()},"gkb"),x.Gc=i(function(n){return this.a._b(n)},"hkb"),x.Jc=i(function(){var n;return n=this.a.vc().Jc(),new MH(n)},"ikb"),x.Kc=i(function(n){return this.a._b(n)?(this.a.Ac(n),!0):!1},"jkb"),x.gc=i(function(){return this.a.gc()},"kkb");var mCi=j(zn,"AbstractMap/1",232);G(530,1,fo,MH),x.Nb=i(function(n){So(this,n)},"mkb"),x.Ob=i(function(){return this.a.Ob()},"nkb"),x.Pb=i(function(){var n;return n=y(this.a.Pb(),45),n.jd()},"okb"),x.Qb=i(function(){this.a.Qb()},"pkb");var yCi=j(zn,"AbstractMap/1/1",530);G(230,31,v3,S1),x.$b=i(function(){this.a.$b()},"rkb"),x.Gc=i(function(n){return this.a.uc(n)},"skb"),x.Jc=i(function(){var n;return n=this.a.vc().Jc(),new bk(n)},"tkb"),x.gc=i(function(){return this.a.gc()},"ukb");var bCi=j(zn,"AbstractMap/2",230);G(305,1,fo,bk),x.Nb=i(function(n){So(this,n)},"wkb"),x.Ob=i(function(){return this.a.Ob()},"xkb"),x.Pb=i(function(){var n;return n=y(this.a.Pb(),45),n.kd()},"ykb"),x.Qb=i(function(){this.a.Qb()},"zkb");var vCi=j(zn,"AbstractMap/2/1",305);G(480,1,{480:1,45:1}),x.Fb=i(function(n){var o;return Ge(n,45)?(o=y(n,45),Oc(this.d,o.jd())&&Oc(this.e,o.kd())):!1},"Bkb"),x.jd=i(function(){return this.d},"Ckb"),x.kd=i(function(){return this.e},"Dkb"),x.Hb=i(function(){return yC(this.d)^yC(this.e)},"Ekb"),x.ld=i(function(n){return n8e(this,n)},"Fkb"),x.Ib=i(function(){return this.d+"="+this.e},"Gkb");var wCi=j(zn,"AbstractMap/AbstractEntry",480);G(390,480,{480:1,390:1,45:1},cq);var xCi=j(zn,"AbstractMap/SimpleEntry",390);G(2047,1,Hde),x.Fb=i(function(n){var o;return Ge(n,45)?(o=y(n,45),Oc(this.jd(),o.jd())&&Oc(this.kd(),o.kd())):!1},"Ikb"),x.Hb=i(function(){return yC(this.jd())^yC(this.kd())},"Jkb"),x.Ib=i(function(){return this.jd()+"="+this.kd()},"Kkb");var TCi=j(zn,rUt,2047);G(2055,2030,lMe),x.Vc=i(function(n){return joe(this.Ce(n))},"Nkb"),x.tc=i(function(n){return __t(this,n)},"Okb"),x._b=i(function(n){return i8e(this,n)},"Pkb"),x.vc=i(function(){return new moe(this)},"Qkb"),x.Rc=i(function(){return X8t(this.Ee())},"Rkb"),x.Wc=i(function(n){return joe(this.Fe(n))},"Skb"),x.xc=i(function(n){var o;return o=n,Yl(this.De(o))},"Tkb"),x.Yc=i(function(n){return joe(this.Ge(n))},"Vkb"),x.ec=i(function(){return new Rxt(this)},"Wkb"),x.Tc=i(function(){return X8t(this.He())},"Xkb"),x.Zc=i(function(n){return joe(this.Ie(n))},"Ykb");var kCi=j(zn,"AbstractNavigableMap",2055);G(621,i0,bh,moe),x.Gc=i(function(n){return Ge(n,45)&&__t(this.b,y(n,45))},"$kb"),x.Jc=i(function(){return this.b.Be()},"_kb"),x.Kc=i(function(n){var o;return Ge(n,45)?(o=y(n,45),this.b.Je(o)):!1},"alb"),x.gc=i(function(){return this.b.gc()},"blb");var CCi=j(zn,"AbstractNavigableMap/EntrySet",621);G(1116,i0,cMe,Rxt),x.Lc=i(function(){return new fq(this)},"ilb"),x.$b=i(function(){this.a.$b()},"dlb"),x.Gc=i(function(n){return i8e(this.a,n)},"elb"),x.Jc=i(function(){var n;return n=this.a.vc().b.Be(),new Axt(n)},"flb"),x.Kc=i(function(n){return i8e(this.a,n)?(this.a.Ac(n),!0):!1},"glb"),x.gc=i(function(){return this.a.gc()},"hlb");var ECi=j(zn,"AbstractNavigableMap/NavigableKeySet",1116);G(1117,1,fo,Axt),x.Nb=i(function(n){So(this,n)},"klb"),x.Ob=i(function(){return Xoe(this.a.a)},"llb"),x.Pb=i(function(){var n;return n=g6t(this.a),n.jd()},"mlb"),x.Qb=i(function(){CAt(this.a)},"nlb");var SCi=j(zn,"AbstractNavigableMap/NavigableKeySet/1",1117);G(2068,31,v3),x.Ec=i(function(n){return N5(J7(this,n),yR),!0},"olb"),x.Fc=i(function(n){return Ur(n),FF(n!=this,"Can't add a queue to itself"),Fo(this,n)},"plb"),x.$b=i(function(){for(;Mue(this)!=null;);},"qlb");var ACi=j(zn,"AbstractQueue",2068);G(315,31,{4:1,20:1,31:1,18:1},vC,FLt),x.Ec=i(function(n){return sRe(this,n),!0},"Ilb"),x.$b=i(function(){dRe(this)},"Klb"),x.Gc=i(function(n){return hMt(new W9(this),n)},"Llb"),x.dc=i(function(){return e9(this)},"Mlb"),x.Jc=i(function(){return new W9(this)},"Nlb"),x.Kc=i(function(n){return Zsn(new W9(this),n)},"Olb"),x.gc=i(function(){return this.c-this.b&this.a.length-1},"Plb"),x.Lc=i(function(){return new Rr(this,272)},"Qlb"),x.Oc=i(function(n){var o;return o=this.c-this.b&this.a.length-1,n.length<o&&(n=YH(new Array(o),n)),IIt(this,n,o),n.length>o&&as(n,o,null),n},"Rlb"),x.b=0,x.c=0;var RCi=j(zn,"ArrayDeque",315);G(448,1,fo,W9),x.Nb=i(function(n){So(this,n)},"Vlb"),x.Ob=i(function(){return this.a!=this.b},"Wlb"),x.Pb=i(function(){return HX(this)},"Xlb"),x.Qb=i(function(){fIt(this)},"Ylb"),x.a=0,x.b=0,x.c=-1;var LCi=j(zn,"ArrayDeque/IteratorImpl",448);G(13,56,bUt,Pt,vu,Ah),x._c=i(function(n,o){W2(this,n,o)},"omb"),x.Ec=i(function(n){return Nt(this,n)},"pmb"),x.ad=i(function(n,o){return t_e(this,n,o)},"qmb"),x.Fc=i(function(n){return Is(this,n)},"rmb"),x.$b=i(function(){vk(this.c,0)},"smb"),x.Gc=i(function(n){return Jl(this,n,0)!=-1},"tmb"),x.Ic=i(function(n){Zc(this,n)},"umb"),x.Xb=i(function(n){return Wt(this,n)},"vmb"),x.bd=i(function(n){return Jl(this,n,0)},"wmb"),x.dc=i(function(){return this.c.length==0},"xmb"),x.Jc=i(function(){return new ye(this)},"ymb"),x.ed=i(function(n){return Gy(this,n)},"zmb"),x.Kc=i(function(n){return Yu(this,n)},"Amb"),x.ae=i(function(n,o){tLt(this,n,o)},"Bmb"),x.fd=i(function(n,o){return Mf(this,n,o)},"Cmb"),x.gc=i(function(){return this.c.length},"Dmb"),x.gd=i(function(n){zs(this,n)},"Emb"),x.Nc=i(function(){return aY(this.c)},"Fmb"),x.Oc=i(function(n){return Zg(this,n)},"Gmb");var tSn=j(zn,"ArrayList",13);G(7,1,fo,ye),x.Nb=i(function(n){So(this,n)},"Lmb"),x.Ob=i(function(){return Xl(this)},"Mmb"),x.Pb=i(function(){return de(this)},"Nmb"),x.Qb=i(function(){G9(this)},"Omb"),x.a=0,x.b=-1;var _Ci=j(zn,"ArrayList/1",7);G(2077,d.Function,{},se),x.Ke=i(function(n,o){return ha(n,o)},"tnb"),G(123,56,vUt,oc),x.Gc=i(function(n){return dIt(this,n)!=-1},"xnb"),x.Ic=i(function(n){var o,u,p,g;for(Ur(n),u=this.a,p=0,g=u.length;p<g;++p)o=u[p],n.Ad(o)},"ynb"),x.Xb=i(function(n){return g8t(this,n)},"znb"),x.fd=i(function(n,o){var u;return u=(_r(n,this.a.length),this.a[n]),as(this.a,n,o),u},"Anb"),x.gc=i(function(){return this.a.length},"Bnb"),x.gd=i(function(n){dce(this.a,this.a.length,n)},"Cnb"),x.Nc=i(function(){return kOt(this,tt(Fs,Fr,1,this.a.length,5,1))},"Dnb"),x.Oc=i(function(n){return kOt(this,n)},"Enb");var DCi=j(zn,"Arrays/ArrayList",123),Go,Qm,bQ;G(937,56,vUt,he),x.Gc=i(function(n){return!1},"Unb"),x.Xb=i(function(n){return oAe(n)},"Vnb"),x.Jc=i(function(){return Ir(),Y8(),WR},"Wnb"),x.cd=i(function(){return Ir(),Y8(),WR},"Xnb"),x.gc=i(function(){return 0},"Ynb");var ICi=j(zn,"Collections/EmptyList",937);G(938,1,Hm,le),x.Nb=i(function(n){So(this,n)},"bob"),x.Rb=i(function(n){throw xe(new hi)},"aob"),x.Ob=i(function(){return!1},"cob"),x.Sb=i(function(){return!1},"dob"),x.Pb=i(function(){throw xe(new Hl)},"eob"),x.Tb=i(function(){return 0},"fob"),x.Ub=i(function(){throw xe(new Hl)},"gob"),x.Vb=i(function(){return-1},"hob"),x.Qb=i(function(){throw xe(new hh)},"iob"),x.Wb=i(function(n){throw xe(new hh)},"job");var WR,MCi=j(zn,"Collections/EmptyListIterator",938);G(940,2030,pR,pe),x._b=i(function(n){return!1},"lob"),x.uc=i(function(n){return!1},"mob"),x.vc=i(function(){return Ir(),bQ},"nob"),x.xc=i(function(n){return null},"oob"),x.ec=i(function(){return Ir(),bQ},"pob"),x.gc=i(function(){return 0},"qob"),x.Bc=i(function(){return Ir(),Go},"rob");var NCi=j(zn,"Collections/EmptyMap",940);G(939,i0,m6,ge),x.Gc=i(function(n){return!1},"tob"),x.Jc=i(function(){return Ir(),Y8(),WR},"uob"),x.gc=i(function(){return 0},"vob");var OCi=j(zn,"Collections/EmptySet",939);G(598,56,{3:1,20:1,31:1,56:1,18:1,16:1},goe),x.Gc=i(function(n){return Oc(this.a,n)},"xob"),x.Xb=i(function(n){return _r(n,1),this.a},"yob"),x.gc=i(function(){return 1},"zob");var PCi=j(zn,"Collections/SingletonList",598);G(378,1,aUt,O8),x.Ic=i(function(n){Io(this,n)},"Nob"),x.Lc=i(function(){return new Rr(this,0)},"Sob"),x.Mc=i(function(){return new Er(null,this.Lc())},"Tob"),x.Ec=i(function(n){return vCt()},"Iob"),x.Fc=i(function(n){return wCt()},"Job"),x.$b=i(function(){xCt()},"Kob"),x.Gc=i(function(n){return i9(this,n)},"Lob"),x.Hc=i(function(n){return v6e(this,n)},"Mob"),x.dc=i(function(){return this.b.dc()},"Oob"),x.Jc=i(function(){return new iC(this.b.Jc())},"Pob"),x.Kc=i(function(n){return TCt()},"Qob"),x.gc=i(function(){return this.b.gc()},"Rob"),x.Nc=i(function(){return this.b.Nc()},"Uob"),x.Oc=i(function(n){return w6e(this,n)},"Vob"),x.Ib=i(function(){return zl(this.b)},"Wob");var BCi=j(zn,"Collections/UnmodifiableCollection",378);G(326,1,fo,iC),x.Nb=i(function(n){So(this,n)},"Zob"),x.Ob=i(function(){return this.b.Ob()},"$ob"),x.Pb=i(function(){return this.b.Pb()},"_ob"),x.Qb=i(function(){kCt()},"apb");var FCi=j(zn,"Collections/UnmodifiableCollectionIterator",326);G(529,378,wUt,Vq),x.Lc=i(function(){return new Rr(this,16)},"opb"),x._c=i(function(n,o){throw xe(new hi)},"cpb"),x.ad=i(function(n,o){throw xe(new hi)},"dpb"),x.Fb=i(function(n){return ta(this.a,n)},"epb"),x.Xb=i(function(n){return this.a.Xb(n)},"fpb"),x.Hb=i(function(){return Aa(this.a)},"gpb"),x.bd=i(function(n){return this.a.bd(n)},"hpb"),x.dc=i(function(){return this.a.dc()},"ipb"),x.cd=i(function(){return new IAe(this.a.dd(0))},"jpb"),x.dd=i(function(n){return new IAe(this.a.dd(n))},"kpb"),x.ed=i(function(n){throw xe(new hi)},"lpb"),x.fd=i(function(n,o){throw xe(new hi)},"mpb"),x.gd=i(function(n){throw xe(new hi)},"npb"),x.hd=i(function(n,o){return new Vq(this.a.hd(n,o))},"ppb");var $Ci=j(zn,"Collections/UnmodifiableList",529);G(694,326,Hm,IAe),x.Qb=i(function(){kCt()},"wpb"),x.Rb=i(function(n){throw xe(new hi)},"rpb"),x.Sb=i(function(){return this.a.Sb()},"spb"),x.Tb=i(function(){return this.a.Tb()},"tpb"),x.Ub=i(function(){return this.a.Ub()},"upb"),x.Vb=i(function(){return this.a.Vb()},"vpb"),x.Wb=i(function(n){throw xe(new hi)},"xpb");var GCi=j(zn,"Collections/UnmodifiableListIterator",694);G(599,1,rT,yoe),x.wc=i(function(n){v$(this,n)},"Jpb"),x.$b=i(function(){throw xe(new hi)},"Epb"),x._b=i(function(n){return this.c._b(n)},"Fpb"),x.uc=i(function(n){return uEt(this,n)},"Gpb"),x.vc=i(function(){return f7(this)},"Hpb"),x.Fb=i(function(n){return fEt(this,n)},"Ipb"),x.xc=i(function(n){return this.c.xc(n)},"Kpb"),x.Hb=i(function(){return Aa(this.c)},"Lpb"),x.dc=i(function(){return this.c.dc()},"Mpb"),x.ec=i(function(){return L7t(this)},"Npb"),x.yc=i(function(n,o){throw xe(new hi)},"Opb"),x.Ac=i(function(n){throw xe(new hi)},"Ppb"),x.gc=i(function(){return this.c.gc()},"Qpb"),x.Ib=i(function(){return zl(this.c)},"Rpb"),x.Bc=i(function(){return R7t(this)},"Spb");var jCi=j(zn,"Collections/UnmodifiableMap",599);G(389,378,Tde,j8),x.Lc=i(function(){return new Rr(this,1)},"Wpb"),x.Fb=i(function(n){return ta(this.b,n)},"Upb"),x.Hb=i(function(){return Aa(this.b)},"Vpb");var zCi=j(zn,"Collections/UnmodifiableSet",389);G(941,389,Tde,Z4t),x.Gc=i(function(n){return hEt(this,n)},"_pb"),x.Hc=i(function(n){return this.b.Hc(n)},"aqb"),x.Jc=i(function(){var n;return n=this.b.Jc(),new Sxt(n)},"bqb"),x.Nc=i(function(){var n;return n=this.b.Nc(),i_t(n,n.length),n},"cqb"),x.Oc=i(function(n){return pRt(this,n)},"dqb");var UCi=j(zn,"Collections/UnmodifiableMap/UnmodifiableEntrySet",941);G(942,1,fo,Sxt),x.Nb=i(function(n){So(this,n)},"fqb"),x.Pb=i(function(){return new g5e(y(this.a.Pb(),45))},"hqb"),x.Ob=i(function(){return this.a.Ob()},"gqb"),x.Qb=i(function(){throw xe(new hi)},"iqb");var VCi=j(zn,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",942);G(692,1,Hde,g5e),x.Fb=i(function(n){return this.a.Fb(n)},"kqb"),x.jd=i(function(){return this.a.jd()},"lqb"),x.kd=i(function(){return this.a.kd()},"mqb"),x.Hb=i(function(){return this.a.Hb()},"nqb"),x.ld=i(function(n){throw xe(new hi)},"oqb"),x.Ib=i(function(){return zl(this.a)},"pqb");var WCi=j(zn,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",692);G(600,529,{20:1,18:1,16:1,59:1},$oe);var HCi=j(zn,"Collections/UnmodifiableRandomAccessList",600);G(693,389,sUt,MAe),x.Lc=i(function(){return new fq(this)},"uqb"),x.Fb=i(function(n){return ta(this.a,n)},"sqb"),x.Hb=i(function(){return Aa(this.a)},"tqb");var qCi=j(zn,"Collections/UnmodifiableSortedSet",693);G(843,1,qde,we),x.Le=i(function(n,o){var u;return u=a_t(y(n,12),y(o,12)),u!=0?u:ejt(y(n,12),y(o,12))},"wqb"),x.Fb=i(function(n){return this===n},"xqb"),x.Me=i(function(){return new Ci(this)},"yqb");var YCi=j(zn,"Comparator/lambda$0$Type",843),dBe,m0e,pBe;G(756,1,qde,Ae),x.Le=i(function(n,o){return Lin(y(n,35),y(o,35))},"Fqb"),x.Fb=i(function(n){return this===n},"Gqb"),x.Me=i(function(){return Mx(),pBe},"Hqb");var XCi=j(zn,"Comparators/NaturalOrderComparator",756);G(1192,1,qde,ve),x.Le=i(function(n,o){return _in(y(n,35),y(o,35))},"Kqb"),x.Fb=i(function(n){return this===n},"Lqb"),x.Me=i(function(){return Mx(),m0e},"Mqb");var KCi=j(zn,"Comparators/ReverseNaturalOrderComparator",1192);G(55,1,qde,Ci),x.Fb=i(function(n){return this===n},"Pqb"),x.Le=i(function(n,o){return this.a.Le(o,n)},"Oqb"),x.Me=i(function(){return this.a},"Qqb");var JCi=j(zn,"Comparators/ReversedComparator",55);G(176,63,H1,od);var QCi=j(zn,"ConcurrentModificationException",176),rYt,nYt;G(1353,1,kG,Ie),x.Ne=i(function(n){ZNt(this,n)},"Yqb"),x.Ib=i(function(){return"DoubleSummaryStatistics[count = "+B9(this.a)+", avg = "+(qoe(this.a,0)?ERe(this)/tw(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+ERe(this)+"]"},"Zqb"),x.a=0,x.b=Ys,x.c=qa,x.d=0,x.e=0,x.f=0;var ZCi=j(zn,"DoubleSummaryStatistics",1353);G(1850,63,H1,H3t);var eEi=j(zn,"EmptyStackException",1850);G(450,2030,rT,bI),x.yc=i(function(n,o){return r8e(this,n,o)},"lrb"),x.$b=i(function(){y7t(this)},"grb"),x._b=i(function(n){return REt(this,n)},"hrb"),x.uc=i(function(n){var o,u;for(u=new v5(this.a);u.a<u.c.a.length;)if(o=J9(u),Oc(n,this.b[o.g]))return!0;return!1},"irb"),x.vc=i(function(){return new Lxt(this)},"jrb"),x.xc=i(function(n){return yl(this,n)},"krb"),x.Ac=i(function(n){return X7e(this,n)},"mrb"),x.gc=i(function(){return this.a.c},"nrb");var tEi=j(zn,"EnumMap",450);G(1293,i0,bh,Lxt),x.$b=i(function(){y7t(this.a)},"qrb"),x.Gc=i(function(n){return MLt(this,n)},"rrb"),x.Jc=i(function(){return new y8t(this.a)},"srb"),x.Kc=i(function(n){var o;return MLt(this,n)?(o=y(n,45).jd(),X7e(this.a,o),!0):!1},"trb"),x.gc=i(function(){return this.a.a.c},"urb");var rEi=j(zn,"EnumMap/EntrySet",1293);G(1294,1,fo,y8t),x.Nb=i(function(n){So(this,n)},"wrb"),x.Pb=i(function(){return this.b=J9(this.a),new DEt(this.c,this.b)},"yrb"),x.Ob=i(function(){return pAe(this.a)},"xrb"),x.Qb=i(function(){Dk(!!this.b),X7e(this.c,this.b),this.b=null},"zrb");var nEi=j(zn,"EnumMap/EntrySetIterator",1294);G(1295,2047,Hde,DEt),x.jd=i(function(){return this.a},"Brb"),x.kd=i(function(){return this.b.b[this.a.g]},"Crb"),x.ld=i(function(n){return z8e(this.b.b,this.a.g,n)},"Drb");var iEi=j(zn,"EnumMap/MapEntry",1295);G(182,i0,{20:1,31:1,18:1,182:1,22:1});var iYt=j(zn,"EnumSet",182);G(166,182,{20:1,31:1,18:1,182:1,166:1,22:1},ud),x.Ec=i(function(n){return Gp(this,y(n,24))},"Orb"),x.Gc=i(function(n){return pce(this,n)},"Prb"),x.Jc=i(function(){return new v5(this)},"Qrb"),x.Kc=i(function(n){return C8t(this,n)},"Rrb"),x.gc=i(function(){return this.c},"Srb"),x.c=0;var aEi=j(zn,"EnumSet/EnumSetImpl",166);G(356,1,fo,v5),x.Nb=i(function(n){So(this,n)},"Xrb"),x.Pb=i(function(){return J9(this)},"Zrb"),x.Ob=i(function(){return pAe(this)},"Yrb"),x.Qb=i(function(){Dk(this.b!=-1),as(this.c.b,this.b,null),--this.c.c,this.b=-1},"$rb"),x.a=-1,x.b=-1;var sEi=j(zn,"EnumSet/EnumSetImpl/IteratorImpl",356);G(44,484,KC,jn,w5,YSt),x.ze=i(function(n,o){return Qe(n)===Qe(o)||n!=null&&ta(n,o)},"csb"),x.Ae=i(function(n){var o;return n==null?0:(o=Aa(n),o|0)},"dsb");var oEi=j(zn,"HashMap",44);G(48,i0,mMe,gs,JH,Bk),x.Ec=i(function(n){return ys(this,n)},"lsb"),x.$b=i(function(){this.a.$b()},"msb"),x.Gc=i(function(n){return Wd(this,n)},"nsb"),x.dc=i(function(){return this.a.gc()==0},"osb"),x.Jc=i(function(){return this.a.ec().Jc()},"psb"),x.Kc=i(function(n){return wAe(this,n)},"qsb"),x.gc=i(function(){return this.a.gc()},"rsb");var rSn=j(zn,"HashSet",48);G(1870,1,mG,De),x.Bd=i(function(n){eMt(this,n)},"usb"),x.Ib=i(function(){return"IntSummaryStatistics[count = "+B9(this.a)+", avg = "+(qoe(this.a,0)?tw(this.d)/tw(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+B9(this.d)+"]"},"vsb"),x.a=0,x.b=bo,x.c=Ui,x.d=0;var lEi=j(zn,"IntSummaryStatistics",1870);G(1044,1,qm,d5t),x.Ic=i(function(n){Io(this,n)},"Csb"),x.Jc=i(function(){return new ORe(this)},"Dsb"),x.c=0;var cEi=j(zn,"InternalHashCodeMap",1044);G(716,1,fo,ORe),x.Nb=i(function(n){So(this,n)},"Fsb"),x.Pb=i(function(){return this.d=this.a[this.c++],this.d},"Hsb"),x.Ob=i(function(){var n;return this.c<this.a.length?!0:(n=this.b.next(),n.done?!1:(this.a=n.value[1],this.c=0,!0))},"Gsb"),x.Qb=i(function(){R9e(this.e,this.d.jd()),this.c!=0&&--this.c},"Isb"),x.c=0,x.d=null;var uEi=j(zn,"InternalHashCodeMap/1",716),aYt;G(1042,1,qm,p5t),x.Ic=i(function(n){Io(this,n)},"Wsb"),x.Jc=i(function(){return new fRe(this)},"Xsb"),x.c=0,x.d=0;var hEi=j(zn,"InternalStringMap",1042);G(715,1,fo,fRe),x.Nb=i(function(n){So(this,n)},"Zsb"),x.Pb=i(function(){return this.c=this.a,this.a=this.b.next(),new xAt(this.d,this.c,this.d.d)},"_sb"),x.Ob=i(function(){return!this.a.done},"$sb"),x.Qb=i(function(){nMt(this.d,this.c.value[0])},"atb");var fEi=j(zn,"InternalStringMap/1",715);G(1043,2047,Hde,xAt),x.jd=i(function(){return this.b.value[0]},"ctb"),x.kd=i(function(){return this.a.d!=this.c?h9(this.a,this.b.value[0]):this.b.value[1]},"dtb"),x.ld=i(function(n){return Ux(this.a,this.b.value[0],n)},"etb"),x.c=0;var dEi=j(zn,"InternalStringMap/2",1043);G(223,44,KC,lv,NRe),x.$b=i(function(){Y6t(this)},"qtb"),x._b=i(function(n){return LEt(this,n)},"rtb"),x.uc=i(function(n){var o;for(o=this.d.a;o!=this.d;){if(Oc(o.e,n))return!0;o=o.a}return!1},"stb"),x.vc=i(function(){return new y5e(this)},"ttb"),x.xc=i(function(n){return Jg(this,n)},"utb"),x.yc=i(function(n,o){return uw(this,n,o)},"vtb"),x.Ac=i(function(n){return i9t(this,n)},"wtb"),x.gc=i(function(){return a9(this.e)},"xtb"),x.c=!1;var pEi=j(zn,"LinkedHashMap",223);G(393,390,{480:1,390:1,393:1,45:1},w6t,D8e);var gEi=j(zn,"LinkedHashMap/ChainEntry",393);G(704,i0,bh,y5e),x.$b=i(function(){Y6t(this.a)},"Etb"),x.Gc=i(function(n){return NLt(this,n)},"Ftb"),x.Jc=i(function(){return new y7e(this)},"Gtb"),x.Kc=i(function(n){var o;return NLt(this,n)?(o=y(n,45).jd(),i9t(this.a,o),!0):!1},"Htb"),x.gc=i(function(){return a9(this.a.e)},"Itb");var mEi=j(zn,"LinkedHashMap/EntrySet",704);G(705,1,fo,y7e),x.Nb=i(function(n){So(this,n)},"Ltb"),x.Pb=i(function(){return c9t(this)},"Ntb"),x.Ob=i(function(){return this.c!=this.d.a.d},"Mtb"),x.Qb=i(function(){Dk(!!this.a),ece(this.d.a.e.g,this.b),G8e(this.a),H5(this.d.a.e,this.a.d),this.b=this.d.a.e.g,this.a=null},"Otb"),x.b=0;var yEi=j(zn,"LinkedHashMap/EntrySet/EntryIterator",705);G(181,48,mMe,Om,jle,Y8e);var nSn=j(zn,"LinkedHashSet",181);G(66,2027,{3:1,4:1,20:1,31:1,56:1,18:1,66:1,16:1},ya,Zle),x.Ec=i(function(n){return _i(this,n)},"fub"),x.$b=i(function(){gf(this)},"gub"),x.dd=i(function(n){return ei(this,n)},"hub"),x.gc=i(function(){return this.b},"iub"),x.b=0;var iSn=j(zn,"LinkedList",66);G(964,1,Hm,TAt),x.Nb=i(function(n){So(this,n)},"qub"),x.Rb=i(function(n){EY(this,n)},"pub"),x.Ob=i(function(){return tF(this)},"rub"),x.Sb=i(function(){return this.b.b!=this.d.a},"tub"),x.Pb=i(function(){return Qn(this)},"uub"),x.Tb=i(function(){return this.a},"vub"),x.Ub=i(function(){return ELt(this)},"wub"),x.Vb=i(function(){return this.a-1},"xub"),x.Qb=i(function(){Oue(this)},"yub"),x.Wb=i(function(n){Dk(!!this.c),this.c.c=n},"zub"),x.a=0,x.c=null;var bEi=j(zn,"LinkedList/ListIteratorImpl",964);G(608,1,{},Be);var vEi=j(zn,"LinkedList/Node",608);G(2022,1,{});var gBe,sYt,wEi=j(zn,"Locale",2022);G(855,2022,{},Fe),x.Ib=i(function(){return""},"Gub");var xEi=j(zn,"Locale/1",855);G(856,2022,{},ze),x.Ib=i(function(){return"unknown"},"Iub");var TEi=j(zn,"Locale/4",856);G(112,63,{3:1,101:1,63:1,80:1,112:1},Hl,rRt);var kEi=j(zn,"NoSuchElementException",112);G(458,1,{458:1},Doe),x.Fb=i(function(n){var o;return n===this?!0:Ge(n,458)?(o=y(n,458),Oc(this.a,o.a)):!1},"Wub"),x.Hb=i(function(){return yC(this.a)},"Xub"),x.Ib=i(function(){return this.a!=null?eUt+_9(this.a)+")":"Optional.empty()"},"Yub");var mBe,CEi=j(zn,"Optional",458);G(400,1,{400:1},i5t,Vle),x.Fb=i(function(n){var o;return n===this?!0:Ge(n,400)?(o=y(n,400),this.a==o.a&&ha(this.b,o.b)==0):!1},"evb"),x.Hb=i(function(){return this.a?Po(this.b):0},"fvb"),x.Ib=i(function(){return this.a?"OptionalDouble.of("+(""+this.b)+")":"OptionalDouble.empty()"},"gvb"),x.a=!1,x.b=0;var y0e,EEi=j(zn,"OptionalDouble",400);G(511,1,{511:1},a5t,b6t),x.Fb=i(function(n){var o;return n===this?!0:Ge(n,511)?(o=y(n,511),this.a==o.a&&Yc(this.b,o.b)==0):!1},"mvb"),x.Hb=i(function(){return this.a?this.b:0},"nvb"),x.Ib=i(function(){return this.a?"OptionalInt.of("+(""+this.b)+")":"OptionalInt.empty()"},"ovb"),x.a=!1,x.b=0;var oYt,SEi=j(zn,"OptionalInt",511);G(496,2068,v3,xY),x.Fc=i(function(n){return hDe(this,n)},"xvb"),x.$b=i(function(){vk(this.b.c,0)},"yvb"),x.Gc=i(function(n){return(n==null?-1:Jl(this.b,n,0))!=-1},"zvb"),x.Jc=i(function(){return new _xt(this)},"Avb"),x.Kc=i(function(n){return SIt(this,n)},"Bvb"),x.gc=i(function(){return this.b.c.length},"Cvb"),x.Lc=i(function(){return new Rr(this,256)},"Dvb"),x.Nc=i(function(){return aY(this.b.c)},"Evb"),x.Oc=i(function(n){return Zg(this.b,n)},"Fvb");var AEi=j(zn,"PriorityQueue",496);G(1262,1,fo,_xt),x.Nb=i(function(n){So(this,n)},"Hvb"),x.Ob=i(function(){return this.a<this.c.b.c.length},"Ivb"),x.Pb=i(function(){return In(this.a<this.c.b.c.length),this.b=this.a++,Wt(this.c.b,this.b)},"Jvb"),x.Qb=i(function(){Dk(this.b!=-1),zue(this.c,this.a=this.b),this.b=-1},"Kvb"),x.a=0,x.b=-1;var REi=j(zn,"PriorityQueue/1",1262);G(234,1,{234:1},Ehe,KY),x.a=0,x.b=0;var yBe,bBe,aSn=0,LEi=j(zn,"Random",234);G(27,1,Gf,Rr,jk,N7t),x.yd=i(function(n){return(this.a&n)!=0},"dwb"),x.wd=i(function(){return this.a},"awb"),x.xd=i(function(){return n7e(this),this.c},"bwb"),x.Nb=i(function(n){n7e(this),this.d.Nb(n)},"cwb"),x.zd=i(function(n){return B9t(this,n)},"ewb"),x.a=0,x.c=0;var _Ei=j(zn,"Spliterators/IteratorSpliterator",27);G(481,27,Gf,fq);var DEi=j(zn,"SortedSet/1",481);G(601,1,kG,b5e),x.Ne=i(function(n){this.a.Ad(n)},"iwb");var IEi=j(zn,"Spliterator/OfDouble/0methodref$accept$Type",601);G(602,1,kG,v5e),x.Ne=i(function(n){this.a.Ad(n)},"kwb");var MEi=j(zn,"Spliterator/OfDouble/1methodref$accept$Type",602);G(603,1,mG,w5e),x.Bd=i(function(n){this.a.Ad(Et(n))},"mwb");var NEi=j(zn,"Spliterator/OfInt/2methodref$accept$Type",603);G(604,1,mG,x5e),x.Bd=i(function(n){this.a.Ad(Et(n))},"owb");var OEi=j(zn,"Spliterator/OfInt/3methodref$accept$Type",604);G(617,1,Gf),x.Nb=i(function(n){p6e(this,n)},"uwb"),x.yd=i(function(n){return(this.d&n)!=0},"vwb"),x.wd=i(function(){return this.d},"swb"),x.xd=i(function(){return this.e},"twb"),x.d=0,x.e=0;var PEi=j(zn,"Spliterators/BaseSpliterator",617);G(724,617,Gf),x.Oe=i(function(n){lC(this,n)},"xwb"),x.Nb=i(function(n){Ge(n,189)?lC(this,y(n,189)):lC(this,new v5e(n))},"ywb"),x.zd=i(function(n){return Ge(n,189)?this.Pe(y(n,189)):this.Pe(new b5e(n))},"zwb");var BEi=j(zn,"Spliterators/AbstractDoubleSpliterator",724);G(723,617,Gf),x.Oe=i(function(n){lC(this,n)},"Bwb"),x.Nb=i(function(n){Ge(n,202)?lC(this,y(n,202)):lC(this,new x5e(n))},"Cwb"),x.zd=i(function(n){return Ge(n,202)?this.Pe(y(n,202)):this.Pe(new w5e(n))},"Dwb");var FEi=j(zn,"Spliterators/AbstractIntSpliterator",723);G(486,617,Gf);var $Ei=j(zn,"Spliterators/AbstractSpliterator",486);G(695,1,Gf),x.Nb=i(function(n){p6e(this,n)},"Kwb"),x.yd=i(function(n){return(this.b&n)!=0},"Lwb"),x.wd=i(function(){return this.b},"Iwb"),x.xd=i(function(){return this.d-this.c},"Jwb"),x.b=0,x.c=0,x.d=0;var GEi=j(zn,"Spliterators/BaseArraySpliterator",695);G(944,695,Gf,e8t),x.Qe=i(function(n,o){gQr(this,y(n,41),o)},"Owb"),x.Nb=i(function(n){Nce(this,n)},"Pwb"),x.zd=i(function(n){return aX(this,n)},"Qwb");var jEi=j(zn,"Spliterators/ArraySpliterator",944);G(696,695,Gf,pAt),x.Qe=i(function(n,o){mQr(this,y(n,189),o)},"Uwb"),x.Oe=i(function(n){Nce(this,n)},"Vwb"),x.Nb=i(function(n){Ge(n,189)?Nce(this,y(n,189)):Nce(this,new v5e(n))},"Wwb"),x.Pe=i(function(n){return aX(this,n)},"Xwb"),x.zd=i(function(n){return Ge(n,189)?aX(this,y(n,189)):aX(this,new b5e(n))},"Ywb");var zEi=j(zn,"Spliterators/DoubleArraySpliterator",696);G(2031,1,Gf),x.Nb=i(function(n){p6e(this,n)},"bxb"),x.yd=i(function(n){return(16448&n)!=0},"cxb"),x.wd=i(function(){return 16448},"_wb"),x.xd=i(function(){return 0},"axb");var lYt,UEi=j(zn,"Spliterators/EmptySpliterator",2031);G(943,2031,Gf,vt),x.Oe=i(function(n){e5e(n)},"gxb"),x.Nb=i(function(n){Ge(n,202)?e5e(y(n,202)):e5e(new x5e(n))},"hxb"),x.Pe=i(function(n){return I6e(n)},"ixb"),x.zd=i(function(n){return Ge(n,202)?I6e(y(n,202)):I6e(new w5e(n))},"jxb");var VEi=j(zn,"Spliterators/EmptySpliterator/OfInt",943);G(575,56,xUt,jH),x._c=i(function(n,o){o7(n,this.a.c.length+1),W2(this.a,n,o)},"oxb"),x.Ec=i(function(n){return Nt(this.a,n)},"pxb"),x.ad=i(function(n,o){return o7(n,this.a.c.length+1),t_e(this.a,n,o)},"qxb"),x.Fc=i(function(n){return Is(this.a,n)},"rxb"),x.$b=i(function(){vk(this.a.c,0)},"txb"),x.Gc=i(function(n){return Jl(this.a,n,0)!=-1},"uxb"),x.Hc=i(function(n){return E$(this.a,n)},"vxb"),x.Ic=i(function(n){Zc(this.a,n)},"wxb"),x.Xb=i(function(n){return o7(n,this.a.c.length),Wt(this.a,n)},"xxb"),x.bd=i(function(n){return Jl(this.a,n,0)},"yxb"),x.dc=i(function(){return this.a.c.length==0},"zxb"),x.Jc=i(function(){return new ye(this.a)},"Axb"),x.ed=i(function(n){return o7(n,this.a.c.length),Gy(this.a,n)},"Bxb"),x.ae=i(function(n,o){tLt(this.a,n,o)},"Cxb"),x.fd=i(function(n,o){return o7(n,this.a.c.length),Mf(this.a,n,o)},"Dxb"),x.gc=i(function(){return this.a.c.length},"Exb"),x.gd=i(function(n){zs(this.a,n)},"Fxb"),x.hd=i(function(n,o){return new sv(this.a,n,o)},"Gxb"),x.Nc=i(function(){return aY(this.a.c)},"Hxb"),x.Oc=i(function(n){return Zg(this.a,n)},"Ixb"),x.Ib=i(function(){return r0(this.a)},"Jxb");var WEi=j(zn,"Vector",575);G(576,575,xUt,zH);var HEi=j(zn,"Stack",576);G(212,1,{212:1},aw),x.Ib=i(function(){return CLt(this)},"Rxb");var qEi=j(zn,"StringJoiner",212);G(542,2055,{3:1,92:1,138:1,134:1},pEt,xce),x.$b=i(function(){U4t(this)},"myb"),x.Be=i(function(){return new $Lt(this)},"nyb"),x.vc=i(function(){return new l6t(this)},"oyb"),x.Ce=i(function(n){return V7(this,n,!0)},"pyb"),x.De=i(function(n){return zMt(this,n)},"qyb"),x.Ee=i(function(){return jRe(this)},"ryb"),x.Fe=i(function(n){return B$(this,n,!0)},"syb"),x.Ge=i(function(n){return V7(this,n,!1)},"tyb"),x.He=i(function(){return NDt(this)},"uyb"),x.Ie=i(function(n){return B$(this,n,!1)},"vyb"),x.Xc=i(function(n,o){return ZRt(this,n,o)},"wyb"),x.yc=i(function(n,o){return _Mt(this,n,o)},"xyb"),x.Ac=i(function(n){return xRt(this,n)},"yyb"),x.Je=i(function(n){return DRe(this,n)},"zyb"),x.gc=i(function(){return this.c},"Ayb"),x.$c=i(function(n,o){return eLt(this,n,o)},"Byb"),x.c=0;var YEi=j(zn,"TreeMap",542);G(543,1,fo,$Lt,Hue),x.Nb=i(function(n){So(this,n)},"Gyb"),x.Pb=i(function(){return g6t(this)},"Iyb"),x.Ob=i(function(){return Xoe(this.a)},"Hyb"),x.Qb=i(function(){CAt(this)},"Jyb");var XEi=j(zn,"TreeMap/EntryIterator",543);G(1112,621,bh,l6t),x.$b=i(function(){U4t(this.a)},"Lyb");var KEi=j(zn,"TreeMap/EntrySet",1112);G(438,390,{480:1,390:1,45:1,438:1},Tue),x.b=!1;var sSn=j(zn,"TreeMap/Node",438);G(622,1,{},lt),x.Ib=i(function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},"Oyb"),x.a=!1,x.b=!1,x.c=!1;var JEi=j(zn,"TreeMap/State",622);G(623,2055,lMe,kfe),x.Be=i(function(){return new Hue(this.c,this.f,this.b,this.a,this.e,this.d)},"Syb"),x.vc=i(function(){return new moe(this)},"Tyb"),x.Ce=i(function(n){return rY(this,V7(this.c,n,!0))},"Uyb"),x.De=i(function(n){return rY(this,zMt(this.c,n))},"Vyb"),x.Ee=i(function(){var n;return this.f.Re()?this.a?n=V7(this.c,this.b,!0):n=V7(this.c,this.b,!1):n=jRe(this.c),n&&RY(this,n.d)?n:null},"Wyb"),x.Fe=i(function(n){return rY(this,B$(this.c,n,!0))},"Xyb"),x.Ge=i(function(n){return rY(this,V7(this.c,n,!1))},"Yyb"),x.He=i(function(){var n;return this.f.Se()?this.d?n=B$(this.c,this.e,!0):n=B$(this.c,this.e,!1):n=NDt(this.c),n&&RY(this,n.d)?n:null},"Zyb"),x.Ie=i(function(n){return rY(this,B$(this.c,n,!1))},"$yb"),x.Xc=i(function(n,o){if(this.f.Se()&&this.c.a.Le(n,this.e)>0)throw xe(new rn(vMe+n+" greater than "+this.e));return this.f.Re()?wRt(this.c,this.b,this.a,n,o):ZRt(this.c,n,o)},"_yb"),x.yc=i(function(n,o){if(!sfe(this.c,this.f,n,this.b,this.a,this.e,this.d))throw xe(new rn(n+" outside the range "+this.b+" to "+this.e));return _Mt(this.c,n,o)},"azb"),x.Ac=i(function(n){var o;return o=n,sfe(this.c,this.f,o,this.b,this.a,this.e,this.d)?xRt(this.c,o):null},"bzb"),x.Je=i(function(n){return RY(this,n.jd())&&DRe(this.c,n)},"czb"),x.gc=i(function(){var n,o,u;if(this.f.Re()?this.a?o=V7(this.c,this.b,!0):o=V7(this.c,this.b,!1):o=jRe(this.c),!(o&&RY(this,o.d)&&o))return 0;for(n=0,u=new Hue(this.c,this.f,this.b,this.a,this.e,this.d);Xoe(u.a);u.b=y(I7e(u.a),45))++n;return n},"dzb"),x.$c=i(function(n,o){if(this.f.Re()&&this.c.a.Le(n,this.b)<0)throw xe(new rn(vMe+n+TUt+this.b));return this.f.Se()?wRt(this.c,n,o,this.e,this.d):eLt(this.c,n,o)},"ezb"),x.a=!1,x.d=!1;var QEi=j(zn,"TreeMap/SubMap",623);G(310,24,Kde,uq),x.Re=i(function(){return!1},"lzb"),x.Se=i(function(){return!1},"mzb");var b0e,v0e,w0e,x0e,vQ=qn(zn,"TreeMap/SubMapType",310,ii,Aln,nrn);G(1113,310,Kde,w5t),x.Se=i(function(){return!0},"qzb");var ZEi=qn(zn,"TreeMap/SubMapType/1",1113,vQ,null,null);G(1114,310,Kde,D5t),x.Re=i(function(){return!0},"szb"),x.Se=i(function(){return!0},"tzb");var eSi=qn(zn,"TreeMap/SubMapType/2",1114,vQ,null,null);G(1115,310,Kde,x5t),x.Re=i(function(){return!0},"vzb");var tSi=qn(zn,"TreeMap/SubMapType/3",1115,vQ,null,null),cYt;G(141,i0,{3:1,20:1,31:1,18:1,277:1,22:1,83:1,141:1},koe,NAe,My,P8),x.Lc=i(function(){return new fq(this)},"Ozb"),x.Ec=i(function(n){return jF(this,n)},"Izb"),x.$b=i(function(){this.a.$b()},"Jzb"),x.Gc=i(function(n){return this.a._b(n)},"Kzb"),x.Jc=i(function(){return this.a.ec().Jc()},"Lzb"),x.Kc=i(function(n){return Gle(this,n)},"Mzb"),x.gc=i(function(){return this.a.gc()},"Nzb");var oSn=j(zn,"TreeSet",141);G(1053,1,{},Dxt),x.Te=i(function(n,o){return btn(this.a,n,o)},"Szb");var rSi=j(Jde,"BinaryOperator/lambda$0$Type",1053);G(1054,1,{},Ixt),x.Te=i(function(n,o){return vtn(this.a,n,o)},"Uzb");var nSi=j(Jde,"BinaryOperator/lambda$1$Type",1054);G(936,1,{},Rt),x.Kb=i(function(n){return n},"Wzb");var iSi=j(Jde,"Function/lambda$0$Type",936);G(388,1,yi,B8),x.Mb=i(function(n){return!this.a.Mb(n)},"Yzb");var aSi=j(Jde,"Predicate/lambda$2$Type",388);G(567,1,{567:1});var uYt=j(KI,"Handler",567);G(2072,1,pG),x.ve=i(function(){return"DUMMY"},"_zb"),x.Ib=i(function(){return this.ve()},"aAb");var vBe,sSi=j(KI,"Level",2072);G(1675,2072,pG,pr),x.ve=i(function(){return"INFO"},"cAb");var oSi=j(KI,"Level/LevelInfo",1675);G(1827,1,{},X3t);var T0e,lSi=j(KI,"LogManager",1827);G(1869,1,pG,kAt),x.b=null;var cSi=j(KI,"LogRecord",1869);G(512,1,{512:1},fue),x.e=!1;var hYt=!1,fYt=!1,c0=!1,dYt=!1,pYt=!1,uSi=j(KI,"Logger",512);G(820,567,{567:1},tr);var hSi=j(KI,"SimpleConsoleLogHandler",820);G(130,24,{3:1,35:1,24:1,130:1},Koe);var wBe,Zu,xBe,eh=qn(cl,"Collector/Characteristics",130,ii,gon,irn),gYt;G(746,1,{},l7e);var fSi=j(cl,"CollectorImpl",746);G(1051,1,{},Ft),x.Te=i(function(n,o){return Fdn(y(n,212),y(o,212))},"OAb");var dSi=j(cl,"Collectors/10methodref$merge$Type",1051);G(1052,1,{},Mt),x.Kb=i(function(n){return CLt(y(n,212))},"QAb");var pSi=j(cl,"Collectors/11methodref$toString$Type",1052);G(152,1,{},ot),x.Wd=i(function(n,o){y(n,18).Ec(o)},"SAb");var gSi=j(cl,"Collectors/20methodref$add$Type",152);G(154,1,{},it),x.Ve=i(function(){return new Pt},"UAb");var mSi=j(cl,"Collectors/21methodref$ctor$Type",154);G(1050,1,{},mt),x.Wd=i(function(n,o){P1(y(n,212),y(o,472))},"WAb");var ySi=j(cl,"Collectors/9methodref$add$Type",1050);G(1049,1,{},VAt),x.Ve=i(function(){return new aw(this.a,this.b,this.c)},"YAb");var bSi=j(cl,"Collectors/lambda$15$Type",1049);G(153,1,{},pt),x.Te=i(function(n,o){return QQr(y(n,18),y(o,18))},"$Ab");var vSi=j(cl,"Collectors/lambda$45$Type",153);G(539,1,{}),x.Ye=i(function(){V9(this)},"fBb"),x.d=!1;var wSi=j(cl,"TerminatableStream",539);G(769,539,wMe,YAe),x.Ye=i(function(){V9(this)},"oBb");var xSi=j(cl,"DoubleStreamImpl",769);G(1298,724,Gf,zAt),x.Pe=i(function(n){return f0n(this,y(n,189))},"tBb"),x.a=null;var TSi=j(cl,"DoubleStreamImpl/2",1298);G(1299,1,kG,Mxt),x.Ne=i(function(n){VZr(this.a,n)},"vBb");var kSi=j(cl,"DoubleStreamImpl/2/lambda$0$Type",1299);G(1296,1,kG,Nxt),x.Ne=i(function(n){UZr(this.a,n)},"xBb");var CSi=j(cl,"DoubleStreamImpl/lambda$0$Type",1296);G(1297,1,kG,Oxt),x.Ne=i(function(n){ZNt(this.a,n)},"zBb");var ESi=j(cl,"DoubleStreamImpl/lambda$2$Type",1297);G(1352,723,Gf,D_t),x.Pe=i(function(n){return bln(this,y(n,202))},"EBb"),x.a=0,x.b=0,x.c=0;var SSi=j(cl,"IntStream/5",1352);G(794,539,wMe,XAe),x.Ye=i(function(){V9(this)},"IBb"),x.Ze=i(function(){return iv(this),this.a},"JBb");var ASi=j(cl,"IntStreamImpl",794);G(795,539,wMe,x6e),x.Ye=i(function(){V9(this)},"LBb"),x.Ze=i(function(){return iv(this),RAe(),lYt},"MBb");var RSi=j(cl,"IntStreamImpl/Empty",795);G(1654,1,mG,Pxt),x.Bd=i(function(n){eMt(this.a,n)},"OBb");var LSi=j(cl,"IntStreamImpl/lambda$4$Type",1654),lSn=za(cl,"Stream");G(28,539,{521:1,677:1,833:1},Er),x.Ye=i(function(){V9(this)},"kCb");var L6,_Si=j(cl,"StreamImpl",28);G(1073,486,Gf,gAt),x.zd=i(function(n){for(;yun(this);){if(this.a.zd(n))return!0;V9(this.b),this.b=null,this.a=null}return!1},"qCb");var DSi=j(cl,"StreamImpl/1",1073);G(1074,1,xn,Bxt),x.Ad=i(function(n){ain(this.a,y(n,833))},"sCb");var ISi=j(cl,"StreamImpl/1/lambda$0$Type",1074);G(1075,1,yi,Fxt),x.Mb=i(function(n){return ys(this.a,n)},"uCb");var MSi=j(cl,"StreamImpl/1methodref$add$Type",1075);G(1076,486,Gf,Y7t),x.zd=i(function(n){var o;return this.a||(o=new Pt,this.b.a.Nb(new $xt(o)),Ir(),zs(o,this.c),this.a=new Rr(o,16)),B9t(this.a,n)},"wCb"),x.a=null;var NSi=j(cl,"StreamImpl/5",1076);G(1077,1,xn,$xt),x.Ad=i(function(n){Nt(this.a,n)},"yCb");var OSi=j(cl,"StreamImpl/5/2methodref$add$Type",1077);G(725,486,Gf,zRe),x.zd=i(function(n){for(this.b=!1;!this.b&&this.c.zd(new IEt(this,n)););return this.b},"BCb"),x.b=!1;var PSi=j(cl,"StreamImpl/FilterSpliterator",725);G(1067,1,xn,IEt),x.Ad=i(function(n){Qin(this.a,this.b,n)},"DCb");var BSi=j(cl,"StreamImpl/FilterSpliterator/lambda$0$Type",1067);G(1062,724,Gf,W_t),x.Pe=i(function(n){return Btn(this,y(n,189))},"HCb");var FSi=j(cl,"StreamImpl/MapToDoubleSpliterator",1062);G(1066,1,xn,MEt),x.Ad=i(function(n){dZr(this.a,this.b,n)},"JCb");var $Si=j(cl,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1066);G(1061,723,Gf,H_t),x.Pe=i(function(n){return Ftn(this,y(n,202))},"NCb");var GSi=j(cl,"StreamImpl/MapToIntSpliterator",1061);G(1065,1,xn,NEt),x.Ad=i(function(n){pZr(this.a,this.b,n)},"PCb");var jSi=j(cl,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1065);G(722,486,Gf,ARe),x.zd=i(function(n){return dAt(this,n)},"TCb");var zSi=j(cl,"StreamImpl/MapToObjSpliterator",722);G(1064,1,xn,OEt),x.Ad=i(function(n){gZr(this.a,this.b,n)},"VCb");var USi=j(cl,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1064);G(1063,486,Gf,gIt),x.zd=i(function(n){for(;qoe(this.b,0);){if(!this.a.zd(new gt))return!1;this.b=Kd(this.b,1)}return this.a.zd(n)},"XCb"),x.b=0;var VSi=j(cl,"StreamImpl/SkipSpliterator",1063);G(1068,1,xn,gt),x.Ad=i(function(n){},"ZCb");var WSi=j(cl,"StreamImpl/SkipSpliterator/lambda$0$Type",1068);G(618,1,xn,ut),x.Ad=i(function(n){xxt(this,n)},"aDb");var HSi=j(cl,"StreamImpl/ValueConsumer",618);G(1069,1,xn,Yt),x.Ad=i(function(n){z2()},"cDb");var qSi=j(cl,"StreamImpl/lambda$0$Type",1069);G(1070,1,xn,Ye),x.Ad=i(function(n){z2()},"eDb");var YSi=j(cl,"StreamImpl/lambda$1$Type",1070);G(1071,1,{},Gxt),x.Te=i(function(n,o){return Ztn(this.a,n,o)},"gDb");var XSi=j(cl,"StreamImpl/lambda$4$Type",1071);G(1072,1,xn,PEt),x.Ad=i(function(n){_tn(this.b,this.a,n)},"iDb");var KSi=j(cl,"StreamImpl/lambda$5$Type",1072);G(1078,1,xn,jxt),x.Ad=i(function(n){gfn(this.a,y(n,375))},"kDb");var JSi=j(cl,"TerminatableStream/lambda$0$Type",1078);G(2107,1,{}),G(1979,1,{},Oe);var QSi=j("javaemul.internal","ConsoleLogger",1979),cSn=0;G(2099,1,{}),G(1803,1,xn,K),x.Ad=i(function(n){y(n,322)},"ZDb");var ZSi=j(bR,"BowyerWatsonTriangulation/lambda$0$Type",1803);G(1804,1,xn,zxt),x.Ad=i(function(n){Fo(this.a,y(n,322).e)},"_Db");var e5i=j(bR,"BowyerWatsonTriangulation/lambda$1$Type",1804);G(1805,1,xn,Te),x.Ad=i(function(n){y(n,177)},"bEb");var t5i=j(bR,"BowyerWatsonTriangulation/lambda$2$Type",1805);G(1800,1,Di,Uxt),x.Le=i(function(n,o){return scn(this.a,y(n,177),y(o,177))},"fEb"),x.Fb=i(function(n){return this===n},"gEb"),x.Me=i(function(){return new Ci(this)},"hEb");var r5i=j(bR,"NaiveMinST/lambda$0$Type",1800);G(440,1,{},WD);var n5i=j(bR,"NodeMicroLayout",440);G(177,1,{177:1},x5),x.Fb=i(function(n){var o;return Ge(n,177)?(o=y(n,177),Oc(this.a,o.a)&&Oc(this.b,o.b)||Oc(this.a,o.b)&&Oc(this.b,o.a)):!1},"lEb"),x.Hb=i(function(){return yC(this.a)+yC(this.b)},"mEb");var uSn=j(bR,"TEdge",177);G(322,1,{322:1},NIe),x.Fb=i(function(n){var o;return Ge(n,322)?(o=y(n,322),hX(this,o.a)&&hX(this,o.b)&&hX(this,o.c)):!1},"pEb"),x.Hb=i(function(){return yC(this.a)+yC(this.b)+yC(this.c)},"qEb");var i5i=j(bR,"TTriangle",322);G(225,1,{225:1},$q);var a5i=j(bR,"Tree",225);G(1184,1,{},$Rt);var s5i=j(EUt,"Scanline",1184),mYt=za(EUt,SUt);G(1731,1,{},N9t);var o5i=j(Km,"CGraph",1731);G(321,1,{321:1},IRt),x.b=0,x.c=0,x.d=0,x.g=0,x.i=0,x.k=Ys;var l5i=j(Km,"CGroup",321);G(815,1,{},F5e);var c5i=j(Km,"CGroup/CGroupBuilder",815);G(60,1,{60:1},K6t),x.Ib=i(function(){var n;return this.j?di(this.j.Kb(this)):(_1(wQ),wQ.o+"@"+(n=Sx(this)>>>0,n.toString(16)))},"EEb"),x.f=0,x.i=Ys;var wQ=j(Km,"CNode",60);G(814,1,{},$5e);var u5i=j(Km,"CNode/CNodeBuilder",814),yYt;G(1552,1,{},ce),x.df=i(function(n,o){return 0},"REb"),x.ef=i(function(n,o){return 0},"SEb");var h5i=j(Km,RUt,1552);G(1833,1,{},Re),x.af=i(function(n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;for(M=qa,p=new ye(n.a.b);p.a<p.c.c.length;)o=y(de(p),60),M=d.Math.min(M,o.a.j.d.c+o.b.a);for(ie=new ya,k=new ye(n.a.a);k.a<k.c.c.length;)w=y(de(k),321),w.k=M,w.g==0&&Ha(ie,w,ie.c.b,ie.c);for(;ie.b!=0;){for(w=y(ie.b==0?null:(In(ie.b!=0),dd(ie,ie.a.a)),321),g=w.j.d.c,ee=w.a.a.ec().Jc();ee.Ob();)F=y(ee.Pb(),60),fe=w.k+F.b.a,!Tdn(n,w,n.d)||F.d.c<fe?F.i=fe:F.i=F.d.c;for(g-=w.j.i,w.b+=g,n.d==(Ss(),Bl)||n.d==p0?w.c+=g:w.c-=g,z=w.a.a.ec().Jc();z.Ob();)for(F=y(z.Pb(),60),D=F.c.Jc();D.Ob();)A=y(D.Pb(),60),R1(n.d)?ue=n.g.df(F,A):ue=n.g.ef(F,A),A.a.k=d.Math.max(A.a.k,F.i+F.d.b+ue-A.b.a),aRt(n,A,n.d)&&(A.a.k=d.Math.max(A.a.k,A.d.c-A.b.a)),--A.a.g,A.a.g==0&&_i(ie,A.a)}for(u=new ye(n.a.b);u.a<u.c.c.length;)o=y(de(u),60),o.d.c=o.i},"UEb");var f5i=j(Km,"LongestPathCompaction",1833);G(1729,1,{},CFt),x.e=!1;var bYt,vYt,wYt,k0e=j(Km,DUt,1729);G(1730,1,xn,Vxt),x.Ad=i(function(n){Tfn(this.a,y(n,49))},"oFb");var d5i=j(Km,IUt,1730);G(1834,1,{},rt),x.bf=i(function(n){var o,u,p,g,w,k,A;for(u=new ye(n.a.b);u.a<u.c.c.length;)o=y(de(u),60),o.c.$b();for(g=new ye(n.a.b);g.a<g.c.c.length;)for(p=y(de(g),60),k=new ye(n.a.b);k.a<k.c.c.length;)w=y(de(k),60),p!=w&&(p.a&&p.a==w.a||(R1(n.d)?A=n.g.ef(p,w):A=n.g.df(p,w),(w.d.c>p.d.c||p.d.c==w.d.c&&p.d.b<w.d.b)&&Qpn(w.d.d+w.d.a+A,p.d.d)&&z_e(w.d.d,p.d.d+p.d.a+A)&&p.c.Ec(w)))},"qFb");var p5i=j(Km,"QuadraticConstraintCalculation",1834);G(517,1,{517:1},woe),x.a=!1,x.b=!1,x.c=!1,x.d=!1;var g5i=j(Km,MUt,517);G(805,1,{},Q8e),x.bf=i(function(n){this.c=n,X$(this,new ft)},"zFb");var m5i=j(Km,NUt,805);G(1757,1,{683:1},sRt),x._e=i(function(n){abn(this,y(n,463))},"FFb");var y5i=j(Km,OUt,1757);G(1758,1,Di,nt),x.Le=i(function(n,o){return Jan(y(n,60),y(o,60))},"IFb"),x.Fb=i(function(n){return this===n},"JFb"),x.Me=i(function(){return new Ci(this)},"KFb");var b5i=j(Km,PUt,1758);G(463,1,{463:1},M6e),x.a=!1;var v5i=j(Km,BUt,463);G(1759,1,Di,Ot),x.Le=i(function(n,o){return Tmn(y(n,463),y(o,463))},"NFb"),x.Fb=i(function(n){return this===n},"OFb"),x.Me=i(function(){return new Ci(this)},"PFb");var w5i=j(Km,FUt,1759);G(1760,1,tm,ft),x.Lb=i(function(n){return y(n,60),!0},"RFb"),x.Fb=i(function(n){return this===n},"SFb"),x.Mb=i(function(n){return y(n,60),!0},"TFb");var x5i=j(Km,"ScanlineConstraintCalculator/lambda$1$Type",1760);G(217,1,{217:1},Ue),x.Ib=i(function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},"WFb"),x.a=1,x.b=0,x.c=0,x.f=!1,x.g=0;var xYt=j(JI,"NEdge",217);G(183,1,{},Vd);var T5i=j(JI,"NEdge/NEdgeBuilder",183);G(652,1,{},Toe);var k5i=j(JI,"NGraph",652);G(124,1,{124:1},z_t),x.c=-1,x.d=0,x.e=0,x.i=-1,x.j=!1;var TBe=j(JI,"NNode",124);G(796,1,wUt,B5e),x.Ic=i(function(n){Io(this,n)},"sGb"),x.gd=i(function(n){nw(this,n)},"DGb"),x.Lc=i(function(){return new Rr(this,16)},"EGb"),x.Mc=i(function(){return new Er(null,new Rr(this,16))},"FGb"),x._c=i(function(n,o){++this.b,W2(this.a,n,o)},"lGb"),x.Ec=i(function(n){return Wq(this,n)},"mGb"),x.ad=i(function(n,o){return++this.b,t_e(this.a,n,o)},"nGb"),x.Fc=i(function(n){return++this.b,Is(this.a,n)},"oGb"),x.$b=i(function(){++this.b,vk(this.a.c,0)},"pGb"),x.Gc=i(function(n){return Jl(this.a,n,0)!=-1},"qGb"),x.Hc=i(function(n){return E$(this.a,n)},"rGb"),x.Xb=i(function(n){return Wt(this.a,n)},"tGb"),x.bd=i(function(n){return Jl(this.a,n,0)},"uGb"),x.dc=i(function(){return this.a.c.length==0},"vGb"),x.Jc=i(function(){return Y5(new ye(this.a))},"wGb"),x.cd=i(function(){throw xe(new hi)},"xGb"),x.dd=i(function(n){throw xe(new hi)},"yGb"),x.ed=i(function(n){return++this.b,Gy(this.a,n)},"zGb"),x.Kc=i(function(n){return PAe(this,n)},"AGb"),x.fd=i(function(n,o){return++this.b,Mf(this.a,n,o)},"BGb"),x.gc=i(function(){return this.a.c.length},"CGb"),x.hd=i(function(n,o){return new sv(this.a,n,o)},"GGb"),x.Nc=i(function(){return aY(this.a.c)},"HGb"),x.Oc=i(function(n){return Zg(this.a,n)},"IGb"),x.b=0;var C5i=j(JI,"NNode/ChangeAwareArrayList",796);G(274,1,{},G2);var E5i=j(JI,"NNode/NNodeBuilder",274);G(1663,1,{},Qt),x.a=!1,x.f=Ui,x.j=0;var S5i=j(JI,"NetworkSimplex",1663);G(767,1,xn,T5e),x.Ad=i(function(n){KIe(this.a,y(n,685),!0,!1)},"lHb");var A5i=j($Ut,"NodeLabelAndSizeCalculator/lambda$0$Type",767);G(497,1,{},KB),x.b=!0,x.c=!0,x.d=!0,x.e=!0;var R5i=j($Ut,"NodeMarginCalculator",497);G(216,1,{216:1}),x.j=!1,x.k=!1;var TYt=j(yw,"Cell",216);G(127,216,{127:1,216:1},X6t),x.ff=i(function(){return sY(this)},"xHb"),x.gf=i(function(){var n;return n=this.n,this.a.a+n.b+n.c},"yHb");var L5i=j(yw,"AtomicCell",127);G(237,24,{3:1,35:1,24:1,237:1},Joe);var dc,Cu,pc,_3=qn(yw,"ContainerArea",237,ii,mon,arn),kYt;G(337,216,GUt);var _5i=j(yw,"ContainerCell",337);G(1500,337,GUt,JNt),x.ff=i(function(){var n;return n=0,this.e?this.b?n=this.b.b:this.a[1][1]&&(n=this.a[1][1].ff()):n=L_e(this,oPt(this,!0)),n>0?n+this.n.d+this.n.a:0},"aIb"),x.gf=i(function(){var n,o,u,p,g;if(g=0,this.e)this.b?g=this.b.a:this.a[1][1]&&(g=this.a[1][1].gf());else if(this.g)g=L_e(this,lfe(this,null,!0));else for(o=(yg(),Se(Ee(_3,1),At,237,0,[dc,Cu,pc])),u=0,p=o.length;u<p;++u)n=o[u],g=d.Math.max(g,L_e(this,lfe(this,n,!0)));return g>0?g+this.n.b+this.n.c:0},"bIb"),x.hf=i(function(){var n,o,u,p,g;if(this.g)for(n=lfe(this,null,!1),u=(yg(),Se(Ee(_3,1),At,237,0,[dc,Cu,pc])),p=0,g=u.length;p<g;++p)o=u[p],q$t(this,o,n);else for(u=(yg(),Se(Ee(_3,1),At,237,0,[dc,Cu,pc])),p=0,g=u.length;p<g;++p)o=u[p],n=lfe(this,o,!1),q$t(this,o,n)},"cIb"),x.jf=i(function(){var n,o,u,p;o=this.i,n=this.n,p=oPt(this,!1),kRe(this,(yg(),dc),o.d+n.d,p),kRe(this,pc,o.d+o.a-n.a-p[2],p),u=o.a-n.d-n.a,p[0]>0&&(p[0]+=this.d,u-=p[0]),p[2]>0&&(p[2]+=this.d,u-=p[2]),this.c.a=d.Math.max(0,u),this.c.d=o.d+n.d+(this.c.a-u)/2,p[1]=d.Math.max(p[1],u),kRe(this,Cu,o.d+n.d+p[0]-(p[1]-u)/2,p)},"dIb"),x.b=null,x.d=0,x.e=!1,x.f=!1,x.g=!1;var C0e=0,xQ=0,D5i=j(yw,"GridContainerCell",1500);G(461,24,{3:1,35:1,24:1,461:1},Qoe);var Iv,om,Hp,CYt=qn(yw,"HorizontalLabelAlignment",461,ii,yon,rrn),EYt;G(319,216,{216:1,319:1},kRt,P9t,mRt),x.ff=i(function(){return r8t(this)},"zIb"),x.gf=i(function(){return j8e(this)},"AIb"),x.a=0,x.c=!1;var hSn=j(yw,"LabelCell",319);G(253,337,{216:1,337:1,253:1},xI),x.ff=i(function(){return LI(this)},"JIb"),x.gf=i(function(){return _I(this)},"KIb"),x.hf=i(function(){Jfe(this)},"NIb"),x.jf=i(function(){Qfe(this)},"OIb"),x.b=0,x.c=0,x.d=!1;var I5i=j(yw,"StripContainerCell",253);G(1658,1,yi,be),x.Mb=i(function(n){return cQr(y(n,216))},"QIb");var M5i=j(yw,"StripContainerCell/lambda$0$Type",1658);G(1659,1,{},ke),x.We=i(function(n){return y(n,216).gf()},"SIb");var N5i=j(yw,"StripContainerCell/lambda$1$Type",1659);G(1660,1,yi,me),x.Mb=i(function(n){return uQr(y(n,216))},"UIb");var O5i=j(yw,"StripContainerCell/lambda$2$Type",1660);G(1661,1,{},We),x.We=i(function(n){return y(n,216).ff()},"WIb");var P5i=j(yw,"StripContainerCell/lambda$3$Type",1661);G(462,24,{3:1,35:1,24:1,462:1},Zoe);var qp,Mv,kg,SYt=qn(yw,"VerticalLabelAlignment",462,ii,bon,trn),AYt;G(788,1,{},QIe),x.c=0,x.d=0,x.k=0,x.s=0,x.t=0,x.v=!1,x.w=0,x.D=!1,x.F=!1;var B5i=j(fJ,"NodeContext",788);G(1498,1,Di,$t),x.Le=i(function(n,o){return h5t(y(n,64),y(o,64))},"jJb"),x.Fb=i(function(n){return this===n},"kJb"),x.Me=i(function(){return new Ci(this)},"lJb");var F5i=j(fJ,"NodeContext/0methodref$comparePortSides$Type",1498);G(1499,1,Di,qt),x.Le=i(function(n,o){return H1n(y(n,115),y(o,115))},"nJb"),x.Fb=i(function(n){return this===n},"oJb"),x.Me=i(function(){return new Ci(this)},"pJb");var $5i=j(fJ,"NodeContext/1methodref$comparePortContexts$Type",1499);G(168,24,{3:1,35:1,24:1,168:1},gd);var RYt,LYt,_Yt,DYt,IYt,MYt,NYt,OYt,PYt,BYt,FYt,$Yt,GYt,jYt,zYt,UYt,VYt,WYt,HYt,qYt,YYt,E0e,XYt=qn(fJ,"NodeLabelLocation",168,ii,$he,ern),KYt;G(115,1,{115:1},DFt),x.a=!1;var G5i=j(fJ,"PortContext",115);G(1503,1,xn,Gt),x.Ad=i(function(n){SCt(y(n,319))},"oKb");var j5i=j(EG,jUt,1503);G(1504,1,yi,jt),x.Mb=i(function(n){return!!y(n,115).c},"qKb");var z5i=j(EG,zUt,1504);G(1505,1,xn,Zr),x.Ad=i(function(n){SCt(y(n,115).c)},"sKb");var U5i=j(EG,"LabelPlacer/lambda$2$Type",1505),kBe;G(1502,1,xn,yt),x.Ad=i(function(n){Nk(),jJr(y(n,115))},"CKb");var V5i=j(EG,"NodeLabelAndSizeUtilities/lambda$0$Type",1502);G(789,1,xn,w8e),x.Ad=i(function(n){tZr(this.b,this.c,this.a,y(n,187))},"JKb"),x.a=!1,x.c=!1;var W5i=j(EG,"NodeLabelCellCreator/lambda$0$Type",789);G(1501,1,xn,Wxt),x.Ad=i(function(n){WJr(this.a,y(n,187))},"QKb");var H5i=j(EG,"PortContextCreator/lambda$0$Type",1501),TQ;G(1875,1,{},$n);var q5i=j(wR,"GreedyRectangleStripOverlapRemover",1875);G(1876,1,Di,Ut),x.Le=i(function(n,o){return Men(y(n,226),y(o,226))},"sLb"),x.Fb=i(function(n){return this===n},"tLb"),x.Me=i(function(){return new Ci(this)},"uLb");var Y5i=j(wR,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1876);G(1829,1,{},e4t),x.a=5,x.e=0;var X5i=j(wR,"RectangleStripOverlapRemover",1829);G(1830,1,Di,An),x.Le=i(function(n,o){return Nen(y(n,226),y(o,226))},"GLb"),x.Fb=i(function(n){return this===n},"HLb"),x.Me=i(function(){return new Ci(this)},"ILb");var K5i=j(wR,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1830);G(1832,1,Di,Un),x.Le=i(function(n,o){return pan(y(n,226),y(o,226))},"KLb"),x.Fb=i(function(n){return this===n},"LLb"),x.Me=i(function(){return new Ci(this)},"MLb");var J5i=j(wR,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1832);G(409,24,{3:1,35:1,24:1,409:1},hq);var JG,S0e,A0e,QG,JYt=qn(wR,"RectangleStripOverlapRemover/OverlapRemovalDirection",409,ii,Sln,srn),QYt;G(226,1,{226:1},yce);var Q5i=j(wR,"RectangleStripOverlapRemover/RectangleNode",226);G(1831,1,xn,Hxt),x.Ad=i(function(n){k0n(this.a,y(n,226))},"ZLb");var Z5i=j(wR,"RectangleStripOverlapRemover/lambda$1$Type",1831),ZYt=!1,LM,CBe;G(1801,1,xn,En),x.Ad=i(function(n){$jt(y(n,225))},"jMb");var e6i=j(T6,"DepthFirstCompaction/0methodref$compactTree$Type",1801);G(811,1,xn,k5e),x.Ad=i(function(n){_an(this.a,y(n,225))},"lMb");var t6i=j(T6,"DepthFirstCompaction/lambda$1$Type",811);G(1802,1,xn,EAt),x.Ad=i(function(n){ugn(this.a,this.b,this.c,y(n,225))},"nMb");var r6i=j(T6,"DepthFirstCompaction/lambda$2$Type",1802),_M,EBe;G(68,1,{68:1},FRt);var n6i=j(T6,"Node",68);G(1180,1,{},L5t);var i6i=j(T6,"ScanlineOverlapCheck",1180);G(1181,1,{683:1},lRt),x._e=i(function(n){wtn(this,y(n,442))},"DMb");var a6i=j(T6,"ScanlineOverlapCheck/OverlapsScanlineHandler",1181);G(1182,1,Di,ai),x.Le=i(function(n,o){return Xdn(y(n,68),y(o,68))},"GMb"),x.Fb=i(function(n){return this===n},"HMb"),x.Me=i(function(){return new Ci(this)},"IMb");var s6i=j(T6,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1182);G(442,1,{442:1},N6e),x.a=!1;var o6i=j(T6,"ScanlineOverlapCheck/Timestamp",442);G(1183,1,Di,Gn),x.Le=i(function(n,o){return kmn(y(n,442),y(o,442))},"LMb"),x.Fb=i(function(n){return this===n},"MMb"),x.Me=i(function(){return new Ci(this)},"NMb");var l6i=j(T6,"ScanlineOverlapCheck/lambda$0$Type",1183);G(546,1,{},ui);var c6i=j("org.eclipse.elk.alg.common.utils","SVGImage",546);G(748,1,{},Tn);var u6i=j(rpe,AMe,748);G(1165,1,Di,Wi),x.Le=i(function(n,o){return Jbn(y(n,235),y(o,235))},"ZMb"),x.Fb=i(function(n){return this===n},"$Mb"),x.Me=i(function(){return new Ci(this)},"_Mb");var h6i=j(rpe,WUt,1165);G(1166,1,xn,BEt),x.Ad=i(function(n){don(this.b,this.a,y(n,251))},"gNb");var f6i=j(rpe,RMe,1166);G(214,1,iT);var d6i=j(JC,"AbstractLayoutProvider",214);G(726,214,iT,G5e),x.kf=i(function(n,o){w$t(this,n,o)},"lNb");var p6i=j(rpe,"ForceLayoutProvider",726),fSn=za(SG,HUt);G(150,1,{3:1,105:1,150:1},Pa),x.of=i(function(n,o){return A$(this,n,o)},"wNb"),x.lf=i(function(){return m8t(this)},"tNb"),x.mf=i(function(n){return oe(this,n)},"uNb"),x.nf=i(function(n){return ea(this,n)},"vNb");var g6i=j(SG,"MapPropertyHolder",150);G(314,150,{3:1,314:1,105:1,150:1});var m6i=j(AG,"FParticle",314);G(251,314,{3:1,251:1,314:1,105:1,150:1},n7t),x.Ib=i(function(){var n;return this.a?(n=Jl(this.a.a,this,0),n>=0?"b"+n+"["+lue(this.a)+"]":"b["+lue(this.a)+"]"):"b_"+Sx(this)},"zNb");var y6i=j(AG,"FBendpoint",251);G(291,150,{3:1,291:1,105:1,150:1},J6t),x.Ib=i(function(){return lue(this)},"HNb");var b6i=j(AG,"FEdge",291);G(235,150,{3:1,235:1,105:1,150:1},rX);var dSn=j(AG,"FGraph",235);G(445,314,{3:1,445:1,314:1,105:1,150:1},r_t),x.Ib=i(function(){return this.b==null||this.b.length==0?"l["+lue(this.a)+"]":"l_"+this.b},"NNb");var v6i=j(AG,"FLabel",445);G(155,314,{3:1,155:1,314:1,105:1,150:1},_5t),x.Ib=i(function(){return J7e(this)},"QNb"),x.a=0;var w6i=j(AG,"FNode",155);G(2065,1,{}),x.qf=i(function(n){RIe(this,n)},"VNb"),x.rf=i(function(){aPt(this)},"WNb"),x.d=0;var x6i=j(LMe,"AbstractForceModel",2065);G(632,2065,{632:1},iMt),x.pf=i(function(n,o){var u,p,g,w,k;return zjt(this.f,n,o),g=qs(Wo(o.d),n.d),k=d.Math.sqrt(g.a*g.a+g.b*g.b),p=d.Math.max(0,k-U9(n.e)/2-U9(o.e)/2),u=xFt(this.e,n,o),u>0?w=-san(p,this.c)*u:w=ntn(p,this.b)*y(oe(n,(Vp(),D6)),15).a,L1(g,w/k),g},"ZNb"),x.qf=i(function(n){RIe(this,n),this.a=y(oe(n,(Vp(),CQ)),15).a,this.c=He(Xe(oe(n,EQ))),this.b=He(Xe(oe(n,L0e)))},"$Nb"),x.sf=i(function(n){return n<this.a},"_Nb"),x.a=0,x.b=0,x.c=0;var T6i=j(LMe,"EadesModel",632);G(633,2065,{633:1},UAt),x.pf=i(function(n,o){var u,p,g,w,k;return zjt(this.f,n,o),g=qs(Wo(o.d),n.d),k=d.Math.sqrt(g.a*g.a+g.b*g.b),p=d.Math.max(0,k-U9(n.e)/2-U9(o.e)/2),w=rtn(p,this.a)*y(oe(n,(Vp(),D6)),15).a,u=xFt(this.e,n,o),u>0&&(w-=iQr(p,this.a)*u),L1(g,w*this.b/k),g},"dOb"),x.qf=i(function(n){var o,u,p,g,w,k,A;for(RIe(this,n),this.b=He(Xe(oe(n,(Vp(),_0e)))),this.c=this.b/y(oe(n,CQ),15).a,p=n.e.c.length,w=0,g=0,A=new ye(n.e);A.a<A.c.c.length;)k=y(de(A),155),w+=k.e.a,g+=k.e.b;o=w*g,u=He(Xe(oe(n,EQ)))*a0,this.a=d.Math.sqrt(o/(2*p))*u},"eOb"),x.rf=i(function(){aPt(this),this.b-=this.c},"fOb"),x.sf=i(function(n){return this.b>0},"gOb"),x.a=0,x.b=0,x.c=0;var k6i=j(LMe,"FruchtermanReingoldModel",633),_6=za(ec,"ILayoutMetaDataProvider");G(845,1,s0,Y2t),x.tf=i(function(n){fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,dJ),""),"Force Model"),"Determines the model for force calculation."),SBe),(dw(),Oa)),ABe),mr((K0(),Or))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,_Me),""),"Iterations"),"The number of iterations on the force model."),Et(300)),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,DMe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Et(0)),jo),Ls),mr(Sg)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,npe),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),rm),Ao),Ts),mr(Or)))),Ga(n,npe,dJ,sXt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ipe),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Ao),Ts),mr(Or)))),Ga(n,ipe,dJ,nXt),_zt((new X2t,n))},"sOb");var eXt,tXt,SBe,rXt,nXt,iXt,aXt,sXt,C6i=j(ZI,"ForceMetaDataProvider",845);G(424,24,{3:1,35:1,24:1,424:1},O6e);var R0e,kQ,ABe=qn(ZI,"ForceModelStrategy",424,ii,jsn,orn),oXt;G(985,1,s0,X2t),x.tf=i(function(n){_zt(n)},"dPb");var lXt,cXt,RBe,CQ,LBe,uXt,hXt,fXt,dXt,_Be,pXt,DBe,IBe,gXt,D6,mXt,L0e,MBe,yXt,bXt,EQ,_0e,vXt,wXt,xXt,NBe,TXt,E6i=j(ZI,"ForceOptions",985);G(986,1,{},qe),x.uf=i(function(){var n;return n=new G5e,n},"fPb"),x.vf=i(function(n){},"gPb");var S6i=j(ZI,"ForceOptions/ForceFactory",986),ZG,DM,I6,SQ;G(846,1,s0,K2t),x.tf=i(function(n){fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,NMe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(qr(),!1)),(dw(),Ms)),Ja),mr((K0(),ds))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,OMe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Ao),Ts),ka(Or,Se(Ee(f0,1),At,160,0,[Sg]))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,PMe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),OBe),Oa),zBe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,BMe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),rm),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,FMe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Et(Ui)),jo),Ls),mr(Or)))),izt((new J2t,n))},"uPb");var kXt,CXt,OBe,EXt,SXt,AXt,A6i=j(ZI,"StressMetaDataProvider",846);G(989,1,s0,J2t),x.tf=i(function(n){izt(n)},"KPb");var AQ,PBe,BBe,FBe,$Be,GBe,RXt,LXt,_Xt,DXt,jBe,IXt,R6i=j(ZI,"StressOptions",989);G(990,1,{},Rn),x.uf=i(function(){var n;return n=new Q6t,n},"MPb"),x.vf=i(function(n){},"NPb");var L6i=j(ZI,"StressOptions/StressFactory",990);G(1081,214,iT,Q6t),x.kf=i(function(n,o){var u,p,g,w,k;for(o.Tg(KUt,1),Kt(Xt(St(n,(j$(),$Be))))?Kt(Xt(St(n,jBe)))||YF((u=new WD((U2(),new qb(n))),u)):w$t(new G5e,n,o.dh(1)),g=EMt(n),p=gjt(this.a,g),k=p.Jc();k.Ob();)w=y(k.Pb(),235),!(w.e.c.length<=1)&&(x3n(this.b,w),Hvn(this.b),Zc(w.d,new Mn));g=Azt(p),Pzt(g),o.Ug()},"PPb");var _6i=j(mJ,"StressLayoutProvider",1081);G(1082,1,xn,Mn),x.Ad=i(function(n){BIe(y(n,445))},"RPb");var D6i=j(mJ,"StressLayoutProvider/lambda$0$Type",1082);G(987,1,{},Y3t),x.c=0,x.e=0,x.g=0;var I6i=j(mJ,"StressMajorization",987);G(384,24,{3:1,35:1,24:1,384:1},ele);var D0e,I0e,M0e,zBe=qn(mJ,"StressMajorization/Dimension",384,ii,pon,lrn),MXt;G(988,1,Di,qxt),x.Le=i(function(n,o){return Gtn(this.a,y(n,155),y(o,155))},"jQb"),x.Fb=i(function(n){return this===n},"kQb"),x.Me=i(function(){return new Ci(this)},"lQb");var M6i=j(mJ,"StressMajorization/lambda$0$Type",988);G(1162,1,{},sLt);var N6i=j(ZC,"ElkLayered",1162);G(1163,1,xn,Yxt),x.Ad=i(function(n){Nbn(this.a,y(n,36))},"xQb");var O6i=j(ZC,"ElkLayered/lambda$0$Type",1163);G(1164,1,xn,Xxt),x.Ad=i(function(n){$tn(this.a,y(n,36))},"zQb");var P6i=j(ZC,"ElkLayered/lambda$1$Type",1164);G(1247,1,{},R5t);var NXt,OXt,PXt,B6i=j(ZC,"GraphConfigurator",1247);G(757,1,xn,C5e),x.Ad=i(function(n){TBt(this.a,y(n,9))},"KQb");var F6i=j(ZC,"GraphConfigurator/lambda$0$Type",757);G(758,1,{},ct),x.Kb=i(function(n){return cfe(),new Er(null,new Rr(y(n,25).a,16))},"MQb");var $6i=j(ZC,"GraphConfigurator/lambda$1$Type",758);G(759,1,xn,E5e),x.Ad=i(function(n){TBt(this.a,y(n,9))},"OQb");var G6i=j(ZC,"GraphConfigurator/lambda$2$Type",759);G(1248,1,yi,dr),x.Mb=i(function(n){return cfe(),!!F_e(y(n,9))},"QQb");var j6i=j(ZC,"GraphConfigurator/lambda$3$Type",1248);G(1080,214,iT,K3t),x.kf=i(function(n,o){var u;u=Zkn(new r4t,n),Qe(St(n,(Bt(),G3)))===Qe((z1(),hb))?apn(this.a,u,o):zvn(this.a,u,o),o.Zg()||wzt(new Q2t,u)},"SQb");var z6i=j(ZC,"LayeredLayoutProvider",1080);G(363,24,{3:1,35:1,24:1,363:1},hF);var Yp,Zm,jc,Lc,hl,UBe=qn(ZC,"LayeredPhases",363,ii,Tcn,crn),BXt;G(1686,1,{},pIt),x.i=0;var FXt,U6i=j(MG,"ComponentsToCGraphTransformer",1686),$Xt;G(1687,1,{},Kr),x.wf=i(function(n,o){return d.Math.min(n.a!=null?He(n.a):n.c.i,o.a!=null?He(o.a):o.c.i)},"kRb"),x.xf=i(function(n,o){return d.Math.min(n.a!=null?He(n.a):n.c.i,o.a!=null?He(o.a):o.c.i)},"lRb");var V6i=j(MG,"ComponentsToCGraphTransformer/1",1687);G(82,1,{82:1}),x.i=0,x.k=!0,x.o=Ys;var N0e=j(nM,"CNode",82);G(460,82,{460:1,82:1},BAe,X_e),x.Ib=i(function(){return""},"oRb");var W6i=j(MG,"ComponentsToCGraphTransformer/CRectNode",460);G(1655,1,{},pn);var O0e,P0e,H6i=j(MG,"OneDimensionalComponentsCompaction",1655);G(1656,1,{},Bn),x.Kb=i(function(n){return oon(y(n,49))},"FRb"),x.Fb=i(function(n){return this===n},"GRb");var q6i=j(MG,"OneDimensionalComponentsCompaction/lambda$0$Type",1656);G(1657,1,{},Hs),x.Kb=i(function(n){return hpn(y(n,49))},"IRb"),x.Fb=i(function(n){return this===n},"JRb");var Y6i=j(MG,"OneDimensionalComponentsCompaction/lambda$1$Type",1657);G(1689,1,{},u7t);var X6i=j(nM,"CGraph",1689);G(194,1,{194:1},Phe),x.b=0,x.c=0,x.e=0,x.g=!0,x.i=Ys;var K6i=j(nM,"CGroup",194);G(1688,1,{},Ki),x.wf=i(function(n,o){return d.Math.max(n.a!=null?He(n.a):n.c.i,o.a!=null?He(o.a):o.c.i)},"SRb"),x.xf=i(function(n,o){return d.Math.max(n.a!=null?He(n.a):n.c.i,o.a!=null?He(o.a):o.c.i)},"TRb");var J6i=j(nM,RUt,1688);G(1690,1,{},kFt),x.d=!1;var GXt,B0e=j(nM,DUt,1690);G(1691,1,{},so),x.Kb=i(function(n){return k6e(),qr(),y(y(n,49).a,82).d.e!=0},"kSb"),x.Fb=i(function(n){return this===n},"lSb");var Q6i=j(nM,IUt,1691);G(818,1,{},V8e),x.a=!1,x.b=!1,x.c=!1,x.d=!1;var Z6i=j(nM,MUt,818);G(1871,1,{},L8t);var eAi=j(yJ,NUt,1871),ej=za(bw,SUt);G(1872,1,{377:1},oRt),x._e=i(function(n){Xwn(this,y(n,465))},"zSb");var tAi=j(yJ,OUt,1872);G(1873,1,Di,js),x.Le=i(function(n,o){return Qan(y(n,82),y(o,82))},"CSb"),x.Fb=i(function(n){return this===n},"DSb"),x.Me=i(function(){return new Ci(this)},"ESb");var rAi=j(yJ,PUt,1873);G(465,1,{465:1},P6e),x.a=!1;var nAi=j(yJ,BUt,465);G(1874,1,Di,ls),x.Le=i(function(n,o){return Cmn(y(n,465),y(o,465))},"HSb"),x.Fb=i(function(n){return this===n},"ISb"),x.Me=i(function(){return new Ci(this)},"JSb");var iAi=j(yJ,FUt,1874);G(146,1,{146:1},J8,B8e),x.Fb=i(function(n){var o;return n==null||pSn!=mf(n)?!1:(o=y(n,146),Oc(this.c,o.c)&&Oc(this.d,o.d))},"MSb"),x.Hb=i(function(){return VX(Se(Ee(Fs,1),Fr,1,5,[this.c,this.d]))},"NSb"),x.Ib=i(function(){return"("+this.c+Tu+this.d+(this.a?"cx":"")+this.b+")"},"OSb"),x.a=!0,x.c=0,x.d=0;var pSn=j(bw,"Point",146);G(408,24,{3:1,35:1,24:1,408:1},dq);var pT,D3,oE,I3,jXt=qn(bw,"Point/Quadrant",408,ii,Eln,urn),zXt;G(1677,1,{},J3t),x.b=null,x.c=null,x.d=null,x.e=null,x.f=null;var UXt,VXt,WXt,HXt,qXt,aAi=j(bw,"RectilinearConvexHull",1677);G(569,1,{377:1},hK),x._e=i(function(n){bun(this,y(n,146))},"uTb"),x.b=0;var VBe,sAi=j(bw,"RectilinearConvexHull/MaximalElementsEventHandler",569);G(1679,1,Di,Ba),x.Le=i(function(n,o){return Zan(Xe(n),Xe(o))},"xTb"),x.Fb=i(function(n){return this===n},"yTb"),x.Me=i(function(){return new Ci(this)},"zTb");var oAi=j(bw,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1679);G(1678,1,{377:1},M9t),x._e=i(function(n){hwn(this,y(n,146))},"CTb"),x.a=0,x.b=null,x.c=null,x.d=null,x.e=null;var lAi=j(bw,"RectilinearConvexHull/RectangleEventHandler",1678);G(1680,1,Di,cs),x.Le=i(function(n,o){return Zon(y(n,146),y(o,146))},"ETb"),x.Fb=i(function(n){return this===n},"FTb"),x.Me=i(function(){return new Ci(this)},"GTb");var cAi=j(bw,"RectilinearConvexHull/lambda$0$Type",1680);G(1681,1,Di,ln),x.Le=i(function(n,o){return eln(y(n,146),y(o,146))},"ITb"),x.Fb=i(function(n){return this===n},"JTb"),x.Me=i(function(){return new Ci(this)},"KTb");var uAi=j(bw,"RectilinearConvexHull/lambda$1$Type",1681);G(1682,1,Di,Vr),x.Le=i(function(n,o){return rln(y(n,146),y(o,146))},"MTb"),x.Fb=i(function(n){return this===n},"NTb"),x.Me=i(function(){return new Ci(this)},"OTb");var hAi=j(bw,"RectilinearConvexHull/lambda$2$Type",1682);G(1683,1,Di,gn),x.Le=i(function(n,o){return tln(y(n,146),y(o,146))},"QTb"),x.Fb=i(function(n){return this===n},"RTb"),x.Me=i(function(){return new Ci(this)},"STb");var fAi=j(bw,"RectilinearConvexHull/lambda$3$Type",1683);G(1684,1,Di,xi),x.Le=i(function(n,o){return oyn(y(n,146),y(o,146))},"UTb"),x.Fb=i(function(n){return this===n},"VTb"),x.Me=i(function(){return new Ci(this)},"WTb");var dAi=j(bw,"RectilinearConvexHull/lambda$4$Type",1684);G(1685,1,{},GRt);var pAi=j(bw,"Scanline",1685);G(2069,1,{});var gAi=j(o0,"AbstractGraphPlacer",2069);G(336,1,{336:1},v6t),x.Df=i(function(n){return this.Ef(n)?(Sr(this.b,y(oe(n,(Tt(),J1)),22),n),!0):!1},"hUb"),x.Ef=i(function(n){var o,u,p,g;for(o=y(oe(n,(Tt(),J1)),22),g=y(oa(va,o),22),p=g.Jc();p.Ob();)if(u=y(p.Pb(),22),!y(oa(this.b,u),16).dc())return!1;return!0},"iUb");var va,mAi=j(o0,"ComponentGroup",336);G(766,2069,{},j5e),x.Ff=i(function(n){var o,u;for(u=new ye(this.a);u.a<u.c.c.length;)if(o=y(de(u),336),o.Df(n))return;Nt(this.a,new v6t(n))},"oUb"),x.Cf=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue;if(this.a.c.length=0,o.a.c.length=0,n.dc()){o.f.a=0,o.f.b=0;return}for(k=y(n.Xb(0),36),wc(o,k),g=n.Jc();g.Ob();)p=y(g.Pb(),36),this.Ff(p);for(ue=new xo,w=He(Xe(oe(k,(Bt(),bj)))),M=new ye(this.a);M.a<M.c.c.length;)A=y(de(M),336),F=Bzt(A,w),jy(AY(A.b),ue.a,ue.b),ue.a+=F.a,ue.b+=F.b;if(o.f.a=ue.a-w,o.f.b=ue.b-w,Kt(Xt(oe(k,dZ)))&&Qe(oe(k,Z1))===Qe((U1(),kL))){for(ie=n.Jc();ie.Ob();)z=y(ie.Pb(),36),aR(z,z.c.a,z.c.b);for(u=new Pn,rMe(u,n,w),ee=n.Jc();ee.Ob();)z=y(ee.Pb(),36),ra(hg(z.c),u.e);ra(hg(o.f),u.a)}for(D=new ye(this.a);D.a<D.c.c.length;)A=y(de(D),336),FRe(o,AY(A.b))},"pUb");var yAi=j(o0,"ComponentGroupGraphPlacer",766);G(1278,766,{},c4t),x.Ff=i(function(n){yNt(this,n)},"sUb"),x.Cf=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve;if(this.a.c.length=0,o.a.c.length=0,n.dc()){o.f.a=0,o.f.b=0;return}for(k=y(n.Xb(0),36),wc(o,k),g=n.Jc();g.Ob();)p=y(g.Pb(),36),yNt(this,p);for(Ve=new xo,$e=new xo,fe=new xo,ue=new xo,w=He(Xe(oe(k,(Bt(),bj)))),M=new ye(this.a);M.a<M.c.c.length;){if(A=y(de(M),336),R1(y(oe(o,(Ri(),Ow)),86))){for(fe.a=Ve.a,Me=new ZD(z9(Ice(A.b).a).a.kc());Me.b.Ob();)if(Ce=y(lq(Me.b.Pb()),22),Ce.Gc((zt(),sn))){fe.a=$e.a;break}}else if(mC(y(oe(o,Ow),86))){for(fe.b=Ve.b,Me=new ZD(z9(Ice(A.b).a).a.kc());Me.b.Ob();)if(Ce=y(lq(Me.b.Pb()),22),Ce.Gc((zt(),on))){fe.b=$e.b;break}}if(F=Bzt(y(A,565),w),jy(AY(A.b),fe.a,fe.b),R1(y(oe(o,Ow),86))){for($e.a=fe.a+F.a,ue.a=d.Math.max(ue.a,$e.a),Me=new ZD(z9(Ice(A.b).a).a.kc());Me.b.Ob();)if(Ce=y(lq(Me.b.Pb()),22),Ce.Gc((zt(),Fn))){Ve.a=fe.a+F.a;break}$e.b=fe.b+F.b,fe.b=$e.b,ue.b=d.Math.max(ue.b,fe.b)}else if(mC(y(oe(o,Ow),86))){for($e.b=fe.b+F.b,ue.b=d.Math.max(ue.b,$e.b),Me=new ZD(z9(Ice(A.b).a).a.kc());Me.b.Ob();)if(Ce=y(lq(Me.b.Pb()),22),Ce.Gc((zt(),bn))){Ve.b=fe.b+F.b;break}$e.a=fe.a+F.a,fe.a=$e.a,ue.a=d.Math.max(ue.a,fe.a)}}if(o.f.a=ue.a-w,o.f.b=ue.b-w,Kt(Xt(oe(k,dZ)))&&Qe(oe(k,Z1))===Qe((U1(),kL))){for(ie=n.Jc();ie.Ob();)z=y(ie.Pb(),36),aR(z,z.c.a,z.c.b);for(u=new Pn,rMe(u,n,w),ee=n.Jc();ee.Ob();)z=y(ee.Pb(),36),ra(hg(z.c),u.e);ra(hg(o.f),u.a)}for(D=new ye(this.a);D.a<D.c.c.length;)A=y(de(D),336),FRe(o,AY(A.b))},"tUb");var bAi=j(o0,"ComponentGroupModelOrderGraphPlacer",1278);G(383,24,{3:1,35:1,24:1,383:1},pq);var F0e,WBe,$0e,IM,HBe=qn(o0,"ComponentOrderingStrategy",383,ii,Lln,hrn),YXt;G(649,1,{},Pn);var vAi=j(o0,"ComponentsCompactor",649);G(1495,13,bUt,M_t),x.Ec=i(function(n){return SI(this,y(n,146))},"TUb");var wAi=j(o0,"ComponentsCompactor/Hullpoints",1495);G(1492,1,{840:1},FOt),x.a=!1;var xAi=j(o0,"ComponentsCompactor/InternalComponent",1492);G(1491,1,qm,Z3t),x.Ic=i(function(n){Io(this,n)},"XUb"),x.Jc=i(function(){return new ye(this.a)},"YUb");var TAi=j(o0,"ComponentsCompactor/InternalConnectedComponents",1491);G(1494,1,{592:1},AFt),x.zf=i(function(){return null},"_Ub"),x.Af=i(function(){return this.a},"aVb"),x.yf=i(function(){return Ghe(this.d)},"$Ub"),x.Bf=i(function(){return this.b},"bVb");var kAi=j(o0,"ComponentsCompactor/InternalExternalExtension",1494);G(1493,1,{592:1},t4t),x.Af=i(function(){return this.a},"fVb"),x.yf=i(function(){return Ghe(this.d)},"dVb"),x.zf=i(function(){return this.c},"eVb"),x.Bf=i(function(){return this.b},"gVb");var CAi=j(o0,"ComponentsCompactor/InternalUnionExternalExtension",1493);G(1497,1,{},Y$t);var EAi=j(o0,"ComponentsCompactor/OuterSegments",1497);G(1496,1,{},Q3t);var SAi=j(o0,"ComponentsCompactor/Segments",1496);G(1249,1,{},U_t);var AAi=j(o0,AMe,1249);G(1250,1,Di,Vn),x.Le=i(function(n,o){return sln(y(n,36),y(o,36))},"pVb"),x.Fb=i(function(n){return this===n},"qVb"),x.Me=i(function(){return new Ci(this)},"rVb");var RAi=j(o0,"ComponentsProcessor/lambda$0$Type",1250);G(565,336,{336:1,565:1},I_t),x.Df=i(function(n){return KLe(this,n)},"xVb"),x.Ef=i(function(n){return _$t(this,n)},"yVb");var Mi,LAi=j(o0,"ModelOrderComponentGroup",565);G(1276,2069,{},la),x.Cf=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee;if(n.gc()==1){z=y(n.Xb(0),36),z!=o&&(o.a.c.length=0,NGt(o,z,0,0),wc(o,z),M7e(o.d,z.d),o.f.a=z.f.a,o.f.b=z.f.b);return}else if(n.dc()){o.a.c.length=0,o.f.a=0,o.f.b=0;return}for(this.Hf(n,o),g=y(n.Xb(0),36),o.a.c.length=0,wc(o,g),M=0,ee=0,k=n.Jc();k.Ob();)w=y(k.Pb(),36),F=w.f,M=d.Math.max(M,F.a),ee+=F.a*F.b;if(M=d.Math.max(M,d.Math.sqrt(ee)*He(Xe(oe(o,(Bt(),fZ))))),p=He(Xe(oe(o,bj))),this.Gf(n,o,M,p),Kt(Xt(oe(g,dZ)))){for(u=new Pn,rMe(u,n,p),D=n.Jc();D.Ob();)A=y(D.Pb(),36),ra(hg(A.c),u.e);ra(hg(o.f),u.a)}FRe(o,n)},"AVb"),x.Gf=i(function(n,o,u,p){var g,w,k,A,D,M,F,z;for(F=0,z=0,A=0,g=p,k=n.Jc();k.Ob();)w=y(k.Pb(),36),M=w.f,F+M.a>u&&(F=0,z+=A+p,A=0),D=w.c,aR(w,F+D.a,z+D.b),hg(D),g=d.Math.max(g,F+M.a),A=d.Math.max(A,M.b),F+=M.a+p;o.f.a=g,o.f.b=z+A},"BVb"),x.Hf=i(function(n,o){var u,p,g,w,k;if(Qe(oe(o,(Bt(),HM)))===Qe((i6(),IM))){for(p=n.Jc();p.Ob();){for(u=y(p.Pb(),36),k=0,w=new ye(u.a);w.a<w.c.c.length;)g=y(de(w),9),k+=y(oe(g,AZt),15).a;u.p=k}Ir(),n.gd(new Zi)}},"CVb");var _Ai=j(o0,"SimpleRowGraphPlacer",1276);G(1279,1276,{},Ln),x.Gf=i(function(n,o,u,p){var g,w,k,A,D,M,F,z,ee,ie;for(ee=0,ie=0,A=0,g=p,D=null,z=0,k=n.Jc();k.Ob();)w=y(k.Pb(),36),F=w.f,(ee+F.a>u&&!y(oe(w,(Tt(),J1)),22).Gc((zt(),sn))||D&&y(oe(D,(Tt(),J1)),22).Gc((zt(),bn))||y(oe(w,(Tt(),J1)),22).Gc((zt(),on)))&&(ee=z,ie+=A+p,A=0),M=w.c,y(oe(w,(Tt(),J1)),22).Gc((zt(),sn))&&(ee=g+p),aR(w,ee+M.a,ie+M.b),g=d.Math.max(g,ee+F.a),y(oe(w,J1),22).Gc(Fn)&&(z=d.Math.max(z,ee+F.a+p)),hg(M),A=d.Math.max(A,F.b),ee+=F.a+p,D=w;o.f.a=g,o.f.b=ie+A},"EVb"),x.Hf=i(function(n,o){},"FVb");var DAi=j(o0,"ModelOrderRowGraphPlacer",1279);G(1277,1,Di,Zi),x.Le=i(function(n,o){return pfn(y(n,36),y(o,36))},"IVb"),x.Fb=i(function(n){return this===n},"JVb"),x.Me=i(function(){return new Ci(this)},"KVb");var IAi=j(o0,"SimpleRowGraphPlacer/1",1277),XXt;G(1246,1,tm,kt),x.Lb=i(function(n){var o;return o=y(oe(y(n,250).b,(Bt(),Dl)),79),!!o&&o.b!=0},"SVb"),x.Fb=i(function(n){return this===n},"TVb"),x.Mb=i(function(n){var o;return o=y(oe(y(n,250).b,(Bt(),Dl)),79),!!o&&o.b!=0},"UVb");var MAi=j(bJ,"CompoundGraphPostprocessor/1",1246);G(1245,1,ba,n4t),x.If=i(function(n,o){jOt(this,y(n,36),o)},"jWb");var NAi=j(bJ,"CompoundGraphPreprocessor",1245);G(444,1,{444:1},MNt),x.c=!1;var OAi=j(bJ,"CompoundGraphPreprocessor/ExternalPort",444);G(250,1,{250:1},Zq),x.Ib=i(function(){return Ule(this.c)+":"+yFt(this.b)},"oWb");var PAi=j(bJ,"CrossHierarchyEdge",250);G(764,1,Di,S5e),x.Le=i(function(n,o){return J0n(this,y(n,250),y(o,250))},"rWb"),x.Fb=i(function(n){return this===n},"sWb"),x.Me=i(function(){return new Ci(this)},"uWb");var BAi=j(bJ,"CrossHierarchyEdgeComparator",764);G(246,150,{3:1,246:1,105:1,150:1}),x.p=0;var FAi=j(Gc,"LGraphElement",246);G(17,246,{3:1,17:1,246:1,105:1,150:1},Nx),x.Ib=i(function(){return yFt(this)},"HWb");var HR=j(Gc,"LEdge",17);G(36,246,{3:1,20:1,36:1,246:1,105:1,150:1},lLe),x.Ic=i(function(n){Io(this,n)},"KWb"),x.Jc=i(function(){return new ye(this.b)},"LWb"),x.Ib=i(function(){return this.b.c.length==0?"G-unlayered"+r0(this.a):this.a.c.length==0?"G-layered"+r0(this.b):"G[layerless"+r0(this.a)+", layers"+r0(this.b)+"]"},"MWb");var KXt=j(Gc,"LGraph",36),JXt;G(655,1,{}),x.Jf=i(function(){return this.e.n},"PWb"),x.mf=i(function(n){return oe(this.e,n)},"QWb"),x.Kf=i(function(){return this.e.o},"RWb"),x.Lf=i(function(){return this.e.p},"SWb"),x.nf=i(function(n){return ea(this.e,n)},"TWb"),x.Mf=i(function(n){this.e.n.a=n.a,this.e.n.b=n.b},"UWb"),x.Nf=i(function(n){this.e.o.a=n.a,this.e.o.b=n.b},"VWb"),x.Of=i(function(n){this.e.p=n},"WWb");var $Ai=j(Gc,"LGraphAdapters/AbstractLShapeAdapter",655);G(464,1,{838:1},HD),x.Pf=i(function(){var n,o;if(!this.b)for(this.b=Pm(this.a.b.c.length),o=new ye(this.a.b);o.a<o.c.c.length;)n=y(de(o),70),Nt(this.b,new NH(n));return this.b},"YWb"),x.b=null;var GAi=j(Gc,"LGraphAdapters/LEdgeAdapter",464);G(570,1,{},IY),x.Qf=i(function(){return djt(this)},"_Wb"),x.Jf=i(function(){throw xe(new Ly(ZUt))},"aXb"),x.mf=i(function(n){return oe(this.a,n)},"bXb"),x.Kf=i(function(){return this.a.f},"cXb"),x.Lf=i(function(){return this.a.p},"dXb"),x.nf=i(function(n){return ea(this.a,n)},"eXb"),x.Mf=i(function(n){throw xe(new Ly(ZUt))},"fXb"),x.Nf=i(function(n){this.a.f.a=n.a,this.a.f.b=n.b},"gXb"),x.Of=i(function(n){this.a.p=n},"hXb"),x.b=null,x.d=!1,x.e=!1;var jAi=j(Gc,"LGraphAdapters/LGraphAdapter",570);G(572,655,{187:1},NH);var zAi=j(Gc,"LGraphAdapters/LLabelAdapter",572);G(571,655,{685:1},eY),x.Rf=i(function(){return this.b},"lXb"),x.Sf=i(function(){return Ir(),Ir(),Go},"mXb"),x.Pf=i(function(){var n,o;if(!this.a)for(this.a=Pm(y(this.e,9).b.c.length),o=new ye(y(this.e,9).b);o.a<o.c.c.length;)n=y(de(o),70),Nt(this.a,new NH(n));return this.a},"nXb"),x.Tf=i(function(){var n;return n=y(this.e,9).d,new c8e(n.d,n.c,n.a,n.b)},"oXb"),x.Uf=i(function(){return Ir(),Ir(),Go},"pXb"),x.Vf=i(function(){var n,o;if(!this.c)for(this.c=Pm(y(this.e,9).j.c.length),o=new ye(y(this.e,9).j);o.a<o.c.c.length;)n=y(de(o),12),Nt(this.c,new FEt(n,this.d));return this.c},"qXb"),x.Wf=i(function(){return Kt(Xt(oe(y(this.e,9),(Tt(),p$e))))},"rXb"),x.Xf=i(function(n){y(this.e,9).d.b=n.b,y(this.e,9).d.d=n.d,y(this.e,9).d.c=n.c,y(this.e,9).d.a=n.a},"sXb"),x.Yf=i(function(n){y(this.e,9).f.b=n.b,y(this.e,9).f.d=n.d,y(this.e,9).f.c=n.c,y(this.e,9).f.a=n.a},"tXb"),x.Zf=i(function(){Kun(this,(K8(),JXt))},"uXb"),x.a=null,x.b=null,x.c=null,x.d=!1;var UAi=j(Gc,"LGraphAdapters/LNodeAdapter",571);G(1761,655,{837:1},FEt),x.Sf=i(function(){var n,o,u,p,g,w,k,A;if(this.d&&y(this.e,12).i.k==(Yr(),iu))return Ir(),Ir(),Go;if(!this.a){for(this.a=new Pt,u=new ye(y(this.e,12).e);u.a<u.c.c.length;)n=y(de(u),17),Nt(this.a,new HD(n));if(this.d&&(p=y(oe(y(this.e,12),(Tt(),Ih)),9),p))for(o=new nn(cn(os(p).a.Jc(),new B));Nn(o);)n=y(vn(o),17),Nt(this.a,new HD(n));if(ea(y(this.e,12).i,(Tt(),wT))&&(k=y(oe(y(this.e,12).i,wT),338),A=y(Jg(k.e,this.e),113),A))for(w=new ye(A.b);w.a<w.c.c.length;)g=y(de(w),341),Nt(this.a,new HD(g.a))}return this.a},"wXb"),x.Pf=i(function(){var n,o;if(!this.b)for(this.b=Pm(y(this.e,12).f.c.length),o=new ye(y(this.e,12).f);o.a<o.c.c.length;)n=y(de(o),70),Nt(this.b,new NH(n));return this.b},"xXb"),x.Uf=i(function(){var n,o,u,p,g,w,k,A;if(this.d&&y(this.e,12).i.k==(Yr(),iu))return Ir(),Ir(),Go;if(!this.c){for(this.c=new Pt,u=new ye(y(this.e,12).g);u.a<u.c.c.length;)n=y(de(u),17),Nt(this.c,new HD(n));if(this.d&&(p=y(oe(y(this.e,12),(Tt(),Ih)),9),p))for(o=new nn(cn(Ra(p).a.Jc(),new B));Nn(o);)n=y(vn(o),17),Nt(this.c,new HD(n));if(ea(y(this.e,12).i,(Tt(),wT))&&(k=y(oe(y(this.e,12).i,wT),338),A=y(Jg(k.e,this.e),113),A))for(w=new ye(A.e);w.a<w.c.c.length;)g=y(de(w),341),Nt(this.c,new HD(g.a))}return this.c},"yXb"),x.$f=i(function(){return y(this.e,12).j},"zXb"),x._f=i(function(){return Kt(Xt(oe(y(this.e,12),(Tt(),hj))))},"AXb"),x.a=null,x.b=null,x.c=null,x.d=!1;var VAi=j(Gc,"LGraphAdapters/LPortAdapter",1761);G(1762,1,Di,Iu),x.Le=i(function(n,o){return Cxn(y(n,12),y(o,12))},"DXb"),x.Fb=i(function(n){return this===n},"EXb"),x.Me=i(function(){return new Ci(this)},"FXb");var WAi=j(Gc,"LGraphAdapters/PortComparator",1762);G(806,1,yi,It),x.Mb=i(function(n){return y(n,9),K8(),!0},"HXb");var HAi=j(Gc,"LGraphAdapters/lambda$0$Type",806);G(397,246,{3:1,246:1,397:1,105:1,150:1});var qAi=j(Gc,"LShape",397);G(70,397,{3:1,246:1,70:1,397:1,105:1,150:1},uCt,mAe),x.Ib=i(function(){var n;return n=gin(this),n==null?"label":"l_"+n},"eYb");var YAi=j(Gc,"LLabel",70);G(213,1,{3:1,4:1,213:1,414:1}),x.Fb=i(function(n){var o;return Ge(n,213)?(o=y(n,213),this.d==o.d&&this.a==o.a&&this.b==o.b&&this.c==o.c):!1},"pYb"),x.Hb=i(function(){var n,o;return n=E5(this.b)<<16,n|=E5(this.a)&As,o=E5(this.c)<<16,o|=E5(this.d)&As,n^o},"qYb"),x.ag=i(function(n){var o,u,p,g,w,k,A,D,M,F,z;for(w=0;w<n.length&&aNt((un(w,n.length),n.charCodeAt(w)),tVt);)++w;for(o=n.length;o>0&&aNt((un(o-1,n.length),n.charCodeAt(o-1)),rVt);)--o;if(w<o){F=y3((ko(w,o,n.length),n.substr(w,o-w)),",|;");try{for(A=F,D=0,M=A.length;D<M;++D){if(k=A[D],g=y3(k,"="),g.length!=2)throw xe(new rn("Expecting a list of key-value pairs."));p=h3(g[0]),z=u3(h3(g[1])),Cr(p,"top")?this.d=z:Cr(p,"left")?this.b=z:Cr(p,"bottom")?this.a=z:Cr(p,"right")&&(this.c=z)}}catch(ee){throw ee=hs(ee),Ge(ee,131)?(u=ee,xe(new rn(nVt+u))):xe(ee)}}},"sYb"),x.Ib=i(function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},"tYb"),x.a=0,x.b=0,x.c=0,x.d=0;var XAi=j(NG,"Spacing",213);G(140,213,iVt,KD,g5t,c8e,nce);var qBe=j(NG,"ElkMargin",140);G(650,140,iVt,Coe);var KAi=j(Gc,"LMargin",650);G(9,397,{3:1,246:1,9:1,397:1,105:1,150:1},e0),x.Ib=i(function(){return NOt(this)},"RYb"),x.i=!1;var e1=j(Gc,"LNode",9);G(249,24,{3:1,35:1,24:1,249:1},T5);var u0,ks,_c,bs,MM,Ya,iu,tj,G0e=qn(Gc,"LNode/NodeType",249,ii,Uun,frn),QXt;G(762,1,yi,Ai),x.Mb=i(function(n){return Kt(Xt(oe(y(n,70),(Bt(),wE))))},"fZb");var JAi=j(Gc,"LNode/lambda$0$Type",762);G(104,213,aVt,p5,Cx,v8e);var YBe=j(NG,"ElkPadding",104);G(765,104,aVt,U5e);var QAi=j(Gc,"LPadding",765);G(12,397,{3:1,246:1,12:1,397:1,105:1,150:1},Fc),x.Ib=i(function(){var n,o,u;return n=new Yb,Li((n.a+="p_",n),wK(this)),this.i&&Li(qc((n.a+="[",n),this.i),"]"),this.e.c.length==1&&this.g.c.length==0&&y(Wt(this.e,0),17).c!=this&&(o=y(Wt(this.e,0),17).c,Li((n.a+=" << ",n),wK(o)),Li(qc((n.a+="[",n),o.i),"]")),this.e.c.length==0&&this.g.c.length==1&&y(Wt(this.g,0),17).d!=this&&(u=y(Wt(this.g,0),17).d,Li((n.a+=" >> ",n),wK(u)),Li(qc((n.a+="[",n),u.i),"]")),n.a},"zZb"),x.c=!0,x.d=!1;var XBe,j0e,KBe,z0e,JBe,QBe,ZXt=j(Gc,"LPort",12);G(399,1,qm,F8),x.Ic=i(function(n){Io(this,n)},"BZb"),x.Jc=i(function(){var n;return n=new ye(this.a.e),new Kxt(n)},"CZb");var ZAi=j(Gc,"LPort/1",399);G(1275,1,fo,Kxt),x.Nb=i(function(n){So(this,n)},"EZb"),x.Pb=i(function(){return y(de(this.a),17).c},"GZb"),x.Ob=i(function(){return Xl(this.a)},"FZb"),x.Qb=i(function(){G9(this.a)},"HZb");var e8i=j(Gc,"LPort/1/1",1275);G(365,1,qm,u5),x.Ic=i(function(n){Io(this,n)},"JZb"),x.Jc=i(function(){var n;return n=new ye(this.a.g),new A5e(n)},"KZb");var t8i=j(Gc,"LPort/2",365);G(763,1,fo,A5e),x.Nb=i(function(n){So(this,n)},"MZb"),x.Pb=i(function(){return y(de(this.a),17).d},"OZb"),x.Ob=i(function(){return Xl(this.a)},"NZb"),x.Qb=i(function(){G9(this.a)},"PZb");var r8i=j(Gc,"LPort/2/1",763);G(1268,1,qm,$Et),x.Ic=i(function(n){Io(this,n)},"RZb"),x.Jc=i(function(){return new Kg(this)},"SZb");var n8i=j(Gc,"LPort/CombineIter",1268);G(207,1,fo,Kg),x.Nb=i(function(n){So(this,n)},"VZb"),x.Qb=i(function(){bCt()},"YZb"),x.Ob=i(function(){return D9(this)},"WZb"),x.Pb=i(function(){return Xl(this.a)?de(this.a):de(this.b)},"XZb");var i8i=j(Gc,"LPort/CombineIter/1",207);G(1270,1,tm,da),x.Lb=i(function(n){return F8t(n)},"_Zb"),x.Fb=i(function(n){return this===n},"a$b"),x.Mb=i(function(n){return mh(),y(n,12).e.c.length!=0},"b$b");var a8i=j(Gc,"LPort/lambda$0$Type",1270);G(1269,1,tm,sa),x.Lb=i(function(n){return $8t(n)},"e$b"),x.Fb=i(function(n){return this===n},"f$b"),x.Mb=i(function(n){return mh(),y(n,12).g.c.length!=0},"g$b");var s8i=j(Gc,"LPort/lambda$1$Type",1269);G(1271,1,tm,Lr),x.Lb=i(function(n){return mh(),y(n,12).j==(zt(),sn)},"i$b"),x.Fb=i(function(n){return this===n},"j$b"),x.Mb=i(function(n){return mh(),y(n,12).j==(zt(),sn)},"k$b");var o8i=j(Gc,"LPort/lambda$2$Type",1271);G(1272,1,tm,Xa),x.Lb=i(function(n){return mh(),y(n,12).j==(zt(),bn)},"m$b"),x.Fb=i(function(n){return this===n},"n$b"),x.Mb=i(function(n){return mh(),y(n,12).j==(zt(),bn)},"o$b");var l8i=j(Gc,"LPort/lambda$3$Type",1272);G(1273,1,tm,Ze),x.Lb=i(function(n){return mh(),y(n,12).j==(zt(),Fn)},"q$b"),x.Fb=i(function(n){return this===n},"r$b"),x.Mb=i(function(n){return mh(),y(n,12).j==(zt(),Fn)},"s$b");var c8i=j(Gc,"LPort/lambda$4$Type",1273);G(1274,1,tm,xa),x.Lb=i(function(n){return mh(),y(n,12).j==(zt(),on)},"u$b"),x.Fb=i(function(n){return this===n},"v$b"),x.Mb=i(function(n){return mh(),y(n,12).j==(zt(),on)},"w$b");var u8i=j(Gc,"LPort/lambda$5$Type",1274);G(25,246,{3:1,20:1,246:1,25:1,105:1,150:1},Nc),x.Ic=i(function(n){Io(this,n)},"z$b"),x.Jc=i(function(){return new ye(this.a)},"A$b"),x.Ib=i(function(){return"L_"+Jl(this.b.b,this,0)+r0(this.a)},"B$b");var h8i=j(Gc,"Layer",25);G(1662,1,{},ADt),x.b=0;var f8i=j(Gc,"Tarjan",1662);G(1283,1,{},r4t);var d8i=j(eb,sVt,1283);G(1287,1,{},at),x.Kb=i(function(n){return Pl(y(n,84))},"b_b");var p8i=j(eb,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1287);G(1290,1,{},pl),x.Kb=i(function(n){return Pl(y(n,84))},"d_b");var g8i=j(eb,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1290);G(1284,1,xn,Jxt),x.Ad=i(function(n){NFt(this.a,y(n,125))},"f_b");var m8i=j(eb,RMe,1284);G(1285,1,xn,Qxt),x.Ad=i(function(n){NFt(this.a,y(n,125))},"h_b");var y8i=j(eb,oVt,1285);G(1286,1,{},Dm),x.Kb=i(function(n){return new Er(null,new Rr(A7e(y(n,85)),16))},"j_b");var b8i=j(eb,lVt,1286);G(1288,1,yi,Zxt),x.Mb=i(function(n){return jZr(this.a,y(n,26))},"l_b");var v8i=j(eb,cVt,1288);G(1289,1,{},I2),x.Kb=i(function(n){return new Er(null,new Rr(Van(y(n,85)),16))},"n_b");var w8i=j(eb,"ElkGraphImporter/lambda$5$Type",1289);G(1291,1,yi,eTt),x.Mb=i(function(n){return zZr(this.a,y(n,26))},"p_b");var x8i=j(eb,"ElkGraphImporter/lambda$7$Type",1291);G(1292,1,yi,M2),x.Mb=i(function(n){return lsn(y(n,85))},"r_b");var T8i=j(eb,"ElkGraphImporter/lambda$8$Type",1292);G(1263,1,{},Q2t);var eKt,k8i=j(eb,"ElkGraphLayoutTransferrer",1263);G(1264,1,yi,tTt),x.Mb=i(function(n){return Utn(this.a,y(n,17))},"D_b");var C8i=j(eb,"ElkGraphLayoutTransferrer/lambda$0$Type",1264);G(1265,1,xn,rTt),x.Ad=i(function(n){oF(),Nt(this.a,y(n,17))},"F_b");var E8i=j(eb,"ElkGraphLayoutTransferrer/lambda$1$Type",1265);G(1266,1,yi,nTt),x.Mb=i(function(n){return xtn(this.a,y(n,17))},"H_b");var S8i=j(eb,"ElkGraphLayoutTransferrer/lambda$2$Type",1266);G(1267,1,xn,iTt),x.Ad=i(function(n){oF(),Nt(this.a,y(n,17))},"J_b");var A8i=j(eb,"ElkGraphLayoutTransferrer/lambda$3$Type",1267);G(807,1,{},o8e);var R8i=j(hn,"BiLinkedHashMultiMap",807);G(1512,1,ba,Ug),x.If=i(function(n,o){Mhn(y(n,36),o)},"W_b");var L8i=j(hn,"CommentNodeMarginCalculator",1512);G(1513,1,{},uh),x.Kb=i(function(n){return new Er(null,new Rr(y(n,25).a,16))},"Y_b");var _8i=j(hn,"CommentNodeMarginCalculator/lambda$0$Type",1513);G(1514,1,xn,al),x.Ad=i(function(n){Kkn(y(n,9))},"$_b");var D8i=j(hn,"CommentNodeMarginCalculator/lambda$1$Type",1514);G(1515,1,ba,sd),x.If=i(function(n,o){rxn(y(n,36),o)},"d0b");var I8i=j(hn,"CommentPostprocessor",1515);G(1516,1,ba,$l),x.If=i(function(n,o){kCn(y(n,36),o)},"i0b");var M8i=j(hn,"CommentPreprocessor",1516);G(1517,1,ba,pk),x.If=i(function(n,o){gwn(y(n,36),o)},"l0b");var N8i=j(hn,"ConstraintsPostprocessor",1517);G(1518,1,ba,gk),x.If=i(function(n,o){ufn(y(n,36),o)},"t0b");var O8i=j(hn,"EdgeAndLayerConstraintEdgeReverser",1518);G(1519,1,ba,Im),x.If=i(function(n,o){Bpn(y(n,36),o)},"y0b");var P8i=j(hn,"EndLabelPostprocessor",1519);G(1520,1,{},N2),x.Kb=i(function(n){return new Er(null,new Rr(y(n,25).a,16))},"A0b");var B8i=j(hn,"EndLabelPostprocessor/lambda$0$Type",1520);G(1521,1,yi,mu),x.Mb=i(function(n){return wcn(y(n,9))},"C0b");var F8i=j(hn,"EndLabelPostprocessor/lambda$1$Type",1521);G(1522,1,xn,mk),x.Ad=i(function(n){Emn(y(n,9))},"E0b");var $8i=j(hn,"EndLabelPostprocessor/lambda$2$Type",1522);G(1523,1,ba,$0),x.If=i(function(n,o){obn(y(n,36),o)},"S0b");var G8i=j(hn,"EndLabelPreprocessor",1523);G(1524,1,{},Rp),x.Kb=i(function(n){return new Er(null,new Rr(y(n,25).a,16))},"U0b");var j8i=j(hn,"EndLabelPreprocessor/lambda$0$Type",1524);G(1525,1,xn,SAt),x.Ad=i(function(n){rZr(this.a,this.b,this.c,y(n,9))},"W0b"),x.a=0,x.b=0,x.c=!1;var z8i=j(hn,"EndLabelPreprocessor/lambda$1$Type",1525);G(1526,1,yi,Vg),x.Mb=i(function(n){return Qe(oe(y(n,70),(Bt(),cm)))===Qe((Qg(),TL))},"Y0b");var U8i=j(hn,"EndLabelPreprocessor/lambda$2$Type",1526);G(1527,1,xn,aTt),x.Ad=i(function(n){_i(this.a,y(n,70))},"$0b");var V8i=j(hn,"EndLabelPreprocessor/lambda$3$Type",1527);G(1528,1,yi,o5),x.Mb=i(function(n){return Qe(oe(y(n,70),(Bt(),cm)))===Qe((Qg(),i4))},"a1b");var W8i=j(hn,"EndLabelPreprocessor/lambda$4$Type",1528);G(1529,1,xn,sTt),x.Ad=i(function(n){_i(this.a,y(n,70))},"c1b");var H8i=j(hn,"EndLabelPreprocessor/lambda$5$Type",1529);G(1577,1,ba,rwt),x.If=i(function(n,o){Hdn(y(n,36),o)},"m1b");var tKt,q8i=j(hn,"EndLabelSorter",1577);G(1578,1,Di,O2),x.Le=i(function(n,o){return ggn(y(n,455),y(o,455))},"p1b"),x.Fb=i(function(n){return this===n},"q1b"),x.Me=i(function(){return new Ci(this)},"r1b");var Y8i=j(hn,"EndLabelSorter/1",1578);G(455,1,{455:1},Z7t);var X8i=j(hn,"EndLabelSorter/LabelGroup",455);G(1579,1,{},P2),x.Kb=i(function(n){return lF(),new Er(null,new Rr(y(n,25).a,16))},"u1b");var K8i=j(hn,"EndLabelSorter/lambda$0$Type",1579);G(1580,1,yi,k1),x.Mb=i(function(n){return lF(),y(n,9).k==(Yr(),Ya)},"w1b");var J8i=j(hn,"EndLabelSorter/lambda$1$Type",1580);G(1581,1,xn,ti),x.Ad=i(function(n){xyn(y(n,9))},"y1b");var Q8i=j(hn,"EndLabelSorter/lambda$2$Type",1581);G(1582,1,yi,Ct),x.Mb=i(function(n){return lF(),Qe(oe(y(n,70),(Bt(),cm)))===Qe((Qg(),i4))},"A1b");var Z8i=j(hn,"EndLabelSorter/lambda$3$Type",1582);G(1583,1,yi,xr),x.Mb=i(function(n){return lF(),Qe(oe(y(n,70),(Bt(),cm)))===Qe((Qg(),TL))},"C1b");var e7i=j(hn,"EndLabelSorter/lambda$4$Type",1583);G(1530,1,ba,Dn),x.If=i(function(n,o){d3n(this,y(n,36))},"P1b"),x.b=0,x.c=0;var t7i=j(hn,"FinalSplineBendpointsCalculator",1530);G(1531,1,{},Wn),x.Kb=i(function(n){return new Er(null,new Rr(y(n,25).a,16))},"R1b");var r7i=j(hn,"FinalSplineBendpointsCalculator/lambda$0$Type",1531);G(1532,1,{},xs),x.Kb=i(function(n){return new Er(null,new jk(new nn(cn(Ra(y(n,9)).a.Jc(),new B))))},"T1b");var n7i=j(hn,"FinalSplineBendpointsCalculator/lambda$1$Type",1532);G(1533,1,yi,oo),x.Mb=i(function(n){return!Mo(y(n,17))},"V1b");var i7i=j(hn,"FinalSplineBendpointsCalculator/lambda$2$Type",1533);G(1534,1,yi,gl),x.Mb=i(function(n){return ea(y(n,17),(Tt(),Aw))},"X1b");var a7i=j(hn,"FinalSplineBendpointsCalculator/lambda$3$Type",1534);G(1535,1,xn,oTt),x.Ad=i(function(n){xTn(this.a,y(n,132))},"Z1b");var s7i=j(hn,"FinalSplineBendpointsCalculator/lambda$4$Type",1535);G(1536,1,xn,Ud),x.Ad=i(function(n){Y$(y(n,17).a)},"_1b");var o7i=j(hn,"FinalSplineBendpointsCalculator/lambda$5$Type",1536);G(791,1,ba,R5e),x.If=i(function(n,o){o4n(this,y(n,36),o)},"y2b");var l7i=j(hn,"GraphTransformer",791);G(503,24,{3:1,35:1,24:1,503:1},B6e);var U0e,rj,rKt=qn(hn,"GraphTransformer/Mode",503,ii,zsn,drn),nKt;G(1537,1,ba,B2),x.If=i(function(n,o){R2n(y(n,36),o)},"M2b");var c7i=j(hn,"HierarchicalNodeResizingProcessor",1537);G(1538,1,ba,G0),x.If=i(function(n,o){ghn(y(n,36),o)},"U2b");var u7i=j(hn,"HierarchicalPortConstraintProcessor",1538);G(1539,1,Di,Mm),x.Le=i(function(n,o){return Ogn(y(n,9),y(o,9))},"X2b"),x.Fb=i(function(n){return this===n},"Y2b"),x.Me=i(function(){return new Ci(this)},"Z2b");var h7i=j(hn,"HierarchicalPortConstraintProcessor/NodeComparator",1539);G(1540,1,ba,l5),x.If=i(function(n,o){pkn(y(n,36),o)},"b3b");var f7i=j(hn,"HierarchicalPortDummySizeProcessor",1540);G(1541,1,ba,Nm),x.If=i(function(n,o){Sxn(this,y(n,36),o)},"p3b"),x.a=0;var d7i=j(hn,"HierarchicalPortOrthogonalEdgeRouter",1541);G(1542,1,Di,TH),x.Le=i(function(n,o){return Oen(y(n,9),y(o,9))},"s3b"),x.Fb=i(function(n){return this===n},"t3b"),x.Me=i(function(){return new Ci(this)},"u3b");var p7i=j(hn,"HierarchicalPortOrthogonalEdgeRouter/1",1542);G(1543,1,Di,dpt),x.Le=i(function(n,o){return kun(y(n,9),y(o,9))},"x3b"),x.Fb=i(function(n){return this===n},"y3b"),x.Me=i(function(){return new Ci(this)},"z3b");var g7i=j(hn,"HierarchicalPortOrthogonalEdgeRouter/2",1543);G(1544,1,ba,ppt),x.If=i(function(n,o){iyn(y(n,36),o)},"D3b");var m7i=j(hn,"HierarchicalPortPositionProcessor",1544);G(1545,1,ba,nwt),x.If=i(function(n,o){sEn(this,y(n,36))},"N3b"),x.a=0,x.c=0;var RQ,LQ,y7i=j(hn,"HighDegreeNodeLayeringProcessor",1545);G(566,1,{566:1},gpt),x.b=-1,x.d=-1;var b7i=j(hn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",566);G(1546,1,{},mpt),x.Kb=i(function(n){return OF(),os(y(n,9))},"Q3b"),x.Fb=i(function(n){return this===n},"R3b");var v7i=j(hn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1546);G(1547,1,{},ypt),x.Kb=i(function(n){return OF(),Ra(y(n,9))},"T3b"),x.Fb=i(function(n){return this===n},"U3b");var w7i=j(hn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1547);G(1553,1,ba,bpt),x.If=i(function(n,o){akn(this,y(n,36),o)},"_3b");var x7i=j(hn,"HyperedgeDummyMerger",1553);G(792,1,{},x8e),x.a=!1,x.b=!1,x.c=!1;var T7i=j(hn,"HyperedgeDummyMerger/MergeState",792);G(1554,1,{},vpt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,25).a,16))},"c4b");var k7i=j(hn,"HyperedgeDummyMerger/lambda$0$Type",1554);G(1555,1,{},wpt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,9).j,16))},"e4b");var C7i=j(hn,"HyperedgeDummyMerger/lambda$1$Type",1555);G(1556,1,xn,xpt),x.Ad=i(function(n){y(n,12).p=-1},"g4b");var E7i=j(hn,"HyperedgeDummyMerger/lambda$2$Type",1556);G(1557,1,ba,Tpt),x.If=i(function(n,o){ikn(y(n,36),o)},"k4b");var S7i=j(hn,"HypernodesProcessor",1557);G(1558,1,ba,kpt),x.If=i(function(n,o){dkn(y(n,36),o)},"n4b");var A7i=j(hn,"InLayerConstraintProcessor",1558);G(1559,1,ba,Cpt),x.If=i(function(n,o){Whn(y(n,36),o)},"q4b");var R7i=j(hn,"InnermostNodeMarginCalculator",1559);G(1560,1,ba,Ept),x.If=i(function(n,o){vCn(this,y(n,36))},"z4b"),x.a=Ys,x.b=Ys,x.c=qa,x.d=qa;var gSn=j(hn,"InteractiveExternalPortPositioner",1560);G(1561,1,{},Spt),x.Kb=i(function(n){return y(n,17).d.i},"B4b"),x.Fb=i(function(n){return this===n},"C4b");var L7i=j(hn,"InteractiveExternalPortPositioner/lambda$0$Type",1561);G(1562,1,{},lTt),x.Kb=i(function(n){return Pen(this.a,Xe(n))},"E4b"),x.Fb=i(function(n){return this===n},"F4b");var _7i=j(hn,"InteractiveExternalPortPositioner/lambda$1$Type",1562);G(1563,1,{},Apt),x.Kb=i(function(n){return y(n,17).c.i},"H4b"),x.Fb=i(function(n){return this===n},"I4b");var D7i=j(hn,"InteractiveExternalPortPositioner/lambda$2$Type",1563);G(1564,1,{},cTt),x.Kb=i(function(n){return Ben(this.a,Xe(n))},"K4b"),x.Fb=i(function(n){return this===n},"L4b");var I7i=j(hn,"InteractiveExternalPortPositioner/lambda$3$Type",1564);G(1565,1,{},uTt),x.Kb=i(function(n){return Mtn(this.a,Xe(n))},"N4b"),x.Fb=i(function(n){return this===n},"O4b");var M7i=j(hn,"InteractiveExternalPortPositioner/lambda$4$Type",1565);G(1566,1,{},hTt),x.Kb=i(function(n){return Ntn(this.a,Xe(n))},"Q4b"),x.Fb=i(function(n){return this===n},"R4b");var N7i=j(hn,"InteractiveExternalPortPositioner/lambda$5$Type",1566);G(77,24,{3:1,35:1,24:1,77:1,196:1},ms),x.bg=i(function(){switch(this.g){case 15:return new X0t;case 22:return new K0t;case 49:return new Z0t;case 29:case 36:return new Fpt;case 33:return new Ug;case 44:return new sd;case 1:return new $l;case 43:return new pk;case 58:return new R5e((S7(),rj));case 0:return new R5e((S7(),U0e));case 2:return new gk;case 56:return new Im;case 34:return new $0;case 53:return new Dn;case 57:return new B2;case 13:return new G0;case 39:return new l5;case 46:return new Nm;case 42:return new ppt;case 9:return new nwt;case 51:return new f6t;case 38:return new bpt;case 45:return new Tpt;case 28:return new kpt;case 31:return new Cpt;case 3:return new Ept;case 18:return new Rpt;case 30:return new Lpt;case 5:return new Z2t;case 52:return new Mpt;case 35:return new ewt;case 37:return new $pt;case 54:return new rwt;case 11:return new Gpt;case 7:return new twt;case 41:return new jpt;case 47:return new zpt;case 16:return new Upt;case 40:return new Vpt;case 10:return new BSt;case 50:return new Kpt;case 21:return new Jpt;case 23:return new VH((cw(),iN));case 8:return new Zpt;case 12:return new tgt;case 4:return new qpt;case 19:return new iwt;case 17:return new hgt;case 55:return new fgt;case 6:return new Cgt;case 25:return new a4t;case 26:return new Y0t;case 48:return new ygt;case 32:return new nAt;case 14:return new Igt;case 27:return new rmt;case 20:return new Bgt;case 24:return new VH((cw(),OZ));default:throw xe(new rn(cpe+(this.f!=null?this.f:""+this.g)))}},"Z5b");var ZBe,eFe,tFe,rFe,nFe,iFe,aFe,sFe,oFe,lFe,cFe,lE,_Q,DQ,uFe,hFe,fFe,dFe,pFe,gFe,mFe,NM,yFe,bFe,vFe,wFe,xFe,V0e,IQ,MQ,TFe,NQ,OQ,PQ,qR,M3,N3,kFe,BQ,FQ,CFe,EFe,$Q,GQ,SFe,AFe,RFe,LFe,jQ,W0e,M6,zQ,UQ,VQ,WQ,_Fe,DFe,IFe,MFe,mSn=qn(hn,upe,77,ii,P$t,prn),iKt;G(1567,1,ba,Rpt),x.If=i(function(n,o){mCn(y(n,36),o)},"h6b");var O7i=j(hn,"InvertedPortProcessor",1567);G(1568,1,ba,Lpt),x.If=i(function(n,o){gTn(y(n,36),o)},"n6b");var P7i=j(hn,"LabelAndNodeSizeProcessor",1568);G(1569,1,yi,_pt),x.Mb=i(function(n){return y(n,9).k==(Yr(),Ya)},"p6b");var B7i=j(hn,"LabelAndNodeSizeProcessor/lambda$0$Type",1569);G(1570,1,yi,Dpt),x.Mb=i(function(n){return y(n,9).k==(Yr(),ks)},"r6b");var F7i=j(hn,"LabelAndNodeSizeProcessor/lambda$1$Type",1570);G(1571,1,xn,AAt),x.Ad=i(function(n){nZr(this.b,this.a,this.c,y(n,9))},"t6b"),x.a=!1,x.c=!1;var $7i=j(hn,"LabelAndNodeSizeProcessor/lambda$2$Type",1571);G(1572,1,ba,Z2t),x.If=i(function(n,o){Y4n(y(n,36),o)},"A6b");var aKt,G7i=j(hn,"LabelDummyInserter",1572);G(1573,1,tm,Ipt),x.Lb=i(function(n){return Qe(oe(y(n,70),(Bt(),cm)))===Qe((Qg(),xL))},"C6b"),x.Fb=i(function(n){return this===n},"D6b"),x.Mb=i(function(n){return Qe(oe(y(n,70),(Bt(),cm)))===Qe((Qg(),xL))},"E6b");var j7i=j(hn,"LabelDummyInserter/1",1573);G(1574,1,ba,Mpt),x.If=i(function(n,o){O4n(y(n,36),o)},"J6b");var z7i=j(hn,"LabelDummyRemover",1574);G(1575,1,yi,Npt),x.Mb=i(function(n){return Kt(Xt(oe(y(n,70),(Bt(),wE))))},"L6b");var U7i=j(hn,"LabelDummyRemover/lambda$0$Type",1575);G(1333,1,ba,ewt),x.If=i(function(n,o){L4n(this,y(n,36),o)},"h7b"),x.a=null;var H0e,V7i=j(hn,"LabelDummySwitcher",1333);G(294,1,{294:1},RGt),x.c=0,x.d=null,x.f=0;var W7i=j(hn,"LabelDummySwitcher/LabelDummyInfo",294);G(1334,1,{},Opt),x.Kb=i(function(n){return J5(),new Er(null,new Rr(y(n,25).a,16))},"n7b");var H7i=j(hn,"LabelDummySwitcher/lambda$0$Type",1334);G(1335,1,yi,Ppt),x.Mb=i(function(n){return J5(),y(n,9).k==(Yr(),_c)},"p7b");var q7i=j(hn,"LabelDummySwitcher/lambda$1$Type",1335);G(1336,1,{},fTt),x.Kb=i(function(n){return Ttn(this.a,y(n,9))},"r7b");var Y7i=j(hn,"LabelDummySwitcher/lambda$2$Type",1336);G(1337,1,xn,dTt),x.Ad=i(function(n){kan(this.a,y(n,294))},"t7b");var X7i=j(hn,"LabelDummySwitcher/lambda$3$Type",1337);G(1338,1,Di,Bpt),x.Le=i(function(n,o){return Jin(y(n,294),y(o,294))},"v7b"),x.Fb=i(function(n){return this===n},"w7b"),x.Me=i(function(){return new Ci(this)},"x7b");var K7i=j(hn,"LabelDummySwitcher/lambda$4$Type",1338);G(790,1,ba,Fpt),x.If=i(function(n,o){Hcn(y(n,36),o)},"A7b");var J7i=j(hn,"LabelManagementProcessor",790);G(1576,1,ba,$pt),x.If=i(function(n,o){Wwn(y(n,36),o)},"O7b");var Q7i=j(hn,"LabelSideSelector",1576);G(1584,1,ba,Gpt),x.If=i(function(n,o){Dkn(y(n,36),o)},"W7b");var Z7i=j(hn,"LayerConstraintPostprocessor",1584);G(1585,1,ba,twt),x.If=i(function(n,o){Rvn(y(n,36),o)},"e8b");var NFe,eRi=j(hn,"LayerConstraintPreprocessor",1585);G(367,24,{3:1,35:1,24:1,367:1},gq);var nj,HQ,qQ,q0e,sKt=qn(hn,"LayerConstraintPreprocessor/HiddenNodeConnections",367,ii,Rln,grn),oKt;G(1586,1,ba,jpt),x.If=i(function(n,o){X3n(y(n,36),o)},"s8b");var tRi=j(hn,"LayerSizeAndGraphHeightCalculator",1586);G(1587,1,ba,zpt),x.If=i(function(n,o){L2n(y(n,36),o)},"w8b");var rRi=j(hn,"LongEdgeJoiner",1587);G(1588,1,ba,Upt),x.If=i(function(n,o){E3n(y(n,36),o)},"A8b");var nRi=j(hn,"LongEdgeSplitter",1588);G(1589,1,ba,Vpt),x.If=i(function(n,o){uTn(y(n,36),o)},"F8b");var iRi=j(hn,"NodePlacementRepeater",1589);G(1590,1,yi,Wpt),x.Mb=i(function(n){return y(n,9).k==(Yr(),Ya)},"H8b");var aRi=j(hn,"NodePlacementRepeater/lambda$0$Type",1590);G(1591,1,ba,BSt),x.If=i(function(n,o){lCn(this,y(n,36),o)},"X8b"),x.e=0,x.f=0,x.j=0,x.k=0,x.n=0,x.o=0;var lKt,cKt,sRi=j(hn,"NodePromotion",1591);G(1592,1,Di,Hpt),x.Le=i(function(n,o){return Xfn(y(n,9),y(o,9))},"$8b"),x.Fb=i(function(n){return this===n},"_8b"),x.Me=i(function(){return new Ci(this)},"a9b");var oRi=j(hn,"NodePromotion/1",1592);G(1593,1,Di,Ypt),x.Le=i(function(n,o){return Kfn(y(n,9),y(o,9))},"d9b"),x.Fb=i(function(n){return this===n},"e9b"),x.Me=i(function(){return new Ci(this)},"f9b");var lRi=j(hn,"NodePromotion/2",1593);G(1594,1,{},Xpt),x.Kb=i(function(n){return y(n,49),tY(),qr(),!0},"h9b"),x.Fb=i(function(n){return this===n},"i9b");var cRi=j(hn,"NodePromotion/lambda$0$Type",1594);G(1595,1,{},pTt),x.Kb=i(function(n){return non(this.a,y(n,49))},"k9b"),x.Fb=i(function(n){return this===n},"l9b"),x.a=0;var uRi=j(hn,"NodePromotion/lambda$1$Type",1595);G(1596,1,{},gTt),x.Kb=i(function(n){return ron(this.a,y(n,49))},"n9b"),x.Fb=i(function(n){return this===n},"o9b"),x.a=0;var hRi=j(hn,"NodePromotion/lambda$2$Type",1596);G(1597,1,ba,Kpt),x.If=i(function(n,o){JCn(y(n,36),o)},"v9b");var fRi=j(hn,"NorthSouthPortPostprocessor",1597);G(1598,1,ba,Jpt),x.If=i(function(n,o){nEn(y(n,36),o)},"E9b");var dRi=j(hn,"NorthSouthPortPreprocessor",1598);G(1599,1,Di,Qpt),x.Le=i(function(n,o){return yfn(y(n,12),y(o,12))},"G9b"),x.Fb=i(function(n){return this===n},"H9b"),x.Me=i(function(){return new Ci(this)},"I9b");var pRi=j(hn,"NorthSouthPortPreprocessor/lambda$0$Type",1599);G(1600,1,ba,Zpt),x.If=i(function(n,o){YTn(y(n,36),o)},"N9b");var gRi=j(hn,"PartitionMidprocessor",1600);G(1601,1,yi,egt),x.Mb=i(function(n){return ea(y(n,9),(Bt(),z3))},"P9b");var mRi=j(hn,"PartitionMidprocessor/lambda$0$Type",1601);G(1602,1,xn,mTt),x.Ad=i(function(n){osn(this.a,y(n,9))},"R9b");var yRi=j(hn,"PartitionMidprocessor/lambda$1$Type",1602);G(1603,1,ba,tgt),x.If=i(function(n,o){K2n(y(n,36),o)},"U9b");var bRi=j(hn,"PartitionPostprocessor",1603);G(1604,1,ba,qpt),x.If=i(function(n,o){Zxn(y(n,36),o)},"_9b");var vRi=j(hn,"PartitionPreprocessor",1604);G(1605,1,yi,rgt),x.Mb=i(function(n){return ea(y(n,9),(Bt(),z3))},"bac");var wRi=j(hn,"PartitionPreprocessor/lambda$0$Type",1605);G(1606,1,yi,ngt),x.Mb=i(function(n){return ea(y(n,9),(Bt(),z3))},"dac");var xRi=j(hn,"PartitionPreprocessor/lambda$1$Type",1606);G(1607,1,{},igt),x.Kb=i(function(n){return new Er(null,new jk(new nn(cn(Ra(y(n,9)).a.Jc(),new B))))},"fac");var TRi=j(hn,"PartitionPreprocessor/lambda$2$Type",1607);G(1608,1,yi,yTt),x.Mb=i(function(n){return GQr(this.a,y(n,17))},"hac");var kRi=j(hn,"PartitionPreprocessor/lambda$3$Type",1608);G(1609,1,xn,agt),x.Ad=i(function(n){Lfn(y(n,17))},"jac");var CRi=j(hn,"PartitionPreprocessor/lambda$4$Type",1609);G(1610,1,yi,bTt),x.Mb=i(function(n){return Can(this.a,y(n,9))},"lac"),x.a=0;var ERi=j(hn,"PartitionPreprocessor/lambda$5$Type",1610);G(1611,1,ba,iwt),x.If=i(function(n,o){RTn(y(n,36),o)},"Bac");var OFe,uKt,hKt,fKt,PFe,BFe,SRi=j(hn,"PortListSorter",1611);G(1614,1,Di,sgt),x.Le=i(function(n,o){return a_t(y(n,12),y(o,12))},"Eac"),x.Fb=i(function(n){return this===n},"Fac"),x.Me=i(function(){return new Ci(this)},"Gac");var ARi=j(hn,"PortListSorter/lambda$0$Type",1614);G(1616,1,Di,ogt),x.Le=i(function(n,o){return ejt(y(n,12),y(o,12))},"Iac"),x.Fb=i(function(n){return this===n},"Jac"),x.Me=i(function(){return new Ci(this)},"Kac");var RRi=j(hn,"PortListSorter/lambda$1$Type",1616);G(1612,1,{},lgt),x.Kb=i(function(n){return M7(),y(n,12).e},"Mac");var LRi=j(hn,"PortListSorter/lambda$2$Type",1612);G(1613,1,{},cgt),x.Kb=i(function(n){return M7(),y(n,12).g},"Oac");var _Ri=j(hn,"PortListSorter/lambda$3$Type",1613);G(1615,1,Di,ugt),x.Le=i(function(n,o){return U0n(y(n,12),y(o,12))},"Qac"),x.Fb=i(function(n){return this===n},"Rac"),x.Me=i(function(){return new Ci(this)},"Sac");var DRi=j(hn,"PortListSorter/lambda$4$Type",1615);G(1617,1,ba,hgt),x.If=i(function(n,o){Ovn(y(n,36),o)},"Wac");var IRi=j(hn,"PortSideProcessor",1617);G(1618,1,ba,fgt),x.If=i(function(n,o){$xn(y(n,36),o)},"Zac");var MRi=j(hn,"ReversedEdgeRestorer",1618);G(1623,1,ba,a4t),x.If=i(function(n,o){S0n(this,y(n,36),o)},"bbc");var NRi=j(hn,"SelfLoopPortRestorer",1623);G(1624,1,{},dgt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,25).a,16))},"dbc");var ORi=j(hn,"SelfLoopPortRestorer/lambda$0$Type",1624);G(1625,1,yi,pgt),x.Mb=i(function(n){return y(n,9).k==(Yr(),Ya)},"fbc");var PRi=j(hn,"SelfLoopPortRestorer/lambda$1$Type",1625);G(1626,1,yi,ggt),x.Mb=i(function(n){return ea(y(n,9),(Tt(),wT))},"hbc");var BRi=j(hn,"SelfLoopPortRestorer/lambda$2$Type",1626);G(1627,1,{},mgt),x.Kb=i(function(n){return y(oe(y(n,9),(Tt(),wT)),338)},"jbc");var FRi=j(hn,"SelfLoopPortRestorer/lambda$3$Type",1627);G(1628,1,xn,vTt),x.Ad=i(function(n){Oyn(this.a,y(n,338))},"lbc");var $Ri=j(hn,"SelfLoopPortRestorer/lambda$4$Type",1628);G(793,1,xn,BSe),x.Ad=i(function(n){Hyn(y(n,107))},"nbc");var GRi=j(hn,"SelfLoopPortRestorer/lambda$5$Type",793);G(1630,1,ba,ygt),x.If=i(function(n,o){Fgn(y(n,36),o)},"tbc");var jRi=j(hn,"SelfLoopPostProcessor",1630);G(1631,1,{},bgt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,25).a,16))},"vbc");var zRi=j(hn,"SelfLoopPostProcessor/lambda$0$Type",1631);G(1632,1,yi,vgt),x.Mb=i(function(n){return y(n,9).k==(Yr(),Ya)},"xbc");var URi=j(hn,"SelfLoopPostProcessor/lambda$1$Type",1632);G(1633,1,yi,wgt),x.Mb=i(function(n){return ea(y(n,9),(Tt(),wT))},"zbc");var VRi=j(hn,"SelfLoopPostProcessor/lambda$2$Type",1633);G(1634,1,xn,xgt),x.Ad=i(function(n){zmn(y(n,9))},"Bbc");var WRi=j(hn,"SelfLoopPostProcessor/lambda$3$Type",1634);G(1635,1,{},Tgt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,107).f,1))},"Dbc");var HRi=j(hn,"SelfLoopPostProcessor/lambda$4$Type",1635);G(1636,1,xn,wTt),x.Ad=i(function(n){Oln(this.a,y(n,341))},"Fbc");var qRi=j(hn,"SelfLoopPostProcessor/lambda$5$Type",1636);G(1637,1,yi,kgt),x.Mb=i(function(n){return!!y(n,107).i},"Hbc");var YRi=j(hn,"SelfLoopPostProcessor/lambda$6$Type",1637);G(1638,1,xn,xTt),x.Ad=i(function(n){nQr(this.a,y(n,107))},"Jbc");var XRi=j(hn,"SelfLoopPostProcessor/lambda$7$Type",1638);G(1619,1,ba,Cgt),x.If=i(function(n,o){p2n(y(n,36),o)},"Obc");var KRi=j(hn,"SelfLoopPreProcessor",1619);G(1620,1,{},Egt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,107).f,1))},"Qbc");var JRi=j(hn,"SelfLoopPreProcessor/lambda$0$Type",1620);G(1621,1,{},Sgt),x.Kb=i(function(n){return y(n,341).a},"Sbc");var QRi=j(hn,"SelfLoopPreProcessor/lambda$1$Type",1621);G(1622,1,xn,Agt),x.Ad=i(function(n){aen(y(n,17))},"Ubc");var ZRi=j(hn,"SelfLoopPreProcessor/lambda$2$Type",1622);G(1639,1,ba,nAt),x.If=i(function(n,o){byn(this,y(n,36),o)},"Zbc");var eLi=j(hn,"SelfLoopRouter",1639);G(1640,1,{},Rgt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,25).a,16))},"_bc");var tLi=j(hn,"SelfLoopRouter/lambda$0$Type",1640);G(1641,1,yi,Lgt),x.Mb=i(function(n){return y(n,9).k==(Yr(),Ya)},"bcc");var rLi=j(hn,"SelfLoopRouter/lambda$1$Type",1641);G(1642,1,yi,_gt),x.Mb=i(function(n){return ea(y(n,9),(Tt(),wT))},"dcc");var nLi=j(hn,"SelfLoopRouter/lambda$2$Type",1642);G(1643,1,{},Dgt),x.Kb=i(function(n){return y(oe(y(n,9),(Tt(),wT)),338)},"fcc");var iLi=j(hn,"SelfLoopRouter/lambda$3$Type",1643);G(1644,1,xn,GEt),x.Ad=i(function(n){esn(this.a,this.b,y(n,338))},"hcc");var aLi=j(hn,"SelfLoopRouter/lambda$4$Type",1644);G(1645,1,ba,Igt),x.If=i(function(n,o){Iwn(y(n,36),o)},"mcc");var sLi=j(hn,"SemiInteractiveCrossMinProcessor",1645);G(1646,1,yi,Mgt),x.Mb=i(function(n){return y(n,9).k==(Yr(),Ya)},"occ");var oLi=j(hn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1646);G(1647,1,yi,Ngt),x.Mb=i(function(n){return m8t(y(n,9))._b((Bt(),W3))},"qcc");var lLi=j(hn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1647);G(1648,1,Di,Ogt),x.Le=i(function(n,o){return _hn(y(n,9),y(o,9))},"scc"),x.Fb=i(function(n){return this===n},"tcc"),x.Me=i(function(){return new Ci(this)},"ucc");var cLi=j(hn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1648);G(1649,1,{},Pgt),x.Te=i(function(n,o){return ssn(y(n,9),y(o,9))},"wcc");var uLi=j(hn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1649);G(1651,1,ba,Bgt),x.If=i(function(n,o){d4n(y(n,36),o)},"Dcc");var hLi=j(hn,"SortByInputModelProcessor",1651);G(1652,1,yi,Fgt),x.Mb=i(function(n){return y(n,12).g.c.length!=0},"Fcc");var fLi=j(hn,"SortByInputModelProcessor/lambda$0$Type",1652);G(1653,1,xn,TTt),x.Ad=i(function(n){Jyn(this.a,y(n,12))},"Hcc");var dLi=j(hn,"SortByInputModelProcessor/lambda$1$Type",1653);G(1732,805,{},AIt),x.bf=i(function(n){var o,u,p,g;switch(this.c=n,this.a.g){case 2:o=new Pt,ts(Hi(new Er(null,new Rr(this.c.a.b,16)),new Qgt),new WEt(this,o)),X$(this,new Ggt),Zc(o,new jgt),o.c.length=0,ts(Hi(new Er(null,new Rr(this.c.a.b,16)),new zgt),new CTt(o)),X$(this,new Ugt),Zc(o,new Vgt),o.c.length=0,u=A5t(Xue(Uk(new Er(null,new Rr(this.c.a.b,16)),new ETt(this))),new Wgt),ts(new Er(null,new Rr(this.c.a.a,16)),new zEt(u,o)),X$(this,new qgt),Zc(o,new Ygt),o.c.length=0;break;case 3:p=new Pt,X$(this,new $gt),g=A5t(Xue(Uk(new Er(null,new Rr(this.c.a.b,16)),new kTt(this))),new Hgt),ts(Hi(new Er(null,new Rr(this.c.a.b,16)),new Xgt),new VEt(g,p)),X$(this,new Kgt),Zc(p,new Jgt),p.c.length=0;break;default:throw xe(new q3t)}},"Rcc"),x.b=0;var pLi=j(fs,"EdgeAwareScanlineConstraintCalculation",1732);G(1733,1,tm,$gt),x.Lb=i(function(n){return Ge(y(n,60).g,156)},"Tcc"),x.Fb=i(function(n){return this===n},"Ucc"),x.Mb=i(function(n){return Ge(y(n,60).g,156)},"Vcc");var gLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1733);G(1734,1,{},kTt),x.We=i(function(n){return Cbn(this.a,y(n,60))},"Xcc");var mLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1734);G(1742,1,oJ,jEt),x.be=i(function(){EI(this.a,this.b,-1)},"Zcc"),x.b=0;var yLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1742);G(1744,1,tm,Ggt),x.Lb=i(function(n){return Ge(y(n,60).g,156)},"_cc"),x.Fb=i(function(n){return this===n},"adc"),x.Mb=i(function(n){return Ge(y(n,60).g,156)},"bdc");var bLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1744);G(1745,1,xn,jgt),x.Ad=i(function(n){y(n,375).be()},"ddc");var vLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1745);G(1746,1,yi,zgt),x.Mb=i(function(n){return Ge(y(n,60).g,9)},"fdc");var wLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1746);G(1748,1,xn,CTt),x.Ad=i(function(n){fpn(this.a,y(n,60))},"hdc");var xLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1748);G(1747,1,oJ,YEt),x.be=i(function(){EI(this.b,this.a,-1)},"jdc"),x.a=0;var TLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1747);G(1749,1,tm,Ugt),x.Lb=i(function(n){return Ge(y(n,60).g,9)},"ldc"),x.Fb=i(function(n){return this===n},"mdc"),x.Mb=i(function(n){return Ge(y(n,60).g,9)},"ndc");var kLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1749);G(1750,1,xn,Vgt),x.Ad=i(function(n){y(n,375).be()},"pdc");var CLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1750);G(1751,1,{},ETt),x.We=i(function(n){return Ebn(this.a,y(n,60))},"rdc");var ELi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1751);G(1752,1,{},Wgt),x.Ue=i(function(){return 0},"tdc");var SLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1752);G(1735,1,{},Hgt),x.Ue=i(function(){return 0},"vdc");var ALi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1735);G(1754,1,xn,zEt),x.Ad=i(function(n){Uin(this.a,this.b,y(n,321))},"xdc"),x.a=0;var RLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1754);G(1753,1,oJ,UEt),x.be=i(function(){r$t(this.a,this.b,-1)},"zdc"),x.b=0;var LLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1753);G(1755,1,tm,qgt),x.Lb=i(function(n){return y(n,60),!0},"Bdc"),x.Fb=i(function(n){return this===n},"Cdc"),x.Mb=i(function(n){return y(n,60),!0},"Ddc");var _Li=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1755);G(1756,1,xn,Ygt),x.Ad=i(function(n){y(n,375).be()},"Fdc");var DLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1756);G(1736,1,yi,Xgt),x.Mb=i(function(n){return Ge(y(n,60).g,9)},"Hdc");var ILi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1736);G(1738,1,xn,VEt),x.Ad=i(function(n){Vin(this.a,this.b,y(n,60))},"Jdc"),x.a=0;var MLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1738);G(1737,1,oJ,XEt),x.be=i(function(){EI(this.b,this.a,-1)},"Ldc"),x.a=0;var NLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1737);G(1739,1,tm,Kgt),x.Lb=i(function(n){return y(n,60),!0},"Ndc"),x.Fb=i(function(n){return this===n},"Odc"),x.Mb=i(function(n){return y(n,60),!0},"Pdc");var OLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1739);G(1740,1,xn,Jgt),x.Ad=i(function(n){y(n,375).be()},"Rdc");var PLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1740);G(1741,1,yi,Qgt),x.Mb=i(function(n){return Ge(y(n,60).g,156)},"Tdc");var BLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1741);G(1743,1,xn,WEt),x.Ad=i(function(n){Jun(this.a,this.b,y(n,60))},"Vdc");var FLi=j(fs,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1743);G(1548,1,ba,f6t),x.If=i(function(n,o){R3n(this,y(n,36),o)},"cec");var dKt,$Li=j(fs,"HorizontalGraphCompactor",1548);G(1549,1,{},STt),x.df=i(function(n,o){var u,p,g;return WRe(n,o)||(u=EC(n),p=EC(o),u&&u.k==(Yr(),ks)||p&&p.k==(Yr(),ks))?0:(g=y(oe(this.a.a,(Tt(),yE)),317),Gen(g,u?u.k:(Yr(),bs),p?p.k:(Yr(),bs)))},"eec"),x.ef=i(function(n,o){var u,p,g;return WRe(n,o)?1:(u=EC(n),p=EC(o),g=y(oe(this.a.a,(Tt(),yE)),317),OAe(g,u?u.k:(Yr(),bs),p?p.k:(Yr(),bs)))},"fec");var GLi=j(fs,"HorizontalGraphCompactor/1",1549);G(1550,1,{},Zgt),x.cf=i(function(n,o){return s9(),n.a.i==0},"hec");var jLi=j(fs,"HorizontalGraphCompactor/lambda$0$Type",1550);G(1551,1,{},ATt),x.cf=i(function(n,o){return csn(this.a,n,o)},"jec");var zLi=j(fs,"HorizontalGraphCompactor/lambda$1$Type",1551);G(1699,1,{},s9t);var pKt,gKt,ULi=j(fs,"LGraphToCGraphTransformer",1699);G(1707,1,yi,e0t),x.Mb=i(function(n){return n!=null},"Oec");var VLi=j(fs,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1707);G(1700,1,{},t0t),x.Kb=i(function(n){return _f(),zl(oe(y(y(n,60).g,9),(Tt(),aa)))},"Qec");var WLi=j(fs,"LGraphToCGraphTransformer/lambda$0$Type",1700);G(1701,1,{},r0t),x.Kb=i(function(n){return _f(),wNt(y(y(n,60).g,156))},"Sec");var HLi=j(fs,"LGraphToCGraphTransformer/lambda$1$Type",1701);G(1710,1,yi,n0t),x.Mb=i(function(n){return _f(),Ge(y(n,60).g,9)},"Uec");var qLi=j(fs,"LGraphToCGraphTransformer/lambda$10$Type",1710);G(1711,1,xn,i0t),x.Ad=i(function(n){tsn(y(n,60))},"Wec");var YLi=j(fs,"LGraphToCGraphTransformer/lambda$11$Type",1711);G(1712,1,yi,a0t),x.Mb=i(function(n){return _f(),Ge(y(n,60).g,156)},"Yec");var XLi=j(fs,"LGraphToCGraphTransformer/lambda$12$Type",1712);G(1716,1,xn,s0t),x.Ad=i(function(n){Ddn(y(n,60))},"$ec");var KLi=j(fs,"LGraphToCGraphTransformer/lambda$13$Type",1716);G(1713,1,xn,RTt),x.Ad=i(function(n){NZr(this.a,y(n,8))},"afc"),x.a=0;var JLi=j(fs,"LGraphToCGraphTransformer/lambda$14$Type",1713);G(1714,1,xn,LTt),x.Ad=i(function(n){PZr(this.a,y(n,119))},"cfc"),x.a=0;var QLi=j(fs,"LGraphToCGraphTransformer/lambda$15$Type",1714);G(1715,1,xn,_Tt),x.Ad=i(function(n){OZr(this.a,y(n,8))},"efc"),x.a=0;var ZLi=j(fs,"LGraphToCGraphTransformer/lambda$16$Type",1715);G(1717,1,{},o0t),x.Kb=i(function(n){return _f(),new Er(null,new jk(new nn(cn(Ra(y(n,9)).a.Jc(),new B))))},"gfc");var e_i=j(fs,"LGraphToCGraphTransformer/lambda$17$Type",1717);G(1718,1,yi,l0t),x.Mb=i(function(n){return _f(),Mo(y(n,17))},"ifc");var t_i=j(fs,"LGraphToCGraphTransformer/lambda$18$Type",1718);G(1719,1,xn,DTt),x.Ad=i(function(n){Nun(this.a,y(n,17))},"kfc");var r_i=j(fs,"LGraphToCGraphTransformer/lambda$19$Type",1719);G(1703,1,xn,ITt),x.Ad=i(function(n){aln(this.a,y(n,156))},"mfc");var n_i=j(fs,"LGraphToCGraphTransformer/lambda$2$Type",1703);G(1720,1,{},c0t),x.Kb=i(function(n){return _f(),new Er(null,new Rr(y(n,25).a,16))},"ofc");var i_i=j(fs,"LGraphToCGraphTransformer/lambda$20$Type",1720);G(1721,1,{},u0t),x.Kb=i(function(n){return _f(),new Er(null,new jk(new nn(cn(Ra(y(n,9)).a.Jc(),new B))))},"qfc");var a_i=j(fs,"LGraphToCGraphTransformer/lambda$21$Type",1721);G(1722,1,{},h0t),x.Kb=i(function(n){return _f(),y(oe(y(n,17),(Tt(),Aw)),16)},"sfc");var s_i=j(fs,"LGraphToCGraphTransformer/lambda$22$Type",1722);G(1723,1,yi,f0t),x.Mb=i(function(n){return jen(y(n,16))},"ufc");var o_i=j(fs,"LGraphToCGraphTransformer/lambda$23$Type",1723);G(1724,1,xn,MTt),x.Ad=i(function(n){Sbn(this.a,y(n,16))},"wfc");var l_i=j(fs,"LGraphToCGraphTransformer/lambda$24$Type",1724);G(1725,1,{},d0t),x.Kb=i(function(n){return _f(),new Er(null,new jk(new nn(cn(Ra(y(n,9)).a.Jc(),new B))))},"yfc");var c_i=j(fs,"LGraphToCGraphTransformer/lambda$25$Type",1725);G(1726,1,yi,p0t),x.Mb=i(function(n){return _f(),Mo(y(n,17))},"Afc");var u_i=j(fs,"LGraphToCGraphTransformer/lambda$26$Type",1726);G(1728,1,xn,NTt),x.Ad=i(function(n){vhn(this.a,y(n,17))},"Cfc");var h_i=j(fs,"LGraphToCGraphTransformer/lambda$27$Type",1728);G(1727,1,xn,OTt),x.Ad=i(function(n){RQr(this.a,y(n,70))},"Efc"),x.a=0;var f_i=j(fs,"LGraphToCGraphTransformer/lambda$28$Type",1727);G(1702,1,xn,HEt),x.Ad=i(function(n){icn(this.a,this.b,y(n,156))},"Gfc");var d_i=j(fs,"LGraphToCGraphTransformer/lambda$3$Type",1702);G(1704,1,{},g0t),x.Kb=i(function(n){return _f(),new Er(null,new Rr(y(n,25).a,16))},"Ifc");var p_i=j(fs,"LGraphToCGraphTransformer/lambda$4$Type",1704);G(1705,1,{},m0t),x.Kb=i(function(n){return _f(),new Er(null,new jk(new nn(cn(Ra(y(n,9)).a.Jc(),new B))))},"Kfc");var g_i=j(fs,"LGraphToCGraphTransformer/lambda$5$Type",1705);G(1706,1,{},y0t),x.Kb=i(function(n){return _f(),y(oe(y(n,17),(Tt(),Aw)),16)},"Mfc");var m_i=j(fs,"LGraphToCGraphTransformer/lambda$6$Type",1706);G(1708,1,xn,PTt),x.Ad=i(function(n){Bbn(this.a,y(n,16))},"Ofc");var y_i=j(fs,"LGraphToCGraphTransformer/lambda$8$Type",1708);G(1709,1,xn,qEt),x.Ad=i(function(n){sen(this.a,this.b,y(n,156))},"Qfc");var b_i=j(fs,"LGraphToCGraphTransformer/lambda$9$Type",1709);G(1698,1,{},b0t),x.af=i(function(n){var o,u,p,g,w;for(this.a=n,this.d=new Toe,this.c=tt(TBe,Fr,124,this.a.a.a.c.length,0,1),this.b=0,u=new ye(this.a.a.a);u.a<u.c.c.length;)o=y(de(u),321),o.d=this.b,w=Ex(sF(new G2,o),this.d),this.c[this.b]=w,++this.b;for(V4n(this),jCn(this),Y2n(this),qfe(rce(this.d),new g5),g=new ye(this.a.a.b);g.a<g.c.c.length;)p=y(de(g),60),p.d.c=this.c[p.a.d].e+p.b.a},"Vfc"),x.b=0;var v_i=j(fs,"NetworkSimplexCompaction",1698);G(156,1,{35:1,156:1},jI),x.Dd=i(function(n){return Fun(this,y(n,156))},"Zfc"),x.Ib=i(function(){return wNt(this)},"$fc");var w_i=j(fs,"VerticalSegment",156);G(826,1,{},PDe),x.c=0,x.e=0,x.i=0;var x_i=j(iM,"BetweenLayerEdgeTwoNodeCrossingsCounter",826);G(667,1,{667:1},UIt),x.Ib=i(function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},"pgc"),x.b=0,x.c=0,x.f=0;var T_i=j(iM,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",667);G(295,1,{35:1,295:1},x6t),x.Dd=i(function(n){return yin(this,y(n,295))},"tgc"),x.Ib=i(function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},"ugc"),x.a=0,x.b=0,x.c=0;var k_i=j(iM,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",295);G(1991,1,{},IBt),x.b=0,x.e=!1;var C_i=j(iM,"CrossingMatrixFiller",1991),mKt=za(Jm,"IInitializable");G(1849,1,aM,JEt),x.eg=i(function(n,o,u,p,g,w){},"Ggc"),x.gg=i(function(n,o,u){},"Igc"),x.cg=i(function(){return this.c!=(cw(),iN)},"Egc"),x.dg=i(function(){this.e=tt(pi,Pi,30,this.d,15,1)},"Fgc"),x.fg=i(function(n,o){o[n][0].c.p=n},"Hgc"),x.hg=i(function(n,o,u,p){++this.d},"Jgc"),x.ig=i(function(){return!0},"Kgc"),x.jg=i(function(n,o,u,p){return sNt(this,n,o,u),mcn(this,o)},"Lgc"),x.kg=i(function(n,o){var u;return u=MQr(o,n.length),sNt(this,n,u,o),SMt(this,u)},"Mgc"),x.d=0;var E_i=j(iM,"GreedySwitchHeuristic",1849);G(1994,1,{},b8t),x.b=0,x.d=0;var S_i=j(iM,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",1994);G(1981,1,{},fGt),x.a=!1;var A_i=j(iM,"SwitchDecider",1981);G(107,1,{107:1},UBt),x.a=null,x.c=null,x.i=null;var R_i=j(E6,"SelfHyperLoop",107);G(1978,1,{},xOt),x.c=0,x.e=0;var L_i=j(E6,"SelfHyperLoopLabels",1978);G(413,24,{3:1,35:1,24:1,413:1},mq);var O3,YR,XR,Y0e,yKt=qn(E6,"SelfHyperLoopLabels/Alignment",413,ii,_ln,mrn),bKt;G(341,1,{341:1},V_t);var __i=j(E6,"SelfLoopEdge",341);G(338,1,{338:1},TOt),x.a=!1;var D_i=j(E6,"SelfLoopHolder",338);G(1763,1,yi,v0t),x.Mb=i(function(n){return Mo(y(n,17))},"Dhc");var I_i=j(E6,"SelfLoopHolder/lambda$0$Type",1763);G(113,1,{113:1},ROt),x.a=!1,x.c=!1;var M_i=j(E6,"SelfLoopPort",113);G(1835,1,yi,w0t),x.Mb=i(function(n){return Mo(y(n,17))},"Hhc");var N_i=j(E6,"SelfLoopPort/lambda$0$Type",1835);G(371,24,{3:1,35:1,24:1,371:1},fF);var YQ,ij,XQ,KQ,JQ,vKt=qn(E6,"SelfLoopType",371,ii,Scn,yrn),wKt;G(1771,1,{},awt);var xKt,TKt,kKt,CKt,O_i=j(jf,"PortRestorer",1771);G(368,24,{3:1,35:1,24:1,368:1},tle);var gT,Nv,mT,X0e=qn(jf,"PortRestorer/PortSideArea",368,ii,kon,Ern),EKt;G(1772,1,{},x0t),x.Kb=i(function(n){return vv(),y(n,16).Mc()},"Cic");var P_i=j(jf,"PortRestorer/lambda$0$Type",1772);G(1773,1,xn,T0t),x.Ad=i(function(n){vv(),y(n,113).c=!1},"Eic");var B_i=j(jf,"PortRestorer/lambda$1$Type",1773);G(1782,1,yi,k0t),x.Mb=i(function(n){return vv(),y(n,12).j==(zt(),on)},"Gic");var F_i=j(jf,"PortRestorer/lambda$10$Type",1782);G(1783,1,{},C0t),x.Kb=i(function(n){return vv(),y(n,113).d},"Iic");var $_i=j(jf,"PortRestorer/lambda$11$Type",1783);G(1784,1,xn,BTt),x.Ad=i(function(n){LQr(this.a,y(n,12))},"Kic");var G_i=j(jf,"PortRestorer/lambda$12$Type",1784);G(1774,1,xn,FTt),x.Ad=i(function(n){etn(this.a,y(n,107))},"Mic");var j_i=j(jf,"PortRestorer/lambda$2$Type",1774);G(1775,1,Di,E0t),x.Le=i(function(n,o){return lhn(y(n,113),y(o,113))},"Oic"),x.Fb=i(function(n){return this===n},"Pic"),x.Me=i(function(){return new Ci(this)},"Qic");var z_i=j(jf,"PortRestorer/lambda$3$Type",1775);G(1776,1,yi,S0t),x.Mb=i(function(n){return vv(),y(n,113).c},"Sic");var U_i=j(jf,"PortRestorer/lambda$4$Type",1776);G(1777,1,yi,A0t),x.Mb=i(function(n){return tfn(y(n,12))},"Uic");var V_i=j(jf,"PortRestorer/lambda$5$Type",1777);G(1778,1,yi,R0t),x.Mb=i(function(n){return vv(),y(n,12).j==(zt(),sn)},"Wic");var W_i=j(jf,"PortRestorer/lambda$6$Type",1778);G(1779,1,yi,L0t),x.Mb=i(function(n){return vv(),y(n,12).j==(zt(),bn)},"Yic");var H_i=j(jf,"PortRestorer/lambda$7$Type",1779);G(1780,1,yi,_0t),x.Mb=i(function(n){return Dln(y(n,12))},"$ic");var q_i=j(jf,"PortRestorer/lambda$8$Type",1780);G(1781,1,yi,D0t),x.Mb=i(function(n){return vv(),y(n,12).j==(zt(),Fn)},"ajc");var Y_i=j(jf,"PortRestorer/lambda$9$Type",1781);G(275,24,{3:1,35:1,24:1,275:1},G5);var K0e,J0e,Q0e,Z0e,eme,tme,rme,nme,FFe=qn(jf,"PortSideAssigner/Target",275,ii,Hun,Orn),SKt;G(1764,1,{},M0t),x.Kb=i(function(n){return Hi(new Er(null,new Rr(y(n,107).j,16)),new FSe)},"xjc");var X_i=j(jf,"PortSideAssigner/lambda$1$Type",1764);G(1765,1,{},N0t),x.Kb=i(function(n){return y(n,113).d},"zjc");var K_i=j(jf,"PortSideAssigner/lambda$2$Type",1765);G(1766,1,xn,O0t),x.Ad=i(function(n){Bs(y(n,12),(zt(),sn))},"Bjc");var J_i=j(jf,"PortSideAssigner/lambda$3$Type",1766);G(1767,1,{},P0t),x.Kb=i(function(n){return y(n,113).d},"Djc");var Q_i=j(jf,"PortSideAssigner/lambda$4$Type",1767);G(1768,1,xn,$Tt),x.Ad=i(function(n){zJr(this.a,y(n,12))},"Fjc");var Z_i=j(jf,"PortSideAssigner/lambda$5$Type",1768);G(1769,1,Di,B0t),x.Le=i(function(n,o){return Gan(y(n,107),y(o,107))},"Hjc"),x.Fb=i(function(n){return this===n},"Ijc"),x.Me=i(function(){return new Ci(this)},"Jjc");var eDi=j(jf,"PortSideAssigner/lambda$6$Type",1769);G(1770,1,Di,F0t),x.Le=i(function(n,o){return uin(y(n,113),y(o,113))},"Ljc"),x.Fb=i(function(n){return this===n},"Mjc"),x.Me=i(function(){return new Ci(this)},"Njc");var tDi=j(jf,"PortSideAssigner/lambda$7$Type",1770);G(808,1,yi,FSe),x.Mb=i(function(n){return y(n,113).c},"Pjc");var rDi=j(jf,"PortSideAssigner/lambda$8$Type",808);G(2073,1,{});var nDi=j(Av,"AbstractSelfLoopRouter",2073);G(1789,1,Di,I0t),x.Le=i(function(n,o){return jtn(y(n,107),y(o,107))},"akc"),x.Fb=i(function(n){return this===n},"bkc"),x.Me=i(function(){return new Ci(this)},"ckc");var iDi=j(Av,jUt,1789);G(1790,1,Di,$0t),x.Le=i(function(n,o){return ztn(y(n,107),y(o,107))},"ekc"),x.Fb=i(function(n){return this===n},"fkc"),x.Me=i(function(){return new Ci(this)},"gkc");var aDi=j(Av,zUt,1790);G(1836,2073,{},G0t),x.lg=i(function(n,o,u){return u},"ukc");var sDi=j(Av,"OrthogonalSelfLoopRouter",1836);G(1838,1,xn,KEt),x.Ad=i(function(n){Y_e(this.b,this.a,y(n,8))},"wkc");var oDi=j(Av,"OrthogonalSelfLoopRouter/lambda$0$Type",1838);G(1837,1836,{},j0t),x.lg=i(function(n,o,u){var p,g;return p=n.c.d,e7(u,0,ra(Wo(p.n),p.a)),g=n.d.d,_i(u,ra(Wo(g.n),g.a)),UTn(u)},"Akc");var lDi=j(Av,"PolylineSelfLoopRouter",1837);G(1785,1,{},swt),x.a=null;var cE,cDi=j(Av,"RoutingDirector",1785);G(1786,1,Di,z0t),x.Le=i(function(n,o){return cin(y(n,113),y(o,113))},"Rkc"),x.Fb=i(function(n){return this===n},"Skc"),x.Me=i(function(){return new Ci(this)},"Tkc");var uDi=j(Av,"RoutingDirector/lambda$0$Type",1786);G(1787,1,{},U0t),x.Kb=i(function(n){return nq(),y(n,107).j},"Vkc");var hDi=j(Av,"RoutingDirector/lambda$1$Type",1787);G(1788,1,xn,V0t),x.Ad=i(function(n){nq(),y(n,16).gd(cE)},"Xkc");var fDi=j(Av,"RoutingDirector/lambda$2$Type",1788);G(1791,1,{},W0t);var dDi=j(Av,"RoutingSlotAssigner",1791);G(1792,1,yi,GTt),x.Mb=i(function(n){return wZr(this.a,y(n,107))},"klc");var pDi=j(Av,"RoutingSlotAssigner/lambda$0$Type",1792);G(1793,1,Di,jTt),x.Le=i(function(n,o){return Din(this.a,y(n,107),y(o,107))},"mlc"),x.Fb=i(function(n){return this===n},"nlc"),x.Me=i(function(){return new Ci(this)},"olc");var gDi=j(Av,"RoutingSlotAssigner/lambda$1$Type",1793);G(1839,1836,{},H0t),x.lg=i(function(n,o,u){var p,g,w,k;return p=He(Xe(uK(n.b.g.b,(Bt(),xE)))),k=new C6t(Se(Ee(to,1),Dt,8,0,[(w=n.c.d,ra(new Vo(w.n),w.a))])),v2n(n,o,u,k,p),_i(k,(g=n.d.d,ra(new Vo(g.n),g.a))),XOt(new OIe(k))},"rlc");var mDi=j(Av,"SplineSelfLoopRouter",1839);G(513,1,Di,_Le,B7t),x.Le=i(function(n,o){return fG(this,y(n,9),y(o,9))},"Alc"),x.Fb=i(function(n){return this===n},"Blc"),x.Me=i(function(){return new Ci(this)},"Clc"),x.a=!1;var yDi=j(vJ,"ModelOrderNodeComparator",513);G(1794,1,yi,q0t),x.Mb=i(function(n){return y(n,12).e.c.length!=0},"Elc");var bDi=j(vJ,"ModelOrderNodeComparator/lambda$0$Type",1794);G(573,1,yi,kH),x.Mb=i(function(n){return y(n,12).e.c.length!=0},"Glc");var vDi=j(vJ,"ModelOrderNodeComparator/lambda$1$Type",573);G(574,1,yi,CH),x.Mb=i(function(n){return y(n,12).g.c.length!=0},"Ilc");var wDi=j(vJ,"ModelOrderNodeComparator/lambda$2$Type",574);G(656,1,Di,NNt,URe),x.Le=i(function(n,o){return G8t(this,n,o)},"Rlc"),x.Fb=i(function(n){return this===n},"Slc"),x.Me=i(function(){return new Ci(this)},"Tlc"),x.c=!1;var xDi=j(vJ,"ModelOrderPortComparator",656);G(1629,1,ba,Y0t),x.If=i(function(n,o){EEn(y(n,36))},"amc");var TDi=j("org.eclipse.elk.alg.layered.intermediate.unzipping","AlternatingLayerUnzipper",1629);G(803,1,{},$Se),x.mg=i(function(n,o){var u,p,g,w;for(g=ABt(o),u=new Pt,w=o.f/g,p=1;p<g;++p)Nt(u,Et(mi(vc(d.Math.round(p*w)))));return u},"dmc"),x.ng=i(function(){return!1},"emc");var kDi=j(nm,"ARDCutIndexHeuristic",803);G(1506,1,ba,X0t),x.If=i(function(n,o){sTn(y(n,36),o)},"kmc");var CDi=j(nm,"BreakingPointInserter",1506);G(318,1,{318:1},lRe),x.Ib=i(function(){var n;return n=new Yb,n.a+="BPInfo[",n.a+=`
|
|
start=`,qc(n,this.i),n.a+=`
|
|
end=`,qc(n,this.a),n.a+=`
|
|
nodeStartEdge=`,qc(n,this.e),n.a+=`
|
|
startEndEdge=`,qc(n,this.j),n.a+=`
|
|
originalEdge=`,qc(n,this.f),n.a+=`
|
|
startInLayerDummy=`,qc(n,this.k),n.a+=`
|
|
startInLayerEdge=`,qc(n,this.n),n.a+=`
|
|
endInLayerDummy=`,qc(n,this.b),n.a+=`
|
|
endInLayerEdge=`,qc(n,this.c),n.a},"omc");var EDi=j(nm,"BreakingPointInserter/BPInfo",318);G(651,1,{651:1},JTt),x.a=!1,x.b=0,x.c=0;var SDi=j(nm,"BreakingPointInserter/Cut",651);G(1507,1,ba,K0t),x.If=i(function(n,o){k2n(y(n,36),o)},"Gmc");var ADi=j(nm,"BreakingPointProcessor",1507);G(1508,1,yi,J0t),x.Mb=i(function(n){return v9t(y(n,9))},"Imc");var RDi=j(nm,"BreakingPointProcessor/0methodref$isEnd$Type",1508);G(1509,1,yi,Q0t),x.Mb=i(function(n){return w9t(y(n,9))},"Kmc");var LDi=j(nm,"BreakingPointProcessor/1methodref$isStart$Type",1509);G(1510,1,ba,Z0t),x.If=i(function(n,o){H2n(this,y(n,36),o)},"Pmc");var _Di=j(nm,"BreakingPointRemover",1510);G(1511,1,xn,emt),x.Ad=i(function(n){y(n,132).k=!0},"Rmc");var DDi=j(nm,"BreakingPointRemover/lambda$0$Type",1511);G(799,1,{},I9e),x.b=0,x.e=0,x.f=0,x.j=0;var IDi=j(nm,"GraphStats",799);G(800,1,{},GSe),x.Te=i(function(n,o){return d.Math.max(He(Xe(n)),He(Xe(o)))},"dnc");var MDi=j(nm,"GraphStats/0methodref$max$Type",800);G(801,1,{},jSe),x.Te=i(function(n,o){return d.Math.max(He(Xe(n)),He(Xe(o)))},"fnc");var NDi=j(nm,"GraphStats/2methodref$max$Type",801);G(1695,1,{},tmt),x.Te=i(function(n,o){return Jnn(Xe(n),Xe(o))},"hnc");var ODi=j(nm,"GraphStats/lambda$1$Type",1695);G(1696,1,{},zTt),x.Kb=i(function(n){return AOt(this.a,y(n,25))},"jnc");var PDi=j(nm,"GraphStats/lambda$2$Type",1696);G(1697,1,{},UTt),x.Kb=i(function(n){return S$t(this.a,y(n,25))},"lnc");var BDi=j(nm,"GraphStats/lambda$6$Type",1697);G(802,1,{},zSe),x.mg=i(function(n,o){var u;return u=y(oe(n,(Bt(),WGe)),16),u||(Ir(),Ir(),Go)},"nnc"),x.ng=i(function(){return!1},"onc");var FDi=j(nm,"ICutIndexCalculator/ManualCutIndexCalculator",802);G(804,1,{},USe),x.mg=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht;for(ht=(o.n==null&&ePt(o),o.n),D=(o.d==null&&ePt(o),o.d),Ve=tt(po,vl,30,ht.length,15,1),Ve[0]=ht[0],Me=ht[0],M=1;M<ht.length;M++)Ve[M]=Ve[M-1]+ht[M],Me+=ht[M];for(g=ABt(o)-1,k=y(oe(n,(Bt(),HGe)),15).a,p=Ys,u=new Pt,ee=d.Math.max(0,g-k);ee<=d.Math.min(o.f-1,g+k);ee++){if(fe=Me/(ee+1),Ce=0,F=1,w=new Pt,$e=Ys,z=0,A=0,ue=D[0],ee==0)$e=Me,A=(o.g==null&&(o.g=BIt(o,new jSe)),He(o.g));else{for(;F<o.f;)Ve[F-1]-Ce>=fe&&(Nt(w,Et(F)),$e=d.Math.max($e,Ve[F-1]-z),A+=ue,Ce+=Ve[F-1]-Ce,z=Ve[F-1],ue=D[F]),ue=d.Math.max(ue,D[F]),++F;A+=ue}ie=d.Math.min(1/$e,1/o.b/A),ie>p&&(p=ie,u=w)}return u},"qnc"),x.ng=i(function(){return!1},"rnc");var $Di=j(nm,"MSDCutIndexHeuristic",804);G(1650,1,ba,rmt),x.If=i(function(n,o){Ikn(y(n,36),o)},"vnc");var GDi=j(nm,"SingleEdgeGraphWrapper",1650);G(231,24,{3:1,35:1,24:1,231:1},d9);var uE,KR,JR,P3,OM,hE,QR=qn(fc,"CenterEdgeLabelPlacementStrategy",231,ii,tun,vrn),AKt;G(422,24,{3:1,35:1,24:1,422:1},F6e);var $Fe,ime,GFe=qn(fc,"ConstraintCalculationStrategy",422,ii,Esn,brn),RKt;G(301,24,{3:1,35:1,24:1,301:1,188:1,196:1},yq),x.bg=i(function(){return h$t(this)},"_nc"),x.og=i(function(){return h$t(this)},"$nc");var aj,PM,jFe,zFe,UFe=qn(fc,"CrossingMinimizationStrategy",301,ii,Iln,wrn),LKt;G(350,24,{3:1,35:1,24:1,350:1},rle);var VFe,ame,QQ,WFe=qn(fc,"CuttingStrategy",350,ii,Mon,xrn),_Kt;G(267,24,{3:1,35:1,24:1,267:1,188:1,196:1},cC),x.bg=i(function(){return gGt(this)},"Aoc"),x.og=i(function(){return gGt(this)},"zoc");var sme,HFe,ome,lme,cme,ume,hme,fme,sj,qFe=qn(fc,"CycleBreakingStrategy",267,ii,xhn,Trn),DKt;G(419,24,{3:1,35:1,24:1,419:1},$6e);var ZQ,YFe,XFe=qn(fc,"DirectionCongruency",419,ii,Ssn,krn),IKt;G(449,24,{3:1,35:1,24:1,449:1},nle);var ZR,dme,fE,MKt=qn(fc,"EdgeConstraint",449,ii,Non,Crn),NKt;G(284,24,{3:1,35:1,24:1,284:1},p9);var pme,gme,mme,yme,eZ,bme,KFe=qn(fc,"EdgeLabelSideSelection",284,ii,run,Arn),OKt;G(476,24,{3:1,35:1,24:1,476:1},G6e);var tZ,JFe,QFe=qn(fc,"EdgeStraighteningStrategy",476,ii,Asn,Rrn),PKt;G(282,24,{3:1,35:1,24:1,282:1},g9);var vme,ZFe,e$e,rZ,t$e,r$e,n$e=qn(fc,"FixedAlignment",282,ii,nun,Srn),BKt;G(283,24,{3:1,35:1,24:1,283:1},m9);var i$e,a$e,s$e,o$e,BM,l$e,c$e=qn(fc,"GraphCompactionStrategy",283,ii,iun,Lrn),FKt;G(261,24,{3:1,35:1,24:1,261:1},Ak);var eL,nZ,tL,Cd,FM,iZ,rL,dE,aZ,$M,wme=qn(fc,"GraphProperties",261,ii,Uhn,_rn),$Kt;G(302,24,{3:1,35:1,24:1,302:1},ile);var oj,xme,Tme,kme=qn(fc,"GreedySwitchType",302,ii,won,Drn),GKt;G(329,24,{3:1,35:1,24:1,329:1},ale);var B3,u$e,lj,Cme=qn(fc,"GroupOrderStrategy",329,ii,xon,Irn),jKt;G(316,24,{3:1,35:1,24:1,316:1},sle);var N6,cj,pE,zKt=qn(fc,"InLayerConstraint",316,ii,Ton,Mrn),UKt;G(420,24,{3:1,35:1,24:1,420:1},j6e);var Eme,h$e,f$e=qn(fc,"InteractiveReferencePoint",420,ii,Rsn,Nrn),VKt,d$e,O6,yT,uj,sZ,p$e,g$e,oZ,m$e,P6,lZ,GM,B6,J1,Sme,cZ,gc,y$e,Ov,au,Ame,Rme,hj,Sw,bT,F6,b$e,WKt,$6,fj,F3,Cg,np,Lme,gE,Pv,Ea,aa,v$e,w$e,x$e,T$e,k$e,_me,uZ,Ih,vT,Dme,G6,jM,ib,mE,wT,yE,bE,nL,Aw,C$e,Ime,Mme,zM,j6,hZ,z6,vE;G(165,24,{3:1,35:1,24:1,165:1},dF);var UM,Q1,VM,Rw,dj,E$e=qn(fc,"LayerConstraint",165,ii,Rcn,Prn),HKt;G(423,24,{3:1,35:1,24:1,423:1},z6e);var Nme,Ome,S$e=qn(fc,"LayerUnzippingStrategy",423,ii,Lsn,Brn),qKt;G(844,1,s0,owt),x.tf=i(function(n){fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,jMe),""),"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."),$$e),(dw(),Oa)),XFe),mr((K0(),Or))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,zMe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(qr(),!1)),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,wJ),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),W$e),Oa),f$e),mr(Or)))),Ga(n,wJ,OG,JJt),Ga(n,wJ,sM,KJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,UMe),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,VMe),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(PQr(ur(cr(hr(vr(ar(lr(sr(or(new nr,WMe),""),"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),Ms),Ja),mr(cb)),Se(Ee(Zt,1),Dt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,HMe),""),"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."),rGe),Oa),fje),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,qMe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Et(7)),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,YMe),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,XMe),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,OG),"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)."),F$e),Oa),qFe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,PG),Hpe),"Node Layering Strategy"),"Strategy for node layering."),Y$e),Oa),tje),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,KMe),Hpe),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),H$e),Oa),E$e),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,JMe),Hpe),"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),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,QMe),Hpe),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Et(-1)),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,dpe),wVt),"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."),Et(4)),jo),Ls),mr(Or)))),Ga(n,dpe,PG,iQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ppe),wVt),"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."),Et(2)),jo),Ls),mr(Or)))),Ga(n,ppe,PG,sQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,gpe),xVt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),q$e),Oa),cje),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,mpe),xVt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Et(0)),jo),Ls),mr(Or)))),Ga(n,mpe,gpe,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ype),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Et(Ui)),jo),Ls),mr(Or)))),Ga(n,ype,PG,ZJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,sM),AR),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),B$e),Oa),UFe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ZMe),AR),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,bpe),AR),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Ao),Ts),mr(Or)))),Ga(n,bpe,MJ,kJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,vpe),AR),"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),Ms),Ja),mr(Or)))),Ga(n,vpe,sM,LJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,eNe),AR),"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),X6),Zt),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,tNe),AR),"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),X6),Zt),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,rNe),AR),"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),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,nNe),AR),"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."),Et(-1)),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,iNe),TVt),"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."),Et(40)),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,wpe),TVt),"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."),P$e),Oa),kme),mr(Or)))),Ga(n,wpe,sM,xJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,xJ),"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."),O$e),Oa),kme),mr(Or)))),Ga(n,xJ,sM,bJt),Ga(n,xJ,MJ,vJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,E3),kVt),"Node Placement Strategy"),"Strategy for node placement."),tGe),Oa),f1e),mr(Or)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,TJ),kVt),"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."),Ms),Ja),mr(Or)))),Ga(n,TJ,E3,kQt),Ga(n,TJ,E3,CQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,xpe),CVt),"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."),Q$e),Oa),QFe),mr(Or)))),Ga(n,xpe,E3,vQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Tpe),CVt),"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."),Z$e),Oa),n$e),mr(Or)))),Ga(n,Tpe,E3,xQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,kpe),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Ao),Ts),mr(Or)))),Ga(n,kpe,E3,SQt),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,Cpe),"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."),Oa),c1e),mr(ds)))),Ga(n,Cpe,E3,_Qt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Epe),EVt),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),eGe),Oa),c1e),mr(Or)))),Ga(n,Epe,E3,LQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Spe),EVt),"Node Flexibility Recompute Node Placement"),"Run a second node placement algorithm after the initial network simplex with node flexibility. In the second run, node flexibility is disabled and a different node placer can be used. The node sizes determined by the node flexibility option are used as fixed node sizes in the second run. If set to null (default) no second run is performed."),null),Oa),f1e),mr(Or)))),Ga(n,Spe,E3,IQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,aNe),SVt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),z$e),Oa),gje),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,sNe),SVt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),U$e),Oa),mje),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,kJ),"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."),V$e),Oa),bje),mr(Or)))),Ga(n,kJ,FG,GJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,CJ),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Ao),Ts),mr(Or)))),Ga(n,CJ,FG,zJt),Ga(n,CJ,kJ,UJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Ape),"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),Ao),Ts),mr(Or)))),Ga(n,Ape,FG,PJt),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,oNe),l0),"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."),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,lNe),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,cNe),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,uNe),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,hNe),kNe),"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."),Et(0)),jo),Ls),mr(Sg)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,fNe),kNe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Et(0)),jo),Ls),mr(Sg)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,dNe),kNe),"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."),Et(0)),jo),Ls),mr(Sg)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Rpe),CNe),"Connected Components Compaction"),"Tries to further compact components (disconnected sub-graphs)."),!1),Ms),Ja),mr(Or)))),Ga(n,Rpe,eM,!0),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,pNe),AVt),"Post Compaction Strategy"),RVt),R$e),Oa),c$e),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,gNe),AVt),"Post Compaction Constraint Calculation"),RVt),A$e),Oa),GFe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,EJ),ENe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Lpe),ENe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Et(16)),jo),Ls),mr(Or)))),Ga(n,Lpe,EJ,!0),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,_pe),ENe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Et(5)),jo),Ls),mr(Or)))),Ga(n,_pe,EJ,!0),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Y1),SNe),"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'."),aGe),Oa),Tje),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,SJ),SNe),"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),Ao),Ts),mr(Or)))),Ga(n,SJ,Y1,WQt),Ga(n,SJ,Y1,HQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,AJ),SNe),"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),Ao),Ts),mr(Or)))),Ga(n,AJ,Y1,YQt),Ga(n,AJ,Y1,XQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,oM),LVt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),iGe),Oa),WFe),mr(Or)))),Ga(n,oM,Y1,tZt),Ga(n,oM,Y1,rZt),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,Dpe),LVt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),d0),zf),mr(Or)))),Ga(n,Dpe,oM,JQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Ipe),"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."),nGe),jo),Ls),mr(Or)))),Ga(n,Ipe,oM,ZQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,RJ),_Vt),"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."),sGe),Oa),xje),mr(Or)))),Ga(n,RJ,Y1,pZt),Ga(n,RJ,Y1,gZt),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,LJ),_Vt),"Valid Indices for Wrapping"),null),d0),zf),mr(Or)))),Ga(n,LJ,Y1,hZt),Ga(n,LJ,Y1,fZt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,_J),ANe),"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),Ms),Ja),mr(Or)))),Ga(n,_J,Y1,sZt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,DJ),ANe),"Distance Penalty When Improving Cuts"),null),2),Ao),Ts),mr(Or)))),Ga(n,DJ,Y1,iZt),Ga(n,DJ,_J,!0),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Mpe),ANe),"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),Ms),Ja),mr(Or)))),Ga(n,Mpe,Y1,lZt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Npe),qpe),"Layer Unzipping Strategy"),"The strategy to use for unzipping a layer into multiple sublayers while maintaining the existing ordering of nodes and edges after crossing minimization. The default value is 'NONE'."),J$e),Oa),S$e),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Ope),qpe),"Minimize Edge Length Heuristic"),"Use a heuristic to decide whether or not to actually perform the layer split with the goal of minimizing the total edge length. This option only works when layerSplit is set to 2. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to true, then the value is set to true for the entire layer."),!1),Ms),Ja),mr(ds)))),Ga(n,Ope,Ppe,fQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Ppe),qpe),"Unzipping Layer Split"),"Defines the number of sublayers to split a layer into. The property can be set to the nodes in a layer, which then applies the property for the layer. If multiple nodes set the value to different values, then the lowest value is chosen."),X$e),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Bpe),qpe),"Reset Alternation on Long Edges"),"If set to true, nodes will always be placed in the first sublayer after a long edge when using the ALTERNATING strategy. Otherwise long edge dummies are treated the same as regular nodes. The default value is true. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to false, then the value is set to false for the entire layer."),K$e),Ms),Ja),mr(ds)))),Ga(n,Bpe,Npe,pQt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,mNe),Ype),"Edge Label Side Selection"),"Method to decide on edge label sides."),j$e),Oa),KFe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,yNe),Ype),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),G$e),Oa),QR),ka(Or,Se(Ee(f0,1),At,160,0,[ey]))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,IJ),lM),"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."),N$e),Oa),hje),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,bNe),lM),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,BG),lM),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Ms),Ja),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Fpe),lM),"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."),L$e),Oa),HBe),mr(Or)))),Ga(n,Fpe,eM,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,vNe),lM),"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."),M$e),Oa),nje),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,$pe),lM),"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),Ao),Ts),mr(Or)))),Ga(n,$pe,IJ,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Gpe),lM),"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),Ao),Ts),mr(Or)))),Ga(n,Gpe,IJ,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,jpe),RR),RNe),"Used to define partial ordering groups during cycle breaking. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Et(0)),jo),Ls),mr(ds)))),Ga(n,jpe,BG,!1),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,zpe),RR),RNe),"Used to define partial ordering groups during crossing minimization. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Et(0)),jo),Ls),ka(ds,Se(Ee(f0,1),At,160,0,[Sg,cb]))))),Ga(n,zpe,BG,!1),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Upe),RR),RNe),"Used to define partial ordering groups during component packing. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Et(0)),jo),Ls),ka(ds,Se(Ee(f0,1),At,160,0,[Sg,cb]))))),Ga(n,Upe,BG,!1),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,wNe),RR),"Cycle Breaking Group Ordering Strategy"),"Determines how to count ordering violations during cycle breaking. NONE: They do not count. ENFORCED: A group with a higher model order is before a node with a smaller. MODEL_ORDER: The model order counts instead of the model order group id ordering."),_$e),Oa),Cme),mr(Or)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,Vpe),RR),"Cycle Breaking Preferred Source Id"),"The model order group id for which should be preferred as a source if possible."),jo),Ls),mr(Or)))),Ga(n,Vpe,OG,nJt),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,Wpe),RR),"Cycle Breaking Preferred Target Id"),"The model order group id for which should be preferred as a target if possible."),jo),Ls),mr(Or)))),Ga(n,Wpe,OG,aJt),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,xNe),RR),"Crossing Minimization Group Ordering Strategy"),"Determines how to count ordering violations during crossing minimization. NONE: They do not count. ENFORCED: A group with a lower id is before a group with a higher id. MODEL_ORDER: The model order counts instead of the model order group id ordering."),I$e),Oa),Cme),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,TNe),RR),"Crossing Minimization Enforced Group Orders"),"Holds all group ids which are enforcing their order during crossing minimization strategies. E.g. if only groups 2 and -1 (default) enforce their ordering. Other groups e.g. the group of timer nodes can be ordered arbitrarily if it helps and the mentioned groups may not change their order."),D$e),d0),zf),mr(Or)))),Kzt((new pwt,n))},"svc");var YKt,XKt,KKt,A$e,JKt,R$e,QKt,L$e,ZKt,eJt,tJt,_$e,rJt,nJt,iJt,aJt,sJt,D$e,oJt,I$e,lJt,cJt,uJt,hJt,M$e,fJt,dJt,pJt,N$e,gJt,mJt,yJt,O$e,bJt,vJt,wJt,P$e,xJt,TJt,kJt,CJt,EJt,SJt,AJt,RJt,LJt,_Jt,B$e,DJt,F$e,IJt,$$e,MJt,G$e,NJt,j$e,OJt,PJt,BJt,z$e,FJt,U$e,$Jt,V$e,GJt,jJt,zJt,UJt,VJt,WJt,HJt,qJt,YJt,XJt,W$e,KJt,JJt,QJt,ZJt,eQt,tQt,H$e,rQt,nQt,iQt,aQt,sQt,oQt,lQt,q$e,cQt,Y$e,uQt,X$e,hQt,fQt,dQt,K$e,pQt,gQt,J$e,mQt,yQt,bQt,Q$e,vQt,wQt,Z$e,xQt,TQt,kQt,CQt,EQt,SQt,AQt,RQt,eGe,LQt,_Qt,DQt,IQt,MQt,tGe,NQt,rGe,OQt,PQt,BQt,FQt,$Qt,GQt,jQt,zQt,UQt,VQt,WQt,HQt,qQt,YQt,XQt,KQt,JQt,QQt,nGe,ZQt,eZt,iGe,tZt,rZt,nZt,iZt,aZt,sZt,oZt,lZt,cZt,aGe,uZt,hZt,fZt,dZt,sGe,pZt,gZt,jDi=j(fc,"LayeredMetaDataProvider",844);G(983,1,s0,pwt),x.tf=i(function(n){Kzt(n)},"qyc");var lm,Pme,fZ,WM,dZ,oGe,pZ,HM,pj,Bme,U6,lGe,cGe,uGe,qM,mZt,YM,$3,Fme,gZ,$me,t1,Gme,iL,hGe,gj,jme,fGe,yZt,bZt,vZt,mZ,zme,XM,V6,wZt,Uf,dGe,pGe,yZ,wE,cm,bZ,Z1,gGe,mGe,yGe,Ume,Vme,bGe,ab,Wme,vGe,G3,wGe,xGe,TGe,vZ,j3,Lw,kGe,CGe,Dl,EGe,xZt,tc,KM,SGe,AGe,RGe,mj,wZ,xZ,Hme,qme,LGe,TZ,_Ge,DGe,kZ,xT,IGe,Yme,JM,MGe,_w,aL,Xme,CZ,Bv,Kme,sL,EZ,Dw,NGe,OGe,PGe,z3,BGe,TZt,kZt,CZt,EZt,TT,U3,Qa,sb,SZt,V3,FGe,oL,$Ge,W3,AZt,lL,GGe,W6,RZt,LZt,yj,Jme,jGe,bj,Xp,H3,xE,Iw,Fv,SZ,q3,Qme,cL,uL,Mw,Y3,Zme,vj,QM,ZM,_Zt,DZt,IZt,zGe,MZt,e1e,UGe,VGe,WGe,HGe,t1e,qGe,YGe,XGe,KGe,r1e,AZ,zDi=j(fc,"LayeredOptions",983);G(984,1,{},umt),x.uf=i(function(){var n;return n=new K3t,n},"syc"),x.vf=i(function(n){},"tyc");var UDi=j(fc,"LayeredOptions/LayeredFactory",984);G(1346,1,{}),x.a=0;var NZt,VDi=j(xc,"ElkSpacings/AbstractSpacingsBuilder",1346);G(779,1346,{},A_e);var RZ,OZt,WDi=j(fc,"LayeredSpacings/LayeredSpacingsBuilder",779);G(268,24,{3:1,35:1,24:1,268:1,188:1,196:1},uC),x.bg=i(function(){return hGt(this)},"Uyc"),x.og=i(function(){return hGt(this)},"Tyc");var n1e,i1e,a1e,JGe,QGe,ZGe,LZ,s1e,eje,tje=qn(fc,"LayeringStrategy",268,ii,Thn,Frn),PZt;G(352,24,{3:1,35:1,24:1,352:1},ole);var o1e,rje,_Z,nje=qn(fc,"LongEdgeOrderingStrategy",352,ii,von,$rn),BZt;G(203,24,{3:1,35:1,24:1,203:1},bq);var TE,kE,DZ,l1e,c1e=qn(fc,"NodeFlexibility",203,ii,Mln,Grn),FZt;G(303,24,{3:1,35:1,24:1,303:1,188:1,196:1},pF),x.bg=i(function(){return P9e(this)},"Czc"),x.og=i(function(){return P9e(this)},"Bzc");var eN,u1e,h1e,hL,ije,f1e=qn(fc,"NodePlacementStrategy",303,ii,Acn,jrn),$Zt;G(243,24,{3:1,35:1,24:1,243:1},Rk);var aje,fL,tN,wj,sje,oje,xj,lje,IZ,MZ,cje=qn(fc,"NodePromotionStrategy",243,ii,Vhn,zrn),GZt;G(269,24,{3:1,35:1,24:1,269:1},vq);var uje,$v,d1e,p1e,hje=qn(fc,"OrderingStrategy",269,ii,Nln,Urn),jZt;G(421,24,{3:1,35:1,24:1,421:1},U6e);var g1e,m1e,fje=qn(fc,"PortSortingStrategy",421,ii,_sn,Vrn),zZt;G(452,24,{3:1,35:1,24:1,452:1},cle);var Mh,Eu,rN,UZt=qn(fc,"PortType",452,ii,Son,Wrn),VZt;G(381,24,{3:1,35:1,24:1,381:1},lle);var dje,y1e,pje,gje=qn(fc,"SelfLoopDistributionStrategy",381,ii,Eon,Hrn),WZt;G(348,24,{3:1,35:1,24:1,348:1},ule);var b1e,Tj,v1e,mje=qn(fc,"SelfLoopOrderingStrategy",348,ii,Con,qrn),HZt;G(317,1,{317:1},Yjt);var HDi=j(fc,"Spacings",317);G(349,24,{3:1,35:1,24:1,349:1},hle);var w1e,yje,nN,bje=qn(fc,"SplineRoutingMode",349,ii,Aon,Yrn),qZt;G(351,24,{3:1,35:1,24:1,351:1},fle);var x1e,vje,wje,xje=qn(fc,"ValidifyStrategy",351,ii,Ron,Xrn),YZt;G(382,24,{3:1,35:1,24:1,382:1},dle);var X3,T1e,dL,Tje=qn(fc,"WrappingStrategy",382,ii,Lon,Krn),XZt;G(1362,1,No,fwt),x.pg=i(function(n){return y(n,36),KZt},"EBc"),x.If=i(function(n,o){m4n(this,y(n,36),o)},"FBc");var KZt,qDi=j(sT,"BFSNodeOrderCycleBreaker",1362);G(1360,1,No,hwt),x.pg=i(function(n){return y(n,36),JZt},"MBc"),x.If=i(function(n,o){h3n(this,y(n,36),o)},"NBc");var JZt,YDi=j(sT,"DFSNodeOrderCycleBreaker",1360);G(1361,1,xn,_At),x.Ad=i(function(n){dTn(this.a,this.c,this.b,y(n,17))},"PBc"),x.b=!1;var XDi=j(sT,"DFSNodeOrderCycleBreaker/lambda$0$Type",1361);G(1354,1,No,dwt),x.pg=i(function(n){return y(n,36),QZt},"VBc"),x.If=i(function(n,o){u3n(this,y(n,36),o)},"WBc");var QZt,KDi=j(sT,"DepthFirstCycleBreaker",1354);G(780,1,No,Z8e),x.pg=i(function(n){return y(n,36),ZZt},"bCc"),x.If=i(function(n,o){_En(this,y(n,36),o)},"cCc"),x.qg=i(function(n){return y(Wt(n,pK(this.e,n.c.length)),9)},"aCc");var ZZt,JDi=j(sT,"GreedyCycleBreaker",780);G(1357,780,No,ZSt),x.qg=i(function(n){var o,u,p,g,w,k,A,D,M;for(M=null,p=Ui,D=d.Math.max(this.b.a.c.length,y(oe(this.b,(Tt(),Pv)),15).a),o=D*y(oe(this.b,uj),15).a,g=new HB,u=Qe(oe(this.b,(Bt(),U6)))===Qe((fv(),B3)),A=new ye(n);A.a<A.c.c.length;)k=y(de(A),9),ea(k,Ea)&&(w=u?f6(g,k,o,D):c6(g,k,D),p>w&&(p=w,M=k));return M||y(Wt(n,pK(this.e,n.c.length)),9)},"eCc");var QDi=j(sT,"GreedyModelOrderCycleBreaker",1357);G(506,1,{},HB),x.a=0,x.b=0;var ZDi=j(sT,"GroupModelOrderCalculator",506);G(1355,1,No,cwt),x.pg=i(function(n){return y(n,36),eer},"nCc"),x.If=i(function(n,o){B3n(this,y(n,36),o)},"oCc");var eer,e9i=j(sT,"InteractiveCycleBreaker",1355);G(1356,1,No,lwt),x.pg=i(function(n){return y(n,36),ter},"tCc"),x.If=i(function(n,o){$3n(y(n,36),o)},"uCc");var ter,t9i=j(sT,"ModelOrderCycleBreaker",1356);G(781,1,No),x.pg=i(function(n){return y(n,36),rer},"ACc"),x.If=i(function(n,o){Akn(this,y(n,36),o)},"BCc"),x.rg=i(function(n,o){var u,p,g,w,k,A,D,M,F,z;for(k=0;k<this.d.b;k++){for(A=null,u=new HB,D=bo,z=y(Bc(this.d,k),22).Jc();z.Ob();)F=y(z.Pb(),9),w=Qe(oe(this.a,(Bt(),U6)))===Qe((fv(),B3)),A?(M=w?f6(u,F,o,n):c6(u,F,n),D<M&&(A=F,D=M)):(A=F,D=w?f6(u,F,o,n):c6(u,F,n));for(g=new nn(cn(Ra(A).a.Jc(),new B));Nn(g);)p=y(vn(g),17),y(Bc(this.d,k),22).Gc(p.d.i)&&Nt(this.c,p)}},"zCc");var rer,r9i=j(sT,"SCCModelOrderCycleBreaker",781);G(1359,781,No,QSt),x.rg=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;for(k=0;k<this.d.b;k++)if(!(y(Bc(this.d,k),22).gc()<=1)){for(D=null,A=null,z=Ui,F=bo,w=Qe(oe(this.a,(Bt(),U6)))===Qe((fv(),B3)),u=new HB,ie=y(Bc(this.d,k),22).Jc();ie.Ob();)ee=y(ie.Pb(),9),!D||!A?(D=ee,z=w?f6(u,ee,o,n):c6(u,ee,n),A=ee,F=z):(M=w?f6(u,ee,o,n):c6(u,ee,n),z>M&&(D=ee,z=M),F<M&&(A=ee,F=M));if(Qe(oe(D,$3))===Qe(oe(this.a,lGe)))for(g=new nn(cn(os(D).a.Jc(),new B));Nn(g);)p=y(vn(g),17),y(Bc(this.d,k),22).Gc(p.c.i)&&Nt(this.c,p);else if(Qe(oe(A,$3))===Qe(oe(this.a,cGe)))for(g=new nn(cn(Ra(A).a.Jc(),new B));Nn(g);)p=y(vn(g),17),y(Bc(this.d,k),22).Gc(p.c.i)&&Nt(this.c,p);else if(dg(new nn(cn(os(D).a.Jc(),new B)))>dg(new nn(cn(Ra(A).a.Jc(),new B))))for(g=new nn(cn(os(D).a.Jc(),new B));Nn(g);)p=y(vn(g),17),y(Bc(this.d,k),22).Gc(p.c.i)&&Nt(this.c,p);else for(g=new nn(cn(Ra(A).a.Jc(),new B));Nn(g);)p=y(vn(g),17),y(Bc(this.d,k),22).Gc(p.d.i)&&Nt(this.c,p)}},"DCc");var n9i=j(sT,"SCCNodeTypeCycleBreaker",1359);G(1358,781,No,JSt),x.rg=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;for(k=0;k<this.d.b;k++)if(!(y(Bc(this.d,k),22).gc()<=1)){for(D=null,A=null,z=Ui,F=bo,w=Qe(oe(this.a,(Bt(),U6)))===Qe((fv(),B3)),u=new HB,ie=y(Bc(this.d,k),22).Jc();ie.Ob();)ee=y(ie.Pb(),9),!D||!A?(D=ee,z=w?f6(u,ee,o,n):c6(u,ee,n),A=ee,F=z):(M=w?f6(u,ee,o,n):c6(u,ee,n),z>M&&(D=ee,z=M),F<M&&(A=ee,F=M));if(dg(new nn(cn(os(D).a.Jc(),new B)))>dg(new nn(cn(Ra(A).a.Jc(),new B))))for(g=new nn(cn(os(D).a.Jc(),new B));Nn(g);)p=y(vn(g),17),y(Bc(this.d,k),22).Gc(p.c.i)&&Nt(this.c,p);else for(g=new nn(cn(Ra(A).a.Jc(),new B));Nn(g);)p=y(vn(g),17),y(Bc(this.d,k),22).Gc(p.d.i)&&Nt(this.c,p)}},"FCc");var i9i=j(sT,"SCConnectivity",1358);G(1374,1,No,uwt),x.pg=i(function(n){return y(n,36),ner},"KCc"),x.If=i(function(n,o){OCn(this,y(n,36),o)},"MCc");var ner,a9i=j(X1,"BreadthFirstModelOrderLayerer",1374);G(1375,1,Di,mmt),x.Le=i(function(n,o){return vbn(y(n,9),y(o,9))},"OCc"),x.Fb=i(function(n){return this===n},"PCc"),x.Me=i(function(){return new Ci(this)},"QCc");var s9i=j(X1,"BreadthFirstModelOrderLayerer/lambda$0$Type",1375);G(1365,1,No,TEt),x.pg=i(function(n){return y(n,36),ier},"_Cc"),x.If=i(function(n,o){PEn(this,y(n,36),o)},"aDc");var ier,o9i=j(X1,"CoffmanGrahamLayerer",1365);G(1366,1,Di,VTt),x.Le=i(function(n,o){return Swn(this.a,y(n,9),y(o,9))},"cDc"),x.Fb=i(function(n){return this===n},"dDc"),x.Me=i(function(){return new Ci(this)},"eDc");var l9i=j(X1,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1366);G(1367,1,Di,WTt),x.Le=i(function(n,o){return jin(this.a,y(n,9),y(o,9))},"gDc"),x.Fb=i(function(n){return this===n},"hDc"),x.Me=i(function(){return new Ci(this)},"iDc");var c9i=j(X1,"CoffmanGrahamLayerer/lambda$1$Type",1367);G(1376,1,No,ywt),x.pg=i(function(n){return y(n,36),aer},"rDc"),x.If=i(function(n,o){TEn(this,y(n,36),o)},"tDc"),x.c=0,x.e=0;var aer,u9i=j(X1,"DepthFirstModelOrderLayerer",1376);G(1377,1,Di,nmt),x.Le=i(function(n,o){return wbn(y(n,9),y(o,9))},"vDc"),x.Fb=i(function(n){return this===n},"wDc"),x.Me=i(function(){return new Ci(this)},"xDc");var h9i=j(X1,"DepthFirstModelOrderLayerer/lambda$0$Type",1377);G(1368,1,No,imt),x.pg=i(function(n){return y(n,36),Ei(Ei(Ei(new us,(eo(),Yp),(ho(),V0e)),Zm,N3),jc,M3)},"BDc"),x.If=i(function(n,o){HCn(y(n,36),o)},"CDc");var f9i=j(X1,"InteractiveLayerer",1368);G(564,1,{564:1},i4t),x.a=0,x.c=0;var d9i=j(X1,"InteractiveLayerer/LayerSpan",564);G(1364,1,No,bwt),x.pg=i(function(n){return y(n,36),ser},"KDc"),x.If=i(function(n,o){wwn(this,y(n,36),o)},"LDc");var ser,p9i=j(X1,"LongestPathLayerer",1364);G(1373,1,No,vwt),x.pg=i(function(n){return y(n,36),oer},"SDc"),x.If=i(function(n,o){jwn(this,y(n,36),o)},"TDc");var oer,g9i=j(X1,"LongestPathSourceLayerer",1373);G(1371,1,No,mwt),x.pg=i(function(n){return y(n,36),Ei(Ei(Ei(new us,(eo(),Yp),(ho(),lE)),Zm,N3),jc,M3)},"bEc"),x.If=i(function(n,o){rEn(this,y(n,36),o)},"cEc"),x.a=0,x.b=0,x.d=0;var kje,Cje,m9i=j(X1,"MinWidthLayerer",1371);G(1372,1,Di,HTt),x.Le=i(function(n,o){return cfn(this,y(n,9),y(o,9))},"fEc"),x.Fb=i(function(n){return this===n},"gEc"),x.Me=i(function(){return new Ci(this)},"hEc");var y9i=j(X1,"MinWidthLayerer/MinOutgoingEdgesComparator",1372);G(1363,1,No,gwt),x.pg=i(function(n){return y(n,36),ler},"qEc"),x.If=i(function(n,o){v4n(this,y(n,36),o)},"rEc");var ler,b9i=j(X1,"NetworkSimplexLayerer",1363);G(1369,1,No,Z6t),x.pg=i(function(n){return y(n,36),Ei(Ei(Ei(new us,(eo(),Yp),(ho(),lE)),Zm,N3),jc,M3)},"EEc"),x.If=i(function(n,o){iCn(this,y(n,36),o)},"FEc"),x.d=0,x.f=0,x.g=0,x.i=0,x.s=0,x.t=0,x.u=0;var v9i=j(X1,"StretchWidthLayerer",1369);G(1370,1,Di,gmt),x.Le=i(function(n,o){return Gcn(y(n,9),y(o,9))},"IEc"),x.Fb=i(function(n){return this===n},"JEc"),x.Me=i(function(){return new Ci(this)},"KEc");var w9i=j(X1,"StretchWidthLayerer/1",1370);G(406,1,hOe),x.eg=i(function(n,o,u,p,g,w){},"ZEc"),x.tg=i(function(n,o,u){return jGt(this,n,o,u)},"XEc"),x.dg=i(function(){this.g=tt(d4,NVt,30,this.d,15,1),this.f=tt(d4,NVt,30,this.d,15,1)},"YEc"),x.fg=i(function(n,o){this.e[n]=tt(pi,Pi,30,o[n].length,15,1)},"$Ec"),x.gg=i(function(n,o,u){var p;p=u[n][o],p.p=o,this.e[n][o]=o},"_Ec"),x.hg=i(function(n,o,u,p){y(Wt(p[n][o].j,u),12).p=this.d++},"aFc"),x.b=0,x.c=0,x.d=0;var x9i=j(Bu,"AbstractBarycenterPortDistributor",406);G(1666,1,Di,qTt),x.Le=i(function(n,o){return mgn(this.a,y(n,12),y(o,12))},"cFc"),x.Fb=i(function(n){return this===n},"dFc"),x.Me=i(function(){return new Ci(this)},"eFc");var T9i=j(Bu,"AbstractBarycenterPortDistributor/lambda$0$Type",1666);G(817,1,aM,iRe),x.eg=i(function(n,o,u,p,g,w){},"pFc"),x.gg=i(function(n,o,u){},"rFc"),x.hg=i(function(n,o,u,p){},"sFc"),x.cg=i(function(){return!1},"nFc"),x.dg=i(function(){this.c=this.e.a,this.g=this.f.g},"oFc"),x.fg=i(function(n,o){o[n][0].c.p=n},"qFc"),x.ig=i(function(){return!1},"tFc"),x.ug=i(function(n,o,u,p){u?MPt(this,n):($Pt(this,n,p),azt(this,n,o)),n.c.length>1&&(Kt(Xt(oe(Zs((_r(0,n.c.length),y(n.c[0],9))),(Bt(),iL))))?u$t(n,this.d,y(this,660)):(Ir(),zs(n,this.d)),tMt(this.e,n))},"uFc"),x.jg=i(function(n,o,u,p){var g,w,k,A,D,M,F;for(o!=v8t(u,n.length)&&(w=n[o-(u?1:-1)],_Re(this.f,w,u?(sl(),Eu):(sl(),Mh))),g=n[o][0],F=!p||g.k==(Yr(),ks),M=Bp(n[o]),this.ug(M,F,!1,u),k=0,D=new ye(M);D.a<D.c.c.length;)A=y(de(D),9),n[o][k++]=A;return!1},"vFc"),x.kg=i(function(n,o){var u,p,g,w,k;for(k=v8t(o,n.length),w=Bp(n[k]),this.ug(w,!1,!0,o),u=0,g=new ye(w);g.a<g.c.c.length;)p=y(de(g),9),n[k][u++]=p;return!1},"wFc");var k9i=j(Bu,"BarycenterHeuristic",817);G(658,1,{658:1},KTt),x.Ib=i(function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},"yFc"),x.b=0,x.d=0,x.e=!1;var cer=j(Bu,"BarycenterHeuristic/BarycenterState",658);G(1845,1,Di,YTt),x.Le=i(function(n,o){return h1n(this.a,y(n,9),y(o,9))},"AFc"),x.Fb=i(function(n){return this===n},"BFc"),x.Me=i(function(){return new Ci(this)},"CFc");var C9i=j(Bu,"BarycenterHeuristic/lambda$0$Type",1845);G(816,1,aM,BDe),x.dg=i(function(){},"LFc"),x.eg=i(function(n,o,u,p,g,w){},"MFc"),x.hg=i(function(n,o,u,p){},"PFc"),x.fg=i(function(n,o){this.a[n]=tt(cer,{3:1,4:1,5:1,2082:1},658,o[n].length,0,1),this.b[n]=tt(uer,{3:1,4:1,5:1,2083:1},239,o[n].length,0,1)},"NFc"),x.gg=i(function(n,o,u){mOt(this,u[n][o],!0)},"OFc"),x.c=!1;var E9i=j(Bu,"ForsterConstraintResolver",816);G(239,1,{239:1},X7t,qjt),x.Ib=i(function(){var n,o;for(o=new Yb,o.a+="[",n=0;n<this.d.length;n++)Li(o,NOt(this.d[n])),Hg(this.g,this.d[0]).a!=null&&Li(Li((o.a+="<",o),SZr(Hg(this.g,this.d[0]).a)),">"),n<this.d.length-1&&(o.a+=Tu);return(o.a+="]",o).a},"UFc"),x.a=0,x.c=0,x.f=0;var uer=j(Bu,"ForsterConstraintResolver/ConstraintGroup",239);G(1840,1,xn,XTt),x.Ad=i(function(n){mOt(this.a,y(n,9),!1)},"WFc");var S9i=j(Bu,"ForsterConstraintResolver/lambda$0$Type",1840);G(218,1,{218:1,220:1},rzt),x.eg=i(function(n,o,u,p,g,w){},"_Fc"),x.fg=i(function(n,o){},"aGc"),x.dg=i(function(){this.r=tt(pi,Pi,30,this.n,15,1)},"$Fc"),x.gg=i(function(n,o,u){var p,g;g=u[n][o],p=g.e,p&&Nt(this.b,p)},"bGc"),x.hg=i(function(n,o,u,p){++this.n},"cGc"),x.Ib=i(function(){return ozt(this.e,new gs)},"dGc"),x.g=!1,x.i=!1,x.n=0,x.s=!1;var A9i=j(Bu,"GraphInfoHolder",218);G(1878,1,aM,kmt),x.eg=i(function(n,o,u,p,g,w){},"kGc"),x.fg=i(function(n,o){},"lGc"),x.hg=i(function(n,o,u,p){},"nGc"),x.tg=i(function(n,o,u){return u&&o>0?Xce(this.a,n[o-1],n[o]):!u&&o<n.length-1?Xce(this.a,n[o],n[o+1]):Uue(this.a,n[o],u?(zt(),on):(zt(),bn)),E2n(this,n,o,u)},"iGc"),x.dg=i(function(){this.d=tt(pi,Pi,30,this.c,15,1),this.a=new NF(this.d)},"jGc"),x.gg=i(function(n,o,u){var p;p=u[n][o],this.c+=p.j.c.length},"mGc"),x.c=0;var R9i=j(Bu,"GreedyPortDistributor",1878);G(1382,1,No,wwt),x.pg=i(function(n){return Edn(y(n,36))},"vGc"),x.If=i(function(n,o){B4n(y(n,36),o)},"wGc");var her,L9i=j(Bu,"InteractiveCrossingMinimizer",1382);G(1383,1,Di,QTt),x.Le=i(function(n,o){return Vmn(this,y(n,9),y(o,9))},"zGc"),x.Fb=i(function(n){return this===n},"AGc"),x.Me=i(function(){return new Ci(this)},"BGc");var _9i=j(Bu,"InteractiveCrossingMinimizer/1",1383);G(453,1,{453:1,95:1,43:1},VH),x.pg=i(function(n){var o;return y(n,36),o=Fq(fer),Ei(o,(eo(),jc),(ho(),jQ)),o},"$Gc"),x.If=i(function(n,o){VTn(this,y(n,36),o)},"_Gc"),x.e=0;var fer,D9i=j(Bu,"LayerSweepCrossingMinimizer",453);G(1379,1,xn,ZTt),x.Ad=i(function(n){Mkn(this.a,y(n,218))},"bHc");var I9i=j(Bu,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1379);G(1380,1,xn,ekt),x.Ad=i(function(n){pdn(this.a,y(n,218))},"dHc");var M9i=j(Bu,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1380);G(1381,1,xn,tkt),x.Ad=i(function(n){Sjt(this.a,y(n,218))},"fHc");var N9i=j(Bu,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1381);G(404,24,{3:1,35:1,24:1,404:1},wq);var kj,NZ,iN,OZ,der=qn(Bu,"LayerSweepCrossingMinimizer/CrossMinType",404,ii,Gln,Jrn),per;G(1378,1,yi,smt),x.Mb=i(function(n){return RLe(),y(n,25).a.c.length==0},"rHc");var O9i=j(Bu,"LayerSweepCrossingMinimizer/lambda$0$Type",1378);G(1842,1,aM,DRt),x.dg=i(function(){},"vHc"),x.eg=i(function(n,o,u,p,g,w){},"wHc"),x.hg=i(function(n,o,u,p){},"zHc"),x.fg=i(function(n,o){o[n][0].c.p=n,this.b[n]=tt(ger,{3:1,4:1,5:1,2008:1},659,o[n].length,0,1)},"xHc"),x.gg=i(function(n,o,u){var p;p=u[n][o],p.p=o,as(this.b[n],o,new amt)},"yHc");var P9i=j(Bu,"LayerSweepTypeDecider",1842);G(659,1,{659:1},amt),x.Ib=i(function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},"BHc"),x.a=0,x.b=0,x.c=0;var ger=j(Bu,"LayerSweepTypeDecider/NodeInfo",659);G(1843,1,tm,omt),x.Lb=i(function(n){return D9(new Kg(y(n,12).b))},"DHc"),x.Fb=i(function(n){return this===n},"EHc"),x.Mb=i(function(n){return D9(new Kg(y(n,12).b))},"FHc");var B9i=j(Bu,"LayerSweepTypeDecider/lambda$0$Type",1843);G(1844,1,tm,lmt),x.Lb=i(function(n){return D9(new Kg(y(n,12).b))},"HHc"),x.Fb=i(function(n){return this===n},"IHc"),x.Mb=i(function(n){return D9(new Kg(y(n,12).b))},"JHc");var F9i=j(Bu,"LayerSweepTypeDecider/lambda$1$Type",1844);G(1879,406,hOe,oCt),x.sg=i(function(n,o,u){var p,g,w,k,A,D,M,F,z;switch(M=this.g,u.g){case 1:{for(p=0,g=0,D=new ye(n.j);D.a<D.c.c.length;)k=y(de(D),12),k.e.c.length!=0&&(++p,k.j==(zt(),sn)&&++g);for(w=o+g,z=o+p,A=Wx(n,(sl(),Mh)).Jc();A.Ob();)k=y(A.Pb(),12),k.j==(zt(),sn)?(M[k.p]=w,--w):(M[k.p]=z,--z);return p}case 2:{for(F=0,A=Wx(n,(sl(),Eu)).Jc();A.Ob();)k=y(A.Pb(),12),++F,M[k.p]=o+F;return F}default:throw xe(new ZB)}},"LHc");var $9i=j(Bu,"LayerTotalPortDistributor",1879);G(1847,1,aM,eRt),x.dg=i(function(){},"PHc"),x.eg=i(function(n,o,u,p,g,w){},"QHc"),x.fg=i(function(n,o){},"RHc"),x.gg=i(function(n,o,u){},"SHc"),x.hg=i(function(n,o,u,p){},"THc"),x.cg=i(function(){return!1},"OHc"),x.ig=i(function(){return!0},"UHc"),x.jg=i(function(n,o,u,p){var g,w,k,A;for(g=Bp(n[o]),k4n(this,g,u?o-1:o+1),Ir(),zs(g,this.b),w=0,A=new ye(g);A.a<A.c.c.length;)k=y(de(A),9),n[o][w++]=k;return!1},"WHc"),x.kg=i(function(n,o){var u,p,g,w,k,A;for(u=o?0:d.Math.max(0,n.length-1),p=Bp(n[u]),A=new ye(p);A.a<A.c.c.length;)w=y(de(A),9),dt(w,(Tt(),vE),gce(this.a));for(Ir(),zs(p,this.b),g=0,k=new ye(p);k.a<k.c.c.length;)w=y(de(k),9),n[u][g++]=w,dt(w,(Tt(),vE),g);return!1},"XHc");var G9i=j(Bu,"MedianHeuristic",1847);G(1848,1,Di,cmt),x.Le=i(function(n,o){return yvn(y(n,9),y(o,9))},"ZHc"),x.Fb=i(function(n){return this===n},"$Hc"),x.Me=i(function(){return new Ci(this)},"_Hc");var j9i=j(Bu,"MedianHeuristic/lambda$0$Type",1848);G(660,817,{660:1,220:1},RIt),x.ug=i(function(n,o,u,p){u?MPt(this,n):($Pt(this,n,p),azt(this,n,o)),n.c.length>1&&(Kt(Xt(oe(Zs((_r(0,n.c.length),y(n.c[0],9))),(Bt(),iL))))?u$t(n,this.d,this):(Ir(),zs(n,this.d)),Kt(Xt(oe(Zs((_r(0,n.c.length),y(n.c[0],9))),iL)))||tMt(this.e,n))},"gIc");var z9i=j(Bu,"ModelOrderBarycenterHeuristic",660);G(1846,1,Di,rkt),x.Le=i(function(n,o){return e3n(this.a,y(n,9),y(o,9))},"iIc"),x.Fb=i(function(n){return this===n},"jIc"),x.Me=i(function(){return new Ci(this)},"kIc");var U9i=j(Bu,"ModelOrderBarycenterHeuristic/lambda$0$Type",1846);G(1384,1,No,kwt),x.pg=i(function(n){var o;return y(n,36),o=Fq(mer),Ei(o,(eo(),jc),(ho(),jQ)),o},"pIc"),x.If=i(function(n,o){wsn((y(n,36),o))},"qIc");var mer,V9i=j(Bu,"NoCrossingMinimizer",1384);G(797,406,hOe,u6e),x.sg=i(function(n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie;switch(z=this.g,u.g){case 1:{for(g=0,w=0,F=new ye(n.j);F.a<F.c.c.length;)D=y(de(F),12),D.e.c.length!=0&&(++g,D.j==(zt(),sn)&&++w);for(p=1/(g+1),k=o+w*p,ie=o+1-p,M=Wx(n,(sl(),Mh)).Jc();M.Ob();)D=y(M.Pb(),12),D.j==(zt(),sn)?(z[D.p]=k,k-=p):(z[D.p]=ie,ie-=p);break}case 2:{for(A=0,F=new ye(n.j);F.a<F.c.c.length;)D=y(de(F),12),D.g.c.length==0||++A;for(p=1/(A+1),ee=o+p,M=Wx(n,(sl(),Eu)).Jc();M.Ob();)D=y(M.Pb(),12),z[D.p]=ee,ee+=p;break}default:throw xe(new rn("Port type is undefined"))}return 1},"sIc");var W9i=j(Bu,"NodeRelativePortDistributor",797);G(809,1,{},U8t,mBt);var H9i=j(Bu,"SweepCopy",809);G(1841,1,aM,QNt),x.fg=i(function(n,o){},"DIc"),x.dg=i(function(){var n;n=tt(pi,Pi,30,this.f,15,1),this.d=new ukt(n),this.a=new NF(n)},"BIc"),x.eg=i(function(n,o,u,p,g,w){var k;k=y(Wt(w[n][o].j,u),12),g.c==k&&g.c.i.c==g.d.i.c&&++this.e[n]},"CIc"),x.gg=i(function(n,o,u){var p;p=u[n][o],this.c[n]=this.c[n]|p.k==(Yr(),iu)},"EIc"),x.hg=i(function(n,o,u,p){var g;g=y(Wt(p[n][o].j,u),12),g.p=this.f++,g.g.c.length+g.e.c.length>1&&(g.j==(zt(),bn)?this.b[n]=!0:g.j==on&&n>0&&(this.b[n-1]=!0))},"FIc"),x.f=0;var q9i=j(Jm,"AllCrossingsCounter",1841);G(584,1,{},DX),x.b=0,x.d=0;var Y9i=j(Jm,"BinaryIndexedTree",584);G(520,1,{},NF);var Eje,PZ,X9i=j(Jm,"CrossingsCounter",520);G(1915,1,Di,nkt),x.Le=i(function(n,o){return Min(this.a,y(n,12),y(o,12))},"rJc"),x.Fb=i(function(n){return this===n},"sJc"),x.Me=i(function(){return new Ci(this)},"tJc");var K9i=j(Jm,"CrossingsCounter/lambda$0$Type",1915);G(1916,1,Di,ikt),x.Le=i(function(n,o){return Nin(this.a,y(n,12),y(o,12))},"vJc"),x.Fb=i(function(n){return this===n},"wJc"),x.Me=i(function(){return new Ci(this)},"xJc");var J9i=j(Jm,"CrossingsCounter/lambda$1$Type",1916);G(1917,1,Di,akt),x.Le=i(function(n,o){return Oin(this.a,y(n,12),y(o,12))},"zJc"),x.Fb=i(function(n){return this===n},"AJc"),x.Me=i(function(){return new Ci(this)},"BJc");var Q9i=j(Jm,"CrossingsCounter/lambda$2$Type",1917);G(1918,1,Di,skt),x.Le=i(function(n,o){return Iin(this.a,y(n,12),y(o,12))},"DJc"),x.Fb=i(function(n){return this===n},"EJc"),x.Me=i(function(){return new Ci(this)},"FJc");var Z9i=j(Jm,"CrossingsCounter/lambda$3$Type",1918);G(1919,1,xn,okt),x.Ad=i(function(n){Eun(this.a,y(n,12))},"HJc");var eIi=j(Jm,"CrossingsCounter/lambda$4$Type",1919);G(1920,1,yi,lkt),x.Mb=i(function(n){return bZr(this.a,y(n,12))},"JJc");var tIi=j(Jm,"CrossingsCounter/lambda$5$Type",1920);G(1921,1,xn,ckt),x.Ad=i(function(n){WSt(this,n)},"MJc");var rIi=j(Jm,"CrossingsCounter/lambda$6$Type",1921);G(1922,1,xn,QEt),x.Ad=i(function(n){var o;a7(),ov(this.b,(o=this.a,y(n,12),o))},"OJc");var nIi=j(Jm,"CrossingsCounter/lambda$7$Type",1922);G(824,1,tm,VSe),x.Lb=i(function(n){return a7(),ea(y(n,12),(Tt(),Ih))},"QJc"),x.Fb=i(function(n){return this===n},"RJc"),x.Mb=i(function(n){return a7(),ea(y(n,12),(Tt(),Ih))},"SJc");var iIi=j(Jm,"CrossingsCounter/lambda$8$Type",824);G(1914,1,{},ukt);var aIi=j(Jm,"HyperedgeCrossingsCounter",1914);G(467,1,{35:1,467:1},eAt),x.Dd=i(function(n){return agn(this,y(n,467))},"XJc"),x.b=0,x.c=0,x.e=0,x.f=0;var ySn=j(Jm,"HyperedgeCrossingsCounter/Hyperedge",467);G(370,1,{35:1,370:1},DY),x.Dd=i(function(n){return Qvn(this,y(n,370))},"$Jc"),x.b=0,x.c=0;var yer=j(Jm,"HyperedgeCrossingsCounter/HyperedgeCorner",370);G(519,24,{3:1,35:1,24:1,519:1},V6e);var aN,sN,ber=qn(Jm,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",519,ii,Dsn,Qrn),ver;G(1386,1,No,Swt),x.pg=i(function(n){return y(oe(y(n,36),(Tt(),au)),22).Gc((ol(),Cd))?wer:null},"nKc"),x.If=i(function(n,o){Rmn(this,y(n,36),o)},"oKc");var wer,sIi=j(ul,"InteractiveNodePlacer",1386);G(1387,1,No,Awt),x.pg=i(function(n){return y(oe(y(n,36),(Tt(),au)),22).Gc((ol(),Cd))?xer:null},"DKc"),x.If=i(function(n,o){p0n(this,y(n,36),o)},"EKc");var xer,BZ,FZ,oIi=j(ul,"LinearSegmentsNodePlacer",1387);G(263,1,{35:1,263:1},z5e),x.Dd=i(function(n){return _Qr(this,y(n,263))},"JKc"),x.Fb=i(function(n){var o;return Ge(n,263)?(o=y(n,263),this.b==o.b):!1},"KKc"),x.Hb=i(function(){return this.b},"LKc"),x.Ib=i(function(){return"ls"+r0(this.e)},"MKc"),x.a=0,x.b=0,x.c=-1,x.d=-1,x.g=0;var Ter=j(ul,"LinearSegmentsNodePlacer/LinearSegment",263);G(1389,1,No,_8t),x.pg=i(function(n){return y(oe(y(n,36),(Tt(),au)),22).Gc((ol(),Cd))?ker:null},"iLc"),x.If=i(function(n,o){kEn(this,y(n,36),o)},"qLc"),x.b=0,x.g=0;var ker,lIi=j(ul,"NetworkSimplexPlacer",1389);G(1408,1,Di,hmt),x.Le=i(function(n,o){return Yc(y(n,15).a,y(o,15).a)},"sLc"),x.Fb=i(function(n){return this===n},"tLc"),x.Me=i(function(){return new Ci(this)},"uLc");var cIi=j(ul,"NetworkSimplexPlacer/0methodref$compare$Type",1408);G(1410,1,Di,fmt),x.Le=i(function(n,o){return Yc(y(n,15).a,y(o,15).a)},"wLc"),x.Fb=i(function(n){return this===n},"xLc"),x.Me=i(function(){return new Ci(this)},"yLc");var uIi=j(ul,"NetworkSimplexPlacer/1methodref$compare$Type",1410);G(645,1,{645:1},ZEt);var bSn=j(ul,"NetworkSimplexPlacer/EdgeRep",645);G(405,1,{405:1},D7e),x.b=!1;var vSn=j(ul,"NetworkSimplexPlacer/NodeRep",405);G(501,13,{3:1,4:1,20:1,31:1,56:1,13:1,18:1,16:1,59:1,501:1},o4t);var hIi=j(ul,"NetworkSimplexPlacer/Path",501);G(1390,1,{},dmt),x.Kb=i(function(n){return y(n,17).d.i.k},"GLc");var fIi=j(ul,"NetworkSimplexPlacer/Path/lambda$0$Type",1390);G(1391,1,yi,pmt),x.Mb=i(function(n){return y(n,249)==(Yr(),bs)},"ILc");var dIi=j(ul,"NetworkSimplexPlacer/Path/lambda$1$Type",1391);G(1392,1,{},bmt),x.Kb=i(function(n){return y(n,17).d.i},"KLc");var pIi=j(ul,"NetworkSimplexPlacer/Path/lambda$2$Type",1392);G(1393,1,yi,hkt),x.Mb=i(function(n){return F6t(F_e(y(n,9)))},"MLc");var gIi=j(ul,"NetworkSimplexPlacer/Path/lambda$3$Type",1393);G(1394,1,yi,ymt),x.Mb=i(function(n){return Tin(y(n,12))},"OLc");var mIi=j(ul,"NetworkSimplexPlacer/lambda$0$Type",1394);G(1395,1,xn,eSt),x.Ad=i(function(n){uen(this.a,this.b,y(n,12))},"QLc");var yIi=j(ul,"NetworkSimplexPlacer/lambda$1$Type",1395);G(1404,1,xn,fkt),x.Ad=i(function(n){$bn(this.a,y(n,17))},"SLc");var bIi=j(ul,"NetworkSimplexPlacer/lambda$10$Type",1404);G(1405,1,{},vmt),x.Kb=i(function(n){return Df(),new Er(null,new Rr(y(n,25).a,16))},"ULc");var vIi=j(ul,"NetworkSimplexPlacer/lambda$11$Type",1405);G(1406,1,xn,dkt),x.Ad=i(function(n){vxn(this.a,y(n,9))},"WLc");var wIi=j(ul,"NetworkSimplexPlacer/lambda$12$Type",1406);G(1407,1,{},wmt),x.Kb=i(function(n){return Df(),Et(y(n,124).e)},"YLc");var xIi=j(ul,"NetworkSimplexPlacer/lambda$13$Type",1407);G(1409,1,{},xmt),x.Kb=i(function(n){return Df(),Et(y(n,124).e)},"$Lc");var TIi=j(ul,"NetworkSimplexPlacer/lambda$15$Type",1409);G(1411,1,yi,Tmt),x.Mb=i(function(n){return Df(),y(n,405).c.k==(Yr(),Ya)},"aMc");var kIi=j(ul,"NetworkSimplexPlacer/lambda$17$Type",1411);G(1412,1,yi,Cmt),x.Mb=i(function(n){return Df(),y(n,405).c.j.c.length>1},"cMc");var CIi=j(ul,"NetworkSimplexPlacer/lambda$18$Type",1412);G(1413,1,xn,O7t),x.Ad=i(function(n){Apn(this.c,this.b,this.d,this.a,y(n,405))},"eMc"),x.c=0,x.d=0;var EIi=j(ul,"NetworkSimplexPlacer/lambda$19$Type",1413);G(1396,1,{},Emt),x.Kb=i(function(n){return Df(),new Er(null,new Rr(y(n,25).a,16))},"gMc");var SIi=j(ul,"NetworkSimplexPlacer/lambda$2$Type",1396);G(1414,1,xn,pkt),x.Ad=i(function(n){cen(this.a,y(n,12))},"iMc"),x.a=0;var AIi=j(ul,"NetworkSimplexPlacer/lambda$20$Type",1414);G(1415,1,{},Smt),x.Kb=i(function(n){return Df(),new Er(null,new Rr(y(n,25).a,16))},"kMc");var RIi=j(ul,"NetworkSimplexPlacer/lambda$21$Type",1415);G(1416,1,xn,gkt),x.Ad=i(function(n){xen(this.a,y(n,9))},"mMc");var LIi=j(ul,"NetworkSimplexPlacer/lambda$22$Type",1416);G(1417,1,yi,Amt),x.Mb=i(function(n){return F6t(n)},"pMc");var _Ii=j(ul,"NetworkSimplexPlacer/lambda$23$Type",1417);G(1418,1,{},Rmt),x.Kb=i(function(n){return Df(),new Er(null,new Rr(y(n,25).a,16))},"rMc");var DIi=j(ul,"NetworkSimplexPlacer/lambda$24$Type",1418);G(1419,1,yi,mkt),x.Mb=i(function(n){return AZr(this.a,y(n,9))},"tMc");var IIi=j(ul,"NetworkSimplexPlacer/lambda$25$Type",1419);G(1420,1,xn,tSt),x.Ad=i(function(n){zyn(this.a,this.b,y(n,9))},"vMc");var MIi=j(ul,"NetworkSimplexPlacer/lambda$26$Type",1420);G(1421,1,yi,Lmt),x.Mb=i(function(n){return Df(),!Mo(y(n,17))},"xMc");var NIi=j(ul,"NetworkSimplexPlacer/lambda$27$Type",1421);G(1422,1,yi,_mt),x.Mb=i(function(n){return Df(),!Mo(y(n,17))},"zMc");var OIi=j(ul,"NetworkSimplexPlacer/lambda$28$Type",1422);G(1423,1,{},ykt),x.Te=i(function(n,o){return len(this.a,y(n,25),y(o,25))},"BMc");var PIi=j(ul,"NetworkSimplexPlacer/lambda$29$Type",1423);G(1397,1,{},Dmt),x.Kb=i(function(n){return Df(),new Er(null,new jk(new nn(cn(Ra(y(n,9)).a.Jc(),new B))))},"DMc");var BIi=j(ul,"NetworkSimplexPlacer/lambda$3$Type",1397);G(1398,1,yi,Imt),x.Mb=i(function(n){return Df(),gln(y(n,17))},"FMc");var FIi=j(ul,"NetworkSimplexPlacer/lambda$4$Type",1398);G(1399,1,xn,bkt),x.Ad=i(function(n){Lkn(this.a,y(n,17))},"HMc");var $Ii=j(ul,"NetworkSimplexPlacer/lambda$5$Type",1399);G(1400,1,{},Mmt),x.Kb=i(function(n){return Df(),new Er(null,new Rr(y(n,25).a,16))},"JMc");var GIi=j(ul,"NetworkSimplexPlacer/lambda$6$Type",1400);G(1401,1,yi,Nmt),x.Mb=i(function(n){return Df(),y(n,9).k==(Yr(),Ya)},"LMc");var jIi=j(ul,"NetworkSimplexPlacer/lambda$7$Type",1401);G(1402,1,{},Omt),x.Kb=i(function(n){return Df(),new Er(null,new jk(new nn(cn(Y0(y(n,9)).a.Jc(),new B))))},"NMc");var zIi=j(ul,"NetworkSimplexPlacer/lambda$8$Type",1402);G(1403,1,yi,Pmt),x.Mb=i(function(n){return Df(),min(y(n,17))},"PMc");var UIi=j(ul,"NetworkSimplexPlacer/lambda$9$Type",1403);G(1385,1,No,Rwt),x.pg=i(function(n){return y(oe(y(n,36),(Tt(),au)),22).Gc((ol(),Cd))?Cer:null},"UMc"),x.If=i(function(n,o){o3n(y(n,36),o)},"VMc");var Cer,VIi=j(ul,"SimpleNodePlacer",1385);G(185,1,{185:1},WC),x.Ib=i(function(){var n;return n="",this.c==(W0(),kT)?n+=x6:this.c==ob&&(n+=w6),this.o==(Yg(),Nw)?n+=tpe:this.o==h0?n+="UP":n+="BALANCED",n},"cNc");var WIi=j(Rv,"BKAlignedLayout",185);G(510,24,{3:1,35:1,24:1,510:1},W6e);var ob,kT,Eer=qn(Rv,"BKAlignedLayout/HDirection",510,ii,Isn,Zrn),Ser;G(509,24,{3:1,35:1,24:1,509:1},H6e);var Nw,h0,Aer=qn(Rv,"BKAlignedLayout/VDirection",509,ii,Msn,enn),Rer;G(1667,1,{},rSt);var HIi=j(Rv,"BKAligner",1667);G(1670,1,{},TPt);var qIi=j(Rv,"BKCompactor",1670);G(653,1,{653:1},Bmt),x.a=0;var YIi=j(Rv,"BKCompactor/ClassEdge",653);G(456,1,{456:1},s4t),x.a=null,x.b=0;var XIi=j(Rv,"BKCompactor/ClassNode",456);G(1388,1,No,OSt),x.pg=i(function(n){return y(oe(y(n,36),(Tt(),au)),22).Gc((ol(),Cd))?Ler:null},"PNc"),x.If=i(function(n,o){GEn(this,y(n,36),o)},"QNc"),x.d=!1;var Ler,KIi=j(Rv,"BKNodePlacer",1388);G(1668,1,{},Fmt),x.d=0;var JIi=j(Rv,"NeighborhoodInformation",1668);G(1669,1,Di,vkt),x.Le=i(function(n,o){return jun(this,y(n,49),y(o,49))},"YNc"),x.Fb=i(function(n){return this===n},"ZNc"),x.Me=i(function(){return new Ci(this)},"$Nc");var QIi=j(Rv,"NeighborhoodInformation/NeighborComparator",1669);G(810,1,{});var ZIi=j(Rv,"ThresholdStrategy",810);G(1798,810,{},h4t),x.vg=i(function(n,o,u){return this.a.o==(Yg(),h0)?qa:Ys},"eOc"),x.wg=i(function(){},"fOc");var eMi=j(Rv,"ThresholdStrategy/NullThresholdStrategy",1798);G(577,1,{577:1},aSt),x.c=!1,x.d=!1;var tMi=j(Rv,"ThresholdStrategy/Postprocessable",577);G(1799,810,{},f4t),x.vg=i(function(n,o,u){var p,g,w;return g=o==u,p=this.a.a[u.p]==o,g||p?(w=n,this.a.c==(W0(),kT)?(g&&(w=nde(this,o,!0)),!isNaN(w)&&!isFinite(w)&&p&&(w=nde(this,u,!1))):(g&&(w=nde(this,o,!0)),!isNaN(w)&&!isFinite(w)&&p&&(w=nde(this,u,!1))),w):n},"lOc"),x.wg=i(function(){for(var n,o,u,p,g;this.d.b!=0;)g=y(vRt(this.d),577),p=njt(this,g),p.a&&(n=p.a,u=Kt(this.a.f[this.a.g[g.b.p].p]),!(!u&&!Mo(n)&&n.c.i.c==n.d.i.c)&&(o=a$t(this,g),o||f5t(this.e,g)));for(;this.e.a.c.length!=0;)a$t(this,y(e_e(this.e),577))},"mOc");var rMi=j(Rv,"ThresholdStrategy/SimpleThresholdStrategy",1799);G(636,1,{636:1,188:1,196:1},$mt),x.bg=i(function(){return rMt(this)},"sOc"),x.og=i(function(){return rMt(this)},"rOc");var k1e,nMi=j(ege,"EdgeRouterFactory",636);G(1446,1,No,Lwt),x.pg=i(function(n){return Kwn(y(n,36))},"GOc"),x.If=i(function(n,o){m3n(y(n,36),o)},"HOc");var _er,Der,Ier,Mer,Ner,Sje,Oer,Per,iMi=j(ege,"OrthogonalEdgeRouter",1446);G(1439,1,No,PSt),x.pg=i(function(n){return Bmn(y(n,36))},"XOc"),x.If=i(function(n,o){$Cn(this,y(n,36),o)},"YOc");var Ber,Fer,$er,Ger,Cj,jer,aMi=j(ege,"PolylineEdgeRouter",1439);G(1440,1,tm,Gmt),x.Lb=i(function(n){return DLe(y(n,9))},"_Oc"),x.Fb=i(function(n){return this===n},"aPc"),x.Mb=i(function(n){return DLe(y(n,9))},"bPc");var sMi=j(ege,"PolylineEdgeRouter/1",1440);G(1854,1,yi,jmt),x.Mb=i(function(n){return y(n,133).c==(pg(),Gv)},"hPc");var oMi=j(xg,"HyperEdgeCycleDetector/lambda$0$Type",1854);G(1855,1,{},zmt),x.Xe=i(function(n){return y(n,133).d},"jPc");var lMi=j(xg,"HyperEdgeCycleDetector/lambda$1$Type",1855);G(1856,1,yi,Umt),x.Mb=i(function(n){return y(n,133).c==(pg(),Gv)},"lPc");var cMi=j(xg,"HyperEdgeCycleDetector/lambda$2$Type",1856);G(1857,1,{},Vmt),x.Xe=i(function(n){return y(n,133).d},"nPc");var uMi=j(xg,"HyperEdgeCycleDetector/lambda$3$Type",1857);G(1858,1,{},Wmt),x.Xe=i(function(n){return y(n,133).d},"pPc");var hMi=j(xg,"HyperEdgeCycleDetector/lambda$4$Type",1858);G(1859,1,{},Hmt),x.Xe=i(function(n){return y(n,133).d},"rPc");var fMi=j(xg,"HyperEdgeCycleDetector/lambda$5$Type",1859);G(116,1,{35:1,116:1},k$),x.Dd=i(function(n){return DQr(this,y(n,116))},"EPc"),x.Fb=i(function(n){var o;return Ge(n,116)?(o=y(n,116),this.g==o.g):!1},"FPc"),x.Hb=i(function(){return this.g},"GPc"),x.Ib=i(function(){var n,o,u,p;for(n=new Lf("{"),p=new ye(this.n);p.a<p.c.c.length;)u=y(de(p),12),o=G$(u.i),o==null&&(o="n"+bAt(u.i)),n.a+=""+o,p.a<p.c.c.length&&(n.a+=",");return n.a+="}",n.a},"IPc"),x.a=0,x.b=0,x.c=NaN,x.d=0,x.g=0,x.i=0,x.o=0,x.s=NaN;var dMi=j(xg,"HyperEdgeSegment",116);G(133,1,{133:1},Q2),x.Ib=i(function(){return this.a+"->"+this.b+" ("+qen(this.c)+")"},"NPc"),x.d=0;var pMi=j(xg,"HyperEdgeSegmentDependency",133);G(516,24,{3:1,35:1,24:1,516:1},q6e);var Gv,K3,zer=qn(xg,"HyperEdgeSegmentDependency/DependencyType",516,ii,Nsn,tnn),Uer;G(1860,1,{},wkt);var gMi=j(xg,"HyperEdgeSegmentSplitter",1860);G(1861,1,{},sCt),x.a=0,x.b=0;var mMi=j(xg,"HyperEdgeSegmentSplitter/AreaRating",1861);G(340,1,{340:1},ice),x.a=0,x.b=0,x.c=0;var yMi=j(xg,"HyperEdgeSegmentSplitter/FreeArea",340);G(1862,1,Di,qmt),x.Le=i(function(n,o){return Ytn(y(n,116),y(o,116))},"mQc"),x.Fb=i(function(n){return this===n},"nQc"),x.Me=i(function(){return new Ci(this)},"oQc");var bMi=j(xg,"HyperEdgeSegmentSplitter/lambda$0$Type",1862);G(1863,1,xn,P7t),x.Ad=i(function(n){acn(this.a,this.d,this.c,this.b,y(n,116))},"qQc"),x.b=0;var vMi=j(xg,"HyperEdgeSegmentSplitter/lambda$1$Type",1863);G(1864,1,{},Ymt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,116).e,16))},"sQc");var wMi=j(xg,"HyperEdgeSegmentSplitter/lambda$2$Type",1864);G(1865,1,{},Xmt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,116).j,16))},"uQc");var xMi=j(xg,"HyperEdgeSegmentSplitter/lambda$3$Type",1865);G(1866,1,{},Kmt),x.We=i(function(n){return He(Xe(n))},"wQc");var TMi=j(xg,"HyperEdgeSegmentSplitter/lambda$4$Type",1866);G(654,1,{},Dce),x.a=0,x.b=0,x.c=0;var kMi=j(xg,"OrthogonalRoutingGenerator",654);G(1671,1,{},Jmt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,116).e,16))},"HQc");var CMi=j(xg,"OrthogonalRoutingGenerator/lambda$0$Type",1671);G(1672,1,{},Qmt),x.Kb=i(function(n){return new Er(null,new Rr(y(n,116).j,16))},"JQc");var EMi=j(xg,"OrthogonalRoutingGenerator/lambda$1$Type",1672);G(661,1,{});var SMi=j(tge,"BaseRoutingDirectionStrategy",661);G(1852,661,{},d4t),x.xg=i(function(n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(!(n.r&&!n.q))for(F=o+n.o*u,M=new ye(n.n);M.a<M.c.c.length;)for(D=y(de(M),12),z=Ql(Se(Ee(to,1),Dt,8,0,[D.i.n,D.n,D.a])).a,A=new ye(D.g);A.a<A.c.c.length;)k=y(de(A),17),Mo(k)||(ue=k.d,fe=Ql(Se(Ee(to,1),Dt,8,0,[ue.i.n,ue.n,ue.a])).a,d.Math.abs(z-fe)>rm&&(w=F,g=n,p=new Lt(z,w),_i(k.a,p),Zx(this,k,g,p,!1),ee=n.r,ee&&(ie=He(Xe(Bc(ee.e,0))),p=new Lt(ie,w),_i(k.a,p),Zx(this,k,g,p,!1),w=o+ee.o*u,g=ee,p=new Lt(ie,w),_i(k.a,p),Zx(this,k,g,p,!1)),p=new Lt(fe,w),_i(k.a,p),Zx(this,k,g,p,!1)))},"OQc"),x.yg=i(function(n){return n.i.n.a+n.n.a+n.a.a},"PQc"),x.zg=i(function(){return zt(),Fn},"QQc"),x.Ag=i(function(){return zt(),sn},"RQc");var AMi=j(tge,"NorthToSouthRoutingStrategy",1852);G(1853,661,{},p4t),x.xg=i(function(n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(!(n.r&&!n.q))for(F=o-n.o*u,M=new ye(n.n);M.a<M.c.c.length;)for(D=y(de(M),12),z=Ql(Se(Ee(to,1),Dt,8,0,[D.i.n,D.n,D.a])).a,A=new ye(D.g);A.a<A.c.c.length;)k=y(de(A),17),Mo(k)||(ue=k.d,fe=Ql(Se(Ee(to,1),Dt,8,0,[ue.i.n,ue.n,ue.a])).a,d.Math.abs(z-fe)>rm&&(w=F,g=n,p=new Lt(z,w),_i(k.a,p),Zx(this,k,g,p,!1),ee=n.r,ee&&(ie=He(Xe(Bc(ee.e,0))),p=new Lt(ie,w),_i(k.a,p),Zx(this,k,g,p,!1),w=o-ee.o*u,g=ee,p=new Lt(ie,w),_i(k.a,p),Zx(this,k,g,p,!1)),p=new Lt(fe,w),_i(k.a,p),Zx(this,k,g,p,!1)))},"TQc"),x.yg=i(function(n){return n.i.n.a+n.n.a+n.a.a},"UQc"),x.zg=i(function(){return zt(),sn},"VQc"),x.Ag=i(function(){return zt(),Fn},"WQc");var RMi=j(tge,"SouthToNorthRoutingStrategy",1853);G(1851,661,{},g4t),x.xg=i(function(n,o,u){var p,g,w,k,A,D,M,F,z,ee,ie,ue,fe;if(!(n.r&&!n.q))for(F=o+n.o*u,M=new ye(n.n);M.a<M.c.c.length;)for(D=y(de(M),12),z=Ql(Se(Ee(to,1),Dt,8,0,[D.i.n,D.n,D.a])).b,A=new ye(D.g);A.a<A.c.c.length;)k=y(de(A),17),Mo(k)||(ue=k.d,fe=Ql(Se(Ee(to,1),Dt,8,0,[ue.i.n,ue.n,ue.a])).b,d.Math.abs(z-fe)>rm&&(w=F,g=n,p=new Lt(w,z),_i(k.a,p),Zx(this,k,g,p,!0),ee=n.r,ee&&(ie=He(Xe(Bc(ee.e,0))),p=new Lt(w,ie),_i(k.a,p),Zx(this,k,g,p,!0),w=o+ee.o*u,g=ee,p=new Lt(w,ie),_i(k.a,p),Zx(this,k,g,p,!0)),p=new Lt(w,fe),_i(k.a,p),Zx(this,k,g,p,!0)))},"YQc"),x.yg=i(function(n){return n.i.n.b+n.n.b+n.a.b},"ZQc"),x.zg=i(function(){return zt(),bn},"$Qc"),x.Ag=i(function(){return zt(),on},"_Qc");var LMi=j(tge,"WestToEastRoutingStrategy",1851);G(813,1,{},OIe),x.Ib=i(function(){return r0(this.a)},"gRc"),x.b=0,x.c=!1,x.d=!1,x.f=0;var _Mi=j(S3,"NubSpline",813);G(410,1,{410:1},G$t,gRt);var DMi=j(S3,"NubSpline/PolarCP",410);G(1441,1,No,fPt),x.pg=i(function(n){return C1n(y(n,36))},"GRc"),x.If=i(function(n,o){aEn(this,y(n,36),o)},"HRc");var Ver,Wer,Her,qer,Yer,IMi=j(S3,"SplineEdgeRouter",1441);G(273,1,{273:1},nX),x.Ib=i(function(){return this.a+" ->("+this.c+") "+this.b},"LRc"),x.c=0;var MMi=j(S3,"SplineEdgeRouter/Dependency",273);G(454,24,{3:1,35:1,24:1,454:1},Y6e);var jv,CE,Xer=qn(S3,"SplineEdgeRouter/SideToProcess",454,ii,Osn,rnn),Ker;G(1442,1,yi,Zmt),x.Mb=i(function(n){return PI(),!y(n,132).o},"VRc");var NMi=j(S3,"SplineEdgeRouter/lambda$0$Type",1442);G(1443,1,{},e1t),x.Xe=i(function(n){return PI(),y(n,132).v+1},"XRc");var OMi=j(S3,"SplineEdgeRouter/lambda$1$Type",1443);G(1444,1,xn,nSt),x.Ad=i(function(n){bin(this.a,this.b,y(n,49))},"ZRc");var PMi=j(S3,"SplineEdgeRouter/lambda$2$Type",1444);G(1445,1,xn,iSt),x.Ad=i(function(n){vin(this.a,this.b,y(n,49))},"_Rc");var BMi=j(S3,"SplineEdgeRouter/lambda$3$Type",1445);G(132,1,{35:1,132:1},XBt,jIe),x.Dd=i(function(n){return IQr(this,y(n,132))},"hSc"),x.b=0,x.e=!1,x.f=0,x.g=0,x.j=!1,x.k=!1,x.n=0,x.o=!1,x.p=!1,x.q=!1,x.s=0,x.u=0,x.v=0,x.F=0;var FMi=j(S3,"SplineSegment",132);G(457,1,{457:1},t1t),x.a=0,x.b=!1,x.c=!1,x.d=!1,x.e=!1,x.f=0;var $Mi=j(S3,"SplineSegment/EdgeInformation",457);G(1168,1,{},r1t);var GMi=j(K1,AMe,1168);G(1169,1,Di,n1t),x.Le=i(function(n,o){return Qbn(y(n,120),y(o,120))},"uSc"),x.Fb=i(function(n){return this===n},"vSc"),x.Me=i(function(){return new Ci(this)},"wSc");var jMi=j(K1,WUt,1169);G(1167,1,{},ACt);var zMi=j(K1,"MrTree",1167);G(398,24,{3:1,35:1,24:1,398:1,188:1,196:1},xq),x.bg=i(function(){return bFt(this)},"LSc"),x.og=i(function(){return bFt(this)},"KSc");var $Z,oN,lN,cN,Aje=qn(K1,"TreeLayoutPhases",398,ii,zln,nnn),Jer;G(1083,214,iT,rAt),x.kf=i(function(n,o){var u,p,g,w,k,A,D,M;for(Kt(Xt(St(n,(uc(),Qje))))||YF((u=new WD((U2(),new qb(n))),u)),k=o.dh(ige),k.Tg("build tGraph",1),A=(D=new r$,wc(D,n),dt(D,(Ca(),hN),n),M=new jn,OTn(n,D,M),QTn(n,D,M),D),k.Ug(),k=o.dh(ige),k.Tg("Split graph",1),w=jTn(this.a,A),k.Ug(),g=new ye(w);g.a<g.c.c.length;)p=y(de(g),120),f1n(this.b,p,o.dh(.5999999940395355/w.c.length));k=o.dh(ige),k.Tg("Pack components",1),A=jEn(w),k.Ug(),k=o.dh(ige),k.Tg("Apply layout results",1),A4n(A),k.Ug()},"RSc");var UMi=j(K1,"TreeLayoutProvider",1083);G(1815,1,qm,a1t),x.Ic=i(function(n){Io(this,n)},"eTc"),x.Jc=i(function(){return Ir(),Y8(),WR},"fTc");var VMi=j(K1,"TreeUtil/1",1815);G(1816,1,qm,s1t),x.Ic=i(function(n){Io(this,n)},"hTc"),x.Jc=i(function(){return Ir(),Y8(),WR},"iTc");var WMi=j(K1,"TreeUtil/2",1816);G(1806,1,yi,o1t),x.Mb=i(function(n){return Kt(Xt(oe(y(n,40),(Ca(),zv))))},"kTc");var HMi=j(K1,"TreeUtil/lambda$0$Type",1806);G(1812,1,yi,xkt),x.Mb=i(function(n){return this.a.Gc(y(n,40))},"mTc");var qMi=j(K1,"TreeUtil/lambda$10$Type",1812);G(1813,1,{},Tkt),x.Kb=i(function(n){return Bln(this.a,y(n,40))},"oTc");var YMi=j(K1,"TreeUtil/lambda$11$Type",1813);G(1814,1,yi,sSt),x.Mb=i(function(n){return Mun(this.a,this.b,y(n,40))},"qTc");var XMi=j(K1,"TreeUtil/lambda$12$Type",1814);G(1807,1,yi,kkt),x.Mb=i(function(n){return ypn(this.a,y(n,65))},"sTc");var KMi=j(K1,"TreeUtil/lambda$3$Type",1807);G(1808,1,Di,i1t),x.Le=i(function(n,o){return qtn(y(n,65),y(o,65))},"uTc"),x.Fb=i(function(n){return this===n},"vTc"),x.Me=i(function(){return new Ci(this)},"wTc");var JMi=j(K1,"TreeUtil/lambda$4$Type",1808);G(1809,1,yi,Ckt),x.Mb=i(function(n){return bpn(this.a,y(n,65))},"yTc");var QMi=j(K1,"TreeUtil/lambda$7$Type",1809);G(1810,1,Di,l1t),x.Le=i(function(n,o){return Htn(y(n,65),y(o,65))},"ATc"),x.Fb=i(function(n){return this===n},"BTc"),x.Me=i(function(){return new Ci(this)},"CTc");var ZMi=j(K1,"TreeUtil/lambda$8$Type",1810);G(1811,1,{},c1t),x.Kb=i(function(n){return y(n,65).b},"ETc");var eNi=j(K1,"TreeUtil/lambda$9$Type",1811);G(494,150,{3:1,494:1,105:1,150:1}),x.g=0;var tNi=j(cM,"TGraphElement",494);G(65,494,{3:1,65:1,494:1,105:1,150:1},N7e),x.Ib=i(function(){return this.b&&this.c?ew(this.b)+"->"+ew(this.c):"e_"+Aa(this)},"GTc");var rNi=j(cM,"TEdge",65);G(120,150,{3:1,120:1,105:1,150:1},r$),x.Ib=i(function(){var n,o,u,p,g;for(g=null,p=ei(this.b,0);p.b!=p.d.c;)u=y(Qn(p),40),g+=(u.c==null||u.c.length==0?"n_"+u.g:"n_"+u.c)+`
|
|
`;for(o=ei(this.a,0);o.b!=o.d.c;)n=y(Qn(o),65),g+=(n.b&&n.c?ew(n.b)+"->"+ew(n.c):"e_"+Aa(n))+`
|
|
`;return g},"ITc");var wSn=j(cM,"TGraph",120);G(634,494,{3:1,494:1,634:1,105:1,150:1});var nNi=j(cM,"TShape",634);G(40,634,{3:1,494:1,40:1,634:1,105:1,150:1},ohe),x.Ib=i(function(){return ew(this)},"NTc");var GZ=j(cM,"TNode",40);G(236,1,qm,A1),x.Ic=i(function(n){Io(this,n)},"PTc"),x.Jc=i(function(){var n;return n=ei(this.a.d,0),new aC(n)},"QTc");var iNi=j(cM,"TNode/2",236);G(334,1,fo,aC),x.Nb=i(function(n){So(this,n)},"STc"),x.Pb=i(function(){return y(Qn(this.a),65).c},"UTc"),x.Ob=i(function(){return tF(this.a)},"TTc"),x.Qb=i(function(){Oue(this.a)},"VTc");var aNi=j(cM,"TNode/2/1",334);G(1896,1,ba,u1t),x.If=i(function(n,o){OEn(this,y(n,120),o)},"mUc");var sNi=j(nu,"CompactionProcessor",1896);G(1897,1,Di,Ekt),x.Le=i(function(n,o){return sfn(this.a,y(n,40),y(o,40))},"oUc"),x.Fb=i(function(n){return this===n},"pUc"),x.Me=i(function(){return new Ci(this)},"qUc");var oNi=j(nu,"CompactionProcessor/lambda$0$Type",1897);G(1898,1,yi,oSt),x.Mb=i(function(n){return Tsn(this.b,this.a,y(n,49))},"sUc"),x.a=0,x.b=0;var lNi=j(nu,"CompactionProcessor/lambda$1$Type",1898);G(1907,1,Di,h1t),x.Le=i(function(n,o){return gan(y(n,40),y(o,40))},"uUc"),x.Fb=i(function(n){return this===n},"vUc"),x.Me=i(function(){return new Ci(this)},"wUc");var cNi=j(nu,"CompactionProcessor/lambda$10$Type",1907);G(1908,1,Di,f1t),x.Le=i(function(n,o){return Fen(y(n,40),y(o,40))},"yUc"),x.Fb=i(function(n){return this===n},"zUc"),x.Me=i(function(){return new Ci(this)},"AUc");var uNi=j(nu,"CompactionProcessor/lambda$11$Type",1908);G(1909,1,Di,d1t),x.Le=i(function(n,o){return man(y(n,40),y(o,40))},"CUc"),x.Fb=i(function(n){return this===n},"DUc"),x.Me=i(function(){return new Ci(this)},"EUc");var hNi=j(nu,"CompactionProcessor/lambda$12$Type",1909);G(1899,1,yi,Skt),x.Mb=i(function(n){return ken(this.a,y(n,49))},"GUc"),x.a=0;var fNi=j(nu,"CompactionProcessor/lambda$2$Type",1899);G(Ev,1,yi,Akt),x.Mb=i(function(n){return Cen(this.a,y(n,49))},"IUc"),x.a=0;var dNi=j(nu,"CompactionProcessor/lambda$3$Type",Ev);G(1901,1,yi,p1t),x.Mb=i(function(n){return y(n,40).c.indexOf(FJ)==-1},"KUc");var pNi=j(nu,"CompactionProcessor/lambda$4$Type",1901);G(1902,1,{},Rkt),x.Kb=i(function(n){return dln(this.a,y(n,40))},"MUc"),x.a=0;var gNi=j(nu,"CompactionProcessor/lambda$5$Type",1902);G(1903,1,{},Lkt),x.Kb=i(function(n){return Cun(this.a,y(n,40))},"OUc"),x.a=0;var mNi=j(nu,"CompactionProcessor/lambda$6$Type",1903);G(1904,1,Di,_kt),x.Le=i(function(n,o){return Ocn(this.a,y(n,240),y(o,240))},"QUc"),x.Fb=i(function(n){return this===n},"RUc"),x.Me=i(function(){return new Ci(this)},"SUc");var yNi=j(nu,"CompactionProcessor/lambda$7$Type",1904);G(1905,1,Di,Dkt),x.Le=i(function(n,o){return Pcn(this.a,y(n,40),y(o,40))},"UUc"),x.Fb=i(function(n){return this===n},"VUc"),x.Me=i(function(){return new Ci(this)},"WUc");var bNi=j(nu,"CompactionProcessor/lambda$8$Type",1905);G(1906,1,Di,g1t),x.Le=i(function(n,o){return $en(y(n,40),y(o,40))},"YUc"),x.Fb=i(function(n){return this===n},"ZUc"),x.Me=i(function(){return new Ci(this)},"$Uc");var vNi=j(nu,"CompactionProcessor/lambda$9$Type",1906);G(1894,1,ba,m1t),x.If=i(function(n,o){_xn(y(n,120),o)},"bVc");var wNi=j(nu,"DirectionProcessor",1894);G(1886,1,ba,tAt),x.If=i(function(n,o){JTn(this,y(n,120),o)},"gVc");var xNi=j(nu,"FanProcessor",1886);G(1253,1,ba,y1t),x.If=i(function(n,o){sGt(y(n,120),o)},"lVc");var TNi=j(nu,"GraphBoundsProcessor",1253);G(1254,1,{},b1t),x.We=i(function(n){return y(n,40).e.a},"nVc");var kNi=j(nu,"GraphBoundsProcessor/lambda$0$Type",1254);G(1255,1,{},v1t),x.We=i(function(n){return y(n,40).e.b},"pVc");var CNi=j(nu,"GraphBoundsProcessor/lambda$1$Type",1255);G(1256,1,{},w1t),x.We=i(function(n){return sZr(y(n,40))},"rVc");var ENi=j(nu,"GraphBoundsProcessor/lambda$2$Type",1256);G(1257,1,{},x1t),x.We=i(function(n){return oZr(y(n,40))},"tVc");var SNi=j(nu,"GraphBoundsProcessor/lambda$3$Type",1257);G(264,24,{3:1,35:1,24:1,264:1,196:1},Tx),x.bg=i(function(){switch(this.g){case 0:return new L4t;case 1:return new tAt;case 2:return new R4t;case 3:return new S1t;case 4:return new k1t;case 8:return new T1t;case 5:return new m1t;case 6:return new R1t;case 7:return new u1t;case 9:return new y1t;case 10:return new L1t;default:throw xe(new rn(cpe+(this.f!=null?this.f:""+this.g)))}},"HVc");var Rje,Lje,_je,Dje,Ije,Mje,Nje,Oje,Pje,Bje,C1e,xSn=qn(nu,upe,264,ii,XIt,inn),Qer;G(1893,1,ba,T1t),x.If=i(function(n,o){MCn(y(n,120),o)},"OVc");var ANi=j(nu,"LevelCoordinatesProcessor",1893);G(1891,1,ba,k1t),x.If=i(function(n,o){ewn(this,y(n,120),o)},"SVc"),x.a=0;var RNi=j(nu,"LevelHeightProcessor",1891);G(1892,1,qm,C1t),x.Ic=i(function(n){Io(this,n)},"UVc"),x.Jc=i(function(){return Ir(),Y8(),WR},"VVc");var LNi=j(nu,"LevelHeightProcessor/1",1892);G(1887,1,ba,R4t),x.If=i(function(n,o){dxn(this,y(n,120),o)},"ZVc");var _Ni=j(nu,"LevelProcessor",1887);G(1888,1,yi,E1t),x.Mb=i(function(n){return Kt(Xt(oe(y(n,40),(Ca(),zv))))},"_Vc");var DNi=j(nu,"LevelProcessor/lambda$0$Type",1888);G(1889,1,ba,S1t),x.If=i(function(n,o){lbn(this,y(n,120),o)},"dWc"),x.a=0;var INi=j(nu,"NeighborsProcessor",1889);G(1890,1,qm,A1t),x.Ic=i(function(n){Io(this,n)},"fWc"),x.Jc=i(function(){return Ir(),Y8(),WR},"gWc");var MNi=j(nu,"NeighborsProcessor/1",1890);G(1895,1,ba,R1t),x.If=i(function(n,o){XTn(this,y(n,120),o)},"kWc"),x.a=0;var NNi=j(nu,"NodePositionProcessor",1895);G(1885,1,ba,L4t),x.If=i(function(n,o){N3n(this,y(n,120),o)},"nWc");var ONi=j(nu,"RootProcessor",1885);G(1910,1,ba,L1t),x.If=i(function(n,o){Kgn(y(n,120),o)},"qWc");var PNi=j(nu,"Untreeifyer",1910);G(385,24,{3:1,35:1,24:1,385:1},gle);var Ej,E1e,Fje,$je=qn(GG,"EdgeRoutingMode",385,ii,_on,ann),Zer,Sj,pL,S1e,Gje,jje,A1e,R1e,zje,L1e,Uje,_1e,uN,D1e,jZ,zZ,Kp,Eg,gL,hN,fN,lb,Vje,etr,I1e,zv,Aj,Rj;G(847,1,s0,_wt),x.tf=i(function(n){fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,pOe),""),jVt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(qr(),!1)),(dw(),Ms)),Ja),mr((K0(),Or))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,gOe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,mOe),""),"Tree Level"),"The index for the tree level the node is in"),Et(0)),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,yOe),""),jVt),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Et(-1)),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,bOe),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),qje),Oa),aze),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,vOe),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),Wje),Oa),$je),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,wOe),""),"Search Order"),"Which search order to use when computing a spanning tree."),Hje),Oa),oze),mr(Or)))),Dzt((new Dwt,n))},"mXc");var ttr,rtr,ntr,Wje,itr,atr,Hje,str,otr,qje,BNi=j(GG,"MrTreeMetaDataProvider",847);G(991,1,s0,Dwt),x.tf=i(function(n){Dzt(n)},"VXc");var ltr,Yje,Xje,CT,Kje,Jje,M1e,ctr,utr,htr,ftr,dtr,ptr,gtr,Qje,Zje,eze,mtr,EE,UZ,tze,ytr,rze,N1e,btr,vtr,wtr,nze,xtr,um,ize,FNi=j(GG,"MrTreeOptions",991);G(992,1,{},_1t),x.uf=i(function(){var n;return n=new rAt,n},"XXc"),x.vf=i(function(n){},"YXc");var $Ni=j(GG,"MrTreeOptions/MrtreeFactory",992);G(353,24,{3:1,35:1,24:1,353:1},Tq);var O1e,VZ,P1e,B1e,aze=qn(GG,"OrderWeighting",353,ii,Fln,snn),Ttr;G(425,24,{3:1,35:1,24:1,425:1},X6e);var sze,F1e,oze=qn(GG,"TreeifyingOrder",425,ii,Psn,onn),ktr;G(1447,1,No,xwt),x.pg=i(function(n){return y(n,120),Ctr},"xYc"),x.If=i(function(n,o){Fhn(this,y(n,120),o)},"yYc");var Ctr,GNi=j("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1447);G(1448,1,No,Twt),x.pg=i(function(n){return y(n,120),Etr},"FYc"),x.If=i(function(n,o){yxn(this,y(n,120),o)},"JYc");var Etr,jNi=j(LR,"NodeOrderer",1448);G(1455,1,{},B1t),x.rd=i(function(n){return a8t(n)},"MYc");var zNi=j(LR,"NodeOrderer/0methodref$lambda$6$Type",1455);G(1449,1,yi,F1t),x.Mb=i(function(n){return X5(),Kt(Xt(oe(y(n,40),(Ca(),zv))))},"OYc");var UNi=j(LR,"NodeOrderer/lambda$0$Type",1449);G(1450,1,yi,$1t),x.Mb=i(function(n){return X5(),y(oe(y(n,40),(uc(),EE)),15).a<0},"QYc");var VNi=j(LR,"NodeOrderer/lambda$1$Type",1450);G(1451,1,yi,Mkt),x.Mb=i(function(n){return khn(this.a,y(n,40))},"SYc");var WNi=j(LR,"NodeOrderer/lambda$2$Type",1451);G(1452,1,yi,Ikt),x.Mb=i(function(n){return pln(this.a,y(n,40))},"UYc");var HNi=j(LR,"NodeOrderer/lambda$3$Type",1452);G(1453,1,Di,G1t),x.Le=i(function(n,o){return zun(y(n,40),y(o,40))},"WYc"),x.Fb=i(function(n){return this===n},"XYc"),x.Me=i(function(){return new Ci(this)},"YYc");var qNi=j(LR,"NodeOrderer/lambda$4$Type",1453);G(1454,1,yi,j1t),x.Mb=i(function(n){return X5(),y(oe(y(n,40),(Ca(),R1e)),15).a!=0},"$Yc");var YNi=j(LR,"NodeOrderer/lambda$5$Type",1454);G(1456,1,No,Nwt),x.pg=i(function(n){return y(n,120),Str},"hZc"),x.If=i(function(n,o){CTn(this,y(n,120),o)},"iZc"),x.b=0;var Str,XNi=j("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1456);G(1457,1,No,Owt),x.pg=i(function(n){return y(n,120),Atr},"tZc"),x.If=i(function(n,o){iTn(y(n,120),o)},"HZc");var Atr,TSn=j(xf,"EdgeRouter",1457);G(1459,1,Di,I1t),x.Le=i(function(n,o){return Yc(y(n,15).a,y(o,15).a)},"JZc"),x.Fb=i(function(n){return this===n},"KZc"),x.Me=i(function(){return new Ci(this)},"LZc");var KNi=j(xf,"EdgeRouter/0methodref$compare$Type",1459);G(1464,1,{},M1t),x.We=i(function(n){return He(Xe(n))},"NZc");var JNi=j(xf,"EdgeRouter/1methodref$doubleValue$Type",1464);G(1466,1,Di,N1t),x.Le=i(function(n,o){return ha(He(Xe(n)),He(Xe(o)))},"PZc"),x.Fb=i(function(n){return this===n},"QZc"),x.Me=i(function(){return new Ci(this)},"RZc");var QNi=j(xf,"EdgeRouter/2methodref$compare$Type",1466);G(1468,1,Di,O1t),x.Le=i(function(n,o){return ha(He(Xe(n)),He(Xe(o)))},"TZc"),x.Fb=i(function(n){return this===n},"UZc"),x.Me=i(function(){return new Ci(this)},"VZc");var ZNi=j(xf,"EdgeRouter/3methodref$compare$Type",1468);G(1470,1,{},D1t),x.We=i(function(n){return He(Xe(n))},"XZc");var eOi=j(xf,"EdgeRouter/4methodref$doubleValue$Type",1470);G(1472,1,Di,P1t),x.Le=i(function(n,o){return ha(He(Xe(n)),He(Xe(o)))},"ZZc"),x.Fb=i(function(n){return this===n},"$Zc"),x.Me=i(function(){return new Ci(this)},"_Zc");var tOi=j(xf,"EdgeRouter/5methodref$compare$Type",1472);G(1474,1,Di,z1t),x.Le=i(function(n,o){return ha(He(Xe(n)),He(Xe(o)))},"b$c"),x.Fb=i(function(n){return this===n},"c$c"),x.Me=i(function(){return new Ci(this)},"d$c");var rOi=j(xf,"EdgeRouter/6methodref$compare$Type",1474);G(1458,1,{},U1t),x.Kb=i(function(n){return $1(),y(oe(y(n,40),(uc(),um)),15)},"f$c");var nOi=j(xf,"EdgeRouter/lambda$0$Type",1458);G(1469,1,{},V1t),x.Kb=i(function(n){return Ken(y(n,40))},"h$c");var iOi=j(xf,"EdgeRouter/lambda$11$Type",1469);G(1471,1,{},cSt),x.Kb=i(function(n){return xin(this.b,this.a,y(n,40))},"j$c"),x.a=0,x.b=0;var aOi=j(xf,"EdgeRouter/lambda$13$Type",1471);G(1473,1,{},lSt),x.Kb=i(function(n){return Jen(this.b,this.a,y(n,40))},"l$c"),x.a=0,x.b=0;var sOi=j(xf,"EdgeRouter/lambda$15$Type",1473);G(1475,1,Di,W1t),x.Le=i(function(n,o){return Rgn(y(n,65),y(o,65))},"n$c"),x.Fb=i(function(n){return this===n},"o$c"),x.Me=i(function(){return new Ci(this)},"p$c");var oOi=j(xf,"EdgeRouter/lambda$17$Type",1475);G(1476,1,Di,H1t),x.Le=i(function(n,o){return Lgn(y(n,65),y(o,65))},"r$c"),x.Fb=i(function(n){return this===n},"s$c"),x.Me=i(function(){return new Ci(this)},"t$c");var lOi=j(xf,"EdgeRouter/lambda$18$Type",1476);G(1477,1,Di,q1t),x.Le=i(function(n,o){return Dgn(y(n,65),y(o,65))},"v$c"),x.Fb=i(function(n){return this===n},"w$c"),x.Me=i(function(){return new Ci(this)},"x$c");var cOi=j(xf,"EdgeRouter/lambda$19$Type",1477);G(1460,1,yi,Nkt),x.Mb=i(function(n){return Ysn(this.a,y(n,40))},"z$c"),x.a=0;var uOi=j(xf,"EdgeRouter/lambda$2$Type",1460);G(1478,1,Di,Y1t),x.Le=i(function(n,o){return _gn(y(n,65),y(o,65))},"B$c"),x.Fb=i(function(n){return this===n},"C$c"),x.Me=i(function(){return new Ci(this)},"D$c");var hOi=j(xf,"EdgeRouter/lambda$20$Type",1478);G(1461,1,Di,X1t),x.Le=i(function(n,o){return lin(y(n,40),y(o,40))},"F$c"),x.Fb=i(function(n){return this===n},"G$c"),x.Me=i(function(){return new Ci(this)},"H$c");var fOi=j(xf,"EdgeRouter/lambda$3$Type",1461);G(1462,1,Di,K1t),x.Le=i(function(n,o){return oin(y(n,40),y(o,40))},"J$c"),x.Fb=i(function(n){return this===n},"K$c"),x.Me=i(function(){return new Ci(this)},"L$c");var dOi=j(xf,"EdgeRouter/lambda$4$Type",1462);G(1463,1,{},J1t),x.Kb=i(function(n){return Xen(y(n,40))},"N$c");var pOi=j(xf,"EdgeRouter/lambda$5$Type",1463);G(1465,1,{},uSt),x.Kb=i(function(n){return win(this.b,this.a,y(n,40))},"P$c"),x.a=0,x.b=0;var gOi=j(xf,"EdgeRouter/lambda$7$Type",1465);G(1467,1,{},hSt),x.Kb=i(function(n){return Qen(this.b,this.a,y(n,40))},"R$c"),x.a=0,x.b=0;var mOi=j(xf,"EdgeRouter/lambda$9$Type",1467);G(662,1,{662:1},tPt),x.e=0,x.f=!1,x.g=!1;var yOi=j(xf,"MultiLevelEdgeNodeNodeGap",662);G(1867,1,Di,Q1t),x.Le=i(function(n,o){return uon(y(n,240),y(o,240))},"X$c"),x.Fb=i(function(n){return this===n},"Y$c"),x.Me=i(function(){return new Ci(this)},"Z$c");var bOi=j(xf,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1867);G(1868,1,Di,Z1t),x.Le=i(function(n,o){return hon(y(n,240),y(o,240))},"_$c"),x.Fb=i(function(n){return this===n},"a_c"),x.Me=i(function(){return new Ci(this)},"b_c");var vOi=j(xf,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1868),SE;G(487,24,{3:1,35:1,24:1,487:1,188:1,196:1},K6e),x.bg=i(function(){return jNt(this)},"k_c"),x.og=i(function(){return jNt(this)},"j_c");var WZ,AE,lze=qn(xOe,"RadialLayoutPhases",487,ii,Bsn,lnn),Rtr;G(1084,214,iT,_Ct),x.kf=i(function(n,o){var u,p,g,w,k,A;if(u=O$t(this,n),o.Tg("Radial layout",u.c.length),Kt(Xt(St(n,(wv(),vze))))||YF((p=new WD((U2(),new qb(n))),p)),A=A1n(n),pa(n,(TC(),SE),A),!A)throw xe(new rn("The given graph is not a tree!"));for(g=He(Xe(St(n,YZ))),g==0&&(g=hFt(n)),pa(n,YZ,g),k=new ye(O$t(this,n));k.a<k.c.c.length;)w=y(de(k),43),w.If(n,o.dh(1));o.Ug()},"r_c");var wOi=j(xOe,"RadialLayoutProvider",1084);G(545,1,Di,QH),x.Le=i(function(n,o){return qxn(this.a,this.b,y(n,26),y(o,26))},"D_c"),x.Fb=i(function(n){return this===n},"E_c"),x.Me=i(function(){return new Ci(this)},"F_c"),x.a=0,x.b=0;var xOi=j(xOe,"RadialUtil/lambda$0$Type",545);G(1350,1,ba,eyt),x.If=i(function(n,o){BCn(y(n,26),o)},"I_c");var TOi=j(kOe,"CalculateGraphSize",1350);G(1351,1,ba,tyt),x.If=i(function(n,o){n3n(y(n,26))},"L_c");var kOi=j(kOe,"EdgeAngleCalculator",1351);G(364,24,{3:1,35:1,24:1,364:1,196:1},gF),x.bg=i(function(){switch(this.g){case 0:return new oyt;case 1:return new ryt;case 2:return new lyt;case 3:return new eyt;case 4:return new tyt;default:throw xe(new rn(cpe+(this.f!=null?this.f:""+this.g)))}},"T_c");var $1e,G1e,j1e,z1e,U1e,Ltr=qn(kOe,upe,364,ii,kcn,cnn),_tr;G(642,1,{}),x.e=1,x.g=0;var COi=j(age,"AbstractRadiusExtensionCompaction",642);G(1818,642,{},U6t),x.Bg=i(function(n){var o,u,p,g,w,k,A,D,M;for(this.c=y(St(n,(TC(),SE)),26),dJr(this,this.c),this.d=Vhe(y(St(n,(wv(),Lj)),304)),D=y(St(n,W1e),15),D&&Txt(this,D.a),A=Xe(St(n,(Ri(),ub))),u5e(this,(Ur(A),A)),M=p3(this.c),this.d&&this.d.Fg(M),cTn(this,M),k=new oc(Se(Ee(Ti,1),WVt,26,0,[this.c])),u=0;u<2;u++)for(o=0;o<M.c.length;o++)g=new oc(Se(Ee(Ti,1),WVt,26,0,[(_r(o,M.c.length),y(M.c[o],26))])),w=o<M.c.length-1?(_r(o+1,M.c.length),y(M.c[o+1],26)):(_r(0,M.c.length),y(M.c[0],26)),p=o==0?y(Wt(M,M.c.length-1),26):(_r(o-1,M.c.length),y(M.c[o-1],26)),sBt(this,(_r(o,M.c.length),y(M.c[o],26),k),p,w,g)},"h0c");var EOi=j(age,"AnnulusWedgeCompaction",1818);G(1348,1,ba,ryt),x.If=i(function(n,o){Bhn(y(n,26),o)},"k0c");var SOi=j(age,"GeneralCompactor",1348);G(1817,642,{},nyt),x.Bg=i(function(n){var o,u,p,g;u=y(St(n,(TC(),SE)),26),this.f=u,this.b=Vhe(y(St(n,(wv(),Lj)),304)),g=y(St(n,W1e),15),g&&Txt(this,g.a),p=Xe(St(n,(Ri(),ub))),u5e(this,(Ur(p),p)),o=p3(u),this.b&&this.b.Fg(o),GBt(this,o)},"p0c"),x.a=0;var AOi=j(age,"RadialCompaction",1817);G(1826,1,{},iyt),x.Cg=i(function(n){var o,u,p,g,w,k;for(this.a=n,o=0,k=p3(n),p=0,w=new ye(k);w.a<w.c.c.length;)for(g=y(de(w),26),++p,u=p;u<k.c.length;u++)Skn(this,g,(_r(u,k.c.length),y(k.c[u],26)))&&(o+=1);return o},"s0c");var ROi=j(COe,"CrossingMinimizationPosition",1826);G(1824,1,{},ayt),x.Cg=i(function(n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie;for(p=0,u=new nn(cn(xv(n).a.Jc(),new B));Nn(u);)o=y(vn(u),85),A=Pl(y(je((!o.c&&(o.c=new zr(Hn,o,5,8)),o.c),0),84)),M=A.i+A.g/2,F=A.j+A.f/2,g=n.i+n.g/2,w=n.j+n.f/2,z=new xo,z.a=M-g,z.b=F-w,k=new Lt(z.a,z.b),X7(k,n.g,n.f),z.a-=k.a,z.b-=k.b,g=M-z.a,w=F-z.b,D=new Lt(z.a,z.b),X7(D,A.g,A.f),z.a-=D.a,z.b-=D.b,M=g+z.a,F=w+z.b,ee=M-g,ie=F-w,p+=d.Math.sqrt(ee*ee+ie*ie);return p},"u0c");var LOi=j(COe,"EdgeLengthOptimization",1824);G(1825,1,{},syt),x.Cg=i(function(n){var o,u,p,g,w,k,A,D,M,F,z;for(p=0,u=new nn(cn(xv(n).a.Jc(),new B));Nn(u);)o=y(vn(u),85),A=Pl(y(je((!o.c&&(o.c=new zr(Hn,o,5,8)),o.c),0),84)),D=A.i+A.g/2,M=A.j+A.f/2,g=y(St(A,(Ri(),J6)),8),w=n.i+g.a+n.g/2,k=n.j+g.b+n.f,F=D-w,z=M-k,p+=d.Math.sqrt(F*F+z*z);return p},"w0c");var _Oi=j(COe,"EdgeLengthPositionOptimization",1825);G(1347,642,ba,oyt),x.If=i(function(n,o){Tbn(this,y(n,26),o)},"A0c");var DOi=j("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1347);G(1349,1,ba,lyt),x.If=i(function(n,o){tan(y(n,26),o)},"E0c");var IOi=j("org.eclipse.elk.alg.radial.intermediate.rotation","GeneralRotator",1349);G(426,24,{3:1,35:1,24:1,426:1},J6e);var cze,V1e,uze=qn(uM,"AnnulusWedgeCriteria",426,ii,Fsn,hnn),Dtr;G(386,24,{3:1,35:1,24:1,386:1},mle);var HZ,hze,fze,dze=qn(uM,HVt,386,ii,Don,unn),Itr;G(848,1,s0,Cwt),x.tf=i(function(n){fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,EOe),""),"Center On Root"),"Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."),(qr(),!1)),(dw(),Ms)),Ja),mr((K0(),Or))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,SOe),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),Et(0)),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,AOe),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,jJ),""),"Rotate"),"The rotate option determines whether a rotation of the layout should be performed."),!1),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,oge),""),qVt),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),pze),Oa),dze),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,lge),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),Et(1)),jo),Ls),mr(Or)))),Ga(n,lge,oge,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ROe),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),mze),Oa),Dze),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,LOe),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),yze),Oa),uze),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,_Oe),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),gze),Oa),Rze),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,cge),IOe),"Target Angle"),"The angle in radians that the layout should be rotated to after layout."),0),Ao),Ts),mr(Or)))),Ga(n,cge,jJ,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,uge),IOe),"Additional Wedge Space"),"If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."),!1),Ms),Ja),mr(Or)))),Ga(n,uge,jJ,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,DOe),IOe),"Outgoing Edge Angles"),"Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."),!1),Ms),Ja),mr(Or)))),Czt((new Ewt,n))},"o1c");var Mtr,Ntr,Otr,pze,Ptr,gze,Btr,Ftr,$tr,Gtr,jtr,ztr,Utr,mze,Vtr,yze,MOi=j(uM,"RadialMetaDataProvider",848);G(993,1,s0,Ewt),x.tf=i(function(n){Czt(n)},"M1c");var bze,W1e,H1e,Wtr,Htr,qtr,Ytr,vze,wze,qZ,Xtr,Ktr,YZ,xze,Tze,kze,q1e,Lj,Jtr,Cze,NOi=j(uM,"RadialOptions",993);G(994,1,{},cyt),x.uf=i(function(){var n;return n=new _Ct,n},"O1c"),x.vf=i(function(n){},"P1c");var OOi=j(uM,"RadialOptions/RadialFactory",994);G(354,24,{3:1,35:1,24:1,354:1},kq);var Eze,Sze,Aze,Y1e,Rze=qn(uM,"RadialTranslationStrategy",354,ii,$ln,fnn),Qtr;G(304,24,{3:1,35:1,24:1,304:1},yle);var Lze,X1e,_ze,Dze=qn(uM,"SortingStrategy",304,ii,Pon,dnn),Ztr;G(1437,1,No,uyt),x.pg=i(function(n){return y(n,26),null},"n2c"),x.If=i(function(n,o){zbn(this,y(n,26),o)},"o2c"),x.c=0;var POi=j("org.eclipse.elk.alg.radial.p1position","EadesRadial",1437);G(1822,1,{},hyt),x.Dg=i(function(n){return BOt(n)},"q2c");var BOi=j(YVt,"AnnulusWedgeByLeafs",1822);G(1823,1,{},fyt),x.Dg=i(function(n){return QPt(this,n)},"t2c");var FOi=j(YVt,"AnnulusWedgeByNodeSpace",1823);G(1438,1,No,dyt),x.pg=i(function(n){return y(n,26),null},"x2c"),x.If=i(function(n,o){lpn(this,y(n,26),o)},"y2c");var $Oi=j("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1438);G(812,1,{},X5e),x.Eg=i(function(n){},"B2c"),x.Fg=i(function(n){z3t(this,n)},"D2c");var GOi=j(MOe,"IDSorter",812);G(1821,1,Di,pyt),x.Le=i(function(n,o){return Phn(y(n,26),y(o,26))},"F2c"),x.Fb=i(function(n){return this===n},"G2c"),x.Me=i(function(){return new Ci(this)},"H2c");var jOi=j(MOe,"IDSorter/lambda$0$Type",1821);G(1820,1,{},PIt),x.Eg=i(function(n){DLt(this,n)},"L2c"),x.Fg=i(function(n){var o;n.dc()||(this.e||(o=T8t(y(n.Xb(0),26)),DLt(this,o)),z3t(this.e,n))},"M2c");var zOi=j(MOe,"PolarCoordinateSorter",1820);G(436,24,{3:1,35:1,24:1,436:1},ble);var dN,XZ,K1e,Ize=qn(QVt,"RectPackingLayoutPhases",436,ii,Oon,pnn),err;G(1088,214,iT,DCt),x.kf=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr,Mr;if(o.Tg("Rectangle Packing",1),z=y(St(n,(n0(),mN)),104),D=Kt(Xt(St(n,krr))),F=He(Xe(St(n,yN))),Pr=Kt(Xt(St(n,Hze))),Ve=(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a),Kt(Xt(St(n,iye)))||YF((g=new WD((U2(),new qb(n))),g)),gr=!1,Pr&&Ve.i>=3)for(st=y(je(Ve,0),26),Ht=y(je(Ve,1),26),w=0;w+2<Ve.i;)if(ht=st,st=Ht,Ht=y(je(Ve,w+2),26),ht.f>=st.f+Ht.f+F||Ht.f>=ht.f+st.f+F){gr=!0;break}else++w;else gr=!0;if(!gr){for(ee=Ve.i,A=new Sn(Ve);A.e!=A.i.gc();)k=y(_n(A),26),pa(k,(Ri(),jj),Et(ee)),--ee;fjt(n,new g5),o.Ug();return}for(u=(UF(this.a),fg(this.a,(iK(),dN),y(St(n,Kze),188)),fg(this.a,XZ,y(St(n,Vze),188)),fg(this.a,K1e,y(St(n,qze),188)),hAe(this.a,(Mr=new us,Ei(Mr,dN,(AK(),Z1e)),Ei(Mr,XZ,Q1e),Kt(Xt(St(n,zze)))&&Ei(Mr,dN,eye),Kt(Xt(St(n,jze)))&&Ei(Mr,dN,J1e),Mr)),cG(this.a,n)),M=1/u.c.length,yr=0,ue=new ye(u);ue.a<ue.c.c.length;){if(ie=y(de(ue),43),o.Zg())return;ie.If(n,o.dh(M)),++yr}for(Ce=0,fe=0,$e=new Sn(Ve);$e.e!=$e.i.gc();)Me=y(_n($e),26),Ce=d.Math.max(Ce,Me.i+Me.g),fe=d.Math.max(fe,Me.j+Me.f);u9e(n,new Lt(He(Xe(St(n,(Wm(),H6)))),He(Xe(St(n,mL)))),new Lt(Ce,fe)),hfn(Ve,z),D||eT(n,He(Xe(St(n,H6)))+(z.b+z.c),He(Xe(St(n,mL)))+(z.d+z.a),!1,!0),Kt(Xt(St(n,iye)))||YF((p=new WD((U2(),new qb(n))),p)),o.Ug()},"Y2c");var UOi=j(QVt,"RectPackingLayoutProvider",1088);G(1480,1,ba,gyt),x.If=i(function(n,o){i3n(y(n,26),o)},"a3c");var VOi=j(hM,"InteractiveNodeReorderer",1480);G(1481,1,Di,myt),x.Le=i(function(n,o){return Jfn(y(n,26),y(o,26))},"c3c"),x.Fb=i(function(n){return this===n},"d3c"),x.Me=i(function(){return new Ci(this)},"e3c");var WOi=j(hM,"InteractiveNodeReorderer/lambda$0$Type",1481);G(401,24,{3:1,35:1,24:1,401:1,196:1},Cq),x.bg=i(function(){switch(this.g){case 0:return new wyt;case 1:return new gyt;case 2:return new byt;case 3:return new yyt}return null},"l3c");var J1e,Q1e,Z1e,eye,trr=qn(hM,upe,401,ii,jln,gnn),rrr;G(1483,1,ba,yyt),x.If=i(function(n,o){Hpn(y(n,26),o)},"s3c");var HOi=j(hM,"MinSizePostProcessor",1483);G(1482,1,ba,byt),x.If=i(function(n,o){j2n(y(n,26),o)},"v3c");var qOi=j(hM,"MinSizePreProcessor",1482);G(1674,1,Di,vyt),x.Le=i(function(n,o){return FZr(y(n,26),y(o,26))},"y3c"),x.Fb=i(function(n){return this===n},"z3c"),x.Me=i(function(){return new Ci(this)},"A3c");var YOi=j(hM,"NodeSizeComparator",1674);G(1479,1,ba,wyt),x.If=i(function(n,o){yln(y(n,26))},"D3c");var XOi=j(hM,"NodeSizeReorderer",1479),pN,mL,H6,nrr,irr,KZ,tye,rye,gN,JZ,J3;G(387,24,{3:1,35:1,24:1,387:1},vle);var Mze,Nze,nye,Oze=qn(hge,"OptimizationGoal",387,ii,Ion,mnn),arr;G(850,1,s0,Mwt),x.tf=i(function(n){fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,NOe),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(qr(),!1)),(dw(),Ms)),Ja),mr((K0(),Or))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,OOe),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),Et(-1)),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,POe),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),Et(-1)),jo),Ls),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,BOe),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),Ms),Ja),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,FOe),""),"Order nodes by height"),"If set to true the nodes will be sorted by their height before computing the layout. The largest node will be in the first position."),!1),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,$Oe),fge),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),$ze),Oa),Zze),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,GOe),fge),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,jOe),fge),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),Fze),Oa),Oze),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,zOe),fge),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,UOe),"packing"),ZVt),"Strategy for finding an initial placement on nodes."),Pze),Oa),rUe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,VOe),eWt),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,WOe),eWt),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),Et(1)),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,HOe),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),Bze),Oa),aUe),mr(Or)))),Gzt((new Iwt,n))},"q4c");var srr,orr,lrr,crr,urr,hrr,frr,Pze,drr,prr,Bze,grr,mrr,Fze,yrr,$ze,brr,KOi=j(hge,"RectPackingMetaDataProvider",850);G(999,1,s0,Iwt),x.tf=i(function(n){Gzt(n)},"V4c");var QZ,vrr,Gze,_j,jze,wrr,Dj,xrr,Trr,krr,Crr,Err,iye,zze,Uze,aye,Vze,mN,Wze,Srr,yN,Hze,qze,Yze,Xze,Kze,sye,JOi=j(hge,"RectPackingOptions",999);G(Qy,1,{},xyt),x.uf=i(function(){var n;return n=new DCt,n},"X4c"),x.vf=i(function(n){},"Y4c");var QOi=j(hge,"RectPackingOptions/RectpackingFactory",Qy);G(1673,1,{},NAt),x.a=0,x.c=!1;var ZOi=j(_R,"AreaApproximation",1673),Jze=za(_R,"BestCandidateFilter");G(664,1,{524:1},Qse),x.Gg=i(function(n,o,u){var p,g,w,k,A,D;for(D=new Pt,w=qa,A=new ye(n);A.a<A.c.c.length;)k=y(de(A),238),w=d.Math.min(w,(k.c+(u.b+u.c))*(k.b+(u.d+u.a)));for(g=new ye(n);g.a<g.c.c.length;)p=y(de(g),238),(p.c+(u.b+u.c))*(p.b+(u.d+u.a))==w&&tn(D.c,p);return D},"d5c");var ePi=j(_R,"AreaFilter",664);G(665,1,{524:1},Zse),x.Gg=i(function(n,o,u){var p,g,w,k,A,D;for(A=new Pt,D=qa,k=new ye(n);k.a<k.c.c.length;)w=y(de(k),238),D=d.Math.min(D,d.Math.abs((w.c+(u.b+u.c))/(w.b+(u.d+u.a))-o));for(g=new ye(n);g.a<g.c.c.length;)p=y(de(g),238),d.Math.abs((p.c+(u.b+u.c))/(p.b+(u.d+u.a))-o)==D&&tn(A.c,p);return A},"f5c");var tPi=j(_R,"AspectRatioFilter",665);G(1430,1,No,Tyt),x.pg=i(function(n){return y(n,26),null},"k5c"),x.If=i(function(n,o){qwn(y(n,26),o)},"l5c");var rPi=j(_R,"GreedyWidthApproximator",1430);G(663,1,{524:1},eoe),x.Gg=i(function(n,o,u){var p,g,w,k,A,D;for(D=new Pt,w=Ys,A=new ye(n);A.a<A.c.c.length;)k=y(de(A),238),w=d.Math.max(w,dY(k.c+(u.b+u.c),k.b+(u.d+u.a),k.a));for(g=new ye(n);g.a<g.c.c.length;)p=y(de(g),238),dY(p.c+(u.b+u.c),p.b+(u.d+u.a),p.a)==w&&tn(D.c,p);return D},"n5c");var nPi=j(_R,"ScaleMeasureFilter",663);G(1431,1,No,kyt),x.pg=i(function(n){return y(n,26),null},"q5c"),x.If=i(function(n,o){Ubn(y(n,26),o)},"r5c");var iPi=j(_R,"TargetWidthWidthApproximator",1431);G(478,24,{3:1,35:1,24:1,478:1,188:1,196:1},Q6e),x.bg=i(function(){return oBt(this)},"y5c"),x.og=i(function(){return oBt(this)},"x5c");var oye,Qze,Zze=qn(_R,"WidthApproximationStrategy",478,ii,$sn,ynn),Arr;G(1432,1,No,Cyt),x.pg=i(function(n){return y(n,26),null},"N5c"),x.If=i(function(n,o){qCn(this,y(n,26),o)},"O5c");var aPi=j(zJ,"Compactor",1432);G(1434,1,No,Eyt),x.pg=i(function(n){return y(n,26),null},"T5c"),x.If=i(function(n,o){Awn(y(n,26),o)},"U5c");var sPi=j(zJ,"NoPlacement",1434);G(429,24,{3:1,35:1,24:1,429:1,188:1,196:1},wle),x.bg=i(function(){return gNt(this)},"a6c"),x.og=i(function(){return gNt(this)},"_5c");var lye,eUe,tUe,rUe=qn(zJ,"PackingStrategy",429,ii,Fon,bnn),Rrr;G(798,1,{},tAe),x.a=0,x.b=0,x.c=0,x.d=qa,x.e=0,x.f=qa;var oPi=j(zJ,"RowFillingAndCompaction",798);G(1433,1,No,Syt),x.pg=i(function(n){return y(n,26),null},"k6c"),x.If=i(function(n,o){u4n(y(n,26),o)},"l6c");var lPi=j(zJ,"SimplePlacement",1433);G(1435,1,No,Ayt),x.pg=i(function(n){return y(n,26),null},"o6c"),x.If=i(function(n,o){this.Hg(y(n,26),o)},"p6c"),x.Hg=i(function(n,o){n$t(n,o)},"q6c");var cPi=j(qOe,"EqualWhitespaceEliminator",1435);G(1436,1435,No,Ryt),x.Hg=i(function(n,o){var u,p,g,w,k;o.Tg("To Aspect Ratio Whitesapce Eliminator",1),k=He(Xe(St(n,(Wm(),H6)))),w=He(Xe(St(n,mL))),g=He(Xe(St(n,(n0(),QZ)))),u=He(Xe(St(n,pN))),p=k/w,p<g?(k=w*g,pa(n,H6,k)):(u+=k/g-w,pa(n,pN,u),pa(n,mL,w+u)),n$t(n,o),o.Ug()},"t6c");var uPi=j(qOe,"ToAspectratioNodeExpander",1436);G(430,24,{3:1,35:1,24:1,430:1,188:1,196:1},xle),x.bg=i(function(){return uMt(this)},"B6c"),x.og=i(function(){return uMt(this)},"A6c");var nUe,cye,iUe,aUe=qn(qOe,"WhiteSpaceEliminationStrategy",430,ii,Bon,vnn),Lrr;G(173,1,{173:1},lhe),x.a=0,x.c=!1,x.d=0,x.e=0,x.f=0,x.g=0,x.i=0,x.k=!1,x.o=qa,x.p=qa,x.r=0,x.s=0,x.t=0;var hPi=j(jG,"Block",173);G(208,1,{208:1},zY),x.a=0,x.b=0,x.d=0,x.e=0,x.f=0;var fPi=j(jG,"BlockRow",208);G(320,1,{320:1},z7e),x.b=0,x.c=0,x.d=0,x.e=0,x.f=0;var dPi=j(jG,"BlockStack",320);G(238,1,{238:1},U8e,V_e),x.a=0,x.b=0,x.c=0,x.d=0,x.e=0,x.g=0;var kSn=j(jG,"DrawingData",238);G(369,24,{3:1,35:1,24:1,369:1},mF);var q6,RE,bN,vN,Ij,_rr=qn(jG,"DrawingDataDescriptor",369,ii,Ccn,Enn),Drr;G(186,1,{186:1},eRe),x.b=0,x.c=0,x.e=0,x.f=0;var pPi=j(jG,"RectRow",186);G(750,1,{},s_e),x.j=0;var gPi=j(A3,sVt,750);G(1175,1,{},Lyt),x.$e=i(function(n){return cv(n.a,n.b)},"N7c");var mPi=j(A3,RMe,1175);G(1176,1,{},Okt),x.$e=i(function(n){return Bcn(this.a,n)},"P7c");var yPi=j(A3,oVt,1176);G(1177,1,{},Pkt),x.$e=i(function(n){return Pgn(this.a,n)},"R7c");var bPi=j(A3,lVt,1177);G(1178,1,{},Bkt),x.$e=i(function(n){return Nfn(this.a,n)},"T7c");var vPi=j(A3,"ElkGraphImporter/lambda$3$Type",1178);G(1179,1,{},Fkt),x.$e=i(function(n){return avn(this.a,n)},"V7c");var wPi=j(A3,cVt,1179);G(1085,214,iT,RCt),x.kf=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie;for(gg(n,(H$(),nee))&&(ie=di(St(n,(Xhe(),SUe))),w=pIe(rI(),ie),w&&(k=y(qF(w.f),214),k.kf(n,o.dh(1)))),pa(n,mye,(n$(),ree)),pa(n,yye,(q$(),gye)),pa(n,bye,(T$(),iee)),A=y(St(n,(Xhe(),kUe)),15).a,o.Tg("Overlap removal",1),Kt(Xt(St(n,Jrr))),D=new gs,M=new $kt(D),p=new s_e,u=$zt(p,n),F=!0,g=0;g<A&&F;){if(Kt(Xt(St(n,CUe)))){if(D.a.$b(),sbn(new L5t(M),u.i),D.a.gc()==0)break;u.e=D}for(UF(this.b),fg(this.b,(I$(),ZZ),(o9(),Mj)),fg(this.b,eee,u.g),fg(this.b,tee,(aq(),fye)),this.a=cG(this.b,u),ee=new ye(this.a);ee.a<ee.c.c.length;)z=y(de(ee),43),z.If(u,o.dh(1));_mn(p,u),F=Kt(Xt(oe(u,(_7(),EBe)))),++g}Qjt(p,u),o.Ug()},"Y7c");var xPi=j(A3,"OverlapRemovalLayoutProvider",1085);G(1086,1,{},$kt);var TPi=j(A3,"OverlapRemovalLayoutProvider/lambda$0$Type",1086);G(435,24,{3:1,35:1,24:1,435:1},Tle);var ZZ,eee,tee,uye=qn(A3,"SPOrEPhases",435,ii,$on,xnn),Irr;G(1185,1,{},LCt);var kPi=j(A3,"ShrinkTree",1185);G(1087,214,iT,I4t),x.kf=i(function(n,o){var u,p,g,w,k;gg(n,(H$(),nee))&&(k=di(St(n,nee)),g=pIe(rI(),k),g&&(w=y(qF(g.f),214),w.kf(n,o.dh(1)))),p=new s_e,u=$zt(p,n),_2n(this.a,u,o.dh(1)),Qjt(p,u)},"l8c");var CPi=j(A3,"ShrinkTreeLayoutProvider",1087);G(311,150,{3:1,311:1,105:1,150:1},TRt),x.c=!1;var EPi=j("org.eclipse.elk.alg.spore.graph","Graph",311);G(477,24,{3:1,35:1,24:1,477:1,188:1,196:1},kEt),x.bg=i(function(){return FMt(this)},"s8c"),x.og=i(function(){return FMt(this)},"r8c");var hye,sUe=qn(R3,HVt,477,ii,qan,Tnn),Mrr;G(547,24,{3:1,35:1,24:1,547:1,188:1,196:1},E6t),x.bg=i(function(){return new WSe},"B8c"),x.og=i(function(){return new WSe},"A8c");var fye,Nrr=qn(R3,"OverlapRemovalStrategy",547,ii,Han,wnn),Orr;G(428,24,{3:1,35:1,24:1,428:1},Z6e);var ree,dye,oUe=qn(R3,"RootSelection",428,ii,Gsn,knn),Prr;G(330,24,{3:1,35:1,24:1,330:1},yF);var lUe,pye,gye,cUe,uUe,hUe=qn(R3,"SpanningTreeCostFunction",330,ii,Ecn,Cnn),Brr;G(997,1,s0,Pwt),x.tf=i(function(n){Ijt(n)},"m9c");var fUe,dUe,Frr,$rr,pUe,gUe,mye,yye,bye,Grr,jrr,nee,SPi=j(R3,"SporeCompactionOptions",997);G(998,1,{},_yt),x.uf=i(function(){var n;return n=new I4t,n},"o9c"),x.vf=i(function(n){},"p9c");var APi=j(R3,"SporeCompactionOptions/SporeCompactionFactory",998);G(849,1,s0,Bwt),x.tf=i(function(n){fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,dge),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(dw(),X6)),Zt),mr((K0(),Or))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,mge),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),xUe),Oa),AUe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,YOe),yge),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),vUe),Oa),LUe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,XOe),yge),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),bUe),Oa),hUe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,pge),yge),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),X6),Zt),mr(Or)))),Ga(n,pge,gge,qrr),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,gge),yge),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),yUe),Oa),oUe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,KOe),CNe),ZVt),"This option defines how the compaction is applied."),mUe),Oa),sUe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,JOe),CNe),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(qr(),!1)),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,QOe),rWt),"Upper limit for iterations of overlap removal"),null),Et(64)),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ZOe),rWt),"Whether to run a supplementary scanline overlap check."),null),!0),Ms),Ja),mr(Or)))),OGt((new Fwt,n)),Ijt((new Pwt,n))},"I9c");var zrr,mUe,Urr,Vrr,Wrr,Hrr,qrr,Yrr,yUe,Xrr,bUe,Krr,vUe,wUe,xUe,TUe,RPi=j(R3,"SporeMetaDataProvider",849);G(995,1,s0,Fwt),x.tf=i(function(n){OGt(n)},"S9c");var Jrr,kUe,CUe,EUe,Qrr,SUe,LPi=j(R3,"SporeOverlapRemovalOptions",995);G(996,1,{},Dyt),x.uf=i(function(){var n;return n=new RCt,n},"U9c"),x.vf=i(function(n){},"V9c");var _Pi=j(R3,"SporeOverlapRemovalOptions/SporeOverlapFactory",996);G(528,24,{3:1,35:1,24:1,528:1,188:1,196:1},w7t),x.bg=i(function(){return $Mt(this)},"_9c"),x.og=i(function(){return $Mt(this)},"$9c");var Mj,AUe=qn(R3,"StructureExtractionStrategy",528,ii,Wan,Snn),Zrr;G(427,24,{3:1,35:1,24:1,427:1,188:1,196:1},eAe),x.bg=i(function(){return zNt(this)},"kad"),x.og=i(function(){return zNt(this)},"jad");var RUe,iee,LUe=qn(R3,"TreeConstructionStrategy",427,ii,Usn,Ann),enr;G(1424,1,No,Iyt),x.pg=i(function(n){return y(n,311),new us},"rad"),x.If=i(function(n,o){Mmn(y(n,311),o)},"sad");var DPi=j(nWt,"DelaunayTriangulationPhase",1424);G(1425,1,xn,Gkt),x.Ad=i(function(n){Nt(this.a,y(n,68).a)},"uad");var IPi=j(nWt,"DelaunayTriangulationPhase/lambda$0$Type",1425);G(782,1,No,Y5e),x.pg=i(function(n){return y(n,311),new us},"zad"),x.If=i(function(n,o){this.Ig(y(n,311),o)},"Aad"),x.Ig=i(function(n,o){var u,p,g;o.Tg("Minimum spanning tree construction",1),n.d?p=n.d.a:p=y(Wt(n.i,0),68).a,Kt(Xt(oe(n,(_7(),_M))))?g=lde(n.e,p,(u=n.b,u)):g=lde(n.e,p,n.b),yMt(this,g,n),o.Ug()},"Bad");var MPi=j(bge,"MinSTPhase",782);G(1427,782,No,m4t),x.Ig=i(function(n,o){var u,p,g,w;o.Tg("Maximum spanning tree construction",1),u=new jkt(n),n.d?g=n.d.c:g=y(Wt(n.i,0),68).c,Kt(Xt(oe(n,(_7(),_M))))?w=lde(n.e,g,(p=u,p)):w=lde(n.e,g,u),yMt(this,w,n),o.Ug()},"Ead");var NPi=j(bge,"MaxSTPhase",1427);G(1428,1,{},jkt),x.$e=i(function(n){return xZr(this.a,n)},"Gad");var OPi=j(bge,"MaxSTPhase/lambda$0$Type",1428);G(1426,1,xn,zkt),x.Ad=i(function(n){hen(this.a,y(n,68))},"Iad");var PPi=j(bge,"MinSTPhase/lambda$0$Type",1426);G(784,1,No,WSe),x.pg=i(function(n){return y(n,311),new us},"Pad"),x.If=i(function(n,o){W1n(this,y(n,311),o)},"Qad"),x.a=!1;var BPi=j(vge,"GrowTreePhase",784);G(785,1,xn,C8e),x.Ad=i(function(n){xfn(this.a,this.b,this.c,y(n,225))},"Sad");var FPi=j(vge,"GrowTreePhase/lambda$0$Type",785);G(1429,1,No,Myt),x.pg=i(function(n){return y(n,311),new us},"Xad"),x.If=i(function(n,o){s0n(this,y(n,311),o)},"Yad");var $Pi=j(vge,"ShrinkTreeCompactionPhase",1429);G(783,1,xn,E8e),x.Ad=i(function(n){Svn(this.a,this.b,this.c,y(n,225))},"$ad");var GPi=j(vge,"ShrinkTreeCompactionPhase/lambda$0$Type",783),_Ue=za(xc,"IGraphElementVisitor");G(854,1,{525:1},cLt),x.Jg=i(function(n){var o;o=Oxn(this,n),wc(o,y(Jr(this.b,n),105)),A2n(this,n,o)},"kbd");var tnr,rnr,nnr,jPi=j(JC,"LayoutConfigurator",854),CSn=za(JC,"LayoutConfigurator/IPropertyHolderOptionFilter");G(929,1,{1997:1},Nyt),x.Kg=i(function(n,o){return ECt(n,o)},"nbd");var zPi=j(JC,"LayoutConfigurator/lambda$0$Type",929);G(927,1,{830:1},Oyt),x.Lg=i(function(n,o){return Z5(),!n.nf(o)},"pbd");var UPi=j(JC,"LayoutConfigurator/lambda$1$Type",927);G(928,1,{1997:1},Pyt),x.Kg=i(function(n,o){return Z5(),!n.nf(o)},"rbd");var VPi=j(JC,"LayoutConfigurator/lambda$2$Type",928);G(930,1,yi,fSt),x.Mb=i(function(n){return zan(this.a,this.b,y(n,1997))},"tbd");var WPi=j(JC,"LayoutConfigurator/lambda$3$Type",930);G(852,1,{},Byt);var HPi=j(JC,"RecursiveGraphLayoutEngine",852);G(224,63,H1,q3t,_y);var qPi=j(JC,"UnsupportedConfigurationException",224);G(366,63,H1,b5);var YPi=j(JC,"UnsupportedGraphException",366);G(749,1,{});var XPi=j(xc,"AbstractRandomListAccessor",749);G(441,749,{},OI),x.Mg=i(function(){return null},"Tbd"),x.d=!0,x.e=!0,x.f=0;var KPi=j(IR,"AlgorithmAssembler",441);G(1170,1,yi,Fyt),x.Mb=i(function(n){return!!y(n,95)},"Vbd");var JPi=j(IR,"AlgorithmAssembler/lambda$0$Type",1170);G(1171,1,{},Ukt),x.Kb=i(function(n){return OQr(this.a,y(n,95))},"Xbd");var QPi=j(IR,"AlgorithmAssembler/lambda$1$Type",1171);G(1172,1,yi,$yt),x.Mb=i(function(n){return!!y(n,74)},"Zbd");var ZPi=j(IR,"AlgorithmAssembler/lambda$2$Type",1172);G(1173,1,xn,Vkt),x.Ad=i(function(n){Pf(this.a,y(n,74))},"_bd");var eBi=j(IR,"AlgorithmAssembler/lambda$3$Type",1173);G(1174,1,xn,dSt),x.Ad=i(function(n){ttn(this.a,this.b,y(n,196))},"bcd");var tBi=j(IR,"AlgorithmAssembler/lambda$4$Type",1174);G(1300,1,Di,Gyt),x.Le=i(function(n,o){return psn(y(n,196),y(o,196))},"ecd"),x.Fb=i(function(n){return this===n},"fcd"),x.Me=i(function(){return new Ci(this)},"gcd");var rBi=j(IR,"EnumBasedFactoryComparator",1300);G(74,749,{74:1},us),x.Mg=i(function(){return new gs},"rcd"),x.a=0;var nBi=j(IR,"LayoutProcessorConfiguration",74);G(1008,1,{525:1},$wt),x.Jg=i(function(n){v$(anr,new Wkt(n))},"Acd");var inr,anr,snr,iBi=j(ec,"DeprecatedLayoutOptionReplacer",1008);G(1009,1,xn,jyt),x.Ad=i(function(n){vun(y(n,174))},"Ccd");var aBi=j(ec,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1009);G(1010,1,xn,zyt),x.Ad=i(function(n){jpn(y(n,174))},"Ecd");var sBi=j(ec,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1010);G(1011,1,{},Wkt),x.Wd=i(function(n,o){itn(this.a,y(n,147),y(o,41))},"Gcd");var oBi=j(ec,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1011);G(144,1,{690:1,144:1},Xx),x.Fb=i(function(n){return mRe(this,n)},"Lcd"),x.Ng=i(function(){return this.b},"Mcd"),x.Og=i(function(){return this.c},"Ncd"),x.ve=i(function(){return this.e},"Ocd"),x.Hb=i(function(){return Vy(this.c)},"Pcd"),x.Ib=i(function(){return"Layout Algorithm: "+this.c},"Qcd");var ESn=j(ec,"LayoutAlgorithmData",144);G(289,1,{},yx);var lBi=j(ec,"LayoutAlgorithmData/Builder",289);G(707,1,{525:1},Uyt),x.Jg=i(function(n){o_t(n)},"bdd");var cBi=j(ec,"LayoutAlgorithmResolver",707);G(233,1,{690:1,233:1},z5),x.Fb=i(function(n){return Ge(n,233)?Cr(this.b,y(n,233).b):!1},"ddd"),x.Ng=i(function(){return this.a},"edd"),x.Og=i(function(){return this.b},"fdd"),x.ve=i(function(){return this.d},"gdd"),x.Hb=i(function(){return Vy(this.b)},"hdd"),x.Ib=i(function(){return"Layout Type: "+this.b},"idd");var uBi=j(ec,"LayoutCategoryData",233);G(357,1,{},c5);var hBi=j(ec,"LayoutCategoryData/Builder",357);G(861,1,{},kGt);var vye,fBi=j(ec,"LayoutMetaDataService",861);G(862,1,{},d7t);var dBi=j(ec,"LayoutMetaDataService/Registry",862);G(475,1,{475:1},HSe);var pBi=j(ec,"LayoutMetaDataService/Registry/Triple",475);G(863,1,tE,Vyt),x.Pg=i(function(){return new xo},"Gdd");var gBi=j(ec,"LayoutMetaDataService/lambda$0$Type",863);G(864,1,L3,Wyt),x.Qg=i(function(n){return Wo(y(n,8))},"Idd");var mBi=j(ec,"LayoutMetaDataService/lambda$1$Type",864);G(873,1,tE,Hyt),x.Pg=i(function(){return new Pt},"Kdd");var yBi=j(ec,"LayoutMetaDataService/lambda$10$Type",873);G(874,1,L3,qyt),x.Qg=i(function(n){return new Ah(y(n,13))},"Mdd");var bBi=j(ec,"LayoutMetaDataService/lambda$11$Type",874);G(875,1,tE,Yyt),x.Pg=i(function(){return new ya},"Odd");var vBi=j(ec,"LayoutMetaDataService/lambda$12$Type",875);G(876,1,L3,Xyt),x.Qg=i(function(n){return BF(y(n,66))},"Qdd");var wBi=j(ec,"LayoutMetaDataService/lambda$13$Type",876);G(877,1,tE,Kyt),x.Pg=i(function(){return new gs},"Sdd");var xBi=j(ec,"LayoutMetaDataService/lambda$14$Type",877);G(878,1,L3,Jyt),x.Qg=i(function(n){return Vce(y(n,48))},"Udd");var TBi=j(ec,"LayoutMetaDataService/lambda$15$Type",878);G(879,1,tE,Qyt),x.Pg=i(function(){return new Om},"Wdd");var kBi=j(ec,"LayoutMetaDataService/lambda$16$Type",879);G(880,1,L3,Zyt),x.Qg=i(function(n){return JY(y(n,48))},"Ydd");var CBi=j(ec,"LayoutMetaDataService/lambda$17$Type",880);G(881,1,tE,ebt),x.Pg=i(function(){return new koe},"$dd");var EBi=j(ec,"LayoutMetaDataService/lambda$18$Type",881);G(882,1,L3,tbt),x.Qg=i(function(n){return jAt(y(n,141))},"aed");var SBi=j(ec,"LayoutMetaDataService/lambda$19$Type",882);G(865,1,tE,rbt),x.Pg=i(function(){return new Vh},"ced");var ABi=j(ec,"LayoutMetaDataService/lambda$2$Type",865);G(866,1,L3,nbt),x.Qg=i(function(n){return new KH(y(n,79))},"eed");var RBi=j(ec,"LayoutMetaDataService/lambda$3$Type",866);G(867,1,tE,ibt),x.Pg=i(function(){return new KD},"ged");var LBi=j(ec,"LayoutMetaDataService/lambda$4$Type",867);G(868,1,L3,abt),x.Qg=i(function(n){return new nce(y(n,140))},"ied");var _Bi=j(ec,"LayoutMetaDataService/lambda$5$Type",868);G(869,1,tE,sbt),x.Pg=i(function(){return new p5},"ked");var DBi=j(ec,"LayoutMetaDataService/lambda$6$Type",869);G(870,1,L3,obt),x.Qg=i(function(n){return new v8e(y(n,104))},"med");var IBi=j(ec,"LayoutMetaDataService/lambda$7$Type",870);G(871,1,tE,lbt),x.Pg=i(function(){return new toe},"oed");var MBi=j(ec,"LayoutMetaDataService/lambda$8$Type",871);G(872,1,L3,cbt),x.Qg=i(function(n){return new g9t(y(n,379))},"qed");var NBi=j(ec,"LayoutMetaDataService/lambda$9$Type",872),wye=za(SG,"IProperty");G(21,1,{35:1,690:1,21:1,147:1},ir),x.Dd=i(function(n){return Ten(this,y(n,147))},"yed"),x.Fb=i(function(n){return Ge(n,21)?Cr(this.f,y(n,21).f):Ge(n,147)&&Cr(this.f,y(n,147).Og())},"zed"),x.Rg=i(function(){var n;if(Ge(this.b,4)){if(n=W_e(this.b),n==null)throw xe(new El(oWt+this.f+"'. Make sure it's type is registered with the "+(_1(iz),iz.k)+ePe));return n}else return this.b},"Aed"),x.Ng=i(function(){return this.d},"Bed"),x.Og=i(function(){return this.f},"Ced"),x.ve=i(function(){return this.i},"Ded"),x.Hb=i(function(){return Vy(this.f)},"Eed"),x.Ib=i(function(){return"Layout Option: "+this.f},"Fed");var OBi=j(ec,"LayoutOptionData",21);G(23,1,{},nr);var PBi=j(ec,"LayoutOptionData/Builder",23);G(160,24,{3:1,35:1,24:1,160:1},bF);var Sg,ey,ds,Or,cb,f0=qn(ec,"LayoutOptionData/Target",160,ii,Lcn,Rnn),onr;G(285,24,{3:1,35:1,24:1,285:1},k5);var Ms,Ao,Oa,Y6,jo,d0,X6,DUe,lnr=qn(ec,"LayoutOptionData/Type",285,ii,Wun,Lnn),cnr,wN,IUe;G(119,1,{119:1},S5,Op,BY),x.Fb=i(function(n){var o;return n==null||!Ge(n,119)?!1:(o=y(n,119),Oc(this.c,o.c)&&Oc(this.d,o.d)&&Oc(this.b,o.b)&&Oc(this.a,o.a))},"Rfd"),x.Hb=i(function(){return VX(Se(Ee(Fs,1),Fr,1,5,[this.c,this.d,this.b,this.a]))},"Sfd"),x.Ib=i(function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},"Tfd"),x.a=0,x.b=0,x.c=0,x.d=0;var BBi=j(NG,"ElkRectangle",119);G(8,1,{3:1,4:1,8:1,414:1},xo,Qce,Lt,Vo),x.Fb=i(function(n){return CIt(this,n)},"ngd"),x.Hb=i(function(){return E5(this.a)+O0n(E5(this.b))},"ogd"),x.ag=i(function(n){var o,u,p,g;for(p=0;p<n.length&&lNt((un(p,n.length),n.charCodeAt(p)),tVt);)++p;for(o=n.length;o>0&&lNt((un(o-1,n.length),n.charCodeAt(o-1)),rVt);)--o;if(p>=o)throw xe(new rn("The given string does not contain any numbers."));if(g=y3((ko(p,o,n.length),n.substr(p,o-p)),`,|;|\r|
|
|
`),g.length!=2)throw xe(new rn("Exactly two numbers are expected, "+g.length+" were found."));try{this.a=u3(h3(g[0])),this.b=u3(h3(g[1]))}catch(w){throw w=hs(w),Ge(w,131)?(u=w,xe(new rn(nVt+u))):xe(w)}},"qgd"),x.Ib=i(function(){return"("+this.a+","+this.b+")"},"sgd"),x.a=0,x.b=0;var to=j(NG,"KVector",8);G(79,66,{3:1,4:1,20:1,31:1,56:1,18:1,66:1,16:1,79:1,414:1},Vh,KH,C6t),x.Nc=i(function(){return idn(this)},"Dgd"),x.ag=i(function(n){var o,u,p,g,w,k;p=y3(n,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
|
`),gf(this);try{for(u=0,w=0,g=0,k=0;u<p.length;)p[u]!=null&&h3(p[u]).length>0&&(w%2==0?g=u3(p[u]):k=u3(p[u]),w>0&&w%2!=0&&_i(this,new Lt(g,k)),++w),++u}catch(A){throw A=hs(A),Ge(A,131)?(o=A,xe(new rn("The given string does not match the expected format for vectors."+o))):xe(A)}},"Bgd"),x.Ib=i(function(){var n,o,u;for(n=new Lf("("),o=ei(this,0);o.b!=o.d.c;)u=y(Qn(o),8),Li(n,u.a+","+u.b),o.b!=o.d.c&&(n.a+="; ");return(n.a+=")",n).a},"Egd");var MUe=j(NG,"KVectorChain",79);G(256,24,{3:1,35:1,24:1,256:1},y9);var xye,aee,see,Nj,Oj,oee,NUe=qn(ku,"Alignment",256,ii,aun,_nn),unr;G(976,1,s0,Gwt),x.tf=i(function(n){XGt(n)},"ehd");var OUe,Tye,hnr,PUe,BUe,fnr,FUe,dnr,pnr,$Ue,GUe,gnr,FBi=j(ku,"BoxLayouterOptions",976);G(977,1,{},ubt),x.uf=i(function(){var n;return n=new dbt,n},"ghd"),x.vf=i(function(n){},"hhd");var $Bi=j(ku,"BoxLayouterOptions/BoxFactory",977);G(299,24,{3:1,35:1,24:1,299:1},b9);var xN,kye,TN,kN,CN,Cye,Eye=qn(ku,"ContentAlignment",299,ii,lun,Dnn),mnr;G(689,1,s0,JSe),x.tf=i(function(n){fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,cWt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(dw(),X6)),Zt),mr((K0(),Or))))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,uWt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),d0),ESn),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,UNe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),jUe),Oa),NUe),mr(ds)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,TR),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,nPe),""),"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."),d0),MUe),mr(Sg)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,NJ),""),"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."),UUe),Y6),Eye),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,$G),""),"Debug Mode"),"Whether additional debug information shall be generated."),(qr(),!1)),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Kpe),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),VUe),Oa),SN),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,FG),""),"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."),qUe),Oa),$ye),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,tPe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,MJ),""),"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`."),XUe),Oa),FVe),ka(Or,Se(Ee(f0,1),At,160,0,[ds]))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,C3),""),"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."),sVe),d0),YBe),ka(Or,Se(Ee(f0,1),At,160,0,[ds]))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,tM),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,PJ),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,rM),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,spe),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),hVe),Oa),jVe),mr(ds)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,OJ),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),d0),to),ka(ds,Se(Ee(f0,1),At,160,0,[cb,ey]))))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,RG),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),jo),Ls),ka(ds,Se(Ee(f0,1),At,160,0,[Sg]))))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,pJ),""),"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)."),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,eM),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,eOe),""),"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."),QUe),d0),MUe),mr(Sg)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,iOe),""),"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),Ms),Ja),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,aOe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Ms),Ja),mr(ds)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,hWt),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),d0),DSn),ka(Or,Se(Ee(f0,1),At,160,0,[ey]))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,fWt),""),"Softwrapping Fuzziness"),"Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."),0),Ao),Ts),mr(ey)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,oOe),""),"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."),ZUe),d0),qBe),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,jNe),""),"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),Ms),Ja),ka(ds,Se(Ee(f0,1),At,160,0,[Sg,cb,ey]))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,dWt),""),"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),Ao),Ts),mr(ds)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,pWt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,gWt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,LG),""),iWt),"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),Ms),Ja),mr(Or)))),Ga(n,LG,aT,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,mWt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,yWt),""),"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'."),Et(100)),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,bWt),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,vWt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Et(4e3)),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,wWt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Et(400)),jo),Ls),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,xWt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,TWt),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,kWt),""),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,CWt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,rPe),"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."),zUe),Oa),eWe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,EWt),"json"),"Shape Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."),JUe),Oa),VVe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,SWt),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),KUe),Oa),EVe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,LNe),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,_Ne),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,DNe),l0),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,INe),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ape),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Xpe),l0),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,MNe),l0),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,PNe),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,NNe),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ONe),l0),"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),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,k3),l0),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,BNe),l0),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Ao),Ts),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,FNe),l0),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Ao),Ts),ka(Or,Se(Ee(f0,1),At,160,0,[ds]))))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,$Ne),l0),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),d0),fir),ka(ds,Se(Ee(f0,1),At,160,0,[Sg,cb,ey]))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,lOe),l0),"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."),xVe),d0),qBe),mr(Or)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,Qpe),_Wt),"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)."),jo),Ls),ka(Or,Se(Ee(f0,1),At,160,0,[ds]))))),Ga(n,Qpe,Jpe,Rnr),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Jpe),_Wt),"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."),oVe),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,HNe),DWt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),tVe),d0),YBe),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,CR),DWt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),rVe),Y6),fl),ka(ds,Se(Ee(f0,1),At,160,0,[ey]))))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,XNe),VJ),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),cVe),Oa),_N),mr(ds)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,KNe),VJ),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Oa),_N),mr(ds)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,JNe),VJ),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Oa),_N),mr(ds)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,QNe),VJ),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Oa),_N),mr(ds)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,ZNe),VJ),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Oa),_N),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,QC),kge),"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."),nVe),Y6),MN),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,k6),kge),"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."),aVe),Y6),WVe),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,C6),kge),"Node Size Minimum"),"The minimal size to which a node can be reduced."),iVe),d0),to),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,kR),kge),"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),Ms),Ja),mr(Or)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,rOe),Ype),"Edge Label Placement"),"Gives a hint on where to put edge labels."),WUe),Oa),SVe),mr(ey)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,gJ),Ype),"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),Ms),Ja),mr(ey)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,AWt),"font"),"Font Name"),"Font name used for a label."),X6),Zt),mr(ey)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,RWt),"font"),"Font Size"),"Font size used for a label."),jo),Ls),mr(ey)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,sOe),Cge),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),d0),to),mr(cb)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,nOe),Cge),"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."),jo),Ls),mr(cb)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,zNe),Cge),"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."),pVe),Oa),Qo),mr(cb)))),fr(n,new ir(ur(cr(hr(ar(lr(sr(or(new nr,GNe),Cge),"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."),Ao),Ts),mr(cb)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,ER),sPe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),fVe),Y6),pee),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,qNe),sPe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Ms),Ja),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,YNe),sPe),"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),Ms),Ja),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,xge),NR),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),Et(3)),jo),Ls),mr(Or)))),Ga(n,xge,Tge,Gnr),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,iPe),NR),"Weight of a node containing children for determining the graph size"),"When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."),Et(4)),jo),Ls),mr(Or)))),Ga(n,iPe,xge,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,_G),NR),"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),Ao),Ts),mr(Or)))),Ga(n,_G,aT,Bnr),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,Tge),NR),"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),d0),SSn),mr(ds)))),Ga(n,Tge,aT,Fnr),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,DG),NR),"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),Ao),Ts),ka(Or,Se(Ee(f0,1),At,160,0,[ds]))))),Ga(n,DG,aT,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,IG),NR),"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),Ao),Ts),ka(Or,Se(Ee(f0,1),At,160,0,[ds]))))),Ga(n,IG,aT,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,aT),NR),"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),Oa),qVe),mr(ds)))),Ga(n,aT,kR,null),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,aPe),NR),"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),Ao),Ts),mr(Or)))),Ga(n,aPe,aT,Pnr),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,VNe),IWt),"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),Ms),Ja),mr(ds)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,WNe),IWt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Ms),Ja),mr(Sg)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,tOe),"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),Ao),Ts),mr(Sg)))),fr(n,new ir(ur(cr(hr(vr(ar(lr(sr(or(new nr,LWt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),YUe),Oa),IVe),mr(Sg)))),l9(n,new z5(n9(U8(z8(new c5,Wr),"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.'))),l9(n,new z5(n9(U8(z8(new c5,"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.`))),l9(n,new z5(n9(U8(z8(new c5,Pu),"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."))),l9(n,new z5(n9(U8(z8(new c5,"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."))),l9(n,new z5(n9(U8(z8(new c5,zVt),"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."))),l9(n,new z5(n9(U8(z8(new c5,"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."))),l9(n,new z5(n9(U8(z8(new c5,wd),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),MGt((new jwt,n)),XGt((new Gwt,n)),aGt((new zwt,n))},"xjd");var K6,ynr,jUe,yL,bnr,vnr,zUe,Q3,Z3,wnr,Pj,UUe,Bj,Ow,VUe,Sye,Aye,WUe,HUe,qUe,xnr,YUe,Tnr,LE,XUe,knr,Fj,Rye,$j,Lye,Cnr,KUe,Enr,JUe,_E,QUe,bL,ZUe,eVe,tVe,DE,rVe,Pw,nVe,e4,IE,iVe,Uv,aVe,lee,Gj,r1,sVe,Snr,oVe,Anr,Rnr,lVe,cVe,_ye,Dye,Iye,Mye,uVe,tf,EN,hVe,Nye,Oye,t4,fVe,dVe,ME,pVe,J6,jj,Pye,r4,Lnr,Bye,_nr,Dnr,Inr,Mnr,gVe,mVe,Q6,yVe,cee,bVe,vVe,ub,Nnr,wVe,xVe,TVe,vL,n4,wL,Z6,Onr,Pnr,uee,Bnr,hee,Fnr,$nr,Gnr,jnr,GBi=j(ku,"CoreOptions",689);G(86,24,{3:1,35:1,24:1,86:1},vF);var p0,Il,Bl,g0,Ed,SN=qn(ku,"Direction",86,ii,ycn,Inn),znr;G(278,24,{3:1,35:1,24:1,278:1},Eq);var fee,zj,kVe,CVe,EVe=qn(ku,"EdgeCoords",278,ii,Uln,Mnn),Unr;G(279,24,{3:1,35:1,24:1,279:1},kle);var xL,i4,TL,SVe=qn(ku,"EdgeLabelPlacement",279,ii,Gon,Nnn),Vnr;G(222,24,{3:1,35:1,24:1,222:1},Sq);var kL,Uj,eA,Fye,$ye=qn(ku,"EdgeRouting",222,ii,Hln,Onn),Wnr;G(328,24,{3:1,35:1,24:1,328:1},v9);var AVe,RVe,LVe,_Ve,Gye,DVe,IVe=qn(ku,"EdgeType",328,ii,cun,Pnn),Hnr;G(974,1,s0,jwt),x.tf=i(function(n){MGt(n)},"Jkd");var MVe,NVe,OVe,PVe,qnr,BVe,AN,jBi=j(ku,"FixedLayouterOptions",974);G(975,1,{},hbt),x.uf=i(function(){var n;return n=new mbt,n},"Lkd"),x.vf=i(function(n){},"Mkd");var zBi=j(ku,"FixedLayouterOptions/FixedFactory",975);G(347,24,{3:1,35:1,24:1,347:1},Cle);var hb,dee,RN,FVe=qn(ku,"HierarchyHandling",347,ii,jon,Bnn),Ynr,SSn=za(ku,"ITopdownSizeApproximator");G(292,24,{3:1,35:1,24:1,292:1},Aq);var n1,Vv,Vj,Wj,Xnr=qn(ku,"LabelSide",292,ii,qln,Fnn),Knr;G(96,24,{3:1,35:1,24:1,96:1},hC);var ty,Jp,ip,Qp,Vf,Zp,ap,i1,eg,fl=qn(ku,"NodeLabelPlacement",96,ii,uhn,$nn),Jnr;G(257,24,{3:1,35:1,24:1,257:1},wF);var $Ve,LN,Wv,GVe,Hj,_N=qn(ku,"PortAlignment",257,ii,_cn,Gnn),Qnr;G(102,24,{3:1,35:1,24:1,102:1},w9);var Bw,zc,a1,CL,m0,Hv,jVe=qn(ku,"PortConstraints",102,ii,sun,jnn),Znr;G(280,24,{3:1,35:1,24:1,280:1},x9);var DN,IN,ry,qj,qv,tA,pee=qn(ku,"PortLabelPlacement",280,ii,oun,znn),eir;G(64,24,{3:1,35:1,24:1,64:1},xF);var bn,sn,Sd,Ad,th,$u,y0,tg,Nh,wh,su,Oh,rh,nh,rg,Wf,Hf,sp,Fn,rc,on,Qo=qn(ku,"PortSide",64,ii,bcn,Unn),tir;G(978,1,s0,zwt),x.tf=i(function(n){aGt(n)},"Tmd");var rir,nir,zVe,iir,air,UBi=j(ku,"RandomLayouterOptions",978);G(979,1,{},fbt),x.uf=i(function(){var n;return n=new kbt,n},"Vmd"),x.vf=i(function(n){},"Wmd");var VBi=j(ku,"RandomLayouterOptions/RandomFactory",979);G(300,24,{3:1,35:1,24:1,300:1},Ele);var Yj,jye,UVe,VVe=qn(ku,"ShapeCoords",300,ii,zon,Vnn),sir;G(380,24,{3:1,35:1,24:1,380:1},Rq);var a4,Xj,Kj,Fw,MN=qn(ku,"SizeConstraint",380,ii,Wln,Wnn),oir;G(266,24,{3:1,35:1,24:1,266:1},fC);var Jj,gee,EL,zye,Qj,NN,mee,yee,bee,WVe=qn(ku,"SizeOptions",266,ii,whn,Hnn),lir;G(281,24,{3:1,35:1,24:1,281:1},Sle);var s4,HVe,vee,qVe=qn(ku,"TopdownNodeTypes",281,ii,Uon,qnn),cir;G(288,24,HJ);var YVe,Uye,XVe,KVe,Zj=qn(ku,"TopdownSizeApproximator",288,ii,Vln,Ynn);G(970,288,HJ,o8t),x.Sg=i(function(n){return VOt(n)},"Wnd");var WBi=qn(ku,"TopdownSizeApproximator/1",970,Zj,null,null);G(971,288,HJ,N8t),x.Sg=i(function(n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr,Pr;for(o=y(St(n,(Ri(),r4)),144),Ht=(Kb(),ie=new JD,ie),eG(Ht,n),yr=new jn,w=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));w.e!=w.i.gc();)p=y(_n(w),26),$e=(ee=new JD,ee),$K($e,Ht),eG($e,p),Pr=VOt(p),kx($e,d.Math.max(p.g,Pr.a),d.Math.max(p.f,Pr.b)),Ju(yr.f,p,$e);for(g=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));g.e!=g.i.gc();)for(p=y(_n(g),26),F=new Sn((!p.e&&(p.e=new zr(Cs,p,7,4)),p.e));F.e!=F.i.gc();)M=y(_n(F),85),ht=y(Yl(Sl(yr.f,p)),26),st=y(Jr(yr,je((!M.c&&(M.c=new zr(Hn,M,5,8)),M.c),0)),26),Ve=(z=new noe,z),Zn((!Ve.b&&(Ve.b=new zr(Hn,Ve,4,7)),Ve.b),ht),Zn((!Ve.c&&(Ve.c=new zr(Hn,Ve,5,8)),Ve.c),st),FK(Ve,$a(ht)),eG(Ve,M);fe=y(qF(o.f),214);try{fe.kf(Ht,new roe),E7e(o.f,fe)}catch(Mr){throw Mr=hs(Mr),Ge(Mr,101)?(ue=Mr,xe(ue)):xe(Mr)}return gg(Ht,Z3)||gg(Ht,Q3)||gde(Ht),D=He(Xe(St(Ht,Z3))),A=He(Xe(St(Ht,Q3))),k=D/A,u=He(Xe(St(Ht,n4)))*d.Math.sqrt((!Ht.a&&(Ht.a=new xt(Ti,Ht,10,11)),Ht.a).i),gr=y(St(Ht,r1),104),Me=gr.b+gr.c+1,Ce=gr.d+gr.a+1,new Lt(d.Math.max(Me,u),d.Math.max(Ce,u/k))},"Ynd");var HBi=qn(ku,"TopdownSizeApproximator/2",971,Zj,null,null);G(972,288,HJ,yRt),x.Sg=i(function(n){var o,u,p,g,w,k;return u=He(Xe(St(n,(Ri(),n4)))),o=u/He(Xe(St(n,vL))),p=bkn(n),w=y(St(n,r1),104),g=He(Xe(Vt(ub))),$a(n)&&(g=He(Xe(St($a(n),ub)))),k=L1(new Lt(u,o),p),ra(k,new Lt(-(w.b+w.c)-g,-(w.d+w.a)-g))},"$nd");var qBi=qn(ku,"TopdownSizeApproximator/3",972,Zj,null,null);G(973,288,HJ,q8t),x.Sg=i(function(n){var o,u,p,g,w,k,A,D,M,F;for(k=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));k.e!=k.i.gc();)w=y(_n(k),26),St(w,(Ri(),hee))!=null&&(!w.a&&(w.a=new xt(Ti,w,10,11)),!!w.a)&&(!w.a&&(w.a=new xt(Ti,w,10,11)),w.a).i>0?(u=y(St(w,hee),522),F=u.Sg(w),M=y(St(w,r1),104),kx(w,d.Math.max(w.g,F.a+M.b+M.c),d.Math.max(w.f,F.b+M.d+M.a))):(!w.a&&(w.a=new xt(Ti,w,10,11)),w.a).i!=0&&kx(w,He(Xe(St(w,n4))),He(Xe(St(w,n4)))/He(Xe(St(w,vL))));o=y(St(n,(Ri(),r4)),144),D=y(qF(o.f),214);try{D.kf(n,new roe),E7e(o.f,D)}catch(z){throw z=hs(z),Ge(z,101)?(A=z,xe(A)):xe(z)}return pa(n,K6,OR),o_t(n),gde(n),g=He(Xe(St(n,Z3))),p=He(Xe(St(n,Q3))),new Lt(g,p)},"aod");var YBi=qn(ku,"TopdownSizeApproximator/4",973,Zj,null,null),uir;G(345,1,{853:1},g5),x.Tg=i(function(n,o){return nBt(this,n,o)},"pod"),x.Ug=i(function(){LBt(this)},"qod"),x.Vg=i(function(){return this.q},"rod"),x.Wg=i(function(){return this.f?PY(this.f):null},"sod"),x.Xg=i(function(){return PY(this.a)},"tod"),x.Yg=i(function(){return this.p},"uod"),x.Zg=i(function(){return!1},"vod"),x.$g=i(function(){return this.n},"wod"),x._g=i(function(){return this.p!=null&&!this.b},"xod"),x.ah=i(function(n){var o;this.n&&(o=n,Nt(this.f,o))},"yod"),x.bh=i(function(n,o){var u,p;this.n&&n&&iln(this,(u=new i7t,p=Yfe(u,n),nCn(u),p),(UX(),Wye))},"zod"),x.dh=i(function(n){var o;return this.b?null:(o=qun(this,this.g),_i(this.a,o),o.i=this,this.d=n,o)},"Aod"),x.eh=i(function(n){n>0&&!this.b&&hLe(this,n)},"Bod"),x.b=!1,x.c=0,x.d=-1,x.e=null,x.f=null,x.g=-1,x.j=!1,x.k=!1,x.n=!1,x.o=0,x.q=0,x.r=0;var XBi=j(xc,"BasicProgressMonitor",345);G(706,214,iT,dbt),x.kf=i(function(n,o){fjt(n,o)},"Pod");var KBi=j(xc,"BoxLayoutProvider",706);G(966,1,Di,Hkt),x.Le=i(function(n,o){return rwn(this,y(n,26),y(o,26))},"Sod"),x.Fb=i(function(n){return this===n},"Tod"),x.Me=i(function(){return new Ci(this)},"Uod"),x.a=!1;var JBi=j(xc,"BoxLayoutProvider/1",966);G(167,1,{167:1},vX,k6t),x.Ib=i(function(){return this.c?dIe(this.c):r0(this.b)},"bpd");var QBi=j(xc,"BoxLayoutProvider/Group",167);G(327,24,{3:1,35:1,24:1,327:1},Lq);var JVe,QVe,ZVe,Vye,eWe=qn(xc,"BoxLayoutProvider/PackingMode",327,ii,Yln,Xnn),hir;G(967,1,Di,bbt),x.Le=i(function(n,o){return dsn(y(n,167),y(o,167))},"npd"),x.Fb=i(function(n){return this===n},"opd"),x.Me=i(function(){return new Ci(this)},"ppd");var ZBi=j(xc,"BoxLayoutProvider/lambda$0$Type",967);G(968,1,Di,vbt),x.Le=i(function(n,o){return rsn(y(n,167),y(o,167))},"rpd"),x.Fb=i(function(n){return this===n},"spd"),x.Me=i(function(){return new Ci(this)},"tpd");var eFi=j(xc,"BoxLayoutProvider/lambda$1$Type",968);G(969,1,Di,wbt),x.Le=i(function(n,o){return nsn(y(n,167),y(o,167))},"vpd"),x.Fb=i(function(n){return this===n},"wpd"),x.Me=i(function(){return new Ci(this)},"xpd");var tFi=j(xc,"BoxLayoutProvider/lambda$2$Type",969);G(1339,1,{830:1},xbt),x.Lg=i(function(n,o){return rq(),!Ge(o,174)||ECt((Z5(),y(n,174)),o)},"zpd");var rFi=j(xc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1339);G(1340,1,xn,qkt),x.Ad=i(function(n){udn(this.a,y(n,147))},"Bpd");var nFi=j(xc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1340);G(1341,1,xn,Tbt),x.Ad=i(function(n){y(n,105),rq()},"Dpd");var iFi=j(xc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1341);G(1345,1,xn,Ykt),x.Ad=i(function(n){Ihn(this.a,y(n,105))},"Fpd");var aFi=j(xc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1345);G(1343,1,yi,pSt),x.Mb=i(function(n){return Hfn(this.a,this.b,y(n,147))},"Hpd");var sFi=j(xc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1343);G(1342,1,yi,gSt),x.Mb=i(function(n){return Zen(this.a,this.b,y(n,830))},"Jpd");var oFi=j(xc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1342);G(1344,1,xn,mSt),x.Ad=i(function(n){ean(this.a,this.b,y(n,147))},"Lpd");var lFi=j(xc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1344);G(931,1,{},gbt),x.Kb=i(function(n){return m5t(n)},"mqd"),x.Fb=i(function(n){return this===n},"nqd");var cFi=j(xc,"ElkUtil/lambda$0$Type",931);G(932,1,xn,ySt),x.Ad=i(function(n){svn(this.a,this.b,y(n,85))},"pqd"),x.a=0,x.b=0;var uFi=j(xc,"ElkUtil/lambda$1$Type",932);G(933,1,xn,bSt),x.Ad=i(function(n){rQr(this.a,this.b,y(n,170))},"rqd"),x.a=0,x.b=0;var hFi=j(xc,"ElkUtil/lambda$2$Type",933);G(934,1,xn,vSt),x.Ad=i(function(n){JZr(this.a,this.b,y(n,157))},"tqd"),x.a=0,x.b=0;var fFi=j(xc,"ElkUtil/lambda$3$Type",934);G(935,1,xn,Xkt),x.Ad=i(function(n){kin(this.a,y(n,372))},"vqd");var dFi=j(xc,"ElkUtil/lambda$4$Type",935);G(331,1,{35:1,331:1},qD),x.Dd=i(function(n){return Een(this,y(n,242))},"yqd"),x.Fb=i(function(n){var o;return Ge(n,331)?(o=y(n,331),this.a==o.a):!1},"zqd"),x.Hb=i(function(){return Po(this.a)},"Aqd"),x.Ib=i(function(){return this.a+" (exclusive)"},"Bqd"),x.a=0;var pFi=j(xc,"ExclusiveBounds/ExclusiveLowerBound",331);G(1089,214,iT,mbt),x.kf=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me,$e,Ve,ht,st,Ht,yr,gr;for(o.Tg("Fixed Layout",1),w=y(St(n,(Ri(),HUe)),222),z=0,ee=0,$e=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));$e.e!=$e.i.gc();){for(Ce=y(_n($e),26),gr=y(St(Ce,(zX(),AN)),8),gr&&(ld(Ce,gr.a,gr.b),y(St(Ce,NVe),182).Gc((vf(),a4))&&(ie=y(St(Ce,PVe),8),ie.a>0&&ie.b>0&&eT(Ce,ie.a,ie.b,!0,!0))),z=d.Math.max(z,Ce.i+Ce.g),ee=d.Math.max(ee,Ce.j+Ce.f),M=new Sn((!Ce.n&&(Ce.n=new xt(nc,Ce,1,7)),Ce.n));M.e!=M.i.gc();)A=y(_n(M),157),gr=y(St(A,AN),8),gr&&ld(A,gr.a,gr.b),z=d.Math.max(z,Ce.i+A.i+A.g),ee=d.Math.max(ee,Ce.j+A.j+A.f);for(st=new Sn((!Ce.c&&(Ce.c=new xt(rf,Ce,9,9)),Ce.c));st.e!=st.i.gc();)for(ht=y(_n(st),125),gr=y(St(ht,AN),8),gr&&ld(ht,gr.a,gr.b),Ht=Ce.i+ht.i,yr=Ce.j+ht.j,z=d.Math.max(z,Ht+ht.g),ee=d.Math.max(ee,yr+ht.f),D=new Sn((!ht.n&&(ht.n=new xt(nc,ht,1,7)),ht.n));D.e!=D.i.gc();)A=y(_n(D),157),gr=y(St(A,AN),8),gr&&ld(A,gr.a,gr.b),z=d.Math.max(z,Ht+A.i+A.g),ee=d.Math.max(ee,yr+A.j+A.f);for(g=new nn(cn(xv(Ce).a.Jc(),new B));Nn(g);)u=y(vn(g),85),F=Ezt(u),z=d.Math.max(z,F.a),ee=d.Math.max(ee,F.b);for(p=new nn(cn(Nfe(Ce).a.Jc(),new B));Nn(p);)u=y(vn(p),85),$a(wfe(u))!=n&&(F=Ezt(u),z=d.Math.max(z,F.a),ee=d.Math.max(ee,F.b))}if(w==(U1(),kL))for(Me=new Sn((!n.a&&(n.a=new xt(Ti,n,10,11)),n.a));Me.e!=Me.i.gc();)for(Ce=y(_n(Me),26),p=new nn(cn(xv(Ce).a.Jc(),new B));Nn(p);)u=y(vn(p),85),k=nkn(u),k.b==0?pa(u,_E,null):pa(u,_E,k);Kt(Xt(St(n,(zX(),OVe))))||(Ve=y(St(n,qnr),104),fe=z+Ve.b+Ve.c,ue=ee+Ve.d+Ve.a,eT(n,fe,ue,!0,!0)),o.Ug()},"Eqd");var gFi=j(xc,"FixedLayoutProvider",1089);G(379,150,{3:1,414:1,379:1,105:1,150:1},toe,g9t),x.ag=i(function(n){var o,u,p,g,w,k,A,D,M;if(n)try{for(D=y3(n,";,;"),w=D,k=0,A=w.length;k<A;++k){if(g=w[k],u=y3(g,"\\:"),p=HIe(rI(),u[0]),!p)throw xe(new rn("Invalid option id: "+u[0]));if(M=VIe(p,u[1]),M==null)throw xe(new rn("Invalid option value: "+u[1]));M==null?(!this.q&&(this.q=new jn),H5(this.q,p)):(!this.q&&(this.q=new jn),Oi(this.q,p,M))}}catch(F){throw F=hs(F),Ge(F,101)?(o=F,xe(new JMt(o))):xe(F)}},"Jqd"),x.Ib=i(function(){var n;return n=di(Rh(bu((this.q?this.q:(Ir(),Ir(),Qm)).vc().Mc(),new pbt),Aun(new VAt,new mt,new Ft,new Mt,Se(Ee(eh,1),At,130,0,[])))),n},"Kqd");var fir=j(xc,"IndividualSpacings",379);G(965,1,{},pbt),x.Kb=i(function(n){return fsn(y(n,45))},"Mqd");var mFi=j(xc,"IndividualSpacings/lambda$0$Type",965);G(708,1,{},x8t),x.c=0;var yFi=j(xc,"InstancePool",708);G(1819,1,{},ybt);var bFi=j(xc,"LoggedGraph",1819);G(407,24,{3:1,35:1,24:1,407:1},_q);var tWe,Wye,rWe,nWe,dir=qn(xc,"LoggedGraph/Type",407,ii,Xln,Knn),pir;G(615,1,{853:1},roe),x.Tg=i(function(n,o){return!1},"ard"),x.Ug=i(function(){},"brd"),x.Vg=i(function(){return 0},"crd"),x.Wg=i(function(){return null},"drd"),x.Xg=i(function(){return null},"erd"),x.Yg=i(function(){return null},"frd"),x.Zg=i(function(){return!1},"grd"),x.$g=i(function(){return!1},"hrd"),x._g=i(function(){return!1},"ird"),x.ah=i(function(n){},"jrd"),x.bh=i(function(n,o){},"krd"),x.dh=i(function(n){return this},"lrd"),x.eh=i(function(n){},"mrd");var vFi=j(xc,"NullElkProgressMonitor",615);G(49,1,{20:1,49:1},Ko),x.Ic=i(function(n){Io(this,n)},"rrd"),x.Fb=i(function(n){var o,u,p;return Ge(n,49)?(u=y(n,49),o=this.a==null?u.a==null:ta(this.a,u.a),p=this.b==null?u.b==null:ta(this.b,u.b),o&&p):!1},"qrd"),x.Hb=i(function(){var n,o,u,p,g,w;return u=this.a==null?0:Aa(this.a),n=u&As,o=u&-65536,w=this.b==null?0:Aa(this.b),p=w&As,g=w&-65536,n^g>>16&As|o^p<<16},"srd"),x.Jc=i(function(){return new Kkt(this)},"trd"),x.Ib=i(function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+zl(this.b)+")":this.b==null?"pair("+zl(this.a)+",null)":"pair("+zl(this.a)+","+zl(this.b)+")"},"urd");var wFi=j(xc,"Pair",49);G(980,1,fo,Kkt),x.Nb=i(function(n){So(this,n)},"wrd"),x.Ob=i(function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},"xrd"),x.Pb=i(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 xe(new Hl)},"yrd"),x.Qb=i(function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),xe(new hh)},"zrd"),x.b=!1,x.c=!1;var xFi=j(xc,"Pair/1",980);G(1079,214,iT,kbt),x.kf=i(function(n,o){var u,p,g,w,k;if(o.Tg("Random Layout",1),(!n.a&&(n.a=new xt(Ti,n,10,11)),n.a).i==0){o.Ug();return}w=y(St(n,($_e(),iir)),15),w&&w.a!=0?g=new KY(w.a):g=new Ehe,u=eF(Xe(St(n,rir))),k=eF(Xe(St(n,air))),p=y(St(n,nir),104),CCn(n,g,u,k,p),o.Ug()},"Drd");var TFi=j(xc,"RandomLayoutProvider",1079);G(240,1,{240:1},ace),x.Fb=i(function(n){return Oc(this.a,y(n,240).a)&&Oc(this.b,y(n,240).b)&&Oc(this.c,y(n,240).c)},"Frd"),x.Hb=i(function(){return VX(Se(Ee(Fs,1),Fr,1,5,[this.a,this.b,this.c]))},"Grd"),x.Ib=i(function(){return"("+this.a+Tu+this.b+Tu+this.c+")"},"Hrd");var kFi=j(xc,"Triple",240),gir;G(551,1,{}),x.Jf=i(function(){return new Lt(this.f.i,this.f.j)},"Mrd"),x.mf=i(function(n){return dRt(n,(Ri(),tf))?St(this.f,mir):St(this.f,n)},"Nrd"),x.Kf=i(function(){return new Lt(this.f.g,this.f.f)},"Ord"),x.Lf=i(function(){return this.g},"Prd"),x.nf=i(function(n){return gg(this.f,n)},"Qrd"),x.Mf=i(function(n){Xh(this.f,n.a),Kh(this.f,n.b)},"Rrd"),x.Nf=i(function(n){Gx(this.f,n.a),$x(this.f,n.b)},"Srd"),x.Of=i(function(n){this.g=n},"Trd"),x.g=0;var mir,CFi=j(fM,"ElkGraphAdapters/AbstractElkGraphElementAdapter",551);G(553,1,{838:1},OH),x.Pf=i(function(){var n,o;if(!this.b)for(this.b=HY(Pce(this.a).i),o=new Sn(Pce(this.a));o.e!=o.i.gc();)n=y(_n(o),157),Nt(this.b,new Noe(n));return this.b},"Vrd"),x.b=null;var EFi=j(fM,"ElkGraphAdapters/ElkEdgeAdapter",553);G(260,551,{},qb),x.Qf=i(function(){return uPt(this)},"Yrd"),x.a=null;var SFi=j(fM,"ElkGraphAdapters/ElkGraphAdapter",260);G(631,551,{187:1},Noe);var AFi=j(fM,"ElkGraphAdapters/ElkLabelAdapter",631);G(552,551,{685:1},Hq),x.Pf=i(function(){return _0n(this)},"esd"),x.Tf=i(function(){var n;return n=y(St(this.f,(Ri(),bL)),140),!n&&(n=new KD),n},"fsd"),x.Vf=i(function(){return D0n(this)},"hsd"),x.Xf=i(function(n){var o;o=new nce(n),pa(this.f,(Ri(),bL),o)},"jsd"),x.Yf=i(function(n){pa(this.f,(Ri(),r1),new v8e(n))},"ksd"),x.Rf=i(function(){return this.d},"csd"),x.Sf=i(function(){var n,o;if(!this.a)for(this.a=new Pt,o=new nn(cn(Nfe(y(this.f,26)).a.Jc(),new B));Nn(o);)n=y(vn(o),85),Nt(this.a,new OH(n));return this.a},"dsd"),x.Uf=i(function(){var n,o;if(!this.c)for(this.c=new Pt,o=new nn(cn(xv(y(this.f,26)).a.Jc(),new B));Nn(o);)n=y(vn(o),85),Nt(this.c,new OH(n));return this.c},"gsd"),x.Wf=i(function(){return NY(y(this.f,26)).i!=0||Kt(Xt(y(this.f,26).mf((Ri(),Fj))))},"isd"),x.Zf=i(function(){Run(this,(U2(),gir))},"lsd"),x.a=null,x.b=null,x.c=null,x.d=null,x.e=null;var RFi=j(fM,"ElkGraphAdapters/ElkNodeAdapter",552);G(1251,551,{837:1},C3t),x.Pf=i(function(){return F0n(this)},"psd"),x.Sf=i(function(){var n,o;if(!this.a)for(this.a=Pm(y(this.f,125).gh().i),o=new Sn(y(this.f,125).gh());o.e!=o.i.gc();)n=y(_n(o),85),Nt(this.a,new OH(n));return this.a},"osd"),x.Uf=i(function(){var n,o;if(!this.c)for(this.c=Pm(y(this.f,125).hh().i),o=new Sn(y(this.f,125).hh());o.e!=o.i.gc();)n=y(_n(o),85),Nt(this.c,new OH(n));return this.c},"qsd"),x.$f=i(function(){return y(y(this.f,125).mf((Ri(),ME)),64)},"rsd"),x._f=i(function(){var n,o,u,p,g,w,k,A;for(p=qg(y(this.f,125)),u=new Sn(y(this.f,125).hh());u.e!=u.i.gc();)for(n=y(_n(u),85),A=new Sn((!n.c&&(n.c=new zr(Hn,n,5,8)),n.c));A.e!=A.i.gc();){if(k=y(_n(A),84),Qk(Pl(k),p))return!0;if(Pl(k)==p&&Kt(Xt(St(n,(Ri(),Rye)))))return!0}for(o=new Sn(y(this.f,125).gh());o.e!=o.i.gc();)for(n=y(_n(o),85),w=new Sn((!n.b&&(n.b=new zr(Hn,n,4,7)),n.b));w.e!=w.i.gc();)if(g=y(_n(w),84),Qk(Pl(g),p))return!0;return!1},"ssd"),x.a=null,x.b=null,x.c=null;var LFi=j(fM,"ElkGraphAdapters/ElkPortAdapter",1251);G(1252,1,Di,Cbt),x.Le=i(function(n,o){return Yxn(y(n,125),y(o,125))},"vsd"),x.Fb=i(function(n){return this===n},"wsd"),x.Me=i(function(){return new Ci(this)},"xsd");var _Fi=j(fM,"ElkGraphAdapters/PortComparator",1252),Yv=za(xd,"EObject"),SL=za(rE,OWt),qf=za(rE,PWt),ez=za(rE,BWt),tz=za(rE,"ElkShape"),Hn=za(rE,FWt),Cs=za(rE,lPe),Ia=za(rE,$Wt),rz=za(xd,GWt),ON=za(xd,"EFactory"),yir,Hye=za(xd,jWt),Ag=za(xd,"EPackage"),ro,bir,vir,iWe,wee,wir,aWe,sWe,oWe,s1,xir,Tir,nc=za(rE,cPe),Ti=za(rE,uPe),rf=za(rE,hPe);G(93,1,zWt),x.qh=i(function(){return this.rh(),null},"Psd"),x.rh=i(function(){return null},"Qsd"),x.sh=i(function(){return this.rh(),!1},"Rsd"),x.th=i(function(){return!1},"Ssd"),x.uh=i(function(n){Qi(this,n)},"Tsd");var DFi=j(S6,"BasicNotifierImpl",93);G(100,93,HWt),x.Vh=i(function(){return hf(this)},"_td"),x.vh=i(function(n,o){return n},"ztd"),x.wh=i(function(){throw xe(new hi)},"Atd"),x.xh=i(function(n){var o;return o=rl(y(Nr(this.Ah(),this.Ch()),19)),this.Mh().Qh(this,o.n,o.f,n)},"Btd"),x.yh=i(function(n,o){throw xe(new hi)},"Ctd"),x.zh=i(function(n,o,u){return $f(this,n,o,u)},"Dtd"),x.Ah=i(function(){var n;return this.wh()&&(n=this.wh().Lk(),n)?n:this.fi()},"Etd"),x.Bh=i(function(){return Ife(this)},"Ftd"),x.Ch=i(function(){throw xe(new hi)},"Gtd"),x.Dh=i(function(){var n,o;return o=this.Xh().Mk(),!o&&this.wh().Rk(o=(u9(),n=$7e(Q0(this.Ah())),n==null?ebe:new SF(this,n))),o},"Itd"),x.Eh=i(function(n,o){return n},"Ktd"),x.Fh=i(function(n){var o;return o=n.nk(),o?n.Jj():ja(this.Ah(),n)},"Ltd"),x.Gh=i(function(){var n;return n=this.wh(),n?n.Ok():null},"Mtd"),x.Hh=i(function(){return this.wh()?this.wh().Lk():null},"Ntd"),x.Ih=i(function(n,o,u){return fK(this,n,o,u)},"Otd"),x.Jh=i(function(n){return v7(this,n)},"Ptd"),x.Kh=i(function(n,o){return mue(this,n,o)},"Qtd"),x.Lh=i(function(){var n;return n=this.wh(),!!n&&n.Pk()},"Rtd"),x.Mh=i(function(){throw xe(new hi)},"Std"),x.Nh=i(function(){return oK(this)},"Ttd"),x.Oh=i(function(n,o,u,p){return a6(this,n,o,p)},"Utd"),x.Ph=i(function(n,o,u){var p;return p=y(Nr(this.Ah(),o),69),p.uk().xk(this,this.ei(),o-this.gi(),n,u)},"Vtd"),x.Qh=i(function(n,o,u,p){return $Y(this,n,o,p)},"Wtd"),x.Rh=i(function(n,o,u){var p;return p=y(Nr(this.Ah(),o),69),p.uk().yk(this,this.ei(),o-this.gi(),n,u)},"Xtd"),x.Sh=i(function(){return!!this.wh()&&!!this.wh().Nk()},"Ytd"),x.Th=i(function(n){return jhe(this,n)},"Ztd"),x.Uh=i(function(n){return LRt(this,n)},"$td"),x.Wh=i(function(n){return lzt(this,n)},"aud"),x.Xh=i(function(){throw xe(new hi)},"bud"),x.Yh=i(function(){return this.wh()?this.wh().Nk():null},"cud"),x.Zh=i(function(){return oK(this)},"dud"),x.$h=i(function(n,o){Afe(this,n,o)},"eud"),x._h=i(function(n){this.Xh().Qk(n)},"fud"),x.ai=i(function(n){this.Xh().Tk(n)},"gud"),x.bi=i(function(n){this.Xh().Sk(n)},"hud"),x.ci=i(function(n,o){var u,p,g,w;return w=this.Gh(),w&&n&&(o=qo(w.Cl(),this,o),w.Gl(this)),p=this.Mh(),p&&((Wfe(this,this.Mh(),this.Ch()).Bb&Jo)!=0?(g=p.Nh(),g&&(n?!w&&g.Gl(this):g.Fl(this))):(o=(u=this.Ch(),u>=0?this.xh(o):this.Mh().Qh(this,-1-u,null,o)),o=this.zh(null,-1,o))),this.ai(n),o},"iud"),x.di=i(function(n){var o,u,p,g,w,k,A,D;if(u=this.Ah(),w=ja(u,n),o=this.gi(),w>=o)return y(n,69).uk().Bk(this,this.ei(),w-o);if(w<=-1)if(k=qC((yh(),Ro),u,n),k){if(tl(),y(k,69).vk()||(k=U5(Rl(Ro,k))),g=(p=this.Fh(k),y(p>=0?this.Ih(p,!0,!0):Jx(this,k,!0),163)),D=k.Gk(),D>1||D==-1)return y(y(g,219).Ql(n,!1),78)}else throw xe(new rn(Lv+n.ve()+Ege));else if(n.Hk())return p=this.Fh(n),y(p>=0?this.Ih(p,!1,!0):Jx(this,n,!1),78);return A=new FSt(this,n),A},"jud"),x.ei=i(function(){return HRe(this)},"kud"),x.fi=i(function(){return(rv(),Xr).S},"lud"),x.gi=i(function(){return On(this.fi())},"mud"),x.hi=i(function(n){Cfe(this,n)},"nud"),x.Ib=i(function(){return zp(this)},"oud");var IFi=j(Qr,"BasicEObjectImpl",100),kir;G(117,100,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1}),x.ii=i(function(n){var o;return o=qRe(this),o[n]},"xud"),x.ji=i(function(n,o){var u;u=qRe(this),as(u,n,o)},"yud"),x.ki=i(function(n){var o;o=qRe(this),as(o,n,null)},"zud"),x.qh=i(function(){return y(an(this,4),129)},"Aud"),x.rh=i(function(){throw xe(new hi)},"Bud"),x.sh=i(function(){return(this.Db&4)!=0},"Cud"),x.wh=i(function(){throw xe(new hi)},"Dud"),x.li=i(function(n){n6(this,2,n)},"Eud"),x.yh=i(function(n,o){this.Db=o<<16|this.Db&255,this.li(n)},"Fud"),x.Ah=i(function(){return qu(this)},"Gud"),x.Ch=i(function(){return this.Db>>16},"Hud"),x.Dh=i(function(){var n,o;return u9(),o=$7e(Q0((n=y(an(this,16),29),n||this.fi()))),o==null?ebe:new SF(this,o)},"Iud"),x.th=i(function(){return(this.Db&1)==0},"Jud"),x.Gh=i(function(){return y(an(this,128),1999)},"Kud"),x.Hh=i(function(){return y(an(this,16),29)},"Lud"),x.Lh=i(function(){return(this.Db&32)!=0},"Mud"),x.Mh=i(function(){return y(an(this,2),52)},"Nud"),x.Sh=i(function(){return(this.Db&64)!=0},"Oud"),x.Xh=i(function(){throw xe(new hi)},"Pud"),x.Yh=i(function(){return y(an(this,64),290)},"Qud"),x._h=i(function(n){n6(this,16,n)},"Rud"),x.ai=i(function(n){n6(this,128,n)},"Sud"),x.bi=i(function(n){n6(this,64,n)},"Tud"),x.ei=i(function(){return Nu(this)},"Uud"),x.Db=0;var MFi=j(Qr,"MinimalEObjectImpl",117);G(118,117,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),x.li=i(function(n){this.Cb=n},"Vud"),x.Mh=i(function(){return this.Cb},"Wud");var NFi=j(Qr,"MinimalEObjectImpl/Container",118);G(tb,118,{109:1,343:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),x.Ih=i(function(n,o,u){return lDe(this,n,o,u)},"fvd"),x.Rh=i(function(n,o,u){return KDe(this,n,o,u)},"gvd"),x.Th=i(function(n){return Z7e(this,n)},"hvd"),x.$h=i(function(n,o){HLe(this,n,o)},"ivd"),x.fi=i(function(){return Ac(),Tir},"jvd"),x.hi=i(function(n){OLe(this,n)},"kvd"),x.lf=i(function(){return _Ot(this)},"lvd"),x.fh=i(function(){return!this.o&&(this.o=new gh((Ac(),s1),fb,this,0)),this.o},"mvd"),x.mf=i(function(n){return St(this,n)},"nvd"),x.nf=i(function(n){return gg(this,n)},"ovd"),x.of=i(function(n,o){return pa(this,n,o)},"pvd");var OFi=j(ww,"EMapPropertyHolderImpl",tb);G(559,118,{109:1,372:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},EH),x.Ih=i(function(n,o,u){switch(n){case 0:return this.a;case 1:return this.b}return fK(this,n,o,u)},"uvd"),x.Th=i(function(n){switch(n){case 0:return this.a!=0;case 1:return this.b!=0}return jhe(this,n)},"vvd"),x.$h=i(function(n,o){switch(n){case 0:wX(this,He(Xe(o)));return;case 1:xX(this,He(Xe(o)));return}Afe(this,n,o)},"wvd"),x.fi=i(function(){return Ac(),bir},"xvd"),x.hi=i(function(n){switch(n){case 0:wX(this,0);return;case 1:xX(this,0);return}Cfe(this,n)},"yvd"),x.Ib=i(function(){var n;return(this.Db&64)!=0?zp(this):(n=new Hd(zp(this)),n.a+=" (x: ",oC(n,this.a),n.a+=", y: ",oC(n,this.b),n.a+=")",n.a)},"zvd"),x.a=0,x.b=0;var PFi=j(ww,"ElkBendPointImpl",559);G(727,tb,{109:1,343:1,174:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),x.Ih=i(function(n,o,u){return d_e(this,n,o,u)},"Jvd"),x.Ph=i(function(n,o,u){return mfe(this,n,o,u)},"Kvd"),x.Rh=i(function(n,o,u){return Zue(this,n,o,u)},"Lvd"),x.Th=i(function(n){return LLe(this,n)},"Mvd"),x.$h=i(function(n,o){SDe(this,n,o)},"Nvd"),x.fi=i(function(){return Ac(),wir},"Ovd"),x.hi=i(function(n){c_e(this,n)},"Pvd"),x.ih=i(function(){return this.k},"Qvd"),x.jh=i(function(){return Pce(this)},"Rvd"),x.Ib=i(function(){return khe(this)},"Svd"),x.k=null;var BFi=j(ww,"ElkGraphElementImpl",727);G(728,727,{109:1,343:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),x.Ih=i(function(n,o,u){return S_e(this,n,o,u)},"cwd"),x.Th=i(function(n){return I_e(this,n)},"dwd"),x.$h=i(function(n,o){ADe(this,n,o)},"ewd"),x.fi=i(function(){return Ac(),xir},"fwd"),x.hi=i(function(n){P_e(this,n)},"gwd"),x.kh=i(function(){return this.f},"hwd"),x.lh=i(function(){return this.g},"iwd"),x.mh=i(function(){return this.i},"jwd"),x.nh=i(function(){return this.j},"kwd"),x.oh=i(function(n,o){kx(this,n,o)},"lwd"),x.ph=i(function(n,o){ld(this,n,o)},"mwd"),x.Ib=i(function(){return Tfe(this)},"nwd"),x.f=0,x.g=0,x.i=0,x.j=0;var FFi=j(ww,"ElkShapeImpl",728);G(729,728,{109:1,343:1,84:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),x.Ih=i(function(n,o,u){return rDe(this,n,o,u)},"vwd"),x.Ph=i(function(n,o,u){return wDe(this,n,o,u)},"wwd"),x.Rh=i(function(n,o,u){return xDe(this,n,o,u)},"xwd"),x.Th=i(function(n){return WLe(this,n)},"ywd"),x.$h=i(function(n,o){N9e(this,n,o)},"zwd"),x.fi=i(function(){return Ac(),vir},"Awd"),x.hi=i(function(n){J_e(this,n)},"Bwd"),x.gh=i(function(){return!this.d&&(this.d=new zr(Cs,this,8,5)),this.d},"Cwd"),x.hh=i(function(){return!this.e&&(this.e=new zr(Cs,this,7,4)),this.e},"Dwd");var $Fi=j(ww,"ElkConnectableShapeImpl",729);G(271,727,{109:1,343:1,85:1,174:1,271:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},noe),x.xh=i(function(n){return yDe(this,n)},"Owd"),x.Ih=i(function(n,o,u){switch(n){case 3:return Vk(this);case 4:return!this.b&&(this.b=new zr(Hn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new zr(Hn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new xt(Ia,this,6,6)),this.a;case 7:return qr(),!this.b&&(this.b=new zr(Hn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new zr(Hn,this,5,8)),this.c.i<=1));case 8:return qr(),!!II(this);case 9:return qr(),!!Kx(this);case 10:return qr(),!this.b&&(this.b=new zr(Hn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new zr(Hn,this,5,8)),this.c.i!=0)}return d_e(this,n,o,u)},"Pwd"),x.Ph=i(function(n,o,u){var p;switch(o){case 3:return this.Cb&&(u=(p=this.Db>>16,p>=0?yDe(this,u):this.Cb.Qh(this,-1-p,null,u))),JAe(this,y(n,26),u);case 4:return!this.b&&(this.b=new zr(Hn,this,4,7)),xu(this.b,n,u);case 5:return!this.c&&(this.c=new zr(Hn,this,5,8)),xu(this.c,n,u);case 6:return!this.a&&(this.a=new xt(Ia,this,6,6)),xu(this.a,n,u)}return mfe(this,n,o,u)},"Qwd"),x.Rh=i(function(n,o,u){switch(o){case 3:return JAe(this,null,u);case 4:return!this.b&&(this.b=new zr(Hn,this,4,7)),qo(this.b,n,u);case 5:return!this.c&&(this.c=new zr(Hn,this,5,8)),qo(this.c,n,u);case 6:return!this.a&&(this.a=new xt(Ia,this,6,6)),qo(this.a,n,u)}return Zue(this,n,o,u)},"Rwd"),x.Th=i(function(n){switch(n){case 3:return!!Vk(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 zr(Hn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new zr(Hn,this,5,8)),this.c.i<=1));case 8:return II(this);case 9:return Kx(this);case 10:return!this.b&&(this.b=new zr(Hn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new zr(Hn,this,5,8)),this.c.i!=0)}return LLe(this,n)},"Swd"),x.$h=i(function(n,o){switch(n){case 3:FK(this,y(o,26));return;case 4:!this.b&&(this.b=new zr(Hn,this,4,7)),Kn(this.b),!this.b&&(this.b=new zr(Hn,this,4,7)),rs(this.b,y(o,18));return;case 5:!this.c&&(this.c=new zr(Hn,this,5,8)),Kn(this.c),!this.c&&(this.c=new zr(Hn,this,5,8)),rs(this.c,y(o,18));return;case 6:!this.a&&(this.a=new xt(Ia,this,6,6)),Kn(this.a),!this.a&&(this.a=new xt(Ia,this,6,6)),rs(this.a,y(o,18));return}SDe(this,n,o)},"Twd"),x.fi=i(function(){return Ac(),iWe},"Uwd"),x.hi=i(function(n){switch(n){case 3:FK(this,null);return;case 4:!this.b&&(this.b=new zr(Hn,this,4,7)),Kn(this.b);return;case 5:!this.c&&(this.c=new zr(Hn,this,5,8)),Kn(this.c);return;case 6:!this.a&&(this.a=new xt(Ia,this,6,6)),Kn(this.a);return}c_e(this,n)},"Vwd"),x.Ib=i(function(){return Ljt(this)},"Wwd");var GFi=j(ww,"ElkEdgeImpl",271);G(443,tb,{109:1,343:1,170:1,443:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},SH),x.xh=i(function(n){return dDe(this,n)},"mxd"),x.Ih=i(function(n,o,u){switch(n){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 Es(qf,this,5)),this.a;case 6:return RRt(this);case 7:return o?Hhe(this):this.i;case 8:return o?Whe(this):this.f;case 9:return!this.g&&(this.g=new zr(Ia,this,9,10)),this.g;case 10:return!this.e&&(this.e=new zr(Ia,this,10,9)),this.e;case 11:return this.d}return lDe(this,n,o,u)},"nxd"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 6:return this.Cb&&(u=(g=this.Db>>16,g>=0?dDe(this,u):this.Cb.Qh(this,-1-g,null,u))),QAe(this,y(n,85),u);case 9:return!this.g&&(this.g=new zr(Ia,this,9,10)),xu(this.g,n,u);case 10:return!this.e&&(this.e=new zr(Ia,this,10,9)),xu(this.e,n,u)}return w=y(Nr((p=y(an(this,16),29),p||(Ac(),wee)),o),69),w.uk().xk(this,Nu(this),o-On((Ac(),wee)),n,u)},"oxd"),x.Rh=i(function(n,o,u){switch(o){case 5:return!this.a&&(this.a=new Es(qf,this,5)),qo(this.a,n,u);case 6:return QAe(this,null,u);case 9:return!this.g&&(this.g=new zr(Ia,this,9,10)),qo(this.g,n,u);case 10:return!this.e&&(this.e=new zr(Ia,this,10,9)),qo(this.e,n,u)}return KDe(this,n,o,u)},"pxd"),x.Th=i(function(n){switch(n){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!!RRt(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 Z7e(this,n)},"qxd"),x.$h=i(function(n,o){switch(n){case 1:DC(this,He(Xe(o)));return;case 2:IC(this,He(Xe(o)));return;case 3:LC(this,He(Xe(o)));return;case 4:_C(this,He(Xe(o)));return;case 5:!this.a&&(this.a=new Es(qf,this,5)),Kn(this.a),!this.a&&(this.a=new Es(qf,this,5)),rs(this.a,y(o,18));return;case 6:A$t(this,y(o,85));return;case 7:RX(this,y(o,84));return;case 8:AX(this,y(o,84));return;case 9:!this.g&&(this.g=new zr(Ia,this,9,10)),Kn(this.g),!this.g&&(this.g=new zr(Ia,this,9,10)),rs(this.g,y(o,18));return;case 10:!this.e&&(this.e=new zr(Ia,this,10,9)),Kn(this.e),!this.e&&(this.e=new zr(Ia,this,10,9)),rs(this.e,y(o,18));return;case 11:bLe(this,di(o));return}HLe(this,n,o)},"rxd"),x.fi=i(function(){return Ac(),wee},"sxd"),x.hi=i(function(n){switch(n){case 1:DC(this,0);return;case 2:IC(this,0);return;case 3:LC(this,0);return;case 4:_C(this,0);return;case 5:!this.a&&(this.a=new Es(qf,this,5)),Kn(this.a);return;case 6:A$t(this,null);return;case 7:RX(this,null);return;case 8:AX(this,null);return;case 9:!this.g&&(this.g=new zr(Ia,this,9,10)),Kn(this.g);return;case 10:!this.e&&(this.e=new zr(Ia,this,10,9)),Kn(this.e);return;case 11:bLe(this,null);return}OLe(this,n)},"txd"),x.Ib=i(function(){return $Ft(this)},"uxd"),x.b=0,x.c=0,x.d=null,x.j=0,x.k=0;var jFi=j(ww,"ElkEdgeSectionImpl",443);G(161,118,{109:1,94:1,93:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),x.Ih=i(function(n,o,u){var p;return n==0?(!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab):fd(this,n-On(this.fi()),Nr((p=y(an(this,16),29),p||this.fi()),n),o,u)},"yxd"),x.Ph=i(function(n,o,u){var p,g;return o==0?(!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u)):(g=y(Nr((p=y(an(this,16),29),p||this.fi()),o),69),g.uk().xk(this,Nu(this),o-On(this.fi()),n,u))},"zxd"),x.Rh=i(function(n,o,u){var p,g;return o==0?(!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u)):(g=y(Nr((p=y(an(this,16),29),p||this.fi()),o),69),g.uk().yk(this,Nu(this),o-On(this.fi()),n,u))},"Axd"),x.Th=i(function(n){var o;return n==0?!!this.Ab&&this.Ab.i!=0:hd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"Bxd"),x.Wh=i(function(n){return ZIe(this,n)},"Cxd"),x.$h=i(function(n,o){var u;if(n===0){!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return}bd(this,n-On(this.fi()),Nr((u=y(an(this,16),29),u||this.fi()),n),o)},"Dxd"),x.ai=i(function(n){n6(this,128,n)},"Exd"),x.fi=i(function(){return Dr(),zir},"Fxd"),x.hi=i(function(n){var o;if(n===0){!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return}yd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"Gxd"),x.mi=i(function(){this.Bb|=1},"Hxd"),x.ni=i(function(n){return $I(this,n)},"Ixd"),x.Bb=0;var zFi=j(Qr,"EModelElementImpl",161);G(710,161,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},QSe),x.oi=i(function(n,o){return tzt(this,n,o)},"Vxd"),x.pi=i(function(n){var o,u,p,g,w;if(this.a!=Nf(n)||(n.Bb&256)!=0)throw xe(new rn(Age+n.zb+uT));for(p=Ol(n);Pc(p.a).i!=0;){if(u=y(uG(p,0,(o=y(je(Pc(p.a),0),87),w=o.c,Ge(w,88)?y(w,29):(Dr(),up))),29),Yx(u))return g=Nf(u).ti().pi(u),y(g,52)._h(n),g;p=Ol(u)}return(n.D!=null?n.D:n.B)=="java.util.Map$Entry"?new s8t(n):new F8e(n)},"Wxd"),x.qi=i(function(n,o){return tT(this,n,o)},"Xxd"),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.a}return fd(this,n-On((Dr(),Jv)),Nr((p=y(an(this,16),29),p||Jv),n),o,u)},"Yxd"),x.Ph=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 1:return this.a&&(u=y(this.a,52).Qh(this,4,Ag,u)),o_e(this,y(n,241),u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),Jv)),o),69),g.uk().xk(this,Nu(this),o-On((Dr(),Jv)),n,u)},"Zxd"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 1:return o_e(this,null,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),Jv)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),Jv)),n,u)},"$xd"),x.Th=i(function(n){var o;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return hd(this,n-On((Dr(),Jv)),Nr((o=y(an(this,16),29),o||Jv),n))},"_xd"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:gBt(this,y(o,241));return}bd(this,n-On((Dr(),Jv)),Nr((u=y(an(this,16),29),u||Jv),n),o)},"ayd"),x.fi=i(function(){return Dr(),Jv},"byd"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:gBt(this,null);return}yd(this,n-On((Dr(),Jv)),Nr((o=y(an(this,16),29),o||Jv),n))},"cyd");var PN,lWe,Cir,UFi=j(Qr,"EFactoryImpl",710);G(1019,710,{109:1,2078:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},Sbt),x.oi=i(function(n,o){switch(n.fk()){case 12:return y(o,147).Og();case 13:return zl(o);default:throw xe(new rn(PR+n.ve()+uT))}},"fyd"),x.pi=i(function(n){var o,u,p,g,w,k,A,D;switch(n.G==-1&&(n.G=(o=Nf(n),o?Xy(o.si(),n):-1)),n.G){case 4:return w=new qSe,w;case 6:return k=new JD,k;case 7:return A=new V5e,A;case 8:return p=new noe,p;case 9:return u=new EH,u;case 10:return g=new SH,g;case 11:return D=new Abt,D;default:throw xe(new rn(Age+n.zb+uT))}},"gyd"),x.qi=i(function(n,o){switch(n.fk()){case 13:case 12:return null;default:throw xe(new rn(PR+n.ve()+uT))}},"hyd");var VFi=j(ww,"ElkGraphFactoryImpl",1019);G(439,161,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),x.Dh=i(function(){var n,o;return o=(n=y(an(this,16),29),$7e(Q0(n||this.fi()))),o==null?(u9(),u9(),ebe):new S6t(this,o)},"lyd"),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.ve()}return fd(this,n-On(this.fi()),Nr((p=y(an(this,16),29),p||this.fi()),n),o,u)},"myd"),x.Th=i(function(n){var o;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return hd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"nyd"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:this.ri(di(o));return}bd(this,n-On(this.fi()),Nr((u=y(an(this,16),29),u||this.fi()),n),o)},"oyd"),x.fi=i(function(){return Dr(),Uir},"pyd"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:this.ri(null);return}yd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"qyd"),x.ve=i(function(){return this.zb},"ryd"),x.ri=i(function(n){wu(this,n)},"syd"),x.Ib=i(function(){return dI(this)},"tyd"),x.zb=null;var WFi=j(Qr,"ENamedElementImpl",439);G(184,439,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},tRt),x.xh=i(function(n){return SPt(this,n)},"azd"),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,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 Gk(this,Rg,this)),this.rb;case 6:return!this.vb&&(this.vb=new D5(Ag,this,6,7)),this.vb;case 7:return o?this.Db>>16==7?y(this.Cb,241):null:ORt(this)}return fd(this,n-On((Dr(),mb)),Nr((p=y(an(this,16),29),p||mb),n),o,u)},"bzd"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 4:return this.sb&&(u=y(this.sb,52).Qh(this,1,ON,u)),h_e(this,y(n,469),u);case 5:return!this.rb&&(this.rb=new Gk(this,Rg,this)),xu(this.rb,n,u);case 6:return!this.vb&&(this.vb=new D5(Ag,this,6,7)),xu(this.vb,n,u);case 7:return this.Cb&&(u=(g=this.Db>>16,g>=0?SPt(this,u):this.Cb.Qh(this,-1-g,null,u))),$f(this,n,7,u)}return w=y(Nr((p=y(an(this,16),29),p||(Dr(),mb)),o),69),w.uk().xk(this,Nu(this),o-On((Dr(),mb)),n,u)},"czd"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 4:return h_e(this,null,u);case 5:return!this.rb&&(this.rb=new Gk(this,Rg,this)),qo(this.rb,n,u);case 6:return!this.vb&&(this.vb=new D5(Ag,this,6,7)),qo(this.vb,n,u);case 7:return $f(this,null,7,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),mb)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),mb)),n,u)},"dzd"),x.Th=i(function(n){var o;switch(n){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!!ORt(this)}return hd(this,n-On((Dr(),mb)),Nr((o=y(an(this,16),29),o||mb),n))},"ezd"),x.Wh=i(function(n){var o;return o=fwn(this,n),o||ZIe(this,n)},"fzd"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:wu(this,di(o));return;case 2:NX(this,di(o));return;case 3:MX(this,di(o));return;case 4:xfe(this,y(o,469));return;case 5:!this.rb&&(this.rb=new Gk(this,Rg,this)),Kn(this.rb),!this.rb&&(this.rb=new Gk(this,Rg,this)),rs(this.rb,y(o,18));return;case 6:!this.vb&&(this.vb=new D5(Ag,this,6,7)),Kn(this.vb),!this.vb&&(this.vb=new D5(Ag,this,6,7)),rs(this.vb,y(o,18));return}bd(this,n-On((Dr(),mb)),Nr((u=y(an(this,16),29),u||mb),n),o)},"gzd"),x.bi=i(function(n){var o,u;if(n&&this.rb)for(u=new Sn(this.rb);u.e!=u.i.gc();)o=_n(u),Ge(o,360)&&(y(o,360).w=null);n6(this,64,n)},"hzd"),x.fi=i(function(){return Dr(),mb},"izd"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:wu(this,null);return;case 2:NX(this,null);return;case 3:MX(this,null);return;case 4:xfe(this,null);return;case 5:!this.rb&&(this.rb=new Gk(this,Rg,this)),Kn(this.rb);return;case 6:!this.vb&&(this.vb=new D5(Ag,this,6,7)),Kn(this.vb);return}yd(this,n-On((Dr(),mb)),Nr((o=y(an(this,16),29),o||mb),n))},"jzd"),x.mi=i(function(){afe(this)},"kzd"),x.si=i(function(){return!this.rb&&(this.rb=new Gk(this,Rg,this)),this.rb},"lzd"),x.ti=i(function(){return this.sb},"mzd"),x.ui=i(function(){return this.ub},"nzd"),x.vi=i(function(){return this.xb},"ozd"),x.wi=i(function(){return this.yb},"pzd"),x.xi=i(function(n){this.ub=n},"qzd"),x.Ib=i(function(){var n;return(this.Db&64)!=0?dI(this):(n=new Hd(dI(this)),n.a+=" (nsURI: ",ml(n,this.yb),n.a+=", nsPrefix: ",ml(n,this.xb),n.a+=")",n.a)},"rzd"),x.xb=null,x.yb=null;var Eir,HFi=j(Qr,"EPackageImpl",184);G(556,184,{109:1,2080:1,556:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},qFt),x.q=!1,x.r=!1;var Sir=!1,qFi=j(ww,"ElkGraphPackageImpl",556);G(362,728,{109:1,343:1,174:1,157:1,276:1,362:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},qSe),x.xh=i(function(n){return pDe(this,n)},"Ezd"),x.Ih=i(function(n,o,u){switch(n){case 7:return V7e(this);case 8:return this.a}return S_e(this,n,o,u)},"Fzd"),x.Ph=i(function(n,o,u){var p;return o===7?(this.Cb&&(u=(p=this.Db>>16,p>=0?pDe(this,u):this.Cb.Qh(this,-1-p,null,u))),K8e(this,y(n,174),u)):mfe(this,n,o,u)},"Gzd"),x.Rh=i(function(n,o,u){return o==7?K8e(this,null,u):Zue(this,n,o,u)},"Hzd"),x.Th=i(function(n){switch(n){case 7:return!!V7e(this);case 8:return!Cr("",this.a)}return I_e(this,n)},"Izd"),x.$h=i(function(n,o){switch(n){case 7:J9e(this,y(o,174));return;case 8:gLe(this,di(o));return}ADe(this,n,o)},"Jzd"),x.fi=i(function(){return Ac(),aWe},"Kzd"),x.hi=i(function(n){switch(n){case 7:J9e(this,null);return;case 8:gLe(this,"");return}P_e(this,n)},"Lzd"),x.Ib=i(function(){return NBt(this)},"Mzd"),x.a="";var YFi=j(ww,"ElkLabelImpl",362);G(206,729,{109:1,343:1,84:1,174:1,26:1,276:1,206:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},JD),x.xh=i(function(n){return bDe(this,n)},"Xzd"),x.Ih=i(function(n,o,u){switch(n){case 9:return!this.c&&(this.c=new xt(rf,this,9,9)),this.c;case 10:return!this.a&&(this.a=new xt(Ti,this,10,11)),this.a;case 11:return $a(this);case 12:return!this.b&&(this.b=new xt(Cs,this,12,3)),this.b;case 13:return qr(),!this.a&&(this.a=new xt(Ti,this,10,11)),this.a.i>0}return rDe(this,n,o,u)},"Yzd"),x.Ph=i(function(n,o,u){var p;switch(o){case 9:return!this.c&&(this.c=new xt(rf,this,9,9)),xu(this.c,n,u);case 10:return!this.a&&(this.a=new xt(Ti,this,10,11)),xu(this.a,n,u);case 11:return this.Cb&&(u=(p=this.Db>>16,p>=0?bDe(this,u):this.Cb.Qh(this,-1-p,null,u))),l8e(this,y(n,26),u);case 12:return!this.b&&(this.b=new xt(Cs,this,12,3)),xu(this.b,n,u)}return wDe(this,n,o,u)},"Zzd"),x.Rh=i(function(n,o,u){switch(o){case 9:return!this.c&&(this.c=new xt(rf,this,9,9)),qo(this.c,n,u);case 10:return!this.a&&(this.a=new xt(Ti,this,10,11)),qo(this.a,n,u);case 11:return l8e(this,null,u);case 12:return!this.b&&(this.b=new xt(Cs,this,12,3)),qo(this.b,n,u)}return xDe(this,n,o,u)},"$zd"),x.Th=i(function(n){switch(n){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!$a(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new xt(Ti,this,10,11)),this.a.i>0}return WLe(this,n)},"_zd"),x.$h=i(function(n,o){switch(n){case 9:!this.c&&(this.c=new xt(rf,this,9,9)),Kn(this.c),!this.c&&(this.c=new xt(rf,this,9,9)),rs(this.c,y(o,18));return;case 10:!this.a&&(this.a=new xt(Ti,this,10,11)),Kn(this.a),!this.a&&(this.a=new xt(Ti,this,10,11)),rs(this.a,y(o,18));return;case 11:$K(this,y(o,26));return;case 12:!this.b&&(this.b=new xt(Cs,this,12,3)),Kn(this.b),!this.b&&(this.b=new xt(Cs,this,12,3)),rs(this.b,y(o,18));return}N9e(this,n,o)},"aAd"),x.fi=i(function(){return Ac(),sWe},"bAd"),x.hi=i(function(n){switch(n){case 9:!this.c&&(this.c=new xt(rf,this,9,9)),Kn(this.c);return;case 10:!this.a&&(this.a=new xt(Ti,this,10,11)),Kn(this.a);return;case 11:$K(this,null);return;case 12:!this.b&&(this.b=new xt(Cs,this,12,3)),Kn(this.b);return}J_e(this,n)},"cAd"),x.Ib=i(function(){return dIe(this)},"dAd");var XFi=j(ww,"ElkNodeImpl",206);G(193,729,{109:1,343:1,84:1,174:1,125:1,276:1,193:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},V5e),x.xh=i(function(n){return gDe(this,n)},"kAd"),x.Ih=i(function(n,o,u){return n==9?qg(this):rDe(this,n,o,u)},"lAd"),x.Ph=i(function(n,o,u){var p;return o===9?(this.Cb&&(u=(p=this.Db>>16,p>=0?gDe(this,u):this.Cb.Qh(this,-1-p,null,u))),ZAe(this,y(n,26),u)):wDe(this,n,o,u)},"mAd"),x.Rh=i(function(n,o,u){return o==9?ZAe(this,null,u):xDe(this,n,o,u)},"nAd"),x.Th=i(function(n){return n==9?!!qg(this):WLe(this,n)},"oAd"),x.$h=i(function(n,o){if(n===9){H9e(this,y(o,26));return}N9e(this,n,o)},"pAd"),x.fi=i(function(){return Ac(),oWe},"qAd"),x.hi=i(function(n){if(n===9){H9e(this,null);return}J_e(this,n)},"rAd"),x.Ib=i(function(){return EGt(this)},"sAd");var KFi=j(ww,"ElkPortImpl",193),Air=za(Yo,"BasicEMap/Entry");G(1092,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,117:1,118:1},Abt),x.Fb=i(function(n){return this===n},"BAd"),x.jd=i(function(){return this.b},"DAd"),x.Hb=i(function(){return Sx(this)},"FAd"),x.Ai=i(function(n){mLe(this,y(n,147))},"HAd"),x.Ih=i(function(n,o,u){switch(n){case 0:return this.b;case 1:return this.c}return fK(this,n,o,u)},"wAd"),x.Th=i(function(n){switch(n){case 0:return!!this.b;case 1:return this.c!=null}return jhe(this,n)},"xAd"),x.$h=i(function(n,o){switch(n){case 0:mLe(this,y(o,147));return;case 1:fLe(this,o);return}Afe(this,n,o)},"yAd"),x.fi=i(function(){return Ac(),s1},"zAd"),x.hi=i(function(n){switch(n){case 0:mLe(this,null);return;case 1:fLe(this,null);return}Cfe(this,n)},"AAd"),x.yi=i(function(){var n;return this.a==-1&&(n=this.b,this.a=n?Aa(n):0),this.a},"CAd"),x.kd=i(function(){return this.c},"EAd"),x.zi=i(function(n){this.a=n},"GAd"),x.ld=i(function(n){var o;return o=this.c,fLe(this,n),o},"IAd"),x.Ib=i(function(){var n;return(this.Db&64)!=0?zp(this):(n=new Yb,Li(Li(Li(n,this.b?this.b.Og():Qu),lpe),_9(this.c)),n.a)},"JAd"),x.a=-1,x.c=null;var fb=j(ww,"ElkPropertyToValueMapEntryImpl",1092);G(981,1,{},Rbt);var JFi=j(Co,"JsonAdapter",981);G(215,63,H1,j0);var QFi=j(Co,"JsonImportException",215);G(851,1,{},zFt);var ZFi=j(Co,"JsonImporter",851);G(885,1,{},wSt),x.Bi=i(function(n){PPt(this.a,this.b,y(n,139))},"uCd");var e$i=j(Co,"JsonImporter/lambda$0$Type",885);G(886,1,{},xSt),x.Bi=i(function(n){vFt(this.a,this.b,y(n,139))},"wCd");var t$i=j(Co,"JsonImporter/lambda$1$Type",886);G(894,1,{},Jkt),x.Bi=i(function(n){I7t(this.a,y(n,149))},"yCd");var r$i=j(Co,"JsonImporter/lambda$10$Type",894);G(896,1,{},TSt),x.Bi=i(function(n){sFt(this.a,this.b,y(n,139))},"ACd");var n$i=j(Co,"JsonImporter/lambda$11$Type",896);G(897,1,{},kSt),x.Bi=i(function(n){oFt(this.a,this.b,y(n,139))},"CCd");var i$i=j(Co,"JsonImporter/lambda$12$Type",897);G(903,1,{},z7t),x.Bi=i(function(n){_Bt(this.a,this.b,this.c,this.d,y(n,139))},"ECd");var a$i=j(Co,"JsonImporter/lambda$13$Type",903);G(902,1,{},U7t),x.Bi=i(function(n){HGt(this.a,this.b,this.c,this.d,y(n,149))},"GCd");var s$i=j(Co,"JsonImporter/lambda$14$Type",902);G(898,1,{},CSt),x.Bi=i(function(n){iAt(this.a,this.b,di(n))},"ICd");var o$i=j(Co,"JsonImporter/lambda$15$Type",898);G(899,1,{},ESt),x.Bi=i(function(n){aAt(this.a,this.b,di(n))},"KCd");var l$i=j(Co,"JsonImporter/lambda$16$Type",899);G(900,1,{},SSt),x.Bi=i(function(n){yPt(this.b,this.a,y(n,139))},"MCd");var c$i=j(Co,"JsonImporter/lambda$17$Type",900);G(901,1,{},ASt),x.Bi=i(function(n){bPt(this.b,this.a,y(n,139))},"OCd");var u$i=j(Co,"JsonImporter/lambda$18$Type",901);G(906,1,{},Qkt),x.Bi=i(function(n){xBt(this.a,y(n,149))},"QCd");var h$i=j(Co,"JsonImporter/lambda$19$Type",906);G(887,1,{},Zkt),x.Bi=i(function(n){LPt(this.a,y(n,139))},"SCd");var f$i=j(Co,"JsonImporter/lambda$2$Type",887);G(904,1,{},e3t),x.Bi=i(function(n){DC(this.a,He(Xe(n)))},"UCd");var d$i=j(Co,"JsonImporter/lambda$20$Type",904);G(905,1,{},t3t),x.Bi=i(function(n){IC(this.a,He(Xe(n)))},"WCd");var p$i=j(Co,"JsonImporter/lambda$21$Type",905);G(909,1,{},r3t),x.Bi=i(function(n){wBt(this.a,y(n,149))},"YCd");var g$i=j(Co,"JsonImporter/lambda$22$Type",909);G(907,1,{},n3t),x.Bi=i(function(n){LC(this.a,He(Xe(n)))},"$Cd");var m$i=j(Co,"JsonImporter/lambda$23$Type",907);G(908,1,{},i3t),x.Bi=i(function(n){_C(this.a,He(Xe(n)))},"aDd");var y$i=j(Co,"JsonImporter/lambda$24$Type",908);G(911,1,{},a3t),x.Bi=i(function(n){qPt(this.a,y(n,139))},"cDd");var b$i=j(Co,"JsonImporter/lambda$25$Type",911);G(910,1,{},s3t),x.Bi=i(function(n){M7t(this.a,y(n,149))},"eDd");var v$i=j(Co,"JsonImporter/lambda$26$Type",910);G(912,1,xn,RSt),x.Ad=i(function(n){hun(this.b,this.a,di(n))},"gDd");var w$i=j(Co,"JsonImporter/lambda$27$Type",912);G(913,1,xn,LSt),x.Ad=i(function(n){fun(this.b,this.a,di(n))},"iDd");var x$i=j(Co,"JsonImporter/lambda$28$Type",913);G(914,1,{},_St),x.Bi=i(function(n){t$t(this.a,this.b,y(n,139))},"kDd");var T$i=j(Co,"JsonImporter/lambda$29$Type",914);G(890,1,{},o3t),x.Bi=i(function(n){WNt(this.a,y(n,149))},"mDd");var k$i=j(Co,"JsonImporter/lambda$3$Type",890);G(915,1,{},DSt),x.Bi=i(function(n){k$t(this.a,this.b,y(n,139))},"oDd");var C$i=j(Co,"JsonImporter/lambda$30$Type",915);G(916,1,{},l3t),x.Bi=i(function(n){h9t(this.a,Xe(n))},"qDd");var E$i=j(Co,"JsonImporter/lambda$31$Type",916);G(917,1,{},c3t),x.Bi=i(function(n){p9t(this.a,Xe(n))},"sDd");var S$i=j(Co,"JsonImporter/lambda$32$Type",917);G(918,1,{},u3t),x.Bi=i(function(n){f9t(this.a,Xe(n))},"uDd");var A$i=j(Co,"JsonImporter/lambda$33$Type",918);G(919,1,{},h3t),x.Bi=i(function(n){d9t(this.a,Xe(n))},"wDd");var R$i=j(Co,"JsonImporter/lambda$34$Type",919);G(920,1,{},f3t),x.Bi=i(function(n){cyn(this.a,y(n,57))},"yDd");var L$i=j(Co,"JsonImporter/lambda$35$Type",920);G(921,1,{},d3t),x.Bi=i(function(n){uyn(this.a,y(n,57))},"ADd");var _$i=j(Co,"JsonImporter/lambda$36$Type",921);G(925,1,{},j7t);var D$i=j(Co,"JsonImporter/lambda$37$Type",925);G(922,1,xn,DAt),x.Ad=i(function(n){$hn(this.a,this.c,this.b,y(n,372))},"EDd");var I$i=j(Co,"JsonImporter/lambda$38$Type",922);G(923,1,xn,ISt),x.Ad=i(function(n){CZr(this.a,this.b,y(n,170))},"GDd");var M$i=j(Co,"JsonImporter/lambda$39$Type",923);G(888,1,{},p3t),x.Bi=i(function(n){DC(this.a,He(Xe(n)))},"IDd");var N$i=j(Co,"JsonImporter/lambda$4$Type",888);G(924,1,xn,MSt),x.Ad=i(function(n){EZr(this.a,this.b,y(n,170))},"KDd");var O$i=j(Co,"JsonImporter/lambda$40$Type",924);G(926,1,xn,IAt),x.Ad=i(function(n){Ghn(this.a,this.b,this.c,y(n,8))},"MDd");var P$i=j(Co,"JsonImporter/lambda$41$Type",926);G(889,1,{},g3t),x.Bi=i(function(n){IC(this.a,He(Xe(n)))},"ODd");var B$i=j(Co,"JsonImporter/lambda$5$Type",889);G(893,1,{},m3t),x.Bi=i(function(n){HNt(this.a,y(n,149))},"QDd");var F$i=j(Co,"JsonImporter/lambda$6$Type",893);G(891,1,{},y3t),x.Bi=i(function(n){LC(this.a,He(Xe(n)))},"SDd");var $$i=j(Co,"JsonImporter/lambda$7$Type",891);G(892,1,{},b3t),x.Bi=i(function(n){_C(this.a,He(Xe(n)))},"UDd");var G$i=j(Co,"JsonImporter/lambda$8$Type",892);G(895,1,{},v3t),x.Bi=i(function(n){YPt(this.a,y(n,139))},"WDd");var j$i=j(Co,"JsonImporter/lambda$9$Type",895);G(945,1,xn,w3t),x.Ad=i(function(n){$5(this.a,new zk(di(n)))},"eEd");var z$i=j(Co,"JsonMetaDataConverter/lambda$0$Type",945);G(946,1,xn,x3t),x.Ad=i(function(n){van(this.a,y(n,244))},"gEd");var U$i=j(Co,"JsonMetaDataConverter/lambda$1$Type",946);G(947,1,xn,T3t),x.Ad=i(function(n){fon(this.a,y(n,144))},"iEd");var V$i=j(Co,"JsonMetaDataConverter/lambda$2$Type",947);G(948,1,xn,k3t),x.Ad=i(function(n){wan(this.a,y(n,160))},"kEd");var W$i=j(Co,"JsonMetaDataConverter/lambda$3$Type",948);G(244,24,{3:1,35:1,24:1,244:1},C5);var xee,Tee,qye,kee,Cee,Eee,Yye,Xye,See=qn(SG,"GraphFeature",244,ii,Vun,Qnn),Rir;G(11,1,{35:1,147:1},ia,Da,br,To),x.Dd=i(function(n){return Sen(this,y(n,147))},"GEd"),x.Fb=i(function(n){return dRt(this,n)},"HEd"),x.Rg=i(function(){return Vt(this)},"IEd"),x.Og=i(function(){return this.b},"JEd"),x.Hb=i(function(){return Vy(this.b)},"KEd"),x.Ib=i(function(){return this.b},"LEd");var H$i=j(SG,"Property",11);G(657,1,Di,boe),x.Le=i(function(n,o){return ipn(this,y(n,105),y(o,105))},"OEd"),x.Fb=i(function(n){return this===n},"PEd"),x.Me=i(function(){return new Ci(this)},"QEd");var q$i=j(SG,"PropertyHolderComparator",657);G(698,1,fo,L5e),x.Nb=i(function(n){So(this,n)},"gFd"),x.Pb=i(function(){return pun(this)},"iFd"),x.Qb=i(function(){bCt()},"jFd"),x.Ob=i(function(){return!!this.a},"hFd");var Y$i=j(XJ,"ElkGraphUtil/AncestorIterator",698),cWe=za(Yo,"EList");G(71,56,{20:1,31:1,56:1,18:1,16:1,71:1,61:1}),x._c=i(function(n,o){mI(this,n,o)},"yFd"),x.Ec=i(function(n){return Zn(this,n)},"zFd"),x.ad=i(function(n,o){return BLe(this,n,o)},"AFd"),x.Fc=i(function(n){return rs(this,n)},"BFd"),x.Gi=i(function(){return new _5(this)},"CFd"),x.Hi=i(function(){return new AF(this)},"DFd"),x.Ii=i(function(n){return y$(this,n)},"EFd"),x.Ji=i(function(){return!0},"FFd"),x.Ki=i(function(n,o){},"GFd"),x.Li=i(function(){},"HFd"),x.Mi=i(function(n,o){wue(this,n,o)},"IFd"),x.Ni=i(function(n,o,u){},"JFd"),x.Oi=i(function(n,o){},"KFd"),x.Pi=i(function(n,o,u){},"LFd"),x.Fb=i(function(n){return lGt(this,n)},"MFd"),x.Hb=i(function(){return MLe(this)},"NFd"),x.Qi=i(function(){return!1},"OFd"),x.Jc=i(function(){return new Sn(this)},"PFd"),x.cd=i(function(){return new L5(this)},"QFd"),x.dd=i(function(n){var o;if(o=this.gc(),n<0||n>o)throw xe(new Pk(n,o));return new Ace(this,n)},"RFd"),x.Si=i(function(n,o){this.Ri(n,this.bd(o))},"SFd"),x.Kc=i(function(n){return pX(this,n)},"TFd"),x.Ui=i(function(n,o){return o},"UFd"),x.fd=i(function(n,o){return FC(this,n,o)},"VFd"),x.Ib=i(function(){return __e(this)},"WFd"),x.Wi=i(function(){return!0},"XFd"),x.Xi=i(function(n,o){return N7(this,o)},"YFd");var X$i=j(Yo,"AbstractEList",71);G(67,71,sm,AH,Fx,SLe),x.Ci=i(function(n,o){return yfe(this,n,o)},"qGd"),x.Di=i(function(n){return QOt(this,n)},"rGd"),x.Ei=i(function(n,o){_$(this,n,o)},"sGd"),x.Fi=i(function(n){t$(this,n)},"tGd"),x.Yi=i(function(n){return GRe(this,n)},"uGd"),x.$b=i(function(){Q9(this)},"vGd"),x.Gc=i(function(n){return K7(this,n)},"wGd"),x.Xb=i(function(n){return je(this,n)},"xGd"),x.Zi=i(function(n){var o,u,p;++this.j,u=this.g==null?0:this.g.length,n>u&&(p=this.g,o=u+(u/2|0)+4,o<n&&(o=n),this.g=this.$i(o),p!=null&&$c(p,0,this.g,0,this.i))},"yGd"),x.bd=i(function(n){return xPt(this,n)},"zGd"),x.dc=i(function(){return this.i==0},"AGd"),x.Ri=i(function(n,o){return _fe(this,n,o)},"BGd"),x.$i=i(function(n){return tt(Fs,Fr,1,n,5,1)},"CGd"),x.Ti=i(function(n){return this.g[n]},"DGd"),x.ed=i(function(n){return s6(this,n)},"EGd"),x.Vi=i(function(n,o){return _ue(this,n,o)},"FGd"),x.gc=i(function(){return this.i},"GGd"),x.Nc=i(function(){return cRe(this)},"HGd"),x.Oc=i(function(n){return B_e(this,n)},"IGd"),x.i=0;var uWe=j(Yo,"BasicEList",67),hWe=za(Yo,"TreeIterator");G(697,67,Fge),x.Nb=i(function(n){So(this,n)},"MGd"),x.Ob=i(function(){return this.g==null&&!this.c?U7e(this):this.g==null||this.i!=0&&y(this.g[this.i-1],50).Ob()},"NGd"),x.Pb=i(function(){return OK(this)},"OGd"),x.Qb=i(function(){if(!this.e)throw xe(new El("There is no valid object to remove."));this.e.Qb()},"PGd"),x.c=!1;var K$i=j(Yo,"AbstractTreeIterator",697);G(605,697,Fge,Mle),x._i=i(function(n){var o;return o=y(n,57).Dh().Jc(),Ge(o,287)&&y(o,287).ul(new Lbt),o},"RGd");var J$i=j(XJ,"ElkGraphUtil/PropertiesSkippingTreeIterator",605);G(949,1,{},Lbt);var Q$i=j(XJ,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",949),nz,Kye,iz=j(XJ,"ElkReflect",null);G(883,1,L3,_bt),x.Qg=i(function(n){return UY(),Jon(y(n,182))},"_Gd");var Z$i=j(XJ,"ElkReflect/lambda$0$Type",883),$w,eGi=za(Yo,"ResourceLocator");G(1046,1,{});var tGi=j(Yo,"DelegatingResourceLocator",1046);G(1047,1046,{});var rGi=j("org.eclipse.emf.common","EMFPlugin",1047),Jye=za(_Ht,"Adapter"),ASn=za(_Ht,"Notification");G(1144,1,SPe),x.aj=i(function(){return this.d},"kHd"),x.bj=i(function(n){},"lHd"),x.cj=i(function(n){this.d=n},"mHd"),x.dj=i(function(n){this.d==n&&(this.d=null)},"nHd"),x.d=null;var nGi=j(S6,"AdapterImpl",1144);G(2058,71,DHt),x.Ci=i(function(n,o){return N_e(this,n,o)},"uHd"),x.Di=i(function(n){var o,u,p;if(++this.j,n.dc())return!1;for(o=this.Cj(),p=n.Jc();p.Ob();)u=p.Pb(),this.pj(this.Xi(o,u)),++o;return!0},"vHd"),x.Ei=i(function(n,o){$6t(this,n,o)},"wHd"),x.Fi=i(function(n){h7t(this,n)},"xHd"),x.nj=i(function(){return this.qj()},"yHd"),x.$b=i(function(){_F(this,this.Cj(),this.Dj())},"zHd"),x.Gc=i(function(n){return this.sj(n)},"AHd"),x.Hc=i(function(n){return this.tj(n)},"BHd"),x.oj=i(function(n,o){this.zj().Sm()},"CHd"),x.pj=i(function(n){this.zj().Sm()},"DHd"),x.qj=i(function(){return this.zj()},"EHd"),x.rj=i(function(){this.zj().Sm()},"FHd"),x.sj=i(function(n){return this.zj().Sm()},"GHd"),x.tj=i(function(n){return this.zj().Sm()},"HHd"),x.uj=i(function(n){return this.zj().Sm()},"IHd"),x.vj=i(function(n){return this.zj().Sm()},"JHd"),x.wj=i(function(){return this.zj().Sm()},"KHd"),x.xj=i(function(n){return this.zj().Sm()},"LHd"),x.yj=i(function(){return this.zj().Sm()},"MHd"),x.Aj=i(function(n){return this.zj().Sm()},"NHd"),x.Bj=i(function(n,o){return this.zj().Sm()},"OHd"),x.Cj=i(function(){return this.zj().Sm()},"PHd"),x.Dj=i(function(){return this.zj().Sm()},"QHd"),x.Ej=i(function(n){return this.zj().Sm()},"RHd"),x.Fj=i(function(){return this.zj().Sm()},"SHd"),x.Fb=i(function(n){return this.uj(n)},"THd"),x.Xb=i(function(n){return this.Ui(n,this.vj(n))},"UHd"),x.Hb=i(function(){return this.wj()},"VHd"),x.bd=i(function(n){return this.xj(n)},"WHd"),x.dc=i(function(){return this.yj()},"XHd"),x.Ri=i(function(n,o){return qDe(this,n,o)},"YHd"),x.Ti=i(function(n){return this.vj(n)},"ZHd"),x.ed=i(function(n){return oY(this,n)},"$Hd"),x.Kc=i(function(n){var o;return o=this.bd(n),o>=0?(this.ed(o),!0):!1},"_Hd"),x.Vi=i(function(n,o){return this.Bj(n,this.Xi(n,o))},"aId"),x.gc=i(function(){return this.Cj()},"bId"),x.Nc=i(function(){return this.Dj()},"cId"),x.Oc=i(function(n){return this.Ej(n)},"dId"),x.Ib=i(function(){return this.Fj()},"eId");var iGi=j(Yo,"DelegatingEList",2058);G(2059,2058,DHt),x.Ci=i(function(n,o){return AIe(this,n,o)},"mId"),x.Di=i(function(n){return this.Ci(this.Cj(),n)},"nId"),x.Ei=i(function(n,o){YFt(this,n,o)},"oId"),x.Fi=i(function(n){BFt(this,n)},"pId"),x.Ji=i(function(){return!this.Kj()},"qId"),x.$b=i(function(){WI(this)},"rId"),x.Gj=i(function(n,o,u,p,g){return new hRt(this,n,o,u,p,g)},"sId"),x.Hj=i(function(n){Qi(this.hj(),n)},"tId"),x.Ij=i(function(){return null},"uId"),x.Jj=i(function(){return-1},"vId"),x.hj=i(function(){return null},"wId"),x.Kj=i(function(){return!1},"xId"),x.Lj=i(function(n,o){return o},"yId"),x.Mj=i(function(n,o){return o},"zId"),x.Nj=i(function(){return!1},"AId"),x.Oj=i(function(){return!this.yj()},"BId"),x.Ri=i(function(n,o){var u,p;return this.Nj()?(p=this.Oj(),u=qDe(this,n,o),this.Hj(this.Gj(7,Et(o),u,n,p)),u):qDe(this,n,o)},"CId"),x.ed=i(function(n){var o,u,p,g;return this.Nj()?(u=null,p=this.Oj(),o=this.Gj(4,g=oY(this,n),null,n,p),this.Kj()&&g?(u=this.Mj(g,u),u?(u.lj(o),u.mj()):this.Hj(o)):u?(u.lj(o),u.mj()):this.Hj(o),g):(g=oY(this,n),this.Kj()&&g&&(u=this.Mj(g,null),u&&u.mj()),g)},"DId"),x.Vi=i(function(n,o){return ijt(this,n,o)},"EId");var aGi=j(S6,"DelegatingNotifyingListImpl",2059);G(151,1,UG),x.lj=i(function(n){return IDe(this,n)},"eJd"),x.mj=i(function(){Sue(this)},"fJd"),x.ej=i(function(){return this.d},"gJd"),x.Ij=i(function(){return null},"hJd"),x.Pj=i(function(){return null},"iJd"),x.fj=i(function(n){return-1},"jJd"),x.gj=i(function(){return U$t(this)},"kJd"),x.hj=i(function(){return null},"lJd"),x.ij=i(function(){return rIe(this)},"mJd"),x.jj=i(function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},"nJd"),x.Qj=i(function(){return!1},"oJd"),x.kj=i(function(n){var o,u,p,g,w,k,A,D,M,F,z;switch(this.d){case 1:case 2:switch(g=n.ej(),g){case 1:case 2:if(w=n.hj(),Qe(w)===Qe(this.hj())&&this.fj(null)==n.fj(null))return this.g=n.gj(),n.ej()==1&&(this.d=1),!0}case 4:{switch(g=n.ej(),g){case 4:{if(w=n.hj(),Qe(w)===Qe(this.hj())&&this.fj(null)==n.fj(null))return M=WIe(this),D=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,k=n.jj(),this.d=6,z=new Fx(2),D<=k?(Zn(z,this.n),Zn(z,n.ij()),this.g=Se(Ee(pi,1),Pi,30,15,[this.o=D,k+1])):(Zn(z,n.ij()),Zn(z,this.n),this.g=Se(Ee(pi,1),Pi,30,15,[this.o=k,D])),this.n=z,M||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(g=n.ej(),g){case 4:{if(w=n.hj(),Qe(w)===Qe(this.hj())&&this.fj(null)==n.fj(null)){for(M=WIe(this),k=n.jj(),F=y(this.g,54),p=tt(pi,Pi,30,F.length+1,15,1),o=0;o<F.length&&(A=F[o],A<=k);)p[o++]=A,++k;for(u=y(this.n,16),u._c(o,n.ij()),p[o]=k;++o<p.length;)p[o]=F[o-1];return this.g=p,M||(this.o=-2-p[0]),!0}break}}break}}return!1},"pJd"),x.Ib=i(function(){var n,o,u,p;switch(p=new Hd(j2(this.Pm)+"@"+(o=Aa(this)>>>0,o.toString(16))),p.a+=" (eventType: ",this.d){case 1:{p.a+="SET";break}case 2:{p.a+="UNSET";break}case 3:{p.a+="ADD";break}case 5:{p.a+="ADD_MANY";break}case 4:{p.a+="REMOVE";break}case 6:{p.a+="REMOVE_MANY";break}case 7:{p.a+="MOVE";break}case 8:{p.a+="REMOVING_ADAPTER";break}case 9:{p.a+="RESOLVE";break}default:{Goe(p,this.d);break}}if(DGt(this)&&(p.a+=", touch: true"),p.a+=", position: ",Goe(p,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),p.a+=", notifier: ",C9(p,this.hj()),p.a+=", feature: ",C9(p,this.Ij()),p.a+=", oldValue: ",C9(p,rIe(this)),p.a+=", newValue: ",this.d==6&&Ge(this.g,54)){for(u=y(this.g,54),p.a+="[",n=0;n<u.length;)p.a+=u[n],++n<u.length&&(p.a+=Tu);p.a+="]"}else C9(p,U$t(this));return p.a+=", isTouch: ",Iy(p,DGt(this)),p.a+=", wasSet: ",Iy(p,WIe(this)),p.a+=")",p.a},"qJd"),x.d=0,x.e=0,x.f=0,x.j=0,x.k=0,x.o=0,x.p=0;var sGi=j(S6,"NotificationImpl",151);G(1158,151,UG,hRt),x.Ij=i(function(){return this.a.Ij()},"sJd"),x.fj=i(function(n){return this.a.Jj()},"tJd"),x.hj=i(function(){return this.a.hj()},"uJd");var oGi=j(S6,"DelegatingNotifyingListImpl/1",1158);G(252,67,sm,Dbt,Xb),x.Ec=i(function(n){return VNt(this,y(n,373))},"yJd"),x.lj=i(function(n){return VNt(this,n)},"zJd"),x.mj=i(function(){var n,o,u;for(n=0;n<this.i;++n)o=y(this.g[n],373),u=o.hj(),u!=null&&o.ej()!=-1&&y(u,94).uh(o)},"AJd"),x.$i=i(function(n){return tt(ASn,Fr,373,n,0,1)},"BJd");var lGi=j(S6,"NotificationChainImpl",252);G(1486,93,zWt),x.rh=i(function(){return this.e},"CJd"),x.th=i(function(){return(this.f&1)!=0},"DJd"),x.f=1;var cGi=j(S6,"NotifierImpl",1486);G(2056,67,sm),x.Ci=i(function(n,o){return Kfe(this,n,o)},"PJd"),x.Di=i(function(n){return this.Ci(this.i,n)},"QJd"),x.Ei=i(function(n,o){E9e(this,n,o)},"RJd"),x.Fi=i(function(n){Dfe(this,n)},"SJd"),x.Ji=i(function(){return!this.Kj()},"TJd"),x.$b=i(function(){Kn(this)},"UJd"),x.Gj=i(function(n,o,u,p,g){return new fRt(this,n,o,u,p,g)},"VJd"),x.Hj=i(function(n){Qi(this.hj(),n)},"WJd"),x.Ij=i(function(){return null},"XJd"),x.Jj=i(function(){return-1},"YJd"),x.hj=i(function(){return null},"ZJd"),x.Kj=i(function(){return!1},"$Jd"),x.Rj=i(function(){return!1},"_Jd"),x.Lj=i(function(n,o){return o},"aKd"),x.Mj=i(function(n,o){return o},"bKd"),x.Nj=i(function(){return!1},"cKd"),x.Oj=i(function(){return this.i!=0},"dKd"),x.Ri=i(function(n,o){return yI(this,n,o)},"eKd"),x.ed=i(function(n){return g3(this,n)},"fKd"),x.Vi=i(function(n,o){return Tjt(this,n,o)},"gKd"),x.Sj=i(function(n,o){return o},"hKd"),x.Tj=i(function(n,o){return o},"iKd"),x.Uj=i(function(n,o,u){return u},"jKd");var uGi=j(S6,"NotifyingListImpl",2056);G(1157,151,UG,fRt),x.Ij=i(function(){return this.a.Ij()},"lKd"),x.fj=i(function(n){return this.a.Jj()},"mKd"),x.hj=i(function(){return this.a.hj()},"nKd");var hGi=j(S6,"NotifyingListImpl/1",1157);G(950,67,sm,j6t),x.Gc=i(function(n){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new Bk(this),this.a=this.j),Wd(this.b,n)):K7(this,n)},"pKd"),x.Wi=i(function(){return!0},"qKd"),x.a=0;var fGi=j(Yo,"AbstractEList/1",950);G(306,99,cJ,Pk);var dGi=j(Yo,"AbstractEList/BasicIndexOutOfBoundsException",306);G(42,1,fo,Sn),x.Nb=i(function(n){So(this,n)},"xKd"),x.Vj=i(function(){if(this.i.j!=this.f)throw xe(new od)},"vKd"),x.Wj=i(function(){return _n(this)},"wKd"),x.Ob=i(function(){return this.e!=this.i.gc()},"yKd"),x.Pb=i(function(){return this.Wj()},"zKd"),x.Qb=i(function(){AI(this)},"AKd"),x.e=0,x.f=0,x.g=-1;var pGi=j(Yo,"AbstractEList/EIterator",42);G(286,42,Hm,L5,Ace),x.Qb=i(function(){AI(this)},"MKd"),x.Rb=i(function(n){eOt(this,n)},"FKd"),x.Xj=i(function(){var n;try{return n=this.d.Xb(--this.e),this.Vj(),this.g=this.e,n}catch(o){throw o=hs(o),Ge(o,99)?(this.Vj(),xe(new Hl)):xe(o)}},"GKd"),x.Yj=i(function(n){ZOt(this,n)},"HKd"),x.Sb=i(function(){return this.e!=0},"IKd"),x.Tb=i(function(){return this.e},"JKd"),x.Ub=i(function(){return this.Xj()},"KKd"),x.Vb=i(function(){return this.e-1},"LKd"),x.Wb=i(function(n){this.Yj(n)},"NKd");var gGi=j(Yo,"AbstractEList/EListIterator",286);G(355,42,fo,_5),x.Wj=i(function(){return zhe(this)},"QKd"),x.Qb=i(function(){throw xe(new hi)},"RKd");var mGi=j(Yo,"AbstractEList/NonResolvingEIterator",355);G(391,286,Hm,AF,m8e),x.Rb=i(function(n){throw xe(new hi)},"UKd"),x.Wj=i(function(){var n;try{return n=this.c.Ti(this.e),this.Vj(),this.g=this.e++,n}catch(o){throw o=hs(o),Ge(o,99)?(this.Vj(),xe(new Hl)):xe(o)}},"VKd"),x.Xj=i(function(){var n;try{return n=this.c.Ti(--this.e),this.Vj(),this.g=this.e,n}catch(o){throw o=hs(o),Ge(o,99)?(this.Vj(),xe(new Hl)):xe(o)}},"WKd"),x.Qb=i(function(){throw xe(new hi)},"XKd"),x.Wb=i(function(n){throw xe(new hi)},"YKd");var yGi=j(Yo,"AbstractEList/NonResolvingEListIterator",391);G(2045,71,IHt),x.Ci=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee;if(g=o.gc(),g!=0){for(M=y(an(this.a,4),129),F=M==null?0:M.length,ee=F+g,p=fhe(this,ee),z=F-n,z>0&&$c(M,n,p,n+g,z),D=o.Jc(),k=0;k<g;++k)A=D.Pb(),u=n+k,Ole(p,u,N7(this,A));for(q7(this,p),w=0;w<g;++w)A=p[n],this.Ki(n,A),++n;return!0}else return++this.j,!1},"eLd"),x.Di=i(function(n){var o,u,p,g,w,k,A,D,M;if(p=n.gc(),p!=0){for(D=(u=y(an(this.a,4),129),u==null?0:u.length),M=D+p,o=fhe(this,M),A=n.Jc(),w=D;w<M;++w)k=A.Pb(),Ole(o,w,N7(this,k));for(q7(this,o),g=D;g<M;++g)k=o[g],this.Ki(g,k);return!0}else return++this.j,!1},"fLd"),x.Ei=i(function(n,o){var u,p,g,w;p=y(an(this.a,4),129),g=p==null?0:p.length,u=fhe(this,g+1),w=N7(this,o),n!=g&&$c(p,n,u,n+1,g-n),as(u,n,w),q7(this,u),this.Ki(n,o)},"gLd"),x.Fi=i(function(n){var o,u,p;p=(u=y(an(this.a,4),129),u==null?0:u.length),o=fhe(this,p+1),Ole(o,p,N7(this,n)),q7(this,o),this.Ki(p,n)},"hLd"),x.Gi=i(function(){return new P_t(this)},"iLd"),x.Hi=i(function(){return new W8t(this)},"jLd"),x.Ii=i(function(n){var o,u;if(u=(o=y(an(this.a,4),129),o==null?0:o.length),n<0||n>u)throw xe(new Pk(n,u));return new k7t(this,n)},"kLd"),x.$b=i(function(){var n,o;++this.j,n=y(an(this.a,4),129),o=n==null?0:n.length,q7(this,null),wue(this,o,n)},"lLd"),x.Gc=i(function(n){var o,u,p,g,w;if(o=y(an(this.a,4),129),o!=null){if(n!=null){for(p=o,g=0,w=p.length;g<w;++g)if(u=p[g],ta(n,u))return!0}else for(p=o,g=0,w=p.length;g<w;++g)if(u=p[g],Qe(u)===Qe(n))return!0}return!1},"mLd"),x.Xb=i(function(n){var o,u;if(o=y(an(this.a,4),129),u=o==null?0:o.length,n>=u)throw xe(new Pk(n,u));return o[n]},"nLd"),x.bd=i(function(n){var o,u,p;if(o=y(an(this.a,4),129),o!=null){if(n!=null){for(u=0,p=o.length;u<p;++u)if(ta(n,o[u]))return u}else for(u=0,p=o.length;u<p;++u)if(Qe(o[u])===Qe(n))return u}return-1},"oLd"),x.dc=i(function(){return y(an(this.a,4),129)==null},"pLd"),x.Jc=i(function(){return new O_t(this)},"qLd"),x.cd=i(function(){return new V8t(this)},"rLd"),x.dd=i(function(n){var o,u;if(u=(o=y(an(this.a,4),129),o==null?0:o.length),n<0||n>u)throw xe(new Pk(n,u));return new T7t(this,n)},"sLd"),x.Ri=i(function(n,o){var u,p,g;if(u=aOt(this),g=u==null?0:u.length,n>=g)throw xe(new yu(Pge+n+xw+g));if(o>=g)throw xe(new yu(Bge+o+xw+g));return p=u[o],n!=o&&(n<o?$c(u,n,u,n+1,o-n):$c(u,o+1,u,o,n-o),as(u,n,p),q7(this,u)),p},"tLd"),x.Ti=i(function(n){return y(an(this.a,4),129)[n]},"uLd"),x.ed=i(function(n){return fvn(this,n)},"vLd"),x.Vi=i(function(n,o){var u,p;return u=aOt(this),p=u[n],Ole(u,n,N7(this,o)),q7(this,u),p},"wLd"),x.gc=i(function(){var n;return n=y(an(this.a,4),129),n==null?0:n.length},"xLd"),x.Nc=i(function(){var n,o,u;return n=y(an(this.a,4),129),u=n==null?0:n.length,o=tt(Jye,zge,415,u,0,1),u>0&&$c(n,0,o,0,u),o},"yLd"),x.Oc=i(function(n){var o,u,p;return o=y(an(this.a,4),129),p=o==null?0:o.length,p>0&&(n.length<p&&(u=m$(mf(n).c,p),n=u),$c(o,0,n,0,p)),n.length>p&&as(n,p,null),n},"zLd");var Lir,bGi=j(Yo,"ArrayDelegatingEList",2045);G(1033,42,fo,O_t),x.Vj=i(function(){if(this.b.j!=this.f||Qe(y(an(this.b.a,4),129))!==Qe(this.a))throw xe(new od)},"BLd"),x.Qb=i(function(){AI(this),this.a=y(an(this.b.a,4),129)},"CLd");var vGi=j(Yo,"ArrayDelegatingEList/EIterator",1033);G(712,286,Hm,V8t,T7t),x.Vj=i(function(){if(this.b.j!=this.f||Qe(y(an(this.b.a,4),129))!==Qe(this.a))throw xe(new od)},"GLd"),x.Yj=i(function(n){ZOt(this,n),this.a=y(an(this.b.a,4),129)},"HLd"),x.Qb=i(function(){AI(this),this.a=y(an(this.b.a,4),129)},"ILd");var wGi=j(Yo,"ArrayDelegatingEList/EListIterator",712);G(1034,355,fo,P_t),x.Vj=i(function(){if(this.b.j!=this.f||Qe(y(an(this.b.a,4),129))!==Qe(this.a))throw xe(new od)},"KLd");var xGi=j(Yo,"ArrayDelegatingEList/NonResolvingEIterator",1034);G(713,391,Hm,W8t,k7t),x.Vj=i(function(){if(this.b.j!=this.f||Qe(y(an(this.b.a,4),129))!==Qe(this.a))throw xe(new od)},"OLd");var TGi=j(Yo,"ArrayDelegatingEList/NonResolvingEListIterator",713);G(606,306,cJ,Rle);var kGi=j(Yo,"BasicEList/BasicIndexOutOfBoundsException",606);G(699,67,sm,nAe),x._c=i(function(n,o){throw xe(new hi)},"RLd"),x.Ec=i(function(n){throw xe(new hi)},"SLd"),x.ad=i(function(n,o){throw xe(new hi)},"TLd"),x.Fc=i(function(n){throw xe(new hi)},"ULd"),x.$b=i(function(){throw xe(new hi)},"VLd"),x.Zi=i(function(n){throw xe(new hi)},"WLd"),x.Jc=i(function(){return this.Gi()},"XLd"),x.cd=i(function(){return this.Hi()},"YLd"),x.dd=i(function(n){return this.Ii(n)},"ZLd"),x.Ri=i(function(n,o){throw xe(new hi)},"$Ld"),x.Si=i(function(n,o){throw xe(new hi)},"_Ld"),x.ed=i(function(n){throw xe(new hi)},"aMd"),x.Kc=i(function(n){throw xe(new hi)},"bMd"),x.fd=i(function(n,o){throw xe(new hi)},"cMd");var CGi=j(Yo,"BasicEList/UnmodifiableEList",699);G(711,1,{3:1,20:1,18:1,16:1,61:1,587:1}),x._c=i(function(n,o){gen(this,n,y(o,45))},"DMd"),x.Ec=i(function(n){return atn(this,y(n,45))},"EMd"),x.Ic=i(function(n){Io(this,n)},"MMd"),x.Xb=i(function(n){return y(je(this.c,n),136)},"NMd"),x.Ri=i(function(n,o){return y(this.c.Ri(n,o),45)},"WMd"),x.Si=i(function(n,o){men(this,n,y(o,45))},"XMd"),x.ed=i(function(n){return y(this.c.ed(n),45)},"$Md"),x.fd=i(function(n,o){return yan(this,n,y(o,45))},"aNd"),x.gd=i(function(n){nw(this,n)},"cNd"),x.Lc=i(function(){return new Rr(this,16)},"dNd"),x.Mc=i(function(){return new Er(null,new Rr(this,16))},"eNd"),x.ad=i(function(n,o){return this.c.ad(n,o)},"FMd"),x.Fc=i(function(n){return this.c.Fc(n)},"GMd"),x.$b=i(function(){this.c.$b()},"HMd"),x.Gc=i(function(n){return this.c.Gc(n)},"IMd"),x.Hc=i(function(n){return E$(this.c,n)},"JMd"),x.Zj=i(function(){var n,o,u;if(this.d==null){for(this.d=tt(uWe,APe,67,2*this.f+1,0,1),u=this.e,this.f=0,o=this.c.Jc();o.e!=o.i.gc();)n=y(o.Wj(),136),gK(this,n);this.e=u}},"KMd"),x.Fb=i(function(n){return wAt(this,n)},"LMd"),x.Hb=i(function(){return MLe(this.c)},"OMd"),x.bd=i(function(n){return this.c.bd(n)},"PMd"),x.$j=i(function(){this.c=new E3t(this)},"QMd"),x.dc=i(function(){return this.f==0},"RMd"),x.Jc=i(function(){return this.c.Jc()},"SMd"),x.cd=i(function(){return this.c.cd()},"TMd"),x.dd=i(function(n){return this.c.dd(n)},"UMd"),x._j=i(function(){return i$(this)},"VMd"),x.ak=i(function(n,o,u){return new MAt(n,o,u)},"YMd"),x.bk=i(function(){return new Mbt},"ZMd"),x.Kc=i(function(n){return cIt(this,n)},"_Md"),x.gc=i(function(){return this.f},"bNd"),x.hd=i(function(n,o){return new sv(this.c,n,o)},"fNd"),x.Nc=i(function(){return this.c.Nc()},"gNd"),x.Oc=i(function(n){return this.c.Oc(n)},"hNd"),x.Ib=i(function(){return __e(this.c)},"iNd"),x.e=0,x.f=0;var EGi=j(Yo,"BasicEMap",711);G(1028,67,sm,E3t),x.Ki=i(function(n,o){qJr(this,y(o,136))},"nNd"),x.Ni=i(function(n,o,u){var p;++(p=this,y(o,136),p).a.e},"pNd"),x.Oi=i(function(n,o){YJr(this,y(o,136))},"qNd"),x.Pi=i(function(n,o,u){zen(this,y(o,136),y(u,136))},"rNd"),x.Mi=i(function(n,o){ZIt(this.a)},"oNd");var SGi=j(Yo,"BasicEMap/1",1028);G(1029,67,sm,Mbt),x.$i=i(function(n){return tt(RSn,MHt,612,n,0,1)},"tNd");var AGi=j(Yo,"BasicEMap/2",1029);G(1030,i0,bh,S3t),x.$b=i(function(){this.a.c.$b()},"vNd"),x.Gc=i(function(n){return _he(this.a,n)},"wNd"),x.Jc=i(function(){return this.a.f==0?(r7(),az.a):new lCt(this.a)},"xNd"),x.Kc=i(function(n){var o;return o=this.a.f,aK(this.a,n),this.a.f!=o},"yNd"),x.gc=i(function(){return this.a.f},"zNd");var RGi=j(Yo,"BasicEMap/3",1030);G(1031,31,v3,A3t),x.$b=i(function(){this.a.c.$b()},"BNd"),x.Gc=i(function(n){return cGt(this.a,n)},"CNd"),x.Jc=i(function(){return this.a.f==0?(r7(),az.a):new cCt(this.a)},"DNd"),x.gc=i(function(){return this.a.f},"ENd");var LGi=j(Yo,"BasicEMap/4",1031);G(1032,i0,bh,R3t),x.$b=i(function(){this.a.c.$b()},"HNd"),x.Gc=i(function(n){var o,u,p,g,w,k,A,D,M;if(this.a.f>0&&Ge(n,45)&&(this.a.Zj(),D=y(n,45),A=D.jd(),g=A==null?0:Aa(A),w=t8e(this.a,g),o=this.a.d[w],o)){for(u=y(o.g,374),M=o.i,k=0;k<M;++k)if(p=u[k],p.yi()==g&&p.Fb(D))return!0}return!1},"INd"),x.Jc=i(function(){return this.a.f==0?(r7(),az.a):new zce(this.a)},"JNd"),x.Kc=i(function(n){return ZFt(this,n)},"KNd"),x.gc=i(function(){return this.a.f},"LNd");var _Gi=j(Yo,"BasicEMap/5",1032);G(613,1,fo,zce),x.Nb=i(function(n){So(this,n)},"ONd"),x.Ob=i(function(){return this.b!=-1},"PNd"),x.Pb=i(function(){var n;if(this.f.e!=this.c)throw xe(new od);if(this.b==-1)throw xe(new Hl);return this.d=this.a,this.e=this.b,NPt(this),n=y(this.f.d[this.d].g[this.e],136),this.ck(n)},"QNd"),x.Qb=i(function(){if(this.f.e!=this.c)throw xe(new od);if(this.e==-1)throw xe(new hh);this.f.c.Kc(je(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},"RNd"),x.ck=i(function(n){return n},"SNd"),x.a=0,x.b=-1,x.c=0,x.d=0,x.e=0;var DGi=j(Yo,"BasicEMap/BasicEMapIterator",613);G(1026,613,fo,lCt),x.ck=i(function(n){return n.jd()},"UNd");var IGi=j(Yo,"BasicEMap/BasicEMapKeyIterator",1026);G(1027,613,fo,cCt),x.ck=i(function(n){return n.kd()},"WNd");var MGi=j(Yo,"BasicEMap/BasicEMapValueIterator",1027);G(1025,1,rT,L3t),x.wc=i(function(n){v$(this,n)},"cOd"),x.$b=i(function(){this.a.c.$b()},"ZNd"),x._b=i(function(n){return USt(this,n)},"$Nd"),x.uc=i(function(n){return cGt(this.a,n)},"_Nd"),x.vc=i(function(){return qcn(this.a)},"aOd"),x.Fb=i(function(n){return wAt(this.a,n)},"bOd"),x.xc=i(function(n){return bg(this.a,n)},"dOd"),x.Hb=i(function(){return MLe(this.a.c)},"eOd"),x.dc=i(function(){return this.a.f==0},"fOd"),x.ec=i(function(){return Ycn(this.a)},"gOd"),x.yc=i(function(n,o){return U$(this.a,n,o)},"hOd"),x.Ac=i(function(n){return aK(this.a,n)},"iOd"),x.gc=i(function(){return this.a.f},"jOd"),x.Ib=i(function(){return __e(this.a.c)},"kOd"),x.Bc=i(function(){return Xcn(this.a)},"lOd");var NGi=j(Yo,"BasicEMap/DelegatingMap",1025);G(612,1,{45:1,136:1,612:1},MAt),x.Fb=i(function(n){var o;return Ge(n,45)?(o=y(n,45),(this.b!=null?ta(this.b,o.jd()):Qe(this.b)===Qe(o.jd()))&&(this.c!=null?ta(this.c,o.kd()):Qe(this.c)===Qe(o.kd()))):!1},"nOd"),x.yi=i(function(){return this.a},"oOd"),x.jd=i(function(){return this.b},"pOd"),x.kd=i(function(){return this.c},"qOd"),x.Hb=i(function(){return this.a^(this.c==null?0:Aa(this.c))},"rOd"),x.zi=i(function(n){this.a=n},"sOd"),x.Ai=i(function(n){throw xe(new $2)},"tOd"),x.ld=i(function(n){var o;return o=this.c,this.c=n,o},"uOd"),x.Ib=i(function(){return this.b+"->"+this.c},"vOd"),x.a=0;var RSn=j(Yo,"BasicEMap/EntryImpl",612);G(535,1,{},RH);var OGi=j(Yo,"BasicEMap/View",535),az;G(770,1,{}),x.Fb=i(function(n){return O9e((Ir(),Go),n)},"MOd"),x.Hb=i(function(){return VLe((Ir(),Go))},"NOd"),x.Ib=i(function(){return r0((Ir(),Go))},"OOd");var PGi=j(Yo,"ECollections/BasicEmptyUnmodifiableEList",770);G(1303,1,Hm,Ibt),x.Nb=i(function(n){So(this,n)},"ROd"),x.Rb=i(function(n){throw xe(new hi)},"QOd"),x.Ob=i(function(){return!1},"SOd"),x.Sb=i(function(){return!1},"TOd"),x.Pb=i(function(){throw xe(new Hl)},"UOd"),x.Tb=i(function(){return 0},"VOd"),x.Ub=i(function(){throw xe(new Hl)},"WOd"),x.Vb=i(function(){return-1},"XOd"),x.Qb=i(function(){throw xe(new hi)},"YOd"),x.Wb=i(function(n){throw xe(new hi)},"ZOd");var BGi=j(Yo,"ECollections/BasicEmptyUnmodifiableEList/1",1303);G(1301,770,{20:1,18:1,16:1,61:1},y4t),x._c=i(function(n,o){MCt()},"_Od"),x.Ec=i(function(n){return ICt()},"aPd"),x.ad=i(function(n,o){return NCt()},"bPd"),x.Fc=i(function(n){return OCt()},"cPd"),x.$b=i(function(){PCt()},"dPd"),x.Gc=i(function(n){return!1},"ePd"),x.Hc=i(function(n){return!1},"fPd"),x.Ic=i(function(n){Io(this,n)},"gPd"),x.Xb=i(function(n){return oAe((Ir(),n)),null},"hPd"),x.bd=i(function(n){return-1},"iPd"),x.dc=i(function(){return!0},"jPd"),x.Jc=i(function(){return this.a},"kPd"),x.cd=i(function(){return this.a},"lPd"),x.dd=i(function(n){return this.a},"mPd"),x.Ri=i(function(n,o){return BCt()},"nPd"),x.Si=i(function(n,o){FCt()},"oPd"),x.ed=i(function(n){return $Ct()},"pPd"),x.Kc=i(function(n){return GCt()},"qPd"),x.fd=i(function(n,o){return jCt()},"rPd"),x.gc=i(function(){return 0},"sPd"),x.gd=i(function(n){nw(this,n)},"tPd"),x.Lc=i(function(){return new Rr(this,16)},"uPd"),x.Mc=i(function(){return new Er(null,new Rr(this,16))},"vPd"),x.hd=i(function(n,o){return Ir(),new sv(Go,n,o)},"wPd"),x.Nc=i(function(){return e7e((Ir(),Go))},"xPd"),x.Oc=i(function(n){return Ir(),kI(Go,n)},"yPd");var FGi=j(Yo,"ECollections/EmptyUnmodifiableEList",1301);G(1302,770,{20:1,18:1,16:1,61:1,587:1},b4t),x._c=i(function(n,o){MCt()},"APd"),x.Ec=i(function(n){return ICt()},"BPd"),x.ad=i(function(n,o){return NCt()},"CPd"),x.Fc=i(function(n){return OCt()},"DPd"),x.$b=i(function(){PCt()},"EPd"),x.Gc=i(function(n){return!1},"FPd"),x.Hc=i(function(n){return!1},"GPd"),x.Ic=i(function(n){Io(this,n)},"HPd"),x.Xb=i(function(n){return oAe((Ir(),n)),null},"IPd"),x.bd=i(function(n){return-1},"JPd"),x.dc=i(function(){return!0},"KPd"),x.Jc=i(function(){return this.a},"LPd"),x.cd=i(function(){return this.a},"MPd"),x.dd=i(function(n){return this.a},"NPd"),x.Ri=i(function(n,o){return BCt()},"PPd"),x.Si=i(function(n,o){FCt()},"QPd"),x.ed=i(function(n){return $Ct()},"RPd"),x.Kc=i(function(n){return GCt()},"SPd"),x.fd=i(function(n,o){return jCt()},"TPd"),x.gc=i(function(){return 0},"UPd"),x.gd=i(function(n){nw(this,n)},"VPd"),x.Lc=i(function(){return new Rr(this,16)},"WPd"),x.Mc=i(function(){return new Er(null,new Rr(this,16))},"XPd"),x.hd=i(function(n,o){return Ir(),new sv(Go,n,o)},"YPd"),x.Nc=i(function(){return e7e((Ir(),Go))},"ZPd"),x.Oc=i(function(n){return Ir(),kI(Go,n)},"$Pd"),x._j=i(function(){return Ir(),Ir(),Qm},"OPd");var $Gi=j(Yo,"ECollections/EmptyUnmodifiableEMap",1302),fWe=za(Yo,"Enumerator"),Aee;G(290,1,{290:1},Gfe),x.Fb=i(function(n){var o;return this===n?!0:Ge(n,290)?(o=y(n,290),this.f==o.f&&Pin(this.i,o.i)&&fce(this.a,(this.f&256)!=0?(o.f&256)!=0?o.a:null:(o.f&256)!=0?null:o.a)&&fce(this.d,o.d)&&fce(this.g,o.g)&&fce(this.e,o.e)&&Ggn(this,o)):!1},"CQd"),x.Hb=i(function(){return this.f},"HQd"),x.Ib=i(function(){return UGt(this)},"PQd"),x.f=0;var _ir=0,Dir=0,Iir=0,Mir=0,dWe=0,pWe=0,gWe=0,mWe=0,yWe=0,Nir,BN=0,FN=0,Oir=0,Pir=0,Ree,bWe,GGi=j(Yo,"URI",290);G(1091,44,KC,v4t),x.yc=i(function(n,o){return y(Al(this,di(n),y(o,290)),290)},"$Qd");var jGi=j(Yo,"URI/URICache",1091);G(492,67,sm,Nbt,mY),x.Qi=i(function(){return!0},"bRd");var zGi=j(Yo,"UniqueEList",492);G(579,63,H1,fX);var UGi=j(Yo,"WrappedException",579),Ni=za(xd,PHt),o4=za(xd,BHt),ih=za(xd,FHt),l4=za(xd,$Ht),Rg=za(xd,GHt),op=za(xd,"EClass"),Qye=za(xd,"EDataType"),Bir;G(1199,44,KC,w4t),x.xc=i(function(n){return lo(n)?Jc(this,n):Yl(Sl(this.f,n))},"hRd");var VGi=j(xd,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1199),Lee=za(xd,"EEnum"),ny=za(xd,jHt),dl=za(xd,zHt),lp=za(xd,UHt),cp,ET=za(xd,VHt),c4=za(xd,WHt);G(Wp,1,{},Obt),x.Ib=i(function(){return"NIL"},"nRd");var WGi=j(xd,"EStructuralFeature/Internal/DynamicValueHolder/1",Wp),Fir;G(1023,44,KC,x4t),x.xc=i(function(n){return lo(n)?Jc(this,n):Yl(Sl(this.f,n))},"sRd");var HGi=j(xd,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1023),Gu=za(xd,HHt),rA=za(xd,"EValidator/PatternMatcher"),vWe,wWe,Xr,db,u4,Xv,$ir,Gir,jir,Kv,pb,Jv,ST,b0,zir,Uir,up,gb,Vir,mb,h4,NE,Zo,Wir,Hir,AT,_ee=za(Na,"FeatureMap/Entry");G(534,1,{75:1},Dq),x.Jk=i(function(){return this.a},"YRd"),x.kd=i(function(){return this.b},"ZRd");var qGi=j(Qr,"BasicEObjectImpl/1",534);G(1022,1,Uge,FSt),x.Dk=i(function(n){return mue(this.a,this.b,n)},"_Rd"),x.Oj=i(function(){return LRt(this.a,this.b)},"aSd"),x.Wb=i(function(n){j7e(this.a,this.b,n)},"bSd"),x.Ek=i(function(){Dan(this.a,this.b)},"cSd");var YGi=j(Qr,"BasicEObjectImpl/4",1022);G(2046,1,{114:1}),x.Kk=i(function(n){this.e=n==0?qir:tt(Fs,Fr,1,n,5,1)},"fSd"),x.ii=i(function(n){return this.e[n]},"gSd"),x.ji=i(function(n,o){this.e[n]=o},"hSd"),x.ki=i(function(n){this.e[n]=null},"iSd"),x.Lk=i(function(){return this.c},"jSd"),x.Mk=i(function(){throw xe(new hi)},"kSd"),x.Nk=i(function(){throw xe(new hi)},"lSd"),x.Ok=i(function(){return this.d},"mSd"),x.Pk=i(function(){return this.e!=null},"nSd"),x.Qk=i(function(n){this.c=n},"oSd"),x.Rk=i(function(n){throw xe(new hi)},"pSd"),x.Sk=i(function(n){throw xe(new hi)},"qSd"),x.Tk=i(function(n){this.d=n},"rSd");var qir,XGi=j(Qr,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2046);G(192,2046,{114:1},cg),x.Mk=i(function(){return this.a},"tSd"),x.Nk=i(function(){return this.b},"uSd"),x.Rk=i(function(n){this.a=n},"vSd"),x.Sk=i(function(n){this.b=n},"wSd");var KGi=j(Qr,"BasicEObjectImpl/EPropertiesHolderImpl",192);G(502,100,HWt,LH),x.rh=i(function(){return this.f},"ySd"),x.wh=i(function(){return this.k},"zSd"),x.yh=i(function(n,o){this.g=n,this.i=o},"ASd"),x.Ah=i(function(){return(this.j&2)==0?this.fi():this.Xh().Lk()},"BSd"),x.Ch=i(function(){return this.i},"CSd"),x.th=i(function(){return(this.j&1)!=0},"DSd"),x.Mh=i(function(){return this.g},"ESd"),x.Sh=i(function(){return(this.j&4)!=0},"FSd"),x.Xh=i(function(){return!this.k&&(this.k=new cg),this.k},"GSd"),x._h=i(function(n){this.Xh().Qk(n),n?this.j|=2:this.j&=-3},"HSd"),x.bi=i(function(n){this.Xh().Sk(n),n?this.j|=4:this.j&=-5},"ISd"),x.fi=i(function(){return(rv(),Xr).S},"JSd"),x.i=0,x.j=1;var JGi=j(Qr,"EObjectImpl",502);G(786,502,{109:1,94:1,93:1,57:1,114:1,52:1,100:1},F8e),x.ii=i(function(n){return this.e[n]},"NSd"),x.ji=i(function(n,o){this.e[n]=o},"OSd"),x.ki=i(function(n){this.e[n]=null},"PSd"),x.Ah=i(function(){return this.d},"QSd"),x.Fh=i(function(n){return ja(this.d,n)},"RSd"),x.Hh=i(function(){return this.d},"SSd"),x.Lh=i(function(){return this.e!=null},"TSd"),x.Xh=i(function(){return!this.k&&(this.k=new Pbt),this.k},"USd"),x._h=i(function(n){this.d=n},"VSd"),x.ei=i(function(){var n;return this.e==null&&(n=On(this.d),this.e=n==0?Yir:tt(Fs,Fr,1,n,5,1)),this},"WSd"),x.gi=i(function(){return 0},"XSd");var Yir,QGi=j(Qr,"DynamicEObjectImpl",786);G(1484,786,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1},s8t),x.Fb=i(function(n){return this===n},"$Sd"),x.Hb=i(function(){return Sx(this)},"cTd"),x._h=i(function(n){this.d=n,this.b=rG(n,"key"),this.c=rG(n,gM)},"ZSd"),x.yi=i(function(){var n;return this.a==-1&&(n=Lue(this,this.b),this.a=n==null?0:Aa(n)),this.a},"_Sd"),x.jd=i(function(){return Lue(this,this.b)},"aTd"),x.kd=i(function(){return Lue(this,this.c)},"bTd"),x.zi=i(function(n){this.a=n},"dTd"),x.Ai=i(function(n){j7e(this,this.b,n)},"eTd"),x.ld=i(function(n){var o;return o=Lue(this,this.c),j7e(this,this.c,n),o},"fTd"),x.a=0;var ZGi=j(Qr,"DynamicEObjectImpl/BasicEMapEntry",1484);G(1485,1,{114:1},Pbt),x.Kk=i(function(n){throw xe(new hi)},"hTd"),x.ii=i(function(n){throw xe(new hi)},"iTd"),x.ji=i(function(n,o){throw xe(new hi)},"jTd"),x.ki=i(function(n){throw xe(new hi)},"kTd"),x.Lk=i(function(){throw xe(new hi)},"lTd"),x.Mk=i(function(){return this.a},"mTd"),x.Nk=i(function(){return this.b},"nTd"),x.Ok=i(function(){return this.c},"oTd"),x.Pk=i(function(){throw xe(new hi)},"pTd"),x.Qk=i(function(n){throw xe(new hi)},"qTd"),x.Rk=i(function(n){this.a=n},"rTd"),x.Sk=i(function(n){this.b=n},"sTd"),x.Tk=i(function(n){this.c=n},"tTd");var eji=j(Qr,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1485);G(505,161,{109:1,94:1,93:1,588:1,158:1,57:1,114:1,52:1,100:1,505:1,161:1,117:1,118:1},YSe),x.xh=i(function(n){return mDe(this,n)},"DTd"),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.d;case 2:return u?(!this.b&&(this.b=new df((Dr(),Zo),mc,this)),this.b):(!this.b&&(this.b=new df((Dr(),Zo),mc,this)),i$(this.b));case 3:return PRt(this);case 4:return!this.a&&(this.a=new Es(Yv,this,4)),this.a;case 5:return!this.c&&(this.c=new wC(Yv,this,5)),this.c}return fd(this,n-On((Dr(),db)),Nr((p=y(an(this,16),29),p||db),n),o,u)},"ETd"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 3:return this.Cb&&(u=(g=this.Db>>16,g>=0?mDe(this,u):this.Cb.Qh(this,-1-g,null,u))),J8e(this,y(n,158),u)}return w=y(Nr((p=y(an(this,16),29),p||(Dr(),db)),o),69),w.uk().xk(this,Nu(this),o-On((Dr(),db)),n,u)},"FTd"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 2:return!this.b&&(this.b=new df((Dr(),Zo),mc,this)),Jq(this.b,n,u);case 3:return J8e(this,null,u);case 4:return!this.a&&(this.a=new Es(Yv,this,4)),qo(this.a,n,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),db)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),db)),n,u)},"GTd"),x.Th=i(function(n){var o;switch(n){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!!PRt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return hd(this,n-On((Dr(),db)),Nr((o=y(an(this,16),29),o||db),n))},"HTd"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:Ein(this,di(o));return;case 2:!this.b&&(this.b=new df((Dr(),Zo),mc,this)),OX(this.b,o);return;case 3:D$t(this,y(o,158));return;case 4:!this.a&&(this.a=new Es(Yv,this,4)),Kn(this.a),!this.a&&(this.a=new Es(Yv,this,4)),rs(this.a,y(o,18));return;case 5:!this.c&&(this.c=new wC(Yv,this,5)),Kn(this.c),!this.c&&(this.c=new wC(Yv,this,5)),rs(this.c,y(o,18));return}bd(this,n-On((Dr(),db)),Nr((u=y(an(this,16),29),u||db),n),o)},"ITd"),x.fi=i(function(){return Dr(),db},"JTd"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:pLe(this,null);return;case 2:!this.b&&(this.b=new df((Dr(),Zo),mc,this)),this.b.c.$b();return;case 3:D$t(this,null);return;case 4:!this.a&&(this.a=new Es(Yv,this,4)),Kn(this.a);return;case 5:!this.c&&(this.c=new wC(Yv,this,5)),Kn(this.c);return}yd(this,n-On((Dr(),db)),Nr((o=y(an(this,16),29),o||db),n))},"KTd"),x.Ib=i(function(){return kNt(this)},"LTd"),x.d=null;var tji=j(Qr,"EAnnotationImpl",505);G(142,711,RPe,gh),x.Ei=i(function(n,o){QZr(this,n,y(o,45))},"RTd"),x.Uk=i(function(n,o){return Xtn(this,y(n,45),o)},"STd"),x.Yi=i(function(n){return y(y(this.c,72).Yi(n),136)},"TTd"),x.Gi=i(function(){return y(this.c,72).Gi()},"UTd"),x.Hi=i(function(){return y(this.c,72).Hi()},"VTd"),x.Ii=i(function(n){return y(this.c,72).Ii(n)},"WTd"),x.Vk=i(function(n,o){return Jq(this,n,o)},"XTd"),x.Dk=i(function(n){return y(this.c,78).Dk(n)},"YTd"),x.$j=i(function(){},"ZTd"),x.Oj=i(function(){return y(this.c,78).Oj()},"$Td"),x.ak=i(function(n,o,u){var p;return p=y(Nf(this.b).ti().pi(this.b),136),p.zi(n),p.Ai(o),p.ld(u),p},"_Td"),x.bk=i(function(){return new D5e(this)},"aUd"),x.Wb=i(function(n){OX(this,n)},"bUd"),x.Ek=i(function(){y(this.c,78).Ek()},"cUd");var rji=j(Na,"EcoreEMap",142);G(169,142,RPe,df),x.Zj=i(function(){var n,o,u,p,g,w;if(this.d==null){for(w=tt(uWe,APe,67,2*this.f+1,0,1),u=this.c.Jc();u.e!=u.i.gc();)o=y(u.Wj(),136),p=o.yi(),g=(p&Ui)%w.length,n=w[g],!n&&(n=w[g]=new D5e(this)),n.Ec(o);this.d=w}},"eUd");var nji=j(Qr,"EAnnotationImpl/1",169);G(293,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,470:1,52:1,100:1,161:1,293:1,117:1,118:1}),x.Ih=i(function(n,o,u){var p,g;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qr(),(this.Bb&256)!=0;case 3:return qr(),(this.Bb&512)!=0;case 4:return Et(this.s);case 5:return Et(this.t);case 6:return qr(),!!this.Hk();case 7:return qr(),g=this.s,g>=1;case 8:return o?Qd(this):this.r;case 9:return this.q}return fd(this,n-On(this.fi()),Nr((p=y(an(this,16),29),p||this.fi()),n),o,u)},"rUd"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 9:return Lce(this,u)}return g=y(Nr((p=y(an(this,16),29),p||this.fi()),o),69),g.uk().yk(this,Nu(this),o-On(this.fi()),n,u)},"sUd"),x.Th=i(function(n){var o,u;switch(n){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.Hk();case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&_x(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&_x(this.q).i==0)}return hd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"tUd"),x.$h=i(function(n,o){var u,p;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:this.ri(di(o));return;case 2:qy(this,Kt(Xt(o)));return;case 3:Yy(this,Kt(Xt(o)));return;case 4:Uy(this,y(o,15).a);return;case 5:this.Xk(y(o,15).a);return;case 8:lw(this,y(o,143));return;case 9:p=t0(this,y(o,87),null),p&&p.mj();return}bd(this,n-On(this.fi()),Nr((u=y(an(this,16),29),u||this.fi()),n),o)},"uUd"),x.fi=i(function(){return Dr(),Hir},"vUd"),x.hi=i(function(n){var o,u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:this.ri(null);return;case 2:qy(this,!0);return;case 3:Yy(this,!0);return;case 4:Uy(this,0);return;case 5:this.Xk(1);return;case 8:lw(this,null);return;case 9:u=t0(this,null,null),u&&u.mj();return}yd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"wUd"),x.mi=i(function(){Qd(this),this.Bb|=1},"xUd"),x.Fk=i(function(){return Qd(this)},"yUd"),x.Gk=i(function(){return this.t},"zUd"),x.Hk=i(function(){var n;return n=this.t,n>1||n==-1},"AUd"),x.Qi=i(function(){return(this.Bb&512)!=0},"BUd"),x.Wk=i(function(n,o){return f_e(this,n,o)},"CUd"),x.Xk=i(function(n){Zk(this,n)},"DUd"),x.Ib=i(function(){return S9e(this)},"EUd"),x.s=0,x.t=1;var iji=j(Qr,"ETypedElementImpl",293);G(451,293,{109:1,94:1,93:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,451:1,293:1,117:1,118:1,682:1}),x.xh=i(function(n){return pPt(this,n)},"VUd"),x.Ih=i(function(n,o,u){var p,g;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qr(),(this.Bb&256)!=0;case 3:return qr(),(this.Bb&512)!=0;case 4:return Et(this.s);case 5:return Et(this.t);case 6:return qr(),!!this.Hk();case 7:return qr(),g=this.s,g>=1;case 8:return o?Qd(this):this.r;case 9:return this.q;case 10:return qr(),(this.Bb&Wp)!=0;case 11:return qr(),(this.Bb&tb)!=0;case 12:return qr(),(this.Bb&x3)!=0;case 13:return this.j;case 14:return rR(this);case 15:return qr(),(this.Bb&vh)!=0;case 16:return qr(),(this.Bb&Z0)!=0;case 17:return Wk(this)}return fd(this,n-On(this.fi()),Nr((p=y(an(this,16),29),p||this.fi()),n),o,u)},"WUd"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 17:return this.Cb&&(u=(g=this.Db>>16,g>=0?pPt(this,u):this.Cb.Qh(this,-1-g,null,u))),$f(this,n,17,u)}return w=y(Nr((p=y(an(this,16),29),p||this.fi()),o),69),w.uk().xk(this,Nu(this),o-On(this.fi()),n,u)},"XUd"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 9:return Lce(this,u);case 17:return $f(this,null,17,u)}return g=y(Nr((p=y(an(this,16),29),p||this.fi()),o),69),g.uk().yk(this,Nu(this),o-On(this.fi()),n,u)},"YUd"),x.Th=i(function(n){var o,u;switch(n){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.Hk();case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&_x(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&_x(this.q).i==0);case 10:return(this.Bb&Wp)==0;case 11:return(this.Bb&tb)!=0;case 12:return(this.Bb&x3)!=0;case 13:return this.j!=null;case 14:return rR(this)!=null;case 15:return(this.Bb&vh)!=0;case 16:return(this.Bb&Z0)!=0;case 17:return!!Wk(this)}return hd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"ZUd"),x.$h=i(function(n,o){var u,p;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:tue(this,di(o));return;case 2:qy(this,Kt(Xt(o)));return;case 3:Yy(this,Kt(Xt(o)));return;case 4:Uy(this,y(o,15).a);return;case 5:this.Xk(y(o,15).a);return;case 8:lw(this,y(o,143));return;case 9:p=t0(this,y(o,87),null),p&&p.mj();return;case 10:G7(this,Kt(Xt(o)));return;case 11:z7(this,Kt(Xt(o)));return;case 12:j7(this,Kt(Xt(o)));return;case 13:aAe(this,di(o));return;case 15:$7(this,Kt(Xt(o)));return;case 16:U7(this,Kt(Xt(o)));return}bd(this,n-On(this.fi()),Nr((u=y(an(this,16),29),u||this.fi()),n),o)},"$Ud"),x.fi=i(function(){return Dr(),Wir},"_Ud"),x.hi=i(function(n){var o,u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:Ge(this.Cb,88)&&f3(Hh(y(this.Cb,88)),4),wu(this,null);return;case 2:qy(this,!0);return;case 3:Yy(this,!0);return;case 4:Uy(this,0);return;case 5:this.Xk(1);return;case 8:lw(this,null);return;case 9:u=t0(this,null,null),u&&u.mj();return;case 10:G7(this,!0);return;case 11:z7(this,!1);return;case 12:j7(this,!1);return;case 13:this.i=null,LX(this,null);return;case 15:$7(this,!1);return;case 16:U7(this,!1);return}yd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"aVd"),x.mi=i(function(){d7(Rl((yh(),Ro),this)),Qd(this),this.Bb|=1},"bVd"),x.nk=i(function(){return this.f},"cVd"),x.gk=i(function(){return rR(this)},"dVd"),x.ok=i(function(){return Wk(this)},"eVd"),x.sk=i(function(){return null},"fVd"),x.Yk=i(function(){return this.k},"gVd"),x.Jj=i(function(){return this.n},"hVd"),x.tk=i(function(){return TK(this)},"iVd"),x.uk=i(function(){var n,o,u,p,g,w,k,A,D;return this.p||(u=Wk(this),(u.i==null&&Q0(u),u.i).length,p=this.sk(),p&&On(Wk(p)),g=Qd(this),k=g.ik(),n=k?(k.i&1)!=0?k==ah?Ja:k==pi?Ls:k==d4?VR:k==po?Ts:k==LT?fT:k==FE?dT:k==xh?A6:SM:k:null,o=rR(this),A=g.gk(),cpn(this),(this.Bb&Z0)!=0&&((w=TDe((yh(),Ro),u))&&w!=this||(w=U5(Rl(Ro,this))))?this.p=new GSt(this,w):this.Hk()?this.$k()?p?(this.Bb&vh)!=0?n?this._k()?this.p=new K2(47,n,this,p):this.p=new K2(5,n,this,p):this._k()?this.p=new rw(46,this,p):this.p=new rw(4,this,p):n?this._k()?this.p=new K2(49,n,this,p):this.p=new K2(7,n,this,p):this._k()?this.p=new rw(48,this,p):this.p=new rw(6,this,p):(this.Bb&vh)!=0?n?n==Cw?this.p=new By(50,Air,this):this._k()?this.p=new By(43,n,this):this.p=new By(1,n,this):this._k()?this.p=new $y(42,this):this.p=new $y(0,this):n?n==Cw?this.p=new By(41,Air,this):this._k()?this.p=new By(45,n,this):this.p=new By(3,n,this):this._k()?this.p=new $y(44,this):this.p=new $y(2,this):Ge(g,159)?n==_ee?this.p=new $y(40,this):(this.Bb&512)!=0?(this.Bb&vh)!=0?n?this.p=new By(9,n,this):this.p=new $y(8,this):n?this.p=new By(11,n,this):this.p=new $y(10,this):(this.Bb&vh)!=0?n?this.p=new By(13,n,this):this.p=new $y(12,this):n?this.p=new By(15,n,this):this.p=new $y(14,this):p?(D=p.t,D>1||D==-1?this._k()?(this.Bb&vh)!=0?n?this.p=new K2(25,n,this,p):this.p=new rw(24,this,p):n?this.p=new K2(27,n,this,p):this.p=new rw(26,this,p):(this.Bb&vh)!=0?n?this.p=new K2(29,n,this,p):this.p=new rw(28,this,p):n?this.p=new K2(31,n,this,p):this.p=new rw(30,this,p):this._k()?(this.Bb&vh)!=0?n?this.p=new K2(33,n,this,p):this.p=new rw(32,this,p):n?this.p=new K2(35,n,this,p):this.p=new rw(34,this,p):(this.Bb&vh)!=0?n?this.p=new K2(37,n,this,p):this.p=new rw(36,this,p):n?this.p=new K2(39,n,this,p):this.p=new rw(38,this,p)):this._k()?(this.Bb&vh)!=0?n?this.p=new By(17,n,this):this.p=new $y(16,this):n?this.p=new By(19,n,this):this.p=new $y(18,this):(this.Bb&vh)!=0?n?this.p=new By(21,n,this):this.p=new $y(20,this):n?this.p=new By(23,n,this):this.p=new $y(22,this):this.Zk()?this._k()?this.p=new OAt(y(g,29),this,p):this.p=new G7e(y(g,29),this,p):Ge(g,159)?n==_ee?this.p=new $y(40,this):(this.Bb&vh)!=0?n?this.p=new R8t(o,A,this,(Mhe(),k==pi?AWe:k==ah?TWe:k==LT?RWe:k==d4?SWe:k==po?EWe:k==FE?LWe:k==xh?kWe:k==Rd?CWe:tbe)):this.p=new W7t(y(g,159),o,A,this):n?this.p=new A8t(o,A,this,(Mhe(),k==pi?AWe:k==ah?TWe:k==LT?RWe:k==d4?SWe:k==po?EWe:k==FE?LWe:k==xh?kWe:k==Rd?CWe:tbe)):this.p=new V7t(y(g,159),o,A,this):this.$k()?p?(this.Bb&vh)!=0?this._k()?this.p=new BAt(y(g,29),this,p):this.p=new R8e(y(g,29),this,p):this._k()?this.p=new PAt(y(g,29),this,p):this.p=new sce(y(g,29),this,p):(this.Bb&vh)!=0?this._k()?this.p=new D6t(y(g,29),this):this.p=new VAe(y(g,29),this):this._k()?this.p=new _6t(y(g,29),this):this.p=new Wle(y(g,29),this):this._k()?p?(this.Bb&vh)!=0?this.p=new FAt(y(g,29),this,p):this.p=new S8e(y(g,29),this,p):(this.Bb&vh)!=0?this.p=new I6t(y(g,29),this):this.p=new UAe(y(g,29),this):p?(this.Bb&vh)!=0?this.p=new $At(y(g,29),this,p):this.p=new A8e(y(g,29),this,p):(this.Bb&vh)!=0?this.p=new L6t(y(g,29),this):this.p=new gY(y(g,29),this)),this.p},"jVd"),x.pk=i(function(){return(this.Bb&Wp)!=0},"kVd"),x.Zk=i(function(){return!1},"lVd"),x.$k=i(function(){return!1},"mVd"),x.qk=i(function(){return(this.Bb&Z0)!=0},"nVd"),x.vk=i(function(){return Due(this)},"oVd"),x._k=i(function(){return!1},"pVd"),x.rk=i(function(){return(this.Bb&vh)!=0},"qVd"),x.al=i(function(n){this.k=n},"rVd"),x.ri=i(function(n){tue(this,n)},"sVd"),x.Ib=i(function(){return HK(this)},"tVd"),x.e=!1,x.n=0;var aji=j(Qr,"EStructuralFeatureImpl",451);G(335,451,{109:1,94:1,93:1,38:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,335:1,161:1,451:1,293:1,117:1,118:1,682:1},Eoe),x.Ih=i(function(n,o,u){var p,g;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qr(),(this.Bb&256)!=0;case 3:return qr(),(this.Bb&512)!=0;case 4:return Et(this.s);case 5:return Et(this.t);case 6:return qr(),!!w9e(this);case 7:return qr(),g=this.s,g>=1;case 8:return o?Qd(this):this.r;case 9:return this.q;case 10:return qr(),(this.Bb&Wp)!=0;case 11:return qr(),(this.Bb&tb)!=0;case 12:return qr(),(this.Bb&x3)!=0;case 13:return this.j;case 14:return rR(this);case 15:return qr(),(this.Bb&vh)!=0;case 16:return qr(),(this.Bb&Z0)!=0;case 17:return Wk(this);case 18:return qr(),(this.Bb&Tc)!=0;case 19:return o?Que(this):K_t(this)}return fd(this,n-On((Dr(),u4)),Nr((p=y(an(this,16),29),p||u4),n),o,u)},"AVd"),x.Th=i(function(n){var o,u;switch(n){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 w9e(this);case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&_x(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&_x(this.q).i==0);case 10:return(this.Bb&Wp)==0;case 11:return(this.Bb&tb)!=0;case 12:return(this.Bb&x3)!=0;case 13:return this.j!=null;case 14:return rR(this)!=null;case 15:return(this.Bb&vh)!=0;case 16:return(this.Bb&Z0)!=0;case 17:return!!Wk(this);case 18:return(this.Bb&Tc)!=0;case 19:return!!K_t(this)}return hd(this,n-On((Dr(),u4)),Nr((o=y(an(this,16),29),o||u4),n))},"BVd"),x.$h=i(function(n,o){var u,p;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:tue(this,di(o));return;case 2:qy(this,Kt(Xt(o)));return;case 3:Yy(this,Kt(Xt(o)));return;case 4:Uy(this,y(o,15).a);return;case 5:yCt(this,y(o,15).a);return;case 8:lw(this,y(o,143));return;case 9:p=t0(this,y(o,87),null),p&&p.mj();return;case 10:G7(this,Kt(Xt(o)));return;case 11:z7(this,Kt(Xt(o)));return;case 12:j7(this,Kt(Xt(o)));return;case 13:aAe(this,di(o));return;case 15:$7(this,Kt(Xt(o)));return;case 16:U7(this,Kt(Xt(o)));return;case 18:Che(this,Kt(Xt(o)));return}bd(this,n-On((Dr(),u4)),Nr((u=y(an(this,16),29),u||u4),n),o)},"CVd"),x.fi=i(function(){return Dr(),u4},"DVd"),x.hi=i(function(n){var o,u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:Ge(this.Cb,88)&&f3(Hh(y(this.Cb,88)),4),wu(this,null);return;case 2:qy(this,!0);return;case 3:Yy(this,!0);return;case 4:Uy(this,0);return;case 5:this.b=0,Zk(this,1);return;case 8:lw(this,null);return;case 9:u=t0(this,null,null),u&&u.mj();return;case 10:G7(this,!0);return;case 11:z7(this,!1);return;case 12:j7(this,!1);return;case 13:this.i=null,LX(this,null);return;case 15:$7(this,!1);return;case 16:U7(this,!1);return;case 18:Che(this,!1);return}yd(this,n-On((Dr(),u4)),Nr((o=y(an(this,16),29),o||u4),n))},"EVd"),x.mi=i(function(){Que(this),d7(Rl((yh(),Ro),this)),Qd(this),this.Bb|=1},"FVd"),x.Hk=i(function(){return w9e(this)},"GVd"),x.Wk=i(function(n,o){return this.b=0,this.a=null,f_e(this,n,o)},"HVd"),x.Xk=i(function(n){yCt(this,n)},"IVd"),x.Ib=i(function(){var n;return(this.Db&64)!=0?HK(this):(n=new Hd(HK(this)),n.a+=" (iD: ",Iy(n,(this.Bb&Tc)!=0),n.a+=")",n.a)},"JVd"),x.b=0;var sji=j(Qr,"EAttributeImpl",335);G(360,439,{109:1,94:1,93:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1}),x.bl=i(function(n){return n.Ah()==this},"$Vd"),x.xh=i(function(n){return ife(this,n)},"_Vd"),x.yh=i(function(n,o){this.w=null,this.Db=o<<16|this.Db&255,this.Cb=n},"aWd"),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Yx(this);case 4:return this.gk();case 5:return this.F;case 6:return o?Nf(this):m7(this);case 7:return!this.A&&(this.A=new fh(Gu,this,7)),this.A}return fd(this,n-On(this.fi()),Nr((p=y(an(this,16),29),p||this.fi()),n),o,u)},"bWd"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 6:return this.Cb&&(u=(g=this.Db>>16,g>=0?ife(this,u):this.Cb.Qh(this,-1-g,null,u))),$f(this,n,6,u)}return w=y(Nr((p=y(an(this,16),29),p||this.fi()),o),69),w.uk().xk(this,Nu(this),o-On(this.fi()),n,u)},"cWd"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 6:return $f(this,null,6,u);case 7:return!this.A&&(this.A=new fh(Gu,this,7)),qo(this.A,n,u)}return g=y(Nr((p=y(an(this,16),29),p||this.fi()),o),69),g.uk().yk(this,Nu(this),o-On(this.fi()),n,u)},"dWd"),x.Th=i(function(n){var o;switch(n){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!!Yx(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!m7(this);case 7:return!!this.A&&this.A.i!=0}return hd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"eWd"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:VY(this,di(o));return;case 2:Ile(this,di(o));return;case 5:cR(this,di(o));return;case 7:!this.A&&(this.A=new fh(Gu,this,7)),Kn(this.A),!this.A&&(this.A=new fh(Gu,this,7)),rs(this.A,y(o,18));return}bd(this,n-On(this.fi()),Nr((u=y(an(this,16),29),u||this.fi()),n),o)},"fWd"),x.fi=i(function(){return Dr(),$ir},"gWd"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:Ge(this.Cb,184)&&(y(this.Cb,184).tb=null),wu(this,null);return;case 2:P7(this,null),C7(this,this.D);return;case 5:cR(this,null);return;case 7:!this.A&&(this.A=new fh(Gu,this,7)),Kn(this.A);return}yd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"hWd"),x.fk=i(function(){var n;return this.G==-1&&(this.G=(n=Nf(this),n?Xy(n.si(),this):-1)),this.G},"iWd"),x.gk=i(function(){return null},"jWd"),x.hk=i(function(){return Nf(this)},"kWd"),x.cl=i(function(){return this.v},"lWd"),x.ik=i(function(){return Yx(this)},"mWd"),x.jk=i(function(){return this.D!=null?this.D:this.B},"nWd"),x.kk=i(function(){return this.F},"oWd"),x.dk=i(function(n){return Xfe(this,n)},"pWd"),x.dl=i(function(n){this.v=n},"qWd"),x.el=i(function(n){OIt(this,n)},"rWd"),x.fl=i(function(n){this.C=n},"sWd"),x.ri=i(function(n){VY(this,n)},"tWd"),x.Ib=i(function(){return tK(this)},"uWd"),x.C=null,x.D=null,x.G=-1;var oji=j(Qr,"EClassifierImpl",360);G(88,360,{109:1,94:1,93:1,29:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,88:1,360:1,161:1,471:1,117:1,118:1,681:1},ZSe),x.bl=i(function(n){return Ptn(this,n.Ah())},"VWd"),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Yx(this);case 4:return null;case 5:return this.F;case 6:return o?Nf(this):m7(this);case 7:return!this.A&&(this.A=new fh(Gu,this,7)),this.A;case 8:return qr(),(this.Bb&256)!=0;case 9:return qr(),(this.Bb&512)!=0;case 10:return Ol(this);case 11:return!this.q&&(this.q=new xt(lp,this,11,10)),this.q;case 12:return HC(this);case 13:return zI(this);case 14:return zI(this),this.r;case 15:return HC(this),this.k;case 16:return c9e(this);case 17:return Zfe(this);case 18:return Q0(this);case 19:return BK(this);case 20:return HC(this),this.o;case 21:return!this.s&&(this.s=new xt(ih,this,21,17)),this.s;case 22:return Pc(this);case 23:return $fe(this)}return fd(this,n-On((Dr(),Xv)),Nr((p=y(an(this,16),29),p||Xv),n),o,u)},"WWd"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 6:return this.Cb&&(u=(g=this.Db>>16,g>=0?ife(this,u):this.Cb.Qh(this,-1-g,null,u))),$f(this,n,6,u);case 11:return!this.q&&(this.q=new xt(lp,this,11,10)),xu(this.q,n,u);case 21:return!this.s&&(this.s=new xt(ih,this,21,17)),xu(this.s,n,u)}return w=y(Nr((p=y(an(this,16),29),p||(Dr(),Xv)),o),69),w.uk().xk(this,Nu(this),o-On((Dr(),Xv)),n,u)},"XWd"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 6:return $f(this,null,6,u);case 7:return!this.A&&(this.A=new fh(Gu,this,7)),qo(this.A,n,u);case 11:return!this.q&&(this.q=new xt(lp,this,11,10)),qo(this.q,n,u);case 21:return!this.s&&(this.s=new xt(ih,this,21,17)),qo(this.s,n,u);case 22:return qo(Pc(this),n,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),Xv)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),Xv)),n,u)},"YWd"),x.Th=i(function(n){var o;switch(n){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!!Yx(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!m7(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&&Pc(this.u.a).i!=0&&!(this.n&&qhe(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return HC(this).i!=0;case 13:return zI(this).i!=0;case 14:return zI(this),this.r.i!=0;case 15:return HC(this),this.k.i!=0;case 16:return c9e(this).i!=0;case 17:return Zfe(this).i!=0;case 18:return Q0(this).i!=0;case 19:return BK(this).i!=0;case 20:return HC(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&qhe(this.n);case 23:return $fe(this).i!=0}return hd(this,n-On((Dr(),Xv)),Nr((o=y(an(this,16),29),o||Xv),n))},"ZWd"),x.Wh=i(function(n){var o;return o=this.i==null||this.q&&this.q.i!=0?null:rG(this,n),o||ZIe(this,n)},"$Wd"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:VY(this,di(o));return;case 2:Ile(this,di(o));return;case 5:cR(this,di(o));return;case 7:!this.A&&(this.A=new fh(Gu,this,7)),Kn(this.A),!this.A&&(this.A=new fh(Gu,this,7)),rs(this.A,y(o,18));return;case 8:p_e(this,Kt(Xt(o)));return;case 9:g_e(this,Kt(Xt(o)));return;case 10:WI(Ol(this)),rs(Ol(this),y(o,18));return;case 11:!this.q&&(this.q=new xt(lp,this,11,10)),Kn(this.q),!this.q&&(this.q=new xt(lp,this,11,10)),rs(this.q,y(o,18));return;case 21:!this.s&&(this.s=new xt(ih,this,21,17)),Kn(this.s),!this.s&&(this.s=new xt(ih,this,21,17)),rs(this.s,y(o,18));return;case 22:Kn(Pc(this)),rs(Pc(this),y(o,18));return}bd(this,n-On((Dr(),Xv)),Nr((u=y(an(this,16),29),u||Xv),n),o)},"_Wd"),x.fi=i(function(){return Dr(),Xv},"aXd"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:Ge(this.Cb,184)&&(y(this.Cb,184).tb=null),wu(this,null);return;case 2:P7(this,null),C7(this,this.D);return;case 5:cR(this,null);return;case 7:!this.A&&(this.A=new fh(Gu,this,7)),Kn(this.A);return;case 8:p_e(this,!1);return;case 9:g_e(this,!1);return;case 10:this.u&&WI(this.u);return;case 11:!this.q&&(this.q=new xt(lp,this,11,10)),Kn(this.q);return;case 21:!this.s&&(this.s=new xt(ih,this,21,17)),Kn(this.s);return;case 22:this.n&&Kn(this.n);return}yd(this,n-On((Dr(),Xv)),Nr((o=y(an(this,16),29),o||Xv),n))},"bXd"),x.mi=i(function(){var n,o;if(HC(this),zI(this),c9e(this),Zfe(this),Q0(this),BK(this),$fe(this),Q9(tin(Hh(this))),this.s)for(n=0,o=this.s.i;n<o;++n)RF(je(this.s,n));if(this.q)for(n=0,o=this.q.i;n<o;++n)RF(je(this.q,n));Hy((yh(),Ro),this).ve(),this.Bb|=1},"cXd"),x.Ib=i(function(){return LDe(this)},"dXd"),x.k=null,x.r=null;var $N,Xir,Zye,lji=j(Qr,"EClassImpl",88);G(2057,2056,XHt),x.Ci=i(function(n,o){return Kfe(this,n,o)},"eXd"),x.Di=i(function(n){return Kfe(this,this.i,n)},"fXd"),x.Ei=i(function(n,o){E9e(this,n,o)},"gXd"),x.Fi=i(function(n){Dfe(this,n)},"hXd"),x.Uk=i(function(n,o){return xu(this,n,o)},"iXd"),x.Yi=i(function(n){return GRe(this,n)},"jXd"),x.Vk=i(function(n,o){return qo(this,n,o)},"nXd"),x.Vi=i(function(n,o){return Tjt(this,n,o)},"oXd"),x.Gi=i(function(){return new _5(this)},"kXd"),x.Hi=i(function(){return new AF(this)},"lXd"),x.Ii=i(function(n){return y$(this,n)},"mXd");var cji=j(Na,"NotifyingInternalEListImpl",2057);G(624,2057,Ul),x.Gc=i(function(n){return jjt(this,n)},"yXd"),x.Gj=i(function(n,o,u,p,g){return H9(this,n,o,u,p,g)},"zXd"),x.Hj=i(function(n){$8(this,n)},"AXd"),x.Dk=i(function(n){return this},"BXd"),x.Jk=i(function(){return Nr(this.e.Ah(),this.Jj())},"CXd"),x.Ij=i(function(){return this.Jk()},"DXd"),x.Jj=i(function(){return ja(this.e.Ah(),this.Jk())},"EXd"),x.gl=i(function(){return y(this.Jk().Fk(),29).ik()},"FXd"),x.hl=i(function(){return rl(y(this.Jk(),19)).n},"GXd"),x.hj=i(function(){return this.e},"HXd"),x.il=i(function(){return!0},"IXd"),x.jl=i(function(){return!1},"JXd"),x.kl=i(function(){return!1},"KXd"),x.ll=i(function(){return!1},"LXd"),x.bd=i(function(n){return Xy(this,n)},"MXd"),x.Lj=i(function(n,o){var u;return u=y(n,52),this.kl()?this.il()?u.Oh(this.e,this.hl(),this.gl(),o):u.Oh(this.e,ja(u.Ah(),rl(y(this.Jk(),19))),null,o):u.Oh(this.e,-1-this.Jj(),null,o)},"NXd"),x.Mj=i(function(n,o){var u;return u=y(n,52),this.kl()?this.il()?u.Qh(this.e,this.hl(),this.gl(),o):u.Qh(this.e,ja(u.Ah(),rl(y(this.Jk(),19))),null,o):u.Qh(this.e,-1-this.Jj(),null,o)},"OXd"),x.$k=i(function(){return!1},"PXd"),x.ml=i(function(){return!0},"QXd"),x.dk=i(function(n){return ZLt(this.d,n)},"RXd"),x.Nj=i(function(){return hf(this.e)},"SXd"),x.Oj=i(function(){return this.i!=0},"TXd"),x.$i=i(function(n){return m$(this.d,n)},"UXd"),x.Ui=i(function(n,o){return this.ml()&&this.ll()?d6(this,n,y(o,57)):o},"VXd"),x.nl=i(function(n){return n.Sh()?gv(this.e,y(n,52)):n},"WXd"),x.Wb=i(function(n){P5t(this,n)},"XXd"),x.Nc=i(function(){return DDt(this)},"YXd"),x.Oc=i(function(n){var o;if(this.ll())for(o=this.i-1;o>=0;--o)je(this,o);return B_e(this,n)},"ZXd"),x.Ek=i(function(){Kn(this)},"$Xd"),x.Xi=i(function(n,o){return lIt(this,n,o)},"_Xd");var uji=j(Na,"EcoreEList",624);G(491,624,Ul,$F),x.Ji=i(function(){return!1},"bYd"),x.Jj=i(function(){return this.c},"cYd"),x.Kj=i(function(){return!1},"dYd"),x.ml=i(function(){return!0},"eYd"),x.Qi=i(function(){return!0},"fYd"),x.Ui=i(function(n,o){return o},"gYd"),x.Wi=i(function(){return!1},"hYd"),x.c=0;var hji=j(Na,"EObjectEList",491);G(81,491,Ul,Es),x.Kj=i(function(){return!0},"jYd"),x.kl=i(function(){return!1},"kYd"),x.$k=i(function(){return!0},"lYd");var fji=j(Na,"EObjectContainmentEList",81);G(544,81,Ul,zq),x.Li=i(function(){this.b=!0},"nYd"),x.Oj=i(function(){return this.b},"oYd"),x.Ek=i(function(){var n;Kn(this),hf(this.e)?(n=this.b,this.b=!1,Qi(this.e,new Pp(this.e,2,this.c,n,!1))):this.b=!1},"pYd"),x.b=!1;var dji=j(Na,"EObjectContainmentEList/Unsettable",544);G(1131,544,Ul,E8t),x.Ri=i(function(n,o){var u,p;return u=y(yI(this,n,o),87),hf(this.e)&&$8(this,new a$(this.a,7,(Dr(),Gir),Et(o),(p=u.c,Ge(p,88)?y(p,29):up),n)),u},"yYd"),x.Sj=i(function(n,o){return Vpn(this,y(n,87),o)},"zYd"),x.Tj=i(function(n,o){return Upn(this,y(n,87),o)},"AYd"),x.Uj=i(function(n,o,u){return Umn(this,y(n,87),y(o,87),u)},"BYd"),x.Gj=i(function(n,o,u,p,g){switch(n){case 3:return H9(this,n,o,u,p,this.i>1);case 5:return H9(this,n,o,u,p,this.i-y(u,16).gc()>0);default:return new B1(this.e,n,this.c,o,u,p,!0)}},"vYd"),x.Rj=i(function(){return!0},"wYd"),x.Oj=i(function(){return qhe(this)},"xYd"),x.Ek=i(function(){Kn(this)},"CYd");var pji=j(Qr,"EClassImpl/1",1131);G(1145,1144,SPe),x.bj=i(function(n){var o,u,p,g,w,k,A;if(u=n.ej(),u!=8){if(p=Egn(n),p==0)switch(u){case 1:case 9:{A=n.ij(),A!=null&&(o=Hh(y(A,471)),!o.c&&(o.c=new N8),pX(o.c,n.hj())),k=n.gj(),k!=null&&(g=y(k,471),(g.Bb&1)==0&&(o=Hh(g),!o.c&&(o.c=new N8),Zn(o.c,y(n.hj(),29))));break}case 3:{k=n.gj(),k!=null&&(g=y(k,471),(g.Bb&1)==0&&(o=Hh(g),!o.c&&(o.c=new N8),Zn(o.c,y(n.hj(),29))));break}case 5:{if(k=n.gj(),k!=null)for(w=y(k,18).Jc();w.Ob();)g=y(w.Pb(),471),(g.Bb&1)==0&&(o=Hh(g),!o.c&&(o.c=new N8),Zn(o.c,y(n.hj(),29)));break}case 4:{A=n.ij(),A!=null&&(g=y(A,471),(g.Bb&1)==0&&(o=Hh(g),!o.c&&(o.c=new N8),pX(o.c,n.hj())));break}case 6:{if(A=n.ij(),A!=null)for(w=y(A,18).Jc();w.Ob();)g=y(w.Pb(),471),(g.Bb&1)==0&&(o=Hh(g),!o.c&&(o.c=new N8),pX(o.c,n.hj()));break}}this.ol(p)}},"GYd"),x.ol=i(function(n){yGt(this,n)},"HYd"),x.b=63;var gji=j(Qr,"ESuperAdapter",1145);G(1146,1145,SPe,_3t),x.ol=i(function(n){f3(this,n)},"KYd");var mji=j(Qr,"EClassImpl/10",1146);G(1135,699,Ul),x.Ci=i(function(n,o){return yfe(this,n,o)},"LYd"),x.Di=i(function(n){return QOt(this,n)},"MYd"),x.Ei=i(function(n,o){_$(this,n,o)},"NYd"),x.Fi=i(function(n){t$(this,n)},"OYd"),x.Yi=i(function(n){return GRe(this,n)},"QYd"),x.Vi=i(function(n,o){return _ue(this,n,o)},"YYd"),x.Uk=i(function(n,o){throw xe(new hi)},"PYd"),x.Gi=i(function(){return new _5(this)},"RYd"),x.Hi=i(function(){return new AF(this)},"SYd"),x.Ii=i(function(n){return y$(this,n)},"TYd"),x.Vk=i(function(n,o){throw xe(new hi)},"UYd"),x.Dk=i(function(n){return this},"VYd"),x.Oj=i(function(){return this.i!=0},"WYd"),x.Wb=i(function(n){throw xe(new hi)},"XYd"),x.Ek=i(function(){throw xe(new hi)},"ZYd");var yji=j(Na,"EcoreEList/UnmodifiableEList",1135);G(333,1135,Ul,pC),x.Wi=i(function(){return!1},"_Yd");var bji=j(Na,"EcoreEList/UnmodifiableEList/FastCompare",333);G(1138,333,Ul,LMt),x.bd=i(function(n){var o,u,p;if(Ge(n,179)&&(o=y(n,179),u=o.Jj(),u!=-1)){for(p=this.i;u<p;++u)if(Qe(this.g[u])===Qe(n))return u}return-1},"dZd");var vji=j(Qr,"EClassImpl/1EAllStructuralFeaturesList",1138);G(1132,492,sm,Bbt),x.$i=i(function(n){return tt(dl,KHt,87,n,0,1)},"iZd"),x.Wi=i(function(){return!1},"jZd");var wji=j(Qr,"EClassImpl/1EGenericSuperTypeEList",1132);G(625,492,sm,ioe),x.$i=i(function(n){return tt(ih,iE,179,n,0,1)},"lZd"),x.Wi=i(function(){return!1},"mZd");var xji=j(Qr,"EClassImpl/1EStructuralFeatureUniqueEList",625);G(743,492,sm,XSe),x.$i=i(function(n){return tt(c4,iE,19,n,0,1)},"oZd"),x.Wi=i(function(){return!1},"pZd");var Tji=j(Qr,"EClassImpl/1ReferenceList",743);G(1133,492,sm,D3t),x.Ki=i(function(n,o){Win(this,y(o,38))},"sZd"),x.$i=i(function(n){return tt(l4,iE,38,n,0,1)},"tZd"),x.Wi=i(function(){return!1},"uZd");var kji=j(Qr,"EClassImpl/2",1133);G(1134,492,sm,Fbt),x.$i=i(function(n){return tt(l4,iE,38,n,0,1)},"wZd"),x.Wi=i(function(){return!1},"xZd");var Cji=j(Qr,"EClassImpl/3",1134);G(1136,333,Ul,WAt),x.Ec=i(function(n){return fcn(this,y(n,38))},"BZd"),x.Fi=i(function(n){HQr(this,y(n,38))},"CZd");var Eji=j(Qr,"EClassImpl/4",1136);G(1137,333,Ul,HAt),x.Ec=i(function(n){return dcn(this,y(n,19))},"GZd"),x.Fi=i(function(n){qQr(this,y(n,19))},"HZd");var Sji=j(Qr,"EClassImpl/5",1137);G(1139,492,sm,$bt),x.$i=i(function(n){return tt(lp,LPe,62,n,0,1)},"JZd"),x.Wi=i(function(){return!1},"KZd");var Aji=j(Qr,"EClassImpl/6",1139);G(1140,492,sm,Gbt),x.$i=i(function(n){return tt(c4,iE,19,n,0,1)},"MZd"),x.Wi=i(function(){return!1},"NZd");var Rji=j(Qr,"EClassImpl/7",1140);G(2060,2059,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1,72:1}),x.Ci=i(function(n,o){return AIe(this,n,o)},"OZd"),x.Di=i(function(n){return AIe(this,this.Cj(),n)},"PZd"),x.Ei=i(function(n,o){YFt(this,n,o)},"QZd"),x.Fi=i(function(n){BFt(this,n)},"RZd"),x.Uk=i(function(n,o){return m0n(this,n,o)},"SZd"),x.Vk=i(function(n,o){return Wgn(this,n,o)},"YZd"),x.Vi=i(function(n,o){return ijt(this,n,o)},"ZZd"),x.Yi=i(function(n){return this.vj(n)},"TZd"),x.Gi=i(function(){return new _5(this)},"UZd"),x.nj=i(function(){return this.qj()},"VZd"),x.Hi=i(function(){return new AF(this)},"WZd"),x.Ii=i(function(n){return y$(this,n)},"XZd");var Lji=j(Na,"DelegatingNotifyingInternalEListImpl",2060);G(744,2060,_Pe),x.Ji=i(function(){var n;return n=Nr(qu(this.b),this.Jj()).Fk(),Ge(n,159)&&!Ge(n,459)&&(n.ik().i&1)==0},"c$d"),x.Gc=i(function(n){var o,u,p,g,w,k,A,D;if(this.ml()){if(D=this.Cj(),D>4)if(this.dk(n)){if(this.$k()){if(p=y(n,52),u=p.Bh(),A=u==this.b&&(this.kl()?p.vh(p.Ch(),y(Nr(qu(this.b),this.Jj()).Fk(),29).ik())==rl(y(Nr(qu(this.b),this.Jj()),19)).n:-1-p.Ch()==this.Jj()),this.ll()&&!A&&!u&&p.Gh()){for(g=0;g<D;++g)if(o=Tce(this,this.vj(g)),Qe(o)===Qe(n))return!0}return A}else if(this.kl()&&!this.jl()){if(w=y(n,57).Jh(rl(y(Nr(qu(this.b),this.Jj()),19))),Qe(w)===Qe(this.b))return!0;if(w==null||!y(w,57).Sh())return!1}}else return!1;if(k=this.sj(n),this.ll()&&!k){for(g=0;g<D;++g)if(p=Tce(this,this.vj(g)),Qe(p)===Qe(n))return!0}return k}else return this.sj(n)},"d$d"),x.Gj=i(function(n,o,u,p,g){return new B1(this.b,n,this.Jj(),o,u,p,g)},"e$d"),x.Hj=i(function(n){Qi(this.b,n)},"f$d"),x.Dk=i(function(n){return this},"g$d"),x.Ij=i(function(){return Nr(qu(this.b),this.Jj())},"h$d"),x.Jj=i(function(){return ja(qu(this.b),Nr(qu(this.b),this.Jj()))},"i$d"),x.hj=i(function(){return this.b},"j$d"),x.il=i(function(){return!!Nr(qu(this.b),this.Jj()).Fk().ik()},"k$d"),x.Kj=i(function(){var n,o;return o=Nr(qu(this.b),this.Jj()),Ge(o,103)?(n=y(o,19),(n.Bb&Tc)!=0||!!rl(y(o,19))):!1},"l$d"),x.jl=i(function(){var n,o,u,p;return o=Nr(qu(this.b),this.Jj()),Ge(o,103)?(n=y(o,19),u=rl(n),!!u&&(p=u.t,p>1||p==-1)):!1},"m$d"),x.kl=i(function(){var n,o,u;return o=Nr(qu(this.b),this.Jj()),Ge(o,103)?(n=y(o,19),u=rl(n),!!u):!1},"n$d"),x.ll=i(function(){var n,o;return o=Nr(qu(this.b),this.Jj()),Ge(o,103)?(n=y(o,19),(n.Bb&Jo)!=0):!1},"o$d"),x.bd=i(function(n){var o,u,p,g;if(p=this.xj(n),p>=0)return p;if(this.ml()){for(u=0,g=this.Cj();u<g;++u)if(o=Tce(this,this.vj(u)),Qe(o)===Qe(n))return u}return-1},"p$d"),x.Lj=i(function(n,o){var u;return u=y(n,52),this.kl()?this.il()?u.Oh(this.b,rl(y(Nr(qu(this.b),this.Jj()),19)).n,y(Nr(qu(this.b),this.Jj()).Fk(),29).ik(),o):u.Oh(this.b,ja(u.Ah(),rl(y(Nr(qu(this.b),this.Jj()),19))),null,o):u.Oh(this.b,-1-this.Jj(),null,o)},"q$d"),x.Mj=i(function(n,o){var u;return u=y(n,52),this.kl()?this.il()?u.Qh(this.b,rl(y(Nr(qu(this.b),this.Jj()),19)).n,y(Nr(qu(this.b),this.Jj()).Fk(),29).ik(),o):u.Qh(this.b,ja(u.Ah(),rl(y(Nr(qu(this.b),this.Jj()),19))),null,o):u.Qh(this.b,-1-this.Jj(),null,o)},"r$d"),x.$k=i(function(){var n,o;return o=Nr(qu(this.b),this.Jj()),Ge(o,103)?(n=y(o,19),(n.Bb&Tc)!=0):!1},"s$d"),x.ml=i(function(){return Ge(Nr(qu(this.b),this.Jj()).Fk(),88)},"t$d"),x.dk=i(function(n){return Nr(qu(this.b),this.Jj()).Fk().dk(n)},"u$d"),x.Nj=i(function(){return hf(this.b)},"v$d"),x.Oj=i(function(){return!this.yj()},"w$d"),x.Qi=i(function(){return Nr(qu(this.b),this.Jj()).Qi()},"x$d"),x.Ui=i(function(n,o){return uG(this,n,o)},"y$d"),x.Wb=i(function(n){WI(this),rs(this,y(n,16))},"z$d"),x.Nc=i(function(){var n;if(this.ll())for(n=this.Cj()-1;n>=0;--n)uG(this,n,this.vj(n));return this.Dj()},"A$d"),x.Oc=i(function(n){var o;if(this.ll())for(o=this.Cj()-1;o>=0;--o)uG(this,o,this.vj(o));return this.Ej(n)},"B$d"),x.Ek=i(function(){WI(this)},"C$d"),x.Xi=i(function(n,o){return ODt(this,n,o)},"D$d");var _ji=j(Na,"DelegatingEcoreEList",744);G(1141,744,_Pe,z6t),x.oj=i(function(n,o){ctn(this,n,y(o,29))},"M$d"),x.pj=i(function(n){XZr(this,y(n,29))},"N$d"),x.vj=i(function(n){var o,u;return o=y(je(Pc(this.a),n),87),u=o.c,Ge(u,88)?y(u,29):(Dr(),up)},"T$d"),x.Aj=i(function(n){var o,u;return o=y(g3(Pc(this.a),n),87),u=o.c,Ge(u,88)?y(u,29):(Dr(),up)},"Y$d"),x.Bj=i(function(n,o){return y0n(this,n,y(o,29))},"Z$d"),x.Ji=i(function(){return!1},"K$d"),x.Gj=i(function(n,o,u,p,g){return null},"L$d"),x.qj=i(function(){return new I3t(this)},"O$d"),x.rj=i(function(){Kn(Pc(this.a))},"P$d"),x.sj=i(function(n){return CNt(this,n)},"Q$d"),x.tj=i(function(n){var o,u;for(u=n.Jc();u.Ob();)if(o=u.Pb(),!CNt(this,o))return!1;return!0},"R$d"),x.uj=i(function(n){var o,u,p;if(Ge(n,16)&&(p=y(n,16),p.gc()==Pc(this.a).i)){for(o=p.Jc(),u=new Sn(this);o.Ob();)if(Qe(o.Pb())!==Qe(_n(u)))return!1;return!0}return!1},"S$d"),x.wj=i(function(){var n,o,u,p,g;for(u=1,o=new Sn(Pc(this.a));o.e!=o.i.gc();)n=y(_n(o),87),p=(g=n.c,Ge(g,88)?y(g,29):(Dr(),up)),u=31*u+(p?Sx(p):0);return u},"U$d"),x.xj=i(function(n){var o,u,p,g;for(p=0,u=new Sn(Pc(this.a));u.e!=u.i.gc();){if(o=y(_n(u),87),Qe(n)===Qe((g=o.c,Ge(g,88)?y(g,29):(Dr(),up))))return p;++p}return-1},"V$d"),x.yj=i(function(){return Pc(this.a).i==0},"W$d"),x.zj=i(function(){return null},"X$d"),x.Cj=i(function(){return Pc(this.a).i},"$$d"),x.Dj=i(function(){var n,o,u,p,g,w;for(w=Pc(this.a).i,g=tt(Fs,Fr,1,w,5,1),u=0,o=new Sn(Pc(this.a));o.e!=o.i.gc();)n=y(_n(o),87),g[u++]=(p=n.c,Ge(p,88)?y(p,29):(Dr(),up));return g},"_$d"),x.Ej=i(function(n){var o,u,p,g,w,k,A;for(A=Pc(this.a).i,n.length<A&&(g=m$(mf(n).c,A),n=g),n.length>A&&as(n,A,null),p=0,u=new Sn(Pc(this.a));u.e!=u.i.gc();)o=y(_n(u),87),w=(k=o.c,Ge(k,88)?y(k,29):(Dr(),up)),as(n,p++,w);return n},"a_d"),x.Fj=i(function(){var n,o,u,p,g;for(g=new Dy,g.a+="[",n=Pc(this.a),o=0,p=Pc(this.a).i;o<p;)ml(g,_9((u=y(je(n,o),87).c,Ge(u,88)?y(u,29):(Dr(),up)))),++o<p&&(g.a+=Tu);return g.a+="]",g.a},"b_d"),x.Hj=i(function(n){},"c_d"),x.Jj=i(function(){return 10},"d_d"),x.il=i(function(){return!0},"e_d"),x.Kj=i(function(){return!1},"f_d"),x.jl=i(function(){return!1},"g_d"),x.kl=i(function(){return!1},"h_d"),x.ll=i(function(){return!0},"i_d"),x.$k=i(function(){return!1},"j_d"),x.ml=i(function(){return!0},"k_d"),x.dk=i(function(n){return Ge(n,88)},"l_d"),x.Oj=i(function(){return oln(this.a)},"m_d"),x.Qi=i(function(){return!0},"n_d"),x.Wi=i(function(){return!0},"o_d");var Dji=j(Qr,"EClassImpl/8",1141);G(1142,2027,gR,I3t),x.dd=i(function(n){return y$(this.a,n)},"q_d"),x.gc=i(function(){return Pc(this.a.a).i},"r_d");var Iji=j(Qr,"EClassImpl/8/1",1142);G(1143,492,sm,jbt),x.$i=i(function(n){return tt(Rg,Fr,143,n,0,1)},"t_d"),x.Wi=i(function(){return!1},"u_d");var Mji=j(Qr,"EClassImpl/9",1143);G(1130,48,mMe,T4t);var Nji=j(Qr,"EClassImpl/MyHashSet",1130);G(563,360,{109:1,94:1,93:1,143:1,159:1,832:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1},$H),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Yx(this);case 4:return this.gk();case 5:return this.F;case 6:return o?Nf(this):m7(this);case 7:return!this.A&&(this.A=new fh(Gu,this,7)),this.A;case 8:return qr(),(this.Bb&256)!=0}return fd(this,n-On(this.fi()),Nr((p=y(an(this,16),29),p||this.fi()),n),o,u)},"y_d"),x.Th=i(function(n){var o;switch(n){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!!Yx(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!m7(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return hd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"z_d"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:VY(this,di(o));return;case 2:Ile(this,di(o));return;case 5:cR(this,di(o));return;case 7:!this.A&&(this.A=new fh(Gu,this,7)),Kn(this.A),!this.A&&(this.A=new fh(Gu,this,7)),rs(this.A,y(o,18));return;case 8:qX(this,Kt(Xt(o)));return}bd(this,n-On(this.fi()),Nr((u=y(an(this,16),29),u||this.fi()),n),o)},"A_d"),x.fi=i(function(){return Dr(),jir},"B_d"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:Ge(this.Cb,184)&&(y(this.Cb,184).tb=null),wu(this,null);return;case 2:P7(this,null),C7(this,this.D);return;case 5:cR(this,null);return;case 7:!this.A&&(this.A=new fh(Gu,this,7)),Kn(this.A);return;case 8:qX(this,!0);return}yd(this,n-On(this.fi()),Nr((o=y(an(this,16),29),o||this.fi()),n))},"C_d"),x.mi=i(function(){Hy((yh(),Ro),this).ve(),this.Bb|=1},"D_d"),x.mk=i(function(){var n,o,u;if(!this.c&&(n=o$t(Nf(this)),!n.dc()))for(u=n.Jc();u.Ob();)o=di(u.Pb()),$I(this,o)&&Qdn(this);return this.b},"E_d"),x.gk=i(function(){var n;if(!this.e){n=null;try{n=Yx(this)}catch(o){if(o=hs(o),!Ge(o,101))throw xe(o)}this.d=null,n&&(n.i&1)!=0&&(n==ah?this.d=(qr(),Dv):n==pi?this.d=Et(0):n==d4?this.d=new YB(0):n==po?this.d=0:n==LT?this.d=o3(0):n==FE?this.d=F7(0):n==xh?this.d=d$(0):this.d=w$(0)),this.e=!0}return this.d},"F_d"),x.lk=i(function(){return(this.Bb&256)!=0},"G_d"),x.pl=i(function(n){n&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},"H_d"),x.el=i(function(n){OIt(this,n),this.pl(n)},"I_d"),x.fl=i(function(n){this.C=n,this.e=!1},"J_d"),x.Ib=i(function(){var n;return(this.Db&64)!=0?tK(this):(n=new Hd(tK(this)),n.a+=" (serializable: ",Iy(n,(this.Bb&256)!=0),n.a+=")",n.a)},"K_d"),x.c=!1,x.d=null,x.e=!1;var Oji=j(Qr,"EDataTypeImpl",563);G(459,563,{109:1,94:1,93:1,143:1,159:1,832:1,675:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,459:1,161:1,117:1,118:1,681:1},k4t),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Yx(this);case 4:return r_e(this);case 5:return this.F;case 6:return o?Nf(this):m7(this);case 7:return!this.A&&(this.A=new fh(Gu,this,7)),this.A;case 8:return qr(),(this.Bb&256)!=0;case 9:return!this.a&&(this.a=new xt(ny,this,9,5)),this.a}return fd(this,n-On((Dr(),Kv)),Nr((p=y(an(this,16),29),p||Kv),n),o,u)},"O_d"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 6:return this.Cb&&(u=(g=this.Db>>16,g>=0?ife(this,u):this.Cb.Qh(this,-1-g,null,u))),$f(this,n,6,u);case 9:return!this.a&&(this.a=new xt(ny,this,9,5)),xu(this.a,n,u)}return w=y(Nr((p=y(an(this,16),29),p||(Dr(),Kv)),o),69),w.uk().xk(this,Nu(this),o-On((Dr(),Kv)),n,u)},"P_d"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 6:return $f(this,null,6,u);case 7:return!this.A&&(this.A=new fh(Gu,this,7)),qo(this.A,n,u);case 9:return!this.a&&(this.a=new xt(ny,this,9,5)),qo(this.a,n,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),Kv)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),Kv)),n,u)},"Q_d"),x.Th=i(function(n){var o;switch(n){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!!Yx(this);case 4:return!!r_e(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!m7(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 hd(this,n-On((Dr(),Kv)),Nr((o=y(an(this,16),29),o||Kv),n))},"R_d"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:VY(this,di(o));return;case 2:Ile(this,di(o));return;case 5:cR(this,di(o));return;case 7:!this.A&&(this.A=new fh(Gu,this,7)),Kn(this.A),!this.A&&(this.A=new fh(Gu,this,7)),rs(this.A,y(o,18));return;case 8:qX(this,Kt(Xt(o)));return;case 9:!this.a&&(this.a=new xt(ny,this,9,5)),Kn(this.a),!this.a&&(this.a=new xt(ny,this,9,5)),rs(this.a,y(o,18));return}bd(this,n-On((Dr(),Kv)),Nr((u=y(an(this,16),29),u||Kv),n),o)},"S_d"),x.fi=i(function(){return Dr(),Kv},"T_d"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:Ge(this.Cb,184)&&(y(this.Cb,184).tb=null),wu(this,null);return;case 2:P7(this,null),C7(this,this.D);return;case 5:cR(this,null);return;case 7:!this.A&&(this.A=new fh(Gu,this,7)),Kn(this.A);return;case 8:qX(this,!0);return;case 9:!this.a&&(this.a=new xt(ny,this,9,5)),Kn(this.a);return}yd(this,n-On((Dr(),Kv)),Nr((o=y(an(this,16),29),o||Kv),n))},"U_d"),x.mi=i(function(){var n,o;if(this.a)for(n=0,o=this.a.i;n<o;++n)RF(je(this.a,n));Hy((yh(),Ro),this).ve(),this.Bb|=1},"V_d"),x.gk=i(function(){return r_e(this)},"W_d"),x.dk=i(function(n){return n!=null},"X_d"),x.pl=i(function(n){},"Y_d");var Pji=j(Qr,"EEnumImpl",459);G(568,439,{109:1,94:1,93:1,2004:1,684:1,158:1,197:1,57:1,114:1,52:1,100:1,568:1,161:1,117:1,118:1},G3t),x.ve=i(function(){return this.zb},"l0d"),x.xh=i(function(n){return EPt(this,n)},"d0d"),x.Ih=i(function(n,o,u){var p,g;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Et(this.d);case 3:return this.b?this.b:this.a;case 4:return g=this.c,g??this.zb;case 5:return this.Db>>16==5?y(this.Cb,675):null}return fd(this,n-On((Dr(),pb)),Nr((p=y(an(this,16),29),p||pb),n),o,u)},"e0d"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 5:return this.Cb&&(u=(g=this.Db>>16,g>=0?EPt(this,u):this.Cb.Qh(this,-1-g,null,u))),$f(this,n,5,u)}return w=y(Nr((p=y(an(this,16),29),p||(Dr(),pb)),o),69),w.uk().xk(this,Nu(this),o-On((Dr(),pb)),n,u)},"f0d"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 5:return $f(this,null,5,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),pb)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),pb)),n,u)},"g0d"),x.Th=i(function(n){var o;switch(n){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&&y(this.Cb,675))}return hd(this,n-On((Dr(),pb)),Nr((o=y(an(this,16),29),o||pb),n))},"h0d"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:wu(this,di(o));return;case 2:Bue(this,y(o,15).a);return;case 3:RFt(this,y(o,2004));return;case 4:$ue(this,di(o));return}bd(this,n-On((Dr(),pb)),Nr((u=y(an(this,16),29),u||pb),n),o)},"i0d"),x.fi=i(function(){return Dr(),pb},"j0d"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:wu(this,null);return;case 2:Bue(this,0);return;case 3:RFt(this,null);return;case 4:$ue(this,null);return}yd(this,n-On((Dr(),pb)),Nr((o=y(an(this,16),29),o||pb),n))},"k0d"),x.Ib=i(function(){var n;return n=this.c,n??this.zb},"m0d"),x.b=null,x.c=null,x.d=0;var Bji=j(Qr,"EEnumLiteralImpl",568),LSn=za(Qr,"EFactoryImpl/InternalEDateTimeFormat");G(485,1,{2079:1},JB);var Fji=j(Qr,"EFactoryImpl/1ClientInternalEDateTimeFormat",485);G(248,118,{109:1,94:1,93:1,87:1,57:1,114:1,52:1,100:1,248:1,117:1,118:1},vx),x.zh=i(function(n,o,u){var p;return u=$f(this,n,o,u),this.e&&Ge(n,179)&&(p=PK(this,this.e),p!=this.c&&(u=uR(this,p,u))),u},"G0d"),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return this.f;case 1:return!this.d&&(this.d=new Es(dl,this,1)),this.d;case 2:return o?YK(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return o?Khe(this):this.a}return fd(this,n-On((Dr(),ST)),Nr((p=y(an(this,16),29),p||ST),n),o,u)},"H0d"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return hNt(this,null,u);case 1:return!this.d&&(this.d=new Es(dl,this,1)),qo(this.d,n,u);case 3:return uNt(this,null,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),ST)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),ST)),n,u)},"I0d"),x.Th=i(function(n){var o;switch(n){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 hd(this,n-On((Dr(),ST)),Nr((o=y(an(this,16),29),o||ST),n))},"J0d"),x.$h=i(function(n,o){var u;switch(n){case 0:VPt(this,y(o,87));return;case 1:!this.d&&(this.d=new Es(dl,this,1)),Kn(this.d),!this.d&&(this.d=new Es(dl,this,1)),rs(this.d,y(o,18));return;case 3:_De(this,y(o,87));return;case 4:XDe(this,y(o,835));return;case 5:k7(this,y(o,143));return}bd(this,n-On((Dr(),ST)),Nr((u=y(an(this,16),29),u||ST),n),o)},"K0d"),x.fi=i(function(){return Dr(),ST},"L0d"),x.hi=i(function(n){var o;switch(n){case 0:VPt(this,null);return;case 1:!this.d&&(this.d=new Es(dl,this,1)),Kn(this.d);return;case 3:_De(this,null);return;case 4:XDe(this,null);return;case 5:k7(this,null);return}yd(this,n-On((Dr(),ST)),Nr((o=y(an(this,16),29),o||ST),n))},"M0d"),x.Ib=i(function(){var n;return n=new Lf(zp(this)),n.a+=" (expression: ",ide(this,n),n.a+=")",n.a},"N0d");var xWe,$ji=j(Qr,"EGenericTypeImpl",248);G(2032,2027,eQ),x.Ei=i(function(n,o){G6t(this,n,o)},"P0d"),x.Uk=i(function(n,o){return G6t(this,this.gc(),n),o},"Q0d"),x.Yi=i(function(n){return Bc(this.nj(),n)},"R0d"),x.Gi=i(function(){return this.Hi()},"S0d"),x.nj=i(function(){return new B3t(this)},"T0d"),x.Hi=i(function(){return this.Ii(0)},"U0d"),x.Ii=i(function(n){return this.nj().dd(n)},"V0d"),x.Vk=i(function(n,o){return a3(this,n,!0),o},"W0d"),x.Ri=i(function(n,o){var u,p;return p=ofe(this,o),u=this.dd(n),u.Rb(p),p},"X0d"),x.Si=i(function(n,o){var u;a3(this,o,!0),u=this.dd(n),u.Rb(o)},"Y0d");var Gji=j(Na,"AbstractSequentialInternalEList",2032);G(482,2032,eQ,SF),x.Yi=i(function(n){return Bc(this.nj(),n)},"c1d"),x.Gi=i(function(){return this.b==null?(Oy(),Oy(),sz):this.ql()},"d1d"),x.nj=i(function(){return new s5t(this.a,this.b)},"e1d"),x.Hi=i(function(){return this.b==null?(Oy(),Oy(),sz):this.ql()},"f1d"),x.Ii=i(function(n){var o,u;if(this.b==null){if(n<0||n>1)throw xe(new yu(mM+n+", size=0"));return Oy(),Oy(),sz}for(u=this.ql(),o=0;o<n;++o)PX(u);return u},"g1d"),x.dc=i(function(){var n,o,u,p,g,w;if(this.b!=null){for(u=0;u<this.b.length;++u)if(n=this.b[u],!this.tl()||this.a.Uh(n)){if(w=this.a.Kh(n,!1),tl(),y(n,69).vk()){for(o=y(w,163),p=0,g=o.gc();p<g;++p)if(m7t(o.Rl(p))&&o.Sl(p)!=null)return!1}else if(n.Hk()){if(!y(w,18).dc())return!1}else if(w!=null)return!1}}return!0},"h1d"),x.Jc=i(function(){return vLe(this)},"i1d"),x.dd=i(function(n){var o,u;if(this.b==null){if(n!=0)throw xe(new yu(mM+n+", size=0"));return Oy(),Oy(),sz}for(u=this.sl()?this.rl():this.ql(),o=0;o<n;++o)PX(u);return u},"j1d"),x.Ri=i(function(n,o){throw xe(new hi)},"k1d"),x.Si=i(function(n,o){throw xe(new hi)},"l1d"),x.ql=i(function(){return new qq(this.a,this.b)},"m1d"),x.rl=i(function(){return new zAe(this.a,this.b)},"n1d"),x.sl=i(function(){return!0},"o1d"),x.gc=i(function(){var n,o,u,p,g,w,k;if(g=0,this.b!=null){for(u=0;u<this.b.length;++u)if(n=this.b[u],!this.tl()||this.a.Uh(n))if(k=this.a.Kh(n,!1),tl(),y(n,69).vk())for(o=y(k,163),p=0,w=o.gc();p<w;++p)m7t(o.Rl(p))&&o.Sl(p)!=null&&++g;else n.Hk()?g+=y(k,18).gc():k!=null&&++g}return g},"p1d"),x.tl=i(function(){return!0},"q1d");var ebe,jji=j(Na,"EContentsEList",482);G(1147,482,eQ,S6t),x.ql=i(function(){return new A6t(this.a,this.b)},"s1d"),x.rl=i(function(){return new R6t(this.a,this.b)},"t1d"),x.tl=i(function(){return!1},"u1d");var zji=j(Qr,"ENamedElementImpl/1",1147);G(287,1,tQ,qq),x.Nb=i(function(n){So(this,n)},"F1d"),x.Rb=i(function(n){throw xe(new hi)},"D1d"),x.ul=i(function(n){if(this.g!=0||this.e)throw xe(new El("Iterator already in use or already filtered"));this.e=n},"E1d"),x.Ob=i(function(){var n,o,u,p,g,w;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?!jBt(this,this.p):!_Ft(this))){for(;this.d<this.c.length;)if(o=this.c[this.d++],(!this.e||o.nk()!=SL||o.Jj()!=0)&&(!this.tl()||this.b.Uh(o))){if(w=this.b.Kh(o,this.sl()),this.f=(tl(),y(o,69).vk()),this.f||o.Hk()){if(this.sl()?(p=y(w,16),this.k=p):(p=y(w,72),this.k=this.j=p),Ge(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Hi():this.k.cd(),this.p?jBt(this,this.p):_Ft(this))return g=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(n=y(g,75),n.Jk(),u=n.kd(),this.i=u):(u=g,this.i=u),this.g=3,!0}else if(w!=null)return this.k=null,this.p=null,u=w,this.i=u,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return g=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(n=y(g,75),n.Jk(),u=n.kd(),this.i=u):(u=g,this.i=u),this.g=3,!0}},"G1d"),x.Sb=i(function(){var n,o,u,p,g,w;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?!zBt(this,this.p):!QBt(this))){for(;this.d>0;)if(o=this.c[--this.d],(!this.e||o.nk()!=SL||o.Jj()!=0)&&(!this.tl()||this.b.Uh(o))){if(w=this.b.Kh(o,this.sl()),this.f=(tl(),y(o,69).vk()),this.f||o.Hk()){if(this.sl()?(p=y(w,16),this.k=p):(p=y(w,72),this.k=this.j=p),Ge(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?zBt(this,this.p):QBt(this))return g=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(n=y(g,75),n.Jk(),u=n.kd(),this.i=u):(u=g,this.i=u),this.g=-3,!0}else if(w!=null)return this.k=null,this.p=null,u=w,this.i=u,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return g=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(n=y(g,75),n.Jk(),u=n.kd(),this.i=u):(u=g,this.i=u),this.g=-3,!0}},"H1d"),x.Pb=i(function(){return PX(this)},"I1d"),x.Tb=i(function(){return this.a},"J1d"),x.Ub=i(function(){var n;if(this.g<-1||this.Sb())return--this.a,this.g=0,n=this.i,this.Sb(),n;throw xe(new Hl)},"K1d"),x.Vb=i(function(){return this.a-1},"L1d"),x.Qb=i(function(){throw xe(new hi)},"M1d"),x.sl=i(function(){return!1},"N1d"),x.Wb=i(function(n){throw xe(new hi)},"O1d"),x.tl=i(function(){return!0},"P1d"),x.a=0,x.d=0,x.f=!1,x.g=0,x.n=0,x.o=0;var sz,Uji=j(Na,"EContentsEList/FeatureIteratorImpl",287);G(700,287,tQ,zAe),x.sl=i(function(){return!0},"R1d");var Vji=j(Na,"EContentsEList/ResolvingFeatureIteratorImpl",700);G(1148,700,tQ,R6t),x.tl=i(function(){return!1},"T1d");var Wji=j(Qr,"ENamedElementImpl/1/1",1148);G(1149,287,tQ,A6t),x.tl=i(function(){return!1},"V1d");var Hji=j(Qr,"ENamedElementImpl/1/2",1149);G(39,151,UG,Xk,uue,Qs,kue,B1,Pp,eLe,dLt,tLe,pLt,vRe,gLt,iLe,mLt,bRe,yLt,rLe,bLt,F9,a$,Uce,nLe,vLt,yRe,fLt),x.Ij=i(function(){return BRe(this)},"v2d"),x.Pj=i(function(){var n;return n=BRe(this),n?n.gk():null},"w2d"),x.fj=i(function(n){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,n)},"x2d"),x.hj=i(function(){return this.c},"y2d"),x.Qj=i(function(){var n;return n=BRe(this),n?n.rk():!1},"z2d"),x.b=-1;var qji=j(Qr,"ENotificationImpl",39);G(403,293,{109:1,94:1,93:1,158:1,197:1,57:1,62:1,114:1,470:1,52:1,100:1,161:1,403:1,293:1,117:1,118:1},Soe),x.xh=i(function(n){return APt(this,n)},"E2d"),x.Ih=i(function(n,o,u){var p,g,w;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qr(),(this.Bb&256)!=0;case 3:return qr(),(this.Bb&512)!=0;case 4:return Et(this.s);case 5:return Et(this.t);case 6:return qr(),w=this.t,w>1||w==-1;case 7:return qr(),g=this.s,g>=1;case 8:return o?Qd(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?y(this.Cb,29):null;case 11:return!this.d&&(this.d=new fh(Gu,this,11)),this.d;case 12:return!this.c&&(this.c=new xt(ET,this,12,10)),this.c;case 13:return!this.a&&(this.a=new DF(this,this)),this.a;case 14:return Yh(this)}return fd(this,n-On((Dr(),gb)),Nr((p=y(an(this,16),29),p||gb),n),o,u)},"F2d"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 10:return this.Cb&&(u=(g=this.Db>>16,g>=0?APt(this,u):this.Cb.Qh(this,-1-g,null,u))),$f(this,n,10,u);case 12:return!this.c&&(this.c=new xt(ET,this,12,10)),xu(this.c,n,u)}return w=y(Nr((p=y(an(this,16),29),p||(Dr(),gb)),o),69),w.uk().xk(this,Nu(this),o-On((Dr(),gb)),n,u)},"G2d"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 9:return Lce(this,u);case 10:return $f(this,null,10,u);case 11:return!this.d&&(this.d=new fh(Gu,this,11)),qo(this.d,n,u);case 12:return!this.c&&(this.c=new xt(ET,this,12,10)),qo(this.c,n,u);case 14:return qo(Yh(this),n,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),gb)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),gb)),n,u)},"H2d"),x.Th=i(function(n){var o,u,p;switch(n){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 p=this.t,p>1||p==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&_x(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&_x(this.q).i==0);case 10:return!!(this.Db>>16==10&&y(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&&Yh(this.a.a).i!=0&&!(this.b&&Yhe(this.b));case 14:return!!this.b&&Yhe(this.b)}return hd(this,n-On((Dr(),gb)),Nr((o=y(an(this,16),29),o||gb),n))},"I2d"),x.$h=i(function(n,o){var u,p;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:wu(this,di(o));return;case 2:qy(this,Kt(Xt(o)));return;case 3:Yy(this,Kt(Xt(o)));return;case 4:Uy(this,y(o,15).a);return;case 5:Zk(this,y(o,15).a);return;case 8:lw(this,y(o,143));return;case 9:p=t0(this,y(o,87),null),p&&p.mj();return;case 11:!this.d&&(this.d=new fh(Gu,this,11)),Kn(this.d),!this.d&&(this.d=new fh(Gu,this,11)),rs(this.d,y(o,18));return;case 12:!this.c&&(this.c=new xt(ET,this,12,10)),Kn(this.c),!this.c&&(this.c=new xt(ET,this,12,10)),rs(this.c,y(o,18));return;case 13:!this.a&&(this.a=new DF(this,this)),WI(this.a),!this.a&&(this.a=new DF(this,this)),rs(this.a,y(o,18));return;case 14:Kn(Yh(this)),rs(Yh(this),y(o,18));return}bd(this,n-On((Dr(),gb)),Nr((u=y(an(this,16),29),u||gb),n),o)},"J2d"),x.fi=i(function(){return Dr(),gb},"K2d"),x.hi=i(function(n){var o,u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:wu(this,null);return;case 2:qy(this,!0);return;case 3:Yy(this,!0);return;case 4:Uy(this,0);return;case 5:Zk(this,1);return;case 8:lw(this,null);return;case 9:u=t0(this,null,null),u&&u.mj();return;case 11:!this.d&&(this.d=new fh(Gu,this,11)),Kn(this.d);return;case 12:!this.c&&(this.c=new xt(ET,this,12,10)),Kn(this.c);return;case 13:this.a&&WI(this.a);return;case 14:this.b&&Kn(this.b);return}yd(this,n-On((Dr(),gb)),Nr((o=y(an(this,16),29),o||gb),n))},"L2d"),x.mi=i(function(){var n,o;if(this.c)for(n=0,o=this.c.i;n<o;++n)RF(je(this.c,n));Qd(this),this.Bb|=1},"M2d");var Yji=j(Qr,"EOperationImpl",403);G(500,744,_Pe,DF),x.oj=i(function(n,o){ltn(this,n,y(o,143))},"V2d"),x.pj=i(function(n){KZr(this,y(n,143))},"W2d"),x.vj=i(function(n){var o,u;return o=y(je(Yh(this.a),n),87),u=o.c,u||(Dr(),b0)},"a3d"),x.Aj=i(function(n){var o,u;return o=y(g3(Yh(this.a),n),87),u=o.c,u||(Dr(),b0)},"f3d"),x.Bj=i(function(n,o){return lgn(this,n,y(o,143))},"g3d"),x.Ji=i(function(){return!1},"T2d"),x.Gj=i(function(n,o,u,p,g){return null},"U2d"),x.qj=i(function(){return new M3t(this)},"X2d"),x.rj=i(function(){Kn(Yh(this.a))},"Y2d"),x.sj=i(function(n){return RNt(this,n)},"Z2d"),x.tj=i(function(n){var o,u;for(u=n.Jc();u.Ob();)if(o=u.Pb(),!RNt(this,o))return!1;return!0},"$2d"),x.uj=i(function(n){var o,u,p;if(Ge(n,16)&&(p=y(n,16),p.gc()==Yh(this.a).i)){for(o=p.Jc(),u=new Sn(this);o.Ob();)if(Qe(o.Pb())!==Qe(_n(u)))return!1;return!0}return!1},"_2d"),x.wj=i(function(){var n,o,u,p,g;for(u=1,o=new Sn(Yh(this.a));o.e!=o.i.gc();)n=y(_n(o),87),p=(g=n.c,g||(Dr(),b0)),u=31*u+(p?Aa(p):0);return u},"b3d"),x.xj=i(function(n){var o,u,p,g;for(p=0,u=new Sn(Yh(this.a));u.e!=u.i.gc();){if(o=y(_n(u),87),Qe(n)===Qe((g=o.c,g||(Dr(),b0))))return p;++p}return-1},"c3d"),x.yj=i(function(){return Yh(this.a).i==0},"d3d"),x.zj=i(function(){return null},"e3d"),x.Cj=i(function(){return Yh(this.a).i},"h3d"),x.Dj=i(function(){var n,o,u,p,g,w;for(w=Yh(this.a).i,g=tt(Fs,Fr,1,w,5,1),u=0,o=new Sn(Yh(this.a));o.e!=o.i.gc();)n=y(_n(o),87),g[u++]=(p=n.c,p||(Dr(),b0));return g},"i3d"),x.Ej=i(function(n){var o,u,p,g,w,k,A;for(A=Yh(this.a).i,n.length<A&&(g=m$(mf(n).c,A),n=g),n.length>A&&as(n,A,null),p=0,u=new Sn(Yh(this.a));u.e!=u.i.gc();)o=y(_n(u),87),w=(k=o.c,k||(Dr(),b0)),as(n,p++,w);return n},"j3d"),x.Fj=i(function(){var n,o,u,p,g;for(g=new Dy,g.a+="[",n=Yh(this.a),o=0,p=Yh(this.a).i;o<p;)ml(g,_9((u=y(je(n,o),87).c,u||(Dr(),b0)))),++o<p&&(g.a+=Tu);return g.a+="]",g.a},"k3d"),x.Hj=i(function(n){},"l3d"),x.Jj=i(function(){return 13},"m3d"),x.il=i(function(){return!0},"n3d"),x.Kj=i(function(){return!1},"o3d"),x.jl=i(function(){return!1},"p3d"),x.kl=i(function(){return!1},"q3d"),x.ll=i(function(){return!0},"r3d"),x.$k=i(function(){return!1},"s3d"),x.ml=i(function(){return!0},"t3d"),x.dk=i(function(n){return Ge(n,143)},"u3d"),x.Oj=i(function(){return uln(this.a)},"v3d"),x.Qi=i(function(){return!0},"w3d"),x.Wi=i(function(){return!0},"x3d");var Xji=j(Qr,"EOperationImpl/1",500);G(1331,2027,gR,M3t),x.dd=i(function(n){return y$(this.a,n)},"z3d"),x.gc=i(function(){return Yh(this.a.a).i},"A3d");var Kji=j(Qr,"EOperationImpl/1/1",1331);G(1332,544,Ul,S8t),x.Ri=i(function(n,o){var u,p;return u=y(yI(this,n,o),87),hf(this.e)&&$8(this,new a$(this.a,7,(Dr(),Vir),Et(o),(p=u.c,p||b0),n)),u},"J3d"),x.Sj=i(function(n,o){return Odn(this,y(n,87),o)},"K3d"),x.Tj=i(function(n,o){return Ndn(this,y(n,87),o)},"L3d"),x.Uj=i(function(n,o,u){return Tgn(this,y(n,87),y(o,87),u)},"M3d"),x.Gj=i(function(n,o,u,p,g){switch(n){case 3:return H9(this,n,o,u,p,this.i>1);case 5:return H9(this,n,o,u,p,this.i-y(u,16).gc()>0);default:return new B1(this.e,n,this.c,o,u,p,!0)}},"G3d"),x.Rj=i(function(){return!0},"H3d"),x.Oj=i(function(){return Yhe(this)},"I3d"),x.Ek=i(function(){Kn(this)},"N3d");var Jji=j(Qr,"EOperationImpl/2",1332);G(493,1,{2002:1,493:1},$St);var Qji=j(Qr,"EPackageImpl/1",493);G(14,81,Ul,xt),x.gl=i(function(){return this.d},"Q3d"),x.hl=i(function(){return this.b},"R3d"),x.kl=i(function(){return!0},"S3d"),x.b=0;var Zji=j(Na,"EObjectContainmentWithInverseEList",14);G(361,14,Ul,D5),x.ll=i(function(){return!0},"U3d"),x.Ui=i(function(n,o){return d6(this,n,y(o,57))},"V3d");var ezi=j(Na,"EObjectContainmentWithInverseEList/Resolving",361);G(313,361,Ul,Gk),x.Li=i(function(){this.a.tb=null},"X3d");var tzi=j(Qr,"EPackageImpl/2",313);G(1244,1,{},zbt);var rzi=j(Qr,"EPackageImpl/3",1244);G(721,44,KC,W5e),x._b=i(function(n){return lo(n)?Wce(this,n):!!Sl(this.f,n)},"a4d");var nzi=j(Qr,"EPackageRegistryImpl",721);G(504,293,{109:1,94:1,93:1,158:1,197:1,57:1,2081:1,114:1,470:1,52:1,100:1,161:1,504:1,293:1,117:1,118:1},Aoe),x.xh=i(function(n){return RPt(this,n)},"d4d"),x.Ih=i(function(n,o,u){var p,g,w;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qr(),(this.Bb&256)!=0;case 3:return qr(),(this.Bb&512)!=0;case 4:return Et(this.s);case 5:return Et(this.t);case 6:return qr(),w=this.t,w>1||w==-1;case 7:return qr(),g=this.s,g>=1;case 8:return o?Qd(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?y(this.Cb,62):null}return fd(this,n-On((Dr(),h4)),Nr((p=y(an(this,16),29),p||h4),n),o,u)},"e4d"),x.Ph=i(function(n,o,u){var p,g,w;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),xu(this.Ab,n,u);case 10:return this.Cb&&(u=(g=this.Db>>16,g>=0?RPt(this,u):this.Cb.Qh(this,-1-g,null,u))),$f(this,n,10,u)}return w=y(Nr((p=y(an(this,16),29),p||(Dr(),h4)),o),69),w.uk().xk(this,Nu(this),o-On((Dr(),h4)),n,u)},"f4d"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 9:return Lce(this,u);case 10:return $f(this,null,10,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),h4)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),h4)),n,u)},"g4d"),x.Th=i(function(n){var o,u,p;switch(n){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 p=this.t,p>1||p==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&_x(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&_x(this.q).i==0);case 10:return!!(this.Db>>16==10&&y(this.Cb,62))}return hd(this,n-On((Dr(),h4)),Nr((o=y(an(this,16),29),o||h4),n))},"h4d"),x.fi=i(function(){return Dr(),h4},"i4d");var izi=j(Qr,"EParameterImpl",504);G(103,451,{109:1,94:1,93:1,158:1,197:1,57:1,19:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,103:1,451:1,293:1,117:1,118:1,682:1},HAe),x.Ih=i(function(n,o,u){var p,g,w,k;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qr(),(this.Bb&256)!=0;case 3:return qr(),(this.Bb&512)!=0;case 4:return Et(this.s);case 5:return Et(this.t);case 6:return qr(),k=this.t,k>1||k==-1;case 7:return qr(),g=this.s,g>=1;case 8:return o?Qd(this):this.r;case 9:return this.q;case 10:return qr(),(this.Bb&Wp)!=0;case 11:return qr(),(this.Bb&tb)!=0;case 12:return qr(),(this.Bb&x3)!=0;case 13:return this.j;case 14:return rR(this);case 15:return qr(),(this.Bb&vh)!=0;case 16:return qr(),(this.Bb&Z0)!=0;case 17:return Wk(this);case 18:return qr(),(this.Bb&Tc)!=0;case 19:return qr(),w=rl(this),!!(w&&(w.Bb&Tc)!=0);case 20:return qr(),(this.Bb&Jo)!=0;case 21:return o?rl(this):this.b;case 22:return o?FLe(this):N_t(this);case 23:return!this.a&&(this.a=new wC(l4,this,23)),this.a}return fd(this,n-On((Dr(),NE)),Nr((p=y(an(this,16),29),p||NE),n),o,u)},"r4d"),x.Th=i(function(n){var o,u,p,g;switch(n){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 g=this.t,g>1||g==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&_x(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&_x(this.q).i==0);case 10:return(this.Bb&Wp)==0;case 11:return(this.Bb&tb)!=0;case 12:return(this.Bb&x3)!=0;case 13:return this.j!=null;case 14:return rR(this)!=null;case 15:return(this.Bb&vh)!=0;case 16:return(this.Bb&Z0)!=0;case 17:return!!Wk(this);case 18:return(this.Bb&Tc)!=0;case 19:return p=rl(this),!!p&&(p.Bb&Tc)!=0;case 20:return(this.Bb&Jo)==0;case 21:return!!this.b;case 22:return!!N_t(this);case 23:return!!this.a&&this.a.i!=0}return hd(this,n-On((Dr(),NE)),Nr((o=y(an(this,16),29),o||NE),n))},"s4d"),x.$h=i(function(n,o){var u,p;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:tue(this,di(o));return;case 2:qy(this,Kt(Xt(o)));return;case 3:Yy(this,Kt(Xt(o)));return;case 4:Uy(this,y(o,15).a);return;case 5:Zk(this,y(o,15).a);return;case 8:lw(this,y(o,143));return;case 9:p=t0(this,y(o,87),null),p&&p.mj();return;case 10:G7(this,Kt(Xt(o)));return;case 11:z7(this,Kt(Xt(o)));return;case 12:j7(this,Kt(Xt(o)));return;case 13:aAe(this,di(o));return;case 15:$7(this,Kt(Xt(o)));return;case 16:U7(this,Kt(Xt(o)));return;case 18:lon(this,Kt(Xt(o)));return;case 20:C_e(this,Kt(Xt(o)));return;case 21:wLe(this,y(o,19));return;case 23:!this.a&&(this.a=new wC(l4,this,23)),Kn(this.a),!this.a&&(this.a=new wC(l4,this,23)),rs(this.a,y(o,18));return}bd(this,n-On((Dr(),NE)),Nr((u=y(an(this,16),29),u||NE),n),o)},"t4d"),x.fi=i(function(){return Dr(),NE},"u4d"),x.hi=i(function(n){var o,u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:Ge(this.Cb,88)&&f3(Hh(y(this.Cb,88)),4),wu(this,null);return;case 2:qy(this,!0);return;case 3:Yy(this,!0);return;case 4:Uy(this,0);return;case 5:Zk(this,1);return;case 8:lw(this,null);return;case 9:u=t0(this,null,null),u&&u.mj();return;case 10:G7(this,!0);return;case 11:z7(this,!1);return;case 12:j7(this,!1);return;case 13:this.i=null,LX(this,null);return;case 15:$7(this,!1);return;case 16:U7(this,!1);return;case 18:k_e(this,!1),Ge(this.Cb,88)&&f3(Hh(y(this.Cb,88)),2);return;case 20:C_e(this,!0);return;case 21:wLe(this,null);return;case 23:!this.a&&(this.a=new wC(l4,this,23)),Kn(this.a);return}yd(this,n-On((Dr(),NE)),Nr((o=y(an(this,16),29),o||NE),n))},"v4d"),x.mi=i(function(){FLe(this),d7(Rl((yh(),Ro),this)),Qd(this),this.Bb|=1},"w4d"),x.sk=i(function(){return rl(this)},"x4d"),x.Zk=i(function(){var n;return n=rl(this),!!n&&(n.Bb&Tc)!=0},"y4d"),x.$k=i(function(){return(this.Bb&Tc)!=0},"z4d"),x._k=i(function(){return(this.Bb&Jo)!=0},"A4d"),x.Wk=i(function(n,o){return this.c=null,f_e(this,n,o)},"B4d"),x.Ib=i(function(){var n;return(this.Db&64)!=0?HK(this):(n=new Hd(HK(this)),n.a+=" (containment: ",Iy(n,(this.Bb&Tc)!=0),n.a+=", resolveProxies: ",Iy(n,(this.Bb&Jo)!=0),n.a+=")",n.a)},"C4d");var azi=j(Qr,"EReferenceImpl",103);G(550,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,550:1,117:1,118:1},Ubt),x.Fb=i(function(n){return this===n},"O4d"),x.jd=i(function(){return this.b},"Q4d"),x.kd=i(function(){return this.c},"R4d"),x.Hb=i(function(){return Sx(this)},"S4d"),x.Ai=i(function(n){Sin(this,di(n))},"U4d"),x.ld=i(function(n){return pin(this,di(n))},"V4d"),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return this.b;case 1:return this.c}return fd(this,n-On((Dr(),Zo)),Nr((p=y(an(this,16),29),p||Zo),n),o,u)},"J4d"),x.Th=i(function(n){var o;switch(n){case 0:return this.b!=null;case 1:return this.c!=null}return hd(this,n-On((Dr(),Zo)),Nr((o=y(an(this,16),29),o||Zo),n))},"K4d"),x.$h=i(function(n,o){var u;switch(n){case 0:Ain(this,di(o));return;case 1:dLe(this,di(o));return}bd(this,n-On((Dr(),Zo)),Nr((u=y(an(this,16),29),u||Zo),n),o)},"L4d"),x.fi=i(function(){return Dr(),Zo},"M4d"),x.hi=i(function(n){var o;switch(n){case 0:yLe(this,null);return;case 1:dLe(this,null);return}yd(this,n-On((Dr(),Zo)),Nr((o=y(an(this,16),29),o||Zo),n))},"N4d"),x.yi=i(function(){var n;return this.a==-1&&(n=this.b,this.a=n==null?0:Vy(n)),this.a},"P4d"),x.zi=i(function(n){this.a=n},"T4d"),x.Ib=i(function(){var n;return(this.Db&64)!=0?zp(this):(n=new Hd(zp(this)),n.a+=" (key: ",ml(n,this.b),n.a+=", value: ",ml(n,this.c),n.a+=")",n.a)},"W4d"),x.a=-1,x.b=null,x.c=null;var mc=j(Qr,"EStringToStringMapEntryImpl",550),Kir=za(Na,"FeatureMap/Entry/Internal");G(562,1,rQ),x.vl=i(function(n){return this.wl(y(n,52))},"Z4d"),x.wl=i(function(n){return this.vl(n)},"$4d"),x.Fb=i(function(n){var o,u;return this===n?!0:Ge(n,75)?(o=y(n,75),o.Jk()==this.c?(u=this.kd(),u==null?o.kd()==null:ta(u,o.kd())):!1):!1},"_4d"),x.Jk=i(function(){return this.c},"a5d"),x.Hb=i(function(){var n;return n=this.kd(),Aa(this.c)^(n==null?0:Aa(n))},"b5d"),x.Ib=i(function(){var n,o;return n=this.c,o=Nf(n.ok()).vi(),n.ve(),(o!=null&&o.length!=0?o+":"+n.ve():n.ve())+"="+this.kd()},"c5d");var szi=j(Qr,"EStructuralFeatureImpl/BasicFeatureMapEntry",562);G(778,562,rQ,a8e),x.wl=i(function(n){return new a8e(this.c,n)},"g5d"),x.kd=i(function(){return this.a},"h5d"),x.xl=i(function(n,o,u){return Jhn(this,n,this.a,o,u)},"i5d"),x.yl=i(function(n,o,u){return Qhn(this,n,this.a,o,u)},"j5d");var ozi=j(Qr,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",778);G(1305,1,{},GSt),x.wk=i(function(n,o,u,p,g){var w;return w=y(v7(n,this.b),219),w.Wl(this.a).Dk(p)},"l5d"),x.xk=i(function(n,o,u,p,g){var w;return w=y(v7(n,this.b),219),w.Nl(this.a,p,g)},"m5d"),x.yk=i(function(n,o,u,p,g){var w;return w=y(v7(n,this.b),219),w.Ol(this.a,p,g)},"n5d"),x.zk=i(function(n,o,u){var p;return p=y(v7(n,this.b),219),p.Wl(this.a).Oj()},"o5d"),x.Ak=i(function(n,o,u,p){var g;g=y(v7(n,this.b),219),g.Wl(this.a).Wb(p)},"p5d"),x.Bk=i(function(n,o,u){return y(v7(n,this.b),219).Wl(this.a)},"q5d"),x.Ck=i(function(n,o,u){var p;p=y(v7(n,this.b),219),p.Wl(this.a).Ek()},"r5d");var lzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1305);G(89,1,{},By,K2,$y,rw),x.wk=i(function(n,o,u,p,g){var w;if(w=o.ii(u),w==null&&o.ji(u,w=iJ(this,n)),!g)switch(this.e){case 50:case 41:return y(w,587)._j();case 40:return y(w,219).Tl()}return w},"x5d"),x.xk=i(function(n,o,u,p,g){var w,k;return k=o.ii(u),k==null&&o.ji(u,k=iJ(this,n)),w=y(k,72).Uk(p,g),w},"y5d"),x.yk=i(function(n,o,u,p,g){var w;return w=o.ii(u),w!=null&&(g=y(w,72).Vk(p,g)),g},"z5d"),x.zk=i(function(n,o,u){var p;return p=o.ii(u),p!=null&&y(p,78).Oj()},"A5d"),x.Ak=i(function(n,o,u,p){var g;g=y(o.ii(u),78),!g&&o.ji(u,g=iJ(this,n)),g.Wb(p)},"B5d"),x.Bk=i(function(n,o,u){var p,g;return g=o.ii(u),g==null&&o.ji(u,g=iJ(this,n)),Ge(g,78)?y(g,78):(p=y(o.ii(u),16),new N3t(p))},"C5d"),x.Ck=i(function(n,o,u){var p;p=y(o.ii(u),78),!p&&o.ji(u,p=iJ(this,n)),p.Ek()},"D5d"),x.b=0,x.e=0;var czi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateMany",89);G(499,1,{}),x.xk=i(function(n,o,u,p,g){throw xe(new hi)},"H5d"),x.yk=i(function(n,o,u,p,g){throw xe(new hi)},"I5d"),x.Bk=i(function(n,o,u){return new G7t(this,n,o,u)},"J5d");var o1,uzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingle",499);G(1322,1,Uge,G7t),x.Dk=i(function(n){return this.a.wk(this.c,this.d,this.b,n,!0)},"L5d"),x.Oj=i(function(){return this.a.zk(this.c,this.d,this.b)},"M5d"),x.Wb=i(function(n){this.a.Ak(this.c,this.d,this.b,n)},"N5d"),x.Ek=i(function(){this.a.Ck(this.c,this.d,this.b)},"O5d"),x.b=0;var hzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1322);G(771,499,{},G7e),x.wk=i(function(n,o,u,p,g){return Wfe(n,n.Mh(),n.Ch())==this.b?this._k()&&p?Ife(n):n.Mh():null},"Q5d"),x.xk=i(function(n,o,u,p,g){var w,k;return n.Mh()&&(g=(w=n.Ch(),w>=0?n.xh(g):n.Mh().Qh(n,-1-w,null,g))),k=ja(n.Ah(),this.e),n.zh(p,k,g)},"R5d"),x.yk=i(function(n,o,u,p,g){var w;return w=ja(n.Ah(),this.e),n.zh(null,w,g)},"S5d"),x.zk=i(function(n,o,u){var p;return p=ja(n.Ah(),this.e),!!n.Mh()&&n.Ch()==p},"T5d"),x.Ak=i(function(n,o,u,p){var g,w,k,A,D;if(p!=null&&!Xfe(this.a,p))throw xe(new G8(nQ+(Ge(p,57)?LDe(y(p,57).Ah()):JRe(mf(p)))+iQ+this.a+"'"));if(g=n.Mh(),k=ja(n.Ah(),this.e),Qe(p)!==Qe(g)||n.Ch()!=k&&p!=null){if(Y7(n,y(p,57)))throw xe(new rn(pM+n.Ib()));D=null,g&&(D=(w=n.Ch(),w>=0?n.xh(D):n.Mh().Qh(n,-1-w,null,D))),A=y(p,52),A&&(D=A.Oh(n,ja(A.Ah(),this.b),null,D)),D=n.zh(A,k,D),D&&D.mj()}else n.sh()&&n.th()&&Qi(n,new Qs(n,1,k,p,p))},"U5d"),x.Ck=i(function(n,o,u){var p,g,w,k;p=n.Mh(),p?(k=(g=n.Ch(),g>=0?n.xh(null):n.Mh().Qh(n,-1-g,null,null)),w=ja(n.Ah(),this.e),k=n.zh(null,w,k),k&&k.mj()):n.sh()&&n.th()&&Qi(n,new F9(n,1,this.e,null,null))},"V5d"),x._k=i(function(){return!1},"W5d");var fzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",771);G(1306,771,{},OAt),x._k=i(function(){return!0},"Y5d");var dzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1306);G(560,499,{}),x.wk=i(function(n,o,u,p,g){var w;return w=o.ii(u),w==null?this.b:Qe(w)===Qe(o1)?null:w},"_5d"),x.zk=i(function(n,o,u){var p;return p=o.ii(u),p!=null&&(Qe(p)===Qe(o1)||!ta(p,this.b))},"a6d"),x.Ak=i(function(n,o,u,p){var g,w;n.sh()&&n.th()?(g=(w=o.ii(u),w==null?this.b:Qe(w)===Qe(o1)?null:w),p==null?this.c!=null?(o.ji(u,null),p=this.b):this.b!=null?o.ji(u,o1):o.ji(u,null):(this.zl(p),o.ji(u,p)),Qi(n,this.d.Al(n,1,this.e,g,p))):p==null?this.c!=null?o.ji(u,null):this.b!=null?o.ji(u,o1):o.ji(u,null):(this.zl(p),o.ji(u,p))},"b6d"),x.Ck=i(function(n,o,u){var p,g;n.sh()&&n.th()?(p=(g=o.ii(u),g==null?this.b:Qe(g)===Qe(o1)?null:g),o.ki(u),Qi(n,this.d.Al(n,1,this.e,p,this.b))):o.ki(u)},"c6d"),x.zl=i(function(n){throw xe(new W3t)},"d6d");var pzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",560);G(aE,1,{},Vbt),x.Al=i(function(n,o,u,p,g){return new F9(n,o,u,p,g)},"p6d"),x.Bl=i(function(n,o,u,p,g,w){return new Uce(n,o,u,p,g,w)},"q6d");var TWe,kWe,CWe,EWe,SWe,AWe,RWe,tbe,LWe,gzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",aE);G(1323,aE,{},Wbt),x.Al=i(function(n,o,u,p,g){return new yRe(n,o,u,Kt(Xt(p)),Kt(Xt(g)))},"s6d"),x.Bl=i(function(n,o,u,p,g,w){return new fLt(n,o,u,Kt(Xt(p)),Kt(Xt(g)),w)},"t6d");var mzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1323);G(1324,aE,{},Hbt),x.Al=i(function(n,o,u,p,g){return new eLe(n,o,u,y(p,221).a,y(g,221).a)},"v6d"),x.Bl=i(function(n,o,u,p,g,w){return new dLt(n,o,u,y(p,221).a,y(g,221).a,w)},"w6d");var yzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1324);G(1325,aE,{},qbt),x.Al=i(function(n,o,u,p,g){return new tLe(n,o,u,y(p,180).a,y(g,180).a)},"y6d"),x.Bl=i(function(n,o,u,p,g,w){return new pLt(n,o,u,y(p,180).a,y(g,180).a,w)},"z6d");var bzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1325);G(1326,aE,{},Ybt),x.Al=i(function(n,o,u,p,g){return new vRe(n,o,u,He(Xe(p)),He(Xe(g)))},"B6d"),x.Bl=i(function(n,o,u,p,g,w){return new gLt(n,o,u,He(Xe(p)),He(Xe(g)),w)},"C6d");var vzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1326);G(1327,aE,{},Xbt),x.Al=i(function(n,o,u,p,g){return new iLe(n,o,u,y(p,164).a,y(g,164).a)},"E6d"),x.Bl=i(function(n,o,u,p,g,w){return new mLt(n,o,u,y(p,164).a,y(g,164).a,w)},"F6d");var wzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1327);G(1328,aE,{},Kbt),x.Al=i(function(n,o,u,p,g){return new bRe(n,o,u,y(p,15).a,y(g,15).a)},"H6d"),x.Bl=i(function(n,o,u,p,g,w){return new yLt(n,o,u,y(p,15).a,y(g,15).a,w)},"I6d");var xzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1328);G(1329,aE,{},Jbt),x.Al=i(function(n,o,u,p,g){return new rLe(n,o,u,y(p,190).a,y(g,190).a)},"K6d"),x.Bl=i(function(n,o,u,p,g,w){return new bLt(n,o,u,y(p,190).a,y(g,190).a,w)},"L6d");var Tzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1329);G(1330,aE,{},Qbt),x.Al=i(function(n,o,u,p,g){return new nLe(n,o,u,y(p,191).a,y(g,191).a)},"N6d"),x.Bl=i(function(n,o,u,p,g,w){return new vLt(n,o,u,y(p,191).a,y(g,191).a,w)},"O6d");var kzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1330);G(1308,560,{},V7t),x.zl=i(function(n){if(!this.a.dk(n))throw xe(new G8(nQ+mf(n)+iQ+this.a+"'"))},"Q6d");var Czi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1308);G(1309,560,{},A8t),x.zl=i(function(n){},"S6d");var Ezi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1309);G(772,560,{}),x.zk=i(function(n,o,u){var p;return p=o.ii(u),p!=null},"T6d"),x.Ak=i(function(n,o,u,p){var g,w;n.sh()&&n.th()?(g=!0,w=o.ii(u),w==null?(g=!1,w=this.b):Qe(w)===Qe(o1)&&(w=null),p==null?this.c!=null?(o.ji(u,null),p=this.b):o.ji(u,o1):(this.zl(p),o.ji(u,p)),Qi(n,this.d.Bl(n,1,this.e,w,p,!g))):p==null?this.c!=null?o.ji(u,null):o.ji(u,o1):(this.zl(p),o.ji(u,p))},"U6d"),x.Ck=i(function(n,o,u){var p,g;n.sh()&&n.th()?(p=!0,g=o.ii(u),g==null?(p=!1,g=this.b):Qe(g)===Qe(o1)&&(g=null),o.ki(u),Qi(n,this.d.Bl(n,2,this.e,g,this.b,p))):o.ki(u)},"V6d");var Szi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",772);G(1310,772,{},W7t),x.zl=i(function(n){if(!this.a.dk(n))throw xe(new G8(nQ+mf(n)+iQ+this.a+"'"))},"X6d");var Azi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1310);G(1311,772,{},R8t),x.zl=i(function(n){},"Z6d");var Rzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1311);G(402,499,{},gY),x.wk=i(function(n,o,u,p,g){var w,k,A,D,M;if(M=o.ii(u),this.rk()&&Qe(M)===Qe(o1))return null;if(this._k()&&p&&M!=null){if(A=y(M,52),A.Sh()&&(D=gv(n,A),A!=D)){if(!Xfe(this.a,D))throw xe(new G8(nQ+mf(D)+iQ+this.a+"'"));o.ji(u,M=D),this.$k()&&(w=y(D,52),k=A.Qh(n,this.b?ja(A.Ah(),this.b):-1-ja(n.Ah(),this.e),null,null),!w.Mh()&&(k=w.Oh(n,this.b?ja(w.Ah(),this.b):-1-ja(n.Ah(),this.e),null,k)),k&&k.mj()),n.sh()&&n.th()&&Qi(n,new F9(n,9,this.e,A,D))}return M}else return M},"a7d"),x.xk=i(function(n,o,u,p,g){var w,k;return k=o.ii(u),Qe(k)===Qe(o1)&&(k=null),o.ji(u,p),this.Kj()?Qe(k)!==Qe(p)&&k!=null&&(w=y(k,52),g=w.Qh(n,ja(w.Ah(),this.b),null,g)):this.$k()&&k!=null&&(g=y(k,52).Qh(n,-1-ja(n.Ah(),this.e),null,g)),n.sh()&&n.th()&&(!g&&(g=new Xb(4)),g.lj(new F9(n,1,this.e,k,p))),g},"b7d"),x.yk=i(function(n,o,u,p,g){var w;return w=o.ii(u),Qe(w)===Qe(o1)&&(w=null),o.ki(u),n.sh()&&n.th()&&(!g&&(g=new Xb(4)),this.rk()?g.lj(new F9(n,2,this.e,w,null)):g.lj(new F9(n,1,this.e,w,null))),g},"c7d"),x.zk=i(function(n,o,u){var p;return p=o.ii(u),p!=null},"d7d"),x.Ak=i(function(n,o,u,p){var g,w,k,A,D;if(p!=null&&!Xfe(this.a,p))throw xe(new G8(nQ+(Ge(p,57)?LDe(y(p,57).Ah()):JRe(mf(p)))+iQ+this.a+"'"));D=o.ii(u),A=D!=null,this.rk()&&Qe(D)===Qe(o1)&&(D=null),k=null,this.Kj()?Qe(D)!==Qe(p)&&(D!=null&&(g=y(D,52),k=g.Qh(n,ja(g.Ah(),this.b),null,k)),p!=null&&(g=y(p,52),k=g.Oh(n,ja(g.Ah(),this.b),null,k))):this.$k()&&Qe(D)!==Qe(p)&&(D!=null&&(k=y(D,52).Qh(n,-1-ja(n.Ah(),this.e),null,k)),p!=null&&(k=y(p,52).Oh(n,-1-ja(n.Ah(),this.e),null,k))),p==null&&this.rk()?o.ji(u,o1):o.ji(u,p),n.sh()&&n.th()?(w=new Uce(n,1,this.e,D,p,this.rk()&&!A),k?(k.lj(w),k.mj()):Qi(n,w)):k&&k.mj()},"e7d"),x.Ck=i(function(n,o,u){var p,g,w,k,A;A=o.ii(u),k=A!=null,this.rk()&&Qe(A)===Qe(o1)&&(A=null),w=null,A!=null&&(this.Kj()?(p=y(A,52),w=p.Qh(n,ja(p.Ah(),this.b),null,w)):this.$k()&&(w=y(A,52).Qh(n,-1-ja(n.Ah(),this.e),null,w))),o.ki(u),n.sh()&&n.th()?(g=new Uce(n,this.rk()?2:1,this.e,A,null,k),w?(w.lj(g),w.mj()):Qi(n,g)):w&&w.mj()},"f7d"),x.Kj=i(function(){return!1},"g7d"),x.$k=i(function(){return!1},"h7d"),x._k=i(function(){return!1},"i7d"),x.rk=i(function(){return!1},"j7d");var Lzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",402);G(561,402,{},Wle),x.$k=i(function(){return!0},"l7d");var _zi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",561);G(1314,561,{},_6t),x._k=i(function(){return!0},"n7d");var Dzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1314);G(774,561,{},VAe),x.rk=i(function(){return!0},"p7d");var Izi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",774);G(1316,774,{},D6t),x._k=i(function(){return!0},"r7d");var Mzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1316);G(639,561,{},sce),x.Kj=i(function(){return!0},"t7d");var Nzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",639);G(1315,639,{},PAt),x._k=i(function(){return!0},"v7d");var Ozi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1315);G(775,639,{},R8e),x.rk=i(function(){return!0},"x7d");var Pzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",775);G(1317,775,{},BAt),x._k=i(function(){return!0},"z7d");var Bzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1317);G(640,402,{},UAe),x._k=i(function(){return!0},"B7d");var Fzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",640);G(1318,640,{},I6t),x.rk=i(function(){return!0},"D7d");var $zi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1318);G(776,640,{},S8e),x.Kj=i(function(){return!0},"F7d");var Gzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",776);G(1319,776,{},FAt),x.rk=i(function(){return!0},"H7d");var jzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1319);G(1312,402,{},L6t),x.rk=i(function(){return!0},"J7d");var zzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1312);G(773,402,{},A8e),x.Kj=i(function(){return!0},"L7d");var Uzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",773);G(1313,773,{},$At),x.rk=i(function(){return!0},"N7d");var Vzi=j(Qr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1313);G(777,562,rQ,x7e),x.wl=i(function(n){return new x7e(this.a,this.c,n)},"R7d"),x.kd=i(function(){return this.b},"S7d"),x.xl=i(function(n,o,u){return Kcn(this,n,this.b,u)},"T7d"),x.yl=i(function(n,o,u){return Jcn(this,n,this.b,u)},"U7d");var Wzi=j(Qr,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",777);G(1320,1,Uge,N3t),x.Dk=i(function(n){return this.a},"W7d"),x.Oj=i(function(){return Ge(this.a,98)?y(this.a,98).Oj():!this.a.dc()},"X7d"),x.Wb=i(function(n){this.a.$b(),this.a.Fc(y(n,16))},"Y7d"),x.Ek=i(function(){Ge(this.a,98)?y(this.a,98).Ek():this.a.$b()},"Z7d");var Hzi=j(Qr,"EStructuralFeatureImpl/SettingMany",1320);G(1321,562,rQ,l_t),x.vl=i(function(n){return new Kle((ga(),zN),this.b.oi(this.a,n))},"_7d"),x.kd=i(function(){return null},"a8d"),x.xl=i(function(n,o,u){return u},"b8d"),x.yl=i(function(n,o,u){return u},"c8d");var qzi=j(Qr,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1321);G(641,562,rQ,Kle),x.vl=i(function(n){return new Kle(this.c,n)},"e8d"),x.kd=i(function(){return this.a},"f8d"),x.xl=i(function(n,o,u){return u},"g8d"),x.yl=i(function(n,o,u){return u},"h8d");var Yzi=j(Qr,"EStructuralFeatureImpl/SimpleFeatureMapEntry",641);G(396,492,sm,N8),x.$i=i(function(n){return tt(op,Fr,29,n,0,1)},"j8d"),x.Wi=i(function(){return!1},"k8d");var Xzi=j(Qr,"ESuperAdapter/1",396);G(446,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,835:1,52:1,100:1,161:1,446:1,117:1,118:1},aoe),x.Ih=i(function(n,o,u){var p;switch(n){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new O9(this,dl,this)),this.a}return fd(this,n-On((Dr(),AT)),Nr((p=y(an(this,16),29),p||AT),n),o,u)},"n8d"),x.Rh=i(function(n,o,u){var p,g;switch(o){case 0:return!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),qo(this.Ab,n,u);case 2:return!this.a&&(this.a=new O9(this,dl,this)),qo(this.a,n,u)}return g=y(Nr((p=y(an(this,16),29),p||(Dr(),AT)),o),69),g.uk().yk(this,Nu(this),o-On((Dr(),AT)),n,u)},"o8d"),x.Th=i(function(n){var o;switch(n){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 hd(this,n-On((Dr(),AT)),Nr((o=y(an(this,16),29),o||AT),n))},"p8d"),x.$h=i(function(n,o){var u;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab),!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),rs(this.Ab,y(o,18));return;case 1:wu(this,di(o));return;case 2:!this.a&&(this.a=new O9(this,dl,this)),Kn(this.a),!this.a&&(this.a=new O9(this,dl,this)),rs(this.a,y(o,18));return}bd(this,n-On((Dr(),AT)),Nr((u=y(an(this,16),29),u||AT),n),o)},"q8d"),x.fi=i(function(){return Dr(),AT},"r8d"),x.hi=i(function(n){var o;switch(n){case 0:!this.Ab&&(this.Ab=new xt(Ni,this,0,3)),Kn(this.Ab);return;case 1:wu(this,null);return;case 2:!this.a&&(this.a=new O9(this,dl,this)),Kn(this.a);return}yd(this,n-On((Dr(),AT)),Nr((o=y(an(this,16),29),o||AT),n))},"s8d");var Kzi=j(Qr,"ETypeParameterImpl",446);G(447,81,Ul,O9),x.Lj=i(function(n,o){return G1n(this,y(n,87),o)},"w8d"),x.Mj=i(function(n,o){return j1n(this,y(n,87),o)},"x8d");var Jzi=j(Qr,"ETypeParameterImpl/1",447);G(638,44,KC,Roe),x.ec=i(function(){return new PH(this)},"z8d");var Qzi=j(Qr,"ETypeParameterImpl/2",638);G(557,i0,bh,PH),x.Ec=i(function(n){return fAt(this,y(n,87))},"D8d"),x.Fc=i(function(n){var o,u,p;for(p=!1,u=n.Jc();u.Ob();)o=y(u.Pb(),87),Oi(this.a,o,"")==null&&(p=!0);return p},"E8d"),x.$b=i(function(){Sc(this.a)},"F8d"),x.Gc=i(function(n){return Kc(this.a,n)},"G8d"),x.Jc=i(function(){var n;return n=new t3(new yk(this.a).a),new BH(n)},"H8d"),x.Kc=i(function(n){return Y_t(this,n)},"I8d"),x.gc=i(function(){return a9(this.a)},"J8d");var Zzi=j(Qr,"ETypeParameterImpl/2/1",557);G(558,1,fo,BH),x.Nb=i(function(n){So(this,n)},"L8d"),x.Pb=i(function(){return y(MC(this.a).jd(),87)},"N8d"),x.Ob=i(function(){return this.a.b},"M8d"),x.Qb=i(function(){u9t(this.a)},"O8d");var eUi=j(Qr,"ETypeParameterImpl/2/1/1",558);G(1282,44,KC,C4t),x._b=i(function(n){return lo(n)?Wce(this,n):!!Sl(this.f,n)},"Q8d"),x.xc=i(function(n){var o,u;return o=lo(n)?Jc(this,n):Yl(Sl(this.f,n)),Ge(o,836)?(u=y(o,836),o=u.Ik(),Oi(this,y(n,241),o),o):o??(n==null?(Hoe(),Qir):null)},"R8d");var tUi=j(Qr,"EValidatorRegistryImpl",1282);G(1304,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,2005:1,52:1,100:1,161:1,117:1,118:1},Zbt),x.oi=i(function(n,o){switch(n.fk()){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 o==null?null:zl(o);case 25:return shn(o);case 27:return wun(o);case 28:return xun(o);case 29:return o==null?null:O5t(PN[0],y(o,205));case 41:return o==null?"":j2(y(o,298));case 42:return zl(o);case 50:return di(o);default:throw xe(new rn(PR+n.ve()+uT))}},"$8d"),x.pi=i(function(n){var o,u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce;switch(n.G==-1&&(n.G=(ee=Nf(n),ee?Xy(ee.si(),n):-1)),n.G){case 0:return u=new Eoe,u;case 1:return o=new YSe,o;case 2:return p=new ZSe,p;case 4:return g=new $H,g;case 5:return w=new k4t,w;case 6:return k=new G3t,k;case 7:return A=new QSe,A;case 10:return M=new LH,M;case 11:return F=new Soe,F;case 12:return z=new tRt,z;case 13:return ie=new Aoe,ie;case 14:return ue=new HAe,ue;case 17:return fe=new Ubt,fe;case 18:return D=new vx,D;case 19:return Ce=new aoe,Ce;default:throw xe(new rn(Age+n.zb+uT))}},"_8d"),x.qi=i(function(n,o){switch(n.fk()){case 20:return o==null?null:new d6e(o);case 21:return o==null?null:new ev(o);case 23:case 22:return o==null?null:ign(o);case 26:case 24:return o==null?null:d$(Ff(o,-128,127)<<24>>24);case 25:return e2n(o);case 27:return G0n(o);case 28:return j0n(o);case 29:return syn(o);case 32:case 31:return o==null?null:u3(o);case 38:case 37:return o==null?null:new P5e(o);case 40:case 39:return o==null?null:Et(Ff(o,bo,Ui));case 41:return null;case 42:return o==null,null;case 44:case 43:return o==null?null:o3(nJ(o));case 49:case 48:return o==null?null:F7(Ff(o,aQ,32767)<<16>>16);case 50:return o;default:throw xe(new rn(PR+n.ve()+uT))}},"a9d");var rUi=j(Qr,"EcoreFactoryImpl",1304);G(549,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,2003:1,52:1,100:1,161:1,184:1,549:1,117:1,118:1,680:1},C7t),x.gb=!1,x.hb=!1;var _We,Jir=!1,nUi=j(Qr,"EcorePackageImpl",549);G(1200,1,{836:1},evt),x.Ik=i(function(){return Y5t(),Zir},"q9d");var iUi=j(Qr,"EcorePackageImpl/1",1200);G(1209,1,$i,tvt),x.dk=i(function(n){return Ge(n,158)},"s9d"),x.ek=i(function(n){return tt(rz,Fr,158,n,0,1)},"t9d");var aUi=j(Qr,"EcorePackageImpl/10",1209);G(1210,1,$i,rvt),x.dk=i(function(n){return Ge(n,197)},"v9d"),x.ek=i(function(n){return tt(Hye,Fr,197,n,0,1)},"w9d");var sUi=j(Qr,"EcorePackageImpl/11",1210);G(1211,1,$i,nvt),x.dk=i(function(n){return Ge(n,57)},"y9d"),x.ek=i(function(n){return tt(Yv,Fr,57,n,0,1)},"z9d");var oUi=j(Qr,"EcorePackageImpl/12",1211);G(1212,1,$i,ivt),x.dk=i(function(n){return Ge(n,403)},"B9d"),x.ek=i(function(n){return tt(lp,LPe,62,n,0,1)},"C9d");var lUi=j(Qr,"EcorePackageImpl/13",1212);G(1213,1,$i,avt),x.dk=i(function(n){return Ge(n,241)},"E9d"),x.ek=i(function(n){return tt(Ag,Fr,241,n,0,1)},"F9d");var cUi=j(Qr,"EcorePackageImpl/14",1213);G(1214,1,$i,svt),x.dk=i(function(n){return Ge(n,504)},"H9d"),x.ek=i(function(n){return tt(ET,Fr,2081,n,0,1)},"I9d");var uUi=j(Qr,"EcorePackageImpl/15",1214);G(1215,1,$i,ovt),x.dk=i(function(n){return Ge(n,103)},"K9d"),x.ek=i(function(n){return tt(c4,iE,19,n,0,1)},"L9d");var hUi=j(Qr,"EcorePackageImpl/16",1215);G(1216,1,$i,lvt),x.dk=i(function(n){return Ge(n,179)},"N9d"),x.ek=i(function(n){return tt(ih,iE,179,n,0,1)},"O9d");var fUi=j(Qr,"EcorePackageImpl/17",1216);G(1217,1,$i,cvt),x.dk=i(function(n){return Ge(n,470)},"Q9d"),x.ek=i(function(n){return tt(o4,Fr,470,n,0,1)},"R9d");var dUi=j(Qr,"EcorePackageImpl/18",1217);G(1218,1,$i,uvt),x.dk=i(function(n){return Ge(n,550)},"T9d"),x.ek=i(function(n){return tt(mc,MHt,550,n,0,1)},"U9d");var pUi=j(Qr,"EcorePackageImpl/19",1218);G(1201,1,$i,hvt),x.dk=i(function(n){return Ge(n,335)},"W9d"),x.ek=i(function(n){return tt(l4,iE,38,n,0,1)},"X9d");var gUi=j(Qr,"EcorePackageImpl/2",1201);G(1219,1,$i,fvt),x.dk=i(function(n){return Ge(n,248)},"Z9d"),x.ek=i(function(n){return tt(dl,KHt,87,n,0,1)},"$9d");var mUi=j(Qr,"EcorePackageImpl/20",1219);G(1220,1,$i,dvt),x.dk=i(function(n){return Ge(n,446)},"aae"),x.ek=i(function(n){return tt(Gu,Fr,835,n,0,1)},"bae");var yUi=j(Qr,"EcorePackageImpl/21",1220);G(1221,1,$i,pvt),x.dk=i(function(n){return Lk(n)},"dae"),x.ek=i(function(n){return tt(Ja,Dt,473,n,8,1)},"eae");var bUi=j(Qr,"EcorePackageImpl/22",1221);G(1222,1,$i,gvt),x.dk=i(function(n){return Ge(n,195)},"gae"),x.ek=i(function(n){return tt(xh,Dt,195,n,0,2)},"hae");var vUi=j(Qr,"EcorePackageImpl/23",1222);G(1223,1,$i,mvt),x.dk=i(function(n){return Ge(n,221)},"jae"),x.ek=i(function(n){return tt(A6,Dt,221,n,0,1)},"kae");var wUi=j(Qr,"EcorePackageImpl/24",1223);G(1224,1,$i,yvt),x.dk=i(function(n){return Ge(n,180)},"mae"),x.ek=i(function(n){return tt(SM,Dt,180,n,0,1)},"nae");var xUi=j(Qr,"EcorePackageImpl/25",1224);G(1225,1,$i,bvt),x.dk=i(function(n){return Ge(n,205)},"pae"),x.ek=i(function(n){return tt(gQ,Dt,205,n,0,1)},"qae");var TUi=j(Qr,"EcorePackageImpl/26",1225);G(1226,1,$i,vvt),x.dk=i(function(n){return!1},"sae"),x.ek=i(function(n){return tt(YWe,Fr,2177,n,0,1)},"tae");var kUi=j(Qr,"EcorePackageImpl/27",1226);G(1227,1,$i,wvt),x.dk=i(function(n){return _k(n)},"vae"),x.ek=i(function(n){return tt(Ts,Dt,346,n,7,1)},"wae");var CUi=j(Qr,"EcorePackageImpl/28",1227);G(1228,1,$i,xvt),x.dk=i(function(n){return Ge(n,61)},"yae"),x.ek=i(function(n){return tt(cWe,T3,61,n,0,1)},"zae");var EUi=j(Qr,"EcorePackageImpl/29",1228);G(1202,1,$i,Tvt),x.dk=i(function(n){return Ge(n,505)},"Bae"),x.ek=i(function(n){return tt(Ni,{3:1,4:1,5:1,1998:1},588,n,0,1)},"Cae");var SUi=j(Qr,"EcorePackageImpl/3",1202);G(1229,1,$i,kvt),x.dk=i(function(n){return Ge(n,568)},"Eae"),x.ek=i(function(n){return tt(fWe,Fr,2004,n,0,1)},"Fae");var AUi=j(Qr,"EcorePackageImpl/30",1229);G(1230,1,$i,Cvt),x.dk=i(function(n){return Ge(n,163)},"Hae"),x.ek=i(function(n){return tt(OWe,T3,163,n,0,1)},"Iae");var RUi=j(Qr,"EcorePackageImpl/31",1230);G(1231,1,$i,Evt),x.dk=i(function(n){return Ge(n,75)},"Kae"),x.ek=i(function(n){return tt(_ee,aqt,75,n,0,1)},"Lae");var LUi=j(Qr,"EcorePackageImpl/32",1231);G(1232,1,$i,Svt),x.dk=i(function(n){return Ge(n,164)},"Nae"),x.ek=i(function(n){return tt(VR,Dt,164,n,0,1)},"Oae");var _Ui=j(Qr,"EcorePackageImpl/33",1232);G(1233,1,$i,Avt),x.dk=i(function(n){return Ge(n,15)},"Qae"),x.ek=i(function(n){return tt(Ls,Dt,15,n,0,1)},"Rae");var DUi=j(Qr,"EcorePackageImpl/34",1233);G(1234,1,$i,Rvt),x.dk=i(function(n){return Ge(n,298)},"Tae"),x.ek=i(function(n){return tt(zPe,Fr,298,n,0,1)},"Uae");var IUi=j(Qr,"EcorePackageImpl/35",1234);G(1235,1,$i,Lvt),x.dk=i(function(n){return Ge(n,190)},"Wae"),x.ek=i(function(n){return tt(fT,Dt,190,n,0,1)},"Xae");var MUi=j(Qr,"EcorePackageImpl/36",1235);G(1236,1,$i,_vt),x.dk=i(function(n){return Ge(n,92)},"Zae"),x.ek=i(function(n){return tt(UPe,Fr,92,n,0,1)},"$ae");var NUi=j(Qr,"EcorePackageImpl/37",1236);G(1237,1,$i,Dvt),x.dk=i(function(n){return Ge(n,589)},"abe"),x.ek=i(function(n){return tt(DWe,Fr,589,n,0,1)},"bbe");var OUi=j(Qr,"EcorePackageImpl/38",1237);G(1238,1,$i,Ivt),x.dk=i(function(n){return!1},"dbe"),x.ek=i(function(n){return tt(XWe,Fr,2178,n,0,1)},"ebe");var PUi=j(Qr,"EcorePackageImpl/39",1238);G(1203,1,$i,Mvt),x.dk=i(function(n){return Ge(n,88)},"gbe"),x.ek=i(function(n){return tt(op,Fr,29,n,0,1)},"hbe");var BUi=j(Qr,"EcorePackageImpl/4",1203);G(1239,1,$i,Nvt),x.dk=i(function(n){return Ge(n,191)},"jbe"),x.ek=i(function(n){return tt(dT,Dt,191,n,0,1)},"kbe");var FUi=j(Qr,"EcorePackageImpl/40",1239);G(1240,1,$i,Ovt),x.dk=i(function(n){return lo(n)},"mbe"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"nbe");var $Ui=j(Qr,"EcorePackageImpl/41",1240);G(1241,1,$i,Pvt),x.dk=i(function(n){return Ge(n,586)},"pbe"),x.ek=i(function(n){return tt(hWe,Fr,586,n,0,1)},"qbe");var GUi=j(Qr,"EcorePackageImpl/42",1241);G(1242,1,$i,Bvt),x.dk=i(function(n){return!1},"sbe"),x.ek=i(function(n){return tt(KWe,Dt,2179,n,0,1)},"tbe");var jUi=j(Qr,"EcorePackageImpl/43",1242);G(1243,1,$i,Fvt),x.dk=i(function(n){return Ge(n,45)},"vbe"),x.ek=i(function(n){return tt(Cw,sJ,45,n,0,1)},"wbe");var zUi=j(Qr,"EcorePackageImpl/44",1243);G(1204,1,$i,$vt),x.dk=i(function(n){return Ge(n,143)},"ybe"),x.ek=i(function(n){return tt(Rg,Fr,143,n,0,1)},"zbe");var UUi=j(Qr,"EcorePackageImpl/5",1204);G(1205,1,$i,Gvt),x.dk=i(function(n){return Ge(n,159)},"Bbe"),x.ek=i(function(n){return tt(Qye,Fr,159,n,0,1)},"Cbe");var VUi=j(Qr,"EcorePackageImpl/6",1205);G(1206,1,$i,jvt),x.dk=i(function(n){return Ge(n,459)},"Ebe"),x.ek=i(function(n){return tt(Lee,Fr,675,n,0,1)},"Fbe");var WUi=j(Qr,"EcorePackageImpl/7",1206);G(1207,1,$i,zvt),x.dk=i(function(n){return Ge(n,568)},"Hbe"),x.ek=i(function(n){return tt(ny,Fr,684,n,0,1)},"Ibe");var HUi=j(Qr,"EcorePackageImpl/8",1207);G(1208,1,$i,Uvt),x.dk=i(function(n){return Ge(n,469)},"Kbe"),x.ek=i(function(n){return tt(ON,Fr,469,n,0,1)},"Lbe");var qUi=j(Qr,"EcorePackageImpl/9",1208);G(1020,2045,IHt,q4t),x.Ki=i(function(n,o){Bdn(this,y(o,415))},"Qbe"),x.Oi=i(function(n,o){KBt(this,n,y(o,415))},"Rbe");var YUi=j(Qr,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1020);G(1021,151,UG,f7t),x.hj=i(function(){return this.a.a},"Tbe");var XUi=j(Qr,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1021);G(1048,1047,{},E5t);var KUi=j("org.eclipse.emf.ecore.plugin","EcorePlugin",1048),DWe=za(sqt,"Resource");G(787,1486,oqt),x.Fl=i(function(n){},"Zbe"),x.Gl=i(function(n){},"$be"),x.Cl=i(function(){return!this.a&&(this.a=new voe(this)),this.a},"_be"),x.Dl=i(function(n){var o,u,p,g,w;if(p=n.length,p>0)if(un(0,n.length),n.charCodeAt(0)==47){for(w=new vu(4),g=1,o=1;o<p;++o)un(o,n.length),n.charCodeAt(o)==47&&(Nt(w,g==o?"":(ko(g,o,n.length),n.substr(g,o-g))),g=o+1);return Nt(w,(un(g,n.length+1),n.substr(g))),Imn(this,w)}else un(p-1,n.length),n.charCodeAt(p-1)==63&&(u=g8e(n,Ku(63),p-2),u>0&&(n=(ko(0,u,n.length),n.substr(0,u))));return qbn(this,n)},"ace"),x.El=i(function(){return this.c},"bce"),x.Ib=i(function(){var n;return j2(this.Pm)+"@"+(n=Aa(this)>>>0,n.toString(16))+" uri='"+this.d+"'"},"cce"),x.b=!1;var JUi=j(Vge,"ResourceImpl",787);G(1487,787,oqt,P3t);var QUi=j(Vge,"BinaryResourceImpl",1487);G(1160,697,Fge),x._i=i(function(n){return Ge(n,57)?xsn(this,y(n,57)):Ge(n,589)?new Sn(y(n,589).Cl()):Qe(n)===Qe(this.f)?y(n,18).Jc():(r7(),az.a)},"gce"),x.Ob=i(function(){return k9e(this)},"hce"),x.a=!1;var ZUi=j(Na,"EcoreUtil/ContentTreeIterator",1160);G(1488,1160,Fge,H8t),x._i=i(function(n){return Qe(n)===Qe(this.f)?y(n,16).Jc():new GLt(y(n,57))},"jce");var eVi=j(Vge,"ResourceImpl/5",1488);G(648,2057,XHt,voe),x.Gc=i(function(n){return this.i<=4?K7(this,n):Ge(n,52)&&y(n,52).Gh()==this.a},"lce"),x.Ki=i(function(n,o){n==this.i-1&&(this.a.b||(this.a.b=!0))},"mce"),x.Mi=i(function(n,o){n==0?this.a.b||(this.a.b=!0):wue(this,n,o)},"nce"),x.Oi=i(function(n,o){},"oce"),x.Pi=i(function(n,o,u){},"pce"),x.Jj=i(function(){return 2},"qce"),x.hj=i(function(){return this.a},"rce"),x.Kj=i(function(){return!0},"sce"),x.Lj=i(function(n,o){var u;return u=y(n,52),o=u.ci(this.a,o),o},"tce"),x.Mj=i(function(n,o){var u;return u=y(n,52),u.ci(null,o)},"uce"),x.Nj=i(function(){return!1},"vce"),x.Qi=i(function(){return!0},"wce"),x.$i=i(function(n){return tt(Yv,Fr,57,n,0,1)},"xce"),x.Wi=i(function(){return!1},"yce");var tVi=j(Vge,"ResourceImpl/ContentsEList",648);G(954,2027,gR,B3t),x.dd=i(function(n){return this.a.Ii(n)},"Ace"),x.gc=i(function(){return this.a.gc()},"Bce");var rVi=j(Na,"AbstractSequentialInternalEList/1",954),IWe,MWe,Ro,NWe;G(626,1,{},qAt);var Dee,Iee,nVi=j(Na,"BasicExtendedMetaData",626);G(1151,1,{},jSt),x.Hl=i(function(){return null},"ode"),x.Il=i(function(){return this.a==-2&&mJr(this,Z1n(this.d,this.b)),this.a},"pde"),x.Jl=i(function(){return null},"qde"),x.Kl=i(function(){return Ir(),Ir(),Go},"rde"),x.ve=i(function(){return this.c==GR&&vJr(this,bOt(this.d,this.b)),this.c},"sde"),x.Ll=i(function(){return 0},"tde"),x.a=-2,x.c=GR;var iVi=j(Na,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1151);G(1152,1,{},xLt),x.Hl=i(function(){return this.a==(b7(),Dee)&&yJr(this,Bxn(this.f,this.b)),this.a},"Ade"),x.Il=i(function(){return 0},"Bde"),x.Jl=i(function(){return this.c==(b7(),Dee)&&wJr(this,Fxn(this.f,this.b)),this.c},"Cde"),x.Kl=i(function(){return!this.d&&TJr(this,Tkn(this.f,this.b)),this.d},"Dde"),x.ve=i(function(){return this.e==GR&&CJr(this,bOt(this.f,this.b)),this.e},"Ede"),x.Ll=i(function(){return this.g==-2&&SJr(this,w1n(this.f,this.b)),this.g},"Fde"),x.e=GR,x.g=-2;var aVi=j(Na,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1152);G(1150,1,{},zSt),x.b=!1,x.c=!1;var sVi=j(Na,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1150);G(1153,1,{},TLt),x.c=-2,x.e=GR,x.f=GR;var oVi=j(Na,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1153);G(582,624,Ul,nY),x.Jj=i(function(){return this.c},"Yde"),x.ml=i(function(){return!1},"Zde"),x.Ui=i(function(n,o){return o},"$de"),x.c=0;var lVi=j(Na,"EDataTypeEList",582),OWe=za(Na,"FeatureMap");G(76,582,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},ns),x._c=i(function(n,o){iwn(this,n,y(o,75))},"gfe"),x.Ec=i(function(n){return x2n(this,y(n,75))},"hfe"),x.Fi=i(function(n){xan(this,y(n,75))},"mfe"),x.Lj=i(function(n,o){return Ktn(this,y(n,75),o)},"xfe"),x.Mj=i(function(n,o){return y8e(this,y(n,75),o)},"yfe"),x.Ri=i(function(n,o){return LTn(this,n,o)},"Afe"),x.Ui=i(function(n,o){return y4n(this,n,y(o,75))},"Cfe"),x.fd=i(function(n,o){return Uwn(this,n,y(o,75))},"Efe"),x.Sj=i(function(n,o){return Jtn(this,y(n,75),o)},"Ife"),x.Tj=i(function(n,o){return vAt(this,y(n,75),o)},"Jfe"),x.Uj=i(function(n,o,u){return c1n(this,y(n,75),y(o,75),u)},"Kfe"),x.Xi=i(function(n,o){return pfe(this,n,y(o,75))},"Mfe"),x.Ml=i(function(n,o){return bIe(this,n,o)},"ife"),x.ad=i(function(n,o){var u,p,g,w,k,A,D,M,F;for(M=new Fx(o.gc()),g=o.Jc();g.Ob();)if(p=y(g.Pb(),75),w=p.Jk(),W1(this.e,w))(!w.Qi()||!XY(this,w,p.kd())&&!K7(M,p))&&Zn(M,p);else{for(F=Ou(this.e.Ah(),w),u=y(this.g,122),k=!0,A=0;A<this.i;++A)if(D=u[A],F.$l(D.Jk())){y(FC(this,A,p),75),k=!1;break}k&&Zn(M,p)}return BLe(this,n,M)},"jfe"),x.Fc=i(function(n){var o,u,p,g,w,k,A,D,M;for(D=new Fx(n.gc()),p=n.Jc();p.Ob();)if(u=y(p.Pb(),75),g=u.Jk(),W1(this.e,g))(!g.Qi()||!XY(this,g,u.kd())&&!K7(D,u))&&Zn(D,u);else{for(M=Ou(this.e.Ah(),g),o=y(this.g,122),w=!0,k=0;k<this.i;++k)if(A=o[k],M.$l(A.Jk())){y(FC(this,k,u),75),w=!1;break}w&&Zn(D,u)}return rs(this,D)},"kfe"),x.Di=i(function(n){return this.j=-1,Kfe(this,this.i,n)},"lfe"),x.Nl=i(function(n,o,u){return uIe(this,n,o,u)},"nfe"),x.Vk=i(function(n,o){return aG(this,n,o)},"ofe"),x.Ol=i(function(n,o,u){return $Ie(this,n,o,u)},"pfe"),x.Pl=i(function(){return this},"qfe"),x.Ql=i(function(n,o){return lG(this,n,o)},"rfe"),x.Rl=i(function(n){return y(je(this,n),75).Jk()},"sfe"),x.Sl=i(function(n){return y(je(this,n),75).kd()},"tfe"),x.Tl=i(function(){return this.b},"ufe"),x.Kj=i(function(){return!0},"vfe"),x.Rj=i(function(){return!0},"wfe"),x.Ul=i(function(n){return!O$(this,n)},"zfe"),x.$i=i(function(n){return tt(Kir,aqt,344,n,0,1)},"Bfe"),x.nl=i(function(n){return Hle(this,n)},"Dfe"),x.Wb=i(function(n){zF(this,n)},"Ffe"),x.Vl=i(function(n,o){ZK(this,n,o)},"Gfe"),x.Wl=i(function(n){return TIt(this,n)},"Hfe"),x.Xl=i(function(n){rPt(this,n)},"Lfe");var cVi=j(Na,"BasicFeatureMap",76);G(1925,1,Hm),x.Nb=i(function(n){So(this,n)},"Sfe"),x.Rb=i(function(n){if(this.g==-1)throw xe(new hh);wY(this);try{V$t(this.e,this.b,this.a,n),this.d=this.e.j,dK(this)}catch(o){throw o=hs(o),Ge(o,99)?xe(new od):xe(o)}},"Rfe"),x.Ob=i(function(){return hhe(this)},"Tfe"),x.Sb=i(function(){return VMt(this)},"Ufe"),x.Pb=i(function(){return dK(this)},"Vfe"),x.Tb=i(function(){return this.a},"Wfe"),x.Ub=i(function(){var n;if(VMt(this))return wY(this),this.g=--this.a,this.sl()&&(n=DI(this.e,this.b,this.c,this.a,this.j),this.j=n),this.i=0,this.j;throw xe(new Hl)},"Xfe"),x.Vb=i(function(){return this.a-1},"Yfe"),x.Qb=i(function(){if(this.g==-1)throw xe(new hh);wY(this);try{OBt(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(n){throw n=hs(n),Ge(n,99)?xe(new od):xe(n)}},"Zfe"),x.sl=i(function(){return!1},"$fe"),x.Wb=i(function(n){if(this.g==-1)throw xe(new hh);wY(this);try{yjt(this.e,this.b,this.g,n),this.d=this.e.j}catch(o){throw o=hs(o),Ge(o,99)?xe(new od):xe(o)}},"_fe"),x.a=0,x.c=0,x.d=0,x.f=!1,x.g=0,x.i=0;var uVi=j(Na,"FeatureMapUtil/BasicFeatureEIterator",1925);G(412,1925,Hm,R7),x.Yl=i(function(){var n,o,u;for(u=this.e.i,n=y(this.e.g,122);this.c<u;){if(o=n[this.c],this.k.$l(o.Jk()))return this.j=this.f?o:o.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},"bge"),x.Zl=i(function(){var n,o;for(n=y(this.e.g,122);--this.c>=0;)if(o=n[this.c],this.k.$l(o.Jk()))return this.j=this.f?o:o.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},"cge");var hVi=j(Na,"BasicFeatureMap/FeatureEIterator",412);G(666,412,Hm,Lle),x.sl=i(function(){return!0},"ege");var fVi=j(Na,"BasicFeatureMap/ResolvingFeatureEIterator",666);G(952,482,eQ,F5t),x.nj=i(function(){return this},"gge");var dVi=j(Na,"EContentsEList/1",952);G(953,482,eQ,s5t),x.sl=i(function(){return!1},"ige");var pVi=j(Na,"EContentsEList/2",953);G(951,287,tQ,$5t),x.ul=i(function(n){},"kge"),x.Ob=i(function(){return!1},"lge"),x.Sb=i(function(){return!1},"mge");var gVi=j(Na,"EContentsEList/FeatureIteratorImpl/1",951);G(825,582,Ul,TAe),x.Li=i(function(){this.a=!0},"oge"),x.Oj=i(function(){return this.a},"pge"),x.Ek=i(function(){var n;Kn(this),hf(this.e)?(n=this.a,this.a=!1,Qi(this.e,new Pp(this.e,2,this.c,n,!1))):this.a=!1},"qge"),x.a=!1;var mVi=j(Na,"EDataTypeEList/Unsettable",825);G(1923,582,Ul,V5t),x.Qi=i(function(){return!0},"sge");var yVi=j(Na,"EDataTypeUniqueEList",1923);G(1924,825,Ul,W5t),x.Qi=i(function(){return!0},"uge");var bVi=j(Na,"EDataTypeUniqueEList/Unsettable",1924);G(145,81,Ul,fh),x.ll=i(function(){return!0},"wge"),x.Ui=i(function(n,o){return d6(this,n,y(o,57))},"xge");var vVi=j(Na,"EObjectContainmentEList/Resolving",145);G(1154,544,Ul,H5t),x.ll=i(function(){return!0},"zge"),x.Ui=i(function(n,o){return d6(this,n,y(o,57))},"Age");var wVi=j(Na,"EObjectContainmentEList/Unsettable/Resolving",1154);G(753,14,Ul,u8e),x.Li=i(function(){this.a=!0},"Cge"),x.Oj=i(function(){return this.a},"Dge"),x.Ek=i(function(){var n;Kn(this),hf(this.e)?(n=this.a,this.a=!1,Qi(this.e,new Pp(this.e,2,this.c,n,!1))):this.a=!1},"Ege"),x.a=!1;var xVi=j(Na,"EObjectContainmentWithInverseEList/Unsettable",753);G(1188,753,Ul,sAt),x.ll=i(function(){return!0},"Gge"),x.Ui=i(function(n,o){return d6(this,n,y(o,57))},"Hge");var TVi=j(Na,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1188);G(745,491,Ul,kAe),x.Li=i(function(){this.a=!0},"Jge"),x.Oj=i(function(){return this.a},"Kge"),x.Ek=i(function(){var n;Kn(this),hf(this.e)?(n=this.a,this.a=!1,Qi(this.e,new Pp(this.e,2,this.c,n,!1))):this.a=!1},"Lge"),x.a=!1;var kVi=j(Na,"EObjectEList/Unsettable",745);G(339,491,Ul,wC),x.ll=i(function(){return!0},"Nge"),x.Ui=i(function(n,o){return d6(this,n,y(o,57))},"Oge");var CVi=j(Na,"EObjectResolvingEList",339);G(1828,745,Ul,q5t),x.ll=i(function(){return!0},"Qge"),x.Ui=i(function(n,o){return d6(this,n,y(o,57))},"Rge");var EVi=j(Na,"EObjectResolvingEList/Unsettable",1828);G(1489,1,{},Vvt);var Qir,SVi=j(Na,"EObjectValidator",1489);G(548,491,Ul,TY),x.gl=i(function(){return this.d},"Wge"),x.hl=i(function(){return this.b},"Xge"),x.Kj=i(function(){return!0},"Yge"),x.kl=i(function(){return!0},"Zge"),x.b=0;var AVi=j(Na,"EObjectWithInverseEList",548);G(1191,548,Ul,oAt),x.jl=i(function(){return!0},"_ge");var RVi=j(Na,"EObjectWithInverseEList/ManyInverse",1191);G(627,548,Ul,Jle),x.Li=i(function(){this.a=!0},"bhe"),x.Oj=i(function(){return this.a},"che"),x.Ek=i(function(){var n;Kn(this),hf(this.e)?(n=this.a,this.a=!1,Qi(this.e,new Pp(this.e,2,this.c,n,!1))):this.a=!1},"dhe"),x.a=!1;var LVi=j(Na,"EObjectWithInverseEList/Unsettable",627);G(1190,627,Ul,lAt),x.jl=i(function(){return!0},"fhe");var _Vi=j(Na,"EObjectWithInverseEList/Unsettable/ManyInverse",1190);G(754,548,Ul,h8e),x.ll=i(function(){return!0},"hhe"),x.Ui=i(function(n,o){return d6(this,n,y(o,57))},"ihe");var DVi=j(Na,"EObjectWithInverseResolvingEList",754);G(33,754,Ul,zr),x.jl=i(function(){return!0},"khe");var IVi=j(Na,"EObjectWithInverseResolvingEList/ManyInverse",33);G(755,627,Ul,f8e),x.ll=i(function(){return!0},"mhe"),x.Ui=i(function(n,o){return d6(this,n,y(o,57))},"nhe");var MVi=j(Na,"EObjectWithInverseResolvingEList/Unsettable",755);G(1189,755,Ul,cAt),x.jl=i(function(){return!0},"phe");var NVi=j(Na,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1189);G(1155,624,Ul),x.Ji=i(function(){return(this.b&1792)==0},"qhe"),x.Li=i(function(){this.b|=1},"rhe"),x.il=i(function(){return(this.b&4)!=0},"she"),x.Kj=i(function(){return(this.b&40)!=0},"the"),x.jl=i(function(){return(this.b&16)!=0},"uhe"),x.kl=i(function(){return(this.b&8)!=0},"vhe"),x.ll=i(function(){return(this.b&tb)!=0},"whe"),x.$k=i(function(){return(this.b&32)!=0},"xhe"),x.ml=i(function(){return(this.b&Wp)!=0},"yhe"),x.dk=i(function(n){return this.d?ZLt(this.d,n):this.Jk().Fk().dk(n)},"zhe"),x.Oj=i(function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},"Ahe"),x.Qi=i(function(){return(this.b&128)!=0},"Bhe"),x.Ek=i(function(){var n;Kn(this),(this.b&2)!=0&&(hf(this.e)?(n=(this.b&1)!=0,this.b&=-2,$8(this,new Pp(this.e,2,ja(this.e.Ah(),this.Jk()),n,!1))):this.b&=-2)},"Dhe"),x.Wi=i(function(){return(this.b&1536)==0},"Ehe"),x.b=0;var OVi=j(Na,"EcoreEList/Generic",1155);G(1156,1155,Ul,nRt),x.Jk=i(function(){return this.a},"Ghe");var PVi=j(Na,"EcoreEList/Dynamic",1156);G(752,67,sm,D5e),x.$i=i(function(n){return m$(this.a.a,n)},"Ihe");var BVi=j(Na,"EcoreEMap/1",752);G(751,81,Ul,s7e),x.Ki=i(function(n,o){gK(this.b,y(o,136))},"Khe"),x.Mi=i(function(n,o){ZIt(this.b)},"Lhe"),x.Ni=i(function(n,o,u){var p;++(p=this.b,y(o,136),p).e},"Mhe"),x.Oi=i(function(n,o){xhe(this.b,y(o,136))},"Nhe"),x.Pi=i(function(n,o,u){xhe(this.b,y(u,136)),Qe(u)===Qe(o)&&y(u,136).zi(YZr(y(o,136).jd())),gK(this.b,y(o,136))},"Ohe");var FVi=j(Na,"EcoreEMap/DelegateEObjectContainmentEList",751);G(1186,142,RPe,uIt);var $Vi=j(Na,"EcoreEMap/Unsettable",1186);G(1187,751,Ul,uAt),x.Li=i(function(){this.a=!0},"Rhe"),x.Oj=i(function(){return this.a},"She"),x.Ek=i(function(){var n;Kn(this),hf(this.e)?(n=this.a,this.a=!1,Qi(this.e,new Pp(this.e,2,this.c,n,!1))):this.a=!1},"The"),x.a=!1;var GVi=j(Na,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1187);G(1159,223,KC,i7t),x.a=!1,x.b=!1;var jVi=j(Na,"EcoreUtil/Copier",1159);G(747,1,fo,GLt),x.Nb=i(function(n){So(this,n)},"nie"),x.Ob=i(function(){return tOt(this)},"oie"),x.Pb=i(function(){var n;return tOt(this),n=this.b,this.b=null,n},"pie"),x.Qb=i(function(){this.a.Qb()},"qie");var zVi=j(Na,"EcoreUtil/ProperContentIterator",747);G(1490,1489,{},Uwt);var Zir,UVi=j(Na,"EcoreValidator",1490),ear,VVi=za(Na,"FeatureMapUtil/Validator");G(1260,1,{2006:1},Wvt),x.$l=i(function(n){return!0},"Fie");var WVi=j(Na,"FeatureMapUtil/1",1260);G(760,1,{2006:1},JIe),x.$l=i(function(n){var o;return this.c==n?!0:(o=Xt(Jr(this.a,n)),o==null?Uxn(this,n)?($_t(this.a,n,(qr(),UR)),!0):($_t(this.a,n,(qr(),Dv)),!1):o==(qr(),UR))},"Kie"),x.e=!1;var rbe,HVi=j(Na,"FeatureMapUtil/BasicValidator",760);G(761,44,KC,xAe);var qVi=j(Na,"FeatureMapUtil/BasicValidator/Cache",761);G(495,56,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},TF),x._c=i(function(n,o){V$t(this.c,this.b,n,o)},"Sie"),x.Ec=i(function(n){return bIe(this.c,this.b,n)},"Tie"),x.ad=i(function(n,o){return c3n(this.c,this.b,n,o)},"Uie"),x.Fc=i(function(n){return R9(this,n)},"Vie"),x.Ei=i(function(n,o){Qun(this.c,this.b,n,o)},"Wie"),x.Uk=i(function(n,o){return uIe(this.c,this.b,n,o)},"Xie"),x.Yi=i(function(n){return QK(this.c,this.b,n,!1)},"Yie"),x.Gi=i(function(){return b5t(this.c,this.b)},"Zie"),x.Hi=i(function(){return GZr(this.c,this.b)},"$ie"),x.Ii=i(function(n){return Qcn(this.c,this.b,n)},"_ie"),x.Vk=i(function(n,o){return H6t(this,n,o)},"aje"),x.$b=i(function(){d5(this)},"bje"),x.Gc=i(function(n){return XY(this.c,this.b,n)},"cje"),x.Hc=i(function(n){return Xhn(this.c,this.b,n)},"dje"),x.Xb=i(function(n){return QK(this.c,this.b,n,!0)},"eje"),x.Dk=i(function(n){return this},"fje"),x.bd=i(function(n){return lcn(this.c,this.b,n)},"gje"),x.dc=i(function(){return Iq(this)},"hje"),x.Oj=i(function(){return!O$(this.c,this.b)},"ije"),x.Jc=i(function(){return Dun(this.c,this.b)},"jje"),x.cd=i(function(){return Iun(this.c,this.b)},"kje"),x.dd=i(function(n){return epn(this.c,this.b,n)},"lje"),x.Ri=i(function(n,o){return ojt(this.c,this.b,n,o)},"mje"),x.Si=i(function(n,o){eun(this.c,this.b,n,o)},"nje"),x.ed=i(function(n){return OBt(this.c,this.b,n)},"oje"),x.Kc=i(function(n){return pTn(this.c,this.b,n)},"pje"),x.fd=i(function(n,o){return yjt(this.c,this.b,n,o)},"qje"),x.Wb=i(function(n){MK(this.c,this.b),R9(this,y(n,16))},"rje"),x.gc=i(function(){return tpn(this.c,this.b)},"sje"),x.Nc=i(function(){return lln(this.c,this.b)},"tje"),x.Oc=i(function(n){return ccn(this.c,this.b,n)},"uje"),x.Ib=i(function(){var n,o;for(o=new Dy,o.a+="[",n=b5t(this.c,this.b);hhe(n);)ml(o,_9(dK(n))),hhe(n)&&(o.a+=Tu);return o.a+="]",o.a},"vje"),x.Ek=i(function(){MK(this.c,this.b)},"wje");var YVi=j(Na,"FeatureMapUtil/FeatureEList",495);G(635,39,UG,hue),x.fj=i(function(n){return gI(this,n)},"zje"),x.kj=i(function(n){var o,u,p,g,w,k,A;switch(this.d){case 1:case 2:{if(w=n.hj(),Qe(w)===Qe(this.c)&&gI(this,null)==n.fj(null))return this.g=n.gj(),n.ej()==1&&(this.d=1),!0;break}case 3:{switch(g=n.ej(),g){case 3:{if(w=n.hj(),Qe(w)===Qe(this.c)&&gI(this,null)==n.fj(null))return this.d=5,o=new Fx(2),Zn(o,this.g),Zn(o,n.gj()),this.g=o,!0;break}}break}case 5:{switch(g=n.ej(),g){case 3:{if(w=n.hj(),Qe(w)===Qe(this.c)&&gI(this,null)==n.fj(null))return u=y(this.g,18),u.Ec(n.gj()),!0;break}}break}case 4:{switch(g=n.ej(),g){case 3:{if(w=n.hj(),Qe(w)===Qe(this.c)&&gI(this,null)==n.fj(null))return this.d=1,this.g=n.gj(),!0;break}case 4:{if(w=n.hj(),Qe(w)===Qe(this.c)&&gI(this,null)==n.fj(null))return this.d=6,A=new Fx(2),Zn(A,this.n),Zn(A,n.ij()),this.n=A,k=Se(Ee(pi,1),Pi,30,15,[this.o,n.jj()]),this.g=k,!0;break}}break}case 6:{switch(g=n.ej(),g){case 4:{if(w=n.hj(),Qe(w)===Qe(this.c)&&gI(this,null)==n.fj(null))return u=y(this.n,18),u.Ec(n.ij()),k=y(this.g,54),p=tt(pi,Pi,30,k.length+1,15,1),$c(k,0,p,0,k.length),p[k.length]=n.jj(),this.g=p,!0;break}}break}}return!1},"Aje");var XVi=j(Na,"FeatureMapUtil/FeatureENotificationImpl",635);G(554,495,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},lY),x.Ml=i(function(n,o){return bIe(this.c,n,o)},"Cje"),x.Nl=i(function(n,o,u){return uIe(this.c,n,o,u)},"Dje"),x.Ol=i(function(n,o,u){return $Ie(this.c,n,o,u)},"Eje"),x.Pl=i(function(){return this},"Fje"),x.Ql=i(function(n,o){return lG(this.c,n,o)},"Gje"),x.Rl=i(function(n){return y(QK(this.c,this.b,n,!1),75).Jk()},"Hje"),x.Sl=i(function(n){return y(QK(this.c,this.b,n,!1),75).kd()},"Ije"),x.Tl=i(function(){return this.a},"Jje"),x.Ul=i(function(n){return!O$(this.c,n)},"Kje"),x.Vl=i(function(n,o){ZK(this.c,n,o)},"Lje"),x.Wl=i(function(n){return TIt(this.c,n)},"Mje"),x.Xl=i(function(n){rPt(this.c,n)},"Nje");var KVi=j(Na,"FeatureMapUtil/FeatureFeatureMap",554);G(1259,1,Uge,HSt),x.Dk=i(function(n){return QK(this.b,this.a,-1,n)},"Pje"),x.Oj=i(function(){return!O$(this.b,this.a)},"Qje"),x.Wb=i(function(n){ZK(this.b,this.a,n)},"Rje"),x.Ek=i(function(){MK(this.b,this.a)},"Sje");var JVi=j(Na,"FeatureMapUtil/FeatureValue",1259),nA,nbe,ibe,iA,tar,oz=za(cQ,"AnyType");G(670,63,H1,Ooe);var QVi=j(cQ,"InvalidDatatypeValueException",670),Mee=za(cQ,cqt),lz=za(cQ,uqt),PWe=za(cQ,hqt),rar,kc,BWe,Gw,nar,iar,aar,sar,oar,lar,car,uar,har,far,dar,OE,par,PE,GN,gar,RT,cz,uz,mar,jN,zN;G(829,502,{109:1,94:1,93:1,57:1,52:1,100:1,842:1},H5e),x.Ih=i(function(n,o,u){switch(n){case 0:return u?(!this.c&&(this.c=new ns(this,0)),this.c):(!this.c&&(this.c=new ns(this,0)),this.c.b);case 1:return u?(!this.c&&(this.c=new ns(this,0)),y(Qc(this.c,(ga(),Gw)),163)):(!this.c&&(this.c=new ns(this,0)),y(y(Qc(this.c,(ga(),Gw)),163),219)).Tl();case 2:return u?(!this.b&&(this.b=new ns(this,2)),this.b):(!this.b&&(this.b=new ns(this,2)),this.b.b)}return fd(this,n-On(this.fi()),Nr((this.j&2)==0?this.fi():(!this.k&&(this.k=new cg),this.k).Lk(),n),o,u)},"Cke"),x.Rh=i(function(n,o,u){var p;switch(o){case 0:return!this.c&&(this.c=new ns(this,0)),aG(this.c,n,u);case 1:return(!this.c&&(this.c=new ns(this,0)),y(y(Qc(this.c,(ga(),Gw)),163),72)).Vk(n,u);case 2:return!this.b&&(this.b=new ns(this,2)),aG(this.b,n,u)}return p=y(Nr((this.j&2)==0?this.fi():(!this.k&&(this.k=new cg),this.k).Lk(),o),69),p.uk().yk(this,HRe(this),o-On(this.fi()),n,u)},"Dke"),x.Th=i(function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ns(this,0)),y(Qc(this.c,(ga(),Gw)),163)).dc();case 2:return!!this.b&&this.b.i!=0}return hd(this,n-On(this.fi()),Nr((this.j&2)==0?this.fi():(!this.k&&(this.k=new cg),this.k).Lk(),n))},"Eke"),x.$h=i(function(n,o){switch(n){case 0:!this.c&&(this.c=new ns(this,0)),zF(this.c,o);return;case 1:(!this.c&&(this.c=new ns(this,0)),y(y(Qc(this.c,(ga(),Gw)),163),219)).Wb(o);return;case 2:!this.b&&(this.b=new ns(this,2)),zF(this.b,o);return}bd(this,n-On(this.fi()),Nr((this.j&2)==0?this.fi():(!this.k&&(this.k=new cg),this.k).Lk(),n),o)},"Fke"),x.fi=i(function(){return ga(),BWe},"Gke"),x.hi=i(function(n){switch(n){case 0:!this.c&&(this.c=new ns(this,0)),Kn(this.c);return;case 1:(!this.c&&(this.c=new ns(this,0)),y(Qc(this.c,(ga(),Gw)),163)).$b();return;case 2:!this.b&&(this.b=new ns(this,2)),Kn(this.b);return}yd(this,n-On(this.fi()),Nr((this.j&2)==0?this.fi():(!this.k&&(this.k=new cg),this.k).Lk(),n))},"Hke"),x.Ib=i(function(){var n;return(this.j&4)!=0?zp(this):(n=new Hd(zp(this)),n.a+=" (mixed: ",C9(n,this.c),n.a+=", anyAttribute: ",C9(n,this.b),n.a+=")",n.a)},"Ike");var ZVi=j(Rs,"AnyTypeImpl",829);G(671,502,{109:1,94:1,93:1,57:1,52:1,100:1,2084:1,671:1},Jvt),x.Ih=i(function(n,o,u){switch(n){case 0:return this.a;case 1:return this.b}return fd(this,n-On((ga(),OE)),Nr((this.j&2)==0?OE:(!this.k&&(this.k=new cg),this.k).Lk(),n),o,u)},"Mke"),x.Th=i(function(n){switch(n){case 0:return this.a!=null;case 1:return this.b!=null}return hd(this,n-On((ga(),OE)),Nr((this.j&2)==0?OE:(!this.k&&(this.k=new cg),this.k).Lk(),n))},"Nke"),x.$h=i(function(n,o){switch(n){case 0:LJr(this,di(o));return;case 1:DJr(this,di(o));return}bd(this,n-On((ga(),OE)),Nr((this.j&2)==0?OE:(!this.k&&(this.k=new cg),this.k).Lk(),n),o)},"Oke"),x.fi=i(function(){return ga(),OE},"Pke"),x.hi=i(function(n){switch(n){case 0:this.a=null;return;case 1:this.b=null;return}yd(this,n-On((ga(),OE)),Nr((this.j&2)==0?OE:(!this.k&&(this.k=new cg),this.k).Lk(),n))},"Qke"),x.Ib=i(function(){var n;return(this.j&4)!=0?zp(this):(n=new Hd(zp(this)),n.a+=" (data: ",ml(n,this.a),n.a+=", target: ",ml(n,this.b),n.a+=")",n.a)},"Rke"),x.a=null,x.b=null;var eWi=j(Rs,"ProcessingInstructionImpl",671);G(672,829,{109:1,94:1,93:1,57:1,52:1,100:1,842:1,2085:1,672:1},E4t),x.Ih=i(function(n,o,u){switch(n){case 0:return u?(!this.c&&(this.c=new ns(this,0)),this.c):(!this.c&&(this.c=new ns(this,0)),this.c.b);case 1:return u?(!this.c&&(this.c=new ns(this,0)),y(Qc(this.c,(ga(),Gw)),163)):(!this.c&&(this.c=new ns(this,0)),y(y(Qc(this.c,(ga(),Gw)),163),219)).Tl();case 2:return u?(!this.b&&(this.b=new ns(this,2)),this.b):(!this.b&&(this.b=new ns(this,2)),this.b.b);case 3:return!this.c&&(this.c=new ns(this,0)),di(lG(this.c,(ga(),GN),!0));case 4:return p8e(this.a,(!this.c&&(this.c=new ns(this,0)),di(lG(this.c,(ga(),GN),!0))));case 5:return this.a}return fd(this,n-On((ga(),PE)),Nr((this.j&2)==0?PE:(!this.k&&(this.k=new cg),this.k).Lk(),n),o,u)},"Vke"),x.Th=i(function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ns(this,0)),y(Qc(this.c,(ga(),Gw)),163)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new ns(this,0)),di(lG(this.c,(ga(),GN),!0))!=null;case 4:return p8e(this.a,(!this.c&&(this.c=new ns(this,0)),di(lG(this.c,(ga(),GN),!0))))!=null;case 5:return!!this.a}return hd(this,n-On((ga(),PE)),Nr((this.j&2)==0?PE:(!this.k&&(this.k=new cg),this.k).Lk(),n))},"Wke"),x.$h=i(function(n,o){switch(n){case 0:!this.c&&(this.c=new ns(this,0)),zF(this.c,o);return;case 1:(!this.c&&(this.c=new ns(this,0)),y(y(Qc(this.c,(ga(),Gw)),163),219)).Wb(o);return;case 2:!this.b&&(this.b=new ns(this,2)),zF(this.b,o);return;case 3:tRe(this,di(o));return;case 4:tRe(this,d8e(this.a,o));return;case 5:_Jr(this,y(o,159));return}bd(this,n-On((ga(),PE)),Nr((this.j&2)==0?PE:(!this.k&&(this.k=new cg),this.k).Lk(),n),o)},"Xke"),x.fi=i(function(){return ga(),PE},"Yke"),x.hi=i(function(n){switch(n){case 0:!this.c&&(this.c=new ns(this,0)),Kn(this.c);return;case 1:(!this.c&&(this.c=new ns(this,0)),y(Qc(this.c,(ga(),Gw)),163)).$b();return;case 2:!this.b&&(this.b=new ns(this,2)),Kn(this.b);return;case 3:!this.c&&(this.c=new ns(this,0)),ZK(this.c,(ga(),GN),null);return;case 4:tRe(this,d8e(this.a,null));return;case 5:this.a=null;return}yd(this,n-On((ga(),PE)),Nr((this.j&2)==0?PE:(!this.k&&(this.k=new cg),this.k).Lk(),n))},"Zke");var tWi=j(Rs,"SimpleAnyTypeImpl",672);G(673,502,{109:1,94:1,93:1,57:1,52:1,100:1,2086:1,673:1},S4t),x.Ih=i(function(n,o,u){switch(n){case 0:return u?(!this.a&&(this.a=new ns(this,0)),this.a):(!this.a&&(this.a=new ns(this,0)),this.a.b);case 1:return u?(!this.b&&(this.b=new gh((Dr(),Zo),mc,this,1)),this.b):(!this.b&&(this.b=new gh((Dr(),Zo),mc,this,1)),i$(this.b));case 2:return u?(!this.c&&(this.c=new gh((Dr(),Zo),mc,this,2)),this.c):(!this.c&&(this.c=new gh((Dr(),Zo),mc,this,2)),i$(this.c));case 3:return!this.a&&(this.a=new ns(this,0)),Qc(this.a,(ga(),cz));case 4:return!this.a&&(this.a=new ns(this,0)),Qc(this.a,(ga(),uz));case 5:return!this.a&&(this.a=new ns(this,0)),Qc(this.a,(ga(),jN));case 6:return!this.a&&(this.a=new ns(this,0)),Qc(this.a,(ga(),zN))}return fd(this,n-On((ga(),RT)),Nr((this.j&2)==0?RT:(!this.k&&(this.k=new cg),this.k).Lk(),n),o,u)},"_ke"),x.Rh=i(function(n,o,u){var p;switch(o){case 0:return!this.a&&(this.a=new ns(this,0)),aG(this.a,n,u);case 1:return!this.b&&(this.b=new gh((Dr(),Zo),mc,this,1)),Jq(this.b,n,u);case 2:return!this.c&&(this.c=new gh((Dr(),Zo),mc,this,2)),Jq(this.c,n,u);case 5:return!this.a&&(this.a=new ns(this,0)),H6t(Qc(this.a,(ga(),jN)),n,u)}return p=y(Nr((this.j&2)==0?(ga(),RT):(!this.k&&(this.k=new cg),this.k).Lk(),o),69),p.uk().yk(this,HRe(this),o-On((ga(),RT)),n,u)},"ale"),x.Th=i(function(n){switch(n){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 ns(this,0)),!Iq(Qc(this.a,(ga(),cz)));case 4:return!this.a&&(this.a=new ns(this,0)),!Iq(Qc(this.a,(ga(),uz)));case 5:return!this.a&&(this.a=new ns(this,0)),!Iq(Qc(this.a,(ga(),jN)));case 6:return!this.a&&(this.a=new ns(this,0)),!Iq(Qc(this.a,(ga(),zN)))}return hd(this,n-On((ga(),RT)),Nr((this.j&2)==0?RT:(!this.k&&(this.k=new cg),this.k).Lk(),n))},"ble"),x.$h=i(function(n,o){switch(n){case 0:!this.a&&(this.a=new ns(this,0)),zF(this.a,o);return;case 1:!this.b&&(this.b=new gh((Dr(),Zo),mc,this,1)),OX(this.b,o);return;case 2:!this.c&&(this.c=new gh((Dr(),Zo),mc,this,2)),OX(this.c,o);return;case 3:!this.a&&(this.a=new ns(this,0)),d5(Qc(this.a,(ga(),cz))),!this.a&&(this.a=new ns(this,0)),R9(Qc(this.a,cz),y(o,18));return;case 4:!this.a&&(this.a=new ns(this,0)),d5(Qc(this.a,(ga(),uz))),!this.a&&(this.a=new ns(this,0)),R9(Qc(this.a,uz),y(o,18));return;case 5:!this.a&&(this.a=new ns(this,0)),d5(Qc(this.a,(ga(),jN))),!this.a&&(this.a=new ns(this,0)),R9(Qc(this.a,jN),y(o,18));return;case 6:!this.a&&(this.a=new ns(this,0)),d5(Qc(this.a,(ga(),zN))),!this.a&&(this.a=new ns(this,0)),R9(Qc(this.a,zN),y(o,18));return}bd(this,n-On((ga(),RT)),Nr((this.j&2)==0?RT:(!this.k&&(this.k=new cg),this.k).Lk(),n),o)},"cle"),x.fi=i(function(){return ga(),RT},"dle"),x.hi=i(function(n){switch(n){case 0:!this.a&&(this.a=new ns(this,0)),Kn(this.a);return;case 1:!this.b&&(this.b=new gh((Dr(),Zo),mc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new gh((Dr(),Zo),mc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new ns(this,0)),d5(Qc(this.a,(ga(),cz)));return;case 4:!this.a&&(this.a=new ns(this,0)),d5(Qc(this.a,(ga(),uz)));return;case 5:!this.a&&(this.a=new ns(this,0)),d5(Qc(this.a,(ga(),jN)));return;case 6:!this.a&&(this.a=new ns(this,0)),d5(Qc(this.a,(ga(),zN)));return}yd(this,n-On((ga(),RT)),Nr((this.j&2)==0?RT:(!this.k&&(this.k=new cg),this.k).Lk(),n))},"ele"),x.Ib=i(function(){var n;return(this.j&4)!=0?zp(this):(n=new Hd(zp(this)),n.a+=" (mixed: ",C9(n,this.a),n.a+=")",n.a)},"fle");var rWi=j(Rs,"XMLTypeDocumentRootImpl",673);G(1993,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1,2087:1},Hvt),x.oi=i(function(n,o){switch(n.fk()){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 o==null?null:zl(o);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return di(o);case 6:return ptn(y(o,195));case 12:case 47:case 49:case 11:return tzt(this,n,o);case 13:return o==null?null:g3n(y(o,247));case 15:case 14:return o==null?null:fan(He(Xe(o)));case 17:return WPt((ga(),o));case 18:return WPt(o);case 21:case 20:return o==null?null:dan(y(o,164).a);case 27:return gtn(y(o,195));case 30:return nPt((ga(),y(o,16)));case 31:return nPt(y(o,16));case 40:return dtn((ga(),o));case 42:return HPt((ga(),o));case 43:return HPt(o);case 59:case 48:return ftn((ga(),o));default:throw xe(new rn(PR+n.ve()+uT))}},"Fle"),x.pi=i(function(n){var o,u,p,g,w;switch(n.G==-1&&(n.G=(u=Nf(n),u?Xy(u.si(),n):-1)),n.G){case 0:return o=new H5e,o;case 1:return p=new Jvt,p;case 2:return g=new E4t,g;case 3:return w=new S4t,w;default:throw xe(new rn(Age+n.zb+uT))}},"Gle"),x.qi=i(function(n,o){var u,p,g,w,k,A,D,M,F,z,ee,ie,ue,fe,Ce,Me;switch(n.fk()){case 5:case 52:case 4:return o;case 6:return Ign(o);case 8:case 7:return o==null?null:m1n(o);case 9:return o==null?null:d$(Ff((p=ru(o,!0),p.length>0&&(un(0,p.length),p.charCodeAt(0)==43)?(un(1,p.length+1),p.substr(1)):p),-128,127)<<24>>24);case 10:return o==null?null:d$(Ff((g=ru(o,!0),g.length>0&&(un(0,g.length),g.charCodeAt(0)==43)?(un(1,g.length+1),g.substr(1)):g),-128,127)<<24>>24);case 11:return di(tT(this,(ga(),aar),o));case 12:return di(tT(this,(ga(),sar),o));case 13:return o==null?null:new d6e(ru(o,!0));case 15:case 14:return C2n(o);case 16:return di(tT(this,(ga(),oar),o));case 17:return sOt((ga(),o));case 18:return sOt(o);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return ru(o,!0);case 21:case 20:return N2n(o);case 22:return di(tT(this,(ga(),lar),o));case 23:return di(tT(this,(ga(),car),o));case 24:return di(tT(this,(ga(),uar),o));case 25:return di(tT(this,(ga(),har),o));case 26:return di(tT(this,(ga(),far),o));case 27:return kgn(o);case 30:return oOt((ga(),o));case 31:return oOt(o);case 32:return o==null?null:Et(Ff((F=ru(o,!0),F.length>0&&(un(0,F.length),F.charCodeAt(0)==43)?(un(1,F.length+1),F.substr(1)):F),bo,Ui));case 33:return o==null?null:new ev((z=ru(o,!0),z.length>0&&(un(0,z.length),z.charCodeAt(0)==43)?(un(1,z.length+1),z.substr(1)):z));case 34:return o==null?null:Et(Ff((ee=ru(o,!0),ee.length>0&&(un(0,ee.length),ee.charCodeAt(0)==43)?(un(1,ee.length+1),ee.substr(1)):ee),bo,Ui));case 36:return o==null?null:o3(nJ((ie=ru(o,!0),ie.length>0&&(un(0,ie.length),ie.charCodeAt(0)==43)?(un(1,ie.length+1),ie.substr(1)):ie)));case 37:return o==null?null:o3(nJ((ue=ru(o,!0),ue.length>0&&(un(0,ue.length),ue.charCodeAt(0)==43)?(un(1,ue.length+1),ue.substr(1)):ue)));case 40:return v0n((ga(),o));case 42:return lOt((ga(),o));case 43:return lOt(o);case 44:return o==null?null:new ev((fe=ru(o,!0),fe.length>0&&(un(0,fe.length),fe.charCodeAt(0)==43)?(un(1,fe.length+1),fe.substr(1)):fe));case 45:return o==null?null:new ev((Ce=ru(o,!0),Ce.length>0&&(un(0,Ce.length),Ce.charCodeAt(0)==43)?(un(1,Ce.length+1),Ce.substr(1)):Ce));case 46:return ru(o,!1);case 47:return di(tT(this,(ga(),dar),o));case 59:case 48:return b0n((ga(),o));case 49:return di(tT(this,(ga(),par),o));case 50:return o==null?null:F7(Ff((Me=ru(o,!0),Me.length>0&&(un(0,Me.length),Me.charCodeAt(0)==43)?(un(1,Me.length+1),Me.substr(1)):Me),aQ,32767)<<16>>16);case 51:return o==null?null:F7(Ff((w=ru(o,!0),w.length>0&&(un(0,w.length),w.charCodeAt(0)==43)?(un(1,w.length+1),w.substr(1)):w),aQ,32767)<<16>>16);case 53:return di(tT(this,(ga(),gar),o));case 55:return o==null?null:F7(Ff((k=ru(o,!0),k.length>0&&(un(0,k.length),k.charCodeAt(0)==43)?(un(1,k.length+1),k.substr(1)):k),aQ,32767)<<16>>16);case 56:return o==null?null:F7(Ff((A=ru(o,!0),A.length>0&&(un(0,A.length),A.charCodeAt(0)==43)?(un(1,A.length+1),A.substr(1)):A),aQ,32767)<<16>>16);case 57:return o==null?null:o3(nJ((D=ru(o,!0),D.length>0&&(un(0,D.length),D.charCodeAt(0)==43)?(un(1,D.length+1),D.substr(1)):D)));case 58:return o==null?null:o3(nJ((M=ru(o,!0),M.length>0&&(un(0,M.length),M.charCodeAt(0)==43)?(un(1,M.length+1),M.substr(1)):M)));case 60:return o==null?null:Et(Ff((u=ru(o,!0),u.length>0&&(un(0,u.length),u.charCodeAt(0)==43)?(un(1,u.length+1),u.substr(1)):u),bo,Ui));case 61:return o==null?null:Et(Ff(ru(o,!0),bo,Ui));default:throw xe(new rn(PR+n.ve()+uT))}},"Hle");var yar,FWe,bar,$We,nWi=j(Rs,"XMLTypeFactoryImpl",1993);G(583,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1,2009:1,583:1},E7t),x.N=!1,x.O=!1;var war=!1,iWi=j(Rs,"XMLTypePackageImpl",583);G(1926,1,{836:1},qvt),x.Ik=i(function(){return LIe(),Lar},"Sle");var aWi=j(Rs,"XMLTypePackageImpl/1",1926);G(1935,1,$i,Yvt),x.dk=i(function(n){return lo(n)},"Ule"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Vle");var sWi=j(Rs,"XMLTypePackageImpl/10",1935);G(1936,1,$i,Xvt),x.dk=i(function(n){return lo(n)},"Xle"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Yle");var oWi=j(Rs,"XMLTypePackageImpl/11",1936);G(1937,1,$i,Kvt),x.dk=i(function(n){return lo(n)},"$le"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"_le");var lWi=j(Rs,"XMLTypePackageImpl/12",1937);G(1938,1,$i,Qvt),x.dk=i(function(n){return _k(n)},"bme"),x.ek=i(function(n){return tt(Ts,Dt,346,n,7,1)},"cme");var cWi=j(Rs,"XMLTypePackageImpl/13",1938);G(1939,1,$i,Zvt),x.dk=i(function(n){return lo(n)},"eme"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"fme");var uWi=j(Rs,"XMLTypePackageImpl/14",1939);G(1940,1,$i,e2t),x.dk=i(function(n){return Ge(n,16)},"hme"),x.ek=i(function(n){return tt(zf,T3,16,n,0,1)},"ime");var hWi=j(Rs,"XMLTypePackageImpl/15",1940);G(1941,1,$i,t2t),x.dk=i(function(n){return Ge(n,16)},"kme"),x.ek=i(function(n){return tt(zf,T3,16,n,0,1)},"lme");var fWi=j(Rs,"XMLTypePackageImpl/16",1941);G(1942,1,$i,r2t),x.dk=i(function(n){return lo(n)},"nme"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"ome");var dWi=j(Rs,"XMLTypePackageImpl/17",1942);G(1943,1,$i,n2t),x.dk=i(function(n){return Ge(n,164)},"qme"),x.ek=i(function(n){return tt(VR,Dt,164,n,0,1)},"rme");var pWi=j(Rs,"XMLTypePackageImpl/18",1943);G(1944,1,$i,i2t),x.dk=i(function(n){return lo(n)},"tme"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"ume");var gWi=j(Rs,"XMLTypePackageImpl/19",1944);G(1927,1,$i,a2t),x.dk=i(function(n){return Ge(n,842)},"wme"),x.ek=i(function(n){return tt(oz,Fr,842,n,0,1)},"xme");var mWi=j(Rs,"XMLTypePackageImpl/2",1927);G(1945,1,$i,s2t),x.dk=i(function(n){return lo(n)},"zme"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Ame");var yWi=j(Rs,"XMLTypePackageImpl/20",1945);G(1946,1,$i,o2t),x.dk=i(function(n){return lo(n)},"Cme"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Dme");var bWi=j(Rs,"XMLTypePackageImpl/21",1946);G(1947,1,$i,l2t),x.dk=i(function(n){return lo(n)},"Fme"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Gme");var vWi=j(Rs,"XMLTypePackageImpl/22",1947);G(1948,1,$i,c2t),x.dk=i(function(n){return lo(n)},"Ime"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Jme");var wWi=j(Rs,"XMLTypePackageImpl/23",1948);G(1949,1,$i,u2t),x.dk=i(function(n){return Ge(n,195)},"Lme"),x.ek=i(function(n){return tt(xh,Dt,195,n,0,2)},"Mme");var xWi=j(Rs,"XMLTypePackageImpl/24",1949);G(1950,1,$i,h2t),x.dk=i(function(n){return lo(n)},"Ome"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Pme");var TWi=j(Rs,"XMLTypePackageImpl/25",1950);G(1951,1,$i,f2t),x.dk=i(function(n){return lo(n)},"Rme"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Sme");var kWi=j(Rs,"XMLTypePackageImpl/26",1951);G(1952,1,$i,d2t),x.dk=i(function(n){return Ge(n,16)},"Ume"),x.ek=i(function(n){return tt(zf,T3,16,n,0,1)},"Vme");var CWi=j(Rs,"XMLTypePackageImpl/27",1952);G(1953,1,$i,p2t),x.dk=i(function(n){return Ge(n,16)},"Xme"),x.ek=i(function(n){return tt(zf,T3,16,n,0,1)},"Yme");var EWi=j(Rs,"XMLTypePackageImpl/28",1953);G(1954,1,$i,g2t),x.dk=i(function(n){return lo(n)},"$me"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"_me");var SWi=j(Rs,"XMLTypePackageImpl/29",1954);G(1928,1,$i,m2t),x.dk=i(function(n){return Ge(n,671)},"bne"),x.ek=i(function(n){return tt(Mee,Fr,2084,n,0,1)},"cne");var AWi=j(Rs,"XMLTypePackageImpl/3",1928);G(1955,1,$i,y2t),x.dk=i(function(n){return Ge(n,15)},"ene"),x.ek=i(function(n){return tt(Ls,Dt,15,n,0,1)},"fne");var RWi=j(Rs,"XMLTypePackageImpl/30",1955);G(1956,1,$i,b2t),x.dk=i(function(n){return lo(n)},"hne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"ine");var LWi=j(Rs,"XMLTypePackageImpl/31",1956);G(1957,1,$i,v2t),x.dk=i(function(n){return Ge(n,190)},"kne"),x.ek=i(function(n){return tt(fT,Dt,190,n,0,1)},"lne");var _Wi=j(Rs,"XMLTypePackageImpl/32",1957);G(1958,1,$i,w2t),x.dk=i(function(n){return lo(n)},"nne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"one");var DWi=j(Rs,"XMLTypePackageImpl/33",1958);G(1959,1,$i,x2t),x.dk=i(function(n){return lo(n)},"qne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"rne");var IWi=j(Rs,"XMLTypePackageImpl/34",1959);G(1960,1,$i,T2t),x.dk=i(function(n){return lo(n)},"tne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"une");var MWi=j(Rs,"XMLTypePackageImpl/35",1960);G(1961,1,$i,k2t),x.dk=i(function(n){return lo(n)},"wne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"xne");var NWi=j(Rs,"XMLTypePackageImpl/36",1961);G(1962,1,$i,C2t),x.dk=i(function(n){return Ge(n,16)},"zne"),x.ek=i(function(n){return tt(zf,T3,16,n,0,1)},"Ane");var OWi=j(Rs,"XMLTypePackageImpl/37",1962);G(1963,1,$i,E2t),x.dk=i(function(n){return Ge(n,16)},"Cne"),x.ek=i(function(n){return tt(zf,T3,16,n,0,1)},"Dne");var PWi=j(Rs,"XMLTypePackageImpl/38",1963);G(1964,1,$i,S2t),x.dk=i(function(n){return lo(n)},"Fne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Gne");var BWi=j(Rs,"XMLTypePackageImpl/39",1964);G(1929,1,$i,A2t),x.dk=i(function(n){return Ge(n,672)},"Ine"),x.ek=i(function(n){return tt(lz,Fr,2085,n,0,1)},"Jne");var FWi=j(Rs,"XMLTypePackageImpl/4",1929);G(1965,1,$i,R2t),x.dk=i(function(n){return lo(n)},"Lne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Mne");var $Wi=j(Rs,"XMLTypePackageImpl/40",1965);G(1966,1,$i,L2t),x.dk=i(function(n){return lo(n)},"One"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Pne");var GWi=j(Rs,"XMLTypePackageImpl/41",1966);G(1967,1,$i,_2t),x.dk=i(function(n){return lo(n)},"Rne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Sne");var jWi=j(Rs,"XMLTypePackageImpl/42",1967);G(1968,1,$i,D2t),x.dk=i(function(n){return lo(n)},"Une"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Vne");var zWi=j(Rs,"XMLTypePackageImpl/43",1968);G(1969,1,$i,I2t),x.dk=i(function(n){return lo(n)},"Xne"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Yne");var UWi=j(Rs,"XMLTypePackageImpl/44",1969);G(1970,1,$i,M2t),x.dk=i(function(n){return Ge(n,191)},"$ne"),x.ek=i(function(n){return tt(dT,Dt,191,n,0,1)},"_ne");var VWi=j(Rs,"XMLTypePackageImpl/45",1970);G(1971,1,$i,N2t),x.dk=i(function(n){return lo(n)},"boe"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"coe");var WWi=j(Rs,"XMLTypePackageImpl/46",1971);G(1972,1,$i,O2t),x.dk=i(function(n){return lo(n)},"eoe"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"foe");var HWi=j(Rs,"XMLTypePackageImpl/47",1972);G(1973,1,$i,P2t),x.dk=i(function(n){return lo(n)},"hoe"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"ioe");var qWi=j(Rs,"XMLTypePackageImpl/48",1973);G(1974,1,$i,B2t),x.dk=i(function(n){return Ge(n,191)},"koe"),x.ek=i(function(n){return tt(dT,Dt,191,n,0,1)},"loe");var YWi=j(Rs,"XMLTypePackageImpl/49",1974);G(1930,1,$i,F2t),x.dk=i(function(n){return Ge(n,673)},"noe"),x.ek=i(function(n){return tt(PWe,Fr,2086,n,0,1)},"ooe");var XWi=j(Rs,"XMLTypePackageImpl/5",1930);G(1975,1,$i,$2t),x.dk=i(function(n){return Ge(n,190)},"qoe"),x.ek=i(function(n){return tt(fT,Dt,190,n,0,1)},"roe");var KWi=j(Rs,"XMLTypePackageImpl/50",1975);G(1976,1,$i,G2t),x.dk=i(function(n){return lo(n)},"toe"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"uoe");var JWi=j(Rs,"XMLTypePackageImpl/51",1976);G(1977,1,$i,j2t),x.dk=i(function(n){return Ge(n,15)},"woe"),x.ek=i(function(n){return tt(Ls,Dt,15,n,0,1)},"xoe");var QWi=j(Rs,"XMLTypePackageImpl/52",1977);G(1931,1,$i,z2t),x.dk=i(function(n){return lo(n)},"zoe"),x.ek=i(function(n){return tt(Zt,Dt,2,n,6,1)},"Aoe");var ZWi=j(Rs,"XMLTypePackageImpl/6",1931);G(1932,1,$i,U2t),x.dk=i(function(n){return Ge(n,195)},"Coe"),x.ek=i(function(n){return tt(xh,Dt,195,n,0,2)},"Doe");var eHi=j(Rs,"XMLTypePackageImpl/7",1932);G(1933,1,$i,V2t),x.dk=i(function(n){return Lk(n)},"Foe"),x.ek=i(function(n){return tt(Ja,Dt,473,n,8,1)},"Goe");var tHi=j(Rs,"XMLTypePackageImpl/8",1933);G(1934,1,$i,W2t),x.dk=i(function(n){return Ge(n,221)},"Ioe"),x.ek=i(function(n){return tt(A6,Dt,221,n,0,1)},"Joe");var rHi=j(Rs,"XMLTypePackageImpl/9",1934),v0,yb,UN,Nee,_e;G(53,63,H1,bi);var nHi=j(nb,"RegEx/ParseException",53);G(821,1,{},KSe),x._l=i(function(n){return n<this.j&&Do(this.i,n)==63},"fpe"),x.am=i(function(){var n,o,u,p,g;if(this.c!=10)throw xe(new bi(ki((fi(),JJ))));switch(n=this.a,n){case 101:n=27;break;case 102:n=12;break;case 110:n=10;break;case 114:n=13;break;case 116:n=9;break;case 120:if(qi(this),this.c!=0)throw xe(new bi(ki((fi(),rb))));if(this.a==123){g=0,u=0;do{if(qi(this),this.c!=0)throw xe(new bi(ki((fi(),rb))));if((g=hw(this.a))<0)break;if(u>u*16)throw xe(new bi(ki((fi(),THt))));u=u*16+g}while(!0);if(this.a!=125)throw xe(new bi(ki((fi(),kHt))));if(u>jR)throw xe(new bi(ki((fi(),CHt))));n=u}else{if(g=0,this.c!=0||(g=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(u=g,qi(this),this.c!=0||(g=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));u=u*16+g,n=u}break;case 117:if(p=0,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=p,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=o*16+p,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=o*16+p,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));o=o*16+p,n=o;break;case 118:if(qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=p,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=o*16+p,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=o*16+p,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=o*16+p,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=o*16+p,qi(this),this.c!=0||(p=hw(this.a))<0)throw xe(new bi(ki((fi(),rb))));if(o=o*16+p,o>jR)throw xe(new bi(ki((fi(),"parser.descappe.4"))));n=o;break;case 65:case 90:case 122:throw xe(new bi(ki((fi(),EHt))))}return n},"gpe"),x.bm=i(function(n){var o,u;switch(n){case 100:u=(this.e&32)==32?kv("Nd",!0):(Xi(),Oee);break;case 68:u=(this.e&32)==32?kv("Nd",!1):(Xi(),WWe);break;case 119:u=(this.e&32)==32?kv("IsWord",!0):(Xi(),LL);break;case 87:u=(this.e&32)==32?kv("IsWord",!1):(Xi(),qWe);break;case 115:u=(this.e&32)==32?kv("IsSpace",!0):(Xi(),aA);break;case 83:u=(this.e&32)==32?kv("IsSpace",!1):(Xi(),HWe);break;default:throw xe(new ql((o=n,Eqt+o.toString(16))))}return u},"hpe"),x.cm=i(function(n){var o,u,p,g,w,k,A,D,M,F,z,ee;for(this.b=1,qi(this),o=null,this.c==0&&this.a==94?(qi(this),n?F=(Xi(),Xi(),++Za,new If(5)):(o=(Xi(),Xi(),++Za,new If(4)),tu(o,0,jR),F=(++Za,new If(4)))):F=(Xi(),Xi(),++Za,new If(4)),g=!0;(ee=this.c)!=1&&!(ee==0&&this.a==93&&!g);){if(g=!1,u=this.a,p=!1,ee==10)switch(u){case 100:case 68:case 119:case 87:case 115:case 83:b3(F,this.bm(u)),p=!0;break;case 105:case 73:case 99:case 67:u=this.sm(F,u),u<0&&(p=!0);break;case 112:case 80:if(z=x9e(this,u),!z)throw xe(new bi(ki((fi(),Gge))));b3(F,z),p=!0;break;default:u=this.am()}else if(ee==20){if(k=Z8(this.i,58,this.d),k<0)throw xe(new bi(ki((fi(),TPe))));if(A=!0,Do(this.i,this.d)==94&&(++this.d,A=!1),w=Yd(this.i,this.d,k),D=LDt(w,A,(this.e&512)==512),!D)throw xe(new bi(ki((fi(),yHt))));if(b3(F,D),p=!0,k+1>=this.j||Do(this.i,k+1)!=93)throw xe(new bi(ki((fi(),TPe))));this.d=k+2}if(qi(this),!p)if(this.c!=0||this.a!=45)tu(F,u,u);else{if(qi(this),(ee=this.c)==1)throw xe(new bi(ki((fi(),QJ))));ee==0&&this.a==93?(tu(F,u,u),tu(F,45,45)):(M=this.a,ee==10&&(M=this.am()),qi(this),tu(F,u,M))}(this.e&Wp)==Wp&&this.c==0&&this.a==44&&qi(this)}if(this.c==1)throw xe(new bi(ki((fi(),QJ))));return o&&(HI(o,F),F=o),UC(F),VI(F),this.b=0,qi(this),F},"jpe"),x.dm=i(function(){var n,o,u,p;for(u=this.cm(!1);(p=this.c)!=7;)if(n=this.a,p==0&&(n==45||n==38)||p==4){if(qi(this),this.c!=9)throw xe(new bi(ki((fi(),vHt))));if(o=this.cm(!1),p==4)b3(u,o);else if(n==45)HI(u,o);else if(n==38)Jjt(u,o);else throw xe(new ql("ASSERT"))}else throw xe(new bi(ki((fi(),wHt))));return qi(this),u},"kpe"),x.em=i(function(){var n,o;return n=this.a-48,o=(Xi(),Xi(),++Za,new qce(12,null,n)),!this.g&&(this.g=new jH),GH(this.g,new I5e(n)),qi(this),o},"lpe"),x.fm=i(function(){return qi(this),Xi(),kar},"mpe"),x.gm=i(function(){return qi(this),Xi(),Tar},"npe"),x.hm=i(function(){throw xe(new bi(ki((fi(),Td))))},"ope"),x.im=i(function(){throw xe(new bi(ki((fi(),Td))))},"ppe"),x.jm=i(function(){return qi(this),Yfn()},"qpe"),x.km=i(function(){return qi(this),Xi(),Ear},"rpe"),x.lm=i(function(){return qi(this),Xi(),Aar},"spe"),x.mm=i(function(){var n;if(this.d>=this.j||((n=Do(this.i,this.d++))&65504)!=64)throw xe(new bi(ki((fi(),pHt))));return qi(this),Xi(),Xi(),++Za,new Fm(0,n-64)},"tpe"),x.nm=i(function(){return qi(this),ykn()},"upe"),x.om=i(function(){return qi(this),Xi(),Rar},"vpe"),x.pm=i(function(){var n;return n=(Xi(),Xi(),++Za,new Fm(0,105)),qi(this),n},"wpe"),x.qm=i(function(){return qi(this),Xi(),Sar},"xpe"),x.rm=i(function(){return qi(this),Xi(),Car},"ype"),x.sm=i(function(n,o){return this.am()},"zpe"),x.tm=i(function(){return qi(this),Xi(),UWe},"Ape"),x.um=i(function(){var n,o,u,p,g;if(this.d+1>=this.j)throw xe(new bi(ki((fi(),hHt))));if(p=-1,o=null,n=Do(this.i,this.d),49<=n&&n<=57){if(p=n-48,!this.g&&(this.g=new jH),GH(this.g,new I5e(p)),++this.d,Do(this.i,this.d)!=41)throw xe(new bi(ki((fi(),Tw))));++this.d}else switch(n==63&&--this.d,qi(this),o=tMe(this),o.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw xe(new bi(ki((fi(),Tw))));break;default:throw xe(new bi(ki((fi(),fHt))))}if(qi(this),g=Hx(this),u=null,g.e==2){if(g.Nm()!=2)throw xe(new bi(ki((fi(),dHt))));u=g.Jm(1),g=g.Jm(0)}if(this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),Xi(),Xi(),++Za,new O9t(p,o,g,u)},"Bpe"),x.vm=i(function(){return qi(this),Xi(),VWe},"Cpe"),x.wm=i(function(){var n;if(qi(this),n=CY(24,Hx(this)),this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),n},"Dpe"),x.xm=i(function(){var n;if(qi(this),n=CY(20,Hx(this)),this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),n},"Epe"),x.ym=i(function(){var n;if(qi(this),n=CY(22,Hx(this)),this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),n},"Fpe"),x.zm=i(function(){var n,o,u,p,g;for(n=0,u=0,o=-1;this.d<this.j&&(o=Do(this.i,this.d),g=A9e(o),g!=0);)n|=g,++this.d;if(this.d>=this.j)throw xe(new bi(ki((fi(),wPe))));if(o==45){for(++this.d;this.d<this.j&&(o=Do(this.i,this.d),g=A9e(o),g!=0);)u|=g,++this.d;if(this.d>=this.j)throw xe(new bi(ki((fi(),wPe))))}if(o==58){if(++this.d,qi(this),p=r7t(Hx(this),n,u),this.c!=7)throw xe(new bi(ki((fi(),Tw))));qi(this)}else if(o==41)++this.d,qi(this),p=r7t(Hx(this),n,u);else throw xe(new bi(ki((fi(),uHt))));return p},"Gpe"),x.Am=i(function(){var n;if(qi(this),n=CY(21,Hx(this)),this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),n},"Hpe"),x.Bm=i(function(){var n;if(qi(this),n=CY(23,Hx(this)),this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),n},"Ipe"),x.Cm=i(function(){var n,o;if(qi(this),n=this.f++,o=Cce(Hx(this),n),this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),o},"Jpe"),x.Dm=i(function(){var n;if(qi(this),n=Cce(Hx(this),0),this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),n},"Kpe"),x.Em=i(function(n){return qi(this),this.c==5?(qi(this),pY(n,(Xi(),Xi(),++Za,new Yk(9,n)))):pY(n,(Xi(),Xi(),++Za,new Yk(3,n)))},"Lpe"),x.Fm=i(function(n){var o;return qi(this),o=(Xi(),Xi(),++Za,new A9(2)),this.c==5?(qi(this),pw(o,WN),pw(o,n)):(pw(o,n),pw(o,WN)),o},"Mpe"),x.Gm=i(function(n){return qi(this),this.c==5?(qi(this),Xi(),Xi(),++Za,new Yk(9,n)):(Xi(),Xi(),++Za,new Yk(3,n))},"Npe"),x.a=0,x.b=0,x.c=0,x.d=0,x.e=0,x.f=1,x.g=null,x.j=0;var iHi=j(nb,"RegEx/RegexParser",821);G(1913,821,{},A4t),x._l=i(function(n){return!1},"Upe"),x.am=i(function(){return sIe(this)},"Vpe"),x.bm=i(function(n){return sR(n)},"Xpe"),x.cm=i(function(n){return Vzt(this)},"Ype"),x.dm=i(function(){throw xe(new bi(ki((fi(),Td))))},"Zpe"),x.em=i(function(){throw xe(new bi(ki((fi(),Td))))},"$pe"),x.fm=i(function(){throw xe(new bi(ki((fi(),Td))))},"_pe"),x.gm=i(function(){throw xe(new bi(ki((fi(),Td))))},"aqe"),x.hm=i(function(){return qi(this),sR(67)},"bqe"),x.im=i(function(){return qi(this),sR(73)},"cqe"),x.jm=i(function(){throw xe(new bi(ki((fi(),Td))))},"dqe"),x.km=i(function(){throw xe(new bi(ki((fi(),Td))))},"eqe"),x.lm=i(function(){throw xe(new bi(ki((fi(),Td))))},"fqe"),x.mm=i(function(){return qi(this),sR(99)},"gqe"),x.nm=i(function(){throw xe(new bi(ki((fi(),Td))))},"hqe"),x.om=i(function(){throw xe(new bi(ki((fi(),Td))))},"iqe"),x.pm=i(function(){return qi(this),sR(105)},"jqe"),x.qm=i(function(){throw xe(new bi(ki((fi(),Td))))},"kqe"),x.rm=i(function(){throw xe(new bi(ki((fi(),Td))))},"lqe"),x.sm=i(function(n,o){return b3(n,sR(o)),-1},"mqe"),x.tm=i(function(){return qi(this),Xi(),Xi(),++Za,new Fm(0,94)},"nqe"),x.um=i(function(){throw xe(new bi(ki((fi(),Td))))},"oqe"),x.vm=i(function(){return qi(this),Xi(),Xi(),++Za,new Fm(0,36)},"pqe"),x.wm=i(function(){throw xe(new bi(ki((fi(),Td))))},"qqe"),x.xm=i(function(){throw xe(new bi(ki((fi(),Td))))},"rqe"),x.ym=i(function(){throw xe(new bi(ki((fi(),Td))))},"sqe"),x.zm=i(function(){throw xe(new bi(ki((fi(),Td))))},"tqe"),x.Am=i(function(){throw xe(new bi(ki((fi(),Td))))},"uqe"),x.Bm=i(function(){throw xe(new bi(ki((fi(),Td))))},"vqe"),x.Cm=i(function(){var n;if(qi(this),n=Cce(Hx(this),0),this.c!=7)throw xe(new bi(ki((fi(),Tw))));return qi(this),n},"wqe"),x.Dm=i(function(){throw xe(new bi(ki((fi(),Td))))},"xqe"),x.Em=i(function(n){return qi(this),pY(n,(Xi(),Xi(),++Za,new Yk(3,n)))},"yqe"),x.Fm=i(function(n){var o;return qi(this),o=(Xi(),Xi(),++Za,new A9(2)),pw(o,n),pw(o,WN),o},"zqe"),x.Gm=i(function(n){return qi(this),Xi(),Xi(),++Za,new Yk(3,n)},"Aqe");var BE=null,AL=null,aHi=j(nb,"RegEx/ParserForXMLSchema",1913);G(121,1,zR,bx),x.Hm=i(function(n){throw xe(new ql("Not supported."))},"ire"),x.Im=i(function(){return-1},"qre"),x.Jm=i(function(n){return null},"rre"),x.Km=i(function(){return null},"wre"),x.Lm=i(function(n){},"zre"),x.Mm=i(function(n){},"Are"),x.Nm=i(function(){return 0},"Bre"),x.Ib=i(function(){return this.Om(0)},"Cre"),x.Om=i(function(n){return this.e==11?".":""},"Dre"),x.e=0;var GWe,RL,VN,xar,jWe,f4=null,Oee,abe=null,zWe,WN,sbe=null,UWe,VWe,WWe,HWe,qWe,Tar,aA,kar,Car,Ear,Sar,LL,Aar,Rar,Za=0,_Sn=j(nb,"RegEx/Token",121);G(137,121,{3:1,137:1,121:1},If),x.Om=i(function(n){var o,u,p;if(this.e==4)if(this==zWe)u=".";else if(this==Oee)u="\\d";else if(this==LL)u="\\w";else if(this==aA)u="\\s";else{for(p=new Dy,p.a+="[",o=0;o<this.b.length;o+=2)(n&Wp)!=0&&o>0&&(p.a+=","),this.b[o]===this.b[o+1]?ml(p,oG(this.b[o])):(ml(p,oG(this.b[o])),p.a+="-",ml(p,oG(this.b[o+1])));p.a+="]",u=p.a}else if(this==WWe)u="\\D";else if(this==qWe)u="\\W";else if(this==HWe)u="\\S";else{for(p=new Dy,p.a+="[^",o=0;o<this.b.length;o+=2)(n&Wp)!=0&&o>0&&(p.a+=","),this.b[o]===this.b[o+1]?ml(p,oG(this.b[o])):(ml(p,oG(this.b[o])),p.a+="-",ml(p,oG(this.b[o+1])));p.a+="]",u=p.a}return u},"Nre"),x.a=!1,x.c=!1;var sHi=j(nb,"RegEx/RangeToken",137);G(581,1,{581:1},I5e),x.a=0;var oHi=j(nb,"RegEx/RegexParser/ReferencePosition",581);G(580,1,{3:1,580:1},cEt),x.Fb=i(function(n){var o;return n==null||!Ge(n,580)?!1:(o=y(n,580),Cr(this.b,o.b)&&this.a==o.a)},"Rre"),x.Hb=i(function(){return Vy(this.b+"/"+Z9e(this.a))},"Sre"),x.Ib=i(function(){return this.c.Om(this.a)},"Tre"),x.a=0;var lHi=j(nb,"RegEx/RegularExpression",580);G(228,121,zR,Fm),x.Im=i(function(){return this.a},"Vre"),x.Om=i(function(n){var o,u,p;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:p="\\"+Xle(this.a&As);break;case 12:p="\\f";break;case 10:p="\\n";break;case 13:p="\\r";break;case 9:p="\\t";break;case 27:p="\\e";break;default:this.a>=Jo?(u=(o=this.a>>>0,"0"+o.toString(16)),p="\\v"+Yd(u,u.length-6,u.length)):p=""+Xle(this.a&As)}break;case 8:this==UWe||this==VWe?p=""+Xle(this.a&As):p="\\"+Xle(this.a&As);break;default:p=null}return p},"Wre"),x.a=0;var cHi=j(nb,"RegEx/Token/CharToken",228);G(323,121,zR,Yk),x.Jm=i(function(n){return this.a},"Yre"),x.Lm=i(function(n){this.b=n},"Zre"),x.Mm=i(function(n){this.c=n},"$re"),x.Nm=i(function(){return 1},"_re"),x.Om=i(function(n){var o;if(this.e==3)if(this.c<0&&this.b<0)o=this.a.Om(n)+"*";else if(this.c==this.b)o=this.a.Om(n)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)o=this.a.Om(n)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)o=this.a.Om(n)+"{"+this.c+",}";else throw xe(new ql("Token#toString(): CLOSURE "+this.c+Tu+this.b));else if(this.c<0&&this.b<0)o=this.a.Om(n)+"*?";else if(this.c==this.b)o=this.a.Om(n)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)o=this.a.Om(n)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)o=this.a.Om(n)+"{"+this.c+",}?";else throw xe(new ql("Token#toString(): NONGREEDYCLOSURE "+this.c+Tu+this.b));return o},"ase"),x.b=0,x.c=0;var uHi=j(nb,"RegEx/Token/ClosureToken",323);G(822,121,zR,h7e),x.Jm=i(function(n){return n==0?this.a:this.b},"cse"),x.Nm=i(function(){return 2},"dse"),x.Om=i(function(n){var o;return this.b.e==3&&this.b.Jm(0)==this.a?o=this.a.Om(n)+"+":this.b.e==9&&this.b.Jm(0)==this.a?o=this.a.Om(n)+"+?":o=this.a.Om(n)+(""+this.b.Om(n)),o},"ese");var hHi=j(nb,"RegEx/Token/ConcatToken",822);G(1911,121,zR,O9t),x.Jm=i(function(n){if(n==0)return this.d;if(n==1)return this.b;throw xe(new ql("Internal Error: "+n))},"gse"),x.Nm=i(function(){return this.b?2:1},"hse"),x.Om=i(function(n){var o;return this.c>0?o="(?("+this.c+")":this.a.e==8?o="(?("+this.a+")":o="(?"+this.a,this.b?o+=this.d+"|"+this.b+")":o+=this.d+")",o},"ise"),x.c=0;var fHi=j(nb,"RegEx/Token/ConditionToken",1911);G(1912,121,zR,aLt),x.Jm=i(function(n){return this.b},"kse"),x.Nm=i(function(){return 1},"lse"),x.Om=i(function(n){return"(?"+(this.a==0?"":Z9e(this.a))+(this.c==0?"":Z9e(this.c))+":"+this.b.Om(n)+")"},"mse"),x.a=0,x.c=0;var dHi=j(nb,"RegEx/Token/ModifierToken",1912);G(823,121,zR,T7e),x.Jm=i(function(n){return this.a},"ose"),x.Nm=i(function(){return 1},"pse"),x.Om=i(function(n){var o;switch(o=null,this.e){case 6:this.b==0?o="(?:"+this.a.Om(n)+")":o="("+this.a.Om(n)+")";break;case 20:o="(?="+this.a.Om(n)+")";break;case 21:o="(?!"+this.a.Om(n)+")";break;case 22:o="(?<="+this.a.Om(n)+")";break;case 23:o="(?<!"+this.a.Om(n)+")";break;case 24:o="(?>"+this.a.Om(n)+")"}return o},"qse"),x.b=0;var pHi=j(nb,"RegEx/Token/ParenToken",823);G(518,121,{3:1,121:1,518:1},qce),x.Km=i(function(){return this.b},"sse"),x.Om=i(function(n){return this.e==12?"\\"+this.a:u2n(this.b)},"tse"),x.a=0;var gHi=j(nb,"RegEx/Token/StringToken",518);G(466,121,zR,A9),x.Hm=i(function(n){pw(this,n)},"wse"),x.Jm=i(function(n){return y(Dx(this.a,n),121)},"xse"),x.Nm=i(function(){return this.a?this.a.a.c.length:0},"yse"),x.Om=i(function(n){var o,u,p,g,w;if(this.e==1){if(this.a.a.c.length==2)o=y(Dx(this.a,0),121),u=y(Dx(this.a,1),121),u.e==3&&u.Jm(0)==o?g=o.Om(n)+"+":u.e==9&&u.Jm(0)==o?g=o.Om(n)+"+?":g=o.Om(n)+(""+u.Om(n));else{for(w=new Dy,p=0;p<this.a.a.c.length;p++)ml(w,y(Dx(this.a,p),121).Om(n));g=w.a}return g}if(this.a.a.c.length==2&&y(Dx(this.a,1),121).e==7)g=y(Dx(this.a,0),121).Om(n)+"?";else if(this.a.a.c.length==2&&y(Dx(this.a,0),121).e==7)g=y(Dx(this.a,1),121).Om(n)+"??";else{for(w=new Dy,ml(w,y(Dx(this.a,0),121).Om(n)),p=1;p<this.a.a.c.length;p++)w.a+="|",ml(w,y(Dx(this.a,p),121).Om(n));g=w.a}return g},"zse");var mHi=j(nb,"RegEx/Token/UnionToken",466);G(515,1,{590:1},rF),x.Ib=i(function(){return this.a.b},"Cse");var yHi=j(Lqt,"XMLTypeUtil/PatternMatcherImpl",515);G(1676,1489,{},H2t);var Lar,bHi=j(Lqt,"XMLTypeValidator",1676);G(270,1,qm,H2),x.Ic=i(function(n){Io(this,n)},"Lse"),x.Jc=i(function(){return(this.b-this.a)*this.c<0?Qv:new tv(this)},"Mse"),x.a=0,x.b=0,x.c=0;var Qv,vHi=j(jPe,"ExclusiveRange",270);G(1055,1,Hm,q2t),x.Rb=i(function(n){y(n,15),ten()},"Sse"),x.Nb=i(function(n){So(this,n)},"Tse"),x.Pb=i(function(){return UQr()},"Wse"),x.Ub=i(function(){return VQr()},"Yse"),x.Wb=i(function(n){y(n,15),een()},"_se"),x.Ob=i(function(){return!1},"Use"),x.Sb=i(function(){return!1},"Vse"),x.Tb=i(function(){return-1},"Xse"),x.Vb=i(function(){return-1},"Zse"),x.Qb=i(function(){throw xe(new Ly(Iqt))},"$se");var wHi=j(jPe,"ExclusiveRange/1",1055);G(259,1,Hm,tv),x.Rb=i(function(n){y(n,15),ren()},"fte"),x.Nb=i(function(n){So(this,n)},"gte"),x.Pb=i(function(){return bdn(this)},"jte"),x.Ub=i(function(){return gun(this)},"lte"),x.Wb=i(function(n){y(n,15),nen()},"ote"),x.Ob=i(function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},"hte"),x.Sb=i(function(){return this.b>0},"ite"),x.Tb=i(function(){return this.b},"kte"),x.Vb=i(function(){return this.b-1},"mte"),x.Qb=i(function(){throw xe(new Ly(Iqt))},"nte"),x.a=0,x.b=0;var xHi=j(jPe,"ExclusiveRange/RangeIterator",259),Rd=h7(ZJ,"C"),pi=h7(wM,"I"),ah=h7(g6,"Z"),LT=h7(xM,"J"),xh=h7(yM,"B"),po=h7(bM,"D"),d4=h7(vM,"F"),FE=h7(TM,"S"),DSn=za("org.eclipse.elk.core.labels","ILabelManager"),YWe=za(Yo,"DiagnosticChain"),XWe=za(sqt,"ResourceSet"),KWe=j(Yo,"InvocationTargetException",null),_ar=(qH(),Dcn),Dar=Dar=e1n;yhn(VJr),Nhn("permProps",[[["locale","default"],[Mqt,"gecko1_8"]],[["locale","default"],[Mqt,"safari"]]]),Dar(null,"elk",null)}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(s,l,h){"use strict";function f(O){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},f(O)}i(f,"_typeof");function d(O,P){for(var $=0;$<P.length;$++){var V=P[$];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(O,b(V.key),V)}}i(d,"_defineProperties");function m(O,P,$){return P&&d(O.prototype,P),$&&d(O,$),Object.defineProperty(O,"prototype",{writable:!1}),O}i(m,"_createClass");function b(O){var P=v(O,"string");return f(P)=="symbol"?P:P+""}i(b,"_toPropertyKey");function v(O,P){if(f(O)!="object"||!O)return O;var $=O[Symbol.toPrimitive];if($!==void 0){var V=$.call(O,P||"default");if(f(V)!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(O)}i(v,"_toPrimitive");function T(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")}i(T,"_classCallCheck");function C(O,P,$){return P=L(P),E(O,R()?Reflect.construct(P,$||[],L(O).constructor):P.apply(O,$))}i(C,"_callSuper");function E(O,P){if(P&&(f(P)=="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(O)}i(E,"_possibleConstructorReturn");function S(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}i(S,"_assertThisInitialized");function R(){try{var O=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R=i(function(){return!!O},"_isNativeReflectConstruct"))()}i(R,"_isNativeReflectConstruct");function L(O){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},L(O)}i(L,"_getPrototypeOf");function _(O,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(P&&P.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),P&&I(O,P)}i(_,"_inherits");function I(O,P){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,V){return $.__proto__=V,$},I(O,P)}i(I,"_setPrototypeOf");var N=s("./elk-api.js").default,B=(function(O){function P(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};T(this,P);var V=Object.assign({},$),Y=!1;try{s.resolve("web-worker"),Y=!0}catch{}if($.workerUrl)if(Y){var Q=s("web-worker");V.workerFactory=function(H){return new Q(H)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
|
|
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
|
... Falling back to non-web worker version.`);if(!V.workerFactory){var q=s("./elk-worker.min.js"),W=q.Worker;V.workerFactory=function(H){return new W(H)}}return C(this,P,[V])}return i(P,"ELKNode"),_(P,O),m(P)})(N);Object.defineProperty(l.exports,"__esModule",{value:!0}),l.exports=B,B.default=B},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(s,l,h){"use strict";var f=typeof Worker<"u"?Worker:void 0;l.exports=f},{}]},{},[3])(3)})});var kne,Aet=ae(()=>{"use strict";kne=i((r,t,{parentById:a})=>{let s=new Set,l=r;if(r===t)return a[r]||"root";for(;l;){if(s.add(l),l===t)return l;l=a[l]}for(l=t;l;){if(s.has(l))return l;l=a[l]}return"root"},"findCommonAncestor")});function h4r(r,t,{parentById:a}){let s=r;for(;(a[s]??NUn)!==t;)s=a[s];return s}function f4r(r,t){let a=r.map(()=>!1),s=new Map;r.forEach(({source:l,target:h},f)=>{if(l===h)return;let d=kne(l,h,t);if(d===l||d===h)return;let m=h4r(l,d,t),b=h4r(h,d,t),v=s.get(d)??[];v.push({index:f,from:m,to:b,collapsed:m!==l||b!==h}),s.set(d,v)});for(let l of s.values()){let h=new Map,f=[],d=new Map;for(let C of l){for(let E of[C.from,C.to])h.has(E)||(h.set(E,[]),f.push(E),d.set(E,0));h.get(C.from).push(C),d.set(C.to,d.get(C.to)+1)}let m=1,b=2,v=new Map,T=[...f.filter(C=>d.get(C)===0),...f];for(let C of T){if(v.has(C))continue;v.set(C,m);let E=[{node:C,next:0}];for(;E.length>0;){let S=E[E.length-1],R=h.get(S.node);if(S.next>=R.length){v.set(S.node,b),E.pop();continue}let L=R[S.next++],_=v.get(L.to);_===m?a[L.index]=L.collapsed:_===void 0&&(v.set(L.to,m),E.push({node:L.to,next:0}))}}}return a}var NUn,d4r=ae(()=>{"use strict";Aet();NUn="root";i(h4r,"childOnPath");i(f4r,"findSubgraphFeedbackEdges")});function p4r(r,t,{parentById:a}){let s=a[r];for(;s!==void 0;){if(s===t)return!0;s=a[s]}return!1}function g4r(r,t){let a=r.map((s,l)=>l);return r.forEach(({source:s,target:l},h)=>{let f=a.indexOf(h),d=a.findIndex((m,b)=>{let v=r[m];return b<f&&(v.target===l&&p4r(s,v.source,t)||v.source===s&&p4r(l,v.target,t))});d!==-1&&(a.splice(f,1),a.splice(d,0,h))}),a}var m4r=ae(()=>{"use strict";i(p4r,"isInside");i(g4r,"orderNestedEdgeEnds")});function Ret(r){let t=[];for(let a=0;a<r.length-1;a++)t.push({a:r[a],b:r[a+1]});return t}function BUn(r,t,a,s){let l=t.x-r.x,h=t.y-r.y,f=s.x-a.x,d=s.y-a.y,m=l*d-h*f;if(m===0)return null;let b=a.x-r.x,v=a.y-r.y,T=(b*d-v*f)/m,C=(b*h-v*l)/m;return T<=qxe||T>=1-qxe||C<=qxe||C>=1-qxe?null:{point:{x:r.x+T*l,y:r.y+T*h},tA:T,tB:C}}function y4r(r){return Math.abs(r.b.x-r.a.x)>=Math.abs(r.b.y-r.a.y)}function b4r(r,t,a){if(r.curve!=="rounded")return!1;let s=r.points,l=s[t],h=s[t+1];if(!l||!h)return!1;let f=Math.hypot(h.x-l.x,h.y-l.y),d=a*f,m=t>0?Xxe(s[t-1],l,h,Yxe):null;if(m&&d<m.cutLen)return!0;let b=t+2<s.length?Xxe(l,h,s[t+2],Yxe):null;return b!==null&&f-d<b.cutLen}function FUn(r){let t=[];for(let a=0;a<r.length;a++){let s=r[a],l=Ret(s.points);for(let h=a+1;h<r.length;h++){let f=r[h],d=Ret(f.points);for(let[m,b]of l.entries())for(let[v,T]of d.entries()){let C=BUn(b.a,b.b,T.a,T.b);if(!C||b4r(s,m,C.tA)||b4r(f,v,C.tB))continue;let E=y4r(b),S=y4r(T);(E!==S?E:!1)?t.push({jumpEdgeId:s.id,otherEdgeId:f.id,segIndex:m,t:C.tA,point:C.point}):t.push({jumpEdgeId:f.id,otherEdgeId:s.id,segIndex:v,t:C.tB,point:C.point})}}}return t}function TS(r){let t=Math.round(r*1e3)/1e3;return Number.isInteger(t)?`${t}`:`${t}`}function Cne(r){return`${TS(r.x)},${TS(r.y)}`}function $Un(r){let t=r.b.x-r.a.x,a=r.b.y-r.a.y;return Math.abs(t)>=Math.abs(a)?t>=0?1:0:a>=0?1:0}function GUn(r,t){if(r.length<2)return r.map(h=>({...h}));let a=r.map(h=>({...h})),s=t.arrowTypeStart&&Zf[t.arrowTypeStart];if(s){let h=r[0],f=r[1],d=Math.atan2(f.y-h.y,f.x-h.x);a[0].x=h.x+s*Math.cos(d),a[0].y=h.y+s*Math.sin(d)}let l=t.arrowTypeEnd&&Zf[t.arrowTypeEnd];if(l){let h=r.length,f=r[h-2],d=r[h-1],m=Math.atan2(d.y-f.y,d.x-f.x);a[h-1].x=d.x-l*Math.cos(m),a[h-1].y=d.y-l*Math.sin(m)}return a}function jUn(r,t,a,s,l){let h=r.point.x,f=r.point.y,d={x:h-t*r.r,y:f-a*r.r},m={x:h+t*r.r,y:f+a*r.r},b=[`L${Cne(d)}`];return l==="arc"?b.push(`A${TS(r.r)},${TS(r.r)} 0 0 ${s} ${Cne(m)}`):b.push(`M${Cne(m)}`),b}function Xxe(r,t,a,s){let l=t.x-r.x,h=t.y-r.y,f=a.x-t.x,d=a.y-t.y,m=Math.hypot(l,h),b=Math.hypot(f,d);if(m<Hxe||b<Hxe)return null;let v=l/m,T=h/m,C=f/b,E=d/b,S=v*C+T*E,R=Math.max(-1,Math.min(1,S)),L=Math.acos(R);if(L<Hxe||Math.abs(Math.PI-L)<Hxe)return null;let _=Math.min(s/Math.sin(L/2),m/2,b/2);return{startX:t.x-v*_,startY:t.y-T*_,endX:t.x+C*_,endY:t.y+E*_,ctrlX:t.x,ctrlY:t.y,cutLen:_}}function zUn(r,t,a){let s=r.points;if(s.length<2)return"";let l=GUn(s,r),h=r.curve==="rounded",f=Ret(l),d=new Map;for(let b of t){let v=f[b.segIndex];if(!v)continue;let T=Math.hypot(v.b.x-v.a.x,v.b.y-v.a.y),C=d.get(b.segIndex)??[];C.push({t:b.t,point:b.point,d:b.t*T,r:a.jumpRadius}),d.set(b.segIndex,C)}let m=[`M${Cne(l[0])}`];for(let b=0;b<f.length;b++){let v=f[b],T=Math.hypot(v.b.x-v.a.x,v.b.y-v.a.y),C=T===0?0:(v.b.x-v.a.x)/T,E=T===0?0:(v.b.y-v.a.y)/T,S=$Un(v),R=0;if(h&&b>0){let B=Xxe(l[b-1],l[b],l[b+1]??l[b],Yxe);B&&(R=B.cutLen)}let L=T,_=null;h&&b<f.length-1&&(_=Xxe(l[b],l[b+1],l[b+2]??l[b+1],Yxe),_&&(L=T-_.cutLen));let I=a.jumpRadius*PUn,N=[...d.get(b)??[]].sort((B,O)=>B.t-O.t).filter(B=>{let O=Math.min(B.d-R,L-B.d)-OUn;return B.r=Math.min(B.r,O),B.r>=I});for(let B=0;B<N.length-1;B++){let O=N[B+1].d-N[B].d;if(N[B].r+N[B+1].r>O){let P=O/2;N[B].r=Math.min(N[B].r,P),N[B+1].r=Math.min(N[B+1].r,P)}}for(let B of N)B.r<I||m.push(...jUn(B,C,E,S,a.jumpStyle));h&&_?(m.push(`L${TS(_.startX)},${TS(_.startY)}`),m.push(`Q${TS(_.ctrlX)},${TS(_.ctrlY)} ${TS(_.endX)},${TS(_.endY)}`)):m.push(`L${Cne(v.b)}`)}return m.join(" ")}function UUn(r){return/^[\d\s+,.LMelm-]*$/.test(r)}function VUn(r){return r?r==="linear"||r==="rounded"||r==="step"||r==="stepBefore"||r==="stepAfter":!0}function WUn(r){if(!r)return null;try{let t=typeof atob=="function"?atob(r):Buffer.from(r,"base64").toString(),a=JSON.parse(t);if(!Array.isArray(a))return null;let s=[];for(let l of a)l&&typeof l.x=="number"&&typeof l.y=="number"&&s.push({x:l.x,y:l.y});return s.length>=2?s:null}catch{return null}}function Kxe(r,t,a){if(!a.enabled)return;let s=r.node();if(!s)return;let l=new Map;for(let b of t)l.set(b.id,b);let h=new Map;for(let b of s.querySelectorAll("path[data-id]")){let v=b.getAttribute("data-id");v!==null&&!h.has(v)&&h.set(v,b)}let f=[];for(let b of t){let v=h.get(b.id);if(!v)continue;let C=WUn(v.getAttribute("data-points"))??b.points;f.push({...b,points:C})}let d=FUn(f);if(d.length===0)return;let m=new Map;for(let b of d){let v=m.get(b.jumpEdgeId)??[];v.push(b),m.set(b.jumpEdgeId,v)}for(let b of f){let v=m.get(b.id);if(!v||v.length===0)continue;let C=l.get(b.id)?.curve;if(C!==void 0&&!VUn(C))continue;let E=h.get(b.id);if(!E)continue;if(C===void 0){let N=E.getAttribute("d")??"";if(!UUn(N))continue}let S=E.getAttribute("style")??"",R=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),L=R?Number.parseFloat(R[1]):null,_=R?Number.parseFloat(R[2]):null,I=zUn(b,v,a);if(E.setAttribute("d",I),L!==null&&_!==null&&typeof E.getTotalLength=="function"){let N=E.getTotalLength(),B=Math.max(0,N-L-_),O=`0 ${L} ${B} ${_}`,P=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${O};`).replace(/;\s*;+/g,";");E.setAttribute("style",P)}}}var Yxe,Hxe,OUn,PUn,qxe,Let=ae(()=>{"use strict";Owe();Yxe=5,Hxe=1e-5,OUn=2,PUn=.6,qxe=1e-6;i(Ret,"buildSegmentList");i(BUn,"segmentIntersection");i(y4r,"isHorizontalSeg");i(b4r,"crossingSitsInRoundedCorner");i(FUn,"findEdgeIntersections");i(TS,"fmt");i(Cne,"pointToString");i($Un,"getArcSweepFlag");i(GUn,"applyMarkerOffsets");i(jUn,"emitJump");i(Xxe,"computeRoundedCorner");i(zUn,"rewriteEdgePath");i(UUn,"isStraightPath");i(VUn,"curveSupportsLineHops");i(WUn,"decodeDataPoints");i(Kxe,"applyLineJumpsToSvg")});function v4r(r,{measure:t}){let a=r.config?.elk?.lineHops;if(a===!1)return;let s=r.edges.filter(l=>Array.isArray(l.points)&&l.points.length>=2).map(l=>({id:l.id,points:l.points,curve:l.curve,arrowTypeStart:l.arrowTypeStart,arrowTypeEnd:l.arrowTypeEnd}));Kxe(t.groups.edgePaths,s,{enabled:!0,jumpRadius:HUn,jumpStyle:a==="gap"?"gap":"arc"})}var HUn,w4r=ae(()=>{"use strict";Let();HUn=6;i(v4r,"applyElkLineJumps")});var x4r,T4r,k4r,C4r,E4r=ae(()=>{"use strict";x4r={},T4r={},k4r={},C4r={}});var UU,qUn,VU,YUn,XUn,KUn,JUn,QUn,S4r,_et,A4r,Ene,Sne,R4r=ae(()=>{"use strict";UU=i((r,t,a=.5)=>{let s=r.width/2,l=r.height/2,h=r.x-s,f=r.x+s,d=r.y-l,m=r.y+l,b=Math.abs(t.x-h)<=a&&t.y>=d-a&&t.y<=m+a,v=Math.abs(t.x-f)<=a&&t.y>=d-a&&t.y<=m+a,T=Math.abs(t.y-d)<=a&&t.x>=h-a&&t.x<=f+a,C=Math.abs(t.y-m)<=a&&t.x>=h-a&&t.x<=f+a;return b||v||T||C},"onBorder"),qUn=i((r,t,a)=>{let s=r.x,l=r.y,h=Math.abs(s-a.x),f=r.width/2,d=a.x<t.x?f-h:f+h,m=r.height/2,b=Math.abs(t.y-a.y),v=Math.abs(t.x-a.x);if(Math.abs(l-t.y)*f>Math.abs(s-t.x)*m){let T=a.y<t.y?t.y-m-l:l-m-t.y;d=v*T/b;let C={x:a.x<t.x?a.x+d:a.x-v+d,y:a.y<t.y?a.y+b-T:a.y-b+T};return v===0&&(C.x=t.x),b===0&&(C.y=t.y),C}else{a.x<t.x?d=t.x-f-s:d=s-f-t.x;let T=b*d/v,C=a.x<t.x?a.x+v-d:a.x-v+d,E=a.y<t.y?a.y+T:a.y-T;return v===0&&(C=t.x),b===0&&(E=t.y),{x:C,y:E}}},"intersection"),VU=i((r,t)=>{let a=r.x,s=r.y,l=Math.abs(t.x-a),h=Math.abs(t.y-s),f=r.width/2,d=r.height/2;return l>=f||h>=d},"outsideNode"),YUn=i((r,t,a=10)=>{let s=Math.abs(t.x-r.x),l=Math.abs(t.y-r.y),h=r.width/2,f=r.height/2;if(Math.abs(s-h)<1||Math.abs(l-f)<1){let d=t.x-r.x,m=t.y-r.y,b=Math.sqrt(d*d+m*m);if(b>0)return{x:r.x+d/b*(b+a),y:r.y+m/b*(b+a)}}return t},"ensureTrulyOutside"),XUn=i((r,t,a)=>{let s=Math.abs(t.x-r.x)<1,l=Math.abs(t.y-r.y)<1;return{x:s?t.x:t.x<r.x?r.x-r.width/4:r.x+r.width/4,y:l?t.y:a.y}},"makeInsidePoint"),KUn=i((r,t,a)=>{if(!r?.intersect)return null;let s=r.intersect(a);return!s||a.x<t.x&&s.x>t.x||a.x>t.x&&s.x<t.x||Math.hypot(a.x-s.x,a.y-s.y)<=1?null:s},"tryNodeIntersect"),JUn=i((r,t,a)=>{let s=XUn(r,t,a);return qUn(r,t,s)},"fallbackIntersection"),QUn=20,S4r=1e-6,_et=i((r,t,a)=>{let s=r.intersect?.(a);if(!s)return!1;let l=Math.hypot(a.x-t.x,a.y-t.y),h=Math.hypot(s.x-t.x,s.y-t.y);return l<=h+1e-9},"insideOutline"),A4r=i((r,t,a,s)=>{if(!r?.intersect)return null;let l=s.x-a.x,h=s.y-a.y;if(l===0&&h===0||Math.abs(l)>S4r&&Math.abs(h)>S4r)return null;let f={x:t.x,y:t.y},d=Math.abs(l)>Math.abs(h),m=i(T=>d?{x:T,y:a.y}:{x:a.x,y:T},"along"),b=d?f.x:f.y,v=d?a.x:a.y;if(!_et(r,f,m(b)))return null;if(_et(r,f,m(v)))return{...a};for(let T=0;T<QUn;T++){let C=(b+v)/2;_et(r,f,m(C))?b=C:v=C}return m(b)},"outlineAttachPoint"),Ene=i((r,t,a,s)=>{let l=YUn(t,a);return KUn(r,t,l)??JUn(t,l,s)},"computeNodeIntersection"),Sne=i((r,t,a,s=.1)=>{if(!(!a||r.length===0))if(t==="start")r.length>0&&Math.abs(r[0].x-a.x)<s&&Math.abs(r[0].y-a.y)<s?r.shift():r[0]=a;else{let l=r.length-1;r.length>0&&Math.abs(r[l].x-a.x)<s&&Math.abs(r[l].y-a.y)<s?r.pop():r[l]=a}},"replaceEndpoint")});function eVn(r){for(let t of ZUn)delete r[t];r["spacing.baseValue"]=q4r,r["spacing.nodeNode"]=Y4r}function X4r(r,t){if(typeof r=="string"){if(!_4r.has(r)){t?.warn(`Unknown container layout algorithm "${r}". Supported values: ${[..._4r].join(", ")}. Falling back to the diagram's layout algorithm.`);return}return r}}function K4r(r){switch(r){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":return"DOWN";case"BT":return"UP";default:return"DOWN"}}function Bet(r){return dZe(r.shape)?(r.labelData?.width??r.labels?.[0]?.width??0)+(r.padding??0):0}function J4r(r){return dZe(r.shape)?{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${Bet(r)}, 0)`}:{}}function tVn(r,t,a,s){let l=r.labelData?.width??0,h=r.padding??0,f=l+2*h,d=r.labelData?.height??0,m=eCr(t?.preset),b={...J4r(r),"spacing.baseValue":q4r,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":Y4r,"elk.padding":`[top=${nP},left=${nP},bottom=${nP},right=${nP}]`,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":t?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":t?.nodePlacementAlignment??m.alignment,"elk.layered.nodePlacement.strategy":t?.nodePlacementStrategy??m.containerPlacement,"elk.layered.cycleBreaking.strategy":t?.cycleBreakingStrategy??m.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":H4r},v=X4r(r.metadata?.algorithm,s);if(v){let T=d+Ane;if(b["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",b["nodeSize.minimum"]=`(${f}, ${T+Ane})`,b["elk.algorithm"]=v,b["elk.hierarchyHandling"]="SEPARATE_CHILDREN",b["elk.aspectRatio"]="2.0",b["elk.contentAlignment"]="H_CENTER V_TOP",b["elk.expandNodes"]="true",b["elk.padding"]=`[top=${T},left=${Ane},bottom=${Ane},right=${Ane}]`,v==="elk.rectpacking"){let C=d+Rne;Object.assign(b,Pet,{"elk.padding":`[top=${C},left=${Rne},bottom=${Rne},right=${Rne}]`,"nodeSize.minimum":`(${f}, ${C+Rne})`})}}else r.dir&&(b["elk.algorithm"]=a,b["elk.direction"]=K4r(r.dir),b["elk.hierarchyHandling"]="SEPARATE_CHILDREN");return Object.assign(b,C4r),b}function rVn(r,t){let a=new Set,s=new Map;for(let{id:l,parentId:h}of r){let f=s.get(h);f?f.push(l):s.set(h,[l])}for(let l of s.values()){let h=new Set(l),f=new Map(l.map(L=>[L,0])),d=new Map(l.map(L=>[L,[]])),m=[];for(let L of t){let _=L.source==null?void 0:String(L.source),I=L.target==null?void 0:String(L.target);!_||!I||_===I||!h.has(_)||!h.has(I)||(f.set(I,(f.get(I)??0)+1),d.get(_).push(I),d.get(I).push(_),m.push([_,I]))}let b=new Map,v=0;for(let L of l){if(b.has(L))continue;let _=[L];for(b.set(L,v);_.length>0;){let I=_.pop();for(let N of d.get(I))b.has(N)||(b.set(N,v),_.push(N))}v++}let T=new Array(v).fill(!1);for(let L of l)(f.get(L)??0)===0&&(T[b.get(L)]=!0);if(!T.includes(!1))continue;let C=new Map(l.map(L=>[L,[]])),E=new Map(l.map(L=>[L,0])),S=i((L,_)=>{let I=new Set([L]),N=[L];for(;N.length>0;){let B=N.pop();if(B===_)return!0;for(let O of C.get(B))I.has(O)||(I.add(O),N.push(O))}return!1},"reaches");for(let[L,_]of m)S(_,L)||(C.get(L).push(_),E.set(_,(E.get(_)??0)+1));let R=new Array(v).fill(!1);for(let L of l){let _=b.get(L);!T[_]&&!R[_]&&E.get(L)===0&&(a.add(L),R[_]=!0)}}return a}function nVn(r,t){if(!r.config.elk?.keepEntryNodeOnTop)return;let a=rVn(r.nodes,r.edges.map(s=>({source:s.start,target:s.end})));for(let s of a){let l=t[s];l&&(l.layoutOptions={...l.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"})}}function iVn(r,t){let a=Z4r(t);return cVn(a),WVn(r,a),{algorithm:a.algorithm}}async function aVn(r,t){let a=Z4r(t),s=sVn(r,a),l=new U4r.default;a.log.info("Drawing flowchart using v4 renderer",l);let h=await TVn(l,s.elkGraph,a.log);return kVn(r,h,s,a.log),uVn(r.nodes),h}function sVn(r,t){let a={},s=hVn(r,t.algorithm,t.rootLayoutOptions),l=r.direction??"DOWN";s.layoutOptions["elk.direction"]=K4r(l);let h=fVn(r.nodes,t.log);return tCr(r.nodes,s,a,t),mVn(r,s,a,t),wVn(r,a,h,t),xVn(s,a,h,t.log),r.config.elk?.orientFeedbackEdges!==!1&&oVn(s,h),lVn(s,h),nVn(r,a),{elkGraph:s,nodeDb:a,parentLookupDb:h}}function oVn(r,t){let a=f4r(r.edges.map(s=>({source:s.sources[0],target:s.targets[0]})),t);r.edges.forEach((s,l)=>{a[l]&&([s.sources,s.targets]=[s.targets,s.sources],s.layoutReversed=!0)})}function lVn(r,t){let a=g4r(r.edges.map(s=>({source:s.sources[0],target:s.targets[0]})),t);r.edges=a.map(s=>r.edges[s])}function cVn(r){TA(r.getConfig())}function uVn(r){let t=new Map(r.map(a=>[a.id,a]));r.sort((a,s)=>a.isGroup!==s.isGroup?a.isGroup?-1:1:a.isGroup&&s.isGroup?D4r(a,t)-D4r(s,t):0)}function D4r(r,t){let a=0,s=new Set,l=r.parentId;for(;l&&!s.has(l);){s.add(l);let h=t.get(l);if(!h?.isGroup)break;a++,l=h.parentId}return a}function Z4r(r){let t=r.helpers;if(!t)throw new Error("ELK layout requires Mermaid internal helpers");return{algorithm:r.preparedLayout?.algorithm??r.options?.algorithm,rootLayoutOptions:r.options?.rootLayoutOptions,common:t.common,getConfig:t.getConfig,interpolateToCurve:t.interpolateToCurve,log:t.log}}function eCr(r){return r!==void 0&&Object.hasOwn(Det,r)?Det[r]:Det.default}function hVn(r,t,a){let s=eCr(r.config.elk?.preset),l={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":t,"elk.layered.nodePlacement.strategy":r.config.elk?.nodePlacementStrategy??s.placement,"elk.layered.nodePlacement.bk.fixedAlignment":r.config.elk?.nodePlacementAlignment??s.alignment,"elk.layered.mergeEdges":r.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":r.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":r.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":r.config.elk?.cycleBreakingStrategy??s.cycleBreaking,"elk.layered.layering.strategy":r.config.elk?.layeringStrategy??s.layering,"elk.layered.layering.coffmanGraham.layerBound":r.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":H4r},children:[],edges:[]};return t==="elk.rectpacking"&&Object.assign(l.layoutOptions,Pet,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"}),a&&Object.assign(l.layoutOptions,a),Object.assign(l.layoutOptions,x4r,T4r,k4r),l}function fVn(r,t){let a={parentById:{},childrenById:{}},s=r.filter(l=>l.isGroup);return t.info("Subgraphs - ",s),s.forEach(l=>{r.filter(f=>f.parentId===l.id).forEach(f=>{a.parentById[f.id]=l.id,a.childrenById[l.id]??=[],a.childrenById[l.id].push(f.id)})}),a}function tCr(r,t,a,s,l){let h=r.filter(f=>f?.parentId===l);return s.log.info("addVertices APA12",h,l),h.forEach(f=>{dVn(t,r,f,a,s)}),t}function dVn(r,t,a,s,l){let h=pVn(a);r.children.push(h),s[a.id]=h,a.isGroup&&(h.children=[],tCr(t,h,s,l,a.id),h.labelData=gVn(a,l.getConfig()))}function pVn(r){let t={...r};return delete t.domId,r.isGroup?t.children=[]:(t.width=r.width??0,t.height=r.height??0,r.spreadPorts&&(t.layoutOptions={...t.layoutOptions,"elk.portAlignment.default":"CENTER"})),t}function gVn(r,t){let a=r.labelData;return a||(r.labelBBox?{width:r.labelBBox.width,height:Math.max(0,r.labelBBox.height-2),wrappingWidth:r.wrappingWidth??t.flowchart?.wrappingWidth}:{width:0,height:0,wrappingWidth:r.wrappingWidth??t.flowchart?.wrappingWidth})}function mVn(r,t,a,s){s.log.info("abc78 DAGA edges = ",r);let l={};return r.edges.forEach(h=>{let f=h.id;l[f]=(l[f]??-1)+1;let d=f;h.id=d,s.log.info("abc78 new link id to be used is",f,d,l[f]);let{source:m,target:b,sourceId:v,targetId:T}=vVn(h,a);s.log.debug("abc78 source and target",m,b),t.edges.push({...h,sources:[m],targets:[b],sourceId:v,targetId:T,labels:[{width:h.width??0,height:h.height??0,orgWidth:h.width??0,orgHeight:h.height??0,text:h.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}},...(s.rootLayoutOptions?.["elk.algorithm"]??s.algorithm??"elk.layered")==="elk.layered"?bVn(h):[]]})}),t}function bVn(r){let t={startLeft:r.startLabelLeft,startRight:r.startLabelRight,endLeft:r.endLabelLeft,endRight:r.endLabelRight};return Object.entries(r.terminalLabelSizes??{}).map(([a,s])=>{let l=a.startsWith("start"),h=l?r.arrowTypeStart:r.arrowTypeEnd,f=h&&h!=="none"?yVn:0;return{terminal:a,text:t[a],width:s.width+2*f,height:s.height+2*f,layoutOptions:{"edgeLabels.placement":l?"TAIL":"HEAD"}}})}function vVn(r,t){let a=r.start,s=r.end,l=a,h=s,f=a?t[a]:void 0,d=s?t[s]:void 0;return!f||!d?{source:l,target:h}:{source:l,target:h,sourceId:a,targetId:s}}function wVn(r,t,a,s){r.nodes.forEach(l=>{let h=t[l.id];!h||a.childrenById[h.id]===void 0||(h.labels=[{text:h.label,width:h?.labelData?.width??50,height:h?.labelData?.height??50}],s.log.debug("UIO node label",h?.labelData?.width,h.padding),h.layoutOptions=tVn(h,r.config.elk,s.algorithm,s.log),delete h.x,delete h.y,delete h.width,delete h.height)})}function xVn(r,t,a,s){s.debug("APA01 processing edges, count:",r.edges.length),r.edges.forEach((l,h)=>{s.debug("APA01 processing edge",h,":",l);let f=l.sources[0],d=l.targets[0];if(s.debug("APA01 source:",f,"target:",d),s.debug("APA01 nodeDb[source]:",t[f]),s.debug("APA01 nodeDb[target]:",t[d]),t[f]&&t[d]&&t[f].parentId!==t[d].parentId){let m=kne(f,d,a);Met(t,f,m,s),Met(t,d,m,s)}})}function Met(r,t,a,s){let l=r[t];l&&(l.layoutOptions??={},l.layoutOptions["elk.hierarchyHandling"]==="SEPARATE_CHILDREN"&&X4r(l.metadata?.algorithm)&&(s.debug("Dropping explicit algorithm for node",l.id,"due to cross-boundary edges"),eVn(l.layoutOptions),Object.assign(l.layoutOptions,J4r(l))),l.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",l.id!==a&&l.parentId&&Met(r,l.parentId,a,s))}async function TVn(r,t,a){let s=globalThis.__mermaidProfiler;try{s?.begin("layoutCore");let l;try{l=await r.layout(t)}finally{s?.end()}return a.debug("APA01 after - success"),a.debug("APA01 layout result:",l),l}catch(l){throw a.error("ELK layout error:",l),l}}function kVn(r,t,a,s){let l=new Map(r.nodes.map(h=>[h.id,h]));iCr(t.children??[],a,l,0,0,0,s),nCr(t.children??[],a,l,t),DVn(r,t,a,s)}function rCr(r,t=new Set){for(let a of r.children??[])t.add(a.id),rCr(a,t);return t}function CVn(r,t,a,s){let l=[];for(let h of r.edges??[]){let f=h.sources?.[0]??h.start,d=h.targets?.[0]??h.end,m=t.has(f)&&t.has(d),b=f===s,v=d===s;if(!m&&!b&&!v)continue;let T=Oet(f,d,a.parentLookupDb,a.nodeDb);for(let C of h.sections??[]){let E=m?[C.startPoint,...C.bendPoints??[],C.endPoint]:[b?C.startPoint:null,v?C.endPoint:null];for(let S of E)S&&l.push({x:S.x+T.x,y:S.y+T.y})}}return l}function nCr(r,t,a,s={}){for(let l of r){if(!l?.isGroup)continue;let h=l.children??[];nCr(h,t,a,s);let f=t.nodeDb[l.id],d=h.map(O=>t.nodeDb[O.id]).filter(O=>O?.offset&&O.width&&O.height);if(!f?.offset||d.length===0)continue;let m=CVn(s,rCr(l),t,l.id),b=[...d.map(O=>O.offset.posX),...d.map(O=>O.offset.posX+O.width),...m.map(O=>O.x)],v=[...d.map(O=>O.offset.posY),...d.map(O=>O.offset.posY+O.height),...m.map(O=>O.y)],T=f.offset,C=Math.max(T.posX,Math.min(...b)-nP),E=Math.min(T.posX+f.width,Math.max(...b)+nP),S=Math.min(T.posY+f.height,Math.max(...v)+nP),R=T.posY,L=Bet(l),_=C,I=E-C;if(I<L){_-=(L-I)/2,I=L;let O=T.posX+f.width;_=Math.max(T.posX,Math.min(_,O-I)),I=Math.min(I,f.width)}let N=S-R;if(N<=0||I<=0)continue;f.elkOrigin??={posX:T.posX,posY:T.posY},f.offset.posX=_,f.offset.width=I,f.offset.height=N,f.width=I,f.height=N,f.x=_+I/2,f.y=R+N/2;let B=a.get(l.id);B&&(B.x=f.x,B.y=f.y,B.width=I,B.height=N)}}function iCr(r,t,a,s,l,h,f){r.forEach(d=>{if(!d)return;let m=t.nodeDb[d.id]??d,b=Math.max(d.width,d.labels&&d.labels[0]?.width||0),v={posX:d.x+s,posY:d.y+l,x:s,y:l,depth:h,width:b,height:d.height};m.offset=v,m.x=v.posX+d.width/2,m.y=v.posY+d.height/2,m.width=d.width,m.height=d.height;let T=a.get(d.id);if(T){T.x=m.x,T.y=m.y,T.width=d.isGroup?Math.max(d.width,d.labelData?.width??0):d.width,T.height=d.height;let C=T;C.labelData=d.labelData,C.labels=d.labels}d.isGroup?(f.debug("Id abc88 subgraph = ",d.id,d.x,d.y,d.labelData),iCr(d.children??[],t,a,v.posX,v.posY,h+1,f)):f.info("Id NODE = ",d.id,d.x,d.y,s,l,`translate(${m.x}, ${m.y})`)})}function Jxe(r,t){let a=Math.abs(t.x-r.x),s=Math.abs(t.y-r.y);if(a>_ne&&s<=_ne)return"h";if(s>_ne&&a<=_ne)return"v"}function AVn(r){let t=[],a=r,s=I4r(a);s&&(a=s.points,t.push(s.run));let l=[...a].reverse(),h=I4r(l);return h&&(a=h.points.reverse(),t.push(h.run)),{points:a,runs:t}}function I4r(r){if(r.length<5)return null;let[t,a,s,l]=r,h=Jxe(t,a);if(!h||Jxe(s,l)!==h||Jxe(a,s)!==(h==="h"?"v":"h")||Math.hypot(a.x-t.x,a.y-t.y)>SVn)return null;let f=Math.abs(h==="h"?s.y-a.y:s.x-a.x);if(f<_ne||f>EVn||!(h==="h"?Math.sign(a.x-t.x)===Math.sign(l.x-s.x):Math.sign(a.y-t.y)===Math.sign(l.y-s.y)))return null;let m=3;for(;m+1<r.length&&Jxe(r[m],r[m+1])===h;)m++;if(m===r.length-1)return null;let b=[...r];for(let T=2;T<=m;T++)b[T]=h==="h"?{x:r[T].x,y:t.y}:{x:t.x,y:r[T].y};let v={old:{a:r[2],b:r[m]},new:{a:b[2],b:b[m]}};return b.splice(1,2),{points:b,run:v}}function RVn(r,t,a,s){let l=i((b,v,T)=>(v.x-b.x)*(T.y-b.y)-(v.y-b.y)*(T.x-b.x),"side"),h=l(a,s,r),f=l(a,s,t),d=l(r,t,a),m=l(r,t,s);return(h>0&&f<0||h<0&&f>0)&&(d>0&&m<0||d<0&&m>0)}function M4r(r,t){let a=0;for(let s=0;s<r.length-1;s++)for(let l=0;l<t.length-1;l++)RVn(r[s],r[s+1],t[l],t[l+1])&&a++;return a}function LVn(r,t,a){let s=a.x-t.x,l=a.y-t.y,h=s*s+l*l;return h===0?0:Math.max(0,Math.min(1,((r.x-t.x)*s+(r.y-t.y)*l)/h))}function N4r(r,t,a){return{x:r.x+a*(t.x-r.x),y:r.y+a*(t.y-r.y)}}function aCr(r,t){let a=null;for(let s of t){let l=LVn(r,s.old.a,s.old.b),h=N4r(s.old.a,s.old.b,l),f=h.x-r.x,d=h.y-r.y,m=f*f+d*d;(!a||m<a.distSq)&&(a={distSq:m,point:N4r(s.new.a,s.new.b,l)})}return a?.point??null}function Net(r,t,a){let s=0,l=1,h=t.x-r.x,f=t.y-r.y;for(let[d,m]of[[-h,r.x-a.x1],[h,a.x2-r.x],[-f,r.y-a.y1],[f,a.y2-r.y]])if(d===0){if(m<0)return!1}else d<0?s=Math.max(s,m/d):l=Math.min(l,m/d);return s<l}function _Vn(r){let t=r.map(h=>h.points??[]),a=r.map(h=>h.x==null||h.y==null||!h.label||!h.width||!h.height?void 0:{centre:{x:h.x,y:h.y},size:{width:h.width,height:h.height}}),s=i((h,f)=>{let d=f&&iP(f.centre,f.size);return!!d&&h.some((m,b)=>b<h.length-1&&Net(m,h[b+1],d))},"covers"),l=[];for(let[h,f]of r.entries()){let d=t[h];if(d.length<5)continue;let{points:m,runs:b}=AVn(d);if(m===d)continue;let v=a[h],T=v&&aCr(v.centre,b),C=v&&T?{centre:T,size:v.size}:v,E=0,S=0,R=0,L=0;for(let[_,I]of t.entries())_===h||I.length<2||(E+=M4r(d,I),S+=M4r(m,I),R+=Number(s(I,v))+Number(s(d,a[_])),L+=Number(s(I,C))+Number(s(m,a[_])));S>E||L>R||(f.points=m,t[h]=m,a[h]=C,l.push({edge:f,runs:b}))}return l}function DVn(r,t,a,s){let l=new Map(r.edges.map(b=>[b.id,b])),h=r.config.elk?.straightenEdges!==!1,f=new Map;for(let b of r.edges)delete b.terminalLabelCenters;let d=new Map(r.nodes.map(b=>[b.id,b])),m=new Set;if(t.edges?.forEach(b=>{if(!b.sections?.length)return;let v=a.nodeDb[b.sources?.[0]??b.start],T=a.nodeDb[b.targets?.[0]??b.end];if(!v||!T)return;let C=b.start??b.sourceId??b.sources?.[0],E=b.end??b.targetId??b.targets?.[0],S=Oet(C,E,a.parentLookupDb,a.nodeDb),R=b.sections[0];v.shape!=="rect33"&&O4r(v,{x:R.startPoint.x+S.x,y:R.startPoint.y+S.y},d,m),T.shape!=="rect33"&&O4r(T,{x:R.endPoint.x+S.x,y:R.endPoint.y+S.y},d,m)}),t.edges?.forEach(b=>{let v=l.get(b.id);if(!v)return;let T=b.layoutReversed===!0,C=b.sources?.[0]??b.start,E=b.targets?.[0]??b.end;T&&([C,E]=[E,C]);let S=a.nodeDb[C],R=a.nodeDb[E];if(!S||!R)return;if(!b.sections?.length){let V=i(re=>({x:(re.offset?.posX??re.x??0)+(re.width??0)/2,y:(re.offset?.posY??re.y??0)+(re.height??0)/2}),"centre"),Y=V(S),Q=V(R);S.x=Y.x,S.y=Y.y,R.x=Q.x,R.y=Q.y;let q=P4r([Y,Q],S,R,s);v.points=q,v.curve="linear";let W=q[0],H=q[q.length-1];v.x=(W.x+H.x)/2,v.y=(W.y+H.y)/2,s.debug("APA18 no edge sections, using a straight line",b.id,v.points);return}let L=b.start??b.sourceId??C,_=b.end??b.targetId??E,I=Oet(L,_,a.parentLookupDb,a.nodeDb);s.debug("APA18 offset",I,L," ==> ",_,"edge:",b,S);let N=b.sections[0],B=FVn(N,I);T&&B.reverse();let O={start:B[0],end:B[B.length-1]};S.x=S.offset.posX+S.width/2,S.y=S.offset.posY+S.height/2,R.x=R.offset.posX+R.width/2,R.y=R.offset.posY+R.height/2,S.shape!=="rect33"&&B.unshift({x:S.x,y:S.y}),R.shape!=="rect33"&&B.push({x:R.x,y:R.y});let P=P4r(B,S,R,s);v.points=UVn(VVn(P,aP(R),jVn(v),s),aP(S),zVn(v),s),v.curve="rounded";let $=b.labels?.[0];$&&(v.x=$.x+I.x+$.width/2,v.y=$.y+I.y+$.height/2);for(let V of b.labels??[])!V.terminal||!V.x&&!V.y||(v.terminalLabelCenters??={},v.terminalLabelCenters[V.terminal]={x:V.x+I.x+V.width/2,y:V.y+I.y+V.height/2});v.terminalLabelCenters&&f.set(v,O)}),h){let b=_Vn(r.edges);for(let{edge:v,runs:T}of b){if(v.x==null||v.y==null)continue;let C=aCr({x:v.x,y:v.y},T);C&&(v.x=C.x,v.y=C.y)}}for(let[b,v]of f)BVn(b,v);OVn(r.edges,r.nodes),PVn(r.edges,r.nodes),MVn(r.edges)}function MVn(r){let t=new Map;for(let a of r){if(a.x==null||a.y==null||!a.label||!a.width)continue;let s=[a.start??"",a.end??""].sort().join("\0"),l=t.get(s);l?l.push(a):t.set(s,[a])}for(let a of t.values()){if(a.length!==2)continue;let[s,l]=a;if(Math.abs(s.y-l.y)>Math.max(s.height??0,l.height??0))continue;let h=s.width/2+l.width/2+IVn,f=l.x-s.x,d=h-Math.abs(f);if(d<=0)continue;let m=Math.sign(f)||1;s.x=s.x-m*d/2,l.x=l.x+m*d/2}}function sCr(r,t){let a=t.filter(b=>b.x!==void 0&&b.y!==void 0),s=i(b=>iP({x:b.x,y:b.y},{width:b.width??0,height:b.height??0}),"boxOf"),l=a.filter(b=>!b.isGroup).map(s),h=a.filter(b=>b.isGroup).map(s).flatMap(({x1:b,y1:v,x2:T,y2:C})=>[[{x:b,y:v},{x:T,y:v}],[{x:T,y:v},{x:T,y:C}],[{x:T,y:C},{x:b,y:C}],[{x:b,y:C},{x:b,y:v}]]),f=r.filter(b=>b.label&&b.width&&b.height&&b.x!==void 0).map(b=>iP({x:b.x,y:b.y},{width:b.width,height:b.height})),d=i((b,v=0)=>{let T={x1:b.x1-v,y1:b.y1-v,x2:b.x2+v,y2:b.y2+v};return h.some(([C,E])=>Net(C,E,T))},"hitsFrame");return{hitsFrame:d,blocked:i((b,v,T,C,E=0)=>l.some(S=>Iet(b,S))||f.some(S=>Iet(b,S))||d(b,E)||r.some(S=>(S.points??[]).some((R,L,_)=>L<_.length-1&&!(S===v&&L===C)&&Net(R,_[L+1],b)))||r.some(S=>Object.entries(S.terminalLabelCenters??{}).some(([R,L])=>{let _=S.terminalLabelSizes?.[R];return!(S===v&&R===T)&&_!==void 0&&Iet(b,iP(L,_))})),"blocked")}}function*oCr(r){for(let t of r){let a=t.points;if(!(!a||a.length<2||!t.terminalLabelCenters||!t.terminalLabelSizes))for(let[s,l]of Object.entries(t.terminalLabelCenters)){let h=t.terminalLabelSizes[s],f=s.startsWith("start"),d=f?0:a.length-2,[m,b]=[a[d],a[d+1]],v=Math.hypot(b.x-m.x,b.y-m.y);!h||v===0||(yield{edge:t,key:s,center:l,size:h,atStart:f,segment:d,from:m,to:b,length:v})}}}function OVn(r,t){let{hitsFrame:a,blocked:s}=sCr(r,t);for(let{edge:l,key:h,center:f,size:d,atStart:m,segment:b,from:v,to:T,length:C}of oCr(r)){if(!a(iP(f,d)))continue;let[E,S]=m?[T,v]:[v,T],R={x:(S.x-E.x)/C,y:(S.y-E.y)/C},L=(Math.abs(R.x)*d.width+Math.abs(R.y)*d.height)/2,_=i(N=>(N.x-S.x)*R.x+(N.y-S.y)*R.y,"along"),I=i(N=>_(N)+L<=0&&_(N)-L>=-C,"onSegment");for(let N=1;N<=C;N++){let B=[N,-N].map(O=>({x:f.x+O*R.x,y:f.y+O*R.y})).find(O=>I(O)&&!s(iP(O,d),l,h,b,NVn));if(B){l.terminalLabelCenters[h]=B;break}}}}function PVn(r,t){let{blocked:a}=sCr(r,t);for(let{edge:s,key:l,center:h,size:f,segment:d,from:m,to:b,length:v}of oCr(r)){let T={x:-(b.y-m.y)/v,y:(b.x-m.x)/v},C=(h.x-m.x)*T.x+(h.y-m.y)*T.y;if(C===0||C>0===l.endsWith("Right"))continue;let E={x:h.x-2*C*T.x,y:h.y-2*C*T.y};a(iP(E,f),s,l,d)||(s.terminalLabelCenters[l]=E)}}function BVn(r,t){let a=r.points;if(!a?.length||!r.terminalLabelCenters)return;let s={start:{x:a[0].x-t.start.x,y:a[0].y-t.start.y},end:{x:a[a.length-1].x-t.end.x,y:a[a.length-1].y-t.end.y}};for(let[l,h]of Object.entries(r.terminalLabelCenters)){let f=l.startsWith("start")?s.start:s.end;r.terminalLabelCenters[l]={x:h.x+f.x,y:h.y+f.y}}}function O4r(r,t,a,s){let l=r.width??0,h=r.height??0,f=r.offset.posY,d=f+h,m=.5,b=Math.abs(t.y-f)<=m||Math.abs(t.y-d)<=m;if((b?l:h)>=2*Lne||s.has(r.id))return;s.add(r.id);let v=b?t.x-(r.offset.posX+l/2):t.y-(r.offset.posY+h/2);if(Math.abs(v)<.01)return;b?(r.offset.posX+=v,r.x=r.offset.posX+l/2):(r.offset.posY+=v,r.y=r.offset.posY+h/2);let T=a.get(r.id);T&&(T.x=r.offset.posX+l/2,T.y=r.offset.posY+h/2)}function FVn(r,t){let a=r.startPoint,s=r.endPoint,h=(r.bendPoints?r.bendPoints:[]).map(f=>({x:f.x+t.x,y:f.y+t.y}));return[{x:a.x+t.x,y:a.y+t.y},...h,{x:s.x+t.x,y:s.y+t.y}]}function Oet(r,t,a,s){let l=kne(r,t,a);if(l===void 0||l==="root")return{x:0,y:0};let h=s[l],f=h?.elkOrigin??h?.offset;return{x:f?.posX??0,y:f?.posY??0}}function P4r(r,t,a,s){let l=Array.isArray(r)?[...r]:[],h=aP(a);s.debug("PPP cutter2: Points before cutter2:",JSON.stringify(r),"endBounds:",h,UU(h,r[r.length-1]));let f;{let d=aP(t),m=aP(a),b=!!t?.isGroup,v=!!a?.isGroup,{candidate:T,centerApprox:C}=$4r(l,t,"start"),{candidate:E,centerApprox:S}=$4r(l,a,"end"),R=b&&UU(d,T),L=v&&UU(m,E);G4r(l,"start",R&&C),G4r(l,"end",L&&S),b&&!R&&(R=j4r(l,d,"start")),v&&!L&&(L=j4r(l,m,"end")),R||L?(R||JVn(l,t,d,s),L||QVn(l,a,m,s),s.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:R,skipEnd:L,startCenterApprox:C,endCenterApprox:S,startCandidate:T,endCandidate:E}),f=l):f=ZVn(t,a,l,s)}if(s.debug("PPP cutter2: Points after cutter2:",JSON.stringify(f)),!Array.isArray(f)||f.length<2||$Vn(f)){s.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",f);let d=l.filter(m=>Number.isFinite(m?.x)&&Number.isFinite(m?.y));f=d.length>=2?d:l}return s.debug("UIO cutter2: Points after cutter2 (sanitized):",f),GVn(f,s)}function $Vn(r){return r?.some(t=>!Number.isFinite(t?.x)||!Number.isFinite(t?.y))}function GVn(r,t){let a=r.filter((s,l,h)=>{if(l===0)return!0;let f=h[l-1];return Math.abs(s.x-f.x)>1e-6||Math.abs(s.y-f.y)>1e-6});return a.length!==r.length&&t.debug("UIO cutter2: removed consecutive duplicate points",{before:r,after:a}),a}function jVn(r){return W4r(r.arrowTypeEnd)}function zVn(r){return W4r(r.arrowTypeStart)}function UVn(r,t,a,s){if(a<=0||r.length<3)return r;let l=r[0],h=r[1],f=Math.hypot(h.x-l.x,h.y-l.y);if(f>=Math.max(V4r,a*2)||!UU(t,h,1))return r;let d=[l,...r.slice(2)];return s.debug("UIO cutter2: removed short start marker segment",{before:r,after:d,markerOffset:a,segmentLength:f}),d}function VVn(r,t,a,s){if(a<=0||r.length<3)return r;let l=r[r.length-1],h=r[r.length-2],f=Math.hypot(l.x-h.x,l.y-h.y);if(f>=Math.max(V4r,a*2)||!UU(t,h,1))return r;let d=[...r.slice(0,-2),l];return s.debug("UIO cutter2: removed short end marker segment",{before:r,after:d,markerOffset:a,segmentLength:f}),d}function WVn(r,t){let a=r.edges.defaultInterpolate,s=r.edges.defaultStyle,l=t.getConfig();r.edges.forEach(h=>{let f=XVn(h,{defaultStyle:s,defaultInterpolate:a,confCurve:l.curve},t);Object.assign(h,f)})}function HVn(r){if(r.classes!==void 0)return r.classes;if(r.start&&r.end)return`flowchart-link LS_${r.start} LE_${r.end}`}function qVn(r,t,a){let s="normal",l="solid",h=[],f=[];return r==="dotted"?(l="dotted",h=["fill:none","stroke-width:2px","stroke-dasharray:3"]):r==="thick"?(s="thick",h=["stroke-width: 3.5px","fill:none"]):(h=t??["fill:none"],a!==void 0&&(f=a)),{thickness:s,pattern:l,style:h,labelStyle:f}}function YVn(r,t,a){return r!==void 0?r:t!==void 0?t:a}function XVn(r,t,a){let s={};s.minlen=r.minlen??r.length??1,s.text=r.text??r.label,s.arrowhead=r.arrowhead??(r.type==="arrow_open"?"none":"normal");let l=L4r[r.type??"arrow_open"]??L4r.arrow_open;s.arrowTypeStart=r.arrowTypeStart??l[0],s.arrowTypeEnd=r.arrowTypeEnd??l[1],s.startLabelRight=r.startLabelRight,s.endLabelLeft=r.endLabelLeft;let h=qVn(r.stroke,t.defaultStyle,t.defaultLabelStyle);s.thickness=r.thickness??h.thickness,s.pattern=r.pattern??h.pattern,s.style=r.style??h.style,s.labelStyle=r.labelStyle??h.labelStyle,s.classes=HVn(r),s.curve=a.interpolateToCurve(YVn(r.curve??r.interpolate,t.defaultInterpolate,t.confCurve),GT);let f=(s.text??"")!=="";return r.arrowheadStyle!==void 0?s.arrowheadStyle=r.arrowheadStyle:(f||r.style!==void 0)&&(s.arrowheadStyle="fill: #333"),s.labelpos=r.labelpos??(f?"c":void 0),s.labelType=r.labelType,s.label=(r.label??s.text??"").replace(a.common.lineBreakRegex,`
|
|
`),s}function KVn(r){return Math.max(r.width??0,Bet(r))}function aP(r){let t=r?.isGroup?KVn(r):r.width;return{x:r.offset.posX+r.width/2,y:r.offset.posY+r.height/2,width:t??0,height:r.height??0,padding:r.padding}}function B4r(r,t,a=1e-6){return Math.abs(r-t)<a}function F4r(r,t){return B4r(r.x,t.x??0)&&B4r(r.y,t.y??0)}function $4r(r,t,a){if(!r?.length)return{candidate:{x:t.x??0,y:t.y??0},centerApprox:!0};if(a==="start"){let s=r[0],l=F4r(s,t);return{candidate:l&&r.length>1?r[1]:s,centerApprox:l}}else{let s=r[r.length-1],l=F4r(s,t);return{candidate:l&&r.length>1?r[r.length-2]:s,centerApprox:l}}}function G4r(r,t,a){a&&(t==="start"?r.length>0&&r.shift():r.length>0&&r.pop())}function j4r(r,t,a){let s=a==="start"?1:-1,l=a==="start"?0:r.length-1,h=l;for(;l>=0&&l<r.length&&!VU(t,r[l]);)l+=s;if(l===h||l<0||l>=r.length)return!1;let f=r[l],d=r[l-s],m=f.x-d.x,b=f.y-d.y,v=m===0?1/0:(t.x+Math.sign(m)*t.width/2-d.x)/m,T=b===0?1/0:(t.y+Math.sign(b)*t.height/2-d.y)/b,C=Math.min(v,T),E={x:d.x+C*m,y:d.y+C*b};return a==="start"?r.splice(0,l,E):r.splice(l+1,r.length-l-1,E),!0}function JVn(r,t,a,s){let l=-1;for(let[h,f]of r.entries())if(VU(a,f)){l=h;break}if(l!==-1){let h=r[l],f=r[0],d=Ene(t,a,h,f);Sne(r,"start",d),s.debug("UIO cutter2: start-only intersection applied",{startIntersection:d})}}function QVn(r,t,a,s){let l=-1;for(let h=r.length-1;h>=0;h--)if(VU(a,r[h])){l=h;break}if(l!==-1){let h=r[l],f=r[r.length-1],d=Ene(t,a,h,f);Sne(r,"end",d),s.debug("UIO cutter2: end-only intersection applied",{endIntersection:d})}}function z4r(r,t,a,s,l){if(r?.isGroup)return null;let h=a[s],f=a[s+l];return!h||!f?null:A4r(r,t,h,f)}function ZVn(r,t,a,s){let l=aP(r),h=aP(t);if(a.length===0)return[];let f=[...a],d=f[0],m=f[f.length-1];s.debug("PPP cutter2: bounds",{startBounds:l,endBounds:h}),s.debug("PPP cutter2: original points",a);let b=-1;for(let[C,E]of f.entries())b===-1&&VU(l,E)&&(b=C);if(b!==-1){let C=f[b],E=z4r(r,l,f,b,1)??Ene(r,l,C,d);s.debug("UIO cutter2: start intersection",E),Sne(f,"start",E)}let v=null,T=-1;for(let C=f.length-1;C>=0;C--)if(VU(h,f[C])){v=f[C],T=C;break}if(!v&&f.length>1&&(v=f[f.length-2],T=f.length-2),v){let C=z4r(t,h,f,T,-1)??Ene(t,h,v,m);s.debug("UIO cutter2: end intersection",{endIntersection:C,outsideIndexForEnd:T}),Sne(f,"end",C)}if(f.length>1){let C=f[f.length-1],E=f[f.length-2],S=Math.sqrt((C.x-E.x)**2+(C.y-E.y)**2);S<2&&(s.debug("UIO cutter2: trimming tail point (too close)",{distance:S,lastPoint:C,secondLastPoint:E}),f.pop())}return s.debug("UIO cutter2: final points",f),f}var U4r,V4r,W4r,L4r,Lne,H4r,nP,q4r,Y4r,Ane,Rne,Pet,ZUn,_4r,Q4r,Det,yVn,EVn,SVn,_ne,iP,IVn,Iet,NVn,lCr=ae(()=>{"use strict";Wxe();ma();zo();U4r=e2(u4r(),1);Aet();d4r();m4r();w4r();uU();Owe();E4r();R4r();V4r=8,W4r=i(r=>typeof r!="string"?0:Math.max(Zf[r]??0,Xre[r]??0),"markerPathOffset"),L4r={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},Lne=12,H4r=`[top=${Lne},left=${Lne},bottom=${Lne},right=${Lne}]`,nP=24,q4r=24,Y4r=50,Ane=15,Rne=10,Pet={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},ZUn=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(Pet)];i(eVn,"clearContainerAlgorithmOptions");_4r=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);i(X4r,"resolveContainerAlgorithm");i(K4r,"dir2ElkDirection");i(Bet,"groupTitleWidth");i(J4r,"groupTitleSizeOptions");i(tVn,"buildSubgraphLayoutOptions");i(rVn,"findCyclicEntryNodes");i(nVn,"applyCyclicEntryConstraint");i(iVn,"prepareLayoutForElk");i(aVn,"runElkLayoutCore");i(sVn,"buildElkGraphFromLayoutData");i(oVn,"reverseSubgraphFeedbackEdges");i(lVn,"orderEdgesByNesting");Q4r=zU({afterPaint:v4r,prepareLayout:iVn,measureLayout:i((r,t)=>Cet(r,t,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:aVn,paintOptions:{skipIntersect:!0}});i(cVn,"syncHostConfig");i(uVn,"orderNodesForElkPaint");i(D4r,"getGroupDepth");i(Z4r,"getElkLayoutContext");Det={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};i(eCr,"resolveElkPreset");i(hVn,"createRootElkGraph");i(fVn,"addSubGraphs");i(tCr,"addVertices");i(dVn,"addVertex");i(pVn,"createElkNode");i(gVn,"getMeasuredLabelData");i(mVn,"addEdgesToElkGraph");yVn=6;i(bVn,"terminalElkLabels");i(vVn,"getEdgeStartEndPoint");i(wVn,"configureSubgraphNodes");i(xVn,"configureCrossHierarchyEdges");i(Met,"setIncludeChildrenPolicy");i(TVn,"runElkLayout");i(kVn,"applyElkLayoutResult");i(rCr,"collectDescendantIds");i(CVn,"internalEdgePoints");i(nCr,"evenGroupFrames");i(iCr,"applyElkNodePositions");EVn=16,SVn=30,_ne=.01;i(Jxe,"axisOf");i(AVn,"straightenTerminalJogsWithRuns");i(I4r,"straightenFront");i(RVn,"segmentsCrossStrict");i(M4r,"crossingCount");i(LVn,"paramOnSegment");i(N4r,"pointAtParam");i(aCr,"projectLabelOntoStraightenedRun");i(Net,"segmentHitsBox");iP=i((r,t)=>({x1:r.x-t.width/2,y1:r.y-t.height/2,x2:r.x+t.width/2,y2:r.y+t.height/2}),"labelBox");i(_Vn,"straightenEdgeTerminals");i(DVn,"applyElkEdgeLayout");IVn=4;i(MVn,"separateOppositeEdgeLabels");Iet=i((r,t)=>r.x1<t.x2&&t.x1<r.x2&&r.y1<t.y2&&t.y1<r.y2,"boxesOverlap");i(sCr,"terminalLabelObstacles");i(oCr,"placedTerminalLabels");NVn=2;i(OVn,"slideTerminalLabelsOffFrames");i(PVn,"putTerminalLabelsOnTheirSide");i(BVn,"followMovedEndpoints");i(O4r,"alignDegenerateNodeToAnchor");i(FVn,"createEdgePointsFromSection");i(Oet,"calcOffset");i(P4r,"sanitizeElkEdgePoints");i($Vn,"hasInvalidPoint");i(GVn,"dedupeConsecutivePoints");i(jVn,"getEndMarkerPathOffset");i(zVn,"getStartMarkerPathOffset");i(UVn,"ensureStartMarkerSegmentLength");i(VVn,"ensureEndMarkerSegmentLength");i(WVn,"applyElkEdgeRenderData");i(HVn,"buildFallbackEdgeClasses");i(qVn,"computeStroke");i(YVn,"getCurve");i(XVn,"buildEdgeData");i(KVn,"getEffectiveGroupWidth");i(aP,"boundsFor");i(B4r,"approxEq");i(F4r,"isCenterApprox");i($4r,"getCandidateBorderPoint");i(G4r,"dropAutoCenterPoint");i(j4r,"clipGroupEndpoint");i(JVn,"applyStartIntersectionIfNeeded");i(QVn,"applyEndIntersectionIfNeeded");i(z4r,"attachAlongDepartureAxis");i(ZVn,"cutter2")});var cCr={};is(cCr,{render:()=>Q4r});var uCr=ae(()=>{"use strict";lCr()});function hCr(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function eWn(r,t){if(r!=="_next"&&r!=="_prev")return t}var Qxe,fCr=ae(()=>{"use strict";Qxe=class{static{i(this,"List")}constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,a=t._prev;if(a!==t)return hCr(a),a}enqueue(t){var a=this._sentinel;t._prev&&t._next&&hCr(t),t._next=a._next,a._next._prev=t,a._next=t,t._prev=a}toString(){for(var t=[],a=this._sentinel,s=a._prev;s!==a;)t.push(JSON.stringify(s,eWn)),s=s._prev;return"["+t.join(", ")+"]"}};i(hCr,"unlink");i(eWn,"filterOutLinks")});function dCr(r,t){if(r.nodeCount()<=1)return[];var a=nWn(r,t||tWn),s=rWn(a.graph,a.buckets,a.zeroIdx);return KT(sh(s,function(l){return r.outEdges(l.v,l.w)}))}function rWn(r,t,a){for(var s=[],l=t[t.length-1],h=t[0],f;r.nodeCount();){for(;f=h.dequeue();)Fet(r,t,a,f);for(;f=l.dequeue();)Fet(r,t,a,f);if(r.nodeCount()){for(var d=t.length-2;d>0;--d)if(f=t[d].dequeue(),f){s=s.concat(Fet(r,t,a,f,!0));break}}}return s}function Fet(r,t,a,s,l){var h=l?[]:void 0;return yn(r.inEdges(s.v),function(f){var d=r.edge(f),m=r.node(f.v);l&&h.push({v:f.v,w:f.w}),m.out-=d,$et(t,a,m)}),yn(r.outEdges(s.v),function(f){var d=r.edge(f),m=f.w,b=r.node(m);b.in-=d,$et(t,a,b)}),r.removeNode(s.v),h}function nWn(r,t){var a=new lh,s=0,l=0;yn(r.nodes(),function(d){a.setNode(d,{v:d,in:0,out:0})}),yn(r.edges(),function(d){var m=a.edge(d.v,d.w)||0,b=t(d),v=m+b;a.setEdge(d.v,d.w,v),l=Math.max(l,a.node(d.v).out+=b),s=Math.max(s,a.node(d.w).in+=b)});var h=JT(l+s+3).map(function(){return new Qxe}),f=s+1;return yn(a.nodes(),function(d){$et(h,f,a.node(d))}),{graph:a,buckets:h,zeroIdx:f}}function $et(r,t,a){a.out?a.in?r[a.out-a.in+t].enqueue(a):r[r.length-1].enqueue(a):r[0].enqueue(a)}var tWn,pCr=ae(()=>{"use strict";oh();QT();fCr();tWn=h2(1);i(dCr,"greedyFAS");i(rWn,"doGreedyFAS");i(Fet,"removeNode");i(nWn,"buildState");i($et,"assignBucket")});function gCr(r){var t=r.graph().acyclicer==="greedy"?dCr(r,a(r)):iWn(r);yn(t,function(s){var l=r.edge(s);r.removeEdge(s),l.forwardName=s.name,l.reversed=!0,r.setEdge(s.w,s.v,l,ZO("rev"))});function a(s){return function(l){return s.edge(l).weight}}i(a,"weightFn")}function iWn(r){var t=[],a={},s={};function l(h){Object.prototype.hasOwnProperty.call(s,h)||(s[h]=!0,a[h]=!0,yn(r.outEdges(h),function(f){Object.prototype.hasOwnProperty.call(a,f.w)?t.push(f):l(f.w)}),delete a[h])}return i(l,"dfs"),yn(r.nodes(),l),t}function mCr(r){yn(r.edges(),function(t){var a=r.edge(t);if(a.reversed){r.removeEdge(t);var s=a.forwardName;delete a.reversed,delete a.forwardName,r.setEdge(t.w,t.v,a,s)}})}var Get=ae(()=>{"use strict";oh();pCr();i(gCr,"run");i(iWn,"dfsFAS");i(mCr,"undo")});function kS(r,t,a,s){var l;do l=ZO(s);while(r.hasNode(l));return a.dummy=t,r.setNode(l,a),l}function bCr(r){var t=new lh().setGraph(r.graph());return yn(r.nodes(),function(a){t.setNode(a,r.node(a))}),yn(r.edges(),function(a){var s=t.edge(a.v,a.w)||{weight:0,minlen:1},l=r.edge(a);t.setEdge(a.v,a.w,{weight:s.weight+l.weight,minlen:Math.max(s.minlen,l.minlen)})}),t}function Zxe(r){var t=new lh({multigraph:r.isMultigraph()}).setGraph(r.graph());return yn(r.nodes(),function(a){r.children(a).length||t.setNode(a,r.node(a))}),yn(r.edges(),function(a){t.setEdge(a,r.edge(a))}),t}function jet(r,t){var a=r.x,s=r.y,l=t.x-a,h=t.y-s,f=r.width/2,d=r.height/2;if(!l&&!h)throw new Error("Not possible to find intersection inside of the rectangle");var m,b;return Math.abs(h)*f>Math.abs(l)*d?(h<0&&(d=-d),m=d*l/h,b=d):(l<0&&(f=-f),m=f,b=f*h/l),{x:a+m,y:s+b}}function B_(r){var t=sh(JT(Uet(r)+1),function(){return[]});return yn(r.nodes(),function(a){var s=r.node(a),l=s.rank;xp(l)||(t[l][s.order]=a)}),t}function vCr(r){var t=YA(sh(r.nodes(),function(a){return r.node(a).rank}));yn(r.nodes(),function(a){var s=r.node(a);wne(s,"rank")&&(s.rank-=t)})}function wCr(r){var t=YA(sh(r.nodes(),function(h){return r.node(h).rank})),a=[];yn(r.nodes(),function(h){var f=r.node(h).rank-t;a[f]||(a[f]=[]),a[f].push(h)});var s=0,l=r.graph().nodeRankFactor;yn(a,function(h,f){xp(h)&&f%l!==0?--s:s&&yn(h,function(d){r.node(d).rank+=s})})}function zet(r,t,a,s){var l={width:0,height:0};return arguments.length>=4&&(l.rank=a,l.order=s),kS(r,"border",l,t)}function Uet(r){return d2(sh(r.nodes(),function(t){var a=r.node(t).rank;if(!xp(a))return a}))}function xCr(r,t){var a={lhs:[],rhs:[]};return yn(r,function(s){t(s)?a.lhs.push(s):a.rhs.push(s)}),a}function TCr(r,t){var a=Oxe();try{return t()}finally{console.log(r+" time: "+(Oxe()-a)+"ms")}}function kCr(r,t){return t()}var CS=ae(()=>{"use strict";oh();QT();i(kS,"addDummyNode");i(bCr,"simplify");i(Zxe,"asNonCompoundGraph");i(jet,"intersectRect");i(B_,"buildLayerMatrix");i(vCr,"normalizeRanks");i(wCr,"removeEmptyRanks");i(zet,"addBorderNode");i(Uet,"maxRank");i(xCr,"partition");i(TCr,"time");i(kCr,"notime")});function ECr(r){function t(a){var s=r.children(a),l=r.node(a);if(s.length&&yn(s,t),Object.prototype.hasOwnProperty.call(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(var h=l.minRank,f=l.maxRank+1;h<f;++h)CCr(r,"borderLeft","_bl",a,l,h),CCr(r,"borderRight","_br",a,l,h)}}i(t,"dfs"),yn(r.children(),t)}function CCr(r,t,a,s,l,h){var f={width:0,height:0,rank:h,borderType:t},d=l[t][h-1],m=kS(r,"border",f,a);l[t][h]=m,r.setParent(m,s),d&&r.setEdge(d,m,{weight:1})}var SCr=ae(()=>{"use strict";oh();CS();i(ECr,"addBorderSegments");i(CCr,"addBorderNode")});function RCr(r){var t=r.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&_Cr(r)}function LCr(r){var t=r.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&aWn(r),(t==="lr"||t==="rl")&&(sWn(r),_Cr(r))}function _Cr(r){yn(r.nodes(),function(t){ACr(r.node(t))}),yn(r.edges(),function(t){ACr(r.edge(t))})}function ACr(r){var t=r.width;r.width=r.height,r.height=t}function aWn(r){yn(r.nodes(),function(t){Vet(r.node(t))}),yn(r.edges(),function(t){var a=r.edge(t);yn(a.points,Vet),Object.prototype.hasOwnProperty.call(a,"y")&&Vet(a)})}function Vet(r){r.y=-r.y}function sWn(r){yn(r.nodes(),function(t){Wet(r.node(t))}),yn(r.edges(),function(t){var a=r.edge(t);yn(a.points,Wet),Object.prototype.hasOwnProperty.call(a,"x")&&Wet(a)})}function Wet(r){var t=r.x;r.x=r.y,r.y=t}var DCr=ae(()=>{"use strict";oh();i(RCr,"adjust");i(LCr,"undo");i(_Cr,"swapWidthHeight");i(ACr,"swapWidthHeightOne");i(aWn,"reverseY");i(Vet,"reverseYOne");i(sWn,"swapXY");i(Wet,"swapXYOne")});function ICr(r){r.graph().dummyChains=[],yn(r.edges(),function(t){lWn(r,t)})}function lWn(r,t){var a=t.v,s=r.node(a).rank,l=t.w,h=r.node(l).rank,f=t.name,d=r.edge(t),m=d.labelRank;if(h!==s+1){r.removeEdge(t);var b=void 0,v,T;for(T=0,++s;s<h;++T,++s)d.points=[],b={width:0,height:0,edgeLabel:d,edgeObj:t,rank:s},v=kS(r,"edge",b,"_d"),s===m&&(b.width=d.width,b.height=d.height,b.dummy="edge-label",b.labelpos=d.labelpos),r.setEdge(a,v,{weight:d.weight},f),T===0&&r.graph().dummyChains.push(v),a=v;r.setEdge(a,l,{weight:d.weight},f)}}function MCr(r){yn(r.graph().dummyChains,function(t){var a=r.node(t),s=a.edgeLabel,l;for(r.setEdge(a.edgeObj,s);a.dummy;)l=r.successors(t)[0],r.removeNode(t),s.points.push({x:a.x,y:a.y}),a.dummy==="edge-label"&&(s.x=a.x,s.y=a.y,s.width=a.width,s.height=a.height),t=l,a=r.node(t)})}var Het=ae(()=>{"use strict";oh();CS();i(ICr,"run");i(lWn,"normalizeEdge");i(MCr,"undo")});function Dne(r){var t={};function a(s){var l=r.node(s);if(Object.prototype.hasOwnProperty.call(t,s))return l.rank;t[s]=!0;var h=YA(sh(r.outEdges(s),function(f){return a(f.w)-r.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||h===void 0||h===null)&&(h=0),l.rank=h}i(a,"dfs"),yn(r.sources(),a)}function sP(r,t){return r.node(t.w).rank-r.node(t.v).rank-r.edge(t).minlen}var eTe=ae(()=>{"use strict";oh();i(Dne,"longestPath");i(sP,"slack")});function tTe(r){var t=new lh({directed:!1}),a=r.nodes()[0],s=r.nodeCount();t.setNode(a,{});for(var l,h;cWn(t,r)<s;)l=uWn(t,r),h=t.hasNode(l.v)?sP(r,l):-sP(r,l),hWn(t,r,h);return t}function cWn(r,t){function a(s){yn(t.nodeEdges(s),function(l){var h=l.v,f=s===h?l.w:h;!r.hasNode(f)&&!sP(t,l)&&(r.setNode(f,{}),r.setEdge(s,f,{}),a(f))})}return i(a,"dfs"),yn(r.nodes(),a),r.nodeCount()}function uWn(r,t){return JO(t.edges(),function(a){if(r.hasNode(a.v)!==r.hasNode(a.w))return sP(t,a)})}function hWn(r,t,a){yn(r.nodes(),function(s){t.node(s).rank+=a})}var qet=ae(()=>{"use strict";oh();QT();eTe();i(tTe,"feasibleTree");i(cWn,"tightTree");i(uWn,"findMinSlackEdge");i(hWn,"shiftRanks")});var OCr=ae(()=>{"use strict"});var Yet=ae(()=>{"use strict"});var Bja,Xet=ae(()=>{"use strict";oh();Yet();Bja=h2(1)});var PCr=ae(()=>{"use strict";Xet()});var Ket=ae(()=>{"use strict"});var BCr=ae(()=>{"use strict";Ket()});var Yja,FCr=ae(()=>{"use strict";oh();Yja=h2(1)});function Jet(r){var t={},a={},s=[];function l(h){if(Object.prototype.hasOwnProperty.call(a,h))throw new Ine;Object.prototype.hasOwnProperty.call(t,h)||(a[h]=!0,t[h]=!0,yn(r.predecessors(h),l),delete a[h],s.push(h))}if(i(l,"visit"),yn(r.sinks(),l),met(t)!==r.nodeCount())throw new Ine;return s}function Ine(){}var Qet=ae(()=>{"use strict";oh();Jet.CycleException=Ine;i(Jet,"topsort");i(Ine,"CycleException");Ine.prototype=new Error});var $Cr=ae(()=>{"use strict";Qet()});function rTe(r,t,a){xl(t)||(t=[t]);var s=(r.isDirected()?r.successors:r.neighbors).bind(r),l=[],h={};return yn(t,function(f){if(!r.hasNode(f))throw new Error("Graph does not have node: "+f);GCr(r,f,a==="post",h,s,l)}),l}function GCr(r,t,a,s,l,h){Object.prototype.hasOwnProperty.call(s,t)||(s[t]=!0,a||h.push(t),yn(l(t),function(f){GCr(r,f,a,s,l,h)}),a&&h.push(t))}var Zet=ae(()=>{"use strict";oh();i(rTe,"dfs");i(GCr,"doDfs")});function ett(r,t){return rTe(r,t,"post")}var jCr=ae(()=>{"use strict";Zet();i(ett,"postorder")});function ttt(r,t){return rTe(r,t,"pre")}var zCr=ae(()=>{"use strict";Zet();i(ttt,"preorder")});var UCr=ae(()=>{"use strict";Yet();vet()});var VCr=ae(()=>{"use strict";OCr();Xet();PCr();BCr();FCr();$Cr();jCr();zCr();UCr();Ket();Qet()});function $_(r){r=bCr(r),Dne(r);var t=tTe(r);ntt(t),rtt(t,r);for(var a,s;a=YCr(t);)s=XCr(t,r,a),KCr(t,r,a,s)}function rtt(r,t){var a=ett(r,r.nodes());a=a.slice(0,a.length-1),yn(a,function(s){mWn(r,t,s)})}function mWn(r,t,a){var s=r.node(a),l=s.parent;r.edge(a,l).cutvalue=HCr(r,t,a)}function HCr(r,t,a){var s=r.node(a),l=s.parent,h=!0,f=t.edge(a,l),d=0;return f||(h=!1,f=t.edge(l,a)),d=f.weight,yn(t.nodeEdges(a),function(m){var b=m.v===a,v=b?m.w:m.v;if(v!==l){var T=b===h,C=t.edge(m).weight;if(d+=T?C:-C,bWn(r,a,v)){var E=r.edge(a,v).cutvalue;d+=T?-E:E}}}),d}function ntt(r,t){arguments.length<2&&(t=r.nodes()[0]),qCr(r,{},1,t)}function qCr(r,t,a,s,l){var h=a,f=r.node(s);return t[s]=!0,yn(r.neighbors(s),function(d){Object.prototype.hasOwnProperty.call(t,d)||(a=qCr(r,t,a,d,s))}),f.low=h,f.lim=a++,l?f.parent=l:delete f.parent,a}function YCr(r){return $U(r.edges(),function(t){return r.edge(t).cutvalue<0})}function XCr(r,t,a){var s=a.v,l=a.w;t.hasEdge(s,l)||(s=a.w,l=a.v);var h=r.node(s),f=r.node(l),d=h,m=!1;h.lim>f.lim&&(d=f,m=!0);var b=Ib(t.edges(),function(v){return m===WCr(r,r.node(v.v),d)&&m!==WCr(r,r.node(v.w),d)});return JO(b,function(v){return sP(t,v)})}function KCr(r,t,a,s){var l=a.v,h=a.w;r.removeEdge(l,h),r.setEdge(s.v,s.w,{}),ntt(r),rtt(r,t),yWn(r,t)}function yWn(r,t){var a=$U(r.nodes(),function(l){return!t.node(l).parent}),s=ttt(r,a);s=s.slice(1),yn(s,function(l){var h=r.node(l).parent,f=t.edge(l,h),d=!1;f||(f=t.edge(h,l),d=!0),t.node(l).rank=t.node(h).rank+(d?f.minlen:-f.minlen)})}function bWn(r,t,a){return r.hasEdge(t,a)}function WCr(r,t,a){return a.low<=t.lim&&t.lim<=a.lim}var JCr=ae(()=>{"use strict";oh();VCr();CS();qet();eTe();$_.initLowLimValues=ntt;$_.initCutValues=rtt;$_.calcCutValue=HCr;$_.leaveEdge=YCr;$_.enterEdge=XCr;$_.exchangeEdges=KCr;i($_,"networkSimplex");i(rtt,"initCutValues");i(mWn,"assignCutValue");i(HCr,"calcCutValue");i(ntt,"initLowLimValues");i(qCr,"dfsAssignLowLim");i(YCr,"leaveEdge");i(XCr,"enterEdge");i(KCr,"exchangeEdges");i(yWn,"updateRanks");i(bWn,"isTreeEdge");i(WCr,"isDescendant")});function itt(r){switch(r.graph().ranker){case"network-simplex":QCr(r);break;case"tight-tree":wWn(r);break;case"longest-path":vWn(r);break;default:QCr(r)}}function wWn(r){Dne(r),tTe(r)}function QCr(r){$_(r)}var vWn,att=ae(()=>{"use strict";qet();JCr();eTe();i(itt,"rank");vWn=Dne;i(wWn,"tightTreeRanker");i(QCr,"networkSimplexRanker")});function ZCr(r){var t=kS(r,"root",{},"_root"),a=xWn(r),s=d2(ax(a))-1,l=2*s+1;r.graph().nestingRoot=t,yn(r.edges(),function(f){r.edge(f).minlen*=l});var h=TWn(r)+1;yn(r.children(),function(f){eEr(r,t,l,h,s,a,f)}),r.graph().nodeRankFactor=l}function eEr(r,t,a,s,l,h,f){var d=r.children(f);if(!d.length){f!==t&&r.setEdge(t,f,{weight:0,minlen:a});return}var m=zet(r,"_bt"),b=zet(r,"_bb"),v=r.node(f);r.setParent(m,f),v.borderTop=m,r.setParent(b,f),v.borderBottom=b,yn(d,function(T){eEr(r,t,a,s,l,h,T);var C=r.node(T),E=C.borderTop?C.borderTop:T,S=C.borderBottom?C.borderBottom:T,R=C.borderTop?s:2*s,L=E!==S?1:l-h[f]+1;r.setEdge(m,E,{weight:R,minlen:L,nestingEdge:!0}),r.setEdge(S,b,{weight:R,minlen:L,nestingEdge:!0})}),r.parent(f)||r.setEdge(t,m,{weight:0,minlen:l+h[f]})}function xWn(r){var t={};function a(s,l){var h=r.children(s);h&&h.length&&yn(h,function(f){a(f,l+1)}),t[s]=l}return i(a,"dfs"),yn(r.children(),function(s){a(s,1)}),t}function TWn(r){return wS(r.edges(),function(t,a){return t+r.edge(a).weight},0)}function tEr(r){var t=r.graph();r.removeNode(t.nestingRoot),delete t.nestingRoot,yn(r.edges(),function(a){var s=r.edge(a);s.nestingEdge&&r.removeEdge(a)})}var rEr=ae(()=>{"use strict";oh();CS();i(ZCr,"run");i(eEr,"dfs");i(xWn,"treeDepths");i(TWn,"sumWeights");i(tEr,"cleanup")});function nEr(r,t,a){var s={},l;yn(a,function(h){for(var f=r.parent(h),d,m;f;){if(d=r.parent(f),d?(m=s[d],s[d]=f):(m=l,l=f),m&&m!==f){t.setEdge(m,f);return}f=d}})}var iEr=ae(()=>{"use strict";oh();i(nEr,"addSubgraphConstraints")});function aEr(r,t,a){var s=CWn(r),l=new lh({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(function(h){return r.node(h)});return yn(r.nodes(),function(h){var f=r.node(h),d=r.parent(h);(f.rank===t||f.minRank<=t&&t<=f.maxRank)&&(l.setNode(h),l.setParent(h,d||s),yn(r[a](h),function(m){var b=m.v===h?m.w:m.v,v=l.edge(b,h),T=xp(v)?0:v.weight;l.setEdge(b,h,{weight:r.edge(m).weight+T})}),Object.prototype.hasOwnProperty.call(f,"minRank")&&l.setNode(h,{borderLeft:f.borderLeft[t],borderRight:f.borderRight[t]}))}),l}function CWn(r){for(var t;r.hasNode(t=ZO("_root")););return t}var sEr=ae(()=>{"use strict";oh();QT();i(aEr,"buildLayerGraph");i(CWn,"createRootNode")});function oEr(r,t){for(var a=0,s=1;s<t.length;++s)a+=EWn(r,t[s-1],t[s]);return a}function EWn(r,t,a){for(var s=zxe(a,sh(a,function(b,v){return v})),l=KT(sh(t,function(b){return xS(sh(r.outEdges(b),function(v){return{pos:s[v.w],weight:r.edge(v).weight}}),"pos")})),h=1;h<a.length;)h<<=1;var f=2*h-1;h-=1;var d=sh(new Array(f),function(){return 0}),m=0;return yn(l.forEach(function(b){var v=b.pos+h;d[v]+=b.weight;for(var T=0;v>0;)v%2&&(T+=d[v+1]),v=v-1>>1,d[v]+=b.weight;m+=b.weight*T})),m}var lEr=ae(()=>{"use strict";oh();i(oEr,"crossCount");i(EWn,"twoLayerCrossCount")});function cEr(r){var t={},a=Ib(r.nodes(),function(d){return!r.children(d).length}),s=d2(sh(a,function(d){return r.node(d).rank})),l=sh(JT(s+1),function(){return[]});function h(d){if(!wne(t,d)){t[d]=!0;var m=r.node(d);l[m.rank].push(d),yn(r.successors(d),h)}}i(h,"dfs");var f=xS(a,function(d){return r.node(d).rank});return yn(f,h),l}var uEr=ae(()=>{"use strict";oh();i(cEr,"initOrder")});function hEr(r,t){return sh(t,function(a){var s=r.inEdges(a);if(s.length){var l=wS(s,function(h,f){var d=r.edge(f),m=r.node(f.v);return{sum:h.sum+d.weight*m.order,weight:h.weight+d.weight}},{sum:0,weight:0});return{v:a,barycenter:l.sum/l.weight,weight:l.weight}}else return{v:a}})}var fEr=ae(()=>{"use strict";oh();i(hEr,"barycenter")});function dEr(r,t){var a={};yn(r,function(l,h){var f=a[l.v]={indegree:0,in:[],out:[],vs:[l.v],i:h};xp(l.barycenter)||(f.barycenter=l.barycenter,f.weight=l.weight)}),yn(t.edges(),function(l){var h=a[l.v],f=a[l.w];!xp(h)&&!xp(f)&&(f.indegree++,h.out.push(a[l.w]))});var s=Ib(a,function(l){return!l.indegree});return SWn(s)}function SWn(r){var t=[];function a(h){return function(f){f.merged||(xp(f.barycenter)||xp(h.barycenter)||f.barycenter>=h.barycenter)&&AWn(h,f)}}i(a,"handleIn");function s(h){return function(f){f.in.push(h),--f.indegree===0&&r.push(f)}}for(i(s,"handleOut");r.length;){var l=r.pop();t.push(l),yn(l.in.reverse(),a(l)),yn(l.out,s(l))}return sh(Ib(t,function(h){return!h.merged}),function(h){return QO(h,["vs","i","barycenter","weight"])})}function AWn(r,t){var a=0,s=0;r.weight&&(a+=r.barycenter*r.weight,s+=r.weight),t.weight&&(a+=t.barycenter*t.weight,s+=t.weight),r.vs=t.vs.concat(r.vs),r.barycenter=a/s,r.weight=s,r.i=Math.min(t.i,r.i),t.merged=!0}var pEr=ae(()=>{"use strict";oh();i(dEr,"resolveConflicts");i(SWn,"doResolveConflicts");i(AWn,"mergeEntries")});function mEr(r,t){var a=xCr(r,function(v){return Object.prototype.hasOwnProperty.call(v,"barycenter")}),s=a.lhs,l=xS(a.rhs,function(v){return-v.i}),h=[],f=0,d=0,m=0;s.sort(RWn(!!t)),m=gEr(h,l,m),yn(s,function(v){m+=v.vs.length,h.push(v.vs),f+=v.barycenter*v.weight,d+=v.weight,m=gEr(h,l,m)});var b={vs:KT(h)};return d&&(b.barycenter=f/d,b.weight=d),b}function gEr(r,t,a){for(var s;t.length&&(s=P_(t)).i<=a;)t.pop(),r.push(s.vs),a++;return a}function RWn(r){return function(t,a){return t.barycenter<a.barycenter?-1:t.barycenter>a.barycenter?1:r?a.i-t.i:t.i-a.i}}var yEr=ae(()=>{"use strict";oh();CS();i(mEr,"sort");i(gEr,"consumeUnsortable");i(RWn,"compareWithBias")});function stt(r,t,a,s){var l=r.children(t),h=r.node(t),f=h?h.borderLeft:void 0,d=h?h.borderRight:void 0,m={};f&&(l=Ib(l,function(S){return S!==f&&S!==d}));var b=hEr(r,l);yn(b,function(S){if(r.children(S.v).length){var R=stt(r,S.v,a,s);m[S.v]=R,Object.prototype.hasOwnProperty.call(R,"barycenter")&&_Wn(S,R)}});var v=dEr(b,a);LWn(v,m);var T=mEr(v,s);if(f&&(T.vs=KT([f,T.vs,d]),r.predecessors(f).length)){var C=r.node(r.predecessors(f)[0]),E=r.node(r.predecessors(d)[0]);Object.prototype.hasOwnProperty.call(T,"barycenter")||(T.barycenter=0,T.weight=0),T.barycenter=(T.barycenter*T.weight+C.order+E.order)/(T.weight+2),T.weight+=2}return T}function LWn(r,t){yn(r,function(a){a.vs=KT(a.vs.map(function(s){return t[s]?t[s].vs:s}))})}function _Wn(r,t){xp(r.barycenter)?(r.barycenter=t.barycenter,r.weight=t.weight):(r.barycenter=(r.barycenter*r.weight+t.barycenter*t.weight)/(r.weight+t.weight),r.weight+=t.weight)}var bEr=ae(()=>{"use strict";oh();fEr();pEr();yEr();i(stt,"sortSubgraph");i(LWn,"expandSubgraphs");i(_Wn,"mergeBarycenters")});function xEr(r){var t=Uet(r),a=vEr(r,JT(1,t+1),"inEdges"),s=vEr(r,JT(t-1,-1,-1),"outEdges"),l=cEr(r);wEr(r,l);for(var h=Number.POSITIVE_INFINITY,f,d=0,m=0;m<4;++d,++m){DWn(d%2?a:s,d%4>=2),l=B_(r);var b=oEr(r,l);b<h&&(m=0,f=qZe(l),h=b)}wEr(r,f)}function vEr(r,t,a){return sh(t,function(s){return aEr(r,s,a)})}function DWn(r,t){var a=new lh;yn(r,function(s){var l=s.graph().root,h=stt(s,l,a,t);yn(h.vs,function(f,d){s.node(f).order=d}),nEr(s,a,h.vs)})}function wEr(r,t){yn(t,function(a){yn(a,function(s,l){r.node(s).order=l})})}var TEr=ae(()=>{"use strict";oh();QT();CS();iEr();sEr();lEr();uEr();bEr();i(xEr,"order");i(vEr,"buildLayerGraphs");i(DWn,"sweepLayerGraphs");i(wEr,"assignOrder")});function kEr(r){var t=MWn(r);yn(r.graph().dummyChains,function(a){for(var s=r.node(a),l=s.edgeObj,h=IWn(r,t,l.v,l.w),f=h.path,d=h.lca,m=0,b=f[m],v=!0;a!==l.w;){if(s=r.node(a),v){for(;(b=f[m])!==d&&r.node(b).maxRank<s.rank;)m++;b===d&&(v=!1)}if(!v){for(;m<f.length-1&&r.node(b=f[m+1]).minRank<=s.rank;)m++;b=f[m]}r.setParent(a,b),a=r.successors(a)[0]}})}function IWn(r,t,a,s){var l=[],h=[],f=Math.min(t[a].low,t[s].low),d=Math.max(t[a].lim,t[s].lim),m,b;m=a;do m=r.parent(m),l.push(m);while(m&&(t[m].low>f||d>t[m].lim));for(b=m,m=s;(m=r.parent(m))!==b;)h.push(m);return{path:l.concat(h.reverse()),lca:b}}function MWn(r){var t={},a=0;function s(l){var h=a;yn(r.children(l),s),t[l]={low:h,lim:a++}}return i(s,"dfs"),yn(r.children(),s),t}var CEr=ae(()=>{"use strict";oh();i(kEr,"parentDummyChains");i(IWn,"findPath");i(MWn,"postorder")});function NWn(r,t){var a={};function s(l,h){var f=0,d=0,m=l.length,b=P_(h);return yn(h,function(v,T){var C=PWn(r,v),E=C?r.node(C).order:m;(C||v===b)&&(yn(h.slice(d,T+1),function(S){yn(r.predecessors(S),function(R){var L=r.node(R),_=L.order;(_<f||E<_)&&!(L.dummy&&r.node(S).dummy)&&EEr(a,R,S)})}),d=T+1,f=E)}),h}return i(s,"visitLayer"),wS(t,s),a}function OWn(r,t){var a={};function s(h,f,d,m,b){var v;yn(JT(f,d),function(T){v=h[T],r.node(v).dummy&&yn(r.predecessors(v),function(C){var E=r.node(C);E.dummy&&(E.order<m||E.order>b)&&EEr(a,C,v)})})}i(s,"scan");function l(h,f){var d=-1,m,b=0;return yn(f,function(v,T){if(r.node(v).dummy==="border"){var C=r.predecessors(v);C.length&&(m=r.node(C[0]).order,s(f,b,T,d,m),b=T,d=m)}s(f,b,f.length,m,h.length)}),f}return i(l,"visitLayer"),wS(t,l),a}function PWn(r,t){if(r.node(t).dummy)return $U(r.predecessors(t),function(a){return r.node(a).dummy})}function EEr(r,t,a){if(t>a){var s=t;t=a,a=s}Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var l=r[t];Object.defineProperty(l,a,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function BWn(r,t,a){if(t>a){var s=t;t=a,a=s}return!!r[t]&&Object.prototype.hasOwnProperty.call(r[t],a)}function FWn(r,t,a,s){var l={},h={},f={};return yn(t,function(d){yn(d,function(m,b){l[m]=m,h[m]=m,f[m]=b})}),yn(t,function(d){var m=-1;yn(d,function(b){var v=s(b);if(v.length){v=xS(v,function(R){return f[R]});for(var T=(v.length-1)/2,C=Math.floor(T),E=Math.ceil(T);C<=E;++C){var S=v[C];h[b]===b&&m<f[S]&&!BWn(a,b,S)&&(h[S]=b,h[b]=l[b]=l[S],m=f[S])}}})}),{root:l,align:h}}function $Wn(r,t,a,s,l){var h={},f=GWn(r,t,a,l),d=l?"borderLeft":"borderRight";function m(T,C){for(var E=f.nodes(),S=E.pop(),R={};S;)R[S]?T(S):(R[S]=!0,E.push(S),E=E.concat(C(S))),S=E.pop()}i(m,"iterate");function b(T){h[T]=f.inEdges(T).reduce(function(C,E){return Math.max(C,h[E.v]+f.edge(E))},0)}i(b,"pass1");function v(T){var C=f.outEdges(T).reduce(function(S,R){return Math.min(S,h[R.w]-f.edge(R))},Number.POSITIVE_INFINITY),E=r.node(T);C!==Number.POSITIVE_INFINITY&&E.borderType!==d&&(h[T]=Math.max(h[T],C))}return i(v,"pass2"),m(b,f.predecessors.bind(f)),m(v,f.successors.bind(f)),yn(s,function(T){h[T]=h[a[T]]}),h}function GWn(r,t,a,s){var l=new lh,h=r.graph(),f=VWn(h.nodesep,h.edgesep,s);return yn(t,function(d){var m;yn(d,function(b){var v=a[b];if(l.setNode(v),m){var T=a[m],C=l.edge(T,v);l.setEdge(T,v,Math.max(f(r,b,m),C||0))}m=b})}),l}function jWn(r,t){return JO(ax(t),function(a){var s=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY;return het(a,function(h,f){var d=WWn(r,f)/2;s=Math.max(h+d,s),l=Math.min(h-d,l)}),s-l})}function zWn(r,t){var a=ax(t),s=YA(a),l=d2(a);yn(["u","d"],function(h){yn(["l","r"],function(f){var d=h+f,m=r[d],b;if(m!==t){var v=ax(m);b=f==="l"?s-YA(v):l-d2(v),b&&(r[d]=KO(m,function(T){return T+b}))}})})}function UWn(r,t){return KO(r.ul,function(a,s){if(t)return r[t.toLowerCase()][s];var l=xS(sh(r,s));return(l[1]+l[2])/2})}function SEr(r){var t=B_(r),a=jU(NWn(r,t),OWn(r,t)),s={},l;yn(["u","d"],function(f){l=f==="u"?t:ax(t).reverse(),yn(["l","r"],function(d){d==="r"&&(l=sh(l,function(T){return ax(T).reverse()}));var m=(f==="u"?r.predecessors:r.successors).bind(r),b=FWn(r,l,a,m),v=$Wn(r,l,b.root,b.align,d==="r");d==="r"&&(v=KO(v,function(T){return-T})),s[f+d]=v})});var h=jWn(r,s);return zWn(s,h),UWn(s,r.graph().align)}function VWn(r,t,a){return function(s,l,h){var f=s.node(l),d=s.node(h),m=0,b;if(m+=f.width/2,Object.prototype.hasOwnProperty.call(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":b=-f.width/2;break;case"r":b=f.width/2;break}if(b&&(m+=a?b:-b),b=0,m+=(f.dummy?t:r)/2,m+=(d.dummy?t:r)/2,m+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":b=d.width/2;break;case"r":b=-d.width/2;break}return b&&(m+=a?b:-b),b=0,m}}function WWn(r,t){return r.node(t).width}var AEr=ae(()=>{"use strict";oh();QT();CS();i(NWn,"findType1Conflicts");i(OWn,"findType2Conflicts");i(PWn,"findOtherInnerSegmentNode");i(EEr,"addConflict");i(BWn,"hasConflict");i(FWn,"verticalAlignment");i($Wn,"horizontalCompaction");i(GWn,"buildBlockGraph");i(jWn,"findSmallestWidthAlignment");i(zWn,"alignCoordinates");i(UWn,"balance");i(SEr,"positionX");i(VWn,"sep");i(WWn,"width")});function REr(r){r=Zxe(r),HWn(r),fet(SEr(r),function(t,a){r.node(a).x=t})}function HWn(r){var t=B_(r),a=r.graph().ranksep,s=0;yn(t,function(l){var h=d2(sh(l,function(f){return r.node(f).height}));yn(l,function(f){r.node(f).y=s+h/2}),s+=h+a})}var LEr=ae(()=>{"use strict";oh();CS();AEr();i(REr,"position");i(HWn,"positionY")});function ctt(r,t){var a=t&&t.debugTiming?TCr:kCr;a("layout",()=>{var s=a(" buildLayoutGraph",()=>nHn(r));a(" runLayout",()=>qWn(s,a)),a(" updateInputGraph",()=>YWn(r,s))})}function qWn(r,t){t(" makeSpaceForEdgeLabels",()=>iHn(r)),t(" removeSelfEdges",()=>dHn(r)),t(" acyclic",()=>gCr(r)),t(" nestingGraph.run",()=>ZCr(r)),t(" rank",()=>itt(Zxe(r))),t(" injectEdgeLabelProxies",()=>aHn(r)),t(" removeEmptyRanks",()=>wCr(r)),t(" nestingGraph.cleanup",()=>tEr(r)),t(" normalizeRanks",()=>vCr(r)),t(" assignRankMinMax",()=>sHn(r)),t(" removeEdgeLabelProxies",()=>oHn(r)),t(" normalize.run",()=>ICr(r)),t(" parentDummyChains",()=>kEr(r)),t(" addBorderSegments",()=>ECr(r)),t(" order",()=>xEr(r)),t(" insertSelfEdges",()=>pHn(r)),t(" adjustCoordinateSystem",()=>RCr(r)),t(" position",()=>REr(r)),t(" positionSelfEdges",()=>gHn(r)),t(" removeBorderNodes",()=>fHn(r)),t(" normalize.undo",()=>MCr(r)),t(" fixupEdgeLabelCoords",()=>uHn(r)),t(" undoCoordinateSystem",()=>LCr(r)),t(" translateGraph",()=>lHn(r)),t(" assignNodeIntersects",()=>cHn(r)),t(" reversePoints",()=>hHn(r)),t(" acyclic.undo",()=>mCr(r))}function YWn(r,t){yn(r.nodes(),function(a){var s=r.node(a),l=t.node(a);s&&(s.x=l.x,s.y=l.y,t.children(a).length&&(s.width=l.width,s.height=l.height))}),yn(r.edges(),function(a){var s=r.edge(a),l=t.edge(a);s.points=l.points,Object.prototype.hasOwnProperty.call(l,"x")&&(s.x=l.x,s.y=l.y)}),r.graph().width=t.graph().width,r.graph().height=t.graph().height}function nHn(r){var t=new lh({multigraph:!0,compound:!0}),a=ltt(r.graph());return t.setGraph(jU({},KWn,ott(a,XWn),QO(a,JWn))),yn(r.nodes(),function(s){var l=ltt(r.node(s));t.setNode(s,iet(ott(l,QWn),ZWn)),t.setParent(s,r.parent(s))}),yn(r.edges(),function(s){var l=ltt(r.edge(s));t.setEdge(s,jU({},tHn,ott(l,eHn),QO(l,rHn)))}),t}function iHn(r){var t=r.graph();t.ranksep/=2,yn(r.edges(),function(a){var s=r.edge(a);s.minlen*=2,s.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?s.width+=s.labeloffset:s.height+=s.labeloffset)})}function aHn(r){yn(r.edges(),function(t){var a=r.edge(t);if(a.width&&a.height){var s=r.node(t.v),l=r.node(t.w),h={rank:(l.rank-s.rank)/2+s.rank,e:t};kS(r,"edge-proxy",h,"_ep")}})}function sHn(r){var t=0;yn(r.nodes(),function(a){var s=r.node(a);s.borderTop&&(s.minRank=r.node(s.borderTop).rank,s.maxRank=r.node(s.borderBottom).rank,t=d2(t,s.maxRank))}),r.graph().maxRank=t}function oHn(r){yn(r.nodes(),function(t){var a=r.node(t);a.dummy==="edge-proxy"&&(r.edge(a.e).labelRank=a.rank,r.removeNode(t))})}function lHn(r){var t=Number.POSITIVE_INFINITY,a=0,s=Number.POSITIVE_INFINITY,l=0,h=r.graph(),f=h.marginx||0,d=h.marginy||0;function m(b){var v=b.x,T=b.y,C=b.width,E=b.height;t=Math.min(t,v-C/2),a=Math.max(a,v+C/2),s=Math.min(s,T-E/2),l=Math.max(l,T+E/2)}i(m,"getExtremes"),yn(r.nodes(),function(b){m(r.node(b))}),yn(r.edges(),function(b){var v=r.edge(b);Object.prototype.hasOwnProperty.call(v,"x")&&m(v)}),t-=f,s-=d,yn(r.nodes(),function(b){var v=r.node(b);v.x-=t,v.y-=s}),yn(r.edges(),function(b){var v=r.edge(b);yn(v.points,function(T){T.x-=t,T.y-=s}),Object.prototype.hasOwnProperty.call(v,"x")&&(v.x-=t),Object.prototype.hasOwnProperty.call(v,"y")&&(v.y-=s)}),h.width=a-t+f,h.height=l-s+d}function cHn(r){yn(r.edges(),function(t){var a=r.edge(t),s=r.node(t.v),l=r.node(t.w),h,f;a.points?(h=a.points[0],f=a.points[a.points.length-1]):(a.points=[],h=l,f=s),a.points.unshift(jet(s,h)),a.points.push(jet(l,f))})}function uHn(r){yn(r.edges(),function(t){var a=r.edge(t);if(Object.prototype.hasOwnProperty.call(a,"x"))switch((a.labelpos==="l"||a.labelpos==="r")&&(a.width-=a.labeloffset),a.labelpos){case"l":a.x-=a.width/2+a.labeloffset;break;case"r":a.x+=a.width/2+a.labeloffset;break}})}function hHn(r){yn(r.edges(),function(t){var a=r.edge(t);a.reversed&&a.points.reverse()})}function fHn(r){yn(r.nodes(),function(t){if(r.children(t).length){var a=r.node(t),s=r.node(a.borderTop),l=r.node(a.borderBottom),h=r.node(P_(a.borderLeft)),f=r.node(P_(a.borderRight));a.width=Math.abs(f.x-h.x),a.height=Math.abs(l.y-s.y),a.x=h.x+a.width/2,a.y=s.y+a.height/2}}),yn(r.nodes(),function(t){r.node(t).dummy==="border"&&r.removeNode(t)})}function dHn(r){yn(r.edges(),function(t){if(t.v===t.w){var a=r.node(t.v);a.selfEdges||(a.selfEdges=[]),a.selfEdges.push({e:t,label:r.edge(t)}),r.removeEdge(t)}})}function pHn(r){var t=B_(r);yn(t,function(a){var s=0;yn(a,function(l,h){var f=r.node(l);f.order=h+s,yn(f.selfEdges,function(d){kS(r,"selfedge",{width:d.label.width,height:d.label.height,rank:f.rank,order:h+ ++s,e:d.e,label:d.label},"_se")}),delete f.selfEdges})})}function gHn(r){yn(r.nodes(),function(t){var a=r.node(t);if(a.dummy==="selfedge"){var s=r.node(a.e.v),l=s.x+s.width/2,h=s.y,f=a.x-l,d=s.height/2;r.setEdge(a.e,a.label),r.removeNode(t),a.label.points=[{x:l+2*f/3,y:h-d},{x:l+5*f/6,y:h-d},{x:l+f,y:h},{x:l+5*f/6,y:h+d},{x:l+2*f/3,y:h+d}],a.label.x=a.x,a.label.y=a.y}})}function ott(r,t){return KO(QO(r,t),Number)}function ltt(r){var t={};return yn(r,function(a,s){t[s.toLowerCase()]=a}),t}var XWn,KWn,JWn,QWn,ZWn,eHn,tHn,rHn,_Er=ae(()=>{"use strict";oh();QT();SCr();DCr();Get();Het();att();rEr();TEr();CEr();LEr();CS();i(ctt,"layout");i(qWn,"runLayout");i(YWn,"updateInputGraph");XWn=["nodesep","edgesep","ranksep","marginx","marginy"],KWn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},JWn=["acyclicer","ranker","rankdir","align"],QWn=["width","height"],ZWn={width:0,height:0},eHn=["minlen","weight","width","height","labeloffset"],tHn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},rHn=["labelpos"];i(nHn,"buildLayoutGraph");i(iHn,"makeSpaceForEdgeLabels");i(aHn,"injectEdgeLabelProxies");i(sHn,"assignRankMinMax");i(oHn,"removeEdgeLabelProxies");i(lHn,"translateGraph");i(cHn,"assignNodeIntersects");i(uHn,"fixupEdgeLabelCoords");i(hHn,"reversePointsForReversedEdges");i(fHn,"removeBorderNodes");i(dHn,"removeSelfEdges");i(pHn,"insertSelfEdges");i(gHn,"positionSelfEdges");i(ott,"selectNumberAttrs");i(ltt,"canonicalize")});var DEr=ae(()=>{"use strict";Get();_Er();Het();att()});var GEr={};is(GEr,{applyDagreLayoutResult:()=>BEr,getEdgesToRender:()=>utt,measureDagreLayout:()=>FEr,prepareLayoutForDagre:()=>htt,render:()=>AHn,runDagreLayoutCore:()=>$Er});var IEr,MEr,mHn,yHn,bHn,vHn,wHn,utt,OEr,PEr,xHn,NEr,THn,BEr,kHn,CHn,htt,FEr,$Er,EHn,SHn,AHn,jEr=ae(()=>{"use strict";DEr();QT();Tet();Wxe();nU();Yi();ket();UO();uU();pU();Yn();Yre();ma();IEr=i((r,t,a)=>Math.max(t,Math.min(a,r)),"clamp"),MEr=i((r="TB")=>{switch(r){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),mHn=i(r=>r==="flowchart"||r==="flowchart-v2"||r==="stateDiagram"||r==="er"||r==="classDiagram","shouldMergeSelfLoopSegments"),yHn=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],bHn=i((r,t,a,s,l)=>{let h=[],f=new Set;if(a.forEach(({start:v,end:T})=>{v!==s&&f.add(v),T!==s&&f.add(T)}),f.forEach(v=>{let T=r.node(v);typeof T?.x=="number"&&typeof T?.y=="number"&&h.push(T)}),h.length===0&&a.forEach(({edge:v})=>{(v.points??[]).forEach(T=>{typeof T?.x=="number"&&typeof T?.y=="number"&&h.push(T)})}),h.length===0)return MEr(l);let d=h.reduce((v,T)=>({x:v.x+T.x/h.length,y:v.y+T.y/h.length}),{x:0,y:0}),m=d.x-t.x,b=d.y-t.y;return Math.abs(m)>Math.abs(b)?m>0?"right":"left":Math.abs(b)>0?b>0?"bottom":"top":MEr(l)},"getSelfLoopSide"),vHn=i((r,t="top",a=0,s=0)=>{let l=r.x,h=r.y-a,f=r.width/2,d=r.height/2,m=Math.max(36,Math.min(100,r.width*.8)),b=IEr(Math.max(s,r.width*.35),36,m),v=IEr(Math.min(r.width,r.height)*.45,24,48);switch(t){case"bottom":{let T=h+d;return[{x:l-b/2,y:T},{x:l-b/2,y:T+v},{x:l+b/2,y:T+v},{x:l+b/2,y:T}]}case"right":{let T=l+f;return[{x:T,y:h-b/2},{x:T+v,y:h-b/2},{x:T+v,y:h+b/2},{x:T,y:h+b/2}]}case"left":{let T=l-f;return[{x:T,y:h-b/2},{x:T-v,y:h-b/2},{x:T-v,y:h+b/2},{x:T,y:h+b/2}]}default:{let T=h-d;return[{x:l-b/2,y:T},{x:l-b/2,y:T-v},{x:l+b/2,y:T-v},{x:l+b/2,y:T}]}}},"getSelfLoopPoints"),wHn=i((r,t,a="top",s=0,l={})=>{let f=r.x,d=r.y-s,m=l.width??0,b=l.height??0;switch(a){case"bottom":return{x:f,y:Math.max(...t.map(v=>v.y))+b/2+4};case"right":return{x:Math.max(...t.map(v=>v.x))+m/2+4,y:d};case"left":return{x:Math.min(...t.map(v=>v.x))-m/2-4,y:d};default:return{x:f,y:Math.min(...t.map(v=>v.y))-b/2-4}}},"getSelfLoopLabelPosition"),utt=i((r,t=0,{mergeSelfLoops:a=!0}={})=>{let s=new Map,l=[],h=r.graph()?.rankdir;return r.edges().forEach(f=>{let d=r.edge(f);if(a&&d.selfLoop){let m=d.selfLoop.id;s.has(m)||s.set(m,[]),s.get(m).push({edge:d,start:f.v,end:f.w})}else l.push({edge:d,start:f.v,end:f.w})}),s.forEach(f=>{if(f.length!==3){f.forEach(_=>l.push(_));return}f.sort((_,I)=>_.edge.selfLoop.order-I.edge.selfLoop.order);let[d,m,b]=f,v=d.edge.originalEdge??m.edge.originalEdge??b.edge.originalEdge??m.edge,T=r.node(v.start);if(!T){f.forEach(_=>l.push(_));return}let C={width:m.edge.width,height:m.edge.height},E=bHn(r,T,f,v.start,h),S=vHn(T,E,t,C.width??0),R=wHn(T,S,E,t,C),L={...m.edge,...v,id:v.id,points:S,start:v.start,end:v.end,x:R.x,y:R.y,width:C.width,height:C.height,labelStyle:m.edge.labelStyle,fromCluster:d.edge.fromCluster??m.edge.fromCluster??b.edge.fromCluster,toCluster:d.edge.toCluster??m.edge.toCluster??b.edge.toCluster};delete L.selfLoop,delete L.originalEdge,l.push({edge:L,start:L.start,end:L.end})}),l},"getEdgesToRender"),OEr=i(async({element:r,graph:t,diagramType:a,id:s,parentCluster:l,siteConfig:h})=>{let f=t.graph().rankdir;Pe.trace("Dir in recursive render - dir:",f);let{clusters:d,edgePaths:m,edgeLabels:b,nodes:v,rootGroups:T}=wet(r,{edgePathsClass:"edgePaths"});t.nodes()?Pe.info("Recursive render XXX",t.nodes()):Pe.info("No nodes found for",t),t.edges().length>0&&Pe.info("Recursive edges",t.edge(t.edges()[0]));let C=mHn(a);await Promise.all(t.nodes().map(async function(R){let L=t.node(R);if(l!==void 0){let _=JSON.parse(JSON.stringify(l.clusterData));Pe.trace(`Setting data for parent cluster XXX
|
|
Node.id = `,R,`
|
|
data=`,_.height,`
|
|
Parent cluster`,l.height),t.setNode(l.id,_),t.parent(R)||(Pe.trace("Setting parent",R,l.id),t.setParent(R,l.id,_))}if(Pe.info("(Insert) Node XXX"+R+": "+JSON.stringify(t.node(R))),L?.clusterNode){Pe.info("Cluster identified XBX",R,L.width,t.node(R));let{ranksep:_,nodesep:I}=t.graph();L.graph.setGraph({...L.graph.graph(),ranksep:_+25,nodesep:I});let N=await CHn({element:v,graph:L.graph,diagramType:a,id:s,parentCluster:t.node(R),siteConfig:h}),B=N.elem;fn(L,B),L.diff=N.diff||0,Pe.info("New compound node after recursive render XAX",R,"width",L.width,"height",L.height),Qvr(B,L)}else t.children(R).length>0?(Pe.trace("Cluster - the non recursive path XBX",R,L.id,L,L.width,"Graph:",t),Pe.trace(rP(L.id,t)),el.set(L.id,{id:rP(L.id,t),node:L})):(Pe.trace("Node - the non recursive path XAX",R,v,t.node(R),f),await xet(v,t.node(R),{config:h,dir:f}))})),await i(async()=>{let R=t.edges().map(async function(L){let _=t.edge(L.v,L.w,L.name);if(Pe.info("Edge "+L.v+" -> "+L.w+": "+JSON.stringify(L)),Pe.info("Edge "+L.v+" -> "+L.w+": ",L," ",JSON.stringify(t.edge(L))),Pe.info("Fix",el,"ids:",L.v,L.w,"Translating: ",el.get(L.v),el.get(L.w)),C&&_.selfLoop){if(_.selfLoop.order!==1)return;let I={..._.originalEdge,..._,id:_.selfLoop.id,startLabelLeft:_.originalEdge?.startLabelLeft??_.startLabelLeft,startLabelRight:_.originalEdge?.startLabelRight??_.startLabelRight,endLabelLeft:_.originalEdge?.endLabelLeft??_.endLabelLeft,endLabelRight:_.originalEdge?.endLabelRight??_.endLabelRight};await F4(b,I),_.width=I.width,_.height=I.height,_.labelStyle=I.labelStyle;return}await F4(b,_)});await Promise.all(R)},"processEdges")();let{subGraphTitleTotalMargin:S}=B4(h);return{elem:T,graph:t,groups:{clusters:d,edgePaths:m,edgeLabels:b,nodes:v,rootGroups:T},diagramType:a,id:s,mergeSelfLoops:C,subGraphTitleTotalMargin:S}},"measureDagreGraph"),PEr=i(r=>{Pe.info("############################################# XXX"),Pe.info("### Layout ### XXX"),Pe.info("############################################# XXX"),ctt(r)},"runDagreGraphLayout"),xHn=i((r,t,a)=>{let s=r.node(t);if(!s)return;let l={...s};return s?.clusterNode?l.y=(s.y??0)+a:r.children(t).length>0?l.height=(s.height??0)+a:l.y=(s.y??0)+a/2,l},"normalizeDagreNode"),NEr=i((r,t)=>{yHn.forEach(a=>{t[a]!==void 0&&(r[a]=t[a])})},"applyDagreNodeLayout"),THn=i((r,t,a,s)=>({...r,start:r.start??t,end:r.end??a,points:(r.points??[]).map(l=>({...l,y:typeof l.y=="number"?l.y+s:l.y}))}),"normalizeDagreEdge"),BEr=i((r,t)=>{let{graph:a,mergeSelfLoops:s,subGraphTitleTotalMargin:l=0}=t,h=new Map(r.nodes.map(d=>[d.id,d]));Vxe(a).forEach(d=>{let m=xHn(a,d,l);if(!m)return;NEr(a.node(d),m);let b=h.get(d);b&&NEr(b,m)});let f=l/2;return r.edges=utt(a,f,{mergeSelfLoops:s}).map(({edge:d,start:m,end:b})=>THn(d,m,b,f)),r},"applyDagreLayoutResult"),kHn=i(async({elem:r,graph:t,groups:{clusters:a,edgePaths:s},diagramType:l,id:h,mergeSelfLoops:f,subGraphTitleTotalMargin:d})=>{let m=0;await Promise.all(Vxe(t).map(async function(T){let C=t.node(T);if(Pe.info("Position XBX => "+T+": ("+C.x,","+C.y,") width: ",C.width," height: ",C.height),C?.clusterNode)C.y+=d,Pe.info("A tainted cluster node XBX1",T,C.id,C.width,C.height,C.x,C.y,t.parent(T)),el.get(C.id).node=C,dS(C);else if(t.children(T).length>0){Pe.info("A pure cluster node XBX1",T,C.id,C.x,C.y,C.width,C.height,t.parent(T)),C.height+=d,t.node(C.parentId);let E=C?.padding/2||0,S=C?.labelBBox?.height||0,R=S-E||0;Pe.debug("OffsetY",R,"labelHeight",S,"halfPadding",E),await g_(a,C),el.get(C.id).node=C}else{let E=t.node(C.parentId);C.y+=d/2,Pe.info("A regular node XBX1 - using the padding",C.id,"parent",C.parentId,C.width,C.height,C.x,C.y,"offsetY",C.offsetY,"parent",E,E?.offsetY,C),dS(C)}}));let b=d/2;return utt(t,b,{mergeSelfLoops:f}).forEach(function({edge:T,start:C,end:E}){Pe.info("Edge "+C+" -> "+E+": "+JSON.stringify(T),T),T.points.forEach(_=>_.y+=b);let S=t.node(C),R=t.node(E),L=m_(s,T,el,l,S,R,h);dU(T,L)}),t.nodes().forEach(function(T){let C=t.node(T);Pe.info(T,C.type,C.diff),C.isGroup&&(m=C.diff)}),Pe.warn("Returning from recursive render XAX",r,m),{elem:r,diff:m}},"paintDagreLayoutCore"),CHn=i(async r=>{let t=await OEr(r);return PEr(t.graph),await kHn(t)},"renderDagreSubgraph"),htt=i(r=>{let t=new lh({multigraph:!0,compound:!0}).setGraph({rankdir:r.direction,nodesep:r.config?.nodeSpacing||r.nodeSpacing||r.config?.flowchart?.nodeSpacing,ranksep:r.config?.rankSpacing||r.rankSpacing||r.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return r.nodes.forEach(a=>{t.setNode(a.id,{...a}),a.parentId&&t.setParent(a.id,a.parentId)}),Pe.debug("Edges:",r.edges),r.edges.forEach(a=>{if(a.start===a.end){let s=a.start,l=s+"---"+s+"---1",h=s+"---"+s+"---2",f=t.node(s);t.setNode(l,{domId:l,id:l,parentId:f.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),t.setParent(l,f.parentId),t.setNode(h,{domId:h,id:h,parentId:f.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),t.setParent(h,f.parentId);let d=structuredClone(a),m=structuredClone(a),b=structuredClone(a),v=structuredClone(a);m.originalEdge=d,m.selfLoop={id:d.id,order:0},b.originalEdge=d,b.selfLoop={id:d.id,order:1},v.originalEdge=d,v.selfLoop={id:d.id,order:2},m.label="",m.arrowTypeEnd="none",m.endLabelLeft="",m.endLabelRight="",m.startLabelLeft="",m.id=s+"-cyclic-special-1",b.startLabelRight="",b.startLabelLeft="",b.endLabelLeft="",b.endLabelRight="",b.arrowTypeStart="none",b.arrowTypeEnd="none",b.id=s+"-cyclic-special-mid",v.label="",v.startLabelRight="",v.startLabelLeft="",v.arrowTypeStart="none",f.isGroup&&(m.fromCluster=s,v.toCluster=s),v.id=s+"-cyclic-special-2",v.arrowTypeStart="none",t.setEdge(s,l,m,s+"-cyclic-special-0"),t.setEdge(l,h,b,s+"-cyclic-special-1"),t.setEdge(h,s,v,s+"-cyclic-special-2")}else t.setEdge(a.start,a.end,{...a},a.id)}),i4r(t),{graph:t}},"prepareLayoutForDagre"),FEr=i(async(r,{element:t,preparedLayout:a})=>{let s=a??htt(r),l=er(),h=await OEr({element:t,graph:s.graph,diagramType:r.type,id:r.diagramId,parentCluster:void 0,siteConfig:l});return s.measuredLayout=h,h},"measureDagreLayout"),$Er=i((r,t)=>{let a=t.preparedLayout?.measuredLayout;if(!a)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return PEr(a.graph),BEr(r,a),a},"runDagreLayoutCore"),EHn=i((r,{measure:t})=>Vxe(t.graph).map(a=>t.graph.node(a)).filter(Boolean),"getDagrePaintNodes"),SHn=i((r,t,{measure:a})=>r?a.graph.node(r):void 0,"getDagreEdgeNode"),AHn=zU({prepareLayout:htt,measureLayout:FEr,runLayoutCore:$Er,paintOptions:{clusterDb:el,getNodes:EHn,getEdgeNode:SHn,skipNode:i((r,{measure:t})=>!t.graph.hasNode(r.id),"skipNode"),isCluster:i((r,{measure:t})=>t.graph.hasNode(r.id)&&(t.graph.children(r.id)??[]).length>0,"isCluster")}})});function zEr(r,{measure:t}){let a=r.config?.swimlane?.lineHops;if(a===!1)return;let s=a==="gap"?"gap":"arc",l=r.edges.filter(h=>Array.isArray(h.points)&&h.points.length>=2).map(h=>({id:h.id,points:h.points,curve:h.curve,arrowTypeStart:h.arrowTypeStart,arrowTypeEnd:h.arrowTypeEnd}));Kxe(t.groups.edgePaths,l,{enabled:!0,jumpRadius:6,jumpStyle:s})}var UEr=ae(()=>{"use strict";Let();i(zEr,"applySwimlaneLineJumps")});function RHn(r){let t=r?.metadata?.laneRole;return t==="pool"||t==="lane"?t:void 0}function nTe(r){let t=r?.metadata?.laneIndex;return typeof t=="number"&&Number.isFinite(t)?t:void 0}function gy(r){let t=new Map,a=new Map;for(let b of r)t.set(b.id,b),b.isGroup&&b.parentId&&a.set(b.parentId,(a.get(b.parentId)??0)+1);let s=new Set;for(let b of r)b.isGroup&&RHn(b)==="pool"&&(a.get(b.id)??0)>0&&s.add(b.id);let l=new Set,h=new Map;for(let b of r)if(!(!b.isGroup||s.has(b.id)))if(b.parentId&&s.has(b.parentId)){l.add(b.id);let v=h.get(b.parentId)??[];v.push(b.id),h.set(b.parentId,v)}else b.parentId||l.add(b.id);let f=i((b,v)=>{let T=new Set([b]),C=t.get(b)?.parentId;for(;C&&!T.has(C);){if(v.has(C))return C;T.add(C),C=t.get(C)?.parentId}return null},"walk"),d=new Map;return{isPool:i(b=>s.has(b),"isPool"),isLane:i(b=>l.has(b),"isLane"),laneIdOf:i(b=>{let v=d.get(b);if(v!==void 0)return v;let T=f(b,l);return d.set(b,T),T},"laneIdOf"),poolIdOf:i(b=>s.has(b)?b:f(b,s),"poolIdOf"),lanesByPool:h,hasPools:s.size>0}}var oP=ae(()=>{"use strict";i(RHn,"readLaneRole");i(nTe,"readLaneIndex");i(gy,"buildLaneModel")});function iTe(r){let t=r?.metadata?.anchorTo;if(!t||typeof t!="object")return;let{hostId:a,side:s,slot:l,gap:h}=t;if(!(typeof a!="string"||a.length===0||a===r?.id))return{hostId:a,...typeof s=="string"&&LHn.has(s)?{side:s}:{},...typeof l=="number"&&Number.isFinite(l)?{slot:l}:{},...typeof h=="number"&&Number.isFinite(h)&&h>0?{gap:Math.min(h,_Hn)}:{}}}function aTe(r,t){let a=new Set([r]),s=iTe(t.get(r))?.hostId;for(;s&&!a.has(s);){let l=t.get(s);if(!l)return;let h=iTe(l)?.hostId;if(!h)return s;a.add(s),s=h}}function lP(r){let t=new Map(r.map(s=>[s.id,s])),a=new Set;for(let s of r)iTe(s)&&aTe(s.id,t)&&a.add(s.id);return a}function DHn(r,t){return r==="canonical"?"right":t==="LR"||t==="RL"?"bottom":"right"}function IHn(r,t){let a=r.anchor.slot,s=t.anchor.slot;return a!==void 0&&s!==void 0&&a!==s?a-s:a!==void 0&&s===void 0?-1:a===void 0&&s!==void 0?1:r.index-t.index}function MHn(r){let t=r.reduce((l,h)=>l+h,0)+ftt*Math.max(0,r.length-1),a=[],s=-t/2;for(let l of r)a.push(s+l/2),s+=l+ftt;return{offsets:a,total:t}}function OHn(r,t){let a=new Map(r.map(l=>[l.id,l])),s=new Map;r.forEach((l,h)=>{let f=iTe(l);if(!f||!NHn(l))return;let d=aTe(l.id,a);if(!d)return;let m=t(f),b=`${m}:${d}`,v=s.get(b)??[];v.push({node:l,anchor:f,index:h,side:m,hostId:d}),s.set(b,v)});for(let l of s.values())l.sort(IHn);return s}function PHn(r,t,a,s){let l=!t&&a>0?-(s+ftt):0;return r+l}function BHn(r,t){let a=t==="top"||t==="bottom",s=i(b=>a?b.width??0:b.height??0,"alongBorder"),l=i(b=>a?b.height??0:b.width??0,"reach"),{offsets:h}=MHn(r.map(b=>s(b.node))),f=0,d=0,m=0;return r.forEach((b,v)=>{let T=b.anchor.gap??0,C=s(b.node)/2,E=PHn(h[v],a,T,C);f=Math.max(f,C-E),d=Math.max(d,E+C),m=Math.max(m,T>0?T+l(b.node):0)}),{before:f,after:d,beyond:m}}function VEr(r,t){let a=DHn("final",t??"TB"),s=new Map;for(let l of OHn(r,h=>h.side??a).values()){if(!l.some(d=>d.anchor.gap))continue;let{hostId:h,side:f}=l[0];s.set(h,{...s.get(h),[f]:BHn(l,f)})}return s}var LHn,ftt,_Hn,NHn,sTe=ae(()=>{"use strict";LHn=new Set(["top","right","bottom","left"]),ftt=8,_Hn=1e4;i(iTe,"readAnchor");i(aTe,"resolveAnchorHostId");i(lP,"collectAnchoredIds");i(DHn,"defaultAnchorSide");i(IHn,"compareBucketEntries");i(MHn,"packAlongBorder");NHn=i(r=>[r.width,r.height].every(t=>t===void 0||Number.isFinite(t)),"hasUsableSize");i(OHn,"bucketByHostAndSide");i(PHn,"centreAlongBorder");i(BHn,"footprintOf");i(VEr,"anchorFootprints")});function HEr(r){return Math.max(r.padding??WEr,WEr)}function $Hn(r){let{x:t,y:a,width:s,height:l}=r,h=r.swimlaneContentTop;if(typeof t!="number"||typeof a!="number"||typeof s!="number"||typeof l!="number"||typeof h!="number"||!Number.isFinite(t)||!Number.isFinite(a)||!Number.isFinite(s)||!Number.isFinite(l)||!Number.isFinite(h)||s<=0||l<=0){delete r.groupTitleRect;return}let f=a-l/2,d=Math.min(h,a+l/2),m=Math.min(FHn,Math.max(0,d-f)),b=f+m;if(b<=f){delete r.groupTitleRect;return}r.groupTitleRect={left:t-s/2,right:t+s/2,top:f,bottom:b}}function GHn(r){let t=r.other?.droppedSubGraphMembers;return Array.isArray(t)?t:[]}function zHn(r,t){return r.isLane(t)?t:r.laneIdOf(t)??void 0}function UHn(r,t,a){for(let s of a){let l=t.findIndex(h=>h.id===s);l>=0&&jHn(r,t,s)&&t.splice(l,1)}}function VHn(r,t){let a=gy(t),s=new Set(t.filter(h=>a.isLane(h.id)).map(h=>h.id)),l=new Set;for(let{node:h,keptBy:f,droppedFrom:d}of GHn(r)){let m=zHn(a,f);m&&m!==d&&s.has(d)&&(Pe.warn(`Swimlane node "${h}" is listed in lanes "${m}" and "${d}"; it is drawn in "${m}" only.`),l.add(d))}UHn(r,t,l)}function WHn(r,t){for(let a of r)a.isGroup&&!t.isLane(a.id)&&!t.isPool(a.id)&&Pe.warn(`Swimlane subgraph "${a.id}" is nested in "${a.parentId}"; only top-level subgraphs are lanes, so it is drawn as a plain box.`)}function qEr(r){let t=r.direction,a=r.nodes??=[];VHn(r,a);let s=gy(a);WHn(a,s);for(let f of a){let d=s.isLane(f.id);!d&&!s.isPool(f.id)||(f.shape=d?"swimlane":"pool",t&&(f.direction=t))}let l=a.filter(f=>!f.isGroup&&!f.parentId);if(l.length===0)return;let h=a.find(f=>f.id===dtt);h?h.isGroup&&(h.shape="swimlane",t&&(h.direction=t)):(h={id:dtt,label:"",isGroup:!0,shape:"swimlane",padding:20,look:r.config?.look,colorIndex:a.reduce((f,d)=>Math.max(f,d.colorIndex??-1),-1)+1,...t?{direction:t}:{}},a.push(h));for(let f of l)f.parentId=dtt}function YEr(r){let t=(r.nodes??[]).filter(T=>!T.isEdgeLabel),a=new Map(t.map(T=>[T.id,T])),s=lP(t),l=i(T=>s.has(T)?aTe(T,a)??T:T,"hostOf"),h=new Map;for(let T of t)s.has(T.id)||h.set(T.id,T);let f=[];for(let T of r.edges??[]){let C=typeof T.start=="string"?T.start:void 0,E=typeof T.end=="string"?T.end:void 0;if(!C||!E||T.isLayoutOnly)continue;let S=l(C),R=l(E);S!==R&&f.push({id:T.id,src:S,dst:R,ref:T})}let d=t.filter(T=>T.isGroup&&!s.has(T.id)),m=t.filter(T=>!T.isGroup&&!s.has(T.id));return{nodes:[...[...d].reverse(),...m].map(T=>T.id),edges:f,layout:r,nodeById:h}}function HHn(r){let t=new Map(r.map(s=>[s.id,s])),a=i(s=>{let l=0,h=s.parentId,f=new Set([s.id]);for(;h!=null&&!f.has(h);)f.add(h),l++,h=t.get(h)?.parentId;return l},"depthOf");return r.filter(s=>s?.isGroup).map(s=>({node:s,depth:a(s)})).sort((s,l)=>l.depth-s.depth).map(s=>s.node)}function XEr(r,t,a,s){let{layout:l}=r,h=r.nodeById,f=s?.layerGap??100,d=s?.nodeGap??40,m=0;for(let S of t.layers){let R=0;for(let L of S){let _=h.get(L);if(!_){R++;continue}_.layer=m,_.order=R;let I=a.x[L]??R*d,N=a.y[L]??m*f;_.x=I,_.y=N,R++}m++}let b=l.nodes??[],v=lP(b);for(let S of b)S.isEdgeLabel&&a.x[S.id]!=null&&a.y[S.id]!=null&&(S.x=a.x[S.id],S.y=a.y[S.id]);let T=new Map,C=gy(b),E=[];for(let S of HHn(b)){C.isLane(S.id)&&E.push(S);let R=b.filter(B=>B.parentId===S.id&&!v.has(B.id)),L=1/0,_=-1/0,I=1/0,N=-1/0;for(let B of R){let O=B.x??a.x[B.id],P=B.y??a.y[B.id],$=B.width??0,V=B.height??0;O!=null&&P!=null&&(B.isEdgeLabel||(L=Math.min(L,O-$/2),_=Math.max(_,O+$/2)),I=Math.min(I,P-V/2),N=Math.max(N,P+V/2))}if(L===1/0||I===1/0)S.x=S.x??0,S.y=S.y??0,S.width=S.width??0,S.height=S.height??0;else{let B=S.padding??20,O=S.parentId?B:2*HEr(S),P=B,$=Math.max(0,_-L)+O,V=Math.max(0,N-I)+P,Y=(L+_)/2,Q=(I+N)/2;S.x=Y,S.y=Q,S.width=$,S.height=V,T.set(S.id,{minX:L,maxX:_,minY:I,maxY:N})}}if(E.length>0&&T.size>0){let S=1/0,R=-1/0,L=0;for(let _ of E){let I=_.padding??20;I>L&&(L=I);let N=T.get(_.id);N&&(S=Math.min(S,N.minY),R=Math.max(R,N.maxY))}if(S!==1/0&&R!==-1/0){let _=Math.max(0,R-S),N=Math.max(L,36),B=_+2*N,O=(S+R)/2;for(let q of E)q.y=O,q.height=B,q.swimlaneContentTop=S;let P=[...E].sort((q,W)=>{let H=q.x??0,re=W.x??0;return H-re}),$=[],V=[],Y=[];for(let q of P){let W=T.get(q.id);if(!W)continue;let H=Math.max(0,W.maxX-W.minX)+2*HEr(q),re=(W.minX+W.maxX)/2;$.push(q.id),V.push(re),Y.push(H)}let Q=$.length;if(Q>0){let q=new Map;if(Q===1)q.set($[0],Y[0]);else{let W=[];for(let te=0;te<Q-1;te++)W.push(V[te+1]-V[te]);let H=new Array(Q);H[0]=0;for(let te=0;te<Q-1;te++)H[te+1]=2*W[te]-H[te];let re=0,Z=Number.POSITIVE_INFINITY;for(let te=0;te<Q;te++){let U=Y[te];te%2===0?re=Math.max(re,U-H[te]):Z=Math.min(Z,H[te]-U)}let X=re;re<=Z?X=(re+Z)/2:X=re;for(let te=0;te<Q;te++){let U=H[te]+(te%2===0?X:-X),ne=Math.max(Y[te],U);q.set($[te],ne)}}for(let W of E){let H=q.get(W.id);H!=null&&(W.width=H),$Hn(W)}}}}}var dtt,FHn,WEr,jHn,ptt=ae(()=>{"use strict";Yn();oP();sTe();dtt="__swimlane_default__",FHn=21,WEr=20;i(HEr,"topLaneHorizontalPadding");i($Hn,"assignTopLaneTitleRect");i(GHn,"sharedMembers");jHn=i((r,t,a)=>!t.some(s=>s.parentId===a)&&!(r.edges??[]).some(s=>s.start===a||s.end===a),"isEmptyLane");i(zHn,"laneIdOrSelf");i(UHn,"removeEmptyLanes");i(VHn,"dropLanesEmptiedBySharedNodes");i(WHn,"warnAboutNestedGroups");i(qEr,"prepareLayoutForSwimlanes");i(YEr,"toGraphView");i(HHn,"groupsDeepestFirst");i(XEr,"writeBackToLayoutData")});function KEr(r){let t=[],a=[],s=new Map;for(let f of r.nodes)s.set(f.id,f);for(let f of r.edges){if(!f.label||f.label.length===0||f.isLayoutOnly||f.labelNodeId)continue;let d=f.start?s.get(f.start):void 0,m=f.end?s.get(f.end):void 0;if(!d||!m){Pe.warn(qHn,`Edge ${f.id} has missing source or target node`);continue}let b=`edge-label-${f.start}-${f.end}-${f.id}`,T=d.parentId!==m.parentId?m.parentId:d.parentId,C={id:b,label:f.label,edgeStart:f.start??"",edgeEnd:f.end??"",shape:"labelRect",width:0,height:0,isEdgeLabel:!0,isDummy:!0,parentId:T,isGroup:!1,labelStyle:Array.isArray(f.labelStyle)?f.labelStyle[0]:f.labelStyle??"",...d.dir?{dir:d.dir}:{}};t.push(C),f.labelNodeId=b,f.label=void 0,f.text=void 0;let E={id:`${f.id}-to-label`,start:f.start,end:b,type:"normal",isLayoutOnly:!0},S={id:`${f.id}-from-label`,start:b,end:f.end,type:"normal",isLayoutOnly:!0};a.push(E,S)}let l=[...r.nodes,...t],h=[...r.edges,...a];return{...r,nodes:l,edges:h}}var qHn,JEr=ae(()=>{"use strict";Yn();qHn="[EdgeLabelNodes]";i(KEr,"createEdgeLabelNodes")});function ZEr(r){let t=r.x??0,a=r.y??0,s=r.width??0,l=r.height??0;return s>0&&l>0?{cx:t,cy:a,rect:WU(t,a,s,l)}:void 0}function eSr(r){if(r.isGroup)return;let t=ZEr(r);return t?{id:String(r.id??""),cx:t.cx,cy:t.cy,rect:t.rect}:void 0}function p2(r,t,a=.001){return Math.abs(r.x-t.x)<a&&Math.abs(r.y-t.y)<a}function Wl(r,t,a=.001){return Math.abs(r.x-t.x)<a}function ic(r,t,a=.001){return Math.abs(r.y-t.y)<a}function Od(r,t,a=.001){return ic(r,t,a)&&Math.abs(r.x-t.x)>a}function Pd(r,t,a=.001){return Wl(r,t,a)&&Math.abs(r.y-t.y)>a}function my(r,t,a,s){return Math.max(0,Math.min(Math.max(r,t),Math.max(a,s))-Math.max(Math.min(r,t),Math.min(a,s)))}function z4(r,t,a=.001){return r.horizontal&&t.horizontal&&ic(r.a,t.a,a)?my(r.a.x,r.b.x,t.a.x,t.b.x):r.vertical&&t.vertical&&Wl(r.a,t.a,a)?my(r.a.y,r.b.y,t.a.y,t.b.y):0}function ES(r,t=.001){let a=[];for(let s=0;s<r.length-1;s++){let l=r[s],h=r[s+1],f=Od(l,h,t),d=Pd(l,h,t);(f||d)&&a.push({index:s,a:l,b:h,horizontal:f,vertical:d})}return a}function g2(r,t=.001){let a=ES(r,t),s=0;for(let l=1;l<a.length;l++)a[l-1].horizontal!==a[l].horizontal&&s++;return s}function YHn(r){let t=ES(Nl(r));return t.slice(1).flatMap((a,s)=>t[s].horizontal===a.horizontal?[]:[a.a])}function XHn(r,t){let a=Math.max(Math.min(t.a.x,t.b.x)-r.x,0,r.x-Math.max(t.a.x,t.b.x)),s=Math.max(Math.min(t.a.y,t.b.y)-r.y,0,r.y-Math.max(t.a.y,t.b.y));return Math.hypot(a,s)}function tSr(r,t,a){let s=i((l,h)=>{let f=ES(Nl(h));return YHn(l).some(d=>f.some(m=>XHn(d,m)<a))},"touches");return s(r,t)||s(t,r)}function Nl(r,t=.001){let a=[];for(let s of r){let l=a.length>0?a[a.length-1]:void 0;(!l||!p2(l,s,t))&&a.push({x:s.x,y:s.y})}return a}function oTe(r,t=.001){if(!r||r.length!==4)return;let[a,s,l,h]=r;return Od(a,s,t)&&Pd(s,l,t)&&Od(l,h,t)?{kind:"HVH",p0:a,p1:s,p2:l,p3:h}:Pd(a,s,t)&&Od(s,l,t)&&Pd(l,h,t)?{kind:"VHV",p0:a,p1:s,p2:l,p3:h}:void 0}function Mne(r,t,a,s=0){let l=Math.min(r.x,t.x),h=Math.max(r.x,t.x),f=Math.min(r.y,t.y),d=Math.max(r.y,t.y);return h>a.left-s&&l<a.right+s&&d>a.top-s&&f<a.bottom+s}function lTe(r,t,a=0){return r.x>t.left+a&&r.x<t.right-a&&r.y>t.top+a&&r.y<t.bottom-a}function rSr(r,t){return r.left<=t.left&&r.right>=t.right&&r.top<=t.top&&r.bottom>=t.bottom}function cTe(r,t){return r.left<t.right&&r.right>t.left&&r.top<t.bottom&&r.bottom>t.top}function gtt(r,t){return{left:r.left-t,right:r.right+t,top:r.top-t,bottom:r.bottom+t}}function WU(r,t,a,s){return{left:r-a/2,right:r+a/2,top:t-s/2,bottom:t+s/2}}function xm(r){return ZEr(r)?.rect}function G_(r,t){switch(t){case"top":return{x:r.cx,y:r.rect.top};case"bottom":return{x:r.cx,y:r.rect.bottom};case"left":return{x:r.rect.left,y:r.cy};case"right":return{x:r.rect.right,y:r.cy}}}function uTe(r,t,a,s,l,h=.001){let f=t==="left"||t==="right",d=s==="left"||s==="right";if(f&&d){if(t==="right"&&s==="left"&&r.x<a.x||t==="left"&&s==="right"&&r.x>a.x){if(ic(r,a,h))return[r,a];let T=(r.x+a.x)/2;return[r,{x:T,y:r.y},{x:T,y:a.y},a]}if(t===s){if(ic(r,a,h))return;let T=t==="left"?Math.min(r.x,a.x)-l:Math.max(r.x,a.x)+l;return[r,{x:T,y:r.y},{x:T,y:a.y},a]}return}if(!f&&!d){if(t===s){if(Wl(r,a,h))return;let C=t==="top"?Math.min(r.y,a.y)-l:Math.max(r.y,a.y)+l;return[r,{x:r.x,y:C},{x:a.x,y:C},a]}if(!(t==="bottom"&&s==="top"&&r.y<a.y||t==="top"&&s==="bottom"&&r.y>a.y))return;if(Wl(r,a,h))return[r,a];let T=(r.y+a.y)/2;return[r,{x:r.x,y:T},{x:a.x,y:T},a]}if(f&&!d){let v=t==="right"&&a.x>r.x||t==="left"&&a.x<r.x,T=s==="top"&&r.y<a.y||s==="bottom"&&r.y>a.y;return v&&T?[r,{x:a.x,y:r.y},a]:void 0}let m=t==="bottom"&&a.y>r.y||t==="top"&&a.y<r.y,b=s==="left"&&r.x<a.x||s==="right"&&r.x>a.x;return m&&b?[r,{x:r.x,y:a.y},a]:void 0}function hTe(r,t,a,s){return t==="left"||t==="right"?[r,{x:s,y:r.y},{x:s,y:a.y},a]:[r,{x:r.x,y:s},{x:a.x,y:s},a]}function HU(r){let t=new Map,a=[];for(let s of r){if(s.isEdgeLabel)continue;let l=eSr(s);l&&(t.set(l.id,l),a.push({id:l.id,rect:l.rect}))}return{nodeInfoById:t,realNodeRects:a}}function SS(r){let t=[],a=[];for(let s of r){let l=eSr(s);if(!l)continue;let h={id:l.id,rect:l.rect};s.isEdgeLabel?a.push(h):t.push(h)}return{realNodeRects:t,labelNodeRects:a}}function nSr(r,{includeEdgeLabels:t=!0}={}){let a=[];for(let s of r){if(s.isGroup||!t&&s.isEdgeLabel)continue;let l=s.x??0,h=s.y??0,f=s.width??0,d=s.height??0;a.push({nodeId:s.id,...WU(l,h,f,d)})}return a}function fTe(r,t,a=.001){let s=r.start,l=r.end;if(!s||!l)return;let h=t.get(s),f=t.get(l);if(!(!h||!f))return{srcId:s,dstId:l,srcInfo:h,dstInfo:f,collinearX:Math.abs(h.cx-f.cx)<a,collinearY:Math.abs(h.cy-f.cy)<a}}function af(r,t,a,s=[],l=0){for(let h of a)if(!s.includes(h.id)&&Mne(r,t,h.rect,-l))return!0;return!1}function mtt(r,t,a,s,l=.001,h=1e-6){let f=ic(r,t,l),d=Wl(r,t,l),m=ic(a,s,l),b=Wl(a,s,l);if(f&&m||d&&b||!(f||d)||!(m||b))return!1;let v=f?{a:r,b:t}:{a,b:s},T=d?{a:r,b:t}:{a,b:s},C=v.a.y,E=Math.min(v.a.x,v.b.x),S=Math.max(v.a.x,v.b.x),R=T.a.x,L=Math.min(T.a.y,T.b.y),_=Math.max(T.a.y,T.b.y);if(R<E||R>S||C<L||C>_)return!1;let I=Math.abs(R-v.a.x)<h&&Math.abs(C-v.a.y)<h||Math.abs(R-v.b.x)<h&&Math.abs(C-v.b.y)<h,N=Math.abs(R-T.a.x)<h&&Math.abs(C-T.a.y)<h||Math.abs(R-T.b.x)<h&&Math.abs(C-T.b.y)<h;return!(I&&N)}function KHn(r,t,a,s,l=.001){let h=ic(r,t,l),f=Wl(r,t,l),d=ic(a,s,l),m=Wl(a,s,l);return f&&m&&Wl(r,a,l)?my(r.y,t.y,a.y,s.y)>l:h&&d&&ic(r,a,l)?my(r.x,t.x,a.x,s.x)>l:!1}function Nne(r,t,a,s,{epsilon:l=.001,skipDegenerateOther:h=!1}={}){for(let f of a){if(f===s||f.isLayoutOnly)continue;let d=f.points;if(!(!d||d.length<2))for(let m=0;m<d.length-1;m++){let b=d[m],v=d[m+1];if(!(h&&p2(b,v,l))&&(mtt(r,t,b,v,l)||KHn(r,t,b,v,l)))return!0}}return!1}function U4(r,t,a,s,l=.001){let h=ic(r,t,l),f=Wl(r,t,l),d=ic(a,s,l),m=Wl(a,s,l);if(!(h&&m||f&&d))return!1;let b=h?{a:r,b:t}:{a,b:s},v=h?{a,b:s}:{a:r,b:t},T=b.a.y,C=Math.min(b.a.x,b.b.x),E=Math.max(b.a.x,b.b.x),S=v.a.x,R=Math.min(v.a.y,v.b.y),L=Math.max(v.a.y,v.b.y);return S>C+l&&S<E-l&&T>R+l&&T<L-l}function QEr(r,t,a){let s=Math.min(t,a),l=Math.max(t,a);return r>s+.001&&r<l-.001}function JHn(r,t,a){return Wl(r,t)&&Wl(t,a)?QEr(t.y,r.y,a.y):ic(r,t)&&ic(t,a)?QEr(t.x,r.x,a.x):!1}function QHn(r){let t=!1,a=[];for(let s=0;s<r.length;s++){let l=a[a.length-1],h=r[s],f=s+1<r.length?r[s+1]:void 0;if(l&&f){if(p2(l,f)){s++,t=!0;continue}if(JHn(l,h,f)){t=!0;continue}}a.push(h)}return{points:a,changed:t}}function One(r){let t=[r[0]];for(let s=1;s<r.length;s++){let l=t[t.length-1],h=r[s];if(!Wl(l,h)&&!ic(l,h)){let f=t.length>=2?t[t.length-2]:void 0,m=(f?Wl(f,l):!1)?{x:l.x,y:h.y}:{x:h.x,y:l.y};t.push(m)}t.push(h)}let a=[];for(let s of t){let l=a[a.length-1];(!l||!p2(l,s))&&a.push(s)}return a}function ZT(r){if(r.length<3)return r;let t=[...r];for(let a=0;a<32;a++){let s=QHn(t);if(t=s.points,!s.changed)break}return t}var V4=ae(()=>{"use strict";i(ZEr,"measuredNodeRect");i(eSr,"nodeBoundsInfoFor");i(p2,"samePoint");i(Wl,"sameX");i(ic,"sameY");i(Od,"isHorizontalSegment");i(Pd,"isVerticalSegment");i(my,"overlapLength");i(z4,"sameAxisSegmentOverlapLength");i(ES,"orthogonalSegmentsForPoints");i(g2,"countOrthogonalBends");i(YHn,"bendPoints");i(XHn,"distanceToSegment");i(tSr,"routesTouchAtBend");i(Nl,"dedupeConsecutivePoints");i(oTe,"classifyThreeSegmentRoute");i(Mne,"segmentBoundsOverlapRect");i(lTe,"pointInsideRect");i(rSr,"rectContainsRect");i(cTe,"rectsOverlap");i(gtt,"inflateRect");i(WU,"rectFromCenterSize");i(xm,"rectOfNodeBounds");i(G_,"portForRectSide");i(uTe,"buildOrthogonalPortPath");i(hTe,"buildSameSideTrackPath");i(HU,"collectRealNodeBounds");i(SS,"collectNodeRectEntries");i(nSr,"collectLayoutNodeRects");i(fTe,"getNodePairGeometry");i(af,"segmentHitsAnyRect");i(mtt,"orthogonalSegmentsCross");i(KHn,"sameAxisSegmentsOverlap");i(Nne,"segmentConflictsWithAnyEdge");i(U4,"orthogonalSegmentsStrictlyCross");i(QEr,"strictlyBetween");i(JHn,"isCollinearIntermediate");i(QHn,"simplifyPolylineOnce");i(One,"orthogonalizePolyline");i(ZT,"simplifyPolyline")});function pSr(r,t,a){let s=r;if(s.isLayoutOnly||!s.points||s.points.length<a)return;let l=s.start?t.get(s.start):void 0,h=s.end?t.get(s.end):void 0;return{edge:s,points:s.points,srcRect:l?xm(l):void 0,dstRect:h?xm(h):void 0}}function eqn(r,t,a){if(ic(r,t,vo))return{x:r.x<a.left?a.left:a.right,y:r.y};if(Wl(r,t,vo)){let s=r.y<a.top?a.top:a.bottom;return{x:r.x,y:s}}return{x:Math.min(a.right,Math.max(a.left,r.x)),y:Math.min(a.bottom,Math.max(a.top,r.y))}}function aSr(r,t,a){let s=a?1:-1,l=a?0:r.length-1;for(;l>=0&&l<r.length&&lTe(r[l],t,ZHn);)l+=s;if(l<0||l>=r.length)return r;let h=l-s;if(h<0||h>=r.length)return r;let f=eqn(r[l],r[h],t);return a?[f,...r.slice(l)]:[...r.slice(0,l+1),f]}function gSr(r,t){for(let a of r){let s=pSr(a,t,2);if(!s)continue;let l=[...s.points];s.srcRect&&(l=aSr(l,s.srcRect,!0)),s.dstRect&&(l=aSr(l,s.dstRect,!1)),l=ZT(One(l)),l=mSr(l,s.srcRect,s.dstRect),s.edge.points=ZT(One(l))}}function sSr(r,t,a,s=!1){if(ic(r,t,vo)){if(t.y<a.top-vo||t.y>a.bottom+vo)return t;if(s){if(r.x<a.left-vo)return{x:a.left,y:r.y};if(r.x>a.right+vo)return{x:a.right,y:r.y}}return{x:Math.abs(t.x-a.left)<=Math.abs(t.x-a.right)?a.left:a.right,y:r.y}}if(Wl(r,t,vo)){if(t.x<a.left-vo||t.x>a.right+vo)return t;if(s){if(r.y<a.top-vo)return{x:r.x,y:a.top};if(r.y>a.bottom+vo)return{x:r.x,y:a.bottom}}let l=Math.abs(t.y-a.top)<=Math.abs(t.y-a.bottom);return{x:r.x,y:l?a.top:a.bottom}}return t}function ytt(r,t,a){let s=r[t];for(let l=t+a;l>=0&&l<r.length;l+=a){let h=r[l];if(!p2(h,s,vo))return h}return r[t+a]}function btt(r,t){let a=r+iSr,s=t-iSr;return a<=s?{lo:a,hi:s}:{lo:(r+t)/2,hi:(r+t)/2}}function oSr(r,t,a){let{lo:s,hi:l}=btt(t,a);return Math.min(l,Math.max(s,r))}function tqn(r){let t=Math.max(...r.map(s=>s.lo)),a=Math.min(...r.map(s=>s.hi));if(!(t>a))return{lo:t,hi:a}}function lSr(r,t){return t==="left"||t==="right"?btt(r.top,r.bottom):btt(r.left,r.right)}function vtt(r,t,a){let s=r.y>=a.top-vo&&r.y<=a.bottom+vo,l=r.x>=a.left-vo&&r.x<=a.right+vo;if(ic(r,t,vo)&&s){if(Math.abs(r.x-a.left)<vo)return"left";if(Math.abs(r.x-a.right)<vo)return"right"}if(Wl(r,t,vo)&&l){if(Math.abs(r.y-a.top)<vo)return"top";if(Math.abs(r.y-a.bottom)<vo)return"bottom"}}function dTe(r){return r==="left"||r==="right"}function rqn(r,t,a,s,l){let h=[],f=a?vtt(r,t,a):void 0,d=s?vtt(t,r,s):void 0;return a&&f&&dTe(f)===l&&h.push(lSr(a,f)),s&&d&&dTe(d)===l&&h.push(lSr(s,d)),h.length>0?tqn(h):void 0}function cSr(r,t,a,s,l){let h=rqn(r,t,a,s,l);if(!h)return;let f=l?r.y:r.x,d=Math.min(h.hi,Math.max(h.lo,f));if(!(Math.abs(d-f)<vo))return l?[{x:r.x,y:d},{x:t.x,y:d}]:[{x:d,y:r.y},{x:d,y:t.y}]}function mSr(r,t,a){if(r.length!==2)return r;let[s,l]=r;return ic(s,l,vo)?cSr(s,l,t,a,!0)??r:Wl(s,l,vo)?cSr(s,l,t,a,!1)??r:r}function nqn(r,t,a){return dTe(a)?{x:r.x,y:oSr(r.y,t.top,t.bottom)}:{x:oSr(r.x,t.left,t.right),y:r.y}}function iqn(r,t,a,s,l,h){let f=r.map(d=>({...d}));for(let d=t;d>=0&&d<r.length;d+=a){let m=r[d];if(h&&!ic(m,s,vo)||!h&&!Wl(m,s,vo))break;h?f[d].y=l.y:f[d].x=l.x}return f}function uSr(r,t,a){if(r.length<2)return r;let s=a?0:r.length-1,l=a?1:-1,h=r[s],f=ytt(r,s,l);if(!f)return r;let d=vtt(h,f,t);if(!d)return r;let m=dTe(d),b=nqn(h,t,d);return p2(h,b,vo)?r:iqn(r,s,l,h,b,m)}function hSr(r,t,a){let s=Math.min(r.x,t.x)>=a.left-vo&&Math.max(r.x,t.x)<=a.right+vo,l=Math.min(r.y,t.y)>=a.top-vo&&Math.max(r.y,t.y)<=a.bottom+vo;if(Math.abs(r.y-a.top)<vo&&Math.abs(t.y-a.top)<vo&&s)return"top";if(Math.abs(r.y-a.bottom)<vo&&Math.abs(t.y-a.bottom)<vo&&s)return"bottom";if(Math.abs(r.x-a.left)<vo&&Math.abs(t.x-a.left)<vo&&l)return"left";if(Math.abs(r.x-a.right)<vo&&Math.abs(t.x-a.right)<vo&&l)return"right"}function fSr(r,t,a,s){switch(r){case"top":return Wl(t,a,vo)&&a.y<s.top-vo;case"bottom":return Wl(t,a,vo)&&a.y>s.bottom+vo;case"left":return ic(t,a,vo)&&a.x<s.left-vo;case"right":return ic(t,a,vo)&&a.x>s.right+vo}}function dSr(r,t,a){if(r.length<3)return r;if(a){let h=hSr(r[0],r[1],t);return h&&fSr(h,r[1],r[2],t)?r.slice(1):r}let s=r.length-1,l=hSr(r[s-1],r[s],t);return l&&fSr(l,r[s-1],r[s-2],t)?r.slice(0,s):r}function aqn(r,t,a){let s=r;if(t){let h=ytt(s,0,1);if(h){let f=sSr(h,s[0],t);f!==s[0]&&(s=[f,...s.slice(1)])}s=dSr(s,t,!0)}if(a){let h=s.length-1,f=ytt(s,h,-1);if(f){let d=sSr(f,s[h],a,!0);d!==s[h]&&(s=[...s.slice(0,h),d])}s=dSr(s,a,!1)}let l=mSr(s,t,a);return l!==s||s.length===2?l:(t&&(s=uSr(s,t,!0)),a&&(s=uSr(s,a,!1)),s)}function wtt(r,t){for(let a of r){let s=pSr(a,t,2);if(!s)continue;let l=Nl(s.points,vo),h=aqn(l,s.srcRect,s.dstRect);if(h.length<3){s.edge.points=h;continue}let f=[h[0],{...h[0]},...h.slice(1,-1),h[h.length-1],{...h[h.length-1]}];s.edge.points=f}}var vo,ZHn,iSr,ySr=ae(()=>{"use strict";V4();vo=.001,ZHn=.5,iSr=4;i(pSr,"endpointContextFor");i(eqn,"segmentEnterPoint");i(aSr,"clipEndpoint");i(gSr,"clipEdgeEndpointsToNodeBoundaries");i(sSr,"snapEndpointToBoundary");i(ytt,"firstDistinctAdjacent");i(btt,"cornerClearanceRange");i(oSr,"clampToCornerClearance");i(tqn,"intersectRanges");i(lSr,"clearanceRangeForSide");i(vtt,"terminalSideForSegment");i(dTe,"isHorizontalSide");i(rqn,"straightClearanceRange");i(cSr,"clearStraightEndpointCornerAxis");i(mSr,"clearStraightEndpointCornerConnections");i(nqn,"cornerClearedEndpoint");i(iqn,"moveCollinearEndpointRun");i(uSr,"clearEndpointCornerConnection");i(hSr,"borderSideForSegment");i(fSr,"leavesOutward");i(dSr,"collapseOwnBorderStub");i(aqn,"snapAndCollapseEndpoints");i(wtt,"prepareEdgeEndpointsForRenderer")});function sqn(r){return new Map(r.map(t=>[t.id,t]))}function bSr(r,t){let a=new Set([r.id]),s=0,l=r.parentId;for(;l&&!a.has(l);){let h=t.get(l);if(!h?.isGroup)break;a.add(l),s++,l=h.parentId}return s}function vSr(r){let t=1/0,a=-1/0,s=1/0,l=-1/0;for(let h of r){let f=h.x,d=h.y;if(typeof f!="number"||typeof d!="number")continue;let m=h.width??0,b=h.height??0;t=Math.min(t,f-m/2),a=Math.max(a,f+m/2),s=Math.min(s,d-b/2),l=Math.max(l,d+b/2)}return t===1/0||s===1/0?null:{minX:t,maxX:a,minY:s,maxY:l}}function oqn(r,t){let a=r.padding??20;r.x=(t.minX+t.maxX)/2,r.y=(t.minY+t.maxY)/2,r.width=Math.max(0,t.maxX-t.minX)+a,r.height=Math.max(0,t.maxY-t.minY)+a}function lqn(r){let t=sqn(r),a=r.filter(s=>s.isGroup&&s.parentId).sort((s,l)=>bSr(l,t)-bSr(s,t));for(let s of a){let l=r.filter(f=>f.parentId===s.id),h=vSr(l);h&&oqn(s,h)}}function xtt(r,t){let a=r.nodes??[],s=r.edges??[],l=a.filter(m=>!m.isGroup),h=1/0,f=-1/0;for(let m of l){let b=m[t];typeof b=="number"&&(h=Math.min(h,b),f=Math.max(f,b))}if(!Number.isFinite(h)||!Number.isFinite(f))return!1;let d=i(m=>h+f-m,"mirror");for(let m of a){let b=m[t];typeof b=="number"&&(m[t]=d(b));let v=m.groupTitleRect;v&&(m.groupTitleRect=t==="x"?{...v,left:d(v.right),right:d(v.left)}:{...v,top:d(v.bottom),bottom:d(v.top)})}for(let m of s)for(let b of m.points??[])b[t]=d(b[t]);return!0}function wSr(r){return(r.nodes??[]).some(a=>!a.isGroup)?xtt(r,"y"):!0}function Ttt(r){let t=r.filter(f=>!f.isGroup&&!f.isEdgeLabel);if(t.length===0)return 1;let a=0,s=0;for(let f of t)a+=f.width??0,s+=f.height??0;let l=a/t.length,h=s/t.length;return h>0?Math.max(1,l/h):1}function hqn(r){return r==="left"?"right":r==="right"?"left":r}function fqn(r,t,a,s,l){if(a==="top"||a==="bottom"){let f=(t.left+t.right)/2,[d,m]=l?[s.after,s.before]:[s.before,s.after];r.left=Math.min(r.left,f-d),r.right=Math.max(r.right,f+m);return}let h=(t.top+t.bottom)/2;r.top=Math.min(r.top,h-s.before),r.bottom=Math.max(r.bottom,h+s.after)}function pqn(r,t,a,s,l){fqn(r,t,a,s,l),dqn[a](r,t,s.beyond)}function gqn(r,t,a){let s=r.x??0,l=r.y??0,h=(r.width??0)/2,f=(r.height??0)/2,d={left:s-h,right:s+h,top:l-f,bottom:l+f},m={...d},b=a==="RL";for(let v of uqn){let T=t[v];T&&pqn(m,d,b?hqn(v):v,T,b)}return{...r,x:(m.left+m.right)/2,y:(m.top+m.bottom)/2,width:m.right-m.left,height:m.bottom-m.top}}function xSr(r,t="LR"){let a=r.nodes??[],s=r.edges??[],l=lP(a),h=a.filter(q=>!q.isGroup&&!l.has(q.id)),f=1/0,d=1/0;for(let q of h){let W=q.x??0,H=q.y??0;W<f&&(f=W),H<d&&(d=H)}if(!Number.isFinite(f)||!Number.isFinite(d))return!1;let m=cqn,b=Ttt(h);for(let q of h){let W=q.x??0,re=((q.y??0)-d)*b+m,Z=W-f;q.x=re,q.y=Z}for(let q of s)if(q.points)for(let W of q.points){let H=W.x,Z=(W.y-d)*b+m,X=H-f;W.x=Z,W.y=X}lqn(a);let v=gy(a),T=a.filter(q=>v.isLane(q.id));if(T.length===0)return t==="RL"&&xtt(r,"x"),!0;let C=new Map,E=VEr(a,t);for(let q of a){if(v.isLane(q.id)||v.isPool(q.id)||l.has(q.id))continue;let W=v.laneIdOf(q.id);if(!W)continue;let H=C.get(W)??[],re=E.get(q.id);H.push(re?gqn(q,re,t):q),C.set(W,H)}let S=0;for(let q of T){let W=q.padding??0;W>S&&(S=W)}let R=[],L=1/0,_=-1/0;for(let q of T){let W=C.get(q.id)??[],H=vSr(W);H&&(L=Math.min(L,H.minX),_=Math.max(_,H.maxX),R.push({lane:q,contentTop:H.minY,contentBottom:H.maxY,centerY:(H.minY+H.maxY)/2}))}if(L===1/0||_===-1/0)return!0;let I=Math.max(0,_-L),N=Math.max(S,10),B=I+2*N,O=m+B,V=(L+_)/2-B/2-m,Y=V+O/2,Q=Math.max(S,m);R.sort((q,W)=>q.centerY-W.centerY);for(let q=0;q<R.length;q++){let W=R[q],H,re;if(q===0?H=W.contentTop-Q:H=(R[q-1].contentBottom+W.contentTop)/2,q===R.length-1)re=W.contentBottom+Q;else{let te=R[q+1];re=(W.contentBottom+te.contentTop)/2}let Z=Math.max(0,re-H),X=(H+re)/2;W.lane.x=Y,W.lane.y=X,W.lane.width=O,W.lane.height=Z,W.lane.swimlaneContentTop=W.contentTop,W.lane.groupTitleRect={left:V,right:V+m,top:H,bottom:re}}return t==="RL"&&xtt(r,"x"),!0}var cqn,uqn,dqn,ktt=ae(()=>{"use strict";oP();sTe();i(sqn,"buildNodeMap");i(bSr,"groupDepth");i(vSr,"boundsForChildren");i(oqn,"applyGroupBounds");i(lqn,"recomputeNestedGroupBounds");i(xtt,"mirrorAxis");i(wSr,"applyBtDirectionTransform");i(Ttt,"flowAxisStretch");cqn=36,uqn=["top","right","bottom","left"];i(hqn,"mirroredSide");i(fqn,"growAlongBorder");dqn={top:i((r,t,a)=>{r.top=Math.min(r.top,t.top-a)},"top"),bottom:i((r,t,a)=>{r.bottom=Math.max(r.bottom,t.bottom+a)},"bottom"),left:i((r,t,a)=>{r.left=Math.min(r.left,t.left-a)},"left"),right:i((r,t,a)=>{r.right=Math.max(r.right,t.right+a)},"right")};i(pqn,"reserveOnSide");i(gqn,"withAnchorFootprints");i(xSr,"applyLrDirectionTransform")});function TSr(r,t){let{nodeInfoById:a,realNodeRects:s}=HU(t);for(let l of r){if(l.isLayoutOnly)continue;let h=l.points;if(!h||h.length<4)continue;let f=oTe(Nl(h,W4),W4);if(!f)continue;let{p3:d}=f,m=f.kind==="HVH",b=fTe(l,a,W4);if(!b)continue;let{srcId:v,dstId:T,srcInfo:C,dstInfo:E,collinearX:S,collinearY:R}=b;if(S||R)continue;let L,_=C.rect;for(let I of yqn){let N,B,O;if(m){let q=E.cy>C.cy?_.bottom:_.top,W=C.cx+I;if(W<=_.left+W4||W>=_.right-W4)continue;N={x:W,y:q},B={x:W,y:d.y},O={x:d.x,y:d.y}}else{let q=E.cx>C.cx?_.right:_.left,W=C.cy+I;if(W<=_.top+W4||W>=_.bottom-W4)continue;N={x:q,y:W},B={x:d.x,y:W},O={x:d.x,y:d.y}}let P=p2(N,B,W4),$=p2(B,O,W4);if(P&&$||!P&&af(N,B,s,[v],1)||!$&&af(B,O,s,[T],1))continue;let V=!P&&Nne(N,B,r,l,{epsilon:W4,skipDegenerateOther:!0}),Y=!$&&Nne(B,O,r,l,{epsilon:W4,skipDegenerateOther:!0});if(!(V||Y)){P?L=[B,O]:$?L=[N,B]:L=[N,B,O];break}}L&&(l.points=L)}}var W4,mqn,pTe,yqn,kSr=ae(()=>{"use strict";V4();W4=1e-6,mqn=8,pTe=mqn,yqn=[0,pTe,-pTe,2*pTe,-2*pTe];i(TSr,"portSwapToLShape")});function CSr(r,t){let{realNodeRects:h,labelNodeRects:f}=SS(t.values());for(let d of r){if(d.isLayoutOnly)continue;let m=d.points;if(!m||m.length<4)continue;let b=Nl(m,.001);if(b.length<4)continue;let v=b.length-1,T=b[v],C=b[v-1],E=b[v-2],S=T.x-C.x,R=T.y-C.y,L=Math.hypot(S,R);if(L>=10||L<.001)continue;let _=C.x-E.x,I=C.y-E.y;if(Math.hypot(_,I)<.001)continue;let B=Od(C,T,.001),O=Pd(C,T,.001),P=Od(E,C,.001),$=Pd(E,C,.001);if(!(B&&$||O&&P))continue;let V=d.end,Y=d.start,Q=V?t.get(V):void 0;if(!Q)continue;let q=Q.x??0,W=Q.y??0,H=xm(Q);if(!H)continue;let re,Z;if($){let le=I<0;re={x:q,y:E.y},Z={x:q,y:le?H.bottom:H.top}}else{let le=_>0;re={x:E.x,y:W},Z={x:le?H.right:H.left,y:W}}if(af(re,Z,h,V?[V]:[],-2)||af(re,Z,f,[],-2))continue;if(Y){let le=t.get(Y),pe=le?xm(le):void 0;if(pe&&lTe(re,pe,2))continue}let X=i((le,pe)=>`${le.x.toFixed(3)},${le.y.toFixed(3)}|${pe.x.toFixed(3)},${pe.y.toFixed(3)}`,"ownSegmentKey"),te=new Set;for(let le=0;le<b.length-1;le++)te.add(X(b[le],b[le+1]));let U=i((le,pe)=>{for(let ge of r){if(ge===d||ge.isLayoutOnly)continue;let we=ge.points;if(!(!we||we.length<2))for(let Ae=0;Ae<we.length-1;Ae++){let ve=we[Ae],Ie=we[Ae+1];if(!te.has(X(ve,Ie))&&U4(le,pe,ve,Ie,.001))return!0}}return!1},"segmentCrossesOtherEdge");if(U(re,Z))continue;if(v-3>=0){let le=b[v-3],pe=[Y,V].filter(ge=>!!ge);if(af(le,re,h,pe,-2)||U(le,re))continue}let se=[...b.slice(0,v-2),re,Z];d.points=se;let he=d.labelNodeId;if(he){let le=t.get(he);if(le){let pe=le.width??0,ge=le.height??0;if(pe>0&&ge>0){let we,Ae,ve=-1;for(let Ie=0;Ie<se.length-1;Ie++){let De=se[Ie],Be=se[Ie+1],Fe=Math.hypot(Be.x-De.x,Be.y-De.y),ze=ic(De,Be,.001),vt=Wl(De,Be,.001);(ze&&Fe>=pe+2||vt&&Fe>=ge+2)&&Fe>ve&&(ve=Fe,we=(De.x+Be.x)/2,Ae=(De.y+Be.y)/2)}we!==void 0&&Ae!==void 0&&(le.x=we,le.y=Ae)}}}}}var ESr=ae(()=>{"use strict";V4();i(CSr,"collapseShortTerminalStub")});var gTe,SSr,cP,mTe,j_=ae(()=>{"use strict";gTe={EDGE_GAP:12,LANE_MARGIN:20,ARROWHEAD_SIZE:8,ARROWHEAD_GAP:4,MIN_ARROWHEAD_SPACING:12,EDGE_STROKE_WIDTH:2,ROUTE_TOUCH_TOLERANCE:6},SSr={EPSILON:1e-6},cP={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},mTe={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40,EDGE_LABEL_CLEARANCE:16}});function Ett(r,t){let l=i((E,S)=>{let R=E.x??0,L=E.y??0,_=S.x-R,I=S.y-L,N=(E.width??0)/2,B=(E.height??0)/2;return Math.abs(I)*N>Math.abs(_)*B?(I<0&&(B=-B),{x:R+(I===0?0:B*_/I),y:L+B}):(_<0&&(N=-N),{x:R+N,y:L+(_===0?0:N*I/_)})},"rectIntersect"),h=i((E,S)=>{let R=Nl(E.points??[]);if(R.length<2)return;let L=S?E.start:E.end,_=L?t.get(L):void 0,I=_?xm(_):void 0;if(!_||!L||!I)return;let N=S?R[0]:R[R.length-1],B=S?R[1]:R[R.length-2],O=l(_,N),P=N;if(Ctt(B,O)&&(P=B),Wl(O,P,es))return{edge:E,edgeId:String(E.id??""),nodeId:L,atStart:S,orientation:"V",coord:O.x,min:Math.min(O.y,P.y),max:Math.max(O.y,P.y),boundary:O,railEnd:P,rect:I};if(ic(O,P,es))return{edge:E,edgeId:String(E.id??""),nodeId:L,atStart:S,orientation:"H",coord:O.y,min:Math.min(O.x,P.x),max:Math.max(O.x,P.x),boundary:O,railEnd:P,rect:I}},"terminalLaneFor"),f=i((E,S)=>Math.max(0,Math.min(E.max,S.max)-Math.max(E.min,S.min)),"projectedOverlapLength"),d=i((E,S)=>E.nodeId!==S.nodeId||E.orientation!==S.orientation?!1:E.orientation==="H"?(Math.abs(E.boundary.x-E.rect.left)<1||Math.abs(E.boundary.x-E.rect.right)<1)&&Wl(E.boundary,S.boundary,1):(Math.abs(E.boundary.y-E.rect.top)<1||Math.abs(E.boundary.y-E.rect.bottom)<1)&&ic(E.boundary,S.boundary,1),"sameTerminalFace"),m=i((E,S)=>E.nodeId!==S.nodeId||E.orientation!==S.orientation?!1:f(E,S)>=Tm&&Math.abs(E.coord-S.coord)<.5,"exactTerminalLaneConflict"),b=i((E,S)=>{if(E.nodeId!==S.nodeId||E.orientation!==S.orientation||E.orientation!=="H"||E.atStart===S.atStart)return!1;let R=f(E,S);if(R<Tm)return!1;let L=E.rect.bottom-E.rect.top;return R<L||R>2*L?!1:d(E,S)&&Math.abs(E.coord-S.coord)<16},"nearTerminalLaneConflict"),v=i((E,S)=>{let R=Nl(E.edge.points??[]);if(R.length<2)return;let L=E.orientation==="V"?{x:E.boundary.x+S,y:E.boundary.y}:{x:E.boundary.x,y:E.boundary.y+S},_=E.orientation==="V"?{x:E.railEnd.x+S,y:E.railEnd.y}:{x:E.railEnd.x,y:E.railEnd.y+S};if(!i(()=>Math.abs(E.boundary.y-E.rect.top)<1||Math.abs(E.boundary.y-E.rect.bottom)<1?ic(L,E.boundary,es)&&L.x>=E.rect.left+1&&L.x<=E.rect.right-1:Math.abs(E.boundary.x-E.rect.left)<1||Math.abs(E.boundary.x-E.rect.right)<1?Wl(L,E.boundary,es)&&L.y>=E.rect.top+1&&L.y<=E.rect.bottom-1:!1,"boundaryStaysOnSameFace")())return;if(E.atStart){let P=R.length>1&&p2(R[1],E.railEnd,es),$=R.slice(P?2:1),V=$[0];return V&&!Ctt(V,_)?void 0:[L,_,...$]}let N=R.length>1&&p2(R[R.length-2],E.railEnd,es),B=R.slice(0,N?-2:-1),O=B[B.length-1];if(!(O&&!Ctt(O,_)))return[...B,_,L]},"shiftedCandidate"),T=i(E=>{let S=E.edge,R=Nl(S.points??[]);if(R.length!==2)return!1;let L=S.start,_=S.end,I=L?t.get(L):void 0,N=_?t.get(_):void 0;if(!I||!N)return!1;let B=I.x??0,O=I.y??0,P=N.x??0,$=N.y??0,[V,Y]=R;return ic(V,Y,es)&&Math.abs(O-$)<1&&Math.abs(B-P)>1||Wl(V,Y,es)&&Math.abs(B-P)<1&&Math.abs(O-$)>1},"laneIsStraightCollinearConnector"),C=[-7,7,-14,14,-21,21];for(let E=0;E<8;E++){let S=r.filter(L=>!L.isLayoutOnly).flatMap(L=>[h(L,!0),h(L,!1)]).filter(L=>!!L),R=!1;for(let L=0;L<S.length&&!R;L++)for(let _=L+1;_<S.length&&!R;_++){let I=S[L],N=S[_];if(I.edge===N.edge||!(m(I,N)||b(I,N)))continue;let B=!m(I,N),O=[I,N].sort((P,$)=>{let V=T(P),Y=T($);return V!==Y?Number(V)-Number(Y):+!$.atStart-+!P.atStart});for(let P of O){for(let $ of C){let V=v(P,$);if(!V)continue;let Y=h({...P.edge,points:V},P.atStart);if(!(!Y||S.some(Q=>Q.edge!==P.edge&&(m(Y,Q)||B&&b(Y,Q))))){P.edge.points=V,R=!0;break}}if(R)break}}if(!R)return}}function RSr(r,t){let{realNodeRects:l,labelNodeRects:h}=SS(t.values()),f=i((m,b)=>{let v=m.start,T=m.end,C=Tl(b);if(C.length!==b.length-1)return!1;let E=[v,T].filter(S=>!!S);for(let S of C)if(af(S.a,S.b,l,E,-2)||af(S.a,S.b,h,[],-2))return!1;for(let S of r){if(S===m||S.isLayoutOnly)continue;let R=S.points;if(!(!R||R.length<2)){for(let L of C)for(let _ of Tl(Nl(R)))if(z4(L,_,.5)>=Tm||U4(L.a,L.b,_.a,_.b,es))return!1}}return!0},"candidateIsSafe"),d=i((m,b)=>{if(b+4>=m.length)return;let v=m[b],T=m[b+1],C=m[b+2],E=m[b+3],S=m[b+4],R=Od(v,T)&&Pd(T,C)&&Od(C,E)&&Pd(E,S)&&Wl(v,E,es)&&Wl(v,S,es)&&Wl(T,C,es)&&(T.x-v.x)*(E.x-C.x)<0,L=Pd(v,T)&&Od(T,C)&&Pd(C,E)&&Od(E,S)&&ic(v,E,es)&&ic(v,S,es)&&ic(T,C,es)&&(T.y-v.y)*(E.y-C.y)<0;if(R||L)return Nl([...m.slice(0,b+1),S,...m.slice(b+5)]);if(b+5>=m.length)return;let _=m[b+5],I=Pd(v,T)&&Od(T,C)&&Pd(C,E)&&Od(E,S)&&Pd(S,_)&&Wl(v,S,es)&&Wl(v,_,es)&&Wl(C,E,es)&&(C.x-T.x)*(S.x-E.x)<0,N=Od(v,T)&&Pd(T,C)&&Od(C,E)&&Pd(E,S)&&Od(S,_)&&ic(v,S,es)&&ic(v,_,es)&&ic(C,E,es)&&(C.y-T.y)*(S.y-E.y)<0;if(!(!I&&!N))return Nl([...m.slice(0,b+1),_,...m.slice(b+6)])},"withoutDogleg");for(let m=0;m<8;m++){let b=!1;for(let v of r){if(v.isLayoutOnly)continue;let T=Nl(v.points??[]);for(let C=0;C<=T.length-5;C++){let E=d(T,C);if(!(!E||!f(v,E))){v.points=E,b=!0;break}}if(b)break}if(!b)return}}function Stt(r,t){let{realNodeRects:h,labelNodeRects:f}=SS(t.values()),d=r.filter(S=>!S.isLayoutOnly),m=i((S,R,L)=>Nl(S===R?L??[]:S.points??[]),"pointsFor"),b=i((S,R)=>{let L=0;for(let _=0;_<d.length;_++){let I=Tl(m(d[_],S,R));for(let N=_+1;N<d.length;N++){let B=Tl(m(d[N],S,R));for(let O of I)for(let P of B)U4(O.a,O.b,P.a,P.b,es)&&L++}}return L},"strictCrossingCount"),v=i(S=>{let R=Tl(S);if(R.length!==3)return;let L=R[1];if(!(R[0].horizontal===L.horizontal||R[2].horizontal===L.horizontal))return{index:L.index,horizontal:L.horizontal,vertical:L.vertical,segment:L}},"middleRail"),T=i((S,R)=>{let L=[S.start,S.end].filter(_=>!!_);return h.filter(_=>{if(L.includes(_.id))return!1;let I=_.rect;return R.horizontal?my(R.a.x,R.b.x,I.left,I.right)>=Tm&&R.a.y>=I.top-2&&R.a.y<=I.bottom+2:my(R.a.y,R.b.y,I.top,I.bottom)>=Tm&&R.a.x>=I.left-2&&R.a.x<=I.right+2})},"blockingRectsFor"),C=i((S,R,L)=>{let _=S.map(N=>({...N}));if(R.horizontal)_[R.index].y=L,_[R.index+1].y=L;else if(R.vertical)_[R.index].x=L,_[R.index+1].x=L;else return;let I=ZT(Nl(_));return Tl(I).length===I.length-1?I:void 0},"candidateByMovingRail"),E=i((S,R,L)=>{let _=[S.start,S.end].filter(N=>!!N),I=Tl(R);if(I.length!==R.length-1)return!1;for(let N of I)if(af(N.a,N.b,h,_,-2)||af(N.a,N.b,f,[],-2))return!1;for(let N of d)if(N!==S){for(let B of I)for(let O of Tl(m(N)))if(z4(B,O,.5)>=Tm)return!1}return b(S,R)<=L},"candidateIsSafe");for(let S=0;S<8;S++){let R=b(),L=!1;for(let _ of d){let I=m(_),N=v(I);if(!N)continue;let B=T(_,N.segment);if(B.length===0)continue;let O=N.horizontal?[Math.min(...B.map(P=>P.rect.top))-20,Math.max(...B.map(P=>P.rect.bottom))+20]:[Math.min(...B.map(P=>P.rect.left))-20,Math.max(...B.map(P=>P.rect.right))+20];for(let P of O){let $=C(I,N.segment,P);if(!(!$||!E(_,$,R))){_.points=$,L=!0;break}}if(L)break}if(!L)return}}function Att(r,t,a){let l=i(v=>{let T=v.groupTitleRect;if(!(!T||typeof T.left!="number"||typeof T.right!="number"||typeof T.top!="number"||typeof T.bottom!="number"||!Number.isFinite(T.left)||!Number.isFinite(T.right)||!Number.isFinite(T.top)||!Number.isFinite(T.bottom)||T.right<=T.left||T.bottom<=T.top))return{left:T.left,right:T.right,top:T.top,bottom:T.bottom}},"validTitleRect"),h=gy([...t.values()]),f=i(v=>{if(!h.isLane(v.id))return;let T=ASr(v.direction??a);if(T==="LR"||T==="RL"||T==="BT")return;let C=l(v),E=v.y,S=v.height;if(!C||typeof E!="number"||typeof S!="number"||!Number.isFinite(E)||!Number.isFinite(S)||S<=0)return;let R=C.right-C.left,L=C.bottom-C.top;if(!(L<=0||R<L))return{node:v,rect:C}},"topLaneTitleFor"),d=i((v,T)=>{if(!v.horizontal)return!1;let C=v.a.y;return C<T.top-es||C>T.bottom+es?!1:my(v.a.x,v.b.x,T.left,T.right)>=Tm},"horizontalSegmentIntersectsTitle"),m=[...t.values()].map(f).filter(v=>!!v);if(m.length===0)return;let b=0;for(let v of r){if(v.isLayoutOnly)continue;let T=Nl(v.points??[]);for(let C of Tl(T))for(let E of m)d(C,E.rect)&&(b=Math.max(b,E.rect.bottom-C.a.y+4))}if(!(b<=es))for(let v of m){let T=v.node.y,C=v.node.height;typeof T!="number"||typeof C!="number"||!Number.isFinite(T)||!Number.isFinite(C)||C<=0||(v.node.y=T-b/2,v.node.height=C+b,v.node.groupTitleRect={...v.rect,top:v.rect.top-b,bottom:v.rect.bottom-b})}}function Rtt(r,t,a){let l=i(T=>{let C=T.groupTitleRect;if(!(!C||typeof C.left!="number"||typeof C.right!="number"||typeof C.top!="number"||typeof C.bottom!="number"||!Number.isFinite(C.left)||!Number.isFinite(C.right)||!Number.isFinite(C.top)||!Number.isFinite(C.bottom)||C.right<=C.left||C.bottom<=C.top))return{left:C.left,right:C.right,top:C.top,bottom:C.bottom}},"validTitleRect"),h=gy([...t.values()]),f=i(T=>{if(!h.isLane(T.id)||ASr(T.direction??a)!=="LR")return;let E=l(T),S=T.x,R=T.width;if(!E||typeof S!="number"||typeof R!="number"||!Number.isFinite(S)||!Number.isFinite(R)||R<=0)return;let L=E.right-E.left,_=E.bottom-E.top;if(!(L<=0||_<L))return{node:T,rect:E}},"leftLaneTitleFor"),d=i((T,C)=>{if(!T.vertical)return!1;let E=T.a.x;return E<C.left-es||E>C.right+es?!1:my(T.a.y,T.b.y,C.top,C.bottom)>=Tm},"verticalSegmentIntersectsTitle"),m=i((T,C)=>{if(!T.horizontal)return!1;let E=T.a.y;return E<C.top-es||E>C.bottom+es?!1:my(T.a.x,T.b.x,C.left,C.right)>=Tm},"horizontalSegmentIntersectsTitle"),b=[...t.values()].map(f).filter(T=>!!T);if(b.length===0)return;let v=0;for(let T of r){if(T.isLayoutOnly)continue;let C=Nl(T.points??[]);for(let E of Tl(C))for(let S of b)if(d(E,S.rect))v=Math.max(v,S.rect.right-E.a.x+4);else if(m(E,S.rect)){let R=Math.min(E.a.x,E.b.x);v=Math.max(v,S.rect.right-R+4)}}if(!(v<=es))for(let T of b){let C=T.node.x,E=T.node.width;typeof C!="number"||typeof E!="number"||!Number.isFinite(C)||!Number.isFinite(E)||E<=0||(T.node.x=C-v/2,T.node.width=E+v,T.node.groupTitleRect={...T.rect,left:T.rect.left-v,right:T.rect.right-v})}}function LSr(r,t){let{realNodeRects:l}=SS(t.values()),h=r.filter(R=>!R.isLayoutOnly),f=i((R,L=new Map)=>Nl(L.get(R)??R.points??[]),"replacementPointsFor"),d=i((R=new Map)=>{let L=0;for(let _=0;_<h.length;_++){let I=Tl(f(h[_],R));for(let N=_+1;N<h.length;N++){let B=Tl(f(h[N],R));for(let O of I)for(let P of B)U4(O.a,O.b,P.a,P.b,es)&&L++}}return L},"crossingCount"),m=i((R=new Map)=>h.reduce((L,_)=>L+g2(f(_,R)),0),"totalBends"),b=i(R=>{let L=f(R);if(L.length<4)return;let _=L[L.length-2],I=L[L.length-1];if(!(!Od(_,I,es)&&!Pd(_,I,es)))return{tailStart:_,terminal:I}},"terminalTailFor"),v=i((R,L)=>{let _=f(R);if(_.length<3)return;let I=_[0],N=_[1],B;if(Od(I,N,es))B={x:N.x,y:L.tailStart.y};else if(Pd(I,N,es))B={x:L.tailStart.x,y:N.y};else return;let O=ZT(Nl([I,N,B,L.tailStart,L.terminal]));return Tl(O).length===O.length-1?O:void 0},"candidateWithDestinationTail"),T=i((R,L)=>{let _=[R.start,R.end].filter(I=>!!I);for(let I of Tl(L))if(af(I.a,I.b,l,_,-2))return!0;return!1},"pathHasNodeHit"),C=i((R,L,_)=>{for(let I of h)if(I!==R){for(let N of Tl(L))for(let B of Tl(f(I,_)))if(z4(N,B,.5)>=Tm)return!0}return!1},"pathHasSharedTrack"),E=i((R,L,_)=>!T(R,L)&&!C(R,L,_),"candidateIsSafe"),S=i(()=>{let R=new Map;for(let L of h){let _=L.end;if(!_||!t.has(_)||f(L).length<4)continue;let N=R.get(_)??[];N.push(L),R.set(_,N)}return R},"edgesByDestination");for(let R=0;R<4;R++){let L=d();if(L===0)return;let _=m(),I,N=L,B=_;for(let O of S().values())for(let P=0;P<O.length;P++)for(let $=P+1;$<O.length;$++){let V=O[P],Y=O[$],Q=b(V),q=b(Y);if(!Q||!q)continue;let W=v(V,q),H=v(Y,Q);if(!W||!H)continue;let re=new Map([[V,W],[Y,H]]);if(!E(V,W,re)||!E(Y,H,re))continue;let Z=d(re),X=m(re);Z>=L||Z>N||Z===N&&X>=B||(I=re,N=Z,B=X)}if(!I)return;for(let[O,P]of I)O.points=P}}function _Sr(r,t){let{realNodeRects:f,labelNodeRects:d}=SS(t.values()),m=r.filter(O=>!O.isLayoutOnly),b=i((O,P=new Map)=>Nl(P.get(O)??O.points??[]),"replacementPointsFor"),v=i((O=new Map)=>{let P=0;for(let $=0;$<m.length;$++){let V=Tl(b(m[$],O));for(let Y=$+1;Y<m.length;Y++){let Q=Tl(b(m[Y],O));for(let q of V)for(let W of Q)U4(q.a,q.b,W.a,W.b,es)&&P++}}return P},"strictCrossingCount"),T=i((O=new Map)=>m.reduce((P,$)=>P+g2(b($,O)),0),"totalBends"),C=i(O=>{let P=O.start,$=O.end,V=P?t.get(P):void 0,Y=$?t.get($):void 0,Q=V?xm(V):void 0,q=Y?xm(Y):void 0;return Q&&q?{src:Q,dst:q}:void 0},"endpointRectsFor"),E=i((O,P,$)=>{if($.index<=0||$.index+1>=P.length-1)return;let V=C(O);if(V){if($.vertical){let Y=$.a.x,Q=Math.min(V.src.left,V.dst.left),q=Math.max(V.src.right,V.dst.right),W=Y<Q-es?"left":Y>q+es?"right":void 0;return W?{edge:O,points:P,segmentIndex:$.index,axis:"vertical",side:W,coord:Y,min:Math.min($.a.y,$.b.y),max:Math.max($.a.y,$.b.y)}:void 0}if($.horizontal){let Y=$.a.y,Q=Math.min(V.src.top,V.dst.top),q=Math.max(V.src.bottom,V.dst.bottom),W=Y<Q-es?"top":Y>q+es?"bottom":void 0;return W?{edge:O,points:P,segmentIndex:$.index,axis:"horizontal",side:W,coord:Y,min:Math.min($.a.x,$.b.x),max:Math.max($.a.x,$.b.x)}:void 0}}},"externalRailForSegment"),S=i(()=>{let O=[];for(let P of m){let $=b(P);for(let V of Tl($)){let Y=E(P,$,V);Y&&O.push(Y)}}return O},"collectExternalRails"),R=i((O,P)=>O.edge!==P.edge&&O.axis===P.axis&&O.side===P.side&&my(O.min,O.max,P.min,P.max)>=Tm,"railsInteract"),L=i(O=>{let P=[],$=new Set;for(let V of O){if($.has(V))continue;let Y=[V],Q=[];for($.add(V);Y.length>0;){let q=Y.pop();Q.push(q);for(let W of O)!$.has(W)&&R(q,W)&&($.add(W),Y.push(W))}Q.length>1&&P.push(Q)}return P},"connectedComponents"),_=i(O=>{let P=[];for(let $ of O)P.some(V=>Math.abs(V-$.coord)<es)||P.push($.coord);for(;P.length<O.length;){let $=Math.min(...P),V=Math.max(...P),Y=O[0].side;P.push(Y==="left"||Y==="top"?$-12*(O.length-P.length):V+12*(O.length-P.length))}return P},"uniqueCoordsFor"),I=i(O=>{let P=O.map(Y=>Y.coord),$=_(O),V=[];if(O.length<=6){let Y=new Array($.length).fill(!1),Q=[],q=i(()=>{if(Q.length===O.length){Q.some((W,H)=>Math.abs(W-P[H])>=es)&&V.push([...Q]);return}for(let[W,H]of $.entries())Y[W]||(Y[W]=!0,Q.push(H),q(),Q.pop(),Y[W]=!1)},"visit");return q(),V}for(let Y=0;Y<P.length;Y++)for(let Q=Y+1;Q<P.length;Q++){let q=[...P];[q[Y],q[Q]]=[q[Q],q[Y]],V.push(q)}return V},"coordinateAssignmentsFor"),N=i((O,P)=>{let $=new Map;for(let[Y,Q]of O.entries()){let q=P[Y],W=$.get(Q.edge)??Q.points.map(H=>({x:H.x,y:H.y}));Q.axis==="vertical"?(W[Q.segmentIndex].x=q,W[Q.segmentIndex+1].x=q):(W[Q.segmentIndex].y=q,W[Q.segmentIndex+1].y=q),$.set(Q.edge,W)}let V=new Map;for(let[Y,Q]of $){let q=ZT(Nl(Q));if(Tl(q).length!==q.length-1)return;V.set(Y,q)}return V},"replacementsForAssignment"),B=i(O=>{for(let[P,$]of O){let V=[P.start,P.end].filter(Y=>!!Y);for(let Y of Tl($))if(af(Y.a,Y.b,f,V,-2)||af(Y.a,Y.b,d,[],-2))return!1}for(let P=0;P<m.length;P++){let $=m[P],V=O.has($),Y=Tl(b($,O));for(let Q=P+1;Q<m.length;Q++){let q=m[Q];if(!V&&!O.has(q))continue;let W=Tl(b(q,O));for(let H of Y)for(let re of W)if(z4(H,re,.5)>=Tm)return!1}}return!0},"candidateIsSafe");for(let O=0;O<4;O++){let P=v();if(P===0)return;let $,V=P,Y=T(),Q=Number.POSITIVE_INFINITY;for(let q of L(S()))for(let W of I(q)){let H=N(q,W);if(!H||!B(H))continue;let re=v(H);if(re>=P)continue;let Z=T(H),X=q.reduce((te,U,ne)=>te+Math.abs(W[ne]-U.coord),0);re>V||re===V&&(Z>Y||Z===Y&&X>=Q)||($=H,V=re,Y=Z,Q=X)}if(!$)return;for(let[q,W]of $)q.points=W}}function DSr(r,t){let{realNodeRects:l,labelNodeRects:h}=SS(t.values()),f=r.filter(S=>!S.isLayoutOnly),d=i((S,R,L)=>Nl(S===R?L??[]:S.points??[]),"pointsFor"),m=i(S=>Tl(S).reduce((R,L)=>{let _=L.a.x-L.b.x,I=L.a.y-L.b.y;return R+Math.hypot(_,I)},0),"pathLength"),b=i((S,R)=>{let L=0;for(let _=0;_<f.length;_++){let I=Tl(d(f[_],S,R));for(let N=_+1;N<f.length;N++){let B=Tl(d(f[N],S,R));for(let O of I)for(let P of B)U4(O.a,O.b,P.a,P.b,es)&&L++}}return L},"strictCrossingCount"),v=i((S,R)=>{if(S.horizontal){let L=S.a.y;return(Math.abs(L-R.top)<1||Math.abs(L-R.bottom)<1)&&my(S.a.x,S.b.x,R.left,R.right)>=Tm}if(S.vertical){let L=S.a.x;return(Math.abs(L-R.left)<1||Math.abs(L-R.right)<1)&&my(S.a.y,S.b.y,R.top,R.bottom)>=Tm}return!1},"segmentRunsAlongRectBorder"),T=i(S=>{let R=[S.start,S.end].filter(_=>!!_),L=[];for(let _ of R){let I=t.get(_),N=I?xm(I):void 0;N&&L.push(N)}return L},"endpointRectsFor"),C=i((S,R)=>{if(R+3>=S.length)return[];let L=S[R],_=S[R+1],I=S[R+2],N=S[R+3],B=Od(L,_,es)&&Pd(_,I,es)&&Od(I,N,es),O=Pd(L,_,es)&&Od(_,I,es)&&Pd(I,N,es);if(!B&&!O)return[];if(!(B?Math.sign(_.x-L.x)!==Math.sign(N.x-I.x):Math.sign(_.y-L.y)!==Math.sign(N.y-I.y)))return[];let $=Wl(L,N,es)||ic(L,N,es)?[]:[{x:L.x,y:N.y},{x:N.x,y:L.y}],V=$.length===0?[[...S.slice(0,R+1),...S.slice(R+3)]]:$.map(Q=>[...S.slice(0,R+1),Q,...S.slice(R+3)]),Y=new Set;return V.map(Q=>ZT(Nl(Q))).filter(Q=>{if(Tl(Q).length!==Q.length-1||!Q.some(W=>p2(W,N,es)))return!1;let q=Q.map(W=>`${W.x.toFixed(3)},${W.y.toFixed(3)}`).join("|");return Y.has(q)?!1:(Y.add(q),!0)})},"shortcutCandidatesAt"),E=i((S,R,L)=>{let _=[S.start,S.end].filter(N=>!!N),I=T(S);for(let N of Tl(R))if(af(N.a,N.b,l,_,-2)||af(N.a,N.b,h,[],-2)||I.some(B=>v(N,B)))return!1;for(let N of f)if(N!==S){for(let B of Tl(R))for(let O of Tl(d(N)))if(z4(B,O,.5)>=Tm)return!1}return b(S,R)<=L},"candidateIsSafe");for(let S=0;S<8;S++){let R=b(),L,_,I=R,N=Number.POSITIVE_INFINITY,B=Number.POSITIVE_INFINITY;for(let O of f){let P=d(O),$=g2(P,es),V=m(P);for(let Y=0;Y<=P.length-4;Y++)for(let Q of C(P,Y)){let q=g2(Q,es),W=m(Q);if(!(q<$||q===$&&W<V-es)||!E(O,Q,R))continue;let re=b(O,Q);re>I||re===I&&(q>N||q===N&&W>=B)||(L=O,_=Q,I=re,N=q,B=W)}}if(!L||!_)return;L.points=_}}function ISr(r,t){let f=[];for(let ot of t.values()){if(ot.isGroup||ot.isEdgeLabel)continue;let it=ot.x??0,mt=ot.y??0,Rt=xm(ot);Rt&&f.push({id:String(ot.id??""),cx:it,cy:mt,rect:Rt})}if(f.length===0)return;let d=new Map(f.map(ot=>[ot.id,ot])),m=f.map(ot=>({id:ot.id,rect:ot.rect})),b=["top","bottom","left","right"],v={top:Math.min(...f.map(ot=>ot.rect.top))-20,bottom:Math.max(...f.map(ot=>ot.rect.bottom))+20,left:Math.min(...f.map(ot=>ot.rect.left))-20,right:Math.max(...f.map(ot=>ot.rect.right))+20},T=r.filter(ot=>!ot.isLayoutOnly),C=new Map(T.map((ot,it)=>[ot,it])),E=i(ot=>{let it=ot==="left"||ot==="top"?-1:1,mt=[];for(let Rt=0;Rt<=2;Rt++)mt.push(v[ot]+it*20*Rt);return mt},"outwardTracksForSide"),S=i((ot,it=new Map)=>Nl(it.get(ot)??ot.points??[]),"replacementPointsFor"),R=i((ot,it)=>{let mt=0;for(let Rt of ot)for(let pt of it)U4(Rt.a,Rt.b,pt.a,pt.b,es)&&mt++;return mt},"crossingCountBetweenSegments"),L=i((ot,it)=>R(Tl(ot),Tl(it)),"crossingCountBetweenPaths"),_=i((ot=new Map)=>{let it=0,mt=[],Rt=new Set,pt=[],gt=i(ut=>{Rt.has(ut)||(Rt.add(ut),pt.push(ut))},"addEdge");for(let ut=0;ut<T.length;ut++){let Yt=T[ut],Ye=S(Yt,ot);for(let Oe=ut+1;Oe<T.length;Oe++){let K=T[Oe],Te=L(Ye,S(K,ot));Te>0&&(it+=Te,mt.push({first:Yt,second:K,count:Te}),gt(Yt),gt(K))}}return pt.sort((ut,Yt)=>(C.get(ut)??0)-(C.get(Yt)??0)),{count:it,pairs:mt,edgeSet:Rt,edges:pt}},"crossingSnapshot"),I=i((ot,it)=>{let mt=new Set(it.keys());if(mt.size===0)return ot.count;let Rt=0;for(let gt of ot.pairs)(mt.has(gt.first)||mt.has(gt.second))&&(Rt+=gt.count);let pt=0;for(let gt=0;gt<T.length;gt++){let ut=T[gt],Yt=mt.has(ut),Ye=S(ut,it);for(let Oe=gt+1;Oe<T.length;Oe++){let K=T[Oe];!Yt&&!mt.has(K)||(pt+=L(Ye,S(K,it)))}}return ot.count-Rt+pt},"crossingCountWithReplacements"),N=i(ot=>{let it=new Map;for(let pt of ot.pairs){let gt=it.get(pt.first)??new Set;gt.add(pt.second),it.set(pt.first,gt);let ut=it.get(pt.second)??new Set;ut.add(pt.first),it.set(pt.second,ut)}let mt=[],Rt=new Set;for(let pt of ot.edges){if(Rt.has(pt))continue;let gt=[pt],ut=[];for(Rt.add(pt);gt.length>0;){let Yt=gt.pop();ut.push(Yt);for(let Ye of it.get(Yt)??[])Rt.has(Ye)||(Rt.add(Ye),gt.push(Ye))}ut.sort((Yt,Ye)=>(C.get(Yt)??0)-(C.get(Ye)??0)),ut.length>1&&mt.push(ut)}return mt},"crossingComponents"),B=i(ot=>[ot.start,ot.end].filter(it=>!!it),"endpointIdsFor"),O=i(ot=>{let it=[];for(let mt of N(ot)){let Rt=new Set(mt),pt=new Set(mt.flatMap(ut=>B(ut))),gt=[...mt];for(let ut of T)Rt.has(ut)||B(ut).some(Yt=>pt.has(Yt))&>.push(ut);gt.sort((ut,Yt)=>(C.get(ut)??0)-(C.get(Yt)??0)),it.push(gt)}return it},"pairSearchGroups"),P=i((ot,it,mt)=>I(ot,new Map([[it,mt]])),"crossingCountWithSingleReplacement"),$=i(ot=>{let it=new Map;for(let mt of ot.pairs)it.set(mt.first,(it.get(mt.first)??0)+mt.count),it.set(mt.second,(it.get(mt.second)??0)+mt.count);return it},"currentCrossingsByEdge"),V=i(ot=>ot.slice(1).reduce((it,mt,Rt)=>{let pt=ot[Rt];return it+Math.abs(mt.x-pt.x)+Math.abs(mt.y-pt.y)},0),"pathLength"),Y=i((ot=new Map)=>T.reduce((it,mt)=>it+g2(S(mt,ot)),0),"totalBends"),Q=i((ot=new Map)=>T.reduce((it,mt)=>it+V(S(mt,ot)),0),"totalLength"),q=i((ot,it)=>tSr(ot,it,gTe.ROUTE_TOUCH_TOLERANCE),"touchesAtBend"),W=i((ot,it,mt=new Map)=>{let Rt=Tl(it);for(let pt of T)if(pt!==ot){for(let gt of Rt)for(let ut of Tl(S(pt,mt)))if(z4(gt,ut,.5)>=Tm)return!0;if(q(it,S(pt,mt)))return!0}return!1},"pathHasSegmentConflict"),H=i((ot,it)=>{let mt=[ot.start,ot.end].filter(Rt=>!!Rt);for(let Rt of Tl(it))if(af(Rt.a,Rt.b,m,mt,-2))return!0;return!1},"pathHitsNode"),re=i((ot,it)=>{let mt=ZT(Nl(it));Tl(mt).length===mt.length-1&&ot.push(mt)},"pushOrthogonalCandidate"),Z=i(ot=>ot==="left"||ot==="right","sideIsHorizontal"),X=i((ot,it,mt)=>{switch(it){case"left":return Math.min(ot.x,mt.x)-20;case"right":return Math.max(ot.x,mt.x)+20;case"top":return Math.min(ot.y,mt.y)-20;case"bottom":return Math.max(ot.y,mt.y)+20}},"localTrackForSameSide"),te=i((ot,it,mt,Rt)=>{let pt=mt==="left"||mt==="top"?-1:1,gt=[X(it,mt,Rt),v[mt]];for(let ut of gt)for(let Yt=0;Yt<=2;Yt++)re(ot,hTe(it,mt,Rt,ut+pt*20*Yt))},"addSameSideCandidates"),U=i((ot,it,mt,Rt,pt)=>{for(let gt of E(mt))for(let ut of E(pt))re(ot,[it,{x:gt,y:it.y},{x:gt,y:ut},{x:Rt.x,y:ut},Rt])},"addHorizontalToVerticalCandidates"),ne=i((ot,it,mt,Rt,pt)=>{for(let gt of E(mt))for(let ut of E(pt))re(ot,[it,{x:it.x,y:gt},{x:ut,y:gt},{x:ut,y:Rt.y},Rt])},"addVerticalToHorizontalCandidates"),se=i((ot,it,mt,Rt,pt)=>{let gt=[...E("top"),...E("bottom")];for(let ut of E(mt))for(let Yt of E(pt))for(let Ye of gt)re(ot,[it,{x:ut,y:it.y},{x:ut,y:Ye},{x:Yt,y:Ye},{x:Yt,y:Rt.y},Rt])},"addHorizontalPairCandidates"),he=i((ot,it,mt,Rt,pt)=>{let gt=[...E("left"),...E("right")];for(let ut of E(mt))for(let Yt of E(pt))for(let Ye of gt)re(ot,[it,{x:it.x,y:ut},{x:Ye,y:ut},{x:Ye,y:Yt},{x:Rt.x,y:Yt},Rt])},"addVerticalPairCandidates"),le=i(ot=>{let it=new Set;return ot.map(mt=>Nl(mt)).filter(mt=>{let Rt=mt.map(pt=>`${pt.x.toFixed(3)},${pt.y.toFixed(3)}`).join("|");return it.has(Rt)||mt.length<2?!1:(it.add(Rt),!0)})},"dedupeCandidatePaths"),pe=i((ot,it,mt,Rt)=>{let pt=[],gt=uTe(ot,it,mt,Rt,20,es);gt&&re(pt,gt),it===Rt&&te(pt,ot,it,mt);let ut=Z(it),Yt=Z(Rt);return ut&&!Yt?U(pt,ot,it,mt,Rt):!ut&&Yt?ne(pt,ot,it,mt,Rt):ut?se(pt,ot,it,mt,Rt):he(pt,ot,it,mt,Rt),le(pt)},"buildCandidatesForSides"),ge=i((ot,it,mt,Rt)=>{let pt=[...E("left"),...E("right")],gt=[...E("top"),...E("bottom")];for(let ut of b){let Yt=G_(Rt,ut),Ye=ut==="top"||ut==="bottom"?E(ut):gt;for(let Oe of pt){Z(ut)&&re(ot,[it,mt,{x:Oe,y:mt.y},{x:Oe,y:Yt.y},Yt]);for(let K of Ye)re(ot,[it,mt,{x:Oe,y:mt.y},{x:Oe,y:K},{x:Yt.x,y:K},Yt])}}},"addVerticalDepartureOuterTrackCandidates"),we=i((ot,it,mt,Rt)=>{let pt=[...E("left"),...E("right")],gt=[...E("top"),...E("bottom")];for(let ut of b){let Yt=G_(Rt,ut),Ye=ut==="left"||ut==="right"?E(ut):pt;for(let Oe of gt){Z(ut)||re(ot,[it,mt,{x:mt.x,y:Oe},{x:Yt.x,y:Oe},Yt]);for(let K of Ye)re(ot,[it,mt,{x:mt.x,y:Oe},{x:K,y:Oe},{x:K,y:Yt.y},Yt])}}},"addHorizontalDepartureOuterTrackCandidates"),Ae=i(ot=>{let it=ot.start,mt=ot.end,Rt=mt?d.get(mt):void 0;if(!it||!Rt)return[];let pt=Nl(ot.points??[]);if(pt.length<4)return[];let gt=pt[0],ut=pt[1],Yt=[];return Pd(gt,ut,es)?ge(Yt,gt,ut,Rt):Od(gt,ut,es)&&we(Yt,gt,ut,Rt),Yt},"terminalPreservingOuterTrackCandidates"),ve=i(ot=>{let it=ot.start,mt=ot.end,Rt=it?d.get(it):void 0,pt=mt?d.get(mt):void 0;if(!Rt||!pt)return[];let gt=[];for(let ut of b){let Yt=G_(Rt,ut);for(let Ye of b)gt.push(...pe(Yt,ut,G_(pt,Ye),Ye))}return gt.push(...Ae(ot)),gt},"candidatePathsFor"),Ie=i(()=>new Map(T.map(ot=>[ot,Tl(S(ot))])),"currentSegmentsByEdge"),De=i((ot,it,mt,Rt)=>{let pt=new Set;for(let gt of T){if(gt===ot)continue;let ut=Rt.get(gt)??Tl(S(gt));(mt.some(Yt=>ut.some(Ye=>z4(Yt,Ye,.5)>=Tm))||q(it,S(gt)))&&pt.add(gt)}return pt},"sharedTrackConflictsFor"),Be=i((ot,it,mt,Rt)=>{let pt=new Set;return ve(ot).map(ut=>ZT(Nl(ut))).filter(ut=>{if(H(ot,ut))return!1;let Yt=ut.map(Ye=>`${Ye.x.toFixed(3)},${Ye.y.toFixed(3)}`).join("|");return pt.has(Yt)||ut.length<2?!1:(pt.add(Yt),!0)}).map(ut=>{let Yt=Tl(ut),Ye=0;for(let Oe of T)Oe!==ot&&(Ye+=R(Yt,mt.get(Oe)??Tl(S(Oe))));return{candidate:ut,candidateSegments:Yt,crossings:it.count-(Rt.get(ot)??0)+Ye,bends:g2(ut,es),totalBends:g2(ut),length:V(ut)}}).filter(({crossings:ut})=>ut<=it.count).sort((ut,Yt)=>ut.crossings-Yt.crossings||ut.bends-Yt.bends||ut.length-Yt.length).slice(0,48).map(ut=>({path:ut.candidate,segments:ut.candidateSegments,sharedTrackConflicts:De(ot,ut.candidate,ut.candidateSegments,mt),totalBends:ut.totalBends,length:ut.length}))},"pairCandidatesFor"),Fe=i((ot,it,mt,Rt,pt,gt)=>{let ut=0;for(let Ye of ot.pairs)(Ye.first===it||Ye.second===it||Ye.first===Rt||Ye.second===Rt)&&(ut+=Ye.count);let Yt=R(mt.segments,pt.segments);for(let Ye of T){if(Ye===it||Ye===Rt)continue;let Oe=gt.get(Ye)??Tl(S(Ye));Yt+=R(mt.segments,Oe)+R(pt.segments,Oe)}return ot.count-ut+Yt},"pairCrossingCount"),ze=i((ot,it)=>{for(let mt of ot.sharedTrackConflicts)if(mt!==it)return!1;return!0},"conflictsOnlyWith"),vt=i((ot,it)=>ot.segments.some(mt=>it.segments.some(Rt=>z4(mt,Rt,.5)>=Tm))||q(ot.path,it.path),"candidatesShareTrack"),lt=i((ot,it,mt,Rt)=>ze(it,mt.edge)&&ze(Rt,ot.edge)&&!vt(it,Rt),"pairCandidatesAreCompatible"),Ft=i((ot,it,mt,Rt,pt)=>{let gt=Fe(ot.current,it.edge,mt,Rt.edge,pt,ot.baseSegments);if(!(gt>=ot.current.count))return{replacements:new Map([[it.edge,mt.path],[Rt.edge,pt.path]]),crossings:gt,bends:ot.currentBends-(ot.baseBendsByEdge.get(it.edge)??0)-(ot.baseBendsByEdge.get(Rt.edge)??0)+mt.totalBends+pt.totalBends,length:ot.currentLength-(ot.baseLengthByEdge.get(it.edge)??0)-(ot.baseLengthByEdge.get(Rt.edge)??0)+mt.length+pt.length}},"scorePairReplacement"),pr=i((ot,it)=>ot.crossings<it.crossings||ot.crossings===it.crossings&&(ot.bends<it.bends||ot.bends===it.bends&&ot.length<it.length),"pairScoreIsBetter"),tr=i((ot,it,mt,Rt)=>{let pt=Rt;for(let gt of it.candidates)for(let ut of mt.candidates){if(!lt(it,gt,mt,ut))continue;let Yt=Ft(ot,it,gt,mt,ut);Yt&&pr(Yt,pt)&&(pt=Yt)}return pt},"bestScoreForOptionPair"),Mt=i(ot=>{let it=Y(),mt=Q(),Rt=Ie(),pt=$(ot),gt=new Map(T.map(Te=>[Te,g2(S(Te))])),ut=new Map(T.map(Te=>[Te,V(S(Te))])),Yt=new Map,Ye=O(ot);for(let Te of Ye)for(let ce of Te){if(Yt.has(ce))continue;let Re=Be(ce,ot,Rt,pt);Re.length>0&&Yt.set(ce,{edge:ce,candidates:Re})}let Oe={replacements:new Map,crossings:ot.count,bends:it,length:mt},K={current:ot,currentBends:it,currentLength:mt,baseBendsByEdge:gt,baseLengthByEdge:ut,baseSegments:Rt};for(let Te of Ye){let ce=new Set(Te.filter(me=>ot.edgeSet.has(me))),Re=Te.map(me=>Yt.get(me)).filter(me=>!!me);for(let me=0;me<Re.length;me++){let be=Re[me];for(let ke=me+1;ke<Re.length;ke++){let We=Re[ke];!ce.has(be.edge)&&!ce.has(We.edge)||(Oe=tr(K,be,We,Oe))}}}return Oe.replacements.size>0?Oe.replacements:void 0},"bestPairedReplacement");for(let ot=0;ot<4;ot++){let it=_(),mt=it.count;if(mt===0)return;let Rt,pt,gt=mt,ut=Number.POSITIVE_INFINITY;for(let Ye of it.edges){let Oe=g2(S(Ye),es);for(let K of ve(Ye)){let Te=H(Ye,K),ce=!Te&&W(Ye,K),Re=P(it,Ye,K),me=g2(K,es);Te||ce||!(Re<mt||Re===mt&&me<Oe)||Re>gt||Re===gt&&me>=ut||(Rt=Ye,pt=K,gt=Re,ut=me)}}if(Rt&&pt){Rt.points=pt;continue}let Yt=Mt(it);if(!Yt)return;for(let[Ye,Oe]of Yt)Ye.points=Oe}}var es,Tm,ASr,Tl,Ctt,MSr=ae(()=>{"use strict";V4();j_();oP();es=.001,Tm=8,ASr=i(r=>typeof r=="string"?r.toUpperCase():"","upperCaseDirection"),Tl=ES,Ctt=i((r,t)=>Wl(r,t,es)||ic(r,t,es),"orthogonallyAligned");i(Ett,"separateSharedRenderedTerminalLanes");i(RSr,"collapseRedundantRectangularDoglegs");i(Stt,"liftObstacleHuggingSameSideRails");i(Att,"liftTopLaneTitleBandsAboveRails");i(Rtt,"shiftLeftLaneTitleBandsLeftOfRails");i(LSr,"swapDestinationTerminalTailsToReduceCrossings");i(_Sr,"reassignCrossingExternalRailChannels");i(DSr,"shortcutRedundantOrthogonalJogs");i(ISr,"resolveRenderedOrthogonalCrossings")});function NSr(r,t){let{nodeInfoById:a,realNodeRects:s}=HU(t),l=["top","bottom","left","right"],h=20,f={top:Math.min(...s.map(R=>R.rect.top))-h,bottom:Math.max(...s.map(R=>R.rect.bottom))+h,left:Math.min(...s.map(R=>R.rect.left))-h,right:Math.max(...s.map(R=>R.rect.right))+h},d=i((R,L,_,I)=>{let N=[],B=uTe(R,L,_,I,h,z_);return B&&N.push(B),L===I&&N.push(hTe(R,L,_,f[L])),N},"buildOrthogonalPathCandidates"),m=i((R,L)=>{for(let _=0;_<R.length-1;_++){let I=R[_],N=R[_+1];if(af(I,N,s,L,1))return!0}return!1},"pathHitsNode"),b=i((R,L,_=!1)=>{let I=0,N=ES(R,z_),B=L.start,O=L.end;for(let P of r){if(P===L||P.isLayoutOnly)continue;let $=P.start,V=P.end;if(!_&&B&&O&&($===B||$===O||V===B||V===O))continue;let Y=P.points;if(!(!Y||Y.length<2))for(let Q of N)for(let q of ES(Y,z_)){if(mtt(Q.a,Q.b,q.a,q.b,z_,z_)){I++;continue}z4(Q,q,z_)>=bqn&&I++}}return I},"pathConflictCount"),v=4,T=i((R,L)=>{let _=Math.abs(R.y-L.rect.top),I=Math.abs(R.y-L.rect.bottom),N=Math.abs(R.x-L.rect.left),B=Math.abs(R.x-L.rect.right),O="top",P=_;return I<P&&(O="bottom",P=I),N<P&&(O="left",P=N),B<P&&(O="right",P=B),O},"nearestSideOfRect"),C=new Map,E=i((R,L,_)=>{let I=C.get(R)??[];I.push({side:L,edgeId:_}),C.set(R,I)},"addFaceClaim");for(let R of r){if(R.isLayoutOnly)continue;let L=R.points??[];if(L.length<1)continue;let _=R.id??"",I=R.start,N=R.end;if(I){let B=a.get(I);B&&E(I,T(L[0],B),_)}if(N){let B=a.get(N);B&&E(N,T(L[L.length-1],B),_)}}let S=i((R,L,_)=>C.get(R)?.some(I=>I.edgeId!==_&&I.side===L)??!1,"faceIsClaimed");for(let R of r){if(R.isLayoutOnly)continue;let L=R.points;if(!L||L.length<2)continue;let _=g2(L,z_);if(_<v)continue;let I=R.start,N=R.end;if(!I||!N)continue;let B=a.get(I),O=a.get(N);if(!B||!O)continue;let P=R.id??"",$=b(L,R,!0),V=b(L,R),Y,Q=$,q=_;for(let W of l){if(S(I,W,P))continue;let H=G_(B,W);for(let re of l){if(S(N,re,P))continue;let Z=G_(O,re);for(let X of d(H,W,Z,re)){if(m(X,[I,N]))continue;let te=g2(X,z_);if($>0){let U=b(X,R,!0);if(U>Q||U===Q&&te>=q)continue;Q=U,q=te,Y=X;continue}b(X,R)>V||te<q&&(q=te,Y=X)}}}if(Y){R.points=Y;let W=C.get(I);W&&C.set(I,W.filter(re=>re.edgeId!==P));let H=C.get(N);H&&C.set(N,H.filter(re=>re.edgeId!==P)),E(I,T(Y[0],B),P),E(N,T(Y[Y.length-1],O),P)}}}var z_,bqn,OSr=ae(()=>{"use strict";V4();z_=.001,bqn=8;i(NSr,"simplifyDetouredEdges")});function BSr(r,t){let a=t?0:r.length-1,s=t?1:-1,l=r[a],h=r[a+s];if(!l||!h)return;let f=h.x-l.x,d=h.y-l.y;if(!(Math.abs(f)+Math.abs(d)<m2)){if(Math.abs(d)<=m2){let b=l.x+Math.sign(f)*PSr;return{left:Math.min(l.x,b),right:Math.max(l.x,b),top:l.y-yTe,bottom:l.y+yTe}}if(Math.abs(f)<=m2){let b=l.y+Math.sign(d)*PSr;return{left:l.x-yTe,right:l.x+yTe,top:Math.min(l.y,b),bottom:Math.max(l.y,b)}}return{left:Math.min(l.x,h.x),right:Math.max(l.x,h.x),top:Math.min(l.y,h.y),bottom:Math.max(l.y,h.y)}}}function vqn(r){return{left:Math.min(r.left,r.right),right:Math.max(r.left,r.right),top:Math.min(r.top,r.bottom),bottom:Math.max(r.top,r.bottom)}}function FSr(r,t){let a=Nl(t),s=BSr(a,!0),l=BSr(a,!1);return[s,l].some(h=>h&&cTe(r,vqn(h)))}function bTe(r,t){let a=[];for(let R of r){if(R.isLayoutOnly)continue;let L=R.points;if(!(!L||L.length<2))for(let _=0;_<L.length-1;_++)a.push({edgeId:R.id,p1:L[_],p2:L[_+1]})}let s=[],l=[],h=gy([...t.values()]);for(let R of t.values()){let L=R.isGroup;if(h.isLane(R.id)){let I=xm(R);I&&l.push({id:R.id,rect:I});continue}if(L||R.isEdgeLabel)continue;let _=xm(R);_&&s.push({nodeId:R.id,rect:_})}let f=3,d=1,m=12,b=i((R,L)=>{let _=gtt(L,f);for(let{nodeId:I,rect:N}of s)if(I!==R&&cTe(_,N))return!0;return!1},"labelOverlapsForeignNode"),v=i((R,L)=>{let _=gtt(L,f);for(let I of a)if(I.edgeId!==R&&Mne(I.p1,I.p2,_))return!0;return!1},"labelOverlapsForeignEdge"),T=i((R,L,_)=>b(R,_)||v(L,_),"labelOverlapsAnything"),C=[],E=i(R=>{for(let{id:L,rect:_}of l)if(rSr(_,R))return L},"findContainingLane"),S=i((R,L)=>C.some(_=>_.labelId!==R&&cTe(L,_.rect)),"overlapsPlacedLabel");for(let R of r){if(R.isLayoutOnly)continue;let L=R.labelNodeId;if(!L)continue;let _=t.get(L);if(!_)continue;let I=R.points;if(!I||I.length<2)continue;let N=_.width??0,B=_.height??0;if(N<=0||B<=0)continue;let O=[];for(let le=0;le<I.length-1;le++){let pe=I[le],ge=I[le+1],we=Math.abs(pe.x-ge.x),Ae=Math.abs(pe.y-ge.y);we<m2&&Ae<m2||we>=m2&&Ae>=m2||O.push({idx:le,length:we+Ae,orientation:we>=m2?"horizontal":"vertical",midX:(pe.x+ge.x)/2,midY:(pe.y+ge.y)/2})}if(O.length===0)continue;let P=O.length>=3?O.filter(le=>le.idx>0&&le.idx<O.length-1):O,$=P.length>0?P:O,V=N>=B?"horizontal":"vertical",Y=i(le=>[...le].sort((pe,ge)=>{let we=pe.orientation===V,Ae=ge.orientation===V;if(we!==Ae)return we?-1:1;let ve=pe.length>=(pe.orientation==="horizontal"?N:B)+2,Ie=ge.length>=(ge.orientation==="horizontal"?N:B)+2;return ve!==Ie?ve?-1:1:ge.length-pe.length}),"rankSegments"),Q=O[0],q=O[O.length-1],W=[.5,.25,.75,.05,.95,.15,.85,.1,.9],H=i((le,pe)=>{let ge=I[le.idx],we=I[le.idx+1];return{midX:ge.x+(we.x-ge.x)*pe,midY:ge.y+(we.y-ge.y)*pe}},"anchorAtT"),re=i((le,pe,ge)=>Math.min(ge,Math.max(pe,le)),"clamp"),Z=i((le,pe)=>le.midX>=pe.left-m2&&le.midX<=pe.right+m2&&le.midY>=pe.top-m2&&le.midY<=pe.bottom+m2,"pointInsideRectInclusive"),X=i(le=>{let pe=WU(le.midX,le.midY,N,B),ge=E(pe);if(ge)return{laneId:ge,anchor:le,rect:pe};let we=l.find(({rect:ze})=>Z(le,ze));if(!we)return;let Ae=we.rect.left+N/2+d,ve=we.rect.right-N/2-d,Ie=we.rect.top+B/2+d,De=we.rect.bottom-B/2-d;if(Ae>ve||Ie>De)return;let Be={midX:re(le.midX,Ae,ve),midY:re(le.midY,Ie,De)},Fe=WU(Be.midX,Be.midY,N,B);return Z(le,Fe)?{laneId:we.id,anchor:Be,rect:Fe}:void 0},"placementForAnchor"),te=i((le,pe,ge)=>le.orientation==="horizontal"?Math.abs(pe.midX-ge.x):Math.abs(pe.midY-ge.y),"distanceAlongSegment"),U=i((le,pe)=>{let we=(le.orientation==="horizontal"?N/2:B/2)+m;if(le===Q){let Ae=I[le.idx];if(te(le,pe,Ae)+m2<we)return!1}if(le===q){let Ae=I[le.idx+1];if(te(le,pe,Ae)+m2<we)return!1}return!0},"labelClearsTerminalEndpoints"),ne=i(le=>{let pe=Y(le);for(let ge of pe)for(let we of W){let Ae=H(ge,we);if(!U(ge,Ae))continue;let ve=X(Ae);if(ve&&!FSr(ve.rect,I)&&!S(L,ve.rect)&&!T(L,R.id,ve.rect))return{laneId:ve.laneId,anchor:ve.anchor}}},"tryPool"),se=i((le,pe,ge=!1)=>{let we=Y(le);for(let Ae of we){let ve={midX:Ae.midX,midY:Ae.midY};if(pe&&!U(Ae,ve))continue;let Ie=X(ve);if(Ie&&!FSr(Ie.rect,I)&&!S(L,Ie.rect)&&!b(L,Ie.rect)&&(ge||!v(R.id,Ie.rect)))return{laneId:Ie.laneId,anchor:Ie.anchor}}},"findLaneContainingFallback"),he=ne($)??($.length<O.length?ne(O):void 0)??se(O,!0)??se(O,!1)??se(O,!1,!0);if(he){_.x=he.anchor.midX,_.y=he.anchor.midY,_.parentId=he.laneId;let le=WU(he.anchor.midX,he.anchor.midY,N,B),pe=C.findIndex(ge=>ge.labelId===L);pe>=0?C[pe]={labelId:L,rect:le}:C.push({labelId:L,rect:le})}}}var m2,PSr,yTe,$Sr=ae(()=>{"use strict";V4();oP();m2=.001,PSr=10,yTe=7;i(BSr,"markerClearanceRectFor");i(vqn,"normalizeRect");i(FSr,"labelOverlapsOwnMarker");i(bTe,"anchorLabelsToPolyline")});function jSr(r,t,a,{cx:s,cy:l},h,f){let d={x:s,y:l},m=f==="x"?"y":"x",b=Math.sign(h[m]-d[m]);for(let v of r){if(v===t||v.isLayoutOnly||!v.points?.length)continue;if([...v.end===a?[v.points.at(-1)]:[],...v.start===a?[v.points[0]]:[]].some(C=>Math.sign(C[m]-d[m])===b&&Math.abs(C[f]-h[f])<gTe.MIN_ARROWHEAD_SPACING))return!0}return!1}function zSr(r,t){return r<t?`${r}::${t}`:`${t}::${r}`}function USr(r,t){let{nodeInfoById:a,realNodeRects:s}=HU(t),l=new Map;for(let f of t){let d=f.id;if(!f.isGroup&&f.isEdgeLabel){l.set(d,{w:f.width??0,h:f.height??0});continue}}let h=i((f,d,m,b)=>{let v=zSr(d,m),T=0,C=i(E=>{if(!E)return;let S=l.get(E);if(!S)return;let R=b==="x"?S.w/2:S.h/2;R>T&&(T=R)},"consider");C(f.labelNodeId);for(let E of r){if(E===f||E.isLayoutOnly)continue;let S=E.start,R=E.end;!S||!R||zSr(S,R)===v&&C(E.labelNodeId)}return T>0?T+xqn:0},"labelClearanceFor");for(let f of r){if(f.isLayoutOnly)continue;let d=f.points;if(!oTe(d,Ltt))continue;let m=fTe(f,a,Ltt);if(!m)continue;let{srcId:b,dstId:v,srcInfo:T,dstInfo:C,collinearX:E,collinearY:S}=m;if(E===S)continue;let R,L;if(E){let P=C.cy>T.cy;R={x:T.cx,y:P?T.rect.bottom:T.rect.top},L={x:C.cx,y:P?C.rect.top:C.rect.bottom}}else{let P=C.cx>T.cx;R={x:P?T.rect.right:T.rect.left,y:T.cy},L={x:P?C.rect.left:C.rect.right,y:C.cy}}if(af(R,L,s,[b,v],1))continue;let _=E?"x":"y",I=h(f,b,v,_),N=I>GSr?I:GSr,B=[0,N,-N],O;for(let P of B){let $={...R},V={...L};if(E){if($.x+=P,V.x+=P,$.x<=T.rect.left||$.x>=T.rect.right||V.x<=C.rect.left||V.x>=C.rect.right)continue}else if($.y+=P,V.y+=P,$.y<=T.rect.top||$.y>=T.rect.bottom||V.y<=C.rect.top||V.y>=C.rect.bottom)continue;if(af($,V,s,[b,v],1)||Nne($,V,r,f,{epsilon:Ltt}))continue;let Y=[$,V];if(jSr(r,f,b,T,$,_)||jSr(r,f,v,C,V,_)){O??=Y;continue}f.points=Y,O=void 0;break}O&&(f.points=O)}}var Ltt,wqn,GSr,xqn,VSr=ae(()=>{"use strict";j_();V4();Ltt=1e-6,wqn=8,GSr=wqn/2,xqn=3;i(jSr,"crowdsFaceNeighbour");i(zSr,"pairKey");i(USr,"straightenCollinearSiblingDetours")});function _tt(r,t){let{realNodeRects:b,labelNodeRects:v}=SS(t.values()),T=i((P,$)=>ES($,.001).map(V=>({...V,edge:P,interior:V.index>=1&&V.index<=$.length-3})),"segmentsFor"),C=i(()=>{let P=[];for(let $ of r){if($.isLayoutOnly)continue;let V=$.points;!V||V.length<2||P.push(...T($,Nl(V)))}return P},"allSegments"),E=i((P,$)=>P.horizontal&&$.horizontal?my(P.a.x,P.b.x,$.a.x,$.b.x)>=8&&Math.abs(P.a.y-$.a.y)<7:P.vertical&&$.vertical?my(P.a.y,P.b.y,$.a.y,$.b.y)>=8&&Math.abs(P.a.x-$.a.x)<7:!1,"hasCrowdedParallelTrack"),S=i((P,$)=>{let V=P.start,Y=P.end,Q=T(P,$);if(Q.length!==$.length-1)return!1;let q=[V,Y].filter(H=>!!H),W=P.labelNodeId?[P.labelNodeId]:[];for(let H of Q)if(af(H.a,H.b,b,q,-2)||af(H.a,H.b,v,W,-2))return!1;for(let H of r){if(H===P||H.isLayoutOnly)continue;let re=H.points;if(!(!re||re.length<2)){for(let Z of Q)for(let X of T(H,Nl(re)))if(E(Z,X)||U4(Z.a,Z.b,X.a,X.b,.001))return!1}}return!0},"candidateIsSafe"),R=i((P,$)=>{let V=Nl(P.edge.points??[]);if(V.length<4||P.index>=V.length-1)return;let Y=V.map(Q=>({...Q}));if(P.horizontal)Y[P.index].y+=$,Y[P.index+1].y+=$;else if(P.vertical)Y[P.index].x+=$,Y[P.index+1].x+=$;else return;return T(P.edge,Y).length===Y.length-1?Y:void 0},"shiftedCandidate"),L=i((P,$)=>({x:P.x??($.left+$.right)/2,y:P.y??($.top+$.bottom)/2}),"nodeCenter"),_=i(P=>{let $=P.edge,V=Nl($.points??[]);if(V.length!==4||P.index!==1)return;let Y=$.start?t.get($.start):void 0,Q=$.end?t.get($.end):void 0,q=Y?xm(Y):void 0,W=Q?xm(Q):void 0,H=V.slice(P.index+2);if(!(!Y||!Q||!q||!W||H.length===0))return{sourceCenter:L(Y,q),targetCenter:L(Q,W),sourceRect:q,tail:H}},"sourceDetourContextFor"),I=i((P,$,V,Y,Q,q)=>{let W=Y.y>=V.y,H=W?Q.bottom:Q.top,re=H+(W?20:-20);if(W&&P.b.y<=re+.001||!W&&P.b.y>=re-.001)return;let Z=P.a.x+$;return Nl([{x:V.x,y:H},{x:V.x,y:re},{x:Z,y:re},{x:Z,y:P.b.y},...q],.001)},"verticalSourceDetour"),N=i((P,$,V,Y,Q,q)=>{let W=Y.x>=V.x,H=W?Q.right:Q.left,re=H+(W?20:-20);if(W&&P.b.x<=re+.001||!W&&P.b.x>=re-.001)return;let Z=P.a.y+$;return Nl([{x:H,y:V.y},{x:re,y:V.y},{x:re,y:Z},{x:P.b.x,y:Z},...q],.001)},"horizontalSourceDetour"),B=i((P,$)=>{let V=_(P);if(V){if(P.vertical)return I(P,$,V.sourceCenter,V.targetCenter,V.sourceRect,V.tail);if(P.horizontal)return N(P,$,V.sourceCenter,V.targetCenter,V.sourceRect,V.tail)}},"sourceDetourCandidate"),O=[-7,7,-14,14,-21,21];for(let P=0;P<12;P++){let $=C(),V=!1;for(let Y=0;Y<$.length&&!V;Y++)for(let Q=Y+1;Q<$.length&&!V;Q++){let q=$[Y],W=$[Q];if(q.edge===W.edge||!E(q,W))continue;let H=[q,W].filter(re=>re.interior);for(let re of H){for(let Z of O){let X=R(re,Z);if(X&&S(re.edge,X)){re.edge.points=X,V=!0;break}let te=B(re,Z);if(te&&S(re.edge,te)){re.edge.points=te,V=!0;break}}if(V)break}}if(!V)return}}var WSr=ae(()=>{"use strict";V4();i(_tt,"nudgeSharedInteriorSubpaths")});function Tqn(r,t,a,s){let l=t.x-r.x,h=t.y-r.y,f=s.x-a.x,d=s.y-a.y,m=l*d-h*f;if(Math.abs(m)<1e-10)return!1;let b=a.x-r.x,v=a.y-r.y,T=(b*d-v*f)/m,C=(b*h-v*l)/m,E=.01;return T>E&&T<1-E&&C>E&&C<1-E}function Dtt(r){let t=r.nodes??[],a=r.edges??[],s=[];if(!a.length||!t.length)return s;let l=nSr(t),h=1,f=[];for(let m of a){if(m.isLayoutOnly)continue;let b=m.points;if(!b||b.length<2)continue;let v=m.start,T=m.end,C=m.labelNodeId,E=m.id??`${v}->${T}`;for(let S of l)if(!(S.nodeId===v||S.nodeId===T)&&!(C&&S.nodeId===C)){for(let R=0;R<b.length-1;R++)if(Mne(b[R],b[R+1],S,-h)){s.push({type:"edge-node-overlap",edgeId:E,targetId:S.nodeId,detail:`segment ${R} passes through node "${S.nodeId}"`});break}}for(let S=0;S<b.length-1;S++)f.push({edgeId:E,start:v,end:T,p1:b[S],p2:b[S+1]})}let d=new Set;for(let m=0;m<f.length;m++)for(let b=m+1;b<f.length;b++){let v=f[m],T=f[b];if(v.edgeId!==T.edgeId&&!(v.start===T.start||v.start===T.end||v.end===T.start||v.end===T.end)&&Tqn(v.p1,v.p2,T.p1,T.p2)){let C=v.edgeId<T.edgeId?`${v.edgeId}|${T.edgeId}`:`${T.edgeId}|${v.edgeId}`;d.has(C)||(d.add(C),s.push({type:"edge-edge-crossing",edgeId:v.edgeId,targetId:T.edgeId,detail:`edges "${v.edgeId}" and "${T.edgeId}" cross`}))}}if(s.length>0){let m=s.filter(v=>v.type==="edge-node-overlap").length,b=s.filter(v=>v.type==="edge-edge-crossing").length;Pe.warn(`[SWIMLANE_VALIDATE] ${s.length} issue(s) detected: ${m} edge-node overlap(s), ${b} edge crossing(s)`);for(let v of s)Pe.warn(`[SWIMLANE_VALIDATE] ${v.type}: ${v.detail}`)}return s}var HSr=ae(()=>{"use strict";Yn();V4();i(Tqn,"segmentsIntersect");i(Dtt,"validateSwimlanesLayout")});function qSr(r,t){let a=r.nodes??[],s=r.edges??[],l=a.filter(d=>!d.isGroup);if((t==="LR"||t==="RL")&&l.length>0&&!xSr(r,t)||t==="BT"&&l.length>0&&!wSr(r))return;for(let d of s){if(d.isLayoutOnly)continue;let m=d.points;!m||m.length<2||(d.points=ZT(One(m)))}NSr(s,a),USr(s,a),TSr(s,a);let h=new Map;for(let d of a)h.set(String(d.id),d);bTe(s,h),gSr(s,h),CSr(s,h),_tt(s,h),Ett(s,h),RSr(s,h),Stt(s,h),LSr(s,h);let f=i(()=>{ISr(s,h),Ett(s,h),_Sr(s,h),DSr(s,h),bTe(s,h),wtt(s,h),Stt(s,h),bTe(s,h),wtt(s,h)},"finalizeRenderedEdges");f(),_tt(s,h),f(),Att(s,h,t),Rtt(s,h,t),Att(s,h,t),Rtt(s,h,t)}var YSr=ae(()=>{"use strict";ySr();V4();ktt();kSr();ESr();MSr();OSr();$Sr();VSr();WSr();HSr();i(qSr,"postProcessSwimlaneLayout")});function y2(r){let t=new Map(r.nodeById),a=new Set,s=[];for(let h of r.edges){if(!t.has(h.src)||!t.has(h.dst))continue;let f=`${h.id}:${h.src}->${h.dst}`;a.has(f)||(a.add(f),s.push(h))}return{nodes:[...t.keys()],edges:s,layout:r.layout,nodeById:t}}function vTe(r,t){return r.edges.filter(a=>a.dst===t)}function kqn(r){let t=new Map;for(let a of r.nodes)t.set(a,[]);for(let a of r.edges)t.get(a.src).push(a.dst);return t}function Itt(r){let t=kqn(r);for(let a of t.values())a.sort((s,l)=>s.localeCompare(l));return t}function Pne(r){let t=new Map;for(let a of r.nodes)t.set(a,0);for(let a of r.edges)t.set(a.dst,(t.get(a.dst)??0)+1);return t}function Mtt(r,t){let a=[...t.entries()].filter(([,d])=>d===0).map(([d])=>d).sort((d,m)=>d.localeCompare(m)),s=new Set(r.edges.flatMap(d=>[d.src,d.dst])),l=i(d=>!s.has(d)&&!r.nodeById.get(d)?.isGroup,"isUnconnected"),h=[...t.keys()].filter(d=>t.get(d)===0&&l(d)),f=0;return a.map(d=>l(d)?h[f++]:d)}function qU(r,t=()=>!0){let a=new Map,s=new Map;for(let l of r.nodes)a.set(l,[]),s.set(l,[]);for(let l of r.edges)t(l)&&(s.get(l.src).push(l.dst),a.get(l.dst).push(l.src));return{preds:a,succs:s}}function wTe(r,t,a,s){let l=0;for(let f of r.nodes)s?.skipGroups&&r.nodeById.get(f)?.isGroup||(l=Math.max(l,a[f]??0));let h=Array.from({length:l+1},()=>[]);for(let f of t)s?.skipGroups&&r.nodeById.get(f)?.isGroup||h[Math.max(0,a[f]??0)].push(f);return h}function U_(r){let t=Pne(r),a=Mtt(r,t),s=[],l=Itt(r);for(;a.length;){let h=a.shift();s.push(h);for(let f of l.get(h)??[])if(t.set(f,(t.get(f)??0)-1),(t.get(f)??0)===0){let d=0;for(;d<a.length&&a[d]<f;)d++;a.splice(d,0,f)}}return s.length===r.nodes.length?s:null}function uP(r){let t=new Map,a=0;for(let s of r)t.set(s,a),a++;return t}function xTe(r){let t=new Array(r.length),a=i((s,l)=>{if(l-s<=1)return 0;let h=s+l>>1,f=a(s,h)+a(h,l),d=s,m=h,b=s;for(;d<h||m<l;)m>=l||d<h&&r[d]<=r[m]?t[b++]=r[d++]:(t[b++]=r[m++],f+=h-d);for(let v=s;v<l;v++)r[v]=t[v];return f},"count");return a(0,r.length)}var AS=ae(()=>{"use strict";i(y2,"normalizeGraph");i(vTe,"incoming");i(kqn,"buildSuccessorMap");i(Itt,"buildSortedSuccessorMap");i(Pne,"buildInDegreeMap");i(Mtt,"sortedZeroInDegreeNodes");i(qU,"buildPredecessorSuccessorMaps");i(wTe,"buildLayersFromRanks");i(U_,"topoSortIfAcyclic");i(uP,"buildLayerIndex");i(xTe,"countInversions")});function XSr(r){let t=y2(r),a=new Map;for(let T of t.nodes)a.set(T,[]);for(let T of t.edges)a.get(T.src).push(T);for(let T of a.values())T.sort((C,E)=>C.dst===E.dst?C.id.localeCompare(E.id):C.dst.localeCompare(E.dst));let s=Object.create(null);for(let T of t.nodes)s[T]=0;let l=[],h=i(T=>{s[T]=1;for(let C of a.get(T)??[]){let E=C.dst;s[E]===0?h(E):s[E]===1&&l.push(C)}s[T]=2},"dfs"),f=Pne(t),d=[...t.nodes.filter(T=>(f.get(T)??0)===0),...t.nodes.filter(T=>(f.get(T)??0)!==0)];for(let T of d)s[T]===0&&h(T);let m=new Set(l.map(T=>`${T.id}:${T.src}->${T.dst}`)),b=t.edges.map(T=>m.has(`${T.id}:${T.src}->${T.dst}`)?{id:T.id,src:T.dst,dst:T.src,weight:T.weight,ref:T.ref}:T);return{acyclic:{nodes:[...t.nodes],edges:b,layout:t.layout,nodeById:new Map(t.nodeById)},reversed:l}}var KSr=ae(()=>{"use strict";AS();i(XSr,"removeCycles_DFS")});function Cqn(r){let t=gy(r.layout.nodes??[]),a=new Map;for(let s of r.nodes)a.set(s,t.laneIdOf(s));return a}function yy(r){let t=Cqn(r);return a=>t.get(a)??null}function TTe(r){let t=r.layout.nodes??[],a=gy(t),s=t.filter(f=>a.isLane(f.id)),l=s.filter(f=>nTe(f)!==void 0);if(l.length>0&&l.length===s.length)return[...l].sort((f,d)=>(nTe(f)??0)-(nTe(d)??0)).map(f=>f.id);if(!a.hasPools)return[...new Set(s.map(f=>f.id))].reverse();let h=[];for(let f of t)f.parentId||(a.isPool(f.id)?h.push(...a.lanesByPool.get(f.id)??[]):a.isLane(f.id)&&h.push(f.id));return[...new Set(h)].reverse()}function kTe(r,t){let a=TTe(r);if(!t||t.length===0)return a;let s=new Set(a),l=new Set,h=[];for(let f of t)!s.has(f)||l.has(f)||(l.add(f),h.push(f));for(let f of a)l.has(f)||h.push(f);return h}var XA=ae(()=>{"use strict";oP();i(Cqn,"buildTopLaneMap");i(yy,"createTopLaneResolver");i(TTe,"buildTopLaneOrder");i(kTe,"resolveTopLaneOrder")});function JSr(r,t){let a=y2(r),s=t?.laneOf??(()=>null),l=t?.rankHint,{preds:h}=qU(a);for(let O of h.values())O.sort((P,$)=>P.localeCompare($));let f=U_(a)??[...a.nodes].sort((O,P)=>O.localeCompare(P)),d=new Map;for(let[O,P]of f.entries())d.set(P,O);let m=new Map,b=new Map;for(let O of a.nodes)b.set(O,[]);for(let O of f){let P=(h.get(O)??[]).filter($=>m.has($));if(P.length>0){let $=Eqn(O,P,{laneOf:s,rankHint:l,topoIndex:d});m.set(O,$),b.get($).push(O)}else m.has(O)||m.set(O,null)}for(let O of a.nodes)m.has(O)||m.set(O,null);let v=new Set;for(let O of a.nodes)(m.get(O)??null)===null&&v.add(O);let T=[...v].sort((O,P)=>{let $=d.get(O)??0,V=d.get(P)??0;return $===V?O.localeCompare(P):$-V}),C=Sqn(a),E=new Map;for(let[O,P]of C.entries())E.set(O,[...P].sort(($,V)=>$.localeCompare(V)));let S=Aqn(E),R=Rqn(E),L=new Map;for(let O of a.nodes)L.set(O,[]);for(let O of R)for(let P of O.nodes){let $=L.get(P);$?$.push(O.id):L.set(P,[O.id])}let _=[],I=[],N=new Set,B=i(O=>{if(!N.has(O)){N.add(O),_.push(O);for(let P of b.get(O)??[])B(P);I.push(O)}},"walk");for(let O of T)B(O);for(let O of f)B(O);return{parent:m,children:b,roots:T,componentOf:S,blocks:R,nodeBlocks:L,adjacency:E,preorder:_,postorder:I,topologicalOrder:f}}function Eqn(r,t,a){let s=a.laneOf(r);return[...t].sort((h,f)=>{let d=a.laneOf(h),m=a.laneOf(f),b=d!=null&&d===s,v=m!=null&&m===s;if(b!==v)return b?-1:1;let T=a.rankHint?.[h],C=a.rankHint?.[f];if(T!=null&&C!=null&&T!==C)return C-T;let E=a.topoIndex.get(h)??0,S=a.topoIndex.get(f)??0;return E!==S?E-S:h.localeCompare(f)})[0]}function Sqn(r){let t=new Map;for(let a of r.nodes)t.set(a,new Set);for(let a of r.edges)t.get(a.src).add(a.dst),t.get(a.dst).add(a.src);return t}function Aqn(r){let t=new Map,a=0;for(let s of r.keys()){if(t.has(s))continue;let l=[s];for(;l.length>0;){let h=l.pop();if(!t.has(h)){t.set(h,a);for(let f of r.get(h)??[])t.has(f)||l.push(f)}}a++}return t}function Rqn(r){let t=new Map,a=new Map,s=[],l=[],h=0,f=i((d,m)=>{t.set(d,++h),a.set(d,h);for(let b of r.get(d)??[])b!==m&&(t.has(b)?(t.get(b)??0)<(t.get(d)??0)&&(s.push([d,b]),a.set(d,Math.min(a.get(d)??h,t.get(b)??h))):(s.push([d,b]),f(b,d),a.set(d,Math.min(a.get(d)??h,a.get(b)??h)),(a.get(b)??0)>=(t.get(d)??0)&&l.push(Lqn(d,b,s,l.length))))},"visit");for(let d of r.keys())t.has(d)||f(d,null);return l}function Lqn(r,t,a,s){let l=[],h=new Set;for(;a.length>0;){let f=a.pop();if(l.push(f),h.add(f[0]),h.add(f[1]),f[0]===r&&f[1]===t||f[0]===t&&f[1]===r)break}return{id:s,edges:l,nodes:[...h]}}var QSr=ae(()=>{"use strict";AS();i(JSr,"buildDrivingTree");i(Eqn,"chooseParent");i(Sqn,"buildAdjacency");i(Aqn,"assignComponents");i(Rqn,"computeBlocks");i(Lqn,"popBlock")});function ZSr(r,t,a){let s=[...r.nodes],l=new Map;for(let[I,N]of s.entries())l.set(N,I);let h=s.length,f=new Array(h).fill(-1),d=new Array(h).fill(0),m=[],b=new Set;for(let I of s){let N=a.parent.get(I)??null,B=l.get(I);B!=null&&N==null&&(f[B]=-1,d[B]=0,b.has(I)||(b.add(I),m.push(I)))}for(;m.length>0;){let I=m.shift(),N=l.get(I);if(N==null)continue;let B=a.children.get(I)??[];for(let O of B){if(b.has(O))continue;let P=l.get(O);P!=null&&(f[P]=N,d[P]=d[N]+1,b.add(O),m.push(O))}}for(let I of s){if(b.has(I))continue;let N=l.get(I);N!=null&&(f[N]=-1,d[N]=0,b.add(I))}let v=Math.max(1,Math.ceil(Math.log2(Math.max(1,h)))+1),T=Array.from({length:v},()=>new Array(h).fill(-1));for(let I=0;I<h;I++)T[0][I]=f[I];for(let I=1;I<v;I++)for(let N=0;N<h;N++){let B=T[I-1][N];T[I][N]=B===-1?-1:T[I-1][B]}let C=i((I,N)=>{if(I===-1||N===-1)return-1;d[I]<d[N]&&([I,N]=[N,I]);let B=d[I]-d[N];for(let O=0;O<v;O++)if(B>>O&1&&(I=T[O][I],I===-1))return-1;if(I===N)return I;for(let O=v-1;O>=0;O--){let P=T[O][I],$=T[O][N];P===-1||$===-1||P!==$&&(I=P,N=$)}return T[0][I]},"lcaIndex"),E=Array.from({length:h},()=>new Map);for(let I of r.edges){let N=I.src,B=I.dst,O=t[N],P=t[B];if(O==null||P==null||(O>P&&([N,B]=[B,N],[O,P]=[P,O]),O==null||P==null||O===P))continue;let $=l.get(N),V=l.get(B);if($==null||V==null)continue;let Y=C($,V);if(Y===-1)continue;let Q=E[Y];for(let q=O;q<P;q++)Q.set(q,(Q.get(q)??0)+1)}let S=new Map,R=i((I,N)=>{if(N.size!==0)for(let[B,O]of N)I.set(B,(I.get(B)??0)+O)},"mergeInto"),L=new Set,_=i(I=>{let N=l.get(I);L.add(I);let B=N==null?void 0:E[N],O=B?new Map(B):new Map,P=a.children.get(I)??[];for(let $ of P){let V=_($),Y=t[I];if(Y!=null){let Q=S.get(I);Q||(Q=new Map,S.set(I,Q));let q=V.get(Y)??0,W=t[$];W!=null&&W>Y&&(q+=1),Q.set($,q)}R(O,V)}return O},"dfs");for(let I of a.roots)L.has(I)||_(I);for(let I of s)L.has(I)||_(I);return S}var e5r=ae(()=>{"use strict";i(ZSr,"computeSubtreeCrossCounts")});function t5r(r,t,a){let s=new Map,l=i(h=>{let f=a[h]??0,d=[...t.get(h)??[]];d.sort(Ntt(a));for(let m of d){l(m);let b=s.get(m);b!=null&&(f=Math.min(f,b))}s.set(h,f)},"annotate");for(let h of r)l(h);return s}function Ntt(r){return(t,a)=>{let s=r[t]??0,l=r[a]??0;return s===l?t.localeCompare(a):s-l}}function r5r(r,t,a,s){let l=0;for(let m of t){let b=a[m]??0;b>l&&(l=b)}let h=Array.from({length:l+1},()=>[]),f=new Set,d=i(m=>{if(f.has(m))return;f.add(m);let b=a[m]??0;h[b]||(h[b]=[]),h[b].push(m);for(let v of s(m))d(v)},"emit");for(let m of r)d(m);for(let m of t)if(!f.has(m)){let b=a[m]??0;h[b]||(h[b]=[]),h[b].push(m),f.add(m)}return h}function n5r(r){let t=[];for(let a of r){let s=new Set,l=[];for(let h of a)s.has(h)||(s.add(h),l.push(h));t.push(l)}return t}var i5r=ae(()=>{"use strict";i(t5r,"annotateMinimumLayers");i(Ntt,"compareByRankThenId");i(r5r,"emitNodesInTreeOrder");i(n5r,"deduplicateLayers")});function _qn(r,t,a,s){return l=>{let h=r.get(l)??[];if(h.length===0)return[];let f=t[l]??0,d=[],m=[],b=a.get(l);for(let v of h){let T=s.get(v)??f;T>f?d.push({child:v,min:T}):m.push(v)}return d.sort((v,T)=>v.min===T.min?v.child.localeCompare(T.child):v.min-T.min),m.sort((v,T)=>{let C=b?.get(v)??0,E=b?.get(T)??0;if(C!==E)return C-E;let S=s.get(v)??f,R=s.get(T)??f;return S!==R?S-R:v.localeCompare(T)}),[...d.map(v=>v.child),...m]}}function Bne(r,t,a){let s=JSr(r,{rankHint:t,laneOf:a}),{children:l,roots:h}=s;for(let T of r.nodes)l.has(T)||l.set(T,[]);let f=ZSr(r,t,s),d=[...h].sort(Ntt(t)),m=t5r(d,l,t),b=_qn(l,t,f,m),v=r5r(d,r.nodes,t,b);return v=n5r(v),v}var Ott=ae(()=>{"use strict";QSr();e5r();i5r();i(_qn,"createChildOrderer");i(Bne,"buildMultitreeLayerOrder")});function Dqn(r,t,a){let s=new Set(r),l=new Set(t),h=uP(t),f=[];for(let d of a)s.has(d.src)&&l.has(d.dst)&&f.push(h.get(d.dst));return xTe(f)}function a5r(r,t,a){let s=[];for(let h of t){let f=a[h.src],d=a[h.dst];if(f==null||d==null||f===d)continue;let m=h.src,b=h.dst,v=f,T=d;f>d&&(m=h.dst,b=h.src,v=d,T=f);for(let C=v;C<T;C++)s.push({id:`${h.id}@${C}`,src:m,dst:b,ref:h.ref})}let l=0;for(let h=0;h+1<r.length;h++)l+=Dqn(r[h],r[h+1],s);return l}function s5r(r,t){let a={...t},{preds:s}=qU(r),l=yy(r),h=Bne(r,a,l),f=a5r(h,r.edges,a),d=cP.MAX_CROSSING_OPTIMIZATION_PASSES;for(let m=0;m<d;m++){let b=!1,v=[...r.nodes].sort((T,C)=>(a[C]??0)-(a[T]??0));for(let T of v){let C=a[T]??0;if(C===0)continue;let E=0;for(let _ of s.get(T)??[])E=Math.max(E,(a[_]??0)+1);if(E>=C)continue;let S=C;a[T]=E;let R=Bne(r,a,l),L=a5r(R,r.edges,a);L<f?(f=L,b=!0):a[T]=S}if(!b)break}return a}var o5r=ae(()=>{"use strict";AS();j_();XA();Ott();i(Dqn,"countCrossingsBetweenAdjacent");i(a5r,"totalCrossings");i(s5r,"optimizeRanksByCrossings")});function l5r(r,t){let a=yy(r),s=[...r.nodes].sort((l,h)=>(t[l]??0)-(t[h]??0)||l.localeCompare(h));for(let l of s){let h=a(l);if(!h)continue;let f=r.edges.filter(R=>R.src===l);if(f.length===0)continue;let d=!1,m=0;for(let R of f){let L=a(R.dst);L==null||L===h?d=!0:m++}if(m===0||d)continue;let b=0,v=!1;for(let R of r.edges){if(R.dst!==l)continue;let L=a(R.src);L&&(L===h?v=!0:b++)}if(b>0||!v)continue;let T=t[l]??0,C=T+m,E=0;for(let R of r.edges)R.dst===l&&(E=Math.max(E,(t[R.src]??0)+1));let S=Math.max(T,E,C);S!==T&&(t[l]=S)}}var c5r=ae(()=>{"use strict";XA();i(l5r,"adjustCrossLaneSources")});function u5r(r,t){let a=y2(r),s=U_(a)??[...a.nodes].sort(),l=t?.compactSingleInput??!1,h=yy(a),f=Object.create(null);for(let m of s){let b=vTe(a,m),v=t?.ignoreCrossLaneEdges?b.filter(T=>{let C=h(T.src),E=h(m);return!C||!E?!0:C===E}):b;if(v.length===0)f[m]=0;else if(l&&v.length===1){let T=v[0].src,C=h(T),E=h(m);C!==E?f[m]=f[T]??0:f[m]=(f[T]??0)+1}else{let T=-1/0;for(let C of v)T=Math.max(T,(f[C.src]??0)+1);f[m]=T===-1/0?0:T}}return(t?.optimizeRanksByCrossings??!1)&&(f=s5r(a,f)),t?.ignoreCrossLaneEdges&&l5r(a,f),{layers:Bne(a,f,h),rankOf:f,dummy:new Set}}var h5r=ae(()=>{"use strict";AS();XA();o5r();c5r();Ott();i(u5r,"assignLayers_LongestPath")});function f5r(r,t){let a=y2(r),l={...u5r(a,{compactSingleInput:t?.compactSingleInput,ignoreCrossLaneEdges:t?.ignoreCrossLaneEdges,optimizeRanksByCrossings:t?.optimizeRanksByCrossings}).rankOf},h=yy(a),{preds:f,succs:d}=qU(a,S=>{if(t?.ignoreCrossLaneEdges){let R=h(S.src),L=h(S.dst);if(R&&L&&R!==L)return!1}return!0}),m=U_(a)??[...a.nodes],b=[...m].reverse(),v=i((S,R)=>{let L=0;for(let N of f.get(S)??[])L=Math.max(L,(l[N]??0)+1);let _=Number.POSITIVE_INFINITY,I=d.get(S)??[];return I.length>0&&(_=Math.min(...I.map(N=>(l[N]??0)-1))),Number.isFinite(_)||(_=Math.max(L,R)),Math.min(Math.max(R,L),_)},"clampFeasible"),T=cP.GRAVITY_ITERATIONS,C=i(S=>{let R=!1;for(let L of S){let _=f.get(L)??[],I=d.get(L)??[];if(_.length===0&&I.length===0)continue;let N=_.length>0?_.reduce(($,V)=>$+(l[V]??0)+1,0)/_.length:l[L]??0,B=I.length>0?I.reduce(($,V)=>$+(l[V]??0)-1,0)/I.length:l[L]??0,O=Math.round((N+B)/2),P=v(L,O);P!==l[L]&&(l[L]=P,R=!0)}return R},"relaxOrder");for(let S=0;S<T;S++){let R=C(m),L=C(b);if(!R&&!L)break}for(let S of m){let R=0;for(let L of f.get(S)??[])R=Math.max(R,(l[L]??0)+1);(l[S]??0)<R&&(l[S]=R)}for(let S of b){let R=d.get(S)??[];if(R.length>0){let L=Math.min(...R.map(_=>(l[_]??0)-1));(l[S]??0)>L&&(l[S]=L)}}return{layers:wTe(a,m,l),rankOf:l,dummy:new Set}}var d5r=ae(()=>{"use strict";AS();XA();j_();h5r();i(f5r,"assignLayers_Gravity")});function Iqn(r){let t=Pne(r),a=Itt(r),s=Mtt(r,t),l=[];for(;s.length>0;){let h=[];for(let f of s){l.push(f);for(let d of a.get(f)??[])t.set(d,(t.get(d)??0)-1),(t.get(d)??0)===0&&h.push(d)}s=h.sort((f,d)=>f.localeCompare(d))}return l.length===r.nodes.length?l:null}function p5r(r,t){let a=y2(r),s=t?.direction==="LR"?Iqn(a)??[...a.nodes].sort():U_(a)??[...a.nodes].sort(),l=yy(a),h=i(v=>l(v)??v,"laneOf"),f=Object.create(null),d=new Map,m=i((v,T)=>t?.ignoreCrossLaneEdges??!0?h(v)===h(T)?1:0:1,"edgeWeight");for(let v of s){if(a.nodeById.get(v)?.isGroup)continue;let C=vTe(a,v),E=0;if(C.length>0)for(let _ of C){let I=_.src,N=f[I]??0;E=Math.max(E,N+m(I,v))}let S=h(v),R=d.get(S)??0,L=Math.max(E,R);f[v]=L,d.set(S,L+1)}return{layers:wTe(a,s,f,{skipGroups:!0}),rankOf:f,dummy:new Set}}var g5r=ae(()=>{"use strict";AS();XA();i(Iqn,"topoSortByGenerationIfAcyclic");i(p5r,"assignLayers_LaneAwareCompact")});function m5r(r,t){let a=y2(t),{rankOf:s}=r,l=r.layers.map(E=>[...E]),h=new Set(r.dummy?[...r.dummy]:[]),f=0,d=new Map(a.nodeById),m=i(E=>{let S=`placeholder-${f++}`,R={id:S,isGroup:!1,isDummy:!0,width:0,height:0};for(d.set(S,R),h.add(S);l.length<=E;)l.push([]);return l[E].push(S),s[S]=E,S},"addDummyAt"),b=[...a.edges].sort((E,S)=>E.id===S.id?E.src===S.src?E.dst.localeCompare(S.dst):E.src.localeCompare(S.src):E.id.localeCompare(S.id)),v=[];for(let E of b){let S=s[E.src]??0,R=s[E.dst]??0;if(R-S<=1){v.push(E);continue}let L=E.src;for(let I=S+1,N=0;I<R;I++,N++){let B=m(I);v.push({id:`${E.id}#${N}`,src:L,dst:B,weight:E.weight,ref:E.ref}),L=B}let _=R-S-2;v.push({id:`${E.id}#${Math.max(_+1,0)}`,src:L,dst:E.dst,weight:E.weight,ref:E.ref})}let C={nodes:[...a.nodes,...[...h].filter(E=>!a.nodes.includes(E))],edges:v,layout:a.layout,nodeById:d};return{layering:{layers:l,rankOf:s,dummy:h},graphWithDummies:C}}var y5r=ae(()=>{"use strict";AS();i(m5r,"makeProperLayering")});function b5r(r){let t=r.length;if(t===0)return Number.POSITIVE_INFINITY;let a=[...r].sort((s,l)=>s-l);return t%2===1?a[(t-1)/2]:.5*(a[t/2-1]+a[t/2])}function v5r(r){return r.length===0?Number.POSITIVE_INFINITY:r.reduce((a,s)=>a+s,0)/r.length}function Mqn(r,t,a,s){let l=new Map;for(let h of r)l.set(h,[]);for(let h of a)s==="down"?t.has(h.src)&&l.has(h.dst)&&l.get(h.dst).push(t.get(h.src)):t.has(h.dst)&&l.has(h.src)&&l.get(h.src).push(t.get(h.dst));return l}function Nqn(r,t,a){let s=a.get(r)??0,l=a.get(t)??0;return s!==l?s-l:r.localeCompare(t)}function w5r(r,t,a){let s=new Set(r),l=new Set(t),h=uP(r),f=uP(t),d=[];for(let b of a)s.has(b.src)&&l.has(b.dst)&&d.push({u:h.get(b.src),v:f.get(b.dst)});d.sort((b,v)=>b.u===v.u?b.v-v.v:b.u-v.u);let m=d.map(b=>b.v);return xTe(m)}function Ptt(r,t,a){return[...r].sort((s,l)=>{let h=b5r(t.get(s)??[]),f=b5r(t.get(l)??[]);return h===f?Nqn(s,l,a):isFinite(h)?isFinite(f)?h-f:-1:1})}function x5r(r,t,a,s,l,h){let f=uP(r),d=uP(t),m=Mqn(t,f,a,s);if(!l||!h||h.length===0)return Ptt(t,m,d);let b=new Map;for(let C of t){let E=l(C),S=b.get(E)??[];S.push(C),b.set(E,S)}let v=[];for(let C of h){let E=b.get(C);if(!E||E.length===0)continue;let S=Ptt(E,m,d);v.push(...S)}let T=b.get(null);if(T&&T.length>0){let C=Ptt(T,m,d);for(let E of C){let S=v5r(m.get(E)??[]),R=v.length;if(isFinite(S))for(let[L,_]of v.entries()){let I=v5r(m.get(_)??[]);if(S<I){R=L;break}}v.splice(R,0,E)}}return v}function T5r(r,t,a,s,l){let h=[...t],f=new Set(r),d=new Set(t),m=s?new Set(s):null,b=a.filter(R=>f.has(R.src)&&d.has(R.dst)),v=m?a.filter(R=>d.has(R.src)&&m.has(R.dst)):void 0,T=i(R=>{let L=w5r(r,R,b);return v&&s&&(L+=w5r(R,s,v)),L},"crossingScore"),C=l?new Map:null;if(l&&C)for(let R of t)C.set(R,l(R));let E=!0,S=T(h);for(;E;){E=!1;for(let R=0;R+1<h.length;R++){if(C){let I=C.get(h[R]),N=C.get(h[R+1]);if(I!==N)continue}let L=S;[h[R],h[R+1]]=[h[R+1],h[R]];let _=T(h);_<L?(S=_,E=!0):[h[R],h[R+1]]=[h[R+1],h[R]]}}return h}function k5r(r,t,a){let s=r.layers.map(d=>[...d]),l=t.edges,h=yy(t),f=kTe(t,a?.laneOrder);for(let d=0;d<3;d++){for(let m=1;m<s.length;m++)s[m]=x5r(s[m-1],s[m],l,"down",h,f),s[m]=T5r(s[m-1],s[m],l,s[m+1],h);for(let m=s.length-2;m>=0;m--)s[m]=x5r(s[m+1],s[m],l,"up",h,f),s[m]=T5r(s[m+1],s[m],l,s[m-1],h)}return{layers:s}}var C5r=ae(()=>{"use strict";AS();XA();i(b5r,"median");i(v5r,"barycenter");i(Mqn,"neighborPositionsFor");i(Nqn,"currentOrderTieBreak");i(w5r,"countCrossingsBetweenAdjacent");i(Ptt,"sortByHeuristic");i(x5r,"reorderLayer");i(T5r,"transposeImprove");i(k5r,"orderLayers")});function E5r(r,t,a){let s=a?.layerGap??mTe.DEFAULT_LAYER_GAP,l=a?.nodeGap??mTe.DEFAULT_NODE_GAP,h=a?.laneGap??l*2,f=a?.direction??"TB",d=f==="LR"||f==="RL",m=Object.create(null),b=Object.create(null),v=new Map((t.layout?.nodes??[]).filter(ge=>ge.isEdgeLabel).map(ge=>[ge.id,ge])),T=i(ge=>v.get(ge)??t.nodeById.get(ge),"getNode"),C=i(ge=>T(ge)?.width??0,"getWidth"),E=i(ge=>T(ge)?.height??0,"getHeight"),S=yy(t),R=new Map,L=i(ge=>R.has(ge)?R.get(ge)??null:S(ge),"topLaneOf"),_=kTe(t,a?.laneOrder),I=new Set;for(let ge of r.layers)for(let we of ge)I.add(S(we));let N=I.has(null),B=_.filter(ge=>I.has(ge)),O=[...N?[null]:[],...B],P=r.layers,$=new Map;for(let[ge,we]of P.entries())for(let Ae of we)$.set(Ae,ge);let V=[],Y=[],Q=[];for(let ge of t.layout?.edges??[]){let we=ge.labelNodeId,Ae=ge.start,ve=ge.end;if(!we||!v.has(we)||Ae==null||ve==null)continue;let Ie=$.get(Ae),De=$.get(ve);if(Ie==null||De==null){Q.push({labelId:we,near:Ie==null?ve:Ae});continue}if(R.set(we,S(ve)),Ie===De){let ze=i(vt=>O.indexOf(S(vt)),"column");V.push({labelId:we,rank:De,lane:S(ve),side:Ae!==ve&&ze(Ae)<ze(ve)?"before":"after"});continue}let Be=Math.min(Ie,De),Fe=Math.max(Ie,De);Y.push({labelId:we,start:Ae,end:ve,gap:Be+Math.floor((Fe-Be-1)/2),crossesLanes:S(Ae)!==S(ve)})}let q=P.map(ge=>ge.reduce((we,Ae)=>Math.max(we,E(Ae)),0));for(let{labelId:ge,rank:we}of V)q[we]=Math.max(q[we],E(ge));let W=P.map(()=>0);if(d)for(let ge=0;ge+1<P.length;ge++){let we=P[ge].reduce((Fe,ze)=>Math.max(Fe,C(ze)),0),Ae=P[ge+1].reduce((Fe,ze)=>Math.max(Fe,C(ze)),0),ve=q[ge],Ie=q[ge+1],De=ve/2+Ie/2,Be=(we+Ae)/2;W[ge]=Math.max(0,Be-De-s)}let H=d?Ttt(t.layout?.nodes??[]):1,re=P.map(()=>0);for(let{labelId:ge,gap:we}of Y){let ve=((d?C(ge):E(ge))+2*mTe.EDGE_LABEL_CLEARANCE)/H;re[we]=Math.max(re[we],ve)}for(let[ge,we]of re.entries())W[ge]+=we;let Z=Object.create(null);for(let ge of B)Z[ge]=0;N&&(Z.null=0);for(let ge of P){let we=Object.create(null),Ae=[];for(let ve of ge){let Ie=L(ve);Ie===null?Ae.push(ve):(we[Ie]||=[]).push(ve)}for(let[ve,Ie]of Object.entries(we)){let De=Ie.reduce((Be,Fe)=>Be+C(Fe),0)+l*Math.max(0,Ie.length-1);Z[ve]=Math.max(Z[ve]??0,De)}if(N&&Ae.length){let ve=Ae.reduce((Ie,De)=>Ie+C(De),0)+l*Math.max(0,Ae.length-1);Z.null=Math.max(Z.null??0,ve)}}let X=new Map;for(let ge of Y){let we=`${ge.gap}:${L(ge.labelId)}`,Ae=X.get(we);Ae?Ae.push(ge):X.set(we,[ge])}for(let ge of X.values()){let we=L(ge[0].labelId);if(we!==null){let Ae=ge.reduce((ve,Ie,De)=>ve+C(Ie.labelId)+(De>0?l:0),0);Z[we]=Math.max(Z[we]??0,Ae)}}let te=new Map;for(let{labelId:ge,rank:we,lane:Ae,side:ve}of V){let Ie=`${we}:${Ae}:${ve}`;te.set(Ie,(te.get(Ie)??0)+l+C(ge))}let U=i((ge,we,Ae)=>te.get(`${ge}:${we}:${Ae}`)??0,"rowLabelSpan");for(let{rank:ge,lane:we}of V){let Ae=P[ge].filter(De=>L(De)===we).reduce((De,Be,Fe)=>De+C(Be)+(Fe>0?l:0),0),ve=Math.max(U(ge,we,"before"),U(ge,we,"after")),Ie=we??"null";Z[Ie]=Math.max(Z[Ie]??0,Ae+2*ve)}let ne=new Map;{let ge=O.map(ve=>(ve===null?Z.null:Z[ve])??0),Ae=-(ge.reduce((ve,Ie)=>ve+Ie,0)+h*Math.max(0,O.length-1))/2;for(let ve=0;ve<O.length;ve++){let Ie=O[ve],De=ge[ve]??0,Be=Ae+De/2;ne.set(Ie,Be),Ae+=De,ve<O.length-1&&(Ae+=h)}}let se=[],he=0;for(let[ge,we]of P.entries()){let Ae=q[ge]??0,ve=new Map;for(let De of we){let Be=L(De),Fe=ve.get(Be)??[];Fe.push(De),ve.set(Be,Fe)}for(let De of O){let Be=ve.get(De)??[];if(Be.length===0)continue;let Fe=ne.get(De);if(Be.length===1){let ze=Be[0];m[ze]=Fe,b[ze]=he+Ae/2}else{let ze=Be.map(Ft=>C(Ft)),vt=ze.reduce((Ft,pr)=>Ft+pr,0)+l*(Be.length-1),lt=Fe-vt/2;for(let[Ft,pr]of Be.entries()){let tr=ze[Ft];m[pr]=lt+tr/2,b[pr]=he+Ae/2,lt+=tr+l}}}let Ie=s+(W[ge]??0);se[ge]=he+Ae+Ie/2,he+=Ae+Ie}let le=new Map;for(let{labelId:ge,rank:we,lane:Ae,side:ve}of V){let Ie=`${we}:${Ae}:${ve}`;if(!le.has(Ie)){let ze=P[we].filter(vt=>L(vt)===Ae).map(vt=>ve==="before"?m[vt]-C(vt)/2:m[vt]+C(vt)/2);le.set(Ie,ve==="before"?Math.min(...ze):Math.max(...ze))}let De=C(ge),Be=le.get(Ie)+(ve==="before"?-1:1)*(l+De/2);m[ge]=Be,b[ge]=b[P[we].find(Fe=>L(Fe)===Ae)],le.set(Ie,Be+(ve==="before"?-1:1)*(De/2))}for(let ge of X.values()){let we=ge.map(({start:Fe,end:ze,crossesLanes:vt})=>vt?m[ze]:((m[Fe]??0)+(m[ze]??0))/2),Ae=ge.map((Fe,ze)=>ze).sort((Fe,ze)=>we[Fe]-we[ze]||Fe-ze),ve=[],Ie=-1/0;for(let Fe of Ae){let ze=C(ge[Fe].labelId);ve[Fe]=Math.max(we[Fe],Ie+l+ze/2),Ie=ve[Fe]+ze/2}let De=i(Fe=>Fe.reduce((ze,vt)=>ze+vt,0)/Fe.length,"mean"),Be=De(we)-De(ve);for(let[Fe,{labelId:ze,gap:vt}]of ge.entries())m[ze]=ve[Fe]+Be,b[ze]=se[vt]}for(let{labelId:ge,near:we}of Q)m[ge]=m[we]??0,b[ge]=b[we]??0;let pe=new Map;for(let ge of t.edges){let we=ge.ref.id;pe.has(we)||pe.set(we,[]),pe.get(we).push(ge)}for(let[,ge]of pe){if(ge.length===0)continue;let we=ge[0].ref,Ae=we.start,ve=we.end;if(Ae==null||ve==null)continue;let Ie=Math.round(((m[Ae]??0)+(m[ve]??0))/2),De=new Set;for(let Be of ge)De.add(Be.src),De.add(Be.dst);for(let Be of De){if(Be===Ae||Be===ve)continue;t.nodeById.get(Be)?.isDummy&&(m[Be]=Ie)}}return{x:m,y:b}}var S5r=ae(()=>{"use strict";j_();ktt();XA();i(E5r,"assignCoordinates")});function Oqn(r){let t=2166136261;for(let a=0;a<r.length;a++)t^=r.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function Pqn(r){let t=r>>>0;return()=>{t+=1831565813;let a=t;return a=Math.imul(a^a>>>15,a|1),a^=a+Math.imul(a^a>>>7,a|61),((a^a>>>14)>>>0)/4294967296}}function Bqn(r,t){let a=[...r],s=Pqn(t);for(let l=a.length-1;l>0;l--){let h=Math.floor(s()*(l+1));[a[l],a[h]]=[a[h],a[l]]}return a}function Fqn(r,t){let a=0;for(let[s,l]of r.entries())a+=Math.abs(s-(t.get(l)??s));return a}function A5r(r,t){let a=new Map;for(let[l,h]of r.entries())a.set(h,l);let s=0;for(let{a:l,b:h,weight:f}of t){let d=a.get(l),m=a.get(h);d==null||m==null||(s+=f*Math.abs(d-m))}return s}function $qn(r){let t=TTe(r);if(t.length<2)return[];let a=new Map(t.map((h,f)=>[h,f])),s=yy(r),l=new Map;for(let h of r.layout.edges??[]){if(h.isLayoutOnly)continue;let f=typeof h.start=="string"?h.start:void 0,d=typeof h.end=="string"?h.end:void 0;if(!f||!d||!r.nodeById.has(f)||!r.nodeById.has(d))continue;let m=s(f),b=s(d);if(!m||!b||m===b)continue;let v=a.get(m),T=a.get(b);if(v==null||T==null)continue;let[C,E]=v<=T?[m,b]:[b,m],S=`${C}\0${E}`,R=l.get(S);R?R.weight++:l.set(S,{a:C,b:E,weight:1})}return[...l.values()]}function R5r(r,t,a){let s=[...r],l=A5r(s,t),h=!0,f=0,d=Math.max(1,s.length);for(;h&&f<d;){h=!1,f++;for(let m=0;m+1<s.length;m++){[s[m],s[m+1]]=[s[m+1],s[m]];let b=A5r(s,t);b<l?(l=b,h=!0):[s[m],s[m+1]]=[s[m+1],s[m]]}}return{order:s,cost:l,sourceDistance:Fqn(s,a)}}function Gqn(r,t){return r.cost!==t.cost?r.cost<t.cost:r.sourceDistance<t.sourceDistance}function jqn(r,t,a){let s=[...t].sort((l,h)=>l.a===h.a?l.b.localeCompare(h.b):l.a.localeCompare(h.a)).map(({a:l,b:h,weight:f})=>`${l}:${h}:${f}`).join("|");return Oqn(`${r.join("|")}#${s}#${a}`)}function L5r(r,t={}){let a=TTe(r);if(a.length<2)return a;let s=$qn(r);if(s.length===0)return a;let l=new Map(a.map((d,m)=>[d,m])),h=R5r(a,s,l),f=Math.max(0,t.restarts??Btt);for(let d=0;d<f;d++){let m=jqn(a,s,d),b=Bqn(a,m),v=R5r(b,s,l);Gqn(v,h)&&(h=v)}return h.order}var Btt,_5r=ae(()=>{"use strict";XA();Btt=8;i(Oqn,"hashString");i(Pqn,"mulberry32");i(Bqn,"deterministicShuffle");i(Fqn,"sourceDistance");i(A5r,"laneArrangementCost");i($qn,"buildWeightedLaneEdges");i(R5r,"greedySwitch");i(Gqn,"isBetterCandidate");i(jqn,"seedForRestart");i(L5r,"optimizeTopLaneOrder")});function D5r(r,t){let a=t?.ignoreCrossLaneEdges??!0,s=t?.optimizeRanksByCrossings??!0,l=y2(r),h=t?.automaticLaneOrdering?L5r(l,{restarts:Btt}):void 0,f=XSr(l),d=f.acyclic,m=a?p5r(d,{compactSingleInput:t?.compactSingleInput??cP.DEFAULT_COMPACT_SINGLE_INPUT,ignoreCrossLaneEdges:!0,direction:t?.direction}):f5r(d,{compactSingleInput:t?.compactSingleInput??cP.DEFAULT_COMPACT_SINGLE_INPUT,ignoreCrossLaneEdges:!1,optimizeRanksByCrossings:s}),{layering:b,graphWithDummies:v}=m5r(m,d),T=k5r(b,v,{laneOrder:h}),C=E5r(T,v,{layerGap:t?.layerGap,nodeGap:t?.nodeGap,direction:t?.direction,laneOrder:h});return{acyclic:d,reversed:f.reversed,layering:b,ordered:T,coordinates:C}}var I5r=ae(()=>{"use strict";AS();KSr();d5r();g5r();y5r();C5r();S5r();j_();_5r();i(D5r,"sugiyamaLayout")});function M5r(r,t,a){let s=r.x??0,l=r.y??0,h=t.x-s,f=t.y-l,d=Math.abs(h),m=Math.abs(f);return d<kl&&m<kl?a:m>kl&&m*3>=d?f>0?"bottom":"top":d>kl?h>0?"right":"left":a}function $tt(r,t){let a=r.metadata?.drawnExtent;return{w:N5r(a?.width)?a.width:r.width??t,h:N5r(a?.height)?a.height:r.height??t}}function O5r(r,t){return Math.abs(r.to-t.from)<kl||Math.abs(r.to-t.to)<kl?r.to:r.from}function XU(r,t){return r.orient==="vertical"?{x:r.coord,y:t}:{x:t,y:r.coord}}function P5r(r,t){let a=r.nodes??[],s=r.edges??[],l=[];for(let Oe of s)Oe.isLayoutOnly||l.push({...Oe,__originalEdge:Oe});let h=new Map,f=new Map,d=[],m=t==="LR";for(let Oe of a)h.set(Oe.id,Oe);let b=gy(a),v=a.filter(Oe=>b.isLane(Oe.id));for(let Oe of v){let K={id:Oe.id},Te=i(ce=>{f.set(ce.id,K),a.filter(Re=>Re.parentId===ce.id).forEach(Te)},"assignLane");Te(Oe)}let T=lP(a),C=a.filter(Oe=>!Oe.isGroup&&!Oe.isEdgeLabel&&!T.has(Oe.id)).map(Oe=>{let K=Oe.width??10,Te=Oe.height??10,ce=Oe.x??0,Re=Oe.y??0,me=zqn;return{nodeId:Oe.id,minX:ce-K/2-me,maxX:ce+K/2+me,minY:Re-Te/2-me,maxY:Re+Te/2+me,visualXHalfExtent:m?Te/2+me:K/2+me}}),E=i((Oe,K,Te,ce)=>{let Re=d.find(me=>me.orientation===Oe&&Math.abs(me.coord-K)<1);return Re||(Re={id:`pipe-${Oe}-${K.toFixed(0)}`,orientation:Oe,coord:K,spanMin:Te,spanMax:ce,tracks:[]},d.push(Re)),Re.spanMin=Math.min(Re.spanMin,Te),Re.spanMax=Math.max(Re.spanMax,ce),Re},"getOrAddPipe"),S=i((Oe,K)=>{let{w:Te,h:ce}=$tt(Oe,10),Re=Oe.x??0,me=Oe.y??0;switch(K){case"top":return{x:Re,y:me-ce/2};case"bottom":return{x:Re,y:me+ce/2};case"left":return{x:Re-Te/2,y:me};case"right":return{x:Re+Te/2,y:me}}},"portForSide"),R=i((Oe,K,Te)=>S(Oe,M5r(Oe,K,Te?"bottom":"top")),"getOrthogonalPort"),L=[],_=[],I=new Set,N=1e3,B=i((Oe,K,Te)=>{if(L.length===0)return 0;let ce=Math.abs(K.y-Te.y)<kl,Re=Math.abs(K.x-Te.x)<kl;if(!ce&&!Re)return 0;let me=0;if(ce){let be=K.y,ke=Math.min(K.x,Te.x)-kl,We=Math.max(K.x,Te.x)+kl;if(We<=ke)return 0;for(let Ue of L)Ue.edgeIndex===Oe||Ue.orientation!=="vertical"||Ue.pipe.coord<ke||Ue.pipe.coord>We||Ue.from-kl<=be&&Ue.to+kl>=be&&(me+=N)}else if(Re){let be=K.x,ke=Math.min(K.y,Te.y)-kl,We=Math.max(K.y,Te.y)+kl;if(We<=ke)return 0;for(let Ue of L)Ue.edgeIndex===Oe||Ue.orientation!=="horizontal"||Ue.pipe.coord<ke||Ue.pipe.coord>We||Ue.from-kl<=be&&Ue.to+kl>=be&&(me+=N)}return me},"crossingPenalty"),O=l.map((Oe,K)=>{if(!Oe.start||!Oe.end)return{idx:K,crossLane:0,dx:0,dy:0};let Te=h.get(Oe.start),ce=h.get(Oe.end),Re=f.get(Oe.start),me=f.get(Oe.end),be=Re&&me&&Re.id!==me.id?1:0,ke=Te&&ce?Math.abs((ce.x??0)-(Te.x??0)):0,We=Te&&ce?Math.abs((ce.y??0)-(Te.y??0)):0;return{idx:K,crossLane:be,dx:ke,dy:We}}).sort((Oe,K)=>{if(Oe.crossLane!==K.crossLane)return K.crossLane-Oe.crossLane;let Te=Oe.dx+Oe.dy,ce=K.dx+K.dy;return Math.abs(Te-ce)>1?Te-ce:Oe.idx-K.idx}).map(Oe=>Oe.idx),P=i((Oe,K,Te,ce)=>{let Re=Math.min(Oe.x,K.x),me=Math.max(Oe.x,K.x),be=Math.min(Oe.y,K.y),ke=Math.max(Oe.y,K.y);return!!C.find(Ue=>Te&&Ue.nodeId===Te||ce&&Ue.nodeId===ce?!1:Math.abs(Oe.x-K.x)>kl?Ue.minY<Oe.y&&Ue.maxY>Oe.y&&Ue.maxX>Re&&Ue.minX<me:Ue.minX<Oe.x&&Ue.maxX>Oe.x&&Ue.maxY>be&&Ue.minY<ke)},"isSegmentBlocked"),$=new Map,V=new Map;for(let Oe of l)!Oe.start||!Oe.end||Oe.start===Oe.end||(V.set(Oe.start,(V.get(Oe.start)??0)+1),V.set(Oe.end,(V.get(Oe.end)??0)+1));let Y=i((Oe,K)=>M5r(Oe,K,"bottom"),"determineSide"),Q=new Map;for(let[Oe,K]of l.entries()){if(!K.start||!K.end||K.start===K.end||K.points&&K.points.length>0)continue;let Te=h.get(K.start),ce=h.get(K.end);if(!Te||!ce)continue;let Re=(ce.x??0)-(Te.x??0),me=(ce.y??0)-(Te.y??0);Q.set(Oe,{edgeIdx:Oe,srcId:K.start,dstId:K.end,srcSide:Y(Te,{x:ce.x??0,y:ce.y??0}),dstSide:Y(ce,{x:Te.x??0,y:Te.y??0}),absDx:Math.abs(Re),absDy:Math.abs(me),dxSign:Math.sign(Re),dySign:Math.sign(me)})}let q=i(Oe=>Oe.srcSide==="top"||Oe.srcSide==="bottom"?Oe.absDx===0?1/0:Oe.absDy/Oe.absDx:Oe.absDy===0?1/0:Oe.absDx/Oe.absDy,"preferenceStrength"),W=i(Oe=>Oe.srcSide==="top"||Oe.srcSide==="bottom"?Oe.dxSign===0?["right","left"]:[Oe.dxSign>0?"right":"left"]:Oe.dySign===0?["bottom","top"]:[Oe.dySign>0?"bottom":"top"],"secondarySides"),H=i(Oe=>W(Oe)[0],"secondarySide"),re=new Map;for(let Oe of Q.values()){let K=`${Oe.srcId}:${Oe.srcSide}`;re.has(K)||re.set(K,[]),re.get(K).push(Oe)}let Z=new Map,X=i((Oe,K)=>`${Oe}:${K}`,"loadKey");for(let Oe of Q.values())Z.set(X(Oe.srcId,Oe.srcSide),(Z.get(X(Oe.srcId,Oe.srcSide))??0)+1),Z.set(X(Oe.dstId,Oe.dstSide),(Z.get(X(Oe.dstId,Oe.dstSide))??0)+1);for(let Oe of re.values())if(!(Oe.length<2)){Oe.sort((K,Te)=>{let ce=q(K),Re=q(Te);return Math.abs(ce-Re)>1e-9?Re-ce:K.edgeIdx-Te.edgeIdx});for(let K=1;K<Oe.length;K++){let Te=Oe[K],ce=Z.get(X(Te.srcId,Te.srcSide))??0,Re=W(Te).reduce((be,ke)=>(Z.get(X(Te.srcId,ke))??0)<(Z.get(X(Te.srcId,be))??0)?ke:be),me=Z.get(X(Te.srcId,Re))??0;me>=ce||(Z.set(X(Te.srcId,Te.srcSide),ce-1),Z.set(X(Te.srcId,Re),me+1),Te.srcSide=Re)}}let te=i(Oe=>{let K=Oe?.shape;return K==="question"||K==="diamond"},"isDiamondNode"),U=new Map;for(let Oe of Q.values())U.has(Oe.dstId)||U.set(Oe.dstId,new Set),U.get(Oe.dstId).add(Oe.dstSide);for(let Oe of Q.values()){if(!te(h.get(Oe.srcId)))continue;let K=U.get(Oe.srcId);if(!K?.has(Oe.srcSide))continue;let Te=H(Oe);if(K.has(Te)||(Z.get(X(Oe.srcId,Te))??0)>0)continue;let ce=Z.get(X(Oe.srcId,Oe.srcSide))??0;Z.set(X(Oe.srcId,Oe.srcSide),Math.max(0,ce-1)),Z.set(X(Oe.srcId,Te),1),Oe.srcSide=Te}let ne=i(Oe=>{let K=Oe?.shape;return K==="hexagon"||K==="notch-pent"},"hasVertexFaces"),se=new Map;for(let Oe of Q.values())se.has(Oe.srcId)||se.set(Oe.srcId,new Set),se.get(Oe.srcId).add(Oe.srcSide);let he=i(Oe=>Oe.dstSide==="top"||Oe.dstSide==="bottom"?Oe.dxSign>=0?"left":"right":Oe.dySign>=0?"top":"bottom","secondaryDstSide");for(let Oe of Q.values()){if(!ne(h.get(Oe.dstId)))continue;let K=se.get(Oe.dstId);if(!K?.has(Oe.dstSide))continue;let Te=he(Oe);if(K.has(Te)||(Z.get(X(Oe.dstId,Te))??0)>0)continue;let ce=Z.get(X(Oe.dstId,Oe.dstSide))??0;Z.set(X(Oe.dstId,Oe.dstSide),Math.max(0,ce-1)),Z.set(X(Oe.dstId,Te),1),Oe.dstSide=Te;let Re=Oe.dySign>=0?"bottom":"top";if((Te==="top"||Te==="bottom")&&U.get(Oe.srcId)?.has(Oe.srcSide)&&!U.get(Oe.srcId)?.has(Re)&&(Z.get(X(Oe.srcId,Re))??0)===0){let me=Z.get(X(Oe.srcId,Oe.srcSide))??0;Z.set(X(Oe.srcId,Oe.srcSide),Math.max(0,me-1)),Z.set(X(Oe.srcId,Re),1),Oe.srcSide=Re}}for(let Oe of Q.values()){let{edgeIdx:K,srcId:Te,dstId:ce,srcSide:Re,dstSide:me}=Oe,be=h.get(Te),ke=h.get(ce),We=`${Te}:${Re}:src`,Ue=Re==="top"||Re==="bottom"?ke.x??0:ke.y??0;$.has(We)||$.set(We,[]),$.get(We).push({edgeIdx:K,oppositeCoord:Ue});let rt=`${ce}:${me}:dst`,nt=me==="top"||me==="bottom"?be.x??0:be.y??0;$.has(rt)||$.set(rt,[]),$.get(rt).push({edgeIdx:K,oppositeCoord:nt})}let le=new Map,pe=8;for(let[Oe,K]of $){if(K.length<2)continue;K.sort((Gt,jt)=>Gt.oppositeCoord-jt.oppositeCoord);let Te=Oe.split(":"),ce=Te.slice(0,-2).join(":"),Re=Te[Te.length-2],me=Te[Te.length-1],be=h.get(ce);if(!be)continue;let ke=Re==="left"||Re==="right",We=$tt(be,10),Ue=ke?We.h:We.w,rt=be.shape,Ot=rt==="question"||rt==="diamond"?Ue*.3:Ue,Qt=Math.min(20,Ot/(K.length-1),Math.max(pe,Ot/(K.length+1))),qt=-(Qt*(K.length-1))/2;for(let[Gt,jt]of K.entries()){let Zr=qt+Gt*Qt,yt=`${jt.edgeIdx}:${me}`;le.set(yt,Zr)}}let ge=i(Oe=>!!l[Oe]?.labelNodeId,"edgeHasLabelNode"),we=i((Oe,K)=>Oe?($.get(`${Oe}:${K}:src`)??[]).some(({edgeIdx:Te})=>ge(Te))||($.get(`${Oe}:${K}:dst`)??[]).some(({edgeIdx:Te})=>ge(Te)):!1,"faceHasLabelNode"),Ae=i((Oe,K,Te)=>K==="top"||K==="bottom"?{x:Oe.x+Te,y:Oe.y}:{x:Oe.x,y:Oe.y+Te},"applyPortOffset"),ve=i((Oe,K,Te)=>{let ce=Q.get(Oe),Re={x:Te.x??0,y:Te.y??0},me={x:K.x??0,y:K.y??0},be=ce?.srcSide??Y(K,Re),ke=ce?.dstSide??Y(Te,me),We=ce?S(K,ce.srcSide):R(K,Re,!0),Ue=ce?S(Te,ce.dstSide):R(Te,me,!1),rt=le.get(`${Oe}:src`),nt=le.get(`${Oe}:dst`);return rt!==void 0&&(We=Ae(We,be,rt)),nt!==void 0&&(Ue=Ae(Ue,ke,nt)),{pSrcPort:We,pDstPort:Ue,srcSide:be,dstSide:ke}},"portsForEdge");for(let Oe of O){let K=l[Oe];if(_[Oe]=[],!K.start||!K.end||K.points&&K.points.length>0||K.start===K.end)continue;let Te=h.get(K.start),ce=h.get(K.end);if(!Te||!ce)continue;let{pSrcPort:Re,pDstPort:me,srcSide:be,dstSide:ke}=ve(Oe,Te,ce),We={...Re},Ue={...me},rt=be==="top"||be==="bottom",nt=ke==="top"||ke==="bottom";if(rt){let ln=Re.y>(Te.y??0);We.y=ln?Re.y+ek:Re.y-ek}else{let ln=Re.x>(Te.x??0);We.x=ln?Re.x+ek:Re.x-ek}if(nt){let ln=me.y>(ce.y??0);Ue.y=ln?me.y+ek:me.y-ek}else{let ln=me.x>(ce.x??0);Ue.x=ln?me.x+ek:me.x-ek}let Ot=i((ln,Vr)=>{for(let gn of C)if(!Vr.includes(gn.nodeId)&&ln.x>gn.minX&&ln.x<gn.maxX&&ln.y>gn.minY&&ln.y<gn.maxY)return{inside:!0,obstacle:gn};return{inside:!1}},"isPointInObstacle"),ft=i((ln,Vr,gn,xi,Pn)=>{if(Pn){let Ln=ln.y>(Vr.y??0);return{x:(gn.x??0)>=ln.x?xi.maxX+hP:xi.minX-hP,y:Ln?xi.maxY+YU:xi.minY-YU,leavesPositiveSide:Ln}}let Vn=ln.x>(Vr.x??0),la=(gn.y??0)>=ln.y;return{x:Vn?xi.maxX+hP:xi.minX-hP,y:la?xi.maxY+YU:xi.minY-YU,leavesPositiveSide:Vn}},"obstacleDetour"),Qt=[],$t=[K.start,K.end],qt=Ot(We,$t);if(qt.inside&&qt.obstacle){let ln=qt.obstacle;if(rt){let Vr=ft(Re,Te,ce,ln,!0);We.x=Vr.x,We.y=Vr.y;let gn=Vr.leavesPositiveSide?Math.min(ln.minY-2,Re.y+ek):Math.max(ln.maxY+2,Re.y-ek);Qt=[{x:Re.x,y:gn},{x:Vr.x,y:gn},{x:Vr.x,y:Vr.y}]}else{let Vr=ft(Re,Te,ce,ln,!1),gn=Vr.leavesPositiveSide?Math.min(ln.minX-2,Re.x+ek):Math.max(ln.maxX+2,Re.x-ek);We.x=Vr.x,We.y=Vr.y,Qt=[{x:gn,y:Re.y},{x:gn,y:Vr.y},{x:Vr.x,y:Vr.y}]}}let Gt=[],jt=Ot(Ue,$t);if(jt.inside&&jt.obstacle){let ln=jt.obstacle;if(nt){let Vr=ft(me,ce,Te,ln,!0);Ue.x=Vr.x,Ue.y=Vr.y,Gt=[{x:Vr.x,y:Vr.y},{x:me.x,y:Vr.y}]}else{let Vr=ft(me,ce,Te,ln,!1);Ue.x=Vr.x,Ue.y=Vr.y,Gt=[{x:Vr.x,y:Vr.y},{x:Vr.x,y:me.y}]}}if(Qt.length===0&&Gt.length===0){let ln=hP,Vr=Math.abs(We.x-Ue.x)<ln,gn=Math.abs(We.y-Ue.y)<ln,xi=le.get(`${Oe}:src`)!==void 0||le.get(`${Oe}:dst`)!==void 0,Pn=($.get(`${K.start??""}:${be}:src`)?.length??0)+($.get(`${K.start??""}:${be}:dst`)?.length??0),Vn=($.get(`${K.end??""}:${ke}:src`)?.length??0)+($.get(`${K.end??""}:${ke}:dst`)?.length??0),la=Pn>1||Vn>1,Ln=V.get(K.start??"")??0,Zi=V.get(K.end??"")??0,kt=Pn>1&&we(K.start,be)||Vn>1&&we(K.end,ke),Iu=Pn<=1||Ln<=2,It=Vn<=1||Zi<=2;if((Vr||gn)&&!xi&&(!la||la&&!kt&&Iu&&It)&&!P(Re,me,K.start,K.end)){K.points=[{...Re},{...We},{...Ue},{...me}],I.add(Oe);let sa=gn?"horizontal":"vertical",Lr=gn?Re.y:Re.x,Xa=gn?Math.min(Re.x,me.x):Math.min(Re.y,me.y),Ze=gn?Math.max(Re.x,me.x):Math.max(Re.y,me.y),xa={id:`fast-path-${sa}-${Lr.toFixed(0)}-${Oe}`,orientation:sa,coord:Lr,spanMin:Xa,spanMax:Ze,tracks:[]};L.push({edgeIndex:Oe,segmentIndex:0,orientation:sa,pipe:xa,trackIndex:0,from:Xa,to:Ze});continue}}let Zr=E("vertical",We.x,We.y,We.y);We.x=Zr.coord;let yt=E("vertical",Ue.x,Ue.y,Ue.y);Ue.x=yt.coord;let $n=Math.min(We.x,Ue.x)-50,Ut=Math.max(We.x,Ue.x)+50,An=Math.min(We.y,Ue.y)-50,Un=Math.max(We.y,Ue.y)+50;for(let ln of C){let Vr=Math.min(We.x,Ue.x),gn=Math.max(We.x,Ue.x),xi=Math.min(We.y,Ue.y),Pn=Math.max(We.y,Ue.y);ln.minX<gn&&ln.maxX>Vr&&ln.minY<Pn&&ln.maxY>xi&&($n=Math.min($n,ln.minX-CTe),Ut=Math.max(Ut,ln.maxX+CTe),An=Math.min(An,ln.minY-CTe),Un=Math.max(Un,ln.maxY+CTe))}for(let ln of C){if(ln.maxX<$n||ln.minX>Ut||ln.maxY<An||ln.minY>Un)continue;let Vr=hP;E("horizontal",ln.minY-Vr,$n,Ut),E("horizontal",ln.maxY+Vr,$n,Ut);let gn=YU;E("vertical",ln.minX-gn,An,Un),E("vertical",ln.maxX+gn,An,Un)}E("horizontal",We.y,$n,Ut),E("horizontal",Ue.y,$n,Ut);let En=d.filter(ln=>ln.orientation==="horizontal"&&ln.coord>=An&&ln.coord<=Un),ai=d.filter(ln=>ln.orientation==="vertical"&&ln.coord>=$n&&ln.coord<=Ut),Gn=i((ln,Vr)=>`${ln.toFixed(1)},${Vr.toFixed(1)}`,"getKey"),ui=Gn(We.x,We.y),Tn=Gn(Ue.x,Ue.y),Wi=new Map,Pa=new Map,qe=new Map,Rn=new Set,Mn=[];Wi.set(ui,0),qe.set(ui,"n"),Mn.push({key:ui,f:Math.hypot(Ue.x-We.x,Ue.y-We.y),pt:We}),Rn.add(ui);let ct=[],dr=i((ln,Vr)=>P(ln,Vr,K.start,K.end),"checkSegmentBlocked"),Kr={x:Ue.x,y:We.y},pn=dr(We,Kr),Bn=dr(Kr,Ue),Hs=pn||Bn,Ki={x:We.x,y:Ue.y},so=dr(We,Ki),js=dr(Ki,Ue);if(Hs?so||js||(Math.abs(We.x-Ue.x)<kl?ct=[We,Ue]:ct=[We,Ki,Ue]):Math.abs(We.y-Ue.y)<kl||Math.abs(We.x-Ue.x)<kl?ct=[We,Ue]:ct=[We,Kr,Ue],ct.length===0)for(;Mn.length>0;){Mn.sort((Zi,kt)=>Zi.f-kt.f);let ln=Mn.shift();if(Rn.delete(ln.key),ln.key===Tn){let Zi=Tn,kt=Ue;for(ct=[kt];Pa.has(Zi);){let Iu=Pa.get(Zi);ct.unshift(Iu),kt=Iu,Zi=Gn(Iu.x,Iu.y)}break}let Vr=ln.pt.x,gn=ln.pt.y,xi=ai.sort((Zi,kt)=>Zi.coord-kt.coord),Pn=xi.findIndex(Zi=>Math.abs(Zi.coord-Vr)<1),Vn=En.sort((Zi,kt)=>Zi.coord-kt.coord),la=Vn.findIndex(Zi=>Math.abs(Zi.coord-gn)<1),Ln=[];Pn>0&&Ln.push({x:xi[Pn-1].coord,y:gn}),Pn>=0&&Pn<xi.length-1&&Ln.push({x:xi[Pn+1].coord,y:gn}),la>0&&Ln.push({x:Vr,y:Vn[la-1].coord}),la>=0&&la<Vn.length-1&&Ln.push({x:Vr,y:Vn[la+1].coord});for(let Zi of Ln){let kt=Math.min(Vr,Zi.x),Iu=Math.max(Vr,Zi.x),It=Math.min(gn,Zi.y),Ai=Math.max(gn,Zi.y);if(C.some($l=>$l.nodeId===K.start||$l.nodeId===K.end?!1:kt!==Iu?$l.minY<gn&&$l.maxY>gn&&$l.maxX>kt&&$l.minX<Iu:$l.minX<Vr&&$l.maxX>Vr&&$l.maxY>It&&$l.minY<Ai))continue;let sa=Gn(Zi.x,Zi.y),Lr=Math.abs(Zi.x-Vr)+Math.abs(Zi.y-gn),Xa=B(Oe,ln.pt,Zi),Ze=0,xa=Ue.x-We.x,at=Ue.y-We.y,pl=Zi.x-Vr,Dm=Zi.y-gn;(at>10&&Dm<-5||at<-10&&Dm>5)&&(Ze=Math.abs(Dm)*100),(xa>10&&pl<-5||xa<-10&&pl>5)&&(Ze+=Math.abs(pl)*50);let I2=0,M2=qe.get(ln.key)??"n",Ug=Math.abs(pl)>kl?"h":"v";M2!=="n"&&M2!==Ug&&(I2=50);let uh=Lr+Xa+Ze+I2,al=(Wi.get(ln.key)??1/0)+uh,sd=Math.abs(Ue.x-Zi.x)+Math.abs(Ue.y-Zi.y);if(al<(Wi.get(sa)??1/0))if(Pa.set(sa,ln.pt),Wi.set(sa,al),qe.set(sa,Ug),!Rn.has(sa))Mn.push({key:sa,f:al+sd,pt:Zi}),Rn.add(sa);else{let $l=Mn.findIndex(pk=>pk.key===sa);$l!==-1&&(Mn[$l].f=al+sd)}}}if(ct.length===0&&(ct=[We,{x:We.x,y:Ue.y},Ue]),ct.length>4){let ln=ct[0],Vr=ct[ct.length-1],gn=Math.min(ln.x,Vr.x),xi=Math.max(ln.x,Vr.x),Pn=Math.min(ln.y,Vr.y),Vn=Math.max(ln.y,Vr.y);for(let It of ct)gn=Math.min(gn,It.x),xi=Math.max(xi,It.x),Pn=Math.min(Pn,It.y),Vn=Math.max(Vn,It.y);let la=xi>Math.max(ln.x,Vr.x),Ln=gn<Math.min(ln.x,Vr.x);if(m){let It=YU;if(la){let Ai=Math.max(ln.x,Vr.x),da=Math.min(ln.y,Vr.y),sa=Math.max(ln.y,Vr.y),Lr=C.filter(Xa=>Xa.minX<Ai&&Xa.maxX>Ai&&Xa.minY<sa&&Xa.maxY>da);if(Lr.length>0){let Xa=Math.max(ln.x,Vr.x);for(let Ze of Lr){let xa=(Ze.minX+Ze.maxX)/2;if(Ze.visualXHalfExtent===void 0||isNaN(Ze.visualXHalfExtent))continue;let at=xa+Ze.visualXHalfExtent+It;Xa=Math.max(Xa,at)}isNaN(Xa)||(xi=Xa)}}if(Ln){let Ai=C.filter(da=>da.minX<Math.min(ln.x,Vr.x)+It&&da.minY<Math.max(ln.y,Vr.y)&&da.maxY>Math.min(ln.y,Vr.y));if(Ai.length>0){let da=Math.min(ln.x,Vr.x);for(let sa of Ai){let Xa=(sa.minX+sa.maxX)/2-sa.visualXHalfExtent-It;da=Math.min(da,Xa)}gn=da}}}let Zi=i(It=>{let Ai=Vr.y>ln.y,da=C.filter(Xa=>{let Ze=Math.min(ln.x,Vr.x)<Xa.maxX&&Math.max(ln.x,Vr.x)>Xa.minX,xa=Math.min(ln.y,Vr.y)<Xa.maxY&&Math.max(ln.y,Vr.y)>Xa.minY;return Ze&&xa}),sa=da;if(m&&da.length>0){let Xa=da.filter(Ze=>Ze.minX<It&&Ze.maxX>It);Xa.length>0&&(sa=Xa)}if(sa.length===0)return Vr.y;let Lr=hP;if(Ai){let Ze=Math.max(...sa.map(xa=>xa.maxY))+Lr;if(Ze<Vr.y-kl)return Ze}else{let Ze=Math.min(...sa.map(xa=>xa.minY))-Lr;if(Ze>Vr.y+kl)return Ze}return Vr.y},"findBestReturnY"),kt=i(It=>{let Ai=Zi(It),da={x:It,y:ln.y},sa={x:It,y:Ai},Lr={x:Vr.x,y:Ai},Xa=dr(ln,da),Ze=dr(da,sa),xa=dr(sa,Lr),at=Ai!==Vr.y?dr(Lr,Vr):!1;return!Xa&&!Ze&&!xa&&!at?Math.abs(Ai-Vr.y)<kl?[ln,da,sa,Vr]:[ln,da,sa,Lr,Vr]:null},"trySimplifyWithDetourX"),Iu=la&&!Ln?kt(xi):Ln&&!la?kt(gn):null;Iu&&(ct=Iu)}let Ba=[Re,...Qt,...ct,...Gt.reverse(),me];if(Ba.length>=3){let ln=Ba[Ba.length-1],Vr=Ba[Ba.length-2],gn=Ba[Ba.length-3],xi=Math.abs(gn.y-Vr.y)<kl&&Math.abs(Vr.y-ln.y)<kl,Pn=Math.abs(gn.x-Vr.x)<kl&&Math.abs(Vr.x-ln.x)<kl;if(xi){let Vn=Math.sign(Vr.x-gn.x),la=Math.sign(ln.x-gn.x);Vn!==0&&Vn===la&&Math.abs(Vr.x-gn.x)>Math.abs(ln.x-gn.x)&&Ba.splice(-2,1)}else if(Pn){let Vn=Math.sign(Vr.y-gn.y),la=Math.sign(ln.y-gn.y);Vn!==0&&Vn===la&&Math.abs(Vr.y-gn.y)>Math.abs(ln.y-gn.y)&&Ba.splice(-2,1)}}let cs=[Ba[0]];for(let ln=1;ln<Ba.length-1;ln++){if(ln===1){cs.push(Ba[ln]);continue}let Vr=cs[cs.length-1],gn=Ba[ln],xi=Ba[ln+1];if(Math.abs(Vr.y-gn.y)<kl&&Math.abs(gn.y-xi.y)<kl){let Pn=gn.x>Vr.x,Vn=xi.x>gn.x;if(Pn!==Vn){cs.push(gn);continue}continue}if(Math.abs(Vr.x-gn.x)<kl&&Math.abs(gn.x-xi.x)<kl){let Pn=gn.y>Vr.y,Vn=xi.y>gn.y;if(Pn!==Vn){cs.push(gn);continue}continue}cs.push(gn)}cs.push(Ba[Ba.length-1]);for(let ln=0;ln<cs.length-1;ln++){let Vr=cs[ln],gn=cs[ln+1],xi=Math.abs(Vr.x-gn.x)<kl?"vertical":"horizontal",Pn=xi==="vertical"?Vr.x:Vr.y,Vn=xi==="vertical"?Math.min(Vr.y,gn.y):Math.min(Vr.x,gn.x),la=xi==="vertical"?Math.max(Vr.y,gn.y):Math.max(Vr.x,gn.x),Ln=E(xi,Pn,Vn,la),Zi={edgeIndex:Oe,segmentIndex:ln,orientation:xi,pipe:Ln,trackIndex:0,from:Vn,to:la};L.push(Zi),_[Oe].push(L.length-1),Ln.tracks[0]||(Ln.tracks[0]={index:0,coord:Ln.coord,segments:[]}),Ln.tracks[0].segments.push({edgeIndex:Oe,segmentIndex:ln,from:Vn,to:la})}}let Ie=i((Oe,K)=>Oe.from<K.to&&K.from<Oe.to,"segmentsOverlap"),De=i((Oe,K,Te,ce)=>{let Re=!ce.segments.some(be=>(be.edgeIndex!==K.edgeIndex||be.segmentIndex!==K.segmentIndex)&&Ie(be,Oe)),me=!Te.segments.some(be=>(be.edgeIndex!==Oe.edgeIndex||be.segmentIndex!==Oe.segmentIndex)&&Ie(be,K));return Re&&me?(Oe.trackIndex=ce.index,K.trackIndex=Te.index,Te.segments=[...Te.segments.filter(be=>be.edgeIndex!==Oe.edgeIndex||be.segmentIndex!==Oe.segmentIndex),{edgeIndex:K.edgeIndex,segmentIndex:K.segmentIndex,from:K.from,to:K.to}],ce.segments=[...ce.segments.filter(be=>be.edgeIndex!==K.edgeIndex||be.segmentIndex!==K.segmentIndex),{edgeIndex:Oe.edgeIndex,segmentIndex:Oe.segmentIndex,from:Oe.from,to:Oe.to}],!0):!1},"trySwapSegmentsAcrossTracks"),Be=i(Oe=>{let K=Oe.tracks.length;return Oe.tracks[K]={index:K,coord:Oe.coord,segments:[]},K},"createNewTrack"),Fe=i((Oe,K)=>{let Te=Oe.pipe.tracks[Oe.trackIndex];Te.segments=Te.segments.filter(Re=>Re.edgeIndex!==Oe.edgeIndex||Re.segmentIndex!==Oe.segmentIndex),Oe.trackIndex=K,Oe.pipe.tracks[K].segments.push({edgeIndex:Oe.edgeIndex,segmentIndex:Oe.segmentIndex,from:Oe.from,to:Oe.to})},"moveSegmentToTrack"),ze=i((Oe,K)=>{let Te=_[Oe.edgeIndex];for(let ce of Te){let Re=L[ce];Re.pipe===Oe.pipe&&Fe(Re,K)}},"moveSegmentChainToTrack"),vt=i(Oe=>{let K=_[Oe.edgeIndex],Te=K.indexOf(L.indexOf(Oe)),ce=[];return Te>0&&ce.push(L[K[Te-1]]),Te<K.length-1&&ce.push(L[K[Te+1]]),ce},"getAdjacentSegmentsAlongEdge"),lt=i((Oe,K)=>{if(Oe.orientation===K.orientation)return!1;let Te=Oe.orientation==="horizontal"?Oe:K,ce=Oe.orientation==="horizontal"?K:Oe;return ce.pipe.coord>Te.from&&ce.pipe.coord<Te.to&&Te.pipe.coord>ce.from&&Te.pipe.coord<ce.to},"haveAnyCrossing"),Ft=i((Oe,K)=>{for(let Te of Oe.tracks)if(!Te.segments.some(Re=>(Re.edgeIndex!==K.edgeIndex||Re.segmentIndex!==K.segmentIndex)&&Ie(Re,K)))return Te.index;return-1},"findAvailableTrack"),pr=i((Oe,K)=>{if(Oe.trackIndex===K.trackIndex)return Ie(Oe,K);let Te=vt(Oe),ce=vt(K);return Te.some(Re=>ce.some(me=>lt(Re,me)))},"segmentsConflict"),tr=i((Oe,K,Te)=>{if(De(Oe,K,Oe.pipe.tracks[Oe.trackIndex],K.pipe.tracks[K.trackIndex]))return;let ce=Ft(Oe.pipe,K);Te(K,ce!==-1?ce:Be(Oe.pipe))},"resolveTrackConflict"),Mt=i(Oe=>{let K=0;for(let Te=0;Te<Oe.length;Te++)for(let ce=Te+1;ce<Oe.length;ce++){let Re=Oe[Te],me=Oe[ce];Re.pipe===me.pipe&&pr(Re,me)&&(K++,tr(Re,me,ze))}return K},"resolveHandleConflicts"),ot=new Map,it=i(Oe=>{if(ot.has(Oe))return ot.get(Oe);let K=_[Oe];if(K.length===0){let ke={dest:0,deviation:0,base:0,delta:0};return ot.set(Oe,ke),ke}let ce=L[K[0]].pipe.coord,Re=ce;for(let ke=1;ke<K.length;ke++){let We=L[K[ke]];if(We.orientation==="horizontal"){let Ue=We.from,rt=We.to;Re=Math.abs(Ue-ce)>Math.abs(rt-ce)?Ue:rt;break}}let me=Math.abs(Re-ce),be={dest:Re,deviation:me,base:ce,delta:Re-ce};return ot.set(Oe,be),be},"getDestInfo"),mt=i(()=>{let Oe=0,K=new Map;for(let[ce,Re]of l.entries())_[ce].length!==0&&Re.start&&(K.has(Re.start)||K.set(Re.start,[]),K.get(Re.start).push(ce));let Te=i(ce=>{let Re=l[ce];if(!Re.start||!Re.end)return 0;let me=h.get(Re.start),be=h.get(Re.end);if(!me||!be)return 0;let ke=(be.x??0)-(me.x??0),We=(be.y??0)-(me.y??0);return Math.abs(ke)+Math.abs(We)},"getEdgeDistance");for(let ce of K.values()){ce.sort((me,be)=>{let ke=it(me),We=it(be);if(Math.abs(ke.deviation-We.deviation)>1)return ke.deviation-We.deviation;if(Math.abs(ke.dest-We.dest)>1)return ke.dest-We.dest;let Ue=Te(me),rt=Te(be);if(Math.abs(Ue-rt)>1)return rt-Ue;let nt=_[me].length,Ot=_[be].length;if(nt!==Ot)return nt-Ot;if(nt===1){let ft=_[me][0],Qt=_[be][0];if(L[ft]&&L[Qt]){let $t=L[ft],qt=L[Qt],Gt=Math.abs($t.to-$t.from),jt=Math.abs(qt.to-qt.from);if(Math.abs(Gt-jt)>1)return Gt-jt}}return 0});let Re=ce.map(me=>L[_[me][0]]);Oe+=Mt(Re)}return Oe},"fixSourceHandleCrossings"),Rt=i(()=>{let Oe=0,K=new Map;for(let[Te,ce]of l.entries())_[Te].length!==0&&ce.end&&(K.has(ce.end)||K.set(ce.end,[]),K.get(ce.end).push(Te));for(let Te of K.values()){Te.sort((Re,me)=>{let be=i(Ue=>{let rt=_[Ue];if(rt.length<2)return 0;let nt=L[rt[rt.length-2]];return Math.abs(nt.to-nt.from)},"getDist"),ke=be(Re),We=be(me);return Math.abs(ke-We)>.1?ke-We:Re-me});let ce=Te.map(Re=>L[_[Re][_[Re].length-1]]);Oe+=Mt(ce)}return Oe},"fixTargetHandleCrossings"),pt=i(()=>{let Oe=0;for(let K of d){let Te=[];for(let ce of K.tracks)for(let Re of ce.segments){let me=_[Re.edgeIndex].find(be=>L[be].segmentIndex===Re.segmentIndex);me!==void 0&&Te.push(L[me])}Te.sort((ce,Re)=>ce.edgeIndex-Re.edgeIndex||ce.segmentIndex-Re.segmentIndex);for(let ce=0;ce<Te.length;ce++)for(let Re=ce+1;Re<Te.length;Re++){let me=Te[ce],be=Te[Re];pr(me,be)&&(Oe++,tr(me,be,Fe))}}return Oe},"fixPipeCrossings"),gt=0,ut=10;for(;gt<ut;){let Oe=0;if(Oe+=mt(),Oe+=Rt(),Oe+=pt(),Oe===0)break;gt++}let Yt=new Map;for(let Oe of d){let K=[];Oe.tracks.forEach(ce=>{ce.segments.forEach(Re=>{K.push({edgeIndex:Re.edgeIndex,segmentIndex:Re.segmentIndex,trackIndex:ce.index,from:Re.from,to:Re.to})})}),K.sort((ce,Re)=>ce.from-Re.from);let Te=[];if(K.length>0){let ce=[K[0]],Re=K[0].to;for(let me=1;me<K.length;me++){let be=K[me];be.from<Re?(ce.push(be),Re=Math.max(Re,be.to)):(Te.push(ce),ce=[be],Re=be.to)}Te.push(ce)}for(let ce of Te){let Re=new Set;ce.forEach(ft=>Re.add(ft.trackIndex));let me=new Map;ce.forEach(ft=>{let Qt=it(ft.edgeIndex);me.set(ft.trackIndex,(me.get(ft.trackIndex)??0)+Qt.delta)});let be=[...Re].filter(ft=>(me.get(ft)??0)<-1),ke=[...Re].filter(ft=>(me.get(ft)??0)>1),We=[...Re].filter(ft=>Math.abs(me.get(ft)??0)<=1);be.sort((ft,Qt)=>(me.get(Qt)??0)-(me.get(ft)??0)),ke.sort((ft,Qt)=>(me.get(ft)??0)-(me.get(Qt)??0));let Ue=i((ft,Qt)=>{ce.filter($t=>$t.trackIndex===ft).forEach($t=>{let qt=I.has($t.edgeIndex)?Oe.coord:Qt;Yt.set(`${$t.edgeIndex}-${$t.segmentIndex}`,qt)})},"assignCoord"),rt=0;for(let ft of be)rt++,Ue(ft,Oe.coord-rt*Ftt);if(We.length===0&&Re.size>0){let ft=[...Re].sort((qt,Gt)=>Math.abs(me.get(qt)??0)-Math.abs(me.get(Gt)??0))[0],Qt=be.indexOf(ft);Qt!==-1&&be.splice(Qt,1);let $t=ke.indexOf(ft);$t!==-1&&ke.splice($t,1),We.push(ft)}let nt=0;for(let ft of We){if(nt===0)Ue(ft,Oe.coord);else{let Qt=nt%2===1?1:-1,$t=Math.ceil(nt/2);Ue(ft,Oe.coord+Qt*$t*Ftt*.5)}nt++}let Ot=0;for(let ft of ke)Ot++,Ue(ft,Oe.coord+Ot*Ftt)}}for(let[Oe,K]of l.entries()){let Te=_[Oe]??[];if(Te.length===0)continue;let ce=[],Re=h.get(K.start),me=h.get(K.end),{pSrcPort:be,pDstPort:ke}=ve(Oe,Re,me),We=Te.map(Ot=>{let ft=L[Ot],Qt=Yt.get(`${ft.edgeIndex}-${ft.segmentIndex}`)??ft.pipe.coord;return{orient:ft.orientation,coord:Qt,from:ft.from,to:ft.to}});ce.push(be);for(let Ot=0;Ot<We.length;Ot++){let ft=We[Ot],Qt=ce[ce.length-1],$t=ft.orient==="vertical"?Qt.y:Qt.x,qt=ft.orient==="vertical"?Qt.x:Qt.y,Gt=We[Ot+1],jt=Ot<We.length-1;if(Math.abs(qt-ft.coord)>kl&&ce.push(XU(ft,$t)),jt&&Gt.orient===ft.orient)if(Math.abs(ft.coord-Gt.coord)>kl){let Zr=ft.orient==="vertical"?($t+Gt.from)/2:O5r(ft,Gt);ce.push(XU(ft,Zr),XU(Gt,Zr))}else(Ot===0||Ot===We.length-2)&&ce.push(XU(ft,O5r(ft,Gt)));else if(jt)ce.push(XU(ft,Gt.coord));else{let Zr=Math.abs(ft.from-$t)<Math.abs(ft.to-$t)?ft.to:ft.from;ce.push(XU(ft,Zr))}}let Ue=ce[ce.length-1];(Math.abs(Ue.x-ke.x)>kl||Math.abs(Ue.y-ke.y)>kl)&&ce.push(ke);let rt=ce[0];rt&&(Math.abs(rt.x-be.x)>kl||Math.abs(rt.y-be.y)>kl)&&ce.unshift(be);let nt=[];ce.length>0&&nt.push(ce[0]);for(let Ot=1;Ot<ce.length;Ot++){let ft=ce[Ot],Qt=nt[nt.length-1];(Math.abs(ft.x-Qt.x)>kl||Math.abs(ft.y-Qt.y)>kl)&&nt.push(ft)}K.points=nt}for(let Oe of l){let K=Oe.__originalEdge;K&&Oe.points&&(K.points=Oe.points)}r.edges=(r.edges??[]).filter(Oe=>!Oe.isLayoutOnly);let Ye=i((Oe,K)=>{let Te=K.x??0,ce=K.y??0,{w:Re,h:me}=$tt(K,0);if(Re<=0||me<=0)return Oe;let be=Te-Re/2,ke=Te+Re/2,We=ce-me/2,Ue=ce+me/2;if(Oe.x<be||Oe.x>ke||Oe.y<We||Oe.y>Ue)return Oe;let rt=Oe.x-be,nt=ke-Oe.x,Ot=Oe.y-We,ft=Ue-Oe.y,Qt=Math.min(rt,nt,Ot,ft);return Qt===rt?{x:be,y:Oe.y}:Qt===nt?{x:ke,y:Oe.y}:Qt===Ot?{x:Oe.x,y:We}:{x:Oe.x,y:Ue}},"nodeBoundaryClamp");for(let Oe of r.edges){let K=Oe.points;if(!K||K.length<2)continue;let Te=Oe.start,ce=Oe.end,Re=Te?h.get(Te):void 0,me=ce?h.get(ce):void 0;Re&&(K[0]=Ye(K[0],Re)),me&&(K[K.length-1]=Ye(K[K.length-1],me))}return r}var kl,zqn,hP,YU,CTe,ek,Ftt,N5r,B5r=ae(()=>{"use strict";oP();sTe();j_();kl=SSr.EPSILON,zqn=8,hP=15,YU=15,CTe=25,ek=20,Ftt=10;i(M5r,"chooseOrthogonalSide");N5r=i(r=>typeof r=="number"&&Number.isFinite(r)&&r>0,"isDrawableSize");i($tt,"drawnSize");i(O5r,"sharedLineEndpointCoord");i(XU,"pointOnLine");i(P5r,"routeEdgesOrthogonal")});function Uqn(r){return r.direction??"TB"}function F5r(r){let t=YEr(r),a=r.config.flowchart?.nodeSpacing??40,s=r.config.flowchart?.rankSpacing??100,l=r.config.swimlane?.ignoreCrossLaneEdges??!0,h=r.config.swimlane?.optimizeRanksByCrossings??!0,f=r.config.swimlane?.automaticLaneOrdering??!1,d=Uqn(r),{ordered:m,coordinates:b}=D5r(t,{nodeGap:a,layerGap:s,ignoreCrossLaneEdges:l,optimizeRanksByCrossings:h,automaticLaneOrdering:f,direction:d});XEr(t,m,b,{nodeGap:a,layerGap:s});for(let v of r.edges??[])delete v.points;P5r(r,d);for(let v of r.edges??[])(!v.curve||v.curve==="basis")&&(v.curve="rounded");return qSr(r,d),Dtt(r),d}var $5r=ae(()=>{"use strict";YSr();ptt();I5r();B5r();i(Uqn,"getSwimlaneDirection");i(F5r,"runSwimlaneLayoutCore")});var G5r={};is(G5r,{render:()=>Wqn});function Vqn(r){qEr(r);let t=KEr(r);r.nodes=t.nodes,r.edges=t.edges}var Wqn,j5r=ae(()=>{"use strict";Wxe();UEr();ptt();JEr();$5r();i(Vqn,"prepareSwimlaneLayout");Wqn=zU({prepareLayout:Vqn,runLayoutCore:F5r,afterPaint:zEr})});function mnt(r,t){(t==null||t>r.length)&&(t=r.length);for(var a=0,s=Array(t);a<t;a++)s[a]=r[a];return s}function Hqn(r){if(Array.isArray(r))return r}function qqn(r){if(Array.isArray(r))return mnt(r)}function iD(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Yqn(r,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,y8r(s.key),s)}}function aD(r,t,a){return t&&Yqn(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function v2(r,t){var a=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!a){if(Array.isArray(r)||(a=Pnt(r))||t){a&&(r=a);var s=0,l=i(function(){},"F");return{s:l,n:i(function(){return s>=r.length?{done:!0}:{done:!1,value:r[s++]}},"n"),e:i(function(m){throw m},"e"),f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h,f=!0,d=!1;return{s:i(function(){a=a.call(r)},"s"),n:i(function(){var m=a.next();return f=m.done,m},"n"),e:i(function(m){d=!0,h=m},"e"),f:i(function(){try{f||a.return==null||a.return()}finally{if(d)throw h}},"f")}}function m8r(r,t,a){return(t=y8r(t))in r?Object.defineProperty(r,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[t]=a,r}function Xqn(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Kqn(r,t){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var s,l,h,f,d=[],m=!0,b=!1;try{if(h=(a=a.call(r)).next,t===0){if(Object(a)!==a)return;m=!1}else for(;!(m=(s=h.call(a)).done)&&(d.push(s.value),d.length!==t);m=!0);}catch(v){b=!0,l=v}finally{try{if(!m&&a.return!=null&&(f=a.return(),Object(f)!==f))return}finally{if(b)throw l}}return d}}function Jqn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qqn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $g(r,t){return Hqn(r)||Kqn(r,t)||Pnt(r,t)||Jqn()}function XTe(r){return qqn(r)||Xqn(r)||Pnt(r)||Qqn()}function Zqn(r,t){if(typeof r!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var s=a.call(r,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function y8r(r){var t=Zqn(r,"string");return typeof t=="symbol"?t:t+""}function D0(r){"@babel/helpers - typeof";return D0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D0(r)}function Pnt(r,t){if(r){if(typeof r=="string")return mnt(r,t);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?mnt(r,t):void 0}}function cie(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function uie(){if(V5r)return Gtt;V5r=1;function r(t){var a=typeof t;return t!=null&&(a=="object"||a=="function")}return i(r,"isObject"),Gtt=r,Gtt}function TYn(){if(W5r)return jtt;W5r=1;var r=typeof ETe=="object"&&ETe&&ETe.Object===Object&&ETe;return jtt=r,jtt}function uke(){if(H5r)return ztt;H5r=1;var r=TYn(),t=typeof self=="object"&&self&&self.Object===Object&&self,a=r||t||Function("return this")();return ztt=a,ztt}function kYn(){if(q5r)return Utt;q5r=1;var r=uke(),t=i(function(){return r.Date.now()},"now");return Utt=t,Utt}function CYn(){if(Y5r)return Vtt;Y5r=1;var r=/\s/;function t(a){for(var s=a.length;s--&&r.test(a.charAt(s)););return s}return i(t,"trimmedEndIndex"),Vtt=t,Vtt}function EYn(){if(X5r)return Wtt;X5r=1;var r=CYn(),t=/^\s+/;function a(s){return s&&s.slice(0,r(s)+1).replace(t,"")}return i(a,"baseTrim"),Wtt=a,Wtt}function $nt(){if(K5r)return Htt;K5r=1;var r=uke(),t=r.Symbol;return Htt=t,Htt}function SYn(){if(J5r)return qtt;J5r=1;var r=$nt(),t=Object.prototype,a=t.hasOwnProperty,s=t.toString,l=r?r.toStringTag:void 0;function h(f){var d=a.call(f,l),m=f[l];try{f[l]=void 0;var b=!0}catch{}var v=s.call(f);return b&&(d?f[l]=m:delete f[l]),v}return i(h,"getRawTag"),qtt=h,qtt}function AYn(){if(Q5r)return Ytt;Q5r=1;var r=Object.prototype,t=r.toString;function a(s){return t.call(s)}return i(a,"objectToString"),Ytt=a,Ytt}function S8r(){if(Z5r)return Xtt;Z5r=1;var r=$nt(),t=SYn(),a=AYn(),s="[object Null]",l="[object Undefined]",h=r?r.toStringTag:void 0;function f(d){return d==null?d===void 0?l:s:h&&h in Object(d)?t(d):a(d)}return i(f,"baseGetTag"),Xtt=f,Xtt}function RYn(){if(e6r)return Ktt;e6r=1;function r(t){return t!=null&&typeof t=="object"}return i(r,"isObjectLike"),Ktt=r,Ktt}function hie(){if(t6r)return Jtt;t6r=1;var r=S8r(),t=RYn(),a="[object Symbol]";function s(l){return typeof l=="symbol"||t(l)&&r(l)==a}return i(s,"isSymbol"),Jtt=s,Jtt}function LYn(){if(r6r)return Qtt;r6r=1;var r=EYn(),t=uie(),a=hie(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt;function m(b){if(typeof b=="number")return b;if(a(b))return s;if(t(b)){var v=typeof b.valueOf=="function"?b.valueOf():b;b=t(v)?v+"":v}if(typeof b!="string")return b===0?b:+b;b=r(b);var T=h.test(b);return T||f.test(b)?d(b.slice(2),T?2:8):l.test(b)?s:+b}return i(m,"toNumber"),Qtt=m,Qtt}function _Yn(){if(n6r)return Ztt;n6r=1;var r=uie(),t=kYn(),a=LYn(),s="Expected a function",l=Math.max,h=Math.min;function f(d,m,b){var v,T,C,E,S,R,L=0,_=!1,I=!1,N=!0;if(typeof d!="function")throw new TypeError(s);m=a(m)||0,r(b)&&(_=!!b.leading,I="maxWait"in b,C=I?l(a(b.maxWait)||0,m):C,N="trailing"in b?!!b.trailing:N);function B(H){var re=v,Z=T;return v=T=void 0,L=H,E=d.apply(Z,re),E}i(B,"invokeFunc");function O(H){return L=H,S=setTimeout(V,m),_?B(H):E}i(O,"leadingEdge");function P(H){var re=H-R,Z=H-L,X=m-re;return I?h(X,C-Z):X}i(P,"remainingWait");function $(H){var re=H-R,Z=H-L;return R===void 0||re>=m||re<0||I&&Z>=C}i($,"shouldInvoke");function V(){var H=t();if($(H))return Y(H);S=setTimeout(V,P(H))}i(V,"timerExpired");function Y(H){return S=void 0,N&&v?B(H):(v=T=void 0,E)}i(Y,"trailingEdge");function Q(){S!==void 0&&clearTimeout(S),L=0,v=R=T=S=void 0}i(Q,"cancel");function q(){return S===void 0?E:Y(t())}i(q,"flush");function W(){var H=t(),re=$(H);if(v=arguments,T=this,R=H,re){if(S===void 0)return O(R);if(I)return clearTimeout(S),S=setTimeout(V,m),B(R)}return S===void 0&&(S=setTimeout(V,m)),E}return i(W,"debounced"),W.cancel=Q,W.flush=q,W}return i(f,"debounce"),Ztt=f,Ztt}function OYn(r,t,a,s,l){var h=l*Math.PI/180,f=Math.cos(h)*(r-a)-Math.sin(h)*(t-s)+a,d=Math.sin(h)*(r-a)+Math.cos(h)*(t-s)+s;return{x:f,y:d}}function BYn(r,t,a){if(a===0)return r;var s=(t.x1+t.x2)/2,l=(t.y1+t.y2)/2,h=t.w/t.h,f=1/h,d=OYn(r.x,r.y,s,l,a),m=PYn(d.x,d.y,s,l,h,f);return{x:m.x,y:m.y}}function YYn(){return l6r||(l6r=1,(function(r,t){(function(){var a,s,l,h,f,d,m,b,v,T,C,E,S,R,L;l=Math.floor,T=Math.min,s=i(function(_,I){return _<I?-1:_>I?1:0},"defaultCmp"),v=i(function(_,I,N,B,O){var P;if(N==null&&(N=0),O==null&&(O=s),N<0)throw new Error("lo must be non-negative");for(B==null&&(B=_.length);N<B;)P=l((N+B)/2),O(I,_[P])<0?B=P:N=P+1;return[].splice.apply(_,[N,N-N].concat(I)),I},"insort"),d=i(function(_,I,N){return N==null&&(N=s),_.push(I),R(_,0,_.length-1,N)},"heappush"),f=i(function(_,I){var N,B;return I==null&&(I=s),N=_.pop(),_.length?(B=_[0],_[0]=N,L(_,0,I)):B=N,B},"heappop"),b=i(function(_,I,N){var B;return N==null&&(N=s),B=_[0],_[0]=I,L(_,0,N),B},"heapreplace"),m=i(function(_,I,N){var B;return N==null&&(N=s),_.length&&N(_[0],I)<0&&(B=[_[0],I],I=B[0],_[0]=B[1],L(_,0,N)),I},"heappushpop"),h=i(function(_,I){var N,B,O,P,$,V;for(I==null&&(I=s),P=(function(){V=[];for(var Y=0,Q=l(_.length/2);0<=Q?Y<Q:Y>Q;0<=Q?Y++:Y--)V.push(Y);return V}).apply(this).reverse(),$=[],B=0,O=P.length;B<O;B++)N=P[B],$.push(L(_,N,I));return $},"heapify"),S=i(function(_,I,N){var B;if(N==null&&(N=s),B=_.indexOf(I),B!==-1)return R(_,0,B,N),L(_,B,N)},"updateItem"),C=i(function(_,I,N){var B,O,P,$,V;if(N==null&&(N=s),O=_.slice(0,I),!O.length)return O;for(h(O,N),V=_.slice(I),P=0,$=V.length;P<$;P++)B=V[P],m(O,B,N);return O.sort(N).reverse()},"nlargest"),E=i(function(_,I,N){var B,O,P,$,V,Y,Q,q,W;if(N==null&&(N=s),I*10<=_.length){if(P=_.slice(0,I).sort(N),!P.length)return P;for(O=P[P.length-1],Q=_.slice(I),$=0,Y=Q.length;$<Y;$++)B=Q[$],N(B,O)<0&&(v(P,B,0,null,N),P.pop(),O=P[P.length-1]);return P}for(h(_,N),W=[],V=0,q=T(I,_.length);0<=q?V<q:V>q;0<=q?++V:--V)W.push(f(_,N));return W},"nsmallest"),R=i(function(_,I,N,B){var O,P,$;for(B==null&&(B=s),O=_[N];N>I;){if($=N-1>>1,P=_[$],B(O,P)<0){_[N]=P,N=$;continue}break}return _[N]=O},"_siftdown"),L=i(function(_,I,N){var B,O,P,$,V;for(N==null&&(N=s),O=_.length,V=I,P=_[I],B=2*I+1;B<O;)$=B+1,$<O&&!(N(_[B],_[$])<0)&&(B=$),_[I]=_[B],I=B,B=2*I+1;return _[I]=P,R(_,V,I,N)},"_siftup"),a=(function(){_.push=d,_.pop=f,_.replace=b,_.pushpop=m,_.heapify=h,_.updateItem=S,_.nlargest=C,_.nsmallest=E;function _(I){this.cmp=I??s,this.nodes=[]}return i(_,"Heap"),_.prototype.push=function(I){return d(this.nodes,I,this.cmp)},_.prototype.pop=function(){return f(this.nodes,this.cmp)},_.prototype.peek=function(){return this.nodes[0]},_.prototype.contains=function(I){return this.nodes.indexOf(I)!==-1},_.prototype.replace=function(I){return b(this.nodes,I,this.cmp)},_.prototype.pushpop=function(I){return m(this.nodes,I,this.cmp)},_.prototype.heapify=function(){return h(this.nodes,this.cmp)},_.prototype.updateItem=function(I){return S(this.nodes,I,this.cmp)},_.prototype.clear=function(){return this.nodes=[]},_.prototype.empty=function(){return this.nodes.length===0},_.prototype.size=function(){return this.nodes.length},_.prototype.clone=function(){var I;return I=new _,I.nodes=this.nodes.slice(0),I},_.prototype.toArray=function(){return this.nodes.slice(0)},_.prototype.insert=_.prototype.push,_.prototype.top=_.prototype.peek,_.prototype.front=_.prototype.peek,_.prototype.has=_.prototype.contains,_.prototype.copy=_.prototype.clone,_})(),(function(_,I){return r.exports=I()})(this,function(){return a})}).call(qYn)})(FTe)),FTe.exports}function XYn(){return c6r||(c6r=1,trt=YYn()),trt}function xXn(r,t){if(r.length<3)throw new Error("Need at least 3 vertices");var a=i(function(V,Y){return{x:V.x+Y.x,y:V.y+Y.y}},"add"),s=i(function(V,Y){return{x:V.x-Y.x,y:V.y-Y.y}},"sub"),l=i(function(V,Y){return{x:V.x*Y,y:V.y*Y}},"scale"),h=i(function(V,Y){return V.x*Y.y-V.y*Y.x},"cross"),f=i(function(V){var Y=wXn(V.x,V.y);return Y===0?{x:0,y:0}:{x:V.x/Y,y:V.y/Y}},"normalize"),d=i(function(V){for(var Y=0,Q=0;Q<V.length;Q++){var q=V[Q],W=V[(Q+1)%V.length];Y+=q.x*W.y-W.x*q.y}return Y/2},"signedArea"),m=i(function(V,Y,Q,q){var W=s(Y,V),H=s(q,Q),re=h(W,H);if(Math.abs(re)<1e-9)return a(V,l(W,.5));var Z=h(s(Q,V),H)/re;return a(V,l(W,Z))},"intersectLines"),b=r.map(function($){return{x:$.x,y:$.y}});d(b)<0&&b.reverse();for(var v=b.length,T=[],C=0;C<v;C++){var E=b[C],S=b[(C+1)%v],R=s(S,E),L=f({x:R.y,y:-R.x});T.push(L)}for(var _=T.map(function($,V){var Y=a(b[V],l($,t)),Q=a(b[(V+1)%v],l($,t));return{p1:Y,p2:Q}}),I=[],N=0;N<v;N++){var B=_[(N-1+v)%v],O=_[N],P=m(B.p1,B.p2,O.p1,O.p2);I.push(P)}return I}function TXn(r,t,a,s,l,h){var f=DXn(r,t,a,s,l),d=xXn(f,h),m=Ob();return d.forEach(function(b){return P8r(m,b.x,b.y)}),m}function art(r,t){function a(T){for(var C=[],E=0;E<T.length;E++){var S=T[E],R=T[(E+1)%T.length],L={x:R.x-S.x,y:R.y-S.y},_={x:-L.y,y:L.x},I=Math.sqrt(_.x*_.x+_.y*_.y);C.push({x:_.x/I,y:_.y/I})}return C}i(a,"getAxes");function s(T,C){var E=1/0,S=-1/0,R=v2(T),L;try{for(R.s();!(L=R.n()).done;){var _=L.value,I=_.x*C.x+_.y*C.y;E=Math.min(E,I),S=Math.max(S,I)}}catch(N){R.e(N)}finally{R.f()}return{min:E,max:S}}i(s,"project");function l(T,C){return!(T.max<C.min||C.max<T.min)}i(l,"overlaps");var h=[].concat(XTe(a(r)),XTe(a(t))),f=v2(h),d;try{for(f.s();!(d=f.n()).done;){var m=d.value,b=s(r,m),v=s(t,m);if(!l(b,v))return!1}}catch(T){f.e(T)}finally{f.f()}return!0}function dke(r,t,a,s,l,h){var f;return Bd(r)?f=r:f=fV[r]||fV.euclidean,t===0&&Bd(r)?f(l,h):f(t,a,s,l,h)}function pke(){if(A6r)return ort;A6r=1;var r=Array.isArray;return ort=r,ort}function CKn(){if(R6r)return lrt;R6r=1;var r=pke(),t=hie(),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function l(h,f){if(r(h))return!1;var d=typeof h;return d=="number"||d=="symbol"||d=="boolean"||h==null||t(h)?!0:s.test(h)||!a.test(h)||f!=null&&h in Object(f)}return i(l,"isKey"),lrt=l,lrt}function EKn(){if(L6r)return crt;L6r=1;var r=S8r(),t=uie(),a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",h="[object Proxy]";function f(d){if(!t(d))return!1;var m=r(d);return m==s||m==l||m==a||m==h}return i(f,"isFunction"),crt=f,crt}function SKn(){if(_6r)return urt;_6r=1;var r=uke(),t=r["__core-js_shared__"];return urt=t,urt}function AKn(){if(D6r)return hrt;D6r=1;var r=SKn(),t=(function(){var s=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})();function a(s){return!!t&&t in s}return i(a,"isMasked"),hrt=a,hrt}function RKn(){if(I6r)return frt;I6r=1;var r=Function.prototype,t=r.toString;function a(s){if(s!=null){try{return t.call(s)}catch{}try{return s+""}catch{}}return""}return i(a,"toSource"),frt=a,frt}function LKn(){if(M6r)return drt;M6r=1;var r=EKn(),t=AKn(),a=uie(),s=RKn(),l=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,f=Function.prototype,d=Object.prototype,m=f.toString,b=d.hasOwnProperty,v=RegExp("^"+m.call(b).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T(C){if(!a(C)||t(C))return!1;var E=r(C)?v:h;return E.test(s(C))}return i(T,"baseIsNative"),drt=T,drt}function _Kn(){if(N6r)return prt;N6r=1;function r(t,a){return t?.[a]}return i(r,"getValue"),prt=r,prt}function Ynt(){if(O6r)return grt;O6r=1;var r=LKn(),t=_Kn();function a(s,l){var h=t(s,l);return r(h)?h:void 0}return i(a,"getNative"),grt=a,grt}function gke(){if(P6r)return mrt;P6r=1;var r=Ynt(),t=r(Object,"create");return mrt=t,mrt}function DKn(){if(B6r)return yrt;B6r=1;var r=gke();function t(){this.__data__=r?r(null):{},this.size=0}return i(t,"hashClear"),yrt=t,yrt}function IKn(){if(F6r)return brt;F6r=1;function r(t){var a=this.has(t)&&delete this.__data__[t];return this.size-=a?1:0,a}return i(r,"hashDelete"),brt=r,brt}function MKn(){if($6r)return vrt;$6r=1;var r=gke(),t="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;function l(h){var f=this.__data__;if(r){var d=f[h];return d===t?void 0:d}return s.call(f,h)?f[h]:void 0}return i(l,"hashGet"),vrt=l,vrt}function NKn(){if(G6r)return wrt;G6r=1;var r=gke(),t=Object.prototype,a=t.hasOwnProperty;function s(l){var h=this.__data__;return r?h[l]!==void 0:a.call(h,l)}return i(s,"hashHas"),wrt=s,wrt}function OKn(){if(j6r)return xrt;j6r=1;var r=gke(),t="__lodash_hash_undefined__";function a(s,l){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=r&&l===void 0?t:l,this}return i(a,"hashSet"),xrt=a,xrt}function PKn(){if(z6r)return Trt;z6r=1;var r=DKn(),t=IKn(),a=MKn(),s=NKn(),l=OKn();function h(f){var d=-1,m=f==null?0:f.length;for(this.clear();++d<m;){var b=f[d];this.set(b[0],b[1])}}return i(h,"Hash"),h.prototype.clear=r,h.prototype.delete=t,h.prototype.get=a,h.prototype.has=s,h.prototype.set=l,Trt=h,Trt}function BKn(){if(U6r)return krt;U6r=1;function r(){this.__data__=[],this.size=0}return i(r,"listCacheClear"),krt=r,krt}function J8r(){if(V6r)return Crt;V6r=1;function r(t,a){return t===a||t!==t&&a!==a}return i(r,"eq"),Crt=r,Crt}function mke(){if(W6r)return Ert;W6r=1;var r=J8r();function t(a,s){for(var l=a.length;l--;)if(r(a[l][0],s))return l;return-1}return i(t,"assocIndexOf"),Ert=t,Ert}function FKn(){if(H6r)return Srt;H6r=1;var r=mke(),t=Array.prototype,a=t.splice;function s(l){var h=this.__data__,f=r(h,l);if(f<0)return!1;var d=h.length-1;return f==d?h.pop():a.call(h,f,1),--this.size,!0}return i(s,"listCacheDelete"),Srt=s,Srt}function $Kn(){if(q6r)return Art;q6r=1;var r=mke();function t(a){var s=this.__data__,l=r(s,a);return l<0?void 0:s[l][1]}return i(t,"listCacheGet"),Art=t,Art}function GKn(){if(Y6r)return Rrt;Y6r=1;var r=mke();function t(a){return r(this.__data__,a)>-1}return i(t,"listCacheHas"),Rrt=t,Rrt}function jKn(){if(X6r)return Lrt;X6r=1;var r=mke();function t(a,s){var l=this.__data__,h=r(l,a);return h<0?(++this.size,l.push([a,s])):l[h][1]=s,this}return i(t,"listCacheSet"),Lrt=t,Lrt}function zKn(){if(K6r)return _rt;K6r=1;var r=BKn(),t=FKn(),a=$Kn(),s=GKn(),l=jKn();function h(f){var d=-1,m=f==null?0:f.length;for(this.clear();++d<m;){var b=f[d];this.set(b[0],b[1])}}return i(h,"ListCache"),h.prototype.clear=r,h.prototype.delete=t,h.prototype.get=a,h.prototype.has=s,h.prototype.set=l,_rt=h,_rt}function UKn(){if(J6r)return Drt;J6r=1;var r=Ynt(),t=uke(),a=r(t,"Map");return Drt=a,Drt}function VKn(){if(Q6r)return Irt;Q6r=1;var r=PKn(),t=zKn(),a=UKn();function s(){this.size=0,this.__data__={hash:new r,map:new(a||t),string:new r}}return i(s,"mapCacheClear"),Irt=s,Irt}function WKn(){if(Z6r)return Mrt;Z6r=1;function r(t){var a=typeof t;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?t!=="__proto__":t===null}return i(r,"isKeyable"),Mrt=r,Mrt}function yke(){if(eAr)return Nrt;eAr=1;var r=WKn();function t(a,s){var l=a.__data__;return r(s)?l[typeof s=="string"?"string":"hash"]:l.map}return i(t,"getMapData"),Nrt=t,Nrt}function HKn(){if(tAr)return Ort;tAr=1;var r=yke();function t(a){var s=r(this,a).delete(a);return this.size-=s?1:0,s}return i(t,"mapCacheDelete"),Ort=t,Ort}function qKn(){if(rAr)return Prt;rAr=1;var r=yke();function t(a){return r(this,a).get(a)}return i(t,"mapCacheGet"),Prt=t,Prt}function YKn(){if(nAr)return Brt;nAr=1;var r=yke();function t(a){return r(this,a).has(a)}return i(t,"mapCacheHas"),Brt=t,Brt}function XKn(){if(iAr)return Frt;iAr=1;var r=yke();function t(a,s){var l=r(this,a),h=l.size;return l.set(a,s),this.size+=l.size==h?0:1,this}return i(t,"mapCacheSet"),Frt=t,Frt}function KKn(){if(aAr)return $rt;aAr=1;var r=VKn(),t=HKn(),a=qKn(),s=YKn(),l=XKn();function h(f){var d=-1,m=f==null?0:f.length;for(this.clear();++d<m;){var b=f[d];this.set(b[0],b[1])}}return i(h,"MapCache"),h.prototype.clear=r,h.prototype.delete=t,h.prototype.get=a,h.prototype.has=s,h.prototype.set=l,$rt=h,$rt}function JKn(){if(sAr)return Grt;sAr=1;var r=KKn(),t="Expected a function";function a(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new TypeError(t);var h=i(function(){var f=arguments,d=l?l.apply(this,f):f[0],m=h.cache;if(m.has(d))return m.get(d);var b=s.apply(this,f);return h.cache=m.set(d,b)||m,b},"memoized");return h.cache=new(a.Cache||r),h}return i(a,"memoize"),a.Cache=r,Grt=a,Grt}function QKn(){if(oAr)return jrt;oAr=1;var r=JKn(),t=500;function a(s){var l=r(s,function(f){return h.size===t&&h.clear(),f}),h=l.cache;return l}return i(a,"memoizeCapped"),jrt=a,jrt}function Q8r(){if(lAr)return zrt;lAr=1;var r=QKn(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r(function(l){var h=[];return l.charCodeAt(0)===46&&h.push(""),l.replace(t,function(f,d,m,b){h.push(m?b.replace(a,"$1"):d||f)}),h});return zrt=s,zrt}function Z8r(){if(cAr)return Urt;cAr=1;function r(t,a){for(var s=-1,l=t==null?0:t.length,h=Array(l);++s<l;)h[s]=a(t[s],s,t);return h}return i(r,"arrayMap"),Urt=r,Urt}function ZKn(){if(uAr)return Vrt;uAr=1;var r=$nt(),t=Z8r(),a=pke(),s=hie(),l=r?r.prototype:void 0,h=l?l.toString:void 0;function f(d){if(typeof d=="string")return d;if(a(d))return t(d,f)+"";if(s(d))return h?h.call(d):"";var m=d+"";return m=="0"&&1/d==-1/0?"-0":m}return i(f,"baseToString"),Vrt=f,Vrt}function e7r(){if(hAr)return Wrt;hAr=1;var r=ZKn();function t(a){return a==null?"":r(a)}return i(t,"toString"),Wrt=t,Wrt}function t7r(){if(fAr)return Hrt;fAr=1;var r=pke(),t=CKn(),a=Q8r(),s=e7r();function l(h,f){return r(h)?h:t(h,f)?[h]:a(s(h))}return i(l,"castPath"),Hrt=l,Hrt}function Xnt(){if(dAr)return qrt;dAr=1;var r=hie();function t(a){if(typeof a=="string"||r(a))return a;var s=a+"";return s=="0"&&1/a==-1/0?"-0":s}return i(t,"toKey"),qrt=t,qrt}function eJn(){if(pAr)return Yrt;pAr=1;var r=t7r(),t=Xnt();function a(s,l){l=r(l,s);for(var h=0,f=l.length;s!=null&&h<f;)s=s[t(l[h++])];return h&&h==f?s:void 0}return i(a,"baseGet"),Yrt=a,Yrt}function tJn(){if(gAr)return Xrt;gAr=1;var r=eJn();function t(a,s,l){var h=a==null?void 0:r(a,s);return h===void 0?l:h}return i(t,"get"),Xrt=t,Xrt}function iJn(){if(mAr)return Krt;mAr=1;var r=Ynt(),t=(function(){try{var a=r(Object,"defineProperty");return a({},"",{}),a}catch{}})();return Krt=t,Krt}function aJn(){if(yAr)return Jrt;yAr=1;var r=iJn();function t(a,s,l){s=="__proto__"&&r?r(a,s,{configurable:!0,enumerable:!0,value:l,writable:!0}):a[s]=l}return i(t,"baseAssignValue"),Jrt=t,Jrt}function sJn(){if(bAr)return Qrt;bAr=1;var r=aJn(),t=J8r(),a=Object.prototype,s=a.hasOwnProperty;function l(h,f,d){var m=h[f];(!(s.call(h,f)&&t(m,d))||d===void 0&&!(f in h))&&r(h,f,d)}return i(l,"assignValue"),Qrt=l,Qrt}function oJn(){if(vAr)return Zrt;vAr=1;var r=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function a(s,l){var h=typeof s;return l=l??r,!!l&&(h=="number"||h!="symbol"&&t.test(s))&&s>-1&&s%1==0&&s<l}return i(a,"isIndex"),Zrt=a,Zrt}function lJn(){if(wAr)return ent;wAr=1;var r=sJn(),t=t7r(),a=oJn(),s=uie(),l=Xnt();function h(f,d,m,b){if(!s(f))return f;d=t(d,f);for(var v=-1,T=d.length,C=T-1,E=f;E!=null&&++v<T;){var S=l(d[v]),R=m;if(S==="__proto__"||S==="constructor"||S==="prototype")return f;if(v!=C){var L=E[S];R=b?b(L,S,E):void 0,R===void 0&&(R=s(L)?L:a(d[v+1])?[]:{})}r(E,S,R),E=E[S]}return f}return i(h,"baseSet"),ent=h,ent}function cJn(){if(xAr)return tnt;xAr=1;var r=lJn();function t(a,s,l){return a==null?a:r(a,s,l)}return i(t,"set"),tnt=t,tnt}function fJn(){if(TAr)return rnt;TAr=1;function r(t,a){var s=-1,l=t.length;for(a||(a=Array(l));++s<l;)a[s]=t[s];return a}return i(r,"copyArray"),rnt=r,rnt}function dJn(){if(kAr)return nnt;kAr=1;var r=Z8r(),t=fJn(),a=pke(),s=hie(),l=Q8r(),h=Xnt(),f=e7r();function d(m){return a(m)?r(m,h):s(m)?[m]:t(l(f(m)))}return i(d,"toPath"),nnt=d,nnt}function Jnt(r,t,a,s){for(var l=[],h=new mV,f=r.cy(),d=f.hasCompoundNodes(),m=0;m<r.length;m++){var b=r[m];a?l.push(b):d&&s(l,h,b)}for(;l.length>0;){var v=l.shift();t(v),h.add(v.id()),d&&s(l,h,v)}return r}function n7r(r,t,a){if(a.isParent())for(var s=a._private.children,l=0;l<s.length;l++){var h=s[l];t.has(h.id())||r.push(h)}}function i7r(r,t,a){if(a.isChild()){var s=a._private.parent;t.has(s.id())||r.push(s)}}function MJn(r,t,a){i7r(r,t,a),n7r(r,t,a)}function int(r){return function(t){var a=this;if(t===void 0&&(t=!0),a.length!==0)if(a.isNode()&&!a.removed()){for(var s=0,l=a[0],h=l._private.edges,f=0;f<h.length;f++){var d=h[f];!t&&d.isLoop()||(s+=r(l,d))}return s}else return}}function JU(r,t){return function(a){for(var s,l=this.nodes(),h=0;h<l.length;h++){var f=l[h],d=f[r](a);d!==void 0&&(s===void 0||t(d,s))&&(s=d)}return s}}function Gne(){return!1}function ITe(){return!0}function vke(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ZJn,t=arguments.length>1?arguments[1]:void 0,a=0;a<_Ar.length;a++){var s=_Ar[a];this[s]=r[s]||p7r[s]}this.context=t||this.context,this.listeners=[],this.emitting=0}function v7r(r,t,a){var s=a._private,l=s.styleCache=s.styleCache||[],h;return(h=l[r])!=null||(h=l[r]=t(a)),h}function wke(r,t){return r=wP(r),i(function(s){return v7r(r,t,s)},"cachedStyleFunction")}function xke(r,t){r=wP(r);var a=i(function(l){return t.call(l)},"selfFn");return i(function(){var l=this[0];if(l)return v7r(r,a,l)},"cachedPrototypeStyleFunction")}function snt(r,t){var a=r._private,s=a.data.parent?r.parents():null;if(s)for(var l=0;l<s.length;l++){var h=s[l];if(!t(h))return!1}return!0}function Qnt(r){var t=r.ok,a=r.edgeOkViaNode||r.ok,s=r.parentOk||r.ok;return function(){var l=this.cy();if(!l.styleEnabled())return!0;var h=this[0],f=l.hasCompoundNodes();if(h){var d=h._private;if(!t(h))return!1;if(h.isNode())return!f||snt(h,s);var m=d.source,b=d.target;return a(m)&&(!f||snt(m,a))&&(m===b||a(b)&&(!f||snt(b,a)))}}}function IAr(r){return function(){var t=arguments,a=[];if(t.length===2){var s=t[0],l=t[1];this.on(r.event,s,l)}else if(t.length===1&&Bd(t[0])){var h=t[0];this.on(r.event,h)}else if(t.length===0||t.length===1&&zh(t[0])){for(var f=t.length===1?t[0]:null,d=0;d<this.length;d++){var m=this[d],b=!r.ableField||m._private[r.ableField],v=m._private[r.field]!=r.value;if(r.overrideAble){var T=r.overrideAble(m);if(T!==void 0&&(b=T,!T))return this}b&&(m._private[r.field]=r.value,v&&a.push(m))}var C=this.spawn(a);C.updateStyle(),C.emit(r.event),f&&C.emit(f)}return this}}function vV(r){J_[r.field]=function(){var t=this[0];if(t){if(r.overrideField){var a=r.overrideField(t);if(a!==void 0)return a}return t._private[r.field]}},J_[r.on]=IAr({event:r.on,field:r.field,ableField:r.ableField,overrideAble:r.overrideAble,value:!0}),J_[r.off]=IAr({event:r.off,field:r.field,ableField:r.ableField,overrideAble:r.overrideAble,value:!1})}function PAr(r){return i(function(a){for(var s=[],l=0;l<this.length;l++){var h=this[l],f=h._private[r.attr];f&&s.push(f)}return this.spawn(s,!0).filter(a)},"sourceImpl")}function BAr(r){return i(function(a){var s=[],l=this._private.cy,h=r||{};Ps(a)&&(a=l.$(a));for(var f=0;f<a.length;f++)for(var d=a[f]._private.edges,m=0;m<d.length;m++){var b=d[m],v=b._private.data,T=this.hasElementWithId(v.source)&&a.hasElementWithId(v.target),C=a.hasElementWithId(v.source)&&this.hasElementWithId(v.target),E=T||C;E&&((h.thisIsSrc||h.thisIsTgt)&&(h.thisIsSrc&&!T||h.thisIsTgt&&!C)||s.push(b))}return this.spawn(s,!0)},"edgesWithImpl")}function FAr(r){var t={codirected:!1};return r=ao({},t,r),i(function(s){for(var l=[],h=this.edges(),f=r,d=0;d<h.length;d++)for(var m=h[d],b=m._private,v=b.source,T=v._private.data.id,C=b.data.target,E=v._private.edges,S=0;S<E.length;S++){var R=E[S],L=R._private.data,_=L.target,I=L.source,N=_===C&&I===T,B=T===_&&C===I;(f.codirected&&N||!f.codirected&&(N||B))&&l.push(R)}return this.spawn(l,!0).filter(s)},"parallelEdgesImpl")}function uQn(r,t,a,s){var l=4,h=.001,f=1e-7,d=10,m=11,b=1/(m-1),v=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var T=0;T<4;++T)if(typeof arguments[T]!="number"||isNaN(arguments[T])||!isFinite(arguments[T]))return!1;r=Math.min(r,1),a=Math.min(a,1),r=Math.max(r,0),a=Math.max(a,0);var C=v?new Float32Array(m):new Array(m);function E(Q,q){return 1-3*q+3*Q}i(E,"A");function S(Q,q){return 3*q-6*Q}i(S,"B");function R(Q){return 3*Q}i(R,"C");function L(Q,q,W){return((E(q,W)*Q+S(q,W))*Q+R(q))*Q}i(L,"calcBezier");function _(Q,q,W){return 3*E(q,W)*Q*Q+2*S(q,W)*Q+R(q)}i(_,"getSlope");function I(Q,q){for(var W=0;W<l;++W){var H=_(q,r,a);if(H===0)return q;var re=L(q,r,a)-Q;q-=re/H}return q}i(I,"newtonRaphsonIterate");function N(){for(var Q=0;Q<m;++Q)C[Q]=L(Q*b,r,a)}i(N,"calcSampleValues");function B(Q,q,W){var H,re,Z=0;do re=q+(W-q)/2,H=L(re,r,a)-Q,H>0?W=re:q=re;while(Math.abs(H)>f&&++Z<d);return re}i(B,"binarySubdivide");function O(Q){for(var q=0,W=1,H=m-1;W!==H&&C[W]<=Q;++W)q+=b;--W;var re=(Q-C[W])/(C[W+1]-C[W]),Z=q+re*b,X=_(Z,r,a);return X>=h?I(Q,Z):X===0?Z:B(Q,q,q+b)}i(O,"getTForX");var P=!1;function $(){P=!0,(r!==t||a!==s)&&N()}i($,"precompute");var V=i(function(q){return P||$(),r===t&&a===s?q:q===0?0:q===1?1:L(O(q),t,s)},"f");V.getControlPoints=function(){return[{x:r,y:t},{x:a,y:s}]};var Y="generateBezier("+[r,t,a,s]+")";return V.toString=function(){return Y},V}function $Ar(r,t,a,s,l){if(s===1||t===a)return a;var h=l(t,a,s);return r==null||((r.roundValue||r.color)&&(h=Math.round(h)),r.min!==void 0&&(h=Math.max(h,r.min)),r.max!==void 0&&(h=Math.min(h,r.max))),h}function GAr(r,t){return r.pfValue!=null||r.value!=null?r.pfValue!=null&&(t==null||t.type.units!=="%")?r.pfValue:r.value:r}function QU(r,t,a,s,l){var h=l!=null?l.type:null;a<0?a=0:a>1&&(a=1);var f=GAr(r,l),d=GAr(t,l);if(ua(f)&&ua(d))return $Ar(h,f,d,a,s);if(zh(f)&&zh(d)){for(var m=[],b=0;b<d.length;b++){var v=f[b],T=d[b];if(v!=null&&T!=null){var C=$Ar(h,v,T,a,s);m.push(C)}else m.push(T)}return m}}function fQn(r,t,a,s){var l=!s,h=r._private,f=t._private,d=f.easing,m=f.startTime,b=s?r:r.cy(),v=b.style();if(!f.easingImpl)if(d==null)f.easingImpl=UTe.linear;else{var T;if(Ps(d)){var C=v.parse("transition-timing-function",d);T=C.value}else T=d;var E,S;Ps(T)?(E=T,S=[]):(E=T[1],S=T.slice(2).map(function(ne){return+ne})),S.length>0?(E==="spring"&&S.push(f.duration),f.easingImpl=UTe[E].apply(null,S)):f.easingImpl=UTe[E]}var R=f.easingImpl,L;if(f.duration===0?L=1:L=(a-m)/f.duration,f.applying&&(L=f.progress),L<0?L=0:L>1&&(L=1),f.delay==null){var _=f.startPosition,I=f.position;if(I&&l&&!r.locked()){var N={};jne(_.x,I.x)&&(N.x=QU(_.x,I.x,L,R)),jne(_.y,I.y)&&(N.y=QU(_.y,I.y,L,R)),r.position(N)}var B=f.startPan,O=f.pan,P=h.pan,$=O!=null&&s;$&&(jne(B.x,O.x)&&(P.x=QU(B.x,O.x,L,R)),jne(B.y,O.y)&&(P.y=QU(B.y,O.y,L,R)),r.emit("pan"));var V=f.startZoom,Y=f.zoom,Q=Y!=null&&s;Q&&(jne(V,Y)&&(h.zoom=eie(h.minZoom,QU(V,Y,L,R),h.maxZoom)),r.emit("zoom")),($||Q)&&r.emit("viewport");var q=f.style;if(q&&q.length>0&&l){for(var W=0;W<q.length;W++){var H=q[W],re=H.name,Z=H,X=f.startStyle[re],te=v.properties[X.name],U=QU(X,Z,L,R,te);v.overrideBypass(r,re,U)}r.emit("style")}}return f.progress=L,L}function jne(r,t){return r==null||t==null?!1:ua(r)&&ua(t)?!0:!!(r&&t)}function dQn(r,t,a,s){var l=t._private;l.started=!0,l.startTime=a-l.progress*l.duration}function jAr(r,t){var a=t._private.aniEles,s=[];function l(v,T){var C=v._private,E=C.animation.current,S=C.animation.queue,R=!1;if(E.length===0){var L=S.shift();L&&E.push(L)}for(var _=i(function(P){for(var $=P.length-1;$>=0;$--){var V=P[$];V()}P.splice(0,P.length)},"callbacks"),I=E.length-1;I>=0;I--){var N=E[I],B=N._private;if(B.stopped){E.splice(I,1),B.hooked=!1,B.playing=!1,B.started=!1,_(B.frames);continue}!B.playing&&!B.applying||(B.playing&&B.applying&&(B.applying=!1),B.started||dQn(v,N,r),fQn(v,N,r,T),B.applying&&(B.applying=!1),_(B.frames),B.step!=null&&B.step(r),N.completed()&&(E.splice(I,1),B.hooked=!1,B.playing=!1,B.started=!1,_(B.completes)),R=!0)}return!T&&E.length===0&&S.length===0&&s.push(v),R}i(l,"stepOne");for(var h=!1,f=0;f<a.length;f++){var d=a[f],m=l(d);h=h||m}var b=l(t,!0);(h||b)&&(a.length>0?t.notify("draw",a):t.notify("draw")),a.unmerge(s),t.emit("step")}function x7r(r){this.options=ao({},xQn,TQn,r)}function T7r(r){this.options=ao({},kQn,r)}function k7r(r){this.options=ao({},CQn,r)}function Cke(r){this.options=ao({},EQn,r),this.options.layout=this;var t=this.options.eles.nodes(),a=this.options.eles.edges(),s=a.filter(function(l){var h=l.source().data("id"),f=l.target().data("id"),d=t.some(function(b){return b.data("id")===h}),m=t.some(function(b){return b.data("id")===f});return!d||!m});this.options.eles=this.options.eles.not(s)}function A7r(r){this.options=ao({},GQn,r)}function tit(r){this.options=ao({},jQn,r)}function R7r(r){this.options=ao({},zQn,r)}function L7r(r){this.options=ao({},UQn,r)}function _7r(r){this.options=r,this.notifications=0}function M7r(r,t){t.radius===0?r.lineTo(t.cx,t.cy):r.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function nit(r,t,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return s===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(HQn(r,t,a,s,l),{cx:Ant,cy:Rnt,radius:mP,startX:D7r,startY:I7r,stopX:Lnt,stopY:_nt,startAngle:_S.ang+Math.PI/2*bP,endAngle:tk.ang-Math.PI/2*bP,counterClockwise:HTe})}function N7r(r){var t=[];if(r!=null){for(var a=0;a<r.length;a+=2){var s=r[a],l=r[a+1];t.push({x:s,y:l})}return t}}function YQn(r,t,a){for(var s=i(function(b,v,T,C){return km(b,v,T,C)},"qbezierAt$1"),l=t._private,h=l.rstyle.bezierPts,f=0;f<r.bezierProjPcts.length;f++){var d=r.bezierProjPcts[f];h.push({x:s(a[0],a[2],a[4],d),y:s(a[1],a[3],a[5],d)})}}function SZn(r,t){for(var a=0;a<t.length;a++){var s=t[a];r.lineTo(s.x,s.y)}}function AZn(r,t,a){for(var s,l=0;l<t.length;l++){var h=t[l];l===0&&(s=h),r.lineTo(h.x,h.y)}r.quadraticCurveTo(a.x,a.y,s.x,s.y)}function a8r(r,t,a){r.beginPath&&r.beginPath();for(var s=t,l=0;l<s.length;l++){var h=s[l];r.lineTo(h.x,h.y)}var f=a,d=a[0];r.moveTo(d.x,d.y);for(var l=1;l<f.length;l++){var h=f[l];r.lineTo(h.x,h.y)}r.closePath&&r.closePath()}function RZn(r,t,a,s,l){r.beginPath&&r.beginPath(),r.arc(a,s,l,0,Math.PI*2,!1);var h=t,f=h[0];r.moveTo(f.x,f.y);for(var d=0;d<h.length;d++){var m=h[d];r.lineTo(m.x,m.y)}r.closePath&&r.closePath()}function LZn(r,t,a,s){r.arc(t,a,s,0,Math.PI*2,!1)}function OZn(r,t,a,s,l){var h=Math.min(s,l),f=h/2,d=t+s/2,m=a+l/2;r.beginPath(),r.arc(d,m,f,0,Math.PI*2),r.closePath()}function s8r(r,t,a,s,l){var h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,f=Math.min(h,s/2,l/2);r.beginPath(),r.moveTo(t+f,a),r.lineTo(t+s-f,a),r.quadraticCurveTo(t+s,a,t+s,a+f),r.lineTo(t+s,a+l-f),r.quadraticCurveTo(t+s,a+l,t+s-f,a+l),r.lineTo(t+f,a+l),r.quadraticCurveTo(t,a+l,t,a+l-f),r.lineTo(t,a+f),r.quadraticCurveTo(t,a,t+f,a),r.closePath()}function o8r(r,t,a){var s=r.createShader(t);if(r.shaderSource(s,a),r.compileShader(s),!r.getShaderParameter(s,r.COMPILE_STATUS))throw new Error(r.getShaderInfoLog(s));return s}function BZn(r,t,a){var s=o8r(r,r.VERTEX_SHADER,t),l=o8r(r,r.FRAGMENT_SHADER,a),h=r.createProgram();if(r.attachShader(h,s),r.attachShader(h,l),r.linkProgram(h),!r.getProgramParameter(h,r.LINK_STATUS))throw new Error("Could not initialize shaders");return h}function FZn(r,t,a){a===void 0&&(a=t);var s=r.makeOffscreenCanvas(t,a),l=s.context=s.getContext("2d");return s.clear=function(){return l.clearRect(0,0,s.width,s.height)},s.clear(),s}function sit(r){var t=r.pixelRatio,a=r.cy.zoom(),s=r.cy.pan();return{zoom:a*t,pan:{x:s.x*t,y:s.y*t}}}function $Zn(r){var t=r.pixelRatio,a=r.cy.zoom();return a*t}function GZn(r,t,a,s,l){var h=s*a+t.x,f=l*a+t.y;return f=Math.round(r.canvasHeight-f),[h,f]}function jZn(r,t){return t.picking?!0:r.pstyle("background-fill").value!=="solid"||r.pstyle("background-image").strValue!=="none"?!1:r.pstyle("border-width").value===0||r.pstyle("border-opacity").value===0?!0:r.pstyle("border-style").value==="solid"}function zZn(r,t){if(r.length!==t.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==t[a])return!1;return!0}function dP(r,t,a){var s=r[0]/255,l=r[1]/255,h=r[2]/255,f=t,d=a||new Array(4);return d[0]=s*f,d[1]=l*f,d[2]=h*f,d[3]=f,d}function tV(r,t){var a=t||new Array(4);return a[0]=(r>>0&255)/255,a[1]=(r>>8&255)/255,a[2]=(r>>16&255)/255,a[3]=(r>>24&255)/255,a}function UZn(r){return r[0]+(r[1]<<8)+(r[2]<<16)+(r[3]<<24)}function VZn(r,t){var a=r.createTexture();return a.buffer=function(s){r.bindTexture(r.TEXTURE_2D,a),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR_MIPMAP_NEAREST),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,s),r.generateMipmap(r.TEXTURE_2D),r.bindTexture(r.TEXTURE_2D,null)},a.deleteTexture=function(){r.deleteTexture(a)},a}function Y7r(r,t){switch(t){case"float":return[1,r.FLOAT,4];case"vec2":return[2,r.FLOAT,4];case"vec3":return[3,r.FLOAT,4];case"vec4":return[4,r.FLOAT,4];case"int":return[1,r.INT,4];case"ivec2":return[2,r.INT,4]}}function X7r(r,t,a){switch(t){case r.FLOAT:return new Float32Array(a);case r.INT:return new Int32Array(a)}}function WZn(r,t,a,s,l,h){switch(t){case r.FLOAT:return new Float32Array(a.buffer,h*s,l);case r.INT:return new Int32Array(a.buffer,h*s,l)}}function HZn(r,t,a,s){var l=Y7r(r,t),h=$g(l,2),f=h[0],d=h[1],m=X7r(r,d,s),b=r.createBuffer();return r.bindBuffer(r.ARRAY_BUFFER,b),r.bufferData(r.ARRAY_BUFFER,m,r.STATIC_DRAW),d===r.FLOAT?r.vertexAttribPointer(a,f,d,!1,0,0):d===r.INT&&r.vertexAttribIPointer(a,f,d,0,0),r.enableVertexAttribArray(a),r.bindBuffer(r.ARRAY_BUFFER,null),b}function LS(r,t,a,s){var l=Y7r(r,a),h=$g(l,3),f=h[0],d=h[1],m=h[2],b=X7r(r,d,t*f),v=f*m,T=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,T),r.bufferData(r.ARRAY_BUFFER,t*v,r.DYNAMIC_DRAW),r.enableVertexAttribArray(s),d===r.FLOAT?r.vertexAttribPointer(s,f,d,!1,v,0):d===r.INT&&r.vertexAttribIPointer(s,f,d,v,0),r.vertexAttribDivisor(s,1),r.bindBuffer(r.ARRAY_BUFFER,null);for(var C=new Array(t),E=0;E<t;E++)C[E]=WZn(r,d,b,v,f,E);return T.dataArray=b,T.stride=v,T.size=f,T.getView=function(S){return C[S]},T.setPoint=function(S,R,L){var _=C[S];_[0]=R,_[1]=L},T.bufferSubData=function(S){r.bindBuffer(r.ARRAY_BUFFER,T),S?r.bufferSubData(r.ARRAY_BUFFER,0,b,0,S*f):r.bufferSubData(r.ARRAY_BUFFER,0,b)},T}function qZn(r,t,a){for(var s=9,l=new Float32Array(t*s),h=new Array(t),f=0;f<t;f++){var d=f*s*4;h[f]=new Float32Array(l.buffer,d,s)}var m=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,m),r.bufferData(r.ARRAY_BUFFER,l.byteLength,r.DYNAMIC_DRAW);for(var b=0;b<3;b++){var v=a+b;r.enableVertexAttribArray(v),r.vertexAttribPointer(v,3,r.FLOAT,!1,36,b*12),r.vertexAttribDivisor(v,1)}return r.bindBuffer(r.ARRAY_BUFFER,null),m.getMatrixView=function(T){return h[T]},m.setData=function(T,C){h[C].set(T,0)},m.bufferSubData=function(){r.bindBuffer(r.ARRAY_BUFFER,m),r.bufferSubData(r.ARRAY_BUFFER,0,l)},m}function YZn(r){var t=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,t);var a=r.createTexture();return r.bindTexture(r.TEXTURE_2D,a),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.bindFramebuffer(r.FRAMEBUFFER,null),t.setFramebufferAttachmentSizes=function(s,l){r.bindTexture(r.TEXTURE_2D,a),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,s,l,0,r.RGBA,r.UNSIGNED_BYTE,null)},t}function unt(){var r=new l8r(9);return l8r!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function c8r(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=1,r[5]=0,r[6]=0,r[7]=0,r[8]=1,r}function XZn(r,t,a){var s=t[0],l=t[1],h=t[2],f=t[3],d=t[4],m=t[5],b=t[6],v=t[7],T=t[8],C=a[0],E=a[1],S=a[2],R=a[3],L=a[4],_=a[5],I=a[6],N=a[7],B=a[8];return r[0]=C*s+E*f+S*b,r[1]=C*l+E*d+S*v,r[2]=C*h+E*m+S*T,r[3]=R*s+L*f+_*b,r[4]=R*l+L*d+_*v,r[5]=R*h+L*m+_*T,r[6]=I*s+N*f+B*b,r[7]=I*l+N*d+B*v,r[8]=I*h+N*m+B*T,r}function YTe(r,t,a){var s=t[0],l=t[1],h=t[2],f=t[3],d=t[4],m=t[5],b=t[6],v=t[7],T=t[8],C=a[0],E=a[1];return r[0]=s,r[1]=l,r[2]=h,r[3]=f,r[4]=d,r[5]=m,r[6]=C*s+E*f+b,r[7]=C*l+E*d+v,r[8]=C*h+E*m+T,r}function u8r(r,t,a){var s=t[0],l=t[1],h=t[2],f=t[3],d=t[4],m=t[5],b=t[6],v=t[7],T=t[8],C=Math.sin(a),E=Math.cos(a);return r[0]=E*s+C*f,r[1]=E*l+C*d,r[2]=E*h+C*m,r[3]=E*f-C*s,r[4]=E*d-C*l,r[5]=E*m-C*h,r[6]=b,r[7]=v,r[8]=T,r}function Int(r,t,a){var s=a[0],l=a[1];return r[0]=s*t[0],r[1]=s*t[1],r[2]=s*t[2],r[3]=l*t[3],r[4]=l*t[4],r[5]=l*t[5],r[6]=t[6],r[7]=t[7],r[8]=t[8],r}function KZn(r,t,a){return r[0]=2/t,r[1]=0,r[2]=0,r[3]=0,r[4]=-2/a,r[5]=0,r[6]=-1,r[7]=1,r[8]=1,r}function ZZn(r,t){return r.intersection?r.intersection(t):new Set(XTe(r).filter(function(a){return t.has(a)}))}function oei(r){var t=r.cy.container(),a=t&&t.style&&t.style.backgroundColor||"white";return k8r(a)}function J7r(r,t){var a=r._private.rscratch;return Nb(a,"labelWrapCachedLines",t)||[]}function lei(r){{var t=r.render;r.render=function(h){h=h||{};var f=r.cy;r.webgl&&(f.zoom()>U7r?(cei(r),t.call(r,h)):(uei(r),Z7r(r,h,Kne.SCREEN)))}}{var a=r.matchCanvasSize;r.matchCanvasSize=function(h){a.call(r,h),r.pickingFrameBuffer.setFramebufferAttachmentSizes(r.canvasWidth,r.canvasHeight),r.pickingFrameBuffer.needsDraw=!0}}r.findNearestElements=function(h,f,d,m){return mei(r,h,f)};{var s=r.invalidateCachedZSortedEles;r.invalidateCachedZSortedEles=function(){s.call(r),r.pickingFrameBuffer.needsDraw=!0}}{var l=r.notify;r.notify=function(h,f){l.call(r,h,f),h==="viewport"||h==="bounds"?r.pickingFrameBuffer.needsDraw=!0:h==="background"&&r.drawing.invalidate(f,{type:"node-body"})}}}function cei(r){var t=r.data.contexts[r.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function uei(r){var t=i(function(s){s.save(),s.setTransform(1,0,0,1,0,0),s.clearRect(0,0,r.canvasWidth,r.canvasHeight),s.restore()},"clear");t(r.data.contexts[r.NODE]),t(r.data.contexts[r.DRAG])}function hei(r){var t=r.canvasWidth,a=r.canvasHeight,s=sit(r),l=s.pan,h=s.zoom,f=unt();YTe(f,f,[l.x,l.y]),Int(f,f,[h,h]);var d=unt();KZn(d,t,a);var m=unt();return XZn(m,d,f),m}function Q7r(r,t){var a=r.canvasWidth,s=r.canvasHeight,l=sit(r),h=l.pan,f=l.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,a,s),t.translate(h.x,h.y),t.scale(f,f)}function fei(r,t){r.drawSelectionRectangle(t,function(a){return Q7r(r,a)})}function dei(r){var t=r.data.contexts[r.NODE];t.save(),Q7r(r,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function pei(r){var t=i(function(l,h,f){for(var d=l.atlasManager.getAtlasCollection(h),m=r.data.contexts[r.NODE],b=d.atlases,v=0;v<b.length;v++){var T=b[v],C=T.canvas;if(C){var E=C.width,S=C.height,R=E*v,L=C.height*f,_=.4;m.save(),m.scale(_,_),m.drawImage(C,R,L),m.strokeStyle="black",m.rect(R,L,E,S),m.stroke(),m.restore()}}},"draw"),a=0;t(r.drawing,"node",a++),t(r.drawing,"label",a++)}function gei(r,t,a,s,l){var h,f,d,m,b=sit(r),v=b.pan,T=b.zoom;{var C=GZn(r,v,T,t,a),E=$g(C,2),S=E[0],R=E[1],L=6;h=S-L/2,f=R-L/2,d=L,m=L}if(d===0||m===0)return[];var _=r.data.contexts[r.WEBGL];_.bindFramebuffer(_.FRAMEBUFFER,r.pickingFrameBuffer),r.pickingFrameBuffer.needsDraw&&(_.viewport(0,0,_.canvas.width,_.canvas.height),Z7r(r,null,Kne.PICKING),r.pickingFrameBuffer.needsDraw=!1);var I=d*m,N=new Uint8Array(I*4);_.readPixels(h,f,d,m,_.RGBA,_.UNSIGNED_BYTE,N),_.bindFramebuffer(_.FRAMEBUFFER,null);for(var B=new Set,O=0;O<I;O++){var P=N.slice(O*4,O*4+4),$=UZn(P)-1;$>=0&&B.add($)}return B}function mei(r,t,a){var s=gei(r,t,a),l=r.getCachedZSortedEles(),h,f,d=v2(s),m;try{for(d.s();!(m=d.n()).done;){var b=m.value,v=l[b];if(!h&&v.isNode()&&(h=v),!f&&v.isEdge()&&(f=v),h&&f)break}}catch(T){d.e(T)}finally{d.f()}return[h,f].filter(Boolean)}function gnt(r,t,a){var s=r.drawing;t+=1,a.isNode()?(s.drawNode(a,t,"node-underlay"),s.drawNode(a,t,"node-body"),s.drawTexture(a,t,"label"),s.drawNode(a,t,"node-overlay")):(s.drawEdgeLine(a,t),s.drawEdgeArrow(a,t,"source"),s.drawEdgeArrow(a,t,"target"),s.drawTexture(a,t,"label"),s.drawTexture(a,t,"edge-source-label"),s.drawTexture(a,t,"edge-target-label"))}function Z7r(r,t,a){var s;r.webglDebug&&(s=performance.now());var l=r.drawing,h=0;if(a.screen&&r.data.canvasNeedsRedraw[r.SELECT_BOX]&&fei(r,t),r.data.canvasNeedsRedraw[r.NODE]||a.picking){var f=r.data.contexts[r.WEBGL];a.screen?(f.clearColor(0,0,0,0),f.enable(f.BLEND),f.blendFunc(f.ONE,f.ONE_MINUS_SRC_ALPHA)):f.disable(f.BLEND),f.clear(f.COLOR_BUFFER_BIT|f.DEPTH_BUFFER_BIT),f.viewport(0,0,f.canvas.width,f.canvas.height);var d=hei(r),m=r.getCachedZSortedEles();if(h=m.length,l.startFrame(d,a),a.screen){for(var b=0;b<m.nondrag.length;b++)gnt(r,b,m.nondrag[b]);for(var v=0;v<m.drag.length;v++)gnt(r,v,m.drag[v])}else if(a.picking)for(var T=0;T<m.length;T++)gnt(r,T,m[T]);l.endFrame(),a.screen&&r.webglDebugShowAtlases&&(dei(r),pei(r)),r.data.canvasNeedsRedraw[r.NODE]=!1,r.data.canvasNeedsRedraw[r.DRAG]=!1}if(r.webglDebug){var C=performance.now(),E=!1,S=Math.ceil(C-s),R=l.getDebugInfo(),L=["".concat(h," elements"),"".concat(R.totalInstances," instances"),"".concat(R.batchCount," batches"),"".concat(R.totalAtlases," atlases"),"".concat(R.wrappedCount," wrapped textures"),"".concat(R.simpleCount," simple shapes")].join(", ");if(E)console.log("WebGL (".concat(a.name,") - time ").concat(S,"ms, ").concat(L));else{console.log("WebGL (".concat(a.name,") - frame time ").concat(S,"ms")),console.log("Totals:"),console.log(" ".concat(L)),console.log("Texture Atlases Used:");var _=R.atlasInfo,I=v2(_),N;try{for(I.s();!(N=I.n()).done;){var B=N.value;console.log(" ".concat(B.type,": ").concat(B.keyCount," keys, ").concat(B.atlasCount," atlases"))}}catch(O){I.e(O)}finally{I.f()}console.log("")}}r.data.gc&&(console.log("Garbage Collect!"),r.data.gc=!1,l.gc())}function yei(r,t){for(var a=atob(r),s=new ArrayBuffer(a.length),l=new Uint8Array(s),h=0;h<a.length;h++)l[h]=a.charCodeAt(h);return new Blob([s],{type:t})}function g8r(r){var t=r.indexOf(",");return r.substr(t+1)}function tRr(r,t,a){var s=i(function(){return t.toDataURL(a,r.quality)},"getB64Uri");switch(r.output){case"blob-promise":return new yV(function(l,h){try{t.toBlob(function(f){f!=null?l(f):h(new Error("`canvas.toBlob()` sent a null value in its callback"))},a,r.quality)}catch(f){h(f)}});case"blob":return yei(g8r(s()),a);case"base64":return g8r(s());default:return s()}}function nRr(r){var t=this,a=t.cy.window(),s=a.document;r.webgl&&(Fl.CANVAS_LAYERS=t.CANVAS_LAYERS=4,console.log("webgl rendering enabled")),t.data={canvases:new Array(Fl.CANVAS_LAYERS),contexts:new Array(Fl.CANVAS_LAYERS),canvasNeedsRedraw:new Array(Fl.CANVAS_LAYERS),bufferCanvases:new Array(Fl.BUFFER_COUNT),bufferContexts:new Array(Fl.CANVAS_LAYERS)};var l="-webkit-tap-highlight-color",h="rgba(0,0,0,0)";t.data.canvasContainer=s.createElement("div");var f=t.data.canvasContainer.style;t.data.canvasContainer.style[l]=h,f.position="relative",f.zIndex="0",f.overflow="hidden";var d=r.cy.container();d.appendChild(t.data.canvasContainer),d.style[l]=h;var m={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};cYn()&&(m["-ms-touch-action"]="none",m["touch-action"]="none");for(var b=0;b<Fl.CANVAS_LAYERS;b++){var v=t.data.canvases[b]=s.createElement("canvas"),T=Fl.CANVAS_TYPES[b];t.data.contexts[b]=v.getContext(T),t.data.contexts[b]||td("Could not create canvas of type "+T),Object.keys(m).forEach(function(De){v.style[De]=m[De]}),v.style.position="absolute",v.setAttribute("data-id","layer"+b),v.style.zIndex=String(Fl.CANVAS_LAYERS-b),t.data.canvasContainer.appendChild(v),t.data.canvasNeedsRedraw[b]=!1}t.data.topCanvas=t.data.canvases[0],t.data.canvases[Fl.NODE].setAttribute("data-id","layer"+Fl.NODE+"-node"),t.data.canvases[Fl.SELECT_BOX].setAttribute("data-id","layer"+Fl.SELECT_BOX+"-selectbox"),t.data.canvases[Fl.DRAG].setAttribute("data-id","layer"+Fl.DRAG+"-drag"),t.data.canvases[Fl.WEBGL]&&t.data.canvases[Fl.WEBGL].setAttribute("data-id","layer"+Fl.WEBGL+"-webgl");for(var b=0;b<Fl.BUFFER_COUNT;b++)t.data.bufferCanvases[b]=s.createElement("canvas"),t.data.bufferContexts[b]=t.data.bufferCanvases[b].getContext("2d"),t.data.bufferCanvases[b].style.position="absolute",t.data.bufferCanvases[b].setAttribute("data-id","buffer"+b),t.data.bufferCanvases[b].style.zIndex=String(-b-1),t.data.bufferCanvases[b].style.visibility="hidden";t.pathsEnabled=!0;var C=Ob(),E=i(function(Be){return{x:(Be.x1+Be.x2)/2,y:(Be.y1+Be.y2)/2}},"getBoxCenter"),S=i(function(Be){return{x:-Be.w/2,y:-Be.h/2}},"getCenterOffset"),R=i(function(Be){var Fe=Be[0]._private,ze=Fe.oldBackgroundTimestamp===Fe.backgroundTimestamp;return!ze},"backgroundTimestampHasChanged"),L=i(function(Be){return Be[0]._private.nodeKey},"getStyleKey"),_=i(function(Be){return Be[0]._private.labelStyleKey},"getLabelKey"),I=i(function(Be){return Be[0]._private.sourceLabelStyleKey},"getSourceLabelKey"),N=i(function(Be){return Be[0]._private.targetLabelStyleKey},"getTargetLabelKey"),B=i(function(Be,Fe,ze,vt,lt){return t.drawElement(Be,Fe,ze,!1,!1,lt)},"drawElement"),O=i(function(Be,Fe,ze,vt,lt){return t.drawElementText(Be,Fe,ze,vt,"main",lt)},"drawLabel"),P=i(function(Be,Fe,ze,vt,lt){return t.drawElementText(Be,Fe,ze,vt,"source",lt)},"drawSourceLabel"),$=i(function(Be,Fe,ze,vt,lt){return t.drawElementText(Be,Fe,ze,vt,"target",lt)},"drawTargetLabel"),V=i(function(Be){return Be.boundingBox(),Be[0]._private.bodyBounds},"getElementBox"),Y=i(function(Be){return Be.boundingBox(),Be[0]._private.labelBounds.main||C},"getLabelBox"),Q=i(function(Be){return Be.boundingBox(),Be[0]._private.labelBounds.source||C},"getSourceLabelBox"),q=i(function(Be){return Be.boundingBox(),Be[0]._private.labelBounds.target||C},"getTargetLabelBox"),W=i(function(Be,Fe){return Fe},"isLabelVisibleAtScale"),H=i(function(Be){return E(V(Be))},"getElementRotationPoint"),re=i(function(Be,Fe,ze){var vt=Be?Be+"-":"";return{x:Fe.x+ze.pstyle(vt+"text-margin-x").pfValue,y:Fe.y+ze.pstyle(vt+"text-margin-y").pfValue}},"addTextMargin"),Z=i(function(Be,Fe,ze){var vt=Be[0]._private.rscratch;return{x:vt[Fe],y:vt[ze]}},"getRsPt"),X=i(function(Be){return re("",Z(Be,"labelX","labelY"),Be)},"getLabelRotationPoint"),te=i(function(Be){return re("source",Z(Be,"sourceLabelX","sourceLabelY"),Be)},"getSourceLabelRotationPoint"),U=i(function(Be){return re("target",Z(Be,"targetLabelX","targetLabelY"),Be)},"getTargetLabelRotationPoint"),ne=i(function(Be){return S(V(Be))},"getElementRotationOffset"),se=i(function(Be){return S(Q(Be))},"getSourceLabelRotationOffset"),he=i(function(Be){return S(q(Be))},"getTargetLabelRotationOffset"),le=i(function(Be){var Fe=Y(Be),ze=S(Y(Be));if(Be.isNode()){switch(pV(Be.pstyle("text-halign").value)){case"left":ze.x=-Fe.w-(Fe.leftPad||0);break;case"right":ze.x=-(Fe.rightPad||0);break}switch(gV(Be.pstyle("text-valign").value)){case"top":ze.y=-Fe.h-(Fe.topPad||0);break;case"bottom":ze.y=-(Fe.botPad||0);break}}return ze},"getLabelRotationOffset"),pe=t.data.eleTxrCache=new qne(t,{getKey:L,doesEleInvalidateKey:R,drawElement:B,getBoundingBox:V,getRotationPoint:H,getRotationOffset:ne,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),ge=t.data.lblTxrCache=new qne(t,{getKey:_,drawElement:O,getBoundingBox:Y,getRotationPoint:X,getRotationOffset:le,isVisible:W}),we=t.data.slbTxrCache=new qne(t,{getKey:I,drawElement:P,getBoundingBox:Q,getRotationPoint:te,getRotationOffset:se,isVisible:W}),Ae=t.data.tlbTxrCache=new qne(t,{getKey:N,drawElement:$,getBoundingBox:q,getRotationPoint:U,getRotationOffset:he,isVisible:W}),ve=t.data.lyrTxrCache=new V7r(t);t.onUpdateEleCalcs(i(function(Be,Fe){pe.invalidateElements(Fe),ge.invalidateElements(Fe),we.invalidateElements(Fe),Ae.invalidateElements(Fe),ve.invalidateElements(Fe);for(var ze=0;ze<Fe.length;ze++){var vt=Fe[ze]._private;vt.oldBackgroundTimestamp=vt.backgroundTimestamp}},"invalidateTextureCaches"));var Ie=i(function(Be){for(var Fe=0;Fe<Be.length;Fe++)ve.enqueueElementRefinement(Be[Fe].ele)},"refineInLayers");pe.onDequeue(Ie),ge.onDequeue(Ie),we.onDequeue(Ie),Ae.onDequeue(Ie),r.webgl&&t.initWebgl(r,{getStyleKey:L,getLabelKey:_,getSourceLabelKey:I,getTargetLabelKey:N,drawElement:B,drawLabel:O,drawSourceLabel:P,drawTargetLabel:$,getElementBox:V,getLabelBox:Y,getSourceLabelBox:Q,getTargetLabelBox:q,getElementRotationPoint:H,getElementRotationOffset:ne,getLabelRotationPoint:X,getSourceLabelRotationPoint:te,getTargetLabelRotationPoint:U,getLabelRotationOffset:le,getSourceLabelRotationOffset:se,getTargetLabelRotationOffset:he})}function sRr(r,t,a){var s=a,l=i(function(V){Uu("Can not register `"+t+"` for `"+r+"` since `"+V+"` already exists in the prototype and can not be overridden")},"overrideErr");if(r==="core"){if(aie.prototype[t])return l(t);aie.prototype[t]=a}else if(r==="collection"){if(g1.prototype[t])return l(t);g1.prototype[t]=a}else if(r==="layout"){for(var h=i(function(V){this.options=V,a.call(this,V),Wc(this._private)||(this._private={}),this._private.cy=V.cy,this._private.listeners=[],this.createEmitter()},"Layout"),f=h.prototype=Object.create(a.prototype),d=[],m=0;m<d.length;m++){var b=d[m];f[b]=f[b]||function(){return this}}f.start&&!f.run?f.run=function(){return this.start(),this}:!f.start&&f.run&&(f.start=function(){return this.run(),this});var v=a.prototype.stop;f.stop=function(){var $=this.options;if($&&$.animate){var V=this.animations;if(V)for(var Y=0;Y<V.length;Y++)V[Y].stop()}return v?v.call(this):this.emit("layoutstop"),this},f.destroy||(f.destroy=function(){return this}),f.cy=function(){return this._private.cy};var T=i(function(V){return V._private.cy},"getCy"),C={addEventFields:i(function(V,Y){Y.layout=V,Y.cy=T(V),Y.target=V},"addEventFields"),bubble:i(function(){return!0},"bubble"),parent:i(function(V){return T(V)},"parent")};ao(f,{createEmitter:i(function(){return this._private.emitter=new vke(C,this),this},"createEmitter"),emitter:i(function(){return this._private.emitter},"emitter"),on:i(function(V,Y){return this.emitter().on(V,Y),this},"on"),one:i(function(V,Y){return this.emitter().one(V,Y),this},"one"),once:i(function(V,Y){return this.emitter().one(V,Y),this},"once"),removeListener:i(function(V,Y){return this.emitter().removeListener(V,Y),this},"removeListener"),removeAllListeners:i(function(){return this.emitter().removeAllListeners(),this},"removeAllListeners"),emit:i(function(V,Y){return this.emitter().emit(V,Y),this},"emit")}),zu.eventAliasesOn(f),s=h}else if(r==="renderer"&&t!=="null"&&t!=="base"){var E=oRr("renderer","base"),S=E.prototype,R=a,L=a.prototype,_=i(function(){E.apply(this,arguments),R.apply(this,arguments)},"Renderer"),I=_.prototype;for(var N in S){var B=S[N],O=L[N]!=null;if(O)return l(N);I[N]=B}for(var P in L)I[P]=L[P];S.clientFunctions.forEach(function($){I[$]=I[$]||function(){td("Renderer does not implement `renderer."+$+"()` on its prototype")}}),s=_}else if(r==="__proto__"||r==="constructor"||r==="prototype")return td(r+" is an illegal type to be registered, possibly lead to prototype pollutions");return C8r({map:iRr,keys:[r,t],value:s})}function oRr(r,t){return E8r({map:iRr,keys:[r,t]})}function Tei(r,t,a,s,l){return C8r({map:aRr,keys:[r,t,a,s],value:l})}function kei(r,t,a,s){return E8r({map:aRr,keys:[r,t,a,s]})}var L0,z5r,eYn,b8r,tYn,rYn,oie,Ps,Bd,zh,Wc,nYn,ua,iYn,KTe,sx,lie,v8r,Bnt,w8r,aYn,Q_,sYn,oYn,lYn,cYn,hV,Fnt,cke,x8r,U5r,q_,_0,uYn,hYn,fYn,dYn,pYn,gYn,T8r,mYn,ao,yYn,bYn,vYn,wYn,k8r,xYn,C8r,E8r,ETe,Gtt,V5r,jtt,W5r,ztt,H5r,Utt,q5r,Vtt,Y5r,Wtt,X5r,Htt,K5r,qtt,J5r,Ytt,Q5r,Xtt,Z5r,Ktt,e6r,Jtt,t6r,Qtt,r6r,Ztt,n6r,DYn,fie,ert,A8r,IYn,JTe,QA,yP,R8r,nV,L8r,Jne,Qne,MYn,V_,STe,i6r,wP,_8r,NYn,PYn,a6r,FYn,$Yn,Gnt,D8r,QTe,s6r,jnt,td,I8r,Uu,GYn,IS,jYn,M8r,zYn,N8r,m1,Z_,znt,UYn,Nb,DS,VYn,JA,WYn,HYn,mV,hke,o6r,Zne,FTe,qYn,l6r,trt,c6r,KYn,die,JYn,QYn,ZYn,eXn,tXn,rXn,nXn,iXn,aXn,sXn,oXn,rrt,lXn,nrt,cXn,fke,O8r,iV,uXn,hXn,fXn,dXn,pXn,ATe,Unt,Vnt,xP,gP,gXn,km,oV,mXn,eie,Ob,yXn,bXn,vXn,P8r,$Te,GTe,u6r,Wnt,Y_,h6r,B8r,wXn,F8r,kXn,CXn,EXn,SXn,AXn,RXn,b2,ZA,LXn,ZTe,eke,_Xn,vP,Wne,irt,X_,DXn,tie,IXn,RTe,Mb,$8r,ynt,eD,G8r,Hnt,MXn,bnt,NXn,OXn,f6r,lV,d6r,cV,PXn,vnt,BXn,FXn,$Xn,GXn,j8r,jXn,zXn,UXn,VXn,WXn,HXn,qXn,p6r,YXn,XXn,z8r,g6r,m6r,KXn,JXn,Fne,fV,QXn,qnt,tke,srt,U8r,V8r,ZXn,eKn,tKn,y6r,b6r,rKn,nKn,iKn,aKn,sKn,v6r,oKn,lKn,cKn,uKn,w6r,aV,wnt,xnt,x6r,hKn,fKn,dKn,pKn,gKn,mKn,T6r,yKn,k6r,bKn,vKn,wKn,LTe,xKn,_Te,TKn,W8r,H8r,q8r,Y8r,Y4,C6r,X8r,E6r,S6r,K8r,yV,Tnt,TP,kKn,ort,A6r,lrt,R6r,crt,L6r,urt,_6r,hrt,D6r,frt,I6r,drt,M6r,prt,N6r,grt,O6r,mrt,P6r,yrt,B6r,brt,F6r,vrt,$6r,wrt,G6r,xrt,j6r,Trt,z6r,krt,U6r,Crt,V6r,Ert,W6r,Srt,H6r,Art,q6r,Rrt,Y6r,Lrt,X6r,_rt,K6r,Drt,J6r,Irt,Q6r,Mrt,Z6r,Nrt,eAr,Ort,tAr,Prt,rAr,Brt,nAr,Frt,iAr,$rt,aAr,Grt,sAr,jrt,oAr,zrt,lAr,Urt,cAr,Vrt,uAr,Wrt,hAr,Hrt,fAr,qrt,dAr,Yrt,pAr,Xrt,gAr,rJn,nJn,Krt,mAr,Jrt,yAr,Qrt,bAr,Zrt,vAr,ent,wAr,tnt,xAr,uJn,hJn,rnt,TAr,nnt,kAr,pJn,gJn,mJn,yJn,zu,bJn,jTe,Vc,Ch,Wa,knt,vJn,wJn,xJn,KU,W_,Cnt,TJn,kJn,CJn,EJn,SJn,r7r,AJn,RJn,Knt,LJn,Tp,Ef,_Jn,DJn,IJn,tD,rD,K_,nk,dV,rie,a7r,NJn,bke,q4,s7r,o7r,CAr,OJn,pV,gV,PJn,uV,sD,rk,H4,H_,$ne,DTe,ant,EAr,l7r,BJn,FJn,c7r,u7r,SAr,nie,AAr,RAr,$Jn,Hne,pie,h7r,GJn,jJn,zJn,UJn,VJn,WJn,HJn,qJn,YJn,LAr,XJn,KJn,JJn,f7r,d7r,QJn,p7r,_Ar,ZJn,nD,g7r,DAr,eQn,tQn,MTe,m7r,y7r,cu,rQn,b7r,rke,nQn,iQn,zTe,p1,bV,aQn,sQn,oQn,lQn,J_,by,MAr,NAr,OAr,g1,of,cQn,hQn,sf,UTe,pQn,gQn,NTe,w7r,Ent,VTe,mQn,yQn,Snt,WTe,Em,Yne,bQn,gie,Znt,MS,Tke,eit,Fg,kke,Cm,vy,vQn,wQn,kP,iie,aie,nke,xQn,TQn,ZU,zAr,kQn,CQn,ont,EQn,SQn,AQn,C7r,RQn,LQn,E7r,_Qn,DQn,IQn,UAr,MQn,NQn,ike,OQn,PQn,BQn,FQn,$Qn,S7r,VAr,GQn,jQn,zQn,UQn,VQn,WAr,HAr,rit,EP,ake,Ant,Rnt,_S,tk,qAr,YAr,bP,HTe,KA,fP,mP,RS,eV,OTe,D7r,I7r,Lnt,_nt,XAr,KAr,WQn,HQn,sie,qQn,wy,mie,iit,NS,O7r,P7r,XQn,B7r,JAr,QAr,Eke,Ske,F7r,$7r,G7r,KQn,JQn,wV,e8,yie,ZAr,QQn,j7r,xV,lnt,z7r,ZQn,e8r,PTe,qTe,Dnt,U7r,eZn,tZn,rZn,nZn,iZn,aZn,sZn,oZn,lZn,cZn,uZn,hZn,fZn,sV,dZn,qne,I0,pZn,Xne,ske,gZn,mZn,yZn,bZn,vZn,wZn,xZn,TZn,t8r,kZn,r8r,CZn,V7r,y1,n8r,EZn,W7r,i8r,OS,_Zn,DZn,IZn,MZn,NZn,cnt,t8,H7r,ait,SP,oD,q7r,Pb,PZn,zne,l8r,JZn,QZn,eei,tei,rei,nei,iei,aei,Kne,oke,hnt,h8r,f8r,fnt,rV,BTe,Une,Vne,sei,K7r,dnt,pnt,lD,d8r,p8r,Mnt,Nnt,eRr,pP,bie,rRr,bei,Fl,vei,wei,xei,iRr,aRr,Ont,lke,CP,Cei,ik,oit=ae(()=>{"use strict";i(mnt,"_arrayLikeToArray");i(Hqn,"_arrayWithHoles");i(qqn,"_arrayWithoutHoles");i(iD,"_classCallCheck");i(Yqn,"_defineProperties");i(aD,"_createClass");i(v2,"_createForOfIteratorHelper");i(m8r,"_defineProperty$1");i(Xqn,"_iterableToArray");i(Kqn,"_iterableToArrayLimit");i(Jqn,"_nonIterableRest");i(Qqn,"_nonIterableSpread");i($g,"_slicedToArray");i(XTe,"_toConsumableArray");i(Zqn,"_toPrimitive");i(y8r,"_toPropertyKey");i(D0,"_typeof");i(Pnt,"_unsupportedIterableToArray");L0=typeof window>"u"?null:window,z5r=L0?L0.navigator:null;L0&&L0.document;eYn=D0(""),b8r=D0({}),tYn=D0(function(){}),rYn=typeof HTMLElement>"u"?"undefined":D0(HTMLElement),oie=i(function(t){return t&&t.instanceString&&Bd(t.instanceString)?t.instanceString():null},"instanceStr"),Ps=i(function(t){return t!=null&&D0(t)==eYn},"string"),Bd=i(function(t){return t!=null&&D0(t)===tYn},"fn"),zh=i(function(t){return!sx(t)&&(Array.isArray?Array.isArray(t):t!=null&&t instanceof Array)},"array"),Wc=i(function(t){return t!=null&&D0(t)===b8r&&!zh(t)&&t.constructor===Object},"plainObject"),nYn=i(function(t){return t!=null&&D0(t)===b8r},"object"),ua=i(function(t){return t!=null&&D0(t)===D0(1)&&!isNaN(t)},"number"),iYn=i(function(t){return ua(t)&&Math.floor(t)===t},"integer"),KTe=i(function(t){if(rYn!=="undefined")return t!=null&&t instanceof HTMLElement},"htmlElement"),sx=i(function(t){return lie(t)||v8r(t)},"elementOrCollection"),lie=i(function(t){return oie(t)==="collection"&&t._private.single},"element"),v8r=i(function(t){return oie(t)==="collection"&&!t._private.single},"collection"),Bnt=i(function(t){return oie(t)==="core"},"core"),w8r=i(function(t){return oie(t)==="stylesheet"},"stylesheet"),aYn=i(function(t){return oie(t)==="event"},"event"),Q_=i(function(t){return t==null?!0:!!(t===""||t.match(/^\s+$/))},"emptyString"),sYn=i(function(t){return typeof HTMLElement>"u"?!1:t instanceof HTMLElement},"domElement"),oYn=i(function(t){return Wc(t)&&ua(t.x1)&&ua(t.x2)&&ua(t.y1)&&ua(t.y2)},"boundingBox"),lYn=i(function(t){return nYn(t)&&Bd(t.then)},"promise"),cYn=i(function(){return z5r&&z5r.userAgent.match(/msie|trident|edge/i)},"ms"),hV=i(function(t,a){a||(a=i(function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var h=[],f=0;f<arguments.length;f++)h.push(arguments[f]);return h.join("$")},"keyFn"));var s=i(function(){var h=this,f=arguments,d,m=a.apply(h,f),b=s.cache;return(d=b[m])||(d=b[m]=t.apply(h,f)),d},"memoizedFn");return s.cache={},s},"memoize"),Fnt=hV(function(r){return r.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}),cke=hV(function(r){return r.replace(/(-\w)/g,function(t){return t[1].toUpperCase()})}),x8r=hV(function(r,t){return r+t[0].toUpperCase()+t.substring(1)},function(r,t){return r+"$"+t}),U5r=i(function(t){return Q_(t)?t:t.charAt(0).toUpperCase()+t.substring(1)},"capitalize"),q_=i(function(t,a){return t.slice(-1*a.length)===a},"endsWith"),_0="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",uYn="rgb[a]?\\(("+_0+"[%]?)\\s*,\\s*("+_0+"[%]?)\\s*,\\s*("+_0+"[%]?)(?:\\s*,\\s*("+_0+"))?\\)",hYn="rgb[a]?\\((?:"+_0+"[%]?)\\s*,\\s*(?:"+_0+"[%]?)\\s*,\\s*(?:"+_0+"[%]?)(?:\\s*,\\s*(?:"+_0+"))?\\)",fYn="hsl[a]?\\(("+_0+")\\s*,\\s*("+_0+"[%])\\s*,\\s*("+_0+"[%])(?:\\s*,\\s*("+_0+"))?\\)",dYn="hsl[a]?\\((?:"+_0+")\\s*,\\s*(?:"+_0+"[%])\\s*,\\s*(?:"+_0+"[%])(?:\\s*,\\s*(?:"+_0+"))?\\)",pYn="\\#[0-9a-fA-F]{3}",gYn="\\#[0-9a-fA-F]{6}",T8r=i(function(t,a){return t<a?-1:t>a?1:0},"ascending"),mYn=i(function(t,a){return-1*T8r(t,a)},"descending"),ao=Object.assign!=null?Object.assign.bind(Object):function(r){for(var t=arguments,a=1;a<t.length;a++){var s=t[a];if(s!=null)for(var l=Object.keys(s),h=0;h<l.length;h++){var f=l[h];r[f]=s[f]}}return r},yYn=i(function(t){if(!(!(t.length===4||t.length===7)||t[0]!=="#")){var a=t.length===4,s,l,h,f=16;return a?(s=parseInt(t[1]+t[1],f),l=parseInt(t[2]+t[2],f),h=parseInt(t[3]+t[3],f)):(s=parseInt(t[1]+t[2],f),l=parseInt(t[3]+t[4],f),h=parseInt(t[5]+t[6],f)),[s,l,h]}},"hex2tuple"),bYn=i(function(t){var a,s,l,h,f,d,m,b;function v(S,R,L){return L<0&&(L+=1),L>1&&(L-=1),L<1/6?S+(R-S)*6*L:L<1/2?R:L<2/3?S+(R-S)*(2/3-L)*6:S}i(v,"hue2rgb");var T=new RegExp("^"+fYn+"$").exec(t);if(T){if(s=parseInt(T[1]),s<0?s=(360- -1*s%360)%360:s>360&&(s=s%360),s/=360,l=parseFloat(T[2]),l<0||l>100||(l=l/100,h=parseFloat(T[3]),h<0||h>100)||(h=h/100,f=T[4],f!==void 0&&(f=parseFloat(f),f<0||f>1)))return;if(l===0)d=m=b=Math.round(h*255);else{var C=h<.5?h*(1+l):h+l-h*l,E=2*h-C;d=Math.round(255*v(E,C,s+1/3)),m=Math.round(255*v(E,C,s)),b=Math.round(255*v(E,C,s-1/3))}a=[d,m,b,f]}return a},"hsl2tuple"),vYn=i(function(t){var a,s=new RegExp("^"+uYn+"$").exec(t);if(s){a=[];for(var l=[],h=1;h<=3;h++){var f=s[h];if(f[f.length-1]==="%"&&(l[h]=!0),f=parseFloat(f),l[h]&&(f=f/100*255),f<0||f>255)return;a.push(Math.floor(f))}var d=l[1]||l[2]||l[3],m=l[1]&&l[2]&&l[3];if(d&&!m)return;var b=s[4];if(b!==void 0){if(b=parseFloat(b),b<0||b>1)return;a.push(b)}}return a},"rgb2tuple"),wYn=i(function(t){return xYn[t.toLowerCase()]},"colorname2tuple"),k8r=i(function(t){return(zh(t)?t:null)||wYn(t)||yYn(t)||vYn(t)||bYn(t)},"color2tuple"),xYn={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]},C8r=i(function(t){for(var a=t.map,s=t.keys,l=s.length,h=0;h<l;h++){var f=s[h];if(Wc(f))throw Error("Tried to set map with object key");h<s.length-1?(a[f]==null&&(a[f]={}),a=a[f]):a[f]=t.value}},"setMap"),E8r=i(function(t){for(var a=t.map,s=t.keys,l=s.length,h=0;h<l;h++){var f=s[h];if(Wc(f))throw Error("Tried to get map with object key");if(a=a[f],a==null)return a}return a},"getMap"),ETe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};i(cie,"getDefaultExportFromCjs");i(uie,"requireIsObject");i(TYn,"require_freeGlobal");i(uke,"require_root");i(kYn,"requireNow");i(CYn,"require_trimmedEndIndex");i(EYn,"require_baseTrim");i($nt,"require_Symbol");i(SYn,"require_getRawTag");i(AYn,"require_objectToString");i(S8r,"require_baseGetTag");i(RYn,"requireIsObjectLike");i(hie,"requireIsSymbol");i(LYn,"requireToNumber");i(_Yn,"requireDebounce");DYn=_Yn(),fie=cie(DYn),ert=L0?L0.performance:null,A8r=ert&&ert.now?function(){return ert.now()}:function(){return Date.now()},IYn=(function(){if(L0){if(L0.requestAnimationFrame)return function(r){L0.requestAnimationFrame(r)};if(L0.mozRequestAnimationFrame)return function(r){L0.mozRequestAnimationFrame(r)};if(L0.webkitRequestAnimationFrame)return function(r){L0.webkitRequestAnimationFrame(r)};if(L0.msRequestAnimationFrame)return function(r){L0.msRequestAnimationFrame(r)}}return function(r){r&&setTimeout(function(){r(A8r())},1e3/60)}})(),JTe=i(function(t){return IYn(t)},"requestAnimationFrame"),QA=A8r,yP=9261,R8r=65599,nV=5381,L8r=i(function(t){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yP,s=a,l;l=t.next(),!l.done;)s=s*R8r+l.value|0;return s},"hashIterableInts"),Jne=i(function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yP;return a*R8r+t|0},"hashInt"),Qne=i(function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nV;return(a<<5)+a+t|0},"hashIntAlt"),MYn=i(function(t,a){return t*2097152+a},"combineHashes"),V_=i(function(t){return t[0]*2097152+t[1]},"combineHashesArray"),STe=i(function(t,a){return[Jne(t[0],a[0]),Qne(t[1],a[1])]},"hashArrays"),i6r=i(function(t,a){var s={value:0,done:!1},l=0,h=t.length,f={next:i(function(){return l<h?s.value=t[l++]:s.done=!0,s},"next")};return L8r(f,a)},"hashIntsArray"),wP=i(function(t,a){var s={value:0,done:!1},l=0,h=t.length,f={next:i(function(){return l<h?s.value=t.charCodeAt(l++):s.done=!0,s},"next")};return L8r(f,a)},"hashString"),_8r=i(function(){return NYn(arguments)},"hashStrings"),NYn=i(function(t){for(var a,s=0;s<t.length;s++){var l=t[s];s===0?a=wP(l):a=wP(l,a)}return a},"hashStringsArray");i(OYn,"rotatePoint");PYn=i(function(t,a,s,l,h,f){return{x:(t-s)*h+s,y:(a-l)*f+l}},"movePointByBoxAspect");i(BYn,"rotatePosAndSkewByBox");a6r=!0,FYn=console.warn!=null,$Yn=console.trace!=null,Gnt=Number.MAX_SAFE_INTEGER||9007199254740991,D8r=i(function(){return!0},"trueify"),QTe=i(function(){return!1},"falsify"),s6r=i(function(){return 0},"zeroify"),jnt=i(function(){},"noop"),td=i(function(t){throw new Error(t)},"error"),I8r=i(function(t){if(t!==void 0)a6r=!!t;else return a6r},"warnings"),Uu=i(function(t){I8r()&&(FYn?console.warn(t):(console.log(t),$Yn&&console.trace()))},"warn"),GYn=i(function(t){return ao({},t)},"clone"),IS=i(function(t){return t==null?t:zh(t)?t.slice():Wc(t)?GYn(t):t},"copy"),jYn=i(function(t){return t.slice()},"copyArray"),M8r=i(function(t,a){for(a=t="";t++<36;a+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-");return a},"uuid"),zYn={},N8r=i(function(){return zYn},"staticEmptyObject"),m1=i(function(t){var a=Object.keys(t);return function(s){for(var l={},h=0;h<a.length;h++){var f=a[h],d=s?.[f];l[f]=d===void 0?t[f]:d}return l}},"defaults"),Z_=i(function(t,a,s){for(var l=t.length-1;l>=0;l--)t[l]===a&&t.splice(l,1)},"removeFromArray"),znt=i(function(t){t.splice(0,t.length)},"clearArray"),UYn=i(function(t,a){for(var s=0;s<a.length;s++){var l=a[s];t.push(l)}},"push"),Nb=i(function(t,a,s){return s&&(a=x8r(s,a)),t[a]},"getPrefixedProperty"),DS=i(function(t,a,s,l){s&&(a=x8r(s,a)),t[a]=l},"setPrefixedProperty"),VYn=(function(){function r(){iD(this,r),this._obj={}}return i(r,"ObjectMap"),aD(r,[{key:"set",value:i(function(a,s){return this._obj[a]=s,this},"set")},{key:"delete",value:i(function(a){return this._obj[a]=void 0,this},"_delete")},{key:"clear",value:i(function(){this._obj={}},"clear")},{key:"has",value:i(function(a){return this._obj[a]!==void 0},"has")},{key:"get",value:i(function(a){return this._obj[a]},"get")}])})(),JA=typeof Map<"u"?Map:VYn,WYn="undefined",HYn=(function(){function r(t){if(iD(this,r),this._obj=Object.create(null),this.size=0,t!=null){var a;t.instanceString!=null&&t.instanceString()===this.instanceString()?a=t.toArray():a=t;for(var s=0;s<a.length;s++)this.add(a[s])}}return i(r,"ObjectSet"),aD(r,[{key:"instanceString",value:i(function(){return"set"},"instanceString")},{key:"add",value:i(function(a){var s=this._obj;s[a]!==1&&(s[a]=1,this.size++)},"add")},{key:"delete",value:i(function(a){var s=this._obj;s[a]===1&&(s[a]=0,this.size--)},"_delete")},{key:"clear",value:i(function(){this._obj=Object.create(null)},"clear")},{key:"has",value:i(function(a){return this._obj[a]===1},"has")},{key:"toArray",value:i(function(){var a=this;return Object.keys(this._obj).filter(function(s){return a.has(s)})},"toArray")},{key:"forEach",value:i(function(a,s){return this.toArray().forEach(a,s)},"forEach")}])})(),mV=(typeof Set>"u"?"undefined":D0(Set))!==WYn?Set:HYn,hke=i(function(t,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(t===void 0||a===void 0||!Bnt(t)){td("An element must have a core reference and parameters set");return}var l=a.group;if(l==null&&(a.data&&a.data.source!=null&&a.data.target!=null?l="edges":l="nodes"),l!=="nodes"&&l!=="edges"){td("An element must be of type `nodes` or `edges`; you specified `"+l+"`");return}this.length=1,this[0]=this;var h=this._private={cy:t,single:!0,data:a.data||{},position:a.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:!!a.selected,selectable:a.selectable===void 0?!0:!!a.selectable,locked:!!a.locked,grabbed:!1,grabbable:a.grabbable===void 0?!0:!!a.grabbable,pannable:a.pannable===void 0?l==="edges":!!a.pannable,active:!1,classes:new mV,animation:{current:[],queue:[]},rscratch:{},scratch:a.scratch||{},edges:[],children:[],parent:a.parent&&a.parent.isNode()?a.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(h.position.x==null&&(h.position.x=0),h.position.y==null&&(h.position.y=0),a.renderedPosition){var f=a.renderedPosition,d=t.pan(),m=t.zoom();h.position={x:(f.x-d.x)/m,y:(f.y-d.y)/m}}var b=[];zh(a.classes)?b=a.classes:Ps(a.classes)&&(b=a.classes.split(/\s+/));for(var v=0,T=b.length;v<T;v++){var C=b[v];!C||C===""||h.classes.add(C)}this.createEmitter(),(s===void 0||s)&&this.restore();var E=a.style||a.css;E&&(Uu("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(E))},"Element"),o6r=i(function(t){return t={bfs:t.bfs||!t.dfs,dfs:t.dfs||!t.bfs},i(function(s,l,h){var f;Wc(s)&&!sx(s)&&(f=s,s=f.roots||f.root,l=f.visit,h=f.directed),h=arguments.length===2&&!Bd(l)?l:h,l=Bd(l)?l:function(){};for(var d=this._private.cy,m=s=Ps(s)?this.filter(s):s,b=[],v=[],T={},C={},E={},S=0,R,L=this.byGroup(),_=L.nodes,I=L.edges,N=0;N<m.length;N++){var B=m[N],O=B.id();B.isNode()&&(b.unshift(B),t.bfs&&(E[O]=!0,v.push(B)),C[O]=0)}for(var P=i(function(){var H=t.bfs?b.shift():b.pop(),re=H.id();if(t.dfs){if(E[re])return 0;E[re]=!0,v.push(H)}var Z=C[re],X=T[re],te=X!=null?X.source():null,U=X!=null?X.target():null,ne=X==null?void 0:H.same(te)?U[0]:te[0],se;if(se=l(H,X,ne,S++,Z),se===!0)return R=H,1;if(se===!1)return 1;for(var he=H.connectedEdges().filter(function(Ae){return(!h||Ae.source().same(H))&&I.has(Ae)}),le=0;le<he.length;le++){var pe=he[le],ge=pe.connectedNodes().filter(function(Ae){return!Ae.same(H)&&_.has(Ae)}),we=ge.id();ge.length!==0&&!E[we]&&(ge=ge[0],b.push(ge),t.bfs&&(E[we]=!0,v.push(ge)),T[we]=pe,C[we]=C[re]+1)}},"_loop"),$;b.length!==0&&($=P(),!($!==0&&$===1)););for(var V=d.collection(),Y=0;Y<v.length;Y++){var Q=v[Y],q=T[Q.id()];q!=null&&V.push(q),V.push(Q)}return{path:d.collection(V),found:d.collection(R)}},"searchFn")},"defineSearch"),Zne={breadthFirstSearch:o6r({bfs:!0}),depthFirstSearch:o6r({dfs:!0})};Zne.bfs=Zne.breadthFirstSearch;Zne.dfs=Zne.depthFirstSearch;FTe={exports:{}},qYn=FTe.exports;i(YYn,"requireHeap$1");i(XYn,"requireHeap");KYn=XYn(),die=cie(KYn),JYn=m1({root:null,weight:i(function(t){return 1},"weight"),directed:!1}),QYn={dijkstra:i(function(t){if(!Wc(t)){var a=arguments;t={root:a[0],weight:a[1],directed:a[2]}}var s=JYn(t),l=s.root,h=s.weight,f=s.directed,d=this,m=h,b=Ps(l)?this.filter(l)[0]:l[0],v={},T={},C={},E=this.byGroup(),S=E.nodes,R=E.edges;R.unmergeBy(function(Z){return Z.isLoop()});for(var L=i(function(X){return v[X.id()]},"getDist"),_=i(function(X,te){v[X.id()]=te,I.updateItem(X)},"setDist"),I=new die(function(Z,X){return L(Z)-L(X)}),N=0;N<S.length;N++){var B=S[N];v[B.id()]=B.same(b)?0:1/0,I.push(B)}for(var O=i(function(X,te){for(var U=(f?X.edgesTo(te):X.edgesWith(te)).intersect(R),ne=1/0,se,he=0;he<U.length;he++){var le=U[he],pe=m(le);(pe<ne||!se)&&(ne=pe,se=le)}return{edge:se,dist:ne}},"distBetween");I.size()>0;){var P=I.pop(),$=L(P),V=P.id();if(C[V]=$,$!==1/0)for(var Y=P.neighborhood().intersect(S),Q=0;Q<Y.length;Q++){var q=Y[Q],W=q.id(),H=O(P,q),re=$+H.dist;re<L(q)&&(_(q,re),T[W]={node:P,edge:H.edge})}}return{distanceTo:i(function(X){var te=Ps(X)?S.filter(X)[0]:X[0];return C[te.id()]},"distanceTo"),pathTo:i(function(X){var te=Ps(X)?S.filter(X)[0]:X[0],U=[],ne=te,se=ne.id();if(te.length>0)for(U.unshift(te);T[se];){var he=T[se];U.unshift(he.edge),U.unshift(he.node),ne=he.node,se=ne.id()}return d.spawn(U)},"pathTo")}},"dijkstra")},ZYn={kruskal:i(function(t){t=t||function(N){return 1};for(var a=this.byGroup(),s=a.nodes,l=a.edges,h=s.length,f=new Array(h),d=s,m=i(function(B){for(var O=0;O<f.length;O++){var P=f[O];if(P.has(B))return O}},"findSetIndex"),b=0;b<h;b++)f[b]=this.spawn(s[b]);for(var v=l.sort(function(N,B){return t(N)-t(B)}),T=0;T<v.length;T++){var C=v[T],E=C.source()[0],S=C.target()[0],R=m(E),L=m(S),_=f[R],I=f[L];R!==L&&(d.merge(C),_.merge(I),f.splice(L,1))}return d},"kruskal")},eXn=m1({root:null,goal:null,weight:i(function(t){return 1},"weight"),heuristic:i(function(t){return 0},"heuristic"),directed:!1}),tXn={aStar:i(function(t){var a=this.cy(),s=eXn(t),l=s.root,h=s.goal,f=s.heuristic,d=s.directed,m=s.weight;l=a.collection(l)[0],h=a.collection(h)[0];var b=l.id(),v=h.id(),T={},C={},E={},S=new die(function(se,he){return C[se.id()]-C[he.id()]}),R=new mV,L={},_={},I=i(function(he,le){S.push(he),R.add(le)},"addToOpenSet"),N,B,O=i(function(){N=S.pop(),B=N.id(),R.delete(B)},"popFromOpenSet"),P=i(function(he){return R.has(he)},"isInOpenSet");I(l,b),T[b]=0,C[b]=f(l);for(var $=0;S.size()>0;){if(O(),$++,B===v){for(var V=[],Y=h,Q=v,q=_[Q];V.unshift(Y),q!=null&&V.unshift(q),Y=L[Q],Y!=null;)Q=Y.id(),q=_[Q];return{found:!0,distance:T[B],path:this.spawn(V),steps:$}}E[B]=!0;for(var W=N._private.edges,H=0;H<W.length;H++){var re=W[H];if(this.hasElementWithId(re.id())&&!(d&&re.data("source")!==B)){var Z=re.source(),X=re.target(),te=Z.id()!==B?Z:X,U=te.id();if(this.hasElementWithId(U)&&!E[U]){var ne=T[B]+m(re);if(!P(U)){T[U]=ne,C[U]=ne+f(te),I(te,U),L[U]=N,_[U]=re;continue}ne<T[U]&&(T[U]=ne,C[U]=ne+f(te),L[U]=N,_[U]=re)}}}}return{found:!1,distance:void 0,path:void 0,steps:$}},"aStar")},rXn=m1({weight:i(function(t){return 1},"weight"),directed:!1}),nXn={floydWarshall:i(function(t){for(var a=this.cy(),s=rXn(t),l=s.weight,h=s.directed,f=l,d=this.byGroup(),m=d.nodes,b=d.edges,v=m.length,T=v*v,C=i(function(pe){return m.indexOf(pe)},"indexOf"),E=i(function(pe){return m[pe]},"atIndex"),S=new Array(T),R=0;R<T;R++){var L=R%v,_=(R-L)/v;_===L?S[R]=0:S[R]=1/0}for(var I=new Array(T),N=new Array(T),B=0;B<b.length;B++){var O=b[B],P=O.source()[0],$=O.target()[0];if(P!==$){var V=C(P),Y=C($),Q=V*v+Y,q=f(O);if(S[Q]>q&&(S[Q]=q,I[Q]=Y,N[Q]=O),!h){var W=Y*v+V;!h&&S[W]>q&&(S[W]=q,I[W]=V,N[W]=O)}}}for(var H=0;H<v;H++)for(var re=0;re<v;re++)for(var Z=re*v+H,X=0;X<v;X++){var te=re*v+X,U=H*v+X;S[Z]+S[U]<S[te]&&(S[te]=S[Z]+S[U],I[te]=I[Z])}var ne=i(function(pe){return(Ps(pe)?a.filter(pe):pe)[0]},"getArgEle"),se=i(function(pe){return C(ne(pe))},"indexOfArgEle"),he={distance:i(function(pe,ge){var we=se(pe),Ae=se(ge);return S[we*v+Ae]},"distance"),path:i(function(pe,ge){var we=se(pe),Ae=se(ge),ve=E(we);if(we===Ae)return ve.collection();if(I[we*v+Ae]==null)return a.collection();var Ie=a.collection(),De=we,Be;for(Ie.merge(ve);we!==Ae;)De=we,we=I[we*v+Ae],Be=N[De*v+we],Ie.merge(Be),Ie.merge(E(we));return Ie},"path")};return he},"floydWarshall")},iXn=m1({weight:i(function(t){return 1},"weight"),directed:!1,root:null}),aXn={bellmanFord:i(function(t){var a=this,s=iXn(t),l=s.weight,h=s.directed,f=s.root,d=l,m=this,b=this.cy(),v=this.byGroup(),T=v.edges,C=v.nodes,E=C.length,S=new JA,R=!1,L=[];f=b.collection(f)[0],T.unmergeBy(function(tr){return tr.isLoop()});for(var _=T.length,I=i(function(Mt){var ot=S.get(Mt.id());return ot||(ot={},S.set(Mt.id(),ot)),ot},"getInfo"),N=i(function(Mt){return(Ps(Mt)?b.$(Mt):Mt)[0]},"getNodeFromTo"),B=i(function(Mt){return I(N(Mt)).dist},"distanceTo"),O=i(function(Mt){for(var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,it=N(Mt),mt=[],Rt=it;;){if(Rt==null)return a.spawn();var pt=I(Rt),gt=pt.edge,ut=pt.pred;if(mt.unshift(Rt[0]),Rt.same(ot)&&mt.length>0)break;gt!=null&&mt.unshift(gt),Rt=ut}return m.spawn(mt)},"pathTo"),P=0;P<E;P++){var $=C[P],V=I($);$.same(f)?V.dist=0:V.dist=1/0,V.pred=null,V.edge=null}for(var Y=!1,Q=i(function(Mt,ot,it,mt,Rt,pt){var gt=mt.dist+pt;gt<Rt.dist&&!it.same(mt.edge)&&(Rt.dist=gt,Rt.pred=Mt,Rt.edge=it,Y=!0)},"checkForEdgeReplacement"),q=1;q<E;q++){Y=!1;for(var W=0;W<_;W++){var H=T[W],re=H.source(),Z=H.target(),X=d(H),te=I(re),U=I(Z);Q(re,Z,H,te,U,X),h||Q(Z,re,H,U,te,X)}if(!Y)break}if(Y)for(var ne=[],se=0;se<_;se++){var he=T[se],le=he.source(),pe=he.target(),ge=d(he),we=I(le).dist,Ae=I(pe).dist;if(we+ge<Ae||!h&&Ae+ge<we)if(R||(Uu("Graph contains a negative weight cycle for Bellman-Ford"),R=!0),t.findNegativeWeightCycles!==!1){var ve=[];we+ge<Ae&&ve.push(le),!h&&Ae+ge<we&&ve.push(pe);for(var Ie=ve.length,De=0;De<Ie;De++){var Be=ve[De],Fe=[Be];Fe.push(I(Be).edge);for(var ze=I(Be).pred;Fe.indexOf(ze)===-1;)Fe.push(ze),Fe.push(I(ze).edge),ze=I(ze).pred;Fe=Fe.slice(Fe.indexOf(ze));for(var vt=Fe[0].id(),lt=0,Ft=2;Ft<Fe.length;Ft+=2)Fe[Ft].id()<vt&&(vt=Fe[Ft].id(),lt=Ft);Fe=Fe.slice(lt).concat(Fe.slice(0,lt)),Fe.push(Fe[0]);var pr=Fe.map(function(tr){return tr.id()}).join(",");ne.indexOf(pr)===-1&&(L.push(m.spawn(Fe)),ne.push(pr))}}else break}return{distanceTo:B,pathTo:O,hasNegativeWeightCycle:R,negativeWeightCycles:L}},"bellmanFord")},sXn=Math.sqrt(2),oXn=i(function(t,a,s){s.length===0&&td("Karger-Stein must be run on a connected (sub)graph");for(var l=s[t],h=l[1],f=l[2],d=a[h],m=a[f],b=s,v=b.length-1;v>=0;v--){var T=b[v],C=T[1],E=T[2];(a[C]===d&&a[E]===m||a[C]===m&&a[E]===d)&&b.splice(v,1)}for(var S=0;S<b.length;S++){var R=b[S];R[1]===m?(b[S]=R.slice(),b[S][1]=d):R[2]===m&&(b[S]=R.slice(),b[S][2]=d)}for(var L=0;L<a.length;L++)a[L]===m&&(a[L]=d);return b},"collapse"),rrt=i(function(t,a,s,l){for(;s>l;){var h=Math.floor(Math.random()*a.length);a=oXn(h,t,a),s--}return a},"contractUntil"),lXn={kargerStein:i(function(){var t=this,a=this.byGroup(),s=a.nodes,l=a.edges;l.unmergeBy(function(U){return U.isLoop()});var h=s.length,f=l.length,d=Math.ceil(Math.pow(Math.log(h)/Math.LN2,2)),m=Math.floor(h/sXn);if(h<2){td("At least 2 nodes are required for Karger-Stein algorithm");return}for(var b=[],v=0;v<f;v++){var T=l[v];b.push([v,s.indexOf(T.source()),s.indexOf(T.target())])}for(var C=1/0,E=[],S=new Array(h),R=new Array(h),L=new Array(h),_=i(function(ne,se){for(var he=0;he<h;he++)se[he]=ne[he]},"copyNodesMap"),I=0;I<=d;I++){for(var N=0;N<h;N++)R[N]=N;var B=rrt(R,b.slice(),h,m),O=B.slice();_(R,L);var P=rrt(R,B,m,2),$=rrt(L,O,m,2);P.length<=$.length&&P.length<C?(C=P.length,E=P,_(R,S)):$.length<=P.length&&$.length<C&&(C=$.length,E=$,_(L,S))}for(var V=this.spawn(E.map(function(U){return l[U[0]]})),Y=this.spawn(),Q=this.spawn(),q=S[0],W=0;W<S.length;W++){var H=S[W],re=s[W];H===q?Y.merge(re):Q.merge(re)}var Z=i(function(ne){var se=t.spawn();return ne.forEach(function(he){se.merge(he),he.connectedEdges().forEach(function(le){t.contains(le)&&!V.contains(le)&&se.merge(le)})}),se},"constructComponent"),X=[Z(Y),Z(Q)],te={cut:V,components:X,partition1:Y,partition2:Q};return te},"kargerStein")},cXn=i(function(t){return{x:t.x,y:t.y}},"copyPosition"),fke=i(function(t,a,s){return{x:t.x*a+s.x,y:t.y*a+s.y}},"modelToRenderedPosition"),O8r=i(function(t,a,s){return{x:(t.x-s.x)/a,y:(t.y-s.y)/a}},"renderedToModelPosition"),iV=i(function(t){return{x:t[0],y:t[1]}},"array2point"),uXn=i(function(t){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,l=1/0,h=a;h<s;h++){var f=t[h];isFinite(f)&&(l=Math.min(f,l))}return l},"min"),hXn=i(function(t){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,l=-1/0,h=a;h<s;h++){var f=t[h];isFinite(f)&&(l=Math.max(f,l))}return l},"max"),fXn=i(function(t){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,l=0,h=0,f=a;f<s;f++){var d=t[f];isFinite(d)&&(l+=d,h++)}return l/h},"mean"),dXn=i(function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;l?t=t.slice(a,s):(s<t.length&&t.splice(s,t.length-s),a>0&&t.splice(0,a));for(var d=0,m=t.length-1;m>=0;m--){var b=t[m];f?isFinite(b)||(t[m]=-1/0,d++):t.splice(m,1)}h&&t.sort(function(C,E){return C-E});var v=t.length,T=Math.floor(v/2);return v%2!==0?t[T+1+d]:(t[T-1+d]+t[T+d])/2},"median"),pXn=i(function(t){return Math.PI*t/180},"deg2rad"),ATe=i(function(t,a){return Math.atan2(a,t)-Math.PI/2},"getAngleFromDisp"),Unt=Math.log2||function(r){return Math.log(r)/Math.log(2)},Vnt=i(function(t){return t>0?1:t<0?-1:0},"signum"),xP=i(function(t,a){return Math.sqrt(gP(t,a))},"dist"),gP=i(function(t,a){var s=a.x-t.x,l=a.y-t.y;return s*s+l*l},"sqdist"),gXn=i(function(t){for(var a=t.length,s=0,l=0;l<a;l++)s+=t[l];for(var h=0;h<a;h++)t[h]=t[h]/s;return t},"inPlaceSumNormalize"),km=i(function(t,a,s,l){return(1-l)*(1-l)*t+2*(1-l)*l*a+l*l*s},"qbezierAt"),oV=i(function(t,a,s,l){return{x:km(t.x,a.x,s.x,l),y:km(t.y,a.y,s.y,l)}},"qbezierPtAt"),mXn=i(function(t,a,s,l){var h={x:a.x-t.x,y:a.y-t.y},f=xP(t,a),d={x:h.x/f,y:h.y/f};return s=s??0,l=l??s*f,{x:t.x+d.x*l,y:t.y+d.y*l}},"lineAt"),eie=i(function(t,a,s){return Math.max(t,Math.min(s,a))},"bound"),Ob=i(function(t){if(t==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(t.x1!=null&&t.y1!=null){if(t.x2!=null&&t.y2!=null&&t.x2>=t.x1&&t.y2>=t.y1)return{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,w:t.x2-t.x1,h:t.y2-t.y1};if(t.w!=null&&t.h!=null&&t.w>=0&&t.h>=0)return{x1:t.x1,y1:t.y1,x2:t.x1+t.w,y2:t.y1+t.h,w:t.w,h:t.h}}},"makeBoundingBox"),yXn=i(function(t){return{x1:t.x1,x2:t.x2,w:t.w,y1:t.y1,y2:t.y2,h:t.h}},"copyBoundingBox"),bXn=i(function(t){t.x1=1/0,t.y1=1/0,t.x2=-1/0,t.y2=-1/0,t.w=0,t.h=0},"clearBoundingBox"),vXn=i(function(t,a){t.x1=Math.min(t.x1,a.x1),t.x2=Math.max(t.x2,a.x2),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,a.y1),t.y2=Math.max(t.y2,a.y2),t.h=t.y2-t.y1},"updateBoundingBox"),P8r=i(function(t,a,s){t.x1=Math.min(t.x1,a),t.x2=Math.max(t.x2,a),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,s),t.y2=Math.max(t.y2,s),t.h=t.y2-t.y1},"expandBoundingBoxByPoint"),$Te=i(function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.x1-=a,t.x2+=a,t.y1-=a,t.y2+=a,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},"expandBoundingBox"),GTe=i(function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],s,l,h,f;if(a.length===1)s=l=h=f=a[0];else if(a.length===2)s=h=a[0],f=l=a[1];else if(a.length===4){var d=$g(a,4);s=d[0],l=d[1],h=d[2],f=d[3]}return t.x1-=f,t.x2+=l,t.y1-=s,t.y2+=h,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},"expandBoundingBoxSides"),u6r=i(function(t,a){t.x1=a.x1,t.y1=a.y1,t.x2=a.x2,t.y2=a.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1},"assignBoundingBox"),Wnt=i(function(t,a){return!(t.x1>a.x2||a.x1>t.x2||t.x2<a.x1||a.x2<t.x1||t.y2<a.y1||a.y2<t.y1||t.y1>a.y2||a.y1>t.y2)},"boundingBoxesIntersect"),Y_=i(function(t,a,s){return t.x1<=a&&a<=t.x2&&t.y1<=s&&s<=t.y2},"inBoundingBox"),h6r=i(function(t,a){return Y_(t,a.x,a.y)},"pointInBoundingBox"),B8r=i(function(t,a){return Y_(t,a.x1,a.y1)&&Y_(t,a.x2,a.y2)},"boundingBoxInBoundingBox"),wXn=(nrt=Math.hypot)!==null&&nrt!==void 0?nrt:function(r,t){return Math.sqrt(r*r+t*t)};i(xXn,"inflatePolygon");i(TXn,"miterBox");F8r=i(function(t,a,s,l,h,f,d){var m=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",b=m==="auto"?eD(h,f):m,v=h/2,T=f/2;b=Math.min(b,v,T);var C=b!==v,E=b!==T,S;if(C){var R=s-v+b-d,L=l-T-d,_=s+v-b+d,I=L;if(S=X_(t,a,s,l,R,L,_,I,!1),S.length>0)return S}if(E){var N=s+v+d,B=l-T+b-d,O=N,P=l+T-b+d;if(S=X_(t,a,s,l,N,B,O,P,!1),S.length>0)return S}if(C){var $=s-v+b-d,V=l+T+d,Y=s+v-b+d,Q=V;if(S=X_(t,a,s,l,$,V,Y,Q,!1),S.length>0)return S}if(E){var q=s-v-d,W=l-T+b-d,H=q,re=l+T-b+d;if(S=X_(t,a,s,l,q,W,H,re,!1),S.length>0)return S}var Z;{var X=s-v+b,te=l-T+b;if(Z=Wne(t,a,s,l,X,te,b+d),Z.length>0&&Z[0]<=X&&Z[1]<=te)return[Z[0],Z[1]]}{var U=s+v-b,ne=l-T+b;if(Z=Wne(t,a,s,l,U,ne,b+d),Z.length>0&&Z[0]>=U&&Z[1]<=ne)return[Z[0],Z[1]]}{var se=s+v-b,he=l+T-b;if(Z=Wne(t,a,s,l,se,he,b+d),Z.length>0&&Z[0]>=se&&Z[1]>=he)return[Z[0],Z[1]]}{var le=s-v+b,pe=l+T-b;if(Z=Wne(t,a,s,l,le,pe,b+d),Z.length>0&&Z[0]<=le&&Z[1]>=pe)return[Z[0],Z[1]]}return[]},"roundRectangleIntersectLine"),kXn=i(function(t,a,s,l,h,f,d){var m=d,b=Math.min(s,h),v=Math.max(s,h),T=Math.min(l,f),C=Math.max(l,f);return b-m<=t&&t<=v+m&&T-m<=a&&a<=C+m},"inLineVicinity"),CXn=i(function(t,a,s,l,h,f,d,m,b){var v={x1:Math.min(s,d,h)-b,x2:Math.max(s,d,h)+b,y1:Math.min(l,m,f)-b,y2:Math.max(l,m,f)+b};return!(t<v.x1||t>v.x2||a<v.y1||a>v.y2)},"inBezierVicinity"),EXn=i(function(t,a,s,l){s-=l;var h=a*a-4*t*s;if(h<0)return[];var f=Math.sqrt(h),d=2*t,m=(-a+f)/d,b=(-a-f)/d;return[m,b]},"solveQuadratic"),SXn=i(function(t,a,s,l,h){var f=1e-5;t===0&&(t=f),a/=t,s/=t,l/=t;var d,m,b,v,T,C,E,S;if(m=(3*s-a*a)/9,b=-(27*l)+a*(9*s-2*(a*a)),b/=54,d=m*m*m+b*b,h[1]=0,E=a/3,d>0){T=b+Math.sqrt(d),T=T<0?-Math.pow(-T,1/3):Math.pow(T,1/3),C=b-Math.sqrt(d),C=C<0?-Math.pow(-C,1/3):Math.pow(C,1/3),h[0]=-E+T+C,E+=(T+C)/2,h[4]=h[2]=-E,E=Math.sqrt(3)*(-C+T)/2,h[3]=E,h[5]=-E;return}if(h[5]=h[3]=0,d===0){S=b<0?-Math.pow(-b,1/3):Math.pow(b,1/3),h[0]=-E+2*S,h[4]=h[2]=-(S+E);return}m=-m,v=m*m*m,v=Math.acos(b/Math.sqrt(v)),S=2*Math.sqrt(m),h[0]=-E+S*Math.cos(v/3),h[2]=-E+S*Math.cos((v+2*Math.PI)/3),h[4]=-E+S*Math.cos((v+4*Math.PI)/3)},"solveCubic"),AXn=i(function(t,a,s,l,h,f,d,m){var b=1*s*s-4*s*h+2*s*d+4*h*h-4*h*d+d*d+l*l-4*l*f+2*l*m+4*f*f-4*f*m+m*m,v=9*s*h-3*s*s-3*s*d-6*h*h+3*h*d+9*l*f-3*l*l-3*l*m-6*f*f+3*f*m,T=3*s*s-6*s*h+s*d-s*t+2*h*h+2*h*t-d*t+3*l*l-6*l*f+l*m-l*a+2*f*f+2*f*a-m*a,C=1*s*h-s*s+s*t-h*t+l*f-l*l+l*a-f*a,E=[];SXn(b,v,T,C,E);for(var S=1e-7,R=[],L=0;L<6;L+=2)Math.abs(E[L+1])<S&&E[L]>=0&&E[L]<=1&&R.push(E[L]);R.push(1),R.push(0);for(var _=-1,I,N,B,O=0;O<R.length;O++)I=Math.pow(1-R[O],2)*s+2*(1-R[O])*R[O]*h+R[O]*R[O]*d,N=Math.pow(1-R[O],2)*l+2*(1-R[O])*R[O]*f+R[O]*R[O]*m,B=Math.pow(I-t,2)+Math.pow(N-a,2),_>=0?B<_&&(_=B):_=B;return _},"sqdistToQuadraticBezier"),RXn=i(function(t,a,s,l,h,f){var d=[t-s,a-l],m=[h-s,f-l],b=m[0]*m[0]+m[1]*m[1],v=d[0]*d[0]+d[1]*d[1],T=d[0]*m[0]+d[1]*m[1],C=T*T/b;return T<0?v:C>b?(t-h)*(t-h)+(a-f)*(a-f):v-C},"sqdistToFiniteLine"),b2=i(function(t,a,s){for(var l,h,f,d,m,b=0,v=0;v<s.length/2;v++)if(l=s[v*2],h=s[v*2+1],v+1<s.length/2?(f=s[(v+1)*2],d=s[(v+1)*2+1]):(f=s[(v+1-s.length/2)*2],d=s[(v+1-s.length/2)*2+1]),!(l==t&&f==t))if(l>=t&&t>=f||l<=t&&t<=f)m=(t-l)/(f-l)*(d-h)+h,m>a&&b++;else continue;return b%2!==0},"pointInsidePolygonPoints"),ZA=i(function(t,a,s,l,h,f,d,m,b){var v=new Array(s.length),T;m[0]!=null?(T=Math.atan(m[1]/m[0]),m[0]<0?T=T+Math.PI/2:T=-T-Math.PI/2):T=m;for(var C=Math.cos(-T),E=Math.sin(-T),S=0;S<v.length/2;S++)v[S*2]=f/2*(s[S*2]*C-s[S*2+1]*E),v[S*2+1]=d/2*(s[S*2+1]*C+s[S*2]*E),v[S*2]+=l,v[S*2+1]+=h;var R;if(b>0){var L=eke(v,-b);R=ZTe(L)}else R=v;return b2(t,a,R)},"pointInsidePolygon"),LXn=i(function(t,a,s,l,h,f,d,m){for(var b=new Array(s.length*2),v=0;v<m.length;v++){var T=m[v];b[v*4+0]=T.startX,b[v*4+1]=T.startY,b[v*4+2]=T.stopX,b[v*4+3]=T.stopY;var C=Math.pow(T.cx-t,2)+Math.pow(T.cy-a,2);if(C<=Math.pow(T.radius,2))return!0}return b2(t,a,b)},"pointInsideRoundPolygon"),ZTe=i(function(t){for(var a=new Array(t.length/2),s,l,h,f,d,m,b,v,T=0;T<t.length/4;T++){s=t[T*4],l=t[T*4+1],h=t[T*4+2],f=t[T*4+3],T<t.length/4-1?(d=t[(T+1)*4],m=t[(T+1)*4+1],b=t[(T+1)*4+2],v=t[(T+1)*4+3]):(d=t[0],m=t[1],b=t[2],v=t[3]);var C=X_(s,l,h,f,d,m,b,v,!0);a[T*2]=C[0],a[T*2+1]=C[1]}return a},"joinLines"),eke=i(function(t,a){for(var s=new Array(t.length*2),l,h,f,d,m=0;m<t.length/2;m++){l=t[m*2],h=t[m*2+1],m<t.length/2-1?(f=t[(m+1)*2],d=t[(m+1)*2+1]):(f=t[0],d=t[1]);var b=d-h,v=-(f-l),T=Math.sqrt(b*b+v*v),C=b/T,E=v/T;s[m*4]=l+C*a,s[m*4+1]=h+E*a,s[m*4+2]=f+C*a,s[m*4+3]=d+E*a}return s},"expandPolygon"),_Xn=i(function(t,a,s,l,h,f){var d=s-t,m=l-a;d/=h,m/=f;var b=Math.sqrt(d*d+m*m),v=b-1;if(v<0)return[];var T=v/b;return[(s-t)*T+t,(l-a)*T+a]},"intersectLineEllipse"),vP=i(function(t,a,s,l,h,f,d){return t-=h,a-=f,t/=s/2+d,a/=l/2+d,t*t+a*a<=1},"checkInEllipse"),Wne=i(function(t,a,s,l,h,f,d){var m=[s-t,l-a],b=[t-h,a-f],v=m[0]*m[0]+m[1]*m[1],T=2*(b[0]*m[0]+b[1]*m[1]),C=b[0]*b[0]+b[1]*b[1]-d*d,E=T*T-4*v*C;if(E<0)return[];var S=(-T+Math.sqrt(E))/(2*v),R=(-T-Math.sqrt(E))/(2*v),L=Math.min(S,R),_=Math.max(S,R),I=[];if(L>=0&&L<=1&&I.push(L),_>=0&&_<=1&&I.push(_),I.length===0)return[];var N=I[0]*m[0]+t,B=I[0]*m[1]+a;if(I.length>1){if(I[0]==I[1])return[N,B];var O=I[1]*m[0]+t,P=I[1]*m[1]+a;return[N,B,O,P]}else return[N,B]},"intersectLineCircle"),irt=i(function(t,a,s){return a<=t&&t<=s||s<=t&&t<=a?t:t<=a&&a<=s||s<=a&&a<=t?a:s},"midOfThree"),X_=i(function(t,a,s,l,h,f,d,m,b){var v=t-h,T=s-t,C=d-h,E=a-f,S=l-a,R=m-f,L=C*E-R*v,_=T*E-S*v,I=R*T-C*S;if(I!==0){var N=L/I,B=_/I,O=.001,P=0-O,$=1+O;return P<=N&&N<=$&&P<=B&&B<=$?[t+N*T,a+N*S]:b?[t+N*T,a+N*S]:[]}else return L===0||_===0?irt(t,s,d)===d?[d,m]:irt(t,s,h)===h?[h,f]:irt(h,d,s)===s?[s,l]:[]:[]},"finiteLinesIntersect"),DXn=i(function(t,a,s,l,h){var f=[],d=l/2,m=h/2,b=a,v=s;f.push({x:b+d*t[0],y:v+m*t[1]});for(var T=1;T<t.length/2;T++)f.push({x:b+d*t[T*2],y:v+m*t[T*2+1]});return f},"transformPoints"),tie=i(function(t,a,s,l,h,f,d,m){var b=[],v,T=new Array(s.length),C=!0;f==null&&(C=!1);var E;if(C){for(var S=0;S<T.length/2;S++)T[S*2]=s[S*2]*f+l,T[S*2+1]=s[S*2+1]*d+h;if(m>0){var R=eke(T,-m);E=ZTe(R)}else E=T}else E=s;for(var L,_,I,N,B=0;B<E.length/2;B++)L=E[B*2],_=E[B*2+1],B<E.length/2-1?(I=E[(B+1)*2],N=E[(B+1)*2+1]):(I=E[0],N=E[1]),v=X_(t,a,l,h,L,_,I,N),v.length!==0&&b.push(v[0],v[1]);return b},"polygonIntersectLine"),IXn=i(function(t,a,s,l,h,f,d,m,b){var v=[],T,C=new Array(s.length*2);b.forEach(function(I,N){N===0?(C[C.length-2]=I.startX,C[C.length-1]=I.startY):(C[N*4-2]=I.startX,C[N*4-1]=I.startY),C[N*4]=I.stopX,C[N*4+1]=I.stopY,T=Wne(t,a,l,h,I.cx,I.cy,I.radius),T.length!==0&&v.push(T[0],T[1])});for(var E=0;E<C.length/4;E++)T=X_(t,a,l,h,C[E*4],C[E*4+1],C[E*4+2],C[E*4+3],!1),T.length!==0&&v.push(T[0],T[1]);if(v.length>2){for(var S=[v[0],v[1]],R=Math.pow(S[0]-t,2)+Math.pow(S[1]-a,2),L=1;L<v.length/2;L++){var _=Math.pow(v[L*2]-t,2)+Math.pow(v[L*2+1]-a,2);_<=R&&(S[0]=v[L*2],S[1]=v[L*2+1],R=_)}return S}return v},"roundPolygonIntersectLine"),RTe=i(function(t,a,s){var l=[t[0]-a[0],t[1]-a[1]],h=Math.sqrt(l[0]*l[0]+l[1]*l[1]),f=(h-s)/h;return f<0&&(f=1e-5),[a[0]+f*l[0],a[1]+f*l[1]]},"shortenIntersection"),Mb=i(function(t,a){var s=ynt(t,a);return s=$8r(s),s},"generateUnitNgonPointsFitToSquare"),$8r=i(function(t){for(var a,s,l=t.length/2,h=1/0,f=1/0,d=-1/0,m=-1/0,b=0;b<l;b++)a=t[2*b],s=t[2*b+1],h=Math.min(h,a),d=Math.max(d,a),f=Math.min(f,s),m=Math.max(m,s);for(var v=2/(d-h),T=2/(m-f),C=0;C<l;C++)a=t[2*C]=t[2*C]*v,s=t[2*C+1]=t[2*C+1]*T,h=Math.min(h,a),d=Math.max(d,a),f=Math.min(f,s),m=Math.max(m,s);if(f<-1)for(var E=0;E<l;E++)s=t[2*E+1]=t[2*E+1]+(-1-f);return t},"fitPolygonToSquare"),ynt=i(function(t,a){var s=1/t*2*Math.PI,l=t%2===0?Math.PI/2+s/2:Math.PI/2;l+=a;for(var h=new Array(t*2),f,d=0;d<t;d++)f=d*s+l,h[2*d]=Math.cos(f),h[2*d+1]=Math.sin(-f);return h},"generateUnitNgonPoints"),eD=i(function(t,a){return Math.min(t/4,a/4,8)},"getRoundRectangleRadius"),G8r=i(function(t,a){return Math.min(t/10,a/10,8)},"getRoundPolygonRadius"),Hnt=i(function(){return 8},"getCutRectangleCornerLength"),MXn=i(function(t,a,s){return[t-2*a+s,2*(a-t),t]},"bezierPtsToQuadCoeff"),bnt=i(function(t,a){return{heightOffset:Math.min(15,.05*a),widthOffset:Math.min(100,.25*t),ctrlPtOffsetPct:.05}},"getBarrelCurveConstants");i(art,"satPolygonIntersection");NXn=m1({dampingFactor:.8,precision:1e-6,iterations:200,weight:i(function(t){return 1},"weight")}),OXn={pageRank:i(function(t){for(var a=NXn(t),s=a.dampingFactor,l=a.precision,h=a.iterations,f=a.weight,d=this._private.cy,m=this.byGroup(),b=m.nodes,v=m.edges,T=b.length,C=T*T,E=v.length,S=new Array(C),R=new Array(T),L=(1-s)/T,_=0;_<T;_++){for(var I=0;I<T;I++){var N=_*T+I;S[N]=0}R[_]=0}for(var B=0;B<E;B++){var O=v[B],P=O.data("source"),$=O.data("target");if(P!==$){var V=b.indexOfId(P),Y=b.indexOfId($),Q=f(O),q=Y*T+V;S[q]+=Q,R[V]+=Q}}for(var W=1/T+L,H=0;H<T;H++)if(R[H]===0)for(var re=0;re<T;re++){var Z=re*T+H;S[Z]=W}else for(var X=0;X<T;X++){var te=X*T+H;S[te]=S[te]/R[H]+L}for(var U=new Array(T),ne=new Array(T),se,he=0;he<T;he++)U[he]=1;for(var le=0;le<h;le++){for(var pe=0;pe<T;pe++)ne[pe]=0;for(var ge=0;ge<T;ge++)for(var we=0;we<T;we++){var Ae=ge*T+we;ne[ge]+=S[Ae]*U[we]}gXn(ne),se=U,U=ne,ne=se;for(var ve=0,Ie=0;Ie<T;Ie++){var De=se[Ie]-U[Ie];ve+=De*De}if(ve<l)break}var Be={rank:i(function(ze){return ze=d.collection(ze)[0],U[b.indexOf(ze)]},"rank")};return Be},"pageRank")},f6r=m1({root:null,weight:i(function(t){return 1},"weight"),directed:!1,alpha:0}),lV={degreeCentralityNormalized:i(function(t){t=f6r(t);var a=this.cy(),s=this.nodes(),l=s.length;if(t.directed){for(var v={},T={},C=0,E=0,S=0;S<l;S++){var R=s[S],L=R.id();t.root=R;var _=this.degreeCentrality(t);C<_.indegree&&(C=_.indegree),E<_.outdegree&&(E=_.outdegree),v[L]=_.indegree,T[L]=_.outdegree}return{indegree:i(function(N){return C==0?0:(Ps(N)&&(N=a.filter(N)),v[N.id()]/C)},"indegree"),outdegree:i(function(N){return E===0?0:(Ps(N)&&(N=a.filter(N)),T[N.id()]/E)},"outdegree")}}else{for(var h={},f=0,d=0;d<l;d++){var m=s[d];t.root=m;var b=this.degreeCentrality(t);f<b.degree&&(f=b.degree),h[m.id()]=b.degree}return{degree:i(function(N){return f===0?0:(Ps(N)&&(N=a.filter(N)),h[N.id()]/f)},"degree")}}},"degreeCentralityNormalized"),degreeCentrality:i(function(t){t=f6r(t);var a=this.cy(),s=this,l=t,h=l.root,f=l.weight,d=l.directed,m=l.alpha;if(h=a.collection(h)[0],d){for(var E=h.connectedEdges(),S=E.filter(function(P){return P.target().same(h)&&s.has(P)}),R=E.filter(function(P){return P.source().same(h)&&s.has(P)}),L=S.length,_=R.length,I=0,N=0,B=0;B<S.length;B++)I+=f(S[B]);for(var O=0;O<R.length;O++)N+=f(R[O]);return{indegree:Math.pow(L,1-m)*Math.pow(I,m),outdegree:Math.pow(_,1-m)*Math.pow(N,m)}}else{for(var b=h.connectedEdges().intersection(s),v=b.length,T=0,C=0;C<b.length;C++)T+=f(b[C]);return{degree:Math.pow(v,1-m)*Math.pow(T,m)}}},"degreeCentrality")};lV.dc=lV.degreeCentrality;lV.dcn=lV.degreeCentralityNormalised=lV.degreeCentralityNormalized;d6r=m1({harmonic:!0,weight:i(function(){return 1},"weight"),directed:!1,root:null}),cV={closenessCentralityNormalized:i(function(t){for(var a=d6r(t),s=a.harmonic,l=a.weight,h=a.directed,f=this.cy(),d={},m=0,b=this.nodes(),v=this.floydWarshall({weight:l,directed:h}),T=0;T<b.length;T++){for(var C=0,E=b[T],S=0;S<b.length;S++)if(T!==S){var R=v.distance(E,b[S]);s?C+=1/R:C+=R}s||(C=1/C),m<C&&(m=C),d[E.id()]=C}return{closeness:i(function(_){return m==0?0:(Ps(_)?_=f.filter(_)[0].id():_=_.id(),d[_]/m)},"closeness")}},"closenessCentralityNormalized"),closenessCentrality:i(function(t){var a=d6r(t),s=a.root,l=a.weight,h=a.directed,f=a.harmonic;s=this.filter(s)[0];for(var d=this.dijkstra({root:s,weight:l,directed:h}),m=0,b=this.nodes(),v=0;v<b.length;v++){var T=b[v];if(!T.same(s)){var C=d.distanceTo(T);f?m+=1/C:m+=C}}return f?m:1/m},"closenessCentrality")};cV.cc=cV.closenessCentrality;cV.ccn=cV.closenessCentralityNormalised=cV.closenessCentralityNormalized;PXn=m1({weight:null,directed:!1}),vnt={betweennessCentrality:i(function(t){for(var a=PXn(t),s=a.directed,l=a.weight,h=l!=null,f=this.cy(),d=this.nodes(),m={},b={},v=0,T={set:i(function(N,B){b[N]=B,B>v&&(v=B)},"set"),get:i(function(N){return b[N]},"get")},C=0;C<d.length;C++){var E=d[C],S=E.id();s?m[S]=E.outgoers().nodes():m[S]=E.openNeighborhood().nodes(),T.set(S,0)}for(var R=i(function(){for(var N=d[L].id(),B=[],O={},P={},$={},V=new die(function(ge,we){return $[ge]-$[we]}),Y=0;Y<d.length;Y++){var Q=d[Y].id();O[Q]=[],P[Q]=0,$[Q]=1/0}for(P[N]=1,$[N]=0,V.push(N);!V.empty();){var q=V.pop();if(B.push(q),h)for(var W=0;W<m[q].length;W++){var H=m[q][W],re=f.getElementById(q),Z=void 0;re.edgesTo(H).length>0?Z=re.edgesTo(H)[0]:Z=H.edgesTo(re)[0];var X=l(Z);H=H.id(),$[H]>$[q]+X&&($[H]=$[q]+X,V.nodes.indexOf(H)<0?V.push(H):V.updateItem(H),P[H]=0,O[H]=[]),$[H]==$[q]+X&&(P[H]=P[H]+P[q],O[H].push(q))}else for(var te=0;te<m[q].length;te++){var U=m[q][te].id();$[U]==1/0&&(V.push(U),$[U]=$[q]+1),$[U]==$[q]+1&&(P[U]=P[U]+P[q],O[U].push(q))}}for(var ne={},se=0;se<d.length;se++)ne[d[se].id()]=0;for(;B.length>0;){for(var he=B.pop(),le=0;le<O[he].length;le++){var pe=O[he][le];ne[pe]=ne[pe]+P[pe]/P[he]*(1+ne[he])}he!=d[L].id()&&T.set(he,T.get(he)+ne[he])}},"_loop"),L=0;L<d.length;L++)R();var _={betweenness:i(function(N){var B=f.collection(N).id();return T.get(B)},"betweenness"),betweennessNormalized:i(function(N){if(v==0)return 0;var B=f.collection(N).id();return T.get(B)/v},"betweennessNormalized")};return _.betweennessNormalised=_.betweennessNormalized,_},"betweennessCentrality")};vnt.bc=vnt.betweennessCentrality;BXn=m1({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(r){return 1}]}),FXn=i(function(t){return BXn(t)},"setOptions"),$Xn=i(function(t,a){for(var s=0,l=0;l<a.length;l++)s+=a[l](t);return s},"getSimilarity"),GXn=i(function(t,a,s){for(var l=0;l<a;l++)t[l*a+l]=s},"addLoops"),j8r=i(function(t,a){for(var s,l=0;l<a;l++){s=0;for(var h=0;h<a;h++)s+=t[h*a+l];for(var f=0;f<a;f++)t[f*a+l]=t[f*a+l]/s}},"normalize"),jXn=i(function(t,a,s){for(var l=new Array(s*s),h=0;h<s;h++){for(var f=0;f<s;f++)l[h*s+f]=0;for(var d=0;d<s;d++)for(var m=0;m<s;m++)l[h*s+m]+=t[h*s+d]*a[d*s+m]}return l},"mmult"),zXn=i(function(t,a,s){for(var l=t.slice(0),h=1;h<s;h++)t=jXn(t,l,a);return t},"expand"),UXn=i(function(t,a,s){for(var l=new Array(a*a),h=0;h<a*a;h++)l[h]=Math.pow(t[h],s);return j8r(l,a),l},"inflate"),VXn=i(function(t,a,s,l){for(var h=0;h<s;h++){var f=Math.round(t[h]*Math.pow(10,l))/Math.pow(10,l),d=Math.round(a[h]*Math.pow(10,l))/Math.pow(10,l);if(f!==d)return!1}return!0},"hasConverged"),WXn=i(function(t,a,s,l){for(var h=[],f=0;f<a;f++){for(var d=[],m=0;m<a;m++)Math.round(t[f*a+m]*1e3)/1e3>0&&d.push(s[m]);d.length!==0&&h.push(l.collection(d))}return h},"assign"),HXn=i(function(t,a){for(var s=0;s<t.length;s++)if(!a[s]||t[s].id()!==a[s].id())return!1;return!0},"isDuplicate"),qXn=i(function(t){for(var a=0;a<t.length;a++)for(var s=0;s<t.length;s++)a!=s&&HXn(t[a],t[s])&&t.splice(s,1);return t},"removeDuplicates"),p6r=i(function(t){for(var a=this.nodes(),s=this.edges(),l=this.cy(),h=FXn(t),f={},d=0;d<a.length;d++)f[a[d].id()]=d;for(var m=a.length,b=m*m,v=new Array(b),T,C=0;C<b;C++)v[C]=0;for(var E=0;E<s.length;E++){var S=s[E],R=f[S.source().id()],L=f[S.target().id()],_=$Xn(S,h.attributes);v[R*m+L]+=_,v[L*m+R]+=_}GXn(v,m,h.multFactor),j8r(v,m);for(var I=!0,N=0;I&&N<h.maxIterations;)I=!1,T=zXn(v,m,h.expandFactor),v=UXn(T,m,h.inflateFactor),VXn(v,T,b,4)||(I=!0),N++;var B=WXn(v,m,a,l);return B=qXn(B),B},"markovClustering"),YXn={markovClustering:p6r,mcl:p6r},XXn=i(function(t){return t},"identity"),z8r=i(function(t,a){return Math.abs(a-t)},"absDiff"),g6r=i(function(t,a,s){return t+z8r(a,s)},"addAbsDiff"),m6r=i(function(t,a,s){return t+Math.pow(s-a,2)},"addSquaredDiff"),KXn=i(function(t){return Math.sqrt(t)},"sqrt"),JXn=i(function(t,a,s){return Math.max(t,z8r(a,s))},"maxAbsDiff"),Fne=i(function(t,a,s,l,h){for(var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:XXn,d=l,m,b,v=0;v<t;v++)m=a(v),b=s(v),d=h(d,m,b);return f(d)},"getDistance"),fV={euclidean:i(function(t,a,s){return t>=2?Fne(t,a,s,0,m6r,KXn):Fne(t,a,s,0,g6r)},"euclidean"),squaredEuclidean:i(function(t,a,s){return Fne(t,a,s,0,m6r)},"squaredEuclidean"),manhattan:i(function(t,a,s){return Fne(t,a,s,0,g6r)},"manhattan"),max:i(function(t,a,s){return Fne(t,a,s,-1/0,JXn)},"max")};fV["squared-euclidean"]=fV.squaredEuclidean;fV.squaredeuclidean=fV.squaredEuclidean;i(dke,"clusteringDistance");QXn=m1({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),qnt=i(function(t){return QXn(t)},"setOptions"),tke=i(function(t,a,s,l,h){var f=h!=="kMedoids",d=f?function(T){return s[T]}:function(T){return l[T](s)},m=i(function(C){return l[C](a)},"getQ"),b=s,v=a;return dke(t,l.length,d,m,b,v)},"getDist"),srt=i(function(t,a,s){for(var l=s.length,h=new Array(l),f=new Array(l),d=new Array(a),m=null,b=0;b<l;b++)h[b]=t.min(s[b]).value,f[b]=t.max(s[b]).value;for(var v=0;v<a;v++){m=[];for(var T=0;T<l;T++)m[T]=Math.random()*(f[T]-h[T])+h[T];d[v]=m}return d},"randomCentroids"),U8r=i(function(t,a,s,l,h){for(var f=1/0,d=0,m=0;m<a.length;m++){var b=tke(s,t,a[m],l,h);b<f&&(f=b,d=m)}return d},"classify"),V8r=i(function(t,a,s){for(var l=[],h=null,f=0;f<a.length;f++)h=a[f],s[h.id()]===t&&l.push(h);return l},"buildCluster"),ZXn=i(function(t,a,s){return Math.abs(a-t)<=s},"haveValuesConverged"),eKn=i(function(t,a,s){for(var l=0;l<t.length;l++)for(var h=0;h<t[l].length;h++){var f=Math.abs(t[l][h]-a[l][h]);if(f>s)return!1}return!0},"haveMatricesConverged"),tKn=i(function(t,a,s){for(var l=0;l<s;l++)if(t===a[l])return!0;return!1},"seenBefore"),y6r=i(function(t,a){var s=new Array(a);if(t.length<50)for(var l=0;l<a;l++){for(var h=t[Math.floor(Math.random()*t.length)];tKn(h,s,l);)h=t[Math.floor(Math.random()*t.length)];s[l]=h}else for(var f=0;f<a;f++)s[f]=t[Math.floor(Math.random()*t.length)];return s},"randomMedoids"),b6r=i(function(t,a,s){for(var l=0,h=0;h<a.length;h++)l+=tke("manhattan",a[h],t,s,"kMedoids");return l},"findCost"),rKn=i(function(t){var a=this.cy(),s=this.nodes(),l=null,h=qnt(t),f=new Array(h.k),d={},m;h.testMode?typeof h.testCentroids=="number"?(h.testCentroids,m=srt(s,h.k,h.attributes)):D0(h.testCentroids)==="object"?m=h.testCentroids:m=srt(s,h.k,h.attributes):m=srt(s,h.k,h.attributes);for(var b=!0,v=0;b&&v<h.maxIterations;){for(var T=0;T<s.length;T++)l=s[T],d[l.id()]=U8r(l,m,h.distance,h.attributes,"kMeans");b=!1;for(var C=0;C<h.k;C++){var E=V8r(C,s,d);if(E.length!==0){for(var S=h.attributes.length,R=m[C],L=new Array(S),_=new Array(S),I=0;I<S;I++){_[I]=0;for(var N=0;N<E.length;N++)l=E[N],_[I]+=h.attributes[I](l);L[I]=_[I]/E.length,ZXn(L[I],R[I],h.sensitivityThreshold)||(b=!0)}m[C]=L,f[C]=a.collection(E)}}v++}return f},"kMeans"),nKn=i(function(t){var a=this.cy(),s=this.nodes(),l=null,h=qnt(t),f=new Array(h.k),d,m={},b,v=new Array(h.k);h.testMode?typeof h.testCentroids=="number"||(D0(h.testCentroids)==="object"?d=h.testCentroids:d=y6r(s,h.k)):d=y6r(s,h.k);for(var T=!0,C=0;T&&C<h.maxIterations;){for(var E=0;E<s.length;E++)l=s[E],m[l.id()]=U8r(l,d,h.distance,h.attributes,"kMedoids");T=!1;for(var S=0;S<d.length;S++){var R=V8r(S,s,m);if(R.length!==0){v[S]=b6r(d[S],R,h.attributes);for(var L=0;L<R.length;L++)b=b6r(R[L],R,h.attributes),b<v[S]&&(v[S]=b,d[S]=R[L],T=!0);f[S]=a.collection(R)}}C++}return f},"kMedoids"),iKn=i(function(t,a,s,l,h){for(var f,d,m=0;m<a.length;m++)for(var b=0;b<t.length;b++)l[m][b]=Math.pow(s[m][b],h.m);for(var v=0;v<t.length;v++)for(var T=0;T<h.attributes.length;T++){f=0,d=0;for(var C=0;C<a.length;C++)f+=l[C][v]*h.attributes[T](a[C]),d+=l[C][v];t[v][T]=f/d}},"updateCentroids"),aKn=i(function(t,a,s,l,h){for(var f=0;f<t.length;f++)a[f]=t[f].slice();for(var d,m,b,v=2/(h.m-1),T=0;T<s.length;T++)for(var C=0;C<l.length;C++){d=0;for(var E=0;E<s.length;E++)m=tke(h.distance,l[C],s[T],h.attributes,"cmeans"),b=tke(h.distance,l[C],s[E],h.attributes,"cmeans"),d+=Math.pow(m/b,v);t[C][T]=1/d}},"updateMembership"),sKn=i(function(t,a,s,l){for(var h=new Array(s.k),f=0;f<h.length;f++)h[f]=[];for(var d,m,b=0;b<a.length;b++){d=-1/0,m=-1;for(var v=0;v<a[0].length;v++)a[b][v]>d&&(d=a[b][v],m=v);h[m].push(t[b])}for(var T=0;T<h.length;T++)h[T]=l.collection(h[T]);return h},"assign"),v6r=i(function(t){var a=this.cy(),s=this.nodes(),l=qnt(t),h,f,d,m,b;m=new Array(s.length);for(var v=0;v<s.length;v++)m[v]=new Array(l.k);d=new Array(s.length);for(var T=0;T<s.length;T++)d[T]=new Array(l.k);for(var C=0;C<s.length;C++){for(var E=0,S=0;S<l.k;S++)d[C][S]=Math.random(),E+=d[C][S];for(var R=0;R<l.k;R++)d[C][R]=d[C][R]/E}f=new Array(l.k);for(var L=0;L<l.k;L++)f[L]=new Array(l.attributes.length);b=new Array(s.length);for(var _=0;_<s.length;_++)b[_]=new Array(l.k);for(var I=!0,N=0;I&&N<l.maxIterations;)I=!1,iKn(f,s,d,b,l),aKn(d,m,f,s,l),eKn(d,m,l.sensitivityThreshold)||(I=!0),N++;return h=sKn(s,d,l,a),{clusters:h,degreeOfMembership:d}},"fuzzyCMeans"),oKn={kMeans:rKn,kMedoids:nKn,fuzzyCMeans:v6r,fcm:v6r},lKn=m1({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),cKn={single:"min",complete:"max"},uKn=i(function(t){var a=lKn(t),s=cKn[a.linkage];return s!=null&&(a.linkage=s),a},"setOptions"),w6r=i(function(t,a,s,l,h){for(var f=0,d=1/0,m,b=h.attributes,v=i(function(Y,Q){return dke(h.distance,b.length,function(q){return b[q](Y)},function(q){return b[q](Q)},Y,Q)},"getDist"),T=0;T<t.length;T++){var C=t[T].key,E=s[C][l[C]];E<d&&(f=C,d=E)}if(h.mode==="threshold"&&d>=h.threshold||h.mode==="dendrogram"&&t.length===1)return!1;var S=a[f],R=a[l[f]],L;h.mode==="dendrogram"?L={left:S,right:R,key:S.key}:L={value:S.value.concat(R.value),key:S.key},t[S.index]=L,t.splice(R.index,1),a[S.key]=L;for(var _=0;_<t.length;_++){var I=t[_];S.key===I.key?m=1/0:h.linkage==="min"?(m=s[S.key][I.key],s[S.key][I.key]>s[R.key][I.key]&&(m=s[R.key][I.key])):h.linkage==="max"?(m=s[S.key][I.key],s[S.key][I.key]<s[R.key][I.key]&&(m=s[R.key][I.key])):h.linkage==="mean"?m=(s[S.key][I.key]*S.size+s[R.key][I.key]*R.size)/(S.size+R.size):h.mode==="dendrogram"?m=v(I.value,S.value):m=v(I.value[0],S.value[0]),s[S.key][I.key]=s[I.key][S.key]=m}for(var N=0;N<t.length;N++){var B=t[N].key;if(l[B]===S.key||l[B]===R.key){for(var O=B,P=0;P<t.length;P++){var $=t[P].key;s[B][$]<s[B][O]&&(O=$)}l[B]=O}t[N].index=N}return S.key=R.key=S.index=R.index=null,!0},"mergeClosest"),aV=i(function(t,a,s){t&&(t.value?a.push(t.value):(t.left&&aV(t.left,a),t.right&&aV(t.right,a)))},"getAllChildren"),wnt=i(function(t,a){if(!t)return"";if(t.left&&t.right){var s=wnt(t.left,a),l=wnt(t.right,a),h=a.add({group:"nodes",data:{id:s+","+l}});return a.add({group:"edges",data:{source:s,target:h.id()}}),a.add({group:"edges",data:{source:l,target:h.id()}}),h.id()}else if(t.value)return t.value.id()},"buildDendrogram"),xnt=i(function(t,a,s){if(!t)return[];var l=[],h=[],f=[];return a===0?(t.left&&aV(t.left,l),t.right&&aV(t.right,h),f=l.concat(h),[s.collection(f)]):a===1?t.value?[s.collection(t.value)]:(t.left&&aV(t.left,l),t.right&&aV(t.right,h),[s.collection(l),s.collection(h)]):t.value?[s.collection(t.value)]:(t.left&&(l=xnt(t.left,a-1,s)),t.right&&(h=xnt(t.right,a-1,s)),l.concat(h))},"buildClustersFromTree"),x6r=i(function(t){for(var a=this.cy(),s=this.nodes(),l=uKn(t),h=l.attributes,f=i(function(N,B){return dke(l.distance,h.length,function(O){return h[O](N)},function(O){return h[O](B)},N,B)},"getDist"),d=[],m=[],b=[],v=[],T=0;T<s.length;T++){var C={value:l.mode==="dendrogram"?s[T]:[s[T]],key:T,index:T};d[T]=C,v[T]=C,m[T]=[],b[T]=0}for(var E=0;E<d.length;E++)for(var S=0;S<=E;S++){var R=void 0;l.mode==="dendrogram"?R=E===S?1/0:f(d[E].value,d[S].value):R=E===S?1/0:f(d[E].value[0],d[S].value[0]),m[E][S]=R,m[S][E]=R,R<m[E][b[E]]&&(b[E]=S)}for(var L=w6r(d,v,m,b,l);L;)L=w6r(d,v,m,b,l);var _;return l.mode==="dendrogram"?(_=xnt(d[0],l.dendrogramDepth,a),l.addDendrogram&&wnt(d[0],a)):(_=new Array(d.length),d.forEach(function(I,N){I.key=I.index=null,_[N]=a.collection(I.value)})),_},"hierarchicalClustering"),hKn={hierarchicalClustering:x6r,hca:x6r},fKn=m1({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),dKn=i(function(t){var a=t.damping,s=t.preference;.5<=a&&a<1||td("Damping must range on [0.5, 1). Got: ".concat(a));var l=["median","mean","min","max"];return l.some(function(h){return h===s})||ua(s)||td("Preference must be one of [".concat(l.map(function(h){return"'".concat(h,"'")}).join(", "),"] or a number. Got: ").concat(s)),fKn(t)},"setOptions"),pKn=i(function(t,a,s,l){var h=i(function(d,m){return l[m](d)},"attr");return-dke(t,l.length,function(f){return h(a,f)},function(f){return h(s,f)},a,s)},"getSimilarity"),gKn=i(function(t,a){var s=null;return a==="median"?s=dXn(t):a==="mean"?s=fXn(t):a==="min"?s=uXn(t):a==="max"?s=hXn(t):s=a,s},"getPreference"),mKn=i(function(t,a,s){for(var l=[],h=0;h<t;h++)a[h*t+h]+s[h*t+h]>0&&l.push(h);return l},"findExemplars"),T6r=i(function(t,a,s){for(var l=[],h=0;h<t;h++){for(var f=-1,d=-1/0,m=0;m<s.length;m++){var b=s[m];a[h*t+b]>d&&(f=b,d=a[h*t+b])}f>0&&l.push(f)}for(var v=0;v<s.length;v++)l[s[v]]=s[v];return l},"assignClusters"),yKn=i(function(t,a,s){for(var l=T6r(t,a,s),h=0;h<s.length;h++){for(var f=[],d=0;d<l.length;d++)l[d]===s[h]&&f.push(d);for(var m=-1,b=-1/0,v=0;v<f.length;v++){for(var T=0,C=0;C<f.length;C++)T+=a[f[C]*t+f[v]];T>b&&(m=v,b=T)}s[h]=f[m]}return l=T6r(t,a,s),l},"assign"),k6r=i(function(t){for(var a=this.cy(),s=this.nodes(),l=dKn(t),h={},f=0;f<s.length;f++)h[s[f].id()]=f;var d,m,b,v,T,C;d=s.length,m=d*d,b=new Array(m);for(var E=0;E<m;E++)b[E]=-1/0;for(var S=0;S<d;S++)for(var R=0;R<d;R++)S!==R&&(b[S*d+R]=pKn(l.distance,s[S],s[R],l.attributes));v=gKn(b,l.preference);for(var L=0;L<d;L++)b[L*d+L]=v;T=new Array(m);for(var _=0;_<m;_++)T[_]=0;C=new Array(m);for(var I=0;I<m;I++)C[I]=0;for(var N=new Array(d),B=new Array(d),O=new Array(d),P=0;P<d;P++)N[P]=0,B[P]=0,O[P]=0;for(var $=new Array(d*l.minIterations),V=0;V<$.length;V++)$[V]=0;var Y;for(Y=0;Y<l.maxIterations;Y++){for(var Q=0;Q<d;Q++){for(var q=-1/0,W=-1/0,H=-1,re=0,Z=0;Z<d;Z++)N[Z]=T[Q*d+Z],re=C[Q*d+Z]+b[Q*d+Z],re>=q?(W=q,q=re,H=Z):re>W&&(W=re);for(var X=0;X<d;X++)T[Q*d+X]=(1-l.damping)*(b[Q*d+X]-q)+l.damping*N[X];T[Q*d+H]=(1-l.damping)*(b[Q*d+H]-W)+l.damping*N[H]}for(var te=0;te<d;te++){for(var U=0,ne=0;ne<d;ne++)N[ne]=C[ne*d+te],B[ne]=Math.max(0,T[ne*d+te]),U+=B[ne];U-=B[te],B[te]=T[te*d+te],U+=B[te];for(var se=0;se<d;se++)C[se*d+te]=(1-l.damping)*Math.min(0,U-B[se])+l.damping*N[se];C[te*d+te]=(1-l.damping)*(U-B[te])+l.damping*N[te]}for(var he=0,le=0;le<d;le++){var pe=C[le*d+le]+T[le*d+le]>0?1:0;$[Y%l.minIterations*d+le]=pe,he+=pe}if(he>0&&(Y>=l.minIterations-1||Y==l.maxIterations-1)){for(var ge=0,we=0;we<d;we++){O[we]=0;for(var Ae=0;Ae<l.minIterations;Ae++)O[we]+=$[Ae*d+we];(O[we]===0||O[we]===l.minIterations)&&ge++}if(ge===d)break}}for(var ve=mKn(d,T,C),Ie=yKn(d,b,ve),De={},Be=0;Be<ve.length;Be++)De[ve[Be]]=[];for(var Fe=0;Fe<s.length;Fe++){var ze=h[s[Fe].id()],vt=Ie[ze];vt!=null&&De[vt].push(s[Fe])}for(var lt=new Array(ve.length),Ft=0;Ft<ve.length;Ft++)lt[Ft]=a.collection(De[ve[Ft]]);return lt},"affinityPropagation"),bKn={affinityPropagation:k6r,ap:k6r},vKn=m1({root:void 0,directed:!1}),wKn={hierholzer:i(function(t){if(!Wc(t)){var a=arguments;t={root:a[0],directed:a[1]}}var s=vKn(t),l=s.root,h=s.directed,f=this,d=!1,m,b,v;l&&(v=Ps(l)?this.filter(l)[0].id():l[0].id());var T={},C={};h?f.forEach(function(I){var N=I.id();if(I.isNode()){var B=I.indegree(!0),O=I.outdegree(!0),P=B-O,$=O-B;P==1?m?d=!0:m=N:$==1?b?d=!0:b=N:($>1||P>1)&&(d=!0),T[N]=[],I.outgoers().forEach(function(V){V.isEdge()&&T[N].push(V.id())})}else C[N]=[void 0,I.target().id()]}):f.forEach(function(I){var N=I.id();if(I.isNode()){var B=I.degree(!0);B%2&&(m?b?d=!0:b=N:m=N),T[N]=[],I.connectedEdges().forEach(function(O){return T[N].push(O.id())})}else C[N]=[I.source().id(),I.target().id()]});var E={found:!1,trail:void 0};if(d)return E;if(b&&m)if(h){if(v&&b!=v)return E;v=b}else{if(v&&b!=v&&m!=v)return E;v||(v=b)}else v||(v=f[0].id());var S=i(function(N){for(var B=N,O=[N],P,$,V;T[B].length;)P=T[B].shift(),$=C[P][0],V=C[P][1],B!=V?(T[V]=T[V].filter(function(Y){return Y!=P}),B=V):!h&&B!=$&&(T[$]=T[$].filter(function(Y){return Y!=P}),B=$),O.unshift(P),O.unshift(B);return O},"walk"),R=[],L=[];for(L=S(v);L.length!=1;)T[L[0]].length==0?(R.unshift(f.getElementById(L.shift())),R.unshift(f.getElementById(L.shift()))):L=S(L.shift()).concat(L);R.unshift(f.getElementById(L.shift()));for(var _ in T)if(T[_].length)return E;return E.found=!0,E.trail=this.spawn(R,!0),E},"hierholzer")},LTe=i(function(){var t=this,a={},s=0,l=0,h=[],f=[],d={},m=i(function(C,E){for(var S=f.length-1,R=[],L=t.spawn();f[S].x!=C||f[S].y!=E;)R.push(f.pop().edge),S--;R.push(f.pop().edge),R.forEach(function(_){var I=_.connectedNodes().intersection(t);L.merge(_),I.forEach(function(N){var B=N.id(),O=N.connectedEdges().intersection(t);L.merge(N),a[B].cutVertex?L.merge(O.filter(function(P){return P.isLoop()})):L.merge(O)})}),h.push(L)},"buildComponent"),b=i(function(C,E,S){C===S&&(l+=1),a[E]={id:s,low:s++,cutVertex:!1};var R=t.getElementById(E).connectedEdges().intersection(t);if(R.size()===0)h.push(t.spawn(t.getElementById(E)));else{var L,_,I,N;R.forEach(function(B){L=B.source().id(),_=B.target().id(),I=L===E?_:L,I!==S&&(N=B.id(),d[N]||(d[N]=!0,f.push({x:E,y:I,edge:B})),I in a?a[E].low=Math.min(a[E].low,a[I].id):(b(C,I,E),a[E].low=Math.min(a[E].low,a[I].low),a[E].id<=a[I].low&&(a[E].cutVertex=!0,m(E,I))))})}},"biconnectedSearch");t.forEach(function(T){if(T.isNode()){var C=T.id();C in a||(l=0,b(C,C),a[C].cutVertex=l>1)}});var v=Object.keys(a).filter(function(T){return a[T].cutVertex}).map(function(T){return t.getElementById(T)});return{cut:t.spawn(v),components:h}},"hopcroftTarjanBiconnected"),xKn={hopcroftTarjanBiconnected:LTe,htbc:LTe,htb:LTe,hopcroftTarjanBiconnectedComponents:LTe},_Te=i(function(){var t=this,a={},s=0,l=[],h=[],f=t.spawn(t),d=i(function(b){h.push(b),a[b]={index:s,low:s++,explored:!1};var v=t.getElementById(b).connectedEdges().intersection(t);if(v.forEach(function(R){var L=R.target().id();L!==b&&(L in a||d(L),a[L].explored||(a[b].low=Math.min(a[b].low,a[L].low)))}),a[b].index===a[b].low){for(var T=t.spawn();;){var C=h.pop();if(T.merge(t.getElementById(C)),a[C].low=a[b].index,a[C].explored=!0,C===b)break}var E=T.edgesWith(T),S=T.merge(E);l.push(S),f=f.difference(S)}},"stronglyConnectedSearch");return t.forEach(function(m){if(m.isNode()){var b=m.id();b in a||d(b)}}),{cut:f,components:l}},"tarjanStronglyConnected"),TKn={tarjanStronglyConnected:_Te,tsc:_Te,tscc:_Te,tarjanStronglyConnectedComponents:_Te},W8r={};[Zne,QYn,ZYn,tXn,nXn,aXn,lXn,OXn,lV,cV,vnt,YXn,oKn,hKn,bKn,wKn,xKn,TKn].forEach(function(r){ao(W8r,r)});H8r=0,q8r=1,Y8r=2,Y4=i(function(t){if(!(this instanceof Y4))return new Y4(t);this.id="Thenable/1.0.7",this.state=H8r,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof t=="function"&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))},"api");Y4.prototype={fulfill:i(function(t){return C6r(this,q8r,"fulfillValue",t)},"fulfill"),reject:i(function(t){return C6r(this,Y8r,"rejectReason",t)},"reject"),then:i(function(t,a){var s=this,l=new Y4;return s.onFulfilled.push(S6r(t,l,"fulfill")),s.onRejected.push(S6r(a,l,"reject")),X8r(s),l.proxy},"then")};C6r=i(function(t,a,s,l){return t.state===H8r&&(t.state=a,t[s]=l,X8r(t)),t},"deliver"),X8r=i(function(t){t.state===q8r?E6r(t,"onFulfilled",t.fulfillValue):t.state===Y8r&&E6r(t,"onRejected",t.rejectReason)},"execute"),E6r=i(function(t,a,s){if(t[a].length!==0){var l=t[a];t[a]=[];var h=i(function(){for(var d=0;d<l.length;d++)l[d](s)},"func");typeof setImmediate=="function"?setImmediate(h):setTimeout(h,0)}},"execute_handlers"),S6r=i(function(t,a,s){return function(l){if(typeof t!="function")a[s].call(a,l);else{var h;try{h=t(l)}catch(f){a.reject(f);return}K8r(a,h)}}},"resolver"),K8r=i(function(t,a){if(t===a||t.proxy===a){t.reject(new TypeError("cannot resolve promise with itself"));return}var s;if(D0(a)==="object"&&a!==null||typeof a=="function")try{s=a.then}catch(h){t.reject(h);return}if(typeof s=="function"){var l=!1;try{s.call(a,function(h){l||(l=!0,h===a?t.reject(new TypeError("circular thenable chain")):K8r(t,h))},function(h){l||(l=!0,t.reject(h))})}catch(h){l||t.reject(h)}return}t.fulfill(a)},"resolve");Y4.all=function(r){return new Y4(function(t,a){for(var s=new Array(r.length),l=0,h=i(function(m,b){s[m]=b,l++,l===r.length&&t(s)},"fulfill"),f=0;f<r.length;f++)(function(d){var m=r[d],b=m!=null&&m.then!=null;if(b)m.then(function(T){h(d,T)},function(T){a(T)});else{var v=m;h(d,v)}})(f)})};Y4.resolve=function(r){return new Y4(function(t,a){t(r)})};Y4.reject=function(r){return new Y4(function(t,a){a(r)})};yV=typeof Promise<"u"?Promise:Y4,Tnt=i(function(t,a,s){var l=Bnt(t),h=!l,f=this._private=ao({duration:1e3},a,s);if(f.target=t,f.style=f.style||f.css,f.started=!1,f.playing=!1,f.hooked=!1,f.applying=!1,f.progress=0,f.completes=[],f.frames=[],f.complete&&Bd(f.complete)&&f.completes.push(f.complete),h){var d=t.position();f.startPosition=f.startPosition||{x:d.x,y:d.y},f.startStyle=f.startStyle||t.cy().style().getAnimationStartStyle(t,f.style)}if(l){var m=t.pan();f.startPan={x:m.x,y:m.y},f.startZoom=t.zoom()}this.length=1,this[0]=this},"Animation"),TP=Tnt.prototype;ao(TP,{instanceString:i(function(){return"animation"},"instanceString"),hook:i(function(){var t=this._private;if(!t.hooked){var a,s=t.target._private.animation;t.queue?a=s.queue:a=s.current,a.push(this),sx(t.target)&&t.target.cy().addToAnimationPool(t.target),t.hooked=!0}return this},"hook"),play:i(function(){var t=this._private;return t.progress===1&&(t.progress=0),t.playing=!0,t.started=!1,t.stopped=!1,this.hook(),this},"play"),playing:i(function(){return this._private.playing},"playing"),apply:i(function(){var t=this._private;return t.applying=!0,t.started=!1,t.stopped=!1,this.hook(),this},"apply"),applying:i(function(){return this._private.applying},"applying"),pause:i(function(){var t=this._private;return t.playing=!1,t.started=!1,this},"pause"),stop:i(function(){var t=this._private;return t.playing=!1,t.started=!1,t.stopped=!0,this},"stop"),rewind:i(function(){return this.progress(0)},"rewind"),fastforward:i(function(){return this.progress(1)},"fastforward"),time:i(function(t){var a=this._private;return t===void 0?a.progress*a.duration:this.progress(t/a.duration)},"time"),progress:i(function(t){var a=this._private,s=a.playing;return t===void 0?a.progress:(s&&this.pause(),a.progress=t,a.started=!1,s&&this.play(),this)},"progress"),completed:i(function(){return this._private.progress===1},"completed"),reverse:i(function(){var t=this._private,a=t.playing;a&&this.pause(),t.progress=1-t.progress,t.started=!1;var s=i(function(b,v){var T=t[b];T!=null&&(t[b]=t[v],t[v]=T)},"swap");if(s("zoom","startZoom"),s("pan","startPan"),s("position","startPosition"),t.style)for(var l=0;l<t.style.length;l++){var h=t.style[l],f=h.name,d=t.startStyle[f];t.startStyle[f]=h,t.style[l]=d}return a&&this.play(),this},"reverse"),promise:i(function(t){var a=this._private,s;switch(t){case"frame":s=a.frames;break;default:case"complete":case"completed":s=a.completes}return new yV(function(l,h){s.push(function(){l()})})},"promise")});TP.complete=TP.completed;TP.run=TP.play;TP.running=TP.playing;kKn={animated:i(function(){return i(function(){var a=this,s=a.length!==void 0,l=s?a:[a],h=this._private.cy||this;if(!h.styleEnabled())return!1;var f=l[0];if(f)return f._private.animation.current.length>0},"animatedImpl")},"animated"),clearQueue:i(function(){return i(function(){var a=this,s=a.length!==void 0,l=s?a:[a],h=this._private.cy||this;if(!h.styleEnabled())return this;for(var f=0;f<l.length;f++){var d=l[f];d._private.animation.queue=[]}return this},"clearQueueImpl")},"clearQueue"),delay:i(function(){return i(function(a,s){var l=this._private.cy||this;return l.styleEnabled()?this.animate({delay:a,duration:a,complete:s}):this},"delayImpl")},"delay"),delayAnimation:i(function(){return i(function(a,s){var l=this._private.cy||this;return l.styleEnabled()?this.animation({delay:a,duration:a,complete:s}):this},"delayAnimationImpl")},"delayAnimation"),animation:i(function(){return i(function(a,s){var l=this,h=l.length!==void 0,f=h?l:[l],d=this._private.cy||this,m=!h,b=!m;if(!d.styleEnabled())return this;var v=d.style();a=ao({},a,s);var T=Object.keys(a).length===0;if(T)return new Tnt(f[0],a);switch(a.duration===void 0&&(a.duration=400),a.duration){case"slow":a.duration=600;break;case"fast":a.duration=200;break}if(b&&(a.style=v.getPropsList(a.style||a.css),a.css=void 0),b&&a.renderedPosition!=null){var C=a.renderedPosition,E=d.pan(),S=d.zoom();a.position=O8r(C,S,E)}if(m&&a.panBy!=null){var R=a.panBy,L=d.pan();a.pan={x:L.x+R.x,y:L.y+R.y}}var _=a.center||a.centre;if(m&&_!=null){var I=d.getCenterPan(_.eles,a.zoom);I!=null&&(a.pan=I)}if(m&&a.fit!=null){var N=a.fit,B=d.getFitViewport(N.eles||N.boundingBox,N.padding);B!=null&&(a.pan=B.pan,a.zoom=B.zoom)}if(m&&Wc(a.zoom)){var O=d.getZoomedViewport(a.zoom);O!=null?(O.zoomed&&(a.zoom=O.zoom),O.panned&&(a.pan=O.pan)):a.zoom=null}return new Tnt(f[0],a)},"animationImpl")},"animation"),animate:i(function(){return i(function(a,s){var l=this,h=l.length!==void 0,f=h?l:[l],d=this._private.cy||this;if(!d.styleEnabled())return this;s&&(a=ao({},a,s));for(var m=0;m<f.length;m++){var b=f[m],v=b.animated()&&(a.queue===void 0||a.queue),T=b.animation(a,v?{queue:!0}:void 0);T.play()}return this},"animateImpl")},"animate"),stop:i(function(){return i(function(a,s){var l=this,h=l.length!==void 0,f=h?l:[l],d=this._private.cy||this;if(!d.styleEnabled())return this;for(var m=0;m<f.length;m++){for(var b=f[m],v=b._private,T=v.animation.current,C=0;C<T.length;C++){var E=T[C],S=E._private;s&&(S.duration=0)}a&&(v.animation.queue=[]),s||(v.animation.current=[])}return d.notify("draw"),this},"stopImpl")},"stop")};i(pke,"requireIsArray");i(CKn,"require_isKey");i(EKn,"requireIsFunction");i(SKn,"require_coreJsData");i(AKn,"require_isMasked");i(RKn,"require_toSource");i(LKn,"require_baseIsNative");i(_Kn,"require_getValue");i(Ynt,"require_getNative");i(gke,"require_nativeCreate");i(DKn,"require_hashClear");i(IKn,"require_hashDelete");i(MKn,"require_hashGet");i(NKn,"require_hashHas");i(OKn,"require_hashSet");i(PKn,"require_Hash");i(BKn,"require_listCacheClear");i(J8r,"requireEq");i(mke,"require_assocIndexOf");i(FKn,"require_listCacheDelete");i($Kn,"require_listCacheGet");i(GKn,"require_listCacheHas");i(jKn,"require_listCacheSet");i(zKn,"require_ListCache");i(UKn,"require_Map");i(VKn,"require_mapCacheClear");i(WKn,"require_isKeyable");i(yke,"require_getMapData");i(HKn,"require_mapCacheDelete");i(qKn,"require_mapCacheGet");i(YKn,"require_mapCacheHas");i(XKn,"require_mapCacheSet");i(KKn,"require_MapCache");i(JKn,"requireMemoize");i(QKn,"require_memoizeCapped");i(Q8r,"require_stringToPath");i(Z8r,"require_arrayMap");i(ZKn,"require_baseToString");i(e7r,"requireToString");i(t7r,"require_castPath");i(Xnt,"require_toKey");i(eJn,"require_baseGet");i(tJn,"requireGet");rJn=tJn(),nJn=cie(rJn);i(iJn,"require_defineProperty");i(aJn,"require_baseAssignValue");i(sJn,"require_assignValue");i(oJn,"require_isIndex");i(lJn,"require_baseSet");i(cJn,"requireSet");uJn=cJn(),hJn=cie(uJn);i(fJn,"require_copyArray");i(dJn,"requireToPath");pJn=dJn(),gJn=cie(pJn),mJn={data:i(function(t){var a={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:i(function(l){},"beforeGet"),beforeSet:i(function(l,h){},"beforeSet"),onSet:i(function(l){},"onSet"),canSet:i(function(l){return!0},"canSet")};return t=ao({},a,t),i(function(l,h){var f=t,d=this,m=d.length!==void 0,b=m?d:[d],v=m?d[0]:d;if(Ps(l)){var T=l.indexOf(".")!==-1,C=T&&gJn(l);if(f.allowGetting&&h===void 0){var E;return v&&(f.beforeGet(v),C&&v._private[f.field][l]===void 0?E=nJn(v._private[f.field],C):E=v._private[f.field][l]),E}else if(f.allowSetting&&h!==void 0){var S=!f.immutableKeys[l];if(S){var R=m8r({},l,h);f.beforeSet(d,R);for(var L=0,_=b.length;L<_;L++){var I=b[L];f.canSet(I)&&(C&&v._private[f.field][l]===void 0?hJn(I._private[f.field],C,h):I._private[f.field][l]=h)}f.updateStyle&&d.updateStyle(),f.onSet(d),f.settingTriggersEvent&&d[f.triggerFnName](f.settingEvent)}}}else if(f.allowSetting&&Wc(l)){var N=l,B,O,P=Object.keys(N);f.beforeSet(d,N);for(var $=0;$<P.length;$++){B=P[$],O=N[B];var V=!f.immutableKeys[B];if(V)for(var Y=0;Y<b.length;Y++){var Q=b[Y];f.canSet(Q)&&(Q._private[f.field][B]=O)}}f.updateStyle&&d.updateStyle(),f.onSet(d),f.settingTriggersEvent&&d[f.triggerFnName](f.settingEvent)}else if(f.allowBinding&&Bd(l)){var q=l;d.on(f.bindingEvent,q)}else if(f.allowGetting&&l===void 0){var W;return v&&(f.beforeGet(v),W=v._private[f.field]),W}return d},"dataImpl")},"data"),removeData:i(function(t){var a={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return t=ao({},a,t),i(function(l){var h=t,f=this,d=f.length!==void 0,m=d?f:[f];if(Ps(l)){for(var b=l.split(/\s+/),v=b.length,T=0;T<v;T++){var C=b[T];if(!Q_(C)){var E=!h.immutableKeys[C];if(E)for(var S=0,R=m.length;S<R;S++)m[S]._private[h.field][C]=void 0}}h.triggerEvent&&f[h.triggerFnName](h.event)}else if(l===void 0){for(var L=0,_=m.length;L<_;L++)for(var I=m[L]._private[h.field],N=Object.keys(I),B=0;B<N.length;B++){var O=N[B],P=!h.immutableKeys[O];P&&(I[O]=void 0)}h.triggerEvent&&f[h.triggerFnName](h.event)}return f},"removeDataImpl")},"removeData")},yJn={eventAliasesOn:i(function(t){var a=t;a.addListener=a.listen=a.bind=a.on,a.unlisten=a.unbind=a.off=a.removeListener,a.trigger=a.emit,a.pon=a.promiseOn=function(s,l){var h=this,f=Array.prototype.slice.call(arguments,0);return new yV(function(d,m){var b=i(function(E){h.off.apply(h,T),d(E)},"callback"),v=f.concat([b]),T=v.concat([]);h.on.apply(h,v)})}},"eventAliasesOn")},zu={};[kKn,mJn,yJn].forEach(function(r){ao(zu,r)});bJn={animate:zu.animate(),animation:zu.animation(),animated:zu.animated(),clearQueue:zu.clearQueue(),delay:zu.delay(),delayAnimation:zu.delayAnimation(),stop:zu.stop()},jTe={classes:i(function(t){var a=this;if(t===void 0){var s=[];return a[0]._private.classes.forEach(function(S){return s.push(S)}),s}else zh(t)||(t=(t||"").match(/\S+/g)||[]);for(var l=[],h=new mV(t),f=0;f<a.length;f++){for(var d=a[f],m=d._private,b=m.classes,v=!1,T=0;T<t.length;T++){var C=t[T],E=b.has(C);if(!E){v=!0;break}}v||(v=b.size!==t.length),v&&(m.classes=h,l.push(d))}return l.length>0&&this.spawn(l).updateStyle().emit("class"),a},"classes"),addClass:i(function(t){return this.toggleClass(t,!0)},"addClass"),hasClass:i(function(t){var a=this[0];return a!=null&&a._private.classes.has(t)},"hasClass"),toggleClass:i(function(t,a){zh(t)||(t=t.match(/\S+/g)||[]);for(var s=this,l=a===void 0,h=[],f=0,d=s.length;f<d;f++)for(var m=s[f],b=m._private.classes,v=!1,T=0;T<t.length;T++){var C=t[T],E=b.has(C),S=!1;a||l&&!E?(b.add(C),S=!0):(!a||l&&E)&&(b.delete(C),S=!0),!v&&S&&(h.push(m),v=!0)}return h.length>0&&this.spawn(h).updateStyle().emit("class"),s},"toggleClass"),removeClass:i(function(t){return this.toggleClass(t,!1)},"removeClass"),flashClass:i(function(t,a){var s=this;if(a==null)a=250;else if(a===0)return s;return s.addClass(t),setTimeout(function(){s.removeClass(t)},a),s},"flashClass")};jTe.className=jTe.classNames=jTe.classes;Vc={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:_0,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Vc.variable="(?:[\\w-.]|(?:\\\\"+Vc.metaChar+"))+";Vc.className="(?:[\\w-]|(?:\\\\"+Vc.metaChar+"))+";Vc.value=Vc.string+"|"+Vc.number;Vc.id=Vc.variable;(function(){var r,t,a;for(r=Vc.comparatorOp.split("|"),a=0;a<r.length;a++)t=r[a],Vc.comparatorOp+="|@"+t;for(r=Vc.comparatorOp.split("|"),a=0;a<r.length;a++)t=r[a],!(t.indexOf("!")>=0)&&t!=="="&&(Vc.comparatorOp+="|\\!"+t)})();Ch=i(function(){return{checks:[]}},"newQuery"),Wa={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},knt=[{selector:":selected",matches:i(function(t){return t.selected()},"matches")},{selector:":unselected",matches:i(function(t){return!t.selected()},"matches")},{selector:":selectable",matches:i(function(t){return t.selectable()},"matches")},{selector:":unselectable",matches:i(function(t){return!t.selectable()},"matches")},{selector:":locked",matches:i(function(t){return t.locked()},"matches")},{selector:":unlocked",matches:i(function(t){return!t.locked()},"matches")},{selector:":visible",matches:i(function(t){return t.visible()},"matches")},{selector:":hidden",matches:i(function(t){return!t.visible()},"matches")},{selector:":transparent",matches:i(function(t){return t.transparent()},"matches")},{selector:":grabbed",matches:i(function(t){return t.grabbed()},"matches")},{selector:":free",matches:i(function(t){return!t.grabbed()},"matches")},{selector:":removed",matches:i(function(t){return t.removed()},"matches")},{selector:":inside",matches:i(function(t){return!t.removed()},"matches")},{selector:":grabbable",matches:i(function(t){return t.grabbable()},"matches")},{selector:":ungrabbable",matches:i(function(t){return!t.grabbable()},"matches")},{selector:":animated",matches:i(function(t){return t.animated()},"matches")},{selector:":unanimated",matches:i(function(t){return!t.animated()},"matches")},{selector:":parent",matches:i(function(t){return t.isParent()},"matches")},{selector:":childless",matches:i(function(t){return t.isChildless()},"matches")},{selector:":child",matches:i(function(t){return t.isChild()},"matches")},{selector:":orphan",matches:i(function(t){return t.isOrphan()},"matches")},{selector:":nonorphan",matches:i(function(t){return t.isChild()},"matches")},{selector:":compound",matches:i(function(t){return t.isNode()?t.isParent():t.source().isParent()||t.target().isParent()},"matches")},{selector:":loop",matches:i(function(t){return t.isLoop()},"matches")},{selector:":simple",matches:i(function(t){return t.isSimple()},"matches")},{selector:":active",matches:i(function(t){return t.active()},"matches")},{selector:":inactive",matches:i(function(t){return!t.active()},"matches")},{selector:":backgrounding",matches:i(function(t){return t.backgrounding()},"matches")},{selector:":nonbackgrounding",matches:i(function(t){return!t.backgrounding()},"matches")}].sort(function(r,t){return mYn(r.selector,t.selector)}),vJn=(function(){for(var r={},t,a=0;a<knt.length;a++)t=knt[a],r[t.selector]=t.matches;return r})(),wJn=i(function(t,a){return vJn[t](a)},"stateSelectorMatches"),xJn="("+knt.map(function(r){return r.selector}).join("|")+")",KU=i(function(t){return t.replace(new RegExp("\\\\("+Vc.metaChar+")","g"),function(a,s){return s})},"cleanMetaChars"),W_=i(function(t,a,s){t[t.length-1]=s},"replaceLastQuery"),Cnt=[{name:"group",query:!0,regex:"("+Vc.group+")",populate:i(function(t,a,s){var l=$g(s,1),h=l[0];a.checks.push({type:Wa.GROUP,value:h==="*"?h:h+"s"})},"populate")},{name:"state",query:!0,regex:xJn,populate:i(function(t,a,s){var l=$g(s,1),h=l[0];a.checks.push({type:Wa.STATE,value:h})},"populate")},{name:"id",query:!0,regex:"\\#("+Vc.id+")",populate:i(function(t,a,s){var l=$g(s,1),h=l[0];a.checks.push({type:Wa.ID,value:KU(h)})},"populate")},{name:"className",query:!0,regex:"\\.("+Vc.className+")",populate:i(function(t,a,s){var l=$g(s,1),h=l[0];a.checks.push({type:Wa.CLASS,value:KU(h)})},"populate")},{name:"dataExists",query:!0,regex:"\\[\\s*("+Vc.variable+")\\s*\\]",populate:i(function(t,a,s){var l=$g(s,1),h=l[0];a.checks.push({type:Wa.DATA_EXIST,field:KU(h)})},"populate")},{name:"dataCompare",query:!0,regex:"\\[\\s*("+Vc.variable+")\\s*("+Vc.comparatorOp+")\\s*("+Vc.value+")\\s*\\]",populate:i(function(t,a,s){var l=$g(s,3),h=l[0],f=l[1],d=l[2],m=new RegExp("^"+Vc.string+"$").exec(d)!=null;m?d=d.substring(1,d.length-1):d=parseFloat(d),a.checks.push({type:Wa.DATA_COMPARE,field:KU(h),operator:f,value:d})},"populate")},{name:"dataBool",query:!0,regex:"\\[\\s*("+Vc.boolOp+")\\s*("+Vc.variable+")\\s*\\]",populate:i(function(t,a,s){var l=$g(s,2),h=l[0],f=l[1];a.checks.push({type:Wa.DATA_BOOL,field:KU(f),operator:h})},"populate")},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+Vc.meta+")\\s*("+Vc.comparatorOp+")\\s*("+Vc.number+")\\s*\\]\\]",populate:i(function(t,a,s){var l=$g(s,3),h=l[0],f=l[1],d=l[2];a.checks.push({type:Wa.META_COMPARE,field:KU(h),operator:f,value:parseFloat(d)})},"populate")},{name:"nextQuery",separator:!0,regex:Vc.separator,populate:i(function(t,a){var s=t.currentSubject,l=t.edgeCount,h=t.compoundCount,f=t[t.length-1];s!=null&&(f.subject=s,t.currentSubject=null),f.edgeCount=l,f.compoundCount=h,t.edgeCount=0,t.compoundCount=0;var d=t[t.length++]=Ch();return d},"populate")},{name:"directedEdge",separator:!0,regex:Vc.directedEdge,populate:i(function(t,a){if(t.currentSubject==null){var s=Ch(),l=a,h=Ch();return s.checks.push({type:Wa.DIRECTED_EDGE,source:l,target:h}),W_(t,a,s),t.edgeCount++,h}else{var f=Ch(),d=a,m=Ch();return f.checks.push({type:Wa.NODE_SOURCE,source:d,target:m}),W_(t,a,f),t.edgeCount++,m}},"populate")},{name:"undirectedEdge",separator:!0,regex:Vc.undirectedEdge,populate:i(function(t,a){if(t.currentSubject==null){var s=Ch(),l=a,h=Ch();return s.checks.push({type:Wa.UNDIRECTED_EDGE,nodes:[l,h]}),W_(t,a,s),t.edgeCount++,h}else{var f=Ch(),d=a,m=Ch();return f.checks.push({type:Wa.NODE_NEIGHBOR,node:d,neighbor:m}),W_(t,a,f),m}},"populate")},{name:"child",separator:!0,regex:Vc.child,populate:i(function(t,a){if(t.currentSubject==null){var s=Ch(),l=Ch(),h=t[t.length-1];return s.checks.push({type:Wa.CHILD,parent:h,child:l}),W_(t,a,s),t.compoundCount++,l}else if(t.currentSubject===a){var f=Ch(),d=t[t.length-1],m=Ch(),b=Ch(),v=Ch(),T=Ch();return f.checks.push({type:Wa.COMPOUND_SPLIT,left:d,right:m,subject:b}),b.checks=a.checks,a.checks=[{type:Wa.TRUE}],T.checks.push({type:Wa.TRUE}),m.checks.push({type:Wa.PARENT,parent:T,child:v}),W_(t,d,f),t.currentSubject=b,t.compoundCount++,v}else{var C=Ch(),E=Ch(),S=[{type:Wa.PARENT,parent:C,child:E}];return C.checks=a.checks,a.checks=S,t.compoundCount++,E}},"populate")},{name:"descendant",separator:!0,regex:Vc.descendant,populate:i(function(t,a){if(t.currentSubject==null){var s=Ch(),l=Ch(),h=t[t.length-1];return s.checks.push({type:Wa.DESCENDANT,ancestor:h,descendant:l}),W_(t,a,s),t.compoundCount++,l}else if(t.currentSubject===a){var f=Ch(),d=t[t.length-1],m=Ch(),b=Ch(),v=Ch(),T=Ch();return f.checks.push({type:Wa.COMPOUND_SPLIT,left:d,right:m,subject:b}),b.checks=a.checks,a.checks=[{type:Wa.TRUE}],T.checks.push({type:Wa.TRUE}),m.checks.push({type:Wa.ANCESTOR,ancestor:T,descendant:v}),W_(t,d,f),t.currentSubject=b,t.compoundCount++,v}else{var C=Ch(),E=Ch(),S=[{type:Wa.ANCESTOR,ancestor:C,descendant:E}];return C.checks=a.checks,a.checks=S,t.compoundCount++,E}},"populate")},{name:"subject",modifier:!0,regex:Vc.subject,populate:i(function(t,a){if(t.currentSubject!=null&&t.currentSubject!==a)return Uu("Redefinition of subject in selector `"+t.toString()+"`"),!1;t.currentSubject=a;var s=t[t.length-1],l=s.checks[0],h=l==null?null:l.type;h===Wa.DIRECTED_EDGE?l.type=Wa.NODE_TARGET:h===Wa.UNDIRECTED_EDGE&&(l.type=Wa.NODE_NEIGHBOR,l.node=l.nodes[1],l.neighbor=l.nodes[0],l.nodes=null)},"populate")}];Cnt.forEach(function(r){return r.regexObj=new RegExp("^"+r.regex)});TJn=i(function(t){for(var a,s,l,h=0;h<Cnt.length;h++){var f=Cnt[h],d=f.name,m=t.match(f.regexObj);if(m!=null){s=m,a=f,l=d;var b=m[0];t=t.substring(b.length);break}}return{expr:a,match:s,name:l,remaining:t}},"consumeExpr"),kJn=i(function(t){var a=t.match(/^\s+/);if(a){var s=a[0];t=t.substring(s.length)}return t},"consumeWhitespace"),CJn=i(function(t){var a=this,s=a.inputText=t,l=a[0]=Ch();for(a.length=1,s=kJn(s);;){var h=TJn(s);if(h.expr==null)return Uu("The selector `"+t+"`is invalid"),!1;var f=h.match.slice(1),d=h.expr.populate(a,l,f);if(d===!1)return!1;if(d!=null&&(l=d),s=h.remaining,s.match(/^\s*$/))break}var m=a[a.length-1];a.currentSubject!=null&&(m.subject=a.currentSubject),m.edgeCount=a.edgeCount,m.compoundCount=a.compoundCount;for(var b=0;b<a.length;b++){var v=a[b];if(v.compoundCount>0&&v.edgeCount>0)return Uu("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(v.edgeCount>1)return Uu("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;v.edgeCount===1&&Uu("The selector `"+t+"` 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},"parse"),EJn=i(function(){if(this.toStringCache!=null)return this.toStringCache;for(var t=i(function(v){return v??""},"clean"),a=i(function(v){return Ps(v)?'"'+v+'"':t(v)},"cleanVal"),s=i(function(v){return" "+v+" "},"space"),l=i(function(v,T){var C=v.type,E=v.value;switch(C){case Wa.GROUP:{var S=t(E);return S.substring(0,S.length-1)}case Wa.DATA_COMPARE:{var R=v.field,L=v.operator;return"["+R+s(t(L))+a(E)+"]"}case Wa.DATA_BOOL:{var _=v.operator,I=v.field;return"["+t(_)+I+"]"}case Wa.DATA_EXIST:{var N=v.field;return"["+N+"]"}case Wa.META_COMPARE:{var B=v.operator,O=v.field;return"[["+O+s(t(B))+a(E)+"]]"}case Wa.STATE:return E;case Wa.ID:return"#"+E;case Wa.CLASS:return"."+E;case Wa.PARENT:case Wa.CHILD:return h(v.parent,T)+s(">")+h(v.child,T);case Wa.ANCESTOR:case Wa.DESCENDANT:return h(v.ancestor,T)+" "+h(v.descendant,T);case Wa.COMPOUND_SPLIT:{var P=h(v.left,T),$=h(v.subject,T),V=h(v.right,T);return P+(P.length>0?" ":"")+$+V}case Wa.TRUE:return""}},"checkToString"),h=i(function(v,T){return v.checks.reduce(function(C,E,S){return C+(T===v&&S===0?"$":"")+l(E,T)},"")},"queryToString"),f="",d=0;d<this.length;d++){var m=this[d];f+=h(m,m.subject),this.length>1&&d<this.length-1&&(f+=", ")}return this.toStringCache=f,f},"toString"),SJn={parse:CJn,toString:EJn},r7r=i(function(t,a,s){var l,h=Ps(t),f=ua(t),d=Ps(s),m,b,v=!1,T=!1,C=!1;switch(a.indexOf("!")>=0&&(a=a.replace("!",""),T=!0),a.indexOf("@")>=0&&(a=a.replace("@",""),v=!0),(h||d||v)&&(m=!h&&!f?"":""+t,b=""+s),v&&(t=m=m.toLowerCase(),s=b=b.toLowerCase()),a){case"*=":l=m.indexOf(b)>=0;break;case"$=":l=m.indexOf(b,m.length-b.length)>=0;break;case"^=":l=m.indexOf(b)===0;break;case"=":l=t===s;break;case">":C=!0,l=t>s;break;case">=":C=!0,l=t>=s;break;case"<":C=!0,l=t<s;break;case"<=":C=!0,l=t<=s;break;default:l=!1;break}return T&&(t!=null||!C)&&(l=!l),l},"valCmp"),AJn=i(function(t,a){switch(a){case"?":return!!t;case"!":return!t;case"^":return t===void 0}},"boolCmp"),RJn=i(function(t){return t!==void 0},"existCmp"),Knt=i(function(t,a){return t.data(a)},"data"),LJn=i(function(t,a){return t[a]()},"meta"),Tp=[],Ef=i(function(t,a){return t.checks.every(function(s){return Tp[s.type](s,a)})},"matches");Tp[Wa.GROUP]=function(r,t){var a=r.value;return a==="*"||a===t.group()};Tp[Wa.STATE]=function(r,t){var a=r.value;return wJn(a,t)};Tp[Wa.ID]=function(r,t){var a=r.value;return t.id()===a};Tp[Wa.CLASS]=function(r,t){var a=r.value;return t.hasClass(a)};Tp[Wa.META_COMPARE]=function(r,t){var a=r.field,s=r.operator,l=r.value;return r7r(LJn(t,a),s,l)};Tp[Wa.DATA_COMPARE]=function(r,t){var a=r.field,s=r.operator,l=r.value;return r7r(Knt(t,a),s,l)};Tp[Wa.DATA_BOOL]=function(r,t){var a=r.field,s=r.operator;return AJn(Knt(t,a),s)};Tp[Wa.DATA_EXIST]=function(r,t){var a=r.field;return r.operator,RJn(Knt(t,a))};Tp[Wa.UNDIRECTED_EDGE]=function(r,t){var a=r.nodes[0],s=r.nodes[1],l=t.source(),h=t.target();return Ef(a,l)&&Ef(s,h)||Ef(s,l)&&Ef(a,h)};Tp[Wa.NODE_NEIGHBOR]=function(r,t){return Ef(r.node,t)&&t.neighborhood().some(function(a){return a.isNode()&&Ef(r.neighbor,a)})};Tp[Wa.DIRECTED_EDGE]=function(r,t){return Ef(r.source,t.source())&&Ef(r.target,t.target())};Tp[Wa.NODE_SOURCE]=function(r,t){return Ef(r.source,t)&&t.outgoers().some(function(a){return a.isNode()&&Ef(r.target,a)})};Tp[Wa.NODE_TARGET]=function(r,t){return Ef(r.target,t)&&t.incomers().some(function(a){return a.isNode()&&Ef(r.source,a)})};Tp[Wa.CHILD]=function(r,t){return Ef(r.child,t)&&Ef(r.parent,t.parent())};Tp[Wa.PARENT]=function(r,t){return Ef(r.parent,t)&&t.children().some(function(a){return Ef(r.child,a)})};Tp[Wa.DESCENDANT]=function(r,t){return Ef(r.descendant,t)&&t.ancestors().some(function(a){return Ef(r.ancestor,a)})};Tp[Wa.ANCESTOR]=function(r,t){return Ef(r.ancestor,t)&&t.descendants().some(function(a){return Ef(r.descendant,a)})};Tp[Wa.COMPOUND_SPLIT]=function(r,t){return Ef(r.subject,t)&&Ef(r.left,t)&&Ef(r.right,t)};Tp[Wa.TRUE]=function(){return!0};Tp[Wa.COLLECTION]=function(r,t){var a=r.value;return a.has(t)};Tp[Wa.FILTER]=function(r,t){var a=r.value;return a(t)};_Jn=i(function(t){var a=this;if(a.length===1&&a[0].checks.length===1&&a[0].checks[0].type===Wa.ID)return t.getElementById(a[0].checks[0].value).collection();var s=i(function(h){for(var f=0;f<a.length;f++){var d=a[f];if(Ef(d,h))return!0}return!1},"selectorFunction");return a.text()==null&&(s=i(function(){return!0},"selectorFunction")),t.filter(s)},"filter"),DJn=i(function(t){for(var a=this,s=0;s<a.length;s++){var l=a[s];if(Ef(l,t))return!0}return!1},"matches"),IJn={matches:DJn,filter:_Jn},tD=i(function(t){this.inputText=t,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,t==null||Ps(t)&&t.match(/^\s*$/)||(sx(t)?this.addQuery({checks:[{type:Wa.COLLECTION,value:t.collection()}]}):Bd(t)?this.addQuery({checks:[{type:Wa.FILTER,value:t}]}):Ps(t)?this.parse(t)||(this.invalid=!0):td("A selector must be created from a string; found "))},"Selector"),rD=tD.prototype;[SJn,IJn].forEach(function(r){return ao(rD,r)});rD.text=function(){return this.inputText};rD.size=function(){return this.length};rD.eq=function(r){return this[r]};rD.sameText=function(r){return!this.invalid&&!r.invalid&&this.text()===r.text()};rD.addQuery=function(r){this[this.length++]=r};rD.selector=rD.toString;K_={allAre:i(function(t){var a=new tD(t);return this.every(function(s){return a.matches(s)})},"allAre"),is:i(function(t){var a=new tD(t);return this.some(function(s){return a.matches(s)})},"is"),some:i(function(t,a){for(var s=0;s<this.length;s++){var l=a?t.apply(a,[this[s],s,this]):t(this[s],s,this);if(l)return!0}return!1},"some"),every:i(function(t,a){for(var s=0;s<this.length;s++){var l=a?t.apply(a,[this[s],s,this]):t(this[s],s,this);if(!l)return!1}return!0},"every"),same:i(function(t){if(this===t)return!0;t=this.cy().collection(t);var a=this.length,s=t.length;return a!==s?!1:a===1?this[0]===t[0]:this.every(function(l){return t.hasElementWithId(l.id())})},"same"),anySame:i(function(t){return t=this.cy().collection(t),this.some(function(a){return t.hasElementWithId(a.id())})},"anySame"),allAreNeighbors:i(function(t){t=this.cy().collection(t);var a=this.neighborhood();return t.every(function(s){return a.hasElementWithId(s.id())})},"allAreNeighbors"),contains:i(function(t){t=this.cy().collection(t);var a=this;return t.every(function(s){return a.hasElementWithId(s.id())})},"contains")};K_.allAreNeighbours=K_.allAreNeighbors;K_.has=K_.contains;K_.equal=K_.equals=K_.same;nk=i(function(t,a){return i(function(l,h,f,d){var m=l,b=this,v;if(m==null?v="":sx(m)&&m.length===1&&(v=m.id()),b.length===1&&v){var T=b[0]._private,C=T.traversalCache=T.traversalCache||{},E=C[a]=C[a]||[],S=wP(v),R=E[S];return R||(E[S]=t.call(b,l,h,f,d))}else return t.call(b,l,h,f,d)},"traversalCache")},"cache"),dV={parent:i(function(t){var a=[];if(this.length===1){var s=this[0]._private.parent;if(s)return s}for(var l=0;l<this.length;l++){var h=this[l],f=h._private.parent;f&&a.push(f)}return this.spawn(a,!0).filter(t)},"parent"),parents:i(function(t){for(var a=[],s=this.parent();s.nonempty();){for(var l=0;l<s.length;l++){var h=s[l];a.push(h)}s=s.parent()}return this.spawn(a,!0).filter(t)},"parents"),commonAncestors:i(function(t){for(var a,s=0;s<this.length;s++){var l=this[s],h=l.parents();a=a||h,a=a.intersect(h)}return a.filter(t)},"commonAncestors"),orphans:i(function(t){return this.stdFilter(function(a){return a.isOrphan()}).filter(t)},"orphans"),nonorphans:i(function(t){return this.stdFilter(function(a){return a.isChild()}).filter(t)},"nonorphans"),children:nk(function(r){for(var t=[],a=0;a<this.length;a++)for(var s=this[a],l=s._private.children,h=0;h<l.length;h++)t.push(l[h]);return this.spawn(t,!0).filter(r)},"children"),siblings:i(function(t){return this.parent().children().not(this).filter(t)},"siblings"),isParent:i(function(){var t=this[0];if(t)return t.isNode()&&t._private.children.length!==0},"isParent"),isChildless:i(function(){var t=this[0];if(t)return t.isNode()&&t._private.children.length===0},"isChildless"),isChild:i(function(){var t=this[0];if(t)return t.isNode()&&t._private.parent!=null},"isChild"),isOrphan:i(function(){var t=this[0];if(t)return t.isNode()&&t._private.parent==null},"isOrphan"),descendants:i(function(t){var a=[];function s(l){for(var h=0;h<l.length;h++){var f=l[h];a.push(f),f.children().nonempty()&&s(f.children())}}return i(s,"add"),s(this.children()),this.spawn(a,!0).filter(t)},"descendants")};i(Jnt,"forEachCompound");i(n7r,"addChildren");dV.forEachDown=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Jnt(this,r,t,n7r)};i(i7r,"addParent");dV.forEachUp=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Jnt(this,r,t,i7r)};i(MJn,"addParentAndChildren");dV.forEachUpAndDown=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Jnt(this,r,t,MJn)};dV.ancestors=dV.parents;rie=a7r={data:zu.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:zu.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:zu.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:zu.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:zu.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:zu.removeData({field:"rscratch",triggerEvent:!1}),id:i(function(){var t=this[0];if(t)return t._private.data.id},"id")};rie.attr=rie.data;rie.removeAttr=rie.removeData;NJn=a7r,bke={};i(int,"defineDegreeFunction");ao(bke,{degree:int(function(r,t){return t.source().same(t.target())?2:1}),indegree:int(function(r,t){return t.target().same(r)?1:0}),outdegree:int(function(r,t){return t.source().same(r)?1:0})});i(JU,"defineDegreeBoundsFunction");ao(bke,{minDegree:JU("degree",function(r,t){return r<t}),maxDegree:JU("degree",function(r,t){return r>t}),minIndegree:JU("indegree",function(r,t){return r<t}),maxIndegree:JU("indegree",function(r,t){return r>t}),minOutdegree:JU("outdegree",function(r,t){return r<t}),maxOutdegree:JU("outdegree",function(r,t){return r>t})});ao(bke,{totalDegree:i(function(t){for(var a=0,s=this.nodes(),l=0;l<s.length;l++)a+=s[l].degree(t);return a},"totalDegree")});o7r=i(function(t,a,s){for(var l=0;l<t.length;l++){var h=t[l];if(!h.locked()){var f=h._private.position,d={x:a.x!=null?a.x-f.x:0,y:a.y!=null?a.y-f.y:0};h.isParent()&&!(d.x===0&&d.y===0)&&h.children().shift(d,s),h.dirtyBoundingBoxCache()}}},"beforePositionSet"),CAr={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:i(function(t){t.updateCompoundBounds()},"beforeGet"),beforeSet:i(function(t,a){o7r(t,a,!1)},"beforeSet"),onSet:i(function(t){t.dirtyCompoundBoundsCache()},"onSet"),canSet:i(function(t){return!t.locked()},"canSet")};q4=s7r={position:zu.data(CAr),silentPosition:zu.data(ao({},CAr,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:i(function(t,a){o7r(t,a,!0)},"beforeSet"),onSet:i(function(t){t.dirtyCompoundBoundsCache()},"onSet")})),positions:i(function(t,a){if(Wc(t))a?this.silentPosition(t):this.position(t);else if(Bd(t)){var s=t,l=this.cy();l.startBatch();for(var h=0;h<this.length;h++){var f=this[h],d=void 0;(d=s(f,h))&&(a?f.silentPosition(d):f.position(d))}l.endBatch()}return this},"positions"),silentPositions:i(function(t){return this.positions(t,!0)},"silentPositions"),shift:i(function(t,a,s){var l;if(Wc(t)?(l={x:ua(t.x)?t.x:0,y:ua(t.y)?t.y:0},s=a):Ps(t)&&ua(a)&&(l={x:0,y:0},l[t]=a),l!=null){var h=this.cy();h.startBatch();for(var f=0;f<this.length;f++){var d=this[f];if(!(h.hasCompoundNodes()&&d.isChild()&&d.ancestors().anySame(this))){var m=d.position(),b={x:m.x+l.x,y:m.y+l.y};s?d.silentPosition(b):d.position(b)}}h.endBatch()}return this},"shift"),silentShift:i(function(t,a){return Wc(t)?this.shift(t,!0):Ps(t)&&ua(a)&&this.shift(t,a,!0),this},"silentShift"),renderedPosition:i(function(t,a){var s=this[0],l=this.cy(),h=l.zoom(),f=l.pan(),d=Wc(t)?t:void 0,m=d!==void 0||a!==void 0&&Ps(t);if(s&&s.isNode())if(m)for(var b=0;b<this.length;b++){var v=this[b];a!==void 0?v.position(t,(a-f[t])/h):d!==void 0&&v.position(O8r(d,h,f))}else{var T=s.position();return d=fke(T,h,f),t===void 0?d:d[t]}else if(!m)return;return this},"renderedPosition"),relativePosition:i(function(t,a){var s=this[0],l=this.cy(),h=Wc(t)?t:void 0,f=h!==void 0||a!==void 0&&Ps(t),d=l.hasCompoundNodes();if(s&&s.isNode())if(f)for(var m=0;m<this.length;m++){var b=this[m],v=d?b.parent():null,T=v&&v.length>0,C=T;T&&(v=v[0]);var E=C?v.position():{x:0,y:0};a!==void 0?b.position(t,a+E[t]):h!==void 0&&b.position({x:h.x+E.x,y:h.y+E.y})}else{var S=s.position(),R=d?s.parent():null,L=R&&R.length>0,_=L;L&&(R=R[0]);var I=_?R.position():{x:0,y:0};return h={x:S.x-I.x,y:S.y-I.y},t===void 0?h:h[t]}else if(!f)return;return this},"relativePosition")};q4.modelPosition=q4.point=q4.position;q4.modelPositions=q4.points=q4.positions;q4.renderedPoint=q4.renderedPosition;q4.relativePoint=q4.relativePosition;OJn=s7r,pV=i(function(t){switch(t){case"left":case"right-inside":return"left";case"right":case"left-inside":return"right";default:return"center"}},"labelHalign"),gV=i(function(t){switch(t){case"top":case"bottom-inside":return"top";case"bottom":case"top-inside":return"bottom";default:return"center"}},"labelValign"),PJn=i(function(t){switch(t){case"left":return"right";case"right":return"left";case"left-inside":return"left";case"right-inside":return"right";default:return"center"}},"labelJustification");uV=sD={};sD.renderedBoundingBox=function(r){var t=this.boundingBox(r),a=this.cy(),s=a.zoom(),l=a.pan(),h=t.x1*s+l.x,f=t.x2*s+l.x,d=t.y1*s+l.y,m=t.y2*s+l.y;return{x1:h,x2:f,y1:d,y2:m,w:f-h,h:m-d}};sD.dirtyCompoundBoundsCache=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()?this:(this.forEachUp(function(a){if(a.isParent()){var s=a._private;s.compoundBoundsClean=!1,s.bbCache=null,r||a.emitAndNotify("bounds")}}),this)};sD.updateCompoundBounds=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!r&&t.batching())return this;function a(f){if(!f.isParent())return;var d=f._private,m=f.children(),b=f.pstyle("compound-sizing-wrt-labels").value==="include",v={width:{val:f.pstyle("min-width").pfValue,left:f.pstyle("min-width-bias-left"),right:f.pstyle("min-width-bias-right")},height:{val:f.pstyle("min-height").pfValue,top:f.pstyle("min-height-bias-top"),bottom:f.pstyle("min-height-bias-bottom")}},T=m.boundingBox({includeLabels:b,includeOverlays:!1,useCache:!1}),C=d.position;(T.w===0||T.h===0)&&(T={w:f.pstyle("width").pfValue,h:f.pstyle("height").pfValue},T.x1=C.x-T.w/2,T.x2=C.x+T.w/2,T.y1=C.y-T.h/2,T.y2=C.y+T.h/2);function E(Y,Q,q){var W=0,H=0,re=Q+q;return Y>0&&re>0&&(W=Q/re*Y,H=q/re*Y),{biasDiff:W,biasComplementDiff:H}}i(E,"computeBiasValues");function S(Y,Q,q,W){if(q.units==="%")switch(W){case"width":return Y>0?q.pfValue*Y:0;case"height":return Q>0?q.pfValue*Q:0;case"average":return Y>0&&Q>0?q.pfValue*(Y+Q)/2:0;case"min":return Y>0&&Q>0?Y>Q?q.pfValue*Q:q.pfValue*Y:0;case"max":return Y>0&&Q>0?Y>Q?q.pfValue*Y:q.pfValue*Q:0;default:return 0}else return q.units==="px"?q.pfValue:0}i(S,"computePaddingValues");var R=v.width.left.value;v.width.left.units==="px"&&v.width.val>0&&(R=R*100/v.width.val);var L=v.width.right.value;v.width.right.units==="px"&&v.width.val>0&&(L=L*100/v.width.val);var _=v.height.top.value;v.height.top.units==="px"&&v.height.val>0&&(_=_*100/v.height.val);var I=v.height.bottom.value;v.height.bottom.units==="px"&&v.height.val>0&&(I=I*100/v.height.val);var N=E(v.width.val-T.w,R,L),B=N.biasDiff,O=N.biasComplementDiff,P=E(v.height.val-T.h,_,I),$=P.biasDiff,V=P.biasComplementDiff;d.autoPadding=S(T.w,T.h,f.pstyle("padding"),f.pstyle("padding-relative-to").value),d.autoWidth=Math.max(T.w,v.width.val),C.x=(-B+T.x1+T.x2+O)/2,d.autoHeight=Math.max(T.h,v.height.val),C.y=(-$+T.y1+T.y2+V)/2}i(a,"update");for(var s=0;s<this.length;s++){var l=this[s],h=l._private;(!h.compoundBoundsClean||r)&&(a(l),t.batching()||(h.compoundBoundsClean=!0))}return this};rk=i(function(t){return t===1/0||t===-1/0?0:t},"noninf"),H4=i(function(t,a,s,l,h){l-a===0||h-s===0||a==null||s==null||l==null||h==null||(t.x1=a<t.x1?a:t.x1,t.x2=l>t.x2?l:t.x2,t.y1=s<t.y1?s:t.y1,t.y2=h>t.y2?h:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},"updateBounds"),H_=i(function(t,a){return a==null?t:H4(t,a.x1,a.y1,a.x2,a.y2)},"updateBoundsFromBox"),$ne=i(function(t,a,s){return Nb(t,a,s)},"prefixedProperty"),DTe=i(function(t,a,s){if(!a.cy().headless()){var l=a._private,h=l.rstyle,f=h.arrowWidth/2,d=a.pstyle(s+"-arrow-shape").value,m,b;if(d!=="none"){s==="source"?(m=h.srcX,b=h.srcY):s==="target"?(m=h.tgtX,b=h.tgtY):(m=h.midX,b=h.midY);var v=l.arrowBounds=l.arrowBounds||{},T=v[s]=v[s]||{};T.x1=m-f,T.y1=b-f,T.x2=m+f,T.y2=b+f,T.w=T.x2-T.x1,T.h=T.y2-T.y1,$Te(T,1),H4(t,T.x1,T.y1,T.x2,T.y2)}}},"updateBoundsFromArrow"),ant=i(function(t,a,s){if(!a.cy().headless()){var l;s?l=s+"-":l="";var h=a._private,f=h.rstyle,d=a.pstyle(l+"label").strValue;if(d){var m=a.pstyle("text-halign"),b=a.pstyle("text-valign"),v=$ne(f,"labelWidth",s),T=$ne(f,"labelHeight",s),C=$ne(f,"labelX",s),E=$ne(f,"labelY",s),S=a.pstyle(l+"text-margin-x").pfValue,R=a.pstyle(l+"text-margin-y").pfValue,L=a.isEdge(),_=a.pstyle(l+"text-rotation"),I=a.pstyle("text-outline-width").pfValue,N=a.pstyle("text-border-width").pfValue,B=N/2,O=a.pstyle("text-background-padding").pfValue,P=2,$=T,V=v,Y=V/2,Q=$/2,q,W,H,re;if(L)q=C-Y,W=C+Y,H=E-Q,re=E+Q;else{switch(pV(m.value)){case"left":q=C-V,W=C;break;case"center":q=C-Y,W=C+Y;break;case"right":q=C,W=C+V;break}switch(gV(b.value)){case"top":H=E-$,re=E;break;case"center":H=E-Q,re=E+Q;break;case"bottom":H=E,re=E+$;break}}var Z=S-Math.max(I,B)-O-P,X=S+Math.max(I,B)+O+P,te=R-Math.max(I,B)-O-P,U=R+Math.max(I,B)+O+P;q+=Z,W+=X,H+=te,re+=U;var ne=s||"main",se=h.labelBounds,he=se[ne]=se[ne]||{};he.x1=q,he.y1=H,he.x2=W,he.y2=re,he.w=W-q,he.h=re-H,he.leftPad=Z,he.rightPad=X,he.topPad=te,he.botPad=U;var le=L&&_.strValue==="autorotate",pe=_.pfValue!=null&&_.pfValue!==0;if(le||pe){var ge=le?$ne(h.rstyle,"labelAngle",s):_.pfValue,we=Math.cos(ge),Ae=Math.sin(ge),ve=(q+W)/2,Ie=(H+re)/2;if(!L){switch(pV(m.value)){case"left":ve=W;break;case"right":ve=q;break}switch(gV(b.value)){case"top":Ie=re;break;case"bottom":Ie=H;break}}var De=i(function(tr,Mt){return tr=tr-ve,Mt=Mt-Ie,{x:tr*we-Mt*Ae+ve,y:tr*Ae+Mt*we+Ie}},"rotate"),Be=De(q,H),Fe=De(q,re),ze=De(W,H),vt=De(W,re);q=Math.min(Be.x,Fe.x,ze.x,vt.x),W=Math.max(Be.x,Fe.x,ze.x,vt.x),H=Math.min(Be.y,Fe.y,ze.y,vt.y),re=Math.max(Be.y,Fe.y,ze.y,vt.y)}var lt=ne+"Rot",Ft=se[lt]=se[lt]||{};Ft.x1=q,Ft.y1=H,Ft.x2=W,Ft.y2=re,Ft.w=W-q,Ft.h=re-H,H4(t,q,H,W,re),H4(h.labelBounds.all,q,H,W,re)}return t}},"updateBoundsFromLabel"),EAr=i(function(t,a){if(!a.cy().headless()){var s=a.pstyle("outline-opacity").value,l=a.pstyle("outline-width").value,h=a.pstyle("outline-offset").value,f=l+h;l7r(t,a,s,f,"outside",f/2)}},"updateBoundsFromOutline"),l7r=i(function(t,a,s,l,h,f){if(!(s===0||l<=0||h==="inside")){var d=a.cy(),m=d.renderer(),b=m.nodeShapes[m.getNodeShape(a)];if(b){var v=a.position(),T=v.x,C=v.y,E=a.width(),S=a.height();if(b.hasMiterBounds){h==="center"&&(l/=2);var R=b.miterBounds(T,C,E,S,l);H_(t,R)}else f!=null&&f>0&>e(t,[f,f,f,f])}}},"updateBoundsFromMiter"),BJn=i(function(t,a){if(!a.cy().headless()){var s=a.pstyle("border-opacity").value,l=a.pstyle("border-width").pfValue,h=a.pstyle("border-position").value;l7r(t,a,s,l,h)}},"updateBoundsFromMiterBorder"),FJn=i(function(t,a){var s=t._private.cy,l=s.styleEnabled(),h=s.headless(),f=Ob(),d=t._private,m=t.isNode(),b=t.isEdge(),v,T,C,E,S,R,L=d.rstyle,_=m&&l?t.pstyle("bounds-expansion").pfValue:[0],I=i(function(pr){return pr.pstyle("display").value!=="none"},"isDisplayed"),N=!l||I(t)&&(!b||I(t.source())&&I(t.target()));if(N){var B=0,O=0;l&&a.includeOverlays&&(B=t.pstyle("overlay-opacity").value,B!==0&&(O=t.pstyle("overlay-padding").value));var P=0,$=0;l&&a.includeUnderlays&&(P=t.pstyle("underlay-opacity").value,P!==0&&($=t.pstyle("underlay-padding").value));var V=Math.max(O,$),Y=0,Q=0;if(l&&(Y=t.pstyle("width").pfValue,Q=Y/2),m&&a.includeNodes){var q=t.position();S=q.x,R=q.y;var W=t.outerWidth(),H=W/2,re=t.outerHeight(),Z=re/2;v=S-H,T=S+H,C=R-Z,E=R+Z,H4(f,v,C,T,E),l&&EAr(f,t),l&&a.includeOutlines&&!h&&EAr(f,t),l&&BJn(f,t)}else if(b&&a.includeEdges)if(l&&!h){var X=t.pstyle("curve-style").strValue;if(v=Math.min(L.srcX,L.midX,L.tgtX),T=Math.max(L.srcX,L.midX,L.tgtX),C=Math.min(L.srcY,L.midY,L.tgtY),E=Math.max(L.srcY,L.midY,L.tgtY),v-=Q,T+=Q,C-=Q,E+=Q,H4(f,v,C,T,E),X==="haystack"){var te=L.haystackPts;if(te&&te.length===2){if(v=te[0].x,C=te[0].y,T=te[1].x,E=te[1].y,v>T){var U=v;v=T,T=U}if(C>E){var ne=C;C=E,E=ne}H4(f,v-Q,C-Q,T+Q,E+Q)}}else if(X==="bezier"||X==="unbundled-bezier"||q_(X,"segments")||q_(X,"taxi")){var se;switch(X){case"bezier":case"unbundled-bezier":se=L.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":se=L.linePts;break}if(se!=null)for(var he=0;he<se.length;he++){var le=se[he];v=le.x-Q,T=le.x+Q,C=le.y-Q,E=le.y+Q,H4(f,v,C,T,E)}}}else{var pe=t.source(),ge=pe.position(),we=t.target(),Ae=we.position();if(v=ge.x,T=Ae.x,C=ge.y,E=Ae.y,v>T){var ve=v;v=T,T=ve}if(C>E){var Ie=C;C=E,E=Ie}v-=Q,T+=Q,C-=Q,E+=Q,H4(f,v,C,T,E)}if(l&&a.includeEdges&&b&&(DTe(f,t,"mid-source"),DTe(f,t,"mid-target"),DTe(f,t,"source"),DTe(f,t,"target")),l){var De=t.pstyle("ghost").value==="yes";if(De){var Be=t.pstyle("ghost-offset-x").pfValue,Fe=t.pstyle("ghost-offset-y").pfValue;H4(f,f.x1+Be,f.y1+Fe,f.x2+Be,f.y2+Fe)}}var ze=d.bodyBounds=d.bodyBounds||{};u6r(ze,f),GTe(ze,_),$Te(ze,1),l&&(v=f.x1,T=f.x2,C=f.y1,E=f.y2,H4(f,v-V,C-V,T+V,E+V));var vt=d.overlayBounds=d.overlayBounds||{};u6r(vt,f),GTe(vt,_),$Te(vt,1);var lt=d.labelBounds=d.labelBounds||{};lt.all!=null?bXn(lt.all):lt.all=Ob(),l&&a.includeLabels&&(a.includeMainLabels&&ant(f,t,null),b&&(a.includeSourceLabels&&ant(f,t,"source"),a.includeTargetLabels&&ant(f,t,"target")))}return f.x1=rk(f.x1),f.y1=rk(f.y1),f.x2=rk(f.x2),f.y2=rk(f.y2),f.w=rk(f.x2-f.x1),f.h=rk(f.y2-f.y1),f.w>0&&f.h>0&&N&&(GTe(f,_),$Te(f,1)),f},"boundingBoxImpl"),c7r=i(function(t){var a=0,s=i(function(f){return(f?1:0)<<a++},"tf"),l=0;return l+=s(t.incudeNodes),l+=s(t.includeEdges),l+=s(t.includeLabels),l+=s(t.includeMainLabels),l+=s(t.includeSourceLabels),l+=s(t.includeTargetLabels),l+=s(t.includeOverlays),l+=s(t.includeOutlines),l},"getKey"),u7r=i(function(t){var a=i(function(d){return Math.round(d)},"r");if(t.isEdge()){var s=t.source().position(),l=t.target().position();return i6r([a(s.x),a(s.y),a(l.x),a(l.y)])}else{var h=t.position();return i6r([a(h.x),a(h.y)])}},"getBoundingBoxPosKey"),SAr=i(function(t,a){var s=t._private,l,h=t.isEdge(),f=a==null?AAr:c7r(a),d=f===AAr;if(s.bbCache==null?(l=FJn(t,nie),s.bbCache=l,s.bbCachePosKey=u7r(t)):l=s.bbCache,!d){var m=t.isNode();l=Ob(),(a.includeNodes&&m||a.includeEdges&&!m)&&(a.includeOverlays?H_(l,s.overlayBounds):H_(l,s.bodyBounds)),a.includeLabels&&(a.includeMainLabels&&(!h||a.includeSourceLabels&&a.includeTargetLabels)?H_(l,s.labelBounds.all):(a.includeMainLabels&&H_(l,s.labelBounds.mainRot),a.includeSourceLabels&&H_(l,s.labelBounds.sourceRot),a.includeTargetLabels&&H_(l,s.labelBounds.targetRot))),l.w=l.x2-l.x1,l.h=l.y2-l.y1}return l},"cachedBoundingBoxImpl"),nie={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},AAr=c7r(nie),RAr=m1(nie);sD.boundingBox=function(r){var t,a=r===void 0||r.useCache===void 0||r.useCache===!0,s=hV(function(v){var T=v._private;return T.bbCache==null||T.styleDirty||T.bbCachePosKey!==u7r(v)},function(v){return v.id()});if(a&&this.length===1&&!s(this[0]))r===void 0?r=nie:r=RAr(r),t=SAr(this[0],r);else{t=Ob(),r=r||nie;var l=RAr(r),h=this,f=h.cy(),d=f.styleEnabled();this.edges().forEach(s),this.nodes().forEach(s),d&&this.recalculateRenderedStyle(a),this.updateCompoundBounds(!a);for(var m=0;m<h.length;m++){var b=h[m];s(b)&&b.dirtyBoundingBoxCache(),H_(t,SAr(b,l))}}return t.x1=rk(t.x1),t.y1=rk(t.y1),t.x2=rk(t.x2),t.y2=rk(t.y2),t.w=rk(t.x2-t.x1),t.h=rk(t.y2-t.y1),t};sD.dirtyBoundingBoxCache=function(){for(var r=0;r<this.length;r++){var t=this[r]._private;t.bbCache=null,t.bbCachePosKey=null,t.bodyBounds=null,t.overlayBounds=null,t.labelBounds.all=null,t.labelBounds.source=null,t.labelBounds.target=null,t.labelBounds.main=null,t.labelBounds.sourceRot=null,t.labelBounds.targetRot=null,t.labelBounds.mainRot=null,t.arrowBounds.source=null,t.arrowBounds.target=null,t.arrowBounds["mid-source"]=null,t.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this};sD.boundingBoxAt=function(r){var t=this.nodes(),a=this.cy(),s=a.hasCompoundNodes(),l=a.collection();if(s&&(l=t.filter(function(b){return b.isParent()}),t=t.not(l)),Wc(r)){var h=r;r=i(function(){return h},"fn")}var f=i(function(v,T){return v._private.bbAtOldPos=r(v,T)},"storeOldPos"),d=i(function(v){return v._private.bbAtOldPos},"getOldPos");a.startBatch(),t.forEach(f).silentPositions(r),s&&(l.dirtyCompoundBoundsCache(),l.dirtyBoundingBoxCache(),l.updateCompoundBounds(!0));var m=yXn(this.boundingBox({useCache:!1}));return t.silentPositions(d),s&&(l.dirtyCompoundBoundsCache(),l.dirtyBoundingBoxCache(),l.updateCompoundBounds(!0)),a.endBatch(),m};uV.boundingbox=uV.bb=uV.boundingBox;uV.renderedBoundingbox=uV.renderedBoundingBox;$Jn=sD;Hne=pie={};h7r=i(function(t){t.uppercaseName=U5r(t.name),t.autoName="auto"+t.uppercaseName,t.labelName="label"+t.uppercaseName,t.outerName="outer"+t.uppercaseName,t.uppercaseOuterName=U5r(t.outerName),Hne[t.name]=i(function(){var s=this[0],l=s._private,h=l.cy,f=h._private.styleEnabled;if(s)if(f){if(s.isParent())return s.updateCompoundBounds(),l[t.autoName]||0;var d=s.pstyle(t.name);return d.strValue==="label"?(s.recalculateRenderedStyle(),l.rstyle[t.labelName]||0):d.pfValue}else return 1},"dimImpl"),Hne["outer"+t.uppercaseName]=i(function(){var s=this[0],l=s._private,h=l.cy,f=h._private.styleEnabled;if(s)if(f){var d=s[t.name](),m=s.pstyle("border-position").value,b;m==="center"?b=s.pstyle("border-width").pfValue:m==="outside"?b=2*s.pstyle("border-width").pfValue:b=0;var v=2*s.padding();return d+b+v}else return 1},"outerDimImpl"),Hne["rendered"+t.uppercaseName]=i(function(){var s=this[0];if(s){var l=s[t.name]();return l*this.cy().zoom()}},"renderedDimImpl"),Hne["rendered"+t.uppercaseOuterName]=i(function(){var s=this[0];if(s){var l=s[t.outerName]();return l*this.cy().zoom()}},"renderedOuterDimImpl")},"defineDimFns");h7r({name:"width"});h7r({name:"height"});pie.padding=function(){var r=this[0],t=r._private;return r.isParent()?(r.updateCompoundBounds(),t.autoPadding!==void 0?t.autoPadding:r.pstyle("padding").pfValue):r.pstyle("padding").pfValue};pie.paddedHeight=function(){var r=this[0];return r.height()+2*r.padding()};pie.paddedWidth=function(){var r=this[0];return r.width()+2*r.padding()};GJn=pie,jJn=i(function(t,a){if(t.isEdge()&&t.takesUpSpace())return a(t)},"ifEdge"),zJn=i(function(t,a){if(t.isEdge()&&t.takesUpSpace()){var s=t.cy();return fke(a(t),s.zoom(),s.pan())}},"ifEdgeRenderedPosition"),UJn=i(function(t,a){if(t.isEdge()&&t.takesUpSpace()){var s=t.cy(),l=s.pan(),h=s.zoom();return a(t).map(function(f){return fke(f,h,l)})}},"ifEdgeRenderedPositions"),VJn=i(function(t){return t.renderer().getControlPoints(t)},"controlPoints"),WJn=i(function(t){return t.renderer().getSegmentPoints(t)},"segmentPoints"),HJn=i(function(t){return t.renderer().getSourceEndpoint(t)},"sourceEndpoint"),qJn=i(function(t){return t.renderer().getTargetEndpoint(t)},"targetEndpoint"),YJn=i(function(t){return t.renderer().getEdgeMidpoint(t)},"midpoint"),LAr={controlPoints:{get:VJn,mult:!0},segmentPoints:{get:WJn,mult:!0},sourceEndpoint:{get:HJn},targetEndpoint:{get:qJn},midpoint:{get:YJn}},XJn=i(function(t){return"rendered"+t[0].toUpperCase()+t.substr(1)},"renderedName"),KJn=Object.keys(LAr).reduce(function(r,t){var a=LAr[t],s=XJn(t);return r[t]=function(){return jJn(this,a.get)},a.mult?r[s]=function(){return UJn(this,a.get)}:r[s]=function(){return zJn(this,a.get)},r},{}),JJn=ao({},OJn,$Jn,GJn,KJn);f7r=i(function(t,a){this.recycle(t,a)},"Event");i(Gne,"returnFalse");i(ITe,"returnTrue");f7r.prototype={instanceString:i(function(){return"event"},"instanceString"),recycle:i(function(t,a){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Gne,t!=null&&t.preventDefault?(this.type=t.type,this.isDefaultPrevented=t.defaultPrevented?ITe:Gne):t!=null&&t.type?a=t:this.type=t,a!=null&&(this.originalEvent=a.originalEvent,this.type=a.type!=null?a.type:this.type,this.cy=a.cy,this.target=a.target,this.position=a.position,this.renderedPosition=a.renderedPosition,this.namespace=a.namespace,this.layout=a.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var s=this.position,l=this.cy.zoom(),h=this.cy.pan();this.renderedPosition={x:s.x*l+h.x,y:s.y*l+h.y}}this.timeStamp=t&&t.timeStamp||Date.now()},"recycle"),preventDefault:i(function(){this.isDefaultPrevented=ITe;var t=this.originalEvent;t&&t.preventDefault&&t.preventDefault()},"preventDefault"),stopPropagation:i(function(){this.isPropagationStopped=ITe;var t=this.originalEvent;t&&t.stopPropagation&&t.stopPropagation()},"stopPropagation"),stopImmediatePropagation:i(function(){this.isImmediatePropagationStopped=ITe,this.stopPropagation()},"stopImmediatePropagation"),isDefaultPrevented:Gne,isPropagationStopped:Gne,isImmediatePropagationStopped:Gne};d7r=/^([^.]+)(\.(?:[^.]+))?$/,QJn=".*",p7r={qualifierCompare:i(function(t,a){return t===a},"qualifierCompare"),eventMatches:i(function(){return!0},"eventMatches"),addEventFields:i(function(){},"addEventFields"),callbackContext:i(function(t){return t},"callbackContext"),beforeEmit:i(function(){},"beforeEmit"),afterEmit:i(function(){},"afterEmit"),bubble:i(function(){return!1},"bubble"),parent:i(function(){return null},"parent"),context:null},_Ar=Object.keys(p7r),ZJn={};i(vke,"Emitter");nD=vke.prototype,g7r=i(function(t,a,s,l,h,f,d){Bd(l)&&(h=l,l=null),d&&(f==null?f=d:f=ao({},f,d));for(var m=zh(s)?s:s.split(/\s+/),b=0;b<m.length;b++){var v=m[b];if(!Q_(v)){var T=v.match(d7r);if(T){var C=T[1],E=T[2]?T[2]:null,S=a(t,v,C,E,l,h,f);if(S===!1)break}}}},"forEachEvent"),DAr=i(function(t,a){return t.addEventFields(t.context,a),new f7r(a.type,a)},"makeEventObj"),eQn=i(function(t,a,s){if(aYn(s)){a(t,s);return}else if(Wc(s)){a(t,DAr(t,s));return}for(var l=zh(s)?s:s.split(/\s+/),h=0;h<l.length;h++){var f=l[h];if(!Q_(f)){var d=f.match(d7r);if(d){var m=d[1],b=d[2]?d[2]:null,v=DAr(t,{type:m,namespace:b,target:t.context});a(t,v)}}}},"forEachEventObj");nD.on=nD.addListener=function(r,t,a,s,l){return g7r(this,function(h,f,d,m,b,v,T){Bd(v)&&h.listeners.push({event:f,callback:v,type:d,namespace:m,qualifier:b,conf:T})},r,t,a,s,l),this};nD.one=function(r,t,a,s){return this.on(r,t,a,s,{one:!0})};nD.removeListener=nD.off=function(r,t,a,s){var l=this;this.emitting!==0&&(this.listeners=jYn(this.listeners));for(var h=this.listeners,f=i(function(b){var v=h[b];g7r(l,function(T,C,E,S,R,L){if((v.type===E||r==="*")&&(!S&&v.namespace!==".*"||v.namespace===S)&&(!R||T.qualifierCompare(v.qualifier,R))&&(!L||v.callback===L))return h.splice(b,1),!1},r,t,a,s)},"_loop"),d=h.length-1;d>=0;d--)f(d);return this};nD.removeAllListeners=function(){return this.removeListener("*")};nD.emit=nD.trigger=function(r,t,a){var s=this.listeners,l=s.length;return this.emitting++,zh(t)||(t=[t]),eQn(this,function(h,f){a!=null&&(s=[{event:f.event,type:f.type,namespace:f.namespace,callback:a}],l=s.length);for(var d=i(function(){var v=s[m];if(v.type===f.type&&(!v.namespace||v.namespace===f.namespace||v.namespace===QJn)&&h.eventMatches(h.context,v,f)){var T=[f];t!=null&&UYn(T,t),h.beforeEmit(h.context,v,f),v.conf&&v.conf.one&&(h.listeners=h.listeners.filter(function(S){return S!==v}));var C=h.callbackContext(h.context,v,f),E=v.callback.apply(C,T);h.afterEmit(h.context,v,f),E===!1&&(f.stopPropagation(),f.preventDefault())}},"_loop2"),m=0;m<l;m++)d();h.bubble(h.context)&&!f.isPropagationStopped()&&h.parent(h.context).emit(f,t)},r),this.emitting--,this};tQn={qualifierCompare:i(function(t,a){return t==null||a==null?t==null&&a==null:t.sameText(a)},"qualifierCompare"),eventMatches:i(function(t,a,s){var l=a.qualifier;return l!=null?t!==s.target&&lie(s.target)&&l.matches(s.target):!0},"eventMatches"),addEventFields:i(function(t,a){a.cy=t.cy(),a.target=t},"addEventFields"),callbackContext:i(function(t,a,s){return a.qualifier!=null?s.target:t},"callbackContext"),beforeEmit:i(function(t,a){a.conf&&a.conf.once&&a.conf.onceCollection.removeListener(a.event,a.qualifier,a.callback)},"beforeEmit"),bubble:i(function(){return!0},"bubble"),parent:i(function(t){return t.isChild()?t.parent():t.cy()},"parent")},MTe=i(function(t){return Ps(t)?new tD(t):t},"argSelector"),m7r={createEmitter:i(function(){for(var t=0;t<this.length;t++){var a=this[t],s=a._private;s.emitter||(s.emitter=new vke(tQn,a))}return this},"createEmitter"),emitter:i(function(){return this._private.emitter},"emitter"),on:i(function(t,a,s){for(var l=MTe(a),h=0;h<this.length;h++){var f=this[h];f.emitter().on(t,l,s)}return this},"on"),removeListener:i(function(t,a,s){for(var l=MTe(a),h=0;h<this.length;h++){var f=this[h];f.emitter().removeListener(t,l,s)}return this},"removeListener"),removeAllListeners:i(function(){for(var t=0;t<this.length;t++){var a=this[t];a.emitter().removeAllListeners()}return this},"removeAllListeners"),one:i(function(t,a,s){for(var l=MTe(a),h=0;h<this.length;h++){var f=this[h];f.emitter().one(t,l,s)}return this},"one"),once:i(function(t,a,s){for(var l=MTe(a),h=0;h<this.length;h++){var f=this[h];f.emitter().on(t,l,s,{once:!0,onceCollection:this})}},"once"),emit:i(function(t,a){for(var s=0;s<this.length;s++){var l=this[s];l.emitter().emit(t,a)}return this},"emit"),emitAndNotify:i(function(t,a){if(this.length!==0)return this.cy().notify(t,this),this.emit(t,a),this},"emitAndNotify")};zu.eventAliasesOn(m7r);y7r={nodes:i(function(t){return this.filter(function(a){return a.isNode()}).filter(t)},"nodes"),edges:i(function(t){return this.filter(function(a){return a.isEdge()}).filter(t)},"edges"),byGroup:i(function(){for(var t=this.spawn(),a=this.spawn(),s=0;s<this.length;s++){var l=this[s];l.isNode()?t.push(l):a.push(l)}return{nodes:t,edges:a}},"byGroup"),filter:i(function(t,a){if(t===void 0)return this;if(Ps(t)||sx(t))return new tD(t).filter(this);if(Bd(t)){for(var s=this.spawn(),l=this,h=0;h<l.length;h++){var f=l[h],d=a?t.apply(a,[f,h,l]):t(f,h,l);d&&s.push(f)}return s}return this.spawn()},"filter"),not:i(function(t){if(t){Ps(t)&&(t=this.filter(t));for(var a=this.spawn(),s=0;s<this.length;s++){var l=this[s],h=t.has(l);h||a.push(l)}return a}else return this},"not"),absoluteComplement:i(function(){var t=this.cy();return t.mutableElements().not(this)},"absoluteComplement"),intersect:i(function(t){if(Ps(t)){var a=t;return this.filter(a)}for(var s=this.spawn(),l=this,h=t,f=this.length<t.length,d=f?l:h,m=f?h:l,b=0;b<d.length;b++){var v=d[b];m.has(v)&&s.push(v)}return s},"intersect"),xor:i(function(t){var a=this._private.cy;Ps(t)&&(t=a.$(t));var s=this.spawn(),l=this,h=t,f=i(function(m,b){for(var v=0;v<m.length;v++){var T=m[v],C=T._private.data.id,E=b.hasElementWithId(C);E||s.push(T)}},"add");return f(l,h),f(h,l),s},"xor"),diff:i(function(t){var a=this._private.cy;Ps(t)&&(t=a.$(t));var s=this.spawn(),l=this.spawn(),h=this.spawn(),f=this,d=t,m=i(function(v,T,C){for(var E=0;E<v.length;E++){var S=v[E],R=S._private.data.id,L=T.hasElementWithId(R);L?h.merge(S):C.push(S)}},"add");return m(f,d,s),m(d,f,l),{left:s,right:l,both:h}},"diff"),add:i(function(t){var a=this._private.cy;if(!t)return this;if(Ps(t)){var s=t;t=a.mutableElements().filter(s)}for(var l=this.spawnSelf(),h=0;h<t.length;h++){var f=t[h],d=!this.has(f);d&&l.push(f)}return l},"add"),merge:i(function(t){var a=this._private,s=a.cy;if(!t)return this;if(t&&Ps(t)){var l=t;t=s.mutableElements().filter(l)}for(var h=a.map,f=0;f<t.length;f++){var d=t[f],m=d._private.data.id,b=!h.has(m);if(b){var v=this.length++;this[v]=d,h.set(m,{ele:d,index:v})}}return this},"merge"),unmergeAt:i(function(t){var a=this[t],s=a.id(),l=this._private,h=l.map;this[t]=void 0,h.delete(s);var f=t===this.length-1;if(this.length>1&&!f){var d=this.length-1,m=this[d],b=m._private.data.id;this[d]=void 0,this[t]=m,h.set(b,{ele:m,index:t})}return this.length--,this},"unmergeAt"),unmergeOne:i(function(t){t=t[0];var a=this._private,s=t._private.data.id,l=a.map,h=l.get(s);if(!h)return this;var f=h.index;return this.unmergeAt(f),this},"unmergeOne"),unmerge:i(function(t){var a=this._private.cy;if(!t)return this;if(t&&Ps(t)){var s=t;t=a.mutableElements().filter(s)}for(var l=0;l<t.length;l++)this.unmergeOne(t[l]);return this},"unmerge"),unmergeBy:i(function(t){for(var a=this.length-1;a>=0;a--){var s=this[a];t(s)&&this.unmergeAt(a)}return this},"unmergeBy"),map:i(function(t,a){for(var s=[],l=this,h=0;h<l.length;h++){var f=l[h],d=a?t.apply(a,[f,h,l]):t(f,h,l);s.push(d)}return s},"map"),reduce:i(function(t,a){for(var s=a,l=this,h=0;h<l.length;h++)s=t(s,l[h],h,l);return s},"reduce"),max:i(function(t,a){for(var s=-1/0,l,h=this,f=0;f<h.length;f++){var d=h[f],m=a?t.apply(a,[d,f,h]):t(d,f,h);m>s&&(s=m,l=d)}return{value:s,ele:l}},"max"),min:i(function(t,a){for(var s=1/0,l,h=this,f=0;f<h.length;f++){var d=h[f],m=a?t.apply(a,[d,f,h]):t(d,f,h);m<s&&(s=m,l=d)}return{value:s,ele:l}},"min")},cu=y7r;cu.u=cu["|"]=cu["+"]=cu.union=cu.or=cu.add;cu["\\"]=cu["!"]=cu["-"]=cu.difference=cu.relativeComplement=cu.subtract=cu.not;cu.n=cu["&"]=cu["."]=cu.and=cu.intersection=cu.intersect;cu["^"]=cu["(+)"]=cu["(-)"]=cu.symmetricDifference=cu.symdiff=cu.xor;cu.fnFilter=cu.filterFn=cu.stdFilter=cu.filter;cu.complement=cu.abscomp=cu.absoluteComplement;rQn={isNode:i(function(){return this.group()==="nodes"},"isNode"),isEdge:i(function(){return this.group()==="edges"},"isEdge"),isLoop:i(function(){return this.isEdge()&&this.source()[0]===this.target()[0]},"isLoop"),isSimple:i(function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},"isSimple"),group:i(function(){var t=this[0];if(t)return t._private.group},"group")},b7r=i(function(t,a){var s=t.cy(),l=s.hasCompoundNodes();function h(v){var T=v.pstyle("z-compound-depth");return T.value==="auto"?l?v.zDepth():0:T.value==="bottom"?-1:T.value==="top"?Gnt:0}i(h,"getDepth");var f=h(t)-h(a);if(f!==0)return f;function d(v){var T=v.pstyle("z-index-compare");return T.value==="auto"&&v.isNode()?1:0}i(d,"getEleDepth");var m=d(t)-d(a);if(m!==0)return m;var b=t.pstyle("z-index").value-a.pstyle("z-index").value;return b!==0?b:t.poolIndex()-a.poolIndex()},"zIndexSort"),rke={forEach:i(function(t,a){if(Bd(t))for(var s=this.length,l=0;l<s;l++){var h=this[l],f=a?t.apply(a,[h,l,this]):t(h,l,this);if(f===!1)break}return this},"forEach"),toArray:i(function(){for(var t=[],a=0;a<this.length;a++)t.push(this[a]);return t},"toArray"),slice:i(function(t,a){var s=[],l=this.length;a==null&&(a=l),t==null&&(t=0),t<0&&(t=l+t),a<0&&(a=l+a);for(var h=t;h>=0&&h<a&&h<l;h++)s.push(this[h]);return this.spawn(s)},"slice"),size:i(function(){return this.length},"size"),eq:i(function(t){return this[t]||this.spawn()},"eq"),first:i(function(){return this[0]||this.spawn()},"first"),last:i(function(){return this[this.length-1]||this.spawn()},"last"),empty:i(function(){return this.length===0},"empty"),nonempty:i(function(){return!this.empty()},"nonempty"),sort:i(function(t){if(!Bd(t))return this;var a=this.toArray().sort(t);return this.spawn(a)},"sort"),sortByZIndex:i(function(){return this.sort(b7r)},"sortByZIndex"),zDepth:i(function(){var t=this[0];if(t){var a=t._private,s=a.group;if(s==="nodes"){var l=a.data.parent?t.parents().size():0;return t.isParent()?l:Gnt-1}else{var h=a.source,f=a.target,d=h.zDepth(),m=f.zDepth();return Math.max(d,m,0)}}},"zDepth")};rke.each=rke.forEach;nQn=i(function(){var t="undefined",a=(typeof Symbol>"u"?"undefined":D0(Symbol))!=t&&D0(Symbol.iterator)!=t;a&&(rke[Symbol.iterator]=function(){var s=this,l={value:void 0,done:!1},h=0,f=this.length;return m8r({next:i(function(){return h<f?l.value=s[h++]:(l.value=void 0,l.done=!0),l},"next")},Symbol.iterator,function(){return this})})},"defineSymbolIterator");nQn();iQn=m1({nodeDimensionsIncludeLabels:!1}),zTe={layoutDimensions:i(function(t){t=iQn(t);var a;if(!this.takesUpSpace())a={w:0,h:0};else if(t.nodeDimensionsIncludeLabels){var s=this.boundingBox();a={w:s.w,h:s.h}}else a={w:this.outerWidth(),h:this.outerHeight()};return(a.w===0||a.h===0)&&(a.w=a.h=1),a},"layoutDimensions"),layoutPositions:i(function(t,a,s){var l=this.nodes().filter(function(O){return!O.isParent()}),h=this.cy(),f=a.eles,d=i(function(P){return P.id()},"getMemoizeKey"),m=hV(s,d);t.emit({type:"layoutstart",layout:t}),t.animations=[];var b=i(function(P,$,V){var Y={x:$.x1+$.w/2,y:$.y1+$.h/2},Q={x:(V.x-Y.x)*P,y:(V.y-Y.y)*P};return{x:Y.x+Q.x,y:Y.y+Q.y}},"calculateSpacing"),v=a.spacingFactor&&a.spacingFactor!==1,T=i(function(){if(!v)return null;for(var P=Ob(),$=0;$<l.length;$++){var V=l[$],Y=m(V,$);P8r(P,Y.x,Y.y)}return P},"spacingBb"),C=T(),E=hV(function(O,P){var $=m(O,P);if(v){var V=Math.abs(a.spacingFactor);$=b(V,C,$)}return a.transform!=null&&($=a.transform(O,$)),$},d);if(a.animate){for(var S=0;S<l.length;S++){var R=l[S],L=E(R,S),_=a.animateFilter==null||a.animateFilter(R,S);if(_){var I=R.animation({position:L,duration:a.animationDuration,easing:a.animationEasing});t.animations.push(I)}else R.position(L)}if(a.fit){var N=h.animation({fit:{boundingBox:f.boundingBoxAt(E),padding:a.padding},duration:a.animationDuration,easing:a.animationEasing});t.animations.push(N)}else if(a.zoom!==void 0&&a.pan!==void 0){var B=h.animation({zoom:a.zoom,pan:a.pan,duration:a.animationDuration,easing:a.animationEasing});t.animations.push(B)}t.animations.forEach(function(O){return O.play()}),t.one("layoutready",a.ready),t.emit({type:"layoutready",layout:t}),yV.all(t.animations.map(function(O){return O.promise()})).then(function(){t.one("layoutstop",a.stop),t.emit({type:"layoutstop",layout:t})})}else l.positions(E),a.fit&&h.fit(a.eles,a.padding),a.zoom!=null&&h.zoom(a.zoom),a.pan&&h.pan(a.pan),t.one("layoutready",a.ready),t.emit({type:"layoutready",layout:t}),t.one("layoutstop",a.stop),t.emit({type:"layoutstop",layout:t});return this},"layoutPositions"),layout:i(function(t){var a=this.cy();return a.makeLayout(ao({},t,{eles:this}))},"layout")};zTe.createLayout=zTe.makeLayout=zTe.layout;i(v7r,"styleCache");i(wke,"cacheStyleFunction");i(xke,"cachePrototypeStyleFunction");p1={recalculateRenderedStyle:i(function(t){var a=this.cy(),s=a.renderer(),l=a.styleEnabled();return s&&l&&s.recalculateRenderedStyle(this,t),this},"recalculateRenderedStyle"),dirtyStyleCache:i(function(){var t=this.cy(),a=i(function(h){return h._private.styleCache=null},"dirty");if(t.hasCompoundNodes()){var s;s=this.spawnSelf().merge(this.descendants()).merge(this.parents()),s.merge(s.connectedEdges()),s.forEach(a)}else this.forEach(function(l){a(l),l.connectedEdges().forEach(a)});return this},"dirtyStyleCache"),updateStyle:i(function(t){var a=this._private.cy;if(!a.styleEnabled())return this;if(a.batching()){var s=a._private.batchStyleEles;return s.merge(this),this}var l=a.hasCompoundNodes(),h=this;t=!!(t||t===void 0),l&&(h=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var f=h;return t?f.emitAndNotify("style"):f.emit("style"),h.forEach(function(d){return d._private.styleDirty=!0}),this},"updateStyle"),cleanStyle:i(function(){var t=this.cy();if(t.styleEnabled())for(var a=0;a<this.length;a++){var s=this[a];s._private.styleDirty&&(s._private.styleDirty=!1,t.style().apply(s))}},"cleanStyle"),parsedStyle:i(function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=this[0],l=s.cy();if(l.styleEnabled()&&s){s._private.styleDirty&&(s._private.styleDirty=!1,l.style().apply(s));var h=s._private.style[t];return h??(a?l.style().getDefaultProperty(t):null)}},"parsedStyle"),numericStyle:i(function(t){var a=this[0];if(a.cy().styleEnabled()&&a){var s=a.pstyle(t);return s.pfValue!==void 0?s.pfValue:s.value}},"numericStyle"),numericStyleUnits:i(function(t){var a=this[0];if(a.cy().styleEnabled()&&a)return a.pstyle(t).units},"numericStyleUnits"),renderedStyle:i(function(t){var a=this.cy();if(!a.styleEnabled())return this;var s=this[0];if(s)return a.style().getRenderedStyle(s,t)},"renderedStyle"),style:i(function(t,a){var s=this.cy();if(!s.styleEnabled())return this;var l=!1,h=s.style();if(Wc(t)){var f=t;h.applyBypass(this,f,l),this.emitAndNotify("style")}else if(Ps(t))if(a===void 0){var d=this[0];return d?h.getStylePropertyValue(d,t):void 0}else h.applyBypass(this,t,a,l),this.emitAndNotify("style");else if(t===void 0){var m=this[0];return m?h.getRawStyle(m):void 0}return this},"style"),removeStyle:i(function(t){var a=this.cy();if(!a.styleEnabled())return this;var s=!1,l=a.style(),h=this;if(t===void 0)for(var f=0;f<h.length;f++){var d=h[f];l.removeAllBypasses(d,s)}else{t=t.split(/\s+/);for(var m=0;m<h.length;m++){var b=h[m];l.removeBypasses(b,t,s)}}return this.emitAndNotify("style"),this},"removeStyle"),show:i(function(){return this.css("display","element"),this},"show"),hide:i(function(){return this.css("display","none"),this},"hide"),effectiveOpacity:i(function(){var t=this.cy();if(!t.styleEnabled())return 1;var a=t.hasCompoundNodes(),s=this[0];if(s){var l=s._private,h=s.pstyle("opacity").value;if(!a)return h;var f=l.data.parent?s.parents():null;if(f)for(var d=0;d<f.length;d++){var m=f[d],b=m.pstyle("opacity").value;h=b*h}return h}},"effectiveOpacity"),transparent:i(function(){var t=this.cy();if(!t.styleEnabled())return!1;var a=this[0],s=a.cy().hasCompoundNodes();if(a)return s?a.effectiveOpacity()===0:a.pstyle("opacity").value===0},"transparent"),backgrounding:i(function(){var t=this.cy();if(!t.styleEnabled())return!1;var a=this[0];return!!a._private.backgrounding},"backgrounding")};i(snt,"checkCompound");i(Qnt,"defineDerivedStateFunction");bV=wke("eleTakesUpSpace",function(r){return r.pstyle("display").value==="element"&&r.width()!==0&&(r.isNode()?r.height()!==0:!0)});p1.takesUpSpace=xke("takesUpSpace",Qnt({ok:bV}));aQn=wke("eleInteractive",function(r){return r.pstyle("events").value==="yes"&&r.pstyle("visibility").value==="visible"&&bV(r)}),sQn=wke("parentInteractive",function(r){return r.pstyle("visibility").value==="visible"&&bV(r)});p1.interactive=xke("interactive",Qnt({ok:aQn,parentOk:sQn,edgeOkViaNode:bV}));p1.noninteractive=function(){var r=this[0];if(r)return!r.interactive()};oQn=wke("eleVisible",function(r){return r.pstyle("visibility").value==="visible"&&r.pstyle("opacity").pfValue!==0&&bV(r)}),lQn=bV;p1.visible=xke("visible",Qnt({ok:oQn,edgeOkViaNode:lQn}));p1.hidden=function(){var r=this[0];if(r)return!r.visible()};p1.isBundledBezier=xke("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1});p1.bypass=p1.css=p1.style;p1.renderedCss=p1.renderedStyle;p1.removeBypass=p1.removeCss=p1.removeStyle;p1.pstyle=p1.parsedStyle;J_={};i(IAr,"defineSwitchFunction");i(vV,"defineSwitchSet");vV({field:"locked",overrideField:i(function(t){return t.cy().autolock()?!0:void 0},"overrideField"),on:"lock",off:"unlock"});vV({field:"grabbable",overrideField:i(function(t){return t.cy().autoungrabify()||t.pannable()?!1:void 0},"overrideField"),on:"grabify",off:"ungrabify"});vV({field:"selected",ableField:"selectable",overrideAble:i(function(t){return t.cy().autounselectify()?!1:void 0},"overrideAble"),on:"select",off:"unselect"});vV({field:"selectable",overrideField:i(function(t){return t.cy().autounselectify()?!1:void 0},"overrideField"),on:"selectify",off:"unselectify"});J_.deselect=J_.unselect;J_.grabbed=function(){var r=this[0];if(r)return r._private.grabbed};vV({field:"active",on:"activate",off:"unactivate"});vV({field:"pannable",on:"panify",off:"unpanify"});J_.inactive=function(){var r=this[0];if(r)return!r._private.active};by={},MAr=i(function(t){return i(function(s){for(var l=this,h=[],f=0;f<l.length;f++){var d=l[f];if(d.isNode()){for(var m=!1,b=d.connectedEdges(),v=0;v<b.length;v++){var T=b[v],C=T.source(),E=T.target();if(t.noIncomingEdges&&E===d&&C!==d||t.noOutgoingEdges&&C===d&&E!==d){m=!0;break}}m||h.push(d)}}return this.spawn(h,!0).filter(s)},"dagExtremityImpl")},"defineDagExtremity"),NAr=i(function(t){return function(a){for(var s=this,l=[],h=0;h<s.length;h++){var f=s[h];if(f.isNode())for(var d=f.connectedEdges(),m=0;m<d.length;m++){var b=d[m],v=b.source(),T=b.target();t.outgoing&&v===f?(l.push(b),l.push(T)):t.incoming&&T===f&&(l.push(b),l.push(v))}}return this.spawn(l,!0).filter(a)}},"defineDagOneHop"),OAr=i(function(t){return function(a){for(var s=this,l=[],h={};;){var f=t.outgoing?s.outgoers():s.incomers();if(f.length===0)break;for(var d=!1,m=0;m<f.length;m++){var b=f[m],v=b.id();h[v]||(h[v]=!0,l.push(b),d=!0)}if(!d)break;s=f}return this.spawn(l,!0).filter(a)}},"defineDagAllHops");by.clearTraversalCache=function(){for(var r=0;r<this.length;r++)this[r]._private.traversalCache=null};ao(by,{roots:MAr({noIncomingEdges:!0}),leaves:MAr({noOutgoingEdges:!0}),outgoers:nk(NAr({outgoing:!0}),"outgoers"),successors:OAr({outgoing:!0}),incomers:nk(NAr({incoming:!0}),"incomers"),predecessors:OAr({})});ao(by,{neighborhood:nk(function(r){for(var t=[],a=this.nodes(),s=0;s<a.length;s++)for(var l=a[s],h=l.connectedEdges(),f=0;f<h.length;f++){var d=h[f],m=d.source(),b=d.target(),v=l===m?b:m;v.length>0&&t.push(v[0]),t.push(d[0])}return this.spawn(t,!0).filter(r)},"neighborhood"),closedNeighborhood:i(function(t){return this.neighborhood().add(this).filter(t)},"closedNeighborhood"),openNeighborhood:i(function(t){return this.neighborhood(t)},"openNeighborhood")});by.neighbourhood=by.neighborhood;by.closedNeighbourhood=by.closedNeighborhood;by.openNeighbourhood=by.openNeighborhood;ao(by,{source:nk(i(function(t){var a=this[0],s;return a&&(s=a._private.source||a.cy().collection()),s&&t?s.filter(t):s},"sourceImpl"),"source"),target:nk(i(function(t){var a=this[0],s;return a&&(s=a._private.target||a.cy().collection()),s&&t?s.filter(t):s},"targetImpl"),"target"),sources:PAr({attr:"source"}),targets:PAr({attr:"target"})});i(PAr,"defineSourceFunction");ao(by,{edgesWith:nk(BAr(),"edgesWith"),edgesTo:nk(BAr({thisIsSrc:!0}),"edgesTo")});i(BAr,"defineEdgesWithFunction");ao(by,{connectedEdges:nk(function(r){for(var t=[],a=this,s=0;s<a.length;s++){var l=a[s];if(l.isNode())for(var h=l._private.edges,f=0;f<h.length;f++){var d=h[f];t.push(d)}}return this.spawn(t,!0).filter(r)},"connectedEdges"),connectedNodes:nk(function(r){for(var t=[],a=this,s=0;s<a.length;s++){var l=a[s];l.isEdge()&&(t.push(l.source()[0]),t.push(l.target()[0]))}return this.spawn(t,!0).filter(r)},"connectedNodes"),parallelEdges:nk(FAr(),"parallelEdges"),codirectedEdges:nk(FAr({codirected:!0}),"codirectedEdges")});i(FAr,"defineParallelEdgesFunction");ao(by,{components:i(function(t){var a=this,s=a.cy(),l=s.collection(),h=t==null?a.nodes():t.nodes(),f=[];t!=null&&h.empty()&&(h=t.sources());var d=i(function(v,T){l.merge(v),h.unmerge(v),T.merge(v)},"visitInComponent");if(h.empty())return a.spawn();var m=i(function(){var v=s.collection();f.push(v);var T=h[0];d(T,v),a.bfs({directed:!1,roots:T,visit:i(function(E){return d(E,v)},"visit")}),v.forEach(function(C){C.connectedEdges().forEach(function(E){a.has(E)&&v.has(E.source())&&v.has(E.target())&&v.merge(E)})})},"_loop");do m();while(h.length>0);return f},"components"),component:i(function(){var t=this[0];return t.cy().mutableElements().components(t)[0]},"component")});by.componentsOf=by.components;g1=i(function(t,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t===void 0){td("A collection must have a reference to the core");return}var h=new JA,f=!1;if(!a)a=[];else if(a.length>0&&Wc(a[0])&&!lie(a[0])){f=!0;for(var d=[],m=new mV,b=0,v=a.length;b<v;b++){var T=a[b];T.data==null&&(T.data={});var C=T.data;if(C.id==null)C.id=M8r();else if(t.hasElementWithId(C.id)||m.has(C.id))continue;var E=new hke(t,T,!1);d.push(E),m.add(C.id)}a=d}this.length=0;for(var S=0,R=a.length;S<R;S++){var L=a[S][0];if(L!=null){var _=L._private.data.id;(!s||!h.has(_))&&(s&&h.set(_,{index:this.length,ele:L}),this[this.length]=L,this.length++)}}this._private={eles:this,cy:t,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(I){this.lazyMap=I},rebuildMap:i(function(){for(var N=this.lazyMap=new JA,B=this.eles,O=0;O<B.length;O++){var P=B[O];N.set(P.id(),{index:O,ele:P})}},"rebuildMap")},s&&(this._private.map=h),f&&!l&&this.restore()},"Collection"),of=hke.prototype=g1.prototype=Object.create(Array.prototype);of.instanceString=function(){return"collection"};of.spawn=function(r,t){return new g1(this.cy(),r,t)};of.spawnSelf=function(){return this.spawn(this)};of.cy=function(){return this._private.cy};of.renderer=function(){return this._private.cy.renderer()};of.element=function(){return this[0]};of.collection=function(){return v8r(this)?this:new g1(this._private.cy,[this])};of.unique=function(){return new g1(this._private.cy,this,!0)};of.hasElementWithId=function(r){return r=""+r,this._private.map.has(r)};of.getElementById=function(r){r=""+r;var t=this._private.cy,a=this._private.map.get(r);return a?a.ele:new g1(t)};of.$id=of.getElementById;of.poolIndex=function(){var r=this._private.cy,t=r._private.elements,a=this[0]._private.data.id;return t._private.map.get(a).index};of.indexOf=function(r){var t=r[0]._private.data.id;return this._private.map.get(t).index};of.indexOfId=function(r){return r=""+r,this._private.map.get(r).index};of.json=function(r){var t=this.element(),a=this.cy();if(t==null&&r)return this;if(t!=null){var s=t._private;if(Wc(r)){if(a.startBatch(),r.data){t.data(r.data);var l=s.data;if(t.isEdge()){var h=!1,f={},d=r.data.source,m=r.data.target;d!=null&&d!=l.source&&(f.source=""+d,h=!0),m!=null&&m!=l.target&&(f.target=""+m,h=!0),h&&(t=t.move(f))}else{var b="parent"in r.data,v=r.data.parent;b&&(v!=null||l.parent!=null)&&v!=l.parent&&(v===void 0&&(v=null),v!=null&&(v=""+v),t=t.move({parent:v}))}}r.position&&t.position(r.position);var T=i(function(R,L,_){var I=r[R];I!=null&&I!==s[R]&&(I?t[L]():t[_]())},"checkSwitch");return T("removed","remove","restore"),T("selected","select","unselect"),T("selectable","selectify","unselectify"),T("locked","lock","unlock"),T("grabbable","grabify","ungrabify"),T("pannable","panify","unpanify"),r.classes!=null&&t.classes(r.classes),a.endBatch(),this}else if(r===void 0){var C={data:IS(s.data),position:IS(s.position),group:s.group,removed:s.removed,selected:s.selected,selectable:s.selectable,locked:s.locked,grabbable:s.grabbable,pannable:s.pannable,classes:null};C.classes="";var E=0;return s.classes.forEach(function(S){return C.classes+=E++===0?S:" "+S}),C}}};of.jsons=function(){for(var r=[],t=0;t<this.length;t++){var a=this[t],s=a.json();r.push(s)}return r};of.clone=function(){for(var r=this.cy(),t=[],a=0;a<this.length;a++){var s=this[a],l=s.json(),h=new hke(r,l,!1);t.push(h)}return new g1(r,t)};of.copy=of.clone;of.restore=function(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=this,s=a.cy(),l=s._private,h=[],f=[],d,m=0,b=a.length;m<b;m++){var v=a[m];t&&!v.removed()||(v.isNode()?h.push(v):f.push(v))}d=h.concat(f);var T,C=i(function(){d.splice(T,1),T--},"removeFromElements");for(T=0;T<d.length;T++){var E=d[T],S=E._private,R=S.data;if(E.clearTraversalCache(),!(!t&&!S.removed)){if(R.id===void 0)R.id=M8r();else if(ua(R.id))R.id=""+R.id;else if(Q_(R.id)||!Ps(R.id)){td("Can not create element with invalid string ID `"+R.id+"`"),C();continue}else if(s.hasElementWithId(R.id)){td("Can not create second element with ID `"+R.id+"`"),C();continue}}var L=R.id;if(E.isNode()){var _=S.position;_.x==null&&(_.x=0),_.y==null&&(_.y=0)}if(E.isEdge()){for(var I=E,N=["source","target"],B=N.length,O=!1,P=0;P<B;P++){var $=N[P],V=R[$];ua(V)&&(V=R[$]=""+R[$]),V==null||V===""?(td("Can not create edge `"+L+"` with unspecified "+$),O=!0):s.hasElementWithId(V)||(td("Can not create edge `"+L+"` with nonexistent "+$+" `"+V+"`"),O=!0)}if(O){C();continue}var Y=s.getElementById(R.source),Q=s.getElementById(R.target);Y.same(Q)?Y._private.edges.push(I):(Y._private.edges.push(I),Q._private.edges.push(I)),I._private.source=Y,I._private.target=Q}S.map=new JA,S.map.set(L,{ele:E,index:0}),S.removed=!1,t&&s.addToPool(E)}for(var q=0;q<h.length;q++){var W=h[q],H=W._private.data;ua(H.parent)&&(H.parent=""+H.parent);var re=H.parent,Z=re!=null;if(Z||W._private.parent){var X=W._private.parent?s.collection().merge(W._private.parent):s.getElementById(re);if(X.empty())H.parent=void 0;else if(X[0].removed())Uu("Node added with missing parent, reference to parent removed"),H.parent=void 0,W._private.parent=null;else{for(var te=!1,U=X;!U.empty();){if(W.same(U)){te=!0,H.parent=void 0;break}U=U.parent()}te||(X[0]._private.children.push(W),W._private.parent=X[0],l.hasCompoundNodes=!0)}}}if(d.length>0){for(var ne=d.length===a.length?a:new g1(s,d),se=0;se<ne.length;se++){var he=ne[se];he.isNode()||(he.parallelEdges().clearTraversalCache(),he.source().clearTraversalCache(),he.target().clearTraversalCache())}var le;l.hasCompoundNodes?le=s.collection().merge(ne).merge(ne.connectedNodes()).merge(ne.parent()):le=ne,le.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(r),r?ne.emitAndNotify("add"):t&&ne.emit("add")}return a};of.removed=function(){var r=this[0];return r&&r._private.removed};of.inside=function(){var r=this[0];return r&&!r._private.removed};of.remove=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=this,s=[],l={},h=a._private.cy;function f(re){for(var Z=re._private.edges,X=0;X<Z.length;X++)m(Z[X])}i(f,"addConnectedEdges");function d(re){for(var Z=re._private.children,X=0;X<Z.length;X++)m(Z[X])}i(d,"addChildren");function m(re){var Z=l[re.id()];t&&re.removed()||Z||(l[re.id()]=!0,re.isNode()?(s.push(re),f(re),d(re)):s.unshift(re))}i(m,"add");for(var b=0,v=a.length;b<v;b++){var T=a[b];m(T)}function C(re,Z){var X=re._private.edges;Z_(X,Z),re.clearTraversalCache()}i(C,"removeEdgeRef");function E(re){re.clearTraversalCache()}i(E,"removeParallelRef");var S=[];S.ids={};function R(re,Z){Z=Z[0],re=re[0];var X=re._private.children,te=re.id();Z_(X,Z),Z._private.parent=null,S.ids[te]||(S.ids[te]=!0,S.push(re))}i(R,"removeChildRef"),a.dirtyCompoundBoundsCache(),t&&h.removeFromPool(s);for(var L=0;L<s.length;L++){var _=s[L];if(_.isEdge()){var I=_.source()[0],N=_.target()[0];C(I,_),C(N,_);for(var B=_.parallelEdges(),O=0;O<B.length;O++){var P=B[O];E(P),P.isBundledBezier()&&P.dirtyBoundingBoxCache()}}else{var $=_.parent();$.length!==0&&R($,_)}t&&(_._private.removed=!0)}var V=h._private.elements;h._private.hasCompoundNodes=!1;for(var Y=0;Y<V.length;Y++){var Q=V[Y];if(Q.isParent()){h._private.hasCompoundNodes=!0;break}}var q=new g1(this.cy(),s);q.size()>0&&(r?q.emitAndNotify("remove"):t&&q.emit("remove"));for(var W=0;W<S.length;W++){var H=S[W];(!t||!H.removed())&&H.updateStyle()}return q};of.move=function(r){var t=this._private.cy,a=this,s=!1,l=!1,h=i(function(S){return S==null?S:""+S},"toString");if(r.source!==void 0||r.target!==void 0){var f=h(r.source),d=h(r.target),m=f!=null&&t.hasElementWithId(f),b=d!=null&&t.hasElementWithId(d);(m||b)&&(t.batch(function(){a.remove(s,l),a.emitAndNotify("moveout");for(var E=0;E<a.length;E++){var S=a[E],R=S._private.data;S.isEdge()&&(m&&(R.source=f),b&&(R.target=d))}a.restore(s,l)}),a.emitAndNotify("move"))}else if(r.parent!==void 0){var v=h(r.parent),T=v===null||t.hasElementWithId(v);if(T){var C=v===null?void 0:v;t.batch(function(){var E=a.remove(s,l);E.emitAndNotify("moveout");for(var S=0;S<a.length;S++){var R=a[S],L=R._private.data;R.isNode()&&(L.parent=C)}E.restore(s,l)}),a.emitAndNotify("move")}}return this};[W8r,bJn,jTe,K_,dV,NJn,bke,JJn,m7r,y7r,rQn,rke,zTe,p1,J_,by].forEach(function(r){ao(of,r)});cQn={add:i(function(t){var a,s=this;if(sx(t)){var l=t;if(l._private.cy===s)a=l.restore();else{for(var h=[],f=0;f<l.length;f++){var d=l[f];h.push(d.json())}a=new g1(s,h)}}else if(zh(t)){var m=t;a=new g1(s,m)}else if(Wc(t)&&(zh(t.nodes)||zh(t.edges))){for(var b=t,v=[],T=["nodes","edges"],C=0,E=T.length;C<E;C++){var S=T[C],R=b[S];if(zh(R))for(var L=0,_=R.length;L<_;L++){var I=ao({group:S},R[L]);v.push(I)}}a=new g1(s,v)}else{var N=t;a=new hke(s,N).collection()}return a},"add"),remove:i(function(t){if(!sx(t)){if(Ps(t)){var a=t;t=this.$(a)}}return t.remove()},"remove")};i(uQn,"generateCubicBezier");hQn=(function(){function r(s){return-s.tension*s.x-s.friction*s.v}i(r,"springAccelerationForState");function t(s,l,h){var f={x:s.x+h.dx*l,v:s.v+h.dv*l,tension:s.tension,friction:s.friction};return{dx:f.v,dv:r(f)}}i(t,"springEvaluateStateWithDerivative");function a(s,l){var h={dx:s.v,dv:r(s)},f=t(s,l*.5,h),d=t(s,l*.5,f),m=t(s,l,d),b=1/6*(h.dx+2*(f.dx+d.dx)+m.dx),v=1/6*(h.dv+2*(f.dv+d.dv)+m.dv);return s.x=s.x+b*l,s.v=s.v+v*l,s}return i(a,"springIntegrateState"),i(function s(l,h,f){var d={x:-1,v:0,tension:null,friction:null},m=[0],b=0,v=1/1e4,T=16/1e3,C,E,S;for(l=parseFloat(l)||500,h=parseFloat(h)||20,f=f||null,d.tension=l,d.friction=h,C=f!==null,C?(b=s(l,h),E=b/f*T):E=T;S=a(S||d,E),m.push(1+S.x),b+=16,Math.abs(S.x)>v&&Math.abs(S.v)>v;);return C?function(R){return m[R*(m.length-1)|0]}:b},"springRK4Factory")})(),sf=i(function(t,a,s,l){var h=uQn(t,a,s,l);return function(f,d,m){return f+(d-f)*h(m)}},"cubicBezier"),UTe={linear:i(function(t,a,s){return t+(a-t)*s},"linear"),ease:sf(.25,.1,.25,1),"ease-in":sf(.42,0,1,1),"ease-out":sf(0,0,.58,1),"ease-in-out":sf(.42,0,.58,1),"ease-in-sine":sf(.47,0,.745,.715),"ease-out-sine":sf(.39,.575,.565,1),"ease-in-out-sine":sf(.445,.05,.55,.95),"ease-in-quad":sf(.55,.085,.68,.53),"ease-out-quad":sf(.25,.46,.45,.94),"ease-in-out-quad":sf(.455,.03,.515,.955),"ease-in-cubic":sf(.55,.055,.675,.19),"ease-out-cubic":sf(.215,.61,.355,1),"ease-in-out-cubic":sf(.645,.045,.355,1),"ease-in-quart":sf(.895,.03,.685,.22),"ease-out-quart":sf(.165,.84,.44,1),"ease-in-out-quart":sf(.77,0,.175,1),"ease-in-quint":sf(.755,.05,.855,.06),"ease-out-quint":sf(.23,1,.32,1),"ease-in-out-quint":sf(.86,0,.07,1),"ease-in-expo":sf(.95,.05,.795,.035),"ease-out-expo":sf(.19,1,.22,1),"ease-in-out-expo":sf(1,0,0,1),"ease-in-circ":sf(.6,.04,.98,.335),"ease-out-circ":sf(.075,.82,.165,1),"ease-in-out-circ":sf(.785,.135,.15,.86),spring:i(function(t,a,s){if(s===0)return UTe.linear;var l=hQn(t,a,s);return function(h,f,d){return h+(f-h)*l(d)}},"spring"),"cubic-bezier":sf};i($Ar,"getEasedValue");i(GAr,"getValue");i(QU,"ease");i(fQn,"step$1");i(jne,"valid");i(dQn,"startAnimation");i(jAr,"stepAll");pQn={animate:zu.animate(),animation:zu.animation(),animated:zu.animated(),clearQueue:zu.clearQueue(),delay:zu.delay(),delayAnimation:zu.delayAnimation(),stop:zu.stop(),addToAnimationPool:i(function(t){var a=this;a.styleEnabled()&&a._private.aniEles.merge(t)},"addToAnimationPool"),stopAnimationLoop:i(function(){this._private.animationsRunning=!1},"stopAnimationLoop"),startAnimationLoop:i(function(){var t=this;if(t._private.animationsRunning=!0,!t.styleEnabled())return;function a(){t._private.animationsRunning&&JTe(i(function(h){jAr(h,t),a()},"animationStep"))}i(a,"headlessStep");var s=t.renderer();s&&s.beforeRender?s.beforeRender(i(function(h,f){jAr(f,t)},"rendererAnimationStep"),s.beforeRenderPriorities.animations):a()},"startAnimationLoop")},gQn={qualifierCompare:i(function(t,a){return t==null||a==null?t==null&&a==null:t.sameText(a)},"qualifierCompare"),eventMatches:i(function(t,a,s){var l=a.qualifier;return l!=null?t!==s.target&&lie(s.target)&&l.matches(s.target):!0},"eventMatches"),addEventFields:i(function(t,a){a.cy=t,a.target=t},"addEventFields"),callbackContext:i(function(t,a,s){return a.qualifier!=null?s.target:t},"callbackContext")},NTe=i(function(t){return Ps(t)?new tD(t):t},"argSelector"),w7r={createEmitter:i(function(){var t=this._private;return t.emitter||(t.emitter=new vke(gQn,this)),this},"createEmitter"),emitter:i(function(){return this._private.emitter},"emitter"),on:i(function(t,a,s){return this.emitter().on(t,NTe(a),s),this},"on"),removeListener:i(function(t,a,s){return this.emitter().removeListener(t,NTe(a),s),this},"removeListener"),removeAllListeners:i(function(){return this.emitter().removeAllListeners(),this},"removeAllListeners"),one:i(function(t,a,s){return this.emitter().one(t,NTe(a),s),this},"one"),once:i(function(t,a,s){return this.emitter().one(t,NTe(a),s),this},"once"),emit:i(function(t,a){return this.emitter().emit(t,a),this},"emit"),emitAndNotify:i(function(t,a){return this.emit(t),this.notify(t,a),this},"emitAndNotify")};zu.eventAliasesOn(w7r);Ent={png:i(function(t){var a=this._private.renderer;return t=t||{},a.png(t)},"png"),jpg:i(function(t){var a=this._private.renderer;return t=t||{},t.bg=t.bg||"#fff",a.jpg(t)},"jpg")};Ent.jpeg=Ent.jpg;VTe={layout:i(function(t){var a=this;if(t==null){td("Layout options must be specified to make a layout");return}if(t.name==null){td("A `name` must be specified to make a layout");return}var s=t.name,l=a.extension("layout",s);if(l==null){td("No such layout `"+s+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var h;Ps(t.eles)?h=a.$(t.eles):h=t.eles!=null?t.eles:a.$();var f=new l(ao({},t,{cy:a,eles:h}));return f},"layout")};VTe.createLayout=VTe.makeLayout=VTe.layout;mQn={notify:i(function(t,a){var s=this._private;if(this.batching()){s.batchNotifications=s.batchNotifications||{};var l=s.batchNotifications[t]=s.batchNotifications[t]||this.collection();a!=null&&l.merge(a);return}if(s.notificationsEnabled){var h=this.renderer();this.destroyed()||!h||h.notify(t,a)}},"notify"),notifications:i(function(t){var a=this._private;return t===void 0?a.notificationsEnabled:(a.notificationsEnabled=!!t,this)},"notifications"),noNotifications:i(function(t){this.notifications(!1),t(),this.notifications(!0)},"noNotifications"),batching:i(function(){return this._private.batchCount>0},"batching"),startBatch:i(function(){var t=this._private;return t.batchCount==null&&(t.batchCount=0),t.batchCount===0&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},"startBatch"),endBatch:i(function(){var t=this._private;if(t.batchCount===0)return this;if(t.batchCount--,t.batchCount===0){t.batchStyleEles.updateStyle();var a=this.renderer();Object.keys(t.batchNotifications).forEach(function(s){var l=t.batchNotifications[s];l.empty()?a.notify(s):a.notify(s,l)})}return this},"endBatch"),batch:i(function(t){return this.startBatch(),t(),this.endBatch(),this},"batch"),batchData:i(function(t){var a=this;return this.batch(function(){for(var s=Object.keys(t),l=0;l<s.length;l++){var h=s[l],f=t[h],d=a.getElementById(h);d.data(f)}})},"batchData")},yQn=m1({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1,webgl:!1,webglDebug:!1,webglDebugShowAtlases:!1,webglTexSize:2048,webglTexRows:36,webglTexRowsNodes:18,webglBatchSize:2048,webglTexPerBatch:14,webglBgColor:[255,255,255]}),Snt={renderTo:i(function(t,a,s,l){var h=this._private.renderer;return h.renderTo(t,a,s,l),this},"renderTo"),renderer:i(function(){return this._private.renderer},"renderer"),forceRender:i(function(){return this.notify("draw"),this},"forceRender"),resize:i(function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},"resize"),initRenderer:i(function(t){var a=this,s=a.extension("renderer",t.name);if(s==null){td("Can not initialise: No such renderer `".concat(t.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}t.wheelSensitivity!==void 0&&Uu("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=yQn(t);l.cy=a,a._private.renderer=new s(l),this.notify("init")},"initRenderer"),destroyRenderer:i(function(){var t=this;t.notify("destroy");var a=t.container();if(a)for(a._cyreg=null;a.childNodes.length>0;)a.removeChild(a.childNodes[0]);t._private.renderer=null,t.mutableElements().forEach(function(s){var l=s._private;l.rscratch={},l.rstyle={},l.animation.current=[],l.animation.queue=[]})},"destroyRenderer"),onRender:i(function(t){return this.on("render",t)},"onRender"),offRender:i(function(t){return this.off("render",t)},"offRender")};Snt.invalidateDimensions=Snt.resize;WTe={collection:i(function(t,a){return Ps(t)?this.$(t):sx(t)?t.collection():zh(t)?(a||(a={}),new g1(this,t,a.unique,a.removed)):new g1(this)},"collection"),nodes:i(function(t){var a=this.$(function(s){return s.isNode()});return t?a.filter(t):a},"nodes"),edges:i(function(t){var a=this.$(function(s){return s.isEdge()});return t?a.filter(t):a},"edges"),$:i(function(t){var a=this._private.elements;return t?a.filter(t):a.spawnSelf()},"$"),mutableElements:i(function(){return this._private.elements},"mutableElements")};WTe.elements=WTe.filter=WTe.$;Em={},Yne="t",bQn="f";Em.apply=function(r){for(var t=this,a=t._private,s=a.cy,l=s.collection(),h=0;h<r.length;h++){var f=r[h],d=t.getContextMeta(f);if(!d.empty){var m=t.getContextStyle(d),b=t.applyContextStyle(d,m,f);f._private.appliedInitStyle?t.updateTransitions(f,b.diffProps):f._private.appliedInitStyle=!0;var v=t.updateStyleHints(f);v&&l.push(f)}}return l};Em.getPropertiesDiff=function(r,t){var a=this,s=a._private.propDiffs=a._private.propDiffs||{},l=r+"-"+t,h=s[l];if(h)return h;for(var f=[],d={},m=0;m<a.length;m++){var b=a[m],v=r[m]===Yne,T=t[m]===Yne,C=v!==T,E=b.mappedProperties.length>0;if(C||T&&E){var S=void 0;C&&E||C?S=b.properties:E&&(S=b.mappedProperties);for(var R=0;R<S.length;R++){for(var L=S[R],_=L.name,I=!1,N=m+1;N<a.length;N++){var B=a[N],O=t[N]===Yne;if(O&&(I=B.properties[L.name]!=null,I))break}!d[_]&&!I&&(d[_]=!0,f.push(_))}}}return s[l]=f,f};Em.getContextMeta=function(r){for(var t=this,a="",s,l=r._private.styleCxtKey||"",h=0;h<t.length;h++){var f=t[h],d=f.selector&&f.selector.matches(r);d?a+=Yne:a+=bQn}return s=t.getPropertiesDiff(l,a),r._private.styleCxtKey=a,{key:a,diffPropNames:s,empty:s.length===0}};Em.getContextStyle=function(r){var t=r.key,a=this,s=this._private.contextStyles=this._private.contextStyles||{};if(s[t])return s[t];for(var l={_private:{key:t}},h=0;h<a.length;h++){var f=a[h],d=t[h]===Yne;if(d)for(var m=0;m<f.properties.length;m++){var b=f.properties[m];l[b.name]=b}}return s[t]=l,l};Em.applyContextStyle=function(r,t,a){for(var s=this,l=r.diffPropNames,h={},f=s.types,d=0;d<l.length;d++){var m=l[d],b=t[m],v=a.pstyle(m);if(!b)if(v)v.bypass?b={name:m,deleteBypassed:!0}:b={name:m,delete:!0};else continue;if(v!==b){if(b.mapped===f.fn&&v!=null&&v.mapping!=null&&v.mapping.value===b.value){var T=v.mapping,C=T.fnValue=b.value(a);if(C===T.prevFnValue)continue}var E=h[m]={prev:v};s.applyParsedProperty(a,b),E.next=a.pstyle(m),E.next&&E.next.bypass&&(E.next=E.next.bypassed)}}return{diffProps:h}};Em.updateStyleHints=function(r){var t=r._private,a=this,s=a.propertyGroupNames,l=a.propertyGroupKeys,h=i(function(ze,vt,lt){return a.getPropertiesHash(ze,vt,lt)},"propHash"),f=t.styleKey;if(r.removed())return!1;var d=t.group==="nodes",m=r._private.style;s=Object.keys(m);for(var b=0;b<l.length;b++){var v=l[b];t.styleKeys[v]=[yP,nV]}for(var T=i(function(ze,vt){return t.styleKeys[vt][0]=Jne(ze,t.styleKeys[vt][0])},"updateGrKey1"),C=i(function(ze,vt){return t.styleKeys[vt][1]=Qne(ze,t.styleKeys[vt][1])},"updateGrKey2"),E=i(function(ze,vt){T(ze,vt),C(ze,vt)},"updateGrKey"),S=i(function(ze,vt){for(var lt=0;lt<ze.length;lt++){var Ft=ze.charCodeAt(lt);T(Ft,vt),C(Ft,vt)}},"updateGrKeyWStr"),R=2e9,L=i(function(ze){return-128<ze&&ze<128&&Math.floor(ze)!==ze?R-(ze*1024|0):ze},"cleanNum"),_=0;_<s.length;_++){var I=s[_],N=m[I];if(N!=null){var B=this.properties[I],O=B.type,P=B.groupKey,$=void 0;B.hashOverride!=null?$=B.hashOverride(r,N):N.pfValue!=null&&($=N.pfValue);var V=B.enums==null?N.value:null,Y=$!=null,Q=V!=null,q=Y||Q,W=N.units;if(O.number&&q&&!O.multiple){var H=Y?$:V;E(L(H),P),!Y&&W!=null&&S(W,P)}else S(N.strValue,P)}}for(var re=[yP,nV],Z=0;Z<l.length;Z++){var X=l[Z],te=t.styleKeys[X];re[0]=Jne(te[0],re[0]),re[1]=Qne(te[1],re[1])}t.styleKey=MYn(re[0],re[1]);var U=t.styleKeys;t.labelDimsKey=V_(U.labelDimensions);var ne=h(r,["label"],U.labelDimensions);if(t.labelKey=V_(ne),t.labelStyleKey=V_(STe(U.commonLabel,ne)),!d){var se=h(r,["source-label"],U.labelDimensions);t.sourceLabelKey=V_(se),t.sourceLabelStyleKey=V_(STe(U.commonLabel,se));var he=h(r,["target-label"],U.labelDimensions);t.targetLabelKey=V_(he),t.targetLabelStyleKey=V_(STe(U.commonLabel,he))}if(d){var le=t.styleKeys,pe=le.nodeBody,ge=le.nodeBorder,we=le.nodeOutline,Ae=le.backgroundImage,ve=le.compound,Ie=le.pie,De=le.stripe,Be=[pe,ge,we,Ae,ve,Ie,De].filter(function(Fe){return Fe!=null}).reduce(STe,[yP,nV]);t.nodeKey=V_(Be),t.hasPie=Ie!=null&&Ie[0]!==yP&&Ie[1]!==nV,t.hasStripe=De!=null&&De[0]!==yP&&De[1]!==nV}return f!==t.styleKey};Em.clearStyleHints=function(r){var t=r._private;t.styleCxtKey="",t.styleKeys={},t.styleKey=null,t.labelKey=null,t.labelStyleKey=null,t.sourceLabelKey=null,t.sourceLabelStyleKey=null,t.targetLabelKey=null,t.targetLabelStyleKey=null,t.nodeKey=null,t.hasPie=null,t.hasStripe=null};Em.applyParsedProperty=function(r,t){var a=this,s=t,l=r._private.style,h,f=a.types,d=a.properties[s.name].type,m=s.bypass,b=l[s.name],v=b&&b.bypass,T=r._private,C="mapping",E=i(function(pe){return pe==null?null:pe.pfValue!=null?pe.pfValue:pe.value},"getVal"),S=i(function(){var pe=E(b),ge=E(s);a.checkTriggers(r,s.name,pe,ge)},"checkTriggers");if(t.name==="curve-style"&&r.isEdge()&&(t.value!=="bezier"&&r.isLoop()||t.value==="haystack"&&(r.source().isParent()||r.target().isParent()))&&(s=t=this.parse(t.name,"bezier",m)),s.delete)return l[s.name]=void 0,S(),!0;if(s.deleteBypassed)return b?b.bypass?(b.bypassed=void 0,S(),!0):!1:(S(),!0);if(s.deleteBypass)return b?b.bypass?(l[s.name]=b.bypassed,S(),!0):!1:(S(),!0);var R=i(function(){Uu("Do not assign mappings to elements without corresponding data (i.e. ele `"+r.id()+"` has no mapping for property `"+s.name+"` with data field `"+s.field+"`); try a `["+s.field+"]` selector to limit scope to elements with `"+s.field+"` defined")},"printMappingErr");switch(s.mapped){case f.mapData:{for(var L=s.field.split("."),_=T.data,I=0;I<L.length&&_;I++){var N=L[I];_=_[N]}if(_==null)return R(),!1;var B;if(ua(_)){var O=s.fieldMax-s.fieldMin;O===0?B=0:B=(_-s.fieldMin)/O}else return Uu("Do not use continuous mappers without specifying numeric data (i.e. `"+s.field+": "+_+"` for `"+r.id()+"` is non-numeric)"),!1;if(B<0?B=0:B>1&&(B=1),d.color){var P=s.valueMin[0],$=s.valueMax[0],V=s.valueMin[1],Y=s.valueMax[1],Q=s.valueMin[2],q=s.valueMax[2],W=s.valueMin[3]==null?1:s.valueMin[3],H=s.valueMax[3]==null?1:s.valueMax[3],re=[Math.round(P+($-P)*B),Math.round(V+(Y-V)*B),Math.round(Q+(q-Q)*B),Math.round(W+(H-W)*B)];h={bypass:s.bypass,name:s.name,value:re,strValue:"rgb("+re[0]+", "+re[1]+", "+re[2]+")"}}else if(d.number){var Z=s.valueMin+(s.valueMax-s.valueMin)*B;h=this.parse(s.name,Z,s.bypass,C)}else return!1;if(!h)return R(),!1;h.mapping=s,s=h;break}case f.data:{for(var X=s.field.split("."),te=T.data,U=0;U<X.length&&te;U++){var ne=X[U];te=te[ne]}if(te!=null&&(h=this.parse(s.name,te,s.bypass,C)),!h)return R(),!1;h.mapping=s,s=h;break}case f.fn:{var se=s.value,he=s.fnValue!=null?s.fnValue:se(r);if(s.prevFnValue=he,he==null)return Uu("Custom function mappers may not return null (i.e. `"+s.name+"` for ele `"+r.id()+"` is null)"),!1;if(h=this.parse(s.name,he,s.bypass,C),!h)return Uu("Custom function mappers may not return invalid values for the property type (i.e. `"+s.name+"` for ele `"+r.id()+"` is invalid)"),!1;h.mapping=IS(s),s=h;break}case void 0:break;default:return!1}return m?(v?s.bypassed=b.bypassed:s.bypassed=b,l[s.name]=s):v?b.bypassed=s:l[s.name]=s,S(),!0};Em.cleanElements=function(r,t){for(var a=0;a<r.length;a++){var s=r[a];if(this.clearStyleHints(s),s.dirtyCompoundBoundsCache(),s.dirtyBoundingBoxCache(),!t)s._private.style={};else for(var l=s._private.style,h=Object.keys(l),f=0;f<h.length;f++){var d=h[f],m=l[d];m!=null&&(m.bypass?m.bypassed=null:l[d]=null)}}};Em.update=function(){var r=this._private.cy,t=r.mutableElements();t.updateStyle()};Em.updateTransitions=function(r,t){var a=this,s=r._private,l=r.pstyle("transition-property").value,h=r.pstyle("transition-duration").pfValue,f=r.pstyle("transition-delay").pfValue;if(l.length>0&&h>0){for(var d={},m=!1,b=0;b<l.length;b++){var v=l[b],T=r.pstyle(v),C=t[v];if(C){var E=C.prev,S=E,R=C.next!=null?C.next:T,L=!1,_=void 0,I=1e-6;S&&(ua(S.pfValue)&&ua(R.pfValue)?(L=R.pfValue-S.pfValue,_=S.pfValue+I*L):ua(S.value)&&ua(R.value)?(L=R.value-S.value,_=S.value+I*L):zh(S.value)&&zh(R.value)&&(L=S.value[0]!==R.value[0]||S.value[1]!==R.value[1]||S.value[2]!==R.value[2],_=S.strValue),L&&(d[v]=R.strValue,this.applyBypass(r,v,_),m=!0))}}if(!m)return;s.transitioning=!0,new yV(function(N){f>0?r.delayAnimation(f).play().promise().then(N):N()}).then(function(){return r.animation({style:d,duration:h,easing:r.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){a.removeBypasses(r,l),r.emitAndNotify("style"),s.transitioning=!1})}else s.transitioning&&(this.removeBypasses(r,l),r.emitAndNotify("style"),s.transitioning=!1)};Em.checkTrigger=function(r,t,a,s,l,h){var f=this.properties[t],d=l(f);r.removed()||d!=null&&d(a,s,r)&&h(f)};Em.checkZOrderTrigger=function(r,t,a,s){var l=this;this.checkTrigger(r,t,a,s,function(h){return h.triggersZOrder},function(){l._private.cy.notify("zorder",r)})};Em.checkBoundsTrigger=function(r,t,a,s){this.checkTrigger(r,t,a,s,function(l){return l.triggersBounds},function(l){r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache()})};Em.checkConnectedEdgesBoundsTrigger=function(r,t,a,s){this.checkTrigger(r,t,a,s,function(l){return l.triggersBoundsOfConnectedEdges},function(l){r.connectedEdges().forEach(function(h){h.dirtyBoundingBoxCache()})})};Em.checkParallelEdgesBoundsTrigger=function(r,t,a,s){this.checkTrigger(r,t,a,s,function(l){return l.triggersBoundsOfParallelEdges},function(l){r.parallelEdges().forEach(function(h){h.dirtyBoundingBoxCache()})})};Em.checkTriggers=function(r,t,a,s){r.dirtyStyleCache(),this.checkZOrderTrigger(r,t,a,s),this.checkBoundsTrigger(r,t,a,s),this.checkConnectedEdgesBoundsTrigger(r,t,a,s),this.checkParallelEdgesBoundsTrigger(r,t,a,s)};gie={};gie.applyBypass=function(r,t,a,s){var l=this,h=[],f=!0;if(t==="*"||t==="**"){if(a!==void 0)for(var d=0;d<l.properties.length;d++){var m=l.properties[d],b=m.name,v=this.parse(b,a,!0);v&&h.push(v)}}else if(Ps(t)){var T=this.parse(t,a,!0);T&&h.push(T)}else if(Wc(t)){var C=t;s=a;for(var E=Object.keys(C),S=0;S<E.length;S++){var R=E[S],L=C[R];if(L===void 0&&(L=C[cke(R)]),L!==void 0){var _=this.parse(R,L,!0);_&&h.push(_)}}}else return!1;if(h.length===0)return!1;for(var I=!1,N=0;N<r.length;N++){for(var B=r[N],O={},P=void 0,$=0;$<h.length;$++){var V=h[$];if(s){var Y=B.pstyle(V.name);P=O[V.name]={prev:Y}}I=this.applyParsedProperty(B,IS(V))||I,s&&(P.next=B.pstyle(V.name))}I&&this.updateStyleHints(B),s&&this.updateTransitions(B,O,f)}return I};gie.overrideBypass=function(r,t,a){t=Fnt(t);for(var s=0;s<r.length;s++){var l=r[s],h=l._private.style[t],f=this.properties[t].type,d=f.color,m=f.mutiple,b=h?h.pfValue!=null?h.pfValue:h.value:null;!h||!h.bypass?this.applyBypass(l,t,a):(h.value=a,h.pfValue!=null&&(h.pfValue=a),d?h.strValue="rgb("+a.join(",")+")":m?h.strValue=a.join(" "):h.strValue=""+a,this.updateStyleHints(l)),this.checkTriggers(l,t,b,a)}};gie.removeAllBypasses=function(r,t){return this.removeBypasses(r,this.propertyNames,t)};gie.removeBypasses=function(r,t,a){for(var s=!0,l=0;l<r.length;l++){for(var h=r[l],f={},d=0;d<t.length;d++){var m=t[d],b=this.properties[m],v=h.pstyle(b.name);if(!(!v||!v.bypass)){var T="",C=this.parse(m,T,!0),E=f[b.name]={prev:v};this.applyParsedProperty(h,C),E.next=h.pstyle(b.name)}}this.updateStyleHints(h),a&&this.updateTransitions(h,f,s)}};Znt={};Znt.getEmSizeInPixels=function(){var r=this.containerCss("font-size");return r!=null?parseFloat(r):1};Znt.containerCss=function(r){var t=this._private.cy,a=t.container(),s=t.window();if(s&&a&&s.getComputedStyle)return s.getComputedStyle(a).getPropertyValue(r)};MS={};MS.getRenderedStyle=function(r,t){return t?this.getStylePropertyValue(r,t,!0):this.getRawStyle(r,!0)};MS.getRawStyle=function(r,t){var a=this;if(r=r[0],r){for(var s={},l=0;l<a.properties.length;l++){var h=a.properties[l],f=a.getStylePropertyValue(r,h.name,t);f!=null&&(s[h.name]=f,s[cke(h.name)]=f)}return s}};MS.getIndexedStyle=function(r,t,a,s){var l=r.pstyle(t)[a][s];return l??r.cy().style().getDefaultProperty(t)[a][0]};MS.getStylePropertyValue=function(r,t,a){var s=this;if(r=r[0],r){var l=s.properties[t];l.alias&&(l=l.pointsTo);var h=l.type,f=r.pstyle(l.name);if(f){var d=f.value,m=f.units,b=f.strValue;if(a&&h.number&&d!=null&&ua(d)){var v=r.cy().zoom(),T=i(function(L){return L*v},"getRenderedValue"),C=i(function(L,_){return T(L)+_},"getValueStringWithUnits"),E=zh(d),S=E?m.every(function(R){return R!=null}):m!=null;return S?E?d.map(function(R,L){return C(R,m[L])}).join(" "):C(d,m):E?d.map(function(R){return Ps(R)?R:""+T(R)}).join(" "):""+T(d)}else if(b!=null)return b}return null}};MS.getAnimationStartStyle=function(r,t){for(var a={},s=0;s<t.length;s++){var l=t[s],h=l.name,f=r.pstyle(h);f!==void 0&&(Wc(f)?f=this.parse(h,f.strValue):f=this.parse(h,f)),f&&(a[h]=f)}return a};MS.getPropsList=function(r){var t=this,a=[],s=r,l=t.properties;if(s)for(var h=Object.keys(s),f=0;f<h.length;f++){var d=h[f],m=s[d],b=l[d]||l[Fnt(d)],v=this.parse(b.name,m);v&&a.push(v)}return a};MS.getNonDefaultPropertiesHash=function(r,t,a){var s=a.slice(),l,h,f,d,m,b;for(m=0;m<t.length;m++)if(l=t[m],h=r.pstyle(l,!1),h!=null)if(h.pfValue!=null)s[0]=Jne(d,s[0]),s[1]=Qne(d,s[1]);else for(f=h.strValue,b=0;b<f.length;b++)d=f.charCodeAt(b),s[0]=Jne(d,s[0]),s[1]=Qne(d,s[1]);return s};MS.getPropertiesHash=MS.getNonDefaultPropertiesHash;Tke={};Tke.appendFromJson=function(r){for(var t=this,a=0;a<r.length;a++){var s=r[a],l=s.selector,h=s.style||s.css,f=Object.keys(h);t.selector(l);for(var d=0;d<f.length;d++){var m=f[d],b=h[m];t.css(m,b)}}return t};Tke.fromJson=function(r){var t=this;return t.resetToDefault(),t.appendFromJson(r),t};Tke.json=function(){for(var r=[],t=this.defaultLength;t<this.length;t++){for(var a=this[t],s=a.selector,l=a.properties,h={},f=0;f<l.length;f++){var d=l[f];h[d.name]=d.strValue}r.push({selector:s?s.toString():"core",style:h})}return r};eit={};eit.appendFromString=function(r){var t=this,a=this,s=""+r,l,h,f;s=s.replace(/[/][*](\s|.)+?[*][/]/g,"");function d(){s.length>l.length?s=s.substr(l.length):s=""}i(d,"removeSelAndBlockFromRemaining");function m(){h.length>f.length?h=h.substr(f.length):h=""}for(i(m,"removePropAndValFromRem");;){var b=s.match(/^\s*$/);if(b)break;var v=s.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!v){Uu("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+s);break}l=v[0];var T=v[1];if(T!=="core"){var C=new tD(T);if(C.invalid){Uu("Skipping parsing of block: Invalid selector found in string stylesheet: "+T),d();continue}}var E=v[2],S=!1;h=E;for(var R=[];;){var L=h.match(/^\s*$/);if(L)break;var _=h.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!_){Uu("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+E),S=!0;break}f=_[0];var I=_[1],N=_[2],B=t.properties[I];if(!B){Uu("Skipping property: Invalid property name in: "+f),m();continue}var O=a.parse(I,N);if(!O){Uu("Skipping property: Invalid property definition in: "+f),m();continue}R.push({name:I,val:N}),m()}if(S){d();break}a.selector(T);for(var P=0;P<R.length;P++){var $=R[P];a.css($.name,$.val)}d()}return a};eit.fromString=function(r){var t=this;return t.resetToDefault(),t.appendFromString(r),t};Fg={};(function(){var r=_0,t=hYn,a=dYn,s=pYn,l=gYn,h=i(function(Fe){return"^"+Fe+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},"data"),f=i(function(Fe){var ze=r+"|\\w+|"+t+"|"+a+"|"+s+"|"+l;return"^"+Fe+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+r+")\\s*\\,\\s*("+r+")\\s*,\\s*("+ze+")\\s*\\,\\s*("+ze+")\\)$"},"mapData"),d=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];Fg.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"]},axisDirectionExplicit:{enums:["leftward","rightward","upward","downward"]},axisDirectionPrimary:{enums:["horizontal","vertical"]},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},boxSelection:{enums:["contain","overlap","none"]},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"]},linePosition:{enums:["center","inside","outside"]},lineJoin:{enums:["round","bevel","miter"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi","round-segments","round-taxi"]},radiusType:{enums:["arc-radius","influence-radius"],multiple:!0},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","circle"]},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"]},cornerRadius:{number:!0,min:0,units:"px|em",implicitUnits:"px",enums:["auto"]},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","top-inside","center","bottom","bottom-inside"]},halign:{enums:["left","left-inside","center","right","right-inside"]},justification:{enums:["left","center","right","auto"]},textMetrics:{enums:["font","glyph"]},text:{string:!0},data:{mapping:!0,regex:h("data")},layoutData:{mapping:!0,regex:h("layoutData")},scratch:{mapping:!0,regex:h("scratch")},mapData:{mapping:!0,regex:f("mapData")},mapLayoutData:{mapping:!0,regex:f("mapLayoutData")},mapScratch:{mapping:!0,regex:f("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:d,singleRegexMatchValue:!0},urls:{regexes:d,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:i(function(Fe,ze){switch(Fe.length){case 2:return ze[0]!=="deg"&&ze[0]!=="rad"&&ze[1]!=="deg"&&ze[1]!=="rad";case 1:return Ps(Fe[0])||ze[0]==="deg"||ze[0]==="rad";default:return!1}},"validate")},easing:{regexes:["^(spring)\\s*\\(\\s*("+r+")\\s*,\\s*("+r+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+r+")\\s*,\\s*("+r+")\\s*,\\s*("+r+")\\s*,\\s*("+r+")\\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:i(function(Fe){var ze=Fe.length;return ze===1||ze===2||ze===4},"validate")}};var m={zeroNonZero:i(function(Fe,ze){return(Fe==null||ze==null)&&Fe!==ze||Fe==0&&ze!=0?!0:Fe!=0&&ze==0},"zeroNonZero"),any:i(function(Fe,ze){return Fe!=ze},"any"),emptyNonEmpty:i(function(Fe,ze){var vt=Q_(Fe),lt=Q_(ze);return vt&&!lt||!vt&<},"emptyNonEmpty")},b=Fg.types,v=[{name:"label",type:b.text,triggersBounds:m.any,triggersZOrder:m.emptyNonEmpty},{name:"text-rotation",type:b.textRotation,triggersBounds:m.any},{name:"text-margin-x",type:b.bidirectionalSize,triggersBounds:m.any},{name:"text-margin-y",type:b.bidirectionalSize,triggersBounds:m.any}],T=[{name:"source-label",type:b.text,triggersBounds:m.any},{name:"source-text-rotation",type:b.textRotation,triggersBounds:m.any},{name:"source-text-margin-x",type:b.bidirectionalSize,triggersBounds:m.any},{name:"source-text-margin-y",type:b.bidirectionalSize,triggersBounds:m.any},{name:"source-text-offset",type:b.size,triggersBounds:m.any}],C=[{name:"target-label",type:b.text,triggersBounds:m.any},{name:"target-text-rotation",type:b.textRotation,triggersBounds:m.any},{name:"target-text-margin-x",type:b.bidirectionalSize,triggersBounds:m.any},{name:"target-text-margin-y",type:b.bidirectionalSize,triggersBounds:m.any},{name:"target-text-offset",type:b.size,triggersBounds:m.any}],E=[{name:"font-family",type:b.fontFamily,triggersBounds:m.any},{name:"font-style",type:b.fontStyle,triggersBounds:m.any},{name:"font-weight",type:b.fontWeight,triggersBounds:m.any},{name:"font-size",type:b.size,triggersBounds:m.any},{name:"text-transform",type:b.textTransform,triggersBounds:m.any},{name:"text-wrap",type:b.textWrap,triggersBounds:m.any},{name:"text-overflow-wrap",type:b.textOverflowWrap,triggersBounds:m.any},{name:"text-max-width",type:b.size,triggersBounds:m.any},{name:"text-outline-width",type:b.size,triggersBounds:m.any},{name:"line-height",type:b.positiveNumber,triggersBounds:m.any}],S=[{name:"text-valign",type:b.valign,triggersBounds:m.any},{name:"text-halign",type:b.halign,triggersBounds:m.any},{name:"color",type:b.color},{name:"text-outline-color",type:b.color},{name:"text-outline-opacity",type:b.zeroOneNumber},{name:"text-background-color",type:b.color},{name:"text-background-opacity",type:b.zeroOneNumber},{name:"text-background-padding",type:b.size,triggersBounds:m.any},{name:"text-border-opacity",type:b.zeroOneNumber},{name:"text-border-color",type:b.color},{name:"text-border-width",type:b.size,triggersBounds:m.any},{name:"text-border-style",type:b.borderStyle,triggersBounds:m.any},{name:"text-background-shape",type:b.textBackgroundShape,triggersBounds:m.any},{name:"text-justification",type:b.justification},{name:"text-metrics",type:b.textMetrics},{name:"box-select-labels",type:b.bool,triggersBounds:m.any}],R=[{name:"events",type:b.bool,triggersZOrder:m.any},{name:"text-events",type:b.bool,triggersZOrder:m.any},{name:"box-selection",type:b.boxSelection,triggersZOrder:m.any}],L=[{name:"display",type:b.display,triggersZOrder:m.any,triggersBounds:m.any,triggersBoundsOfConnectedEdges:m.any,triggersBoundsOfParallelEdges:i(function(Fe,ze,vt){return Fe===ze?!1:vt.pstyle("curve-style").value==="bezier"},"triggersBoundsOfParallelEdges")},{name:"visibility",type:b.visibility,triggersZOrder:m.any},{name:"opacity",type:b.zeroOneNumber,triggersZOrder:m.zeroNonZero},{name:"text-opacity",type:b.zeroOneNumber},{name:"min-zoomed-font-size",type:b.size},{name:"z-compound-depth",type:b.zCompoundDepth,triggersZOrder:m.any},{name:"z-index-compare",type:b.zIndexCompare,triggersZOrder:m.any},{name:"z-index",type:b.number,triggersZOrder:m.any}],_=[{name:"overlay-padding",type:b.size,triggersBounds:m.any},{name:"overlay-color",type:b.color},{name:"overlay-opacity",type:b.zeroOneNumber,triggersBounds:m.zeroNonZero},{name:"overlay-shape",type:b.overlayShape,triggersBounds:m.any},{name:"overlay-corner-radius",type:b.cornerRadius}],I=[{name:"underlay-padding",type:b.size,triggersBounds:m.any},{name:"underlay-color",type:b.color},{name:"underlay-opacity",type:b.zeroOneNumber,triggersBounds:m.zeroNonZero},{name:"underlay-shape",type:b.overlayShape,triggersBounds:m.any},{name:"underlay-corner-radius",type:b.cornerRadius}],N=[{name:"transition-property",type:b.propList},{name:"transition-duration",type:b.time},{name:"transition-delay",type:b.time},{name:"transition-timing-function",type:b.easing}],B=i(function(Fe,ze){return ze.value==="label"?-Fe.poolIndex():ze.pfValue},"nodeSizeHashOverride"),O=[{name:"height",type:b.nodeSize,triggersBounds:m.any,hashOverride:B},{name:"width",type:b.nodeSize,triggersBounds:m.any,hashOverride:B},{name:"shape",type:b.nodeShape,triggersBounds:m.any},{name:"shape-polygon-points",type:b.polygonPointList,triggersBounds:m.any},{name:"corner-radius",type:b.cornerRadius},{name:"background-color",type:b.color},{name:"background-fill",type:b.fill},{name:"background-opacity",type:b.zeroOneNumber},{name:"background-blacken",type:b.nOneOneNumber},{name:"background-gradient-stop-colors",type:b.colors},{name:"background-gradient-stop-positions",type:b.percentages},{name:"background-gradient-direction",type:b.gradientDirection},{name:"padding",type:b.sizeMaybePercent,triggersBounds:m.any},{name:"padding-relative-to",type:b.paddingRelativeTo,triggersBounds:m.any},{name:"bounds-expansion",type:b.boundsExpansion,triggersBounds:m.any}],P=[{name:"border-color",type:b.color},{name:"border-opacity",type:b.zeroOneNumber},{name:"border-width",type:b.size,triggersBounds:m.any},{name:"border-style",type:b.borderStyle},{name:"border-cap",type:b.lineCap},{name:"border-join",type:b.lineJoin},{name:"border-dash-pattern",type:b.numbers},{name:"border-dash-offset",type:b.number},{name:"border-position",type:b.linePosition}],$=[{name:"outline-color",type:b.color},{name:"outline-opacity",type:b.zeroOneNumber},{name:"outline-width",type:b.size,triggersBounds:m.any},{name:"outline-style",type:b.borderStyle},{name:"outline-offset",type:b.size,triggersBounds:m.any}],V=[{name:"background-image",type:b.urls},{name:"background-image-crossorigin",type:b.bgCrossOrigin},{name:"background-image-opacity",type:b.zeroOneNumbers},{name:"background-image-containment",type:b.bgContainment},{name:"background-image-smoothing",type:b.bools},{name:"background-position-x",type:b.bgPos},{name:"background-position-y",type:b.bgPos},{name:"background-width-relative-to",type:b.bgRelativeTo},{name:"background-height-relative-to",type:b.bgRelativeTo},{name:"background-repeat",type:b.bgRepeat},{name:"background-fit",type:b.bgFit},{name:"background-clip",type:b.bgClip},{name:"background-width",type:b.bgWH},{name:"background-height",type:b.bgWH},{name:"background-offset-x",type:b.bgPos},{name:"background-offset-y",type:b.bgPos}],Y=[{name:"position",type:b.position,triggersBounds:m.any},{name:"compound-sizing-wrt-labels",type:b.compoundIncludeLabels,triggersBounds:m.any},{name:"min-width",type:b.size,triggersBounds:m.any},{name:"min-width-bias-left",type:b.sizeMaybePercent,triggersBounds:m.any},{name:"min-width-bias-right",type:b.sizeMaybePercent,triggersBounds:m.any},{name:"min-height",type:b.size,triggersBounds:m.any},{name:"min-height-bias-top",type:b.sizeMaybePercent,triggersBounds:m.any},{name:"min-height-bias-bottom",type:b.sizeMaybePercent,triggersBounds:m.any}],Q=[{name:"line-style",type:b.lineStyle},{name:"line-color",type:b.color},{name:"line-fill",type:b.fill},{name:"line-cap",type:b.lineCap},{name:"line-opacity",type:b.zeroOneNumber},{name:"line-dash-pattern",type:b.numbers},{name:"line-dash-offset",type:b.number},{name:"line-outline-width",type:b.size},{name:"line-outline-color",type:b.color},{name:"line-gradient-stop-colors",type:b.colors},{name:"line-gradient-stop-positions",type:b.percentages},{name:"curve-style",type:b.curveStyle,triggersBounds:m.any,triggersBoundsOfParallelEdges:i(function(Fe,ze){return Fe===ze?!1:Fe==="bezier"||ze==="bezier"},"triggersBoundsOfParallelEdges")},{name:"haystack-radius",type:b.zeroOneNumber,triggersBounds:m.any},{name:"source-endpoint",type:b.edgeEndpoint,triggersBounds:m.any},{name:"target-endpoint",type:b.edgeEndpoint,triggersBounds:m.any},{name:"control-point-step-size",type:b.size,triggersBounds:m.any},{name:"control-point-distances",type:b.bidirectionalSizes,triggersBounds:m.any},{name:"control-point-weights",type:b.numbers,triggersBounds:m.any},{name:"segment-distances",type:b.bidirectionalSizes,triggersBounds:m.any},{name:"segment-weights",type:b.numbers,triggersBounds:m.any},{name:"segment-radii",type:b.numbers,triggersBounds:m.any},{name:"radius-type",type:b.radiusType,triggersBounds:m.any},{name:"taxi-turn",type:b.bidirectionalSizeMaybePercent,triggersBounds:m.any},{name:"taxi-turn-min-distance",type:b.size,triggersBounds:m.any},{name:"taxi-direction",type:b.axisDirection,triggersBounds:m.any},{name:"taxi-radius",type:b.number,triggersBounds:m.any},{name:"edge-distances",type:b.edgeDistances,triggersBounds:m.any},{name:"arrow-scale",type:b.positiveNumber,triggersBounds:m.any},{name:"loop-direction",type:b.angle,triggersBounds:m.any},{name:"loop-sweep",type:b.angle,triggersBounds:m.any},{name:"source-distance-from-node",type:b.size,triggersBounds:m.any},{name:"target-distance-from-node",type:b.size,triggersBounds:m.any}],q=[{name:"ghost",type:b.bool,triggersBounds:m.any},{name:"ghost-offset-x",type:b.bidirectionalSize,triggersBounds:m.any},{name:"ghost-offset-y",type:b.bidirectionalSize,triggersBounds:m.any},{name:"ghost-opacity",type:b.zeroOneNumber}],W=[{name:"selection-box-color",type:b.color},{name:"selection-box-opacity",type:b.zeroOneNumber},{name:"selection-box-border-color",type:b.color},{name:"selection-box-border-width",type:b.size},{name:"active-bg-color",type:b.color},{name:"active-bg-opacity",type:b.zeroOneNumber},{name:"active-bg-size",type:b.size},{name:"outside-texture-bg-color",type:b.color},{name:"outside-texture-bg-opacity",type:b.zeroOneNumber}],H=[];Fg.pieBackgroundN=16,H.push({name:"pie-size",type:b.sizeMaybePercent}),H.push({name:"pie-hole",type:b.sizeMaybePercent}),H.push({name:"pie-start-angle",type:b.angle});for(var re=1;re<=Fg.pieBackgroundN;re++)H.push({name:"pie-"+re+"-background-color",type:b.color}),H.push({name:"pie-"+re+"-background-size",type:b.percent}),H.push({name:"pie-"+re+"-background-opacity",type:b.zeroOneNumber});var Z=[];Fg.stripeBackgroundN=16,Z.push({name:"stripe-size",type:b.sizeMaybePercent}),Z.push({name:"stripe-direction",type:b.axisDirectionPrimary});for(var X=1;X<=Fg.stripeBackgroundN;X++)Z.push({name:"stripe-"+X+"-background-color",type:b.color}),Z.push({name:"stripe-"+X+"-background-size",type:b.percent}),Z.push({name:"stripe-"+X+"-background-opacity",type:b.zeroOneNumber});var te=[],U=Fg.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:b.arrowShape,triggersBounds:m.any},{name:"arrow-color",type:b.color},{name:"arrow-fill",type:b.arrowFill},{name:"arrow-width",type:b.arrowWidth}].forEach(function(Be){U.forEach(function(Fe){var ze=Fe+"-"+Be.name,vt=Be.type,lt=Be.triggersBounds;te.push({name:ze,type:vt,triggersBounds:lt})})},{});var ne=Fg.properties=[].concat(R,N,L,_,I,q,S,E,v,T,C,O,P,$,V,H,Z,Y,Q,te,W),se=Fg.propertyGroups={behavior:R,transition:N,visibility:L,overlay:_,underlay:I,ghost:q,commonLabel:S,labelDimensions:E,mainLabel:v,sourceLabel:T,targetLabel:C,nodeBody:O,nodeBorder:P,nodeOutline:$,backgroundImage:V,pie:H,stripe:Z,compound:Y,edgeLine:Q,edgeArrow:te,core:W},he=Fg.propertyGroupNames={},le=Fg.propertyGroupKeys=Object.keys(se);le.forEach(function(Be){he[Be]=se[Be].map(function(Fe){return Fe.name}),se[Be].forEach(function(Fe){return Fe.groupKey=Be})});var pe=Fg.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"segment-distance",pointsTo:"segment-distances"},{name:"segment-weight",pointsTo:"segment-weights"},{name:"segment-radius",pointsTo:"segment-radii"},{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"}];Fg.propertyNames=ne.map(function(Be){return Be.name});for(var ge=0;ge<ne.length;ge++){var we=ne[ge];ne[we.name]=we}for(var Ae=0;Ae<pe.length;Ae++){var ve=pe[Ae],Ie=ne[ve.pointsTo],De={name:ve.name,alias:!0,pointsTo:Ie};ne.push(De),ne[ve.name]=De}})();Fg.getDefaultProperty=function(r){return this.getDefaultProperties()[r]};Fg.getDefaultProperties=function(){var r=this._private;if(r.defaultProperties!=null)return r.defaultProperties;for(var t=ao({"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","box-selection":"contain","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","overlay-corner-radius":"auto","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","underlay-corner-radius":"auto","text-metrics":"font","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","box-select-labels":"no","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","border-dash-pattern":[4,2],"border-dash-offset":0,"border-cap":"butt","border-join":"miter","border-position":"center","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","corner-radius":"auto","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%","pie-hole":0,"pie-start-angle":"0deg"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(m,b){for(var v=1;v<=Fg.pieBackgroundN;v++){var T=b.name.replace("{{i}}",v),C=b.value;m[T]=C}return m},{}),{"stripe-size":"100%","stripe-direction":"horizontal"},[{name:"stripe-{{i}}-background-color",value:"black"},{name:"stripe-{{i}}-background-size",value:"0%"},{name:"stripe-{{i}}-background-opacity",value:1}].reduce(function(m,b){for(var v=1;v<=Fg.stripeBackgroundN;v++){var T=b.name.replace("{{i}}",v),C=b.value;m[T]=C}return m},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-outline-width":0,"line-outline-color":"#000","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,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"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(m,b){return Fg.arrowPrefixes.forEach(function(v){var T=v+"-"+b.name,C=b.value;m[T]=C}),m},{})),a={},s=0;s<this.properties.length;s++){var l=this.properties[s];if(!l.pointsTo){var h=l.name,f=t[h],d=this.parse(h,f);a[h]=d}}return r.defaultProperties=a,r.defaultProperties};Fg.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};kke={};kke.parse=function(r,t,a,s){var l=this;if(Bd(t))return l.parseImplWarn(r,t,a,s);var h=s==="mapping"||s===!0||s===!1||s==null?"dontcare":s,f=a?"t":"f",d=""+t,m=_8r(r,d,f,h),b=l.propCache=l.propCache||[],v;return(v=b[m])||(v=b[m]=l.parseImplWarn(r,t,a,s)),(a||s==="mapping")&&(v=IS(v),v&&(v.value=IS(v.value))),v};kke.parseImplWarn=function(r,t,a,s){var l=this.parseImpl(r,t,a,s);return!l&&t!=null&&Uu("The style property `".concat(r,": ").concat(t,"` is invalid")),l&&(l.name==="width"||l.name==="height")&&t==="label"&&Uu("The style value of `label` is deprecated for `"+l.name+"`"),l};kke.parseImpl=function(r,t,a,s){var l=this;r=Fnt(r);var h=l.properties[r],f=t,d=l.types;if(!h||t===void 0)return null;h.alias&&(h=h.pointsTo,r=h.name);var m=Ps(t);m&&(t=t.trim());var b=h.type;if(!b)return null;if(a&&(t===""||t===null))return{name:r,value:t,bypass:!0,deleteBypass:!0};if(Bd(t))return{name:r,value:t,strValue:"fn",mapped:d.fn,bypass:a};var v,T;if(!(!m||s||t.length<7||t[1]!=="a")){if(t.length>=7&&t[0]==="d"&&(v=new RegExp(d.data.regex).exec(t))){if(a)return!1;var C=d.data;return{name:r,value:v,strValue:""+t,mapped:C,field:v[1],bypass:a}}else if(t.length>=10&&t[0]==="m"&&(T=new RegExp(d.mapData.regex).exec(t))){if(a||b.multiple)return!1;var E=d.mapData;if(!(b.color||b.number))return!1;var S=this.parse(r,T[4]);if(!S||S.mapped)return!1;var R=this.parse(r,T[5]);if(!R||R.mapped)return!1;if(S.pfValue===R.pfValue||S.strValue===R.strValue)return Uu("`"+r+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+r+": "+S.strValue+"`"),this.parse(r,S.strValue);if(b.color){var L=S.value,_=R.value,I=L[0]===_[0]&&L[1]===_[1]&&L[2]===_[2]&&(L[3]===_[3]||(L[3]==null||L[3]===1)&&(_[3]==null||_[3]===1));if(I)return!1}return{name:r,value:T,strValue:""+t,mapped:E,field:T[1],fieldMin:parseFloat(T[2]),fieldMax:parseFloat(T[3]),valueMin:S.value,valueMax:R.value,bypass:a}}}if(b.multiple&&s!=="multiple"){var N;if(m?N=t.split(/\s+/):zh(t)?N=t:N=[t],b.evenMultiple&&N.length%2!==0)return null;for(var B=[],O=[],P=[],$="",V=!1,Y=0;Y<N.length;Y++){var Q=l.parse(r,N[Y],a,"multiple");V=V||Ps(Q.value),B.push(Q.value),P.push(Q.pfValue!=null?Q.pfValue:Q.value),O.push(Q.units),$+=(Y>0?" ":"")+Q.strValue}return b.validate&&!b.validate(B,O)?null:b.singleEnum&&V?B.length===1&&Ps(B[0])?{name:r,value:B[0],strValue:B[0],bypass:a}:null:{name:r,value:B,pfValue:P,strValue:$,bypass:a,units:O}}var q=i(function(){for(var De=0;De<b.enums.length;De++){var Be=b.enums[De];if(Be===t)return{name:r,value:t,strValue:""+t,bypass:a}}return null},"checkEnums");if(b.number){var W,H="px";if(b.units&&(W=b.units),b.implicitUnits&&(H=b.implicitUnits),!b.unitless)if(m){var re="px|em"+(b.allowPercent?"|\\%":"");W&&(re=W);var Z=t.match("^("+_0+")("+re+")?$");Z&&(t=Z[1],W=Z[2]||H)}else(!W||b.implicitUnits)&&(W=H);if(t=parseFloat(t),isNaN(t)&&b.enums===void 0)return null;if(isNaN(t)&&b.enums!==void 0)return t=f,q();if(b.integer&&!iYn(t)||b.min!==void 0&&(t<b.min||b.strictMin&&t===b.min)||b.max!==void 0&&(t>b.max||b.strictMax&&t===b.max))return null;var X={name:r,value:t,strValue:""+t+(W||""),units:W,bypass:a};return b.unitless||W!=="px"&&W!=="em"?X.pfValue=t:X.pfValue=W==="px"||!W?t:this.getEmSizeInPixels()*t,(W==="ms"||W==="s")&&(X.pfValue=W==="ms"?t:1e3*t),(W==="deg"||W==="rad")&&(X.pfValue=W==="rad"?t:pXn(t)),W==="%"&&(X.pfValue=t/100),X}else if(b.propList){var te=[],U=""+t;if(U!=="none"){for(var ne=U.split(/\s*,\s*|\s+/),se=0;se<ne.length;se++){var he=ne[se].trim();l.properties[he]?te.push(he):Uu("`"+he+"` is not a valid property name")}if(te.length===0)return null}return{name:r,value:te,strValue:te.length===0?"none":te.join(" "),bypass:a}}else if(b.color){var le=k8r(t);return le?{name:r,value:le,pfValue:le,strValue:"rgb("+le[0]+","+le[1]+","+le[2]+")",bypass:a}:null}else if(b.regex||b.regexes){if(b.enums){var pe=q();if(pe)return pe}for(var ge=b.regexes?b.regexes:[b.regex],we=0;we<ge.length;we++){var Ae=new RegExp(ge[we]),ve=Ae.exec(t);if(ve)return{name:r,value:b.singleRegexMatchValue?ve[1]:ve,strValue:""+t,bypass:a}}return null}else return b.string?{name:r,value:""+t,strValue:""+t,bypass:a}:b.enums?q():null};Cm=i(function(t){if(!(this instanceof Cm))return new Cm(t);if(!Bnt(t)){td("A style must have a core reference");return}this._private={cy:t,coreStyle:{}},this.length=0,this.resetToDefault()},"Style"),vy=Cm.prototype;vy.instanceString=function(){return"style"};vy.clear=function(){for(var r=this._private,t=r.cy,a=t.elements(),s=0;s<this.length;s++)this[s]=void 0;return this.length=0,r.contextStyles={},r.propDiffs={},this.cleanElements(a,!0),a.forEach(function(l){var h=l[0]._private;h.styleDirty=!0,h.appliedInitStyle=!1}),this};vy.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this};vy.core=function(r){return this._private.coreStyle[r]||this.getDefaultProperty(r)};vy.selector=function(r){var t=r==="core"?null:new tD(r),a=this.length++;return this[a]={selector:t,properties:[],mappedProperties:[],index:a},this};vy.css=function(){var r=this,t=arguments;if(t.length===1)for(var a=t[0],s=0;s<r.properties.length;s++){var l=r.properties[s],h=a[l.name];h===void 0&&(h=a[cke(l.name)]),h!==void 0&&this.cssRule(l.name,h)}else t.length===2&&this.cssRule(t[0],t[1]);return this};vy.style=vy.css;vy.cssRule=function(r,t){var a=this.parse(r,t);if(a){var s=this.length-1;this[s].properties.push(a),this[s].properties[a.name]=a,a.name.match(/pie-(\d+)-background-size/)&&a.value&&(this._private.hasPie=!0),a.name.match(/stripe-(\d+)-background-size/)&&a.value&&(this._private.hasStripe=!0),a.mapped&&this[s].mappedProperties.push(a);var l=!this[s].selector;l&&(this._private.coreStyle[a.name]=a)}return this};vy.append=function(r){return w8r(r)?r.appendToStyle(this):zh(r)?this.appendFromJson(r):Ps(r)&&this.appendFromString(r),this};Cm.fromJson=function(r,t){var a=new Cm(r);return a.fromJson(t),a};Cm.fromString=function(r,t){return new Cm(r).fromString(t)};[Em,gie,Znt,MS,Tke,eit,Fg,kke].forEach(function(r){ao(vy,r)});Cm.types=vy.types;Cm.properties=vy.properties;Cm.propertyGroups=vy.propertyGroups;Cm.propertyGroupNames=vy.propertyGroupNames;Cm.propertyGroupKeys=vy.propertyGroupKeys;vQn={style:i(function(t){if(t){var a=this.setStyle(t);a.update()}return this._private.style},"style"),setStyle:i(function(t){var a=this._private;return w8r(t)?a.style=t.generateStyle(this):zh(t)?a.style=Cm.fromJson(this,t):Ps(t)?a.style=Cm.fromString(this,t):a.style=Cm(this),a.style},"setStyle"),updateStyle:i(function(){this.mutableElements().updateStyle()},"updateStyle")},wQn="single",kP={autolock:i(function(t){if(t!==void 0)this._private.autolock=!!t;else return this._private.autolock;return this},"autolock"),autoungrabify:i(function(t){if(t!==void 0)this._private.autoungrabify=!!t;else return this._private.autoungrabify;return this},"autoungrabify"),autounselectify:i(function(t){if(t!==void 0)this._private.autounselectify=!!t;else return this._private.autounselectify;return this},"autounselectify"),selectionType:i(function(t){var a=this._private;if(a.selectionType==null&&(a.selectionType=wQn),t!==void 0)(t==="additive"||t==="single")&&(a.selectionType=t);else return a.selectionType;return this},"selectionType"),panningEnabled:i(function(t){if(t!==void 0)this._private.panningEnabled=!!t;else return this._private.panningEnabled;return this},"panningEnabled"),userPanningEnabled:i(function(t){if(t!==void 0)this._private.userPanningEnabled=!!t;else return this._private.userPanningEnabled;return this},"userPanningEnabled"),zoomingEnabled:i(function(t){if(t!==void 0)this._private.zoomingEnabled=!!t;else return this._private.zoomingEnabled;return this},"zoomingEnabled"),userZoomingEnabled:i(function(t){if(t!==void 0)this._private.userZoomingEnabled=!!t;else return this._private.userZoomingEnabled;return this},"userZoomingEnabled"),boxSelectionEnabled:i(function(t){if(t!==void 0)this._private.boxSelectionEnabled=!!t;else return this._private.boxSelectionEnabled;return this},"boxSelectionEnabled"),pan:i(function(){var t=arguments,a=this._private.pan,s,l,h,f,d;switch(t.length){case 0:return a;case 1:if(Ps(t[0]))return s=t[0],a[s];if(Wc(t[0])){if(!this._private.panningEnabled)return this;h=t[0],f=h.x,d=h.y,ua(f)&&(a.x=f),ua(d)&&(a.y=d),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;s=t[0],l=t[1],(s==="x"||s==="y")&&ua(l)&&(a[s]=l),this.emit("pan viewport");break}return this.notify("viewport"),this},"pan"),panBy:i(function(t,a){var s=arguments,l=this._private.pan,h,f,d,m,b;if(!this._private.panningEnabled)return this;switch(s.length){case 1:Wc(t)&&(d=s[0],m=d.x,b=d.y,ua(m)&&(l.x+=m),ua(b)&&(l.y+=b),this.emit("pan viewport"));break;case 2:h=t,f=a,(h==="x"||h==="y")&&ua(f)&&(l[h]+=f),this.emit("pan viewport");break}return this.notify("viewport"),this},"panBy"),gc:i(function(){this.notify("gc")},"gc"),fit:i(function(t,a){var s=this.getFitViewport(t,a);if(s){var l=this._private;l.zoom=s.zoom,l.pan=s.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},"fit"),getFitViewport:i(function(t,a){if(ua(t)&&a===void 0&&(a=t,t=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var s;if(Ps(t)){var l=t;t=this.$(l)}else if(oYn(t)){var h=t;s={x1:h.x1,y1:h.y1,x2:h.x2,y2:h.y2},s.w=s.x2-s.x1,s.h=s.y2-s.y1}else sx(t)||(t=this.mutableElements());if(!(sx(t)&&t.empty())){s=s||t.boundingBox();var f=this.width(),d=this.height(),m;if(a=ua(a)?a:0,!isNaN(f)&&!isNaN(d)&&f>0&&d>0&&!isNaN(s.w)&&!isNaN(s.h)&&s.w>0&&s.h>0){m=Math.min((f-2*a)/s.w,(d-2*a)/s.h),m=m>this._private.maxZoom?this._private.maxZoom:m,m=m<this._private.minZoom?this._private.minZoom:m;var b={x:(f-m*(s.x1+s.x2))/2,y:(d-m*(s.y1+s.y2))/2};return{zoom:m,pan:b}}}}},"getFitViewport"),zoomRange:i(function(t,a){var s=this._private;if(a==null){var l=t;t=l.min,a=l.max}return ua(t)&&ua(a)&&t<=a?(s.minZoom=t,s.maxZoom=a):ua(t)&&a===void 0&&t<=s.maxZoom?s.minZoom=t:ua(a)&&t===void 0&&a>=s.minZoom&&(s.maxZoom=a),this},"zoomRange"),minZoom:i(function(t){return t===void 0?this._private.minZoom:this.zoomRange({min:t})},"minZoom"),maxZoom:i(function(t){return t===void 0?this._private.maxZoom:this.zoomRange({max:t})},"maxZoom"),getZoomedViewport:i(function(t){var a=this._private,s=a.pan,l=a.zoom,h,f,d=!1;if(a.zoomingEnabled||(d=!0),ua(t)?f=t:Wc(t)&&(f=t.level,t.position!=null?h=fke(t.position,l,s):t.renderedPosition!=null&&(h=t.renderedPosition),h!=null&&!a.panningEnabled&&(d=!0)),f=f>a.maxZoom?a.maxZoom:f,f=f<a.minZoom?a.minZoom:f,d||!ua(f)||f===l||h!=null&&(!ua(h.x)||!ua(h.y)))return null;if(h!=null){var m=s,b=l,v=f,T={x:-v/b*(h.x-m.x)+h.x,y:-v/b*(h.y-m.y)+h.y};return{zoomed:!0,panned:!0,zoom:v,pan:T}}else return{zoomed:!0,panned:!1,zoom:f,pan:s}},"getZoomedViewport"),zoom:i(function(t){if(t===void 0)return this._private.zoom;var a=this.getZoomedViewport(t),s=this._private;return a==null||!a.zoomed?this:(s.zoom=a.zoom,a.panned&&(s.pan.x=a.pan.x,s.pan.y=a.pan.y),this.emit("zoom"+(a.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},"zoom"),viewport:i(function(t){var a=this._private,s=!0,l=!0,h=[],f=!1,d=!1;if(!t)return this;if(ua(t.zoom)||(s=!1),Wc(t.pan)||(l=!1),!s&&!l)return this;if(s){var m=t.zoom;m<a.minZoom||m>a.maxZoom||!a.zoomingEnabled?f=!0:(a.zoom=m,h.push("zoom"))}if(l&&(!f||!t.cancelOnFailedZoom)&&a.panningEnabled){var b=t.pan;ua(b.x)&&(a.pan.x=b.x,d=!1),ua(b.y)&&(a.pan.y=b.y,d=!1),d||h.push("pan")}return h.length>0&&(h.push("viewport"),this.emit(h.join(" ")),this.notify("viewport")),this},"viewport"),center:i(function(t){var a=this.getCenterPan(t);return a&&(this._private.pan=a,this.emit("pan viewport"),this.notify("viewport")),this},"center"),getCenterPan:i(function(t,a){if(this._private.panningEnabled){if(Ps(t)){var s=t;t=this.mutableElements().filter(s)}else sx(t)||(t=this.mutableElements());if(t.length!==0){var l=t.boundingBox(),h=this.width(),f=this.height();a=a===void 0?this._private.zoom:a;var d={x:(h-a*(l.x1+l.x2))/2,y:(f-a*(l.y1+l.y2))/2};return d}}},"getCenterPan"),reset:i(function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},"reset"),invalidateSize:i(function(){this._private.sizeCache=null},"invalidateSize"),size:i(function(){var t=this._private,a=t.container,s=this;return t.sizeCache=t.sizeCache||(a?(function(){var l=s.window().getComputedStyle(a),h=i(function(d){return parseFloat(l.getPropertyValue(d))},"val");return{width:a.clientWidth-h("padding-left")-h("padding-right"),height:a.clientHeight-h("padding-top")-h("padding-bottom")}})():{width:1,height:1})},"size"),width:i(function(){return this.size().width},"width"),height:i(function(){return this.size().height},"height"),extent:i(function(){var t=this._private.pan,a=this._private.zoom,s=this.renderedExtent(),l={x1:(s.x1-t.x)/a,x2:(s.x2-t.x)/a,y1:(s.y1-t.y)/a,y2:(s.y2-t.y)/a};return l.w=l.x2-l.x1,l.h=l.y2-l.y1,l},"extent"),renderedExtent:i(function(){var t=this.width(),a=this.height();return{x1:0,y1:0,x2:t,y2:a,w:t,h:a}},"renderedExtent"),multiClickDebounceTime:i(function(t){if(t)this._private.multiClickDebounceTime=t;else return this._private.multiClickDebounceTime;return this},"multiClickDebounceTime")};kP.centre=kP.center;kP.autolockNodes=kP.autolock;kP.autoungrabifyNodes=kP.autoungrabify;iie={data:zu.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:zu.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:zu.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:zu.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};iie.attr=iie.data;iie.removeAttr=iie.removeData;aie=i(function(t){var a=this;t=ao({},t);var s=t.container;s&&!KTe(s)&&KTe(s[0])&&(s=s[0]);var l=s?s._cyreg:null;l=l||{},l&&l.cy&&(l.cy.destroy(),l={});var h=l.readies=l.readies||[];s&&(s._cyreg=l),l.cy=a;var f=L0!==void 0&&s!==void 0&&!t.headless,d=t;d.layout=ao({name:f?"grid":"null"},d.layout),d.renderer=ao({name:f?"canvas":"null"},d.renderer);var m=i(function(S,R,L){return R!==void 0?R:L!==void 0?L:S},"defVal"),b=this._private={container:s,ready:!1,options:d,elements:new g1(this),listeners:[],aniEles:new g1(this),data:d.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:m(!0,d.zoomingEnabled),userZoomingEnabled:m(!0,d.userZoomingEnabled),panningEnabled:m(!0,d.panningEnabled),userPanningEnabled:m(!0,d.userPanningEnabled),boxSelectionEnabled:m(!0,d.boxSelectionEnabled),autolock:m(!1,d.autolock,d.autolockNodes),autoungrabify:m(!1,d.autoungrabify,d.autoungrabifyNodes),autounselectify:m(!1,d.autounselectify),styleEnabled:d.styleEnabled===void 0?f:d.styleEnabled,zoom:ua(d.zoom)?d.zoom:1,pan:{x:Wc(d.pan)&&ua(d.pan.x)?d.pan.x:0,y:Wc(d.pan)&&ua(d.pan.y)?d.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:m(250,d.multiClickDebounceTime)};this.createEmitter(),this.selectionType(d.selectionType),this.zoomRange({min:d.minZoom,max:d.maxZoom});var v=i(function(S,R){var L=S.some(lYn);if(L)return yV.all(S).then(R);R(S)},"loadExtData");b.styleEnabled&&a.setStyle([]);var T=ao({},d,d.renderer);a.initRenderer(T);var C=i(function(S,R,L){a.notifications(!1);var _=a.mutableElements();_.length>0&&_.remove(),S!=null&&(Wc(S)||zh(S))&&a.add(S),a.one("layoutready",function(N){a.notifications(!0),a.emit(N),a.one("load",R),a.emitAndNotify("load")}).one("layoutstop",function(){a.one("done",L),a.emit("done")});var I=ao({},a._private.options.layout);I.eles=a.elements(),a.layout(I).run()},"setElesAndLayout");v([d.style,d.elements],function(E){var S=E[0],R=E[1];b.styleEnabled&&a.style().append(S),C(R,function(){a.startAnimationLoop(),b.ready=!0,Bd(d.ready)&&a.on("ready",d.ready);for(var L=0;L<h.length;L++){var _=h[L];a.on("ready",_)}l&&(l.readies=[]),a.emit("ready")},d.done)})},"Core"),nke=aie.prototype;ao(nke,{instanceString:i(function(){return"core"},"instanceString"),isReady:i(function(){return this._private.ready},"isReady"),destroyed:i(function(){return this._private.destroyed},"destroyed"),ready:i(function(t){return this.isReady()?this.emitter().emit("ready",[],t):this.on("ready",t),this},"ready"),destroy:i(function(){var t=this;if(!t.destroyed())return t.stopAnimationLoop(),t.destroyRenderer(),this.emit("destroy"),t._private.destroyed=!0,t},"destroy"),hasElementWithId:i(function(t){return this._private.elements.hasElementWithId(t)},"hasElementWithId"),getElementById:i(function(t){return this._private.elements.getElementById(t)},"getElementById"),hasCompoundNodes:i(function(){return this._private.hasCompoundNodes},"hasCompoundNodes"),headless:i(function(){return this._private.renderer.isHeadless()},"headless"),styleEnabled:i(function(){return this._private.styleEnabled},"styleEnabled"),addToPool:i(function(t){return this._private.elements.merge(t),this},"addToPool"),removeFromPool:i(function(t){return this._private.elements.unmerge(t),this},"removeFromPool"),container:i(function(){return this._private.container||null},"container"),window:i(function(){var t=this._private.container;if(t==null)return L0;var a=this._private.container.ownerDocument;return a===void 0||a==null?L0:a.defaultView||L0},"window"),mount:i(function(t){if(t!=null){var a=this,s=a._private,l=s.options;return!KTe(t)&&KTe(t[0])&&(t=t[0]),a.stopAnimationLoop(),a.destroyRenderer(),s.container=t,s.styleEnabled=!0,a.invalidateSize(),a.initRenderer(ao({},l,l.renderer,{name:l.renderer.name==="null"?"canvas":l.renderer.name})),a.startAnimationLoop(),a.style(l.style),a.emit("mount"),a}},"mount"),unmount:i(function(){var t=this;return t.stopAnimationLoop(),t.destroyRenderer(),t.initRenderer({name:"null"}),t.emit("unmount"),t},"unmount"),options:i(function(){return IS(this._private.options)},"options"),json:i(function(t){var a=this,s=a._private,l=a.mutableElements(),h=i(function(B){return a.getElementById(B.id())},"getFreshRef");if(Wc(t)){if(a.startBatch(),t.elements){var f={},d=i(function(B,O){for(var P=[],$=[],V=0;V<B.length;V++){var Y=B[V];if(!Y.data.id){Uu("cy.json() cannot handle elements without an ID attribute");continue}var Q=""+Y.data.id,q=a.getElementById(Q);f[Q]=!0,q.length!==0?$.push({ele:q,json:Y}):(O&&(Y.group=O),P.push(Y))}a.add(P);for(var W=0;W<$.length;W++){var H=$[W],re=H.ele,Z=H.json;re.json(Z)}},"updateEles");if(zh(t.elements))d(t.elements);else for(var m=["nodes","edges"],b=0;b<m.length;b++){var v=m[b],T=t.elements[v];zh(T)&&d(T,v)}var C=a.collection();l.filter(function(N){return!f[N.id()]}).forEach(function(N){N.isParent()?C.merge(N):N.remove()}),C.forEach(function(N){return N.children().move({parent:null})}),C.forEach(function(N){return h(N).remove()})}t.style&&a.style(t.style),t.zoom!=null&&t.zoom!==s.zoom&&a.zoom(t.zoom),t.pan&&(t.pan.x!==s.pan.x||t.pan.y!==s.pan.y)&&a.pan(t.pan),t.data&&a.data(t.data);for(var E=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],S=0;S<E.length;S++){var R=E[S];t[R]!=null&&a[R](t[R])}return a.endBatch(),this}else{var L=!!t,_={};L?_.elements=this.elements().map(function(N){return N.json()}):(_.elements={},l.forEach(function(N){var B=N.group();_.elements[B]||(_.elements[B]=[]),_.elements[B].push(N.json())})),this._private.styleEnabled&&(_.style=a.style().json()),_.data=IS(a.data());var I=s.options;return _.zoomingEnabled=s.zoomingEnabled,_.userZoomingEnabled=s.userZoomingEnabled,_.zoom=s.zoom,_.minZoom=s.minZoom,_.maxZoom=s.maxZoom,_.panningEnabled=s.panningEnabled,_.userPanningEnabled=s.userPanningEnabled,_.pan=IS(s.pan),_.boxSelectionEnabled=s.boxSelectionEnabled,_.renderer=IS(I.renderer),_.hideEdgesOnViewport=I.hideEdgesOnViewport,_.textureOnViewport=I.textureOnViewport,_.wheelSensitivity=I.wheelSensitivity,_.motionBlur=I.motionBlur,_.multiClickDebounceTime=I.multiClickDebounceTime,_}},"json")});nke.$id=nke.getElementById;[cQn,pQn,w7r,Ent,VTe,mQn,Snt,WTe,vQn,kP,iie].forEach(function(r){ao(nke,r)});xQn={fit:!0,directed:!1,direction:"downward",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:i(function(t,a){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:i(function(t,a){return a},"transform")},TQn={maximal:!1,acyclic:!1},ZU=i(function(t){return t.scratch("breadthfirst")},"getInfo"),zAr=i(function(t,a){return t.scratch("breadthfirst",a)},"setInfo");i(x7r,"BreadthFirstLayout");x7r.prototype.run=function(){var r=this.options,t=r.cy,a=r.eles,s=a.nodes().filter(function(ot){return ot.isChildless()}),l=a,h=r.directed,f=r.acyclic||r.maximal||r.maximalAdjustments>0,d=!!r.boundingBox,m=Ob(d?r.boundingBox:structuredClone(t.extent())),b;if(sx(r.roots))b=r.roots;else if(zh(r.roots)){for(var v=[],T=0;T<r.roots.length;T++){var C=r.roots[T],E=t.getElementById(C);v.push(E)}b=t.collection(v)}else if(Ps(r.roots))b=t.$(r.roots);else if(h)b=s.roots();else{var S=a.components();b=t.collection();for(var R=i(function(){var it=S[L],mt=it.maxDegree(!1),Rt=it.filter(function(pt){return pt.degree(!1)===mt});b=b.add(Rt)},"_loop"),L=0;L<S.length;L++)R()}var _=[],I={},N=i(function(it,mt){_[mt]==null&&(_[mt]=[]);var Rt=_[mt].length;_[mt].push(it),zAr(it,{index:Rt,depth:mt})},"addToDepth"),B=i(function(it,mt){var Rt=ZU(it),pt=Rt.depth,gt=Rt.index;_[pt][gt]=null,it.isChildless()&&N(it,mt)},"changeDepth");l.bfs({roots:b,directed:r.directed,visit:i(function(it,mt,Rt,pt,gt){var ut=it[0],Yt=ut.id();ut.isChildless()&&N(ut,gt),I[Yt]=!0},"visit")});for(var O=[],P=0;P<s.length;P++){var $=s[P];I[$.id()]||O.push($)}var V=i(function(it){for(var mt=_[it],Rt=0;Rt<mt.length;Rt++){var pt=mt[Rt];if(pt==null){mt.splice(Rt,1),Rt--;continue}zAr(pt,{depth:it,index:Rt})}},"assignDepthsAt"),Y=i(function(it,mt){for(var Rt=ZU(it),pt=it.incomers().filter(function(Te){return Te.isNode()&&a.has(Te)}),gt=-1,ut=it.id(),Yt=0;Yt<pt.length;Yt++){var Ye=pt[Yt],Oe=ZU(Ye);gt=Math.max(gt,Oe.depth)}if(Rt.depth<=gt){if(!r.acyclic&&mt[ut])return null;var K=gt+1;return B(it,K),mt[ut]=K,!0}return!1},"adjustMaximally");if(h&&f){var Q=[],q={},W=i(function(it){return Q.push(it)},"enqueue"),H=i(function(){return Q.shift()},"dequeue");for(s.forEach(function(ot){return Q.push(ot)});Q.length>0;){var re=H(),Z=Y(re,q);if(Z)re.outgoers().filter(function(ot){return ot.isNode()&&a.has(ot)}).forEach(W);else if(Z===null){Uu("Detected double maximal shift for node `"+re.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var X=0;if(r.avoidOverlap)for(var te=0;te<s.length;te++){var U=s[te],ne=U.layoutDimensions(r),se=ne.w,he=ne.h;X=Math.max(X,se,he)}var le={},pe=i(function(it){if(le[it.id()])return le[it.id()];for(var mt=ZU(it).depth,Rt=it.neighborhood(),pt=0,gt=0,ut=0;ut<Rt.length;ut++){var Yt=Rt[ut];if(!(Yt.isEdge()||Yt.isParent()||!s.has(Yt))){var Ye=ZU(Yt);if(Ye!=null){var Oe=Ye.index,K=Ye.depth;if(!(Oe==null||K==null)){var Te=_[K].length;K<mt&&(pt+=Oe/Te,gt++)}}}}return gt=Math.max(1,gt),pt=pt/gt,gt===0&&(pt=0),le[it.id()]=pt,pt},"getWeightedPercent"),ge=i(function(it,mt){var Rt=pe(it),pt=pe(mt),gt=Rt-pt;return gt===0?T8r(it.id(),mt.id()):gt},"sortFn");r.depthSort!==void 0&&(ge=r.depthSort);for(var we=_.length,Ae=0;Ae<we;Ae++)_[Ae].sort(ge),V(Ae);for(var ve=[],Ie=0;Ie<O.length;Ie++)ve.push(O[Ie]);var De=i(function(){for(var it=0;it<we;it++)V(it)},"assignDepths");ve.length&&(_.unshift(ve),we=_.length,De());for(var Be=0,Fe=0;Fe<we;Fe++)Be=Math.max(_[Fe].length,Be);var ze={x:m.x1+m.w/2,y:m.y1+m.h/2},vt=s.reduce(function(ot,it){return(function(mt){return{w:ot.w===-1?mt.w:(ot.w+mt.w)/2,h:ot.h===-1?mt.h:(ot.h+mt.h)/2}})(it.boundingBox({includeLabels:r.nodeDimensionsIncludeLabels}))},{w:-1,h:-1}),lt=Math.max(we===1?0:d?(m.h-r.padding*2-vt.h)/(we-1):(m.h-r.padding*2-vt.h)/(we+1),X),Ft=_.reduce(function(ot,it){return Math.max(ot,it.length)},0),pr=i(function(it){var mt=ZU(it),Rt=mt.depth,pt=mt.index;if(r.circle){var gt=Math.min(m.w/2/we,m.h/2/we);gt=Math.max(gt,X);var ut=gt*Rt+gt-(we>0&&_[0].length<=3?gt/2:0),Yt=2*Math.PI/_[Rt].length*pt;return Rt===0&&_[0].length===1&&(ut=1),{x:ze.x+ut*Math.cos(Yt),y:ze.y+ut*Math.sin(Yt)}}else{var Ye=_[Rt].length,Oe=Math.max(Ye===1?0:d?(m.w-r.padding*2-vt.w)/((r.grid?Ft:Ye)-1):(m.w-r.padding*2-vt.w)/((r.grid?Ft:Ye)+1),X),K={x:ze.x+(pt+1-(Ye+1)/2)*Oe,y:ze.y+(Rt+1-(we+1)/2)*lt};return K}},"getPositionTopBottom"),tr={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(tr).indexOf(r.direction)===-1&&td("Invalid direction '".concat(r.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(tr).join(", ")));var Mt=i(function(it){return BYn(pr(it),m,tr[r.direction])},"getPosition");return a.nodes().layoutPositions(this,r,Mt),this};kQn={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:i(function(t,a){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:i(function(t,a){return a},"transform")};i(T7r,"CircleLayout");T7r.prototype.run=function(){var r=this.options,t=r,a=r.cy,s=t.eles,l=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,h=s.nodes().not(":parent");t.sort&&(h=h.sort(t.sort));for(var f=Ob(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),d={x:f.x1+f.w/2,y:f.y1+f.h/2},m=t.sweep===void 0?2*Math.PI-2*Math.PI/h.length:t.sweep,b=m/Math.max(1,h.length-1),v,T=0,C=0;C<h.length;C++){var E=h[C],S=E.layoutDimensions(t),R=S.w,L=S.h;T=Math.max(T,R,L)}if(ua(t.radius)?v=t.radius:h.length<=1?v=0:v=Math.min(f.h,f.w)/2-T,h.length>1&&t.avoidOverlap){T*=1.75;var _=Math.cos(b)-Math.cos(0),I=Math.sin(b)-Math.sin(0),N=Math.sqrt(T*T/(_*_+I*I));v=Math.max(N,v)}var B=i(function(P,$){var V=t.startAngle+$*b*(l?1:-1),Y=v*Math.cos(V),Q=v*Math.sin(V),q={x:d.x+Y,y:d.y+Q};return q},"getPos");return s.nodes().layoutPositions(this,t,B),this};CQn={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:i(function(t){return t.degree()},"concentric"),levelWidth:i(function(t){return t.maxDegree()/4},"levelWidth"),animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:i(function(t,a){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:i(function(t,a){return a},"transform")};i(k7r,"ConcentricLayout");k7r.prototype.run=function(){for(var r=this.options,t=r,a=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,s=r.cy,l=t.eles,h=l.nodes().not(":parent"),f=Ob(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:s.width(),h:s.height()}),d={x:f.x1+f.w/2,y:f.y1+f.h/2},m=[],b=0,v=0;v<h.length;v++){var T=h[v],C=void 0;C=t.concentric(T),m.push({value:C,node:T}),T._private.scratch.concentric=C}h.updateStyle();for(var E=0;E<h.length;E++){var S=h[E],R=S.layoutDimensions(t);b=Math.max(b,R.w,R.h)}m.sort(function(lt,Ft){return Ft.value-lt.value});for(var L=t.levelWidth(h),_=[[]],I=_[0],N=0;N<m.length;N++){var B=m[N];if(I.length>0){var O=Math.abs(I[0].value-B.value);O>=L&&(I=[],_.push(I))}I.push(B)}var P=b+t.minNodeSpacing;if(!t.avoidOverlap){var $=_.length>0&&_[0].length>1,V=Math.min(f.w,f.h)/2-P,Y=V/(_.length+$?1:0);P=Math.min(P,Y)}for(var Q=0,q=0;q<_.length;q++){var W=_[q],H=t.sweep===void 0?2*Math.PI-2*Math.PI/W.length:t.sweep,re=W.dTheta=H/Math.max(1,W.length-1);if(W.length>1&&t.avoidOverlap){var Z=Math.cos(re)-Math.cos(0),X=Math.sin(re)-Math.sin(0),te=Math.sqrt(P*P/(Z*Z+X*X));Q=Math.max(te,Q)}W.r=Q,Q+=P}if(t.equidistant){for(var U=0,ne=0,se=0;se<_.length;se++){var he=_[se],le=he.r-ne;U=Math.max(U,le)}ne=0;for(var pe=0;pe<_.length;pe++){var ge=_[pe];pe===0&&(ne=ge.r),ge.r=ne,ne+=U}}for(var we={},Ae=0;Ae<_.length;Ae++)for(var ve=_[Ae],Ie=ve.dTheta,De=ve.r,Be=0;Be<ve.length;Be++){var Fe=ve[Be],ze=t.startAngle+(a?1:-1)*Ie*Be,vt={x:d.x+De*Math.cos(ze),y:d.y+De*Math.sin(ze)};we[Fe.node.id()]=vt}return l.nodes().layoutPositions(this,t,function(lt){var Ft=lt.id();return we[Ft]}),this};EQn={ready:i(function(){},"ready"),stop:i(function(){},"stop"),animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:i(function(t,a){return!0},"animateFilter"),animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:i(function(t){return 2048},"nodeRepulsion"),nodeOverlap:4,idealEdgeLength:i(function(t){return 32},"idealEdgeLength"),edgeElasticity:i(function(t){return 32},"edgeElasticity"),nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};i(Cke,"CoseLayout");Cke.prototype.run=function(){var r=this.options,t=r.cy,a=this;a.stopped=!1,(r.animate===!0||r.animate===!1)&&a.emit({type:"layoutstart",layout:a}),r.debug===!0?ont=!0:ont=!1;var s=SQn(t,a,r);ont&&RQn(s),r.randomize&&LQn(s);var l=QA(),h=i(function(){_Qn(s,t,r),r.fit===!0&&t.fit(r.padding)},"refresh"),f=i(function(C){return!(a.stopped||C>=r.numIter||(DQn(s,r),s.temperature=s.temperature*r.coolingFactor,s.temperature<r.minTemp))},"mainLoop"),d=i(function(){if(r.animate===!0||r.animate===!1)h(),a.one("layoutstop",r.stop),a.emit({type:"layoutstop",layout:a});else{var C=r.eles.nodes(),E=E7r(s,r,C);C.layoutPositions(a,r,E)}},"done"),m=0,b=!0;if(r.animate===!0){var v=i(function(){for(var C=0;b&&C<r.refresh;)b=f(m),m++,C++;if(!b)VAr(s,r),d();else{var E=QA();E-l>=r.animationThreshold&&h(),JTe(v)}},"frame");v()}else{for(;b;)b=f(m),m++;VAr(s,r),d()}return this};Cke.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};Cke.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};SQn=i(function(t,a,s){for(var l=s.eles.edges(),h=s.eles.nodes(),f=Ob(s.boundingBox?s.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),d={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:h.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:l.size(),temperature:s.initialTemp,clientWidth:f.w,clientHeight:f.h,boundingBox:f},m=s.eles.components(),b={},v=0;v<m.length;v++)for(var T=m[v],C=0;C<T.length;C++){var E=T[C];b[E.id()]=v}for(var v=0;v<d.nodeSize;v++){var S=h[v],R=S.layoutDimensions(s),L={};L.isLocked=S.locked(),L.id=S.data("id"),L.parentId=S.data("parent"),L.cmptId=b[S.id()],L.children=[],L.positionX=S.position("x"),L.positionY=S.position("y"),L.offsetX=0,L.offsetY=0,L.height=R.w,L.width=R.h,L.maxX=L.positionX+L.width/2,L.minX=L.positionX-L.width/2,L.maxY=L.positionY+L.height/2,L.minY=L.positionY-L.height/2,L.padLeft=parseFloat(S.style("padding")),L.padRight=parseFloat(S.style("padding")),L.padTop=parseFloat(S.style("padding")),L.padBottom=parseFloat(S.style("padding")),L.nodeRepulsion=Bd(s.nodeRepulsion)?s.nodeRepulsion(S):s.nodeRepulsion,d.layoutNodes.push(L),d.idToIndex[L.id]=v}for(var _=[],I=0,N=-1,B=[],v=0;v<d.nodeSize;v++){var S=d.layoutNodes[v],O=S.parentId;O!=null?d.layoutNodes[d.idToIndex[O]].children.push(S.id):(_[++N]=S.id,B.push(S.id))}for(d.graphSet.push(B);I<=N;){var P=_[I++],$=d.idToIndex[P],E=d.layoutNodes[$],V=E.children;if(V.length>0){d.graphSet.push(V);for(var v=0;v<V.length;v++)_[++N]=V[v]}}for(var v=0;v<d.graphSet.length;v++)for(var Y=d.graphSet[v],C=0;C<Y.length;C++){var Q=d.idToIndex[Y[C]];d.indexToGraph[Q]=v}for(var v=0;v<d.edgeSize;v++){var q=l[v],W={};W.id=q.data("id"),W.sourceId=q.data("source"),W.targetId=q.data("target");var H=Bd(s.idealEdgeLength)?s.idealEdgeLength(q):s.idealEdgeLength,re=Bd(s.edgeElasticity)?s.edgeElasticity(q):s.edgeElasticity,Z=d.idToIndex[W.sourceId],X=d.idToIndex[W.targetId],te=d.indexToGraph[Z],U=d.indexToGraph[X];if(te!=U){for(var ne=AQn(W.sourceId,W.targetId,d),se=d.graphSet[ne],he=0,L=d.layoutNodes[Z];se.indexOf(L.id)===-1;)L=d.layoutNodes[d.idToIndex[L.parentId]],he++;for(L=d.layoutNodes[X];se.indexOf(L.id)===-1;)L=d.layoutNodes[d.idToIndex[L.parentId]],he++;H*=he*s.nestingFactor}W.idealLength=H,W.elasticity=re,d.layoutEdges.push(W)}return d},"createLayoutInfo"),AQn=i(function(t,a,s){var l=C7r(t,a,0,s);return 2>l.count?0:l.graph},"findLCA"),C7r=i(function(t,a,s,l){var h=l.graphSet[s];if(-1<h.indexOf(t)&&-1<h.indexOf(a))return{count:2,graph:s};for(var f=0,d=0;d<h.length;d++){var m=h[d],b=l.idToIndex[m],v=l.layoutNodes[b].children;if(v.length!==0){var T=l.indexToGraph[l.idToIndex[v[0]]],C=C7r(t,a,T,l);if(C.count!==0)if(C.count===1){if(f++,f===2)break}else return C}}return{count:f,graph:s}},"findLCA_aux"),LQn=i(function(t,a){for(var s=t.clientWidth,l=t.clientHeight,h=0;h<t.nodeSize;h++){var f=t.layoutNodes[h];f.children.length===0&&!f.isLocked&&(f.positionX=Math.random()*s,f.positionY=Math.random()*l)}},"randomizePositions"),E7r=i(function(t,a,s){var l=t.boundingBox,h={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return a.boundingBox&&(s.forEach(function(f){var d=t.layoutNodes[t.idToIndex[f.data("id")]];h.x1=Math.min(h.x1,d.positionX),h.x2=Math.max(h.x2,d.positionX),h.y1=Math.min(h.y1,d.positionY),h.y2=Math.max(h.y2,d.positionY)}),h.w=h.x2-h.x1,h.h=h.y2-h.y1),function(f,d){var m=t.layoutNodes[t.idToIndex[f.data("id")]];if(a.boundingBox){var b=h.w===0?.5:(m.positionX-h.x1)/h.w,v=h.h===0?.5:(m.positionY-h.y1)/h.h;return{x:l.x1+b*l.w,y:l.y1+v*l.h}}else return{x:m.positionX,y:m.positionY}}},"getScaleInBoundsFn"),_Qn=i(function(t,a,s){var l=s.layout,h=s.eles.nodes(),f=E7r(t,s,h);h.positions(f),t.ready!==!0&&(t.ready=!0,l.one("layoutready",s.ready),l.emit({type:"layoutready",layout:this}))},"refreshPositions"),DQn=i(function(t,a,s){IQn(t,a),OQn(t),PQn(t,a),BQn(t),FQn(t)},"step"),IQn=i(function(t,a){for(var s=0;s<t.graphSet.length;s++)for(var l=t.graphSet[s],h=l.length,f=0;f<h;f++)for(var d=t.layoutNodes[t.idToIndex[l[f]]],m=f+1;m<h;m++){var b=t.layoutNodes[t.idToIndex[l[m]]];MQn(d,b,t,a)}},"calculateNodeForces"),UAr=i(function(t){return-t+2*t*Math.random()},"randomDistance"),MQn=i(function(t,a,s,l){var h=t.cmptId,f=a.cmptId;if(!(h!==f&&!s.isCompound)){var d=a.positionX-t.positionX,m=a.positionY-t.positionY,b=1;d===0&&m===0&&(d=UAr(b),m=UAr(b));var v=NQn(t,a,d,m);if(v>0)var T=l.nodeOverlap*v,C=Math.sqrt(d*d+m*m),E=T*d/C,S=T*m/C;else var R=ike(t,d,m),L=ike(a,-1*d,-1*m),_=L.x-R.x,I=L.y-R.y,N=_*_+I*I,C=Math.sqrt(N),T=(t.nodeRepulsion+a.nodeRepulsion)/N,E=T*_/C,S=T*I/C;t.isLocked||(t.offsetX-=E,t.offsetY-=S),a.isLocked||(a.offsetX+=E,a.offsetY+=S)}},"nodeRepulsion"),NQn=i(function(t,a,s,l){if(s>0)var h=t.maxX-a.minX;else var h=a.maxX-t.minX;if(l>0)var f=t.maxY-a.minY;else var f=a.maxY-t.minY;return h>=0&&f>=0?Math.sqrt(h*h+f*f):0},"nodesOverlap"),ike=i(function(t,a,s){var l=t.positionX,h=t.positionY,f=t.height||1,d=t.width||1,m=s/a,b=f/d,v={};return a===0&&0<s||a===0&&0>s?(v.x=l,v.y=h+f/2,v):0<a&&-1*b<=m&&m<=b?(v.x=l+d/2,v.y=h+d*s/2/a,v):0>a&&-1*b<=m&&m<=b?(v.x=l-d/2,v.y=h-d*s/2/a,v):0<s&&(m<=-1*b||m>=b)?(v.x=l+f*a/2/s,v.y=h+f/2,v):(0>s&&(m<=-1*b||m>=b)&&(v.x=l-f*a/2/s,v.y=h-f/2),v)},"findClippingPoint"),OQn=i(function(t,a){for(var s=0;s<t.edgeSize;s++){var l=t.layoutEdges[s],h=t.idToIndex[l.sourceId],f=t.layoutNodes[h],d=t.idToIndex[l.targetId],m=t.layoutNodes[d],b=m.positionX-f.positionX,v=m.positionY-f.positionY;if(!(b===0&&v===0)){var T=ike(f,b,v),C=ike(m,-1*b,-1*v),E=C.x-T.x,S=C.y-T.y,R=Math.sqrt(E*E+S*S),L=Math.pow(l.idealLength-R,2)/l.elasticity;if(R!==0)var _=L*E/R,I=L*S/R;else var _=0,I=0;f.isLocked||(f.offsetX+=_,f.offsetY+=I),m.isLocked||(m.offsetX-=_,m.offsetY-=I)}}},"calculateEdgeForces"),PQn=i(function(t,a){if(a.gravity!==0)for(var s=1,l=0;l<t.graphSet.length;l++){var h=t.graphSet[l],f=h.length;if(l===0)var d=t.clientHeight/2,m=t.clientWidth/2;else var b=t.layoutNodes[t.idToIndex[h[0]]],v=t.layoutNodes[t.idToIndex[b.parentId]],d=v.positionX,m=v.positionY;for(var T=0;T<f;T++){var C=t.layoutNodes[t.idToIndex[h[T]]];if(!C.isLocked){var E=d-C.positionX,S=m-C.positionY,R=Math.sqrt(E*E+S*S);if(R>s){var L=a.gravity*E/R,_=a.gravity*S/R;C.offsetX+=L,C.offsetY+=_}}}}},"calculateGravityForces"),BQn=i(function(t,a){var s=[],l=0,h=-1;for(s.push.apply(s,t.graphSet[0]),h+=t.graphSet[0].length;l<=h;){var f=s[l++],d=t.idToIndex[f],m=t.layoutNodes[d],b=m.children;if(0<b.length&&!m.isLocked){for(var v=m.offsetX,T=m.offsetY,C=0;C<b.length;C++){var E=t.layoutNodes[t.idToIndex[b[C]]];E.offsetX+=v,E.offsetY+=T,s[++h]=b[C]}m.offsetX=0,m.offsetY=0}}},"propagateForces"),FQn=i(function(t,a){for(var s=0;s<t.nodeSize;s++){var l=t.layoutNodes[s];0<l.children.length&&(l.maxX=void 0,l.minX=void 0,l.maxY=void 0,l.minY=void 0)}for(var s=0;s<t.nodeSize;s++){var l=t.layoutNodes[s];if(!(0<l.children.length||l.isLocked)){var h=$Qn(l.offsetX,l.offsetY,t.temperature);l.positionX+=h.x,l.positionY+=h.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,S7r(l,t)}}for(var s=0;s<t.nodeSize;s++){var l=t.layoutNodes[s];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)}},"updatePositions"),$Qn=i(function(t,a,s){var l=Math.sqrt(t*t+a*a);if(l>s)var h={x:s*t/l,y:s*a/l};else var h={x:t,y:a};return h},"limitForce"),S7r=i(function(t,a){var s=t.parentId;if(s!=null){var l=a.layoutNodes[a.idToIndex[s]],h=!1;if((l.maxX==null||t.maxX+l.padRight>l.maxX)&&(l.maxX=t.maxX+l.padRight,h=!0),(l.minX==null||t.minX-l.padLeft<l.minX)&&(l.minX=t.minX-l.padLeft,h=!0),(l.maxY==null||t.maxY+l.padBottom>l.maxY)&&(l.maxY=t.maxY+l.padBottom,h=!0),(l.minY==null||t.minY-l.padTop<l.minY)&&(l.minY=t.minY-l.padTop,h=!0),h)return S7r(l,a)}},"updateAncestryBoundaries"),VAr=i(function(t,a){for(var s=t.layoutNodes,l=[],h=0;h<s.length;h++){var f=s[h],d=f.cmptId,m=l[d]=l[d]||[];m.push(f)}for(var b=0,h=0;h<l.length;h++){var v=l[h];if(v){v.x1=1/0,v.x2=-1/0,v.y1=1/0,v.y2=-1/0;for(var T=0;T<v.length;T++){var C=v[T];v.x1=Math.min(v.x1,C.positionX-C.width/2),v.x2=Math.max(v.x2,C.positionX+C.width/2),v.y1=Math.min(v.y1,C.positionY-C.height/2),v.y2=Math.max(v.y2,C.positionY+C.height/2)}v.w=v.x2-v.x1,v.h=v.y2-v.y1,b+=v.w*v.h}}l.sort(function(I,N){return N.w*N.h-I.w*I.h});for(var E=0,S=0,R=0,L=0,_=Math.sqrt(b)*t.clientWidth/t.clientHeight,h=0;h<l.length;h++){var v=l[h];if(v){for(var T=0;T<v.length;T++){var C=v[T];C.isLocked||(C.positionX+=E-v.x1,C.positionY+=S-v.y1)}E+=v.w+a.componentSpacing,R+=v.w+a.componentSpacing,L=Math.max(L,v.h),R>_&&(S+=L+a.componentSpacing,E=0,R=0,L=0)}}},"separateComponents"),GQn={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:i(function(t){},"position"),sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:i(function(t,a){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:i(function(t,a){return a},"transform")};i(A7r,"GridLayout");A7r.prototype.run=function(){var r=this.options,t=r,a=r.cy,s=t.eles,l=s.nodes().not(":parent");t.sort&&(l=l.sort(t.sort));var h=Ob(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()});if(h.h===0||h.w===0)s.nodes().layoutPositions(this,t,function(pe){return{x:h.x1,y:h.y1}});else{var f=l.size(),d=Math.sqrt(f*h.h/h.w),m=Math.round(d),b=Math.round(h.w/h.h*d),v=i(function(ge){if(ge==null)return Math.min(m,b);var we=Math.min(m,b);we==m?m=ge:b=ge},"small"),T=i(function(ge){if(ge==null)return Math.max(m,b);var we=Math.max(m,b);we==m?m=ge:b=ge},"large"),C=t.rows,E=t.cols!=null?t.cols:t.columns;if(C!=null&&E!=null)m=C,b=E;else if(C!=null&&E==null)m=C,b=Math.ceil(f/m);else if(C==null&&E!=null)b=E,m=Math.ceil(f/b);else if(b*m>f){var S=v(),R=T();(S-1)*R>=f?v(S-1):(R-1)*S>=f&&T(R-1)}else for(;b*m<f;){var L=v(),_=T();(_+1)*L>=f?T(_+1):v(L+1)}var I=h.w/b,N=h.h/m;if(t.condense&&(I=0,N=0),t.avoidOverlap)for(var B=0;B<l.length;B++){var O=l[B],P=O._private.position;(P.x==null||P.y==null)&&(P.x=0,P.y=0);var $=O.layoutDimensions(t),V=t.avoidOverlapPadding,Y=$.w+V,Q=$.h+V;I=Math.max(I,Y),N=Math.max(N,Q)}for(var q={},W=i(function(ge,we){return!!q["c-"+ge+"-"+we]},"used"),H=i(function(ge,we){q["c-"+ge+"-"+we]=!0},"use"),re=0,Z=0,X=i(function(){Z++,Z>=b&&(Z=0,re++)},"moveToNextCell"),te={},U=0;U<l.length;U++){var ne=l[U],se=t.position(ne);if(se&&(se.row!==void 0||se.col!==void 0)){var he={row:se.row,col:se.col};if(he.col===void 0)for(he.col=0;W(he.row,he.col);)he.col++;else if(he.row===void 0)for(he.row=0;W(he.row,he.col);)he.row++;te[ne.id()]=he,H(he.row,he.col)}}var le=i(function(ge,we){var Ae,ve;if(ge.locked()||ge.isParent())return!1;var Ie=te[ge.id()];if(Ie)Ae=Ie.col*I+I/2+h.x1,ve=Ie.row*N+N/2+h.y1;else{for(;W(re,Z);)X();Ae=Z*I+I/2+h.x1,ve=re*N+N/2+h.y1,H(re,Z),X()}return{x:Ae,y:ve}},"getPos");l.layoutPositions(this,t,le)}return this};jQn={ready:i(function(){},"ready"),stop:i(function(){},"stop")};i(tit,"NullLayout");tit.prototype.run=function(){var r=this.options,t=r.eles,a=this;return r.cy,a.emit("layoutstart"),t.nodes().positions(function(){return{x:0,y:0}}),a.one("layoutready",r.ready),a.emit("layoutready"),a.one("layoutstop",r.stop),a.emit("layoutstop"),this};tit.prototype.stop=function(){return this};zQn={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:i(function(t,a){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:i(function(t,a){return a},"transform")};i(R7r,"PresetLayout");R7r.prototype.run=function(){var r=this.options,t=r.eles,a=t.nodes(),s=Bd(r.positions);function l(h){if(r.positions==null)return cXn(h.position());if(s)return r.positions(h);var f=r.positions[h._private.data.id];return f??null}return i(l,"getPosition"),a.layoutPositions(this,r,function(h,f){var d=l(h);return h.locked()||d==null?!1:d}),this};UQn={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:i(function(t,a){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:i(function(t,a){return a},"transform")};i(L7r,"RandomLayout");L7r.prototype.run=function(){var r=this.options,t=r.cy,a=r.eles,s=Ob(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),l=i(function(f,d){return{x:s.x1+Math.round(Math.random()*s.w),y:s.y1+Math.round(Math.random()*s.h)}},"getPos");return a.nodes().layoutPositions(this,r,l),this};VQn=[{name:"breadthfirst",impl:x7r},{name:"circle",impl:T7r},{name:"concentric",impl:k7r},{name:"cose",impl:Cke},{name:"grid",impl:A7r},{name:"null",impl:tit},{name:"preset",impl:R7r},{name:"random",impl:L7r}];i(_7r,"NullRenderer");WAr=i(function(){},"noop"),HAr=i(function(){throw new Error("A headless instance can not render images")},"throwImgErr");_7r.prototype={recalculateRenderedStyle:WAr,notify:i(function(){this.notifications++},"notify"),init:WAr,isHeadless:i(function(){return!0},"isHeadless"),png:HAr,jpg:HAr};rit={};rit.arrowShapeWidth=.3;rit.registerArrowShapes=function(){var r=this.arrowShapes={},t=this,a=i(function(b,v,T,C,E,S,R){var L=E.x-T/2-R,_=E.x+T/2+R,I=E.y-T/2-R,N=E.y+T/2+R,B=L<=b&&b<=_&&I<=v&&v<=N;return B},"bbCollide"),s=i(function(b,v,T,C,E){var S=b*Math.cos(C)-v*Math.sin(C),R=b*Math.sin(C)+v*Math.cos(C),L=S*T,_=R*T,I=L+E.x,N=_+E.y;return{x:I,y:N}},"transform"),l=i(function(b,v,T,C){for(var E=[],S=0;S<b.length;S+=2){var R=b[S],L=b[S+1];E.push(s(R,L,v,T,C))}return E},"transformPoints"),h=i(function(b){for(var v=[],T=0;T<b.length;T++){var C=b[T];v.push(C.x,C.y)}return v},"pointsToArr"),f=i(function(b){return b.pstyle("width").pfValue*b.pstyle("arrow-scale").pfValue*2},"standardGap"),d=i(function(b,v){Ps(v)&&(v=r[v]),r[b]=ao({name:b,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:i(function(C,E,S,R,L,_){var I=h(l(this.points,S+2*_,R,L)),N=b2(C,E,I);return N},"collide"),roughCollide:a,draw:i(function(C,E,S,R){var L=l(this.points,E,S,R);t.arrowShapeImpl("polygon")(C,L)},"draw"),spacing:i(function(C){return 0},"spacing"),gap:f},v)},"defineArrowShape");d("none",{collide:QTe,roughCollide:QTe,draw:jnt,spacing:s6r,gap:s6r}),d("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),d("arrow","triangle"),d("triangle-backcurve",{points:r.triangle.points,controlPoint:[0,-.15],roughCollide:a,draw:i(function(b,v,T,C,E){var S=l(this.points,v,T,C),R=this.controlPoint,L=s(R[0],R[1],v,T,C);t.arrowShapeImpl(this.name)(b,S,L)},"draw"),gap:i(function(b){return f(b)*.8},"gap")}),d("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:i(function(b,v,T,C,E,S,R){var L=h(l(this.points,T+2*R,C,E)),_=h(l(this.pointsTee,T+2*R,C,E)),I=b2(b,v,L)||b2(b,v,_);return I},"collide"),draw:i(function(b,v,T,C,E){var S=l(this.points,v,T,C),R=l(this.pointsTee,v,T,C);t.arrowShapeImpl(this.name)(b,S,R)},"draw")}),d("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:i(function(b,v,T,C,E,S,R){var L=E,_=Math.pow(L.x-b,2)+Math.pow(L.y-v,2)<=Math.pow((T+2*R)*this.radius,2),I=h(l(this.points,T+2*R,C,E));return b2(b,v,I)||_},"collide"),draw:i(function(b,v,T,C,E){var S=l(this.pointsTr,v,T,C);t.arrowShapeImpl(this.name)(b,S,C.x,C.y,this.radius*v)},"draw"),spacing:i(function(b){return t.getArrowWidth(b.pstyle("width").pfValue,b.pstyle("arrow-scale").value)*this.radius},"spacing")}),d("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:i(function(b,v){var T=this.baseCrossLinePts.slice(),C=v/b,E=3,S=5;return T[E]=T[E]-C,T[S]=T[S]-C,T},"crossLinePts"),collide:i(function(b,v,T,C,E,S,R){var L=h(l(this.points,T+2*R,C,E)),_=h(l(this.crossLinePts(T,S),T+2*R,C,E)),I=b2(b,v,L)||b2(b,v,_);return I},"collide"),draw:i(function(b,v,T,C,E){var S=l(this.points,v,T,C),R=l(this.crossLinePts(v,E),v,T,C);t.arrowShapeImpl(this.name)(b,S,R)},"draw")}),d("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:i(function(b){return f(b)*.525},"gap")}),d("circle",{radius:.15,collide:i(function(b,v,T,C,E,S,R){var L=E,_=Math.pow(L.x-b,2)+Math.pow(L.y-v,2)<=Math.pow((T+2*R)*this.radius,2);return _},"collide"),draw:i(function(b,v,T,C,E){t.arrowShapeImpl(this.name)(b,C.x,C.y,this.radius*v)},"draw"),spacing:i(function(b){return t.getArrowWidth(b.pstyle("width").pfValue,b.pstyle("arrow-scale").value)*this.radius},"spacing")}),d("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:i(function(b){return 1},"spacing"),gap:i(function(b){return 1},"gap")}),d("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),d("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:i(function(b){return b.pstyle("width").pfValue*b.pstyle("arrow-scale").value},"gap")}),d("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:i(function(b){return .95*b.pstyle("width").pfValue*b.pstyle("arrow-scale").value},"gap")})};EP={};EP.projectIntoViewport=function(r,t){var a=this.cy,s=this.findContainerClientCoords(),l=s[0],h=s[1],f=s[4],d=a.pan(),m=a.zoom(),b=((r-l)/f-d.x)/m,v=((t-h)/f-d.y)/m;return[b,v]};EP.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var r=this.container,t=r.getBoundingClientRect(),a=this.cy.window().getComputedStyle(r),s=i(function(_){return parseFloat(a.getPropertyValue(_))},"styleValue"),l={left:s("padding-left"),right:s("padding-right"),top:s("padding-top"),bottom:s("padding-bottom")},h={left:s("border-left-width"),right:s("border-right-width"),top:s("border-top-width"),bottom:s("border-bottom-width")},f=r.clientWidth,d=r.clientHeight,m=l.left+l.right,b=l.top+l.bottom,v=h.left+h.right,T=t.width/(f+v),C=f-m,E=d-b,S=t.left+l.left+h.left,R=t.top+l.top+h.top;return this.containerBB=[S,R,C,E,T]};EP.invalidateContainerClientCoordsCache=function(){this.containerBB=null};EP.findNearestElement=function(r,t,a,s){return this.findNearestElements(r,t,a,s)[0]};EP.findNearestElements=function(r,t,a,s){var l=this,h=this,f=h.getCachedZSortedEles(),d=[],m=h.cy.zoom(),b=h.cy.hasCompoundNodes(),v=(s?24:8)/m,T=(s?8:2)/m,C=(s?8:2)/m,E=1/0,S,R;a&&(f=f.interactive);function L($,V){if($.isNode()){if(R)return;R=$,d.push($)}if($.isEdge()&&(V==null||V<E))if(S){if(S.pstyle("z-compound-depth").value===$.pstyle("z-compound-depth").value&&S.pstyle("z-compound-depth").value===$.pstyle("z-compound-depth").value){for(var Y=0;Y<d.length;Y++)if(d[Y].isEdge()){d[Y]=$,S=$,E=V??E;break}}}else d.push($),S=$,E=V??E}i(L,"addEle");function _($){var V=$.outerWidth()+2*T,Y=$.outerHeight()+2*T,Q=V/2,q=Y/2,W=$.position(),H=$.pstyle("corner-radius").value==="auto"?"auto":$.pstyle("corner-radius").pfValue,re=$._private.rscratch;if(W.x-Q<=r&&r<=W.x+Q&&W.y-q<=t&&t<=W.y+q){var Z=h.nodeShapes[l.getNodeShape($)];if(Z.checkPoint(r,t,0,V,Y,W.x,W.y,H,re))return L($,0),!0}}i(_,"checkNode");function I($){var V=$._private,Y=V.rscratch,Q=$.pstyle("width").pfValue,q=$.pstyle("arrow-scale").value,W=Q/2+v,H=W*W,re=W*2,U=V.source,ne=V.target,Z;if(Y.edgeType==="segments"||Y.edgeType==="straight"||Y.edgeType==="haystack"){for(var X=Y.allpts,te=0;te+3<X.length;te+=2)if(kXn(r,t,X[te],X[te+1],X[te+2],X[te+3],re)&&H>(Z=RXn(r,t,X[te],X[te+1],X[te+2],X[te+3])))return L($,Z),!0}else if(Y.edgeType==="bezier"||Y.edgeType==="multibezier"||Y.edgeType==="self"||Y.edgeType==="compound"){for(var X=Y.allpts,te=0;te+5<Y.allpts.length;te+=4)if(CXn(r,t,X[te],X[te+1],X[te+2],X[te+3],X[te+4],X[te+5],re)&&H>(Z=AXn(r,t,X[te],X[te+1],X[te+2],X[te+3],X[te+4],X[te+5])))return L($,Z),!0}for(var U=U||V.source,ne=ne||V.target,se=l.getArrowWidth(Q,q),he=[{name:"source",x:Y.arrowStartX,y:Y.arrowStartY,angle:Y.srcArrowAngle},{name:"target",x:Y.arrowEndX,y:Y.arrowEndY,angle:Y.tgtArrowAngle},{name:"mid-source",x:Y.midX,y:Y.midY,angle:Y.midsrcArrowAngle},{name:"mid-target",x:Y.midX,y:Y.midY,angle:Y.midtgtArrowAngle}],te=0;te<he.length;te++){var le=he[te],pe=h.arrowShapes[$.pstyle(le.name+"-arrow-shape").value],ge=$.pstyle("width").pfValue;if(pe.roughCollide(r,t,se,le.angle,{x:le.x,y:le.y},ge,v)&&pe.collide(r,t,se,le.angle,{x:le.x,y:le.y},ge,v))return L($),!0}b&&d.length>0&&(_(U),_(ne))}i(I,"checkEdge");function N($,V,Y){return Nb($,V,Y)}i(N,"preprop");function B($,V){var Y=$._private,Q=C,q;V?q=V+"-":q="",$.boundingBox();var W=Y.labelBounds[V||"main"],H=$.pstyle(q+"label").value,re=$.pstyle("text-events").strValue==="yes";if(!(!re||!H)){var Z=N(Y.rscratch,"labelX",V),X=N(Y.rscratch,"labelY",V),te=N(Y.rscratch,"labelAngle",V),U=$.pstyle(q+"text-margin-x").pfValue,ne=$.pstyle(q+"text-margin-y").pfValue,se=W.x1-Q-U,he=W.x2+Q-U,le=W.y1-Q-ne,pe=W.y2+Q-ne;if(te){var ge=Math.cos(te),we=Math.sin(te),Ae=i(function(vt,lt){return vt=vt-Z,lt=lt-X,{x:vt*ge-lt*we+Z,y:vt*we+lt*ge+X}},"rotate"),ve=Ae(se,le),Ie=Ae(se,pe),De=Ae(he,le),Be=Ae(he,pe),Fe=[ve.x+U,ve.y+ne,De.x+U,De.y+ne,Be.x+U,Be.y+ne,Ie.x+U,Ie.y+ne];if(b2(r,t,Fe))return L($),!0}else if(Y_(W,r,t))return L($),!0}}i(B,"checkLabel");for(var O=f.length-1;O>=0;O--){var P=f[O];P.isNode()?_(P)||B(P):I(P)||B(P)||B(P,"source")||B(P,"target")}return d};EP.getAllInBox=function(r,t,a,s){var l=this.getCachedZSortedEles().interactive,h=this.cy.zoom(),f=2/h,d=[],m=Math.min(r,a),b=Math.max(r,a),v=Math.min(t,s),T=Math.max(t,s);r=m,a=b,t=v,s=T;var C=Ob({x1:r,y1:t,x2:a,y2:s}),E=[{x:C.x1,y:C.y1},{x:C.x2,y:C.y1},{x:C.x2,y:C.y2},{x:C.x1,y:C.y2}],S=[[E[0],E[1]],[E[1],E[2]],[E[2],E[3]],[E[3],E[0]]];function R(vt,lt,Ft){return Nb(vt,lt,Ft)}i(R,"preprop");function L(vt,lt){var Ft=vt._private,pr=f,tr="";vt.boundingBox();var Mt=Ft.labelBounds.main;if(!Mt)return null;var ot=R(Ft.rscratch,"labelX",lt),it=R(Ft.rscratch,"labelY",lt),mt=R(Ft.rscratch,"labelAngle",lt),Rt=vt.pstyle(tr+"text-margin-x").pfValue,pt=vt.pstyle(tr+"text-margin-y").pfValue,gt=Mt.x1-pr-Rt,ut=Mt.x2+pr-Rt,Yt=Mt.y1-pr-pt,Ye=Mt.y2+pr-pt;if(mt){var Oe=Math.cos(mt),K=Math.sin(mt),Te=i(function(Re,me){return Re=Re-ot,me=me-it,{x:Re*Oe-me*K+ot,y:Re*K+me*Oe+it}},"rotate");return[Te(gt,Yt),Te(ut,Yt),Te(ut,Ye),Te(gt,Ye)]}else return[{x:gt,y:Yt},{x:ut,y:Yt},{x:ut,y:Ye},{x:gt,y:Ye}]}i(L,"getRotatedLabelBox");function _(vt,lt,Ft,pr){function tr(Mt,ot,it){return(it.y-Mt.y)*(ot.x-Mt.x)>(ot.y-Mt.y)*(it.x-Mt.x)}return i(tr,"ccw"),tr(vt,Ft,pr)!==tr(lt,Ft,pr)&&tr(vt,lt,Ft)!==tr(vt,lt,pr)}i(_,"doLinesIntersect");for(var I=0;I<l.length;I++){var N=l[I];if(N.isNode()){var B=N,O=B.pstyle("text-events").strValue==="yes",P=B.pstyle("box-selection").strValue,$=B.pstyle("box-select-labels").strValue==="yes";if(P==="none")continue;var V=(P==="overlap"||$)&&O,Y=B.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:V});if(P==="contain"){var Q=!1;if($&&O){var q=L(B);q&&art(q,E)&&(d.push(B),Q=!0)}!Q&&B8r(C,Y)&&d.push(B)}else if(P==="overlap"&&Wnt(C,Y)){var W=B.boundingBox({includeNodes:!0,includeEdges:!0,includeLabels:!1,includeMainLabels:!1,includeSourceLabels:!1,includeTargetLabels:!1}),H=[{x:W.x1,y:W.y1},{x:W.x2,y:W.y1},{x:W.x2,y:W.y2},{x:W.x1,y:W.y2}];if(art(H,E))d.push(B);else{var re=L(B);re&&art(re,E)&&d.push(B)}}}else{var Z=N,X=Z._private,te=X.rscratch,U=Z.pstyle("box-selection").strValue;if(U==="none")continue;if(U==="contain"){if(te.startX!=null&&te.startY!=null&&!Y_(C,te.startX,te.startY)||te.endX!=null&&te.endY!=null&&!Y_(C,te.endX,te.endY))continue;if(te.edgeType==="bezier"||te.edgeType==="multibezier"||te.edgeType==="self"||te.edgeType==="compound"||te.edgeType==="segments"||te.edgeType==="haystack"){for(var ne=X.rstyle.bezierPts||X.rstyle.linePts||X.rstyle.haystackPts,se=!0,he=0;he<ne.length;he++)if(!h6r(C,ne[he])){se=!1;break}se&&d.push(Z)}else te.edgeType==="straight"&&d.push(Z)}else if(U==="overlap"){var le=!1;if(te.startX!=null&&te.startY!=null&&te.endX!=null&&te.endY!=null&&(Y_(C,te.startX,te.startY)||Y_(C,te.endX,te.endY)))d.push(Z),le=!0;else if(!le&&te.edgeType==="haystack"){for(var pe=X.rstyle.haystackPts,ge=0;ge<pe.length;ge++)if(h6r(C,pe[ge])){d.push(Z),le=!0;break}}if(!le){var we=X.rstyle.bezierPts||X.rstyle.linePts||X.rstyle.haystackPts;if((!we||we.length<2)&&te.edgeType==="straight"&&te.startX!=null&&te.startY!=null&&te.endX!=null&&te.endY!=null&&(we=[{x:te.startX,y:te.startY},{x:te.endX,y:te.endY}]),!we||we.length<2)continue;for(var Ae=0;Ae<we.length-1;Ae++){for(var ve=we[Ae],Ie=we[Ae+1],De=0;De<S.length;De++){var Be=$g(S[De],2),Fe=Be[0],ze=Be[1];if(_(ve,Ie,Fe,ze)){d.push(Z),le=!0;break}}if(le)break}}}}}return d};ake={};ake.calculateArrowAngles=function(r){var t=r._private.rscratch,a=t.edgeType==="haystack",s=t.edgeType==="bezier",l=t.edgeType==="multibezier",h=t.edgeType==="segments",f=t.edgeType==="compound",d=t.edgeType==="self",m,b,v,T,C,E,_,I;if(a?(v=t.haystackPts[0],T=t.haystackPts[1],C=t.haystackPts[2],E=t.haystackPts[3]):(v=t.arrowStartX,T=t.arrowStartY,C=t.arrowEndX,E=t.arrowEndY),_=t.midX,I=t.midY,h)m=v-t.segpts[0],b=T-t.segpts[1];else if(l||f||d||s){var S=t.allpts,R=km(S[0],S[2],S[4],.1),L=km(S[1],S[3],S[5],.1);m=v-R,b=T-L}else m=v-_,b=T-I;t.srcArrowAngle=ATe(m,b);var _=t.midX,I=t.midY;if(a&&(_=(v+C)/2,I=(T+E)/2),m=C-v,b=E-T,h){var S=t.allpts;if(S.length/2%2===0){var N=S.length/2,B=N-2;m=S[N]-S[B],b=S[N+1]-S[B+1]}else if(t.isRound)m=t.midVector[1],b=-t.midVector[0];else{var N=S.length/2-1,B=N-2;m=S[N]-S[B],b=S[N+1]-S[B+1]}}else if(l||f||d){var S=t.allpts,O=t.ctrlpts,P,$,V,Y;if(O.length/2%2===0){var Q=S.length/2-1,q=Q+2,W=q+2;P=km(S[Q],S[q],S[W],0),$=km(S[Q+1],S[q+1],S[W+1],0),V=km(S[Q],S[q],S[W],1e-4),Y=km(S[Q+1],S[q+1],S[W+1],1e-4)}else{var q=S.length/2-1,Q=q-2,W=q+2;P=km(S[Q],S[q],S[W],.4999),$=km(S[Q+1],S[q+1],S[W+1],.4999),V=km(S[Q],S[q],S[W],.5),Y=km(S[Q+1],S[q+1],S[W+1],.5)}m=V-P,b=Y-$}if(t.midtgtArrowAngle=ATe(m,b),t.midDispX=m,t.midDispY=b,m*=-1,b*=-1,h){var S=t.allpts;if(S.length/2%2!==0){if(!t.isRound){var N=S.length/2-1,H=N+2;m=-(S[H]-S[N]),b=-(S[H+1]-S[N+1])}}}if(t.midsrcArrowAngle=ATe(m,b),h)m=C-t.segpts[t.segpts.length-2],b=E-t.segpts[t.segpts.length-1];else if(l||f||d||s){var S=t.allpts,re=S.length,R=km(S[re-6],S[re-4],S[re-2],.9),L=km(S[re-5],S[re-3],S[re-1],.9);m=C-R,b=E-L}else m=C-_,b=E-I;t.tgtArrowAngle=ATe(m,b)};ake.getArrowWidth=ake.getArrowHeight=function(r,t){var a=this.arrowWidthCache=this.arrowWidthCache||{},s=a[r+", "+t];return s||(s=Math.max(Math.pow(r*13.37,.9),29)*t,a[r+", "+t]=s,s)};_S={},tk={},KAr=i(function(t,a,s){s.x=a.x-t.x,s.y=a.y-t.y,s.len=Math.sqrt(s.x*s.x+s.y*s.y),s.nx=s.x/s.len,s.ny=s.y/s.len,s.ang=Math.atan2(s.ny,s.nx)},"asVec"),WQn=i(function(t,a){a.x=t.x*-1,a.y=t.y*-1,a.nx=t.nx*-1,a.ny=t.ny*-1,a.ang=t.ang>0?-(Math.PI-t.ang):Math.PI+t.ang},"invertVec"),HQn=i(function(t,a,s,l,h){if(t!==XAr?KAr(a,t,_S):WQn(tk,_S),KAr(a,s,tk),qAr=_S.nx*tk.ny-_S.ny*tk.nx,YAr=_S.nx*tk.nx-_S.ny*-tk.ny,KA=Math.asin(Math.max(-1,Math.min(1,qAr))),Math.abs(KA)<1e-6){Ant=a.x,Rnt=a.y,mP=eV=0;return}bP=1,HTe=!1,YAr<0?KA<0?KA=Math.PI+KA:(KA=Math.PI-KA,bP=-1,HTe=!0):KA>0&&(bP=-1,HTe=!0),a.radius!==void 0?eV=a.radius:eV=l,fP=KA/2,OTe=Math.min(_S.len/2,tk.len/2),h?(RS=Math.abs(Math.cos(fP)*eV/Math.sin(fP)),RS>OTe?(RS=OTe,mP=Math.abs(RS*Math.sin(fP)/Math.cos(fP))):mP=eV):(RS=Math.min(OTe,eV),mP=Math.abs(RS*Math.sin(fP)/Math.cos(fP))),Lnt=a.x+tk.nx*RS,_nt=a.y+tk.ny*RS,Ant=Lnt-tk.ny*mP*bP,Rnt=_nt+tk.nx*mP*bP,D7r=a.x+_S.nx*RS,I7r=a.y+_S.ny*RS,XAr=a},"calcCornerArc");i(M7r,"drawPreparedRoundCorner");i(nit,"getRoundCorner");sie=.01,qQn=Math.sqrt(2*sie),wy={};wy.findMidptPtsEtc=function(r,t){var a=t.posPts,s=t.intersectionPts,l=t.vectorNormInverse,h,f=r.pstyle("source-endpoint"),d=r.pstyle("target-endpoint"),m=f.units!=null&&d.units!=null,b=i(function(O,P,$,V){var Y=V-P,Q=$-O,q=Math.sqrt(Q*Q+Y*Y);return{x:-Y/q,y:Q/q}},"recalcVectorNormInverse"),v=r.pstyle("edge-distances").value;switch(v){case"node-position":h=a;break;case"intersection":h=s;break;case"endpoints":{if(m){var T=this.manualEndptToPx(r.source()[0],f),C=$g(T,2),E=C[0],S=C[1],R=this.manualEndptToPx(r.target()[0],d),L=$g(R,2),_=L[0],I=L[1],N={x1:E,y1:S,x2:_,y2:I};l=b(E,S,_,I),h=N}else Uu("Edge ".concat(r.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),h=s;break}}return{midptPts:h,vectorNormInverse:l}};wy.findHaystackPoints=function(r){for(var t=0;t<r.length;t++){var a=r[t],s=a._private,l=s.rscratch;if(!l.haystack){var h=Math.random()*2*Math.PI;l.source={x:Math.cos(h),y:Math.sin(h)},h=Math.random()*2*Math.PI,l.target={x:Math.cos(h),y:Math.sin(h)}}var f=s.source,d=s.target,m=f.position(),b=d.position(),v=f.width(),T=d.width(),C=f.height(),E=d.height(),S=a.pstyle("haystack-radius").value,R=S/2;l.haystackPts=l.allpts=[l.source.x*v*R+m.x,l.source.y*C*R+m.y,l.target.x*T*R+b.x,l.target.y*E*R+b.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(a),this.calculateArrowAngles(a),this.recalculateEdgeLabelProjections(a),this.calculateLabelAngles(a)}};wy.findSegmentsPoints=function(r,t){var a=r._private.rscratch,s=r.pstyle("segment-weights"),l=r.pstyle("segment-distances"),h=r.pstyle("segment-radii"),f=r.pstyle("radius-type"),d=Math.min(s.pfValue.length,l.pfValue.length),m=h.pfValue[h.pfValue.length-1],b=f.pfValue[f.pfValue.length-1];a.edgeType="segments",a.segpts=[],a.radii=[],a.isArcRadius=[];for(var v=0;v<d;v++){var T=s.pfValue[v],C=l.pfValue[v],E=1-T,S=T,R=this.findMidptPtsEtc(r,t),L=R.midptPts,_=R.vectorNormInverse,I={x:L.x1*E+L.x2*S,y:L.y1*E+L.y2*S};a.segpts.push(I.x+_.x*C,I.y+_.y*C),a.radii.push(h.pfValue[v]!==void 0?h.pfValue[v]:m),a.isArcRadius.push((f.pfValue[v]!==void 0?f.pfValue[v]:b)==="arc-radius")}};wy.findLoopPoints=function(r,t,a,s){var l=r._private.rscratch,h=t.dirCounts,f=t.srcPos,d=r.pstyle("control-point-distances"),m=d?d.pfValue[0]:void 0,b=r.pstyle("loop-direction").pfValue,v=r.pstyle("loop-sweep").pfValue,T=r.pstyle("control-point-step-size").pfValue;l.edgeType="self";var C=a,E=T;s&&(C=0,E=m);var S=b-Math.PI/2,R=S-v/2,L=S+v/2,_=b+"_"+v;C=h[_]===void 0?h[_]=0:++h[_],l.ctrlpts=[f.x+Math.cos(R)*1.4*E*(C/3+1),f.y+Math.sin(R)*1.4*E*(C/3+1),f.x+Math.cos(L)*1.4*E*(C/3+1),f.y+Math.sin(L)*1.4*E*(C/3+1)]};wy.findCompoundLoopPoints=function(r,t,a,s){var l=r._private.rscratch;l.edgeType="compound";var h=t.srcPos,f=t.tgtPos,d=t.srcW,m=t.srcH,b=t.tgtW,v=t.tgtH,T=r.pstyle("control-point-step-size").pfValue,C=r.pstyle("control-point-distances"),E=C?C.pfValue[0]:void 0,S=a,R=T;s&&(S=0,R=E);var L=50,_={x:h.x-d/2,y:h.y-m/2},I={x:f.x-b/2,y:f.y-v/2},N={x:Math.min(_.x,I.x),y:Math.min(_.y,I.y)},B=.5,O=Math.max(B,Math.log(d*sie)),P=Math.max(B,Math.log(b*sie));l.ctrlpts=[N.x,N.y-(1+Math.pow(L,1.12)/100)*R*(S/3+1)*O,N.x-(1+Math.pow(L,1.12)/100)*R*(S/3+1)*P,N.y]};wy.findStraightEdgePoints=function(r){r._private.rscratch.edgeType="straight"};wy.findBezierPoints=function(r,t,a,s,l){var h=r._private.rscratch,f=r.pstyle("control-point-step-size").pfValue,d=r.pstyle("control-point-distances"),m=r.pstyle("control-point-weights"),b=d&&m?Math.min(d.value.length,m.value.length):1,v=d?d.pfValue[0]:void 0,T=m.value[0],C=s;h.edgeType=C?"multibezier":"bezier",h.ctrlpts=[];for(var E=0;E<b;E++){var S=(.5-t.eles.length/2+a)*f*(l?-1:1),R=void 0,L=Vnt(S);C&&(v=d?d.pfValue[E]:f,T=m.value[E]),s?R=v:R=v!==void 0?L*v:void 0;var _=R!==void 0?R:S,I=1-T,N=T,B=this.findMidptPtsEtc(r,t),O=B.midptPts,P=B.vectorNormInverse,$={x:O.x1*I+O.x2*N,y:O.y1*I+O.y2*N};h.ctrlpts.push($.x+P.x*_,$.y+P.y*_)}};wy.findTaxiPoints=function(r,t){var a=r._private.rscratch;a.edgeType="segments";var s="vertical",l="horizontal",h="leftward",f="rightward",d="downward",m="upward",b="auto",v=t.posPts,T=t.srcW,C=t.srcH,E=t.tgtW,S=t.tgtH,R=r.pstyle("edge-distances").value,L=R!=="node-position",_=r.pstyle("taxi-direction").value,I=_,N=r.pstyle("taxi-turn"),B=N.units==="%",O=N.pfValue,P=O<0,$=r.pstyle("taxi-turn-min-distance").pfValue,V=L?(T+E)/2:0,Y=L?(C+S)/2:0,Q=v.x2-v.x1,q=v.y2-v.y1,W=i(function(me,be){return me>0?Math.max(me-be,0):Math.min(me+be,0)},"subDWH"),H=W(Q,V),re=W(q,Y),Z=!1;I===b?_=Math.abs(H)>Math.abs(re)?l:s:I===m||I===d?(_=s,Z=!0):(I===h||I===f)&&(_=l,Z=!0);var X=_===s,te=X?re:H,U=X?q:Q,ne=Vnt(U),se=!1;!(Z&&(B||P))&&(I===d&&U<0||I===m&&U>0||I===h&&U>0||I===f&&U<0)&&(ne*=-1,te=ne*Math.abs(te),se=!0);var he;if(B){var le=O<0?1+O:O;he=le*te}else{var pe=O<0?te:0;he=pe+O*ne}var ge=i(function(me){return Math.abs(me)<$||Math.abs(me)>=Math.abs(te)},"getIsTooClose"),we=ge(he),Ae=ge(Math.abs(te)-Math.abs(he)),ve=we||Ae;if(ve&&!se)if(X){var Ie=Math.abs(U)<=C/2,De=Math.abs(Q)<=E/2;if(Ie){var Be=(v.x1+v.x2)/2,Fe=v.y1,ze=v.y2;a.segpts=[Be,Fe,Be,ze]}else if(De){var vt=(v.y1+v.y2)/2,lt=v.x1,Ft=v.x2;a.segpts=[lt,vt,Ft,vt]}else a.segpts=[v.x1,v.y2]}else{var pr=Math.abs(U)<=T/2,tr=Math.abs(q)<=S/2;if(pr){var Mt=(v.y1+v.y2)/2,ot=v.x1,it=v.x2;a.segpts=[ot,Mt,it,Mt]}else if(tr){var mt=(v.x1+v.x2)/2,Rt=v.y1,pt=v.y2;a.segpts=[mt,Rt,mt,pt]}else a.segpts=[v.x2,v.y1]}else if(X){var gt=v.y1+he+(L?C/2*ne:0),ut=v.x1,Yt=v.x2;a.segpts=[ut,gt,Yt,gt]}else{var Ye=v.x1+he+(L?T/2*ne:0),Oe=v.y1,K=v.y2;a.segpts=[Ye,Oe,Ye,K]}if(a.isRound){var Te=r.pstyle("taxi-radius").value,ce=r.pstyle("radius-type").value[0]==="arc-radius";a.radii=new Array(a.segpts.length/2).fill(Te),a.isArcRadius=new Array(a.segpts.length/2).fill(ce)}};wy.tryToCorrectInvalidPoints=function(r,t){var a=r._private.rscratch;if(a.edgeType==="bezier"){var s=t.srcPos,l=t.tgtPos,h=t.srcW,f=t.srcH,d=t.tgtW,m=t.tgtH,b=t.srcShape,v=t.tgtShape,T=t.srcCornerRadius,C=t.tgtCornerRadius,E=t.srcRs,S=t.tgtRs,R=!ua(a.startX)||!ua(a.startY),L=!ua(a.arrowStartX)||!ua(a.arrowStartY),_=!ua(a.endX)||!ua(a.endY),I=!ua(a.arrowEndX)||!ua(a.arrowEndY),N=3,B=this.getArrowWidth(r.pstyle("width").pfValue,r.pstyle("arrow-scale").value)*this.arrowShapeWidth,O=N*B,P=xP({x:a.ctrlpts[0],y:a.ctrlpts[1]},{x:a.startX,y:a.startY}),$=P<O,V=xP({x:a.ctrlpts[0],y:a.ctrlpts[1]},{x:a.endX,y:a.endY}),Y=V<O,Q=!1;if(R||L||$){Q=!0;var q={x:a.ctrlpts[0]-s.x,y:a.ctrlpts[1]-s.y},W=Math.sqrt(q.x*q.x+q.y*q.y),H={x:q.x/W,y:q.y/W},re=Math.max(h,f),Z={x:a.ctrlpts[0]+H.x*2*re,y:a.ctrlpts[1]+H.y*2*re},X=b.intersectLine(s.x,s.y,h,f,Z.x,Z.y,0,T,E);$?(a.ctrlpts[0]=a.ctrlpts[0]+H.x*(O-P),a.ctrlpts[1]=a.ctrlpts[1]+H.y*(O-P)):(a.ctrlpts[0]=X[0]+H.x*O,a.ctrlpts[1]=X[1]+H.y*O)}if(_||I||Y){Q=!0;var te={x:a.ctrlpts[0]-l.x,y:a.ctrlpts[1]-l.y},U=Math.sqrt(te.x*te.x+te.y*te.y),ne={x:te.x/U,y:te.y/U},se=Math.max(h,f),he={x:a.ctrlpts[0]+ne.x*2*se,y:a.ctrlpts[1]+ne.y*2*se},le=v.intersectLine(l.x,l.y,d,m,he.x,he.y,0,C,S);Y?(a.ctrlpts[0]=a.ctrlpts[0]+ne.x*(O-V),a.ctrlpts[1]=a.ctrlpts[1]+ne.y*(O-V)):(a.ctrlpts[0]=le[0]+ne.x*O,a.ctrlpts[1]=le[1]+ne.y*O)}Q&&this.findEndpoints(r)}};wy.storeAllpts=function(r){var t=r._private.rscratch;if(t.edgeType==="multibezier"||t.edgeType==="bezier"||t.edgeType==="self"||t.edgeType==="compound"){t.allpts=[],t.allpts.push(t.startX,t.startY);for(var a=0;a+1<t.ctrlpts.length;a+=2)t.allpts.push(t.ctrlpts[a],t.ctrlpts[a+1]),a+3<t.ctrlpts.length&&t.allpts.push((t.ctrlpts[a]+t.ctrlpts[a+2])/2,(t.ctrlpts[a+1]+t.ctrlpts[a+3])/2);t.allpts.push(t.endX,t.endY);var s,l;t.ctrlpts.length/2%2===0?(s=t.allpts.length/2-1,t.midX=t.allpts[s],t.midY=t.allpts[s+1]):(s=t.allpts.length/2-3,l=.5,t.midX=km(t.allpts[s],t.allpts[s+2],t.allpts[s+4],l),t.midY=km(t.allpts[s+1],t.allpts[s+3],t.allpts[s+5],l))}else if(t.edgeType==="straight")t.allpts=[t.startX,t.startY,t.endX,t.endY],t.midX=(t.startX+t.endX+t.arrowStartX+t.arrowEndX)/4,t.midY=(t.startY+t.endY+t.arrowStartY+t.arrowEndY)/4;else if(t.edgeType==="segments"){if(t.allpts=[],t.allpts.push(t.startX,t.startY),t.allpts.push.apply(t.allpts,t.segpts),t.allpts.push(t.endX,t.endY),t.isRound){t.roundCorners=[];for(var h=2;h+3<t.allpts.length;h+=2){var f=t.radii[h/2-1],d=t.isArcRadius[h/2-1];t.roundCorners.push(nit({x:t.allpts[h-2],y:t.allpts[h-1]},{x:t.allpts[h],y:t.allpts[h+1],radius:f},{x:t.allpts[h+2],y:t.allpts[h+3]},f,d))}}if(t.segpts.length%4===0){var m=t.segpts.length/2,b=m-2;t.midX=(t.segpts[b]+t.segpts[m])/2,t.midY=(t.segpts[b+1]+t.segpts[m+1])/2}else{var v=t.segpts.length/2-1;if(!t.isRound)t.midX=t.segpts[v],t.midY=t.segpts[v+1];else{var T={x:t.segpts[v],y:t.segpts[v+1]},C=t.roundCorners[v/2];if(C.radius===0){var E={x:t.segpts[v+2],y:t.segpts[v+3]};t.midX=T.x,t.midY=T.y,t.midVector=[T.y-E.y,E.x-T.x]}else{var S=[T.x-C.cx,T.y-C.cy],R=C.radius/Math.sqrt(Math.pow(S[0],2)+Math.pow(S[1],2));S=S.map(function(L){return L*R}),t.midX=C.cx+S[0],t.midY=C.cy+S[1],t.midVector=S}}}}};wy.checkForInvalidEdgeWarning=function(r){var t=r[0]._private.rscratch;t.nodesOverlap||ua(t.startX)&&ua(t.startY)&&ua(t.endX)&&ua(t.endY)?t.loggedErr=!1:t.loggedErr||(t.loggedErr=!0,Uu("Edge `"+r.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."))};wy.findEdgeControlPoints=function(r){var t=this;if(!(!r||r.length===0)){for(var a=this,s=a.cy,l=s.hasCompoundNodes(),h=new JA,f=i(function(Y,Q){return[].concat(XTe(Y),[Q?1:0]).join("-")},"getKey"),d=[],m=[],b=0;b<r.length;b++){var v=r[b],T=v._private,C=v.pstyle("curve-style").value;if(!(v.removed()||!v.takesUpSpace())){if(C==="haystack"){m.push(v);continue}var E=C==="unbundled-bezier"||q_(C,"segments")||C==="straight"||C==="straight-triangle"||q_(C,"taxi"),S=C==="unbundled-bezier"||C==="bezier",R=T.source,L=T.target,_=R.poolIndex(),I=L.poolIndex(),N=[_,I].sort(),B=f(N,E),O=h.get(B);O==null&&(O={eles:[]},d.push({pairId:N,edgeIsUnbundled:E}),h.set(B,O)),O.eles.push(v),E&&(O.hasUnbundled=!0),S&&(O.hasBezier=!0)}}for(var P=i(function(){var Y=d[$],Q=Y.pairId,q=Y.edgeIsUnbundled,W=f(Q,q),H=h.get(W),re;if(!H.hasUnbundled){var Z=H.eles[0].parallelEdges().filter(function(ce){return ce.isBundledBezier()});znt(H.eles),Z.forEach(function(ce){return H.eles.push(ce)}),H.eles.sort(function(ce,Re){return ce.poolIndex()-Re.poolIndex()})}var X=H.eles[0],te=X.source(),U=X.target();if(te.poolIndex()>U.poolIndex()){var ne=te;te=U,U=ne}var se=H.srcPos=te.position(),he=H.tgtPos=U.position(),le=H.srcW=te.outerWidth(),pe=H.srcH=te.outerHeight(),ge=H.tgtW=U.outerWidth(),we=H.tgtH=U.outerHeight(),Ae=H.srcShape=a.nodeShapes[t.getNodeShape(te)],ve=H.tgtShape=a.nodeShapes[t.getNodeShape(U)],Ie=H.srcCornerRadius=te.pstyle("corner-radius").value==="auto"?"auto":te.pstyle("corner-radius").pfValue,De=H.tgtCornerRadius=U.pstyle("corner-radius").value==="auto"?"auto":U.pstyle("corner-radius").pfValue,Be=H.tgtRs=U._private.rscratch,Fe=H.srcRs=te._private.rscratch;H.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var ze=0;ze<H.eles.length;ze++){var vt=H.eles[ze],lt=vt[0]._private.rscratch,Ft=vt.pstyle("curve-style").value,pr=Ft==="unbundled-bezier"||q_(Ft,"segments")||q_(Ft,"taxi"),tr=!te.same(vt.source());if(!H.calculatedIntersection&&te!==U&&(H.hasBezier||H.hasUnbundled)){H.calculatedIntersection=!0;var Mt=Ae.intersectLine(se.x,se.y,le,pe,he.x,he.y,0,Ie,Fe),ot=H.srcIntn=Mt,it=ve.intersectLine(he.x,he.y,ge,we,se.x,se.y,0,De,Be),mt=H.tgtIntn=it,Rt=H.intersectionPts={x1:Mt[0],x2:it[0],y1:Mt[1],y2:it[1]},pt=H.posPts={x1:se.x,x2:he.x,y1:se.y,y2:he.y},gt=it[1]-Mt[1],ut=it[0]-Mt[0],Yt=Math.sqrt(ut*ut+gt*gt);ua(Yt)&&Yt>=qQn||(Yt=Math.sqrt(Math.max(ut*ut,sie)+Math.max(gt*gt,sie)));var Ye=H.vector={x:ut,y:gt},Oe=H.vectorNorm={x:Ye.x/Yt,y:Ye.y/Yt},K={x:-Oe.y,y:Oe.x};H.nodesOverlap=!ua(Yt)||ve.checkPoint(Mt[0],Mt[1],0,ge,we,he.x,he.y,De,Be)||Ae.checkPoint(it[0],it[1],0,le,pe,se.x,se.y,Ie,Fe),H.vectorNormInverse=K,re={nodesOverlap:H.nodesOverlap,dirCounts:H.dirCounts,calculatedIntersection:!0,hasBezier:H.hasBezier,hasUnbundled:H.hasUnbundled,eles:H.eles,srcPos:he,srcRs:Be,tgtPos:se,tgtRs:Fe,srcW:ge,srcH:we,tgtW:le,tgtH:pe,srcIntn:mt,tgtIntn:ot,srcShape:ve,tgtShape:Ae,posPts:{x1:pt.x2,y1:pt.y2,x2:pt.x1,y2:pt.y1},intersectionPts:{x1:Rt.x2,y1:Rt.y2,x2:Rt.x1,y2:Rt.y1},vector:{x:-Ye.x,y:-Ye.y},vectorNorm:{x:-Oe.x,y:-Oe.y},vectorNormInverse:{x:-K.x,y:-K.y}}}var Te=tr?re:H;lt.nodesOverlap=Te.nodesOverlap,lt.srcIntn=Te.srcIntn,lt.tgtIntn=Te.tgtIntn,lt.isRound=Ft.startsWith("round"),l&&(te.isParent()||te.isChild()||U.isParent()||U.isChild())&&(te.parents().anySame(U)||U.parents().anySame(te)||te.same(U)&&te.isParent())?t.findCompoundLoopPoints(vt,Te,ze,pr):te===U?t.findLoopPoints(vt,Te,ze,pr):Ft.endsWith("segments")?t.findSegmentsPoints(vt,Te):Ft.endsWith("taxi")?t.findTaxiPoints(vt,Te):Ft==="straight"||!pr&&H.eles.length%2===1&&ze===Math.floor(H.eles.length/2)?t.findStraightEdgePoints(vt):t.findBezierPoints(vt,Te,ze,pr,tr),t.findEndpoints(vt),t.tryToCorrectInvalidPoints(vt,Te),t.checkForInvalidEdgeWarning(vt),t.storeAllpts(vt),t.storeEdgeProjections(vt),t.calculateArrowAngles(vt),t.recalculateEdgeLabelProjections(vt),t.calculateLabelAngles(vt)}},"_loop"),$=0;$<d.length;$++)P();this.findHaystackPoints(m)}};i(N7r,"getPts");wy.getSegmentPoints=function(r){var t=r[0]._private.rscratch;this.recalculateRenderedStyle(r);var a=t.edgeType;if(a==="segments")return N7r(t.segpts)};wy.getControlPoints=function(r){var t=r[0]._private.rscratch;this.recalculateRenderedStyle(r);var a=t.edgeType;if(a==="bezier"||a==="multibezier"||a==="self"||a==="compound")return N7r(t.ctrlpts)};wy.getEdgeMidpoint=function(r){var t=r[0]._private.rscratch;return this.recalculateRenderedStyle(r),{x:t.midX,y:t.midY}};mie={};mie.manualEndptToPx=function(r,t){var a=this,s=r.position(),l=r.outerWidth(),h=r.outerHeight(),f=r._private.rscratch;if(t.value.length===2){var d=[t.pfValue[0],t.pfValue[1]];return t.units[0]==="%"&&(d[0]=d[0]*l),t.units[1]==="%"&&(d[1]=d[1]*h),d[0]+=s.x,d[1]+=s.y,d}else{var m=t.pfValue[0];m=-Math.PI/2+m;var b=2*Math.max(l,h),v=[s.x+Math.cos(m)*b,s.y+Math.sin(m)*b];return a.nodeShapes[this.getNodeShape(r)].intersectLine(s.x,s.y,l,h,v[0],v[1],0,r.pstyle("corner-radius").value==="auto"?"auto":r.pstyle("corner-radius").pfValue,f)}};mie.findEndpoints=function(r){var t,a,s,l,h=this,f,d=r.source()[0],m=r.target()[0],b=d.position(),v=m.position(),T=r.pstyle("target-arrow-shape").value,C=r.pstyle("source-arrow-shape").value,E=r.pstyle("target-distance-from-node").pfValue,S=r.pstyle("source-distance-from-node").pfValue,R=d._private.rscratch,L=m._private.rscratch,_=r.pstyle("curve-style").value,I=r._private.rscratch,N=I.edgeType,B=q_(_,"taxi"),O=N==="self"||N==="compound",P=N==="bezier"||N==="multibezier"||O,$=N!=="bezier",V=N==="straight"||N==="segments",Y=N==="segments",Q=P||$||V,q=O||B,W=r.pstyle("source-endpoint"),H=q?"outside-to-node":W.value,re=d.pstyle("corner-radius").value==="auto"?"auto":d.pstyle("corner-radius").pfValue,Z=r.pstyle("target-endpoint"),X=q?"outside-to-node":Z.value,te=m.pstyle("corner-radius").value==="auto"?"auto":m.pstyle("corner-radius").pfValue;I.srcManEndpt=W,I.tgtManEndpt=Z;var U,ne,se,he,le=(t=(Z==null||(a=Z.pfValue)===null||a===void 0?void 0:a.length)===2?Z.pfValue:null)!==null&&t!==void 0?t:[0,0],pe=(s=(W==null||(l=W.pfValue)===null||l===void 0?void 0:l.length)===2?W.pfValue:null)!==null&&s!==void 0?s:[0,0];if(P){var ge=[I.ctrlpts[0],I.ctrlpts[1]],we=$?[I.ctrlpts[I.ctrlpts.length-2],I.ctrlpts[I.ctrlpts.length-1]]:ge;U=we,ne=ge}else if(V){var Ae=Y?I.segpts.slice(0,2):[v.x+le[0],v.y+le[1]],ve=Y?I.segpts.slice(I.segpts.length-2):[b.x+pe[0],b.y+pe[1]];U=ve,ne=Ae}if(X==="inside-to-node")f=[v.x,v.y];else if(Z.units)f=this.manualEndptToPx(m,Z);else if(X==="outside-to-line")f=I.tgtIntn;else if(X==="outside-to-node"||X==="outside-to-node-or-label"?se=U:(X==="outside-to-line"||X==="outside-to-line-or-label")&&(se=[b.x,b.y]),f=h.nodeShapes[this.getNodeShape(m)].intersectLine(v.x,v.y,m.outerWidth(),m.outerHeight(),se[0],se[1],0,te,L),X==="outside-to-node-or-label"||X==="outside-to-line-or-label"){var Ie=m._private.rscratch,De=Ie.labelWidth,Be=Ie.labelHeight,Fe=Ie.labelX,ze=Ie.labelY,vt=De/2,lt=Be/2,Ft=m.pstyle("text-valign").value;Ft=gV(Ft),Ft==="top"?ze-=lt:Ft==="bottom"&&(ze+=lt);var pr=m.pstyle("text-halign").value;pr=pV(pr),pr==="left"?Fe-=vt:pr==="right"&&(Fe+=vt);var tr=tie(se[0],se[1],[Fe-vt,ze-lt,Fe+vt,ze-lt,Fe+vt,ze+lt,Fe-vt,ze+lt],v.x,v.y);if(tr.length>0){var Mt=b,ot=gP(Mt,iV(f)),it=gP(Mt,iV(tr)),mt=ot;if(it<ot&&(f=tr,mt=it),tr.length>2){var Rt=gP(Mt,{x:tr[2],y:tr[3]});Rt<mt&&(f=[tr[2],tr[3]])}}}var pt=RTe(f,U,h.arrowShapes[T].spacing(r)+E),gt=RTe(f,U,h.arrowShapes[T].gap(r)+E);if(I.endX=gt[0],I.endY=gt[1],I.arrowEndX=pt[0],I.arrowEndY=pt[1],H==="inside-to-node")f=[b.x,b.y];else if(W.units)f=this.manualEndptToPx(d,W);else if(H==="outside-to-line")f=I.srcIntn;else if(H==="outside-to-node"||H==="outside-to-node-or-label"?he=ne:(H==="outside-to-line"||H==="outside-to-line-or-label")&&(he=[v.x,v.y]),f=h.nodeShapes[this.getNodeShape(d)].intersectLine(b.x,b.y,d.outerWidth(),d.outerHeight(),he[0],he[1],0,re,R),H==="outside-to-node-or-label"||H==="outside-to-line-or-label"){var ut=d._private.rscratch,Yt=ut.labelWidth,Ye=ut.labelHeight,Oe=ut.labelX,K=ut.labelY,Te=Yt/2,ce=Ye/2,Re=d.pstyle("text-valign").value;Re=gV(Re),Re==="top"?K-=ce:Re==="bottom"&&(K+=ce);var me=d.pstyle("text-halign").value;me=pV(me),me==="left"?Oe-=Te:me==="right"&&(Oe+=Te);var be=tie(he[0],he[1],[Oe-Te,K-ce,Oe+Te,K-ce,Oe+Te,K+ce,Oe-Te,K+ce],b.x,b.y);if(be.length>0){var ke=v,We=gP(ke,iV(f)),Ue=gP(ke,iV(be)),rt=We;if(Ue<We&&(f=[be[0],be[1]],rt=Ue),be.length>2){var nt=gP(ke,{x:be[2],y:be[3]});nt<rt&&(f=[be[2],be[3]])}}}var Ot=RTe(f,ne,h.arrowShapes[C].spacing(r)+S),ft=RTe(f,ne,h.arrowShapes[C].gap(r)+S);I.startX=ft[0],I.startY=ft[1],I.arrowStartX=Ot[0],I.arrowStartY=Ot[1],Q&&(!ua(I.startX)||!ua(I.startY)||!ua(I.endX)||!ua(I.endY)?I.badLine=!0:I.badLine=!1)};mie.getSourceEndpoint=function(r){var t=r[0]._private.rscratch;return this.recalculateRenderedStyle(r),t.edgeType==="haystack"?{x:t.haystackPts[0],y:t.haystackPts[1]}:{x:t.arrowStartX,y:t.arrowStartY}};mie.getTargetEndpoint=function(r){var t=r[0]._private.rscratch;return this.recalculateRenderedStyle(r),t.edgeType==="haystack"?{x:t.haystackPts[2],y:t.haystackPts[3]}:{x:t.arrowEndX,y:t.arrowEndY}};iit={};i(YQn,"pushBezierPts");iit.storeEdgeProjections=function(r){var t=r._private,a=t.rscratch,s=a.edgeType;if(t.rstyle.bezierPts=null,t.rstyle.linePts=null,t.rstyle.haystackPts=null,s==="multibezier"||s==="bezier"||s==="self"||s==="compound"){t.rstyle.bezierPts=[];for(var l=0;l+5<a.allpts.length;l+=4)YQn(this,r,a.allpts.slice(l,l+6))}else if(s==="segments")for(var h=t.rstyle.linePts=[],l=0;l+1<a.allpts.length;l+=2)h.push({x:a.allpts[l],y:a.allpts[l+1]});else if(s==="haystack"){var f=a.haystackPts;t.rstyle.haystackPts=[{x:f[0],y:f[1]},{x:f[2],y:f[3]}]}t.rstyle.arrowWidth=this.getArrowWidth(r.pstyle("width").pfValue,r.pstyle("arrow-scale").value)*this.arrowShapeWidth};iit.recalculateEdgeProjections=function(r){this.findEdgeControlPoints(r)};NS={};NS.recalculateNodeLabelProjection=function(r){var t=r.pstyle("label").strValue;if(!Q_(t)){var a,s,l=r._private,h=r.width(),f=r.height(),d=r.padding(),m=r.position(),b=r.pstyle("text-halign").strValue,v=r.pstyle("text-valign").strValue,T=l.rscratch,C=l.rstyle;switch(b){case"left":a=m.x-h/2-d;break;case"left-inside":a=m.x-h/2+d;break;case"right":a=m.x+h/2+d;break;case"right-inside":a=m.x+h/2-d;break;default:a=m.x}switch(v){case"top":s=m.y-f/2-d;break;case"top-inside":s=m.y-f/2+d;break;case"bottom":s=m.y+f/2+d;break;case"bottom-inside":s=m.y+f/2-d;break;default:s=m.y}T.labelX=a,T.labelY=s,C.labelX=a,C.labelY=s,this.calculateLabelAngles(r),this.applyLabelDimensions(r)}};O7r=i(function(t,a){var s=Math.atan(a/t);return t===0&&s<0&&(s=s*-1),s},"lineAngleFromDelta"),P7r=i(function(t,a){var s=a.x-t.x,l=a.y-t.y;return O7r(s,l)},"lineAngle"),XQn=i(function(t,a,s,l){var h=eie(0,l-.001,1),f=eie(0,l+.001,1),d=oV(t,a,s,h),m=oV(t,a,s,f);return P7r(d,m)},"bezierAngle");NS.recalculateEdgeLabelProjections=function(r){var t,a=r._private,s=a.rscratch,l=this,h={mid:r.pstyle("label").strValue,source:r.pstyle("source-label").strValue,target:r.pstyle("target-label").strValue};if(h.mid||h.source||h.target){t={x:s.midX,y:s.midY};var f=i(function(T,C,E){DS(a.rscratch,T,C,E),DS(a.rstyle,T,C,E)},"setRs");f("labelX",null,t.x),f("labelY",null,t.y);var d=O7r(s.midDispX,s.midDispY);f("labelAutoAngle",null,d);var m=i(function(){if(m.cache)return m.cache;for(var T=[],C=0;C+5<s.allpts.length;C+=4){var E={x:s.allpts[C],y:s.allpts[C+1]},S={x:s.allpts[C+2],y:s.allpts[C+3]},R={x:s.allpts[C+4],y:s.allpts[C+5]};T.push({p0:E,p1:S,p2:R,startDist:0,length:0,segments:[]})}var L=a.rstyle.bezierPts,_=l.bezierProjPcts.length;function I($,V,Y,Q,q){var W=xP(V,Y),H=$.segments[$.segments.length-1],re={p0:V,p1:Y,t0:Q,t1:q,startDist:H?H.startDist+H.length:0,length:W};$.segments.push(re),$.length+=W}i(I,"addSegment");for(var N=0;N<T.length;N++){var B=T[N],O=T[N-1];O&&(B.startDist=O.startDist+O.length),I(B,B.p0,L[N*_],0,l.bezierProjPcts[0]);for(var P=0;P<_-1;P++)I(B,L[N*_+P],L[N*_+P+1],l.bezierProjPcts[P],l.bezierProjPcts[P+1]);I(B,L[N*_+_-1],B.p2,l.bezierProjPcts[_-1],1)}return m.cache=T},"createControlPointInfo"),b=i(function(T){var C,E=T==="source";if(h[T]){var S=r.pstyle(T+"-text-offset").pfValue;switch(s.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var R=m(),L,_=0,I=0,N=0;N<R.length;N++){for(var B=R[E?N:R.length-1-N],O=0;O<B.segments.length;O++){var P=B.segments[E?O:B.segments.length-1-O],$=N===R.length-1&&O===B.segments.length-1;if(_=I,I+=P.length,I>=S||$){L={cp:B,segment:P};break}}if(L)break}var V=L.cp,Y=L.segment,Q=(S-_)/Y.length,q=Y.t1-Y.t0,W=E?Y.t0+q*Q:Y.t1-q*Q;W=eie(0,W,1),t=oV(V.p0,V.p1,V.p2,W),C=XQn(V.p0,V.p1,V.p2,W);break}case"straight":case"segments":case"haystack":{for(var H=0,re,Z,X,te,U=s.allpts.length,ne=0;ne+3<U&&(E?(X={x:s.allpts[ne],y:s.allpts[ne+1]},te={x:s.allpts[ne+2],y:s.allpts[ne+3]}):(X={x:s.allpts[U-2-ne],y:s.allpts[U-1-ne]},te={x:s.allpts[U-4-ne],y:s.allpts[U-3-ne]}),re=xP(X,te),Z=H,H+=re,!(H>=S));ne+=2);var se=S-Z,he=se/re;he=eie(0,he,1),t=mXn(X,te,he),C=P7r(X,te);break}}f("labelX",T,t.x),f("labelY",T,t.y),f("labelAutoAngle",T,C)}},"calculateEndProjection");b("source"),b("target"),this.applyLabelDimensions(r)}};NS.applyLabelDimensions=function(r){this.applyPrefixedLabelDimensions(r),r.isEdge()&&(this.applyPrefixedLabelDimensions(r,"source"),this.applyPrefixedLabelDimensions(r,"target"))};NS.applyPrefixedLabelDimensions=function(r,t){var a=r._private,s=this.getLabelText(r,t),l=wP(s,r._private.labelDimsKey);if(Nb(a.rscratch,"prefixedLabelDimsKey",t)!==l){DS(a.rscratch,"prefixedLabelDimsKey",t,l);var h=this.calculateLabelDimensions(r,s),f=r.pstyle("line-height").pfValue,d=r.pstyle("font-size").pfValue,m=r.pstyle("text-wrap").strValue,b=Nb(a.rscratch,"labelWrapCachedLines",t)||[],v=m!=="wrap"?1:Math.max(b.length,1),T=d*f,C=h.width,E=h.height+(v-1)*(f-1)*d;DS(a.rstyle,"labelWidth",t,C),DS(a.rscratch,"labelWidth",t,C),DS(a.rstyle,"labelHeight",t,E),DS(a.rscratch,"labelHeight",t,E),DS(a.rscratch,"labelLineHeight",t,T),DS(a.rscratch,"labelActualDescent",t,h.labelActualDescent)}};NS.getLabelText=function(r,t){var a=r._private,s=t?t+"-":"",l=r.pstyle(s+"label").strValue,h=r.pstyle("text-transform").value,f=i(function(pe,ge){return ge?(DS(a.rscratch,pe,t,ge),ge):Nb(a.rscratch,pe,t)},"rscratch");if(!l)return"";h=="none"||(h=="uppercase"?l=l.toUpperCase():h=="lowercase"&&(l=l.toLowerCase()));var d=r.pstyle("text-wrap").value;if(d==="wrap"){var m=f("labelKey");if(m!=null&&f("labelWrapKey")===m)return f("labelWrapCachedText");for(var b="\u200B",v=l.split(`
|
|
`),T=r.pstyle("text-max-width").pfValue,C=r.pstyle("text-overflow-wrap").value,E=C==="anywhere",S=[],R=/[\s\u200b]+|$/g,L=0;L<v.length;L++){var _=v[L],I=this.calculateLabelDimensions(r,_),N=I.width;if(E){var B=_.split("").join(b);_=B}if(N>T){var O=_.matchAll(R),P="",$=0,V=v2(O),Y;try{for(V.s();!(Y=V.n()).done;){var Q=Y.value,q=Q[0],W=_.substring($,Q.index);$=Q.index+q.length;var H=P.length===0?W:P+W+q,re=this.calculateLabelDimensions(r,H),Z=re.width;Z<=T?P+=W+q:(P&&S.push(P),P=W+q)}}catch(le){V.e(le)}finally{V.f()}P.match(/^[\s\u200b]+$/)||S.push(P)}else S.push(_)}f("labelWrapCachedLines",S),l=f("labelWrapCachedText",S.join(`
|
|
`)),f("labelWrapKey",m)}else if(d==="ellipsis"){var X=r.pstyle("text-max-width").pfValue,te="",U="\u2026",ne=!1;if(this.calculateLabelDimensions(r,l).width<X)return l;for(var se=0;se<l.length;se++){var he=this.calculateLabelDimensions(r,te+l[se]+U).width;if(he>X)break;te+=l[se],se===l.length-1&&(ne=!0)}return ne||(te+=U),te}return l};NS.getLabelJustification=function(r){var t=r.pstyle("text-justification").strValue,a=r.pstyle("text-halign").strValue;return t==="auto"?r.isNode()?PJn(a):"center":t};NS.calculateLabelDimensions=function(r,t){var a=this,s=a.cy.window(),l=s.document,h=0,f=r.pstyle("font-style").strValue,d=r.pstyle("font-size").pfValue,m=r.pstyle("font-family").strValue,b=r.pstyle("font-weight").strValue,v=r.pstyle("text-metrics").strValue||"font",T=this.labelCalcCanvas,C=this.labelCalcCanvasContext;if(!T){T=this.labelCalcCanvas=l.createElement("canvas"),C=this.labelCalcCanvasContext=T.getContext("2d");var E=T.style;E.position="absolute",E.left="-9999px",E.top="-9999px",E.zIndex="-1",E.visibility="hidden",E.pointerEvents="none"}C.font="".concat(f," ").concat(b," ").concat(d,"px ").concat(m);for(var S=0,R=0,L=t.split(`
|
|
`),_=L.length,I=0,N=0,B=0;B<_;B++){var O=L[B],P=C.measureText(O),$=Math.ceil(P.width),V=d;v==="glyph"&&(B===0&&(N=P.actualBoundingBoxAscent),B===_-1&&(I=P.actualBoundingBoxDescent)),S=Math.max($,S),R+=V}return v==="glyph"&&(R-=d-N-I),S+=h,R+=h,{width:S,height:R,labelActualAscent:N,labelActualDescent:I}};NS.calculateLabelAngle=function(r,t){var a=r._private,s=a.rscratch,l=r.isEdge(),h=t?t+"-":"",f=r.pstyle(h+"text-rotation"),d=f.strValue;return d==="none"?0:l&&d==="autorotate"?s.labelAutoAngle:d==="autorotate"?0:f.pfValue};NS.calculateLabelAngles=function(r){var t=this,a=r.isEdge(),s=r._private,l=s.rscratch;l.labelAngle=t.calculateLabelAngle(r),a&&(l.sourceLabelAngle=t.calculateLabelAngle(r,"source"),l.targetLabelAngle=t.calculateLabelAngle(r,"target"))};B7r={},JAr=28,QAr=!1;B7r.getNodeShape=function(r){var t=this,a=r.pstyle("shape").value;if(a==="cutrectangle"&&(r.width()<JAr||r.height()<JAr))return QAr||(Uu("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),QAr=!0),"rectangle";if(r.isParent())return a==="rectangle"||a==="roundrectangle"||a==="round-rectangle"||a==="cutrectangle"||a==="cut-rectangle"||a==="barrel"?a:"rectangle";if(a==="polygon"){var s=r.pstyle("shape-polygon-points").value;return t.nodeShapes.makePolygon(s).name}return a};Eke={};Eke.registerCalculationListeners=function(){var r=this.cy,t=r.collection(),a=this,s=i(function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(f),d)for(var m=0;m<f.length;m++){var b=f[m],v=b._private,T=v.rstyle;T.clean=!1,T.cleanConnected=!1}},"enqueue");a.binder(r).on("bounds.* dirty.*",i(function(f){var d=f.target;s(d)},"onDirtyBounds")).on("style.* background.*",i(function(f){var d=f.target;s(d,!1)},"onDirtyStyle"));var l=i(function(f){if(f){var d=a.onUpdateEleCalcsFns;t.cleanStyle();for(var m=0;m<t.length;m++){var b=t[m],v=b._private.rstyle;b.isNode()&&!v.cleanConnected&&(s(b.connectedEdges()),v.cleanConnected=!0)}if(d)for(var T=0;T<d.length;T++){var C=d[T];C(f,t)}a.recalculateRenderedStyle(t),t=r.collection()}},"updateEleCalcs");a.flushRenderedStyleQueue=function(){l(!0)},a.beforeRender(l,a.beforeRenderPriorities.eleCalcs)};Eke.onUpdateEleCalcs=function(r){var t=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];t.push(r)};Eke.recalculateRenderedStyle=function(r,t){var a=i(function(B){return B._private.rstyle.cleanConnected},"isCleanConnected");if(r.length!==0){var s=[],l=[];if(!this.destroyed){t===void 0&&(t=!0);for(var h=0;h<r.length;h++){var f=r[h],d=f._private,m=d.rstyle;f.isEdge()&&(!a(f.source())||!a(f.target()))&&(m.clean=!1),f.isEdge()&&f.isBundledBezier()&&f.parallelEdges().some(function(N){return!N._private.rstyle.clean&&N.isBundledBezier()})&&(m.clean=!1),!(t&&m.clean||f.removed())&&f.pstyle("display").value!=="none"&&(d.group==="nodes"?l.push(f):s.push(f),m.clean=!0)}for(var b=0;b<l.length;b++){var v=l[b],T=v._private,C=T.rstyle,E=v.position();this.recalculateNodeLabelProjection(v),C.nodeX=E.x,C.nodeY=E.y,C.nodeW=v.pstyle("width").pfValue,C.nodeH=v.pstyle("height").pfValue}this.recalculateEdgeProjections(s);for(var S=0;S<s.length;S++){var R=s[S],L=R._private,_=L.rstyle,I=L.rscratch;_.srcX=I.arrowStartX,_.srcY=I.arrowStartY,_.tgtX=I.arrowEndX,_.tgtY=I.arrowEndY,_.midX=I.midX,_.midY=I.midY,_.labelAngle=I.labelAngle,_.sourceLabelAngle=I.sourceLabelAngle,_.targetLabelAngle=I.targetLabelAngle}}}};Ske={};Ske.updateCachedGrabbedEles=function(){var r=this.cachedZSortedEles;if(r){r.drag=[],r.nondrag=[];for(var t=[],a=0;a<r.length;a++){var s=r[a],l=s._private.rscratch;s.grabbed()&&!s.isParent()?t.push(s):l.inDragLayer?r.drag.push(s):r.nondrag.push(s)}for(var a=0;a<t.length;a++){var s=t[a];r.drag.push(s)}}};Ske.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null};Ske.getCachedZSortedEles=function(r){if(r||!this.cachedZSortedEles){var t=this.cy.mutableElements().toArray();t.sort(b7r),t.interactive=t.filter(function(a){return a.interactive()}),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()}else t=this.cachedZSortedEles;return t};F7r={};[EP,ake,wy,mie,iit,NS,B7r,Eke,Ske].forEach(function(r){ao(F7r,r)});$7r={};$7r.getCachedImage=function(r,t,a){var s=this,l=s.imageCache=s.imageCache||{},h=l[r];if(h)return h.image.complete||h.image.addEventListener("load",a),h.image;h=l[r]=l[r]||{};var f=h.image=new Image;f.addEventListener("load",a),f.addEventListener("error",function(){f.error=!0});var d="data:",m=r.substring(0,d.length).toLowerCase()===d;return m||(t=t==="null"?null:t,f.crossOrigin=t),f.src=r,f};G7r=i(function(t,a){var s=t[0];!s||s._private.grabbed===a||(s._private.grabbed=a,t.updateStyle(!1))},"setGrabState"),KQn=i(function(t){G7r(t,!0)},"setGrabbed"),JQn=i(function(t){G7r(t,!1)},"setFreed"),wV={};wV.registerBinding=function(r,t,a,s){var l=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(r)){for(var h=[],f=0;f<r.length;f++){var d=r[f];if(d!==void 0){var m=this.binder(d);h.push(m.on.apply(m,l))}}return h}var m=this.binder(r);return m.on.apply(m,l)};wV.binder=function(r){var t=this,a=t.cy.window(),s=r===a||r===a.document||r===a.document.body||sYn(r);if(t.supportsPassiveEvents==null){var l=!1;try{var h=Object.defineProperty({},"passive",{get:i(function(){return l=!0,!0},"get")});a.addEventListener("test",null,h)}catch{}t.supportsPassiveEvents=l}var f=i(function(m,b,v){var T=Array.prototype.slice.call(arguments);return s&&t.supportsPassiveEvents&&(T[2]={capture:v??!1,passive:!1,once:!1}),t.bindings.push({target:r,args:T}),(r.addEventListener||r.on).apply(r,T),this},"on");return{on:f,addEventListener:f,addListener:f,bind:f}};wV.nodeIsDraggable=function(r){return r&&r.isNode()&&!r.locked()&&r.grabbable()};wV.nodeIsGrabbable=function(r){return this.nodeIsDraggable(r)&&r.interactive()};wV.load=function(){var r=this,t=r.cy.window(),a=i(function(ce){return ce.selected()},"isSelected"),s=i(function(ce){var Re=ce.getRootNode();if(Re&&Re.nodeType===11&&Re.host!==void 0)return Re},"getShadowRoot"),l=i(function(ce,Re,me,be){ce==null&&(ce=r.cy);for(var ke=0;ke<Re.length;ke++){var We=Re[ke];ce.emit({originalEvent:me,type:We,position:be})}},"triggerEvents"),h=i(function(ce){return ce.shiftKey||ce.metaKey||ce.ctrlKey},"isMultSelKeyDown"),f=i(function(ce,Re){var me=!0;if(r.cy.hasCompoundNodes()&&ce&&ce.pannable())for(var be=0;Re&&be<Re.length;be++){var ce=Re[be];if(ce.isNode()&&ce.isParent()&&!ce.pannable()){me=!1;break}}else me=!0;return me},"allowPanningPassthrough"),d=i(function(ce){ce[0]._private.rscratch.inDragLayer=!0},"setInDragLayer"),m=i(function(ce){ce[0]._private.rscratch.inDragLayer=!1},"setOutDragLayer"),b=i(function(ce){ce[0]._private.rscratch.isGrabTarget=!0},"setGrabTarget"),v=i(function(ce){ce[0]._private.rscratch.isGrabTarget=!1},"removeGrabTarget"),T=i(function(ce,Re){var me=Re.addToList,be=me.has(ce);!be&&ce.grabbable()&&!ce.locked()&&(me.merge(ce),KQn(ce))},"addToDragList"),C=i(function(ce,Re){if(ce.cy().hasCompoundNodes()&&!(Re.inDragLayer==null&&Re.addToList==null)){var me=ce.descendants();Re.inDragLayer&&(me.forEach(d),me.connectedEdges().forEach(d)),Re.addToList&&T(me,Re)}},"addDescendantsToDrag"),E=i(function(ce,Re){Re=Re||{};var me=ce.cy().hasCompoundNodes();Re.inDragLayer&&(ce.forEach(d),ce.neighborhood().stdFilter(function(be){return!me||be.isEdge()}).forEach(d)),Re.addToList&&ce.forEach(function(be){T(be,Re)}),C(ce,Re),L(ce,{inDragLayer:Re.inDragLayer}),r.updateCachedGrabbedEles()},"addNodesToDrag"),S=E,R=i(function(ce){ce&&(r.getCachedZSortedEles().forEach(function(Re){JQn(Re),m(Re),v(Re)}),r.updateCachedGrabbedEles())},"freeDraggedElements"),L=i(function(ce,Re){if(!(Re.inDragLayer==null&&Re.addToList==null)&&ce.cy().hasCompoundNodes()){var me=ce.ancestors().orphans();if(!me.same(ce)){var be=me.descendants().spawnSelf().merge(me).unmerge(ce).unmerge(ce.descendants()),ke=be.connectedEdges();Re.inDragLayer&&(ke.forEach(d),be.forEach(d)),Re.addToList&&be.forEach(function(We){T(We,Re)})}}},"updateAncestorsInDragLayer"),_=i(function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},"blurActiveDomElement"),I=typeof MutationObserver<"u",N=typeof ResizeObserver<"u";I?(r.removeObserver=new MutationObserver(function(Te){for(var ce=0;ce<Te.length;ce++){var Re=Te[ce],me=Re.removedNodes;if(me)for(var be=0;be<me.length;be++){var ke=me[be];if(ke===r.container){r.destroy();break}}}}),r.container.parentNode&&r.removeObserver.observe(r.container.parentNode,{childList:!0})):r.registerBinding(r.container,"DOMNodeRemoved",function(Te){r.destroy()});var B=fie(function(){r.cy.resize()},100);I&&(r.styleObserver=new MutationObserver(B),r.styleObserver.observe(r.container,{attributes:!0})),r.registerBinding(t,"resize",B),N&&(r.resizeObserver=new ResizeObserver(B),r.resizeObserver.observe(r.container));var O=i(function(ce,Re){for(;ce!=null;)Re(ce),ce=ce.parentNode},"forEachUp"),P=i(function(){r.invalidateContainerClientCoordsCache()},"invalidateCoords");O(r.container,function(Te){r.registerBinding(Te,"transitionend",P),r.registerBinding(Te,"animationend",P),r.registerBinding(Te,"scroll",P)}),r.registerBinding(r.container,"contextmenu",function(Te){Te.preventDefault()});var $=i(function(){return r.selection[4]!==0},"inBoxSelection"),V=i(function(ce){for(var Re=r.findContainerClientCoords(),me=Re[0],be=Re[1],ke=Re[2],We=Re[3],Ue=ce.touches?ce.touches:[ce],rt=!1,nt=0;nt<Ue.length;nt++){var Ot=Ue[nt];if(me<=Ot.clientX&&Ot.clientX<=me+ke&&be<=Ot.clientY&&Ot.clientY<=be+We){rt=!0;break}}if(!rt)return!1;for(var ft=r.container,Qt=ce.target,$t=Qt.parentNode,qt=!1;$t;){if($t===ft){qt=!0;break}$t=$t.parentNode}return!!qt},"eventInContainer");r.registerBinding(r.container,"mousedown",i(function(ce){if(V(ce)&&!(r.hoverData.which===1&&ce.which!==1)){ce.preventDefault(),_(),r.hoverData.capture=!0,r.hoverData.which=ce.which;var Re=r.cy,me=[ce.clientX,ce.clientY],be=r.projectIntoViewport(me[0],me[1]),ke=r.selection,We=r.findNearestElements(be[0],be[1],!0,!1),Ue=We[0],rt=r.dragData.possibleDragElements;r.hoverData.mdownPos=be,r.hoverData.mdownGPos=me;var nt=i(function(Gt){return{originalEvent:ce,type:Gt,position:{x:be[0],y:be[1]}}},"makeEvent"),Ot=i(function(){r.hoverData.tapholdCancelled=!1,clearTimeout(r.hoverData.tapholdTimeout),r.hoverData.tapholdTimeout=setTimeout(function(){if(!r.hoverData.tapholdCancelled){var Gt=r.hoverData.down;Gt?Gt.emit(nt("taphold")):Re.emit(nt("taphold"))}},r.tapholdDuration)},"checkForTaphold");if(ce.which==3){r.hoverData.cxtStarted=!0;var ft={originalEvent:ce,type:"cxttapstart",position:{x:be[0],y:be[1]}};Ue?(Ue.activate(),Ue.emit(ft),r.hoverData.down=Ue):Re.emit(ft),r.hoverData.downTime=new Date().getTime(),r.hoverData.cxtDragged=!1}else if(ce.which==1){Ue&&Ue.activate();{if(Ue!=null&&r.nodeIsGrabbable(Ue)){var Qt=i(function(Gt){Gt.emit(nt("grab"))},"triggerGrab");if(b(Ue),!Ue.selected())rt=r.dragData.possibleDragElements=Re.collection(),S(Ue,{addToList:rt}),Ue.emit(nt("grabon")).emit(nt("grab"));else{rt=r.dragData.possibleDragElements=Re.collection();var $t=Re.$(function(qt){return qt.isNode()&&qt.selected()&&r.nodeIsGrabbable(qt)});E($t,{addToList:rt}),Ue.emit(nt("grabon")),$t.forEach(Qt)}r.redrawHint("eles",!0),r.redrawHint("drag",!0)}r.hoverData.down=Ue,r.hoverData.downs=We,r.hoverData.downTime=new Date().getTime()}l(Ue,["mousedown","tapstart","vmousedown"],ce,{x:be[0],y:be[1]}),Ue==null?(ke[4]=1,r.data.bgActivePosistion={x:be[0],y:be[1]},r.redrawHint("select",!0),r.redraw()):Ue.pannable()&&(ke[4]=1),Ot()}ke[0]=ke[2]=be[0],ke[1]=ke[3]=be[1]}},"mousedownHandler"),!1);var Y=s(r.container);r.registerBinding([t,Y],"mousemove",i(function(ce){var Re=r.hoverData.capture;if(!(!Re&&!V(ce))){var me=!1,be=r.cy,ke=be.zoom(),We=[ce.clientX,ce.clientY],Ue=r.projectIntoViewport(We[0],We[1]),rt=r.hoverData.mdownPos,nt=r.hoverData.mdownGPos,Ot=r.selection,ft=null;!r.hoverData.draggingEles&&!r.hoverData.dragging&&!r.hoverData.selecting&&(ft=r.findNearestElement(Ue[0],Ue[1],!0,!1));var Qt=r.hoverData.last,$t=r.hoverData.down,qt=[Ue[0]-Ot[2],Ue[1]-Ot[3]],Gt=r.dragData.possibleDragElements,jt;if(nt){var Zr=We[0]-nt[0],yt=Zr*Zr,$n=We[1]-nt[1],Ut=$n*$n,An=yt+Ut;r.hoverData.isOverThresholdDrag=jt=An>=r.desktopTapThreshold2}var Un=h(ce);jt&&(r.hoverData.tapholdCancelled=!0);var En=i(function(){var dr=r.hoverData.dragDelta=r.hoverData.dragDelta||[];dr.length===0?(dr.push(qt[0]),dr.push(qt[1])):(dr[0]+=qt[0],dr[1]+=qt[1])},"updateDragDelta");me=!0,l(ft,["mousemove","vmousemove","tapdrag"],ce,{x:Ue[0],y:Ue[1]});var ai=i(function(dr){return{originalEvent:ce,type:dr,position:{x:Ue[0],y:Ue[1]}}},"makeEvent"),Gn=i(function(){r.data.bgActivePosistion=void 0,r.hoverData.selecting||be.emit(ai("boxstart")),Ot[4]=1,r.hoverData.selecting=!0,r.redrawHint("select",!0),r.redraw()},"goIntoBoxMode");if(r.hoverData.which===3){if(jt){var ui=ai("cxtdrag");$t?$t.emit(ui):be.emit(ui),r.hoverData.cxtDragged=!0,(!r.hoverData.cxtOver||ft!==r.hoverData.cxtOver)&&(r.hoverData.cxtOver&&r.hoverData.cxtOver.emit(ai("cxtdragout")),r.hoverData.cxtOver=ft,ft&&ft.emit(ai("cxtdragover")))}}else if(r.hoverData.dragging){if(me=!0,be.panningEnabled()&&be.userPanningEnabled()){var Tn;if(r.hoverData.justStartedPan){var Wi=r.hoverData.mdownPos;Tn={x:(Ue[0]-Wi[0])*ke,y:(Ue[1]-Wi[1])*ke},r.hoverData.justStartedPan=!1}else Tn={x:qt[0]*ke,y:qt[1]*ke};be.panBy(Tn),be.emit(ai("dragpan")),r.hoverData.dragged=!0}Ue=r.projectIntoViewport(ce.clientX,ce.clientY)}else if(Ot[4]==1&&($t==null||$t.pannable())){if(jt){if(!r.hoverData.dragging&&be.boxSelectionEnabled()&&(Un||!be.panningEnabled()||!be.userPanningEnabled()))Gn();else if(!r.hoverData.selecting&&be.panningEnabled()&&be.userPanningEnabled()){var Pa=f($t,r.hoverData.downs);Pa&&(r.hoverData.dragging=!0,r.hoverData.justStartedPan=!0,Ot[4]=0,r.data.bgActivePosistion=iV(rt),r.redrawHint("select",!0),r.redraw())}$t&&$t.pannable()&&$t.active()&&$t.unactivate()}}else{if($t&&$t.pannable()&&$t.active()&&$t.unactivate(),(!$t||!$t.grabbed())&&ft!=Qt&&(Qt&&l(Qt,["mouseout","tapdragout"],ce,{x:Ue[0],y:Ue[1]}),ft&&l(ft,["mouseover","tapdragover"],ce,{x:Ue[0],y:Ue[1]}),r.hoverData.last=ft),$t)if(jt){if(be.boxSelectionEnabled()&&Un)$t&&$t.grabbed()&&(R(Gt),$t.emit(ai("freeon")),Gt.emit(ai("free")),r.dragData.didDrag&&($t.emit(ai("dragfreeon")),Gt.emit(ai("dragfree")))),Gn();else if($t&&$t.grabbed()&&r.nodeIsDraggable($t)){var qe=!r.dragData.didDrag;qe&&r.redrawHint("eles",!0),r.dragData.didDrag=!0,r.hoverData.draggingEles||E(Gt,{inDragLayer:!0});var Rn={x:0,y:0};if(ua(qt[0])&&ua(qt[1])&&(Rn.x+=qt[0],Rn.y+=qt[1],qe)){var Mn=r.hoverData.dragDelta;Mn&&ua(Mn[0])&&ua(Mn[1])&&(Rn.x+=Mn[0],Rn.y+=Mn[1])}r.hoverData.draggingEles=!0,Gt.silentShift(Rn).emit(ai("position")).emit(ai("drag")),r.redrawHint("drag",!0),r.redraw()}}else En();me=!0}if(Ot[2]=Ue[0],Ot[3]=Ue[1],me)return ce.stopPropagation&&ce.stopPropagation(),ce.preventDefault&&ce.preventDefault(),!1}},"mousemoveHandler"),!1);var Q,q,W;r.registerBinding(t,"mouseup",i(function(ce){if(!(r.hoverData.which===1&&ce.which!==1&&r.hoverData.capture)){var Re=r.hoverData.capture;if(Re){r.hoverData.capture=!1;var me=r.cy,be=r.projectIntoViewport(ce.clientX,ce.clientY),ke=r.selection,We=r.findNearestElement(be[0],be[1],!0,!1),Ue=r.dragData.possibleDragElements,rt=r.hoverData.down,nt=h(ce);r.data.bgActivePosistion&&(r.redrawHint("select",!0),r.redraw()),r.hoverData.tapholdCancelled=!0,r.data.bgActivePosistion=void 0,rt&&rt.unactivate();var Ot=i(function(Zr){return{originalEvent:ce,type:Zr,position:{x:be[0],y:be[1]}}},"makeEvent");if(r.hoverData.which===3){var ft=Ot("cxttapend");if(rt?rt.emit(ft):me.emit(ft),!r.hoverData.cxtDragged){var Qt=Ot("cxttap");rt?rt.emit(Qt):me.emit(Qt)}r.hoverData.cxtDragged=!1,r.hoverData.which=null}else if(r.hoverData.which===1){if(l(We,["mouseup","tapend","vmouseup"],ce,{x:be[0],y:be[1]}),!r.dragData.didDrag&&!r.hoverData.dragged&&!r.hoverData.selecting&&!r.hoverData.isOverThresholdDrag&&(l(rt,["click","tap","vclick"],ce,{x:be[0],y:be[1]}),q=!1,ce.timeStamp-W<=me.multiClickDebounceTime()?(Q&&clearTimeout(Q),q=!0,W=null,l(rt,["dblclick","dbltap","vdblclick"],ce,{x:be[0],y:be[1]})):(Q=setTimeout(function(){q||l(rt,["oneclick","onetap","voneclick"],ce,{x:be[0],y:be[1]})},me.multiClickDebounceTime()),W=ce.timeStamp)),rt==null&&!r.dragData.didDrag&&!r.hoverData.selecting&&!r.hoverData.dragged&&!h(ce)&&(me.$(a).unselect(["tapunselect"]),Ue.length>0&&r.redrawHint("eles",!0),r.dragData.possibleDragElements=Ue=me.collection()),We==rt&&!r.dragData.didDrag&&!r.hoverData.selecting&&We!=null&&We._private.selectable&&(r.hoverData.dragging||(me.selectionType()==="additive"||nt?We.selected()?We.unselect(["tapunselect"]):We.select(["tapselect"]):nt||(me.$(a).unmerge(We).unselect(["tapunselect"]),We.select(["tapselect"]))),r.redrawHint("eles",!0)),r.hoverData.selecting){var $t=me.collection(r.getAllInBox(ke[0],ke[1],ke[2],ke[3]));r.redrawHint("select",!0),$t.length>0&&r.redrawHint("eles",!0),me.emit(Ot("boxend"));var qt=i(function(Zr){return Zr.selectable()&&!Zr.selected()},"eleWouldBeSelected");me.selectionType()==="additive"||nt||me.$(a).unmerge($t).unselect(),$t.emit(Ot("box")).stdFilter(qt).select().emit(Ot("boxselect")),r.redraw()}if(r.hoverData.dragging&&(r.hoverData.dragging=!1,r.redrawHint("select",!0),r.redrawHint("eles",!0),r.redraw()),!ke[4]){r.redrawHint("drag",!0),r.redrawHint("eles",!0);var Gt=rt&&rt.grabbed();R(Ue),Gt&&(rt.emit(Ot("freeon")),Ue.emit(Ot("free")),r.dragData.didDrag&&(rt.emit(Ot("dragfreeon")),Ue.emit(Ot("dragfree"))))}}ke[4]=0,r.hoverData.down=null,r.hoverData.cxtStarted=!1,r.hoverData.draggingEles=!1,r.hoverData.selecting=!1,r.hoverData.isOverThresholdDrag=!1,r.dragData.didDrag=!1,r.hoverData.dragged=!1,r.hoverData.dragDelta=[],r.hoverData.mdownPos=null,r.hoverData.mdownGPos=null,r.hoverData.which=null}}},"mouseupHandler"),!1);var H=[],re=4,Z,X=1e5,te=i(function(ce,Re){for(var me=0;me<ce.length;me++)if(ce[me]%Re!==0)return!1;return!0},"allAreDivisibleBy"),U=i(function(ce){for(var Re=Math.abs(ce[0]),me=1;me<ce.length;me++)if(Math.abs(ce[me])!==Re)return!1;return!0},"allAreSameMagnitude"),ne=i(function(ce){var Re=!1,me=ce.deltaY;if(me==null&&(ce.wheelDeltaY!=null?me=ce.wheelDeltaY/4:ce.wheelDelta!=null&&(me=ce.wheelDelta/4)),me!==0){if(Z==null)if(H.length>=re){var be=H;if(Z=te(be,5),!Z){var ke=Math.abs(be[0]);Z=U(be)&&ke>5}if(Z)for(var We=0;We<be.length;We++)X=Math.min(Math.abs(be[We]),X)}else H.push(me),Re=!0;else Z&&(X=Math.min(Math.abs(me),X));if(!r.scrollingPage){var Ue=r.cy,rt=Ue.zoom(),nt=Ue.pan(),Ot=r.projectIntoViewport(ce.clientX,ce.clientY),ft=[Ot[0]*rt+nt.x,Ot[1]*rt+nt.y];if(r.hoverData.draggingEles||r.hoverData.dragging||r.hoverData.cxtStarted||$()){ce.preventDefault();return}if(Ue.panningEnabled()&&Ue.userPanningEnabled()&&Ue.zoomingEnabled()&&Ue.userZoomingEnabled()){ce.preventDefault(),r.data.wheelZooming=!0,clearTimeout(r.data.wheelTimeout),r.data.wheelTimeout=setTimeout(function(){r.data.wheelZooming=!1,r.redrawHint("eles",!0),r.redraw()},150);var Qt;Re&&Math.abs(me)>5&&(me=Vnt(me)*5),Qt=me/-250,Z&&(Qt/=X,Qt*=3),Qt=Qt*r.wheelSensitivity;var $t=ce.deltaMode===1;$t&&(Qt*=33);var qt=Ue.zoom()*Math.pow(10,Qt);ce.type==="gesturechange"&&(qt=r.gestureStartZoom*ce.scale),Ue.zoom({level:qt,renderedPosition:{x:ft[0],y:ft[1]}}),Ue.emit({type:ce.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:ce,position:{x:Ot[0],y:Ot[1]}})}}}},"wheelHandler");r.registerBinding(r.container,"wheel",ne,!0),r.registerBinding(t,"scroll",i(function(ce){r.scrollingPage=!0,clearTimeout(r.scrollingPageTimeout),r.scrollingPageTimeout=setTimeout(function(){r.scrollingPage=!1},250)},"scrollHandler"),!0),r.registerBinding(r.container,"gesturestart",i(function(ce){r.gestureStartZoom=r.cy.zoom(),r.hasTouchStarted||ce.preventDefault()},"gestureStartHandler"),!0),r.registerBinding(r.container,"gesturechange",function(Te){r.hasTouchStarted||ne(Te)},!0),r.registerBinding(r.container,"mouseout",i(function(ce){var Re=r.projectIntoViewport(ce.clientX,ce.clientY);r.cy.emit({originalEvent:ce,type:"mouseout",position:{x:Re[0],y:Re[1]}})},"mouseOutHandler"),!1),r.registerBinding(r.container,"mouseover",i(function(ce){var Re=r.projectIntoViewport(ce.clientX,ce.clientY);r.cy.emit({originalEvent:ce,type:"mouseover",position:{x:Re[0],y:Re[1]}})},"mouseOverHandler"),!1);var se,he,le,pe,ge,we,Ae,ve,Ie,De,Be,Fe,ze,vt=i(function(ce,Re,me,be){return Math.sqrt((me-ce)*(me-ce)+(be-Re)*(be-Re))},"distance"),lt=i(function(ce,Re,me,be){return(me-ce)*(me-ce)+(be-Re)*(be-Re)},"distanceSq"),Ft;r.registerBinding(r.container,"touchstart",Ft=i(function(ce){if(r.hasTouchStarted=!0,!!V(ce)){_(),r.touchData.capture=!0,r.data.bgActivePosistion=void 0;var Re=r.cy,me=r.touchData.now,be=r.touchData.earlier;if(ce.touches[0]){var ke=r.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);me[0]=ke[0],me[1]=ke[1]}if(ce.touches[1]){var ke=r.projectIntoViewport(ce.touches[1].clientX,ce.touches[1].clientY);me[2]=ke[0],me[3]=ke[1]}if(ce.touches[2]){var ke=r.projectIntoViewport(ce.touches[2].clientX,ce.touches[2].clientY);me[4]=ke[0],me[5]=ke[1]}var We=i(function(Un){return{originalEvent:ce,type:Un,position:{x:me[0],y:me[1]}}},"makeEvent");if(ce.touches[1]){r.touchData.singleTouchMoved=!0,R(r.dragData.touchDragEles);var Ue=r.findContainerClientCoords();Ie=Ue[0],De=Ue[1],Be=Ue[2],Fe=Ue[3],se=ce.touches[0].clientX-Ie,he=ce.touches[0].clientY-De,le=ce.touches[1].clientX-Ie,pe=ce.touches[1].clientY-De,ze=0<=se&&se<=Be&&0<=le&&le<=Be&&0<=he&&he<=Fe&&0<=pe&&pe<=Fe;var rt=Re.pan(),nt=Re.zoom();ge=vt(se,he,le,pe),we=lt(se,he,le,pe),Ae=[(se+le)/2,(he+pe)/2],ve=[(Ae[0]-rt.x)/nt,(Ae[1]-rt.y)/nt];var Ot=200,ft=Ot*Ot;if(we<ft&&!ce.touches[2]){var Qt=r.findNearestElement(me[0],me[1],!0,!0),$t=r.findNearestElement(me[2],me[3],!0,!0);Qt&&Qt.isNode()?(Qt.activate().emit(We("cxttapstart")),r.touchData.start=Qt):$t&&$t.isNode()?($t.activate().emit(We("cxttapstart")),r.touchData.start=$t):Re.emit(We("cxttapstart")),r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxt=!0,r.touchData.cxtDragged=!1,r.data.bgActivePosistion=void 0,r.redraw();return}}if(ce.touches[2])Re.boxSelectionEnabled()&&ce.preventDefault();else if(!ce.touches[1]){if(ce.touches[0]){var qt=r.findNearestElements(me[0],me[1],!0,!0),Gt=qt[0];if(Gt!=null&&(Gt.activate(),r.touchData.start=Gt,r.touchData.starts=qt,r.nodeIsGrabbable(Gt))){var jt=r.dragData.touchDragEles=Re.collection(),Zr=null;r.redrawHint("eles",!0),r.redrawHint("drag",!0),Gt.selected()?(Zr=Re.$(function(An){return An.selected()&&r.nodeIsGrabbable(An)}),E(Zr,{addToList:jt})):S(Gt,{addToList:jt}),b(Gt),Gt.emit(We("grabon")),Zr?Zr.forEach(function(An){An.emit(We("grab"))}):Gt.emit(We("grab"))}l(Gt,["touchstart","tapstart","vmousedown"],ce,{x:me[0],y:me[1]}),Gt==null&&(r.data.bgActivePosistion={x:ke[0],y:ke[1]},r.redrawHint("select",!0),r.redraw()),r.touchData.singleTouchMoved=!1,r.touchData.singleTouchStartTime=+new Date,clearTimeout(r.touchData.tapholdTimeout),r.touchData.tapholdTimeout=setTimeout(function(){r.touchData.singleTouchMoved===!1&&!r.pinching&&!r.touchData.selecting&&l(r.touchData.start,["taphold"],ce,{x:me[0],y:me[1]})},r.tapholdDuration)}}if(ce.touches.length>=1){for(var yt=r.touchData.startPosition=[null,null,null,null,null,null],$n=0;$n<me.length;$n++)yt[$n]=be[$n]=me[$n];var Ut=ce.touches[0];r.touchData.startGPosition=[Ut.clientX,Ut.clientY]}}},"touchstartHandler"),!1);var pr;r.registerBinding(t,"touchmove",pr=i(function(ce){var Re=r.touchData.capture;if(!(!Re&&!V(ce))){var me=r.selection,be=r.cy,ke=r.touchData.now,We=r.touchData.earlier,Ue=be.zoom();if(ce.touches[0]){var rt=r.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);ke[0]=rt[0],ke[1]=rt[1]}if(ce.touches[1]){var rt=r.projectIntoViewport(ce.touches[1].clientX,ce.touches[1].clientY);ke[2]=rt[0],ke[3]=rt[1]}if(ce.touches[2]){var rt=r.projectIntoViewport(ce.touches[2].clientX,ce.touches[2].clientY);ke[4]=rt[0],ke[5]=rt[1]}var nt=i(function(It){return{originalEvent:ce,type:It,position:{x:ke[0],y:ke[1]}}},"makeEvent"),Ot=r.touchData.startGPosition,ft;if(Re&&ce.touches[0]&&Ot){for(var Qt=[],$t=0;$t<ke.length;$t++)Qt[$t]=ke[$t]-We[$t];var qt=ce.touches[0].clientX-Ot[0],Gt=qt*qt,jt=ce.touches[0].clientY-Ot[1],Zr=jt*jt,yt=Gt+Zr;ft=yt>=r.touchTapThreshold2}if(Re&&r.touchData.cxt){ce.preventDefault();var $n=ce.touches[0].clientX-Ie,Ut=ce.touches[0].clientY-De,An=ce.touches[1].clientX-Ie,Un=ce.touches[1].clientY-De,En=lt($n,Ut,An,Un),ai=En/we,Gn=150,ui=Gn*Gn,Tn=1.5,Wi=Tn*Tn;if(ai>=Wi||En>=ui){r.touchData.cxt=!1,r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var Pa=nt("cxttapend");r.touchData.start?(r.touchData.start.unactivate().emit(Pa),r.touchData.start=null):be.emit(Pa)}}if(Re&&r.touchData.cxt){var Pa=nt("cxtdrag");r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.touchData.start?r.touchData.start.emit(Pa):be.emit(Pa),r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxtDragged=!0;var qe=r.findNearestElement(ke[0],ke[1],!0,!0);(!r.touchData.cxtOver||qe!==r.touchData.cxtOver)&&(r.touchData.cxtOver&&r.touchData.cxtOver.emit(nt("cxtdragout")),r.touchData.cxtOver=qe,qe&&qe.emit(nt("cxtdragover")))}else if(Re&&ce.touches[2]&&be.boxSelectionEnabled())ce.preventDefault(),r.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,r.touchData.selecting||be.emit(nt("boxstart")),r.touchData.selecting=!0,r.touchData.didSelect=!0,me[4]=1,!me||me.length===0||me[0]===void 0?(me[0]=(ke[0]+ke[2]+ke[4])/3,me[1]=(ke[1]+ke[3]+ke[5])/3,me[2]=(ke[0]+ke[2]+ke[4])/3+1,me[3]=(ke[1]+ke[3]+ke[5])/3+1):(me[2]=(ke[0]+ke[2]+ke[4])/3,me[3]=(ke[1]+ke[3]+ke[5])/3),r.redrawHint("select",!0),r.redraw();else if(Re&&ce.touches[1]&&!r.touchData.didSelect&&be.zoomingEnabled()&&be.panningEnabled()&&be.userZoomingEnabled()&&be.userPanningEnabled()){ce.preventDefault(),r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var Rn=r.dragData.touchDragEles;if(Rn){r.redrawHint("drag",!0);for(var Mn=0;Mn<Rn.length;Mn++){var ct=Rn[Mn]._private;ct.grabbed=!1,ct.rscratch.inDragLayer=!1}}var dr=r.touchData.start,$n=ce.touches[0].clientX-Ie,Ut=ce.touches[0].clientY-De,An=ce.touches[1].clientX-Ie,Un=ce.touches[1].clientY-De,Kr=vt($n,Ut,An,Un),pn=Kr/ge;if(ze){var Bn=$n-se,Hs=Ut-he,Ki=An-le,so=Un-pe,js=(Bn+Ki)/2,ls=(Hs+so)/2,Ba=be.zoom(),cs=Ba*pn,ln=be.pan(),Vr=ve[0]*Ba+ln.x,gn=ve[1]*Ba+ln.y,xi={x:-cs/Ba*(Vr-ln.x-js)+Vr,y:-cs/Ba*(gn-ln.y-ls)+gn};if(dr&&dr.active()){var Rn=r.dragData.touchDragEles;R(Rn),r.redrawHint("drag",!0),r.redrawHint("eles",!0),dr.unactivate().emit(nt("freeon")),Rn.emit(nt("free")),r.dragData.didDrag&&(dr.emit(nt("dragfreeon")),Rn.emit(nt("dragfree")))}be.viewport({zoom:cs,pan:xi,cancelOnFailedZoom:!0}),be.emit(nt("pinchzoom")),ge=Kr,se=$n,he=Ut,le=An,pe=Un,r.pinching=!0}if(ce.touches[0]){var rt=r.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);ke[0]=rt[0],ke[1]=rt[1]}if(ce.touches[1]){var rt=r.projectIntoViewport(ce.touches[1].clientX,ce.touches[1].clientY);ke[2]=rt[0],ke[3]=rt[1]}if(ce.touches[2]){var rt=r.projectIntoViewport(ce.touches[2].clientX,ce.touches[2].clientY);ke[4]=rt[0],ke[5]=rt[1]}}else if(ce.touches[0]&&!r.touchData.didSelect){var Pn=r.touchData.start,Vn=r.touchData.last,qe;if(!r.hoverData.draggingEles&&!r.swipePanning&&(qe=r.findNearestElement(ke[0],ke[1],!0,!0)),Re&&Pn!=null&&ce.preventDefault(),Re&&Pn!=null&&r.nodeIsDraggable(Pn))if(ft){var Rn=r.dragData.touchDragEles,la=!r.dragData.didDrag;la&&E(Rn,{inDragLayer:!0}),r.dragData.didDrag=!0;var Ln={x:0,y:0};if(ua(Qt[0])&&ua(Qt[1])&&(Ln.x+=Qt[0],Ln.y+=Qt[1],la)){r.redrawHint("eles",!0);var Zi=r.touchData.dragDelta;Zi&&ua(Zi[0])&&ua(Zi[1])&&(Ln.x+=Zi[0],Ln.y+=Zi[1])}r.hoverData.draggingEles=!0,Rn.silentShift(Ln).emit(nt("position")).emit(nt("drag")),r.redrawHint("drag",!0),r.touchData.startPosition[0]==We[0]&&r.touchData.startPosition[1]==We[1]&&r.redrawHint("eles",!0),r.redraw()}else{var Zi=r.touchData.dragDelta=r.touchData.dragDelta||[];Zi.length===0?(Zi.push(Qt[0]),Zi.push(Qt[1])):(Zi[0]+=Qt[0],Zi[1]+=Qt[1])}if(l(Pn||qe,["touchmove","tapdrag","vmousemove"],ce,{x:ke[0],y:ke[1]}),(!Pn||!Pn.grabbed())&&qe!=Vn&&(Vn&&Vn.emit(nt("tapdragout")),qe&&qe.emit(nt("tapdragover"))),r.touchData.last=qe,Re)for(var Mn=0;Mn<ke.length;Mn++)ke[Mn]&&r.touchData.startPosition[Mn]&&ft&&(r.touchData.singleTouchMoved=!0);if(Re&&(Pn==null||Pn.pannable())&&be.panningEnabled()&&be.userPanningEnabled()){var kt=f(Pn,r.touchData.starts);kt&&(ce.preventDefault(),r.data.bgActivePosistion||(r.data.bgActivePosistion=iV(r.touchData.startPosition)),r.swipePanning?(be.panBy({x:Qt[0]*Ue,y:Qt[1]*Ue}),be.emit(nt("dragpan"))):ft&&(r.swipePanning=!0,be.panBy({x:qt*Ue,y:jt*Ue}),be.emit(nt("dragpan")),Pn&&(Pn.unactivate(),r.redrawHint("select",!0),r.touchData.start=null)));var rt=r.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);ke[0]=rt[0],ke[1]=rt[1]}}for(var $t=0;$t<ke.length;$t++)We[$t]=ke[$t];Re&&ce.touches.length>0&&!r.hoverData.draggingEles&&!r.swipePanning&&r.data.bgActivePosistion!=null&&(r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.redraw())}},"touchmoveHandler"),!1);var tr;r.registerBinding(t,"touchcancel",tr=i(function(ce){var Re=r.touchData.start;r.touchData.capture=!1,Re&&Re.unactivate()},"touchcancelHandler"));var Mt,ot,it,mt;if(r.registerBinding(t,"touchend",Mt=i(function(ce){var Re=r.touchData.start,me=r.touchData.capture;if(me)ce.touches.length===0&&(r.touchData.capture=!1),ce.preventDefault();else return;var be=r.selection;r.swipePanning=!1,r.hoverData.draggingEles=!1;var ke=r.cy,We=ke.zoom(),Ue=r.touchData.now,rt=r.touchData.earlier;if(ce.touches[0]){var nt=r.projectIntoViewport(ce.touches[0].clientX,ce.touches[0].clientY);Ue[0]=nt[0],Ue[1]=nt[1]}if(ce.touches[1]){var nt=r.projectIntoViewport(ce.touches[1].clientX,ce.touches[1].clientY);Ue[2]=nt[0],Ue[3]=nt[1]}if(ce.touches[2]){var nt=r.projectIntoViewport(ce.touches[2].clientX,ce.touches[2].clientY);Ue[4]=nt[0],Ue[5]=nt[1]}var Ot=i(function(ui){return{originalEvent:ce,type:ui,position:{x:Ue[0],y:Ue[1]}}},"makeEvent");Re&&Re.unactivate();var ft;if(r.touchData.cxt){if(ft=Ot("cxttapend"),Re?Re.emit(ft):ke.emit(ft),!r.touchData.cxtDragged){var Qt=Ot("cxttap");Re?Re.emit(Qt):ke.emit(Qt)}r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxt=!1,r.touchData.start=null,r.redraw();return}if(!ce.touches[2]&&ke.boxSelectionEnabled()&&r.touchData.selecting){r.touchData.selecting=!1;var $t=ke.collection(r.getAllInBox(be[0],be[1],be[2],be[3]));be[0]=void 0,be[1]=void 0,be[2]=void 0,be[3]=void 0,be[4]=0,r.redrawHint("select",!0),ke.emit(Ot("boxend"));var qt=i(function(ui){return ui.selectable()&&!ui.selected()},"eleWouldBeSelected");$t.emit(Ot("box")).stdFilter(qt).select().emit(Ot("boxselect")),$t.nonempty()&&r.redrawHint("eles",!0),r.redraw()}if(Re?.unactivate(),ce.touches[2])r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);else if(!ce.touches[1]){if(!ce.touches[0]){if(!ce.touches[0]){r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var Gt=r.dragData.touchDragEles;if(Re!=null){var jt=Re._private.grabbed;R(Gt),r.redrawHint("drag",!0),r.redrawHint("eles",!0),jt&&(Re.emit(Ot("freeon")),Gt.emit(Ot("free")),r.dragData.didDrag&&(Re.emit(Ot("dragfreeon")),Gt.emit(Ot("dragfree")))),l(Re,["touchend","tapend","vmouseup","tapdragout"],ce,{x:Ue[0],y:Ue[1]}),Re.unactivate(),r.touchData.start=null}else{var Zr=r.findNearestElement(Ue[0],Ue[1],!0,!0);l(Zr,["touchend","tapend","vmouseup","tapdragout"],ce,{x:Ue[0],y:Ue[1]})}var yt=r.touchData.startPosition[0]-Ue[0],$n=yt*yt,Ut=r.touchData.startPosition[1]-Ue[1],An=Ut*Ut,Un=$n+An,En=Un*We*We;r.touchData.singleTouchMoved||(Re||ke.$(":selected").unselect(["tapunselect"]),l(Re,["tap","vclick"],ce,{x:Ue[0],y:Ue[1]}),ot=!1,ce.timeStamp-mt<=ke.multiClickDebounceTime()?(it&&clearTimeout(it),ot=!0,mt=null,l(Re,["dbltap","vdblclick"],ce,{x:Ue[0],y:Ue[1]})):(it=setTimeout(function(){ot||l(Re,["onetap","voneclick"],ce,{x:Ue[0],y:Ue[1]})},ke.multiClickDebounceTime()),mt=ce.timeStamp)),Re!=null&&!r.dragData.didDrag&&Re._private.selectable&&En<r.touchTapThreshold2&&!r.pinching&&(ke.selectionType()==="single"?(ke.$(a).unmerge(Re).unselect(["tapunselect"]),Re.select(["tapselect"])):Re.selected()?Re.unselect(["tapunselect"]):Re.select(["tapselect"]),r.redrawHint("eles",!0)),r.touchData.singleTouchMoved=!0}}}for(var ai=0;ai<Ue.length;ai++)rt[ai]=Ue[ai];r.dragData.didDrag=!1,ce.touches.length===0&&(r.touchData.dragDelta=[],r.touchData.startPosition=[null,null,null,null,null,null],r.touchData.startGPosition=null,r.touchData.didSelect=!1),ce.touches.length<2&&(ce.touches.length===1&&(r.touchData.startGPosition=[ce.touches[0].clientX,ce.touches[0].clientY]),r.pinching=!1,r.redrawHint("eles",!0),r.redraw())},"touchendHandler"),!1),typeof TouchEvent>"u"){var Rt=[],pt=i(function(ce){return{clientX:ce.clientX,clientY:ce.clientY,force:1,identifier:ce.pointerId,pageX:ce.pageX,pageY:ce.pageY,radiusX:ce.width/2,radiusY:ce.height/2,screenX:ce.screenX,screenY:ce.screenY,target:ce.target}},"makeTouch"),gt=i(function(ce){return{event:ce,touch:pt(ce)}},"makePointer"),ut=i(function(ce){Rt.push(gt(ce))},"addPointer"),Yt=i(function(ce){for(var Re=0;Re<Rt.length;Re++){var me=Rt[Re];if(me.event.pointerId===ce.pointerId){Rt.splice(Re,1);return}}},"removePointer"),Ye=i(function(ce){var Re=Rt.filter(function(me){return me.event.pointerId===ce.pointerId})[0];Re.event=ce,Re.touch=pt(ce)},"updatePointer"),Oe=i(function(ce){ce.touches=Rt.map(function(Re){return Re.touch})},"addTouchesToEvent"),K=i(function(ce){return ce.pointerType==="mouse"||ce.pointerType===4},"pointerIsMouse");r.registerBinding(r.container,"pointerdown",function(Te){K(Te)||(Te.preventDefault(),ut(Te),Oe(Te),Ft(Te))}),r.registerBinding(r.container,"pointerup",function(Te){K(Te)||(Yt(Te),Oe(Te),Mt(Te))}),r.registerBinding(r.container,"pointercancel",function(Te){K(Te)||(Yt(Te),Oe(Te),tr(Te))}),r.registerBinding(r.container,"pointermove",function(Te){K(Te)||(Te.preventDefault(),Ye(Te),Oe(Te),pr(Te))})}};e8={};e8.generatePolygon=function(r,t){return this.nodeShapes[r]={renderer:this,name:r,points:t,draw:i(function(s,l,h,f,d,m){this.renderer.nodeShapeImpl("polygon",s,l,h,f,d,this.points)},"draw"),intersectLine:i(function(s,l,h,f,d,m,b,v){return tie(d,m,this.points,s,l,h/2,f/2,b)},"intersectLine"),checkPoint:i(function(s,l,h,f,d,m,b,v){return ZA(s,l,this.points,m,b,f,d,[0,-1],h)},"checkPoint"),hasMiterBounds:r!=="rectangle",miterBounds:i(function(s,l,h,f,d,m){return TXn(this.points,s,l,h,f,d)},"miterBounds")}};e8.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:i(function(t,a,s,l,h,f){this.renderer.nodeShapeImpl(this.name,t,a,s,l,h)},"draw"),intersectLine:i(function(t,a,s,l,h,f,d,m){return _Xn(h,f,t,a,s/2+d,l/2+d)},"intersectLine"),checkPoint:i(function(t,a,s,l,h,f,d,m){return vP(t,a,l,h,f,d,s)},"checkPoint")}};e8.generateRoundPolygon=function(r,t){return this.nodeShapes[r]={renderer:this,name:r,points:t,getOrCreateCorners:i(function(s,l,h,f,d,m,b){if(m[b]!==void 0&&m[b+"-cx"]===s&&m[b+"-cy"]===l)return m[b];m[b]=new Array(t.length/2),m[b+"-cx"]=s,m[b+"-cy"]=l;var v=h/2,T=f/2;d=d==="auto"?G8r(h,f):d;for(var C=new Array(t.length/2),E=0;E<t.length/2;E++)C[E]={x:s+v*t[E*2],y:l+T*t[E*2+1]};var S,R,L,_,I=C.length;for(R=C[I-1],S=0;S<I;S++)L=C[S%I],_=C[(S+1)%I],m[b][S]=nit(R,L,_,d),R=L,L=_;return m[b]},"getOrCreateCorners"),draw:i(function(s,l,h,f,d,m,b){this.renderer.nodeShapeImpl("round-polygon",s,l,h,f,d,this.points,this.getOrCreateCorners(l,h,f,d,m,b,"drawCorners"))},"draw"),intersectLine:i(function(s,l,h,f,d,m,b,v,T){return IXn(d,m,this.points,s,l,h,f,b,this.getOrCreateCorners(s,l,h,f,v,T,"corners"))},"intersectLine"),checkPoint:i(function(s,l,h,f,d,m,b,v,T){return LXn(s,l,this.points,m,b,f,d,this.getOrCreateCorners(m,b,f,d,v,T,"corners"))},"checkPoint")}};e8.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Mb(4,0),draw:i(function(t,a,s,l,h,f){this.renderer.nodeShapeImpl(this.name,t,a,s,l,h,this.points,f)},"draw"),intersectLine:i(function(t,a,s,l,h,f,d,m){return F8r(h,f,t,a,s,l,d,m)},"intersectLine"),checkPoint:i(function(t,a,s,l,h,f,d,m){var b=l/2,v=h/2;m=m==="auto"?eD(l,h):m,m=Math.min(b,v,m);var T=m*2;return!!(ZA(t,a,this.points,f,d,l,h-T,[0,-1],s)||ZA(t,a,this.points,f,d,l-T,h,[0,-1],s)||vP(t,a,T,T,f-b+m,d-v+m,s)||vP(t,a,T,T,f+b-m,d-v+m,s)||vP(t,a,T,T,f+b-m,d+v-m,s)||vP(t,a,T,T,f-b+m,d+v-m,s))},"checkPoint")}};e8.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:Hnt(),points:Mb(4,0),draw:i(function(t,a,s,l,h,f){this.renderer.nodeShapeImpl(this.name,t,a,s,l,h,null,f)},"draw"),generateCutTrianglePts:i(function(t,a,s,l,h){var f=h==="auto"?this.cornerLength:h,d=a/2,m=t/2,b=s-m,v=s+m,T=l-d,C=l+d;return{topLeft:[b,T+f,b+f,T,b+f,T+f],topRight:[v-f,T,v,T+f,v-f,T+f],bottomRight:[v,C-f,v-f,C,v-f,C-f],bottomLeft:[b+f,C,b,C-f,b+f,C-f]}},"generateCutTrianglePts"),intersectLine:i(function(t,a,s,l,h,f,d,m){var b=this.generateCutTrianglePts(s+2*d,l+2*d,t,a,m),v=[].concat.apply([],[b.topLeft.splice(0,4),b.topRight.splice(0,4),b.bottomRight.splice(0,4),b.bottomLeft.splice(0,4)]);return tie(h,f,v,t,a)},"intersectLine"),checkPoint:i(function(t,a,s,l,h,f,d,m){var b=m==="auto"?this.cornerLength:m;if(ZA(t,a,this.points,f,d,l,h-2*b,[0,-1],s)||ZA(t,a,this.points,f,d,l-2*b,h,[0,-1],s))return!0;var v=this.generateCutTrianglePts(l,h,f,d);return b2(t,a,v.topLeft)||b2(t,a,v.topRight)||b2(t,a,v.bottomRight)||b2(t,a,v.bottomLeft)},"checkPoint")}};e8.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Mb(4,0),draw:i(function(t,a,s,l,h,f){this.renderer.nodeShapeImpl(this.name,t,a,s,l,h)},"draw"),intersectLine:i(function(t,a,s,l,h,f,d,m){var b=.15,v=.5,T=.85,C=this.generateBarrelBezierPts(s+2*d,l+2*d,t,a),E=i(function(L){var _=oV({x:L[0],y:L[1]},{x:L[2],y:L[3]},{x:L[4],y:L[5]},b),I=oV({x:L[0],y:L[1]},{x:L[2],y:L[3]},{x:L[4],y:L[5]},v),N=oV({x:L[0],y:L[1]},{x:L[2],y:L[3]},{x:L[4],y:L[5]},T);return[L[0],L[1],_.x,_.y,I.x,I.y,N.x,N.y,L[4],L[5]]},"approximateBarrelCurvePts"),S=[].concat(E(C.topLeft),E(C.topRight),E(C.bottomRight),E(C.bottomLeft));return tie(h,f,S,t,a)},"intersectLine"),generateBarrelBezierPts:i(function(t,a,s,l){var h=a/2,f=t/2,d=s-f,m=s+f,b=l-h,v=l+h,T=bnt(t,a),C=T.heightOffset,E=T.widthOffset,S=T.ctrlPtOffsetPct*t,R={topLeft:[d,b+C,d+S,b,d+E,b],topRight:[m-E,b,m-S,b,m,b+C],bottomRight:[m,v-C,m-S,v,m-E,v],bottomLeft:[d+E,v,d+S,v,d,v-C]};return R.topLeft.isTop=!0,R.topRight.isTop=!0,R.bottomLeft.isBottom=!0,R.bottomRight.isBottom=!0,R},"generateBarrelBezierPts"),checkPoint:i(function(t,a,s,l,h,f,d,m){var b=bnt(l,h),v=b.heightOffset,T=b.widthOffset;if(ZA(t,a,this.points,f,d,l,h-2*v,[0,-1],s)||ZA(t,a,this.points,f,d,l-2*T,h,[0,-1],s))return!0;for(var C=this.generateBarrelBezierPts(l,h,f,d),E=i(function(V,Y,Q){var q=Q[4],W=Q[2],H=Q[0],re=Q[5],Z=Q[1],X=Math.min(q,H),te=Math.max(q,H),U=Math.min(re,Z),ne=Math.max(re,Z);if(X<=V&&V<=te&&U<=Y&&Y<=ne){var se=MXn(q,W,H),he=EXn(se[0],se[1],se[2],V),le=he.filter(function(pe){return 0<=pe&&pe<=1});if(le.length>0)return le[0]}return null},"getCurveT"),S=Object.keys(C),R=0;R<S.length;R++){var L=S[R],_=C[L],I=E(t,a,_);if(I!=null){var N=_[5],B=_[3],O=_[1],P=km(N,B,O,I);if(_.isTop&&P<=a||_.isBottom&&a<=P)return!0}}return!1},"checkPoint")}};e8.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Mb(4,0),draw:i(function(t,a,s,l,h,f){this.renderer.nodeShapeImpl(this.name,t,a,s,l,h,this.points,f)},"draw"),intersectLine:i(function(t,a,s,l,h,f,d,m){var b=t-(s/2+d),v=a-(l/2+d),T=v,C=t+(s/2+d),E=X_(h,f,t,a,b,v,C,T,!1);return E.length>0?E:F8r(h,f,t,a,s,l,d,m)},"intersectLine"),checkPoint:i(function(t,a,s,l,h,f,d,m){m=m==="auto"?eD(l,h):m;var b=2*m;if(ZA(t,a,this.points,f,d,l,h-b,[0,-1],s)||ZA(t,a,this.points,f,d,l-b,h,[0,-1],s))return!0;var v=l/2+2*s,T=h/2+2*s,C=[f-v,d-T,f-v,d,f+v,d,f+v,d-T];return!!(b2(t,a,C)||vP(t,a,b,b,f+l/2-m,d+h/2-m,s)||vP(t,a,b,b,f-l/2+m,d+h/2-m,s))},"checkPoint")}};e8.registerNodeShapes=function(){var r=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",Mb(3,0)),this.generateRoundPolygon("round-triangle",Mb(3,0)),this.generatePolygon("rectangle",Mb(4,0)),r.square=r.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var a=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",a),this.generateRoundPolygon("round-diamond",a)}this.generatePolygon("pentagon",Mb(5,0)),this.generateRoundPolygon("round-pentagon",Mb(5,0)),this.generatePolygon("hexagon",Mb(6,0)),this.generateRoundPolygon("round-hexagon",Mb(6,0)),this.generatePolygon("heptagon",Mb(7,0)),this.generateRoundPolygon("round-heptagon",Mb(7,0)),this.generatePolygon("octagon",Mb(8,0)),this.generateRoundPolygon("round-octagon",Mb(8,0));var s=new Array(20);{var l=ynt(5,0),h=ynt(5,Math.PI/5),f=.5*(3-Math.sqrt(5));f*=1.57;for(var d=0;d<h.length/2;d++)h[d*2]*=f,h[d*2+1]*=f;for(var d=0;d<20/4;d++)s[d*4]=l[d*2],s[d*4+1]=l[d*2+1],s[d*4+2]=h[d*2],s[d*4+3]=h[d*2+1]}s=$8r(s),this.generatePolygon("star",s),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 m=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",m),this.generateRoundPolygon("round-tag",m)}r.makePolygon=function(b){var v=b.join("$"),T="polygon-"+v,C;return(C=this[T])?C:t.generatePolygon(T,b)}};yie={};yie.timeToRender=function(){return this.redrawTotalTime/this.redrawCount};yie.redraw=function(r){r=r||N8r();var t=this;t.averageRedrawTime===void 0&&(t.averageRedrawTime=0),t.lastRedrawTime===void 0&&(t.lastRedrawTime=0),t.lastDrawTime===void 0&&(t.lastDrawTime=0),t.requestedFrame=!0,t.renderOptions=r};yie.beforeRender=function(r,t){if(!this.destroyed){t==null&&td("Priority is not optional for beforeRender");var a=this.beforeRenderCallbacks;a.push({fn:r,priority:t}),a.sort(function(s,l){return l.priority-s.priority})}};ZAr=i(function(t,a,s){for(var l=t.beforeRenderCallbacks,h=0;h<l.length;h++)l[h].fn(a,s)},"beforeRenderCallbacks");yie.startRenderLoop=function(){var r=this,t=r.cy;if(!r.renderLoopStarted){r.renderLoopStarted=!0;var a=i(function(l){if(!r.destroyed){if(!t.batching())if(r.requestedFrame&&!r.skipFrame){ZAr(r,!0,l);var h=QA();r.render(r.renderOptions);var f=r.lastDrawTime=QA();r.averageRedrawTime===void 0&&(r.averageRedrawTime=f-h),r.redrawCount===void 0&&(r.redrawCount=0),r.redrawCount++,r.redrawTotalTime===void 0&&(r.redrawTotalTime=0);var d=f-h;r.redrawTotalTime+=d,r.lastRedrawTime=d,r.averageRedrawTime=r.averageRedrawTime/2+d/2,r.requestedFrame=!1}else ZAr(r,!1,l);r.skipFrame=!1,JTe(a)}},"renderFn");JTe(a)}};QQn=i(function(t){this.init(t)},"BaseRenderer"),j7r=QQn,xV=j7r.prototype;xV.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"];xV.init=function(r){var t=this;t.options=r,t.cy=r.cy;var a=t.container=r.cy.container(),s=t.cy.window();if(s){var l=s.document,h=l.head,f="__________cytoscape_stylesheet",d="__________cytoscape_container",m=l.getElementById(f)!=null;if(a.className.indexOf(d)<0&&(a.className=(a.className||"")+" "+d),!m){var b=l.createElement("style");b.id=f,b.textContent="."+d+" { position: relative; }",h.insertBefore(b,h.children[0])}var v=s.getComputedStyle(a),T=v.getPropertyValue("position");T==="static"&&Uu("A Cytoscape container has style position:static and so can not use UI extensions properly")}t.selection=[void 0,void 0,void 0,void 0,0],t.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],t.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},t.dragData={possibleDragElements:[]},t.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]},t.redraws=0,t.showFps=r.showFps,t.debug=r.debug,t.webgl=r.webgl,t.hideEdgesOnViewport=r.hideEdgesOnViewport,t.textureOnViewport=r.textureOnViewport,t.wheelSensitivity=r.wheelSensitivity,t.motionBlurEnabled=r.motionBlur,t.forcedPixelRatio=ua(r.pixelRatio)?r.pixelRatio:null,t.motionBlur=r.motionBlur,t.motionBlurOpacity=r.motionBlurOpacity,t.motionBlurTransparency=1-t.motionBlurOpacity,t.motionBlurPxRatio=1,t.mbPxRBlurry=1,t.minMbLowQualFrames=4,t.fullQualityMb=!1,t.clearedForMotionBlur=[],t.desktopTapThreshold=r.desktopTapThreshold,t.desktopTapThreshold2=r.desktopTapThreshold*r.desktopTapThreshold,t.touchTapThreshold=r.touchTapThreshold,t.touchTapThreshold2=r.touchTapThreshold*r.touchTapThreshold,t.tapholdDuration=500,t.bindings=[],t.beforeRenderCallbacks=[],t.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},t.registerNodeShapes(),t.registerArrowShapes(),t.registerCalculationListeners()};xV.notify=function(r,t){var a=this,s=a.cy;if(!this.destroyed){if(r==="init"){a.load();return}if(r==="destroy"){a.destroy();return}(r==="add"||r==="remove"||r==="move"&&s.hasCompoundNodes()||r==="load"||r==="zorder"||r==="mount")&&a.invalidateCachedZSortedEles(),r==="viewport"&&a.redrawHint("select",!0),r==="gc"&&a.redrawHint("gc",!0),(r==="load"||r==="resize"||r==="mount")&&(a.invalidateContainerClientCoordsCache(),a.matchCanvasSize(a.container)),a.redrawHint("eles",!0),a.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}};xV.destroy=function(){var r=this;r.destroyed=!0,r.cy.stopAnimationLoop();for(var t=0;t<r.bindings.length;t++){var a=r.bindings[t],s=a,l=s.target;(l.off||l.removeEventListener).apply(l,s.args)}if(r.bindings=[],r.beforeRenderCallbacks=[],r.onUpdateEleCalcsFns=[],r.removeObserver&&r.removeObserver.disconnect(),r.styleObserver&&r.styleObserver.disconnect(),r.resizeObserver&&r.resizeObserver.disconnect(),r.labelCalcDiv)try{document.body.removeChild(r.labelCalcDiv)}catch{}};xV.isHeadless=function(){return!1};[rit,F7r,$7r,wV,e8,yie].forEach(function(r){ao(xV,r)});lnt=1e3/60,z7r={setupDequeueing:i(function(t){return i(function(){var s=this,l=this.renderer;if(!s.dequeueingSetup){s.dequeueingSetup=!0;var h=fie(function(){l.redrawHint("eles",!0),l.redrawHint("drag",!0),l.redraw()},t.deqRedrawThreshold),f=i(function(b,v){var T=QA(),C=l.averageRedrawTime,E=l.lastRedrawTime,S=[],R=l.cy.extent(),L=l.getPixelRatio();for(b||l.flushRenderedStyleQueue();;){var _=QA(),I=_-T,N=_-v;if(E<lnt){var B=lnt-(b?C:0);if(N>=t.deqFastCost*B)break}else if(b){if(I>=t.deqCost*E||I>=t.deqAvgCost*C)break}else if(N>=t.deqNoDrawCost*lnt)break;var O=t.deq(s,L,R);if(O.length>0)for(var P=0;P<O.length;P++)S.push(O[P]);else break}S.length>0&&(t.onDeqd(s,S),!b&&t.shouldRedraw(s,S,L,R)&&h())},"dequeue"),d=t.priority||jnt;l.beforeRender(f,d(s))}},"setupDequeueingImpl")},"setupDequeueing")},ZQn=(function(){function r(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:QTe;iD(this,r),this.idsByKey=new JA,this.keyForId=new JA,this.cachesByLvl=new JA,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=a}return i(r,"ElementTextureCacheLookup"),aD(r,[{key:"getIdsFor",value:i(function(a){a==null&&td("Can not get id list for null key");var s=this.idsByKey,l=this.idsByKey.get(a);return l||(l=new mV,s.set(a,l)),l},"getIdsFor")},{key:"addIdForKey",value:i(function(a,s){a!=null&&this.getIdsFor(a).add(s)},"addIdForKey")},{key:"deleteIdForKey",value:i(function(a,s){a!=null&&this.getIdsFor(a).delete(s)},"deleteIdForKey")},{key:"getNumberOfIdsForKey",value:i(function(a){return a==null?0:this.getIdsFor(a).size},"getNumberOfIdsForKey")},{key:"updateKeyMappingFor",value:i(function(a){var s=a.id(),l=this.keyForId.get(s),h=this.getKey(a);this.deleteIdForKey(l,s),this.addIdForKey(h,s),this.keyForId.set(s,h)},"updateKeyMappingFor")},{key:"deleteKeyMappingFor",value:i(function(a){var s=a.id(),l=this.keyForId.get(s);this.deleteIdForKey(l,s),this.keyForId.delete(s)},"deleteKeyMappingFor")},{key:"keyHasChangedFor",value:i(function(a){var s=a.id(),l=this.keyForId.get(s),h=this.getKey(a);return l!==h},"keyHasChangedFor")},{key:"isInvalid",value:i(function(a){return this.keyHasChangedFor(a)||this.doesEleInvalidateKey(a)},"isInvalid")},{key:"getCachesAt",value:i(function(a){var s=this.cachesByLvl,l=this.lvls,h=s.get(a);return h||(h=new JA,s.set(a,h),l.push(a)),h},"getCachesAt")},{key:"getCache",value:i(function(a,s){return this.getCachesAt(s).get(a)},"getCache")},{key:"get",value:i(function(a,s){var l=this.getKey(a),h=this.getCache(l,s);return h!=null&&this.updateKeyMappingFor(a),h},"get")},{key:"getForCachedKey",value:i(function(a,s){var l=this.keyForId.get(a.id()),h=this.getCache(l,s);return h},"getForCachedKey")},{key:"hasCache",value:i(function(a,s){return this.getCachesAt(s).has(a)},"hasCache")},{key:"has",value:i(function(a,s){var l=this.getKey(a);return this.hasCache(l,s)},"has")},{key:"setCache",value:i(function(a,s,l){l.key=a,this.getCachesAt(s).set(a,l)},"setCache")},{key:"set",value:i(function(a,s,l){var h=this.getKey(a);this.setCache(h,s,l),this.updateKeyMappingFor(a)},"set")},{key:"deleteCache",value:i(function(a,s){this.getCachesAt(s).delete(a)},"deleteCache")},{key:"delete",value:i(function(a,s){var l=this.getKey(a);this.deleteCache(l,s)},"_delete")},{key:"invalidateKey",value:i(function(a){var s=this;this.lvls.forEach(function(l){return s.deleteCache(a,l)})},"invalidateKey")},{key:"invalidate",value:i(function(a){var s=a.id(),l=this.keyForId.get(s);this.deleteKeyMappingFor(a);var h=this.doesEleInvalidateKey(a);return h&&this.invalidateKey(l),h||this.getNumberOfIdsForKey(l)===0},"invalidate")}])})(),e8r=25,PTe=50,qTe=-4,Dnt=3,U7r=7.99,eZn=8,tZn=1024,rZn=1024,nZn=1024,iZn=.2,aZn=.8,sZn=10,oZn=.15,lZn=.1,cZn=.9,uZn=.9,hZn=100,fZn=1,sV={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},dZn=m1({getKey:null,doesEleInvalidateKey:QTe,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:D8r,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),qne=i(function(t,a){var s=this;s.renderer=t,s.onDequeues=[];var l=dZn(a);ao(s,l),s.lookup=new ZQn(l.getKey,l.doesEleInvalidateKey),s.setupDequeueing()},"ElementTextureCache"),I0=qne.prototype;I0.reasons=sV;I0.getTextureQueue=function(r){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[r]=t.eleImgCaches[r]||[]};I0.getRetiredTextureQueue=function(r){var t=this,a=t.eleImgCaches.retired=t.eleImgCaches.retired||{},s=a[r]=a[r]||[];return s};I0.getElementQueue=function(){var r=this,t=r.eleCacheQueue=r.eleCacheQueue||new die(function(a,s){return s.reqs-a.reqs});return t};I0.getElementKeyToQueue=function(){var r=this,t=r.eleKeyToCacheQueue=r.eleKeyToCacheQueue||{};return t};I0.getElement=function(r,t,a,s,l){var h=this,f=this.renderer,d=f.cy.zoom(),m=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!r.visible()||r.removed()||!h.allowEdgeTxrCaching&&r.isEdge()||!h.allowParentTxrCaching&&r.isParent())return null;if(s==null&&(s=Math.ceil(Unt(d*a))),s<qTe)s=qTe;else if(d>=U7r||s>Dnt)return null;var b=Math.pow(2,s),v=t.h*b,T=t.w*b,C=f.eleTextBiggerThanMin(r,b);if(!this.isVisible(r,C))return null;var E=m.get(r,s);if(E&&E.invalidated&&(E.invalidated=!1,E.texture.invalidatedWidth-=E.width),E)return E;var S;if(v<=e8r?S=e8r:v<=PTe?S=PTe:S=Math.ceil(v/PTe)*PTe,v>nZn||T>rZn)return null;var R=h.getTextureQueue(S),L=R[R.length-2],_=i(function(){return h.recycleTexture(S,T)||h.addTexture(S,T)},"addNewTxr");L||(L=R[R.length-1]),L||(L=_()),L.width-L.usedWidth<T&&(L=_());for(var I=i(function(X){return X&&X.scaledLabelShown===C},"scalableFrom"),N=l&&l===sV.dequeue,B=l&&l===sV.highQuality,O=l&&l===sV.downscale,P,$=s+1;$<=Dnt;$++){var V=m.get(r,$);if(V){P=V;break}}var Y=P&&P.level===s+1?P:null,Q=i(function(){L.context.drawImage(Y.texture.canvas,Y.x,0,Y.width,Y.height,L.usedWidth,0,T,v)},"downscale");if(L.context.setTransform(1,0,0,1,0,0),L.context.clearRect(L.usedWidth,0,T,S),I(Y))Q();else if(I(P))if(B){for(var q=P.level;q>s;q--)Y=h.getElement(r,t,a,q,sV.downscale);Q()}else return h.queueElement(r,P.level-1),P;else{var W;if(!N&&!B&&!O)for(var H=s-1;H>=qTe;H--){var re=m.get(r,H);if(re){W=re;break}}if(I(W))return h.queueElement(r,s),W;L.context.translate(L.usedWidth,0),L.context.scale(b,b),this.drawElement(L.context,r,t,C,!1),L.context.scale(1/b,1/b),L.context.translate(-L.usedWidth,0)}return E={x:L.usedWidth,texture:L,level:s,scale:b,width:T,height:v,scaledLabelShown:C},L.usedWidth+=Math.ceil(T+eZn),L.eleCaches.push(E),m.set(r,s,E),h.checkTextureFullness(L),E};I0.invalidateElements=function(r){for(var t=0;t<r.length;t++)this.invalidateElement(r[t])};I0.invalidateElement=function(r){var t=this,a=t.lookup,s=[],l=a.isInvalid(r);if(l){for(var h=qTe;h<=Dnt;h++){var f=a.getForCachedKey(r,h);f&&s.push(f)}var d=a.invalidate(r);if(d)for(var m=0;m<s.length;m++){var b=s[m],v=b.texture;v.invalidatedWidth+=b.width,b.invalidated=!0,t.checkTextureUtility(v)}t.removeFromQueue(r)}};I0.checkTextureUtility=function(r){r.invalidatedWidth>=iZn*r.width&&this.retireTexture(r)};I0.checkTextureFullness=function(r){var t=this,a=t.getTextureQueue(r.height);r.usedWidth/r.width>aZn&&r.fullnessChecks>=sZn?Z_(a,r):r.fullnessChecks++};I0.retireTexture=function(r){var t=this,a=r.height,s=t.getTextureQueue(a),l=this.lookup;Z_(s,r),r.retired=!0;for(var h=r.eleCaches,f=0;f<h.length;f++){var d=h[f];l.deleteCache(d.key,d.level)}znt(h);var m=t.getRetiredTextureQueue(a);m.push(r)};I0.addTexture=function(r,t){var a=this,s=a.getTextureQueue(r),l={};return s.push(l),l.eleCaches=[],l.height=r,l.width=Math.max(tZn,t),l.usedWidth=0,l.invalidatedWidth=0,l.fullnessChecks=0,l.canvas=a.renderer.makeOffscreenCanvas(l.width,l.height),l.context=l.canvas.getContext("2d"),l};I0.recycleTexture=function(r,t){for(var a=this,s=a.getTextureQueue(r),l=a.getRetiredTextureQueue(r),h=0;h<l.length;h++){var f=l[h];if(f.width>=t)return f.retired=!1,f.usedWidth=0,f.invalidatedWidth=0,f.fullnessChecks=0,znt(f.eleCaches),f.context.setTransform(1,0,0,1,0,0),f.context.clearRect(0,0,f.width,f.height),Z_(l,f),s.push(f),f}};I0.queueElement=function(r,t){var a=this,s=a.getElementQueue(),l=a.getElementKeyToQueue(),h=this.getKey(r),f=l[h];if(f)f.level=Math.max(f.level,t),f.eles.merge(r),f.reqs++,s.updateItem(f);else{var d={eles:r.spawn().merge(r),level:t,reqs:1,key:h};s.push(d),l[h]=d}};I0.dequeue=function(r){for(var t=this,a=t.getElementQueue(),s=t.getElementKeyToQueue(),l=[],h=t.lookup,f=0;f<fZn&&a.size()>0;f++){var d=a.pop(),m=d.key,b=d.eles[0],v=h.hasCache(b,d.level);if(s[m]=null,v)continue;l.push(d);var T=t.getBoundingBox(b);t.getElement(b,T,r,d.level,sV.dequeue)}return l};I0.removeFromQueue=function(r){var t=this,a=t.getElementQueue(),s=t.getElementKeyToQueue(),l=this.getKey(r),h=s[l];h!=null&&(h.eles.length===1?(h.reqs=Gnt,a.updateItem(h),a.pop(),s[l]=null):h.eles.unmerge(r))};I0.onDequeue=function(r){this.onDequeues.push(r)};I0.offDequeue=function(r){Z_(this.onDequeues,r)};I0.setupDequeueing=z7r.setupDequeueing({deqRedrawThreshold:hZn,deqCost:oZn,deqAvgCost:lZn,deqNoDrawCost:cZn,deqFastCost:uZn,deq:i(function(t,a,s){return t.dequeue(a,s)},"deq"),onDeqd:i(function(t,a){for(var s=0;s<t.onDequeues.length;s++){var l=t.onDequeues[s];l(a)}},"onDeqd"),shouldRedraw:i(function(t,a,s,l){for(var h=0;h<a.length;h++)for(var f=a[h].eles,d=0;d<f.length;d++){var m=f[d].boundingBox();if(Wnt(m,l))return!0}return!1},"shouldRedraw"),priority:i(function(t){return t.renderer.beforeRenderPriorities.eleTxrDeq},"priority")});pZn=1,Xne=-4,ske=2,gZn=3.99,mZn=50,yZn=50,bZn=.15,vZn=.1,wZn=.9,xZn=.9,TZn=1,t8r=250,kZn=4e3*4e3,r8r=32767,CZn=!0,V7r=i(function(t){var a=this,s=a.renderer=t,l=s.cy;a.layersByLevel={},a.firstGet=!0,a.lastInvalidationTime=QA()-2*t8r,a.skipping=!1,a.eleTxrDeqs=l.collection(),a.scheduleElementRefinement=fie(function(){a.refineElementTextures(a.eleTxrDeqs),a.eleTxrDeqs.unmerge(a.eleTxrDeqs)},yZn),s.beforeRender(function(f,d){d-a.lastInvalidationTime<=t8r?a.skipping=!0:a.skipping=!1},s.beforeRenderPriorities.lyrTxrSkip);var h=i(function(d,m){return m.reqs-d.reqs},"qSort");a.layersQueue=new die(h),a.setupDequeueing()},"LayeredTextureCache"),y1=V7r.prototype,n8r=0,EZn=Math.pow(2,53)-1;y1.makeLayer=function(r,t){var a=Math.pow(2,t),s=Math.ceil(r.w*a),l=Math.ceil(r.h*a),h=this.renderer.makeOffscreenCanvas(s,l),f={id:n8r=++n8r%EZn,bb:r,level:t,width:s,height:l,canvas:h,context:h.getContext("2d"),eles:[],elesQueue:[],reqs:0},d=f.context,m=-f.bb.x1,b=-f.bb.y1;return d.scale(a,a),d.translate(m,b),f};y1.getLayers=function(r,t,a){var s=this,l=s.renderer,h=l.cy,f=h.zoom(),d=s.firstGet;if(s.firstGet=!1,a==null){if(a=Math.ceil(Unt(f*t)),a<Xne)a=Xne;else if(f>=gZn||a>ske)return null}s.validateLayersElesOrdering(a,r);var m=s.layersByLevel,b=Math.pow(2,a),v=m[a]=m[a]||[],T,C=s.levelIsComplete(a,r),E,S=i(function(){var Q=i(function(Z){if(s.validateLayersElesOrdering(Z,r),s.levelIsComplete(Z,r))return E=m[Z],!0},"canUseAsTmpLvl"),q=i(function(Z){if(!E)for(var X=a+Z;Xne<=X&&X<=ske&&!Q(X);X+=Z);},"checkLvls");q(1),q(-1);for(var W=v.length-1;W>=0;W--){var H=v[W];H.invalid&&Z_(v,H)}},"checkTempLevels");if(!C)S();else return v;var R=i(function(){if(!T){T=Ob();for(var Q=0;Q<r.length;Q++)vXn(T,r[Q].boundingBox())}return T},"getBb"),L=i(function(Q){Q=Q||{};var q=Q.after;R();var W=Math.ceil(T.w*b),H=Math.ceil(T.h*b);if(W>r8r||H>r8r)return null;var re=W*H;if(re>kZn)return null;var Z=s.makeLayer(T,a);if(q!=null){var X=v.indexOf(q)+1;v.splice(X,0,Z)}else(Q.insert===void 0||Q.insert)&&v.unshift(Z);return Z},"makeLayer");if(s.skipping&&!d)return null;for(var _=null,I=r.length/pZn,N=!d,B=0;B<r.length;B++){var O=r[B],P=O._private.rscratch,$=P.imgLayerCaches=P.imgLayerCaches||{},V=$[a];if(V){_=V;continue}if((!_||_.eles.length>=I||!B8r(_.bb,O.boundingBox()))&&(_=L({insert:!0,after:_}),!_))return null;E||N?s.queueLayer(_,O):s.drawEleInLayer(_,O,a,t),_.eles.push(O),$[a]=_}return E||(N?null:v)};y1.getEleLevelForLayerLevel=function(r,t){return r};y1.drawEleInLayer=function(r,t,a,s){var l=this,h=this.renderer,f=r.context,d=t.boundingBox();d.w===0||d.h===0||!t.visible()||(a=l.getEleLevelForLayerLevel(a,s),h.setImgSmoothing(f,!1),h.drawCachedElement(f,t,null,null,a,CZn),h.setImgSmoothing(f,!0))};y1.levelIsComplete=function(r,t){var a=this,s=a.layersByLevel[r];if(!s||s.length===0)return!1;for(var l=0,h=0;h<s.length;h++){var f=s[h];if(f.reqs>0||f.invalid)return!1;l+=f.eles.length}return l===t.length};y1.validateLayersElesOrdering=function(r,t){var a=this.layersByLevel[r];if(a)for(var s=0;s<a.length;s++){for(var l=a[s],h=-1,f=0;f<t.length;f++)if(l.eles[0]===t[f]){h=f;break}if(h<0){this.invalidateLayer(l);continue}for(var d=h,f=0;f<l.eles.length;f++)if(l.eles[f]!==t[d+f]){this.invalidateLayer(l);break}}};y1.updateElementsInLayers=function(r,t){for(var a=this,s=lie(r[0]),l=0;l<r.length;l++)for(var h=s?null:r[l],f=s?r[l]:r[l].ele,d=f._private.rscratch,m=d.imgLayerCaches=d.imgLayerCaches||{},b=Xne;b<=ske;b++){var v=m[b];v&&(h&&a.getEleLevelForLayerLevel(v.level)!==h.level||t(v,f,h))}};y1.haveLayers=function(){for(var r=this,t=!1,a=Xne;a<=ske;a++){var s=r.layersByLevel[a];if(s&&s.length>0){t=!0;break}}return t};y1.invalidateElements=function(r){var t=this;r.length!==0&&(t.lastInvalidationTime=QA(),!(r.length===0||!t.haveLayers())&&t.updateElementsInLayers(r,i(function(s,l,h){t.invalidateLayer(s)},"invalAssocLayers")))};y1.invalidateLayer=function(r){if(this.lastInvalidationTime=QA(),!r.invalid){var t=r.level,a=r.eles,s=this.layersByLevel[t];Z_(s,r),r.elesQueue=[],r.invalid=!0,r.replacement&&(r.replacement.invalid=!0);for(var l=0;l<a.length;l++){var h=a[l]._private.rscratch.imgLayerCaches;h&&(h[t]=null)}}};y1.refineElementTextures=function(r){var t=this;t.updateElementsInLayers(r,i(function(s,l,h){var f=s.replacement;if(f||(f=s.replacement=t.makeLayer(s.bb,s.level),f.replaces=s,f.eles=s.eles),!f.reqs)for(var d=0;d<f.eles.length;d++)t.queueLayer(f,f.eles[d])},"refineEachEle"))};y1.enqueueElementRefinement=function(r){this.eleTxrDeqs.merge(r),this.scheduleElementRefinement()};y1.queueLayer=function(r,t){var a=this,s=a.layersQueue,l=r.elesQueue,h=l.hasId=l.hasId||{};if(!r.replacement){if(t){if(h[t.id()])return;l.push(t),h[t.id()]=!0}r.reqs?(r.reqs++,s.updateItem(r)):(r.reqs=1,s.push(r))}};y1.dequeue=function(r){for(var t=this,a=t.layersQueue,s=[],l=0;l<TZn&&a.size()!==0;){var h=a.peek();if(h.replacement){a.pop();continue}if(h.replaces&&h!==h.replaces.replacement){a.pop();continue}if(h.invalid){a.pop();continue}var f=h.elesQueue.shift();f&&(t.drawEleInLayer(h,f,h.level,r),l++),s.length===0&&s.push(!0),h.elesQueue.length===0&&(a.pop(),h.reqs=0,h.replaces&&t.applyLayerReplacement(h),t.requestRedraw())}return s};y1.applyLayerReplacement=function(r){var t=this,a=t.layersByLevel[r.level],s=r.replaces,l=a.indexOf(s);if(!(l<0||s.invalid)){a[l]=r;for(var h=0;h<r.eles.length;h++){var f=r.eles[h]._private,d=f.imgLayerCaches=f.imgLayerCaches||{};d&&(d[r.level]=r)}t.requestRedraw()}};y1.requestRedraw=fie(function(){var r=this.renderer;r.redrawHint("eles",!0),r.redrawHint("drag",!0),r.redraw()},100);y1.setupDequeueing=z7r.setupDequeueing({deqRedrawThreshold:mZn,deqCost:bZn,deqAvgCost:vZn,deqNoDrawCost:wZn,deqFastCost:xZn,deq:i(function(t,a){return t.dequeue(a)},"deq"),onDeqd:jnt,shouldRedraw:D8r,priority:i(function(t){return t.renderer.beforeRenderPriorities.lyrTxrDeq},"priority")});W7r={};i(SZn,"polygon");i(AZn,"triangleBackcurve");i(a8r,"triangleTee");i(RZn,"circleTriangle");i(LZn,"circle$1");W7r.arrowShapeImpl=function(r){return(i8r||(i8r={polygon:SZn,"triangle-backcurve":AZn,"triangle-tee":a8r,"circle-triangle":RZn,"triangle-cross":a8r,circle:LZn}))[r]};OS={};OS.drawElement=function(r,t,a,s,l,h){var f=this;t.isNode()?f.drawNode(r,t,a,s,l,h):f.drawEdge(r,t,a,s,l,h)};OS.drawElementOverlay=function(r,t){var a=this;t.isNode()?a.drawNodeOverlay(r,t):a.drawEdgeOverlay(r,t)};OS.drawElementUnderlay=function(r,t){var a=this;t.isNode()?a.drawNodeUnderlay(r,t):a.drawEdgeUnderlay(r,t)};OS.drawCachedElementPortion=function(r,t,a,s,l,h,f,d){var m=this,b=a.getBoundingBox(t);if(!(b.w===0||b.h===0)){var v=a.getElement(t,b,s,l,h);if(v!=null){var T=d(m,t);if(T===0)return;var C=f(m,t),E=b.x1,S=b.y1,R=b.w,L=b.h,_,I,N,B,O;if(C!==0){var P=a.getRotationPoint(t);N=P.x,B=P.y,r.translate(N,B),r.rotate(C),O=m.getImgSmoothing(r),O||m.setImgSmoothing(r,!0);var $=a.getRotationOffset(t);_=$.x,I=$.y}else _=E,I=S;var V;T!==1&&(V=r.globalAlpha,r.globalAlpha=V*T),r.drawImage(v.texture.canvas,v.x,0,v.width,v.height,_,I,R,L),T!==1&&(r.globalAlpha=V),C!==0&&(r.rotate(-C),r.translate(-N,-B),O||m.setImgSmoothing(r,!1))}else a.drawElement(r,t)}};_Zn=i(function(){return 0},"getZeroRotation"),DZn=i(function(t,a){return t.getTextAngle(a,null)},"getLabelRotation"),IZn=i(function(t,a){return t.getTextAngle(a,"source")},"getSourceLabelRotation"),MZn=i(function(t,a){return t.getTextAngle(a,"target")},"getTargetLabelRotation"),NZn=i(function(t,a){return a.effectiveOpacity()},"getOpacity"),cnt=i(function(t,a){return a.pstyle("text-opacity").pfValue*a.effectiveOpacity()},"getTextOpacity");OS.drawCachedElement=function(r,t,a,s,l,h){var f=this,d=f.data,m=d.eleTxrCache,b=d.lblTxrCache,v=d.slbTxrCache,T=d.tlbTxrCache,C=t.boundingBox(),E=h===!0?m.reasons.highQuality:null;if(!(C.w===0||C.h===0||!t.visible())&&(!s||Wnt(C,s))){var S=t.isEdge(),R=t.element()._private.rscratch.badLine;f.drawElementUnderlay(r,t),f.drawCachedElementPortion(r,t,m,a,l,E,_Zn,NZn),(!S||!R)&&f.drawCachedElementPortion(r,t,b,a,l,E,DZn,cnt),S&&!R&&(f.drawCachedElementPortion(r,t,v,a,l,E,IZn,cnt),f.drawCachedElementPortion(r,t,T,a,l,E,MZn,cnt)),f.drawElementOverlay(r,t)}};OS.drawElements=function(r,t){for(var a=this,s=0;s<t.length;s++){var l=t[s];a.drawElement(r,l)}};OS.drawCachedElements=function(r,t,a,s){for(var l=this,h=0;h<t.length;h++){var f=t[h];l.drawCachedElement(r,f,a,s)}};OS.drawCachedNodes=function(r,t,a,s){for(var l=this,h=0;h<t.length;h++){var f=t[h];f.isNode()&&l.drawCachedElement(r,f,a,s)}};OS.drawLayeredElements=function(r,t,a,s){var l=this,h=l.data.lyrTxrCache.getLayers(t,a);if(h)for(var f=0;f<h.length;f++){var d=h[f],m=d.bb;m.w===0||m.h===0||r.drawImage(d.canvas,m.x1,m.y1,m.w,m.h)}else l.drawCachedElements(r,t,a,s)};t8={};t8.drawEdge=function(r,t,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,f=this,d=t._private.rscratch;if(!(h&&!t.visible())&&!(d.badLine||d.allpts==null||isNaN(d.allpts[0]))){var m;a&&(m=a,r.translate(-m.x1,-m.y1));var b=h?t.pstyle("opacity").value:1,v=h?t.pstyle("line-opacity").value:1,T=t.pstyle("curve-style").value,C=t.pstyle("line-style").value,E=t.pstyle("width").pfValue,S=t.pstyle("line-cap").value,R=t.pstyle("line-outline-width").value,L=t.pstyle("line-outline-color").value,_=b*v,I=b*v,N=i(function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_;T==="straight-triangle"?(f.eleStrokeStyle(r,t,Z),f.drawEdgeTrianglePath(t,r,d.allpts)):(r.lineWidth=E,r.lineCap=S,f.eleStrokeStyle(r,t,Z),f.drawEdgePath(t,r,d.allpts,C),r.lineCap="butt")},"drawLine"),B=i(function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_;if(r.lineWidth=E+R,r.lineCap=S,R>0)f.colorStrokeStyle(r,L[0],L[1],L[2],Z);else{r.lineCap="butt";return}T==="straight-triangle"?f.drawEdgeTrianglePath(t,r,d.allpts):(f.drawEdgePath(t,r,d.allpts,C),r.lineCap="butt")},"drawLineOutline"),O=i(function(){l&&f.drawEdgeOverlay(r,t)},"drawOverlay"),P=i(function(){l&&f.drawEdgeUnderlay(r,t)},"drawUnderlay"),$=i(function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I;f.drawArrowheads(r,t,Z)},"drawArrows"),V=i(function(){f.drawElementText(r,t,null,s)},"drawText");r.lineJoin="round";var Y=t.pstyle("ghost").value==="yes";if(Y){var Q=t.pstyle("ghost-offset-x").pfValue,q=t.pstyle("ghost-offset-y").pfValue,W=t.pstyle("ghost-opacity").value,H=_*W;r.translate(Q,q),N(H),$(H),r.translate(-Q,-q)}else B();P(),N(),$(),O(),V(),a&&r.translate(m.x1,m.y1)}};H7r=i(function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(a,s){if(s.visible()){var l=s.pstyle("".concat(t,"-opacity")).value;if(l!==0){var h=this,f=h.usePaths(),d=s._private.rscratch,m=s.pstyle("".concat(t,"-padding")).pfValue,b=2*m,v=s.pstyle("".concat(t,"-color")).value;a.lineWidth=b,d.edgeType==="self"&&!f?a.lineCap="butt":a.lineCap="round",h.colorStrokeStyle(a,v[0],v[1],v[2],l),h.drawEdgePath(s,a,d.allpts,"solid")}}}},"drawEdgeOverlayUnderlay");t8.drawEdgeOverlay=H7r("overlay");t8.drawEdgeUnderlay=H7r("underlay");t8.drawEdgePath=function(r,t,a,s){var l=r._private.rscratch,h=t,f,d=!1,m=this.usePaths(),b=r.pstyle("line-dash-pattern").pfValue,v=r.pstyle("line-dash-offset").pfValue;if(m){var T=a.join("$"),C=l.pathCacheKey&&l.pathCacheKey===T;C?(f=t=l.pathCache,d=!0):(f=t=new Path2D,l.pathCacheKey=T,l.pathCache=f)}if(h.setLineDash)switch(s){case"dotted":h.setLineDash([1,1]);break;case"dashed":h.setLineDash(b),h.lineDashOffset=v;break;case"solid":h.setLineDash([]);break}if(!d&&!l.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(a[0],a[1]),l.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var E=2;E+3<a.length;E+=4)t.quadraticCurveTo(a[E],a[E+1],a[E+2],a[E+3]);break;case"straight":case"haystack":for(var S=2;S+1<a.length;S+=2)t.lineTo(a[S],a[S+1]);break;case"segments":if(l.isRound){var R=v2(l.roundCorners),L;try{for(R.s();!(L=R.n()).done;){var _=L.value;M7r(t,_)}}catch(N){R.e(N)}finally{R.f()}t.lineTo(a[a.length-2],a[a.length-1])}else for(var I=2;I+1<a.length;I+=2)t.lineTo(a[I],a[I+1]);break}t=h,m?t.stroke(f):t.stroke(),t.setLineDash&&t.setLineDash([])};t8.drawEdgeTrianglePath=function(r,t,a){t.fillStyle=t.strokeStyle;for(var s=r.pstyle("width").pfValue,l=0;l+1<a.length;l+=2){var h=[a[l+2]-a[l],a[l+3]-a[l+1]],f=Math.sqrt(h[0]*h[0]+h[1]*h[1]),d=[h[1]/f,-h[0]/f],m=[d[0]*s/2,d[1]*s/2];t.beginPath(),t.moveTo(a[l]-m[0],a[l+1]-m[1]),t.lineTo(a[l]+m[0],a[l+1]+m[1]),t.lineTo(a[l+2],a[l+3]),t.closePath(),t.fill()}};t8.drawArrowheads=function(r,t,a){var s=t._private.rscratch,l=s.edgeType==="haystack";l||this.drawArrowhead(r,t,"source",s.arrowStartX,s.arrowStartY,s.srcArrowAngle,a),this.drawArrowhead(r,t,"mid-target",s.midX,s.midY,s.midtgtArrowAngle,a),this.drawArrowhead(r,t,"mid-source",s.midX,s.midY,s.midsrcArrowAngle,a),l||this.drawArrowhead(r,t,"target",s.arrowEndX,s.arrowEndY,s.tgtArrowAngle,a)};t8.drawArrowhead=function(r,t,a,s,l,h,f){if(!(isNaN(s)||s==null||isNaN(l)||l==null||isNaN(h)||h==null)){var d=this,m=t.pstyle(a+"-arrow-shape").value;if(m!=="none"){var b=t.pstyle(a+"-arrow-fill").value==="hollow"?"both":"filled",v=t.pstyle(a+"-arrow-fill").value,T=t.pstyle("width").pfValue,C=t.pstyle(a+"-arrow-width"),E=C.value==="match-line"?T:C.pfValue;C.units==="%"&&(E*=T);var S=t.pstyle("opacity").value;f===void 0&&(f=S);var R=r.globalCompositeOperation;(f!==1||v==="hollow")&&(r.globalCompositeOperation="destination-out",d.colorFillStyle(r,255,255,255,1),d.colorStrokeStyle(r,255,255,255,1),d.drawArrowShape(t,r,b,T,m,E,s,l,h),r.globalCompositeOperation=R);var L=t.pstyle(a+"-arrow-color").value;d.colorFillStyle(r,L[0],L[1],L[2],f),d.colorStrokeStyle(r,L[0],L[1],L[2],f),d.drawArrowShape(t,r,v,T,m,E,s,l,h)}}};t8.drawArrowShape=function(r,t,a,s,l,h,f,d,m){var b=this,v=this.usePaths()&&l!=="triangle-cross",T=!1,C,E=t,S={x:f,y:d},R=r.pstyle("arrow-scale").value,L=this.getArrowWidth(s,R),_=b.arrowShapes[l];if(v){var I=b.arrowPathCache=b.arrowPathCache||[],N=wP(l),B=I[N];B!=null?(C=t=B,T=!0):(C=t=new Path2D,I[N]=C)}T||(t.beginPath&&t.beginPath(),v?_.draw(t,1,0,{x:0,y:0},1):_.draw(t,L,m,S,s),t.closePath&&t.closePath()),t=E,v&&(t.translate(f,d),t.rotate(m),t.scale(L,L)),(a==="filled"||a==="both")&&(v?t.fill(C):t.fill()),(a==="hollow"||a==="both")&&(t.lineWidth=h/(v?L:1),t.lineJoin="miter",v?t.stroke(C):t.stroke()),v&&(t.scale(1/L,1/L),t.rotate(-m),t.translate(-f,-d))};ait={};ait.safeDrawImage=function(r,t,a,s,l,h,f,d,m,b){if(!(l<=0||h<=0||m<=0||b<=0))try{r.drawImage(t,a,s,l,h,f,d,m,b)}catch(v){Uu(v)}};ait.drawInscribedImage=function(r,t,a,s,l){var h=this,f=a.position(),d=f.x,m=f.y,b=a.cy().style(),v=b.getIndexedStyle.bind(b),T=v(a,"background-fit","value",s),C=v(a,"background-repeat","value",s),E=a.width(),S=a.height(),R=a.padding()*2,L=E+(v(a,"background-width-relative-to","value",s)==="inner"?0:R),_=S+(v(a,"background-height-relative-to","value",s)==="inner"?0:R),I=a._private.rscratch,N=v(a,"background-clip","value",s),B=N==="node",O=v(a,"background-image-opacity","value",s)*l,P=v(a,"background-image-smoothing","value",s),$=a.pstyle("corner-radius").value;$!=="auto"&&($=a.pstyle("corner-radius").pfValue);var V=t.width||t.cachedW,Y=t.height||t.cachedH;(V==null||Y==null)&&(document.body.appendChild(t),V=t.cachedW=t.width||t.offsetWidth,Y=t.cachedH=t.height||t.offsetHeight,document.body.removeChild(t));var Q=V,q=Y;if(v(a,"background-width","value",s)!=="auto"&&(v(a,"background-width","units",s)==="%"?Q=v(a,"background-width","pfValue",s)*L:Q=v(a,"background-width","pfValue",s)),v(a,"background-height","value",s)!=="auto"&&(v(a,"background-height","units",s)==="%"?q=v(a,"background-height","pfValue",s)*_:q=v(a,"background-height","pfValue",s)),!(Q===0||q===0)){if(T==="contain"){var W=Math.min(L/Q,_/q);Q*=W,q*=W}else if(T==="cover"){var W=Math.max(L/Q,_/q);Q*=W,q*=W}var H=d-L/2,re=v(a,"background-position-x","units",s),Z=v(a,"background-position-x","pfValue",s);re==="%"?H+=(L-Q)*Z:H+=Z;var X=v(a,"background-offset-x","units",s),te=v(a,"background-offset-x","pfValue",s);X==="%"?H+=(L-Q)*te:H+=te;var U=m-_/2,ne=v(a,"background-position-y","units",s),se=v(a,"background-position-y","pfValue",s);ne==="%"?U+=(_-q)*se:U+=se;var he=v(a,"background-offset-y","units",s),le=v(a,"background-offset-y","pfValue",s);he==="%"?U+=(_-q)*le:U+=le,I.pathCache&&(H-=d,U-=m,d=0,m=0);var pe=r.globalAlpha;r.globalAlpha=O;var ge=h.getImgSmoothing(r),we=!1;if(P==="no"&&ge?(h.setImgSmoothing(r,!1),we=!0):P==="yes"&&!ge&&(h.setImgSmoothing(r,!0),we=!0),C==="no-repeat")B&&(r.save(),I.pathCache?r.clip(I.pathCache):(h.nodeShapes[h.getNodeShape(a)].draw(r,d,m,L,_,$,I),r.clip())),h.safeDrawImage(r,t,0,0,V,Y,H,U,Q,q),B&&r.restore();else{var Ae=r.createPattern(t,C);r.fillStyle=Ae,h.nodeShapes[h.getNodeShape(a)].draw(r,d,m,L,_,$,I),r.translate(H,U),r.fill(),r.translate(-H,-U)}r.globalAlpha=pe,we&&h.setImgSmoothing(r,ge)}};SP={};SP.eleTextBiggerThanMin=function(r,t){if(!t){var a=r.cy().zoom(),s=this.getPixelRatio(),l=Math.ceil(Unt(a*s));t=Math.pow(2,l)}var h=r.pstyle("font-size").pfValue*t,f=r.pstyle("min-zoomed-font-size").pfValue;return!(h<f)};SP.drawElementText=function(r,t,a,s,l){var h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,f=this;if(s==null){if(h&&!f.eleTextBiggerThanMin(t))return}else if(s===!1)return;if(t.isNode()){var d=t.pstyle("label");if(!d||!d.value)return;var m=f.getLabelJustification(t),b=t.pstyle("text-metrics").strValue==="glyph";r.textAlign=m,r.textBaseline=b?"alphabetic":"bottom"}else{var v=t.element()._private.rscratch.badLine,T=t.pstyle("label"),C=t.pstyle("source-label"),E=t.pstyle("target-label");if(v||(!T||!T.value)&&(!C||!C.value)&&(!E||!E.value))return;r.textAlign="center",r.textBaseline="bottom"}var S=!a,R;a&&(R=a,r.translate(-R.x1,-R.y1)),l==null?(f.drawText(r,t,null,S,h),t.isEdge()&&(f.drawText(r,t,"source",S,h),f.drawText(r,t,"target",S,h))):f.drawText(r,t,l,S,h),a&&r.translate(R.x1,R.y1)};SP.getFontCache=function(r){var t;this.fontCaches=this.fontCaches||[];for(var a=0;a<this.fontCaches.length;a++)if(t=this.fontCaches[a],t.context===r)return t;return t={context:r},this.fontCaches.push(t),t};SP.setupTextStyle=function(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=t.pstyle("font-style").strValue,l=t.pstyle("font-size").pfValue+"px",h=t.pstyle("font-family").strValue,f=t.pstyle("font-weight").strValue,d=a?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,m=t.pstyle("text-outline-opacity").value*d,b=t.pstyle("color").value,v=t.pstyle("text-outline-color").value;r.font=s+" "+f+" "+l+" "+h,r.lineJoin="round",this.colorFillStyle(r,b[0],b[1],b[2],d),this.colorStrokeStyle(r,v[0],v[1],v[2],m)};i(OZn,"circle");i(s8r,"roundRect");SP.getTextAngle=function(r,t){var a,s=r._private,l=s.rscratch,h=t?t+"-":"",f=r.pstyle(h+"text-rotation");if(f.strValue==="autorotate"){var d=Nb(l,"labelAngle",t);a=r.isEdge()?d:0}else f.strValue==="none"?a=0:a=f.pfValue;return a};SP.drawText=function(r,t,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,h=t._private,f=h.rscratch,d=l?t.effectiveOpacity():1;if(!(l&&(d===0||t.pstyle("text-opacity").value===0))){a==="main"&&(a=null);var m=Nb(f,"labelX",a),b=Nb(f,"labelY",a),v,T,C=this.getLabelText(t,a);if(C!=null&&C!==""&&!isNaN(m)&&!isNaN(b)){this.setupTextStyle(r,t,l);var E=a?a+"-":"",S=Nb(f,"labelWidth",a),R=Nb(f,"labelHeight",a),L=Nb(f,"labelActualDescent",a),_=t.pstyle(E+"text-margin-x").pfValue,I=t.pstyle(E+"text-margin-y").pfValue,N=t.isEdge(),B=t.pstyle("text-halign").value,O=t.pstyle("text-valign").value;N&&(B="center",O="center"),m+=_,b+=I;var P;s?P=this.getTextAngle(t,a):P=0,P!==0&&(v=m,T=b,r.translate(v,T),r.rotate(P),m=0,b=0);var $=pV(B),V=gV(O);switch(V){case"top":break;case"center":b+=R/2;break;case"bottom":b+=R;break}var Y=t.pstyle("text-background-opacity").value,Q=t.pstyle("text-border-opacity").value,q=t.pstyle("text-border-width").pfValue,W=t.pstyle("text-background-padding").pfValue,H=t.pstyle("text-background-shape").strValue,re=H==="round-rectangle"||H==="roundrectangle",Z=H==="circle",X=2;if(Y>0||q>0&&Q>0){var te=r.fillStyle,U=r.strokeStyle,ne=r.lineWidth,se=t.pstyle("text-background-color").value,he=t.pstyle("text-border-color").value,le=t.pstyle("text-border-style").value,pe=Y>0,ge=q>0&&Q>0,we=m-W;switch($){case"left":we-=S;break;case"center":we-=S/2;break}var Ae=b-R-W,ve=S+2*W,Ie=R+2*W;if(pe&&(r.fillStyle="rgba(".concat(se[0],",").concat(se[1],",").concat(se[2],",").concat(Y*d,")")),ge&&(r.strokeStyle="rgba(".concat(he[0],",").concat(he[1],",").concat(he[2],",").concat(Q*d,")"),r.lineWidth=q,r.setLineDash))switch(le){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"double":r.lineWidth=q/4,r.setLineDash([]);break;default:r.setLineDash([]);break}if(re?(r.beginPath(),s8r(r,we,Ae,ve,Ie,X)):Z?(r.beginPath(),OZn(r,we,Ae,ve,Ie)):(r.beginPath(),r.rect(we,Ae,ve,Ie)),pe&&r.fill(),ge&&r.stroke(),ge&&le==="double"){var De=q/2;r.beginPath(),re?s8r(r,we+De,Ae+De,ve-2*De,Ie-2*De,X):r.rect(we+De,Ae+De,ve-2*De,Ie-2*De),r.stroke()}r.fillStyle=te,r.strokeStyle=U,r.lineWidth=ne,r.setLineDash&&r.setLineDash([])}var Be=2*t.pstyle("text-outline-width").pfValue;if(Be>0&&(r.lineWidth=Be),b-=L,t.pstyle("text-wrap").value==="wrap"){var Fe=Nb(f,"labelWrapCachedLines",a),ze=Nb(f,"labelLineHeight",a),vt=S/2,lt=this.getLabelJustification(t);switch(lt==="auto"||($==="left"?lt==="left"?m+=-S:lt==="center"&&(m+=-vt):$==="center"?lt==="left"?m+=-vt:lt==="right"&&(m+=vt):$==="right"&&(lt==="center"?m+=vt:lt==="right"&&(m+=S))),V){case"top":b-=(Fe.length-1)*ze;break;case"center":case"bottom":b-=(Fe.length-1)*ze;break}for(var Ft=0;Ft<Fe.length;Ft++)Be>0&&r.strokeText(Fe[Ft],m,b),r.fillText(Fe[Ft],m,b),b+=ze}else Be>0&&r.strokeText(C,m,b),r.fillText(C,m,b);P!==0&&(r.rotate(-P),r.translate(-v,-T))}}};oD={};oD.drawNode=function(r,t,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,f=this,d,m,b=t._private,v=b.rscratch,T=t.position();if(!(!ua(T.x)||!ua(T.y))&&!(h&&!t.visible())){var C=h?t.effectiveOpacity():1,E=f.usePaths(),S,R=!1,L=t.padding();d=t.width()+2*L,m=t.height()+2*L;var _;a&&(_=a,r.translate(-_.x1,-_.y1));for(var I=t.pstyle("background-image"),N=I.value,B=new Array(N.length),O=new Array(N.length),P=0,$=0;$<N.length;$++){var V=N[$],Y=B[$]=V!=null&&V!=="none";if(Y){var Q=t.cy().style().getIndexedStyle(t,"background-image-crossorigin","value",$);P++,O[$]=f.getCachedImage(V,Q,function(){b.backgroundTimestamp=Date.now(),t.emitAndNotify("background")})}}var q=t.pstyle("background-blacken").value,W=t.pstyle("border-width").pfValue,H=t.pstyle("background-opacity").value*C,re=t.pstyle("border-color").value,Z=t.pstyle("border-style").value,X=t.pstyle("border-join").value,te=t.pstyle("border-cap").value,U=t.pstyle("border-position").value,ne=t.pstyle("border-dash-pattern").pfValue,se=t.pstyle("border-dash-offset").pfValue,he=t.pstyle("border-opacity").value*C,le=t.pstyle("outline-width").pfValue,pe=t.pstyle("outline-color").value,ge=t.pstyle("outline-style").value,we=t.pstyle("outline-opacity").value*C,Ae=t.pstyle("outline-offset").value,ve=t.pstyle("corner-radius").value;ve!=="auto"&&(ve=t.pstyle("corner-radius").pfValue);var Ie=i(function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H;f.eleFillStyle(r,t,ce)},"setupShapeColor"),De=i(function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:he;f.colorStrokeStyle(r,re[0],re[1],re[2],ce)},"setupBorderColor"),Be=i(function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:we;f.colorStrokeStyle(r,pe[0],pe[1],pe[2],ce)},"setupOutlineColor"),Fe=i(function(ce,Re,me,be){var ke=f.nodePathCache=f.nodePathCache||[],We=_8r(me==="polygon"?me+","+be.join(","):me,""+Re,""+ce,""+ve),Ue=ke[We],rt,nt=!1;return Ue!=null?(rt=Ue,nt=!0,v.pathCache=rt):(rt=new Path2D,ke[We]=v.pathCache=rt),{path:rt,cacheHit:nt}},"getPath"),ze=t.pstyle("shape").strValue,vt=t.pstyle("shape-polygon-points").pfValue;if(E){r.translate(T.x,T.y);var lt=Fe(d,m,ze,vt);S=lt.path,R=lt.cacheHit}var Ft=i(function(){if(!R){var ce=T;E&&(ce={x:0,y:0}),f.nodeShapes[f.getNodeShape(t)].draw(S||r,ce.x,ce.y,d,m,ve,v)}E?r.fill(S):r.fill()},"drawShape"),pr=i(function(){for(var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,me=b.backgrounding,be=0,ke=0;ke<O.length;ke++){var We=t.cy().style().getIndexedStyle(t,"background-image-containment","value",ke);if(Re&&We==="over"||!Re&&We==="inside"){be++;continue}B[ke]&&O[ke].complete&&!O[ke].error&&(be++,f.drawInscribedImage(r,O[ke],t,ke,ce))}b.backgrounding=be!==P,me!==b.backgrounding&&t.updateStyle(!1)},"drawImages"),tr=i(function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C;f.hasPie(t)&&(f.drawPie(r,t,Re),ce&&(E||f.nodeShapes[f.getNodeShape(t)].draw(r,T.x,T.y,d,m,ve,v)))},"drawPie"),Mt=i(function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C;f.hasStripe(t)&&(r.save(),E?r.clip(v.pathCache):(f.nodeShapes[f.getNodeShape(t)].draw(r,T.x,T.y,d,m,ve,v),r.clip()),f.drawStripe(r,t,Re),r.restore(),ce&&(E||f.nodeShapes[f.getNodeShape(t)].draw(r,T.x,T.y,d,m,ve,v)))},"drawStripe"),ot=i(function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,Re=(q>0?q:-q)*ce,me=q>0?0:255;q!==0&&(f.colorFillStyle(r,me,me,me,Re),E?r.fill(S):r.fill())},"darken"),it=i(function(){if(W>0){if(r.lineWidth=W,r.lineCap=te,r.lineJoin=X,r.setLineDash)switch(Z){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash(ne),r.lineDashOffset=se;break;case"solid":case"double":r.setLineDash([]);break}if(U!=="center"){if(r.save(),r.lineWidth*=2,U==="inside")E?r.clip(S):r.clip();else{var ce=new Path2D;ce.rect(-d/2-W,-m/2-W,d+2*W,m+2*W),ce.addPath(S),r.clip(ce,"evenodd")}E?r.stroke(S):r.stroke(),r.restore()}else E?r.stroke(S):r.stroke();if(Z==="double"){r.lineWidth=W/3;var Re=r.globalCompositeOperation;r.globalCompositeOperation="destination-out",E?r.stroke(S):r.stroke(),r.globalCompositeOperation=Re}r.setLineDash&&r.setLineDash([])}},"drawBorder"),mt=i(function(){if(le>0){if(r.lineWidth=le,r.lineCap="butt",r.setLineDash)switch(ge){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"solid":case"double":r.setLineDash([]);break}var ce=T;E&&(ce={x:0,y:0});var Re=f.getNodeShape(t),me=W;U==="inside"&&(me=0),U==="outside"&&(me*=2);var be=(d+me+(le+Ae))/d,ke=(m+me+(le+Ae))/m,We=d*be,Ue=m*ke,rt=f.nodeShapes[Re].points,nt;if(E){var Ot=Fe(We,Ue,Re,rt);nt=Ot.path}if(Re==="ellipse")f.drawEllipsePath(nt||r,ce.x,ce.y,We,Ue);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(Re)){var ft=0,Qt=0,$t=0;Re==="round-diamond"?ft=(me+Ae+le)*1.4:Re==="round-heptagon"?(ft=(me+Ae+le)*1.075,$t=-(me/2+Ae+le)/35):Re==="round-hexagon"?ft=(me+Ae+le)*1.12:Re==="round-pentagon"?(ft=(me+Ae+le)*1.13,$t=-(me/2+Ae+le)/15):Re==="round-tag"?(ft=(me+Ae+le)*1.12,Qt=(me/2+le+Ae)*.07):Re==="round-triangle"&&(ft=(me+Ae+le)*(Math.PI/2),$t=-(me+Ae/2+le)/Math.PI),ft!==0&&(be=(d+ft)/d,We=d*be,["round-hexagon","round-tag"].includes(Re)||(ke=(m+ft)/m,Ue=m*ke)),ve=ve==="auto"?G8r(We,Ue):ve;for(var qt=We/2,Gt=Ue/2,jt=ve+(me+le+Ae)/2,Zr=new Array(rt.length/2),yt=new Array(rt.length/2),$n=0;$n<rt.length/2;$n++)Zr[$n]={x:ce.x+Qt+qt*rt[$n*2],y:ce.y+$t+Gt*rt[$n*2+1]};var Ut,An,Un,En,ai=Zr.length;for(An=Zr[ai-1],Ut=0;Ut<ai;Ut++)Un=Zr[Ut%ai],En=Zr[(Ut+1)%ai],yt[Ut]=nit(An,Un,En,jt),An=Un,Un=En;f.drawRoundPolygonPath(nt||r,ce.x+Qt,ce.y+$t,d*be,m*ke,rt,yt)}else if(["roundrectangle","round-rectangle"].includes(Re))ve=ve==="auto"?eD(We,Ue):ve,f.drawRoundRectanglePath(nt||r,ce.x,ce.y,We,Ue,ve+(me+le+Ae)/2);else if(["cutrectangle","cut-rectangle"].includes(Re))ve=ve==="auto"?Hnt():ve,f.drawCutRectanglePath(nt||r,ce.x,ce.y,We,Ue,null,ve+(me+le+Ae)/4);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(Re))ve=ve==="auto"?eD(We,Ue):ve,f.drawBottomRoundRectanglePath(nt||r,ce.x,ce.y,We,Ue,ve+(me+le+Ae)/2);else if(Re==="barrel")f.drawBarrelPath(nt||r,ce.x,ce.y,We,Ue);else if(Re.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(Re)){var Gn=(me+le+Ae)/d;rt=ZTe(eke(rt,Gn)),f.drawPolygonPath(nt||r,ce.x,ce.y,d,m,rt)}else{var ui=(me+le+Ae)/d;rt=ZTe(eke(rt,-ui)),f.drawPolygonPath(nt||r,ce.x,ce.y,d,m,rt)}if(E?r.stroke(nt):r.stroke(),ge==="double"){r.lineWidth=me/3;var Tn=r.globalCompositeOperation;r.globalCompositeOperation="destination-out",E?r.stroke(nt):r.stroke(),r.globalCompositeOperation=Tn}r.setLineDash&&r.setLineDash([])}},"drawOutline"),Rt=i(function(){l&&f.drawNodeOverlay(r,t,T,d,m)},"drawOverlay"),pt=i(function(){l&&f.drawNodeUnderlay(r,t,T,d,m)},"drawUnderlay"),gt=i(function(){f.drawElementText(r,t,null,s)},"drawText"),ut=t.pstyle("ghost").value==="yes";if(ut){var Yt=t.pstyle("ghost-offset-x").pfValue,Ye=t.pstyle("ghost-offset-y").pfValue,Oe=t.pstyle("ghost-opacity").value,K=Oe*C;r.translate(Yt,Ye),Be(),mt(),Ie(Oe*H),Ft(),pr(K,!0),De(Oe*he),it(),tr(q!==0||W!==0),Mt(q!==0||W!==0),pr(K,!1),ot(K),r.translate(-Yt,-Ye)}E&&r.translate(-T.x,-T.y),pt(),E&&r.translate(T.x,T.y),Be(),mt(),Ie(),Ft(),pr(C,!0),De(),it(),tr(q!==0||W!==0),Mt(q!==0||W!==0),pr(C,!1),ot(),E&&r.translate(-T.x,-T.y),gt(),Rt(),a&&r.translate(_.x1,_.y1)}};q7r=i(function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(a,s,l,h,f){var d=this;if(s.visible()){var m=s.pstyle("".concat(t,"-padding")).pfValue,b=s.pstyle("".concat(t,"-opacity")).value,v=s.pstyle("".concat(t,"-color")).value,T=s.pstyle("".concat(t,"-shape")).value,C=s.pstyle("".concat(t,"-corner-radius")).value;if(b>0){if(l=l||s.position(),h==null||f==null){var E=s.padding();h=s.width()+2*E,f=s.height()+2*E}d.colorFillStyle(a,v[0],v[1],v[2],b),d.nodeShapes[T].draw(a,l.x,l.y,h+m*2,f+m*2,C),a.fill()}}}},"drawNodeOverlayUnderlay");oD.drawNodeOverlay=q7r("overlay");oD.drawNodeUnderlay=q7r("underlay");oD.hasPie=function(r){return r=r[0],r._private.hasPie};oD.hasStripe=function(r){return r=r[0],r._private.hasStripe};oD.drawPie=function(r,t,a,s){t=t[0],s=s||t.position();var l=t.cy().style(),h=t.pstyle("pie-size"),f=t.pstyle("pie-hole"),d=t.pstyle("pie-start-angle").pfValue,m=s.x,b=s.y,v=t.width(),T=t.height(),C=Math.min(v,T)/2,E,S=0,R=this.usePaths();if(R&&(m=0,b=0),h.units==="%"?C=C*h.pfValue:h.pfValue!==void 0&&(C=h.pfValue/2),f.units==="%"?E=C*f.pfValue:f.pfValue!==void 0&&(E=f.pfValue/2),!(E>=C))for(var L=1;L<=l.pieBackgroundN;L++){var _=t.pstyle("pie-"+L+"-background-size").value,I=t.pstyle("pie-"+L+"-background-color").value,N=t.pstyle("pie-"+L+"-background-opacity").value*a,B=_/100;B+S>1&&(B=1-S);var O=1.5*Math.PI+2*Math.PI*S;O+=d;var P=2*Math.PI*B,$=O+P;_===0||S>=1||S+B>1||(E===0?(r.beginPath(),r.moveTo(m,b),r.arc(m,b,C,O,$),r.closePath()):(r.beginPath(),r.arc(m,b,C,O,$),r.arc(m,b,E,$,O,!0),r.closePath()),this.colorFillStyle(r,I[0],I[1],I[2],N),r.fill(),S+=B)}};oD.drawStripe=function(r,t,a,s){t=t[0],s=s||t.position();var l=t.cy().style(),h=s.x,f=s.y,d=t.width(),m=t.height(),b=0,v=this.usePaths();r.save();var T=t.pstyle("stripe-direction").value,C=t.pstyle("stripe-size");switch(T){case"vertical":break;case"righward":r.rotate(-Math.PI/2);break}var E=d,S=m;C.units==="%"?(E=E*C.pfValue,S=S*C.pfValue):C.pfValue!==void 0&&(E=C.pfValue,S=C.pfValue),v&&(h=0,f=0),f-=E/2,h-=S/2;for(var R=1;R<=l.stripeBackgroundN;R++){var L=t.pstyle("stripe-"+R+"-background-size").value,_=t.pstyle("stripe-"+R+"-background-color").value,I=t.pstyle("stripe-"+R+"-background-opacity").value*a,N=L/100;N+b>1&&(N=1-b),!(L===0||b>=1||b+N>1)&&(r.beginPath(),r.rect(h,f+S*b,E,S*N),r.closePath(),this.colorFillStyle(r,_[0],_[1],_[2],I),r.fill(),b+=N)}r.restore()};Pb={},PZn=100;Pb.getPixelRatio=function(){var r=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),a=r.backingStorePixelRatio||r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/a};Pb.paintCache=function(r){for(var t=this.paintCaches=this.paintCaches||[],a=!0,s,l=0;l<t.length;l++)if(s=t[l],s.context===r){a=!1;break}return a&&(s={context:r},t.push(s)),s};Pb.createGradientStyleFor=function(r,t,a,s,l){var h,f=this.usePaths(),d=a.pstyle(t+"-gradient-stop-colors").value,m=a.pstyle(t+"-gradient-stop-positions").pfValue;if(s==="radial-gradient")if(a.isEdge()){var b=a.sourceEndpoint(),v=a.targetEndpoint(),T=a.midpoint(),C=xP(b,T),E=xP(v,T);h=r.createRadialGradient(T.x,T.y,0,T.x,T.y,Math.max(C,E))}else{var S=f?{x:0,y:0}:a.position(),R=a.paddedWidth(),L=a.paddedHeight();h=r.createRadialGradient(S.x,S.y,0,S.x,S.y,Math.max(R,L))}else if(a.isEdge()){var _=a.sourceEndpoint(),I=a.targetEndpoint();h=r.createLinearGradient(_.x,_.y,I.x,I.y)}else{var N=f?{x:0,y:0}:a.position(),B=a.paddedWidth(),O=a.paddedHeight(),P=B/2,$=O/2,V=a.pstyle("background-gradient-direction").value;switch(V){case"to-bottom":h=r.createLinearGradient(N.x,N.y-$,N.x,N.y+$);break;case"to-top":h=r.createLinearGradient(N.x,N.y+$,N.x,N.y-$);break;case"to-left":h=r.createLinearGradient(N.x+P,N.y,N.x-P,N.y);break;case"to-right":h=r.createLinearGradient(N.x-P,N.y,N.x+P,N.y);break;case"to-bottom-right":case"to-right-bottom":h=r.createLinearGradient(N.x-P,N.y-$,N.x+P,N.y+$);break;case"to-top-right":case"to-right-top":h=r.createLinearGradient(N.x-P,N.y+$,N.x+P,N.y-$);break;case"to-bottom-left":case"to-left-bottom":h=r.createLinearGradient(N.x+P,N.y-$,N.x-P,N.y+$);break;case"to-top-left":case"to-left-top":h=r.createLinearGradient(N.x+P,N.y+$,N.x-P,N.y-$);break}}if(!h)return null;for(var Y=m.length===d.length,Q=d.length,q=0;q<Q;q++)h.addColorStop(Y?m[q]:q/(Q-1),"rgba("+d[q][0]+","+d[q][1]+","+d[q][2]+","+l+")");return h};Pb.gradientFillStyle=function(r,t,a,s){var l=this.createGradientStyleFor(r,"background",t,a,s);if(!l)return null;r.fillStyle=l};Pb.colorFillStyle=function(r,t,a,s,l){r.fillStyle="rgba("+t+","+a+","+s+","+l+")"};Pb.eleFillStyle=function(r,t,a){var s=t.pstyle("background-fill").value;if(s==="linear-gradient"||s==="radial-gradient")this.gradientFillStyle(r,t,s,a);else{var l=t.pstyle("background-color").value;this.colorFillStyle(r,l[0],l[1],l[2],a)}};Pb.gradientStrokeStyle=function(r,t,a,s){var l=this.createGradientStyleFor(r,"line",t,a,s);if(!l)return null;r.strokeStyle=l};Pb.colorStrokeStyle=function(r,t,a,s,l){r.strokeStyle="rgba("+t+","+a+","+s+","+l+")"};Pb.eleStrokeStyle=function(r,t,a){var s=t.pstyle("line-fill").value;if(s==="linear-gradient"||s==="radial-gradient")this.gradientStrokeStyle(r,t,s,a);else{var l=t.pstyle("line-color").value;this.colorStrokeStyle(r,l[0],l[1],l[2],a)}};Pb.matchCanvasSize=function(r){var t=this,a=t.data,s=t.findContainerClientCoords(),l=s[2],h=s[3],f=t.getPixelRatio(),d=t.motionBlurPxRatio;(r===t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE]||r===t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG])&&(f=d);var m=l*f,b=h*f,v;if(!(m===t.canvasWidth&&b===t.canvasHeight)){t.fontCaches=null;var T=a.canvasContainer;T.style.width=l+"px",T.style.height=h+"px";for(var C=0;C<t.CANVAS_LAYERS;C++)v=a.canvases[C],v.width=m,v.height=b,v.style.width=l+"px",v.style.height=h+"px";for(var C=0;C<t.BUFFER_COUNT;C++)v=a.bufferCanvases[C],v.width=m,v.height=b,v.style.width=l+"px",v.style.height=h+"px";t.textureMult=1,f<=1&&(v=a.bufferCanvases[t.TEXTURE_BUFFER],t.textureMult=2,v.width=m*t.textureMult,v.height=b*t.textureMult),t.canvasWidth=m,t.canvasHeight=b,t.pixelRatio=f}};Pb.renderTo=function(r,t,a,s){this.render({forcedContext:r,forcedZoom:t,forcedPan:a,drawAllLayers:!0,forcedPxRatio:s})};Pb.clearCanvas=function(){var r=this,t=r.data;function a(s){s.clearRect(0,0,r.canvasWidth,r.canvasHeight)}i(a,"clear"),a(t.contexts[r.NODE]),a(t.contexts[r.DRAG])};Pb.render=function(r){var t=this;r=r||N8r();var a=t.cy,s=r.forcedContext,l=r.drawAllLayers,h=r.drawOnlyNodeLayer,f=r.forcedZoom,d=r.forcedPan,m=r.forcedPxRatio===void 0?this.getPixelRatio():r.forcedPxRatio,b=t.data,v=b.canvasNeedsRedraw,T=t.textureOnViewport&&!s&&(t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming),C=r.motionBlur!==void 0?r.motionBlur:t.motionBlur,E=t.motionBlurPxRatio,S=a.hasCompoundNodes(),R=t.hoverData.draggingEles,L=!!(t.hoverData.selecting||t.touchData.selecting);C=C&&!s&&t.motionBlurEnabled&&!L;var _=C;s||(t.prevPxRatio!==m&&(t.invalidateContainerClientCoordsCache(),t.matchCanvasSize(t.container),t.redrawHint("eles",!0),t.redrawHint("drag",!0)),t.prevPxRatio=m),!s&&t.motionBlurTimeout&&clearTimeout(t.motionBlurTimeout),C&&(t.mbFrames==null&&(t.mbFrames=0),t.mbFrames++,t.mbFrames<3&&(_=!1),t.mbFrames>t.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!T&&(v[t.NODE]=!0,v[t.SELECT_BOX]=!0);var I=a.style(),N=a.zoom(),B=f!==void 0?f:N,O=a.pan(),P={x:O.x,y:O.y},$={zoom:N,pan:{x:O.x,y:O.y}},V=t.prevViewport,Y=V===void 0||$.zoom!==V.zoom||$.pan.x!==V.pan.x||$.pan.y!==V.pan.y;!Y&&!(R&&!S)&&(t.motionBlurPxRatio=1),d&&(P=d),B*=m,P.x*=m,P.y*=m;var Q=t.getCachedZSortedEles();function q(De,Be,Fe,ze,vt){var lt=De.globalCompositeOperation;De.globalCompositeOperation="destination-out",t.colorFillStyle(De,255,255,255,t.motionBlurTransparency),De.fillRect(Be,Fe,ze,vt),De.globalCompositeOperation=lt}i(q,"mbclear");function W(De,Be){var Fe,ze,vt,lt;!t.clearingMotionBlur&&(De===b.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||De===b.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(Fe={x:O.x*E,y:O.y*E},ze=N*E,vt=t.canvasWidth*E,lt=t.canvasHeight*E):(Fe=P,ze=B,vt=t.canvasWidth,lt=t.canvasHeight),De.setTransform(1,0,0,1,0,0),Be==="motionBlur"?q(De,0,0,vt,lt):!s&&(Be===void 0||Be)&&De.clearRect(0,0,vt,lt),l||(De.translate(Fe.x,Fe.y),De.scale(ze,ze)),d&&De.translate(d.x,d.y),f&&De.scale(f,f)}if(i(W,"setContextTransform"),T||(t.textureDrawLastFrame=!1),T){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=a.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var H=t.data.bufferContexts[t.TEXTURE_BUFFER];H.setTransform(1,0,0,1,0,0),H.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:H,drawOnlyNodeLayer:!0,forcedPxRatio:m*t.textureMult});var $=t.textureCache.viewport={zoom:a.zoom(),pan:a.pan(),width:t.canvasWidth,height:t.canvasHeight};$.mpan={x:(0-$.pan.x)/$.zoom,y:(0-$.pan.y)/$.zoom}}v[t.DRAG]=!1,v[t.NODE]=!1;var re=b.contexts[t.NODE],Z=t.textureCache.texture,$=t.textureCache.viewport;re.setTransform(1,0,0,1,0,0),C?q(re,0,0,$.width,$.height):re.clearRect(0,0,$.width,$.height);var X=I.core("outside-texture-bg-color").value,te=I.core("outside-texture-bg-opacity").value;t.colorFillStyle(re,X[0],X[1],X[2],te),re.fillRect(0,0,$.width,$.height);var N=a.zoom();W(re,!1),re.clearRect($.mpan.x,$.mpan.y,$.width/$.zoom/m,$.height/$.zoom/m),re.drawImage(Z,$.mpan.x,$.mpan.y,$.width/$.zoom/m,$.height/$.zoom/m)}else t.textureOnViewport&&!s&&(t.textureCache=null);var U=a.extent(),ne=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),se=t.hideEdgesOnViewport&&ne,he=[];if(he[t.NODE]=!v[t.NODE]&&C&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,he[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),he[t.DRAG]=!v[t.DRAG]&&C&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,he[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),v[t.NODE]||l||h||he[t.NODE]){var le=C&&!he[t.NODE]&&E!==1,re=s||(le?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:b.contexts[t.NODE]),pe=C&&!le?"motionBlur":void 0;W(re,pe),se?t.drawCachedNodes(re,Q.nondrag,m,U):t.drawLayeredElements(re,Q.nondrag,m,U),t.debug&&t.drawDebugPoints(re,Q.nondrag),!l&&!C&&(v[t.NODE]=!1)}if(!h&&(v[t.DRAG]||l||he[t.DRAG])){var le=C&&!he[t.DRAG]&&E!==1,re=s||(le?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:b.contexts[t.DRAG]);W(re,C&&!le?"motionBlur":void 0),se?t.drawCachedNodes(re,Q.drag,m,U):t.drawCachedElements(re,Q.drag,m,U),t.debug&&t.drawDebugPoints(re,Q.drag),!l&&!C&&(v[t.DRAG]=!1)}if(this.drawSelectionRectangle(r,W),C&&E!==1){var ge=b.contexts[t.NODE],we=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],Ae=b.contexts[t.DRAG],ve=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],Ie=i(function(Be,Fe,ze){Be.setTransform(1,0,0,1,0,0),ze||!_?Be.clearRect(0,0,t.canvasWidth,t.canvasHeight):q(Be,0,0,t.canvasWidth,t.canvasHeight);var vt=E;Be.drawImage(Fe,0,0,t.canvasWidth*vt,t.canvasHeight*vt,0,0,t.canvasWidth,t.canvasHeight)},"drawMotionBlur");(v[t.NODE]||he[t.NODE])&&(Ie(ge,we,he[t.NODE]),v[t.NODE]=!1),(v[t.DRAG]||he[t.DRAG])&&(Ie(Ae,ve,he[t.DRAG]),v[t.DRAG]=!1)}t.prevViewport=$,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),C&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!T,t.mbFrames=0,v[t.NODE]=!0,v[t.DRAG]=!0,t.redraw()},PZn)),s||a.emit("render")};Pb.drawSelectionRectangle=function(r,t){var a=this,s=a.cy,l=a.data,h=s.style(),f=r.drawOnlyNodeLayer,d=r.drawAllLayers,m=l.canvasNeedsRedraw,b=r.forcedContext;if(a.showFps||!f&&m[a.SELECT_BOX]&&!d){var v=b||l.contexts[a.SELECT_BOX];if(t(v),a.selection[4]==1&&(a.hoverData.selecting||a.touchData.selecting)){var T=a.cy.zoom(),C=h.core("selection-box-border-width").value/T;v.lineWidth=C,v.fillStyle="rgba("+h.core("selection-box-color").value[0]+","+h.core("selection-box-color").value[1]+","+h.core("selection-box-color").value[2]+","+h.core("selection-box-opacity").value+")",v.fillRect(a.selection[0],a.selection[1],a.selection[2]-a.selection[0],a.selection[3]-a.selection[1]),C>0&&(v.strokeStyle="rgba("+h.core("selection-box-border-color").value[0]+","+h.core("selection-box-border-color").value[1]+","+h.core("selection-box-border-color").value[2]+","+h.core("selection-box-opacity").value+")",v.strokeRect(a.selection[0],a.selection[1],a.selection[2]-a.selection[0],a.selection[3]-a.selection[1]))}if(l.bgActivePosistion&&!a.hoverData.selecting){var T=a.cy.zoom(),E=l.bgActivePosistion;v.fillStyle="rgba("+h.core("active-bg-color").value[0]+","+h.core("active-bg-color").value[1]+","+h.core("active-bg-color").value[2]+","+h.core("active-bg-opacity").value+")",v.beginPath(),v.arc(E.x,E.y,h.core("active-bg-size").pfValue/T,0,2*Math.PI),v.fill()}var S=a.lastRedrawTime;if(a.showFps&&S){S=Math.round(S);var R=Math.round(1e3/S),L="1 frame = "+S+" ms = "+R+" fps";if(v.setTransform(1,0,0,1,0,0),v.fillStyle="rgba(255, 0, 0, 0.75)",v.strokeStyle="rgba(255, 0, 0, 0.75)",v.font="30px Arial",!zne){var _=v.measureText(L);zne=_.actualBoundingBoxAscent}v.fillText(L,0,zne);var I=60;v.strokeRect(0,zne+10,250,20),v.fillRect(0,zne+10,250*Math.min(R/I,1),20)}d||(m[a.SELECT_BOX]=!1)}};i(o8r,"compileShader");i(BZn,"createProgram");i(FZn,"createTextureCanvas");i(sit,"getEffectivePanZoom");i($Zn,"getEffectiveZoom");i(GZn,"modelToRenderedPosition");i(jZn,"isSimpleShape");i(zZn,"arrayEqual");i(dP,"toWebGLColor");i(tV,"indexToVec4");i(UZn,"vec4ToIndex");i(VZn,"createTexture");i(Y7r,"getTypeInfo");i(X7r,"createTypedArray");i(WZn,"createTypedArrayView");i(HZn,"createBufferStaticDraw");i(LS,"createBufferDynamicDraw");i(qZn,"create3x3MatrixBufferDynamicDraw");i(YZn,"createPickingFrameBuffer");l8r=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var r=0,t=arguments.length;t--;)r+=arguments[t]*arguments[t];return Math.sqrt(r)});i(unt,"create");i(c8r,"identity");i(XZn,"multiply");i(YTe,"translate");i(u8r,"rotate");i(Int,"scale");i(KZn,"projection");JZn=(function(){function r(t,a,s,l){iD(this,r),this.debugID=Math.floor(Math.random()*1e4),this.r=t,this.texSize=a,this.texRows=s,this.texHeight=Math.floor(a/s),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=l(t,a,a),this.scratch=l(t,a,this.texHeight,"scratch")}return i(r,"Atlas"),aD(r,[{key:"lock",value:i(function(){this.locked=!0},"lock")},{key:"getKeys",value:i(function(){return new Set(this.keyToLocation.keys())},"getKeys")},{key:"getScale",value:i(function(a){var s=a.w,l=a.h,h=this.texHeight,f=this.texSize,d=h/l,m=s*d,b=l*d;return m>f&&(d=f/s,m=s*d,b=l*d),{scale:d,texW:m,texH:b}},"getScale")},{key:"draw",value:i(function(a,s,l){var h=this;if(this.locked)throw new Error("can't draw, atlas is locked");var f=this.texSize,d=this.texRows,m=this.texHeight,b=this.getScale(s),v=b.scale,T=b.texW,C=b.texH,E=i(function(N,B){if(l&&B){var O=B.context,P=N.x,$=N.row,V=P,Y=m*$;O.save(),O.translate(V,Y),O.scale(v,v),l(O,s),O.restore()}},"drawAt"),S=[null,null],R=i(function(){E(h.freePointer,h.canvas),S[0]={x:h.freePointer.x,y:h.freePointer.row*m,w:T,h:C},S[1]={x:h.freePointer.x+T,y:h.freePointer.row*m,w:0,h:C},h.freePointer.x+=T,h.freePointer.x==f&&(h.freePointer.x=0,h.freePointer.row++)},"drawNormal"),L=i(function(){var N=h.scratch,B=h.canvas;N.clear(),E({x:0,row:0},N);var O=f-h.freePointer.x,P=T-O,$=m;{var V=h.freePointer.x,Y=h.freePointer.row*m,Q=O;B.context.drawImage(N,0,0,Q,$,V,Y,Q,$),S[0]={x:V,y:Y,w:Q,h:C}}{var q=O,W=(h.freePointer.row+1)*m,H=P;B&&B.context.drawImage(N,q,0,H,$,0,W,H,$),S[1]={x:0,y:W,w:H,h:C}}h.freePointer.x=P,h.freePointer.row++},"drawWrapped"),_=i(function(){h.freePointer.x=0,h.freePointer.row++},"moveToStartOfNextRow");if(this.freePointer.x+T<=f)R();else{if(this.freePointer.row>=d-1)return!1;this.freePointer.x===f?(_(),R()):this.enableWrapping?L():(_(),R())}return this.keyToLocation.set(a,S),this.needsBuffer=!0,S},"draw")},{key:"getOffsets",value:i(function(a){return this.keyToLocation.get(a)},"getOffsets")},{key:"isEmpty",value:i(function(){return this.freePointer.x===0&&this.freePointer.row===0},"isEmpty")},{key:"canFit",value:i(function(a){if(this.locked)return!1;var s=this.texSize,l=this.texRows,h=this.getScale(a),f=h.texW;return this.freePointer.x+f>s?this.freePointer.row<l-1:!0},"canFit")},{key:"bufferIfNeeded",value:i(function(a){this.texture||(this.texture=VZn(a,this.debugID)),this.needsBuffer&&(this.texture.buffer(this.canvas),this.needsBuffer=!1,this.locked&&(this.canvas=null,this.scratch=null))},"bufferIfNeeded")},{key:"dispose",value:i(function(){this.texture&&(this.texture.deleteTexture(),this.texture=null),this.canvas=null,this.scratch=null,this.locked=!0},"dispose")}])})(),QZn=(function(){function r(t,a,s,l){iD(this,r),this.r=t,this.texSize=a,this.texRows=s,this.createTextureCanvas=l,this.atlases=[],this.styleKeyToAtlas=new Map,this.markedKeys=new Set}return i(r,"AtlasCollection"),aD(r,[{key:"getKeys",value:i(function(){return new Set(this.styleKeyToAtlas.keys())},"getKeys")},{key:"_createAtlas",value:i(function(){var a=this.r,s=this.texSize,l=this.texRows,h=this.createTextureCanvas;return new JZn(a,s,l,h)},"_createAtlas")},{key:"_getScratchCanvas",value:i(function(){if(!this.scratch){var a=this.r,s=this.texSize,l=this.texRows,h=this.createTextureCanvas,f=Math.floor(s/l);this.scratch=h(a,s,f,"scratch")}return this.scratch},"_getScratchCanvas")},{key:"draw",value:i(function(a,s,l){var h=this.styleKeyToAtlas.get(a);return h||(h=this.atlases[this.atlases.length-1],(!h||!h.canFit(s))&&(h&&h.lock(),h=this._createAtlas(),this.atlases.push(h)),h.draw(a,s,l),this.styleKeyToAtlas.set(a,h)),h},"draw")},{key:"getAtlas",value:i(function(a){return this.styleKeyToAtlas.get(a)},"getAtlas")},{key:"hasAtlas",value:i(function(a){return this.styleKeyToAtlas.has(a)},"hasAtlas")},{key:"markKeyForGC",value:i(function(a){this.markedKeys.add(a)},"markKeyForGC")},{key:"gc",value:i(function(){var a=this,s=this.markedKeys;if(s.size===0){console.log("nothing to garbage collect");return}var l=[],h=new Map,f=null,d=v2(this.atlases),m;try{var b=i(function(){var T=m.value,C=T.getKeys(),E=ZZn(s,C);if(E.size===0)return l.push(T),C.forEach(function(O){return h.set(O,T)}),1;f||(f=a._createAtlas(),l.push(f));var S=v2(C),R;try{for(S.s();!(R=S.n()).done;){var L=R.value;if(!E.has(L)){var _=T.getOffsets(L),I=$g(_,2),N=I[0],B=I[1];f.canFit({w:N.w+B.w,h:N.h})||(f.lock(),f=a._createAtlas(),l.push(f)),T.canvas&&(a._copyTextureToNewAtlas(L,T,f),h.set(L,f))}}}catch(O){S.e(O)}finally{S.f()}T.dispose()},"_loop");for(d.s();!(m=d.n()).done;)b()}catch(v){d.e(v)}finally{d.f()}this.atlases=l,this.styleKeyToAtlas=h,this.markedKeys=new Set},"gc")},{key:"_copyTextureToNewAtlas",value:i(function(a,s,l){var h=s.getOffsets(a),f=$g(h,2),d=f[0],m=f[1];if(m.w===0)l.draw(a,d,function(C){C.drawImage(s.canvas,d.x,d.y,d.w,d.h,0,0,d.w,d.h)});else{var b=this._getScratchCanvas();b.clear(),b.context.drawImage(s.canvas,d.x,d.y,d.w,d.h,0,0,d.w,d.h),b.context.drawImage(s.canvas,m.x,m.y,m.w,m.h,d.w,0,m.w,m.h);var v=d.w+m.w,T=d.h;l.draw(a,{w:v,h:T},function(C){C.drawImage(b,0,0,v,T,0,0,v,T)})}},"_copyTextureToNewAtlas")},{key:"getCounts",value:i(function(){return{keyCount:this.styleKeyToAtlas.size,atlasCount:new Set(this.styleKeyToAtlas.values()).size}},"getCounts")}])})();i(ZZn,"intersection");eei=(function(){function r(t,a){iD(this,r),this.r=t,this.globalOptions=a,this.atlasSize=a.webglTexSize,this.maxAtlasesPerBatch=a.webglTexPerBatch,this.renderTypes=new Map,this.collections=new Map,this.typeAndIdToKey=new Map}return i(r,"AtlasManager"),aD(r,[{key:"getAtlasSize",value:i(function(){return this.atlasSize},"getAtlasSize")},{key:"addAtlasCollection",value:i(function(a,s){var l=this.globalOptions,h=l.webglTexSize,f=l.createTextureCanvas,d=s.texRows,m=this._cacheScratchCanvas(f),b=new QZn(this.r,h,d,m);this.collections.set(a,b)},"addAtlasCollection")},{key:"addRenderType",value:i(function(a,s){var l=s.collection;if(!this.collections.has(l))throw new Error("invalid atlas collection name '".concat(l,"'"));var h=this.collections.get(l),f=ao({type:a,atlasCollection:h},s);this.renderTypes.set(a,f)},"addRenderType")},{key:"getRenderTypeOpts",value:i(function(a){return this.renderTypes.get(a)},"getRenderTypeOpts")},{key:"getAtlasCollection",value:i(function(a){return this.collections.get(a)},"getAtlasCollection")},{key:"_cacheScratchCanvas",value:i(function(a){var s=-1,l=-1,h=null;return function(f,d,m,b){return b?((!h||d!=s||m!=l)&&(s=d,l=m,h=a(f,d,m)),h):a(f,d,m)}},"_cacheScratchCanvas")},{key:"_key",value:i(function(a,s){return"".concat(a,"-").concat(s)},"_key")},{key:"invalidate",value:i(function(a){var s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=l.forceRedraw,f=h===void 0?!1:h,d=l.filterEle,m=d===void 0?function(){return!0}:d,b=l.filterType,v=b===void 0?function(){return!0}:b,T=!1,C=!1,E=v2(a),S;try{for(E.s();!(S=E.n()).done;){var R=S.value;if(m(R)){var L=v2(this.renderTypes.values()),_;try{var I=i(function(){var B=_.value,O=B.type;if(v(O)){var P=s.collections.get(B.collection),$=B.getKey(R),V=Array.isArray($)?$:[$];if(f)V.forEach(function(W){return P.markKeyForGC(W)}),C=!0;else{var Y=B.getID?B.getID(R):R.id(),Q=s._key(O,Y),q=s.typeAndIdToKey.get(Q);q!==void 0&&!zZn(V,q)&&(T=!0,s.typeAndIdToKey.delete(Q),q.forEach(function(W){return P.markKeyForGC(W)}))}}},"_loop2");for(L.s();!(_=L.n()).done;)I()}catch(N){L.e(N)}finally{L.f()}}}}catch(N){E.e(N)}finally{E.f()}return C&&(this.gc(),T=!1),T},"invalidate")},{key:"gc",value:i(function(){var a=v2(this.collections.values()),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;l.gc()}}catch(h){a.e(h)}finally{a.f()}},"gc")},{key:"getOrCreateAtlas",value:i(function(a,s,l,h){var f=this.renderTypes.get(s),d=this.collections.get(f.collection),m=!1,b=d.draw(h,l,function(C){f.drawClipped?(C.save(),C.beginPath(),C.rect(0,0,l.w,l.h),C.clip(),f.drawElement(C,a,l,!0,!0),C.restore()):f.drawElement(C,a,l,!0,!0),m=!0});if(m){var v=f.getID?f.getID(a):a.id(),T=this._key(s,v);this.typeAndIdToKey.has(T)?this.typeAndIdToKey.get(T).push(h):this.typeAndIdToKey.set(T,[h])}return b},"getOrCreateAtlas")},{key:"getAtlasInfo",value:i(function(a,s){var l=this,h=this.renderTypes.get(s),f=h.getKey(a),d=Array.isArray(f)?f:[f];return d.map(function(m){var b=h.getBoundingBox(a,m),v=l.getOrCreateAtlas(a,s,b,m),T=v.getOffsets(m),C=$g(T,2),E=C[0],S=C[1];return{atlas:v,tex:E,tex1:E,tex2:S,bb:b}})},"getAtlasInfo")},{key:"getDebugInfo",value:i(function(){var a=[],s=v2(this.collections),l;try{for(s.s();!(l=s.n()).done;){var h=$g(l.value,2),f=h[0],d=h[1],m=d.getCounts(),b=m.keyCount,v=m.atlasCount;a.push({type:f,keyCount:b,atlasCount:v})}}catch(T){s.e(T)}finally{s.f()}return a},"getDebugInfo")}])})(),tei=(function(){function r(t){iD(this,r),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return i(r,"AtlasBatchManager"),aD(r,[{key:"getMaxAtlasesPerBatch",value:i(function(){return this.maxAtlasesPerBatch},"getMaxAtlasesPerBatch")},{key:"getAtlasSize",value:i(function(){return this.atlasSize},"getAtlasSize")},{key:"getIndexArray",value:i(function(){return Array.from({length:this.maxAtlasesPerBatch},function(a,s){return s})},"getIndexArray")},{key:"startBatch",value:i(function(){this.batchAtlases=[]},"startBatch")},{key:"getAtlasCount",value:i(function(){return this.batchAtlases.length},"getAtlasCount")},{key:"getAtlases",value:i(function(){return this.batchAtlases},"getAtlases")},{key:"canAddToCurrentBatch",value:i(function(a){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(a):!0},"canAddToCurrentBatch")},{key:"getAtlasIndexForBatch",value:i(function(a){var s=this.batchAtlases.indexOf(a);if(s<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(a),s=this.batchAtlases.length-1}return s},"getAtlasIndexForBatch")}])})(),rei=`
|
|
float circleSD(vec2 p, float r) {
|
|
return distance(vec2(0), p) - r; // signed distance
|
|
}
|
|
`,nei=`
|
|
float rectangleSD(vec2 p, vec2 b) {
|
|
vec2 d = abs(p)-b;
|
|
return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0);
|
|
}
|
|
`,iei=`
|
|
float roundRectangleSD(vec2 p, vec2 b, vec4 cr) {
|
|
cr.xy = (p.x > 0.0) ? cr.xy : cr.zw;
|
|
cr.x = (p.y > 0.0) ? cr.x : cr.y;
|
|
vec2 q = abs(p) - b + cr.x;
|
|
return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x;
|
|
}
|
|
`,aei=`
|
|
float ellipseSD(vec2 p, vec2 ab) {
|
|
p = abs( p ); // symmetry
|
|
|
|
// find root with Newton solver
|
|
vec2 q = ab*(p-ab);
|
|
float w = (q.x<q.y)? 1.570796327 : 0.0;
|
|
for( int i=0; i<5; i++ ) {
|
|
vec2 cs = vec2(cos(w),sin(w));
|
|
vec2 u = ab*vec2( cs.x,cs.y);
|
|
vec2 v = ab*vec2(-cs.y,cs.x);
|
|
w = w + dot(p-u,v)/(dot(p-u,u)+dot(v,v));
|
|
}
|
|
|
|
// compute final point and distance
|
|
float d = length(p-ab*vec2(cos(w),sin(w)));
|
|
|
|
// return signed distance
|
|
return (dot(p/ab,p/ab)>1.0) ? d : -d;
|
|
}
|
|
`,Kne={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},oke={IGNORE:1,USE_BB:2},hnt=0,h8r=1,f8r=2,fnt=3,rV=4,BTe=5,Une=6,Vne=7,sei=(function(){function r(t,a,s){iD(this,r),this.r=t,this.gl=a,this.maxInstances=s.webglBatchSize,this.atlasSize=s.webglTexSize,this.bgColor=s.bgColor,this.debug=s.webglDebug,this.batchDebugInfo=[],s.enableWrapping=!0,s.createTextureCanvas=FZn,this.atlasManager=new eei(t,s),this.batchManager=new tei(s),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Kne.SCREEN),this.pickingProgram=this._createShaderProgram(Kne.PICKING),this.vao=this._createVAO()}return i(r,"ElementDrawingWebGL"),aD(r,[{key:"addAtlasCollection",value:i(function(a,s){this.atlasManager.addAtlasCollection(a,s)},"addAtlasCollection")},{key:"addTextureAtlasRenderType",value:i(function(a,s){this.atlasManager.addRenderType(a,s)},"addTextureAtlasRenderType")},{key:"addSimpleShapeRenderType",value:i(function(a,s){this.simpleShapeOptions.set(a,s)},"addSimpleShapeRenderType")},{key:"invalidate",value:i(function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.type,h=this.atlasManager;return l?h.invalidate(a,{filterType:i(function(d){return d===l},"filterType"),forceRedraw:!0}):h.invalidate(a)},"invalidate")},{key:"gc",value:i(function(){this.atlasManager.gc()},"gc")},{key:"_createShaderProgram",value:i(function(a){var s=this.gl,l=`#version 300 es
|
|
precision highp float;
|
|
|
|
uniform mat3 uPanZoomMatrix;
|
|
uniform int uAtlasSize;
|
|
|
|
// instanced
|
|
in vec2 aPosition; // a vertex from the unit square
|
|
|
|
in mat3 aTransform; // used to transform verticies, eg into a bounding box
|
|
in int aVertType; // the type of thing we are rendering
|
|
|
|
// the z-index that is output when using picking mode
|
|
in vec4 aIndex;
|
|
|
|
// For textures
|
|
in int aAtlasId; // which shader unit/atlas to use
|
|
in vec4 aTex; // x/y/w/h of texture in atlas
|
|
|
|
// for edges
|
|
in vec4 aPointAPointB;
|
|
in vec4 aPointCPointD;
|
|
in vec2 aLineWidth; // also used for node border width
|
|
|
|
// simple shapes
|
|
in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left]
|
|
in vec4 aColor; // also used for edges
|
|
in vec4 aBorderColor; // aLineWidth is used for border width
|
|
|
|
// output values passed to the fragment shader
|
|
out vec2 vTexCoord;
|
|
out vec4 vColor;
|
|
out vec2 vPosition;
|
|
// flat values are not interpolated
|
|
flat out int vAtlasId;
|
|
flat out int vVertType;
|
|
flat out vec2 vTopRight;
|
|
flat out vec2 vBotLeft;
|
|
flat out vec4 vCornerRadius;
|
|
flat out vec4 vBorderColor;
|
|
flat out vec2 vBorderWidth;
|
|
flat out vec4 vIndex;
|
|
|
|
void main(void) {
|
|
int vid = gl_VertexID;
|
|
vec2 position = aPosition; // TODO make this a vec3, simplifies some code below
|
|
|
|
if(aVertType == `.concat(hnt,`) {
|
|
float texX = aTex.x; // texture coordinates
|
|
float texY = aTex.y;
|
|
float texW = aTex.z;
|
|
float texH = aTex.w;
|
|
|
|
if(vid == 1 || vid == 2 || vid == 4) {
|
|
texX += texW;
|
|
}
|
|
if(vid == 2 || vid == 4 || vid == 5) {
|
|
texY += texH;
|
|
}
|
|
|
|
float d = float(uAtlasSize);
|
|
vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1
|
|
|
|
gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
|
|
}
|
|
else if(aVertType == `).concat(rV," || aVertType == ").concat(Vne,`
|
|
|| aVertType == `).concat(BTe," || aVertType == ").concat(Une,`) { // simple shapes
|
|
|
|
// the bounding box is needed by the fragment shader
|
|
vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat
|
|
vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat
|
|
vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated
|
|
|
|
// calculations are done in the fragment shader, just pass these along
|
|
vColor = aColor;
|
|
vCornerRadius = aCornerRadius;
|
|
vBorderColor = aBorderColor;
|
|
vBorderWidth = aLineWidth;
|
|
|
|
gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
|
|
}
|
|
else if(aVertType == `).concat(h8r,`) {
|
|
vec2 source = aPointAPointB.xy;
|
|
vec2 target = aPointAPointB.zw;
|
|
|
|
// adjust the geometry so that the line is centered on the edge
|
|
position.y = position.y - 0.5;
|
|
|
|
// stretch the unit square into a long skinny rectangle
|
|
vec2 xBasis = target - source;
|
|
vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x));
|
|
vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y;
|
|
|
|
gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0);
|
|
vColor = aColor;
|
|
}
|
|
else if(aVertType == `).concat(f8r,`) {
|
|
vec2 pointA = aPointAPointB.xy;
|
|
vec2 pointB = aPointAPointB.zw;
|
|
vec2 pointC = aPointCPointD.xy;
|
|
vec2 pointD = aPointCPointD.zw;
|
|
|
|
// adjust the geometry so that the line is centered on the edge
|
|
position.y = position.y - 0.5;
|
|
|
|
vec2 p0, p1, p2, pos;
|
|
if(position.x == 0.0) { // The left side of the unit square
|
|
p0 = pointA;
|
|
p1 = pointB;
|
|
p2 = pointC;
|
|
pos = position;
|
|
} else { // The right side of the unit square, use same approach but flip the geometry upside down
|
|
p0 = pointD;
|
|
p1 = pointC;
|
|
p2 = pointB;
|
|
pos = vec2(0.0, -position.y);
|
|
}
|
|
|
|
vec2 p01 = p1 - p0;
|
|
vec2 p12 = p2 - p1;
|
|
vec2 p21 = p1 - p2;
|
|
|
|
// Find the normal vector.
|
|
vec2 tangent = normalize(normalize(p12) + normalize(p01));
|
|
vec2 normal = vec2(-tangent.y, tangent.x);
|
|
|
|
// Find the vector perpendicular to p0 -> p1.
|
|
vec2 p01Norm = normalize(vec2(-p01.y, p01.x));
|
|
|
|
// Determine the bend direction.
|
|
float sigma = sign(dot(p01 + p21, normal));
|
|
float width = aLineWidth[0];
|
|
|
|
if(sign(pos.y) == -sigma) {
|
|
// This is an intersecting vertex. Adjust the position so that there's no overlap.
|
|
vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm);
|
|
gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);
|
|
} else {
|
|
// This is a non-intersecting vertex. Treat it like a mitre join.
|
|
vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm);
|
|
gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);
|
|
}
|
|
|
|
vColor = aColor;
|
|
}
|
|
else if(aVertType == `).concat(fnt,` && vid < 3) {
|
|
// massage the first triangle into an edge arrow
|
|
if(vid == 0)
|
|
position = vec2(-0.15, -0.3);
|
|
if(vid == 1)
|
|
position = vec2( 0.0, 0.0);
|
|
if(vid == 2)
|
|
position = vec2( 0.15, -0.3);
|
|
|
|
gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
|
|
vColor = aColor;
|
|
}
|
|
else {
|
|
gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space
|
|
}
|
|
|
|
vAtlasId = aAtlasId;
|
|
vVertType = aVertType;
|
|
vIndex = aIndex;
|
|
}
|
|
`),h=this.batchManager.getIndexArray(),f=`#version 300 es
|
|
precision highp float;
|
|
|
|
// declare texture unit for each texture atlas in the batch
|
|
`.concat(h.map(function(b){return"uniform sampler2D uTexture".concat(b,";")}).join(`
|
|
`),`
|
|
|
|
uniform vec4 uBGColor;
|
|
uniform float uZoom;
|
|
|
|
in vec2 vTexCoord;
|
|
in vec4 vColor;
|
|
in vec2 vPosition; // model coordinates
|
|
|
|
flat in int vAtlasId;
|
|
flat in vec4 vIndex;
|
|
flat in int vVertType;
|
|
flat in vec2 vTopRight;
|
|
flat in vec2 vBotLeft;
|
|
flat in vec4 vCornerRadius;
|
|
flat in vec4 vBorderColor;
|
|
flat in vec2 vBorderWidth;
|
|
|
|
out vec4 outColor;
|
|
|
|
`).concat(rei,`
|
|
`).concat(nei,`
|
|
`).concat(iei,`
|
|
`).concat(aei,`
|
|
|
|
vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha
|
|
return vec4(
|
|
top.rgb + (bot.rgb * (1.0 - top.a)),
|
|
top.a + (bot.a * (1.0 - top.a))
|
|
);
|
|
}
|
|
|
|
vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance
|
|
// scale to the zoom level so that borders don't look blurry when zoomed in
|
|
// note 1.5 is an aribitrary value chosen because it looks good
|
|
return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d)));
|
|
}
|
|
|
|
void main(void) {
|
|
if(vVertType == `).concat(hnt,`) {
|
|
// look up the texel from the texture unit
|
|
`).concat(h.map(function(b){return"if(vAtlasId == ".concat(b,") outColor = texture(uTexture").concat(b,", vTexCoord);")}).join(`
|
|
else `),`
|
|
}
|
|
else if(vVertType == `).concat(fnt,`) {
|
|
// mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out';
|
|
outColor = blend(vColor, uBGColor);
|
|
outColor.a = 1.0; // make opaque, masks out line under arrow
|
|
}
|
|
else if(vVertType == `).concat(rV,` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border
|
|
outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done
|
|
}
|
|
else if(vVertType == `).concat(rV," || vVertType == ").concat(Vne,`
|
|
|| vVertType == `).concat(BTe," || vVertType == ").concat(Une,`) { // use SDF
|
|
|
|
float outerBorder = vBorderWidth[0];
|
|
float innerBorder = vBorderWidth[1];
|
|
float borderPadding = outerBorder * 2.0;
|
|
float w = vTopRight.x - vBotLeft.x - borderPadding;
|
|
float h = vTopRight.y - vBotLeft.y - borderPadding;
|
|
vec2 b = vec2(w/2.0, h/2.0); // half width, half height
|
|
vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center
|
|
|
|
float d; // signed distance
|
|
if(vVertType == `).concat(rV,`) {
|
|
d = rectangleSD(p, b);
|
|
} else if(vVertType == `).concat(Vne,` && w == h) {
|
|
d = circleSD(p, b.x); // faster than ellipse
|
|
} else if(vVertType == `).concat(Vne,`) {
|
|
d = ellipseSD(p, b);
|
|
} else {
|
|
d = roundRectangleSD(p, b, vCornerRadius.wzyx);
|
|
}
|
|
|
|
// use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling
|
|
// we must smooth colors inwards, because we can't change pixels outside the shape's bounding box
|
|
if(d > 0.0) {
|
|
if(d > outerBorder) {
|
|
discard;
|
|
} else {
|
|
outColor = distInterp(vBorderColor, vec4(0), d - outerBorder);
|
|
}
|
|
} else {
|
|
if(d > innerBorder) {
|
|
vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor;
|
|
vec4 innerBorderColor = blend(vBorderColor, vColor);
|
|
outColor = distInterp(innerBorderColor, outerColor, d);
|
|
}
|
|
else {
|
|
vec4 outerColor;
|
|
if(innerBorder == 0.0 && outerBorder == 0.0) {
|
|
outerColor = vec4(0);
|
|
} else if(innerBorder == 0.0) {
|
|
outerColor = vBorderColor;
|
|
} else {
|
|
outerColor = blend(vBorderColor, vColor);
|
|
}
|
|
outColor = distInterp(vColor, outerColor, d - innerBorder);
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
outColor = vColor;
|
|
}
|
|
|
|
`).concat(a.picking?`if(outColor.a == 0.0) discard;
|
|
else outColor = vIndex;`:"",`
|
|
}
|
|
`),d=BZn(s,l,f);d.aPosition=s.getAttribLocation(d,"aPosition"),d.aIndex=s.getAttribLocation(d,"aIndex"),d.aVertType=s.getAttribLocation(d,"aVertType"),d.aTransform=s.getAttribLocation(d,"aTransform"),d.aAtlasId=s.getAttribLocation(d,"aAtlasId"),d.aTex=s.getAttribLocation(d,"aTex"),d.aPointAPointB=s.getAttribLocation(d,"aPointAPointB"),d.aPointCPointD=s.getAttribLocation(d,"aPointCPointD"),d.aLineWidth=s.getAttribLocation(d,"aLineWidth"),d.aColor=s.getAttribLocation(d,"aColor"),d.aCornerRadius=s.getAttribLocation(d,"aCornerRadius"),d.aBorderColor=s.getAttribLocation(d,"aBorderColor"),d.uPanZoomMatrix=s.getUniformLocation(d,"uPanZoomMatrix"),d.uAtlasSize=s.getUniformLocation(d,"uAtlasSize"),d.uBGColor=s.getUniformLocation(d,"uBGColor"),d.uZoom=s.getUniformLocation(d,"uZoom"),d.uTextures=[];for(var m=0;m<this.batchManager.getMaxAtlasesPerBatch();m++)d.uTextures.push(s.getUniformLocation(d,"uTexture".concat(m)));return d},"_createShaderProgram")},{key:"_createVAO",value:i(function(){var a=[0,0,1,0,1,1,0,0,1,1,0,1];this.vertexCount=a.length/2;var s=this.maxInstances,l=this.gl,h=this.program,f=l.createVertexArray();return l.bindVertexArray(f),HZn(l,"vec2",h.aPosition,a),this.transformBuffer=qZn(l,s,h.aTransform),this.indexBuffer=LS(l,s,"vec4",h.aIndex),this.vertTypeBuffer=LS(l,s,"int",h.aVertType),this.atlasIdBuffer=LS(l,s,"int",h.aAtlasId),this.texBuffer=LS(l,s,"vec4",h.aTex),this.pointAPointBBuffer=LS(l,s,"vec4",h.aPointAPointB),this.pointCPointDBuffer=LS(l,s,"vec4",h.aPointCPointD),this.lineWidthBuffer=LS(l,s,"vec2",h.aLineWidth),this.colorBuffer=LS(l,s,"vec4",h.aColor),this.cornerRadiusBuffer=LS(l,s,"vec4",h.aCornerRadius),this.borderColorBuffer=LS(l,s,"vec4",h.aBorderColor),l.bindVertexArray(null),f},"_createVAO")},{key:"buffers",get:i(function(){var a=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(s){return q_(s,"Buffer")}).map(function(s){return a[s]})),this._buffers},"get")},{key:"startFrame",value:i(function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kne.SCREEN;this.panZoomMatrix=a,this.renderTarget=s,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()},"startFrame")},{key:"startBatch",value:i(function(){this.instanceCount=0,this.batchManager.startBatch()},"startBatch")},{key:"endFrame",value:i(function(){this.endBatch()},"endFrame")},{key:"_isVisible",value:i(function(a,s){return a.visible()?s&&s.isVisible?s.isVisible(a):!0:!1},"_isVisible")},{key:"drawTexture",value:i(function(a,s,l){var h=this.atlasManager,f=this.batchManager,d=h.getRenderTypeOpts(l);if(this._isVisible(a,d)&&!(a.isEdge()&&!this._isValidEdge(a))){if(this.renderTarget.picking&&d.getTexPickingMode){var m=d.getTexPickingMode(a);if(m===oke.IGNORE)return;if(m==oke.USE_BB){this.drawPickingRectangle(a,s,l);return}}var b=h.getAtlasInfo(a,l),v=v2(b),T;try{for(v.s();!(T=v.n()).done;){var C=T.value,E=C.atlas,S=C.tex1,R=C.tex2;f.canAddToCurrentBatch(E)||this.endBatch();for(var L=f.getAtlasIndexForBatch(E),_=0,I=[[S,!0],[R,!1]];_<I.length;_++){var N=$g(I[_],2),B=N[0],O=N[1];if(B.w!=0){var P=this.instanceCount;this.vertTypeBuffer.getView(P)[0]=hnt;var $=this.indexBuffer.getView(P);tV(s,$);var V=this.atlasIdBuffer.getView(P);V[0]=L;var Y=this.texBuffer.getView(P);Y[0]=B.x,Y[1]=B.y,Y[2]=B.w,Y[3]=B.h;var Q=this.transformBuffer.getMatrixView(P);this.setTransformMatrix(a,Q,d,C,O),this.instanceCount++,O||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(q){v.e(q)}finally{v.f()}}},"drawTexture")},{key:"setTransformMatrix",value:i(function(a,s,l,h){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=0;if(l.shapeProps&&l.shapeProps.padding&&(d=a.pstyle(l.shapeProps.padding).pfValue),h){var m=h.bb,b=h.tex1,v=h.tex2,T=b.w/(b.w+v.w);f||(T=1-T);var C=this._getAdjustedBB(m,d,f,T);this._applyTransformMatrix(s,C,l,a)}else{var E=l.getBoundingBox(a),S=this._getAdjustedBB(E,d,!0,1);this._applyTransformMatrix(s,S,l,a)}},"setTransformMatrix")},{key:"_applyTransformMatrix",value:i(function(a,s,l,h){var f,d;c8r(a);var m=l.getRotation?l.getRotation(h):0;if(m!==0){var b=l.getRotationPoint(h),v=b.x,T=b.y;YTe(a,a,[v,T]),u8r(a,a,m);var C=l.getRotationOffset(h);f=C.x+(s.xOffset||0),d=C.y+(s.yOffset||0)}else f=s.x1,d=s.y1;YTe(a,a,[f,d]),Int(a,a,[s.w,s.h])},"_applyTransformMatrix")},{key:"_getAdjustedBB",value:i(function(a,s,l,h){var f=a.x1,d=a.y1,m=a.w,b=a.h,v=a.yOffset;s&&(f-=s,d-=s,m+=2*s,b+=2*s);var T=0,C=m*h;return l&&h<1?m=C:!l&&h<1&&(T=m-C,f+=T,m=C),{x1:f,y1:d,w:m,h:b,xOffset:T,yOffset:v}},"_getAdjustedBB")},{key:"drawPickingRectangle",value:i(function(a,s,l){var h=this.atlasManager.getRenderTypeOpts(l),f=this.instanceCount;this.vertTypeBuffer.getView(f)[0]=rV;var d=this.indexBuffer.getView(f);tV(s,d);var m=this.colorBuffer.getView(f);dP([0,0,0],1,m);var b=this.transformBuffer.getMatrixView(f);this.setTransformMatrix(a,b,h),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()},"drawPickingRectangle")},{key:"drawNode",value:i(function(a,s,l){var h=this.simpleShapeOptions.get(l);if(this._isVisible(a,h)){var f=h.shapeProps,d=this._getVertTypeForShape(a,f.shape);if(d===void 0||h.isSimple&&!h.isSimple(a,this.renderTarget)){this.drawTexture(a,s,l);return}var m=this.instanceCount;if(this.vertTypeBuffer.getView(m)[0]=d,d===BTe||d===Une){var b=h.getBoundingBox(a),v=this._getCornerRadius(a,f.radius,b),T=this.cornerRadiusBuffer.getView(m);T[0]=v,T[1]=v,T[2]=v,T[3]=v,d===Une&&(T[0]=0,T[2]=0)}var C=this.indexBuffer.getView(m);tV(s,C);var E=this.renderTarget.picking?1:l==="node-body"?a.effectiveOpacity():1,S=this.renderTarget.picking?1:a.pstyle(f.opacity).value*E,R=a.pstyle(f.color).value,L=this.colorBuffer.getView(m);dP(R,S,L);var _=this.lineWidthBuffer.getView(m);if(_[0]=0,_[1]=0,f.border){var I=a.pstyle("border-width").value;if(I>0){var N=a.pstyle("border-color").value,B=E*a.pstyle("border-opacity").value,O=this.borderColorBuffer.getView(m);dP(N,B,O);var P=a.pstyle("border-position").value;if(P==="inside")_[0]=0,_[1]=-I;else if(P==="outside")_[0]=I,_[1]=0;else{var $=I/2;_[0]=$,_[1]=-$}}}var V=this.transformBuffer.getMatrixView(m);this.setTransformMatrix(a,V,h),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},"drawNode")},{key:"_getVertTypeForShape",value:i(function(a,s){var l=a.pstyle(s).value;switch(l){case"rectangle":return rV;case"ellipse":return Vne;case"roundrectangle":case"round-rectangle":return BTe;case"bottom-round-rectangle":return Une;default:return}},"_getVertTypeForShape")},{key:"_getCornerRadius",value:i(function(a,s,l){var h=l.w,f=l.h;if(a.pstyle(s).value==="auto")return eD(h,f);var d=a.pstyle(s).pfValue,m=h/2,b=f/2;return Math.min(d,b,m)},"_getCornerRadius")},{key:"drawEdgeArrow",value:i(function(a,s,l){if(a.visible()){var h=a._private.rscratch,f,d,m;if(l==="source"?(f=h.arrowStartX,d=h.arrowStartY,m=h.srcArrowAngle):(f=h.arrowEndX,d=h.arrowEndY,m=h.tgtArrowAngle),!(isNaN(f)||f==null||isNaN(d)||d==null||isNaN(m)||m==null)){var b=a.pstyle(l+"-arrow-shape").value;if(b!=="none"){var v=a.pstyle(l+"-arrow-color").value,T=a.pstyle("opacity").value,C=a.pstyle("line-opacity").value,E=T*C,S=a.pstyle("width").pfValue,R=a.pstyle("arrow-scale").value,L=this.r.getArrowWidth(S,R),_=this.instanceCount,I=this.transformBuffer.getMatrixView(_);c8r(I),YTe(I,I,[f,d]),Int(I,I,[L,L]),u8r(I,I,m),this.vertTypeBuffer.getView(_)[0]=fnt;var N=this.indexBuffer.getView(_);tV(s,N);var B=this.colorBuffer.getView(_);dP(v,E,B),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},"drawEdgeArrow")},{key:"drawEdgeLine",value:i(function(a,s){if(a.visible()){var l=this._getEdgePoints(a);if(l){var h=a.pstyle("opacity").value,f=a.pstyle("line-opacity").value,d=a.pstyle("width").pfValue,m=a.pstyle("line-color").value,b=h*f;if(l.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),l.length==4){var v=this.instanceCount;this.vertTypeBuffer.getView(v)[0]=h8r;var T=this.indexBuffer.getView(v);tV(s,T);var C=this.colorBuffer.getView(v);dP(m,b,C);var E=this.lineWidthBuffer.getView(v);E[0]=d;var S=this.pointAPointBBuffer.getView(v);S[0]=l[0],S[1]=l[1],S[2]=l[2],S[3]=l[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var R=0;R<l.length-2;R+=2){var L=this.instanceCount;this.vertTypeBuffer.getView(L)[0]=f8r;var _=this.indexBuffer.getView(L);tV(s,_);var I=this.colorBuffer.getView(L);dP(m,b,I);var N=this.lineWidthBuffer.getView(L);N[0]=d;var B=l[R-2],O=l[R-1],P=l[R],$=l[R+1],V=l[R+2],Y=l[R+3],Q=l[R+4],q=l[R+5];R==0&&(B=2*P-V+.001,O=2*$-Y+.001),R==l.length-4&&(Q=2*V-P+.001,q=2*Y-$+.001);var W=this.pointAPointBBuffer.getView(L);W[0]=B,W[1]=O,W[2]=P,W[3]=$;var H=this.pointCPointDBuffer.getView(L);H[0]=V,H[1]=Y,H[2]=Q,H[3]=q,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},"drawEdgeLine")},{key:"_isValidEdge",value:i(function(a){var s=a._private.rscratch;return!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))},"_isValidEdge")},{key:"_getEdgePoints",value:i(function(a){var s=a._private.rscratch;if(this._isValidEdge(a)){var l=s.allpts;if(l.length==4)return l;var h=this._getNumSegments(a);return this._getCurveSegmentPoints(l,h)}},"_getEdgePoints")},{key:"_getNumSegments",value:i(function(a){var s=15;return Math.min(Math.max(s,5),this.maxInstances)},"_getNumSegments")},{key:"_getCurveSegmentPoints",value:i(function(a,s){if(a.length==4)return a;for(var l=Array((s+1)*2),h=0;h<=s;h++)if(h==0)l[0]=a[0],l[1]=a[1];else if(h==s)l[h*2]=a[a.length-2],l[h*2+1]=a[a.length-1];else{var f=h/s;this._setCurvePoint(a,f,l,h*2)}return l},"_getCurveSegmentPoints")},{key:"_setCurvePoint",value:i(function(a,s,l,h){if(a.length<=2)l[h]=a[0],l[h+1]=a[1];else{for(var f=Array(a.length-2),d=0;d<f.length;d+=2){var m=(1-s)*a[d]+s*a[d+2],b=(1-s)*a[d+1]+s*a[d+3];f[d]=m,f[d+1]=b}return this._setCurvePoint(f,s,l,h)}},"_setCurvePoint")},{key:"endBatch",value:i(function(){var a=this.gl,s=this.vao,l=this.vertexCount,h=this.instanceCount;if(h!==0){var f=this.renderTarget.picking?this.pickingProgram:this.program;a.useProgram(f),a.bindVertexArray(s);var d=v2(this.buffers),m;try{for(d.s();!(m=d.n()).done;){var b=m.value;b.bufferSubData(h)}}catch(S){d.e(S)}finally{d.f()}for(var v=this.batchManager.getAtlases(),T=0;T<v.length;T++)v[T].bufferIfNeeded(a);for(var C=0;C<v.length;C++)a.activeTexture(a.TEXTURE0+C),a.bindTexture(a.TEXTURE_2D,v[C].texture),a.uniform1i(f.uTextures[C],C);a.uniform1f(f.uZoom,$Zn(this.r)),a.uniformMatrix3fv(f.uPanZoomMatrix,!1,this.panZoomMatrix),a.uniform1i(f.uAtlasSize,this.batchManager.getAtlasSize());var E=dP(this.bgColor,1);a.uniform4fv(f.uBGColor,E),a.drawArraysInstanced(a.TRIANGLES,0,l,h),a.bindVertexArray(null),a.bindTexture(a.TEXTURE_2D,null),this.debug&&this.batchDebugInfo.push({count:h,atlasCount:v.length}),this.startBatch()}},"endBatch")},{key:"getDebugInfo",value:i(function(){var a=this.atlasManager.getDebugInfo(),s=a.reduce(function(f,d){return f+d.atlasCount},0),l=this.batchDebugInfo,h=l.reduce(function(f,d){return f+d.count},0);return{atlasInfo:a,totalAtlases:s,wrappedCount:this.wrappedCount,simpleCount:this.simpleCount,batchCount:l.length,batchInfo:l,totalInstances:h}},"getDebugInfo")}])})(),K7r={};K7r.initWebgl=function(r,t){var a=this,s=a.data.contexts[a.WEBGL];r.bgColor=oei(a),r.webglTexSize=Math.min(r.webglTexSize,s.getParameter(s.MAX_TEXTURE_SIZE)),r.webglTexRows=Math.min(r.webglTexRows,54),r.webglTexRowsNodes=Math.min(r.webglTexRowsNodes,54),r.webglBatchSize=Math.min(r.webglBatchSize,16384),r.webglTexPerBatch=Math.min(r.webglTexPerBatch,s.getParameter(s.MAX_TEXTURE_IMAGE_UNITS)),a.webglDebug=r.webglDebug,a.webglDebugShowAtlases=r.webglDebugShowAtlases,a.pickingFrameBuffer=YZn(s),a.pickingFrameBuffer.needsDraw=!0,a.drawing=new sei(a,s,r);var l=i(function(T){return function(C){return a.getTextAngle(C,T)}},"getLabelRotation"),h=i(function(T){return function(C){var E=C.pstyle(T);return E&&E.value}},"isLabelVisible"),f=i(function(T){return function(C){return C.pstyle("".concat(T,"-opacity")).value>0}},"isLayerVisible"),d=i(function(T){var C=T.pstyle("text-events").strValue==="yes";return C?oke.USE_BB:oke.IGNORE},"getTexPickingMode"),m=i(function(T){var C=T.position(),E=C.x,S=C.y,R=T.outerWidth(),L=T.outerHeight();return{w:R,h:L,x1:E-R/2,y1:S-L/2}},"getBBForSimpleShape");a.drawing.addAtlasCollection("node",{texRows:r.webglTexRowsNodes}),a.drawing.addAtlasCollection("label",{texRows:r.webglTexRows}),a.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),a.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:m,isSimple:jZn,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),a.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:m,isVisible:f("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),a.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:m,isVisible:f("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),a.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:d,getKey:dnt(t.getLabelKey,null),getBoundingBox:pnt(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:l(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:h("label")}),a.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:d,getKey:dnt(t.getSourceLabelKey,"source"),getBoundingBox:pnt(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:l("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:h("source-label")}),a.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:d,getKey:dnt(t.getTargetLabelKey,"target"),getBoundingBox:pnt(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:l("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:h("target-label")});var b=fie(function(){console.log("garbage collect flag set"),a.data.gc=!0},1e4);a.onUpdateEleCalcs(function(v,T){var C=!1;T&&T.length>0&&(C|=a.drawing.invalidate(T)),C&&b()}),lei(a)};i(oei,"getBGColor");i(J7r,"getLabelLines");dnt=i(function(t,a){return function(s){var l=t(s),h=J7r(s,a);return h.length>1?h.map(function(f,d){return"".concat(l,"_").concat(d)}):l}},"getStyleKeysForLabel"),pnt=i(function(t,a){return function(s,l){var h=t(s);if(typeof l=="string"){var f=l.indexOf("_");if(f>0){var d=Number(l.substring(f+1)),m=J7r(s,a),b=h.h/m.length,v=b*d,T=h.y1+v;return{x1:h.x1,w:h.w,y1:T,h:b,yOffset:v}}}return h}},"getBoundingBoxForLabel");i(lei,"overrideCanvasRendererFunctions");i(cei,"clearWebgl");i(uei,"clearCanvas");i(hei,"createPanZoomMatrix");i(Q7r,"setContextTransform");i(fei,"drawSelectionRectangle");i(dei,"drawAxes");i(pei,"drawAtlases");i(gei,"getPickingIndexes");i(mei,"findNearestElementsWebgl");i(gnt,"drawEle");i(Z7r,"renderWebgl");lD={};lD.drawPolygonPath=function(r,t,a,s,l,h){var f=s/2,d=l/2;r.beginPath&&r.beginPath(),r.moveTo(t+f*h[0],a+d*h[1]);for(var m=1;m<h.length/2;m++)r.lineTo(t+f*h[m*2],a+d*h[m*2+1]);r.closePath()};lD.drawRoundPolygonPath=function(r,t,a,s,l,h,f){f.forEach(function(d){return M7r(r,d)}),r.closePath()};lD.drawRoundRectanglePath=function(r,t,a,s,l,h){var f=s/2,d=l/2,m=h==="auto"?eD(s,l):Math.min(h,d,f);r.beginPath&&r.beginPath(),r.moveTo(t,a-d),r.arcTo(t+f,a-d,t+f,a,m),r.arcTo(t+f,a+d,t,a+d,m),r.arcTo(t-f,a+d,t-f,a,m),r.arcTo(t-f,a-d,t,a-d,m),r.lineTo(t,a-d),r.closePath()};lD.drawBottomRoundRectanglePath=function(r,t,a,s,l,h){var f=s/2,d=l/2,m=h==="auto"?eD(s,l):h;r.beginPath&&r.beginPath(),r.moveTo(t,a-d),r.lineTo(t+f,a-d),r.lineTo(t+f,a),r.arcTo(t+f,a+d,t,a+d,m),r.arcTo(t-f,a+d,t-f,a,m),r.lineTo(t-f,a-d),r.lineTo(t,a-d),r.closePath()};lD.drawCutRectanglePath=function(r,t,a,s,l,h,f){var d=s/2,m=l/2,b=f==="auto"?Hnt():f;r.beginPath&&r.beginPath(),r.moveTo(t-d+b,a-m),r.lineTo(t+d-b,a-m),r.lineTo(t+d,a-m+b),r.lineTo(t+d,a+m-b),r.lineTo(t+d-b,a+m),r.lineTo(t-d+b,a+m),r.lineTo(t-d,a+m-b),r.lineTo(t-d,a-m+b),r.closePath()};lD.drawBarrelPath=function(r,t,a,s,l){var h=s/2,f=l/2,d=t-h,m=t+h,b=a-f,v=a+f,T=bnt(s,l),C=T.widthOffset,E=T.heightOffset,S=T.ctrlPtOffsetPct*C;r.beginPath&&r.beginPath(),r.moveTo(d,b+E),r.lineTo(d,v-E),r.quadraticCurveTo(d+S,v,d+C,v),r.lineTo(m-C,v),r.quadraticCurveTo(m-S,v,m,v-E),r.lineTo(m,b+E),r.quadraticCurveTo(m-S,b,m-C,b),r.lineTo(d+C,b),r.quadraticCurveTo(d+S,b,d,b+E),r.closePath()};d8r=Math.sin(0),p8r=Math.cos(0),Mnt={},Nnt={},eRr=Math.PI/40;for(pP=0*Math.PI;pP<2*Math.PI;pP+=eRr)Mnt[pP]=Math.sin(pP),Nnt[pP]=Math.cos(pP);lD.drawEllipsePath=function(r,t,a,s,l){if(r.beginPath&&r.beginPath(),r.ellipse)r.ellipse(t,a,s/2,l/2,0,0,2*Math.PI);else for(var h,f,d=s/2,m=l/2,b=0*Math.PI;b<2*Math.PI;b+=eRr)h=t-d*Mnt[b]*d8r+d*Nnt[b]*p8r,f=a+m*Nnt[b]*d8r+m*Mnt[b]*p8r,b===0?r.moveTo(h,f):r.lineTo(h,f);r.closePath()};bie={};bie.createBuffer=function(r,t){var a=document.createElement("canvas");return a.width=r,a.height=t,[a,a.getContext("2d")]};bie.bufferCanvasImage=function(r){var t=this.cy,a=t.mutableElements(),s=a.boundingBox(),l=this.findContainerClientCoords(),h=r.full?Math.ceil(s.w):l[2],f=r.full?Math.ceil(s.h):l[3],d=ua(r.maxWidth)||ua(r.maxHeight),m=this.getPixelRatio(),b=1;if(r.scale!==void 0)h*=r.scale,f*=r.scale,b=r.scale;else if(d){var v=1/0,T=1/0;ua(r.maxWidth)&&(v=b*r.maxWidth/h),ua(r.maxHeight)&&(T=b*r.maxHeight/f),b=Math.min(v,T),h*=b,f*=b}d||(h*=m,f*=m,b*=m);var C=document.createElement("canvas");C.width=h,C.height=f,C.style.width=h+"px",C.style.height=f+"px";var E=C.getContext("2d");if(h>0&&f>0){E.clearRect(0,0,h,f),E.globalCompositeOperation="source-over";var S=this.getCachedZSortedEles();if(r.full)E.translate(-s.x1*b,-s.y1*b),E.scale(b,b),this.drawElements(E,S),E.scale(1/b,1/b),E.translate(s.x1*b,s.y1*b);else{var R=t.pan(),L={x:R.x*b,y:R.y*b};b*=t.zoom(),E.translate(L.x,L.y),E.scale(b,b),this.drawElements(E,S),E.scale(1/b,1/b),E.translate(-L.x,-L.y)}r.bg&&(E.globalCompositeOperation="destination-over",E.fillStyle=r.bg,E.rect(0,0,h,f),E.fill())}return C};i(yei,"b64ToBlob");i(g8r,"b64UriToB64");i(tRr,"output");bie.png=function(r){return tRr(r,this.bufferCanvasImage(r),"image/png")};bie.jpg=function(r){return tRr(r,this.bufferCanvasImage(r),"image/jpeg")};rRr={};rRr.nodeShapeImpl=function(r,t,a,s,l,h,f,d){switch(r){case"ellipse":return this.drawEllipsePath(t,a,s,l,h);case"polygon":return this.drawPolygonPath(t,a,s,l,h,f);case"round-polygon":return this.drawRoundPolygonPath(t,a,s,l,h,f,d);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,a,s,l,h,d);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,a,s,l,h,f,d);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,a,s,l,h,d);case"barrel":return this.drawBarrelPath(t,a,s,l,h)}};bei=nRr,Fl=nRr.prototype;Fl.CANVAS_LAYERS=3;Fl.SELECT_BOX=0;Fl.DRAG=1;Fl.NODE=2;Fl.WEBGL=3;Fl.CANVAS_TYPES=["2d","2d","2d","webgl2"];Fl.BUFFER_COUNT=3;Fl.TEXTURE_BUFFER=0;Fl.MOTIONBLUR_BUFFER_NODE=1;Fl.MOTIONBLUR_BUFFER_DRAG=2;i(nRr,"CanvasRenderer");Fl.redrawHint=function(r,t){var a=this;switch(r){case"eles":a.data.canvasNeedsRedraw[Fl.NODE]=t;break;case"drag":a.data.canvasNeedsRedraw[Fl.DRAG]=t;break;case"select":a.data.canvasNeedsRedraw[Fl.SELECT_BOX]=t;break;case"gc":a.data.gc=!0;break}};vei=typeof Path2D<"u";Fl.path2dEnabled=function(r){if(r===void 0)return this.pathsEnabled;this.pathsEnabled=!!r};Fl.usePaths=function(){return vei&&this.pathsEnabled};Fl.setImgSmoothing=function(r,t){r.imageSmoothingEnabled!=null?r.imageSmoothingEnabled=t:(r.webkitImageSmoothingEnabled=t,r.mozImageSmoothingEnabled=t,r.msImageSmoothingEnabled=t)};Fl.getImgSmoothing=function(r){return r.imageSmoothingEnabled!=null?r.imageSmoothingEnabled:r.webkitImageSmoothingEnabled||r.mozImageSmoothingEnabled||r.msImageSmoothingEnabled};Fl.makeOffscreenCanvas=function(r,t){var a;if((typeof OffscreenCanvas>"u"?"undefined":D0(OffscreenCanvas))!=="undefined")a=new OffscreenCanvas(r,t);else{var s=this.cy.window(),l=s.document;a=l.createElement("canvas"),a.width=r,a.height=t}return a};[W7r,OS,t8,ait,SP,oD,Pb,K7r,lD,bie,rRr].forEach(function(r){ao(Fl,r)});wei=[{name:"null",impl:_7r},{name:"base",impl:j7r},{name:"canvas",impl:bei}],xei=[{type:"layout",extensions:VQn},{type:"renderer",extensions:wei}],iRr={},aRr={};i(sRr,"setExtension");i(oRr,"getExtension");i(Tei,"setModule");i(kei,"getModule");Ont=i(function(){if(arguments.length===2)return oRr.apply(null,arguments);if(arguments.length===3)return sRr.apply(null,arguments);if(arguments.length===4)return kei.apply(null,arguments);if(arguments.length===5)return Tei.apply(null,arguments);td("Invalid extension access syntax")},"extension");aie.prototype.extension=Ont;xei.forEach(function(r){r.extensions.forEach(function(t){sRr(r.type,t.name,t.impl)})});lke=i(function(){if(!(this instanceof lke))return new lke;this.length=0},"Stylesheet"),CP=lke.prototype;CP.instanceString=function(){return"stylesheet"};CP.selector=function(r){var t=this.length++;return this[t]={selector:r,properties:[]},this};CP.css=function(r,t){var a=this.length-1;if(Ps(r))this[a].properties.push({name:r,value:t});else if(Wc(r))for(var s=r,l=Object.keys(s),h=0;h<l.length;h++){var f=l[h],d=s[f];if(d!=null){var m=Cm.properties[f]||Cm.properties[cke(f)];if(m!=null){var b=m.name,v=d;this[a].properties.push({name:b,value:v})}}}return this};CP.style=CP.css;CP.generateStyle=function(r){var t=new Cm(r);return this.appendToStyle(t)};CP.appendToStyle=function(r){for(var t=0;t<this.length;t++){var a=this[t],s=a.selector,l=a.properties;r.selector(s);for(var h=0;h<l.length;h++){var f=l[h];r.css(f.name,f.value)}}return r};Cei="3.34.0",ik=i(function(t){if(t===void 0&&(t={}),Wc(t))return new aie(t);if(Ps(t))return Ont.apply(Ont,arguments)},"cytoscape");ik.use=function(r){var t=Array.prototype.slice.call(arguments,1);return t.unshift(ik),r.apply(null,t),this};ik.warnings=function(r){return I8r(r)};ik.version=Cei;ik.stylesheet=ik.Stylesheet=lke});var cit=Zv((vie,lit)=>{"use strict";i((function(t,a){typeof vie=="object"&&typeof lit=="object"?lit.exports=a():typeof define=="function"&&define.amd?define([],a):typeof vie=="object"?vie.layoutBase=a():t.layoutBase=a()}),"webpackUniversalModuleDefinition")(vie,function(){return(function(r){var t={};function a(s){if(t[s])return t[s].exports;var l=t[s]={i:s,l:!1,exports:{}};return r[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return i(a,"__webpack_require__"),a.m=r,a.c=t,a.i=function(s){return s},a.d=function(s,l,h){a.o(s,l)||Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:h})},a.n=function(s){var l=s&&s.__esModule?i(function(){return s.default},"getDefault"):i(function(){return s},"getModuleExports");return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s=26)})([(function(r,t,a){"use strict";function s(){}i(s,"LayoutConstants"),s.QUALITY=1,s.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,s.DEFAULT_INCREMENTAL=!1,s.DEFAULT_ANIMATION_ON_LAYOUT=!0,s.DEFAULT_ANIMATION_DURING_LAYOUT=!1,s.DEFAULT_ANIMATION_PERIOD=50,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,s.DEFAULT_GRAPH_MARGIN=15,s.NODE_DIMENSIONS_INCLUDE_LABELS=!1,s.SIMPLE_NODE_SIZE=40,s.SIMPLE_NODE_HALF_SIZE=s.SIMPLE_NODE_SIZE/2,s.EMPTY_COMPOUND_NODE_SIZE=40,s.MIN_EDGE_LENGTH=1,s.WORLD_BOUNDARY=1e6,s.INITIAL_WORLD_BOUNDARY=s.WORLD_BOUNDARY/1e3,s.WORLD_CENTER_X=1200,s.WORLD_CENTER_Y=900,r.exports=s}),(function(r,t,a){"use strict";var s=a(2),l=a(8),h=a(9);function f(m,b,v){s.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=m,this.target=b}i(f,"LEdge"),f.prototype=Object.create(s.prototype);for(var d in s)f[d]=s[d];f.prototype.getSource=function(){return this.source},f.prototype.getTarget=function(){return this.target},f.prototype.isInterGraph=function(){return this.isInterGraph},f.prototype.getLength=function(){return this.length},f.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},f.prototype.getBendpoints=function(){return this.bendpoints},f.prototype.getLca=function(){return this.lca},f.prototype.getSourceInLca=function(){return this.sourceInLca},f.prototype.getTargetInLca=function(){return this.targetInLca},f.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"},f.prototype.getOtherEndInGraph=function(m,b){for(var v=this.getOtherEnd(m),T=b.getGraphManager().getRoot();;){if(v.getOwner()==b)return v;if(v.getOwner()==T)break;v=v.getOwner().getParent()}return null},f.prototype.updateLength=function(){var m=new Array(4);this.isOverlapingSourceAndTarget=l.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=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},f.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=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=f}),(function(r,t,a){"use strict";function s(l){this.vGraphObject=l}i(s,"LGraphObject"),r.exports=s}),(function(r,t,a){"use strict";var s=a(2),l=a(10),h=a(13),f=a(0),d=a(16),m=a(4);function b(T,C,E,S){E==null&&S==null&&(S=C),s.call(this,S),T.graphManager!=null&&(T=T.graphManager),this.estimatedSize=l.MIN_VALUE,this.inclusionTreeDepth=l.MAX_VALUE,this.vGraphObject=S,this.edges=[],this.graphManager=T,E!=null&&C!=null?this.rect=new h(C.x,C.y,E.width,E.height):this.rect=new h}i(b,"LNode"),b.prototype=Object.create(s.prototype);for(var v in s)b[v]=s[v];b.prototype.getEdges=function(){return this.edges},b.prototype.getChild=function(){return this.child},b.prototype.getOwner=function(){return this.owner},b.prototype.getWidth=function(){return this.rect.width},b.prototype.setWidth=function(T){this.rect.width=T},b.prototype.getHeight=function(){return this.rect.height},b.prototype.setHeight=function(T){this.rect.height=T},b.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},b.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},b.prototype.getCenter=function(){return new m(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},b.prototype.getLocation=function(){return new m(this.rect.x,this.rect.y)},b.prototype.getRect=function(){return this.rect},b.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},b.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},b.prototype.setRect=function(T,C){this.rect.x=T.x,this.rect.y=T.y,this.rect.width=C.width,this.rect.height=C.height},b.prototype.setCenter=function(T,C){this.rect.x=T-this.rect.width/2,this.rect.y=C-this.rect.height/2},b.prototype.setLocation=function(T,C){this.rect.x=T,this.rect.y=C},b.prototype.moveBy=function(T,C){this.rect.x+=T,this.rect.y+=C},b.prototype.getEdgeListToNode=function(T){var C=[],E,S=this;return S.edges.forEach(function(R){if(R.target==T){if(R.source!=S)throw"Incorrect edge source!";C.push(R)}}),C},b.prototype.getEdgesBetween=function(T){var C=[],E,S=this;return S.edges.forEach(function(R){if(!(R.source==S||R.target==S))throw"Incorrect edge source and/or target";(R.target==T||R.source==T)&&C.push(R)}),C},b.prototype.getNeighborsList=function(){var T=new Set,C=this;return C.edges.forEach(function(E){if(E.source==C)T.add(E.target);else{if(E.target!=C)throw"Incorrect incidency!";T.add(E.source)}}),T},b.prototype.withChildren=function(){var T=new Set,C,E;if(T.add(this),this.child!=null)for(var S=this.child.getNodes(),R=0;R<S.length;R++)C=S[R],E=C.withChildren(),E.forEach(function(L){T.add(L)});return T},b.prototype.getNoOfChildren=function(){var T=0,C;if(this.child==null)T=1;else for(var E=this.child.getNodes(),S=0;S<E.length;S++)C=E[S],T+=C.getNoOfChildren();return T==0&&(T=1),T},b.prototype.getEstimatedSize=function(){if(this.estimatedSize==l.MIN_VALUE)throw"assert failed";return this.estimatedSize},b.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)},b.prototype.scatter=function(){var T,C,E=-f.INITIAL_WORLD_BOUNDARY,S=f.INITIAL_WORLD_BOUNDARY;T=f.WORLD_CENTER_X+d.nextDouble()*(S-E)+E;var R=-f.INITIAL_WORLD_BOUNDARY,L=f.INITIAL_WORLD_BOUNDARY;C=f.WORLD_CENTER_Y+d.nextDouble()*(L-R)+R,this.rect.x=T,this.rect.y=C},b.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var T=this.getChild();if(T.updateBounds(!0),this.rect.x=T.getLeft(),this.rect.y=T.getTop(),this.setWidth(T.getRight()-T.getLeft()),this.setHeight(T.getBottom()-T.getTop()),f.NODE_DIMENSIONS_INCLUDE_LABELS){var C=T.getRight()-T.getLeft(),E=T.getBottom()-T.getTop();this.labelWidth>C&&(this.rect.x-=(this.labelWidth-C)/2,this.setWidth(this.labelWidth)),this.labelHeight>E&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-E)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-E),this.setHeight(this.labelHeight))}}},b.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==l.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},b.prototype.transform=function(T){var C=this.rect.x;C>f.WORLD_BOUNDARY?C=f.WORLD_BOUNDARY:C<-f.WORLD_BOUNDARY&&(C=-f.WORLD_BOUNDARY);var E=this.rect.y;E>f.WORLD_BOUNDARY?E=f.WORLD_BOUNDARY:E<-f.WORLD_BOUNDARY&&(E=-f.WORLD_BOUNDARY);var S=new m(C,E),R=T.inverseTransformPoint(S);this.setLocation(R.x,R.y)},b.prototype.getLeft=function(){return this.rect.x},b.prototype.getRight=function(){return this.rect.x+this.rect.width},b.prototype.getTop=function(){return this.rect.y},b.prototype.getBottom=function(){return this.rect.y+this.rect.height},b.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=b}),(function(r,t,a){"use strict";function s(l,h){l==null&&h==null?(this.x=0,this.y=0):(this.x=l,this.y=h)}i(s,"PointD"),s.prototype.getX=function(){return this.x},s.prototype.getY=function(){return this.y},s.prototype.setX=function(l){this.x=l},s.prototype.setY=function(l){this.y=l},s.prototype.getDifference=function(l){return new DimensionD(this.x-l.x,this.y-l.y)},s.prototype.getCopy=function(){return new s(this.x,this.y)},s.prototype.translate=function(l){return this.x+=l.width,this.y+=l.height,this},r.exports=s}),(function(r,t,a){"use strict";var s=a(2),l=a(10),h=a(0),f=a(6),d=a(3),m=a(1),b=a(13),v=a(12),T=a(11);function C(S,R,L){s.call(this,L),this.estimatedSize=l.MIN_VALUE,this.margin=h.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=S,R!=null&&R instanceof f?this.graphManager=R:R!=null&&R instanceof Layout&&(this.graphManager=R.graphManager)}i(C,"LGraph"),C.prototype=Object.create(s.prototype);for(var E in s)C[E]=s[E];C.prototype.getNodes=function(){return this.nodes},C.prototype.getEdges=function(){return this.edges},C.prototype.getGraphManager=function(){return this.graphManager},C.prototype.getParent=function(){return this.parent},C.prototype.getLeft=function(){return this.left},C.prototype.getRight=function(){return this.right},C.prototype.getTop=function(){return this.top},C.prototype.getBottom=function(){return this.bottom},C.prototype.isConnected=function(){return this.isConnected},C.prototype.add=function(S,R,L){if(R==null&&L==null){var _=S;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(_)>-1)throw"Node already in graph!";return _.owner=this,this.getNodes().push(_),_}else{var I=S;if(!(this.getNodes().indexOf(R)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(!(R.owner==L.owner&&R.owner==this))throw"Both owners must be this graph!";return R.owner!=L.owner?null:(I.source=R,I.target=L,I.isInterGraph=!1,this.getEdges().push(I),R.edges.push(I),L!=R&&L.edges.push(I),I)}},C.prototype.remove=function(S){var R=S;if(S instanceof d){if(R==null)throw"Node is null!";if(!(R.owner!=null&&R.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=R.edges.slice(),_,I=L.length,N=0;N<I;N++)_=L[N],_.isInterGraph?this.graphManager.remove(_):_.source.owner.remove(_);var B=this.nodes.indexOf(R);if(B==-1)throw"Node not in owner node list!";this.nodes.splice(B,1)}else if(S instanceof m){var _=S;if(_==null)throw"Edge is null!";if(!(_.source!=null&&_.target!=null))throw"Source and/or target is null!";if(!(_.source.owner!=null&&_.target.owner!=null&&_.source.owner==this&&_.target.owner==this))throw"Source and/or target owner is invalid!";var O=_.source.edges.indexOf(_),P=_.target.edges.indexOf(_);if(!(O>-1&&P>-1))throw"Source and/or target doesn't know this edge!";_.source.edges.splice(O,1),_.target!=_.source&&_.target.edges.splice(P,1);var B=_.source.owner.getEdges().indexOf(_);if(B==-1)throw"Not in owner's edge list!";_.source.owner.getEdges().splice(B,1)}},C.prototype.updateLeftTop=function(){for(var S=l.MAX_VALUE,R=l.MAX_VALUE,L,_,I,N=this.getNodes(),B=N.length,O=0;O<B;O++){var P=N[O];L=P.getTop(),_=P.getLeft(),S>L&&(S=L),R>_&&(R=_)}return S==l.MAX_VALUE?null:(N[0].getParent().paddingLeft!=null?I=N[0].getParent().paddingLeft:I=this.margin,this.left=R-I,this.top=S-I,new v(this.left,this.top))},C.prototype.updateBounds=function(S){for(var R=l.MAX_VALUE,L=-l.MAX_VALUE,_=l.MAX_VALUE,I=-l.MAX_VALUE,N,B,O,P,$,V=this.nodes,Y=V.length,Q=0;Q<Y;Q++){var q=V[Q];S&&q.child!=null&&q.updateBounds(),N=q.getLeft(),B=q.getRight(),O=q.getTop(),P=q.getBottom(),R>N&&(R=N),L<B&&(L=B),_>O&&(_=O),I<P&&(I=P)}var W=new b(R,_,L-R,I-_);R==l.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),V[0].getParent().paddingLeft!=null?$=V[0].getParent().paddingLeft:$=this.margin,this.left=W.x-$,this.right=W.x+W.width+$,this.top=W.y-$,this.bottom=W.y+W.height+$},C.calculateBounds=function(S){for(var R=l.MAX_VALUE,L=-l.MAX_VALUE,_=l.MAX_VALUE,I=-l.MAX_VALUE,N,B,O,P,$=S.length,V=0;V<$;V++){var Y=S[V];N=Y.getLeft(),B=Y.getRight(),O=Y.getTop(),P=Y.getBottom(),R>N&&(R=N),L<B&&(L=B),_>O&&(_=O),I<P&&(I=P)}var Q=new b(R,_,L-R,I-_);return Q},C.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},C.prototype.getEstimatedSize=function(){if(this.estimatedSize==l.MIN_VALUE)throw"assert failed";return this.estimatedSize},C.prototype.calcEstimatedSize=function(){for(var S=0,R=this.nodes,L=R.length,_=0;_<L;_++){var I=R[_];S+=I.calcEstimatedSize()}return S==0?this.estimatedSize=h.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=S/Math.sqrt(this.nodes.length),this.estimatedSize},C.prototype.updateConnected=function(){var S=this;if(this.nodes.length==0){this.isConnected=!0;return}var R=new T,L=new Set,_=this.nodes[0],I,N,B=_.withChildren();for(B.forEach(function(Q){R.push(Q),L.add(Q)});R.length!==0;){_=R.shift(),I=_.getEdges();for(var O=I.length,P=0;P<O;P++){var $=I[P];if(N=$.getOtherEndInGraph(_,this),N!=null&&!L.has(N)){var V=N.withChildren();V.forEach(function(Q){R.push(Q),L.add(Q)})}}}if(this.isConnected=!1,L.size>=this.nodes.length){var Y=0;L.forEach(function(Q){Q.owner==S&&Y++}),Y==this.nodes.length&&(this.isConnected=!0)}},r.exports=C}),(function(r,t,a){"use strict";var s,l=a(1);function h(f){s=a(5),this.layout=f,this.graphs=[],this.edges=[]}i(h,"LGraphManager"),h.prototype.addRoot=function(){var f=this.layout.newGraph(),d=this.layout.newNode(null),m=this.add(f,d);return this.setRootGraph(m),this.rootGraph},h.prototype.add=function(f,d,m,b,v){if(m==null&&b==null&&v==null){if(f==null)throw"Graph is null!";if(d==null)throw"Parent node is null!";if(this.graphs.indexOf(f)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(f),f.parent!=null)throw"Already has a parent!";if(d.child!=null)throw"Already has a child!";return f.parent=d,d.child=f,f}else{v=m,b=d,m=f;var T=b.getOwner(),C=v.getOwner();if(!(T!=null&&T.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(C!=null&&C.getGraphManager()==this))throw"Target not in this graph mgr!";if(T==C)return m.isInterGraph=!1,T.add(m,b,v);if(m.isInterGraph=!0,m.source=b,m.target=v,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}},h.prototype.remove=function(f){if(f instanceof s){var d=f;if(d.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(d==this.rootGraph||d.parent!=null&&d.parent.graphManager==this))throw"Invalid parent node!";var m=[];m=m.concat(d.getEdges());for(var b,v=m.length,T=0;T<v;T++)b=m[T],d.remove(b);var C=[];C=C.concat(d.getNodes());var E;v=C.length;for(var T=0;T<v;T++)E=C[T],d.remove(E);d==this.rootGraph&&this.setRootGraph(null);var S=this.graphs.indexOf(d);this.graphs.splice(S,1),d.parent=null}else if(f instanceof l){if(b=f,b==null)throw"Edge is null!";if(!b.isInterGraph)throw"Not an inter-graph edge!";if(!(b.source!=null&&b.target!=null))throw"Source and/or target is null!";if(!(b.source.edges.indexOf(b)!=-1&&b.target.edges.indexOf(b)!=-1))throw"Source and/or target doesn't know this edge!";var S=b.source.edges.indexOf(b);if(b.source.edges.splice(S,1),S=b.target.edges.indexOf(b),b.target.edges.splice(S,1),!(b.source.owner!=null&&b.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(b.source.owner.getGraphManager().edges.indexOf(b)==-1)throw"Not in owner graph manager's edge list!";var S=b.source.owner.getGraphManager().edges.indexOf(b);b.source.owner.getGraphManager().edges.splice(S,1)}},h.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},h.prototype.getGraphs=function(){return this.graphs},h.prototype.getAllNodes=function(){if(this.allNodes==null){for(var f=[],d=this.getGraphs(),m=d.length,b=0;b<m;b++)f=f.concat(d[b].getNodes());this.allNodes=f}return this.allNodes},h.prototype.resetAllNodes=function(){this.allNodes=null},h.prototype.resetAllEdges=function(){this.allEdges=null},h.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},h.prototype.getAllEdges=function(){if(this.allEdges==null){for(var f=[],d=this.getGraphs(),m=d.length,b=0;b<d.length;b++)f=f.concat(d[b].getEdges());f=f.concat(this.edges),this.allEdges=f}return this.allEdges},h.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},h.prototype.setAllNodesToApplyGravitation=function(f){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=f},h.prototype.getRoot=function(){return this.rootGraph},h.prototype.setRootGraph=function(f){if(f.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=f,f.parent==null&&(f.parent=this.layout.newNode("Root node"))},h.prototype.getLayout=function(){return this.layout},h.prototype.isOneAncestorOfOther=function(f,d){if(!(f!=null&&d!=null))throw"assert failed";if(f==d)return!0;var m=f.getOwner(),b;do{if(b=m.getParent(),b==null)break;if(b==d)return!0;if(m=b.getOwner(),m==null)break}while(!0);m=d.getOwner();do{if(b=m.getParent(),b==null)break;if(b==f)return!0;if(m=b.getOwner(),m==null)break}while(!0);return!1},h.prototype.calcLowestCommonAncestors=function(){for(var f,d,m,b,v,T=this.getAllEdges(),C=T.length,E=0;E<C;E++){if(f=T[E],d=f.source,m=f.target,f.lca=null,f.sourceInLca=d,f.targetInLca=m,d==m){f.lca=d.getOwner();continue}for(b=d.getOwner();f.lca==null;){for(f.targetInLca=m,v=m.getOwner();f.lca==null;){if(v==b){f.lca=v;break}if(v==this.rootGraph)break;if(f.lca!=null)throw"assert failed";f.targetInLca=v.getParent(),v=f.targetInLca.getOwner()}if(b==this.rootGraph)break;f.lca==null&&(f.sourceInLca=b.getParent(),b=f.sourceInLca.getOwner())}if(f.lca==null)throw"assert failed"}},h.prototype.calcLowestCommonAncestor=function(f,d){if(f==d)return f.getOwner();var m=f.getOwner();do{if(m==null)break;var b=d.getOwner();do{if(b==null)break;if(b==m)return b;b=b.getParent().getOwner()}while(!0);m=m.getParent().getOwner()}while(!0);return m},h.prototype.calcInclusionTreeDepths=function(f,d){f==null&&d==null&&(f=this.rootGraph,d=1);for(var m,b=f.getNodes(),v=b.length,T=0;T<v;T++)m=b[T],m.inclusionTreeDepth=d,m.child!=null&&this.calcInclusionTreeDepths(m.child,d+1)},h.prototype.includesInvalidEdge=function(){for(var f,d=this.edges.length,m=0;m<d;m++)if(f=this.edges[m],this.isOneAncestorOfOther(f.source,f.target))return!0;return!1},r.exports=h}),(function(r,t,a){"use strict";var s=a(0);function l(){}i(l,"FDLayoutConstants");for(var h in s)l[h]=s[h];l.MAX_ITERATIONS=2500,l.DEFAULT_EDGE_LENGTH=50,l.DEFAULT_SPRING_STRENGTH=.45,l.DEFAULT_REPULSION_STRENGTH=4500,l.DEFAULT_GRAVITY_STRENGTH=.4,l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,l.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,l.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,l.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,l.COOLING_ADAPTATION_FACTOR=.33,l.ADAPTATION_LOWER_NODE_LIMIT=1e3,l.ADAPTATION_UPPER_NODE_LIMIT=5e3,l.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,l.MAX_NODE_DISPLACEMENT=l.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10,l.CONVERGENCE_CHECK_PERIOD=100,l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,l.MIN_EDGE_LENGTH=1,l.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=l}),(function(r,t,a){"use strict";var s=a(12);function l(){}i(l,"IGeometry"),l.calcSeparationAmount=function(h,f,d,m){if(!h.intersects(f))throw"assert failed";var b=new Array(2);this.decideDirectionsForOverlappingNodes(h,f,b),d[0]=Math.min(h.getRight(),f.getRight())-Math.max(h.x,f.x),d[1]=Math.min(h.getBottom(),f.getBottom())-Math.max(h.y,f.y),h.getX()<=f.getX()&&h.getRight()>=f.getRight()?d[0]+=Math.min(f.getX()-h.getX(),h.getRight()-f.getRight()):f.getX()<=h.getX()&&f.getRight()>=h.getRight()&&(d[0]+=Math.min(h.getX()-f.getX(),f.getRight()-h.getRight())),h.getY()<=f.getY()&&h.getBottom()>=f.getBottom()?d[1]+=Math.min(f.getY()-h.getY(),h.getBottom()-f.getBottom()):f.getY()<=h.getY()&&f.getBottom()>=h.getBottom()&&(d[1]+=Math.min(h.getY()-f.getY(),f.getBottom()-h.getBottom()));var v=Math.abs((f.getCenterY()-h.getCenterY())/(f.getCenterX()-h.getCenterX()));f.getCenterY()===h.getCenterY()&&f.getCenterX()===h.getCenterX()&&(v=1);var T=v*d[0],C=d[1]/v;d[0]<C?C=d[0]:T=d[1],d[0]=-1*b[0]*(C/2+m),d[1]=-1*b[1]*(T/2+m)},l.decideDirectionsForOverlappingNodes=function(h,f,d){h.getCenterX()<f.getCenterX()?d[0]=-1:d[0]=1,h.getCenterY()<f.getCenterY()?d[1]=-1:d[1]=1},l.getIntersection2=function(h,f,d){var m=h.getCenterX(),b=h.getCenterY(),v=f.getCenterX(),T=f.getCenterY();if(h.intersects(f))return d[0]=m,d[1]=b,d[2]=v,d[3]=T,!0;var C=h.getX(),E=h.getY(),S=h.getRight(),R=h.getX(),L=h.getBottom(),_=h.getRight(),I=h.getWidthHalf(),N=h.getHeightHalf(),B=f.getX(),O=f.getY(),P=f.getRight(),$=f.getX(),V=f.getBottom(),Y=f.getRight(),Q=f.getWidthHalf(),q=f.getHeightHalf(),W=!1,H=!1;if(m===v){if(b>T)return d[0]=m,d[1]=E,d[2]=v,d[3]=V,!1;if(b<T)return d[0]=m,d[1]=L,d[2]=v,d[3]=O,!1}else if(b===T){if(m>v)return d[0]=C,d[1]=b,d[2]=P,d[3]=T,!1;if(m<v)return d[0]=S,d[1]=b,d[2]=B,d[3]=T,!1}else{var re=h.height/h.width,Z=f.height/f.width,X=(T-b)/(v-m),te=void 0,U=void 0,ne=void 0,se=void 0,he=void 0,le=void 0;if(-re===X?m>v?(d[0]=R,d[1]=L,W=!0):(d[0]=S,d[1]=E,W=!0):re===X&&(m>v?(d[0]=C,d[1]=E,W=!0):(d[0]=_,d[1]=L,W=!0)),-Z===X?v>m?(d[2]=$,d[3]=V,H=!0):(d[2]=P,d[3]=O,H=!0):Z===X&&(v>m?(d[2]=B,d[3]=O,H=!0):(d[2]=Y,d[3]=V,H=!0)),W&&H)return!1;if(m>v?b>T?(te=this.getCardinalDirection(re,X,4),U=this.getCardinalDirection(Z,X,2)):(te=this.getCardinalDirection(-re,X,3),U=this.getCardinalDirection(-Z,X,1)):b>T?(te=this.getCardinalDirection(-re,X,1),U=this.getCardinalDirection(-Z,X,3)):(te=this.getCardinalDirection(re,X,2),U=this.getCardinalDirection(Z,X,4)),!W)switch(te){case 1:se=E,ne=m+-N/X,d[0]=ne,d[1]=se;break;case 2:ne=_,se=b+I*X,d[0]=ne,d[1]=se;break;case 3:se=L,ne=m+N/X,d[0]=ne,d[1]=se;break;case 4:ne=R,se=b+-I*X,d[0]=ne,d[1]=se;break}if(!H)switch(U){case 1:le=O,he=v+-q/X,d[2]=he,d[3]=le;break;case 2:he=Y,le=T+Q*X,d[2]=he,d[3]=le;break;case 3:le=V,he=v+q/X,d[2]=he,d[3]=le;break;case 4:he=$,le=T+-Q*X,d[2]=he,d[3]=le;break}}return!1},l.getCardinalDirection=function(h,f,d){return h>f?d:1+d%4},l.getIntersection=function(h,f,d,m){if(m==null)return this.getIntersection2(h,f,d);var b=h.x,v=h.y,T=f.x,C=f.y,E=d.x,S=d.y,R=m.x,L=m.y,_=void 0,I=void 0,N=void 0,B=void 0,O=void 0,P=void 0,$=void 0,V=void 0,Y=void 0;return N=C-v,O=b-T,$=T*v-b*C,B=L-S,P=E-R,V=R*S-E*L,Y=N*P-B*O,Y===0?null:(_=(O*V-P*$)/Y,I=(B*$-N*V)/Y,new s(_,I))},l.angleOfVector=function(h,f,d,m){var b=void 0;return h!==d?(b=Math.atan((m-f)/(d-h)),d<h?b+=Math.PI:m<f&&(b+=this.TWO_PI)):m<f?b=this.ONE_AND_HALF_PI:b=this.HALF_PI,b},l.doIntersect=function(h,f,d,m){var b=h.x,v=h.y,T=f.x,C=f.y,E=d.x,S=d.y,R=m.x,L=m.y,_=(T-b)*(L-S)-(R-E)*(C-v);if(_===0)return!1;var I=((L-S)*(R-b)+(E-R)*(L-v))/_,N=((v-C)*(R-b)+(T-b)*(L-v))/_;return 0<I&&I<1&&0<N&&N<1},l.HALF_PI=.5*Math.PI,l.ONE_AND_HALF_PI=1.5*Math.PI,l.TWO_PI=2*Math.PI,l.THREE_PI=3*Math.PI,r.exports=l}),(function(r,t,a){"use strict";function s(){}i(s,"IMath"),s.sign=function(l){return l>0?1:l<0?-1:0},s.floor=function(l){return l<0?Math.ceil(l):Math.floor(l)},s.ceil=function(l){return l<0?Math.floor(l):Math.ceil(l)},r.exports=s}),(function(r,t,a){"use strict";function s(){}i(s,"Integer"),s.MAX_VALUE=2147483647,s.MIN_VALUE=-2147483648,r.exports=s}),(function(r,t,a){"use strict";var s=(function(){function b(v,T){for(var C=0;C<T.length;C++){var E=T[C];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}return i(b,"defineProperties"),function(v,T,C){return T&&b(v.prototype,T),C&&b(v,C),v}})();function l(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}i(l,"_classCallCheck");var h=i(function(v){return{value:v,next:null,prev:null}},"nodeFrom"),f=i(function(v,T,C,E){return v!==null?v.next=T:E.head=T,C!==null?C.prev=T:E.tail=T,T.prev=v,T.next=C,E.length++,T},"add"),d=i(function(v,T){var C=v.prev,E=v.next;return C!==null?C.next=E:T.head=E,E!==null?E.prev=C:T.tail=C,v.prev=v.next=null,T.length--,v},"_remove"),m=(function(){function b(v){var T=this;l(this,b),this.length=0,this.head=null,this.tail=null,v?.forEach(function(C){return T.push(C)})}return i(b,"LinkedList"),s(b,[{key:"size",value:i(function(){return this.length},"size")},{key:"insertBefore",value:i(function(T,C){return f(C.prev,h(T),C,this)},"insertBefore")},{key:"insertAfter",value:i(function(T,C){return f(C,h(T),C.next,this)},"insertAfter")},{key:"insertNodeBefore",value:i(function(T,C){return f(C.prev,T,C,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:i(function(T,C){return f(C,T,C.next,this)},"insertNodeAfter")},{key:"push",value:i(function(T){return f(this.tail,h(T),null,this)},"push")},{key:"unshift",value:i(function(T){return f(null,h(T),this.head,this)},"unshift")},{key:"remove",value:i(function(T){return d(T,this)},"remove")},{key:"pop",value:i(function(){return d(this.tail,this).value},"pop")},{key:"popNode",value:i(function(){return d(this.tail,this)},"popNode")},{key:"shift",value:i(function(){return d(this.head,this).value},"shift")},{key:"shiftNode",value:i(function(){return d(this.head,this)},"shiftNode")},{key:"get_object_at",value:i(function(T){if(T<=this.length()){for(var C=1,E=this.head;C<T;)E=E.next,C++;return E.value}},"get_object_at")},{key:"set_object_at",value:i(function(T,C){if(T<=this.length()){for(var E=1,S=this.head;E<T;)S=S.next,E++;S.value=C}},"set_object_at")}]),b})();r.exports=m}),(function(r,t,a){"use strict";function s(l,h,f){this.x=null,this.y=null,l==null&&h==null&&f==null?(this.x=0,this.y=0):typeof l=="number"&&typeof h=="number"&&f==null?(this.x=l,this.y=h):l.constructor.name=="Point"&&h==null&&f==null&&(f=l,this.x=f.x,this.y=f.y)}i(s,"Point"),s.prototype.getX=function(){return this.x},s.prototype.getY=function(){return this.y},s.prototype.getLocation=function(){return new s(this.x,this.y)},s.prototype.setLocation=function(l,h,f){l.constructor.name=="Point"&&h==null&&f==null?(f=l,this.setLocation(f.x,f.y)):typeof l=="number"&&typeof h=="number"&&f==null&&(parseInt(l)==l&&parseInt(h)==h?this.move(l,h):(this.x=Math.floor(l+.5),this.y=Math.floor(h+.5)))},s.prototype.move=function(l,h){this.x=l,this.y=h},s.prototype.translate=function(l,h){this.x+=l,this.y+=h},s.prototype.equals=function(l){if(l.constructor.name=="Point"){var h=l;return this.x==h.x&&this.y==h.y}return this==l},s.prototype.toString=function(){return new s().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=s}),(function(r,t,a){"use strict";function s(l,h,f,d){this.x=0,this.y=0,this.width=0,this.height=0,l!=null&&h!=null&&f!=null&&d!=null&&(this.x=l,this.y=h,this.width=f,this.height=d)}i(s,"RectangleD"),s.prototype.getX=function(){return this.x},s.prototype.setX=function(l){this.x=l},s.prototype.getY=function(){return this.y},s.prototype.setY=function(l){this.y=l},s.prototype.getWidth=function(){return this.width},s.prototype.setWidth=function(l){this.width=l},s.prototype.getHeight=function(){return this.height},s.prototype.setHeight=function(l){this.height=l},s.prototype.getRight=function(){return this.x+this.width},s.prototype.getBottom=function(){return this.y+this.height},s.prototype.intersects=function(l){return!(this.getRight()<l.x||this.getBottom()<l.y||l.getRight()<this.x||l.getBottom()<this.y)},s.prototype.getCenterX=function(){return this.x+this.width/2},s.prototype.getMinX=function(){return this.getX()},s.prototype.getMaxX=function(){return this.getX()+this.width},s.prototype.getCenterY=function(){return this.y+this.height/2},s.prototype.getMinY=function(){return this.getY()},s.prototype.getMaxY=function(){return this.getY()+this.height},s.prototype.getWidthHalf=function(){return this.width/2},s.prototype.getHeightHalf=function(){return this.height/2},r.exports=s}),(function(r,t,a){"use strict";var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function l(){}i(l,"UniqueIDGeneretor"),l.lastID=0,l.createID=function(h){return l.isPrimitive(h)?h:(h.uniqueID!=null||(h.uniqueID=l.getString(),l.lastID++),h.uniqueID)},l.getString=function(h){return h==null&&(h=l.lastID),"Object#"+h},l.isPrimitive=function(h){var f=typeof h>"u"?"undefined":s(h);return h==null||f!="object"&&f!="function"},r.exports=l}),(function(r,t,a){"use strict";function s(E){if(Array.isArray(E)){for(var S=0,R=Array(E.length);S<E.length;S++)R[S]=E[S];return R}else return Array.from(E)}i(s,"_toConsumableArray");var l=a(0),h=a(6),f=a(3),d=a(1),m=a(5),b=a(4),v=a(17),T=a(27);function C(E){T.call(this),this.layoutQuality=l.QUALITY,this.createBendsAsNeeded=l.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=l.DEFAULT_INCREMENTAL,this.animationOnLayout=l.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=l.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=l.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=l.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new h(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,E!=null&&(this.isRemoteUse=E)}i(C,"Layout"),C.RANDOM_SEED=1,C.prototype=Object.create(T.prototype),C.prototype.getGraphManager=function(){return this.graphManager},C.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},C.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},C.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},C.prototype.newGraphManager=function(){var E=new h(this);return this.graphManager=E,E},C.prototype.newGraph=function(E){return new m(null,this.graphManager,E)},C.prototype.newNode=function(E){return new f(this.graphManager,E)},C.prototype.newEdge=function(E){return new d(null,null,E)},C.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},C.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var E;return this.checkLayoutSuccess()?E=!1:E=this.layout(),l.ANIMATE==="during"?!1:(E&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,E)},C.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},C.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var E,S=this.graphManager.getAllEdges(),R=0;R<S.length;R++)E=S[R];for(var L,_=this.graphManager.getRoot().getNodes(),R=0;R<_.length;R++)L=_[R];this.update(this.graphManager.getRoot())}},C.prototype.update=function(E){if(E==null)this.update2();else if(E instanceof f){var S=E;if(S.getChild()!=null)for(var R=S.getChild().getNodes(),L=0;L<R.length;L++)update(R[L]);if(S.vGraphObject!=null){var _=S.vGraphObject;_.update(S)}}else if(E instanceof d){var I=E;if(I.vGraphObject!=null){var N=I.vGraphObject;N.update(I)}}else if(E instanceof m){var B=E;if(B.vGraphObject!=null){var O=B.vGraphObject;O.update(B)}}},C.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=l.QUALITY,this.animationDuringLayout=l.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=l.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=l.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=l.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=l.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=l.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},C.prototype.transform=function(E){if(E==null)this.transform(new b(0,0));else{var S=new v,R=this.graphManager.getRoot().updateLeftTop();if(R!=null){S.setWorldOrgX(E.x),S.setWorldOrgY(E.y),S.setDeviceOrgX(R.x),S.setDeviceOrgY(R.y);for(var L=this.getAllNodes(),_,I=0;I<L.length;I++)_=L[I],_.transform(S)}}},C.prototype.positionNodesRandomly=function(E){if(E==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var S,R,L=E.getNodes(),_=0;_<L.length;_++)S=L[_],R=S.getChild(),R==null||R.getNodes().length==0?S.scatter():(this.positionNodesRandomly(R),S.updateBounds())},C.prototype.getFlatForest=function(){for(var E=[],S=!0,R=this.graphManager.getRoot().getNodes(),L=!0,_=0;_<R.length;_++)R[_].getChild()!=null&&(L=!1);if(!L)return E;var I=new Set,N=[],B=new Map,O=[];for(O=O.concat(R);O.length>0&&S;){for(N.push(O[0]);N.length>0&&S;){var P=N[0];N.splice(0,1),I.add(P);for(var $=P.getEdges(),_=0;_<$.length;_++){var V=$[_].getOtherEnd(P);if(B.get(P)!=V)if(!I.has(V))N.push(V),B.set(V,P);else{S=!1;break}}}if(!S)E=[];else{var Y=[].concat(s(I));E.push(Y);for(var _=0;_<Y.length;_++){var Q=Y[_],q=O.indexOf(Q);q>-1&&O.splice(q,1)}I=new Set,B=new Map}}return E},C.prototype.createDummyNodesForBendpoints=function(E){for(var S=[],R=E.source,L=this.graphManager.calcLowestCommonAncestor(E.source,E.target),_=0;_<E.bendpoints.length;_++){var I=this.newNode(null);I.setRect(new Point(0,0),new Dimension(1,1)),L.add(I);var N=this.newEdge(null);this.graphManager.add(N,R,I),S.add(I),R=I}var N=this.newEdge(null);return this.graphManager.add(N,R,E.target),this.edgeToDummyNodes.set(E,S),E.isInterGraph()?this.graphManager.remove(E):L.remove(E),S},C.prototype.createBendpointsFromDummyNodes=function(){var E=[];E=E.concat(this.graphManager.getAllEdges()),E=[].concat(s(this.edgeToDummyNodes.keys())).concat(E);for(var S=0;S<E.length;S++){var R=E[S];if(R.bendpoints.length>0){for(var L=this.edgeToDummyNodes.get(R),_=0;_<L.length;_++){var I=L[_],N=new b(I.getCenterX(),I.getCenterY()),B=R.bendpoints.get(_);B.x=N.x,B.y=N.y,I.getOwner().remove(I)}this.graphManager.add(R,R.source,R.target)}}},C.transform=function(E,S,R,L){if(R!=null&&L!=null){var _=S;if(E<=50){var I=S/R;_-=(S-I)/50*(50-E)}else{var N=S*L;_+=(N-S)/50*(E-50)}return _}else{var B,O;return E<=50?(B=9*S/500,O=S/10):(B=9*S/50,O=-8*S),B*E+O}},C.findCenterOfTree=function(E){var S=[];S=S.concat(E);var R=[],L=new Map,_=!1,I=null;(S.length==1||S.length==2)&&(_=!0,I=S[0]);for(var N=0;N<S.length;N++){var B=S[N],O=B.getNeighborsList().size;L.set(B,B.getNeighborsList().size),O==1&&R.push(B)}var P=[];for(P=P.concat(R);!_;){var $=[];$=$.concat(P),P=[];for(var N=0;N<S.length;N++){var B=S[N],V=S.indexOf(B);V>=0&&S.splice(V,1);var Y=B.getNeighborsList();Y.forEach(function(W){if(R.indexOf(W)<0){var H=L.get(W),re=H-1;re==1&&P.push(W),L.set(W,re)}})}R=R.concat(P),(S.length==1||S.length==2)&&(_=!0,I=S[0])}return I},C.prototype.setGraphManager=function(E){this.graphManager=E},r.exports=C}),(function(r,t,a){"use strict";function s(){}i(s,"RandomSeed"),s.seed=1,s.x=0,s.nextDouble=function(){return s.x=Math.sin(s.seed++)*1e4,s.x-Math.floor(s.x)},r.exports=s}),(function(r,t,a){"use strict";var s=a(4);function l(h,f){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i(l,"Transform"),l.prototype.getWorldOrgX=function(){return this.lworldOrgX},l.prototype.setWorldOrgX=function(h){this.lworldOrgX=h},l.prototype.getWorldOrgY=function(){return this.lworldOrgY},l.prototype.setWorldOrgY=function(h){this.lworldOrgY=h},l.prototype.getWorldExtX=function(){return this.lworldExtX},l.prototype.setWorldExtX=function(h){this.lworldExtX=h},l.prototype.getWorldExtY=function(){return this.lworldExtY},l.prototype.setWorldExtY=function(h){this.lworldExtY=h},l.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},l.prototype.setDeviceOrgX=function(h){this.ldeviceOrgX=h},l.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},l.prototype.setDeviceOrgY=function(h){this.ldeviceOrgY=h},l.prototype.getDeviceExtX=function(){return this.ldeviceExtX},l.prototype.setDeviceExtX=function(h){this.ldeviceExtX=h},l.prototype.getDeviceExtY=function(){return this.ldeviceExtY},l.prototype.setDeviceExtY=function(h){this.ldeviceExtY=h},l.prototype.transformX=function(h){var f=0,d=this.lworldExtX;return d!=0&&(f=this.ldeviceOrgX+(h-this.lworldOrgX)*this.ldeviceExtX/d),f},l.prototype.transformY=function(h){var f=0,d=this.lworldExtY;return d!=0&&(f=this.ldeviceOrgY+(h-this.lworldOrgY)*this.ldeviceExtY/d),f},l.prototype.inverseTransformX=function(h){var f=0,d=this.ldeviceExtX;return d!=0&&(f=this.lworldOrgX+(h-this.ldeviceOrgX)*this.lworldExtX/d),f},l.prototype.inverseTransformY=function(h){var f=0,d=this.ldeviceExtY;return d!=0&&(f=this.lworldOrgY+(h-this.ldeviceOrgY)*this.lworldExtY/d),f},l.prototype.inverseTransformPoint=function(h){var f=new s(this.inverseTransformX(h.x),this.inverseTransformY(h.y));return f},r.exports=l}),(function(r,t,a){"use strict";function s(T){if(Array.isArray(T)){for(var C=0,E=Array(T.length);C<T.length;C++)E[C]=T[C];return E}else return Array.from(T)}i(s,"_toConsumableArray");var l=a(15),h=a(7),f=a(0),d=a(8),m=a(9);function b(){l.call(this),this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.springConstant=h.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=h.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*h.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=h.MAX_ITERATIONS}i(b,"FDLayout"),b.prototype=Object.create(l.prototype);for(var v in l)b[v]=l[v];b.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},b.prototype.calcIdealEdgeLengths=function(){for(var T,C,E,S,R,L,_=this.getGraphManager().getAllEdges(),I=0;I<_.length;I++)T=_[I],T.idealLength=this.idealEdgeLength,T.isInterGraph&&(E=T.getSource(),S=T.getTarget(),R=T.getSourceInLca().getEstimatedSize(),L=T.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(T.idealLength+=R+L-2*f.SIMPLE_NODE_SIZE),C=T.getLca().getInclusionTreeDepth(),T.idealLength+=h.DEFAULT_EDGE_LENGTH*h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(E.getInclusionTreeDepth()+S.getInclusionTreeDepth()-2*C))},b.prototype.initSpringEmbedder=function(){var T=this.getAllNodes().length;this.incremental?(T>h.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*h.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(T-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-h.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT_INCREMENTAL):(T>h.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(h.COOLING_ADAPTATION_FACTOR,1-(T-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*(1-h.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},b.prototype.calcSpringForces=function(){for(var T=this.getAllEdges(),C,E=0;E<T.length;E++)C=T[E],this.calcSpringForce(C,C.idealLength)},b.prototype.calcRepulsionForces=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E,S,R,L,_=this.getAllNodes(),I;if(this.useFRGridVariant)for(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&T&&this.updateGrid(),I=new Set,E=0;E<_.length;E++)R=_[E],this.calculateRepulsionForceOfANode(R,I,T,C),I.add(R);else for(E=0;E<_.length;E++)for(R=_[E],S=E+1;S<_.length;S++)L=_[S],R.getOwner()==L.getOwner()&&this.calcRepulsionForce(R,L)},b.prototype.calcGravitationalForces=function(){for(var T,C=this.getAllNodesToApplyGravitation(),E=0;E<C.length;E++)T=C[E],this.calcGravitationalForce(T)},b.prototype.moveNodes=function(){for(var T=this.getAllNodes(),C,E=0;E<T.length;E++)C=T[E],C.move()},b.prototype.calcSpringForce=function(T,C){var E=T.getSource(),S=T.getTarget(),R,L,_,I;if(this.uniformLeafNodeSizes&&E.getChild()==null&&S.getChild()==null)T.updateLengthSimple();else if(T.updateLength(),T.isOverlapingSourceAndTarget)return;R=T.getLength(),R!=0&&(L=this.springConstant*(R-C),_=L*(T.lengthX/R),I=L*(T.lengthY/R),E.springForceX+=_,E.springForceY+=I,S.springForceX-=_,S.springForceY-=I)},b.prototype.calcRepulsionForce=function(T,C){var E=T.getRect(),S=C.getRect(),R=new Array(2),L=new Array(4),_,I,N,B,O,P,$;if(E.intersects(S)){d.calcSeparationAmount(E,S,R,h.DEFAULT_EDGE_LENGTH/2),P=2*R[0],$=2*R[1];var V=T.noOfChildren*C.noOfChildren/(T.noOfChildren+C.noOfChildren);T.repulsionForceX-=V*P,T.repulsionForceY-=V*$,C.repulsionForceX+=V*P,C.repulsionForceY+=V*$}else this.uniformLeafNodeSizes&&T.getChild()==null&&C.getChild()==null?(_=S.getCenterX()-E.getCenterX(),I=S.getCenterY()-E.getCenterY()):(d.getIntersection(E,S,L),_=L[2]-L[0],I=L[3]-L[1]),Math.abs(_)<h.MIN_REPULSION_DIST&&(_=m.sign(_)*h.MIN_REPULSION_DIST),Math.abs(I)<h.MIN_REPULSION_DIST&&(I=m.sign(I)*h.MIN_REPULSION_DIST),N=_*_+I*I,B=Math.sqrt(N),O=this.repulsionConstant*T.noOfChildren*C.noOfChildren/N,P=O*_/B,$=O*I/B,T.repulsionForceX-=P,T.repulsionForceY-=$,C.repulsionForceX+=P,C.repulsionForceY+=$},b.prototype.calcGravitationalForce=function(T){var C,E,S,R,L,_,I,N;C=T.getOwner(),E=(C.getRight()+C.getLeft())/2,S=(C.getTop()+C.getBottom())/2,R=T.getCenterX()-E,L=T.getCenterY()-S,_=Math.abs(R)+T.getWidth()/2,I=Math.abs(L)+T.getHeight()/2,T.getOwner()==this.graphManager.getRoot()?(N=C.getEstimatedSize()*this.gravityRangeFactor,(_>N||I>N)&&(T.gravitationForceX=-this.gravityConstant*R,T.gravitationForceY=-this.gravityConstant*L)):(N=C.getEstimatedSize()*this.compoundGravityRangeFactor,(_>N||I>N)&&(T.gravitationForceX=-this.gravityConstant*R*this.compoundGravityConstant,T.gravitationForceY=-this.gravityConstant*L*this.compoundGravityConstant))},b.prototype.isConverged=function(){var T,C=!1;return this.totalIterations>this.maxIterations/3&&(C=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),T=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,T||C},b.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},b.prototype.calcNoOfChildrenForAllNodes=function(){for(var T,C=this.graphManager.getAllNodes(),E=0;E<C.length;E++)T=C[E],T.noOfChildren=T.getNoOfChildren()},b.prototype.calcGrid=function(T){var C=0,E=0;C=parseInt(Math.ceil((T.getRight()-T.getLeft())/this.repulsionRange)),E=parseInt(Math.ceil((T.getBottom()-T.getTop())/this.repulsionRange));for(var S=new Array(C),R=0;R<C;R++)S[R]=new Array(E);for(var R=0;R<C;R++)for(var L=0;L<E;L++)S[R][L]=new Array;return S},b.prototype.addNodeToGrid=function(T,C,E){var S=0,R=0,L=0,_=0;S=parseInt(Math.floor((T.getRect().x-C)/this.repulsionRange)),R=parseInt(Math.floor((T.getRect().width+T.getRect().x-C)/this.repulsionRange)),L=parseInt(Math.floor((T.getRect().y-E)/this.repulsionRange)),_=parseInt(Math.floor((T.getRect().height+T.getRect().y-E)/this.repulsionRange));for(var I=S;I<=R;I++)for(var N=L;N<=_;N++)this.grid[I][N].push(T),T.setGridCoordinates(S,R,L,_)},b.prototype.updateGrid=function(){var T,C,E=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),T=0;T<E.length;T++)C=E[T],this.addNodeToGrid(C,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},b.prototype.calculateRepulsionForceOfANode=function(T,C,E,S){if(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&E||S){var R=new Set;T.surrounding=new Array;for(var L,_=this.grid,I=T.startX-1;I<T.finishX+2;I++)for(var N=T.startY-1;N<T.finishY+2;N++)if(!(I<0||N<0||I>=_.length||N>=_[0].length)){for(var B=0;B<_[I][N].length;B++)if(L=_[I][N][B],!(T.getOwner()!=L.getOwner()||T==L)&&!C.has(L)&&!R.has(L)){var O=Math.abs(T.getCenterX()-L.getCenterX())-(T.getWidth()/2+L.getWidth()/2),P=Math.abs(T.getCenterY()-L.getCenterY())-(T.getHeight()/2+L.getHeight()/2);O<=this.repulsionRange&&P<=this.repulsionRange&&R.add(L)}}T.surrounding=[].concat(s(R))}for(I=0;I<T.surrounding.length;I++)this.calcRepulsionForce(T,T.surrounding[I])},b.prototype.calcRepulsionRange=function(){return 0},r.exports=b}),(function(r,t,a){"use strict";var s=a(1),l=a(7);function h(d,m,b){s.call(this,d,m,b),this.idealLength=l.DEFAULT_EDGE_LENGTH}i(h,"FDLayoutEdge"),h.prototype=Object.create(s.prototype);for(var f in s)h[f]=s[f];r.exports=h}),(function(r,t,a){"use strict";var s=a(3);function l(f,d,m,b){s.call(this,f,d,m,b),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=[]}i(l,"FDLayoutNode"),l.prototype=Object.create(s.prototype);for(var h in s)l[h]=s[h];l.prototype.setGridCoordinates=function(f,d,m,b){this.startX=f,this.finishX=d,this.startY=m,this.finishY=b},r.exports=l}),(function(r,t,a){"use strict";function s(l,h){this.width=0,this.height=0,l!==null&&h!==null&&(this.height=h,this.width=l)}i(s,"DimensionD"),s.prototype.getWidth=function(){return this.width},s.prototype.setWidth=function(l){this.width=l},s.prototype.getHeight=function(){return this.height},s.prototype.setHeight=function(l){this.height=l},r.exports=s}),(function(r,t,a){"use strict";var s=a(14);function l(){this.map={},this.keys=[]}i(l,"HashMap"),l.prototype.put=function(h,f){var d=s.createID(h);this.contains(d)||(this.map[d]=f,this.keys.push(h))},l.prototype.contains=function(h){var f=s.createID(h);return this.map[h]!=null},l.prototype.get=function(h){var f=s.createID(h);return this.map[f]},l.prototype.keySet=function(){return this.keys},r.exports=l}),(function(r,t,a){"use strict";var s=a(14);function l(){this.set={}}i(l,"HashSet"),l.prototype.add=function(h){var f=s.createID(h);this.contains(f)||(this.set[f]=h)},l.prototype.remove=function(h){delete this.set[s.createID(h)]},l.prototype.clear=function(){this.set={}},l.prototype.contains=function(h){return this.set[s.createID(h)]==h},l.prototype.isEmpty=function(){return this.size()===0},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAllTo=function(h){for(var f=Object.keys(this.set),d=f.length,m=0;m<d;m++)h.push(this.set[f[m]])},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAll=function(h){for(var f=h.length,d=0;d<f;d++){var m=h[d];this.add(m)}},r.exports=l}),(function(r,t,a){"use strict";var s=(function(){function d(m,b){for(var v=0;v<b.length;v++){var T=b[v];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(m,T.key,T)}}return i(d,"defineProperties"),function(m,b,v){return b&&d(m.prototype,b),v&&d(m,v),m}})();function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}i(l,"_classCallCheck");var h=a(11),f=(function(){function d(m,b){l(this,d),(b!==null||b!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var v=void 0;m instanceof h?v=m.size():v=m.length,this._quicksort(m,0,v-1)}return i(d,"Quicksort"),s(d,[{key:"_quicksort",value:i(function(b,v,T){if(v<T){var C=this._partition(b,v,T);this._quicksort(b,v,C),this._quicksort(b,C+1,T)}},"_quicksort")},{key:"_partition",value:i(function(b,v,T){for(var C=this._get(b,v),E=v,S=T;;){for(;this.compareFunction(C,this._get(b,S));)S--;for(;this.compareFunction(this._get(b,E),C);)E++;if(E<S)this._swap(b,E,S),E++,S--;else return S}},"_partition")},{key:"_get",value:i(function(b,v){return b instanceof h?b.get_object_at(v):b[v]},"_get")},{key:"_set",value:i(function(b,v,T){b instanceof h?b.set_object_at(v,T):b[v]=T},"_set")},{key:"_swap",value:i(function(b,v,T){var C=this._get(b,v);this._set(b,v,this._get(b,T)),this._set(b,T,C)},"_swap")},{key:"_defaultCompareFunction",value:i(function(b,v){return v>b},"_defaultCompareFunction")}]),d})();r.exports=f}),(function(r,t,a){"use strict";var s=(function(){function f(d,m){for(var b=0;b<m.length;b++){var v=m[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}return i(f,"defineProperties"),function(d,m,b){return m&&f(d.prototype,m),b&&f(d,b),d}})();function l(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}i(l,"_classCallCheck");var h=(function(){function f(d,m){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;l(this,f),this.sequence1=d,this.sequence2=m,this.match_score=b,this.mismatch_penalty=v,this.gap_penalty=T,this.iMax=d.length+1,this.jMax=m.length+1,this.grid=new Array(this.iMax);for(var C=0;C<this.iMax;C++){this.grid[C]=new Array(this.jMax);for(var E=0;E<this.jMax;E++)this.grid[C][E]=0}this.tracebackGrid=new Array(this.iMax);for(var S=0;S<this.iMax;S++){this.tracebackGrid[S]=new Array(this.jMax);for(var R=0;R<this.jMax;R++)this.tracebackGrid[S][R]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return i(f,"NeedlemanWunsch"),s(f,[{key:"getScore",value:i(function(){return this.score},"getScore")},{key:"getAlignments",value:i(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:i(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 b=1;b<this.iMax;b++)this.grid[b][0]=this.grid[b-1][0]+this.gap_penalty,this.tracebackGrid[b][0]=[!1,!0,!1];for(var v=1;v<this.iMax;v++)for(var T=1;T<this.jMax;T++){var C=void 0;this.sequence1[v-1]===this.sequence2[T-1]?C=this.grid[v-1][T-1]+this.match_score:C=this.grid[v-1][T-1]+this.mismatch_penalty;var E=this.grid[v-1][T]+this.gap_penalty,S=this.grid[v][T-1]+this.gap_penalty,R=[C,E,S],L=this.arrayAllMaxIndexes(R);this.grid[v][T]=R[L[0]],this.tracebackGrid[v][T]=[L.includes(0),L.includes(1),L.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:i(function(){var m=[];for(m.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});m[0];){var b=m[0],v=this.tracebackGrid[b.pos[0]][b.pos[1]];v[0]&&m.push({pos:[b.pos[0]-1,b.pos[1]-1],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),v[1]&&m.push({pos:[b.pos[0]-1,b.pos[1]],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:"-"+b.seq2}),v[2]&&m.push({pos:[b.pos[0],b.pos[1]-1],seq1:"-"+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),b.pos[0]===0&&b.pos[1]===0&&this.alignments.push({sequence1:b.seq1,sequence2:b.seq2}),m.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:i(function(m,b){for(var v=[],T=-1;(T=m.indexOf(b,T+1))!==-1;)v.push(T);return v},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:i(function(m){return this.getAllIndexes(m,Math.max.apply(null,m))},"arrayAllMaxIndexes")}]),f})();r.exports=h}),(function(r,t,a){"use strict";var s=i(function(){},"layoutBase");s.FDLayout=a(18),s.FDLayoutConstants=a(7),s.FDLayoutEdge=a(19),s.FDLayoutNode=a(20),s.DimensionD=a(21),s.HashMap=a(22),s.HashSet=a(23),s.IGeometry=a(8),s.IMath=a(9),s.Integer=a(10),s.Point=a(12),s.PointD=a(4),s.RandomSeed=a(16),s.RectangleD=a(13),s.Transform=a(17),s.UniqueIDGeneretor=a(14),s.Quicksort=a(24),s.LinkedList=a(11),s.LGraphObject=a(2),s.LGraph=a(5),s.LEdge=a(1),s.LGraphManager=a(6),s.LNode=a(3),s.Layout=a(15),s.LayoutConstants=a(0),s.NeedlemanWunsch=a(25),r.exports=s}),(function(r,t,a){"use strict";function s(){this.listeners=[]}i(s,"Emitter");var l=s.prototype;l.addListener=function(h,f){this.listeners.push({event:h,callback:f})},l.removeListener=function(h,f){for(var d=this.listeners.length;d>=0;d--){var m=this.listeners[d];m.event===h&&m.callback===f&&this.listeners.splice(d,1)}},l.emit=function(h,f){for(var d=0;d<this.listeners.length;d++){var m=this.listeners[d];h===m.event&&m.callback(f)}},r.exports=s})])})});var hit=Zv((wie,uit)=>{"use strict";i((function(t,a){typeof wie=="object"&&typeof uit=="object"?uit.exports=a(cit()):typeof define=="function"&&define.amd?define(["layout-base"],a):typeof wie=="object"?wie.coseBase=a(cit()):t.coseBase=a(t.layoutBase)}),"webpackUniversalModuleDefinition")(wie,function(r){return(function(t){var a={};function s(l){if(a[l])return a[l].exports;var h=a[l]={i:l,l:!1,exports:{}};return t[l].call(h.exports,h,h.exports,s),h.l=!0,h.exports}return i(s,"__webpack_require__"),s.m=t,s.c=a,s.i=function(l){return l},s.d=function(l,h,f){s.o(l,h)||Object.defineProperty(l,h,{configurable:!1,enumerable:!0,get:f})},s.n=function(l){var h=l&&l.__esModule?i(function(){return l.default},"getDefault"):i(function(){return l},"getModuleExports");return s.d(h,"a",h),h},s.o=function(l,h){return Object.prototype.hasOwnProperty.call(l,h)},s.p="",s(s.s=7)})([(function(t,a){t.exports=r}),(function(t,a,s){"use strict";var l=s(0).FDLayoutConstants;function h(){}i(h,"CoSEConstants");for(var f in l)h[f]=l[f];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=l.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=h}),(function(t,a,s){"use strict";var l=s(0).FDLayoutEdge;function h(d,m,b){l.call(this,d,m,b)}i(h,"CoSEEdge"),h.prototype=Object.create(l.prototype);for(var f in l)h[f]=l[f];t.exports=h}),(function(t,a,s){"use strict";var l=s(0).LGraph;function h(d,m,b){l.call(this,d,m,b)}i(h,"CoSEGraph"),h.prototype=Object.create(l.prototype);for(var f in l)h[f]=l[f];t.exports=h}),(function(t,a,s){"use strict";var l=s(0).LGraphManager;function h(d){l.call(this,d)}i(h,"CoSEGraphManager"),h.prototype=Object.create(l.prototype);for(var f in l)h[f]=l[f];t.exports=h}),(function(t,a,s){"use strict";var l=s(0).FDLayoutNode,h=s(0).IMath;function f(m,b,v,T){l.call(this,m,b,v,T)}i(f,"CoSENode"),f.prototype=Object.create(l.prototype);for(var d in l)f[d]=l[d];f.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*h.sign(this.displacementX)),Math.abs(this.displacementY)>m.coolingFactor*m.maxNodeDisplacement&&(this.displacementY=m.coolingFactor*m.maxNodeDisplacement*h.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},f.prototype.propogateDisplacementToChildren=function(m,b){for(var v=this.getChild().getNodes(),T,C=0;C<v.length;C++)T=v[C],T.getChild()==null?(T.moveBy(m,b),T.displacementX+=m,T.displacementY+=b):T.propogateDisplacementToChildren(m,b)},f.prototype.setPred1=function(m){this.pred1=m},f.prototype.getPred1=function(){return pred1},f.prototype.getPred2=function(){return pred2},f.prototype.setNext=function(m){this.next=m},f.prototype.getNext=function(){return next},f.prototype.setProcessed=function(m){this.processed=m},f.prototype.isProcessed=function(){return processed},t.exports=f}),(function(t,a,s){"use strict";var l=s(0).FDLayout,h=s(4),f=s(3),d=s(5),m=s(2),b=s(1),v=s(0).FDLayoutConstants,T=s(0).LayoutConstants,C=s(0).Point,E=s(0).PointD,S=s(0).Layout,R=s(0).Integer,L=s(0).IGeometry,_=s(0).LGraph,I=s(0).Transform;function N(){l.call(this),this.toBeTiled={}}i(N,"CoSELayout"),N.prototype=Object.create(l.prototype);for(var B in l)N[B]=l[B];N.prototype.newGraphManager=function(){var O=new h(this);return this.graphManager=O,O},N.prototype.newGraph=function(O){return new f(null,this.graphManager,O)},N.prototype.newNode=function(O){return new d(this.graphManager,O)},N.prototype.newEdge=function(O){return new m(null,null,O)},N.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.isSubLayout||(b.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=b.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=b.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=v.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=v.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=v.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=v.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=v.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=v.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/v.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=v.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},N.prototype.layout=function(){var O=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return O&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},N.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(b.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var P=new Set(this.getAllNodes()),$=this.nodesWithGravity.filter(function(Q){return P.has(Q)});this.graphManager.setAllNodesToApplyGravitation($)}}else{var O=this.getFlatForest();if(O.length>0)this.positionNodesRadially(O);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var P=new Set(this.getAllNodes()),$=this.nodesWithGravity.filter(function(V){return P.has(V)});this.graphManager.setAllNodesToApplyGravitation($),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},N.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%v.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 O=new Set(this.getAllNodes()),P=this.nodesWithGravity.filter(function(Y){return O.has(Y)});this.graphManager.setAllNodesToApplyGravitation(P),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=v.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=v.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var $=!this.isTreeGrowing&&!this.isGrowthFinished,V=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces($,V),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},N.prototype.getPositionsData=function(){for(var O=this.graphManager.getAllNodes(),P={},$=0;$<O.length;$++){var V=O[$].rect,Y=O[$].id;P[Y]={id:Y,x:V.getCenterX(),y:V.getCenterY(),w:V.width,h:V.height}}return P},N.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var O=!1;if(v.ANIMATE==="during")this.emit("layoutstarted");else{for(;!O;)O=this.tick();this.graphManager.updateBounds()}},N.prototype.calculateNodesToApplyGravitationTo=function(){var O=[],P,$=this.graphManager.getGraphs(),V=$.length,Y;for(Y=0;Y<V;Y++)P=$[Y],P.updateConnected(),P.isConnected||(O=O.concat(P.getNodes()));return O},N.prototype.createBendpoints=function(){var O=[];O=O.concat(this.graphManager.getAllEdges());var P=new Set,$;for($=0;$<O.length;$++){var V=O[$];if(!P.has(V)){var Y=V.getSource(),Q=V.getTarget();if(Y==Q)V.getBendpoints().push(new E),V.getBendpoints().push(new E),this.createDummyNodesForBendpoints(V),P.add(V);else{var q=[];if(q=q.concat(Y.getEdgeListToNode(Q)),q=q.concat(Q.getEdgeListToNode(Y)),!P.has(q[0])){if(q.length>1){var W;for(W=0;W<q.length;W++){var H=q[W];H.getBendpoints().push(new E),this.createDummyNodesForBendpoints(H)}}q.forEach(function(re){P.add(re)})}}}if(P.size==O.length)break}},N.prototype.positionNodesRadially=function(O){for(var P=new C(0,0),$=Math.ceil(Math.sqrt(O.length)),V=0,Y=0,Q=0,q=new E(0,0),W=0;W<O.length;W++){W%$==0&&(Q=0,Y=V,W!=0&&(Y+=b.DEFAULT_COMPONENT_SEPERATION),V=0);var H=O[W],re=S.findCenterOfTree(H);P.x=Q,P.y=Y,q=N.radialLayout(H,re,P),q.y>V&&(V=Math.floor(q.y)),Q=Math.floor(q.x+b.DEFAULT_COMPONENT_SEPERATION)}this.transform(new E(T.WORLD_CENTER_X-q.x/2,T.WORLD_CENTER_Y-q.y/2))},N.radialLayout=function(O,P,$){var V=Math.max(this.maxDiagonalInTree(O),b.DEFAULT_RADIAL_SEPARATION);N.branchRadialLayout(P,null,0,359,0,V);var Y=_.calculateBounds(O),Q=new I;Q.setDeviceOrgX(Y.getMinX()),Q.setDeviceOrgY(Y.getMinY()),Q.setWorldOrgX($.x),Q.setWorldOrgY($.y);for(var q=0;q<O.length;q++){var W=O[q];W.transform(Q)}var H=new E(Y.getMaxX(),Y.getMaxY());return Q.inverseTransformPoint(H)},N.branchRadialLayout=function(O,P,$,V,Y,Q){var q=(V-$+1)/2;q<0&&(q+=180);var W=(q+$)%360,H=W*L.TWO_PI/360,re=Math.cos(H),Z=Y*Math.cos(H),X=Y*Math.sin(H);O.setCenter(Z,X);var te=[];te=te.concat(O.getEdges());var U=te.length;P!=null&&U--;for(var ne=0,se=te.length,he,le=O.getEdgesBetween(P);le.length>1;){var pe=le[0];le.splice(0,1);var ge=te.indexOf(pe);ge>=0&&te.splice(ge,1),se--,U--}P!=null?he=(te.indexOf(le[0])+1)%se:he=0;for(var we=Math.abs(V-$)/U,Ae=he;ne!=U;Ae=++Ae%se){var ve=te[Ae].getOtherEnd(O);if(ve!=P){var Ie=($+ne*we)%360,De=(Ie+we)%360;N.branchRadialLayout(ve,O,Ie,De,Y+Q,Q),ne++}}},N.maxDiagonalInTree=function(O){for(var P=R.MIN_VALUE,$=0;$<O.length;$++){var V=O[$],Y=V.getDiagonal();Y>P&&(P=Y)}return P},N.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},N.prototype.groupZeroDegreeMembers=function(){var O=this,P={};this.memberGroups={},this.idToDummyNode={};for(var $=[],V=this.graphManager.getAllNodes(),Y=0;Y<V.length;Y++){var Q=V[Y],q=Q.getParent();this.getNodeDegreeWithChildren(Q)===0&&(q.id==null||!this.getToBeTiled(q))&&$.push(Q)}for(var Y=0;Y<$.length;Y++){var Q=$[Y],W=Q.getParent().id;typeof P[W]>"u"&&(P[W]=[]),P[W]=P[W].concat(Q)}Object.keys(P).forEach(function(H){if(P[H].length>1){var re="DummyCompound_"+H;O.memberGroups[re]=P[H];var Z=P[H][0].getParent(),X=new d(O.graphManager);X.id=re,X.paddingLeft=Z.paddingLeft||0,X.paddingRight=Z.paddingRight||0,X.paddingBottom=Z.paddingBottom||0,X.paddingTop=Z.paddingTop||0,O.idToDummyNode[re]=X;var te=O.getGraphManager().add(O.newGraph(),X),U=Z.getChild();U.add(X);for(var ne=0;ne<P[H].length;ne++){var se=P[H][ne];U.remove(se),te.add(se)}}})},N.prototype.clearCompounds=function(){var O={},P={};this.performDFSOnCompounds();for(var $=0;$<this.compoundOrder.length;$++)P[this.compoundOrder[$].id]=this.compoundOrder[$],O[this.compoundOrder[$].id]=[].concat(this.compoundOrder[$].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[$].getChild()),this.compoundOrder[$].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(O,P)},N.prototype.clearZeroDegreeMembers=function(){var O=this,P=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function($){var V=O.idToDummyNode[$];P[$]=O.tileNodes(O.memberGroups[$],V.paddingLeft+V.paddingRight),V.rect.width=P[$].width,V.rect.height=P[$].height})},N.prototype.repopulateCompounds=function(){for(var O=this.compoundOrder.length-1;O>=0;O--){var P=this.compoundOrder[O],$=P.id,V=P.paddingLeft,Y=P.paddingTop;this.adjustLocations(this.tiledMemberPack[$],P.rect.x,P.rect.y,V,Y)}},N.prototype.repopulateZeroDegreeMembers=function(){var O=this,P=this.tiledZeroDegreePack;Object.keys(P).forEach(function($){var V=O.idToDummyNode[$],Y=V.paddingLeft,Q=V.paddingTop;O.adjustLocations(P[$],V.rect.x,V.rect.y,Y,Q)})},N.prototype.getToBeTiled=function(O){var P=O.id;if(this.toBeTiled[P]!=null)return this.toBeTiled[P];var $=O.getChild();if($==null)return this.toBeTiled[P]=!1,!1;for(var V=$.getNodes(),Y=0;Y<V.length;Y++){var Q=V[Y];if(this.getNodeDegree(Q)>0)return this.toBeTiled[P]=!1,!1;if(Q.getChild()==null){this.toBeTiled[Q.id]=!1;continue}if(!this.getToBeTiled(Q))return this.toBeTiled[P]=!1,!1}return this.toBeTiled[P]=!0,!0},N.prototype.getNodeDegree=function(O){for(var P=O.id,$=O.getEdges(),V=0,Y=0;Y<$.length;Y++){var Q=$[Y];Q.getSource().id!==Q.getTarget().id&&(V=V+1)}return V},N.prototype.getNodeDegreeWithChildren=function(O){var P=this.getNodeDegree(O);if(O.getChild()==null)return P;for(var $=O.getChild().getNodes(),V=0;V<$.length;V++){var Y=$[V];P+=this.getNodeDegreeWithChildren(Y)}return P},N.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},N.prototype.fillCompexOrderByDFS=function(O){for(var P=0;P<O.length;P++){var $=O[P];$.getChild()!=null&&this.fillCompexOrderByDFS($.getChild().getNodes()),this.getToBeTiled($)&&this.compoundOrder.push($)}},N.prototype.adjustLocations=function(O,P,$,V,Y){P+=V,$+=Y;for(var Q=P,q=0;q<O.rows.length;q++){var W=O.rows[q];P=Q;for(var H=0,re=0;re<W.length;re++){var Z=W[re];Z.rect.x=P,Z.rect.y=$,P+=Z.rect.width+O.horizontalPadding,Z.rect.height>H&&(H=Z.rect.height)}$+=H+O.verticalPadding}},N.prototype.tileCompoundMembers=function(O,P){var $=this;this.tiledMemberPack=[],Object.keys(O).forEach(function(V){var Y=P[V];$.tiledMemberPack[V]=$.tileNodes(O[V],Y.paddingLeft+Y.paddingRight),Y.rect.width=$.tiledMemberPack[V].width,Y.rect.height=$.tiledMemberPack[V].height})},N.prototype.tileNodes=function(O,P){var $=b.TILING_PADDING_VERTICAL,V=b.TILING_PADDING_HORIZONTAL,Y={rows:[],rowWidth:[],rowHeight:[],width:0,height:P,verticalPadding:$,horizontalPadding:V};O.sort(function(W,H){return W.rect.width*W.rect.height>H.rect.width*H.rect.height?-1:W.rect.width*W.rect.height<H.rect.width*H.rect.height?1:0});for(var Q=0;Q<O.length;Q++){var q=O[Q];Y.rows.length==0?this.insertNodeToRow(Y,q,0,P):this.canAddHorizontal(Y,q.rect.width,q.rect.height)?this.insertNodeToRow(Y,q,this.getShortestRowIndex(Y),P):this.insertNodeToRow(Y,q,Y.rows.length,P),this.shiftToLastRow(Y)}return Y},N.prototype.insertNodeToRow=function(O,P,$,V){var Y=V;if($==O.rows.length){var Q=[];O.rows.push(Q),O.rowWidth.push(Y),O.rowHeight.push(0)}var q=O.rowWidth[$]+P.rect.width;O.rows[$].length>0&&(q+=O.horizontalPadding),O.rowWidth[$]=q,O.width<q&&(O.width=q);var W=P.rect.height;$>0&&(W+=O.verticalPadding);var H=0;W>O.rowHeight[$]&&(H=O.rowHeight[$],O.rowHeight[$]=W,H=O.rowHeight[$]-H),O.height+=H,O.rows[$].push(P)},N.prototype.getShortestRowIndex=function(O){for(var P=-1,$=Number.MAX_VALUE,V=0;V<O.rows.length;V++)O.rowWidth[V]<$&&(P=V,$=O.rowWidth[V]);return P},N.prototype.getLongestRowIndex=function(O){for(var P=-1,$=Number.MIN_VALUE,V=0;V<O.rows.length;V++)O.rowWidth[V]>$&&(P=V,$=O.rowWidth[V]);return P},N.prototype.canAddHorizontal=function(O,P,$){var V=this.getShortestRowIndex(O);if(V<0)return!0;var Y=O.rowWidth[V];if(Y+O.horizontalPadding+P<=O.width)return!0;var Q=0;O.rowHeight[V]<$&&V>0&&(Q=$+O.verticalPadding-O.rowHeight[V]);var q;O.width-Y>=P+O.horizontalPadding?q=(O.height+Q)/(Y+P+O.horizontalPadding):q=(O.height+Q)/O.width,Q=$+O.verticalPadding;var W;return O.width<P?W=(O.height+Q)/P:W=(O.height+Q)/O.width,W<1&&(W=1/W),q<1&&(q=1/q),q<W},N.prototype.shiftToLastRow=function(O){var P=this.getLongestRowIndex(O),$=O.rowWidth.length-1,V=O.rows[P],Y=V[V.length-1],Q=Y.width+O.horizontalPadding;if(O.width-O.rowWidth[$]>Q&&P!=$){V.splice(-1,1),O.rows[$].push(Y),O.rowWidth[P]=O.rowWidth[P]-Q,O.rowWidth[$]=O.rowWidth[$]+Q,O.width=O.rowWidth[instance.getLongestRowIndex(O)];for(var q=Number.MIN_VALUE,W=0;W<V.length;W++)V[W].height>q&&(q=V[W].height);P>0&&(q+=O.verticalPadding);var H=O.rowHeight[P]+O.rowHeight[$];O.rowHeight[P]=q,O.rowHeight[$]<Y.height+O.verticalPadding&&(O.rowHeight[$]=Y.height+O.verticalPadding);var re=O.rowHeight[P]+O.rowHeight[$];O.height+=re-H,this.shiftToLastRow(O)}},N.prototype.tilingPreLayout=function(){b.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},N.prototype.tilingPostLayout=function(){b.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},N.prototype.reduceTrees=function(){for(var O=[],P=!0,$;P;){var V=this.graphManager.getAllNodes(),Y=[];P=!1;for(var Q=0;Q<V.length;Q++)$=V[Q],$.getEdges().length==1&&!$.getEdges()[0].isInterGraph&&$.getChild()==null&&(Y.push([$,$.getEdges()[0],$.getOwner()]),P=!0);if(P==!0){for(var q=[],W=0;W<Y.length;W++)Y[W][0].getEdges().length==1&&(q.push(Y[W]),Y[W][0].getOwner().remove(Y[W][0]));O.push(q),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=O},N.prototype.growTree=function(O){for(var P=O.length,$=O[P-1],V,Y=0;Y<$.length;Y++)V=$[Y],this.findPlaceforPrunedNode(V),V[2].add(V[0]),V[2].add(V[1],V[1].source,V[1].target);O.splice(O.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},N.prototype.findPlaceforPrunedNode=function(O){var P,$,V=O[0];V==O[1].source?$=O[1].target:$=O[1].source;var Y=$.startX,Q=$.finishX,q=$.startY,W=$.finishY,H=0,re=0,Z=0,X=0,te=[H,Z,re,X];if(q>0)for(var U=Y;U<=Q;U++)te[0]+=this.grid[U][q-1].length+this.grid[U][q].length-1;if(Q<this.grid.length-1)for(var U=q;U<=W;U++)te[1]+=this.grid[Q+1][U].length+this.grid[Q][U].length-1;if(W<this.grid[0].length-1)for(var U=Y;U<=Q;U++)te[2]+=this.grid[U][W+1].length+this.grid[U][W].length-1;if(Y>0)for(var U=q;U<=W;U++)te[3]+=this.grid[Y-1][U].length+this.grid[Y][U].length-1;for(var ne=R.MAX_VALUE,se,he,le=0;le<te.length;le++)te[le]<ne?(ne=te[le],se=1,he=le):te[le]==ne&&se++;if(se==3&&ne==0)te[0]==0&&te[1]==0&&te[2]==0?P=1:te[0]==0&&te[1]==0&&te[3]==0?P=0:te[0]==0&&te[2]==0&&te[3]==0?P=3:te[1]==0&&te[2]==0&&te[3]==0&&(P=2);else if(se==2&&ne==0){var pe=Math.floor(Math.random()*2);te[0]==0&&te[1]==0?pe==0?P=0:P=1:te[0]==0&&te[2]==0?pe==0?P=0:P=2:te[0]==0&&te[3]==0?pe==0?P=0:P=3:te[1]==0&&te[2]==0?pe==0?P=1:P=2:te[1]==0&&te[3]==0?pe==0?P=1:P=3:pe==0?P=2:P=3}else if(se==4&&ne==0){var pe=Math.floor(Math.random()*4);P=pe}else P=he;P==0?V.setCenter($.getCenterX(),$.getCenterY()-$.getHeight()/2-v.DEFAULT_EDGE_LENGTH-V.getHeight()/2):P==1?V.setCenter($.getCenterX()+$.getWidth()/2+v.DEFAULT_EDGE_LENGTH+V.getWidth()/2,$.getCenterY()):P==2?V.setCenter($.getCenterX(),$.getCenterY()+$.getHeight()/2+v.DEFAULT_EDGE_LENGTH+V.getHeight()/2):V.setCenter($.getCenterX()-$.getWidth()/2-v.DEFAULT_EDGE_LENGTH-V.getWidth()/2,$.getCenterY())},t.exports=N}),(function(t,a,s){"use strict";var l={};l.layoutBase=s(0),l.CoSEConstants=s(1),l.CoSEEdge=s(2),l.CoSEGraph=s(3),l.CoSEGraphManager=s(4),l.CoSELayout=s(6),l.CoSENode=s(5),t.exports=l})])})});var lRr=Zv((xie,fit)=>{"use strict";i((function(t,a){typeof xie=="object"&&typeof fit=="object"?fit.exports=a(hit()):typeof define=="function"&&define.amd?define(["cose-base"],a):typeof xie=="object"?xie.cytoscapeCoseBilkent=a(hit()):t.cytoscapeCoseBilkent=a(t.coseBase)}),"webpackUniversalModuleDefinition")(xie,function(r){return(function(t){var a={};function s(l){if(a[l])return a[l].exports;var h=a[l]={i:l,l:!1,exports:{}};return t[l].call(h.exports,h,h.exports,s),h.l=!0,h.exports}return i(s,"__webpack_require__"),s.m=t,s.c=a,s.i=function(l){return l},s.d=function(l,h,f){s.o(l,h)||Object.defineProperty(l,h,{configurable:!1,enumerable:!0,get:f})},s.n=function(l){var h=l&&l.__esModule?i(function(){return l.default},"getDefault"):i(function(){return l},"getModuleExports");return s.d(h,"a",h),h},s.o=function(l,h){return Object.prototype.hasOwnProperty.call(l,h)},s.p="",s(s.s=1)})([(function(t,a){t.exports=r}),(function(t,a,s){"use strict";var l=s(0).layoutBase.LayoutConstants,h=s(0).layoutBase.FDLayoutConstants,f=s(0).CoSEConstants,d=s(0).CoSELayout,m=s(0).CoSENode,b=s(0).layoutBase.PointD,v=s(0).layoutBase.DimensionD,T={ready:i(function(){},"ready"),stop:i(function(){},"stop"),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 C(L,_){var I={};for(var N in L)I[N]=L[N];for(var N in _)I[N]=_[N];return I}i(C,"extend");function E(L){this.options=C(T,L),S(this.options)}i(E,"_CoSELayout");var S=i(function(_){_.nodeRepulsion!=null&&(f.DEFAULT_REPULSION_STRENGTH=h.DEFAULT_REPULSION_STRENGTH=_.nodeRepulsion),_.idealEdgeLength!=null&&(f.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=_.idealEdgeLength),_.edgeElasticity!=null&&(f.DEFAULT_SPRING_STRENGTH=h.DEFAULT_SPRING_STRENGTH=_.edgeElasticity),_.nestingFactor!=null&&(f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=_.nestingFactor),_.gravity!=null&&(f.DEFAULT_GRAVITY_STRENGTH=h.DEFAULT_GRAVITY_STRENGTH=_.gravity),_.numIter!=null&&(f.MAX_ITERATIONS=h.MAX_ITERATIONS=_.numIter),_.gravityRange!=null&&(f.DEFAULT_GRAVITY_RANGE_FACTOR=h.DEFAULT_GRAVITY_RANGE_FACTOR=_.gravityRange),_.gravityCompound!=null&&(f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=_.gravityCompound),_.gravityRangeCompound!=null&&(f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=_.gravityRangeCompound),_.initialEnergyOnIncremental!=null&&(f.DEFAULT_COOLING_FACTOR_INCREMENTAL=h.DEFAULT_COOLING_FACTOR_INCREMENTAL=_.initialEnergyOnIncremental),_.quality=="draft"?l.QUALITY=0:_.quality=="proof"?l.QUALITY=2:l.QUALITY=1,f.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=_.nodeDimensionsIncludeLabels,f.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!_.randomize,f.ANIMATE=h.ANIMATE=l.ANIMATE=_.animate,f.TILE=_.tile,f.TILING_PADDING_VERTICAL=typeof _.tilingPaddingVertical=="function"?_.tilingPaddingVertical.call():_.tilingPaddingVertical,f.TILING_PADDING_HORIZONTAL=typeof _.tilingPaddingHorizontal=="function"?_.tilingPaddingHorizontal.call():_.tilingPaddingHorizontal},"getUserOptions");E.prototype.run=function(){var L,_,I=this.options,N=this.idToLNode={},B=this.layout=new d,O=this;O.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var P=B.newGraphManager();this.gm=P;var $=this.options.eles.nodes(),V=this.options.eles.edges();this.root=P.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes($),B);for(var Y=0;Y<V.length;Y++){var Q=V[Y],q=this.idToLNode[Q.data("source")],W=this.idToLNode[Q.data("target")];if(q!==W&&q.getEdgesBetween(W).length==0){var H=P.add(B.newEdge(),q,W);H.id=Q.id()}}var re=i(function(te,U){typeof te=="number"&&(te=U);var ne=te.data("id"),se=O.idToLNode[ne];return{x:se.getRect().getCenterX(),y:se.getRect().getCenterY()}},"getPositions"),Z=i(function X(){for(var te=i(function(){I.fit&&I.cy.fit(I.eles,I.padding),L||(L=!0,O.cy.one("layoutready",I.ready),O.cy.trigger({type:"layoutready",layout:O}))},"afterReposition"),U=O.options.refresh,ne,se=0;se<U&&!ne;se++)ne=O.stopped||O.layout.tick();if(ne){B.checkLayoutSuccess()&&!B.isSubLayout&&B.doPostLayout(),B.tilingPostLayout&&B.tilingPostLayout(),B.isLayoutFinished=!0,O.options.eles.nodes().positions(re),te(),O.cy.one("layoutstop",O.options.stop),O.cy.trigger({type:"layoutstop",layout:O}),_&&cancelAnimationFrame(_),L=!1;return}var he=O.layout.getPositionsData();I.eles.nodes().positions(function(le,pe){if(typeof le=="number"&&(le=pe),!le.isParent()){for(var ge=le.id(),we=he[ge],Ae=le;we==null&&(we=he[Ae.data("parent")]||he["DummyCompound_"+Ae.data("parent")],he[ge]=we,Ae=Ae.parent()[0],Ae!=null););return we!=null?{x:we.x,y:we.y}:{x:le.position("x"),y:le.position("y")}}}),te(),_=requestAnimationFrame(X)},"iterateAnimated");return B.addListener("layoutstarted",function(){O.options.animate==="during"&&(_=requestAnimationFrame(Z))}),B.runLayout(),this.options.animate!=="during"&&(O.options.eles.nodes().not(":parent").layoutPositions(O,O.options,re),L=!1),this},E.prototype.getTopMostNodes=function(L){for(var _={},I=0;I<L.length;I++)_[L[I].id()]=!0;var N=L.filter(function(B,O){typeof B=="number"&&(B=O);for(var P=B.parent()[0];P!=null;){if(_[P.id()])return!1;P=P.parent()[0]}return!0});return N},E.prototype.processChildrenList=function(L,_,I){for(var N=_.length,B=0;B<N;B++){var O=_[B],P=O.children(),$,V=O.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(O.outerWidth()!=null&&O.outerHeight()!=null?$=L.add(new m(I.graphManager,new b(O.position("x")-V.w/2,O.position("y")-V.h/2),new v(parseFloat(V.w),parseFloat(V.h)))):$=L.add(new m(this.graphManager)),$.id=O.data("id"),$.paddingLeft=parseInt(O.css("padding")),$.paddingTop=parseInt(O.css("padding")),$.paddingRight=parseInt(O.css("padding")),$.paddingBottom=parseInt(O.css("padding")),this.options.nodeDimensionsIncludeLabels&&O.isParent()){var Y=O.boundingBox({includeLabels:!0,includeNodes:!1}).w,Q=O.boundingBox({includeLabels:!0,includeNodes:!1}).h,q=O.css("text-halign");$.labelWidth=Y,$.labelHeight=Q,$.labelPos=q}if(this.idToLNode[O.data("id")]=$,isNaN($.rect.x)&&($.rect.x=0),isNaN($.rect.y)&&($.rect.y=0),P!=null&&P.length>0){var W;W=I.getGraphManager().add(I.newGraph(),$),this.processChildrenList(W,P,I)}}},E.prototype.stop=function(){return this.stopped=!0,this};var R=i(function(_){_("layout","cose-bilkent",E)},"register");typeof cytoscape<"u"&&R(cytoscape),t.exports=R})])})});function Eei(r,t){r.forEach(a=>{let s={id:a.id,labelText:a.label,height:a.height,width:a.width,padding:a.padding??0};Object.keys(a).forEach(l=>{["id","label","height","width","padding","x","y"].includes(l)||(s[l]=a[l])}),t.add({group:"nodes",data:s,position:{x:a.x??0,y:a.y??0}})})}function Sei(r,t){r.forEach(a=>{let s={id:a.id,source:a.start,target:a.end};Object.keys(a).forEach(l=>{["id","start","end"].includes(l)||(s[l]=a[l])}),t.add({group:"edges",data:s})})}function uRr(r){return new Promise(t=>{let a=mn("body").append("div").attr("id","cy").attr("style","display:none"),s=ik({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),Eei(r.nodes,s),Sei(r.edges,s),s.nodes().forEach(function(h){h.layoutDimensions=()=>{let f=h.data();return{w:f.width,h:f.height}}});let l={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};s.layout(l).run(),s.ready(h=>{Pe.info("Cytoscape ready",h),t(s)})})}function hRr(r){return r.nodes().map(t=>{let a=t.data(),s=t.position(),l={id:a.id,x:s.x,y:s.y};return Object.keys(a).forEach(h=>{h!=="id"&&(l[h]=a[h])}),l})}function fRr(r){return r.edges().map(t=>{let a=t.data(),s=t._private.rscratch,l={id:a.id,source:a.source,target:a.target,startX:s.startX,startY:s.startY,midX:s.midX,midY:s.midY,endX:s.endX,endY:s.endY};return Object.keys(a).forEach(h=>{["id","source","target"].includes(h)||(l[h]=a[h])}),l})}var cRr,dRr=ae(()=>{"use strict";oit();cRr=e2(lRr(),1);zo();Yn();ik.use(cRr.default);i(Eei,"addNodes");i(Sei,"addEdges");i(uRr,"createCytoscapeInstance");i(hRr,"extractPositionedNodes");i(fRr,"extractPositionedEdges")});async function pRr(r,t){Pe.debug("Starting cose-bilkent layout algorithm");try{Aei(r);let a=await uRr(r),s=hRr(a),l=fRr(a);return Pe.debug(`Layout completed: ${s.length} nodes, ${l.length} edges`),{nodes:s,edges:l}}catch(a){throw Pe.error("Error in cose-bilkent layout algorithm:",a),a}}function Aei(r){if(!r)throw new Error("Layout data is required");if(!r.config)throw new Error("Configuration is required in layout data");if(!r.rootNode)throw new Error("Root node is required");if(!r.nodes||!Array.isArray(r.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(r.edges))throw new Error("Edges array is required in layout data");return!0}var gRr=ae(()=>{"use strict";Yn();dRr();i(pRr,"executeCoseBilkentLayout");i(Aei,"validateLayoutData")});var mRr,yRr=ae(()=>{"use strict";gRr();mRr=i(async(r,t,{insertCluster:a,insertEdge:s,insertEdgeLabel:l,insertMarkers:h,insertNode:f,log:d,positionEdgeLabel:m},{algorithm:b})=>{let v={},T={},C=t.select("g");h(C,r.markers,r.type,r.diagramId);let E=C.insert("g").attr("class","subgraphs"),S=C.insert("g").attr("class","edgePaths"),R=C.insert("g").attr("class","edgeLabels"),L=C.insert("g").attr("class","nodes");d.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(r.nodes.map(async N=>{if(N.isGroup){let B={...N};T[N.id]=B,v[N.id]=B,await a(E,N)}else{let B={...N};v[N.id]=B;let O=await f(L,N,{config:r.config,dir:r.direction||"TB"}),P=O.node().getBBox();B.width=P.width,B.height=P.height,B.domId=O,d.debug(`Node ${N.id} dimensions: ${P.width}x${P.height}`)}})),d.debug("Running cose-bilkent layout algorithm");let _={...r,nodes:r.nodes.map(N=>{let B=v[N.id];return{...N,width:B.width,height:B.height}})},I=await pRr(_,r.config);d.debug("Positioning nodes based on layout results"),I.nodes.forEach(N=>{let B=v[N.id];B?.domId&&(B.domId.attr("transform",`translate(${N.x}, ${N.y})`),B.x=N.x,B.y=N.y,d.debug(`Positioned node ${B.id} at center (${N.x}, ${N.y})`))}),I.edges.forEach(N=>{let B=r.edges.find(O=>O.id===N.id);B&&(B.points=[{x:N.startX,y:N.startY},{x:N.midX,y:N.midY},{x:N.endX,y:N.endY}])}),d.debug("Inserting and positioning edges"),await Promise.all(r.edges.map(async N=>{let B=await l(R,N),O=v[N.start??""],P=v[N.end??""];if(O&&P){let $=I.edges.find(V=>V.id===N.id);if($){d.debug("APA01 positionedEdge",$);let V={...N},Y=s(S,V,T,r.type,O,P,r.diagramId);m(V,Y)}else{let V={...N,points:[{x:O.x||0,y:O.y||0},{x:P.x||0,y:P.y||0}]},Y=s(S,V,T,r.type,O,P,r.diagramId);m(V,Y)}}})),d.debug("Cose-bilkent rendering completed")},"render")});var bRr={};is(bRr,{render:()=>Rei});var Rei,vRr=ae(()=>{"use strict";yRr();Rei=mRr});var Tie,pit,Lei,_ei,xy,dit,Ty,PS=ae(()=>{"use strict";t2r();Yn();bZe();mZe();n2r();Tie=Object.create(null),pit=i(r=>{for(let t of r)Tie[t.name]=t},"registerLayoutLoaders"),Lei=i(()=>{let r=i(async()=>await Promise.resolve().then(()=>(uCr(),cCr)),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...r2r.map(t=>({name:t,loader:r,algorithm:t}))]},"elkLayoutLoaders"),_ei=i(()=>{pit([{name:"dagre",loader:i(async()=>await Promise.resolve().then(()=>(jEr(),GEr)),"loader")},{name:"swimlane",loader:i(async()=>await Promise.resolve().then(()=>(j5r(),G5r)),"loader")},{name:"cose-bilkent",loader:i(async()=>await Promise.resolve().then(()=>(vRr(),bRr)),"loader")},...Lei()])},"registerDefaultLayoutLoaders");_ei();xy=i(async(r,t)=>{if(!Object.hasOwn(Tie,r.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let h of r.nodes){let f=h.domId||h.id;h.domId=`${r.diagramId}-${f}`}let a=Tie[r.layoutAlgorithm],s=await a.loader();zwe(t,r.config);let l=await s.render(r,t,e2r,{algorithm:a.algorithm});return zvr(t.node()),l},"render"),dit="dagre",Ty=i((r="",{fallback:t=dit}={})=>{if(Object.hasOwn(Tie,r))return r;for(let a of[t,dit])if(Object.hasOwn(Tie,a))return Pe.warn(`Layout algorithm ${r} is not registered. Using ${a} as fallback.`),a;throw new Error(`Neither layout algorithm ${r}, ${t}, nor ${dit} is registered.`)},"getRegisteredLayoutAlgorithm")});var Sm,Dei,Iei,BS=ae(()=>{"use strict";$h();Yn();Sm=i((r,t,a,s)=>{r.attr("class",a);let{width:l,height:h,x:f,y:d}=Dei(r,t);wl(r,h,l,s);let m=Iei(f,d,l,h,t);r.attr("viewBox",m),Pe.debug(`viewBox configured: ${m} with padding: ${t}`)},"setupViewPortForSVG"),Dei=i((r,t)=>{let a=r.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:a.width+t*2,height:a.height+t*2,x:a.x,y:a.y}},"calculateDimensionsWithPadding"),Iei=i((r,t,a,s,l)=>`${r-l} ${t-l} ${a} ${s}`,"createViewBox")});var Mei,Nei,wRr,xRr=ae(()=>{"use strict";ma();Yn();FA();PS();BS();Ma();Mei=i(function(r,t){return t.db.getClasses()},"getClasses"),Nei=i(async function(r,t,a,s){Pe.info("REF0:"),Pe.info("Drawing state diagram (v2)",t);let{securityLevel:l,flowchart:h,layout:f}=er();s.db.setDiagramId(t),Pe.debug("Before getData: ");let d=s.db.getData();Pe.debug("Data: ",d);let m=dy(t,l),b=s.db.getDirection();d.type=s.type,d.layoutAlgorithm=Ty(f),d.direction=b,d.nodeSpacing=h?.nodeSpacing||50,d.rankSpacing=h?.rankSpacing||50,d.markers=["point","circle","cross"],d.diagramId=t,Pe.debug("REF1:",d),await xy(d,m);let v=d.config.flowchart?.diagramPadding??8;Va.insertTitle(m,"flowchartTitleText",h?.titleTopMargin||0,s.db.getDiagramTitle()),Sm(m,v,"flowchart",h?.useMaxWidth||!1)},"draw"),wRr={getClasses:Mei,draw:Nei}});var git,mit,TRr=ae(()=>{"use strict";git=(function(){var r=i(function(xi,Pn,Vn,la){for(Vn=Vn||{},la=xi.length;la--;Vn[xi[la]]=Pn);return Vn},"o"),t=[1,4],a=[1,3],s=[1,5],l=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],h=[2,2],f=[1,13],d=[1,14],m=[1,15],b=[1,16],v=[1,23],T=[1,25],C=[1,26],E=[1,27],S=[1,50],R=[1,49],L=[1,29],_=[1,30],I=[1,31],N=[1,32],B=[1,33],O=[1,45],P=[1,47],$=[1,43],V=[1,48],Y=[1,44],Q=[1,51],q=[1,46],W=[1,52],H=[1,53],re=[1,34],Z=[1,35],X=[1,36],te=[1,37],U=[1,38],ne=[1,58],se=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],he=[1,62],le=[1,61],pe=[1,63],ge=[8,9,11,75,77,78],we=[1,79],Ae=[1,92],ve=[1,97],Ie=[1,96],De=[1,93],Be=[1,89],Fe=[1,95],ze=[1,91],vt=[1,98],lt=[1,94],Ft=[1,99],pr=[1,90],tr=[8,9,10,11,40,75,77,78],Mt=[8,9,10,11,40,46,75,77,78],ot=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],it=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],mt=[44,60,89,102,105,106,109,111,114,115,116],Rt=[1,122],pt=[1,123],gt=[1,125],ut=[1,124],Yt=[44,60,62,74,89,102,105,106,109,111,114,115,116],Ye=[1,134],Oe=[1,148],K=[1,149],Te=[1,150],ce=[1,151],Re=[1,136],me=[1,138],be=[1,142],ke=[1,143],We=[1,144],Ue=[1,145],rt=[1,146],nt=[1,147],Ot=[1,152],ft=[1,153],Qt=[1,132],$t=[1,133],qt=[1,140],Gt=[1,135],jt=[1,139],Zr=[1,137],yt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$n=[1,155],Ut=[1,157],An=[8,9,11],Un=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],En=[1,177],ai=[1,173],Gn=[1,174],ui=[1,178],Tn=[1,175],Wi=[1,176],Pa=[77,116,119],qe=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Rn=[1,205],Mn=[10,106],ct=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],dr=[1,249],Kr=[1,247],pn=[1,251],Bn=[1,245],Hs=[1,246],Ki=[1,248],so=[1,250],js=[1,252],ls=[1,270],Ba=[8,9,11,106],cs=[8,9,10,11,60,84,105,106,109,110,111,112],ln={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,5],[20,3],[20,4],[20,2],[20,2],[20,3],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:i(function(Pn,Vn,la,Ln,Zi,kt,Iu){var It=kt.length-1;switch(Zi){case 2:this.$=[];break;case 3:(!Array.isArray(kt[It])||kt[It].length>0)&&kt[It-1].push(kt[It]),this.$=kt[It-1];break;case 4:case 185:this.$=kt[It];break;case 11:Ln.setDirection("TB"),this.$="TB";break;case 12:Ln.setDirection(kt[It-1]),this.$=kt[It-1];break;case 27:this.$=kt[It-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Ln.addSubGraph(kt[It-6],kt[It-1],kt[It-4]);break;case 34:this.$=Ln.addSubGraph(kt[It-3],kt[It-1],kt[It-3]);break;case 35:this.$=Ln.addSubGraph(void 0,kt[It-1],void 0);break;case 37:this.$=kt[It].trim(),Ln.setAccTitle(this.$);break;case 38:case 39:this.$=kt[It].trim(),Ln.setAccDescription(this.$);break;case 43:this.$=kt[It-1]+kt[It];break;case 44:this.$=kt[It];break;case 45:Ln.addVertex(kt[It-1][kt[It-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,kt[It]),Ln.addLink(kt[It-3].stmt,kt[It-1],kt[It-2]),this.$={stmt:kt[It-1],nodes:kt[It-1].concat(kt[It-3].nodes)};break;case 46:Ln.addVertex(kt[It-2][kt[It-2].length-1],void 0,void 0,void 0,void 0,void 0,void 0,kt[It-1]),Ln.addLink(kt[It-4].stmt,kt[It-2],kt[It-3]),this.$={stmt:kt[It-2],nodes:kt[It-2].concat(kt[It-4].nodes)};break;case 47:Ln.addLink(kt[It-2].stmt,kt[It],kt[It-1]),this.$={stmt:kt[It],nodes:kt[It].concat(kt[It-2].nodes)};break;case 48:Ln.addLink(kt[It-3].stmt,kt[It-1],kt[It-2]),this.$={stmt:kt[It-1],nodes:kt[It-1].concat(kt[It-3].nodes)};break;case 49:this.$={stmt:kt[It-1],nodes:kt[It-1]};break;case 50:Ln.addVertex(kt[It-1][kt[It-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,kt[It]),this.$={stmt:kt[It-1],nodes:kt[It-1],shapeData:kt[It]};break;case 51:Ln.addVertex(kt[It-2][kt[It-2].length-1],void 0,void 0,void 0,void 0,void 0,void 0,kt[It-1]),this.$={stmt:kt[It-2],nodes:kt[It-2],shapeData:kt[It-1]};break;case 52:this.$={stmt:kt[It],nodes:kt[It]};break;case 53:this.$=[kt[It]];break;case 54:Ln.addVertex(kt[It-5][kt[It-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,kt[It-4]),this.$=kt[It-5].concat(kt[It]);break;case 55:this.$=kt[It-4].concat(kt[It]);break;case 56:this.$=kt[It];break;case 57:this.$=kt[It-2],Ln.setClass(kt[It-2],kt[It]);break;case 58:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"square");break;case 59:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"doublecircle");break;case 60:this.$=kt[It-5],Ln.addVertex(kt[It-5],kt[It-2],"circle");break;case 61:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"ellipse");break;case 62:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"stadium");break;case 63:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"subroutine");break;case 64:this.$=kt[It-7],Ln.addVertex(kt[It-7],kt[It-1],"rect",void 0,void 0,void 0,Object.fromEntries([[kt[It-5],kt[It-3]]]));break;case 65:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"cylinder");break;case 66:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"round");break;case 67:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"diamond");break;case 68:this.$=kt[It-5],Ln.addVertex(kt[It-5],kt[It-2],"hexagon");break;case 69:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"odd");break;case 70:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"trapezoid");break;case 71:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"inv_trapezoid");break;case 72:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"lean_right");break;case 73:this.$=kt[It-3],Ln.addVertex(kt[It-3],kt[It-1],"lean_left");break;case 74:this.$=kt[It],Ln.addVertex(kt[It]);break;case 75:kt[It-1].text=kt[It],this.$=kt[It-1];break;case 76:case 77:kt[It-2].text=kt[It-1],this.$=kt[It-2];break;case 78:this.$=kt[It];break;case 79:var Ai=Ln.destructLink(kt[It],kt[It-2]);this.$={type:Ai.type,stroke:Ai.stroke,length:Ai.length,text:kt[It-1]};break;case 80:var Ai=Ln.destructLink(kt[It],kt[It-2]);this.$={type:Ai.type,stroke:Ai.stroke,length:Ai.length,text:kt[It-1],id:kt[It-3]};break;case 81:this.$={text:kt[It],type:"text"};break;case 82:this.$={text:kt[It-1].text+""+kt[It],type:kt[It-1].type};break;case 83:this.$={text:kt[It],type:"string"};break;case 84:this.$={text:kt[It],type:"markdown"};break;case 85:var Ai=Ln.destructLink(kt[It]);this.$={type:Ai.type,stroke:Ai.stroke,length:Ai.length};break;case 86:var Ai=Ln.destructLink(kt[It]);this.$={type:Ai.type,stroke:Ai.stroke,length:Ai.length,id:kt[It-1]};break;case 87:this.$=kt[It-1];break;case 88:this.$={text:kt[It],type:"text"};break;case 89:this.$={text:kt[It-1].text+""+kt[It],type:kt[It-1].type};break;case 90:this.$={text:kt[It],type:"string"};break;case 91:case 106:this.$={text:kt[It],type:"markdown"};break;case 103:this.$={text:kt[It],type:"text"};break;case 104:this.$={text:kt[It-1].text+""+kt[It],type:kt[It-1].type};break;case 105:this.$={text:kt[It],type:"text"};break;case 107:this.$=kt[It-4],Ln.addClass(kt[It-2],kt[It]);break;case 108:this.$=kt[It-4],Ln.setClass(kt[It-2],kt[It]);break;case 109:case 117:this.$=kt[It-1],Ln.setClickEvent(kt[It-1],kt[It]);break;case 110:case 118:this.$=kt[It-3],Ln.setClickEvent(kt[It-3],kt[It-2]),Ln.setTooltip(kt[It-3],kt[It]);break;case 111:this.$=kt[It-2],Ln.setClickEvent(kt[It-2],kt[It-1],kt[It]);break;case 112:this.$=kt[It-4],Ln.setClickEvent(kt[It-4],kt[It-3],kt[It-2]),Ln.setTooltip(kt[It-4],kt[It]);break;case 113:this.$=kt[It-2],Ln.setLink(kt[It-2],kt[It]);break;case 114:this.$=kt[It-4],Ln.setLink(kt[It-4],kt[It-2]),Ln.setTooltip(kt[It-4],kt[It]);break;case 115:this.$=kt[It-4],Ln.setLink(kt[It-4],kt[It-2],kt[It]);break;case 116:this.$=kt[It-6],Ln.setLink(kt[It-6],kt[It-4],kt[It]),Ln.setTooltip(kt[It-6],kt[It-2]);break;case 119:this.$=kt[It-1],Ln.setLink(kt[It-1],kt[It]);break;case 120:this.$=kt[It-3],Ln.setLink(kt[It-3],kt[It-2]),Ln.setTooltip(kt[It-3],kt[It]);break;case 121:this.$=kt[It-3],Ln.setLink(kt[It-3],kt[It-2],kt[It]);break;case 122:this.$=kt[It-5],Ln.setLink(kt[It-5],kt[It-4],kt[It]),Ln.setTooltip(kt[It-5],kt[It-2]);break;case 123:this.$=kt[It-4],Ln.addVertex(kt[It-2],void 0,void 0,kt[It]);break;case 124:this.$=kt[It-4],Ln.updateLink([kt[It-2]],kt[It]);break;case 125:this.$=kt[It-4],Ln.updateLink(kt[It-2],kt[It]);break;case 126:this.$=kt[It-8],Ln.updateLinkInterpolate([kt[It-6]],kt[It-2]),Ln.updateLink([kt[It-6]],kt[It]);break;case 127:this.$=kt[It-8],Ln.updateLinkInterpolate(kt[It-6],kt[It-2]),Ln.updateLink(kt[It-6],kt[It]);break;case 128:this.$=kt[It-6],Ln.updateLinkInterpolate([kt[It-4]],kt[It]);break;case 129:this.$=kt[It-6],Ln.updateLinkInterpolate(kt[It-4],kt[It]);break;case 130:case 132:this.$=[kt[It]];break;case 131:case 133:kt[It-2].push(kt[It]),this.$=kt[It-2];break;case 135:this.$=kt[It-1]+kt[It];break;case 183:this.$=kt[It];break;case 184:this.$=kt[It-1]+""+kt[It];break;case 186:this.$=kt[It-1]+""+kt[It];break;case 187:this.$={stmt:"dir",value:"TB"};break;case 188:this.$={stmt:"dir",value:"BT"};break;case 189:this.$={stmt:"dir",value:"RL"};break;case 190:this.$={stmt:"dir",value:"LR"};break;case 191:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:t,10:a,12:s},{1:[3]},r(l,h,{5:6}),{4:7,9:t,10:a,12:s},{4:8,9:t,10:a,12:s},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:f,9:d,10:m,11:b,20:17,22:18,23:19,24:20,25:21,26:22,27:v,33:24,34:T,36:C,38:E,42:28,43:39,44:S,45:40,47:41,60:R,84:L,85:_,86:I,87:N,88:B,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H,121:re,122:Z,123:X,124:te,125:U},r(l,[2,9]),r(l,[2,10]),r(l,[2,11]),{8:[1,55],9:[1,56],10:ne,15:54,18:57},r(se,[2,3]),r(se,[2,4]),r(se,[2,5]),r(se,[2,6]),r(se,[2,7]),r(se,[2,8]),{8:he,9:le,11:pe,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:he,9:le,11:pe,21:68},{8:he,9:le,11:pe,21:69},{8:he,9:le,11:pe,21:70},{8:he,9:le,11:pe,21:71},{8:he,9:le,11:pe,21:72},{8:he,9:le,10:[1,73],11:pe,21:74},r(se,[2,36]),{35:[1,75]},{37:[1,76]},r(se,[2,39]),r(ge,[2,52],{18:77,39:78,10:ne,40:we}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Ae,44:ve,60:Ie,80:[1,87],89:De,95:[1,84],97:[1,85],101:86,105:Be,106:Fe,109:ze,111:vt,114:lt,115:Ft,116:pr,120:88},r(se,[2,187]),r(se,[2,188]),r(se,[2,189]),r(se,[2,190]),r(se,[2,191]),r(tr,[2,53]),r(tr,[2,56],{46:[1,100]}),r(Mt,[2,74],{113:113,29:[1,101],44:S,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:R,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:O,102:P,105:$,106:V,109:Y,111:Q,114:q,115:W,116:H}),r(ot,[2,183]),r(ot,[2,144]),r(ot,[2,145]),r(ot,[2,146]),r(ot,[2,147]),r(ot,[2,148]),r(ot,[2,149]),r(ot,[2,150]),r(ot,[2,151]),r(ot,[2,152]),r(ot,[2,153]),r(ot,[2,154]),r(l,[2,12]),r(l,[2,18]),r(l,[2,19]),{9:[1,114]},r(it,[2,26],{18:115,10:ne}),r(se,[2,27]),{42:116,43:39,44:S,45:40,47:41,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H},r(se,[2,40]),r(se,[2,41]),r(se,[2,42]),r(mt,[2,78],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Rt,81:pt,116:gt,119:ut},{75:[1,126],77:[1,127]},r(Yt,[2,85]),r(se,[2,28]),r(se,[2,29]),r(se,[2,30]),r(se,[2,31]),r(se,[2,32]),{10:Ye,12:Oe,14:K,27:Te,28:128,32:ce,44:Re,60:me,75:be,80:[1,130],81:[1,131],83:141,84:ke,85:We,86:Ue,87:rt,88:nt,89:Ot,90:ft,91:129,105:Qt,109:$t,111:qt,114:Gt,115:jt,116:Zr},r(yt,h,{5:154}),r(se,[2,37]),r(se,[2,38]),r(ge,[2,49],{44:$n}),r(ge,[2,50],{18:156,10:ne,40:Ut}),r(tr,[2,44]),{44:S,47:158,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H},{102:[1,159],103:160,105:[1,161]},{44:S,47:162,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H},{44:S,47:163,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H},r(An,[2,109],{10:[1,164],96:[1,165]}),{80:[1,166]},r(An,[2,117],{120:168,10:[1,167],14:Ae,44:ve,60:Ie,89:De,105:Be,106:Fe,109:ze,111:vt,114:lt,115:Ft,116:pr}),r(An,[2,119],{10:[1,169]}),r(Un,[2,185]),r(Un,[2,172]),r(Un,[2,173]),r(Un,[2,174]),r(Un,[2,175]),r(Un,[2,176]),r(Un,[2,177]),r(Un,[2,178]),r(Un,[2,179]),r(Un,[2,180]),r(Un,[2,181]),r(Un,[2,182]),{44:S,47:170,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H},{30:171,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:179,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:181,50:[1,180],67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:182,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:183,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:184,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{109:[1,185]},{30:186,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:187,65:[1,188],67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:189,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:190,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{30:191,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},r(ot,[2,184]),r(l,[2,20]),r(it,[2,25]),r(ge,[2,47],{39:192,18:193,10:ne,40:we}),r(mt,[2,75],{10:[1,194]}),{10:[1,195]},{30:196,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{77:[1,197],79:198,116:gt,119:ut},r(Pa,[2,81]),r(Pa,[2,83]),r(Pa,[2,84]),r(Pa,[2,170]),r(Pa,[2,171]),{76:199,79:121,80:Rt,81:pt,116:gt,119:ut},r(Yt,[2,86]),{8:he,9:le,10:Ye,11:pe,12:Oe,14:K,21:201,27:Te,29:[1,200],32:ce,44:Re,60:me,75:be,83:141,84:ke,85:We,86:Ue,87:rt,88:nt,89:Ot,90:ft,91:202,105:Qt,109:$t,111:qt,114:Gt,115:jt,116:Zr},r(qe,[2,103]),r(qe,[2,105]),r(qe,[2,106]),r(qe,[2,159]),r(qe,[2,160]),r(qe,[2,161]),r(qe,[2,162]),r(qe,[2,163]),r(qe,[2,164]),r(qe,[2,165]),r(qe,[2,166]),r(qe,[2,167]),r(qe,[2,168]),r(qe,[2,169]),r(qe,[2,92]),r(qe,[2,93]),r(qe,[2,94]),r(qe,[2,95]),r(qe,[2,96]),r(qe,[2,97]),r(qe,[2,98]),r(qe,[2,99]),r(qe,[2,100]),r(qe,[2,101]),r(qe,[2,102]),{6:11,7:12,8:f,9:d,10:m,11:b,20:17,22:18,23:19,24:20,25:21,26:22,27:v,32:[1,203],33:24,34:T,36:C,38:E,42:28,43:39,44:S,45:40,47:41,60:R,84:L,85:_,86:I,87:N,88:B,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H,121:re,122:Z,123:X,124:te,125:U},{10:ne,18:204},r(ge,[2,51],{44:Rn}),r(tr,[2,43]),{10:[1,206],44:S,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:113,114:q,115:W,116:H},{10:[1,207]},{10:[1,208],106:[1,209]},r(Mn,[2,130]),{10:[1,210],44:S,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:113,114:q,115:W,116:H},{10:[1,211],44:S,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:113,114:q,115:W,116:H},{80:[1,212]},r(An,[2,111],{10:[1,213]}),r(An,[2,113],{10:[1,214]}),{80:[1,215]},r(Un,[2,186]),{80:[1,216],98:[1,217]},r(tr,[2,57],{113:113,44:S,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,114:q,115:W,116:H}),{31:[1,218],67:En,82:219,116:ui,117:Tn,118:Wi},r(ct,[2,88]),r(ct,[2,90]),r(ct,[2,91]),r(ct,[2,155]),r(ct,[2,156]),r(ct,[2,157]),r(ct,[2,158]),{49:[1,220],67:En,82:219,116:ui,117:Tn,118:Wi},{30:221,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{51:[1,222],67:En,82:219,116:ui,117:Tn,118:Wi},{53:[1,223],67:En,82:219,116:ui,117:Tn,118:Wi},{55:[1,224],67:En,82:219,116:ui,117:Tn,118:Wi},{57:[1,225],67:En,82:219,116:ui,117:Tn,118:Wi},{60:[1,226]},{64:[1,227],67:En,82:219,116:ui,117:Tn,118:Wi},{66:[1,228],67:En,82:219,116:ui,117:Tn,118:Wi},{30:229,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},{31:[1,230],67:En,82:219,116:ui,117:Tn,118:Wi},{67:En,69:[1,231],71:[1,232],82:219,116:ui,117:Tn,118:Wi},{67:En,69:[1,234],71:[1,233],82:219,116:ui,117:Tn,118:Wi},r(ge,[2,45],{18:235,10:ne,40:Ut}),r(ge,[2,48],{44:$n}),r(mt,[2,77]),r(mt,[2,76]),{62:[1,236],67:En,82:219,116:ui,117:Tn,118:Wi},r(mt,[2,79]),r(Pa,[2,82]),{77:[1,237],79:198,116:gt,119:ut},{30:238,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},r(yt,h,{5:239}),r(qe,[2,104]),r(se,[2,35]),{43:240,44:S,45:40,47:41,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H},{10:ne,18:241},{10:dr,60:Kr,84:pn,92:242,105:Bn,107:243,108:244,109:Hs,110:Ki,111:so,112:js},{10:dr,60:Kr,84:pn,92:253,104:[1,254],105:Bn,107:243,108:244,109:Hs,110:Ki,111:so,112:js},{10:dr,60:Kr,84:pn,92:255,104:[1,256],105:Bn,107:243,108:244,109:Hs,110:Ki,111:so,112:js},{105:[1,257]},{10:dr,60:Kr,84:pn,92:258,105:Bn,107:243,108:244,109:Hs,110:Ki,111:so,112:js},{44:S,47:259,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H},r(An,[2,110]),{80:[1,260]},{80:[1,261],98:[1,262]},r(An,[2,118]),r(An,[2,120],{10:[1,263]}),r(An,[2,121]),r(Mt,[2,58]),r(ct,[2,89]),r(Mt,[2,59]),{51:[1,264],67:En,82:219,116:ui,117:Tn,118:Wi},r(Mt,[2,66]),r(Mt,[2,61]),r(Mt,[2,62]),r(Mt,[2,63]),{109:[1,265]},r(Mt,[2,65]),r(Mt,[2,67]),{66:[1,266],67:En,82:219,116:ui,117:Tn,118:Wi},r(Mt,[2,69]),r(Mt,[2,70]),r(Mt,[2,72]),r(Mt,[2,71]),r(Mt,[2,73]),r(ge,[2,46],{44:Rn}),r([10,44,60,89,102,105,106,109,111,114,115,116],[2,87]),r(mt,[2,80]),{31:[1,267],67:En,82:219,116:ui,117:Tn,118:Wi},{6:11,7:12,8:f,9:d,10:m,11:b,20:17,22:18,23:19,24:20,25:21,26:22,27:v,32:[1,268],33:24,34:T,36:C,38:E,42:28,43:39,44:S,45:40,47:41,60:R,84:L,85:_,86:I,87:N,88:B,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H,121:re,122:Z,123:X,124:te,125:U},r(tr,[2,55]),{43:269,44:S,45:40,47:41,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H},r(An,[2,123],{106:ls}),r(Ba,[2,132],{108:271,10:dr,60:Kr,84:pn,105:Bn,109:Hs,110:Ki,111:so,112:js}),r(cs,[2,134]),r(cs,[2,136]),r(cs,[2,137]),r(cs,[2,138]),r(cs,[2,139]),r(cs,[2,140]),r(cs,[2,141]),r(cs,[2,142]),r(cs,[2,143]),r(An,[2,124],{106:ls}),{10:[1,272]},r(An,[2,125],{106:ls}),{10:[1,273]},r(Mn,[2,131]),r(An,[2,107],{106:ls}),r(An,[2,108],{113:113,44:S,60:R,89:O,102:P,105:$,106:V,109:Y,111:Q,114:q,115:W,116:H}),r(An,[2,112]),r(An,[2,114],{10:[1,274]}),r(An,[2,115]),{98:[1,275]},{51:[1,276]},{62:[1,277]},{66:[1,278]},{8:he,9:le,11:pe,21:279},r(se,[2,34]),r(tr,[2,54]),{10:dr,60:Kr,84:pn,105:Bn,107:280,108:244,109:Hs,110:Ki,111:so,112:js},r(cs,[2,135]),{14:Ae,44:ve,60:Ie,89:De,101:281,105:Be,106:Fe,109:ze,111:vt,114:lt,115:Ft,116:pr,120:88},{14:Ae,44:ve,60:Ie,89:De,101:282,105:Be,106:Fe,109:ze,111:vt,114:lt,115:Ft,116:pr,120:88},{98:[1,283]},r(An,[2,122]),r(Mt,[2,60]),{30:284,67:En,80:ai,81:Gn,82:172,116:ui,117:Tn,118:Wi},r(Mt,[2,68]),r(yt,h,{5:285}),r(Ba,[2,133],{108:271,10:dr,60:Kr,84:pn,105:Bn,109:Hs,110:Ki,111:so,112:js}),r(An,[2,128],{120:168,10:[1,286],14:Ae,44:ve,60:Ie,89:De,105:Be,106:Fe,109:ze,111:vt,114:lt,115:Ft,116:pr}),r(An,[2,129],{120:168,10:[1,287],14:Ae,44:ve,60:Ie,89:De,105:Be,106:Fe,109:ze,111:vt,114:lt,115:Ft,116:pr}),r(An,[2,116]),{31:[1,288],67:En,82:219,116:ui,117:Tn,118:Wi},{6:11,7:12,8:f,9:d,10:m,11:b,20:17,22:18,23:19,24:20,25:21,26:22,27:v,32:[1,289],33:24,34:T,36:C,38:E,42:28,43:39,44:S,45:40,47:41,60:R,84:L,85:_,86:I,87:N,88:B,89:O,102:P,105:$,106:V,109:Y,111:Q,113:42,114:q,115:W,116:H,121:re,122:Z,123:X,124:te,125:U},{10:dr,60:Kr,84:pn,92:290,105:Bn,107:243,108:244,109:Hs,110:Ki,111:so,112:js},{10:dr,60:Kr,84:pn,92:291,105:Bn,107:243,108:244,109:Hs,110:Ki,111:so,112:js},r(Mt,[2,64]),r(se,[2,33]),r(An,[2,126],{106:ls}),r(An,[2,127],{106:ls})],defaultActions:{},parseError:i(function(Pn,Vn){if(Vn.recoverable)this.trace(Pn);else{var la=new Error(Pn);throw la.hash=Vn,la}},"parseError"),parse:i(function(Pn){var Vn=this,la=[0],Ln=[],Zi=[null],kt=[],Iu=this.table,It="",Ai=0,da=0,sa=0,Lr=2,Xa=1,Ze=kt.slice.call(arguments,1),xa=Object.create(this.lexer),at={yy:{}};for(var pl in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pl)&&(at.yy[pl]=this.yy[pl]);xa.setInput(Pn,at.yy),at.yy.lexer=xa,at.yy.parser=this,typeof xa.yylloc>"u"&&(xa.yylloc={});var Dm=xa.yylloc;kt.push(Dm);var I2=xa.options&&xa.options.ranges;typeof at.yy.parseError=="function"?this.parseError=at.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function M2(Vg){la.length=la.length-2*Vg,Zi.length=Zi.length-Vg,kt.length=kt.length-Vg}i(M2,"popStack");function Ug(){var Vg;return Vg=Ln.pop()||xa.lex()||Xa,typeof Vg!="number"&&(Vg instanceof Array&&(Ln=Vg,Vg=Ln.pop()),Vg=Vn.symbols_[Vg]||Vg),Vg}i(Ug,"lex");for(var uh,al,sd,$l,pk,gk,Im={},N2,mu,mk,$0;;){if(sd=la[la.length-1],this.defaultActions[sd]?$l=this.defaultActions[sd]:((uh===null||typeof uh>"u")&&(uh=Ug()),$l=Iu[sd]&&Iu[sd][uh]),typeof $l>"u"||!$l.length||!$l[0]){var Rp="";$0=[];for(N2 in Iu[sd])this.terminals_[N2]&&N2>Lr&&$0.push("'"+this.terminals_[N2]+"'");xa.showPosition?Rp="Parse error on line "+(Ai+1)+`:
|
|
`+xa.showPosition()+`
|
|
Expecting `+$0.join(", ")+", got '"+(this.terminals_[uh]||uh)+"'":Rp="Parse error on line "+(Ai+1)+": Unexpected "+(uh==Xa?"end of input":"'"+(this.terminals_[uh]||uh)+"'"),this.parseError(Rp,{text:xa.match,token:this.terminals_[uh]||uh,line:xa.yylineno,loc:Dm,expected:$0})}if($l[0]instanceof Array&&$l.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sd+", token: "+uh);switch($l[0]){case 1:la.push(uh),Zi.push(xa.yytext),kt.push(xa.yylloc),la.push($l[1]),uh=null,al?(uh=al,al=null):(da=xa.yyleng,It=xa.yytext,Ai=xa.yylineno,Dm=xa.yylloc,sa>0&&sa--);break;case 2:if(mu=this.productions_[$l[1]][1],Im.$=Zi[Zi.length-mu],Im._$={first_line:kt[kt.length-(mu||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(mu||1)].first_column,last_column:kt[kt.length-1].last_column},I2&&(Im._$.range=[kt[kt.length-(mu||1)].range[0],kt[kt.length-1].range[1]]),gk=this.performAction.apply(Im,[It,da,Ai,at.yy,$l[1],Zi,kt].concat(Ze)),typeof gk<"u")return gk;mu&&(la=la.slice(0,-1*mu*2),Zi=Zi.slice(0,-1*mu),kt=kt.slice(0,-1*mu)),la.push(this.productions_[$l[1]][0]),Zi.push(Im.$),kt.push(Im._$),mk=Iu[la[la.length-2]][la[la.length-1]],la.push(mk);break;case 3:return!0}}return!0},"parse")},Vr=(function(){var xi={EOF:1,parseError:i(function(Vn,la){if(this.yy.parser)this.yy.parser.parseError(Vn,la);else throw new Error(Vn)},"parseError"),setInput:i(function(Pn,Vn){return this.yy=Vn||this.yy||{},this._input=Pn,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var Pn=this._input[0];this.yytext+=Pn,this.yyleng++,this.offset++,this.match+=Pn,this.matched+=Pn;var Vn=Pn.match(/(?:\r\n?|\n).*/g);return Vn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Pn},"input"),unput:i(function(Pn){var Vn=Pn.length,la=Pn.split(/(?:\r\n?|\n)/g);this._input=Pn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Vn),this.offset-=Vn;var Ln=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),la.length-1&&(this.yylineno-=la.length-1);var Zi=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:la?(la.length===Ln.length?this.yylloc.first_column:0)+Ln[Ln.length-la.length].length-la[0].length:this.yylloc.first_column-Vn},this.options.ranges&&(this.yylloc.range=[Zi[0],Zi[0]+this.yyleng-Vn]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(Pn){this.unput(this.match.slice(Pn))},"less"),pastInput:i(function(){var Pn=this.matched.substr(0,this.matched.length-this.match.length);return(Pn.length>20?"...":"")+Pn.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var Pn=this.match;return Pn.length<20&&(Pn+=this._input.substr(0,20-Pn.length)),(Pn.substr(0,20)+(Pn.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var Pn=this.pastInput(),Vn=new Array(Pn.length+1).join("-");return Pn+this.upcomingInput()+`
|
|
`+Vn+"^"},"showPosition"),test_match:i(function(Pn,Vn){var la,Ln,Zi;if(this.options.backtrack_lexer&&(Zi={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Zi.yylloc.range=this.yylloc.range.slice(0))),Ln=Pn[0].match(/(?:\r\n?|\n).*/g),Ln&&(this.yylineno+=Ln.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ln?Ln[Ln.length-1].length-Ln[Ln.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Pn[0].length},this.yytext+=Pn[0],this.match+=Pn[0],this.matches=Pn,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Pn[0].length),this.matched+=Pn[0],la=this.performAction.call(this,this.yy,this,Vn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),la)return la;if(this._backtrack){for(var kt in Zi)this[kt]=Zi[kt];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Pn,Vn,la,Ln;this._more||(this.yytext="",this.match="");for(var Zi=this._currentRules(),kt=0;kt<Zi.length;kt++)if(la=this._input.match(this.rules[Zi[kt]]),la&&(!Vn||la[0].length>Vn[0].length)){if(Vn=la,Ln=kt,this.options.backtrack_lexer){if(Pn=this.test_match(la,Zi[kt]),Pn!==!1)return Pn;if(this._backtrack){Vn=!1;continue}else return!1}else if(!this.options.flex)break}return Vn?(Pn=this.test_match(Vn,Zi[Ln]),Pn!==!1?Pn:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var Vn=this.next();return Vn||this.lex()},"lex"),begin:i(function(Vn){this.conditionStack.push(Vn)},"begin"),popState:i(function(){var Vn=this.conditionStack.length-1;return Vn>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(Vn){return Vn=this.conditionStack.length-1-Math.abs(Vn||0),Vn>=0?this.conditionStack[Vn]:"INITIAL"},"topState"),pushState:i(function(Vn){this.begin(Vn)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(Vn,la,Ln,Zi){var kt=Zi;switch(Ln){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),la.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Iu=/\n\s*/g;return la.yytext=la.yytext.replace(Iu,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return Vn.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return Vn.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return Vn.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return Vn.lex.firstGraph()&&this.begin("dir"),12;break;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"\[\]\(\)\{\}\|]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return xi})();ln.lexer=Vr;function gn(){this.yy={}}return i(gn,"Parser"),gn.prototype=ln,ln.Parser=gn,new gn})();git.parser=git;mit=git});var kRr,CRr,ERr=ae(()=>{"use strict";TRr();kRr=Object.assign({},mit);kRr.parse=r=>{let t=r.replace(/}\s*\n/g,`}
|
|
`);return mit.parse(t)};CRr=kRr});var ak,AP=ae(()=>{"use strict";ak=i(()=>`
|
|
/* Font Awesome icon styling - consolidated */
|
|
.label-icon {
|
|
display: inline-block;
|
|
height: 1em;
|
|
overflow: visible;
|
|
vertical-align: -0.125em;
|
|
}
|
|
|
|
.node .label-icon path {
|
|
fill: currentColor;
|
|
stroke: revert;
|
|
stroke-width: revert;
|
|
}
|
|
`,"getIconStyles")});var Oei,Pei,Bei,Ake,yit=ae(()=>{"use strict";hp();AP();A0();Oei=i(r=>{let{theme:t,bkgColorArray:a,borderColorArray:s}=r;if(!S0(t,s))return"";let l=Pg(r.look),h=E0(a),f="";for(let d=0;d<VT(r.THEME_COLOR_LIMIT,s);d++){let m=s[d%s.length],b=h?`fill: ${a[d%a.length]};`:"",v=`[data-look="${l}"][data-color-id="color-${d}"]`,T=i(E=>`${v}.node ${E}, ${v}.rough-node ${E}`,"collapsedRule"),C=i(E=>`${v}.swimlane.cluster .swimlane-title${E}, ${v}.swimlane.cluster .swimlane-body${E}`,"laneRule");f+=`
|
|
|
|
${v}.cluster:not(.swimlane) rect {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
|
|
${v}.cluster:not(.swimlane) path {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
|
|
/* Lane, classic and neo. */
|
|
${v}.swimlane.cluster rect.swimlane-title,
|
|
${v}.swimlane.cluster rect.swimlane-body {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
|
|
/* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
|
|
${C(" path:nth-of-type(2)")} {
|
|
stroke: ${m};
|
|
}
|
|
${h?`
|
|
/* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
|
|
${C(" path:first-of-type")} {
|
|
stroke: ${a[d%a.length]};
|
|
}
|
|
`:""}
|
|
${T(".collapsed-group")},
|
|
${T(".collapsed-group path")} {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
|
|
/* The ellipsis dots and the separator take clusterBorder further down, so without
|
|
these the container is palette-coloured while its own markers are not. */
|
|
${T(".collapsed-indicator")} {
|
|
fill: ${m};
|
|
}
|
|
|
|
${T(".collapsed-separator")} {
|
|
stroke: ${m};
|
|
}
|
|
`}return f},"genColor"),Pei=i((r,t)=>{let a=m4,s=a(r,"r"),l=a(r,"g"),h=a(r,"b");return _d(s,l,h,t)},"fade"),Bei=i(r=>`${Oei(r)}
|
|
.label {
|
|
font-family: ${r.fontFamily};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
.cluster-label text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
.cluster-label span {
|
|
color: ${r.titleColor};
|
|
}
|
|
.cluster-label span p {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.label text,span {
|
|
fill: ${r.nodeTextColor||r.textColor};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: ${r.strokeWidth??1}px;
|
|
}
|
|
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
text-anchor: middle;
|
|
}
|
|
|
|
.node .katex path {
|
|
fill: #000;
|
|
stroke: #000;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.root .anchor path {
|
|
fill: ${r.lineColor} !important;
|
|
stroke-width: 0;
|
|
stroke: ${r.lineColor};
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: ${r.arrowheadColor};
|
|
}
|
|
|
|
.edgePaths .path {
|
|
stroke: ${r.lineColor};
|
|
stroke-width: ${r.strokeWidth??2}px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: ${r.lineColor};
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: ${r.edgeLabelBackground};
|
|
p {
|
|
background-color: ${r.edgeLabelBackground};
|
|
}
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: ${r.edgeLabelBackground};
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
/* For html labels only */
|
|
.labelBkg {
|
|
background-color: ${Pei(r.edgeLabelBackground,.5)};
|
|
// background-color:
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: ${r.clusterBkg};
|
|
stroke: ${r.clusterBorder};
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
.cluster span {
|
|
color: ${r.titleColor};
|
|
}
|
|
/* .cluster div {
|
|
color: ${r.titleColor};
|
|
} */
|
|
|
|
/* Collapsed subgraph node (@{ view: collapsed }) */
|
|
.node .collapsed-indicator {
|
|
fill: ${r.clusterBorder};
|
|
stroke: none;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.node .collapsed-separator {
|
|
stroke: ${r.clusterBorder};
|
|
stroke-width: 0.75px;
|
|
}
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: ${r.fontFamily};
|
|
font-size: 12px;
|
|
background: ${r.tertiaryColor};
|
|
border: 1px solid ${r.border2};
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.flowchartTitleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: ${r.textColor};
|
|
}
|
|
|
|
rect.text {
|
|
fill: none;
|
|
stroke-width: 0;
|
|
}
|
|
|
|
.icon-shape, .image-shape {
|
|
background-color: ${r.edgeLabelBackground};
|
|
p {
|
|
background-color: ${r.edgeLabelBackground};
|
|
padding: 2px;
|
|
}
|
|
.label rect {
|
|
opacity: 0.5;
|
|
background-color: ${r.edgeLabelBackground};
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
text-align: center;
|
|
}
|
|
${ak()}
|
|
`,"getStyles"),Ake=Bei});var bit={};is(bit,{createFlowDiagram:()=>Rke,diagram:()=>Fei});var Rke,Fei,Lke=ae(()=>{"use strict";ma();kvr();xRr();ERr();yit();Rke=i(({styles:r=Ake}={})=>({parser:CRr,get db(){return new Mwe},renderer:wRr,styles:r,init:i(t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,TA({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),Fei=Rke()});var TV,zei,Vqa,RRr=ae(()=>{"use strict";TV={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},zei=new Set([TV.SHAPE_UNSUPPORTED,TV.SHAPE_REMOVED,TV.CONTAINMENT_VIOLATION]),Vqa=new Set(Object.values(TV).filter(r=>!zei.has(r)))});function Cie(r){return r&&(Uei.get(r)??r)}function LRr(r,t){for(let a of r)if(!a.isGroup){if((!a.shape||a.shape==="squareRect"||a.shape==="rect")&&(a.shape=kie),Vei.has(a.shape)){let s=`shape "${a.shape}" was removed in v0.8.1, using "${kie}"`;t?.emitError?t.emitError("SHAPE_REMOVED",s,{nodeId:a.id}):Pe.warn(`agentflow: ${s}`),a.shape=kie;continue}if(!Wei.has(a.shape)){let s=`shape "${a.shape}" is not supported, using "${kie}"`;t?.emitWarning?t.emitWarning("SHAPE_UNSUPPORTED",s,{nodeId:a.id}):Pe.warn(`agentflow: ${s}`),a.shape=kie}}}var Uei,Vei,Wei,kie,_Rr=ae(()=>{"use strict";Yn();Uei=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),Vei=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),Wei=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),kie="roundedRect";i(Cie,"resolveShapeAlias");i(LRr,"normaliseNodeShapes")});function MRr(r,t,a){let s=er().themeVariables?.borderColorArray,l=Array.isArray(s)?s.length:0,h=a.size;for(let f of r??[]){if(f.isGroup||f.shape==="collapsedGroup"){let m=a.get(String(f.id))??h++;f.colorIndex=xit(m,l);continue}let d=t(String(f.id));d&&Eie.has(d)&&(f.cssClasses=`${f.cssClasses??""} ${vit(d)}`.replace(/\s+/g," ").trim())}}var Eie,DRr,vit,IRr,wit,xit,Tit=ae(()=>{"use strict";ma();Eie=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),DRr=Eie.size,vit=i(r=>`af-kind-${r}`,"kindClass"),IRr=[...Eie.keys()],wit=i(r=>Math.max(1,r-DRr),"containerSlotCount"),xit=i((r,t)=>{let a=DRr+r%wit(t);return t>0?a%t:a},"containerSlot");i(MRr,"assignColorSlots")});function Cit(r){if(Array.isArray(r))return r.map(a=>Cit(a));if(r===null||typeof r!="object")return r;let t={};for(let a of Object.keys(r))a==="__proto__"||a==="constructor"||a==="prototype"||(t[a]=Cit(r[a]));return t}function Yei(r){let t=!1,a=!1,s=0,l,h=[];for(let f of r.split(`
|
|
`)){if(l!==void 0){let v=f.length-f.trimStart().length;if(f.trim()===""||v>l){h.push(f);continue}l=void 0}let d=-1;for(let v=0;v<f.length;v++){let T=f[v];if(a)T==="\\"?v++:T==='"'&&(a=!1);else if(t)T==="'"&&(t=!1);else if(T==='"')a=!0;else if(T==="'")t=!0;else if(T==="#"&&(v===0||f[v-1]===" "||f[v-1]===" ")){d=v;break}else T==="["||T==="{"?s++:(T==="]"||T==="}")&&(s=Math.max(0,s-1))}if(t||a||s>0){h.push(f);continue}let m=d>=0?f.slice(0,d):f,b=d>=0?f.slice(d):"";if(/:\s*[>|][\d+-]*\s*$/.test(m)){l=f.length-f.trimStart().length,h.push(f);continue}h.push(m.replace(/,([\t ]*)$/,"$1")+b)}return h.join(`
|
|
`)}var NRr,kit,Hei,qei,_ke,ORr=ae(()=>{"use strict";zo();cU();ma();Yn();zre();Ma();nl();Au();IA();RRr();_Rr();Tit();QN();NRr="agentflow-",kit=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Hei=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),qei={flow:"flowGroup"};i(Cit,"stripPrototypeKeys");i(Yei,"stripLineTrailingCommas");_ke=class{constructor(){this.vertexCounter=0;this.config=er();this.vertices=new Map;this.edges=[];this.classes=new Map;this.subGraphs=[];this.subGraphLookup=new Map;this.globalNodes=new Set;this.connectors=new Map;this.tooltips=new Map;this.subCount=0;this.firstGraphFlag=!0;this.secCount=-1;this.posCrossRef=[];this.diagramId="";this.preserveCommentsWhenParsing=!0;this.frontmatterLineOffset=0;this.elementMappings=[];this.bareVertexMappings=new WeakSet;this.diagnostics=[];this.postParseValidationRun=!1;this.funs=[];this.setAccTitle=Os;this.setAccDescription=$s;this.setDiagramTitle=io;this.getAccTitle=Vs;this.getAccDescription=Ws;this.getDiagramTitle=Ks;this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{i(this,"AgentFlowDB")}sanitizeText(t){return Xn.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let a of this.vertices.values())if(a.id===t)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,a,s,l,h,f,d={},m,b){if(!t||t.trim().length===0)return;let v;if(m!==void 0){let _;m.includes(`
|
|
`)?_=m+`
|
|
`:_=`{
|
|
`+m+`
|
|
}`;try{v=P4(_,{schema:O4})??{}}catch(I){let N=m.includes(`
|
|
`)?Yei(m):m;if(N!==m)try{v=P4(N+`
|
|
`,{schema:O4})??{}}catch{this.rethrowMetadataYamlError(I,m,b)}else this.rethrowMetadataYamlError(I,m,b)}v=Cit(v)}let T;if(v&&typeof v.shape=="string"){let _=v;T=_.shape;let I=Cie(T);I&&I!==T&&(_.shape=I)}let C=this.subGraphLookup.get(t);if(C&&v){C.metadata={...C.metadata,...v};return}let E=this.connectors.get(t);if(E&&v){E.metadata={...E.metadata,...v};return}if(t==="connectors")return;let S=this.edges.find(_=>_.id===t);if(S){let _=v;_?.animate!==void 0&&(S.animate=_.animate),_?.animation!==void 0&&(S.animation=_.animation),_?.curve!==void 0&&(S.interpolate=_.curve),v&&(S.metadata={...S.metadata,...v});return}let R,L=this.vertices.get(t);if(L===void 0&&(L={id:t,labelType:"text",domId:NRr+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,L)),this.vertexCounter++,a!==void 0?(this.config=er(),R=this.sanitizeText(a.text.trim()),L.labelType=a.type,R.startsWith('"')&&R.endsWith('"')&&(R=R.substring(1,R.length-1)),L.text=R):L.text===void 0&&(L.text=t),s!==void 0&&(L.type=s),l?.forEach(_=>{L.styles.push(_)}),h?.forEach(_=>{L.classes.push(_)}),f!==void 0&&(L.dir=f),L.props===void 0?L.props=d:d!==void 0&&Object.assign(L.props,d),v){if(L.metadata={...L.metadata,...v},v.shape){let _=T??v.shape;if(typeof _!="string")throw this.positionedShapeError(`No such shape: ${JSON.stringify(_)}.`,b);if(_!==_.toLowerCase()||_.includes("_"))throw this.positionedShapeError(`No such shape: ${_}. Shape names should be lowercase.`,b);if(!Rwe(v.shape))throw this.positionedShapeError(`No such shape: ${v.shape}.`,b);L.type=v?.shape}v?.label&&(L.text=this.sanitizeText(v.label),L.labelType=this.sanitizeNodeLabelType(v?.labelType))}}positionedShapeError(t,a){let s=new Error(t);if(!a)return s;let l=a.first_line+this.frontmatterLineOffset;return Object.assign(s,{hash:{text:"",token:null,line:l-1,loc:{first_line:l,last_line:a.last_line+this.frontmatterLineOffset,first_column:a.first_column,last_column:a.last_column},expected:[]}}),s}rethrowMetadataYamlError(t,a,s){let l=t;if(!l||l.name!=="YAMLException"||!l.mark||!s)throw t;let h;try{let f=!a.includes(`
|
|
`),d=f?`{
|
|
`+a+`
|
|
}`:a+`
|
|
`,m=s.first_line+this.frontmatterLineOffset,b=s.first_column+2,v=i((_,I)=>f?{line:m,column:b+(_===1?I:0)}:{line:m+_,column:_===0?b+I:I},"toSource"),T=v(l.mark.line,l.mark.column),C=l.reason??(l.message??"").split(`
|
|
`)[0].replace(/\s*\(\d+:\d+\)\s*$/,""),E=d.split(`
|
|
`),S=[];if(f)S.push(1);else for(let _=l.mark.line-1;_<=l.mark.line+1;_++)_<0||_>=E.length||_===E.length-1&&E[_]===""&&_!==l.mark.line||S.push(_);let R=Math.max(...S.map(_=>String(v(_,0).line).length)),L=[];for(let _ of S){let I=v(_,0).line,N=` ${String(I).padStart(R)} | `;L.push(N+E[_].replace(/\t/g,"\u2192")),_===l.mark.line&&L.push("-".repeat(N.length+l.mark.column)+"^")}h={message:`${C} (${T.line}:${T.column+1})
|
|
|
|
${L.join(`
|
|
`)}`,markLine:T.line-1,markColumn:T.column,hash:{text:"",token:null,line:T.line-1,loc:{first_line:T.line,last_line:T.line,first_column:T.column,last_column:T.column+1},expected:[]}}}catch{}throw h&&(l.message=h.message,l.mark.line=h.markLine,l.mark.column=h.markColumn,l.hash=h.hash),l}addSingleLink(t,a,s,l){let d={start:t,end:a,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Pe.info("abc78 Got edge...",d);let m=s.text;if(m!==void 0&&(d.text=this.sanitizeText(m.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"')&&(d.text=d.text.substring(1,d.text.length-1)),d.labelType=this.sanitizeNodeLabelType(m.type)),s!==void 0&&(d.type=s.type,d.stroke=s.stroke,d.length=s.length>10?10:s.length,s.edgeSemantic&&(d.edgeSemantic=s.edgeSemantic)),l&&!this.edges.some(b=>b.id===l))d.id=l,d.isUserDefinedId=!0;else{let b=this.edges.filter(v=>v.start===d.start&&v.end===d.end);b.length===0?d.id=s2(d.start,d.end,{counter:0,prefix:"L"}):d.id=s2(d.start,d.end,{counter:b.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Pe.info("Pushing edge..."),this.edges.push(d);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
|
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t=="object"&&"id"in t&&typeof t.id=="string"}addLink(t,a,s){let l=this.isLinkData(s)?s.id.replace("@",""):void 0;Pe.info("addLink",t,a,l);for(let h of t)for(let f of a){let d=h===t[t.length-1],m=f===a[0];d&&m?this.addSingleLink(h,f,s,l):this.addSingleLink(h,f,s,void 0)}}updateLinkInterpolate(t,a){t.forEach(s=>{if(s==="default"){this.edges.defaultInterpolate=a;return}if(typeof s=="number"&&s>=this.edges.length)throw new Error(`The index ${s} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[s].interpolate=a})}updateLink(t,a){t.forEach(s=>{if(typeof s=="number"&&s>=this.edges.length)throw new Error(`The index ${s} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);s==="default"?this.edges.defaultStyle=a:(this.edges[s].style=a,(this.edges[s]?.style?.length??0)>0&&!this.edges[s]?.style?.some(l=>l?.startsWith("fill"))&&this.edges[s]?.style?.push("fill:none"))})}addClass(t,a){let s=a.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(l=>{let h=this.classes.get(l);h===void 0&&(h={id:l,styles:[],textStyles:[]},this.classes.set(l,h)),s?.forEach(f=>{if(/color/.exec(f)){let d=f.replace("fill","bgFill");h.textStyles.push(d)}h.styles.push(f)})})}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(t,a){for(let s of t.split(",")){let l=this.vertices.get(s);l&&l.classes.push(a);let h=this.edges.find(d=>d.id===s);h&&h.classes.push(a);let f=this.subGraphLookup.get(s);f&&f.classes.push(a)}}setTooltip(t,a){if(a!==void 0){a=this.sanitizeText(a);for(let s of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(s):s,a)}}setClickFun(t,a,s){if(er().securityLevel!=="loose"||a===void 0)return;let l=[];if(typeof s=="string"){l=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<l.length;f++){let d=l[f].trim();d.startsWith('"')&&d.endsWith('"')&&(d=d.substr(1,d.length-2)),l[f]=d}}l.length===0&&l.push(t);let h=this.vertices.get(t);h&&(h.haveCallback=!0,this.funs.push(()=>{let f=this.lookUpDomId(t),d=document.querySelector(`[id="${f}"]`);d!==null&&d.addEventListener("click",()=>{Va.runFunc(a,...l)},!1)}))}setLink(t,a,s){t.split(",").forEach(l=>{let h=this.vertices.get(l);h!==void 0&&(h.link=Va.formatUrl(a,this.config),h.linkTarget=s)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,a,s){t.split(",").forEach(l=>{this.setClickFun(l,a,s)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(a=>{a(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(t){return Hei.has(t.type)}getTools(){let t=[];for(let a of this.vertices.values())this.isToolDefinition(a)&&t.push(a);return t}getClasses(){return this.classes}setupToolTips(t){let a=n_();mn(t).select("svg").selectAll("g.node").on("mouseover",h=>{let f=mn(h.currentTarget),d=f.attr("title");if(d===null)return;let m=h.currentTarget?.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(f.attr("title")).style("left",window.scrollX+m.left+(m.right-m.left)/2+"px").style("top",window.scrollY+m.bottom+"px"),a.html(oy.sanitize(d)),f.classed("hover",!0)}).on("mouseout",h=>{a.transition().duration(500).style("opacity",0),mn(h.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=er(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,Ds()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,a,s,l){let h=t?.text?.trim(),f=s?.text;t===s&&s?.text&&/\s/.exec(s.text)&&(h=void 0);let m=i(S=>{let R={boolean:{},number:{},string:{}},L=[],_;return{nodeList:S.filter(function(N){let B=typeof N;return N.stmt&&N.stmt==="dir"?(_=N.value,!1):N.trim()===""?!1:B in R?R[B].hasOwnProperty(N)?!1:R[B][N]=!0:L.includes(N)?!1:L.push(N)}),dir:_}},"uniq")(a.flat()),b=m.nodeList,v=m.dir,T=er().flowchart??{};if(v=v??(T.inheritDir?this.getDirection()??er().direction??void 0:void 0),this.version==="gen-1")for(let S=0;S<b.length;S++)b[S]=this.lookUpDomId(b[S]);h=h??"subGraph"+this.subCount,f=f||"",f=this.sanitizeText(f),this.subCount=this.subCount+1;let C={id:h,nodes:b.filter(S=>S!==h&&!this.globalNodes.has(S)),title:f.trim(),classes:[],dir:v,labelType:this.sanitizeNodeLabelType(s?.type),type:l??"flow"};Pe.info("Adding",C.id,C.nodes,C.dir),C.nodes=this.makeUniq(C,this.subGraphs).nodes;let E=this.getPosForId(h);if(E!==-1){let S=this.subGraphs[E];for(let R of C.nodes)S.nodes.includes(R)||S.nodes.push(R);C.title&&(S.title=C.title),C.dir&&(S.dir=C.dir),C.type&&(S.type=C.type),this.subGraphLookup.set(h,S)}else this.subGraphs.push(C),this.subGraphLookup.set(h,C);return h}addGlobal(t){for(let a of t.flat()){if(typeof a!="string")continue;let s=a.trim();s!==""&&this.globalNodes.add(s)}for(let a of this.subGraphs)a.nodes=a.nodes.filter(s=>!this.globalNodes.has(s))}getPosForId(t){for(let[a,s]of this.subGraphs.entries())if(s.id===t)return a;return-1}indexNodes2(t,a){let s=this.subGraphs[a].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=a,this.subGraphs[a].id===t)return{result:!0,count:0};let l=0,h=1;for(;l<s.length;){let f=this.getPosForId(s[l]);if(f>=0){let d=this.indexNodes2(t,f);if(d.result)return{result:!0,count:h+d.count};h=h+d.count}l=l+1}return{result:!1,count:h}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}addConnector(t,a){let s=t?.text?.trim();if(!s)return"";let l=a?.text?.trim()??"",h=l.length>0?this.sanitizeText(l):s,f=this.connectors.get(s);return f?l.length>0&&(f.text=h):(f={id:s,labelType:"text",domId:NRr+s+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:h},this.connectors.set(s,f),this.vertices.set(s,f),this.vertexCounter++),s}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}computeEdgeSemantic(t,a){if(t==="arrow_point"&&a==="normal")return"sequence";if(t==="arrow_cross"&&a==="normal")return"failure";if(t==="arrow_open"&&a==="dotted")return"reference"}destructStartLink(t){let a=t.trim(),s="arrow_open",l="normal";return a.includes(".")&&(l="dotted"),{type:s,stroke:l}}countChar(t,a){let s=a.length,l=0;for(let h=0;h<s;++h)a[h]===t&&++l;return l}destructEndLink(t){let a=t.trim(),s=a.slice(0,-1),l="arrow_open";switch(a.slice(-1)){case"x":l="arrow_cross";break;case">":l="arrow_point";break;case"-":case".":l="arrow_open",s=a;break}let h="normal",f=s.length-1,d=this.countChar(".",s);return d>0&&(h="dotted",f=d),{type:l,stroke:h,length:f}}destructLink(t,a){let s=this.destructEndLink(t),l;return a?(l=this.destructStartLink(a),l.stroke!==s.stroke?{type:"INVALID",stroke:"INVALID"}:(l.type=s.type,l.length=s.length,{...l,edgeSemantic:this.computeEdgeSemantic(l.type,l.stroke)})):{...s,edgeSemantic:this.computeEdgeSemantic(s.type,s.stroke)}}exists(t,a){for(let s of t)if(s.nodes.includes(a))return!0;return!1}makeUniq(t,a){let s=[];return t.nodes.forEach((l,h)=>{this.exists(a,l)||s.push(t.nodes[h])}),{nodes:s}}getTypeFromVertex(t){let a=typeof t.type=="string"?Cie(t.type):t.type;switch(a){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return a}}findNode(t,a){return t.find(s=>s.id===a)}destructEdgeType(t){let a="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":a=t.replace("double_",""),s=a;break}return{arrowTypeStart:a,arrowTypeEnd:s}}addNodeFromVertex(t,a,s,l,h,f){let d=s.get(t.id),m=l.get(t.id)??!1,b=this.findNode(a,t.id);if(b)b.cssStyles=t.styles,b.cssCompiledStyles=this.getCompiledStyles(t.classes),b.cssClasses=t.classes.join(" ");else{let v={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:h.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:f,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),metadata:t.metadata};m?a.push({...v,isGroup:!0,shape:"rect"}):a.push({...v,isGroup:!1,shape:this.getTypeFromVertex(t),wrappingWidth:h.agentflow?.wrappingWidth,minWidth:h.agentflow?.minNodeWidth})}}getCompiledStyles(t){let a=[];for(let s of t){let l=this.classes.get(s);l?.styles&&(a=[...a,...l.styles??[]].map(h=>h.trim())),l?.textStyles&&(a=[...a,...l.textStyles??[]].map(h=>h.trim()))}return a}runPostParseValidators(){this.postParseValidationRun||(this.postParseValidationRun=!0)}getData(){this.runPostParseValidators();let t=er(),a=[],s=[],l=this.getSubGraphs(),h=new Map,f=new Map,d=new Set,m=new Map,b=i((I,N,B=new Set)=>{if(B.has(I))return;B.add(I);let O=this.subGraphLookup.get(I);if(O)for(let P of O.nodes)P===N||B.has(P)||(d.add(P),m.set(P,N),b(P,N,B))},"collectDescendants");for(let I of l)I.metadata?.view==="collapsed"&&!d.has(I.id)&&b(I.id,I.id);let v=i((I,N)=>{let B=new Set,O=N;for(;O!==void 0&&!B.has(O);){if(O===I)return!0;B.add(O),O=h.get(O)}return!1},"wouldCloseContainmentCycle");for(let I=l.length-1;I>=0;I--){let N=l[I];if(!d.has(N.id)){N.nodes.length>0&&f.set(N.id,!0);for(let B of N.nodes){if(v(B,N.id)){this.emitWarning(TV.CONTAINMENT_VIOLATION,`Container "${N.id}" cannot contain "${B}" because "${B}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:B});continue}h.set(B,N.id)}}}for(let I=l.length-1;I>=0;I--){let N=l[I];if(d.has(N.id))continue;if(N.metadata?.view==="collapsed"){let O={...N.metadata,containerType:N.type};a.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:h.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:"collapsedGroup",dir:N.dir,isGroup:!1,look:t.look,metadata:O})}else a.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:h.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:qei[N.type??"flow"],dir:N.dir,isGroup:!0,look:t.look,metadata:N.metadata})}this.getVertices().forEach(I=>{d.has(I.id)||this.addNodeFromVertex(I,a,h,f,t,t.look||"classic")});let C=this.getEdges();C.forEach((I,N)=>{let B=m.get(I.start)??I.start,O=m.get(I.end)??I.end;if(B===O&&I.start!==I.end)return;let{arrowTypeStart:P,arrowTypeEnd:$}=this.destructEdgeType(I.type),V=[...C.defaultStyle??[]];I.style&&V.push(...I.style);let Y={id:s2(B,O,{counter:N,prefix:"L"},I.id),isUserDefinedId:I.isUserDefinedId,start:B,end:O,type:I.type??"normal",label:I.text,labelType:I.labelType,labelpos:"c",thickness:I.stroke,minlen:I.length,classes:I?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:I?.stroke==="invisible"||I?.type==="arrow_open"?"none":P,arrowTypeEnd:I?.stroke==="invisible"||I?.type==="arrow_open"?"none":$,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(I.classes),labelStyle:V,style:V,pattern:I.stroke,look:t.look,animate:I.animate,animation:I.animation,curve:I.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve,metadata:I.metadata};s.push(Y)}),LRr(a,this);let E=new Map,S=new Map;for(let I of l){let N=h.get(I.id);N!==void 0&&S.set(N,[...S.get(N)??[],I.id])}let R=0,L=i(I=>{if(!E.has(I)){E.set(I,R++);for(let N of S.get(I)??[])L(N)}},"walkContainers");for(let I of l)h.get(I.id)===void 0&&L(I.id);let _=new Set(this.getConnectors().map(I=>I.id));return MRr(a,I=>{if(_.has(I))return"connector";let N=this.vertices.get(I);return N?this.deriveVertexKind(N,Cie(N.type)):void 0},E),{nodes:a,edges:s,other:{},config:t,connectors:this.getConnectors()}}defaultConfig(){return Az.flowchart}deriveVertexKind(t,a){return this.isToolDefinition(t)?"tool":a==="hexagon"||a==="hex"?"action":a==="lean-right"||a==="lean_right"?"input":a==="lin-doc"||a==="lined-document"?"refdoc":a==="diamond"?"decision":"task"}getSemanticModel(){this.runPostParseValidators();let t=new Set(this.subGraphs.map(d=>d.id)),a=[],s=[];for(let[d,m]of this.vertices){if(t.has(d))continue;if(m.isConnector){let T={id:d};if(m.text!==void 0&&m.text!==d&&(T.title=m.text),m.metadata&&Object.keys(m.metadata).length>0){let C={};for(let[E,S]of Object.entries(m.metadata))kit.has(E)||(C[E]=S);Object.keys(C).length>0&&(T.metadata=C)}s.push(T);continue}let b={id:d};m.text!==void 0&&(b.label=m.text);let v=typeof m.type=="string"?Cie(m.type):m.type;if(v!==void 0&&(b.shape=v),b.vertexKind=this.deriveVertexKind(m,v),m.metadata&&Object.keys(m.metadata).length>0){let T={};for(let[C,E]of Object.entries(m.metadata))kit.has(C)||(T[C]=E);Object.keys(T).length>0&&(b.metadata=T)}a.push(b)}let l=this.edges.map(d=>{let m={start:d.start,end:d.end};return d.id!==void 0&&(m.id=d.id),typeof d.text=="string"&&d.text.length>0&&(m.label=d.text),d.type!==void 0&&(m.type=d.type),d.stroke!==void 0&&(m.stroke=d.stroke),d.edgeSemantic!==void 0&&(m.edgeSemantic=d.edgeSemantic),d.length!==void 0&&(m.length=d.length),d.metadata&&Object.keys(d.metadata).length>0&&(m.metadata={...d.metadata}),m}),h=this.subGraphs.map(d=>{let m={id:d.id,nodes:[...d.nodes]};if(d.type!==void 0&&(m.type=d.type),d.title!==void 0&&(m.title=d.title),d.dir!==void 0&&(m.direction=d.dir),d.metadata&&Object.keys(d.metadata).length>0){let b={};for(let[v,T]of Object.entries(d.metadata))kit.has(v)||(b[v]=T);Object.keys(b).length>0&&(m.metadata=b)}return m}),f={vertices:a,edges:l,subGraphs:h,connectors:s,diagnostics:this.diagnostics};return this.direction!==void 0&&(f.direction=this.direction),f}setFrontmatterLineOffset(t){this.frontmatterLineOffset=t??0}toElementPosition(t){let a=t?.first_line??0,s=t?.first_column??0,l=t?.last_line??a,h=t?.last_column??s,[f,d]=t?.range??[0,0];return{startLine:a+this.frontmatterLineOffset,startColumn:s,endLine:l+this.frontmatterLineOffset,endColumn:h,startIndex:f,endIndex:d}}pushMapping(t,a,s){if(!t)return;let l={id:t,type:a,position:this.toElementPosition(s)};return this.elementMappings.push(l),l}addVertexMapping(t,a,s,l){let h=this.pushMapping(t,"vertex",l);h&&s==null&&this.bareVertexMappings.add(h)}extendVertexMapping(t,a){if(!t||!a)return;let s=this.toElementPosition(a);for(let l=this.elementMappings.length-1;l>=0;l--){let h=this.elementMappings[l];if(h.type==="vertex"&&h.id===t){this.bareVertexMappings.has(h)&&(h.type="attachment",this.bareVertexMappings.delete(h)),(s.endLine>h.position.endLine||s.endLine===h.position.endLine&&s.endColumn>h.position.endColumn)&&(h.position.endLine=s.endLine,h.position.endColumn=s.endColumn,h.position.endIndex=s.endIndex);return}}this.pushMapping(t,"attachment",a)}addEdgeMapping(t,a,s,l){let h=Array.isArray(a)?a.map(d=>typeof d=="string"?d:d?.id??"").filter(Boolean):[],f=h.length>0?h.join(">"):"edge";this.pushMapping(f,"edge",l)}addSubgraphMapping(t,a,s,l){let h=(typeof t=="string"?t:t?.text)??"",f=this.toElementPosition(s),d=l?this.toElementPosition(l):f;h&&this.elementMappings.push({id:h,type:"subgraph",position:{startLine:f.startLine,startColumn:f.startColumn,endLine:d.endLine,endColumn:d.endColumn,startIndex:f.startIndex,endIndex:d.endIndex}})}addConnectorMapping(t,a,s,l){let h=t?.text?.trim()??"";if(!h)return;let f=this.toElementPosition(s),d=l?this.toElementPosition(l):f;this.elementMappings.push({id:h,type:"connector",position:{startLine:f.startLine,startColumn:f.startColumn,endLine:d.endLine,endColumn:d.endColumn,startIndex:f.startIndex,endIndex:d.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(t){return this.elementMappings.find(a=>a.id===t)}getElementsOnLine(t){return this.elementMappings.filter(a=>t>=a.position.startLine&&t<=a.position.endLine)}getElementAtPosition(t,a){let s=this.elementMappings.filter(h=>{let{startLine:f,startColumn:d,endLine:m,endColumn:b}=h.position;return!(t<f||t>m||t===f&&a<d||t===m&&a>b)});if(s.length===0)return;let l=i(({position:h})=>[h.endLine-h.startLine,h.endColumn-h.startColumn],"span");return s.reduce((h,f)=>{let[d,m]=l(h),[b,v]=l(f);return b!==d?b<d?f:h:v<m?f:h})}getMappingStats(){let t=0,a=0,s=0,l=0,h=0;for(let f of this.elementMappings)f.type==="vertex"?t++:f.type==="edge"?a++:f.type==="subgraph"?s++:f.type==="connector"?l++:f.type==="attachment"&&h++;return{vertices:t,edges:a,subgraphs:s,connectors:l,attachments:h,totalElements:this.elementMappings.length}}emitDiagnostic(t,a,s,l){let h=l?.nodeId??l?.edgeId,f=h?this.getElementById(h):void 0,d={id:t,severity:a,message:s,...l?.nodeId?{nodeId:l.nodeId}:{},...l?.edgeId&&!l?.nodeId?{edgeId:l.edgeId}:{},...f?{position:f.position}:{}};if(this.diagnostics.some(v=>v.id===d.id&&v.severity===d.severity&&v.message===d.message&&v.nodeId===d.nodeId&&v.edgeId===d.edgeId))return;this.diagnostics.push(d);let b=`agentflow[${t}]: ${s}`;a==="error"?Pe.error(b):Pe.warn(b)}emitWarning(t,a,s){this.emitDiagnostic(t,"warning",a,s)}emitError(t,a,s){this.emitDiagnostic(t,"error",a,s)}getDiagnostics(){return[...this.diagnostics]}}});var Xei,Kei,PRr,BRr=ae(()=>{"use strict";ma();Yn();FA();PS();BS();Ma();Xei=i(function(r,t){return t.db.getClasses()},"getClasses"),Kei=i(async function(r,t,a,s){Pe.debug("Drawing agentflow diagram",t);let{securityLevel:l,agentflow:h,layout:f}=er();s.db.setDiagramId(t),Pe.debug("Before getData: ");let d=s.db.getData();Pe.debug("Data: ",d);let m=dy(t,l),b=s.db.getDirection();d.type=s.type,d.layoutAlgorithm=Ty(f),d.layoutAlgorithm==="dagre"&&f==="elk"&&Pe.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),d.direction=b,d.nodeSpacing=h?.nodeSpacing||50,d.rankSpacing=h?.rankSpacing||50,d.markers=["point","circle","cross","hierarchy"],d.diagramId=t,Pe.debug("REF1:",d),await xy(d,m);let v=h?.diagramPadding??8;Va.insertTitle(m,"agentflowTitleText",h?.titleTopMargin??0,s.db.getDiagramTitle()),Sm(m,v,"agentflow",h?.useMaxWidth??!0)},"draw"),PRr={getClasses:Xei,draw:Kei}});var Eit,Sit,FRr=ae(()=>{"use strict";Eit=(function(){var r=i(function(It,Ai,da,sa){for(da=da||{},sa=It.length;sa--;da[It[sa]]=Ai);return da},"o"),t=[1,5],a=[1,4],s=[1,3],l=[1,6],h=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],f=[2,2],d=[1,15],m=[1,16],b=[1,17],v=[1,18],T=[1,19],C=[1,26],E=[1,27],S=[1,28],R=[1,30],L=[1,31],_=[1,32],I=[1,55],N=[1,54],B=[1,34],O=[1,35],P=[1,36],$=[1,37],V=[1,38],Y=[1,50],Q=[1,52],q=[1,48],W=[1,53],H=[1,49],re=[1,56],Z=[1,51],X=[1,57],te=[1,58],U=[1,39],ne=[1,40],se=[1,41],he=[1,42],le=[1,43],pe=[1,64],ge=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],we=[1,70],Ae=[1,68],ve=[1,67],Ie=[1,69],De=[8,9,10,12,78,80,81],Be=[1,88],Fe=[1,101],ze=[1,106],vt=[1,105],lt=[1,102],Ft=[1,98],pr=[1,104],tr=[1,100],Mt=[1,107],ot=[1,103],it=[1,108],mt=[1,99],Rt=[8,9,10,11,12,43,78,80,81],pt=[8,9,10,11,12,43,49,78,80,81],gt=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],ut=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],Yt=[47,63,92,105,108,109,112,114,117,118,119],Ye=[1,131],Oe=[1,132],K=[1,134],Te=[1,133],ce=[47,63,65,77,92,105,108,109,112,114,117,118,119],Re=[1,143],me=[1,157],be=[1,158],ke=[1,159],We=[1,162],Ue=[1,161],rt=[1,160],nt=[1,145],Ot=[1,147],ft=[1,151],Qt=[1,139],$t=[1,140],qt=[1,152],Gt=[1,153],jt=[1,154],Zr=[1,155],yt=[1,156],$n=[1,163],Ut=[1,164],An=[1,141],Un=[1,142],En=[1,149],ai=[1,144],Gn=[1,148],ui=[1,146],Tn=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],Wi=[1,168],Pa=[1,170],qe=[8,9,10,12],Rn=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],Mn=[1,190],ct=[1,186],dr=[1,187],Kr=[1,191],pn=[1,188],Bn=[1,189],Hs=[80,119,122],Ki=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],so=[11,109],js=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],ls=[1,269],Ba=[1,267],cs=[1,271],ln=[1,265],Vr=[1,266],gn=[1,268],xi=[1,270],Pn=[1,272],Vn=[1,292],la=[8,9,10,12,109],Ln=[8,9,10,11,12,63,87,108,109,112,113,114,115],Zi={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:i(function(Ai,da,sa,Lr,Xa,Ze,xa){var at=Ze.length-1;switch(Xa){case 2:this.$=[];break;case 3:(!Array.isArray(Ze[at])||Ze[at].length>0)&&Ze[at-1].push(Ze[at]),this.$=Ze[at-1];break;case 4:case 198:this.$=Ze[at];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:Lr.setDirection("TB"),this.$="TB";break;case 14:Lr.setDirection(Ze[at-1]),this.$=Ze[at-1];break;case 32:this.$=Ze[at-1].nodes;break;case 38:this.$=Lr.addSubGraph(Ze[at-6],Ze[at-1],Ze[at-4],"flow"),Lr.addSubgraphMapping&&Lr.addSubgraphMapping(Ze[at-6],Ze[at-4],xa[at-8],xa[at]);break;case 39:this.$=Lr.addSubGraph(Ze[at-7],Ze[at-1],Ze[at-5],"flow"),Lr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,Ze[at-3],xa[at-3]),Lr.addSubgraphMapping&&Lr.addSubgraphMapping(Ze[at-7],Ze[at-5],xa[at-9],xa[at]);break;case 40:this.$=Lr.addSubGraph(Ze[at-3],Ze[at-1],{text:"",type:"text"},"flow"),Lr.addSubgraphMapping&&Lr.addSubgraphMapping(Ze[at-3],{text:"",type:"text"},xa[at-5],xa[at]);break;case 41:this.$=Lr.addSubGraph(Ze[at-4],Ze[at-1],{text:"",type:"text"},"flow"),Lr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,Ze[at-3],xa[at-3]),Lr.addSubgraphMapping&&Lr.addSubgraphMapping(Ze[at-4],{text:"",type:"text"},xa[at-6],xa[at]);break;case 42:this.$=Lr.addSubGraph(void 0,Ze[at-1],void 0,"flow"),Lr.addSubgraphMapping&&Lr.addSubgraphMapping(void 0,void 0,xa[at-3],xa[at]);break;case 43:Lr.addGlobal(Ze[at-1]),this.$=[];break;case 44:this.$=Lr.addConnector(Ze[at-4],Ze[at-2]),Lr.addConnectorMapping&&Lr.addConnectorMapping(Ze[at-4],Ze[at-2],xa[at-6],xa[at]);break;case 45:this.$=Lr.addConnector(Ze[at-5],Ze[at-3]),Lr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,Ze[at-1],xa[at-1]),Lr.addConnectorMapping&&Lr.addConnectorMapping(Ze[at-5],Ze[at-3],xa[at-7],xa[at]);break;case 46:this.$=Lr.addConnector(Ze[at-1],{text:"",type:"text"}),Lr.addConnectorMapping&&Lr.addConnectorMapping(Ze[at-1],{text:"",type:"text"},xa[at-3],xa[at]);break;case 47:this.$=Lr.addConnector(Ze[at-2],{text:"",type:"text"}),Lr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,Ze[at-1],xa[at-1]),Lr.addConnectorMapping&&Lr.addConnectorMapping(Ze[at-2],{text:"",type:"text"},xa[at-4],xa[at]);break;case 49:this.$=Ze[at].trim(),Lr.setAccTitle(this.$);break;case 50:case 51:this.$=Ze[at].trim(),Lr.setAccDescription(this.$);break;case 56:this.$=Ze[at-1]+Ze[at];break;case 57:this.$=Ze[at];break;case 58:Lr.addVertex(Ze[at-1][Ze[at-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Ze[at],xa[at]),Lr.extendVertexMapping&&Lr.extendVertexMapping(Ze[at-1][Ze[at-1].length-1],xa[at]),Lr.addLink(Ze[at-3].stmt,Ze[at-1],Ze[at-2]),Lr.addEdgeMapping&&Lr.addEdgeMapping(Ze[at-3].stmt,Ze[at-1],Ze[at-2],this._$),this.$={stmt:Ze[at-1],nodes:Ze[at-1].concat(Ze[at-3].nodes)};break;case 59:Lr.addLink(Ze[at-2].stmt,Ze[at],Ze[at-1]),Lr.addEdgeMapping&&Lr.addEdgeMapping(Ze[at-2].stmt,Ze[at],Ze[at-1],this._$),this.$={stmt:Ze[at],nodes:Ze[at].concat(Ze[at-2].nodes)};break;case 60:Lr.addLink(Ze[at-3].stmt,Ze[at-1],Ze[at-2]),Lr.addEdgeMapping&&Lr.addEdgeMapping(Ze[at-3].stmt,Ze[at-1],Ze[at-2],this._$),this.$={stmt:Ze[at-1],nodes:Ze[at-1].concat(Ze[at-3].nodes)};break;case 61:this.$={stmt:Ze[at-1],nodes:Ze[at-1]};break;case 62:Lr.addVertex(Ze[at-1][Ze[at-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Ze[at],xa[at]),Lr.extendVertexMapping&&Lr.extendVertexMapping(Ze[at-1][Ze[at-1].length-1],xa[at]),this.$={stmt:Ze[at-1],nodes:Ze[at-1],shapeData:Ze[at]};break;case 63:this.$={stmt:Ze[at],nodes:Ze[at]};break;case 64:this.$=[Ze[at]];break;case 65:Lr.addVertex(Ze[at-5][Ze[at-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Ze[at-4],xa[at-4]),Lr.extendVertexMapping&&Lr.extendVertexMapping(Ze[at-5][Ze[at-5].length-1],xa[at-4]),this.$=Ze[at-5].concat(Ze[at]);break;case 66:this.$=Ze[at-4].concat(Ze[at]);break;case 67:this.$=Ze[at];break;case 68:this.$=Ze[at-2],Lr.setClass(Ze[at-2],Ze[at]);break;case 69:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"square"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"square",this._$);break;case 70:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"doublecircle"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"doublecircle",this._$);break;case 71:this.$=Ze[at-5],Lr.addVertex(Ze[at-5],Ze[at-2],"circle"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-5],Ze[at-2],"circle",this._$);break;case 72:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"ellipse"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"ellipse",this._$);break;case 73:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"stadium"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"stadium",this._$);break;case 74:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"subroutine"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"subroutine",this._$);break;case 75:this.$=Ze[at-7],Lr.addVertex(Ze[at-7],Ze[at-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Ze[at-5],Ze[at-3]]])),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-7],Ze[at-1],"rect",this._$);break;case 76:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"cylinder"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"cylinder",this._$);break;case 77:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"round"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"round",this._$);break;case 78:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"diamond"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"diamond",this._$);break;case 79:this.$=Ze[at-5],Lr.addVertex(Ze[at-5],Ze[at-2],"hexagon"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-5],Ze[at-2],"hexagon",this._$);break;case 80:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"odd"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"odd",this._$);break;case 81:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"trapezoid"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"trapezoid",this._$);break;case 82:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"inv_trapezoid"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"inv_trapezoid",this._$);break;case 83:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"lean_right"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"lean_right",this._$);break;case 84:this.$=Ze[at-3],Lr.addVertex(Ze[at-3],Ze[at-1],"lean_left"),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at-3],Ze[at-1],"lean_left",this._$);break;case 85:this.$=Ze[at],Lr.addVertex(Ze[at]),Lr.addVertexMapping&&Lr.addVertexMapping(Ze[at],void 0,void 0,this._$);break;case 86:Ze[at-1].text=Ze[at],this.$=Ze[at-1];break;case 87:case 88:Ze[at-2].text=Ze[at-1],this.$=Ze[at-2];break;case 89:this.$=Ze[at];break;case 90:var pl=Lr.destructLink(Ze[at],Ze[at-2]);this.$={type:pl.type,stroke:pl.stroke,length:pl.length,edgeSemantic:pl.edgeSemantic,text:Ze[at-1]};break;case 91:var pl=Lr.destructLink(Ze[at],Ze[at-2]);this.$={type:pl.type,stroke:pl.stroke,length:pl.length,edgeSemantic:pl.edgeSemantic,text:Ze[at-1],id:Ze[at-3]};break;case 92:this.$={text:Ze[at],type:"text"};break;case 93:this.$={text:Ze[at-1].text+""+Ze[at],type:Ze[at-1].type};break;case 94:this.$={text:Ze[at],type:"string"};break;case 95:this.$={text:Ze[at],type:"markdown"};break;case 96:var pl=Lr.destructLink(Ze[at]);this.$={type:pl.type,stroke:pl.stroke,length:pl.length,edgeSemantic:pl.edgeSemantic};break;case 97:var pl=Lr.destructLink(Ze[at]);this.$={type:pl.type,stroke:pl.stroke,length:pl.length,edgeSemantic:pl.edgeSemantic,id:Ze[at-1]};break;case 98:this.$=Ze[at-1];break;case 99:this.$={text:Ze[at],type:"text"};break;case 100:this.$={text:Ze[at-1].text+""+Ze[at],type:Ze[at-1].type};break;case 101:this.$={text:Ze[at],type:"string"};break;case 102:case 119:this.$={text:Ze[at],type:"markdown"};break;case 116:this.$={text:Ze[at],type:"text"};break;case 117:this.$={text:Ze[at-1].text+""+Ze[at],type:Ze[at-1].type};break;case 118:this.$={text:Ze[at],type:"text"};break;case 120:this.$=Ze[at-4],Lr.addClass(Ze[at-2],Ze[at]);break;case 121:this.$=Ze[at-4],Lr.setClass(Ze[at-2],Ze[at]);break;case 122:case 130:this.$=Ze[at-1],Lr.setClickEvent(Ze[at-1],Ze[at]);break;case 123:case 131:this.$=Ze[at-3],Lr.setClickEvent(Ze[at-3],Ze[at-2]),Lr.setTooltip(Ze[at-3],Ze[at]);break;case 124:this.$=Ze[at-2],Lr.setClickEvent(Ze[at-2],Ze[at-1],Ze[at]);break;case 125:this.$=Ze[at-4],Lr.setClickEvent(Ze[at-4],Ze[at-3],Ze[at-2]),Lr.setTooltip(Ze[at-4],Ze[at]);break;case 126:this.$=Ze[at-2],Lr.setLink(Ze[at-2],Ze[at]);break;case 127:this.$=Ze[at-4],Lr.setLink(Ze[at-4],Ze[at-2]),Lr.setTooltip(Ze[at-4],Ze[at]);break;case 128:this.$=Ze[at-4],Lr.setLink(Ze[at-4],Ze[at-2],Ze[at]);break;case 129:this.$=Ze[at-6],Lr.setLink(Ze[at-6],Ze[at-4],Ze[at]),Lr.setTooltip(Ze[at-6],Ze[at-2]);break;case 132:this.$=Ze[at-1],Lr.setLink(Ze[at-1],Ze[at]);break;case 133:this.$=Ze[at-3],Lr.setLink(Ze[at-3],Ze[at-2]),Lr.setTooltip(Ze[at-3],Ze[at]);break;case 134:this.$=Ze[at-3],Lr.setLink(Ze[at-3],Ze[at-2],Ze[at]);break;case 135:this.$=Ze[at-5],Lr.setLink(Ze[at-5],Ze[at-4],Ze[at]),Lr.setTooltip(Ze[at-5],Ze[at-2]);break;case 136:this.$=Ze[at-4],Lr.addVertex(Ze[at-2],void 0,void 0,Ze[at]);break;case 137:this.$=Ze[at-4],Lr.updateLink([Ze[at-2]],Ze[at]);break;case 138:this.$=Ze[at-4],Lr.updateLink(Ze[at-2],Ze[at]);break;case 139:this.$=Ze[at-8],Lr.updateLinkInterpolate([Ze[at-6]],Ze[at-2]),Lr.updateLink([Ze[at-6]],Ze[at]);break;case 140:this.$=Ze[at-8],Lr.updateLinkInterpolate(Ze[at-6],Ze[at-2]),Lr.updateLink(Ze[at-6],Ze[at]);break;case 141:this.$=Ze[at-6],Lr.updateLinkInterpolate([Ze[at-4]],Ze[at]);break;case 142:this.$=Ze[at-6],Lr.updateLinkInterpolate(Ze[at-4],Ze[at]);break;case 143:case 145:this.$=[Ze[at]];break;case 144:case 146:Ze[at-2].push(Ze[at]),this.$=Ze[at-2];break;case 148:this.$=Ze[at-1]+Ze[at];break;case 196:this.$=Ze[at];break;case 197:this.$=Ze[at-1]+""+Ze[at];break;case 199:this.$=Ze[at-1]+""+Ze[at];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,8:t,10:a,11:s,13:l},{1:[3]},r(h,f,{5:7}),{4:8,8:t,10:a,11:s,13:l},{4:9,8:t,10:a,11:s,13:l},{4:10,8:t,10:a,11:s,13:l},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:d,9:m,10:b,11:v,12:T,21:20,23:21,24:22,25:23,26:24,27:25,28:C,35:E,36:S,37:29,38:R,40:L,42:_,45:33,46:44,47:I,48:45,50:46,63:N,87:B,88:O,89:P,90:$,91:V,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te,124:U,125:ne,126:se,127:he,128:le},r(h,[2,10]),r(h,[2,11]),r(h,[2,12]),r(h,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:pe,16:59,19:62},r(ge,[2,3]),r(ge,[2,4]),r(ge,[2,5]),r(ge,[2,6]),r(ge,[2,7]),r(ge,[2,8]),r(ge,[2,9]),{8:we,9:Ae,10:ve,12:Ie,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:we,9:Ae,10:ve,12:Ie,22:75},{8:we,9:Ae,10:ve,12:Ie,22:76},{8:we,9:Ae,10:ve,12:Ie,22:77},{8:we,9:Ae,10:ve,12:Ie,22:78},{8:we,9:Ae,10:ve,12:Ie,22:79},{8:we,9:Ae,10:ve,11:[1,80],12:Ie,22:81},{8:we,9:Ae,10:ve,12:Ie,22:82},{11:[1,83]},r(ge,[2,48]),{39:[1,84]},{41:[1,85]},r(ge,[2,51]),r(De,[2,63],{19:86,34:87,11:pe,43:Be}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:Fe,47:ze,63:vt,83:[1,96],92:lt,98:[1,93],100:[1,94],104:95,108:Ft,109:pr,112:tr,114:Mt,117:ot,118:it,119:mt,123:97},r(ge,[2,200]),r(ge,[2,201]),r(ge,[2,202]),r(ge,[2,203]),r(ge,[2,204]),r(Rt,[2,64]),r(Rt,[2,67],{49:[1,109]}),r(pt,[2,85],{116:122,30:[1,110],47:I,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:N,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:Y,105:Q,108:q,109:W,112:H,114:re,117:Z,118:X,119:te}),r(gt,[2,196]),r(gt,[2,157]),r(gt,[2,158]),r(gt,[2,159]),r(gt,[2,160]),r(gt,[2,161]),r(gt,[2,162]),r(gt,[2,163]),r(gt,[2,164]),r(gt,[2,165]),r(gt,[2,166]),r(gt,[2,167]),r(h,[2,14]),r(h,[2,20]),r(h,[2,21]),{10:[1,123]},r(h,[2,23]),r(ut,[2,31],{19:124,11:pe}),r(ge,[2,32]),{45:125,46:44,47:I,48:45,50:46,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te},r(ge,[2,52]),r(ge,[2,53]),r(ge,[2,54]),r(ge,[2,55]),r(Yt,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:Ye,84:Oe,119:K,122:Te},{78:[1,135],80:[1,136]},r(ce,[2,96]),r(ge,[2,33]),r(ge,[2,34]),r(ge,[2,35]),r(ge,[2,36]),r(ge,[2,37]),{11:Re,13:me,15:be,28:ke,29:137,33:We,35:Ue,36:rt,47:nt,63:Ot,78:ft,83:Qt,84:$t,86:150,87:qt,88:Gt,89:jt,90:Zr,91:yt,92:$n,93:Ut,94:138,108:An,112:Un,114:En,117:ai,118:Gn,119:ui},r(Tn,f,{5:165}),r(Tn,f,{5:166}),{11:Re,13:me,15:be,28:ke,29:167,33:We,35:Ue,36:rt,47:nt,63:Ot,78:ft,83:Qt,84:$t,86:150,87:qt,88:Gt,89:jt,90:Zr,91:yt,92:$n,93:Ut,94:138,108:An,112:Un,114:En,117:ai,118:Gn,119:ui},r(ge,[2,49]),r(ge,[2,50]),r(De,[2,61],{47:Wi}),r(De,[2,62],{19:169,11:pe,43:Pa}),r(Rt,[2,57]),{47:I,50:171,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te},{105:[1,172],106:173,108:[1,174]},{47:I,50:175,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te},{47:I,50:176,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te},r(qe,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},r(qe,[2,130],{123:181,11:[1,180],15:Fe,47:ze,63:vt,92:lt,108:Ft,109:pr,112:tr,114:Mt,117:ot,118:it,119:mt}),r(qe,[2,132],{11:[1,182]}),r(Rn,[2,198]),r(Rn,[2,185]),r(Rn,[2,186]),r(Rn,[2,187]),r(Rn,[2,188]),r(Rn,[2,189]),r(Rn,[2,190]),r(Rn,[2,191]),r(Rn,[2,192]),r(Rn,[2,193]),r(Rn,[2,194]),r(Rn,[2,195]),{47:I,50:183,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te},{31:184,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:192,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:194,53:[1,193],70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:195,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:196,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:197,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{112:[1,198]},{31:199,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:200,68:[1,201],70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:202,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:203,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{31:204,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},r(gt,[2,197]),r(h,[2,22]),r(ut,[2,30]),r(De,[2,59],{34:205,19:206,11:pe,43:Be}),r(Yt,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{80:[1,210],82:211,119:K,122:Te},r(Hs,[2,92]),r(Hs,[2,94]),r(Hs,[2,95]),r(Hs,[2,183]),r(Hs,[2,184]),{79:212,82:130,83:Ye,84:Oe,119:K,122:Te},r(ce,[2,97]),{8:we,9:Ae,10:ve,11:Re,12:Ie,13:me,15:be,22:214,28:ke,30:[1,213],33:We,34:215,35:Ue,36:rt,43:Be,47:nt,63:Ot,78:ft,86:150,87:qt,88:Gt,89:jt,90:Zr,91:yt,92:$n,93:Ut,94:216,108:An,112:Un,114:En,117:ai,118:Gn,119:ui},r(Ki,[2,116]),r(Ki,[2,118]),r(Ki,[2,119]),r(Ki,[2,172]),r(Ki,[2,173]),r(Ki,[2,174]),r(Ki,[2,175]),r(Ki,[2,176]),r(Ki,[2,177]),r(Ki,[2,178]),r(Ki,[2,179]),r(Ki,[2,180]),r(Ki,[2,181]),r(Ki,[2,182]),r(Ki,[2,103]),r(Ki,[2,104]),r(Ki,[2,105]),r(Ki,[2,106]),r(Ki,[2,107]),r(Ki,[2,108]),r(Ki,[2,109]),r(Ki,[2,110]),r(Ki,[2,111]),r(Ki,[2,112]),r(Ki,[2,113]),r(Ki,[2,114]),r(Ki,[2,115]),{6:13,7:14,8:d,9:m,10:b,11:v,12:T,21:20,23:21,24:22,25:23,26:24,27:25,28:C,33:[1,217],35:E,36:S,37:29,38:R,40:L,42:_,45:33,46:44,47:I,48:45,50:46,63:N,87:B,88:O,89:P,90:$,91:V,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te,124:U,125:ne,126:se,127:he,128:le},{6:13,7:14,8:d,9:m,10:b,11:v,12:T,21:20,23:21,24:22,25:23,26:24,27:25,28:C,33:[1,218],35:E,36:S,37:29,38:R,40:L,42:_,45:33,46:44,47:I,48:45,50:46,63:N,87:B,88:O,89:P,90:$,91:V,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te,124:U,125:ne,126:se,127:he,128:le},{8:we,9:Ae,10:ve,11:Re,12:Ie,13:me,15:be,22:220,28:ke,30:[1,219],33:We,34:221,35:Ue,36:rt,43:Be,47:nt,63:Ot,78:ft,86:150,87:qt,88:Gt,89:jt,90:Zr,91:yt,92:$n,93:Ut,94:216,108:An,112:Un,114:En,117:ai,118:Gn,119:ui},{11:pe,19:222},{47:[1,223]},r(Rt,[2,56]),{11:[1,224],47:I,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:122,117:Z,118:X,119:te},{11:[1,225]},{11:[1,226],109:[1,227]},r(so,[2,143]),{11:[1,228],47:I,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:122,117:Z,118:X,119:te},{11:[1,229],47:I,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:122,117:Z,118:X,119:te},{83:[1,230]},r(qe,[2,124],{11:[1,231]}),r(qe,[2,126],{11:[1,232]}),{83:[1,233]},r(Rn,[2,199]),{83:[1,234],101:[1,235]},r(Rt,[2,68],{116:122,47:I,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,117:Z,118:X,119:te}),{32:[1,236],70:Mn,85:237,119:Kr,120:pn,121:Bn},r(js,[2,99]),r(js,[2,101]),r(js,[2,102]),r(js,[2,168]),r(js,[2,169]),r(js,[2,170]),r(js,[2,171]),{52:[1,238],70:Mn,85:237,119:Kr,120:pn,121:Bn},{31:239,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{54:[1,240],70:Mn,85:237,119:Kr,120:pn,121:Bn},{56:[1,241],70:Mn,85:237,119:Kr,120:pn,121:Bn},{58:[1,242],70:Mn,85:237,119:Kr,120:pn,121:Bn},{60:[1,243],70:Mn,85:237,119:Kr,120:pn,121:Bn},{63:[1,244]},{67:[1,245],70:Mn,85:237,119:Kr,120:pn,121:Bn},{69:[1,246],70:Mn,85:237,119:Kr,120:pn,121:Bn},{31:247,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},{32:[1,248],70:Mn,85:237,119:Kr,120:pn,121:Bn},{70:Mn,72:[1,249],74:[1,250],85:237,119:Kr,120:pn,121:Bn},{70:Mn,72:[1,252],74:[1,251],85:237,119:Kr,120:pn,121:Bn},r(De,[2,58],{19:169,11:pe,43:Pa}),r(De,[2,60],{47:Wi}),r(Yt,[2,88]),r(Yt,[2,87]),{65:[1,253],70:Mn,85:237,119:Kr,120:pn,121:Bn},r(Yt,[2,90]),r(Hs,[2,93]),{80:[1,254],82:211,119:K,122:Te},{31:255,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},r(Tn,f,{5:256}),{8:we,9:Ae,10:ve,12:Ie,22:257,43:Pa},r(Ki,[2,117]),r(ge,[2,42]),r(ge,[2,43]),{31:258,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},r(ge,[2,46]),{8:we,9:Ae,10:ve,12:Ie,22:259,43:Pa},{46:260,47:I,48:45,50:46,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te},{11:pe,19:261},{11:ls,63:Ba,87:cs,95:262,108:ln,110:263,111:264,112:Vr,113:gn,114:xi,115:Pn},{11:ls,63:Ba,87:cs,95:273,107:[1,274],108:ln,110:263,111:264,112:Vr,113:gn,114:xi,115:Pn},{11:ls,63:Ba,87:cs,95:275,107:[1,276],108:ln,110:263,111:264,112:Vr,113:gn,114:xi,115:Pn},{108:[1,277]},{11:ls,63:Ba,87:cs,95:278,108:ln,110:263,111:264,112:Vr,113:gn,114:xi,115:Pn},{47:I,50:279,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te},r(qe,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},r(qe,[2,131]),r(qe,[2,133],{11:[1,283]}),r(qe,[2,134]),r(pt,[2,69]),r(js,[2,100]),r(pt,[2,70]),{54:[1,284],70:Mn,85:237,119:Kr,120:pn,121:Bn},r(pt,[2,77]),r(pt,[2,72]),r(pt,[2,73]),r(pt,[2,74]),{112:[1,285]},r(pt,[2,76]),r(pt,[2,78]),{69:[1,286],70:Mn,85:237,119:Kr,120:pn,121:Bn},r(pt,[2,80]),r(pt,[2,81]),r(pt,[2,83]),r(pt,[2,82]),r(pt,[2,84]),r([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),r(Yt,[2,91]),{32:[1,287],70:Mn,85:237,119:Kr,120:pn,121:Bn},{6:13,7:14,8:d,9:m,10:b,11:v,12:T,21:20,23:21,24:22,25:23,26:24,27:25,28:C,33:[1,288],35:E,36:S,37:29,38:R,40:L,42:_,45:33,46:44,47:I,48:45,50:46,63:N,87:B,88:O,89:P,90:$,91:V,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te,124:U,125:ne,126:se,127:he,128:le},r(Tn,f,{5:289}),{32:[1,290],70:Mn,85:237,119:Kr,120:pn,121:Bn},r(ge,[2,47]),r(Rt,[2,66]),{46:291,47:I,48:45,50:46,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te},r(qe,[2,136],{109:Vn}),r(la,[2,145],{111:293,11:ls,63:Ba,87:cs,108:ln,112:Vr,113:gn,114:xi,115:Pn}),r(Ln,[2,147]),r(Ln,[2,149]),r(Ln,[2,150]),r(Ln,[2,151]),r(Ln,[2,152]),r(Ln,[2,153]),r(Ln,[2,154]),r(Ln,[2,155]),r(Ln,[2,156]),r(qe,[2,137],{109:Vn}),{11:[1,294]},r(qe,[2,138],{109:Vn}),{11:[1,295]},r(so,[2,144]),r(qe,[2,120],{109:Vn}),r(qe,[2,121],{116:122,47:I,63:N,92:Y,105:Q,108:q,109:W,112:H,114:re,117:Z,118:X,119:te}),r(qe,[2,125]),r(qe,[2,127],{11:[1,296]}),r(qe,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:we,9:Ae,10:ve,12:Ie,22:301,34:302,43:Be},r(ge,[2,40]),{6:13,7:14,8:d,9:m,10:b,11:v,12:T,21:20,23:21,24:22,25:23,26:24,27:25,28:C,33:[1,303],35:E,36:S,37:29,38:R,40:L,42:_,45:33,46:44,47:I,48:45,50:46,63:N,87:B,88:O,89:P,90:$,91:V,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te,124:U,125:ne,126:se,127:he,128:le},{8:we,9:Ae,10:ve,12:Ie,22:304,34:305,43:Be},r(Rt,[2,65]),{11:ls,63:Ba,87:cs,108:ln,110:306,111:264,112:Vr,113:gn,114:xi,115:Pn},r(Ln,[2,148]),{15:Fe,47:ze,63:vt,92:lt,104:307,108:Ft,109:pr,112:tr,114:Mt,117:ot,118:it,119:mt,123:97},{15:Fe,47:ze,63:vt,92:lt,104:308,108:Ft,109:pr,112:tr,114:Mt,117:ot,118:it,119:mt,123:97},{101:[1,309]},r(qe,[2,135]),r(pt,[2,71]),{31:310,70:Mn,83:ct,84:dr,85:185,119:Kr,120:pn,121:Bn},r(pt,[2,79]),r(Tn,f,{5:311}),{8:we,9:Ae,10:ve,12:Ie,22:312,43:Pa},r(ge,[2,41]),r(ge,[2,44]),{8:we,9:Ae,10:ve,12:Ie,22:313,43:Pa},r(la,[2,146],{111:293,11:ls,63:Ba,87:cs,108:ln,112:Vr,113:gn,114:xi,115:Pn}),r(qe,[2,141],{123:181,11:[1,314],15:Fe,47:ze,63:vt,92:lt,108:Ft,109:pr,112:tr,114:Mt,117:ot,118:it,119:mt}),r(qe,[2,142],{123:181,11:[1,315],15:Fe,47:ze,63:vt,92:lt,108:Ft,109:pr,112:tr,114:Mt,117:ot,118:it,119:mt}),r(qe,[2,129]),{32:[1,316],70:Mn,85:237,119:Kr,120:pn,121:Bn},{6:13,7:14,8:d,9:m,10:b,11:v,12:T,21:20,23:21,24:22,25:23,26:24,27:25,28:C,33:[1,317],35:E,36:S,37:29,38:R,40:L,42:_,45:33,46:44,47:I,48:45,50:46,63:N,87:B,88:O,89:P,90:$,91:V,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te,124:U,125:ne,126:se,127:he,128:le},r(Tn,f,{5:318}),r(ge,[2,45]),{11:ls,63:Ba,87:cs,95:319,108:ln,110:263,111:264,112:Vr,113:gn,114:xi,115:Pn},{11:ls,63:Ba,87:cs,95:320,108:ln,110:263,111:264,112:Vr,113:gn,114:xi,115:Pn},r(pt,[2,75]),r(ge,[2,38]),{6:13,7:14,8:d,9:m,10:b,11:v,12:T,21:20,23:21,24:22,25:23,26:24,27:25,28:C,33:[1,321],35:E,36:S,37:29,38:R,40:L,42:_,45:33,46:44,47:I,48:45,50:46,63:N,87:B,88:O,89:P,90:$,91:V,92:Y,105:Q,108:q,109:W,112:H,114:re,116:47,117:Z,118:X,119:te,124:U,125:ne,126:se,127:he,128:le},r(qe,[2,139],{109:Vn}),r(qe,[2,140],{109:Vn}),r(ge,[2,39])],defaultActions:{},parseError:i(function(Ai,da){if(da.recoverable)this.trace(Ai);else{var sa=new Error(Ai);throw sa.hash=da,sa}},"parseError"),parse:i(function(Ai){var da=this,sa=[0],Lr=[],Xa=[null],Ze=[],xa=this.table,at="",pl=0,Dm=0,I2=0,M2=2,Ug=1,uh=Ze.slice.call(arguments,1),al=Object.create(this.lexer),sd={yy:{}};for(var $l in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$l)&&(sd.yy[$l]=this.yy[$l]);al.setInput(Ai,sd.yy),sd.yy.lexer=al,sd.yy.parser=this,typeof al.yylloc>"u"&&(al.yylloc={});var pk=al.yylloc;Ze.push(pk);var gk=al.options&&al.options.ranges;typeof sd.yy.parseError=="function"?this.parseError=sd.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Im(Dn){sa.length=sa.length-2*Dn,Xa.length=Xa.length-Dn,Ze.length=Ze.length-Dn}i(Im,"popStack");function N2(){var Dn;return Dn=Lr.pop()||al.lex()||Ug,typeof Dn!="number"&&(Dn instanceof Array&&(Lr=Dn,Dn=Lr.pop()),Dn=da.symbols_[Dn]||Dn),Dn}i(N2,"lex");for(var mu,mk,$0,Rp,Vg,o5,O2={},P2,k1,ti,Ct;;){if($0=sa[sa.length-1],this.defaultActions[$0]?Rp=this.defaultActions[$0]:((mu===null||typeof mu>"u")&&(mu=N2()),Rp=xa[$0]&&xa[$0][mu]),typeof Rp>"u"||!Rp.length||!Rp[0]){var xr="";Ct=[];for(P2 in xa[$0])this.terminals_[P2]&&P2>M2&&Ct.push("'"+this.terminals_[P2]+"'");al.showPosition?xr="Parse error on line "+(pl+1)+`:
|
|
`+al.showPosition()+`
|
|
Expecting `+Ct.join(", ")+", got '"+(this.terminals_[mu]||mu)+"'":xr="Parse error on line "+(pl+1)+": Unexpected "+(mu==Ug?"end of input":"'"+(this.terminals_[mu]||mu)+"'"),this.parseError(xr,{text:al.match,token:this.terminals_[mu]||mu,line:al.yylineno,loc:pk,expected:Ct})}if(Rp[0]instanceof Array&&Rp.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$0+", token: "+mu);switch(Rp[0]){case 1:sa.push(mu),Xa.push(al.yytext),Ze.push(al.yylloc),sa.push(Rp[1]),mu=null,mk?(mu=mk,mk=null):(Dm=al.yyleng,at=al.yytext,pl=al.yylineno,pk=al.yylloc,I2>0&&I2--);break;case 2:if(k1=this.productions_[Rp[1]][1],O2.$=Xa[Xa.length-k1],O2._$={first_line:Ze[Ze.length-(k1||1)].first_line,last_line:Ze[Ze.length-1].last_line,first_column:Ze[Ze.length-(k1||1)].first_column,last_column:Ze[Ze.length-1].last_column},gk&&(O2._$.range=[Ze[Ze.length-(k1||1)].range[0],Ze[Ze.length-1].range[1]]),o5=this.performAction.apply(O2,[at,Dm,pl,sd.yy,Rp[1],Xa,Ze].concat(uh)),typeof o5<"u")return o5;k1&&(sa=sa.slice(0,-1*k1*2),Xa=Xa.slice(0,-1*k1),Ze=Ze.slice(0,-1*k1)),sa.push(this.productions_[Rp[1]][0]),Xa.push(O2.$),Ze.push(O2._$),ti=xa[sa[sa.length-2]][sa[sa.length-1]],sa.push(ti);break;case 3:return!0}}return!0},"parse")},kt=(function(){var It={EOF:1,parseError:i(function(da,sa){if(this.yy.parser)this.yy.parser.parseError(da,sa);else throw new Error(da)},"parseError"),setInput:i(function(Ai,da){return this.yy=da||this.yy||{},this._input=Ai,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var Ai=this._input[0];this.yytext+=Ai,this.yyleng++,this.offset++,this.match+=Ai,this.matched+=Ai;var da=Ai.match(/(?:\r\n?|\n).*/g);return da?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ai},"input"),unput:i(function(Ai){var da=Ai.length,sa=Ai.split(/(?:\r\n?|\n)/g);this._input=Ai+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-da),this.offset-=da;var Lr=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),sa.length-1&&(this.yylineno-=sa.length-1);var Xa=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:sa?(sa.length===Lr.length?this.yylloc.first_column:0)+Lr[Lr.length-sa.length].length-sa[0].length:this.yylloc.first_column-da},this.options.ranges&&(this.yylloc.range=[Xa[0],Xa[0]+this.yyleng-da]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(Ai){this.unput(this.match.slice(Ai))},"less"),pastInput:i(function(){var Ai=this.matched.substr(0,this.matched.length-this.match.length);return(Ai.length>20?"...":"")+Ai.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var Ai=this.match;return Ai.length<20&&(Ai+=this._input.substr(0,20-Ai.length)),(Ai.substr(0,20)+(Ai.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var Ai=this.pastInput(),da=new Array(Ai.length+1).join("-");return Ai+this.upcomingInput()+`
|
|
`+da+"^"},"showPosition"),test_match:i(function(Ai,da){var sa,Lr,Xa;if(this.options.backtrack_lexer&&(Xa={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Xa.yylloc.range=this.yylloc.range.slice(0))),Lr=Ai[0].match(/(?:\r\n?|\n).*/g),Lr&&(this.yylineno+=Lr.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lr?Lr[Lr.length-1].length-Lr[Lr.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ai[0].length},this.yytext+=Ai[0],this.match+=Ai[0],this.matches=Ai,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ai[0].length),this.matched+=Ai[0],sa=this.performAction.call(this,this.yy,this,da,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),sa)return sa;if(this._backtrack){for(var Ze in Xa)this[Ze]=Xa[Ze];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ai,da,sa,Lr;this._more||(this.yytext="",this.match="");for(var Xa=this._currentRules(),Ze=0;Ze<Xa.length;Ze++)if(sa=this._input.match(this.rules[Xa[Ze]]),sa&&(!da||sa[0].length>da[0].length)){if(da=sa,Lr=Ze,this.options.backtrack_lexer){if(Ai=this.test_match(sa,Xa[Ze]),Ai!==!1)return Ai;if(this._backtrack){da=!1;continue}else return!1}else if(!this.options.flex)break}return da?(Ai=this.test_match(da,Xa[Lr]),Ai!==!1?Ai:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var da=this.next();return da||this.lex()},"lex"),begin:i(function(da){this.conditionStack.push(da)},"begin"),popState:i(function(){var da=this.conditionStack.length-1;return da>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(da){return da=this.conditionStack.length-1-Math.abs(da||0),da>=0?this.conditionStack[da]:"INITIAL"},"topState"),pushState:i(function(da){this.begin(da)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(da,sa,Lr,Xa){var Ze=Xa;switch(Lr){case 0:return this.begin("acc_title"),38;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),40;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),sa.yytext="",43;break;case 8:return this.pushState("shapeDataStr"),43;break;case 9:return this.popState(),43;break;case 10:let xa=/\n\s*/g;return sa.yytext=sa.yytext.replace(xa,"<br/>"),43;break;case 11:return 43;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 17:this.popState();break;case 18:return 99;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 91;case 35:return da.lex.firstGraph()&&this.begin("dir"),13;break;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;break;case 45:return this.popState(),15;break;case 46:return this.popState(),15;break;case 47:return this.popState(),15;break;case 48:return this.popState(),15;break;case 49:return this.popState(),15;break;case 50:return this.popState(),15;break;case 51:return this.popState(),15;break;case 52:return this.popState(),15;break;case 53:return this.popState(),15;break;case 54:return this.popState(),15;break;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;break;case 70:return this.pushState("edgeText"),78;break;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;break;case 75:return"TEXT";case 76:return this.pushState("ellipseText"),55;break;case 77:return this.popState(),58;break;case 78:return this.pushState("text"),57;break;case 79:return this.popState(),60;break;case 80:return this.pushState("text"),59;break;case 81:return 61;case 82:return this.pushState("text"),70;break;case 83:return this.popState(),67;break;case 84:return this.pushState("text"),66;break;case 85:return this.popState(),52;break;case 86:return this.pushState("text"),51;break;case 87:break;case 88:return this.popState(),72;break;case 89:return this.popState(),74;break;case 90:return 120;case 91:return this.pushState("trapText"),71;break;case 92:return this.pushState("trapText"),73;break;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;break;case 106:return this.pushState("text"),65;break;case 107:return this.popState(),54;break;case 108:return this.pushState("text"),53;break;case 109:return this.popState(),32;break;case 110:return this.pushState("text"),30;break;case 111:return this.popState(),69;break;case 112:return this.pushState("text"),68;break;case 113:break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}};return It})();Zi.lexer=kt;function Iu(){this.yy={}}return i(Iu,"Parser"),Iu.prototype=Zi,Zi.Parser=Iu,new Iu})();Eit.parser=Eit;Sit=Eit});var $Rr,GRr,jRr=ae(()=>{"use strict";FRr();$Rr=Object.assign({},Sit);$Rr.parse=r=>{let t=r.replace(/}[^\S\n]*\n/g,`}
|
|
`);return Sit.parse(t)};GRr=$Rr});var Jei,Qei,Zei,zRr,URr=ae(()=>{"use strict";hp();AP();A0();Tit();Jei=i(r=>{let{theme:t,bkgColorArray:a,borderColorArray:s}=r;if(!S0(t,s))return"";let l=Pg(r.look),h=E0(a),f=VT(r.THEME_COLOR_LIMIT,s),d=i(v=>s[v%s.length],"border"),m=i(v=>h?`fill: ${a[v%a.length]};`:"","fill"),b="";for(let v of IRr){let T=Eie.get(v),C=`[data-look="${l}"].node.${vit(v)}`;b+=`
|
|
|
|
${C} rect,
|
|
${C} path,
|
|
${C} polygon {
|
|
stroke: ${d(T)};
|
|
${m(T)}
|
|
}
|
|
`}for(let v=0;v<wit(f);v++){let T=xit(v,f),C=`[data-look="${l}"][data-color-id="color-${T}"].cluster`,E=`[data-look="${l}"][data-color-id="color-${T}"].node`,S=i(R=>`${C} ${R}, ${E} ${R}`,"rule");b+=`
|
|
|
|
${S("rect")},
|
|
${S("path")} {
|
|
stroke: ${d(T)};
|
|
${m(T)}
|
|
}
|
|
`}return b},"genColor"),Qei=i((r,t)=>{let a=m4,s=a(r,"r"),l=a(r,"g"),h=a(r,"b");return _d(s,l,h,t)},"fade"),Zei=i(r=>`${Jei(r)}
|
|
.label {
|
|
font-family: ${r.fontFamily};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
.cluster-label text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
.cluster-label span {
|
|
color: ${r.titleColor};
|
|
}
|
|
.cluster-label span p {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.label text,span {
|
|
fill: ${r.nodeTextColor||r.textColor};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: ${r.strokeWidth??1}px;
|
|
}
|
|
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
text-anchor: middle;
|
|
}
|
|
.node .katex path {
|
|
fill: ${r.nodeTextColor||r.textColor};
|
|
stroke: ${r.nodeTextColor||r.textColor};
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.root .anchor path {
|
|
fill: ${r.lineColor} !important;
|
|
stroke-width: 0;
|
|
stroke: ${r.lineColor};
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: ${r.arrowheadColor};
|
|
}
|
|
|
|
.edgePaths .path {
|
|
stroke: ${r.lineColor};
|
|
stroke-width: ${r.strokeWidth??2}px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: ${r.lineColor};
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: ${r.edgeLabelBackground};
|
|
p {
|
|
background-color: ${r.edgeLabelBackground};
|
|
}
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: ${r.edgeLabelBackground};
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
/* For html labels only */
|
|
.labelBkg {
|
|
background-color: ${Qei(r.edgeLabelBackground,.5)};
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: ${r.clusterBkg};
|
|
stroke: ${r.clusterBorder};
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.flow-cluster rect {
|
|
fill: none;
|
|
stroke: ${r.clusterBorder};
|
|
stroke-width: 0.75px;
|
|
}
|
|
|
|
.node .collapsed-indicator {
|
|
fill: ${r.nodeBorder};
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.node .collapsed-separator {
|
|
stroke-width: 0.75px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
.cluster span {
|
|
color: ${r.titleColor};
|
|
}
|
|
/* .cluster div {
|
|
color: ${r.titleColor};
|
|
} */
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: ${r.fontFamily};
|
|
font-size: 12px;
|
|
background: ${r.tertiaryColor};
|
|
border: 1px solid ${r.border2};
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.agentflowTitleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: ${r.textColor};
|
|
}
|
|
|
|
rect.text {
|
|
fill: none;
|
|
stroke-width: 0;
|
|
}
|
|
|
|
.icon-shape, .image-shape {
|
|
background-color: ${r.edgeLabelBackground};
|
|
p {
|
|
background-color: ${r.edgeLabelBackground};
|
|
padding: 2px;
|
|
}
|
|
.label rect {
|
|
opacity: 0.5;
|
|
background-color: ${r.edgeLabelBackground};
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
text-align: center;
|
|
}
|
|
${ak()}
|
|
`,"getStyles"),zRr=Zei});var VRr={};is(VRr,{diagram:()=>eti});var eti,WRr=ae(()=>{"use strict";ma();ORr();BRr();jRr();URr();eti={parser:GRr,get db(){return new _ke},renderer:PRr,styles:zRr,init:i(r=>{r.agentflow??={},r.layout&&TA({layout:r.layout}),r.flowchart??={},r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,TA({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}});var iti,YRr,XRr=ae(()=>{"use strict";yit();iti=i(r=>`${Ake(r)}
|
|
.swimlane.cluster:not([data-color-id]) rect {
|
|
stroke: ${r.clusterBorder} !important;
|
|
}
|
|
[data-look="neo"].cluster rect {
|
|
filter: none;
|
|
}
|
|
`,"getStyles"),YRr=iti});var KRr={};is(KRr,{diagram:()=>ati});var ati,JRr=ae(()=>{"use strict";Lke();XRr();ati=Rke({styles:YRr})});var Ait,eLr,tLr=ae(()=>{"use strict";Ait=(function(){var r=i(function(mt,Rt,pt,gt){for(pt=pt||{},gt=mt.length;gt--;pt[mt[gt]]=Rt);return pt},"o"),t=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],a=[2,2],s=[1,7],l=[1,9],h=[1,10],f=[1,11],d=[1,12],m=[1,30],b=[1,23],v=[1,24],T=[1,25],C=[1,26],E=[1,27],S=[1,19],R=[1,28],L=[1,29],_=[1,20],I=[1,18],N=[1,21],B=[1,22],O=[2,6],P=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],$=[1,36],V=[1,37],Y=[1,38],Q=[1,39],q=[1,40],W=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],H=[1,46],re=[1,47],Z=[1,57],X=[43,51,53,54,55,74,75],te=[1,70],U=[1,68],ne=[1,65],se=[1,69],he=[1,71],le=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],pe=[1,78],ge=[1,77],we=[1,76],Ae=[69,70,71,72,73],ve=[1,91],Ie=[6,9,45,50],De=[6,9,12,44,45,50,51,52],Be=[1,101],Fe=[1,100],ze=[1,99],vt=[18,61],lt=[1,110],Ft=[1,109],pr=[20,43,51,53,54,55],tr=[18,61,64,66],Mt={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:i(function(Rt,pt,gt,ut,Yt,Ye,Oe){var K=Ye.length-1;switch(Yt){case 1:break;case 2:this.$=[];break;case 3:this.$=Ye[K-1].concat(Ye[K]);break;case 4:this.$=Ye[K];break;case 5:case 6:this.$=[];break;case 7:ut.addEntity(Ye[K-4]),ut.addEntity(Ye[K-2]),ut.addRelationship(Ye[K-4],Ye[K],Ye[K-2],Ye[K-3]),this.$=[Ye[K-4],Ye[K-2]];break;case 8:ut.addEntity(Ye[K-8]),ut.addEntity(Ye[K-4]),ut.addRelationship(Ye[K-8],Ye[K],Ye[K-4],Ye[K-5]),ut.setClass([Ye[K-8]],Ye[K-6]),ut.setClass([Ye[K-4]],Ye[K-2]),this.$=[Ye[K-8],Ye[K-4]];break;case 9:ut.addEntity(Ye[K-6]),ut.addEntity(Ye[K-2]),ut.addRelationship(Ye[K-6],Ye[K],Ye[K-2],Ye[K-3]),ut.setClass([Ye[K-6]],Ye[K-4]),this.$=[Ye[K-6],Ye[K-2]];break;case 10:ut.addEntity(Ye[K-6]),ut.addEntity(Ye[K-4]),ut.addRelationship(Ye[K-6],Ye[K],Ye[K-4],Ye[K-5]),ut.setClass([Ye[K-4]],Ye[K-2]),this.$=[Ye[K-6],Ye[K-4]];break;case 11:ut.addEntity(Ye[K-3]),ut.addAttributes(Ye[K-3],Ye[K-1]),this.$=[Ye[K-3]];break;case 12:ut.addEntity(Ye[K-5]),ut.addAttributes(Ye[K-5],Ye[K-1]),ut.setClass([Ye[K-5]],Ye[K-3]),this.$=[Ye[K-5]];break;case 13:ut.addEntity(Ye[K-2]),this.$=[Ye[K-2]];break;case 14:ut.addEntity(Ye[K-4]),ut.setClass([Ye[K-4]],Ye[K-2]),this.$=[Ye[K-4]];break;case 15:ut.addEntity(Ye[K]),this.$=[Ye[K]];break;case 16:ut.addEntity(Ye[K-2]),ut.setClass([Ye[K-2]],Ye[K]),this.$=[Ye[K-2]];break;case 17:ut.addEntity(Ye[K-6],Ye[K-4]),ut.addAttributes(Ye[K-6],Ye[K-1]),this.$=[Ye[K-6]];break;case 18:ut.addEntity(Ye[K-8],Ye[K-6]),ut.addAttributes(Ye[K-8],Ye[K-1]),ut.setClass([Ye[K-8]],Ye[K-3]),this.$=[Ye[K-8]];break;case 19:ut.addEntity(Ye[K-5],Ye[K-3]),this.$=[Ye[K-5]];break;case 20:ut.addEntity(Ye[K-7],Ye[K-5]),ut.setClass([Ye[K-7]],Ye[K-2]),this.$=[Ye[K-7]];break;case 21:ut.addEntity(Ye[K-3],Ye[K-1]);break;case 22:ut.addEntity(Ye[K-5],Ye[K-3]),ut.setClass([Ye[K-5]],Ye[K]);break;case 23:case 24:this.$=Ye[K].trim(),ut.setAccTitle(this.$);break;case 25:case 26:this.$=Ye[K].trim(),ut.setAccDescription(this.$);break;case 27:ut.subgraphDepth?this.$=Ye[K]:(ut.setDirection(Ye[K].value),this.$=[]);break;case 31:ut.subgraphDepth=(ut.subgraphDepth||1)-1,this.$=ut.addSubGraph({text:Ye[K-2].id},Ye[K-1],{text:Ye[K-2].text});break;case 32:ut.subgraphDepth=(ut.subgraphDepth||0)+1,this.$={id:Ye[K-1],text:Ye[K-1]};break;case 33:ut.subgraphDepth=(ut.subgraphDepth||0)+1,this.$={id:Ye[K-4],text:Ye[K-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=Ye[K];break;case 35:this.$=Ye[K-1]+" "+Ye[K];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=Ye[K-3],ut.addClass(Ye[K-2],Ye[K-1]);break;case 41:case 42:case 63:case 72:this.$=[Ye[K]];break;case 43:case 44:this.$=Ye[K-2].concat([Ye[K]]);break;case 45:this.$=Ye[K-2],ut.setClass(Ye[K-1],Ye[K]);break;case 46:this.$=Ye[K-3],ut.addCssStyles(Ye[K-2],Ye[K-1]);break;case 47:this.$=[Ye[K]];break;case 48:Ye[K-2].push(Ye[K]),this.$=Ye[K-2];break;case 50:this.$=Ye[K-1]+Ye[K];break;case 58:case 84:case 85:this.$=Ye[K].replace(/"/g,"");break;case 64:Ye[K].push(Ye[K-1]),this.$=Ye[K];break;case 65:this.$={type:Ye[K-1],name:Ye[K]};break;case 66:this.$={type:Ye[K-2],name:Ye[K-1],keys:Ye[K]};break;case 67:this.$={type:Ye[K-2],name:Ye[K-1],comment:Ye[K]};break;case 68:this.$={type:Ye[K-3],name:Ye[K-2],keys:Ye[K-1],comment:Ye[K]};break;case 69:case 71:case 74:this.$=Ye[K];break;case 70:this.$=Ye[K-1]+Ye[K];break;case 73:Ye[K-2].push(Ye[K]),this.$=Ye[K-2];break;case 75:this.$=Ye[K].replace(/"/g,"");break;case 76:this.$={cardA:Ye[K],relType:Ye[K-1],cardB:Ye[K-2]};break;case 77:this.$=ut.Cardinality.ZERO_OR_ONE;break;case 78:this.$=ut.Cardinality.ZERO_OR_MORE;break;case 79:this.$=ut.Cardinality.ONE_OR_MORE;break;case 80:this.$=ut.Cardinality.ONLY_ONE;break;case 81:this.$=ut.Cardinality.MD_PARENT;break;case 82:this.$=ut.Identification.NON_IDENTIFYING;break;case 83:this.$=ut.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},r(t,a,{5:3}),{6:[1,4],7:5,8:6,9:s,10:8,21:l,23:h,25:f,27:d,28:13,29:14,30:15,31:16,32:17,34:m,37:b,38:v,39:T,40:C,41:E,43:S,46:R,47:L,51:_,53:I,54:N,55:B},r(t,O,{1:[2,1]}),r(P,[2,3]),r(P,[2,4]),r(P,[2,5]),r(P,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:$,70:V,71:Y,72:Q,73:q}),{22:[1,41]},{24:[1,42]},{26:[1,43]},r(P,[2,26]),r(P,[2,27]),r(P,[2,28]),r(P,[2,29]),r(P,[2,30]),r(P,a,{5:44}),r(W,[2,58]),r(W,[2,59]),r(W,[2,60]),r(W,[2,61]),r(W,[2,62]),r(P,[2,36]),r(P,[2,37]),r(P,[2,38]),r(P,[2,39]),{15:45,43:H,44:re},{15:48,43:H,44:re},{15:49,43:H,44:re},{10:50,43:S,51:_,53:I,54:N,55:B},{10:51,43:S,51:_,53:I,54:N,55:B},{15:52,43:H,44:re},{17:53,18:[1,54],56:55,57:56,61:Z},{10:58,43:S,51:_,53:I,54:N,55:B},{68:59,74:[1,60],75:[1,61]},r(X,[2,77]),r(X,[2,78]),r(X,[2,79]),r(X,[2,80]),r(X,[2,81]),r(P,[2,23]),r(P,[2,24]),r(P,[2,25]),{6:[1,63],7:5,8:6,9:s,10:8,21:l,23:h,25:f,27:d,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:m,37:b,38:v,39:T,40:C,41:E,43:S,46:R,47:L,51:_,53:I,54:N,55:B},{12:te,42:64,44:U,45:ne,48:66,49:67,51:se,52:he},r(le,[2,41]),r(le,[2,42]),{15:72,43:H,44:re,45:ne},{12:te,42:73,44:U,45:ne,48:66,49:67,51:se,52:he},{6:pe,9:ge,19:[1,75],35:74,50:we},{12:[1,79],14:[1,80]},r(P,[2,16],{67:35,11:81,16:[1,82],45:ne,69:$,70:V,71:Y,72:Q,73:q}),{18:[1,83]},r(P,[2,13]),{17:84,18:[2,63],56:55,57:56,61:Z},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:$,70:V,71:Y,72:Q,73:q},r(Ae,[2,82]),r(Ae,[2,83]),r(P,[2,31]),r(P,O),{6:pe,9:ge,35:90,45:ve,50:we},{43:[1,92],44:[1,93]},r(Ie,[2,47],{49:94,12:te,44:U,51:se,52:he}),r(De,[2,49]),r(De,[2,54]),r(De,[2,55]),r(De,[2,56]),r(De,[2,57]),r(P,[2,45],{45:ne}),{6:pe,9:ge,35:95,45:ve,50:we},r(P,[2,32]),{10:97,36:96,43:S,51:_,53:I,54:N,55:B},r(P,[2,51]),r(P,[2,52]),r(P,[2,53]),{13:98,43:Be,53:Fe,76:ze},{15:102,43:H,44:re},{10:103,43:S,51:_,53:I,54:N,55:B},{17:104,18:[1,105],56:55,57:56,61:Z},r(P,[2,11]),{18:[2,64]},r(vt,[2,65],{59:106,60:107,63:108,65:lt,66:Ft}),r([18,61,65,66],[2,71]),{61:[2,70]},r(P,[2,21],{14:[1,112],16:[1,111]}),r([43,51,53,54,55],[2,76]),r(P,[2,40]),{12:te,44:U,48:113,49:67,51:se,52:he},r(le,[2,43]),r(le,[2,44]),r(De,[2,50]),r(P,[2,46]),{10:115,20:[1,114],43:S,51:_,53:I,54:N,55:B},r(pr,[2,34]),r(P,[2,7]),r(P,[2,84]),r(P,[2,85]),r(P,[2,86]),{12:[1,116],45:ne},{12:[1,118],14:[1,117]},{18:[1,119]},r(P,[2,14]),r(vt,[2,66],{60:120,64:[1,121],66:Ft}),r(vt,[2,67]),r(tr,[2,72]),r(vt,[2,75]),r(tr,[2,74]),{17:122,18:[1,123],56:55,57:56,61:Z},{15:124,43:H,44:re},r(Ie,[2,48],{49:94,12:te,44:U,51:se,52:he}),{6:pe,9:ge,35:125,50:we},r(pr,[2,35]),{13:126,43:Be,53:Fe,76:ze},{15:127,43:H,44:re},{13:128,43:Be,53:Fe,76:ze},r(P,[2,12]),r(vt,[2,68]),{63:129,65:lt},{18:[1,130]},r(P,[2,19]),r(P,[2,22],{16:[1,131],45:ne}),r(P,[2,33]),r(P,[2,10]),{12:[1,132],45:ne},r(P,[2,9]),r(tr,[2,73]),r(P,[2,17]),{17:133,18:[1,134],56:55,57:56,61:Z},{13:135,43:Be,53:Fe,76:ze},{18:[1,136]},r(P,[2,20]),r(P,[2,8]),r(P,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:i(function(Rt,pt){if(pt.recoverable)this.trace(Rt);else{var gt=new Error(Rt);throw gt.hash=pt,gt}},"parseError"),parse:i(function(Rt){var pt=this,gt=[0],ut=[],Yt=[null],Ye=[],Oe=this.table,K="",Te=0,ce=0,Re=0,me=2,be=1,ke=Ye.slice.call(arguments,1),We=Object.create(this.lexer),Ue={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(Ue.yy[rt]=this.yy[rt]);We.setInput(Rt,Ue.yy),Ue.yy.lexer=We,Ue.yy.parser=this,typeof We.yylloc>"u"&&(We.yylloc={});var nt=We.yylloc;Ye.push(nt);var Ot=We.options&&We.options.ranges;typeof Ue.yy.parseError=="function"?this.parseError=Ue.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Gn){gt.length=gt.length-2*Gn,Yt.length=Yt.length-Gn,Ye.length=Ye.length-Gn}i(ft,"popStack");function Qt(){var Gn;return Gn=ut.pop()||We.lex()||be,typeof Gn!="number"&&(Gn instanceof Array&&(ut=Gn,Gn=ut.pop()),Gn=pt.symbols_[Gn]||Gn),Gn}i(Qt,"lex");for(var $t,qt,Gt,jt,Zr,yt,$n={},Ut,An,Un,En;;){if(Gt=gt[gt.length-1],this.defaultActions[Gt]?jt=this.defaultActions[Gt]:(($t===null||typeof $t>"u")&&($t=Qt()),jt=Oe[Gt]&&Oe[Gt][$t]),typeof jt>"u"||!jt.length||!jt[0]){var ai="";En=[];for(Ut in Oe[Gt])this.terminals_[Ut]&&Ut>me&&En.push("'"+this.terminals_[Ut]+"'");We.showPosition?ai="Parse error on line "+(Te+1)+`:
|
|
`+We.showPosition()+`
|
|
Expecting `+En.join(", ")+", got '"+(this.terminals_[$t]||$t)+"'":ai="Parse error on line "+(Te+1)+": Unexpected "+($t==be?"end of input":"'"+(this.terminals_[$t]||$t)+"'"),this.parseError(ai,{text:We.match,token:this.terminals_[$t]||$t,line:We.yylineno,loc:nt,expected:En})}if(jt[0]instanceof Array&&jt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Gt+", token: "+$t);switch(jt[0]){case 1:gt.push($t),Yt.push(We.yytext),Ye.push(We.yylloc),gt.push(jt[1]),$t=null,qt?($t=qt,qt=null):(ce=We.yyleng,K=We.yytext,Te=We.yylineno,nt=We.yylloc,Re>0&&Re--);break;case 2:if(An=this.productions_[jt[1]][1],$n.$=Yt[Yt.length-An],$n._$={first_line:Ye[Ye.length-(An||1)].first_line,last_line:Ye[Ye.length-1].last_line,first_column:Ye[Ye.length-(An||1)].first_column,last_column:Ye[Ye.length-1].last_column},Ot&&($n._$.range=[Ye[Ye.length-(An||1)].range[0],Ye[Ye.length-1].range[1]]),yt=this.performAction.apply($n,[K,ce,Te,Ue.yy,jt[1],Yt,Ye].concat(ke)),typeof yt<"u")return yt;An&&(gt=gt.slice(0,-1*An*2),Yt=Yt.slice(0,-1*An),Ye=Ye.slice(0,-1*An)),gt.push(this.productions_[jt[1]][0]),Yt.push($n.$),Ye.push($n._$),Un=Oe[gt[gt.length-2]][gt[gt.length-1]],gt.push(Un);break;case 3:return!0}}return!0},"parse")},ot=(function(){var mt={EOF:1,parseError:i(function(pt,gt){if(this.yy.parser)this.yy.parser.parseError(pt,gt);else throw new Error(pt)},"parseError"),setInput:i(function(Rt,pt){return this.yy=pt||this.yy||{},this._input=Rt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var Rt=this._input[0];this.yytext+=Rt,this.yyleng++,this.offset++,this.match+=Rt,this.matched+=Rt;var pt=Rt.match(/(?:\r\n?|\n).*/g);return pt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Rt},"input"),unput:i(function(Rt){var pt=Rt.length,gt=Rt.split(/(?:\r\n?|\n)/g);this._input=Rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pt),this.offset-=pt;var ut=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),gt.length-1&&(this.yylineno-=gt.length-1);var Yt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:gt?(gt.length===ut.length?this.yylloc.first_column:0)+ut[ut.length-gt.length].length-gt[0].length:this.yylloc.first_column-pt},this.options.ranges&&(this.yylloc.range=[Yt[0],Yt[0]+this.yyleng-pt]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(Rt){this.unput(this.match.slice(Rt))},"less"),pastInput:i(function(){var Rt=this.matched.substr(0,this.matched.length-this.match.length);return(Rt.length>20?"...":"")+Rt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var Rt=this.match;return Rt.length<20&&(Rt+=this._input.substr(0,20-Rt.length)),(Rt.substr(0,20)+(Rt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var Rt=this.pastInput(),pt=new Array(Rt.length+1).join("-");return Rt+this.upcomingInput()+`
|
|
`+pt+"^"},"showPosition"),test_match:i(function(Rt,pt){var gt,ut,Yt;if(this.options.backtrack_lexer&&(Yt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Yt.yylloc.range=this.yylloc.range.slice(0))),ut=Rt[0].match(/(?:\r\n?|\n).*/g),ut&&(this.yylineno+=ut.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ut?ut[ut.length-1].length-ut[ut.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Rt[0].length},this.yytext+=Rt[0],this.match+=Rt[0],this.matches=Rt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Rt[0].length),this.matched+=Rt[0],gt=this.performAction.call(this,this.yy,this,pt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var Ye in Yt)this[Ye]=Yt[Ye];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Rt,pt,gt,ut;this._more||(this.yytext="",this.match="");for(var Yt=this._currentRules(),Ye=0;Ye<Yt.length;Ye++)if(gt=this._input.match(this.rules[Yt[Ye]]),gt&&(!pt||gt[0].length>pt[0].length)){if(pt=gt,ut=Ye,this.options.backtrack_lexer){if(Rt=this.test_match(gt,Yt[Ye]),Rt!==!1)return Rt;if(this._backtrack){pt=!1;continue}else return!1}else if(!this.options.flex)break}return pt?(Rt=this.test_match(pt,Yt[ut]),Rt!==!1?Rt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var pt=this.next();return pt||this.lex()},"lex"),begin:i(function(pt){this.conditionStack.push(pt)},"begin"),popState:i(function(){var pt=this.conditionStack.length-1;return pt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(pt){return pt=this.conditionStack.length-1-Math.abs(pt||0),pt>=0?this.conditionStack[pt]:"INITIAL"},"topState"),pushState:i(function(pt){this.begin(pt)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(pt,gt,ut,Yt){var Ye=Yt;switch(ut){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return gt.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return gt.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return mt})();Mt.lexer=ot;function it(){this.yy={}}return i(it,"Parser"),it.prototype=Mt,Mt.Parser=it,new it})();Ait.parser=Ait;eLr=Ait});var Dke,rLr=ae(()=>{"use strict";Yn();ma();nl();Au();Ma();Dke=class{constructor(){this.entities=new Map;this.relationships=[];this.classes=new Map;this.subgraphDepth=0;this.subGraphs=[];this.subGraphLookup=new Map;this.subCount=0;this.direction="TB";this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"};this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"};this.setAccTitle=Os;this.getAccTitle=Vs;this.setAccDescription=$s;this.getAccDescription=Ws;this.setDiagramTitle=io;this.getDiagramTitle=Ks;this.getConfig=i(()=>er().er,"getConfig");this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{i(this,"ErDB")}addEntity(t,a=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&a&&(this.entities.get(t).alias=a,Pe.info(`Add alias '${a}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:a,shape:"erBox",look:er().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),Pe.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,a){let s=this.addEntity(t),l;for(l=a.length-1;l>=0;l--)a[l].keys||(a[l].keys=[]),a[l].comment||(a[l].comment=""),s.attributes.push(a[l]),Pe.debug("Added attribute ",a[l].name)}addRelationship(t,a,s,l){let h;if(this.subGraphLookup.has(t))h=t;else{let m=this.addEntity(t);if(!m)return;h=m.id}let f;if(this.subGraphLookup.has(s))f=s;else{let m=this.addEntity(s);if(!m)return;f=m.id}let d={entityA:h,roleA:a,entityB:f,relSpec:l};this.relationships.push(d),Pe.debug("Added new relationship :",d)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let a=[];for(let s of t){let l=this.classes.get(s);l?.styles&&(a=[...a,...l.styles??[]].map(h=>h.trim())),l?.textStyles&&(a=[...a,...l.textStyles??[]].map(h=>h.trim()))}return a}addCssStyles(t,a){for(let s of t){let l=this.entities.get(s),h=this.subGraphLookup.get(s);if(a){if(l)for(let f of a)l.cssStyles.push(f);if(h){h.cssStyles||(h.cssStyles=[]);for(let f of a)h.cssStyles.push(f)}}}}addClass(t,a){t.forEach(s=>{let l=this.classes.get(s);l===void 0&&(l={id:s,styles:[],textStyles:[]},this.classes.set(s,l)),a&&a.forEach(function(h){if(/color/.exec(h)){let f=h.replace("fill","bgFill");l.textStyles.push(f)}l.styles.push(h)})})}addSubGraph(t,a,s){let l=t.text.trim(),h=s.text,d=i(T=>{let C=new Set,E;return{nodeList:T.filter(R=>{if(R?.stmt)return R.stmt==="dir"&&(E=R.value),!1;if(typeof R!="string")return!1;let L=R.trim();return!L||C.has(L)?!1:(C.add(L),!0)}),dir:E}},"uniq")(a.flat()),m=d.nodeList,b=d.dir;l=l??"subGraph"+this.subCount,h=h||"",h=this.sanitizeText(h),this.subCount=this.subCount+1;let v={id:l,nodes:m,title:h.trim(),classes:[],cssStyles:[],dir:b,labelType:this.sanitizeNodeLabelType(s?.type)};return Pe.info("Adding",v.id,v.nodes,v.dir),v.nodes=this.makeUniq(v,this.subGraphs).nodes,this.subGraphs.push(v),this.subGraphLookup.set(l,v),l}getSubGraphs(){return this.subGraphs}setClass(t,a){for(let s of t){let l=this.entities.get(s);if(l)for(let f of a)l.cssClasses+=" "+f;let h=this.subGraphLookup.get(s);if(h)for(let f of a)h.classes.push(f)}}subgraphNodeCache(t){let a=new Set;for(let s of t)for(let l of s.nodes)a.add(l);return a}makeUniq(t,a){let s=this.subgraphNodeCache(a),l=[];return t.nodes.forEach((h,f)=>{s.has(h)?Pe.warn(`Entity '${h}' already belongs to another subgraph and will be ignored`):l.push(t.nodes[f])}),{nodes:l}}sanitizeText(t){return Xn.sanitizeText(t,er())}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,Ds()}getData(){let t=[],a=[],s=er(),l=this.getSubGraphs(),h=new Map,f=new Map;for(let v=l.length-1;v>=0;v--){let T=l[v];T.nodes.length>0&&f.set(T.id,!0);for(let C of T.nodes)h.set(C,T.id)}for(let v=l.length-1;v>=0;v--){let T=l[v];t.push({id:T.id,label:T.title,labelStyle:"",labelType:T.labelType,parentId:h.get(T.id),padding:8,cssCompiledStyles:this.getCompiledStyles(T.classes),cssStyles:T.cssStyles,cssClasses:T.classes.join(" "),shape:"rect",dir:T.dir,isGroup:!0,look:s.look})}let d=new Set(l.map(v=>v.id)),m=0;for(let v of this.entities.keys()){if(d.has(v))continue;let T=this.entities.get(v);T&&(T.cssCompiledStyles=this.getCompiledStyles(T.cssClasses.split(" ")),T.colorIndex=m++,t.push({...T,parentId:h.get(v),isGroup:!1}))}let b=0;for(let v of this.relationships){let T={id:s2(v.entityA,v.entityB,{prefix:"id",counter:b++}),type:"normal",curve:"basis",start:v.entityA,end:v.entityB,label:v.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:v.relSpec.cardB.toLowerCase(),arrowTypeEnd:v.relSpec.cardA.toLowerCase(),pattern:v.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:s.look,labelType:"markdown"};a.push(T)}return{nodes:t,edges:a,other:{},config:s,direction:this.direction}}}});var Rit={};is(Rit,{draw:()=>cti});var cti,nLr=ae(()=>{"use strict";ma();Yn();FA();PS();BS();Ma();zo();cti=i(async function(r,t,a,s){Pe.info("REF0:"),Pe.info("Drawing er diagram (unified)",t);let{securityLevel:l,er:h,layout:f}=er(),d=s.db.getData(),m=dy(t,l);d.type=s.type,d.layoutAlgorithm=Ty(f),d.config.flowchart.nodeSpacing=h?.nodeSpacing||140,d.config.flowchart.rankSpacing=h?.rankSpacing||80,d.direction=s.db.getDirection();let{config:b}=d,{look:v}=b;v==="neo"?d.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:d.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],d.diagramId=t,await xy(d,m);let T=m.selectAll('[id*="-background"]');Array.from(T).length>0&&T.each(function(){let E=mn(this),R=E.attr("id").replace("-background",""),L=m.select(`#${CSS.escape(R)}`);if(!L.empty()){let _=L.attr("transform");E.attr("transform",_)}});let C=8;Va.insertTitle(m,"erDiagramTitleText",h?.titleTopMargin??25,s.db.getDiagramTitle()),Sm(m,C,"erDiagram",h?.useMaxWidth??!0)},"draw")});var iLr,uti,hti,aLr,sLr=ae(()=>{"use strict";hp();A0();iLr=i((r,t)=>{let a=m4,s=a(r,"r"),l=a(r,"g"),h=a(r,"b");return _d(s,l,h,t)},"fade"),uti=i(r=>{let{theme:t,bkgColorArray:a,borderColorArray:s}=r;if(!S0(t,s))return"";let l=Pg(r.look),h=E0(a),f="";for(let d=0;d<lS(s);d++){let m=s[d],b=h?`fill: ${a[d%a.length]};`:"";f+=`
|
|
|
|
[data-look="${l}"][data-color-id="color-${d}"].node path {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
|
|
[data-look="${l}"][data-color-id="color-${d}"].node rect {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
`}return f},"genColor"),hti=i(r=>{let{look:t,theme:a,erEdgeLabelBackground:s,strokeWidth:l}=r;return`
|
|
${uti(r)}
|
|
.entityBox {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
}
|
|
|
|
.relationshipLabelBox {
|
|
fill: ${r.tertiaryColor};
|
|
opacity: 0.7;
|
|
background-color: ${r.tertiaryColor};
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.labelBkg {
|
|
background-color: ${Nre.has(a)&&s?s:iLr(r.tertiaryColor,.5)};
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: ${Nre.has(a)&&s?s:r.edgeLabelBackground};
|
|
}
|
|
.edgeLabel .label rect {
|
|
fill: ${Nre.has(a)&&s?s:r.edgeLabelBackground};
|
|
}
|
|
.edgeLabel .label text {
|
|
fill: ${r.textColor};
|
|
}
|
|
|
|
.edgeLabel .label {
|
|
fill: ${r.nodeBorder};
|
|
font-size: 14px;
|
|
}
|
|
|
|
.label {
|
|
font-family: ${r.fontFamily};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
|
|
.edge-pattern-dashed {
|
|
stroke-dasharray: 8,8;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon
|
|
{
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: ${t==="neo"?l:"1px"};
|
|
}
|
|
|
|
.relationshipLine {
|
|
stroke: ${r.lineColor};
|
|
stroke-width: ${t==="neo"?l:"1px"};
|
|
fill: none;
|
|
}
|
|
|
|
.marker {
|
|
fill: none !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
[data-look=neo].labelBkg {
|
|
background-color: ${iLr(r.tertiaryColor,.5)};
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: ${r.clusterBkg??r.mainBkg};
|
|
stroke: ${r.clusterBorder??r.nodeBorder};
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: ${r.titleColor??r.textColor};
|
|
}
|
|
|
|
.cluster-label text {
|
|
fill: ${r.titleColor??r.textColor};
|
|
}
|
|
`},"getStyles"),aLr=hti});var oLr={};is(oLr,{diagram:()=>fti});var fti,lLr=ae(()=>{"use strict";tLr();rLr();nLr();sLr();fti={parser:eLr,get db(){return new Dke},renderer:Rit,styles:aLr}});function Lm(r){return typeof r=="object"&&r!==null&&typeof r.$type=="string"}function ok(r){return typeof r=="object"&&r!==null&&typeof r.$refText=="string"&&"ref"in r}function c8(r){return typeof r=="object"&&r!==null&&typeof r.$refText=="string"&&"items"in r}function $_r(r){return typeof r=="object"&&r!==null&&typeof r.name=="string"&&typeof r.type=="string"&&typeof r.path=="string"}function UV(r){return typeof r=="object"&&r!==null&&typeof r.info=="object"&&typeof r.message=="string"}function KV(r){return typeof r=="object"&&r!==null&&Array.isArray(r.content)}function Wot(r){return typeof r=="object"&&r!==null&&typeof r.tokenType=="object"}function Hot(r){return KV(r)&&typeof r.fullText=="string"}function j_r(r){return typeof r=="string"?r:typeof r>"u"?"undefined":typeof r.toString=="function"?r.toString():Object.prototype.toString.call(r)}function oae(r){return!!r&&typeof r[Symbol.iterator]=="function"}function rd(...r){if(r.length===1){let t=r[0];if(t instanceof vD)return t;if(oae(t))return new vD(()=>t[Symbol.iterator](),a=>a.next());if(typeof t.length=="number")return new vD(()=>({index:0}),a=>a.index<t.length?{done:!1,value:t[a.index++]}:lx)}return r.length>1?new vD(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let a=t.iterator.next();if(!a.done)return a;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<r.length){let a=r[t.collIndex++];oae(a)?t.iterator=a[Symbol.iterator]():a&&typeof a.length=="number"&&(t.array=a)}}while(t.iterator||t.array||t.collIndex<r.length);return lx}):z_r}function P3e(r,t={}){for(let[a,s]of Object.entries(r))a.startsWith("$")||(Array.isArray(s)?s.forEach((l,h)=>{Lm(l)&&(l.$container=r,l.$containerProperty=a,l.$containerIndex=h,t.deep&&P3e(l,t))}):Lm(s)&&(s.$container=r,s.$containerProperty=a,t.deep&&P3e(s,t)))}function Eae(r,t){let a=r;for(;a;){if(t(a))return a;a=a.$container}}function US(r){let a=Zie(r).$document;if(!a)throw new Error("AST node has no document.");return a}function Zie(r){for(;r.$container;)r=r.$container;return r}function est(r){return ok(r)?r.ref?[r.ref]:[]:c8(r)?r.items.map(t=>t.ref):[]}function i4e(r,t){if(!r)throw new Error("Node must be an AstNode.");let a=t?.range;return new vD(()=>({keys:Object.keys(r),keyIndex:0,arrayIndex:0}),s=>{for(;s.keyIndex<s.keys.length;){let l=s.keys[s.keyIndex];if(!l.startsWith("$")){let h=r[l];if(Lm(h)){if(s.keyIndex++,B3e(h,a))return{done:!1,value:h}}else if(Array.isArray(h)){for(;s.arrayIndex<h.length;){let f=s.arrayIndex++,d=h[f];if(Lm(d)&&B3e(d,a))return{done:!1,value:d}}s.arrayIndex=0}}s.keyIndex++}return lx})}function tW(r,t){if(!r)throw new Error("Root node must be an AstNode.");return new O3e(r,a=>i4e(a,t))}function VS(r,t){if(r){if(t?.range&&!B3e(r,t.range))return new O3e(r,()=>[])}else throw new Error("Root node must be an AstNode.");return new O3e(r,a=>i4e(a,t),{includeRoot:!0})}function B3e(r,t){if(!t)return!0;let a=r.$cstNode?.range;return a?fDr(a,t):!1}function lae(r){return new vD(()=>({keys:Object.keys(r),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let a=t.keys[t.keyIndex];if(!a.startsWith("$")){let s=r[a];if(ok(s)||c8(s))return t.keyIndex++,{done:!1,value:{reference:s,container:r,property:a}};if(Array.isArray(s)){for(;t.arrayIndex<s.length;){let l=t.arrayIndex++,h=s[l];if(ok(h)||c8(h))return{done:!1,value:{reference:h,container:r,property:a,index:l}}}t.arrayIndex=0}}t.keyIndex++}return lx})}function U_r(r,t){let a=r.getTypeMetaData(t.$type),s=t;for(let l of Object.values(a.properties))l.defaultValue!==void 0&&s[l.name]===void 0&&(s[l.name]=qot(l.defaultValue))}function qot(r){return Array.isArray(r)?[...r.map(qot)]:r}function V_r(r){return uu.isInstance(r,ox.$type)}function rW(r){return uu.isInstance(r,o3e.$type)}function Sae(r){return uu.isInstance(r,MP.$type)}function Yot(r){return uu.isInstance(r,l3e.$type)}function wD(r){return uu.isInstance(r,NP.$type)}function W_r(r){return uu.isInstance(r,tst.$type)}function H_r(r){return uu.isInstance(r,OP.$type)}function q_r(r){return uu.isInstance(r,c3e.$type)}function Aae(r){return uu.isInstance(r,PP.$type)}function Y_r(r){return uu.isInstance(r,u3e.$type)}function X_r(r){return uu.isInstance(r,rst.$type)}function a4e(r){return uu.isInstance(r,_V.$type)}function Xot(r){return uu.isInstance(r,nst.$type)}function cae(r){return uu.isInstance(r,i8.$type)}function K_r(r){return uu.isInstance(r,Vie.$type)}function xD(r){return uu.isInstance(r,Wie.$type)}function J_r(r){return uu.isInstance(r,DV.$type)}function Q_r(r){return uu.isInstance(r,ist.$type)}function Z_r(r){return uu.isInstance(r,ast.$type)}function qS(r){return uu.isInstance(r,GS.$type)}function eDr(r){return uu.isInstance(r,IV.$type)}function tDr(r){return uu.isInstance(r,sst.$type)}function TD(r){return uu.isInstance(r,MV.$type)}function rDr(r){return uu.isInstance(r,Hie.$type)}function nDr(r){return uu.isInstance(r,NV.$type)}function iDr(r){return uu.isInstance(r,OV.$type)}function YS(r){return uu.isInstance(r,fD.$type)}function Kot(r){return uu.isInstance(r,PV.$type)}function aDr(r){return uu.isInstance(r,h3e.$type)}function Jot(r){return uu.isInstance(r,f3e.$type)}function sDr(r){return uu.isInstance(r,BV.$type)}function oDr(r){return uu.isInstance(r,qie.$type)}function F3e(r){return new O3e(r,t=>KV(t)?t.content:[],{includeRoot:!0})}function cDr(r,t){for(;r.container;)if(r=r.container,r===t)return!0;return!1}function uDr(r){return{start:{line:r.startLine-1,character:r.startColumn-1},end:{line:r.endLine-1,character:r.endColumn}}}function $3e(r){let{startOffset:t,endOffset:a}=r;return typeof t=="number"&&Number.isFinite(t)&&t>=0&&typeof a=="number"&&Number.isFinite(a)&&a>=t}function uae(r){if(!r)return;let{offset:t,end:a,range:s}=r;return{range:s,offset:t,end:a,length:a-t}}function hDr(r,t){if(r.end.line<t.start.line||r.end.line===t.start.line&&r.end.character<=t.start.character)return o8.Before;if(r.start.line>t.end.line||r.start.line===t.end.line&&r.start.character>=t.end.character)return o8.After;let a=r.start.line>t.start.line||r.start.line===t.start.line&&r.start.character>=t.start.character,s=r.end.line<t.end.line||r.end.line===t.end.line&&r.end.character<=t.end.character;return a&&s?o8.Inside:a?o8.OverlapBack:s?o8.OverlapFront:o8.Outside}function fDr(r,t){return hDr(r,t)>o8.After}function dDr(r,t){if(r){let a=pDr(r,!0);if(a&&ost(a,t))return a;if(Hot(r)){let s=r.content.findIndex(l=>!l.hidden);for(let l=s-1;l>=0;l--){let h=r.content[l];if(ost(h,t))return h}}}}function ost(r,t){return Wot(r)&&t.includes(r.tokenType.name)}function pDr(r,t=!0){for(;r.container;){let a=r.container,s=a.content.indexOf(r);for(;s>0;){s--;let l=a.content[s];if(t||!l.hidden)return l}r=a}}function nW(r,t="Error: Got unexpected value."){throw new Error(typeof t=="string"?t:t())}function Eo(r){return r.charCodeAt(0)}function d3e(r,t){Array.isArray(r)?r.forEach(function(a){t.push(a)}):t.push(r)}function FV(r,t){if(r[t]===!0)throw"duplicate flag "+t;let a=r[t];r[t]=!0}function BP(r){if(r===void 0)throw Error("Internal Error - Should never get here!");return!0}function Yie(){throw Error("Internal Error - Should never get here!")}function lst(r){return r.type==="Character"}function yDr(r){try{return typeof r=="string"&&(r=new RegExp(r)),r=r.toString(),Iit.reset(r),Iit.visit(rri.pattern(r)),Iit.multiline}catch{return!1}}function Qot(r){let t=typeof r=="string"?new RegExp(r):r;return iri.some(a=>t.test(a))}function Rae(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function bDr(r,t){let a=vDr(r),s=t.match(a);return!!s&&s[0].length>0}function vDr(r){typeof r=="string"&&(r=new RegExp(r));let t=r,a=r.source,s=0;function l(){let h="",f;function d(b){h+=a.substr(s,b),s+=b}i(d,"appendRaw"),J(d,"appendRaw");function m(b){h+="(?:"+a.substr(s,b)+"|$)",s+=b}for(i(m,"appendOptional"),J(m,"appendOptional");s<a.length;)switch(a[s]){case"\\":switch(a[s+1]){case"c":m(3);break;case"x":m(4);break;case"u":t.unicode?a[s+2]==="{"?m(a.indexOf("}",s)-s+1):m(6):m(2);break;case"p":case"P":t.unicode?m(a.indexOf("}",s)-s+1):m(2);break;case"k":m(a.indexOf(">",s)-s+1);break;default:m(2);break}break;case"[":f=/\[(?:\\.|.)*?\]/g,f.lastIndex=s,f=f.exec(a)||[],m(f[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":d(1);break;case"{":f=/\{\d+,?\d*\}/g,f.lastIndex=s,f=f.exec(a),f?d(f[0].length):m(1);break;case"(":if(a[s+1]==="?")switch(a[s+2]){case":":h+="(?:",s+=3,h+=l()+"|$)";break;case"=":h+="(?=",s+=3,h+=l()+")";break;case"!":f=s,s+=3,l(),h+=a.substr(f,s-f);break;case"<":switch(a[s+3]){case"=":case"!":f=s,s+=4,l(),h+=a.substr(f,s-f);break;default:d(a.indexOf(">",s)-s+1),h+=l()+"|$)";break}break}else d(1),h+=l()+"|$)";break;case")":return++s,h;default:m(1);break}return h}return i(l,"process2"),J(l,"process"),new RegExp(l(),r.flags)}function wDr(r){return r.rules.find(t=>qS(t)&&t.entry)}function xDr(r){return r.rules.filter(t=>YS(t)&&t.hidden)}function Zot(r,t){let a=new Set,s=wDr(r);if(!s)return new Set(r.rules);let l=[s].concat(xDr(r));for(let f of l)elt(f,a,t);let h=new Set;for(let f of r.rules)(a.has(f.name)||YS(f)&&f.hidden)&&h.add(f);return h}function elt(r,t,a){t.add(r.name),tW(r).forEach(s=>{if(TD(s)||a&&Kot(s)){let l=s.rule.ref;l&&!t.has(l.name)&&elt(l,t,a)}})}function TDr(r){if(r.terminal)return r.terminal;if(r.type.ref)return rlt(r.type.ref)?.terminal}function kDr(r){return r.hidden&&!Qot(l4e(r))}function CDr(r,t){return!r||!t?[]:o4e(r,t,r.astNode,!0)}function tlt(r,t,a){if(!r||!t)return;let s=o4e(r,t,r.astNode,!0);if(s.length!==0)return a!==void 0?a=Math.max(0,Math.min(a,s.length-1)):a=0,s[a]}function o4e(r,t,a,s){if(!s){let l=Eae(r.grammarSource,wD);if(l&&l.feature===t)return[r]}return KV(r)&&r.astNode===a?r.content.flatMap(l=>o4e(l,t,a,!1)):[]}function EDr(r,t,a){if(!r)return;let s=SDr(r,t,r?.astNode);if(s.length!==0)return a!==void 0?a=Math.max(0,Math.min(a,s.length-1)):a=0,s[a]}function SDr(r,t,a){if(r.astNode!==a)return[];if(xD(r.grammarSource)&&r.grammarSource.value===t)return[r];let s=F3e(r).iterator(),l,h=[];do if(l=s.next(),!l.done){let f=l.value;f.astNode===a?xD(f.grammarSource)&&f.grammarSource.value===t&&h.push(f):s.prune()}while(!l.done);return h}function ADr(r){let t=r.astNode;for(;t===r.container?.astNode;){let a=Eae(r.grammarSource,wD);if(a)return a;r=r.container}}function rlt(r){let t=r;return Xot(t)&&(Sae(t.$container)?t=t.$container.$container:rW(t.$container)?t=t.$container:nW(t.$container)),nlt(r,t,new Map)}function nlt(r,t,a){function s(l,h){let f;return Eae(l,wD)||(f=nlt(h,h,a)),a.set(r,f),f}if(i(s,"go"),J(s,"go"),a.has(r))return a.get(r);a.set(r,void 0);for(let l of tW(t)){if(wD(l)&&l.feature.toLowerCase()==="name")return a.set(r,l),l;if(TD(l)&&qS(l.rule.ref))return s(l,l.rule.ref);if(rDr(l)&&l.typeRef?.ref)return s(l,l.typeRef.ref)}}function ilt(r){return alt(r,new Set)}function alt(r,t){if(t.has(r))return!0;t.add(r);for(let a of tW(r))if(TD(a)){if(!a.rule.ref||qS(a.rule.ref)&&!alt(a.rule.ref,t)||cae(a.rule.ref))return!1}else{if(wD(a))return!1;if(Sae(a))return!1}return!!r.definition}function slt(r){if(!YS(r)){if(r.inferredType)return r.inferredType.name;if(r.dataType)return r.dataType;if(r.returnType){let t=r.returnType.ref;if(t)return t.name}}}function JV(r){if(rW(r))return qS(r)&&ilt(r)?r.name:slt(r)??r.name;if(K_r(r)||aDr(r)||tDr(r))return r.name;if(Sae(r)){let t=RDr(r);if(t)return t}else if(Xot(r))return r.name;throw new Error("Cannot get name of Unknown Type")}function RDr(r){if(r.inferredType)return r.inferredType.name;if(r.type?.ref)return JV(r.type.ref)}function LDr(r){return YS(r)?r.type?.name??"string":slt(r)??r.name}function l4e(r){let t={s:!1,i:!1,u:!1},a=iB(r.definition,t),s=Object.entries(t).filter(([,l])=>l).map(([l])=>l).join("");return new RegExp(a,s)}function iB(r,t){if(nDr(r))return _Dr(r);if(iDr(r))return DDr(r);if(H_r(r))return NDr(r);if(Kot(r)){let a=r.rule.ref;if(!a)throw new Error("Missing rule reference.");return WS(iB(a.definition),{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized})}else{if(J_r(r))return MDr(r);if(sDr(r))return IDr(r);if(eDr(r)){let a=r.regex.lastIndexOf("/"),s=r.regex.substring(1,a),l=r.regex.substring(a+1);return t&&(t.i=l.includes("i"),t.s=l.includes("s"),t.u=l.includes("u")),WS(s,{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized,wrap:!1})}else{if(oDr(r))return WS(olt,{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized});throw new Error(`Invalid terminal element: ${r?.$type}, ${r?.$cstNode?.text}`)}}}function _Dr(r){return WS(r.elements.map(t=>iB(t)).join("|"),{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized,wrap:!1})}function DDr(r){return WS(r.elements.map(t=>iB(t)).join(""),{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized,wrap:!1})}function IDr(r){return WS(`${olt}*?${iB(r.terminal)}`,{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized})}function MDr(r){return WS(`(?!${iB(r.terminal)})${olt}*?`,{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized})}function NDr(r){return r.right?WS(`[${p3e(r.left)}-${p3e(r.right)}]`,{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized,wrap:!1}):WS(p3e(r.left),{cardinality:r.cardinality,lookahead:r.lookahead,parenthesized:r.parenthesized,wrap:!1})}function p3e(r){return Rae(r.value)}function WS(r,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(r=`(${t.lookahead??(t.parenthesized?"":"?:")}${r})`),t.cardinality?`${r}${t.cardinality}`:r}function ODr(r){let t=[],a=r.Grammar;for(let s of a.rules)YS(s)&&kDr(s)&&yDr(l4e(s))&&t.push(s.name);return{multilineCommentRules:t,nameRegexp:Qti}}function z3e(r){console&&console.error&&console.error(`Error: ${r}`)}function llt(r){console&&console.warn&&console.warn(`Warning: ${r}`)}function clt(r){let t=new Date().getTime(),a=r();return{time:new Date().getTime()-t,value:a}}function ult(r){function t(){}i(t,"FakeConstructor"),J(t,"FakeConstructor"),t.prototype=r;let a=new t;function s(){return typeof a.bar}return i(s,"fakeAccess"),J(s,"fakeAccess"),s(),s(),r;(0,eval)(r)}function PDr(r){return BDr(r)?r.LABEL:r.name}function BDr(r){return typeof r.LABEL=="string"&&r.LABEL!==""}function FDr(r){return r.map(eae)}function eae(r){function t(a){return a.map(eae)}if(i(t,"convertDefinition"),J(t,"convertDefinition"),r instanceof Bb){let a={type:"NonTerminal",name:r.nonTerminalName,idx:r.idx};return typeof r.label=="string"&&(a.label=r.label),a}else{if(r instanceof x2)return{type:"Alternative",definition:t(r.definition)};if(r instanceof b1)return{type:"Option",idx:r.idx,definition:t(r.definition)};if(r instanceof ux)return{type:"RepetitionMandatory",idx:r.idx,definition:t(r.definition)};if(r instanceof hx)return{type:"RepetitionMandatoryWithSeparator",idx:r.idx,separator:eae(new Af({terminalType:r.separator})),definition:t(r.definition)};if(r instanceof T2)return{type:"RepetitionWithSeparator",idx:r.idx,separator:eae(new Af({terminalType:r.separator})),definition:t(r.definition)};if(r instanceof kp)return{type:"Repetition",idx:r.idx,definition:t(r.definition)};if(r instanceof k2)return{type:"Alternation",idx:r.idx,definition:t(r.definition)};if(r instanceof Af){let a={type:"Terminal",name:r.terminalType.name,label:PDr(r.terminalType),idx:r.idx};typeof r.label=="string"&&(a.terminalLabel=r.label);let s=r.terminalType.PATTERN;return r.terminalType.PATTERN&&(a.pattern=s instanceof RegExp?s.source:s),a}else{if(r instanceof iW)return{type:"Rule",name:r.name,orgText:r.orgText,definition:t(r.definition)};throw Error("non exhaustive match")}}}function eC(r){return Object.fromEntries(Object.entries(r).filter(([,t])=>t!==void 0))}function $Dr(r){return r instanceof x2||r instanceof b1||r instanceof kp||r instanceof ux||r instanceof hx||r instanceof T2||r instanceof Af||r instanceof iW}function hae(r,t=[]){return r instanceof b1||r instanceof kp||r instanceof T2?!0:r instanceof k2?r.definition.some(s=>hae(s,t)):r instanceof Bb&&t.includes(r)?!1:r instanceof XS?(r instanceof Bb&&t.push(r),r.definition.every(s=>hae(s,t))):!1}function GDr(r){return r instanceof k2}function J4(r){if(r instanceof Bb)return"SUBRULE";if(r instanceof b1)return"OPTION";if(r instanceof k2)return"OR";if(r instanceof ux)return"AT_LEAST_ONE";if(r instanceof hx)return"AT_LEAST_ONE_SEP";if(r instanceof T2)return"MANY_SEP";if(r instanceof kp)return"MANY";if(r instanceof Af)return"CONSUME";throw Error("non exhaustive match")}function cst(r,t,a){return[new b1({definition:[new Af({terminalType:r.separator})].concat(r.definition)})].concat(t,a)}function sW(r){if(r instanceof Bb)return sW(r.referencedRule);if(r instanceof Af)return UDr(r);if($Dr(r))return jDr(r);if(GDr(r))return zDr(r);throw Error("non exhaustive match")}function jDr(r){let t=[],a=r.definition,s=0,l=a.length>s,h,f=!0;for(;l&&f;)h=a[s],f=hae(h),t=t.concat(sW(h)),s=s+1,l=a.length>s;return[...new Set(t)]}function zDr(r){let t=r.definition.map(a=>sW(a));return[...new Set(t.flat())]}function UDr(r){return[r.terminalType]}function WDr(r){let t={};return r.forEach(a=>{let s=new ari(a).startWalking();Object.assign(t,s)}),t}function HDr(r,t){return r.name+t+VDr}function oW(r){let t=r.toString();if(g3e.hasOwnProperty(t))return g3e[t];{let a=sri.pattern(t);return g3e[t]=a,a}}function qDr(){g3e={}}function XDr(r,t=!1){try{let a=oW(r);return V3e(a.value,{},a.flags.ignoreCase)}catch(a){if(a.message===YDr)t&&llt(`${U3e} Unable to optimize: < ${r.toString()} >
|
|
Complement Sets cannot be automatically optimized.
|
|
This will disable the lexer's first char optimizations.
|
|
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let s="";t&&(s=`
|
|
This will disable the lexer's first char optimizations.
|
|
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),z3e(`${U3e}
|
|
Failed parsing: < ${r.toString()} >
|
|
Using the @chevrotain/regexp-to-ast library
|
|
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+s)}}return[]}function V3e(r,t,a){switch(r.type){case"Disjunction":for(let l=0;l<r.value.length;l++)V3e(r.value[l],t,a);break;case"Alternative":let s=r.value;for(let l=0;l<s.length;l++){let h=s[l];switch(h.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}let f=h;switch(f.type){case"Character":Xie(f.value,t,a);break;case"Set":if(f.complement===!0)throw Error(YDr);f.value.forEach(m=>{if(typeof m=="number")Xie(m,t,a);else{let b=m;if(a===!0)for(let v=b.from;v<=b.to;v++)Xie(v,t,a);else{for(let v=b.from;v<=b.to&&v<Jie;v++)Xie(v,t,a);if(b.to>=Jie){let v=b.from>=Jie?b.from:Jie,T=b.to,C=u8(v),E=u8(T);for(let S=C;S<=E;S++)t[S]=S}}}});break;case"Group":V3e(f.value,t,a);break;default:throw Error("Non Exhaustive Match")}let d=f.quantifier!==void 0&&f.quantifier.atLeast===0;if(f.type==="Group"&&W3e(f)===!1||f.type!=="Group"&&d===!1)break}break;default:throw Error("non exhaustive match!")}return Object.values(t)}function Xie(r,t,a){let s=u8(r);t[s]=s,a===!0&&KDr(r,t)}function KDr(r,t){let a=String.fromCharCode(r),s=a.toUpperCase();if(s!==a){let l=u8(s.charCodeAt(0));t[l]=l}else{let l=a.toLowerCase();if(l!==a){let h=u8(l.charCodeAt(0));t[h]=h}}}function ust(r,t){return r.value.find(a=>{if(typeof a=="number")return t.includes(a);{let s=a;return t.find(l=>s.from<=l&&l<=s.to)!==void 0}})}function W3e(r){let t=r.quantifier;return t&&t.atLeast===0?!0:r.value?Array.isArray(r.value)?r.value.every(W3e):W3e(r.value):!1}function u4e(r,t){if(t instanceof RegExp){let a=oW(t),s=new ori(r);return s.visit(a),s.found}else{for(let a of t){let s=a.charCodeAt(0);if(r.includes(s))return!0}return!1}}function JDr(r,t){t=Object.assign({safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
`],tracer:J((I,N)=>N(),"tracer")},t);let a=t.tracer;a("initCharCodeToOptimizedIndexMap",()=>{b9r()});let s;a("Reject Lexer.NA",()=>{s=r.filter(I=>I[tB]!==w2.NA)});let l=!1,h;a("Transform Patterns",()=>{l=!1,h=s.map(I=>{let N=I[tB];if(N instanceof RegExp){let B=N.source;return B.length===1&&B!=="^"&&B!=="$"&&B!=="."&&!N.ignoreCase?B:B.length===2&&B[0]==="\\"&&!["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"].includes(B[1])?B[1]:pst(N)}else{if(typeof N=="function")return l=!0,{exec:N};if(typeof N=="object")return l=!0,N;if(typeof N=="string"){if(N.length===1)return N;{let B=N.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),O=new RegExp(B);return pst(O)}}else throw Error("non exhaustive match")}})});let f,d,m,b,v;a("misc mapping",()=>{f=s.map(I=>I.tokenTypeIdx),d=s.map(I=>{let N=I.GROUP;if(N!==w2.SKIPPED){if(typeof N=="string")return N;if(N===void 0)return!1;throw Error("non exhaustive match")}}),m=s.map(I=>{let N=I.LONGER_ALT;if(N)return Array.isArray(N)?N.map(O=>s.indexOf(O)):[s.indexOf(N)]}),b=s.map(I=>I.PUSH_MODE),v=s.map(I=>Object.hasOwn(I,"POP_MODE"))});let T;a("Line Terminator Handling",()=>{let I=dlt(t.lineTerminatorCharacters);T=s.map(N=>!1),t.positionTracking!=="onlyOffset"&&(T=s.map(N=>Object.hasOwn(N,"LINE_BREAKS")?!!N.LINE_BREAKS:flt(N,I)===!1&&u4e(I,N.PATTERN)))});let C,E,S,R;a("Misc Mapping #2",()=>{C=s.map(hlt),E=h.map(m9r),S=s.reduce((I,N)=>{let B=N.GROUP;return typeof B=="string"&&B!==w2.SKIPPED&&(I[B]=[]),I},{}),R=h.map((I,N)=>{let B=d[N]===void 0&&m[N]===void 0?QDr(s[N].PATTERN):void 0;return{pattern:h[N],asciiClass:B,longerAlt:m[N],canLineTerminator:T[N],matchType:B!==void 0?dst:E[N]!==!1?hst:C[N]?m3e:fst,short:E[N],group:d[N],push:b[N],pop:v[N],tokenTypeIdx:f[N],tokenType:s[N]}})});let L=!0,_=[];return t.safeMode||a("First Char Optimization",()=>{_=s.reduce((I,N,B)=>{if(typeof N.PATTERN=="string"){let O=N.PATTERN.charCodeAt(0),P=u8(O);y3e(I,P,R[B])}else if(Array.isArray(N.START_CHARS_HINT)){let O;N.START_CHARS_HINT.forEach(P=>{let $=typeof P=="string"?P.charCodeAt(0):P,V=u8($);O!==V&&(O=V,y3e(I,V,R[B]))})}else if(N.PATTERN instanceof RegExp)if(N.PATTERN.unicode)L=!1,t.ensureOptimizations&&z3e(`${U3e} Unable to analyze < ${N.PATTERN.toString()} > pattern.
|
|
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
This will disable the lexer's first char optimizations.
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let O=XDr(N.PATTERN,t.ensureOptimizations);O.length===0&&(L=!1),O.forEach(P=>{y3e(I,P,R[B])})}else t.ensureOptimizations&&z3e(`${U3e} TokenType: <${N.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
This will disable the lexer's first char optimizations.
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),L=!1;return I},[])}),{emptyGroups:S,patternIdxToConfig:R,charCodeToPatternIdxToConfig:_,hasCustom:l,canBeOptimized:L}}function QDr(r){var t,a;if(!(r instanceof RegExp)||r.flags!=="")return;let s;try{s=oW(r)}catch{return}if(s.value.value.length!==1||s.value.value[0].value.length!==1)return;let l=s.value.value[0].value[0],h;for(;l.type==="Group";){if(l.capturing||l.quantifier!==void 0&&h!==void 0||l.value.value.length!==1||l.value.value[0].value.length!==1)return;h=(t=l.quantifier)!==null&&t!==void 0?t:h,l=l.value.value[0].value[0]}if(l.type!=="Set"||l.complement||l.quantifier!==void 0&&h!==void 0||(h=(a=l.quantifier)!==null&&a!==void 0?a:h,h?.atLeast!==1||h.atMost!==1/0||!h.greedy))return;let f=new Uint8Array(128);for(let d of l.value){let m=typeof d=="number"?d:d.from,b=typeof d=="number"?d:d.to;if(m<0||b>=f.length)return;f.fill(1,m,b+1)}return f}function ZDr(r,t){let a=[],s=t9r(r);a=a.concat(s.errors);let l=r9r(s.valid),h=l.valid;return a=a.concat(l.errors),a=a.concat(e9r(h)),a=a.concat(l9r(h)),a=a.concat(c9r(h,t)),a=a.concat(u9r(h)),a}function e9r(r){let t=[],a=r.filter(s=>s[tB]instanceof RegExp);return t=t.concat(n9r(a)),t=t.concat(a9r(a)),t=t.concat(s9r(a)),t=t.concat(o9r(a)),t=t.concat(i9r(a)),t}function t9r(r){let t=r.filter(l=>!Object.hasOwn(l,tB)),a=t.map(l=>({message:"Token Type: ->"+l.name+"<- missing static 'PATTERN' property",type:Cp.MISSING_PATTERN,tokenTypes:[l]})),s=r.filter(l=>!t.includes(l));return{errors:a,valid:s}}function r9r(r){let t=r.filter(l=>{let h=l[tB];return!(h instanceof RegExp)&&typeof h!="function"&&!Object.hasOwn(h,"exec")&&typeof h!="string"}),a=t.map(l=>({message:"Token Type: ->"+l.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Cp.INVALID_PATTERN,tokenTypes:[l]})),s=r.filter(l=>!t.includes(l));return{errors:a,valid:s}}function n9r(r){class t extends s4e{static{i(this,"EndAnchorFinder")}static{J(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(h){this.found=!0}}return r.filter(l=>{let h=l.PATTERN;try{let f=oW(h),d=new t;return d.visit(f),d.found}catch{return lri.test(h.source)}}).map(l=>({message:`Unexpected RegExp Anchor Error:
|
|
Token Type: ->`+l.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Cp.EOI_ANCHOR_FOUND,tokenTypes:[l]}))}function i9r(r){return r.filter(s=>s.PATTERN.test("")).map(s=>({message:"Token Type: ->"+s.name+"<- static 'PATTERN' must not match an empty string",type:Cp.EMPTY_MATCH_PATTERN,tokenTypes:[s]}))}function a9r(r){class t extends s4e{static{i(this,"StartAnchorFinder")}static{J(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(h){this.found=!0}}return r.filter(l=>{let h=l.PATTERN;try{let f=oW(h),d=new t;return d.visit(f),d.found}catch{return cri.test(h.source)}}).map(l=>({message:`Unexpected RegExp Anchor Error:
|
|
Token Type: ->`+l.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Cp.SOI_ANCHOR_FOUND,tokenTypes:[l]}))}function s9r(r){return r.filter(s=>{let l=s[tB];return l instanceof RegExp&&(l.multiline||l.global)}).map(s=>({message:"Token Type: ->"+s.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Cp.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[s]}))}function o9r(r){let t=[],a=r.map(h=>r.reduce((f,d)=>(h.PATTERN.source===d.PATTERN.source&&!t.includes(d)&&d.PATTERN!==w2.NA&&(t.push(d),f.push(d)),f),[]));return a=a.filter(Boolean),a.filter(h=>h.length>1).map(h=>{let f=h.map(m=>m.name);return{message:`The same RegExp pattern ->${h[0].PATTERN}<-has been used in all of the following Token Types: ${f.join(", ")} <-`,type:Cp.DUPLICATE_PATTERNS_FOUND,tokenTypes:h}})}function l9r(r){return r.filter(s=>{if(!Object.hasOwn(s,"GROUP"))return!1;let l=s.GROUP;return l!==w2.SKIPPED&&l!==w2.NA&&typeof l!="string"}).map(s=>({message:"Token Type: ->"+s.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Cp.INVALID_GROUP_TYPE_FOUND,tokenTypes:[s]}))}function c9r(r,t){return r.filter(l=>l.PUSH_MODE!==void 0&&!t.includes(l.PUSH_MODE)).map(l=>({message:`Token Type: ->${l.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${l.PUSH_MODE}<-which does not exist`,type:Cp.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[l]}))}function u9r(r){let t=[],a=r.reduce((s,l,h)=>{let f=l.PATTERN;return f===w2.NA||(typeof f=="string"?s.push({str:f,idx:h,tokenType:l}):f instanceof RegExp&&f9r(f)&&s.push({str:f.source,idx:h,tokenType:l})),s},[]);return r.forEach((s,l)=>{a.forEach(({str:h,idx:f,tokenType:d})=>{if(l<f&&h9r(h,s.PATTERN)){let m=`Token: ->${d.name}<- can never be matched.
|
|
Because it appears AFTER the Token Type ->${s.name}<-in the lexer's definition.
|
|
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:m,type:Cp.UNREACHABLE_PATTERN,tokenTypes:[s,d]})}})}),t}function h9r(r,t){if(t instanceof RegExp){if(d9r(t))return!1;let a=t.exec(r);return a!==null&&a.index===0}else{if(typeof t=="function")return t(r,0,[],{});if(Object.hasOwn(t,"exec"))return t.exec(r,0,[],{});if(typeof t=="string")return t===r;throw Error("non exhaustive match")}}function f9r(r){return[".","\\","[","]","|","^","$","(",")","?","*","+","{"].find(a=>r.source.indexOf(a)!==-1)===void 0}function d9r(r){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(r.source)}function pst(r){let t=r.ignoreCase?"iy":"y";return new RegExp(`${r.source}`,t)}function p9r(r,t,a){let s=[];return Object.hasOwn(r,Kie)||s.push({message:"A MultiMode Lexer cannot be initialized without a <"+Kie+`> property in its definition
|
|
`,type:Cp.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(r,Pke)||s.push({message:"A MultiMode Lexer cannot be initialized without a <"+Pke+`> property in its definition
|
|
`,type:Cp.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(r,Pke)&&Object.hasOwn(r,Kie)&&!Object.hasOwn(r.modes,r.defaultMode)&&s.push({message:`A MultiMode Lexer cannot be initialized with a ${Kie}: <${r.defaultMode}>which does not exist
|
|
`,type:Cp.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(r,Pke)&&Object.keys(r.modes).forEach(l=>{let h=r.modes[l];h.forEach((f,d)=>{f===void 0?s.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${l}> at index: <${d}>
|
|
`,type:Cp.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(f,"LONGER_ALT")&&(Array.isArray(f.LONGER_ALT)?f.LONGER_ALT:[f.LONGER_ALT]).forEach(b=>{b!==void 0&&!h.includes(b)&&s.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${b.name}> on token <${f.name}> outside of mode <${l}>
|
|
`,type:Cp.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),s}function g9r(r,t,a){let s=[],l=!1,f=Object.values(r.modes||{}).flat().filter(Boolean).filter(m=>m[tB]!==w2.NA),d=dlt(a);return t&&f.forEach(m=>{let b=flt(m,d);if(b!==!1){let T={message:y9r(m,b),type:b.issue,tokenType:m};s.push(T)}else Object.hasOwn(m,"LINE_BREAKS")?m.LINE_BREAKS===!0&&(l=!0):u4e(d,m.PATTERN)&&(l=!0)}),t&&!l&&s.push({message:`Warning: No LINE_BREAKS Found.
|
|
This Lexer has been defined to track line and column information,
|
|
But none of the Token Types can be identified as matching a line terminator.
|
|
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
|
for details.`,type:Cp.NO_LINE_BREAKS_FLAGS}),s}function hlt(r){let t=r.PATTERN;if(t instanceof RegExp)return!1;if(typeof t=="function")return!0;if(Object.hasOwn(t,"exec"))return!0;if(typeof t=="string")return!1;throw Error("non exhaustive match")}function m9r(r){return typeof r=="string"&&r.length===1?r.charCodeAt(0):!1}function flt(r,t){if(Object.hasOwn(r,"LINE_BREAKS"))return!1;if(r.PATTERN instanceof RegExp){try{u4e(t,r.PATTERN)}catch(a){return{issue:Cp.IDENTIFY_TERMINATOR,errMsg:a.message}}return!1}else{if(typeof r.PATTERN=="string")return!1;if(hlt(r))return{issue:Cp.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function y9r(r,t){if(t.issue===Cp.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
The problem is in the <${r.name}> Token Type
|
|
Root cause: ${t.errMsg}.
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===Cp.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
The problem is in the <${r.name}> Token Type
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function dlt(r){return r.map(a=>typeof a=="string"?a.charCodeAt(0):a)}function y3e(r,t,a){r[t]===void 0?r[t]=[a]:r[t].push(a)}function u8(r){return r<Jie?r:b3e[r]}function b9r(){if(b3e.length===0){b3e=new Array(65536);for(let r=0;r<65536;r++)b3e[r]=r>255?255+~~(r/255):r}}function lW(r,t){let a=r.tokenTypeIdx;return a===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[a]===!0}function fae(r,t){return r.tokenTypeIdx===t.tokenTypeIdx}function cW(r){let t=w9r(r);x9r(t),k9r(t),T9r(t),t.forEach(a=>{a.isParent=a.categoryMatches.length>0})}function w9r(r){let t=[...r],a=r,s=!0;for(;s;){a=a.map(h=>h.CATEGORIES).flat().filter(Boolean);let l=a.filter(h=>!t.includes(h));t=t.concat(l),l.length===0?s=!1:a=l}return t}function x9r(r){r.forEach(t=>{glt(t)||(v9r[vLr]=t,t.tokenTypeIdx=vLr++),gst(t)&&!Array.isArray(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),gst(t)||(t.CATEGORIES=[]),C9r(t)||(t.categoryMatches=[]),E9r(t)||(t.categoryMatchesMap={})})}function T9r(r){r.forEach(t=>{t.categoryMatches=[],Object.keys(t.categoryMatchesMap).forEach(a=>{t.categoryMatches.push(v9r[a].tokenTypeIdx)})})}function k9r(r){r.forEach(t=>{plt([],t)})}function plt(r,t){r.forEach(a=>{t.categoryMatchesMap[a.tokenTypeIdx]=!0}),t.CATEGORIES.forEach(a=>{let s=r.concat(t);s.includes(a)||plt(s,a)})}function glt(r){return Object.hasOwn(r??{},"tokenTypeIdx")}function gst(r){return Object.hasOwn(r??{},"CATEGORIES")}function C9r(r){return Object.hasOwn(r??{},"categoryMatches")}function E9r(r){return Object.hasOwn(r??{},"categoryMatchesMap")}function S9r(r){return Object.hasOwn(r??{},"tokenTypeIdx")}function eB(r){return mlt(r)?r.LABEL:r.name}function mlt(r){return typeof r.LABEL=="string"&&r.LABEL!==""}function ylt(r){return A9r(r)}function A9r(r){let t=r.pattern,a={};if(a.name=r.name,t!==void 0&&(a.PATTERN=t),Object.hasOwn(r,hri))throw`The parent property is no longer supported.
|
|
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Object.hasOwn(r,wLr)&&(a.CATEGORIES=r[wLr]),cW([a]),Object.hasOwn(r,xLr)&&(a.LABEL=r[xLr]),Object.hasOwn(r,TLr)&&(a.GROUP=r[TLr]),Object.hasOwn(r,CLr)&&(a.POP_MODE=r[CLr]),Object.hasOwn(r,kLr)&&(a.PUSH_MODE=r[kLr]),Object.hasOwn(r,ELr)&&(a.LONGER_ALT=r[ELr]),Object.hasOwn(r,SLr)&&(a.LINE_BREAKS=r[SLr]),Object.hasOwn(r,ALr)&&(a.START_CHARS_HINT=r[ALr]),a}function h4e(r,t,a,s,l,h,f,d){return{image:t,startOffset:a,endOffset:s,startLine:l,endLine:h,startColumn:f,endColumn:d,tokenTypeIdx:r.tokenTypeIdx,tokenType:r}}function f4e(r,t){return lW(r,t)}function R9r(r,t){let a=new dri(r,t);return a.resolveRefs(),a.errors}function H3e(r,t,a=[]){a=[...a];let s=[],l=0;function h(d){return d.concat(r.slice(l+1))}i(h,"remainingPathWith"),J(h,"remainingPathWith");function f(d){let m=H3e(h(d),t,a);return s.concat(m)}for(i(f,"getAlternativesForProd"),J(f,"getAlternativesForProd");a.length<t&&l<r.length;){let d=r[l];if(d instanceof x2)return f(d.definition);if(d instanceof Bb)return f(d.definition);if(d instanceof b1)s=f(d.definition);else if(d instanceof ux){let m=d.definition.concat([new kp({definition:d.definition})]);return f(m)}else if(d instanceof hx){let m=[new x2({definition:d.definition}),new kp({definition:[new Af({terminalType:d.separator})].concat(d.definition)})];return f(m)}else if(d instanceof T2){let m=d.definition.concat([new kp({definition:[new Af({terminalType:d.separator})].concat(d.definition)})]);s=f(m)}else if(d instanceof kp){let m=d.definition.concat([new kp({definition:d.definition})]);s=f(m)}else{if(d instanceof k2)return d.definition.forEach(m=>{m.definition.length!==0&&(s=f(m.definition))}),s;if(d instanceof Af)a.push(d.terminalType);else throw Error("non exhaustive match")}l++}return s.push({partialPath:a,suffixDef:r.slice(l)}),s}function L9r(r,t,a,s){let l="EXIT_NONE_TERMINAL",h=[l],f="EXIT_ALTERNATIVE",d=!1,m=t.length,b=m-s-1,v=[],T=[];for(T.push({idx:-1,def:r,ruleStack:[],occurrenceStack:[]});T.length!==0;){let C=T.pop();if(C===f){d&&T.at(-1).idx<=b&&T.pop();continue}let E=C.def,S=C.idx,R=C.ruleStack,L=C.occurrenceStack;if(E.length===0)continue;let _=E[0];if(_===l){let I={idx:S,def:E.slice(1),ruleStack:R.slice(0,-1),occurrenceStack:L.slice(0,-1)};T.push(I)}else if(_ instanceof Af)if(S<m-1){let I=S+1,N=t[I];if(a(N,_.terminalType)){let B={idx:I,def:E.slice(1),ruleStack:R,occurrenceStack:L};T.push(B)}}else if(S===m-1)v.push({nextTokenType:_.terminalType,nextTokenOccurrence:_.idx,ruleStack:R,occurrenceStack:L}),d=!0;else throw Error("non exhaustive match");else if(_ instanceof Bb){let I=[...R];I.push(_.nonTerminalName);let N=[...L];N.push(_.idx);let B={idx:S,def:_.definition.concat(h,E.slice(1)),ruleStack:I,occurrenceStack:N};T.push(B)}else if(_ instanceof b1){let I={idx:S,def:E.slice(1),ruleStack:R,occurrenceStack:L};T.push(I),T.push(f);let N={idx:S,def:_.definition.concat(E.slice(1)),ruleStack:R,occurrenceStack:L};T.push(N)}else if(_ instanceof ux){let I=new kp({definition:_.definition,idx:_.idx}),N=_.definition.concat([I],E.slice(1)),B={idx:S,def:N,ruleStack:R,occurrenceStack:L};T.push(B)}else if(_ instanceof hx){let I=new Af({terminalType:_.separator}),N=new kp({definition:[I].concat(_.definition),idx:_.idx}),B=_.definition.concat([N],E.slice(1)),O={idx:S,def:B,ruleStack:R,occurrenceStack:L};T.push(O)}else if(_ instanceof T2){let I={idx:S,def:E.slice(1),ruleStack:R,occurrenceStack:L};T.push(I),T.push(f);let N=new Af({terminalType:_.separator}),B=new kp({definition:[N].concat(_.definition),idx:_.idx}),O=_.definition.concat([B],E.slice(1)),P={idx:S,def:O,ruleStack:R,occurrenceStack:L};T.push(P)}else if(_ instanceof kp){let I={idx:S,def:E.slice(1),ruleStack:R,occurrenceStack:L};T.push(I),T.push(f);let N=new kp({definition:_.definition,idx:_.idx}),B=_.definition.concat([N],E.slice(1)),O={idx:S,def:B,ruleStack:R,occurrenceStack:L};T.push(O)}else if(_ instanceof k2)for(let I=_.definition.length-1;I>=0;I--){let N=_.definition[I],B={idx:S,def:N.definition.concat(E.slice(1)),ruleStack:R,occurrenceStack:L};T.push(B),T.push(f)}else if(_ instanceof x2)T.push({idx:S,def:_.definition.concat(E.slice(1)),ruleStack:R,occurrenceStack:L});else if(_ instanceof iW)T.push(_9r(_,S,R,L));else throw Error("non exhaustive match")}return v}function _9r(r,t,a,s){let l=[...a];l.push(r.name);let h=[...s];return h.push(1),{idx:t,def:r.definition,ruleStack:l,occurrenceStack:h}}function p4e(r){if(r instanceof b1||r==="Option")return Fd.OPTION;if(r instanceof kp||r==="Repetition")return Fd.REPETITION;if(r instanceof ux||r==="RepetitionMandatory")return Fd.REPETITION_MANDATORY;if(r instanceof hx||r==="RepetitionMandatoryWithSeparator")return Fd.REPETITION_MANDATORY_WITH_SEPARATOR;if(r instanceof T2||r==="RepetitionWithSeparator")return Fd.REPETITION_WITH_SEPARATOR;if(r instanceof k2||r==="Alternation")return Fd.ALTERNATION;throw Error("non exhaustive match")}function yst(r){let{occurrence:t,rule:a,prodType:s,maxLookahead:l}=r,h=p4e(s);return h===Fd.ALTERNATION?Lae(t,a,l):_ae(t,a,h,l)}function D9r(r,t,a,s,l,h){let f=Lae(r,t,a),d=vlt(f)?fae:lW;return h(f,s,d,l)}function I9r(r,t,a,s,l,h){let f=_ae(r,t,l,a),d=vlt(f)?fae:lW;return h(f[0],d,s)}function M9r(r,t,a,s){let l=r.length,h=r.every(f=>f.every(d=>d.length===1));if(t)return function(f){let d=f.map(m=>m.GATE);for(let m=0;m<l;m++){let b=r[m],v=b.length,T=d[m];if(!(T!==void 0&&T.call(this)===!1))e:for(let C=0;C<v;C++){let E=b[C],S=E.length;for(let R=0;R<S;R++){let L=this.LA_FAST(R+1);if(a(L,E[R])===!1)continue e}return m}}};if(h&&!s){let d=r.map(m=>m.flat()).reduce((m,b,v)=>(b.forEach(T=>{T.tokenTypeIdx in m||(m[T.tokenTypeIdx]=v),T.categoryMatches.forEach(C=>{Object.hasOwn(m,C)||(m[C]=v)})}),m),{});return function(){let m=this.LA_FAST(1);return d[m.tokenTypeIdx]}}else return function(){for(let f=0;f<l;f++){let d=r[f],m=d.length;e:for(let b=0;b<m;b++){let v=d[b],T=v.length;for(let C=0;C<T;C++){let E=this.LA_FAST(C+1);if(a(E,v[C])===!1)continue e}return f}}}}function N9r(r,t,a){let s=r.every(h=>h.length===1),l=r.length;if(s&&!a){let h=r.flat();if(h.length===1&&h[0].categoryMatches.length===0){let d=h[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===d}}else{let f=h.reduce((d,m,b)=>(d[m.tokenTypeIdx]=!0,m.categoryMatches.forEach(v=>{d[v]=!0}),d),[]);return function(){let d=this.LA_FAST(1);return f[d.tokenTypeIdx]===!0}}}else return function(){e:for(let h=0;h<l;h++){let f=r[h],d=f.length;for(let m=0;m<d;m++){let b=this.LA_FAST(m+1);if(t(b,f[m])===!1)continue e}return!0}return!1}}function bst(r){let t=new Array(r);for(let a=0;a<r;a++)t[a]=[];return t}function v3e(r){let t=[""];for(let a=0;a<r.length;a++){let s=r[a],l=[];for(let h=0;h<t.length;h++){let f=t[h];l.push(f+"_"+s.tokenTypeIdx);for(let d=0;d<s.categoryMatches.length;d++){let m="_"+s.categoryMatches[d];l.push(f+m)}}t=l}return t}function P9r(r,t,a){for(let s=0;s<r.length;s++){if(s===a)continue;let l=r[s];for(let h=0;h<t.length;h++){let f=t[h];if(l[f]===!0)return!1}}return!0}function blt(r,t){let a=r.map(f=>H3e([f],1)),s=bst(a.length),l=a.map(f=>{let d={};return f.forEach(m=>{v3e(m.partialPath).forEach(v=>{d[v]=!0})}),d}),h=a;for(let f=1;f<=t;f++){let d=h;h=bst(d.length);for(let m=0;m<d.length;m++){let b=d[m];for(let v=0;v<b.length;v++){let T=b[v].partialPath,C=b[v].suffixDef,E=v3e(T);if(P9r(l,E,m)||C.length===0||T.length===t){let R=s[m];if(q3e(R,T)===!1){R.push(T);for(let L=0;L<E.length;L++){let _=E[L];l[m][_]=!0}}}else{let R=H3e(C,f+1,T);h[m]=h[m].concat(R),R.forEach(L=>{v3e(L.partialPath).forEach(I=>{l[m][I]=!0})})}}}}return s}function Lae(r,t,a,s){let l=new O9r(r,Fd.ALTERNATION,s);return t.accept(l),blt(l.result,a)}function _ae(r,t,a,s){let l=new O9r(r,a);t.accept(l);let h=l.result,d=new bri(t,r,a).startWalking(),m=new x2({definition:h}),b=new x2({definition:d});return blt([m,b],s)}function q3e(r,t){e:for(let a=0;a<r.length;a++){let s=r[a];if(s.length===t.length){for(let l=0;l<s.length;l++){let h=t[l],f=s[l];if((h===f||f.categoryMatchesMap[h.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}function B9r(r,t){return r.length<t.length&&r.every((a,s)=>{let l=t[s];return a===l||l.categoryMatchesMap[a.tokenTypeIdx]})}function vlt(r){return r.every(t=>t.every(a=>a.every(s=>s.categoryMatches.length===0)))}function F9r(r){return r.lookaheadStrategy.validate({rules:r.rules,tokenTypes:r.tokenTypes,grammarName:r.grammarName}).map(a=>Object.assign({type:Fb.CUSTOM_LOOKAHEAD_VALIDATION},a))}function $9r(r,t,a,s){let l=r.flatMap(m=>G9r(m,a)),h=K9r(r,t,a),f=r.flatMap(m=>H9r(m,a)),d=r.flatMap(m=>z9r(m,r,s,a));return l.concat(h,f,d)}function G9r(r,t){let a=new vri;r.accept(a);let s=a.allProductions,l=Object.groupBy(s,j9r),h=Object.fromEntries(Object.entries(l).filter(([d,m])=>m.length>1));return Object.values(h).map(d=>{let m=d[0],b=t.buildDuplicateFoundError(r,d),v=J4(m),T={message:b,type:Fb.DUPLICATE_PRODUCTIONS,ruleName:r.name,dslName:v,occurrence:m.idx},C=wlt(m);return C&&(T.parameter=C),T})}function j9r(r){return`${J4(r)}_#_${r.idx}_#_${wlt(r)}`}function wlt(r){return r instanceof Af?r.terminalType.name:r instanceof Bb?r.nonTerminalName:""}function z9r(r,t,a,s){let l=[];if(t.reduce((f,d)=>d.name===r.name?f+1:f,0)>1){let f=s.buildDuplicateRuleNameError({topLevelRule:r,grammarName:a});l.push({message:f,type:Fb.DUPLICATE_RULE_NAME,ruleName:r.name})}return l}function U9r(r,t,a){let s=[],l;return t.includes(r)||(l=`Invalid rule override, rule: ->${r}<- cannot be overridden in the grammar: ->${a}<-as it is not defined in any of the super grammars `,s.push({message:l,type:Fb.INVALID_RULE_OVERRIDE,ruleName:r})),s}function xlt(r,t,a,s=[]){let l=[],h=tae(t.definition);if(h.length===0)return[];{let f=r.name;h.includes(r)&&l.push({message:a.buildLeftRecursionError({topLevelRule:r,leftRecursionPath:s}),type:Fb.LEFT_RECURSION,ruleName:f});let m=s.concat([r]),v=h.filter(T=>!m.includes(T)).flatMap(T=>{let C=[...s];return C.push(T),xlt(r,T,a,C)});return l.concat(v)}}function tae(r){let t=[];if(r.length===0)return t;let a=r[0];if(a instanceof Bb)t.push(a.referencedRule);else if(a instanceof x2||a instanceof b1||a instanceof ux||a instanceof hx||a instanceof T2||a instanceof kp)t=t.concat(tae(a.definition));else if(a instanceof k2)t=a.definition.map(h=>tae(h.definition)).flat();else if(!(a instanceof Af))throw Error("non exhaustive match");let s=hae(a),l=r.length>1;if(s&&l){let h=r.slice(1);return t.concat(tae(h))}else return t}function V9r(r,t){let a=new Tlt;return r.accept(a),a.alternations.flatMap(h=>h.definition.slice(0,-1).flatMap((d,m)=>L9r([d],[],lW,1).length===0?[{message:t.buildEmptyAlternationError({topLevelRule:r,alternation:h,emptyChoiceIdx:m}),type:Fb.NONE_LAST_EMPTY_ALT,ruleName:r.name,occurrence:h.idx,alternative:m+1}]:[]))}function W9r(r,t,a){let s=new Tlt;r.accept(s);let l=s.alternations;return l=l.filter(f=>f.ignoreAmbiguities!==!0),l.flatMap(f=>{let d=f.idx,m=f.maxLookahead||t,b=Lae(d,r,m,f),v=Y9r(b,f,r,a),T=X9r(b,f,r,a);return v.concat(T)})}function H9r(r,t){let a=new Tlt;return r.accept(a),a.alternations.flatMap(h=>h.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:r,alternation:h}),type:Fb.TOO_MANY_ALTS,ruleName:r.name,occurrence:h.idx}]:[])}function q9r(r,t,a){let s=[];return r.forEach(l=>{let h=new wri;l.accept(h),h.allProductions.forEach(d=>{let m=p4e(d),b=d.maxLookahead||t,v=d.idx;if(_ae(v,l,m,b)[0].flat().length===0){let E=a.buildEmptyRepetitionError({topLevelRule:l,repetition:d});s.push({message:E,type:Fb.NO_NON_EMPTY_LOOKAHEAD,ruleName:l.name})}})}),s}function Y9r(r,t,a,s){let l=[];return r.reduce((d,m,b)=>(t.definition[b].ignoreAmbiguities===!0||m.forEach(v=>{let T=[b];r.forEach((C,E)=>{b!==E&&q3e(C,v)&&t.definition[E].ignoreAmbiguities!==!0&&T.push(E)}),T.length>1&&!q3e(l,v)&&(l.push(v),d.push({alts:T,path:v}))}),d),[]).map(d=>{let m=d.alts.map(v=>v+1);return{message:s.buildAlternationAmbiguityError({topLevelRule:a,alternation:t,ambiguityIndices:m,prefixPath:d.path}),type:Fb.AMBIGUOUS_ALTS,ruleName:a.name,occurrence:t.idx,alternatives:d.alts}})}function X9r(r,t,a,s){let l=r.reduce((f,d,m)=>{let b=d.map(v=>({idx:m,path:v}));return f.concat(b)},[]);return l.flatMap(f=>{if(t.definition[f.idx].ignoreAmbiguities===!0)return[];let m=f.idx,b=f.path;return l.filter(C=>t.definition[C.idx].ignoreAmbiguities!==!0&&C.idx<m&&B9r(C.path,b)).map(C=>{let E=[C.idx+1,m+1],S=t.idx===0?"":t.idx;return{message:s.buildAlternationPrefixAmbiguityError({topLevelRule:a,alternation:t,ambiguityIndices:E,prefixPath:C.path}),type:Fb.AMBIGUOUS_PREFIX_ALTS,ruleName:a.name,occurrence:S,alternatives:E}})})}function K9r(r,t,a){let s=[],l=t.map(h=>h.name);return r.forEach(h=>{let f=h.name;if(l.includes(f)){let d=a.buildNamespaceConflictError(h);s.push({message:d,type:Fb.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:f})}}),s}function J9r(r){let t=Object.assign({errMsgProvider:fri},r),a={};return r.rules.forEach(s=>{a[s.name]=s}),R9r(a,t.errMsgProvider)}function Q9r(r){var t;let a=(t=r.errMsgProvider)!==null&&t!==void 0?t:ZP;return $9r(r.rules,r.tokenTypes,a,r.grammarName)}function dae(r){return nIr.includes(r.name)}function sIr(r,t,a,s,l,h,f){var d,m,b;let v=s|l,T=(d=(m=this.firstAfterRepMap)[b=this.currRuleShortName])!==null&&d!==void 0?d:m[b]=[],C=T[v];if(C===void 0){let L=this.getCurrRuleFullName(),_=this.getGAstProductions()[L];C=new h(_,l).startWalking(),T[v]=C}let E=C.token,S=C.occurrence,R=C.isEndOfRule;this.RULE_STACK_IDX===0&&R&&E===void 0&&(E=h8,S=1),!(E===void 0||S===void 0)&&this.shouldInRepetitionRecoveryBeTried(E,S,f)&&this.tryInRepetitionRecovery(r,t,a,E)}function cIr(r){Bke.reset(),r.accept(Bke);let t=Bke.dslMethods;return Bke.reset(),t}function Tst(r,t){r.startOffset===-1?(r.startOffset=t.startOffset,r.endOffset=t.endOffset):r.endOffset<t.endOffset&&(r.endOffset=t.endOffset)}function kst(r,t){r.startOffset===-1?(r.startOffset=t.startOffset,r.startColumn=t.startColumn,r.startLine=t.startLine,r.endOffset=t.endOffset,r.endColumn=t.endColumn,r.endLine=t.endLine):r.endOffset<t.endOffset&&(r.endOffset=t.endOffset,r.endColumn=t.endColumn,r.endLine=t.endLine)}function uIr(r,t,a){r.children[a]===void 0?r.children[a]=[t]:r.children[a].push(t)}function hIr(r,t,a){r.children[t]===void 0?r.children[t]=[a]:r.children[t].push(a)}function Clt(r,t){Object.defineProperty(r,Rri,{enumerable:!1,configurable:!0,writable:!1,value:t})}function fIr(r,t){let a=Object.keys(r),s=a.length;for(let l=0;l<s;l++){let h=a[l],f=r[h],d=f.length;for(let m=0;m<d;m++){let b=f[m];b.tokenTypeIdx===void 0&&this[b.name](b.children,t)}}}function dIr(r,t){let a=J(function(){},"derivedConstructor");Clt(a,r+"BaseSemantics");let s={visit:J(function(l,h){if(Array.isArray(l)&&(l=l[0]),l!==void 0)return this[l.name](l.children,h)},"visit"),validateVisitor:J(function(){let l=gIr(this,t);if(l.length!==0){let h=l.map(f=>f.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
${h.join(`
|
|
|
|
`).replace(/\n/g,`
|
|
`)}`)}},"validateVisitor")};return a.prototype=s,a.prototype.constructor=a,a._RULE_NAMES=t,a}function pIr(r,t,a){let s=J(function(){},"derivedConstructor");Clt(s,r+"BaseSemanticsWithDefaults");let l=Object.create(a.prototype);return t.forEach(h=>{l[h]=fIr}),s.prototype=l,s.prototype.constructor=s,s}function gIr(r,t){return mIr(r,t)}function mIr(r,t){return t.filter(l=>typeof r[l]!="function").map(l=>({msg:`Missing visitor method: <${l}> on ${r.constructor.name} CST Visitor.`,type:Cst.MISSING_METHOD,methodName:l})).filter(Boolean)}function $V(r,t,a,s=!1){pae(a);let l=this.recordingProdStack.at(-1),h=typeof t=="function"?t:t.DEF,f=new r({definition:[],idx:a});return s&&(f.separator=t.SEP),Object.hasOwn(t,"MAX_LOOKAHEAD")&&(f.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(f),h.call(this),l.definition.push(f),this.recordingProdStack.pop(),m4e}function vIr(r,t){pae(t);let a=this.recordingProdStack.at(-1),s=Array.isArray(r)===!1,l=s===!1?r:r.DEF,h=new k2({definition:[],idx:t,ignoreAmbiguities:s&&r.IGNORE_AMBIGUITIES===!0});Object.hasOwn(r,"MAX_LOOKAHEAD")&&(h.maxLookahead=r.MAX_LOOKAHEAD);let f=l.some(d=>typeof d.GATE=="function");return h.hasPredicates=f,a.definition.push(h),l.forEach(d=>{let m=new x2({definition:[]});h.definition.push(m),Object.hasOwn(d,"IGNORE_AMBIGUITIES")?m.ignoreAmbiguities=d.IGNORE_AMBIGUITIES:Object.hasOwn(d,"GATE")&&(m.ignoreAmbiguities=!0),this.recordingProdStack.push(m),d.ALT.call(this),this.recordingProdStack.pop()}),m4e}function Est(r){return r===0?"":`${r}`}function pae(r){if(r<0||r>DLr){let t=new Error(`Invalid DSL Method idx value: <${r}>
|
|
Idx value must be a none negative value smaller than ${DLr+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}function wIr(r,t){t.forEach(a=>{let s=a.prototype;Object.getOwnPropertyNames(s).forEach(l=>{if(l==="constructor")return;let h=Object.getOwnPropertyDescriptor(s,l);h&&(h.get||h.set)?Object.defineProperty(r.prototype,l,h):r.prototype[l]=a.prototype[l]})})}function Sst(r=void 0){return function(){return r}}function TIr(r,t){for(var a=-1,s=r==null?0:r.length,l=Array(s);++a<s;)l[a]=t(r[a],a,r);return l}function CIr(){this.__data__=[],this.size=0}function EIr(r,t){return r===t||r!==r&&t!==t}function AIr(r,t){for(var a=r.length;a--;)if(SIr(r[a][0],t))return a;return-1}function RIr(r){var t=this.__data__,a=y4e(t,r);if(a<0)return!1;var s=t.length-1;return a==s?t.pop():Gri.call(t,a,1),--this.size,!0}function LIr(r){var t=this.__data__,a=y4e(t,r);return a<0?void 0:t[a][1]}function _Ir(r){return y4e(this.__data__,r)>-1}function DIr(r,t){var a=this.__data__,s=y4e(a,r);return s<0?(++this.size,a.push([r,t])):a[s][1]=t,this}function aB(r){var t=-1,a=r==null?0:r.length;for(this.clear();++t<a;){var s=r[t];this.set(s[0],s[1])}}function IIr(){this.__data__=new b4e,this.size=0}function MIr(r){var t=this.__data__,a=t.delete(r);return this.size=t.size,a}function NIr(r){return this.__data__.get(r)}function OIr(r){return this.__data__.has(r)}function FIr(r){var t=Zri.call(r,_ie),a=r[_ie];try{r[_ie]=void 0;var s=!0}catch{}var l=eni.call(r);return s&&(t?r[_ie]=a:delete r[_ie]),l}function $Ir(r){return nni.call(r)}function GIr(r){return r==null?r===void 0?sni:ani:ILr&&ILr in Object(r)?tni(r):ini(r)}function jIr(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function zIr(r){if(!Slt(r))return!1;var t=hW(r);return t==lni||t==cni||t==oni||t==uni}function VIr(r){return!!MLr&&MLr in r}function WIr(r){if(r!=null){try{return pni.call(r)}catch{}try{return r+""}catch{}}return""}function HIr(r){if(!Slt(r)||fni(r))return!1;var t=UIr(r)?xni:mni;return t.test(sB(r))}function qIr(r,t){return r?.[t]}function YIr(r,t){var a=kni(r,t);return Tni(a)?a:void 0}function XIr(){this.__data__=mae?mae(null):{},this.size=0}function KIr(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}function JIr(r){var t=this.__data__;if(mae){var a=t[r];return a===Rni?void 0:a}return _ni.call(t,r)?t[r]:void 0}function QIr(r){var t=this.__data__;return mae?t[r]!==void 0:Mni.call(t,r)}function ZIr(r,t){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=mae&&t===void 0?Oni:t,this}function oB(r){var t=-1,a=r==null?0:r.length;for(this.clear();++t<a;){var s=r[t];this.set(s[0],s[1])}}function eMr(){this.size=0,this.__data__={hash:new NLr,map:new(gae||b4e),string:new NLr}}function tMr(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function rMr(r,t){var a=r.__data__;return Fni(t)?a[typeof t=="string"?"string":"hash"]:a.map}function nMr(r){var t=v4e(this,r).delete(r);return this.size-=t?1:0,t}function iMr(r){return v4e(this,r).get(r)}function aMr(r){return v4e(this,r).has(r)}function sMr(r,t){var a=v4e(this,r),s=a.size;return a.set(r,t),this.size+=a.size==s?0:1,this}function lB(r){var t=-1,a=r==null?0:r.length;for(this.clear();++t<a;){var s=r[t];this.set(s[0],s[1])}}function oMr(r,t){var a=this.__data__;if(a instanceof b4e){var s=a.__data__;if(!gae||s.length<Uni-1)return s.push([r,t]),this.size=++a.size,this;a=this.__data__=new w4e(s)}return a.set(r,t),this.size=a.size,this}function cB(r){var t=this.__data__=new b4e(r);this.size=t.size}function lMr(r){return this.__data__.set(r,Wni),this}function cMr(r){return this.__data__.has(r)}function yae(r){var t=-1,a=r==null?0:r.length;for(this.__data__=new w4e;++t<a;)this.add(r[t])}function hMr(r,t){for(var a=-1,s=r==null?0:r.length;++a<s;)if(t(r[a],a,r))return!0;return!1}function fMr(r,t){return r.has(t)}function pMr(r,t,a,s,l,h){var f=a&Xni,d=r.length,m=t.length;if(d!=m&&!(f&&m>d))return!1;var b=h.get(r),v=h.get(t);if(b&&v)return b==t&&v==r;var T=-1,C=!0,E=a&Kni?new uMr:void 0;for(h.set(r,t),h.set(t,r);++T<d;){var S=r[T],R=t[T];if(s)var L=f?s(R,S,T,t,r,h):s(S,R,T,r,t,h);if(L!==void 0){if(L)continue;C=!1;break}if(E){if(!Yni(t,function(_,I){if(!dMr(E,I)&&(S===_||l(S,_,a,s,h)))return E.push(I)})){C=!1;break}}else if(!(S===R||l(S,R,a,s,h))){C=!1;break}}return h.delete(r),h.delete(t),C}function mMr(r){var t=-1,a=Array(r.size);return r.forEach(function(s,l){a[++t]=[l,s]}),a}function yMr(r){var t=-1,a=Array(r.size);return r.forEach(function(s){a[++t]=s}),a}function bMr(r,t,a,s,l,h,f){switch(a){case hii:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case uii:return!(r.byteLength!=t.byteLength||!h(new OLr(r),new OLr(t)));case tii:case rii:case aii:return SIr(+r,+t);case nii:return r.name==t.name&&r.message==t.message;case sii:case lii:return r==t+"";case iii:var d=Qni;case oii:var m=s&Zni;if(d||(d=Alt),r.size!=t.size&&!m)return!1;var b=f.get(r);if(b)return b==t;s|=eii,f.set(r,t);var v=gMr(d(r),d(t),s,l,h,f);return f.delete(r),v;case cii:if(Oit)return Oit.call(r)==Oit.call(t)}return!1}function vMr(r,t){for(var a=-1,s=t.length,l=r.length;++a<s;)r[l+a]=t[a];return r}function xMr(r,t,a){var s=t(r);return $b(r)?s:wMr(s,a(r))}function TMr(r,t){for(var a=-1,s=r==null?0:r.length,l=0,h=[];++a<s;){var f=r[a];t(f,a,r)&&(h[l++]=f)}return h}function CMr(){return[]}function EMr(r,t){for(var a=-1,s=Array(r);++a<r;)s[a]=t(a);return s}function SMr(r){return r!=null&&typeof r=="object"}function AMr(r){return ZV(r)&&hW(r)==xii}function LMr(){return!1}function DMr(r,t){var a=typeof r;return t=t??Lii,!!t&&(a=="number"||a!="symbol"&&_ii.test(r))&&r>-1&&r%1==0&&r<t}function MMr(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Dii}function NMr(r){return ZV(r)&&Rlt(r.length)&&!!Sf[hW(r)]}function OMr(r){return function(t){return r(t)}}function BMr(r,t){var a=$b(r),s=!a&&x4e(r),l=!a&&!s&&X3e(r),h=!a&&!s&&!l&&Llt(r),f=a||s||l||h,d=f?wii(r.length,String):[],m=d.length;for(var b in r)(t||lai.call(r,b))&&!(f&&(b=="length"||l&&(b=="offset"||b=="parent")||h&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||IMr(b,m)))&&d.push(b);return d}function FMr(r){var t=r&&r.constructor,a=typeof t=="function"&&t.prototype||uai;return r===a}function GMr(r,t){return function(a){return r(t(a))}}function jMr(r){if(!$Mr(r))return dai(r);var t=[];for(var a in Object(r))gai.call(r,a)&&a!="constructor"&&t.push(a);return t}function UMr(r){return r!=null&&Rlt(r.length)&&!UIr(r)}function VMr(r){return T4e(r)?cai(r):zMr(r)}function WMr(r){return pii(r,_lt,vii)}function HMr(r,t,a,s,l,h){var f=a&mai,d=ULr(r),m=d.length,b=ULr(t),v=b.length;if(m!=v&&!f)return!1;for(var T=m;T--;){var C=d[T];if(!(f?C in t:bai.call(t,C)))return!1}var E=h.get(r),S=h.get(t);if(E&&S)return E==t&&S==r;var R=!0;h.set(r,t),h.set(t,r);for(var L=f;++T<m;){C=d[T];var _=r[C],I=t[C];if(s)var N=f?s(I,_,C,t,r,h):s(_,I,C,r,t,h);if(!(N===void 0?_===I||l(_,I,a,s,h):N)){R=!1;break}L||(L=C=="constructor")}if(R&&!L){var B=r.constructor,O=t.constructor;B!=O&&"constructor"in r&&"constructor"in t&&!(typeof B=="function"&&B instanceof B&&typeof O=="function"&&O instanceof O)&&(R=!1)}return h.delete(r),h.delete(t),R}function qMr(r,t,a,s,l,h){var f=$b(r),d=$b(t),m=f?KLr:_st(r),b=d?KLr:_st(t);m=m==XLr?Fke:m,b=b==XLr?Fke:b;var v=m==Fke,T=b==Fke,C=m==b;if(C&&X3e(r)){if(!X3e(t))return!1;f=!0,v=!1}if(C&&!v)return h||(h=new x3e),f||Llt(r)?gMr(r,t,a,s,l,h):fii(r,t,m,a,s,l,h);if(!(a&_ai)){var E=v&&JLr.call(r,"__wrapped__"),S=T&&JLr.call(t,"__wrapped__");if(E||S){var R=E?r.value():r,L=S?t.value():t;return h||(h=new x3e),l(R,L,a,s,h)}}return C?(h||(h=new x3e),vai(r,t,a,s,l,h)):!1}function Dlt(r,t,a,s,l){return r===t?!0:r==null||t==null||!ZV(r)&&!ZV(t)?r!==r&&t!==t:Iai(r,t,a,s,Dlt,l)}function XMr(r,t,a,s){var l=a.length,h=l,f=!s;if(r==null)return!h;for(r=Object(r);l--;){var d=a[l];if(f&&d[2]?d[1]!==r[d[0]]:!(d[0]in r))return!1}for(;++l<h;){d=a[l];var m=d[0],b=r[m],v=d[1];if(f&&d[2]){if(b===void 0&&!(m in r))return!1}else{var T=new x3e;if(s)var C=s(b,v,m,r,t,T);if(!(C===void 0?YMr(v,b,Mai|Nai,s,T):C))return!1}}return!0}function KMr(r){return r===r&&!Slt(r)}function QMr(r){for(var t=_lt(r),a=t.length;a--;){var s=t[a],l=r[s];t[a]=[s,l,JMr(l)]}return t}function ZMr(r,t){return function(a){return a==null?!1:a[r]===t&&(t!==void 0||r in Object(a))}}function tNr(r){var t=Pai(r);return t.length==1&&t[0][2]?eNr(t[0][0],t[0][1]):function(a){return a===r||Oai(a,r,t)}}function rNr(r){return typeof r=="symbol"||ZV(r)&&hW(r)==Fai}function nNr(r,t){if($b(r))return!1;var a=typeof r;return a=="number"||a=="symbol"||a=="boolean"||r==null||k4e(r)?!0:Gai.test(r)||!$ai.test(r)||t!=null&&r in Object(t)}function C4e(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(jai);var a=J(function(){var s=arguments,l=t?t.apply(this,s):s[0],h=a.cache;if(h.has(l))return h.get(l);var f=r.apply(this,s);return a.cache=h.set(l,f)||h,f},"memoized");return a.cache=new(C4e.Cache||w4e),a}function iNr(r){var t=zai(r,function(s){return a.size===Uai&&a.clear(),s}),a=t.cache;return t}function Mlt(r){if(typeof r=="string")return r;if($b(r))return kIr(r,Mlt)+"";if(k4e(r))return ZLr?ZLr.call(r):"";var t=r+"";return t=="0"&&1/r==-Xai?"-0":t}function aNr(r){return r==null?"":Kai(r)}function sNr(r,t){return $b(r)?r:Ilt(r,t)?[r]:Yai(Jai(r))}function lNr(r){if(typeof r=="string"||k4e(r))return r;var t=r+"";return t=="0"&&1/r==-Qai?"-0":t}function cNr(r,t){t=oNr(t,r);for(var a=0,s=t.length;r!=null&&a<s;)r=r[E4e(t[a++])];return a&&a==s?r:void 0}function hNr(r,t,a){var s=r==null?void 0:uNr(r,t);return s===void 0?a:s}function fNr(r,t){return r!=null&&t in Object(r)}function dNr(r,t,a){t=oNr(t,r);for(var s=-1,l=t.length,h=!1;++s<l;){var f=E4e(t[s]);if(!(h=r!=null&&a(r,f)))break;r=r[f]}return h||++s!=l?h:(l=r==null?0:r.length,!!l&&Rlt(l)&&IMr(f,l)&&($b(r)||x4e(r)))}function pNr(r,t){return r!=null&&tsi(r,t,esi)}function gNr(r,t){return Ilt(r)&&JMr(t)?eNr(E4e(r),t):function(a){var s=Zai(a,r);return s===void 0&&s===t?rsi(a,r):YMr(t,s,nsi|isi)}}function mNr(r){return r}function yNr(r){return function(t){return t?.[r]}}function bNr(r){return function(t){return uNr(t,r)}}function vNr(r){return Ilt(r)?ssi(E4e(r)):osi(r)}function wNr(r){return typeof r=="function"?r:r==null?Nlt:typeof r=="object"?$b(r)?asi(r[0],r[1]):Bai(r):lsi(r)}function xNr(r){return function(t,a,s){for(var l=-1,h=Object(t),f=s(t),d=f.length;d--;){var m=f[r?d:++l];if(a(h[m],m,h)===!1)break}return t}}function TNr(r,t){return r&&hsi(r,t,_lt)}function kNr(r,t){return function(a,s){if(a==null)return a;if(!T4e(a))return r(a,s);for(var l=a.length,h=t?l:-1,f=Object(a);(t?h--:++h<l)&&s(f[h],h,f)!==!1;);return a}}function CNr(r,t){var a=-1,s=T4e(r)?Array(r.length):[];return A4e(r,function(l,h,f){s[++a]=t(l,h,f)}),s}function ENr(r,t){var a=$b(r)?kIr:gsi;return a(r,S4e(t,3))}function SNr(r,t){var a=[];return A4e(r,function(s,l,h){t(s,l,h)&&a.push(s)}),a}function ANr(r,t){var a=$b(r)?kMr:msi;return a(r,S4e(t,3))}function rB(r,t,a){return`${r.name}_${t}_${a}`}function INr(r){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};MNr(t,r);let a=r.length;for(let s=0;s<a;s++){let l=r[s],h=ED(t,l,l);h!==void 0&&VNr(t,l,h)}return t}function MNr(r,t){let a=t.length;for(let s=0;s<a;s++){let l=t[s],h=M0(r,l,void 0,{type:bsi}),f=M0(r,l,void 0,{type:uB});h.stop=f,r.ruleToStartState.set(l,h),r.ruleToStopState.set(l,f)}}function Plt(r,t,a){return a instanceof Af?_4e(r,t,a.terminalType,a):a instanceof Bb?UNr(r,t,a):a instanceof k2?FNr(r,t,a):a instanceof b1?$Nr(r,t,a):a instanceof kp?NNr(r,t,a):a instanceof T2?ONr(r,t,a):a instanceof ux?PNr(r,t,a):a instanceof hx?BNr(r,t,a):ED(r,t,a)}function NNr(r,t,a){let s=M0(r,t,a,{type:LNr});p8(r,s);let l=hB(r,t,s,a,ED(r,t,a));return Flt(r,t,a,l)}function ONr(r,t,a){let s=M0(r,t,a,{type:LNr});p8(r,s);let l=hB(r,t,s,a,ED(r,t,a)),h=_4e(r,t,a.separator,a);return Flt(r,t,a,l,h)}function PNr(r,t,a){let s=M0(r,t,a,{type:RNr});p8(r,s);let l=hB(r,t,s,a,ED(r,t,a));return Blt(r,t,a,l)}function BNr(r,t,a){let s=M0(r,t,a,{type:RNr});p8(r,s);let l=hB(r,t,s,a,ED(r,t,a)),h=_4e(r,t,a.separator,a);return Blt(r,t,a,l,h)}function FNr(r,t,a){let s=M0(r,t,a,{type:kD});p8(r,s);let l=l8(a.definition,f=>Plt(r,t,f));return hB(r,t,s,a,...l)}function $Nr(r,t,a){let s=M0(r,t,a,{type:kD});p8(r,s);let l=hB(r,t,s,a,ED(r,t,a));return GNr(r,t,a,l)}function ED(r,t,a){let s=ysi(l8(a.definition,l=>Plt(r,t,l)),l=>l!==void 0);return s.length===1?s[0]:s.length===0?void 0:zNr(r,s)}function Blt(r,t,a,s,l){let h=s.left,f=s.right,d=M0(r,t,a,{type:Tsi});p8(r,d);let m=M0(r,t,a,{type:_Nr});return h.loopback=d,m.loopback=d,r.decisionMap[rB(t,l?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",a.idx)]=d,ag(f,d),l===void 0?(ag(d,h),ag(d,m)):(ag(d,m),ag(d,l.left),ag(l.right,h)),{left:h,right:m}}function Flt(r,t,a,s,l){let h=s.left,f=s.right,d=M0(r,t,a,{type:xsi});p8(r,d);let m=M0(r,t,a,{type:_Nr}),b=M0(r,t,a,{type:wsi});return d.loopback=b,m.loopback=b,ag(d,h),ag(d,m),ag(f,b),l!==void 0?(ag(b,m),ag(b,l.left),ag(l.right,h)):ag(b,d),r.decisionMap[rB(t,l?"RepetitionWithSeparator":"Repetition",a.idx)]=d,{left:d,right:m}}function GNr(r,t,a,s){let l=s.left,h=s.right;return ag(l,h),r.decisionMap[rB(t,"Option",a.idx)]=l,s}function p8(r,t){return r.decisionStates.push(t),t.decision=r.decisionStates.length-1,t.decision}function hB(r,t,a,s,...l){let h=M0(r,t,s,{type:vsi,start:a});a.end=h;for(let d of l)d!==void 0?(ag(a,d.left),ag(d.right,h)):ag(a,h);let f={left:a,right:h};return r.decisionMap[rB(t,jNr(s),s.idx)]=a,f}function jNr(r){if(r instanceof k2)return"Alternation";if(r instanceof b1)return"Option";if(r instanceof kp)return"Repetition";if(r instanceof T2)return"RepetitionWithSeparator";if(r instanceof ux)return"RepetitionMandatory";if(r instanceof hx)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function zNr(r,t){let a=t.length;for(let h=0;h<a-1;h++){let f=t[h],d;f.left.transitions.length===1&&(d=f.left.transitions[0]);let m=d instanceof L4e,b=d,v=t[h+1].left;f.left.type===kD&&f.right.type===kD&&d!==void 0&&(m&&b.followState===f.right||d.target===f.right)?(m?b.followState=v:d.target=v,WNr(r,f.right)):ag(f.right,v)}let s=t[0],l=t[a-1];return{left:s.left,right:l.right}}function _4e(r,t,a,s){let l=M0(r,t,s,{type:kD}),h=M0(r,t,s,{type:kD});return D4e(l,new R4e(h,a)),{left:l,right:h}}function UNr(r,t,a){let s=a.referencedRule,l=r.ruleToStartState.get(s),h=M0(r,t,a,{type:kD}),f=M0(r,t,a,{type:kD}),d=new L4e(l,s,f);return D4e(h,d),{left:h,right:f}}function VNr(r,t,a){let s=r.ruleToStartState.get(t);ag(s,a.left);let l=r.ruleToStopState.get(t);return ag(a.right,l),{left:s,right:l}}function ag(r,t){let a=new DNr(t);D4e(r,a)}function M0(r,t,a,s){let l=Object.assign({atn:r,production:a,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:r.states.length},s);return r.states.push(l),l}function D4e(r,t){r.transitions.length===0&&(r.epsilonOnlyTransitions=t.isEpsilon()),r.transitions.push(t)}function WNr(r,t){r.states.splice(r.states.indexOf(t),1)}function $lt(r,t=!0){return`${t?`a${r.alt}`:""}s${r.state.stateNumber}:${r.stack.map(a=>a.stateNumber.toString()).join("_")}`}function HNr(r,t,a){for(var s=-1,l=r.length;++s<l;){var h=r[s],f=t(h);if(f!=null&&(d===void 0?f===f&&!k4e(f):a(f,d)))var d=f,m=h}return m}function qNr(r,t){return r<t}function YNr(r){return r&&r.length?ksi(r,Nlt,Csi):void 0}function XNr(r){return $b(r)||x4e(r)||!!(e_r&&r&&r[e_r])}function Glt(r,t,a,s,l){var h=-1,f=r.length;for(a||(a=Ssi),l||(l=[]);++h<f;){var d=r[h];t>0&&a(d)?t>1?Glt(d,t-1,a,s,l):wMr(l,d):s||(l[l.length]=d)}return l}function JNr(r,t){return KNr(l8(r,t),1)}function QNr(r,t,a,s){for(var l=r.length,h=a+(s?1:-1);s?h--:++h<l;)if(t(r[h],h,r))return h;return-1}function ZNr(r){return r!==r}function eOr(r,t,a){for(var s=a-1,l=r.length;++s<l;)if(r[s]===t)return s;return-1}function tOr(r,t,a){return t===t?_si(r,t,a):Rsi(r,Lsi,a)}function rOr(r,t){var a=r==null?0:r.length;return!!a&&Dsi(r,t,0)>-1}function nOr(r,t,a){for(var s=-1,l=r==null?0:r.length;++s<l;)if(a(t,r[s]))return!0;return!1}function iOr(){}function aOr(r,t,a){var s=-1,l=Isi,h=r.length,f=!0,d=[],m=d;if(a)f=!1,l=Msi;else if(h>=Fsi){var b=t?null:Bsi(r);if(b)return Alt(b);f=!1,l=dMr,m=new uMr}else m=t?[]:d;e:for(;++s<h;){var v=r[s],T=t?t(v):v;if(v=a||v!==0?v:0,f&&T===T){for(var C=m.length;C--;)if(m[C]===T)continue e;t&&m.push(T),d.push(v)}else l(m,T,a)||(m!==d&&m.push(T),d.push(v))}return d}function sOr(r,t){return r&&r.length?$si(r,S4e(t,2)):[]}function oOr(r){var t=r==null?0:r.length;return t?KNr(r,1):[]}function lOr(r,t){for(var a=-1,s=r==null?0:r.length;++a<s&&t(r[a],a,r)!==!1;);return r}function cOr(r){return typeof r=="function"?r:Nlt}function uOr(r,t){var a=$b(r)?zsi:A4e;return a(r,Usi(t))}function hOr(r){if(r==null)return!0;if(T4e(r)&&($b(r)||typeof r=="string"||typeof r.splice=="function"||X3e(r)||Llt(r)||x4e(r)))return!r.length;var t=_st(r);if(t==Vsi||t==Wsi)return!r.size;if($Mr(r))return!zMr(r).length;for(var a in r)if(qsi.call(r,a))return!1;return!0}function fOr(r,t,a,s){var l=-1,h=r==null?0:r.length;for(s&&h&&(a=r[++l]);++l<h;)a=t(a,r[l],l,r);return a}function dOr(r,t,a,s,l){return l(r,function(h,f,d){a=s?(s=!1,h):t(a,h,f,d)}),a}function pOr(r,t,a){var s=$b(r)?Xsi:Ksi,l=arguments.length<3;return s(r,S4e(t,4),a,l,A4e)}function gOr(r,t){let a={};return s=>{let l=s.toString(),h=a[l];return h!==void 0||(h={atnStartState:r,decision:t,states:{}},a[l]=h),h}}function Ist(r,t=!0){let a=new Set;for(let s of r){let l=new Set;for(let h of s){if(h===void 0){if(t)break;return!1}let f=[h.tokenTypeIdx].concat(h.categoryMatches);for(let d of f)if(a.has(d)){if(!l.has(d))return!1}else a.add(d),l.add(d)}}return!0}function yOr(r){let t=new Map;for(let a of r.states)for(let s of a.transitions)if(s instanceof L4e){let l=t.get(s.rule);l===void 0&&(l=[],t.set(s.rule,l)),l.push(s.followState)}return t}function Mst(r,t){let a=new Set,s=new Set,l=[r];for(;l.length>0;){let h=l.shift();if(!s.has(h)){if(s.add(h),h.type===uB){if(t!==void 0){let f=t.get(h.rule);f!==void 0&&l.push(...f)}continue}for(let f of h.transitions)if(f instanceof R4e){a.add(f.tokenType.tokenTypeIdx);for(let d of f.tokenType.categoryMatches)a.add(d)}else l.push(f.target)}}return a}function bOr(r,t,a){let s=t==="RepetitionMandatoryWithSeparator",l=r.transitions[s?1:0],h=r.transitions[s?0:1];if(l===void 0||h===void 0)return!1;let f=Mst(l.target),d=Mst(h.target,a);for(let m of f)if(d.has(m))return!0;return!1}function vOr(r){let t=r.decisionStates.length,a=Array(t);for(let s=0;s<t;s++)a[s]=gOr(r.decisionStates[s],s);return a}function T3e(r,t,a,s,l){let h=r[t](a),f=h.start;if(f===void 0){let m=_Or(h.atnStartState);f=zlt(h,jlt(m)),h.start=f}return wOr.apply(this,[h,f,a,s,l])}function wOr(r,t,a,s,l){let h=t,f=1,d=[],m=this.LA_FAST(f++);for(;;){let b=SOr(h,m);if(b===void 0&&(b=xOr.apply(this,[r,h,m,f,a,s])),b===K3e)return EOr(d,h,m);if(b.isAcceptState===!0){if(l===!0&&f4e(m,h8)){let v=FOr(h,a);if(v!==void 0)return v}return b.prediction}h=b,d.push(m),m=this.LA(f++)}}function xOr(r,t,a,s,l,h){let f=AOr(t.configs,a,l);if(f.size===0)return Nst(r,t,a,K3e),K3e;let d=jlt(f),m=LOr(f,l);if(m!==void 0)d.isAcceptState=!0,d.prediction=m,d.configs.uniqueAlt=m;else if(NOr(f)){let b=Esi(f.alts);d.isAcceptState=!0,d.prediction=b,d.configs.uniqueAlt=b,TOr.apply(this,[r,s,f.alts,h])}return d=Nst(r,t,a,d),d}function TOr(r,t,a,s){let l=[];for(let b=1;b<=t;b++)l.push(this.LA(b).tokenType);let h=r.atnStartState,f=h.rule,d=h.production,m=kOr({topLevelRule:f,ambiguityIndices:a,production:d,prefixPath:l});s(m)}function kOr(r){let t=l8(r.prefixPath,l=>eB(l)).join(", "),a=r.production.idx===0?"":r.production.idx,s=`Ambiguous Alternatives Detected: <${r.ambiguityIndices.join(", ")}> in <${COr(r.production)}${a}> inside <${r.topLevelRule.name}> Rule,
|
|
<${t}> may appears as a prefix path in all these alternatives.
|
|
`;return s=s+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
For Further details.`,s}function COr(r){if(r instanceof Bb)return"SUBRULE";if(r instanceof b1)return"OPTION";if(r instanceof k2)return"OR";if(r instanceof ux)return"AT_LEAST_ONE";if(r instanceof hx)return"AT_LEAST_ONE_SEP";if(r instanceof T2)return"MANY_SEP";if(r instanceof kp)return"MANY";if(r instanceof Af)return"CONSUME";throw Error("non exhaustive match")}function EOr(r,t,a){let s=Asi(t.configs.elements,h=>h.state.transitions),l=Gsi(s.filter(h=>h instanceof R4e).map(h=>h.tokenType),h=>h.tokenTypeIdx);return{actualToken:a,possibleTokenTypes:l,tokenPath:r}}function SOr(r,t){return r.edges[t.tokenTypeIdx]}function AOr(r,t,a){let s=new Dst,l=[];for(let f of r.elements){if(a.is(f.alt)===!1)continue;if(f.state.type===uB){l.push(f);continue}let d=f.state.transitions.length;for(let m=0;m<d;m++){let b=f.state.transitions[m],v=ROr(b,t);v!==void 0&&s.add({state:v,alt:f.alt,stack:f.stack})}}let h;if(l.length===0&&s.size===1&&(h=s),h===void 0){h=new Dst;for(let f of s.elements)bae(f,h)}if(l.length>0&&!IOr(h))for(let f of l)h.add(f);return h}function ROr(r,t){if(r instanceof R4e&&f4e(t,r.tokenType))return r.target}function LOr(r,t){let a;for(let s of r.elements)if(t.is(s.alt)===!0){if(a===void 0)a=s.alt;else if(a!==s.alt)return}return a}function jlt(r){return{configs:r,edges:{},isAcceptState:!1,prediction:-1}}function Nst(r,t,a,s){return s=zlt(r,s),t.edges[a.tokenTypeIdx]=s,s}function zlt(r,t){if(t===K3e)return t;let a=t.configs.key,s=r.states[a];return s!==void 0?s:(t.configs.finalize(),r.states[a]=t,t)}function _Or(r){let t=new Dst,a=r.transitions.length;for(let s=0;s<a;s++){let h={state:r.transitions[s].target,alt:s,stack:[]};bae(h,t)}return t}function bae(r,t){let a=r.state;if(a.type===uB){if(r.stack.length>0){let l=[...r.stack],f={state:l.pop(),alt:r.alt,stack:l};bae(f,t)}else t.add(r);return}a.epsilonOnlyTransitions||t.add(r);let s=a.transitions.length;for(let l=0;l<s;l++){let h=a.transitions[l],f=DOr(r,h);f!==void 0&&bae(f,t)}}function DOr(r,t){if(t instanceof DNr)return{state:t.target,alt:r.alt,stack:r.stack};if(t instanceof L4e){let a=[...r.stack,t.followState];return{state:t.target,alt:r.alt,stack:a}}}function IOr(r){for(let t of r.elements)if(t.state.type===uB)return!0;return!1}function MOr(r){for(let t of r.elements)if(t.state.type!==uB)return!1;return!0}function NOr(r){if(MOr(r))return!0;let t=OOr(r.elements);return POr(t)&&!BOr(t)}function OOr(r){let t=new Map;for(let a of r){let s=$lt(a,!1),l=t.get(s);l===void 0&&(l={},t.set(s,l)),l[a.alt]=!0}return t}function POr(r){for(let t of Array.from(r.values()))if(Object.keys(t).length>1)return!0;return!1}function BOr(r){for(let t of Array.from(r.values()))if(Object.keys(t).length===1)return!0;return!1}function FOr(r,t){let a;for(let s of r.configs.elements)if(!(t.is(s.alt)===!1||s.state.type===uB)){if(a===void 0)a=s.alt;else if(a!==s.alt)return}return a}function $P(r){return r|0}function k3e(r){return r.$type===Ost}function Vlt(r,t,a){return qOr({parser:t,tokens:a,ruleNames:new Map},r),t}function qOr(r,t){let a=Zot(t,!1),s=rd(t.rules).filter(qS).filter(h=>a.has(h));for(let h of s){let f={...r,consume:1,optional:1,subrule:1,many:1,or:1};r.parser.rule(h,CD(f,h.definition))}let l=rd(t.rules).filter(cae).filter(h=>a.has(h));for(let h of l)r.parser.rule(h,YOr(r,h))}function YOr(r,t){let a=t.call.rule.ref;if(!a)throw new Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(YS(a))throw new Error("Cannot use terminal rule in infix expression");let s=t.operators.precedences.flatMap(E=>E.operators),l={$type:"Group",elements:[]},h={$container:l,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},f={$container:l,$type:"Group",elements:[],cardinality:"*"};l.elements.push(h,f);let m={$container:f,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:s}},b={...h,$container:f};f.elements.push(m,b);let T=s.map(E=>r.tokens[E.value]).map((E,S)=>({ALT:J(()=>r.parser.consume(S,E,m),"ALT")})),C;return E=>{C??(C=I4e(r,a)),r.parser.subrule(0,C,!1,h,E),r.parser.many(0,{DEF:J(()=>{r.parser.alternatives(0,T),r.parser.subrule(1,C,!1,b,E)},"DEF")})}}function CD(r,t,a=!1){let s;if(xD(t))s=tPr(r,t);else if(Sae(t))s=XOr(r,t);else if(wD(t))s=CD(r,t.terminal);else if(Aae(t))s=Wlt(r,t);else if(TD(t))s=KOr(r,t);else if(Yot(t))s=QOr(r,t);else if(Jot(t))s=ZOr(r,t);else if(a4e(t))s=ePr(r,t);else if(X_r(t)){let l=r.consume++;s=J(()=>r.parser.consume(l,h8,t),"method")}else throw new gDr(t.$cstNode,`Unexpected element type: ${t.$type}`);return Hlt(r,a?void 0:vae(t),s,t.cardinality)}function XOr(r,t){let a=JV(t);return()=>r.parser.action(a,t)}function KOr(r,t){let a=t.rule.ref;if(rW(a)){let s=r.subrule++,l=qS(a)&&a.fragment,h=t.arguments.length>0?JOr(a,t.arguments):()=>({}),f;return d=>{f??(f=I4e(r,a)),r.parser.subrule(s,f,l,t,h(d))}}else if(YS(a)){let s=r.consume++,l=J3e(r,a.name);return()=>r.parser.consume(s,l,t)}else if(a)nW(a);else throw new gDr(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function JOr(r,t){if(t.some(s=>s.calledByName)){let s=t.map(l=>({parameterName:l.parameter?.ref?.name,predicate:Q4(l.value)}));return l=>{let h={};for(let{parameterName:f,predicate:d}of s)f&&(h[f]=d(l));return h}}else{let s=t.map(l=>Q4(l.value));return l=>{let h={};for(let f=0;f<s.length;f++)if(f<r.parameters.length){let d=r.parameters[f].name,m=s[f];h[d]=m(l)}return h}}}function Q4(r){if(Y_r(r)){let t=Q4(r.left),a=Q4(r.right);return s=>t(s)||a(s)}else if(q_r(r)){let t=Q4(r.left),a=Q4(r.right);return s=>t(s)&&a(s)}else if(Q_r(r)){let t=Q4(r.value);return a=>!t(a)}else if(Z_r(r)){let t=r.parameter.ref.name;return a=>a!==void 0&&a[t]===!0}else if(W_r(r)){let t=!!r.true;return()=>t}nW(r)}function QOr(r,t){if(t.elements.length===1)return CD(r,t.elements[0]);{let a=[];for(let l of t.elements){let h={ALT:CD(r,l,!0)},f=vae(l);f&&(h.GATE=Q4(f)),a.push(h)}let s=r.or++;return l=>r.parser.alternatives(s,a.map(h=>{let f={ALT:J(()=>h.ALT(l),"ALT")},d=h.GATE;return d&&(f.GATE=()=>d(l)),f}))}}function ZOr(r,t){if(t.elements.length===1)return CD(r,t.elements[0]);let a=[];for(let d of t.elements){let m={ALT:CD(r,d,!0)},b=vae(d);b&&(m.GATE=Q4(b)),a.push(m)}let s=r.or++,l=J((d,m)=>{let b=m.getRuleStack().join("-");return`uGroup_${d}_${b}`},"idFunc"),h=J(d=>r.parser.alternatives(s,a.map((m,b)=>{let v={ALT:J(()=>!0,"ALT")},T=r.parser;v.ALT=()=>{if(m.ALT(d),!T.isRecording()){let E=l(s,T);T.unorderedGroups.get(E)||T.unorderedGroups.set(E,[]);let S=T.unorderedGroups.get(E);typeof S?.[b]>"u"&&(S[b]=!0)}};let C=m.GATE;return C?v.GATE=()=>C(d):v.GATE=()=>!T.unorderedGroups.get(l(s,T))?.[b],v})),"alternatives"),f=Hlt(r,vae(t),h,"*");return d=>{f(d),r.parser.isRecording()||r.parser.unorderedGroups.delete(l(s,r.parser))}}function ePr(r,t){let a=t.elements.map(s=>CD(r,s));return s=>a.forEach(l=>l(s))}function vae(r){if(a4e(r))return r.guardCondition}function Wlt(r,t,a=t.terminal){if(a)if(TD(a)&&qS(a.rule.ref)){let s=a.rule.ref,l=r.subrule++,h;return f=>{h??(h=I4e(r,s)),r.parser.subrule(l,h,!1,t,f)}}else if(TD(a)&&YS(a.rule.ref)){let s=r.consume++,l=J3e(r,a.rule.ref.name);return()=>r.parser.consume(s,l,t)}else if(xD(a)){let s=r.consume++,l=J3e(r,a.value);return()=>r.parser.consume(s,l,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);let l=rlt(t.type.ref)?.terminal;if(!l)throw new Error("Could not find name assignment for type: "+JV(t.type.ref));return Wlt(r,t,l)}}function tPr(r,t){let a=r.consume++,s=r.tokens[t.value];if(!s)throw new Error("Could not find token for keyword: "+t.value);return()=>r.parser.consume(a,s,t)}function Hlt(r,t,a,s){let l=t&&Q4(t);if(!s)if(l){let h=r.or++;return f=>r.parser.alternatives(h,[{ALT:J(()=>a(f),"ALT"),GATE:J(()=>l(f),"GATE")},{ALT:Sst(),GATE:J(()=>!l(f),"GATE")}])}else return a;if(s==="*"){let h=r.many++;return f=>r.parser.many(h,{DEF:J(()=>a(f),"DEF"),GATE:l?()=>l(f):void 0})}else if(s==="+"){let h=r.many++;if(l){let f=r.or++;return d=>r.parser.alternatives(f,[{ALT:J(()=>r.parser.atLeastOne(h,{DEF:J(()=>a(d),"DEF")}),"ALT"),GATE:J(()=>l(d),"GATE")},{ALT:Sst(),GATE:J(()=>!l(d),"GATE")}])}else return f=>r.parser.atLeastOne(h,{DEF:J(()=>a(f),"DEF")})}else if(s==="?"){let h=r.optional++;return f=>r.parser.optional(h,{DEF:J(()=>a(f),"DEF"),GATE:l?()=>l(f):void 0})}else nW(s)}function I4e(r,t){let a=rPr(r,t),s=r.parser.getRule(a);if(!s)throw new Error(`Rule "${a}" not found."`);return s}function rPr(r,t){if(rW(t))return t.name;if(r.ruleNames.has(t))return r.ruleNames.get(t);{let a=t,s=a.$container,l=t.$type;for(;!qS(s);)(a4e(s)||Yot(s)||Jot(s))&&(l=s.elements.indexOf(a).toString()+":"+l),a=s,s=s.$container;return l=s.name+":"+l,r.ruleNames.set(t,l),l}}function J3e(r,t){let a=r.tokens[t];if(!a)throw new Error(`Token "${t}" not found."`);return a}function nPr(r){let t=r.Grammar,a=r.parser.Lexer,s=new eoi(r);return Vlt(t,s,a.definition),s.finalize(),s}function iPr(r){let t=aPr(r);return t.finalize(),t}function aPr(r){let t=r.Grammar,a=r.parser.Lexer,s=new Qsi(r);return Vlt(t,s,a.definition)}function lPr(){return new Promise(r=>{typeof setImmediate>"u"?setTimeout(r,0):setImmediate(r)})}function cPr(){return C3e=performance.now(),new $d.CancellationTokenSource}function Dae(r){return r===WV}async function ky(r){if(r===$d.CancellationToken.None)return;let t=performance.now();if(t-C3e>=noi&&(C3e=t,await lPr(),C3e=performance.now()),r.isCancellationRequested)throw WV}function Q3e(r,t){if(r.length<=1)return r;let a=r.length/2|0,s=r.slice(0,a),l=r.slice(a);Q3e(s,t),Q3e(l,t);let h=0,f=0,d=0;for(;h<s.length&&f<l.length;)t(s[h],l[f])<=0?r[d++]=s[h++]:r[d++]=l[f++];for(;h<s.length;)r[d++]=s[h++];for(;f<l.length;)r[d++]=l[f++];return r}function Fst(r,t,a=0){let s=t?[a]:[];for(let l=0;l<r.length;l++){let h=r.charCodeAt(l);Ylt(h)&&(h===13&&l+1<r.length&&r.charCodeAt(l+1)===10&&l++,s.push(a+l+1))}return s}function Ylt(r){return r===13||r===10}function Xlt(r){let t=r.start,a=r.end;return t.line>a.line||t.line===a.line&&t.character>a.character?{start:a,end:t}:r}function uPr(r){let t=Xlt(r.range);return t!==r.range?{newText:r.newText,range:t}:r}function fPr(r){return typeof r.name=="string"}function pPr(r){return typeof r.$comment=="string"}function $st(r){return typeof r=="object"&&!!r&&("$ref"in r||"$refs"in r||"$error"in r)}function HV(r){return{code:r}}function gPr(r){if(r.range)return r.range;let t;return typeof r.property=="string"?t=tlt(r.node.$cstNode,r.property,r.index):typeof r.keyword=="string"&&(t=EDr(r.node.$cstNode,r.keyword,r.index)),t??(t=r.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function E3e(r){switch(r){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+r)}}function mPr(r){switch(r){case"error":return HV(Z4.LexingError);case"warning":return HV(Z4.LexingWarning);case"info":return HV(Z4.LexingInfo);case"hint":return HV(Z4.LexingHint);default:throw new Error("Invalid diagnostic severity: "+r)}}function yPr(r){return Array.isArray(r)&&(r.length===0||"name"in r[0])}function Klt(r){return r&&"modes"in r&&"defaultMode"in r}function jst(r){return!yPr(r)&&!Klt(r)}function bPr(r,t,a){let s,l;typeof r=="string"?(l=t,s=a):(l=r.range.start,s=t),l||(l=ch.create(0,0));let h=Jlt(r),f=M4e(s),d=wPr({lines:h,position:l,options:f});return kPr({index:0,tokens:d,position:l})}function vPr(r,t){let a=M4e(t),s=Jlt(r);if(s.length===0)return!1;let l=s[0],h=s[s.length-1],f=a.start,d=a.end;return!!f?.exec(l)&&!!d?.exec(h)}function Jlt(r){let t="";return typeof r=="string"?t=r:t=r.text,t.split(tri)}function wPr(r){let t=[],a=r.position.line,s=r.position.character;for(let l=0;l<r.lines.length;l++){let h=l===0,f=l===r.lines.length-1,d=r.lines[l],m=0;if(h&&r.options.start){let v=r.options.start?.exec(d);v&&(m=v.index+v[0].length)}else{let v=r.options.line?.exec(d);v&&(m=v.index+v[0].length)}if(f){let v=r.options.end?.exec(d);v&&(d=d.substring(0,v.index))}if(d=d.substring(0,TPr(d)),Z3e(d,m)>=d.length){if(t.length>0){let v=ch.create(a,s);t.push({type:"break",content:"",range:yc.create(v,v)})}}else{o_r.lastIndex=m;let v=o_r.exec(d);if(v){let T=v[0],C=v[1],E=ch.create(a,s+m),S=ch.create(a,s+m+T.length);t.push({type:"tag",content:C,range:yc.create(E,S)}),m+=T.length,m=Z3e(d,m)}if(m<d.length){let T=d.substring(m),C=Array.from(T.matchAll(Noi));t.push(...xPr(C,T,a,s+m))}}a++,s=0}return t.length>0&&t[t.length-1].type==="break"?t.slice(0,-1):t}function xPr(r,t,a,s){let l=[];if(r.length===0){let h=ch.create(a,s),f=ch.create(a,s+t.length);l.push({type:"text",content:t,range:yc.create(h,f)})}else{let h=0;for(let d of r){let m=d.index,b=t.substring(h,m);b.length>0&&l.push({type:"text",content:t.substring(h,m),range:yc.create(ch.create(a,h+s),ch.create(a,m+s))});let v=b.length+1,T=d[1];if(l.push({type:"inline-tag",content:T,range:yc.create(ch.create(a,h+v+s),ch.create(a,h+v+T.length+s))}),v+=T.length,d.length===4){v+=d[2].length;let C=d[3];l.push({type:"text",content:C,range:yc.create(ch.create(a,h+v+s),ch.create(a,h+v+C.length+s))})}else l.push({type:"text",content:"",range:yc.create(ch.create(a,h+v+s),ch.create(a,h+v+s))});h=m+d[0].length}let f=t.substring(h);f.length>0&&l.push({type:"text",content:f,range:yc.create(ch.create(a,h+s),ch.create(a,h+s+f.length))})}return l}function Z3e(r,t){let a=r.substring(t).match(Ooi);return a?t+a.index:r.length}function TPr(r){let t=r.match(Poi);if(t&&typeof t.index=="number")return t.index}function kPr(r){let t=ch.create(r.position.line,r.position.character);if(r.tokens.length===0)return new l_r([],yc.create(t,t));let a=[];for(;r.index<r.tokens.length;){let h=CPr(r,a[a.length-1]);h&&a.push(h)}let s=a[0]?.range.start??t,l=a[a.length-1]?.range.end??t;return new l_r(a,yc.create(s,l))}function CPr(r,t){let a=r.tokens[r.index];if(a.type==="tag")return Zlt(r,!1);if(a.type==="text"||a.type==="inline-tag")return Qlt(r);EPr(a,t),r.index++}function EPr(r,t){if(t){let a=new LPr("",r.range);"inlines"in t?t.inlines.push(a):t.content.inlines.push(a)}}function Qlt(r){let t=r.tokens[r.index],a=t,s=t,l=[];for(;t&&t.type!=="break"&&t.type!=="tag";)l.push(SPr(r)),s=t,t=r.tokens[r.index];return new zst(l,yc.create(a.range.start,s.range.end))}function SPr(r){return r.tokens[r.index].type==="inline-tag"?Zlt(r,!0):ect(r)}function Zlt(r,t){let a=r.tokens[r.index++],s=a.content.substring(1);if(r.tokens[r.index]?.type==="text")if(t){let h=ect(r);return new Fit(s,new zst([h],h.range),t,yc.create(a.range.start,h.range.end))}else{let h=Qlt(r);return new Fit(s,h,t,yc.create(a.range.start,h.range.end))}else{let h=a.range;return new Fit(s,new zst([],h),t,h)}}function ect(r){let t=r.tokens[r.index++];return new LPr(t.content,t.range)}function M4e(r){if(!r)return M4e({start:"/**",end:"*/",line:"*"});let{start:t,end:a,line:s}=r;return{start:S3e(t,!0),end:S3e(a,!1),line:S3e(s,!0)}}function S3e(r,t){if(typeof r=="string"||typeof r=="object"){let a=typeof r=="string"?Rae(r):r.source;return t?new RegExp(`^\\s*${a}`):new RegExp(`\\s*${a}\\s*$`)}else return r}function APr(r,t,a){if(r==="linkplain"||r==="linkcode"||r==="link"){let s=t.indexOf(" "),l=t;if(s>0){let f=Z3e(t,s);l=t.substring(f),t=t.substring(0,s)}return(r==="linkcode"||r==="link"&&a.link==="code")&&(l=`\`${l}\``),a.renderLink?.(t,l)??RPr(t,l)}}function RPr(r,t){try{return cx.parse(r,!0),`[${t}](${r})`}catch{return r}}function Ust(r){return r.endsWith(`
|
|
`)?`
|
|
`:`
|
|
|
|
`}function hu(r){return{documentation:{CommentProvider:J(t=>new Foi(t),"CommentProvider"),DocumentationProvider:J(t=>new Boi(t),"DocumentationProvider")},parser:{AsyncParser:J(t=>new $oi(t),"AsyncParser"),GrammarConfig:J(t=>ODr(t),"GrammarConfig"),LangiumParser:J(t=>iPr(t),"LangiumParser"),CompletionParser:J(t=>nPr(t),"CompletionParser"),ValueConverter:J(()=>new oPr,"ValueConverter"),TokenBuilder:J(()=>new sPr,"TokenBuilder"),Lexer:J(t=>new Moi(t),"Lexer"),ParserErrorMessageProvider:J(()=>new WOr,"ParserErrorMessageProvider"),LexerErrorMessageProvider:J(()=>new Doi,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:J(()=>new Eoi,"AstNodeLocator"),AstNodeDescriptionProvider:J(t=>new koi(t),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:J(t=>new Coi(t),"ReferenceDescriptionProvider")},references:{Linker:J(t=>new coi(t),"Linker"),NameProvider:J(()=>new uoi,"NameProvider"),ScopeProvider:J(t=>new yoi(t),"ScopeProvider"),ScopeComputation:J(t=>new foi(t),"ScopeComputation"),References:J(t=>new hoi(t),"References")},serializer:{Hydrator:J(t=>new joi(t),"Hydrator"),JsonSerializer:J(t=>new boi(t),"JsonSerializer")},validation:{DocumentValidator:J(t=>new Toi(t),"DocumentValidator"),ValidationRegistry:J(t=>new woi(t),"ValidationRegistry")},shared:J(()=>r.shared,"shared")}}function fu(r){return{ServiceRegistry:J(t=>new voi(t),"ServiceRegistry"),workspace:{LangiumDocuments:J(t=>new soi(t),"LangiumDocuments"),LangiumDocumentFactory:J(t=>new aoi(t),"LangiumDocumentFactory"),DocumentBuilder:J(t=>new Roi(t),"DocumentBuilder"),IndexManager:J(t=>new Loi(t),"IndexManager"),WorkspaceManager:J(t=>new _oi(t),"WorkspaceManager"),FileSystemProvider:J(t=>r.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:J(()=>new Goi,"WorkspaceLock"),ConfigurationProvider:J(t=>new Aoi(t),"ConfigurationProvider")},profilers:{}}}function _o(r,t,a,s,l,h,f,d,m){let b=[r,t,a,s,l,h,f,d,m].reduce(eW,{});return tct(b)}function tct(r,t){let a=new Proxy({},{deleteProperty:J(()=>!1,"deleteProperty"),set:J(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:J((s,l)=>l===zoi?!0:Vst(s,l,r,t||a),"get"),getOwnPropertyDescriptor:J((s,l)=>(Vst(s,l,r,t||a),Object.getOwnPropertyDescriptor(s,l)),"getOwnPropertyDescriptor"),has:J((s,l)=>l in r,"has"),ownKeys:J(()=>[...Object.getOwnPropertyNames(r)],"ownKeys")});return a}function Vst(r,t,a,s){if(t in r){if(r[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+r[t]);if(r[t]===u_r)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return r[t]}else if(t in a){let l=a[t];r[t]=u_r;try{r[t]=typeof l=="function"?l(s):tct(l,s)}catch(h){throw r[t]=h instanceof Error?h:void 0,h}return r[t]}else return}function eW(r,t){if(t){for(let[a,s]of Object.entries(t))if(!(a==="__proto__"||a==="constructor"||a==="prototype")&&s!=null)if(typeof s=="object"){let l=r[a];typeof l=="object"&&l!==null?r[a]=eW(l,s):r[a]=eW({},s)}else r[a]=s}return r}function _Pr(){let r=_o(fu(Lu),Woi),t=_o(hu({shared:r}),Voi);return r.ServiceRegistry.register(t),t}function Cy(r){let t=_Pr(),a=t.serializer.JsonSerializer.deserialize(r);return t.shared.workspace.LangiumDocumentFactory.fromModel(a,cx.parse(`memory:/${a.name??"grammar"}.langium`)),a}function DPr(r){return sg.isInstance(r,K4.$type)}function IPr(r){return sg.isInstance(r,iae.$type)}function MPr(r){return sg.isInstance(r,VP.$type)}function NPr(r){return sg.isInstance(r,mD.$type)}function OPr(r){return sg.isInstance(r,aae.$type)}function PPr(r){return sg.isInstance(r,t4e.$type)}function BPr(r){return r==="rmo"||r==="readmodel"||r==="ui"||r==="cmd"||r==="command"||r==="evt"||r==="event"||r==="pcr"||r==="processor"}function N4e(r){return sg.isInstance(r,a8.$type)}function FPr(r){return sg.isInstance(r,yD.$type)}function $Pr(r){return sg.isInstance(r,qV.$type)}function GPr(r){return sg.isInstance(r,WP.$type)}function jPr(r){return sg.isInstance(r,HP.$type)}function zPr(r){return sg.isInstance(r,qP.$type)}function UPr(r){return sg.isInstance(r,bD.$type)}function VPr(r){return sg.isInstance(r,sae.$type)}function WPr(r){return sg.isInstance(r,YP.$type)}function HPr(r){return sg.isInstance(r,XP.$type)}function qPr(r){return sg.isInstance(r,KP.$type)}function YPr(r){return sg.isInstance(r,JP.$type)}function XPr(r){return sg.isInstance(r,YV.$type)}function KPr(r){return sg.isInstance(r,QP.$type)}function JPr(r){return sg.isInstance(r,Rm.$type)}var mti,xae,yti,$ot,bti,vti,J,wti,Cl,xti,__r,Got,jot,Tae,D_r,M_r,Tti,nB,kae,zot,kti,O_r,Cti,Eti,Sti,Ati,Cae,r4e,Jit,Qke,Qit,Bie,ch,yc,Fie,Zit,Zke,eat,tat,rat,nat,e3e,iat,aat,sat,$ie,IP,$S,uD,Am,r8,Gie,AV,RV,LV,t3e,Sie,oat,Lit,B_r,lat,cat,jie,uat,hat,r3e,hD,fat,dat,pat,gat,mat,yat,bat,vat,wat,zie,xat,Tat,kat,Cat,Eat,Sat,Aat,Rat,Lat,_at,Dat,Uie,Iat,n3e,Mat,Nat,Oat,Pat,Bat,Fat,$at,Gat,jat,zat,Uat,Vat,i3e,a3e,Wat,s3e,Hat,qat,Yat,Xat,Kat,Jat,F_r,Qat,uLr,jr,n4e,nd,Uot,Rti,Lti,_ti,Dti,Iti,Mti,Nti,Oti,Pti,Bti,Fti,$ti,Gti,jti,zti,Uti,Vti,Wti,Hti,qti,Yti,Xti,Kti,Jti,Vot,G_r,vD,z_r,lx,O3e,Zat,ox,o3e,Ike,X4,MP,l3e,hLr,fLr,NP,tst,OP,kV,c3e,PP,u3e,rst,RP,dLr,_V,nst,i8,_it,pLr,Vie,Wie,Mke,DV,ist,gLr,Nke,ast,GS,Dit,IV,sst,MV,Hie,mLr,NV,sk,OV,fD,PV,h3e,Aie,Rie,yLr,f3e,BV,Lie,qie,lDr,uu,o8,Qti,gDr,G3e,j3e,bLr,Zti,Oke,eri,mDr,s4e,tri,rri,nri,Iit,iri,olt,XS,Bb,iW,x2,b1,ux,hx,kp,T2,k2,Af,aW,c4e,VDr,ari,g3e,sri,YDr,U3e,ori,tB,Kie,Pke,hst,m3e,fst,dst,lri,cri,uri,Jie,b3e,vLr,v9r,mst,Cp,Qie,w2,hri,wLr,xLr,TLr,kLr,CLr,ELr,SLr,ALr,h8,VV,fri,ZP,dri,pri,gri,d4e,mri,RLr,yri,LLr,Fd,bri,O9r,vri,Tlt,wri,Z9r,eIr,tIr,rIr,nIr,g4e,iIr,xri,Tri,kri,Mit,aIr,Cri,Eri,uW,oIr,lIr,vst,wst,xst,w3e,klt,Sri,Ari,Bke,Rri,Cst,Lri,_ri,Dri,Iri,Mri,m4e,_Lr,DLr,yIr,bIr,Nri,Ori,Pri,QV,f8,Y3e,Fb,Elt,Bri,kIr,Fri,SIr,y4e,$ri,Gri,jri,zri,Uri,Vri,b4e,Wri,Hri,qri,Yri,Xri,PIr,Kri,Jri,d8,Qri,HS,BIr,Zri,eni,_ie,tni,rni,nni,ini,ani,sni,ILr,hW,Slt,oni,lni,cni,uni,UIr,hni,Nit,MLr,fni,dni,pni,sB,gni,mni,yni,bni,vni,wni,xni,Tni,kni,fW,Cni,gae,Eni,mae,Sni,Ani,Rni,Lni,_ni,Dni,Ini,Mni,Nni,Oni,Pni,NLr,Bni,Fni,v4e,$ni,Gni,jni,zni,w4e,Uni,Vni,x3e,Wni,Hni,qni,uMr,Yni,dMr,Xni,Kni,gMr,Jni,OLr,Qni,Alt,Zni,eii,tii,rii,nii,iii,aii,sii,oii,lii,cii,uii,hii,PLr,Oit,fii,wMr,dii,$b,pii,kMr,gii,mii,yii,BLr,bii,vii,wii,ZV,xii,FLr,RMr,Tii,kii,Cii,x4e,Eii,_Mr,$Lr,Sii,GLr,Aii,Rii,X3e,Lii,_ii,IMr,Dii,Rlt,Iii,Mii,Nii,Oii,Pii,Bii,Fii,$ii,Gii,jii,zii,Uii,Vii,Wii,Hii,qii,Yii,Xii,Kii,Jii,Qii,Zii,eai,tai,Sf,rai,nai,PMr,rae,iai,Pit,aai,jLr,zLr,sai,Llt,oai,lai,cai,uai,$Mr,hai,fai,dai,pai,gai,zMr,T4e,_lt,ULr,mai,yai,bai,vai,wai,Ast,xai,Rst,Tai,XV,kai,Lst,VLr,Cai,WLr,HLr,qLr,YLr,Eai,Sai,Aai,Rai,Lai,FP,_st,_ai,XLr,KLr,Fke,Dai,JLr,Iai,YMr,Mai,Nai,Oai,JMr,Pai,eNr,Bai,Fai,k4e,$ai,Gai,Ilt,jai,zai,Uai,Vai,Wai,Hai,qai,Yai,Xai,QLr,ZLr,Kai,Jai,oNr,Qai,E4e,uNr,Zai,esi,tsi,rsi,nsi,isi,asi,Nlt,ssi,osi,lsi,S4e,csi,usi,hsi,fsi,dsi,psi,A4e,gsi,l8,msi,ysi,kD,bsi,RNr,LNr,uB,vsi,wsi,xsi,Tsi,_Nr,Olt,R4e,DNr,L4e,K3e,Dst,ksi,Csi,Esi,e_r,Ssi,KNr,Asi,Rsi,Lsi,_si,Dsi,Isi,Msi,Nsi,Osi,Psi,Bsi,Fsi,$si,Gsi,jsi,zsi,Usi,Bit,Vsi,Wsi,Hsi,qsi,Ysi,Xsi,Ksi,t_r,mOr,r_r,Jsi,$Or,GOr,jOr,Ult,zOr,Ost,n_r,UOr,VOr,Qsi,Zsi,WOr,eoi,toi,HOr,roi,sPr,oPr,s8,$d,C3e,noi,WV,qlt,i_r,Bst,hPr,cx,Die,lk,ioi,ac,aoi,soi,CV,ooi,loi,coi,uoi,hoi,wae,a_r,foi,s_r,doi,dPr,poi,goi,moi,yoi,boi,voi,Gst,woi,xoi,Toi,Z4,koi,Coi,Eoi,Soi,Aoi,$ke,nae,Roi,Loi,_oi,Doi,Ioi,Moi,o_r,Noi,Ooi,Poi,l_r,Fit,zst,LPr,Boi,Foi,$oi,e4e,Goi,joi,c_r,zoi,u_r,Uoi,Lu,Voi,Woi,Wst,Hst,qst,Yst,Xst,Kst,Jst,Qst,Zst,eot,tot,rot,not,iot,aot,gXa,sot,oot,A3e,lot,cot,uot,GP,R3e,hot,fot,Gke,$it,jke,Iie,Git,K4,zke,iae,h_r,Uke,jit,VP,Vke,LP,Wke,mD,Hke,f_r,EV,aae,t4e,dot,pot,got,mot,yot,bot,vot,GV,dD,wot,L3e,xot,Tot,_3e,kot,Cot,FS,jP,pD,Mie,d_r,zit,qke,a8,cD,Uit,jS,p_r,Yke,Vit,yD,Nie,qV,Oie,Wit,Pie,Xke,_P,WP,Kke,Hit,HP,qP,Eot,Sot,Aot,Rot,Lot,D3e,jV,I3e,_ot,M3e,bD,sae,qit,Jke,gD,YP,XP,Dot,KP,zS,Iot,Mot,Not,JP,N3e,Oot,Pot,Bot,Fot,Yit,SV,Xit,zP,YV,QP,Kit,UP,zV,Rm,QPr,sg,g_r,Hoi,m_r,qoi,y_r,Yoi,b_r,Xoi,v_r,Koi,w_r,Joi,x_r,Qoi,T_r,Zoi,k_r,eli,C_r,tli,E_r,rli,S_r,nli,A_r,ili,R_r,ali,L_r,sli,oli,lli,cli,uli,hli,fli,dli,pli,gli,mli,yli,bli,vli,wli,xli,_u,rct,nct,ict,act,sct,oct,lct,cct,uct,hct,fct,dct,pct,gct,mct,Tli,kli,Cli,Eli,Gg,fx,Vu,Sli,du=ae(()=>{"use strict";mti=Object.create,xae=Object.defineProperty,yti=Object.getOwnPropertyDescriptor,$ot=Object.getOwnPropertyNames,bti=Object.getPrototypeOf,vti=Object.prototype.hasOwnProperty,J=i((r,t)=>xae(r,"name",{value:t,configurable:!0}),"__name"),wti=i((r,t,a)=>i(function(){if(a)throw a[0];try{return r&&(t=(0,r[$ot(r)[0]])(r=0)),t}catch(l){throw a=[l],l}},"__init"),"__esm"),Cl=i((r,t)=>i(function(){try{return t||(0,r[$ot(r)[0]])((t={exports:{}}).exports,t),t.exports}catch(s){throw t=0,s}},"__require"),"__commonJS"),xti=i((r,t)=>{for(var a in t)xae(r,a,{get:t[a],enumerable:!0})},"__export"),__r=i((r,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of $ot(t))!vti.call(r,l)&&l!==a&&xae(r,l,{get:i(()=>t[l],"get"),enumerable:!(s=yti(t,l))||s.enumerable});return r},"__copyProps"),Got=i((r,t,a)=>(a=r!=null?mti(bti(r)):{},__r(t||!r||!r.__esModule?xae(a,"default",{value:r,enumerable:!0}):a,r)),"__toESM"),jot=i(r=>__r(xae({},"__esModule",{value:!0}),r),"__toCommonJS"),Tae=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.boolean=t,r.string=a,r.number=s,r.error=l,r.func=h,r.array=f,r.stringArray=d;function t(m){return m===!0||m===!1}i(t,"boolean"),J(t,"boolean");function a(m){return typeof m=="string"||m instanceof String}i(a,"string"),J(a,"string");function s(m){return typeof m=="number"||m instanceof Number}i(s,"number"),J(s,"number");function l(m){return m instanceof Error}i(l,"error"),J(l,"error");function h(m){return typeof m=="function"}i(h,"func"),J(h,"func");function f(m){return Array.isArray(m)}i(f,"array"),J(f,"array");function d(m){return f(m)&&m.every(b=>a(b))}i(d,"stringArray"),J(d,"stringArray")}}),D_r=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(X,te,U,ne){ne===void 0&&(ne=U);var se=Object.getOwnPropertyDescriptor(te,U);(!se||("get"in se?!te.__esModule:se.writable||se.configurable))&&(se={enumerable:!0,get:J(function(){return te[U]},"get")}),Object.defineProperty(X,ne,se)}):(function(X,te,U,ne){ne===void 0&&(ne=U),X[ne]=te[U]})),a=r&&r.__setModuleDefault||(Object.create?(function(X,te){Object.defineProperty(X,"default",{enumerable:!0,value:te})}):function(X,te){X.default=te}),s=r&&r.__importStar||(function(){var X=J(function(te){return X=Object.getOwnPropertyNames||function(U){var ne=[];for(var se in U)Object.prototype.hasOwnProperty.call(U,se)&&(ne[ne.length]=se);return ne},X(te)},"ownKeys");return function(te){if(te&&te.__esModule)return te;var U={};if(te!=null)for(var ne=X(te),se=0;se<ne.length;se++)ne[se]!=="default"&&t(U,te,ne[se]);return a(U,te),U}})();Object.defineProperty(r,"__esModule",{value:!0}),r.Message=r.NotificationType9=r.NotificationType8=r.NotificationType7=r.NotificationType6=r.NotificationType5=r.NotificationType4=r.NotificationType3=r.NotificationType2=r.NotificationType1=r.NotificationType0=r.NotificationType=r.RequestType9=r.RequestType8=r.RequestType7=r.RequestType6=r.RequestType5=r.RequestType4=r.RequestType3=r.RequestType2=r.RequestType1=r.RequestType=r.RequestType0=r.AbstractMessageSignature=r.ParameterStructures=r.ResponseError=r.ErrorCodes=void 0;var l=s(Tae()),h;(function(X){X.ParseError=-32700,X.InvalidRequest=-32600,X.MethodNotFound=-32601,X.InvalidParams=-32602,X.InternalError=-32603,X.jsonrpcReservedErrorRangeStart=-32099,X.serverErrorStart=-32099,X.MessageWriteError=-32099,X.MessageReadError=-32098,X.PendingResponseRejected=-32097,X.ConnectionInactive=-32096,X.ServerNotInitialized=-32002,X.UnknownErrorCode=-32001,X.jsonrpcReservedErrorRangeEnd=-32e3,X.serverErrorEnd=-32e3})(h||(r.ErrorCodes=h={}));var f=class I_r extends Error{static{i(this,"_ResponseError")}static{J(this,"ResponseError")}code;data;constructor(te,U,ne){super(U),this.code=l.number(te)?te:h.UnknownErrorCode,this.data=ne,Object.setPrototypeOf(this,I_r.prototype)}toJson(){let te={code:this.code,message:this.message};return this.data!==void 0&&(te.data=this.data),te}};r.ResponseError=f;var d=class DP{static{i(this,"_ParameterStructures")}static{J(this,"ParameterStructures")}kind;static auto=new DP("auto");static byPosition=new DP("byPosition");static byName=new DP("byName");constructor(te){this.kind=te}static is(te){return te===DP.auto||te===DP.byName||te===DP.byPosition}toString(){return this.kind}};r.ParameterStructures=d;var m=class{static{i(this,"AbstractMessageSignature")}static{J(this,"AbstractMessageSignature")}method;numberOfParams;constructor(X,te){this.method=X,this.numberOfParams=te}get parameterStructures(){return d.auto}};r.AbstractMessageSignature=m;var b=class extends m{static{i(this,"RequestType0")}static{J(this,"RequestType0")}_;constructor(X){super(X,0)}};r.RequestType0=b;var v=class extends m{static{i(this,"RequestType")}static{J(this,"RequestType")}_parameterStructures;_;constructor(X,te=d.auto){super(X,1),this._parameterStructures=te}get parameterStructures(){return this._parameterStructures}};r.RequestType=v;var T=class extends m{static{i(this,"RequestType1")}static{J(this,"RequestType1")}_parameterStructures;_;constructor(X,te=d.auto){super(X,1),this._parameterStructures=te}get parameterStructures(){return this._parameterStructures}};r.RequestType1=T;var C=class extends m{static{i(this,"RequestType2")}static{J(this,"RequestType2")}_;constructor(X){super(X,2)}};r.RequestType2=C;var E=class extends m{static{i(this,"RequestType3")}static{J(this,"RequestType3")}_;constructor(X){super(X,3)}};r.RequestType3=E;var S=class extends m{static{i(this,"RequestType4")}static{J(this,"RequestType4")}_;constructor(X){super(X,4)}};r.RequestType4=S;var R=class extends m{static{i(this,"RequestType5")}static{J(this,"RequestType5")}_;constructor(X){super(X,5)}};r.RequestType5=R;var L=class extends m{static{i(this,"RequestType6")}static{J(this,"RequestType6")}_;constructor(X){super(X,6)}};r.RequestType6=L;var _=class extends m{static{i(this,"RequestType7")}static{J(this,"RequestType7")}_;constructor(X){super(X,7)}};r.RequestType7=_;var I=class extends m{static{i(this,"RequestType8")}static{J(this,"RequestType8")}_;constructor(X){super(X,8)}};r.RequestType8=I;var N=class extends m{static{i(this,"RequestType9")}static{J(this,"RequestType9")}_;constructor(X){super(X,9)}};r.RequestType9=N;var B=class extends m{static{i(this,"NotificationType")}static{J(this,"NotificationType")}_parameterStructures;_;constructor(X,te=d.auto){super(X,1),this._parameterStructures=te}get parameterStructures(){return this._parameterStructures}};r.NotificationType=B;var O=class extends m{static{i(this,"NotificationType0")}static{J(this,"NotificationType0")}_;constructor(X){super(X,0)}};r.NotificationType0=O;var P=class extends m{static{i(this,"NotificationType1")}static{J(this,"NotificationType1")}_parameterStructures;_;constructor(X,te=d.auto){super(X,1),this._parameterStructures=te}get parameterStructures(){return this._parameterStructures}};r.NotificationType1=P;var $=class extends m{static{i(this,"NotificationType2")}static{J(this,"NotificationType2")}_;constructor(X){super(X,2)}};r.NotificationType2=$;var V=class extends m{static{i(this,"NotificationType3")}static{J(this,"NotificationType3")}_;constructor(X){super(X,3)}};r.NotificationType3=V;var Y=class extends m{static{i(this,"NotificationType4")}static{J(this,"NotificationType4")}_;constructor(X){super(X,4)}};r.NotificationType4=Y;var Q=class extends m{static{i(this,"NotificationType5")}static{J(this,"NotificationType5")}_;constructor(X){super(X,5)}};r.NotificationType5=Q;var q=class extends m{static{i(this,"NotificationType6")}static{J(this,"NotificationType6")}_;constructor(X){super(X,6)}};r.NotificationType6=q;var W=class extends m{static{i(this,"NotificationType7")}static{J(this,"NotificationType7")}_;constructor(X){super(X,7)}};r.NotificationType7=W;var H=class extends m{static{i(this,"NotificationType8")}static{J(this,"NotificationType8")}_;constructor(X){super(X,8)}};r.NotificationType8=H;var re=class extends m{static{i(this,"NotificationType9")}static{J(this,"NotificationType9")}_;constructor(X){super(X,9)}};r.NotificationType9=re;var Z;(function(X){function te(se){let he=se;return he&&l.string(he.method)&&(l.string(he.id)||l.number(he.id))}i(te,"isRequest"),J(te,"isRequest"),X.isRequest=te;function U(se){let he=se;return he&&l.string(he.method)&&se.id===void 0}i(U,"isNotification"),J(U,"isNotification"),X.isNotification=U;function ne(se){let he=se;return he&&(he.result!==void 0||!!he.error)&&(l.string(he.id)||l.number(he.id)||he.id===null)}i(ne,"isResponse"),J(ne,"isResponse"),X.isResponse=ne})(Z||(r.Message=Z={}))}}),M_r=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LRUCache=r.LinkedMap=r.Touch=void 0;var t;(function(l){l.None=0,l.First=1,l.AsOld=l.First,l.Last=2,l.AsNew=l.Last})(t||(r.Touch=t={}));var a=class{static{i(this,"LinkedMap")}static{J(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(l){let h=this._map.get(l);return h?h.previous?.value:void 0}after(l){let h=this._map.get(l);return h?h.next?.value:void 0}has(l){return this._map.has(l)}get(l,h=t.None){let f=this._map.get(l);if(f)return h!==t.None&&this.touch(f,h),f.value}set(l,h,f=t.None){let d=this._map.get(l);if(d)d.value=h,f!==t.None&&this.touch(d,f);else{switch(d={key:l,value:h,next:void 0,previous:void 0},f){case t.None:this.addItemLast(d);break;case t.First:this.addItemFirst(d);break;case t.Last:this.addItemLast(d);break;default:this.addItemLast(d);break}this._map.set(l,d),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){let h=this._map.get(l);if(h)return this._map.delete(l),this.removeItem(h),this._size--,h.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,h){let f=this._state,d=this._head;for(;d;){if(h?l.bind(h)(d.value,d.key,this):l(d.value,d.key,this),this._state!==f)throw new Error("LinkedMap got modified during iteration.");d=d.next}}keys(){let l=this._state,h=this._head,f={[Symbol.iterator]:()=>f,next:J(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(h){let d={value:h.key,done:!1};return h=h.next,d}else return{value:void 0,done:!0}},"next")};return f}values(){let l=this._state,h=this._head,f={[Symbol.iterator]:()=>f,next:J(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(h){let d={value:h.value,done:!1};return h=h.next,d}else return{value:void 0,done:!0}},"next")};return f}entries(){let l=this._state,h=this._head,f={[Symbol.iterator]:()=>f,next:J(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(h){let d={value:[h.key,h.value],done:!1};return h=h.next,d}else return{value:void 0,done:!0}},"next")};return f}[Symbol.iterator](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let h=this._head,f=this.size;for(;h&&f>l;)this._map.delete(h.key),h=h.next,f--;this._head=h,this._size=f,h&&(h.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{let h=l.next,f=l.previous;if(!h||!f)throw new Error("Invalid list");h.previous=f,f.next=h}l.next=void 0,l.previous=void 0,this._state++}touch(l,h){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(h!==t.First&&h!==t.Last)){if(h===t.First){if(l===this._head)return;let f=l.next,d=l.previous;l===this._tail?(d.next=void 0,this._tail=d):(f.previous=d,d.next=f),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(h===t.Last){if(l===this._tail)return;let f=l.next,d=l.previous;l===this._head?(f.previous=void 0,this._head=f):(f.previous=d,d.next=f),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){let l=[];return this.forEach((h,f)=>{l.push([f,h])}),l}fromJSON(l){this.clear();for(let[h,f]of l)this.set(h,f)}};r.LinkedMap=a;var s=class extends a{static{i(this,"LRUCache")}static{J(this,"LRUCache")}_limit;_ratio;constructor(l,h=1){super(),this._limit=l,this._ratio=Math.min(Math.max(0,h),1)}get limit(){return this._limit}set limit(l){this._limit=l,this.checkTrim()}get ratio(){return this._ratio}set ratio(l){this._ratio=Math.min(Math.max(0,l),1),this.checkTrim()}get(l,h=t.AsNew){return super.get(l,h)}peek(l){return super.get(l,t.None)}set(l,h){return super.set(l,h,t.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};r.LRUCache=s}}),Tti=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Disposable=void 0;var t;(function(a){function s(l){return{dispose:l}}i(s,"create"),J(s,"create"),a.create=s})(t||(r.Disposable=t={}))}}),nB=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t;function a(){if(t===void 0)throw new Error("No runtime abstraction layer installed");return t}i(a,"RAL"),J(a,"RAL"),(function(s){function l(h){if(h===void 0)throw new Error("No runtime abstraction layer provided");t=h}i(l,"install"),J(l,"install"),s.install=l})(a||(a={})),r.default=a}}),kae=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(r){"use strict";var t=r&&r.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(r,"__esModule",{value:!0}),r.Emitter=r.Event=void 0;var a=t(nB()),s;(function(f){let d={dispose(){}};f.None=function(){return d}})(s||(r.Event=s={}));var l=class{static{i(this,"CallbackList")}static{J(this,"CallbackList")}_callbacks;_contexts;add(f,d=null,m){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(f),this._contexts.push(d),Array.isArray(m)&&m.push({dispose:J(()=>this.remove(f,d),"dispose")})}remove(f,d=null){if(!this._callbacks)return;let m=!1;for(let b=0,v=this._callbacks.length;b<v;b++)if(this._callbacks[b]===f)if(this._contexts[b]===d){this._callbacks.splice(b,1),this._contexts.splice(b,1);return}else m=!0;if(m)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...f){if(!this._callbacks)return[];let d=[],m=this._callbacks.slice(0),b=this._contexts.slice(0);for(let v=0,T=m.length;v<T;v++)try{d.push(m[v].apply(b[v],f))}catch(C){(0,a.default)().console.error(C)}return d}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},h=class N_r{static{i(this,"_Emitter")}static{J(this,"Emitter")}_options;static _noop=J(function(){},"_noop");_event;_callbacks;constructor(d){this._options=d}get event(){return this._event||(this._event=(d,m,b)=>{this._callbacks||(this._callbacks=new l),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(d,m);let v={dispose:J(()=>{this._callbacks&&(this._callbacks.remove(d,m),v.dispose=N_r._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(b)&&b.push(v),v}),this._event}fire(d){this._callbacks&&this._callbacks.invoke.call(this._callbacks,d)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};r.Emitter=h}}),zot=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(C,E,S,R){R===void 0&&(R=S);var L=Object.getOwnPropertyDescriptor(E,S);(!L||("get"in L?!E.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:J(function(){return E[S]},"get")}),Object.defineProperty(C,R,L)}):(function(C,E,S,R){R===void 0&&(R=S),C[R]=E[S]})),a=r&&r.__setModuleDefault||(Object.create?(function(C,E){Object.defineProperty(C,"default",{enumerable:!0,value:E})}):function(C,E){C.default=E}),s=r&&r.__importStar||(function(){var C=J(function(E){return C=Object.getOwnPropertyNames||function(S){var R=[];for(var L in S)Object.prototype.hasOwnProperty.call(S,L)&&(R[R.length]=L);return R},C(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var S={};if(E!=null)for(var R=C(E),L=0;L<R.length;L++)R[L]!=="default"&&t(S,E,R[L]);return a(S,E),S}})(),l=r&&r.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationTokenSource=r.CancellationToken=void 0;var h=l(nB()),f=s(Tae()),d=kae(),m;(function(C){C.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:d.Event.None}),C.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:d.Event.None});function E(S){let R=S;return R&&(R===C.None||R===C.Cancelled||f.boolean(R.isCancellationRequested)&&!!R.onCancellationRequested)}i(E,"is"),J(E,"is"),C.is=E})(m||(r.CancellationToken=m={}));var b=Object.freeze(function(C,E){let S=(0,h.default)().timer.setTimeout(C.bind(E),0);return{dispose(){S.dispose()}}}),v=class{static{i(this,"MutableToken")}static{J(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?b:(this._emitter||(this._emitter=new d.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},T=class{static{i(this,"CancellationTokenSource2")}static{J(this,"CancellationTokenSource")}_token;get token(){return this._token||(this._token=new v),this._token}cancel(){this._token?this._token.cancel():this._token=m.Cancelled}dispose(){this._token?this._token instanceof v&&this._token.dispose():this._token=m.None}};r.CancellationTokenSource=T}}),kti=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SharedArrayReceiverStrategy=r.SharedArraySenderStrategy=void 0;var t=zot(),a;(function(d){d.Continue=0,d.Cancelled=1})(a||(a={}));var s=class{static{i(this,"SharedArraySenderStrategy")}static{J(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(d){if(d.id===null)return;let m=new SharedArrayBuffer(4),b=new Int32Array(m,0,1);b[0]=a.Continue,this.buffers.set(d.id,m),d.$cancellationData=m}async sendCancellation(d,m){let b=this.buffers.get(m);if(b===void 0)return;let v=new Int32Array(b,0,1);Atomics.store(v,0,a.Cancelled)}cleanup(d){this.buffers.delete(d)}dispose(){this.buffers.clear()}};r.SharedArraySenderStrategy=s;var l=class{static{i(this,"SharedArrayBufferCancellationToken")}static{J(this,"SharedArrayBufferCancellationToken")}data;constructor(d){this.data=new Int32Array(d,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===a.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},h=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}static{J(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(d){this.token=new l(d)}cancel(){}dispose(){}},f=class{static{i(this,"SharedArrayReceiverStrategy")}static{J(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(d){let m=d.$cancellationData;return m===void 0?new t.CancellationTokenSource:new h(m)}};r.SharedArrayReceiverStrategy=f}}),O_r=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(r){"use strict";var t=r&&r.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(r,"__esModule",{value:!0}),r.Semaphore=void 0;var a=t(nB()),s=class{static{i(this,"Semaphore")}static{J(this,"Semaphore")}_capacity;_active;_waiting;constructor(l=1){if(l<=0)throw new Error("Capacity must be greater than 0");this._capacity=l,this._active=0,this._waiting=[]}lock(l){return new Promise((h,f)=>{this._waiting.push({thunk:l,resolve:h,reject:f}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,a.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let l=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{let h=l.thunk();h instanceof Promise?h.then(f=>{this._active--,l.resolve(f),this.runNext()},f=>{this._active--,l.reject(f),this.runNext()}):(this._active--,l.resolve(h),this.runNext())}catch(h){this._active--,l.reject(h),this.runNext()}}};r.Semaphore=s}}),Cti=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(E,S,R,L){L===void 0&&(L=R);var _=Object.getOwnPropertyDescriptor(S,R);(!_||("get"in _?!S.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:J(function(){return S[R]},"get")}),Object.defineProperty(E,L,_)}):(function(E,S,R,L){L===void 0&&(L=R),E[L]=S[R]})),a=r&&r.__setModuleDefault||(Object.create?(function(E,S){Object.defineProperty(E,"default",{enumerable:!0,value:S})}):function(E,S){E.default=S}),s=r&&r.__importStar||(function(){var E=J(function(S){return E=Object.getOwnPropertyNames||function(R){var L=[];for(var _ in R)Object.prototype.hasOwnProperty.call(R,_)&&(L[L.length]=_);return L},E(S)},"ownKeys");return function(S){if(S&&S.__esModule)return S;var R={};if(S!=null)for(var L=E(S),_=0;_<L.length;_++)L[_]!=="default"&&t(R,S,L[_]);return a(R,S),R}})(),l=r&&r.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(r,"__esModule",{value:!0}),r.ReadableStreamMessageReader=r.AbstractMessageReader=r.MessageReader=void 0;var h=l(nB()),f=s(Tae()),d=kae(),m=O_r(),b;(function(E){function S(R){let L=R;return L&&f.func(L.listen)&&f.func(L.dispose)&&f.func(L.onError)&&f.func(L.onClose)&&f.func(L.onPartialMessage)}i(S,"is"),J(S,"is"),E.is=S})(b||(r.MessageReader=b={}));var v=class{static{i(this,"AbstractMessageReader")}static{J(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new d.Emitter,this.closeEmitter=new d.Emitter,this.partialMessageEmitter=new d.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(E){this.errorEmitter.fire(this.asError(E))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(E){this.partialMessageEmitter.fire(E)}asError(E){return E instanceof Error?E:new Error(`Reader received error. Reason: ${f.string(E.message)?E.message:"unknown"}`)}};r.AbstractMessageReader=v;var T;(function(E){function S(R){let L,_,I,N=new Map,B,O=new Map;if(R===void 0||typeof R=="string")L=R??"utf-8";else{if(L=R.charset??"utf-8",R.contentDecoder!==void 0&&(I=R.contentDecoder,N.set(I.name,I)),R.contentDecoders!==void 0)for(let P of R.contentDecoders)N.set(P.name,P);if(R.contentTypeDecoder!==void 0&&(B=R.contentTypeDecoder,O.set(B.name,B)),R.contentTypeDecoders!==void 0)for(let P of R.contentTypeDecoders)O.set(P.name,P)}return B===void 0&&(B=(0,h.default)().applicationJson.decoder,O.set(B.name,B)),{charset:L,contentDecoder:I,contentDecoders:N,contentTypeDecoder:B,contentTypeDecoders:O}}i(S,"fromOptions"),J(S,"fromOptions"),E.fromOptions=S})(T||(T={}));var C=class extends v{static{i(this,"ReadableStreamMessageReader")}static{J(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(E,S){super(),this.readable=E,this.options=T.fromOptions(S),this.buffer=(0,h.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new m.Semaphore(1)}set partialMessageTimeout(E){this._partialMessageTimeout=E}get partialMessageTimeout(){return this._partialMessageTimeout}listen(E){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=E;let S=this.readable.onData(R=>{this.onData(R)});return this.readable.onError(R=>this.fireError(R)),this.readable.onClose(()=>this.fireClose()),S}onData(E){try{for(this.buffer.append(E);;){if(this.nextMessageLength===-1){let R=this.buffer.tryReadHeaders(!0);if(!R)return;let L=R.get("content-length");if(!L){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
${JSON.stringify(Object.fromEntries(R))}`));return}let _=parseInt(L);if(isNaN(_)){this.fireError(new Error(`Content-Length value must be a number. Got ${L}`));return}this.nextMessageLength=_}let S=this.buffer.tryReadBody(this.nextMessageLength);if(S===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let R=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(S):S,L=await this.options.contentTypeDecoder.decode(R,this.options);this.callback(L)}).catch(R=>{this.fireError(R)})}}catch(S){this.fireError(S)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,h.default)().timer.setTimeout((E,S)=>{this.partialMessageTimer=void 0,E===this.messageToken&&(this.firePartialMessage({messageToken:E,waitingTime:S}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};r.ReadableStreamMessageReader=C}}),Eti=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(R,L,_,I){I===void 0&&(I=_);var N=Object.getOwnPropertyDescriptor(L,_);(!N||("get"in N?!L.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:J(function(){return L[_]},"get")}),Object.defineProperty(R,I,N)}):(function(R,L,_,I){I===void 0&&(I=_),R[I]=L[_]})),a=r&&r.__setModuleDefault||(Object.create?(function(R,L){Object.defineProperty(R,"default",{enumerable:!0,value:L})}):function(R,L){R.default=L}),s=r&&r.__importStar||(function(){var R=J(function(L){return R=Object.getOwnPropertyNames||function(_){var I=[];for(var N in _)Object.prototype.hasOwnProperty.call(_,N)&&(I[I.length]=N);return I},R(L)},"ownKeys");return function(L){if(L&&L.__esModule)return L;var _={};if(L!=null)for(var I=R(L),N=0;N<I.length;N++)I[N]!=="default"&&t(_,L,I[N]);return a(_,L),_}})(),l=r&&r.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(r,"__esModule",{value:!0}),r.WriteableStreamMessageWriter=r.AbstractMessageWriter=r.MessageWriter=void 0;var h=l(nB()),f=s(Tae()),d=O_r(),m=kae(),b="Content-Length: ",v=`\r
|
|
`,T;(function(R){function L(_){let I=_;return I&&f.func(I.dispose)&&f.func(I.onClose)&&f.func(I.onError)&&f.func(I.write)}i(L,"is"),J(L,"is"),R.is=L})(T||(r.MessageWriter=T={}));var C=class{static{i(this,"AbstractMessageWriter")}static{J(this,"AbstractMessageWriter")}errorEmitter;closeEmitter;constructor(){this.errorEmitter=new m.Emitter,this.closeEmitter=new m.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(R,L,_){this.errorEmitter.fire([this.asError(R),L,_])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(R){return R instanceof Error?R:new Error(`Writer received error. Reason: ${f.string(R.message)?R.message:"unknown"}`)}};r.AbstractMessageWriter=C;var E;(function(R){function L(_){return _===void 0||typeof _=="string"?{charset:_??"utf-8",contentTypeEncoder:(0,h.default)().applicationJson.encoder}:{charset:_.charset??"utf-8",contentEncoder:_.contentEncoder,contentTypeEncoder:_.contentTypeEncoder??(0,h.default)().applicationJson.encoder}}i(L,"fromOptions"),J(L,"fromOptions"),R.fromOptions=L})(E||(E={}));var S=class extends C{static{i(this,"WriteableStreamMessageWriter")}static{J(this,"WriteableStreamMessageWriter")}writable;options;errorCount;writeSemaphore;constructor(R,L){super(),this.writable=R,this.options=E.fromOptions(L),this.errorCount=0,this.writeSemaphore=new d.Semaphore(1),this.writable.onError(_=>this.fireError(_)),this.writable.onClose(()=>this.fireClose())}async write(R){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(R,this.options).then(_=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(_):_).then(_=>{let I=[];return I.push(b,_.byteLength.toString(),v),I.push(v),this.doWrite(R,I,_)},_=>{throw this.fireError(_),_}))}async doWrite(R,L,_){try{return await this.writable.write(L.join(""),"ascii"),this.writable.write(_)}catch(I){return this.handleError(I,R),Promise.reject(I)}}handleError(R,L){this.errorCount++,this.fireError(R,L,this.errorCount)}end(){this.writable.end()}};r.WriteableStreamMessageWriter=S}}),Sti=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AbstractMessageBuffer=void 0;var t=13,a=10,s=`\r
|
|
`,l=class{static{i(this,"AbstractMessageBuffer")}static{J(this,"AbstractMessageBuffer")}_encoding;_chunks;_totalLength;constructor(h="utf-8"){this._encoding=h,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(h){let f=typeof h=="string"?this.fromString(h,this._encoding):h;this._chunks.push(f),this._totalLength+=f.byteLength}tryReadHeaders(h=!1){if(this._chunks.length===0)return;let f=0,d=0,m=0,b=0;e:for(;d<this._chunks.length;){let E=this._chunks[d];for(m=0;m<E.length;){switch(E[m]){case t:switch(f){case 0:f=1;break;case 2:f=3;break;default:f=0}break;case a:switch(f){case 1:f=2;break;case 3:f=4,m++;break e;default:f=0}break;default:f=0}m++}b+=E.byteLength,d++}if(f!==4)return;let v=this._read(b+m),T=new Map,C=this.toString(v,"ascii").split(s);if(C.length<2)return T;for(let E=0;E<C.length-2;E++){let S=C[E],R=S.indexOf(":");if(R===-1)throw new Error(`Message header must separate key and value using ':'
|
|
${S}`);let L=S.substr(0,R),_=S.substr(R+1).trim();T.set(h?L.toLowerCase():L,_)}return T}tryReadBody(h){if(!(this._totalLength<h))return this._read(h)}get numberOfBytes(){return this._totalLength}_read(h){if(h===0)return this.emptyBuffer();if(h>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===h){let b=this._chunks[0];return this._chunks.shift(),this._totalLength-=h,this.asNative(b)}if(this._chunks[0].byteLength>h){let b=this._chunks[0],v=this.asNative(b,h);return this._chunks[0]=b.slice(h),this._totalLength-=h,v}let f=this.allocNative(h),d=0,m=0;for(;h>0;){let b=this._chunks[m];if(b.byteLength>h){let v=b.slice(0,h);f.set(v,d),d+=h,this._chunks[m]=b.slice(h),this._totalLength-=h,h-=h}else f.set(b,d),d+=b.byteLength,this._chunks.shift(),this._totalLength-=b.byteLength,h-=b.byteLength}return f}};r.AbstractMessageBuffer=l}}),Ati=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/connection.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(te,U,ne,se){se===void 0&&(se=ne);var he=Object.getOwnPropertyDescriptor(U,ne);(!he||("get"in he?!U.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:J(function(){return U[ne]},"get")}),Object.defineProperty(te,se,he)}):(function(te,U,ne,se){se===void 0&&(se=ne),te[se]=U[ne]})),a=r&&r.__setModuleDefault||(Object.create?(function(te,U){Object.defineProperty(te,"default",{enumerable:!0,value:U})}):function(te,U){te.default=U}),s=r&&r.__importStar||(function(){var te=J(function(U){return te=Object.getOwnPropertyNames||function(ne){var se=[];for(var he in ne)Object.prototype.hasOwnProperty.call(ne,he)&&(se[se.length]=he);return se},te(U)},"ownKeys");return function(U){if(U&&U.__esModule)return U;var ne={};if(U!=null)for(var se=te(U),he=0;he<se.length;he++)se[he]!=="default"&&t(ne,U,se[he]);return a(ne,U),ne}})(),l=r&&r.__importDefault||function(te){return te&&te.__esModule?te:{default:te}};Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectionOptions=r.MessageStrategy=r.CancellationStrategy=r.CancellationSenderStrategy=r.CancellationReceiverStrategy=r.RequestCancellationReceiverStrategy=r.IdCancellationReceiverStrategy=r.ConnectionStrategy=r.ConnectionError=r.ConnectionErrors=r.LogTraceNotification=r.SetTraceNotification=r.TraceFormat=r.TraceValues=r.TraceValue=r.Trace=r.NullLogger=r.ProgressType=r.ProgressToken=void 0,r.createMessageConnection=X;var h=l(nB()),f=s(Tae()),d=D_r(),m=M_r(),b=kae(),v=zot(),T;(function(te){te.type=new d.NotificationType("$/cancelRequest")})(T||(T={}));var C;(function(te){function U(ne){return typeof ne=="string"||typeof ne=="number"}i(U,"is"),J(U,"is"),te.is=U})(C||(r.ProgressToken=C={}));var E;(function(te){te.type=new d.NotificationType("$/progress")})(E||(E={}));var S=class{static{i(this,"ProgressType")}static{J(this,"ProgressType")}__;_pr;constructor(){}};r.ProgressType=S;var R;(function(te){function U(ne){return f.func(ne)}i(U,"is"),J(U,"is"),te.is=U})(R||(R={})),r.NullLogger=Object.freeze({error:J(()=>{},"error"),warn:J(()=>{},"warn"),info:J(()=>{},"info"),log:J(()=>{},"log")});var L;(function(te){te[te.Off=0]="Off",te[te.Messages=1]="Messages",te[te.Compact=2]="Compact",te[te.Verbose=3]="Verbose"})(L||(r.Trace=L={}));var _;(function(te){te.Off="off",te.Messages="messages",te.Compact="compact",te.Verbose="verbose"})(_||(r.TraceValue=_={})),r.TraceValues=_,(function(te){function U(se){if(!f.string(se))return te.Off;switch(se=se.toLowerCase(),se){case"off":return te.Off;case"messages":return te.Messages;case"compact":return te.Compact;case"verbose":return te.Verbose;default:return te.Off}}i(U,"fromString"),J(U,"fromString"),te.fromString=U;function ne(se){switch(se){case te.Off:return"off";case te.Messages:return"messages";case te.Compact:return"compact";case te.Verbose:return"verbose";default:return"off"}}i(ne,"toString3"),J(ne,"toString"),te.toString=ne})(L||(r.Trace=L={}));var I;(function(te){te.Text="text",te.JSON="json"})(I||(r.TraceFormat=I={})),(function(te){function U(ne){return f.string(ne)?(ne=ne.toLowerCase(),ne==="json"?te.JSON:te.Text):te.Text}i(U,"fromString"),J(U,"fromString"),te.fromString=U})(I||(r.TraceFormat=I={}));var N;(function(te){te.type=new d.NotificationType("$/setTrace")})(N||(r.SetTraceNotification=N={}));var B;(function(te){te.type=new d.NotificationType("$/logTrace")})(B||(r.LogTraceNotification=B={}));var O;(function(te){te[te.Closed=1]="Closed",te[te.Disposed=2]="Disposed",te[te.AlreadyListening=3]="AlreadyListening"})(O||(r.ConnectionErrors=O={}));var P=class P_r extends Error{static{i(this,"_ConnectionError")}static{J(this,"ConnectionError")}code;constructor(U,ne){super(ne),this.code=U,Object.setPrototypeOf(this,P_r.prototype)}};r.ConnectionError=P;var $;(function(te){function U(ne){let se=ne;return se&&f.func(se.cancelUndispatched)}i(U,"is"),J(U,"is"),te.is=U})($||(r.ConnectionStrategy=$={}));var V;(function(te){function U(ne){let se=ne;return se&&(se.kind===void 0||se.kind==="id")&&f.func(se.createCancellationTokenSource)&&(se.dispose===void 0||f.func(se.dispose))}i(U,"is"),J(U,"is"),te.is=U})(V||(r.IdCancellationReceiverStrategy=V={}));var Y;(function(te){function U(ne){let se=ne;return se&&se.kind==="request"&&f.func(se.createCancellationTokenSource)&&(se.dispose===void 0||f.func(se.dispose))}i(U,"is"),J(U,"is"),te.is=U})(Y||(r.RequestCancellationReceiverStrategy=Y={}));var Q;(function(te){te.Message=Object.freeze({createCancellationTokenSource(ne){return new v.CancellationTokenSource}});function U(ne){return V.is(ne)||Y.is(ne)}i(U,"is"),J(U,"is"),te.is=U})(Q||(r.CancellationReceiverStrategy=Q={}));var q;(function(te){te.Message=Object.freeze({sendCancellation(ne,se){return ne.sendNotification(T.type,{id:se})},cleanup(ne){}});function U(ne){let se=ne;return se&&f.func(se.sendCancellation)&&f.func(se.cleanup)}i(U,"is"),J(U,"is"),te.is=U})(q||(r.CancellationSenderStrategy=q={}));var W;(function(te){te.Message=Object.freeze({receiver:Q.Message,sender:q.Message});function U(ne){let se=ne;return se&&Q.is(se.receiver)&&q.is(se.sender)}i(U,"is"),J(U,"is"),te.is=U})(W||(r.CancellationStrategy=W={}));var H;(function(te){function U(ne){let se=ne;return se&&f.func(se.handleMessage)}i(U,"is"),J(U,"is"),te.is=U})(H||(r.MessageStrategy=H={}));var re;(function(te){function U(ne){let se=ne;return se&&(W.is(se.cancellationStrategy)||$.is(se.connectionStrategy)||H.is(se.messageStrategy)||f.number(se.maxParallelism))}i(U,"is"),J(U,"is"),te.is=U})(re||(r.ConnectionOptions=re={}));var Z;(function(te){te[te.New=1]="New",te[te.Listening=2]="Listening",te[te.Closed=3]="Closed",te[te.Disposed=4]="Disposed"})(Z||(Z={}));function X(te,U,ne,se){let he=ne!==void 0?ne:r.NullLogger,le=0,pe=0,ge=0,we="2.0",Ae=se?.maxParallelism??-1,ve=0,Ie,De=new Map,Be,Fe=new Map,ze=new Map,vt,lt=new m.LinkedMap,Ft=new Map,pr=new Set,tr=new Map,Mt=L.Off,ot=I.Text,it,mt=Z.New,Rt=new b.Emitter,pt=new b.Emitter,gt=new b.Emitter,ut=new b.Emitter,Yt=new b.Emitter,Ye=se&&se.cancellationStrategy?se.cancellationStrategy:W.Message;function Oe(ct){}i(Oe,"cancelUndispatched"),J(Oe,"cancelUndispatched");function K(){return mt===Z.Listening}i(K,"isListening"),J(K,"isListening");function Te(){return mt===Z.Closed}i(Te,"isClosed"),J(Te,"isClosed");function ce(){return mt===Z.Disposed}i(ce,"isDisposed"),J(ce,"isDisposed");function Re(){(mt===Z.New||mt===Z.Listening)&&(mt=Z.Closed,pt.fire(void 0))}i(Re,"closeHandler"),J(Re,"closeHandler");function me(ct){Rt.fire([ct,void 0,void 0])}i(me,"readErrorHandler"),J(me,"readErrorHandler");function be(ct){Rt.fire(ct)}i(be,"writeErrorHandler"),J(be,"writeErrorHandler"),te.onClose(Re),te.onError(me),U.onClose(Re),U.onError(be);function ke(ct){if(ct===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+ct.toString()}i(ke,"createRequestQueueKey"),J(ke,"createRequestQueueKey");function We(ct){return ct===null?"res-unknown-"+(++ge).toString():"res-"+ct.toString()}i(We,"createResponseQueueKey"),J(We,"createResponseQueueKey");function Ue(){return"not-"+(++pe).toString()}i(Ue,"createNotificationQueueKey"),J(Ue,"createNotificationQueueKey");function rt(ct,dr){d.Message.isRequest(dr)?ct.set(ke(dr.id),dr):d.Message.isResponse(dr)?Ae===-1?ct.set(We(dr.id),dr):$t(dr):ct.set(Ue(),dr)}i(rt,"addMessageToQueue"),J(rt,"addMessageToQueue");function nt(){vt||lt.size===0||Ae!==-1&&ve>=Ae||(vt=(0,h.default)().timer.setImmediate(async()=>{if(vt=void 0,lt.size===0||Ae!==-1&&ve>=Ae)return;let ct=lt.shift(),dr;try{ve++;let Kr=se?.messageStrategy;H.is(Kr)?dr=Kr.handleMessage(ct,Ot):dr=Ot(ct)}catch(Kr){he.error(`Processing message queue failed: ${Kr.toString()}`)}finally{dr instanceof Promise?dr.then(()=>{ve--,nt()}).catch(Kr=>{he.error(`Processing message queue failed: ${Kr.toString()}`)}):ve--,nt()}}))}i(nt,"triggerMessageQueue"),J(nt,"triggerMessageQueue");async function Ot(ct){return d.Message.isRequest(ct)?Qt(ct):d.Message.isNotification(ct)?qt(ct):d.Message.isResponse(ct)?$t(ct):Gt(ct)}i(Ot,"handleMessage"),J(Ot,"handleMessage");let ft=J(ct=>{try{if(d.Message.isNotification(ct)&&ct.method===T.type.method){let dr=ct.params.id,Kr=ke(dr),pn=lt.get(Kr);if(d.Message.isRequest(pn)){let Hs=se?.connectionStrategy,Ki=Hs&&Hs.cancelUndispatched?Hs.cancelUndispatched(pn,Oe):void 0;if(Ki&&(Ki.error!==void 0||Ki.result!==void 0)){lt.delete(Kr),tr.delete(dr),Ki.id=pn.id,$n(Ki,ct.method,Date.now()),U.write(Ki).catch(()=>he.error("Sending response for canceled message failed."));return}}let Bn=tr.get(dr);if(Bn!==void 0){Bn.cancel(),An(ct);return}else pr.add(dr)}rt(lt,ct)}finally{nt()}},"callback");async function Qt(ct){if(ce())return Promise.resolve();function dr(so,js,ls){let Ba={jsonrpc:we,id:ct.id};return so instanceof d.ResponseError?Ba.error=so.toJson():Ba.result=so===void 0?null:so,$n(Ba,js,ls),U.write(Ba)}i(dr,"reply"),J(dr,"reply");function Kr(so,js,ls){let Ba={jsonrpc:we,id:ct.id,error:so.toJson()};return $n(Ba,js,ls),U.write(Ba)}i(Kr,"replyError"),J(Kr,"replyError"),Ut(ct);let pn=De.get(ct.method),Bn,Hs;pn&&(Bn=pn.type,Hs=pn.handler);let Ki=Date.now();if(Hs||Ie){let so=ct.id??String(Date.now()),js=V.is(Ye.receiver)?Ye.receiver.createCancellationTokenSource(so):Ye.receiver.createCancellationTokenSource(ct);ct.id!==null&&pr.has(ct.id)&&js.cancel(),ct.id!==null&&tr.set(so,js);try{let ls;if(Hs)if(ct.params===void 0){if(Bn!==void 0&&Bn.numberOfParams!==0)return Kr(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${ct.method} defines ${Bn.numberOfParams} params but received none.`),ct.method,Ki);ls=Hs(js.token)}else if(Array.isArray(ct.params)){if(Bn!==void 0&&Bn.parameterStructures===d.ParameterStructures.byName)return Kr(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${ct.method} defines parameters by name but received parameters by position`),ct.method,Ki);ls=Hs(...ct.params,js.token)}else{if(Bn!==void 0&&Bn.parameterStructures===d.ParameterStructures.byPosition)return Kr(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${ct.method} defines parameters by position but received parameters by name`),ct.method,Ki);ls=Hs(ct.params,js.token)}else Ie&&(ls=Ie(ct.method,ct.params,js.token));let Ba=await ls;await dr(Ba,ct.method,Ki)}catch(ls){ls instanceof d.ResponseError?await dr(ls,ct.method,Ki):ls&&f.string(ls.message)?await Kr(new d.ResponseError(d.ErrorCodes.InternalError,`Request ${ct.method} failed with message: ${ls.message}`),ct.method,Ki):await Kr(new d.ResponseError(d.ErrorCodes.InternalError,`Request ${ct.method} failed unexpectedly without providing any details.`),ct.method,Ki)}finally{tr.delete(so)}}else await Kr(new d.ResponseError(d.ErrorCodes.MethodNotFound,`Unhandled method ${ct.method}`),ct.method,Ki)}i(Qt,"handleRequest"),J(Qt,"handleRequest");function $t(ct){if(!ce())if(ct.id===null)ct.error?he.error(`Received response message without id: Error is:
|
|
${JSON.stringify(ct.error,void 0,4)}`):he.error("Received response message without id. No further error information provided.");else{let dr=ct.id,Kr=Ft.get(dr);if(Un(ct,Kr),Kr!==void 0){Ft.delete(dr);try{if(ct.error){let pn=ct.error;Kr.reject(new d.ResponseError(pn.code,pn.message,pn.data))}else if(ct.result!==void 0)Kr.resolve(ct.result);else throw new Error("Should never happen.")}catch(pn){pn.message?he.error(`Response handler '${Kr.method}' failed with message: ${pn.message}`):he.error(`Response handler '${Kr.method}' failed unexpectedly.`)}}}}i($t,"handleResponse"),J($t,"handleResponse");async function qt(ct){if(ce())return;let dr,Kr;if(ct.method===T.type.method){let pn=ct.params.id;pr.delete(pn),An(ct);return}else{let pn=Fe.get(ct.method);pn&&(Kr=pn.handler,dr=pn.type)}if(Kr||Be)try{if(An(ct),Kr)if(ct.params===void 0)dr!==void 0&&dr.numberOfParams!==0&&dr.parameterStructures!==d.ParameterStructures.byName&&he.error(`Notification ${ct.method} defines ${dr.numberOfParams} params but received none.`),await Kr();else if(Array.isArray(ct.params)){let pn=ct.params;ct.method===E.type.method&&pn.length===2&&C.is(pn[0])?await Kr({token:pn[0],value:pn[1]}):(dr!==void 0&&(dr.parameterStructures===d.ParameterStructures.byName&&he.error(`Notification ${ct.method} defines parameters by name but received parameters by position`),dr.numberOfParams!==ct.params.length&&he.error(`Notification ${ct.method} defines ${dr.numberOfParams} params but received ${pn.length} arguments`)),await Kr(...pn))}else dr!==void 0&&dr.parameterStructures===d.ParameterStructures.byPosition&&he.error(`Notification ${ct.method} defines parameters by position but received parameters by name`),await Kr(ct.params);else Be&&await Be(ct.method,ct.params)}catch(pn){pn.message?he.error(`Notification handler '${ct.method}' failed with message: ${pn.message}`):he.error(`Notification handler '${ct.method}' failed unexpectedly.`)}else gt.fire(ct)}i(qt,"handleNotification"),J(qt,"handleNotification");function Gt(ct){if(!ct){he.error("Received empty message.");return}he.error(`Received message which is neither a response nor a notification message:
|
|
${JSON.stringify(ct,null,4)}`);let dr=ct;if(f.string(dr.id)||f.number(dr.id)){let Kr=dr.id,pn=Ft.get(Kr);pn&&pn.reject(new Error("The received response has neither a result nor an error property."))}}i(Gt,"handleInvalidMessage"),J(Gt,"handleInvalidMessage");function jt(ct){if(ct!=null)switch(Mt){case L.Verbose:return JSON.stringify(ct,null,4);case L.Compact:return JSON.stringify(ct);default:return}}i(jt,"stringifyTrace"),J(jt,"stringifyTrace");function Zr(ct){if(!(Mt===L.Off||!it))if(ot===I.Text){let dr;(Mt===L.Verbose||Mt===L.Compact)&&ct.params&&(dr=`Params: ${jt(ct.params)}`),it.log(`Sending request '${ct.method} - (${ct.id})'.`,dr)}else En("send-request",ct)}i(Zr,"traceSendingRequest"),J(Zr,"traceSendingRequest");function yt(ct){if(!(Mt===L.Off||!it))if(ot===I.Text){let dr;(Mt===L.Verbose||Mt===L.Compact)&&(ct.params?dr=`Params: ${jt(ct.params)}`:dr="No parameters provided."),it.log(`Sending notification '${ct.method}'.`,dr)}else En("send-notification",ct)}i(yt,"traceSendingNotification"),J(yt,"traceSendingNotification");function $n(ct,dr,Kr){if(!(Mt===L.Off||!it))if(ot===I.Text){let pn;(Mt===L.Verbose||Mt===L.Compact)&&(ct.error&&ct.error.data?pn=`Error data: ${jt(ct.error.data)}`:ct.result?pn=`Result: ${jt(ct.result)}`:ct.error===void 0&&(pn="No result returned."));let Bn=ct.error?` Request failed: ${ct.error.message} (${ct.error.code}).`:"";it.log(`Sending response '${dr} - (${ct.id})'. Processing request took ${Date.now()-Kr}ms.${Bn}`,pn)}else En("send-response",ct)}i($n,"traceSendingResponse"),J($n,"traceSendingResponse");function Ut(ct){if(!(Mt===L.Off||!it))if(ot===I.Text){let dr;(Mt===L.Verbose||Mt===L.Compact)&&ct.params&&(dr=`Params: ${jt(ct.params)}`),it.log(`Received request '${ct.method} - (${ct.id})'.`,dr)}else En("receive-request",ct)}i(Ut,"traceReceivedRequest"),J(Ut,"traceReceivedRequest");function An(ct){if(!(Mt===L.Off||!it||ct.method===B.type.method))if(ot===I.Text){let dr;(Mt===L.Verbose||Mt===L.Compact)&&(ct.params?dr=`Params: ${jt(ct.params)}`:dr="No parameters provided."),it.log(`Received notification '${ct.method}'.`,dr)}else En("receive-notification",ct)}i(An,"traceReceivedNotification"),J(An,"traceReceivedNotification");function Un(ct,dr){if(!(Mt===L.Off||!it))if(ot===I.Text){let Kr;if((Mt===L.Verbose||Mt===L.Compact)&&(ct.error&&ct.error.data?Kr=`Error data: ${jt(ct.error.data)}`:ct.result?Kr=`Result: ${jt(ct.result)}`:ct.error===void 0&&(Kr="No result returned.")),dr){let pn=ct.error?` Request failed: ${ct.error.message} (${ct.error.code}).`:"";it.log(`Received response '${dr.method} - (${ct.id})' in ${Date.now()-dr.timerStart}ms.${pn}`,Kr)}else it.log(`Received response ${ct.id} without active response promise.`,Kr)}else En("receive-response",ct)}i(Un,"traceReceivedResponse"),J(Un,"traceReceivedResponse");function En(ct,dr){if(!it||Mt===L.Off)return;let Kr={isLSPMessage:!0,type:ct,message:dr,timestamp:Date.now()};it.log(Kr)}i(En,"logLSPMessage"),J(En,"logLSPMessage");function ai(){if(Te())throw new P(O.Closed,"Connection is closed.");if(ce())throw new P(O.Disposed,"Connection is disposed.")}i(ai,"throwIfClosedOrDisposed"),J(ai,"throwIfClosedOrDisposed");function Gn(){if(K())throw new P(O.AlreadyListening,"Connection is already listening")}i(Gn,"throwIfListening"),J(Gn,"throwIfListening");function ui(){if(!K())throw new Error("Call listen() first.")}i(ui,"throwIfNotListening"),J(ui,"throwIfNotListening");function Tn(ct){return ct===void 0?null:ct}i(Tn,"undefinedToNull"),J(Tn,"undefinedToNull");function Wi(ct){if(ct!==null)return ct}i(Wi,"nullToUndefined"),J(Wi,"nullToUndefined");function Pa(ct){return ct!=null&&!Array.isArray(ct)&&typeof ct=="object"}i(Pa,"isNamedParam"),J(Pa,"isNamedParam");function qe(ct,dr){switch(ct){case d.ParameterStructures.auto:return Pa(dr)?Wi(dr):[Tn(dr)];case d.ParameterStructures.byName:if(!Pa(dr))throw new Error("Received parameters by name but param is not an object literal.");return Wi(dr);case d.ParameterStructures.byPosition:return[Tn(dr)];default:throw new Error(`Unknown parameter structure ${ct.toString()}`)}}i(qe,"computeSingleParam"),J(qe,"computeSingleParam");function Rn(ct,dr){let Kr,pn=ct.numberOfParams;switch(pn){case 0:Kr=void 0;break;case 1:Kr=qe(ct.parameterStructures,dr[0]);break;default:Kr=[];for(let Bn=0;Bn<dr.length&&Bn<pn;Bn++)Kr.push(Tn(dr[Bn]));if(dr.length<pn)for(let Bn=dr.length;Bn<pn;Bn++)Kr.push(null);break}return Kr}i(Rn,"computeMessageParams"),J(Rn,"computeMessageParams");let Mn={sendNotification:J((ct,...dr)=>{ai();let Kr,pn;if(f.string(ct)){Kr=ct;let Hs=dr[0],Ki=0,so=d.ParameterStructures.auto;d.ParameterStructures.is(Hs)&&(Ki=1,so=Hs);let js=dr.length,ls=js-Ki;switch(ls){case 0:pn=void 0;break;case 1:pn=qe(so,dr[Ki]);break;default:if(so===d.ParameterStructures.byName)throw new Error(`Received ${ls} parameters for 'by Name' notification parameter structure.`);pn=dr.slice(Ki,js).map(Ba=>Tn(Ba));break}}else{let Hs=dr;Kr=ct.method,pn=Rn(ct,Hs)}let Bn={jsonrpc:we,method:Kr,params:pn};return yt(Bn),U.write(Bn).catch(Hs=>{throw he.error("Sending notification failed."),Hs})},"sendNotification"),onNotification:J((ct,dr)=>{ai();let Kr;return f.func(ct)?Be=ct:dr&&(f.string(ct)?(Kr=ct,Fe.set(ct,{type:void 0,handler:dr})):(Kr=ct.method,Fe.set(ct.method,{type:ct,handler:dr}))),{dispose:J(()=>{Kr!==void 0?Fe.get(Kr)?.handler===dr&&Fe.delete(Kr):Be===ct&&(Be=void 0)},"dispose")}},"onNotification"),onProgress:J((ct,dr,Kr)=>{if(ze.has(dr))throw new Error(`Progress handler for token ${dr} already registered`);return ze.set(dr,Kr),{dispose:J(()=>{ze.get(dr)===Kr&&ze.delete(dr)},"dispose")}},"onProgress"),sendProgress:J((ct,dr,Kr)=>Mn.sendNotification(E.type,{token:dr,value:Kr}),"sendProgress"),onUnhandledProgress:ut.event,sendRequest:J((ct,...dr)=>{ai(),ui();function Kr(Ba,cs){let ln=Ye.sender.sendCancellation(Ba,cs);ln===void 0?he.log(`Received no promise from cancellation strategy when cancelling id ${cs}`):ln.catch(()=>{he.log(`Sending cancellation messages for id ${cs} failed.`)})}i(Kr,"sendCancellation"),J(Kr,"sendCancellation");let pn,Bn,Hs;if(f.string(ct)){pn=ct;let Ba=dr[0],cs=dr[dr.length-1],ln=0,Vr=d.ParameterStructures.auto;d.ParameterStructures.is(Ba)&&(ln=1,Vr=Ba);let gn=dr.length;v.CancellationToken.is(cs)&&(gn=gn-1,Hs=cs);let xi=gn-ln;switch(xi){case 0:Bn=void 0;break;case 1:Bn=qe(Vr,dr[ln]);break;default:if(Vr===d.ParameterStructures.byName)throw new Error(`Received ${xi} parameters for 'by Name' request parameter structure.`);Bn=dr.slice(ln,gn).map(Pn=>Tn(Pn));break}}else{let Ba=dr;pn=ct.method,Bn=Rn(ct,Ba);let cs=ct.numberOfParams;Hs=v.CancellationToken.is(Ba[cs])?Ba[cs]:void 0}let Ki=le++,so,js=!1;Hs!==void 0&&(Hs.isCancellationRequested?js=!0:so=Hs.onCancellationRequested(()=>{Kr(Mn,Ki)}));let ls={jsonrpc:we,id:Ki,method:pn,params:Bn};return Zr(ls),typeof Ye.sender.enableCancellation=="function"&&Ye.sender.enableCancellation(ls),new Promise(async(Ba,cs)=>{let ln=J(xi=>{Ba(xi),Ye.sender.cleanup(Ki),so?.dispose()},"resolveWithCleanup"),Vr=J(xi=>{cs(xi),Ye.sender.cleanup(Ki),so?.dispose()},"rejectWithCleanup"),gn={method:pn,timerStart:Date.now(),resolve:ln,reject:Vr};try{Ft.set(Ki,gn),await U.write(ls),js&&Kr(Mn,Ki)}catch(xi){Ft.delete(Ki),gn.reject(new d.ResponseError(d.ErrorCodes.MessageWriteError,xi.message?xi.message:"Unknown reason")),he.error("Sending request failed.")}})},"sendRequest"),onRequest:J((ct,dr)=>{ai();let Kr=null;return R.is(ct)?(Kr=void 0,Ie=ct):f.string(ct)?(Kr=null,dr!==void 0&&(Kr=ct,De.set(ct,{handler:dr,type:void 0}))):dr!==void 0&&(Kr=ct.method,De.set(ct.method,{type:ct,handler:dr})),{dispose:J(()=>{Kr!==null&&(Kr!==void 0?De.get(Kr)?.handler===dr&&De.delete(Kr):Ie===ct&&(Ie=void 0))},"dispose")}},"onRequest"),hasPendingResponse:J(()=>Ft.size>0,"hasPendingResponse"),trace:J(async(ct,dr,Kr)=>{let pn=!1,Bn=I.Text;Kr!==void 0&&(f.boolean(Kr)?pn=Kr:(pn=Kr.sendNotification||!1,Bn=Kr.traceFormat||I.Text)),Mt=ct,ot=Bn,Mt===L.Off?it=void 0:it=dr,pn&&!Te()&&!ce()&&await Mn.sendNotification(N.type,{value:L.toString(ct)})},"trace"),onError:Rt.event,onClose:pt.event,onUnhandledNotification:gt.event,onDispose:Yt.event,end:J(()=>{U.end()},"end"),dispose:J(()=>{if(ce())return;mt=Z.Disposed,Yt.fire(void 0);let ct=new d.ResponseError(d.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let dr of Ft.values())dr.reject(ct);Ft=new Map,tr=new Map,pr=new Set,lt=new m.LinkedMap,f.func(U.dispose)&&U.dispose(),f.func(te.dispose)&&te.dispose()},"dispose"),listen:J(()=>{ai(),Gn(),mt=Z.Listening,te.listen(ft)},"listen"),inspect:J(()=>{(0,h.default)().console.log("inspect")},"inspect")};return Mn.onNotification(B.type,ct=>{if(Mt===L.Off||!it)return;let dr=Mt===L.Verbose||Mt===L.Compact;it.log(ct.message,dr?ct.verbose:void 0)}),Mn.onNotification(E.type,async ct=>{let dr=ze.get(ct.token);dr?await dr(ct.value):ut.fire(ct)}),Mn}i(X,"createMessageConnection"),J(X,"createMessageConnection")}}),Cae=Cl({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/api.js"(r){"use strict";var t=r&&r.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(r,"__esModule",{value:!0}),r.ProgressType=r.ProgressToken=r.createMessageConnection=r.NullLogger=r.ConnectionOptions=r.ConnectionStrategy=r.AbstractMessageBuffer=r.WriteableStreamMessageWriter=r.AbstractMessageWriter=r.MessageWriter=r.ReadableStreamMessageReader=r.AbstractMessageReader=r.MessageReader=r.SharedArrayReceiverStrategy=r.SharedArraySenderStrategy=r.CancellationToken=r.CancellationTokenSource=r.Emitter=r.Event=r.Disposable=r.LRUCache=r.Touch=r.LinkedMap=r.ParameterStructures=r.NotificationType9=r.NotificationType8=r.NotificationType7=r.NotificationType6=r.NotificationType5=r.NotificationType4=r.NotificationType3=r.NotificationType2=r.NotificationType1=r.NotificationType0=r.NotificationType=r.ErrorCodes=r.ResponseError=r.RequestType9=r.RequestType8=r.RequestType7=r.RequestType6=r.RequestType5=r.RequestType4=r.RequestType3=r.RequestType2=r.RequestType1=r.RequestType0=r.RequestType=r.Message=r.RAL=void 0,r.MessageStrategy=r.CancellationStrategy=r.CancellationSenderStrategy=r.RequestCancellationReceiverStrategy=r.IdCancellationReceiverStrategy=r.CancellationReceiverStrategy=r.ConnectionError=r.ConnectionErrors=r.LogTraceNotification=r.SetTraceNotification=r.TraceFormat=r.TraceValues=r.TraceValue=r.Trace=void 0;var a=D_r();Object.defineProperty(r,"Message",{enumerable:!0,get:J(function(){return a.Message},"get")}),Object.defineProperty(r,"RequestType",{enumerable:!0,get:J(function(){return a.RequestType},"get")}),Object.defineProperty(r,"RequestType0",{enumerable:!0,get:J(function(){return a.RequestType0},"get")}),Object.defineProperty(r,"RequestType1",{enumerable:!0,get:J(function(){return a.RequestType1},"get")}),Object.defineProperty(r,"RequestType2",{enumerable:!0,get:J(function(){return a.RequestType2},"get")}),Object.defineProperty(r,"RequestType3",{enumerable:!0,get:J(function(){return a.RequestType3},"get")}),Object.defineProperty(r,"RequestType4",{enumerable:!0,get:J(function(){return a.RequestType4},"get")}),Object.defineProperty(r,"RequestType5",{enumerable:!0,get:J(function(){return a.RequestType5},"get")}),Object.defineProperty(r,"RequestType6",{enumerable:!0,get:J(function(){return a.RequestType6},"get")}),Object.defineProperty(r,"RequestType7",{enumerable:!0,get:J(function(){return a.RequestType7},"get")}),Object.defineProperty(r,"RequestType8",{enumerable:!0,get:J(function(){return a.RequestType8},"get")}),Object.defineProperty(r,"RequestType9",{enumerable:!0,get:J(function(){return a.RequestType9},"get")}),Object.defineProperty(r,"ResponseError",{enumerable:!0,get:J(function(){return a.ResponseError},"get")}),Object.defineProperty(r,"ErrorCodes",{enumerable:!0,get:J(function(){return a.ErrorCodes},"get")}),Object.defineProperty(r,"NotificationType",{enumerable:!0,get:J(function(){return a.NotificationType},"get")}),Object.defineProperty(r,"NotificationType0",{enumerable:!0,get:J(function(){return a.NotificationType0},"get")}),Object.defineProperty(r,"NotificationType1",{enumerable:!0,get:J(function(){return a.NotificationType1},"get")}),Object.defineProperty(r,"NotificationType2",{enumerable:!0,get:J(function(){return a.NotificationType2},"get")}),Object.defineProperty(r,"NotificationType3",{enumerable:!0,get:J(function(){return a.NotificationType3},"get")}),Object.defineProperty(r,"NotificationType4",{enumerable:!0,get:J(function(){return a.NotificationType4},"get")}),Object.defineProperty(r,"NotificationType5",{enumerable:!0,get:J(function(){return a.NotificationType5},"get")}),Object.defineProperty(r,"NotificationType6",{enumerable:!0,get:J(function(){return a.NotificationType6},"get")}),Object.defineProperty(r,"NotificationType7",{enumerable:!0,get:J(function(){return a.NotificationType7},"get")}),Object.defineProperty(r,"NotificationType8",{enumerable:!0,get:J(function(){return a.NotificationType8},"get")}),Object.defineProperty(r,"NotificationType9",{enumerable:!0,get:J(function(){return a.NotificationType9},"get")}),Object.defineProperty(r,"ParameterStructures",{enumerable:!0,get:J(function(){return a.ParameterStructures},"get")});var s=M_r();Object.defineProperty(r,"LinkedMap",{enumerable:!0,get:J(function(){return s.LinkedMap},"get")}),Object.defineProperty(r,"LRUCache",{enumerable:!0,get:J(function(){return s.LRUCache},"get")}),Object.defineProperty(r,"Touch",{enumerable:!0,get:J(function(){return s.Touch},"get")});var l=Tti();Object.defineProperty(r,"Disposable",{enumerable:!0,get:J(function(){return l.Disposable},"get")});var h=kae();Object.defineProperty(r,"Event",{enumerable:!0,get:J(function(){return h.Event},"get")}),Object.defineProperty(r,"Emitter",{enumerable:!0,get:J(function(){return h.Emitter},"get")});var f=zot();Object.defineProperty(r,"CancellationTokenSource",{enumerable:!0,get:J(function(){return f.CancellationTokenSource},"get")}),Object.defineProperty(r,"CancellationToken",{enumerable:!0,get:J(function(){return f.CancellationToken},"get")});var d=kti();Object.defineProperty(r,"SharedArraySenderStrategy",{enumerable:!0,get:J(function(){return d.SharedArraySenderStrategy},"get")}),Object.defineProperty(r,"SharedArrayReceiverStrategy",{enumerable:!0,get:J(function(){return d.SharedArrayReceiverStrategy},"get")});var m=Cti();Object.defineProperty(r,"MessageReader",{enumerable:!0,get:J(function(){return m.MessageReader},"get")}),Object.defineProperty(r,"AbstractMessageReader",{enumerable:!0,get:J(function(){return m.AbstractMessageReader},"get")}),Object.defineProperty(r,"ReadableStreamMessageReader",{enumerable:!0,get:J(function(){return m.ReadableStreamMessageReader},"get")});var b=Eti();Object.defineProperty(r,"MessageWriter",{enumerable:!0,get:J(function(){return b.MessageWriter},"get")}),Object.defineProperty(r,"AbstractMessageWriter",{enumerable:!0,get:J(function(){return b.AbstractMessageWriter},"get")}),Object.defineProperty(r,"WriteableStreamMessageWriter",{enumerable:!0,get:J(function(){return b.WriteableStreamMessageWriter},"get")});var v=Sti();Object.defineProperty(r,"AbstractMessageBuffer",{enumerable:!0,get:J(function(){return v.AbstractMessageBuffer},"get")});var T=Ati();Object.defineProperty(r,"ConnectionStrategy",{enumerable:!0,get:J(function(){return T.ConnectionStrategy},"get")}),Object.defineProperty(r,"ConnectionOptions",{enumerable:!0,get:J(function(){return T.ConnectionOptions},"get")}),Object.defineProperty(r,"NullLogger",{enumerable:!0,get:J(function(){return T.NullLogger},"get")}),Object.defineProperty(r,"createMessageConnection",{enumerable:!0,get:J(function(){return T.createMessageConnection},"get")}),Object.defineProperty(r,"ProgressToken",{enumerable:!0,get:J(function(){return T.ProgressToken},"get")}),Object.defineProperty(r,"ProgressType",{enumerable:!0,get:J(function(){return T.ProgressType},"get")}),Object.defineProperty(r,"Trace",{enumerable:!0,get:J(function(){return T.Trace},"get")}),Object.defineProperty(r,"TraceValue",{enumerable:!0,get:J(function(){return T.TraceValue},"get")}),Object.defineProperty(r,"TraceFormat",{enumerable:!0,get:J(function(){return T.TraceFormat},"get")}),Object.defineProperty(r,"SetTraceNotification",{enumerable:!0,get:J(function(){return T.SetTraceNotification},"get")}),Object.defineProperty(r,"LogTraceNotification",{enumerable:!0,get:J(function(){return T.LogTraceNotification},"get")}),Object.defineProperty(r,"ConnectionErrors",{enumerable:!0,get:J(function(){return T.ConnectionErrors},"get")}),Object.defineProperty(r,"ConnectionError",{enumerable:!0,get:J(function(){return T.ConnectionError},"get")}),Object.defineProperty(r,"CancellationReceiverStrategy",{enumerable:!0,get:J(function(){return T.CancellationReceiverStrategy},"get")}),Object.defineProperty(r,"IdCancellationReceiverStrategy",{enumerable:!0,get:J(function(){return T.IdCancellationReceiverStrategy},"get")}),Object.defineProperty(r,"RequestCancellationReceiverStrategy",{enumerable:!0,get:J(function(){return T.RequestCancellationReceiverStrategy},"get")}),Object.defineProperty(r,"CancellationSenderStrategy",{enumerable:!0,get:J(function(){return T.CancellationSenderStrategy},"get")}),Object.defineProperty(r,"CancellationStrategy",{enumerable:!0,get:J(function(){return T.CancellationStrategy},"get")}),Object.defineProperty(r,"MessageStrategy",{enumerable:!0,get:J(function(){return T.MessageStrategy},"get")}),Object.defineProperty(r,"TraceValues",{enumerable:!0,get:J(function(){return T.TraceValues},"get")});var C=t(nB());r.RAL=C.default}}),r4e={};xti(r4e,{AnnotatedTextEdit:i(()=>r8,"AnnotatedTextEdit"),ApplyKind:i(()=>yat,"ApplyKind"),ChangeAnnotation:i(()=>uD,"ChangeAnnotation"),ChangeAnnotationIdentifier:i(()=>Am,"ChangeAnnotationIdentifier"),CodeAction:i(()=>Mat,"CodeAction"),CodeActionContext:i(()=>Iat,"CodeActionContext"),CodeActionKind:i(()=>Dat,"CodeActionKind"),CodeActionTag:i(()=>n3e,"CodeActionTag"),CodeActionTriggerKind:i(()=>Uie,"CodeActionTriggerKind"),CodeDescription:i(()=>sat,"CodeDescription"),CodeLens:i(()=>Nat,"CodeLens"),Color:i(()=>Zke,"Color"),ColorInformation:i(()=>eat,"ColorInformation"),ColorPresentation:i(()=>tat,"ColorPresentation"),Command:i(()=>IP,"Command"),CompletionItem:i(()=>vat,"CompletionItem"),CompletionItemKind:i(()=>fat,"CompletionItemKind"),CompletionItemLabelDetails:i(()=>bat,"CompletionItemLabelDetails"),CompletionItemTag:i(()=>pat,"CompletionItemTag"),CompletionList:i(()=>wat,"CompletionList"),CreateFile:i(()=>AV,"CreateFile"),DeleteFile:i(()=>LV,"DeleteFile"),Diagnostic:i(()=>$ie,"Diagnostic"),DiagnosticRelatedInformation:i(()=>e3e,"DiagnosticRelatedInformation"),DiagnosticSeverity:i(()=>iat,"DiagnosticSeverity"),DiagnosticTag:i(()=>aat,"DiagnosticTag"),DocumentHighlight:i(()=>Eat,"DocumentHighlight"),DocumentHighlightKind:i(()=>Cat,"DocumentHighlightKind"),DocumentLink:i(()=>Pat,"DocumentLink"),DocumentSymbol:i(()=>_at,"DocumentSymbol"),DocumentUri:i(()=>Jit,"DocumentUri"),EOL:i(()=>F_r,"EOL"),FoldingRange:i(()=>nat,"FoldingRange"),FoldingRangeKind:i(()=>rat,"FoldingRangeKind"),FormattingOptions:i(()=>Oat,"FormattingOptions"),Hover:i(()=>xat,"Hover"),InlayHint:i(()=>Wat,"InlayHint"),InlayHintKind:i(()=>i3e,"InlayHintKind"),InlayHintLabelPart:i(()=>a3e,"InlayHintLabelPart"),InlineCompletionContext:i(()=>Kat,"InlineCompletionContext"),InlineCompletionItem:i(()=>Hat,"InlineCompletionItem"),InlineCompletionList:i(()=>qat,"InlineCompletionList"),InlineCompletionTriggerKind:i(()=>Yat,"InlineCompletionTriggerKind"),InlineValueContext:i(()=>Vat,"InlineValueContext"),InlineValueEvaluatableExpression:i(()=>Uat,"InlineValueEvaluatableExpression"),InlineValueText:i(()=>jat,"InlineValueText"),InlineValueVariableLookup:i(()=>zat,"InlineValueVariableLookup"),InsertReplaceEdit:i(()=>gat,"InsertReplaceEdit"),InsertTextFormat:i(()=>dat,"InsertTextFormat"),InsertTextMode:i(()=>mat,"InsertTextMode"),LanguageKind:i(()=>uat,"LanguageKind"),Location:i(()=>Fie,"Location"),LocationLink:i(()=>Zit,"LocationLink"),MarkedString:i(()=>zie,"MarkedString"),MarkupContent:i(()=>hD,"MarkupContent"),MarkupKind:i(()=>r3e,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:i(()=>jie,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:i(()=>Tat,"ParameterInformation"),Position:i(()=>ch,"Position"),Range:i(()=>yc,"Range"),RenameFile:i(()=>RV,"RenameFile"),SelectedCompletionInfo:i(()=>Xat,"SelectedCompletionInfo"),SelectionRange:i(()=>Bat,"SelectionRange"),SemanticTokenModifiers:i(()=>$at,"SemanticTokenModifiers"),SemanticTokenTypes:i(()=>Fat,"SemanticTokenTypes"),SemanticTokens:i(()=>Gat,"SemanticTokens"),SignatureInformation:i(()=>kat,"SignatureInformation"),SnippetTextEdit:i(()=>oat,"SnippetTextEdit"),StringValue:i(()=>s3e,"StringValue"),SymbolInformation:i(()=>Rat,"SymbolInformation"),SymbolKind:i(()=>Sat,"SymbolKind"),SymbolTag:i(()=>Aat,"SymbolTag"),TextDocument:i(()=>Qat,"TextDocument"),TextDocumentEdit:i(()=>Gie,"TextDocumentEdit"),TextDocumentIdentifier:i(()=>lat,"TextDocumentIdentifier"),TextDocumentItem:i(()=>hat,"TextDocumentItem"),TextEdit:i(()=>$S,"TextEdit"),URI:i(()=>Qke,"URI"),VersionedTextDocumentIdentifier:i(()=>cat,"VersionedTextDocumentIdentifier"),WorkspaceChange:i(()=>B_r,"WorkspaceChange"),WorkspaceEdit:i(()=>t3e,"WorkspaceEdit"),WorkspaceFolder:i(()=>Jat,"WorkspaceFolder"),WorkspaceSymbol:i(()=>Lat,"WorkspaceSymbol"),integer:i(()=>Qit,"integer"),uinteger:i(()=>Bie,"uinteger")});n4e=wti({"../../node_modules/.pnpm/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js"(){"use strict";(function(r){function t(a){return typeof a=="string"}i(t,"is"),J(t,"is"),r.is=t})(Jit||(Jit={})),(function(r){function t(a){return typeof a=="string"}i(t,"is"),J(t,"is"),r.is=t})(Qke||(Qke={})),(function(r){r.MIN_VALUE=-2147483648,r.MAX_VALUE=2147483647;function t(a){return typeof a=="number"&&r.MIN_VALUE<=a&&a<=r.MAX_VALUE}i(t,"is"),J(t,"is"),r.is=t})(Qit||(Qit={})),(function(r){r.MIN_VALUE=0,r.MAX_VALUE=2147483647;function t(a){return typeof a=="number"&&r.MIN_VALUE<=a&&a<=r.MAX_VALUE}i(t,"is"),J(t,"is"),r.is=t})(Bie||(Bie={})),(function(r){function t(s,l){return s===Number.MAX_VALUE&&(s=Bie.MAX_VALUE),l===Number.MAX_VALUE&&(l=Bie.MAX_VALUE),{line:s,character:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&jr.uinteger(l.line)&&jr.uinteger(l.character)}i(a,"is"),J(a,"is"),r.is=a})(ch||(ch={})),(function(r){function t(s,l,h,f){if(jr.uinteger(s)&&jr.uinteger(l)&&jr.uinteger(h)&&jr.uinteger(f))return{start:ch.create(s,l),end:ch.create(h,f)};if(ch.is(s)&&ch.is(l))return{start:s,end:l};throw new Error(`Range#create called with invalid arguments[${s}, ${l}, ${h}, ${f}]`)}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&ch.is(l.start)&&ch.is(l.end)}i(a,"is"),J(a,"is"),r.is=a})(yc||(yc={})),(function(r){function t(s,l){return{uri:s,range:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&yc.is(l.range)&&(jr.string(l.uri)||jr.undefined(l.uri))}i(a,"is"),J(a,"is"),r.is=a})(Fie||(Fie={})),(function(r){function t(s,l,h,f){return{targetUri:s,targetRange:l,targetSelectionRange:h,originSelectionRange:f}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&yc.is(l.targetRange)&&jr.string(l.targetUri)&&yc.is(l.targetSelectionRange)&&(yc.is(l.originSelectionRange)||jr.undefined(l.originSelectionRange))}i(a,"is"),J(a,"is"),r.is=a})(Zit||(Zit={})),(function(r){function t(s,l,h,f){return{red:s,green:l,blue:h,alpha:f}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&jr.numberRange(l.red,0,1)&&jr.numberRange(l.green,0,1)&&jr.numberRange(l.blue,0,1)&&jr.numberRange(l.alpha,0,1)}i(a,"is"),J(a,"is"),r.is=a})(Zke||(Zke={})),(function(r){function t(s,l){return{range:s,color:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&yc.is(l.range)&&Zke.is(l.color)}i(a,"is"),J(a,"is"),r.is=a})(eat||(eat={})),(function(r){function t(s,l,h){return{label:s,textEdit:l,additionalTextEdits:h}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&jr.string(l.label)&&(jr.undefined(l.textEdit)||$S.is(l))&&(jr.undefined(l.additionalTextEdits)||jr.typedArray(l.additionalTextEdits,$S.is))}i(a,"is"),J(a,"is"),r.is=a})(tat||(tat={})),(function(r){r.Comment="comment",r.Imports="imports",r.Region="region"})(rat||(rat={})),(function(r){function t(s,l,h,f,d,m){let b={startLine:s,endLine:l};return jr.defined(h)&&(b.startCharacter=h),jr.defined(f)&&(b.endCharacter=f),jr.defined(d)&&(b.kind=d),jr.defined(m)&&(b.collapsedText=m),b}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&jr.uinteger(l.startLine)&&jr.uinteger(l.startLine)&&(jr.undefined(l.startCharacter)||jr.uinteger(l.startCharacter))&&(jr.undefined(l.endCharacter)||jr.uinteger(l.endCharacter))&&(jr.undefined(l.kind)||jr.string(l.kind))}i(a,"is"),J(a,"is"),r.is=a})(nat||(nat={})),(function(r){function t(s,l){return{location:s,message:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&Fie.is(l.location)&&jr.string(l.message)}i(a,"is"),J(a,"is"),r.is=a})(e3e||(e3e={})),(function(r){r.Error=1,r.Warning=2,r.Information=3,r.Hint=4})(iat||(iat={})),(function(r){r.Unnecessary=1,r.Deprecated=2})(aat||(aat={})),(function(r){function t(a){let s=a;return jr.objectLiteral(s)&&jr.string(s.href)}i(t,"is"),J(t,"is"),r.is=t})(sat||(sat={})),(function(r){function t(h,f,d,m,b,v){let T={range:h,message:f};return jr.defined(d)&&(T.severity=d),jr.defined(m)&&(T.code=m),jr.defined(b)&&(T.source=b),jr.defined(v)&&(T.relatedInformation=v),T}i(t,"create"),J(t,"create"),r.create=t;function a(h){var f;let d=h;return jr.defined(d)&&yc.is(d.range)&&(jr.string(d.message)||hD.is(d.message))&&(jr.number(d.severity)||jr.undefined(d.severity))&&(jr.integer(d.code)||jr.string(d.code)||jr.undefined(d.code))&&(jr.undefined(d.codeDescription)||jr.string((f=d.codeDescription)===null||f===void 0?void 0:f.href))&&(jr.string(d.source)||jr.undefined(d.source))&&(jr.undefined(d.relatedInformation)||jr.typedArray(d.relatedInformation,e3e.is))}i(a,"is"),J(a,"is"),r.is=a;function s(h){return jr.string(h.message)}i(s,"is3_17"),J(s,"is3_17"),r.is3_17=s;function l(h){if(jr.string(h.message))return h.message;if(hD.is(h.message))return h.message.value;throw new Error(`Unknown message type ${typeof h.message}`)}i(l,"getMessageString"),J(l,"getMessageString"),r.getMessageString=l})($ie||($ie={})),(function(r){function t(s,l,...h){let f={title:s,command:l};return jr.defined(h)&&h.length>0&&(f.arguments=h),f}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&jr.string(l.title)&&(l.tooltip===void 0||jr.string(l.tooltip))&&jr.string(l.command)}i(a,"is"),J(a,"is"),r.is=a})(IP||(IP={})),(function(r){function t(h,f){return{range:h,newText:f}}i(t,"replace"),J(t,"replace"),r.replace=t;function a(h,f){return{range:{start:h,end:h},newText:f}}i(a,"insert"),J(a,"insert"),r.insert=a;function s(h){return{range:h,newText:""}}i(s,"del"),J(s,"del"),r.del=s;function l(h){let f=h;return jr.objectLiteral(f)&&jr.string(f.newText)&&yc.is(f.range)}i(l,"is"),J(l,"is"),r.is=l})($S||($S={})),(function(r){function t(s,l,h){let f={label:s};return l!==void 0&&(f.needsConfirmation=l),h!==void 0&&(f.description=h),f}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&jr.string(l.label)&&(jr.boolean(l.needsConfirmation)||l.needsConfirmation===void 0)&&(jr.string(l.description)||l.description===void 0)}i(a,"is"),J(a,"is"),r.is=a})(uD||(uD={})),(function(r){function t(a){let s=a;return jr.string(s)}i(t,"is"),J(t,"is"),r.is=t})(Am||(Am={})),(function(r){function t(h,f,d){return{range:h,newText:f,annotationId:d}}i(t,"replace"),J(t,"replace"),r.replace=t;function a(h,f,d){return{range:{start:h,end:h},newText:f,annotationId:d}}i(a,"insert"),J(a,"insert"),r.insert=a;function s(h,f){return{range:h,newText:"",annotationId:f}}i(s,"del"),J(s,"del"),r.del=s;function l(h){let f=h;return $S.is(f)&&(uD.is(f.annotationId)||Am.is(f.annotationId))}i(l,"is"),J(l,"is"),r.is=l})(r8||(r8={})),(function(r){function t(s,l){return{textDocument:s,edits:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&jie.is(l.textDocument)&&Array.isArray(l.edits)}i(a,"is"),J(a,"is"),r.is=a})(Gie||(Gie={})),(function(r){function t(s,l,h){let f={kind:"create",uri:s};return l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)&&(f.options=l),h!==void 0&&(f.annotationId=h),f}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l&&l.kind==="create"&&jr.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||jr.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||jr.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Am.is(l.annotationId))}i(a,"is"),J(a,"is"),r.is=a})(AV||(AV={})),(function(r){function t(s,l,h,f){let d={kind:"rename",oldUri:s,newUri:l};return h!==void 0&&(h.overwrite!==void 0||h.ignoreIfExists!==void 0)&&(d.options=h),f!==void 0&&(d.annotationId=f),d}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l&&l.kind==="rename"&&jr.string(l.oldUri)&&jr.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||jr.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||jr.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Am.is(l.annotationId))}i(a,"is"),J(a,"is"),r.is=a})(RV||(RV={})),(function(r){function t(s,l,h){let f={kind:"delete",uri:s};return l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)&&(f.options=l),h!==void 0&&(f.annotationId=h),f}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l&&l.kind==="delete"&&jr.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||jr.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||jr.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===void 0||Am.is(l.annotationId))}i(a,"is"),J(a,"is"),r.is=a})(LV||(LV={})),(function(r){function t(a){let s=a;return s&&(s.changes!==void 0||s.documentChanges!==void 0)&&(s.documentChanges===void 0||s.documentChanges.every(l=>jr.string(l.kind)?AV.is(l)||RV.is(l)||LV.is(l):Gie.is(l)))}i(t,"is"),J(t,"is"),r.is=t})(t3e||(t3e={})),Sie=class{static{i(this,"TextEditChangeImpl")}static{J(this,"TextEditChangeImpl")}constructor(r,t){this.edits=r,this.changeAnnotations=t}insert(r,t,a){let s,l;if(a===void 0?s=$S.insert(r,t):Am.is(a)?(l=a,s=r8.insert(r,t,a)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(a),s=r8.insert(r,t,l)),this.edits.push(s),l!==void 0)return l}replace(r,t,a){let s,l;if(a===void 0?s=$S.replace(r,t):Am.is(a)?(l=a,s=r8.replace(r,t,a)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(a),s=r8.replace(r,t,l)),this.edits.push(s),l!==void 0)return l}delete(r,t){let a,s;if(t===void 0?a=$S.del(r):Am.is(t)?(s=t,a=r8.del(r,t)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(t),a=r8.del(r,s)),this.edits.push(a),s!==void 0)return s}add(r){this.edits.push(r)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},(function(r){function t(a){let s=a;return jr.objectLiteral(s)&&yc.is(s.range)&&s3e.isSnippet(s.snippet)&&(s.annotationId===void 0||uD.is(s.annotationId)||Am.is(s.annotationId))}i(t,"is"),J(t,"is"),r.is=t})(oat||(oat={})),Lit=class{static{i(this,"ChangeAnnotations")}static{J(this,"ChangeAnnotations")}constructor(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(r,t){let a;if(Am.is(r)?a=r:(a=this.nextId(),t=r),this._annotations[a]!==void 0)throw new Error(`Id ${a} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${a}`);return this._annotations[a]=t,this._size++,a}nextId(){return this._counter++,this._counter.toString()}},B_r=class{static{i(this,"WorkspaceChange")}static{J(this,"WorkspaceChange")}constructor(r){this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Lit(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(t=>{if(Gie.is(t)){let a=new Sie(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=a}})):r.changes&&Object.keys(r.changes).forEach(t=>{let a=new Sie(r.changes[t]);this._textEditChanges[t]=a})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(r){if(jie.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let t={uri:r.uri,version:r.version},a=this._textEditChanges[t.uri];if(!a){let s=[],l={textDocument:t,edits:s};this._workspaceEdit.documentChanges.push(l),a=new Sie(s,this._changeAnnotations),this._textEditChanges[t.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[r];if(!t){let a=[];this._workspaceEdit.changes[r]=a,t=new Sie(a),this._textEditChanges[r]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Lit,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(r,t,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;uD.is(t)||Am.is(t)?s=t:a=t;let l,h;if(s===void 0?l=AV.create(r,a):(h=Am.is(s)?s:this._changeAnnotations.manage(s),l=AV.create(r,a,h)),this._workspaceEdit.documentChanges.push(l),h!==void 0)return h}renameFile(r,t,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;uD.is(a)||Am.is(a)?l=a:s=a;let h,f;if(l===void 0?h=RV.create(r,t,s):(f=Am.is(l)?l:this._changeAnnotations.manage(l),h=RV.create(r,t,s,f)),this._workspaceEdit.documentChanges.push(h),f!==void 0)return f}deleteFile(r,t,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;uD.is(t)||Am.is(t)?s=t:a=t;let l,h;if(s===void 0?l=LV.create(r,a):(h=Am.is(s)?s:this._changeAnnotations.manage(s),l=LV.create(r,a,h)),this._workspaceEdit.documentChanges.push(l),h!==void 0)return h}},(function(r){function t(s){return{uri:s}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&jr.string(l.uri)}i(a,"is"),J(a,"is"),r.is=a})(lat||(lat={})),(function(r){function t(s,l){return{uri:s,version:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&jr.string(l.uri)&&jr.integer(l.version)}i(a,"is"),J(a,"is"),r.is=a})(cat||(cat={})),(function(r){function t(s,l){return{uri:s,version:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&jr.string(l.uri)&&(l.version===null||jr.integer(l.version))}i(a,"is"),J(a,"is"),r.is=a})(jie||(jie={})),(function(r){r.ABAP="abap",r.WindowsBat="bat",r.BibTeX="bibtex",r.Clojure="clojure",r.Coffeescript="coffeescript",r.C="c",r.CPP="cpp",r.CSharp="csharp",r.CSS="css",r.D="d",r.Delphi="pascal",r.Diff="diff",r.Dart="dart",r.Dockerfile="dockerfile",r.Elixir="elixir",r.Erlang="erlang",r.FSharp="fsharp",r.GitCommit="git-commit",r.GitRebase="git-rebase",r.Go="go",r.Groovy="groovy",r.Handlebars="handlebars",r.Haskell="haskell",r.HTML="html",r.Ini="ini",r.Java="java",r.JavaScript="javascript",r.JavaScriptReact="javascriptreact",r.JSON="json",r.LaTeX="latex",r.Less="less",r.Lua="lua",r.Makefile="makefile",r.Markdown="markdown",r.ObjectiveC="objective-c",r.ObjectiveCPP="objective-cpp",r.Pascal="pascal",r.Perl="perl",r.Perl6="perl6",r.PHP="php",r.Plaintext="plaintext",r.Powershell="powershell",r.Pug="jade",r.Python="python",r.R="r",r.Razor="razor",r.Ruby="ruby",r.Rust="rust",r.SCSS="scss",r.SASS="sass",r.Scala="scala",r.ShaderLab="shaderlab",r.ShellScript="shellscript",r.SQL="sql",r.Swift="swift",r.TypeScript="typescript",r.TypeScriptReact="typescriptreact",r.TeX="tex",r.VisualBasic="vb",r.XML="xml",r.XSL="xsl",r.YAML="yaml"})(uat||(uat={})),(function(r){function t(s,l,h,f){return{uri:s,languageId:l,version:h,text:f}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&jr.string(l.uri)&&jr.string(l.languageId)&&jr.integer(l.version)&&jr.string(l.text)}i(a,"is"),J(a,"is"),r.is=a})(hat||(hat={})),(function(r){r.PlainText="plaintext",r.Markdown="markdown";function t(a){let s=a;return s===r.PlainText||s===r.Markdown}i(t,"is"),J(t,"is"),r.is=t})(r3e||(r3e={})),(function(r){function t(a){let s=a;return jr.objectLiteral(a)&&r3e.is(s.kind)&&jr.string(s.value)}i(t,"is"),J(t,"is"),r.is=t})(hD||(hD={})),(function(r){r.Text=1,r.Method=2,r.Function=3,r.Constructor=4,r.Field=5,r.Variable=6,r.Class=7,r.Interface=8,r.Module=9,r.Property=10,r.Unit=11,r.Value=12,r.Enum=13,r.Keyword=14,r.Snippet=15,r.Color=16,r.File=17,r.Reference=18,r.Folder=19,r.EnumMember=20,r.Constant=21,r.Struct=22,r.Event=23,r.Operator=24,r.TypeParameter=25})(fat||(fat={})),(function(r){r.PlainText=1,r.Snippet=2})(dat||(dat={})),(function(r){r.Deprecated=1})(pat||(pat={})),(function(r){function t(s,l,h){return{newText:s,insert:l,replace:h}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l&&jr.string(l.newText)&&yc.is(l.insert)&&yc.is(l.replace)}i(a,"is"),J(a,"is"),r.is=a})(gat||(gat={})),(function(r){r.asIs=1,r.adjustIndentation=2})(mat||(mat={})),(function(r){r.Replace=1,r.Merge=2})(yat||(yat={})),(function(r){function t(a){let s=a;return s&&(jr.string(s.detail)||s.detail===void 0)&&(jr.string(s.description)||s.description===void 0)}i(t,"is"),J(t,"is"),r.is=t})(bat||(bat={})),(function(r){function t(a){return{label:a}}i(t,"create"),J(t,"create"),r.create=t})(vat||(vat={})),(function(r){function t(a,s){return{items:a||[],isIncomplete:!!s}}i(t,"create"),J(t,"create"),r.create=t})(wat||(wat={})),(function(r){function t(s){return s.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i(t,"fromPlainText"),J(t,"fromPlainText"),r.fromPlainText=t;function a(s){let l=s;return jr.string(l)||jr.objectLiteral(l)&&jr.string(l.language)&&jr.string(l.value)}i(a,"is"),J(a,"is"),r.is=a})(zie||(zie={})),(function(r){function t(a){let s=a;return!!s&&jr.objectLiteral(s)&&(hD.is(s.contents)||zie.is(s.contents)||jr.typedArray(s.contents,zie.is))&&(a.range===void 0||yc.is(a.range))}i(t,"is"),J(t,"is"),r.is=t})(xat||(xat={})),(function(r){function t(a,s){return s?{label:a,documentation:s}:{label:a}}i(t,"create"),J(t,"create"),r.create=t})(Tat||(Tat={})),(function(r){function t(a,s,...l){let h={label:a};return jr.defined(s)&&(h.documentation=s),jr.defined(l)?h.parameters=l:h.parameters=[],h}i(t,"create"),J(t,"create"),r.create=t})(kat||(kat={})),(function(r){r.Text=1,r.Read=2,r.Write=3})(Cat||(Cat={})),(function(r){function t(a,s){let l={range:a};return jr.number(s)&&(l.kind=s),l}i(t,"create"),J(t,"create"),r.create=t})(Eat||(Eat={})),(function(r){r.File=1,r.Module=2,r.Namespace=3,r.Package=4,r.Class=5,r.Method=6,r.Property=7,r.Field=8,r.Constructor=9,r.Enum=10,r.Interface=11,r.Function=12,r.Variable=13,r.Constant=14,r.String=15,r.Number=16,r.Boolean=17,r.Array=18,r.Object=19,r.Key=20,r.Null=21,r.EnumMember=22,r.Struct=23,r.Event=24,r.Operator=25,r.TypeParameter=26})(Sat||(Sat={})),(function(r){r.Deprecated=1})(Aat||(Aat={})),(function(r){function t(a,s,l,h,f){let d={name:a,kind:s,location:{uri:h,range:l}};return f&&(d.containerName=f),d}i(t,"create"),J(t,"create"),r.create=t})(Rat||(Rat={})),(function(r){function t(a,s,l,h){return h!==void 0?{name:a,kind:s,location:{uri:l,range:h}}:{name:a,kind:s,location:{uri:l}}}i(t,"create"),J(t,"create"),r.create=t})(Lat||(Lat={})),(function(r){function t(s,l,h,f,d,m){let b={name:s,detail:l,kind:h,range:f,selectionRange:d};return m!==void 0&&(b.children=m),b}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l&&jr.string(l.name)&&jr.number(l.kind)&&yc.is(l.range)&&yc.is(l.selectionRange)&&(l.detail===void 0||jr.string(l.detail))&&(l.deprecated===void 0||jr.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))&&(l.tags===void 0||Array.isArray(l.tags))}i(a,"is"),J(a,"is"),r.is=a})(_at||(_at={})),(function(r){r.Empty="",r.QuickFix="quickfix",r.Refactor="refactor",r.RefactorExtract="refactor.extract",r.RefactorInline="refactor.inline",r.RefactorMove="refactor.move",r.RefactorRewrite="refactor.rewrite",r.Source="source",r.SourceOrganizeImports="source.organizeImports",r.SourceFixAll="source.fixAll",r.Notebook="notebook"})(Dat||(Dat={})),(function(r){r.Invoked=1,r.Automatic=2})(Uie||(Uie={})),(function(r){function t(s,l,h){let f={diagnostics:s};return l!=null&&(f.only=l),h!=null&&(f.triggerKind=h),f}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&jr.typedArray(l.diagnostics,$ie.is)&&(l.only===void 0||jr.typedArray(l.only,jr.string))&&(l.triggerKind===void 0||l.triggerKind===Uie.Invoked||l.triggerKind===Uie.Automatic)}i(a,"is"),J(a,"is"),r.is=a})(Iat||(Iat={})),(function(r){r.LLMGenerated=1;function t(a){return jr.defined(a)&&a===r.LLMGenerated}i(t,"is"),J(t,"is"),r.is=t})(n3e||(n3e={})),(function(r){function t(s,l,h){let f={title:s},d=!0;return typeof l=="string"?(d=!1,f.kind=l):IP.is(l)?f.command=l:f.edit=l,d&&h!==void 0&&(f.kind=h),f}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l&&jr.string(l.title)&&(l.diagnostics===void 0||jr.typedArray(l.diagnostics,$ie.is))&&(l.kind===void 0||jr.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||IP.is(l.command))&&(l.isPreferred===void 0||jr.boolean(l.isPreferred))&&(l.edit===void 0||t3e.is(l.edit))&&(l.tags===void 0||jr.typedArray(l.tags,n3e.is))}i(a,"is"),J(a,"is"),r.is=a})(Mat||(Mat={})),(function(r){function t(s,l){let h={range:s};return jr.defined(l)&&(h.data=l),h}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&yc.is(l.range)&&(jr.undefined(l.command)||IP.is(l.command))}i(a,"is"),J(a,"is"),r.is=a})(Nat||(Nat={})),(function(r){function t(s,l){return{tabSize:s,insertSpaces:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&jr.uinteger(l.tabSize)&&jr.boolean(l.insertSpaces)}i(a,"is"),J(a,"is"),r.is=a})(Oat||(Oat={})),(function(r){function t(s,l,h){return{range:s,target:l,data:h}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&yc.is(l.range)&&(jr.undefined(l.target)||jr.string(l.target))}i(a,"is"),J(a,"is"),r.is=a})(Pat||(Pat={})),(function(r){function t(s,l){return{range:s,parent:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&yc.is(l.range)&&(l.parent===void 0||r.is(l.parent))}i(a,"is"),J(a,"is"),r.is=a})(Bat||(Bat={})),(function(r){r.namespace="namespace",r.type="type",r.class="class",r.enum="enum",r.interface="interface",r.struct="struct",r.typeParameter="typeParameter",r.parameter="parameter",r.variable="variable",r.property="property",r.enumMember="enumMember",r.event="event",r.function="function",r.method="method",r.macro="macro",r.keyword="keyword",r.modifier="modifier",r.comment="comment",r.string="string",r.number="number",r.regexp="regexp",r.operator="operator",r.decorator="decorator",r.label="label"})(Fat||(Fat={})),(function(r){r.declaration="declaration",r.definition="definition",r.readonly="readonly",r.static="static",r.deprecated="deprecated",r.abstract="abstract",r.async="async",r.modification="modification",r.documentation="documentation",r.defaultLibrary="defaultLibrary"})($at||($at={})),(function(r){function t(a){let s=a;return jr.objectLiteral(s)&&(s.resultId===void 0||typeof s.resultId=="string")&&Array.isArray(s.data)&&(s.data.length===0||typeof s.data[0]=="number")}i(t,"is"),J(t,"is"),r.is=t})(Gat||(Gat={})),(function(r){function t(s,l){return{range:s,text:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l!=null&&yc.is(l.range)&&jr.string(l.text)}i(a,"is"),J(a,"is"),r.is=a})(jat||(jat={})),(function(r){function t(s,l,h){return{range:s,variableName:l,caseSensitiveLookup:h}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l!=null&&yc.is(l.range)&&jr.boolean(l.caseSensitiveLookup)&&(jr.string(l.variableName)||l.variableName===void 0)}i(a,"is"),J(a,"is"),r.is=a})(zat||(zat={})),(function(r){function t(s,l){return{range:s,expression:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return l!=null&&yc.is(l.range)&&(jr.string(l.expression)||l.expression===void 0)}i(a,"is"),J(a,"is"),r.is=a})(Uat||(Uat={})),(function(r){function t(s,l){return{frameId:s,stoppedLocation:l}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.defined(l)&&yc.is(s.stoppedLocation)}i(a,"is"),J(a,"is"),r.is=a})(Vat||(Vat={})),(function(r){r.Type=1,r.Parameter=2;function t(a){return a===1||a===2}i(t,"is"),J(t,"is"),r.is=t})(i3e||(i3e={})),(function(r){function t(s){return{value:s}}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&(l.tooltip===void 0||jr.string(l.tooltip)||hD.is(l.tooltip))&&(l.location===void 0||Fie.is(l.location))&&(l.command===void 0||IP.is(l.command))}i(a,"is"),J(a,"is"),r.is=a})(a3e||(a3e={})),(function(r){function t(s,l,h){let f={position:s,label:l};return h!==void 0&&(f.kind=h),f}i(t,"create"),J(t,"create"),r.create=t;function a(s){let l=s;return jr.objectLiteral(l)&&ch.is(l.position)&&(jr.string(l.label)||jr.typedArray(l.label,a3e.is))&&(l.kind===void 0||i3e.is(l.kind))&&l.textEdits===void 0||jr.typedArray(l.textEdits,$S.is)&&(l.tooltip===void 0||jr.string(l.tooltip)||hD.is(l.tooltip))&&(l.paddingLeft===void 0||jr.boolean(l.paddingLeft))&&(l.paddingRight===void 0||jr.boolean(l.paddingRight))}i(a,"is"),J(a,"is"),r.is=a})(Wat||(Wat={})),(function(r){function t(s){return{kind:"snippet",value:s}}i(t,"createSnippet"),J(t,"createSnippet"),r.createSnippet=t;function a(s){let l=s;return jr.objectLiteral(l)&&l.kind==="snippet"&&jr.string(l.value)}i(a,"isSnippet"),J(a,"isSnippet"),r.isSnippet=a})(s3e||(s3e={})),(function(r){function t(a,s,l,h){return{insertText:a,filterText:s,range:l,command:h}}i(t,"create"),J(t,"create"),r.create=t})(Hat||(Hat={})),(function(r){function t(a){return{items:a}}i(t,"create"),J(t,"create"),r.create=t})(qat||(qat={})),(function(r){r.Invoked=1,r.Automatic=2})(Yat||(Yat={})),(function(r){function t(a,s){return{range:a,text:s}}i(t,"create"),J(t,"create"),r.create=t})(Xat||(Xat={})),(function(r){function t(a,s){return{triggerKind:a,selectedCompletionInfo:s}}i(t,"create"),J(t,"create"),r.create=t})(Kat||(Kat={})),(function(r){function t(a){let s=a;return jr.objectLiteral(s)&&Qke.is(s.uri)&&jr.string(s.name)}i(t,"is"),J(t,"is"),r.is=t})(Jat||(Jat={})),F_r=[`
|
|
`,`\r
|
|
`,"\r"],(function(r){function t(h,f,d,m){return new uLr(h,f,d,m)}i(t,"create"),J(t,"create"),r.create=t;function a(h){let f=h;return!!(jr.defined(f)&&jr.string(f.uri)&&(jr.undefined(f.languageId)||jr.string(f.languageId))&&jr.uinteger(f.lineCount)&&jr.func(f.getText)&&jr.func(f.positionAt)&&jr.func(f.offsetAt))}i(a,"is"),J(a,"is"),r.is=a;function s(h,f){let d=h.getText(),m=l(f,(v,T)=>{let C=v.range.start.line-T.range.start.line;return C===0?v.range.start.character-T.range.start.character:C}),b=d.length;for(let v=m.length-1;v>=0;v--){let T=m[v],C=h.offsetAt(T.range.start),E=h.offsetAt(T.range.end);if(E<=b)d=d.substring(0,C)+T.newText+d.substring(E,d.length);else throw new Error("Overlapping edit");b=C}return d}i(s,"applyEdits"),J(s,"applyEdits"),r.applyEdits=s;function l(h,f){if(h.length<=1)return h;let d=h.length/2|0,m=h.slice(0,d),b=h.slice(d);l(m,f),l(b,f);let v=0,T=0,C=0;for(;v<m.length&&T<b.length;)f(m[v],b[T])<=0?h[C++]=m[v++]:h[C++]=b[T++];for(;v<m.length;)h[C++]=m[v++];for(;T<b.length;)h[C++]=b[T++];return h}i(l,"mergeSort2"),J(l,"mergeSort")})(Qat||(Qat={})),uLr=class{static{i(this,"FullTextDocument")}static{J(this,"FullTextDocument")}constructor(r,t,a,s){this._uri=r,this._languageId=t,this._version=a,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){let t=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(t,a)}return this._content}update(r,t){this._content=r.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let r=[],t=this._content,a=!0;for(let s=0;s<t.length;s++){a&&(r.push(s),a=!1);let l=t.charAt(s);a=l==="\r"||l===`
|
|
`,l==="\r"&&s+1<t.length&&t.charAt(s+1)===`
|
|
`&&s++}a&&t.length>0&&r.push(t.length),this._lineOffsets=r}return this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let t=this.getLineOffsets(),a=0,s=t.length;if(s===0)return ch.create(0,r);for(;a<s;){let h=Math.floor((a+s)/2);t[h]>r?s=h:a=h+1}let l=a-1;return ch.create(l,r-t[l])}offsetAt(r){let t=this.getLineOffsets();if(r.line>=t.length)return this._content.length;if(r.line<0)return 0;let a=t[r.line],s=r.line+1<t.length?t[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)}get lineCount(){return this.getLineOffsets().length}},(function(r){let t=Object.prototype.toString;function a(E){return typeof E<"u"}i(a,"defined"),J(a,"defined"),r.defined=a;function s(E){return typeof E>"u"}i(s,"undefined2"),J(s,"undefined"),r.undefined=s;function l(E){return E===!0||E===!1}i(l,"boolean"),J(l,"boolean"),r.boolean=l;function h(E){return t.call(E)==="[object String]"}i(h,"string"),J(h,"string"),r.string=h;function f(E){return t.call(E)==="[object Number]"}i(f,"number"),J(f,"number"),r.number=f;function d(E,S,R){return t.call(E)==="[object Number]"&&S<=E&&E<=R}i(d,"numberRange"),J(d,"numberRange"),r.numberRange=d;function m(E){return t.call(E)==="[object Number]"&&-2147483648<=E&&E<=2147483647}i(m,"integer2"),J(m,"integer"),r.integer=m;function b(E){return t.call(E)==="[object Number]"&&0<=E&&E<=2147483647}i(b,"uinteger2"),J(b,"uinteger"),r.uinteger=b;function v(E){return t.call(E)==="[object Function]"}i(v,"func"),J(v,"func"),r.func=v;function T(E){return E!==null&&typeof E=="object"}i(T,"objectLiteral"),J(T,"objectLiteral"),r.objectLiteral=T;function C(E,S){return Array.isArray(E)&&E.every(S)}i(C,"typedArray"),J(C,"typedArray"),r.typedArray=C})(jr||(jr={}))}}),nd=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CM=r.ProtocolNotificationType=r.ProtocolNotificationType0=r.ProtocolRequestType=r.ProtocolRequestType0=r.RegistrationType=r.MessageDirection=void 0;var t=Cae(),a;(function(b){b.clientToServer="clientToServer",b.serverToClient="serverToClient",b.both="both"})(a||(r.MessageDirection=a={}));var s=class{static{i(this,"RegistrationType")}static{J(this,"RegistrationType")}____;method;constructor(b){this.method=b}};r.RegistrationType=s;var l=class extends t.RequestType0{static{i(this,"ProtocolRequestType0")}static{J(this,"ProtocolRequestType0")}__;___;____;_pr;constructor(b){super(b)}};r.ProtocolRequestType0=l;var h=class extends t.RequestType{static{i(this,"ProtocolRequestType")}static{J(this,"ProtocolRequestType")}__;___;____;_pr;constructor(b){super(b,t.ParameterStructures.byName)}};r.ProtocolRequestType=h;var f=class extends t.NotificationType0{static{i(this,"ProtocolNotificationType0")}static{J(this,"ProtocolNotificationType0")}___;____;constructor(b){super(b)}};r.ProtocolNotificationType0=f;var d=class extends t.NotificationType{static{i(this,"ProtocolNotificationType")}static{J(this,"ProtocolNotificationType")}___;____;constructor(b){super(b,t.ParameterStructures.byName)}};r.ProtocolNotificationType=d;var m;(function(b){function v(T,C){return{client:T,server:C}}i(v,"create"),J(v,"create"),b.create=v})(m||(r.CM=m={}))}}),Uot=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.boolean=t,r.string=a,r.number=s,r.error=l,r.func=h,r.array=f,r.stringArray=d,r.typedArray=m,r.objectLiteral=b;function t(v){return v===!0||v===!1}i(t,"boolean"),J(t,"boolean");function a(v){return typeof v=="string"||v instanceof String}i(a,"string"),J(a,"string");function s(v){return typeof v=="number"||v instanceof Number}i(s,"number"),J(s,"number");function l(v){return v instanceof Error}i(l,"error"),J(l,"error");function h(v){return typeof v=="function"}i(h,"func"),J(h,"func");function f(v){return Array.isArray(v)}i(f,"array"),J(f,"array");function d(v){return f(v)&&v.every(T=>a(T))}i(d,"stringArray"),J(d,"stringArray");function m(v,T){return Array.isArray(v)&&v.every(T)}i(m,"typedArray"),J(m,"typedArray");function b(v){return v!==null&&typeof v=="object"}i(b,"objectLiteral"),J(b,"objectLiteral")}}),Rti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ImplementationRequest=void 0;var t=nd(),a;(function(s){s.method="textDocument/implementation",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method),s.capabilities=t.CM.create("textDocument.implementation","implementationProvider")})(a||(r.ImplementationRequest=a={}))}}),Lti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TypeDefinitionRequest=void 0;var t=nd(),a;(function(s){s.method="textDocument/typeDefinition",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method),s.capabilities=t.CM.create("textDocument.typeDefinition","typeDefinitionProvider")})(a||(r.TypeDefinitionRequest=a={}))}}),_ti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DidChangeWorkspaceFoldersNotification=r.WorkspaceFoldersRequest=void 0;var t=nd(),a;(function(l){l.method="workspace/workspaceFolders",l.messageDirection=t.MessageDirection.serverToClient,l.type=new t.ProtocolRequestType0(l.method),l.capabilities=t.CM.create("workspace.workspaceFolders","workspace.workspaceFolders")})(a||(r.WorkspaceFoldersRequest=a={}));var s;(function(l){l.method="workspace/didChangeWorkspaceFolders",l.messageDirection=t.MessageDirection.clientToServer,l.type=new t.ProtocolNotificationType(l.method),l.capabilities=t.CM.create(void 0,"workspace.workspaceFolders.changeNotifications")})(s||(r.DidChangeWorkspaceFoldersNotification=s={}))}}),Dti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ConfigurationRequest=void 0;var t=nd(),a;(function(s){s.method="workspace/configuration",s.messageDirection=t.MessageDirection.serverToClient,s.type=new t.ProtocolRequestType(s.method),s.capabilities=t.CM.create("workspace.configuration",void 0)})(a||(r.ConfigurationRequest=a={}))}}),Iti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColorPresentationRequest=r.DocumentColorRequest=void 0;var t=nd(),a;(function(l){l.method="textDocument/documentColor",l.messageDirection=t.MessageDirection.clientToServer,l.type=new t.ProtocolRequestType(l.method),l.capabilities=t.CM.create("textDocument.colorProvider","colorProvider")})(a||(r.DocumentColorRequest=a={}));var s;(function(l){l.method="textDocument/colorPresentation",l.messageDirection=t.MessageDirection.clientToServer,l.type=new t.ProtocolRequestType(l.method),l.capabilities=t.CM.create("textDocument.colorProvider","colorProvider")})(s||(r.ColorPresentationRequest=s={}))}}),Mti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FoldingRangeRefreshRequest=r.FoldingRangeRequest=void 0;var t=nd(),a;(function(l){l.method="textDocument/foldingRange",l.messageDirection=t.MessageDirection.clientToServer,l.type=new t.ProtocolRequestType(l.method),l.capabilities=t.CM.create("textDocument.foldingRange","foldingRangeProvider")})(a||(r.FoldingRangeRequest=a={}));var s;(function(l){l.method="workspace/foldingRange/refresh",l.messageDirection=t.MessageDirection.serverToClient,l.type=new t.ProtocolRequestType0(l.method),l.capabilities=t.CM.create("workspace.foldingRange.refreshSupport",void 0)})(s||(r.FoldingRangeRefreshRequest=s={}))}}),Nti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DeclarationRequest=void 0;var t=nd(),a;(function(s){s.method="textDocument/declaration",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method),s.capabilities=t.CM.create("textDocument.declaration","declarationProvider")})(a||(r.DeclarationRequest=a={}))}}),Oti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionRangeRequest=void 0;var t=nd(),a;(function(s){s.method="textDocument/selectionRange",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method),s.capabilities=t.CM.create("textDocument.selectionRange","selectionRangeProvider")})(a||(r.SelectionRangeRequest=a={}))}}),Pti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WorkDoneProgressCancelNotification=r.WorkDoneProgressCreateRequest=r.WorkDoneProgress=void 0;var t=Cae(),a=nd(),s;(function(f){f.type=new t.ProgressType;function d(m){return m===f.type}i(d,"is"),J(d,"is"),f.is=d})(s||(r.WorkDoneProgress=s={}));var l;(function(f){f.method="window/workDoneProgress/create",f.messageDirection=a.MessageDirection.serverToClient,f.type=new a.ProtocolRequestType(f.method),f.capabilities=a.CM.create("window.workDoneProgress",void 0)})(l||(r.WorkDoneProgressCreateRequest=l={}));var h;(function(f){f.method="window/workDoneProgress/cancel",f.messageDirection=a.MessageDirection.clientToServer,f.type=new a.ProtocolNotificationType(f.method)})(h||(r.WorkDoneProgressCancelNotification=h={}))}}),Bti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CallHierarchyOutgoingCallsRequest=r.CallHierarchyIncomingCallsRequest=r.CallHierarchyPrepareRequest=void 0;var t=nd(),a;(function(h){h.method="textDocument/prepareCallHierarchy",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method),h.capabilities=t.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(a||(r.CallHierarchyPrepareRequest=a={}));var s;(function(h){h.method="callHierarchy/incomingCalls",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method),h.capabilities=t.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(s||(r.CallHierarchyIncomingCallsRequest=s={}));var l;(function(h){h.method="callHierarchy/outgoingCalls",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method),h.capabilities=t.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(l||(r.CallHierarchyOutgoingCallsRequest=l={}))}}),Fti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SemanticTokensRefreshRequest=r.SemanticTokensRangeRequest=r.SemanticTokensDeltaRequest=r.SemanticTokensRequest=r.SemanticTokensRegistrationType=r.TokenFormat=void 0;var t=nd(),a;(function(m){m.Relative="relative"})(a||(r.TokenFormat=a={}));var s;(function(m){m.method="textDocument/semanticTokens",m.type=new t.RegistrationType(m.method)})(s||(r.SemanticTokensRegistrationType=s={}));var l;(function(m){m.method="textDocument/semanticTokens/full",m.messageDirection=t.MessageDirection.clientToServer,m.type=new t.ProtocolRequestType(m.method),m.registrationMethod=s.method,m.capabilities=t.CM.create("textDocument.semanticTokens","semanticTokensProvider")})(l||(r.SemanticTokensRequest=l={}));var h;(function(m){m.method="textDocument/semanticTokens/full/delta",m.messageDirection=t.MessageDirection.clientToServer,m.type=new t.ProtocolRequestType(m.method),m.registrationMethod=s.method,m.capabilities=t.CM.create("textDocument.semanticTokens.requests.full.delta","semanticTokensProvider.full.delta")})(h||(r.SemanticTokensDeltaRequest=h={}));var f;(function(m){m.method="textDocument/semanticTokens/range",m.messageDirection=t.MessageDirection.clientToServer,m.type=new t.ProtocolRequestType(m.method),m.registrationMethod=s.method,m.capabilities=t.CM.create("textDocument.semanticTokens.requests.range","semanticTokensProvider.range")})(f||(r.SemanticTokensRangeRequest=f={}));var d;(function(m){m.method="workspace/semanticTokens/refresh",m.messageDirection=t.MessageDirection.serverToClient,m.type=new t.ProtocolRequestType0(m.method),m.capabilities=t.CM.create("workspace.semanticTokens.refreshSupport",void 0)})(d||(r.SemanticTokensRefreshRequest=d={}))}}),$ti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ShowDocumentRequest=void 0;var t=nd(),a;(function(s){s.method="window/showDocument",s.messageDirection=t.MessageDirection.serverToClient,s.type=new t.ProtocolRequestType(s.method),s.capabilities=t.CM.create("window.showDocument.support",void 0)})(a||(r.ShowDocumentRequest=a={}))}}),Gti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkedEditingRangeRequest=void 0;var t=nd(),a;(function(s){s.method="textDocument/linkedEditingRange",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method),s.capabilities=t.CM.create("textDocument.linkedEditingRange","linkedEditingRangeProvider")})(a||(r.LinkedEditingRangeRequest=a={}))}}),jti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WillDeleteFilesRequest=r.DidDeleteFilesNotification=r.DidRenameFilesNotification=r.WillRenameFilesRequest=r.DidCreateFilesNotification=r.WillCreateFilesRequest=r.FileOperationPatternKind=void 0;var t=nd(),a;(function(b){b.file="file",b.folder="folder"})(a||(r.FileOperationPatternKind=a={}));var s;(function(b){b.method="workspace/willCreateFiles",b.messageDirection=t.MessageDirection.clientToServer,b.type=new t.ProtocolRequestType(b.method),b.capabilities=t.CM.create("workspace.fileOperations.willCreate","workspace.fileOperations.willCreate")})(s||(r.WillCreateFilesRequest=s={}));var l;(function(b){b.method="workspace/didCreateFiles",b.messageDirection=t.MessageDirection.clientToServer,b.type=new t.ProtocolNotificationType(b.method),b.capabilities=t.CM.create("workspace.fileOperations.didCreate","workspace.fileOperations.didCreate")})(l||(r.DidCreateFilesNotification=l={}));var h;(function(b){b.method="workspace/willRenameFiles",b.messageDirection=t.MessageDirection.clientToServer,b.type=new t.ProtocolRequestType(b.method),b.capabilities=t.CM.create("workspace.fileOperations.willRename","workspace.fileOperations.willRename")})(h||(r.WillRenameFilesRequest=h={}));var f;(function(b){b.method="workspace/didRenameFiles",b.messageDirection=t.MessageDirection.clientToServer,b.type=new t.ProtocolNotificationType(b.method),b.capabilities=t.CM.create("workspace.fileOperations.didRename","workspace.fileOperations.didRename")})(f||(r.DidRenameFilesNotification=f={}));var d;(function(b){b.method="workspace/didDeleteFiles",b.messageDirection=t.MessageDirection.clientToServer,b.type=new t.ProtocolNotificationType(b.method),b.capabilities=t.CM.create("workspace.fileOperations.didDelete","workspace.fileOperations.didDelete")})(d||(r.DidDeleteFilesNotification=d={}));var m;(function(b){b.method="workspace/willDeleteFiles",b.messageDirection=t.MessageDirection.clientToServer,b.type=new t.ProtocolRequestType(b.method),b.capabilities=t.CM.create("workspace.fileOperations.willDelete","workspace.fileOperations.willDelete")})(m||(r.WillDeleteFilesRequest=m={}))}}),zti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MonikerRequest=r.MonikerKind=r.UniquenessLevel=void 0;var t=nd(),a;(function(h){h.document="document",h.project="project",h.group="group",h.scheme="scheme",h.global="global"})(a||(r.UniquenessLevel=a={}));var s;(function(h){h.$import="import",h.$export="export",h.local="local"})(s||(r.MonikerKind=s={}));var l;(function(h){h.method="textDocument/moniker",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method),h.capabilities=t.CM.create("textDocument.moniker","monikerProvider")})(l||(r.MonikerRequest=l={}))}}),Uti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TypeHierarchySubtypesRequest=r.TypeHierarchySupertypesRequest=r.TypeHierarchyPrepareRequest=void 0;var t=nd(),a;(function(h){h.method="textDocument/prepareTypeHierarchy",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method),h.capabilities=t.CM.create("textDocument.typeHierarchy","typeHierarchyProvider")})(a||(r.TypeHierarchyPrepareRequest=a={}));var s;(function(h){h.method="typeHierarchy/supertypes",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method)})(s||(r.TypeHierarchySupertypesRequest=s={}));var l;(function(h){h.method="typeHierarchy/subtypes",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method)})(l||(r.TypeHierarchySubtypesRequest=l={}))}}),Vti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InlineValueRefreshRequest=r.InlineValueRequest=void 0;var t=nd(),a;(function(l){l.method="textDocument/inlineValue",l.messageDirection=t.MessageDirection.clientToServer,l.type=new t.ProtocolRequestType(l.method),l.capabilities=t.CM.create("textDocument.inlineValue","inlineValueProvider")})(a||(r.InlineValueRequest=a={}));var s;(function(l){l.method="workspace/inlineValue/refresh",l.messageDirection=t.MessageDirection.serverToClient,l.type=new t.ProtocolRequestType0(l.method),l.capabilities=t.CM.create("workspace.inlineValue.refreshSupport",void 0)})(s||(r.InlineValueRefreshRequest=s={}))}}),Wti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InlayHintRefreshRequest=r.InlayHintResolveRequest=r.InlayHintRequest=void 0;var t=nd(),a;(function(h){h.method="textDocument/inlayHint",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method),h.capabilities=t.CM.create("textDocument.inlayHint","inlayHintProvider")})(a||(r.InlayHintRequest=a={}));var s;(function(h){h.method="inlayHint/resolve",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method),h.capabilities=t.CM.create("textDocument.inlayHint.resolveSupport","inlayHintProvider.resolveProvider")})(s||(r.InlayHintResolveRequest=s={}));var l;(function(h){h.method="workspace/inlayHint/refresh",h.messageDirection=t.MessageDirection.serverToClient,h.type=new t.ProtocolRequestType0(h.method),h.capabilities=t.CM.create("workspace.inlayHint.refreshSupport",void 0)})(l||(r.InlayHintRefreshRequest=l={}))}}),Hti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(C,E,S,R){R===void 0&&(R=S);var L=Object.getOwnPropertyDescriptor(E,S);(!L||("get"in L?!E.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:J(function(){return E[S]},"get")}),Object.defineProperty(C,R,L)}):(function(C,E,S,R){R===void 0&&(R=S),C[R]=E[S]})),a=r&&r.__setModuleDefault||(Object.create?(function(C,E){Object.defineProperty(C,"default",{enumerable:!0,value:E})}):function(C,E){C.default=E}),s=r&&r.__importStar||(function(){var C=J(function(E){return C=Object.getOwnPropertyNames||function(S){var R=[];for(var L in S)Object.prototype.hasOwnProperty.call(S,L)&&(R[R.length]=L);return R},C(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var S={};if(E!=null)for(var R=C(E),L=0;L<R.length;L++)R[L]!=="default"&&t(S,E,R[L]);return a(S,E),S}})();Object.defineProperty(r,"__esModule",{value:!0}),r.DiagnosticRefreshRequest=r.WorkspaceDiagnosticRequest=r.DocumentDiagnosticRequest=r.DocumentDiagnosticReportKind=r.DiagnosticServerCancellationData=void 0;var l=Cae(),h=s(Uot()),f=nd(),d;(function(C){function E(S){let R=S;return R&&h.boolean(R.retriggerRequest)}i(E,"is"),J(E,"is"),C.is=E})(d||(r.DiagnosticServerCancellationData=d={}));var m;(function(C){C.Full="full",C.Unchanged="unchanged"})(m||(r.DocumentDiagnosticReportKind=m={}));var b;(function(C){C.method="textDocument/diagnostic",C.messageDirection=f.MessageDirection.clientToServer,C.type=new f.ProtocolRequestType(C.method),C.partialResult=new l.ProgressType,C.capabilities=f.CM.create("textDocument.diagnostic","diagnosticProvider")})(b||(r.DocumentDiagnosticRequest=b={}));var v;(function(C){C.method="workspace/diagnostic",C.messageDirection=f.MessageDirection.clientToServer,C.type=new f.ProtocolRequestType(C.method),C.partialResult=new l.ProgressType,C.capabilities=f.CM.create("workspace.diagnostics","diagnosticProvider.workspaceDiagnostics")})(v||(r.WorkspaceDiagnosticRequest=v={}));var T;(function(C){C.method="workspace/diagnostic/refresh",C.messageDirection=f.MessageDirection.serverToClient,C.type=new f.ProtocolRequestType0(C.method),C.capabilities=f.CM.create("workspace.diagnostics.refreshSupport",void 0)})(T||(r.DiagnosticRefreshRequest=T={}))}}),qti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(_,I,N,B){B===void 0&&(B=N);var O=Object.getOwnPropertyDescriptor(I,N);(!O||("get"in O?!I.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:J(function(){return I[N]},"get")}),Object.defineProperty(_,B,O)}):(function(_,I,N,B){B===void 0&&(B=N),_[B]=I[N]})),a=r&&r.__setModuleDefault||(Object.create?(function(_,I){Object.defineProperty(_,"default",{enumerable:!0,value:I})}):function(_,I){_.default=I}),s=r&&r.__importStar||(function(){var _=J(function(I){return _=Object.getOwnPropertyNames||function(N){var B=[];for(var O in N)Object.prototype.hasOwnProperty.call(N,O)&&(B[B.length]=O);return B},_(I)},"ownKeys");return function(I){if(I&&I.__esModule)return I;var N={};if(I!=null)for(var B=_(I),O=0;O<B.length;O++)B[O]!=="default"&&t(N,I,B[O]);return a(N,I),N}})();Object.defineProperty(r,"__esModule",{value:!0}),r.DidCloseNotebookDocumentNotification=r.DidSaveNotebookDocumentNotification=r.DidChangeNotebookDocumentNotification=r.NotebookCellArrayChange=r.DidOpenNotebookDocumentNotification=r.NotebookDocumentSyncRegistrationType=r.NotebookDocument=r.NotebookCell=r.ExecutionSummary=r.NotebookCellKind=void 0;var l=(n4e(),jot(r4e)),h=s(Uot()),f=nd(),d;(function(_){_.Markup=1,_.Code=2;function I(N){return N===1||N===2}i(I,"is"),J(I,"is"),_.is=I})(d||(r.NotebookCellKind=d={}));var m;(function(_){function I(O,P){let $={executionOrder:O};return(P===!0||P===!1)&&($.success=P),$}i(I,"create"),J(I,"create"),_.create=I;function N(O){let P=O;return h.objectLiteral(P)&&l.uinteger.is(P.executionOrder)&&(P.success===void 0||h.boolean(P.success))}i(N,"is"),J(N,"is"),_.is=N;function B(O,P){return O===P?!0:O==null||P===null||P===void 0?!1:O.executionOrder===P.executionOrder&&O.success===P.success}i(B,"equals"),J(B,"equals"),_.equals=B})(m||(r.ExecutionSummary=m={}));var b;(function(_){function I(P,$){return{kind:P,document:$}}i(I,"create"),J(I,"create"),_.create=I;function N(P){let $=P;return h.objectLiteral($)&&d.is($.kind)&&l.DocumentUri.is($.document)&&($.metadata===void 0||h.objectLiteral($.metadata))}i(N,"is"),J(N,"is"),_.is=N;function B(P,$){let V=new Set;return P.document!==$.document&&V.add("document"),P.kind!==$.kind&&V.add("kind"),P.executionSummary!==$.executionSummary&&V.add("executionSummary"),(P.metadata!==void 0||$.metadata!==void 0)&&!O(P.metadata,$.metadata)&&V.add("metadata"),(P.executionSummary!==void 0||$.executionSummary!==void 0)&&!m.equals(P.executionSummary,$.executionSummary)&&V.add("executionSummary"),V}i(B,"diff"),J(B,"diff"),_.diff=B;function O(P,$){if(P===$)return!0;if(P==null||$===null||$===void 0||typeof P!=typeof $||typeof P!="object")return!1;let V=Array.isArray(P),Y=Array.isArray($);if(V!==Y)return!1;if(V&&Y){if(P.length!==$.length)return!1;for(let Q=0;Q<P.length;Q++)if(!O(P[Q],$[Q]))return!1}if(h.objectLiteral(P)&&h.objectLiteral($)){let Q=Object.keys(P),q=Object.keys($);if(Q.length!==q.length||(Q.sort(),q.sort(),!O(Q,q)))return!1;for(let W=0;W<Q.length;W++){let H=Q[W];if(!O(P[H],$[H]))return!1}}return!0}i(O,"equalsMetadata"),J(O,"equalsMetadata")})(b||(r.NotebookCell=b={}));var v;(function(_){function I(B,O,P,$){return{uri:B,notebookType:O,version:P,cells:$}}i(I,"create"),J(I,"create"),_.create=I;function N(B){let O=B;return h.objectLiteral(O)&&h.string(O.uri)&&l.integer.is(O.version)&&h.typedArray(O.cells,b.is)}i(N,"is"),J(N,"is"),_.is=N})(v||(r.NotebookDocument=v={}));var T;(function(_){_.method="notebookDocument/sync",_.messageDirection=f.MessageDirection.clientToServer,_.type=new f.RegistrationType(_.method)})(T||(r.NotebookDocumentSyncRegistrationType=T={}));var C;(function(_){_.method="notebookDocument/didOpen",_.messageDirection=f.MessageDirection.clientToServer,_.type=new f.ProtocolNotificationType(_.method),_.registrationMethod=T.method})(C||(r.DidOpenNotebookDocumentNotification=C={}));var E;(function(_){function I(B){let O=B;return h.objectLiteral(O)&&l.uinteger.is(O.start)&&l.uinteger.is(O.deleteCount)&&(O.cells===void 0||h.typedArray(O.cells,b.is))}i(I,"is"),J(I,"is"),_.is=I;function N(B,O,P){let $={start:B,deleteCount:O};return P!==void 0&&($.cells=P),$}i(N,"create"),J(N,"create"),_.create=N})(E||(r.NotebookCellArrayChange=E={}));var S;(function(_){_.method="notebookDocument/didChange",_.messageDirection=f.MessageDirection.clientToServer,_.type=new f.ProtocolNotificationType(_.method),_.registrationMethod=T.method})(S||(r.DidChangeNotebookDocumentNotification=S={}));var R;(function(_){_.method="notebookDocument/didSave",_.messageDirection=f.MessageDirection.clientToServer,_.type=new f.ProtocolNotificationType(_.method),_.registrationMethod=T.method})(R||(r.DidSaveNotebookDocumentNotification=R={}));var L;(function(_){_.method="notebookDocument/didClose",_.messageDirection=f.MessageDirection.clientToServer,_.type=new f.ProtocolNotificationType(_.method),_.registrationMethod=T.method})(L||(r.DidCloseNotebookDocumentNotification=L={}))}}),Yti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InlineCompletionRequest=void 0;var t=nd(),a;(function(s){s.method="textDocument/inlineCompletion",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method),s.capabilities=t.CM.create("textDocument.inlineCompletion","inlineCompletionProvider")})(a||(r.InlineCompletionRequest=a={}))}}),Xti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TextDocumentContentRefreshRequest=r.TextDocumentContentRequest=void 0;var t=nd(),a;(function(l){l.method="workspace/textDocumentContent",l.messageDirection=t.MessageDirection.clientToServer,l.type=new t.ProtocolRequestType(l.method),l.capabilities=t.CM.create("workspace.textDocumentContent","workspace.textDocumentContent")})(a||(r.TextDocumentContentRequest=a={}));var s;(function(l){l.method="workspace/textDocumentContent/refresh",l.messageDirection=t.MessageDirection.serverToClient,l.type=new t.ProtocolRequestType(l.method)})(s||(r.TextDocumentContentRefreshRequest=s={}))}}),Kti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(qe,Rn,Mn,ct){ct===void 0&&(ct=Mn);var dr=Object.getOwnPropertyDescriptor(Rn,Mn);(!dr||("get"in dr?!Rn.__esModule:dr.writable||dr.configurable))&&(dr={enumerable:!0,get:J(function(){return Rn[Mn]},"get")}),Object.defineProperty(qe,ct,dr)}):(function(qe,Rn,Mn,ct){ct===void 0&&(ct=Mn),qe[ct]=Rn[Mn]})),a=r&&r.__setModuleDefault||(Object.create?(function(qe,Rn){Object.defineProperty(qe,"default",{enumerable:!0,value:Rn})}):function(qe,Rn){qe.default=Rn}),s=r&&r.__importStar||(function(){var qe=J(function(Rn){return qe=Object.getOwnPropertyNames||function(Mn){var ct=[];for(var dr in Mn)Object.prototype.hasOwnProperty.call(Mn,dr)&&(ct[ct.length]=dr);return ct},qe(Rn)},"ownKeys");return function(Rn){if(Rn&&Rn.__esModule)return Rn;var Mn={};if(Rn!=null)for(var ct=qe(Rn),dr=0;dr<ct.length;dr++)ct[dr]!=="default"&&t(Mn,Rn,ct[dr]);return a(Mn,Rn),Mn}})();Object.defineProperty(r,"__esModule",{value:!0}),r.CodeActionRequest=r.DocumentSymbolRequest=r.DocumentHighlightRequest=r.ReferencesRequest=r.DefinitionRequest=r.SignatureHelpRequest=r.SignatureHelpTriggerKind=r.HoverRequest=r.CompletionResolveRequest=r.CompletionRequest=r.CompletionTriggerKind=r.PublishDiagnosticsNotification=r.WatchKind=r.GlobPattern=r.RelativePattern=r.FileChangeType=r.DidChangeWatchedFilesNotification=r.WillSaveTextDocumentWaitUntilRequest=r.WillSaveTextDocumentNotification=r.TextDocumentSaveReason=r.DidSaveTextDocumentNotification=r.DidCloseTextDocumentNotification=r.DidChangeTextDocumentNotification=r.TextDocumentContentChangeEvent=r.DidOpenTextDocumentNotification=r.TextDocumentSyncKind=r.TelemetryEventNotification=r.LogMessageNotification=r.ShowMessageRequest=r.ShowMessageNotification=r.MessageType=r.DidChangeConfigurationNotification=r.ExitNotification=r.ShutdownRequest=r.InitializedNotification=r.InitializeErrorCodes=r.InitializeRequest=r.WorkDoneProgressOptions=r.TextDocumentRegistrationOptions=r.StaticRegistrationOptions=r.PositionEncodingKind=r.RegularExpressionEngineKind=r.FailureHandlingKind=r.ResourceOperationKind=r.UnregistrationRequest=r.RegistrationRequest=r.DocumentSelector=r.NotebookCellTextDocumentFilter=r.NotebookDocumentFilter=r.TextDocumentFilter=void 0,r.UniquenessLevel=r.WillDeleteFilesRequest=r.DidDeleteFilesNotification=r.WillRenameFilesRequest=r.DidRenameFilesNotification=r.WillCreateFilesRequest=r.DidCreateFilesNotification=r.FileOperationPatternKind=r.LinkedEditingRangeRequest=r.ShowDocumentRequest=r.SemanticTokensRegistrationType=r.SemanticTokensRefreshRequest=r.SemanticTokensRangeRequest=r.SemanticTokensDeltaRequest=r.SemanticTokensRequest=r.TokenFormat=r.CallHierarchyPrepareRequest=r.CallHierarchyOutgoingCallsRequest=r.CallHierarchyIncomingCallsRequest=r.WorkDoneProgressCancelNotification=r.WorkDoneProgressCreateRequest=r.WorkDoneProgress=r.SelectionRangeRequest=r.DeclarationRequest=r.FoldingRangeRefreshRequest=r.FoldingRangeRequest=r.ColorPresentationRequest=r.DocumentColorRequest=r.ConfigurationRequest=r.DidChangeWorkspaceFoldersNotification=r.WorkspaceFoldersRequest=r.TypeDefinitionRequest=r.ImplementationRequest=r.ApplyWorkspaceEditRequest=r.ExecuteCommandRequest=r.PrepareRenameRequest=r.RenameRequest=r.PrepareSupportDefaultBehavior=r.DocumentOnTypeFormattingRequest=r.DocumentRangesFormattingRequest=r.DocumentRangeFormattingRequest=r.DocumentFormattingRequest=r.DocumentLinkResolveRequest=r.DocumentLinkRequest=r.CodeLensRefreshRequest=r.CodeLensResolveRequest=r.CodeLensRequest=r.WorkspaceSymbolResolveRequest=r.WorkspaceSymbolRequest=r.CodeActionResolveRequest=void 0,r.TextDocumentContentRefreshRequest=r.TextDocumentContentRequest=r.InlineCompletionRequest=r.DidCloseNotebookDocumentNotification=r.DidSaveNotebookDocumentNotification=r.DidChangeNotebookDocumentNotification=r.NotebookCellArrayChange=r.DidOpenNotebookDocumentNotification=r.NotebookDocumentSyncRegistrationType=r.NotebookDocument=r.NotebookCell=r.ExecutionSummary=r.NotebookCellKind=r.DiagnosticRefreshRequest=r.WorkspaceDiagnosticRequest=r.DocumentDiagnosticRequest=r.DocumentDiagnosticReportKind=r.DiagnosticServerCancellationData=r.InlayHintRefreshRequest=r.InlayHintResolveRequest=r.InlayHintRequest=r.InlineValueRefreshRequest=r.InlineValueRequest=r.TypeHierarchySupertypesRequest=r.TypeHierarchySubtypesRequest=r.TypeHierarchyPrepareRequest=r.MonikerRequest=r.MonikerKind=void 0;var l=nd(),h=(n4e(),jot(r4e)),f=s(Uot()),d=Rti();Object.defineProperty(r,"ImplementationRequest",{enumerable:!0,get:J(function(){return d.ImplementationRequest},"get")});var m=Lti();Object.defineProperty(r,"TypeDefinitionRequest",{enumerable:!0,get:J(function(){return m.TypeDefinitionRequest},"get")});var b=_ti();Object.defineProperty(r,"WorkspaceFoldersRequest",{enumerable:!0,get:J(function(){return b.WorkspaceFoldersRequest},"get")}),Object.defineProperty(r,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:J(function(){return b.DidChangeWorkspaceFoldersNotification},"get")});var v=Dti();Object.defineProperty(r,"ConfigurationRequest",{enumerable:!0,get:J(function(){return v.ConfigurationRequest},"get")});var T=Iti();Object.defineProperty(r,"DocumentColorRequest",{enumerable:!0,get:J(function(){return T.DocumentColorRequest},"get")}),Object.defineProperty(r,"ColorPresentationRequest",{enumerable:!0,get:J(function(){return T.ColorPresentationRequest},"get")});var C=Mti();Object.defineProperty(r,"FoldingRangeRequest",{enumerable:!0,get:J(function(){return C.FoldingRangeRequest},"get")}),Object.defineProperty(r,"FoldingRangeRefreshRequest",{enumerable:!0,get:J(function(){return C.FoldingRangeRefreshRequest},"get")});var E=Nti();Object.defineProperty(r,"DeclarationRequest",{enumerable:!0,get:J(function(){return E.DeclarationRequest},"get")});var S=Oti();Object.defineProperty(r,"SelectionRangeRequest",{enumerable:!0,get:J(function(){return S.SelectionRangeRequest},"get")});var R=Pti();Object.defineProperty(r,"WorkDoneProgress",{enumerable:!0,get:J(function(){return R.WorkDoneProgress},"get")}),Object.defineProperty(r,"WorkDoneProgressCreateRequest",{enumerable:!0,get:J(function(){return R.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(r,"WorkDoneProgressCancelNotification",{enumerable:!0,get:J(function(){return R.WorkDoneProgressCancelNotification},"get")});var L=Bti();Object.defineProperty(r,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:J(function(){return L.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(r,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:J(function(){return L.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(r,"CallHierarchyPrepareRequest",{enumerable:!0,get:J(function(){return L.CallHierarchyPrepareRequest},"get")});var _=Fti();Object.defineProperty(r,"TokenFormat",{enumerable:!0,get:J(function(){return _.TokenFormat},"get")}),Object.defineProperty(r,"SemanticTokensRequest",{enumerable:!0,get:J(function(){return _.SemanticTokensRequest},"get")}),Object.defineProperty(r,"SemanticTokensDeltaRequest",{enumerable:!0,get:J(function(){return _.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(r,"SemanticTokensRangeRequest",{enumerable:!0,get:J(function(){return _.SemanticTokensRangeRequest},"get")}),Object.defineProperty(r,"SemanticTokensRefreshRequest",{enumerable:!0,get:J(function(){return _.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(r,"SemanticTokensRegistrationType",{enumerable:!0,get:J(function(){return _.SemanticTokensRegistrationType},"get")});var I=$ti();Object.defineProperty(r,"ShowDocumentRequest",{enumerable:!0,get:J(function(){return I.ShowDocumentRequest},"get")});var N=Gti();Object.defineProperty(r,"LinkedEditingRangeRequest",{enumerable:!0,get:J(function(){return N.LinkedEditingRangeRequest},"get")});var B=jti();Object.defineProperty(r,"FileOperationPatternKind",{enumerable:!0,get:J(function(){return B.FileOperationPatternKind},"get")}),Object.defineProperty(r,"DidCreateFilesNotification",{enumerable:!0,get:J(function(){return B.DidCreateFilesNotification},"get")}),Object.defineProperty(r,"WillCreateFilesRequest",{enumerable:!0,get:J(function(){return B.WillCreateFilesRequest},"get")}),Object.defineProperty(r,"DidRenameFilesNotification",{enumerable:!0,get:J(function(){return B.DidRenameFilesNotification},"get")}),Object.defineProperty(r,"WillRenameFilesRequest",{enumerable:!0,get:J(function(){return B.WillRenameFilesRequest},"get")}),Object.defineProperty(r,"DidDeleteFilesNotification",{enumerable:!0,get:J(function(){return B.DidDeleteFilesNotification},"get")}),Object.defineProperty(r,"WillDeleteFilesRequest",{enumerable:!0,get:J(function(){return B.WillDeleteFilesRequest},"get")});var O=zti();Object.defineProperty(r,"UniquenessLevel",{enumerable:!0,get:J(function(){return O.UniquenessLevel},"get")}),Object.defineProperty(r,"MonikerKind",{enumerable:!0,get:J(function(){return O.MonikerKind},"get")}),Object.defineProperty(r,"MonikerRequest",{enumerable:!0,get:J(function(){return O.MonikerRequest},"get")});var P=Uti();Object.defineProperty(r,"TypeHierarchyPrepareRequest",{enumerable:!0,get:J(function(){return P.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(r,"TypeHierarchySubtypesRequest",{enumerable:!0,get:J(function(){return P.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(r,"TypeHierarchySupertypesRequest",{enumerable:!0,get:J(function(){return P.TypeHierarchySupertypesRequest},"get")});var $=Vti();Object.defineProperty(r,"InlineValueRequest",{enumerable:!0,get:J(function(){return $.InlineValueRequest},"get")}),Object.defineProperty(r,"InlineValueRefreshRequest",{enumerable:!0,get:J(function(){return $.InlineValueRefreshRequest},"get")});var V=Wti();Object.defineProperty(r,"InlayHintRequest",{enumerable:!0,get:J(function(){return V.InlayHintRequest},"get")}),Object.defineProperty(r,"InlayHintResolveRequest",{enumerable:!0,get:J(function(){return V.InlayHintResolveRequest},"get")}),Object.defineProperty(r,"InlayHintRefreshRequest",{enumerable:!0,get:J(function(){return V.InlayHintRefreshRequest},"get")});var Y=Hti();Object.defineProperty(r,"DiagnosticServerCancellationData",{enumerable:!0,get:J(function(){return Y.DiagnosticServerCancellationData},"get")}),Object.defineProperty(r,"DocumentDiagnosticReportKind",{enumerable:!0,get:J(function(){return Y.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(r,"DocumentDiagnosticRequest",{enumerable:!0,get:J(function(){return Y.DocumentDiagnosticRequest},"get")}),Object.defineProperty(r,"WorkspaceDiagnosticRequest",{enumerable:!0,get:J(function(){return Y.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(r,"DiagnosticRefreshRequest",{enumerable:!0,get:J(function(){return Y.DiagnosticRefreshRequest},"get")});var Q=qti();Object.defineProperty(r,"NotebookCellKind",{enumerable:!0,get:J(function(){return Q.NotebookCellKind},"get")}),Object.defineProperty(r,"ExecutionSummary",{enumerable:!0,get:J(function(){return Q.ExecutionSummary},"get")}),Object.defineProperty(r,"NotebookCell",{enumerable:!0,get:J(function(){return Q.NotebookCell},"get")}),Object.defineProperty(r,"NotebookDocument",{enumerable:!0,get:J(function(){return Q.NotebookDocument},"get")}),Object.defineProperty(r,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:J(function(){return Q.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(r,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:J(function(){return Q.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(r,"NotebookCellArrayChange",{enumerable:!0,get:J(function(){return Q.NotebookCellArrayChange},"get")}),Object.defineProperty(r,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:J(function(){return Q.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(r,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:J(function(){return Q.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(r,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:J(function(){return Q.DidCloseNotebookDocumentNotification},"get")});var q=Yti();Object.defineProperty(r,"InlineCompletionRequest",{enumerable:!0,get:J(function(){return q.InlineCompletionRequest},"get")});var W=Xti();Object.defineProperty(r,"TextDocumentContentRequest",{enumerable:!0,get:J(function(){return W.TextDocumentContentRequest},"get")}),Object.defineProperty(r,"TextDocumentContentRefreshRequest",{enumerable:!0,get:J(function(){return W.TextDocumentContentRefreshRequest},"get")});var H;(function(qe){function Rn(Mn){let ct=Mn;return f.string(ct)||f.string(ct.language)||f.string(ct.scheme)||K.is(ct.pattern)}i(Rn,"is"),J(Rn,"is"),qe.is=Rn})(H||(r.TextDocumentFilter=H={}));var re;(function(qe){function Rn(Mn){let ct=Mn;return f.objectLiteral(ct)&&(f.string(ct.notebookType)||f.string(ct.scheme)||f.string(ct.pattern))}i(Rn,"is"),J(Rn,"is"),qe.is=Rn})(re||(r.NotebookDocumentFilter=re={}));var Z;(function(qe){function Rn(Mn){let ct=Mn;return f.objectLiteral(ct)&&(f.string(ct.notebook)||re.is(ct.notebook))&&(ct.language===void 0||f.string(ct.language))}i(Rn,"is"),J(Rn,"is"),qe.is=Rn})(Z||(r.NotebookCellTextDocumentFilter=Z={}));var X;(function(qe){function Rn(Mn){if(!Array.isArray(Mn))return!1;for(let ct of Mn)if(!f.string(ct)&&!H.is(ct)&&!Z.is(ct))return!1;return!0}i(Rn,"is"),J(Rn,"is"),qe.is=Rn})(X||(r.DocumentSelector=X={}));var te;(function(qe){qe.method="client/registerCapability",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolRequestType(qe.method)})(te||(r.RegistrationRequest=te={}));var U;(function(qe){qe.method="client/unregisterCapability",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolRequestType(qe.method)})(U||(r.UnregistrationRequest=U={}));var ne;(function(qe){qe.Create="create",qe.Rename="rename",qe.Delete="delete"})(ne||(r.ResourceOperationKind=ne={}));var se;(function(qe){qe.Abort="abort",qe.Transactional="transactional",qe.TextOnlyTransactional="textOnlyTransactional",qe.Undo="undo"})(se||(r.FailureHandlingKind=se={}));var he;(function(qe){qe.ES2020="ES2020"})(he||(r.RegularExpressionEngineKind=he={}));var le;(function(qe){qe.UTF8="utf-8",qe.UTF16="utf-16",qe.UTF32="utf-32"})(le||(r.PositionEncodingKind=le={}));var pe;(function(qe){function Rn(Mn){let ct=Mn;return ct&&f.string(ct.id)&&ct.id.length>0}i(Rn,"hasId"),J(Rn,"hasId"),qe.hasId=Rn})(pe||(r.StaticRegistrationOptions=pe={}));var ge;(function(qe){function Rn(Mn){let ct=Mn;return ct&&(ct.documentSelector===null||X.is(ct.documentSelector))}i(Rn,"is"),J(Rn,"is"),qe.is=Rn})(ge||(r.TextDocumentRegistrationOptions=ge={}));var we;(function(qe){function Rn(ct){let dr=ct;return f.objectLiteral(dr)&&(dr.workDoneProgress===void 0||f.boolean(dr.workDoneProgress))}i(Rn,"is"),J(Rn,"is"),qe.is=Rn;function Mn(ct){let dr=ct;return dr&&f.boolean(dr.workDoneProgress)}i(Mn,"hasWorkDoneProgress"),J(Mn,"hasWorkDoneProgress"),qe.hasWorkDoneProgress=Mn})(we||(r.WorkDoneProgressOptions=we={}));var Ae;(function(qe){qe.method="initialize",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method)})(Ae||(r.InitializeRequest=Ae={}));var ve;(function(qe){qe.unknownProtocolVersion=1})(ve||(r.InitializeErrorCodes=ve={}));var Ie;(function(qe){qe.method="initialized",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType(qe.method)})(Ie||(r.InitializedNotification=Ie={}));var De;(function(qe){qe.method="shutdown",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType0(qe.method)})(De||(r.ShutdownRequest=De={}));var Be;(function(qe){qe.method="exit",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType0(qe.method)})(Be||(r.ExitNotification=Be={}));var Fe;(function(qe){qe.method="workspace/didChangeConfiguration",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("workspace.didChangeConfiguration",void 0)})(Fe||(r.DidChangeConfigurationNotification=Fe={}));var ze;(function(qe){qe.Error=1,qe.Warning=2,qe.Info=3,qe.Log=4,qe.Debug=5})(ze||(r.MessageType=ze={}));var vt;(function(qe){qe.method="window/showMessage",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("window.showMessage",void 0)})(vt||(r.ShowMessageNotification=vt={}));var lt;(function(qe){qe.method="window/showMessageRequest",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("window.showMessage",void 0)})(lt||(r.ShowMessageRequest=lt={}));var Ft;(function(qe){qe.method="window/logMessage",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolNotificationType(qe.method)})(Ft||(r.LogMessageNotification=Ft={}));var pr;(function(qe){qe.method="telemetry/event",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolNotificationType(qe.method)})(pr||(r.TelemetryEventNotification=pr={}));var tr;(function(qe){qe.None=0,qe.Full=1,qe.Incremental=2})(tr||(r.TextDocumentSyncKind=tr={}));var Mt;(function(qe){qe.method="textDocument/didOpen",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("textDocument.synchronization","textDocumentSync.openClose")})(Mt||(r.DidOpenTextDocumentNotification=Mt={}));var ot;(function(qe){function Rn(ct){let dr=ct;return dr!=null&&typeof dr.text=="string"&&dr.range!==void 0&&(dr.rangeLength===void 0||typeof dr.rangeLength=="number")}i(Rn,"isIncremental"),J(Rn,"isIncremental"),qe.isIncremental=Rn;function Mn(ct){let dr=ct;return dr!=null&&typeof dr.text=="string"&&dr.range===void 0&&dr.rangeLength===void 0}i(Mn,"isFull"),J(Mn,"isFull"),qe.isFull=Mn})(ot||(r.TextDocumentContentChangeEvent=ot={}));var it;(function(qe){qe.method="textDocument/didChange",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("textDocument.synchronization","textDocumentSync")})(it||(r.DidChangeTextDocumentNotification=it={}));var mt;(function(qe){qe.method="textDocument/didClose",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("textDocument.synchronization","textDocumentSync.openClose")})(mt||(r.DidCloseTextDocumentNotification=mt={}));var Rt;(function(qe){qe.method="textDocument/didSave",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("textDocument.synchronization.didSave","textDocumentSync.save")})(Rt||(r.DidSaveTextDocumentNotification=Rt={}));var pt;(function(qe){qe.Manual=1,qe.AfterDelay=2,qe.FocusOut=3})(pt||(r.TextDocumentSaveReason=pt={}));var gt;(function(qe){qe.method="textDocument/willSave",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("textDocument.synchronization.willSave","textDocumentSync.willSave")})(gt||(r.WillSaveTextDocumentNotification=gt={}));var ut;(function(qe){qe.method="textDocument/willSaveWaitUntil",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.synchronization.willSaveWaitUntil","textDocumentSync.willSaveWaitUntil")})(ut||(r.WillSaveTextDocumentWaitUntilRequest=ut={}));var Yt;(function(qe){qe.method="workspace/didChangeWatchedFiles",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("workspace.didChangeWatchedFiles",void 0)})(Yt||(r.DidChangeWatchedFilesNotification=Yt={}));var Ye;(function(qe){qe.Created=1,qe.Changed=2,qe.Deleted=3})(Ye||(r.FileChangeType=Ye={}));var Oe;(function(qe){function Rn(Mn){let ct=Mn;return f.objectLiteral(ct)&&(h.URI.is(ct.baseUri)||h.WorkspaceFolder.is(ct.baseUri))&&f.string(ct.pattern)}i(Rn,"is"),J(Rn,"is"),qe.is=Rn})(Oe||(r.RelativePattern=Oe={}));var K;(function(qe){function Rn(Mn){let ct=Mn;return f.string(ct)||Oe.is(ct)}i(Rn,"is"),J(Rn,"is"),qe.is=Rn})(K||(r.GlobPattern=K={}));var Te;(function(qe){qe.Create=1,qe.Change=2,qe.Delete=4})(Te||(r.WatchKind=Te={}));var ce;(function(qe){qe.method="textDocument/publishDiagnostics",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolNotificationType(qe.method),qe.capabilities=l.CM.create("textDocument.publishDiagnostics",void 0)})(ce||(r.PublishDiagnosticsNotification=ce={}));var Re;(function(qe){qe.Invoked=1,qe.TriggerCharacter=2,qe.TriggerForIncompleteCompletions=3})(Re||(r.CompletionTriggerKind=Re={}));var me;(function(qe){qe.method="textDocument/completion",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.completion","completionProvider")})(me||(r.CompletionRequest=me={}));var be;(function(qe){qe.method="completionItem/resolve",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.completion.completionItem.resolveSupport","completionProvider.resolveProvider")})(be||(r.CompletionResolveRequest=be={}));var ke;(function(qe){qe.method="textDocument/hover",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.hover","hoverProvider")})(ke||(r.HoverRequest=ke={}));var We;(function(qe){qe.Invoked=1,qe.TriggerCharacter=2,qe.ContentChange=3})(We||(r.SignatureHelpTriggerKind=We={}));var Ue;(function(qe){qe.method="textDocument/signatureHelp",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.signatureHelp","signatureHelpProvider")})(Ue||(r.SignatureHelpRequest=Ue={}));var rt;(function(qe){qe.method="textDocument/definition",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.definition","definitionProvider")})(rt||(r.DefinitionRequest=rt={}));var nt;(function(qe){qe.method="textDocument/references",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.references","referencesProvider")})(nt||(r.ReferencesRequest=nt={}));var Ot;(function(qe){qe.method="textDocument/documentHighlight",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.documentHighlight","documentHighlightProvider")})(Ot||(r.DocumentHighlightRequest=Ot={}));var ft;(function(qe){qe.method="textDocument/documentSymbol",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.documentSymbol","documentSymbolProvider")})(ft||(r.DocumentSymbolRequest=ft={}));var Qt;(function(qe){qe.method="textDocument/codeAction",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.codeAction","codeActionProvider")})(Qt||(r.CodeActionRequest=Qt={}));var $t;(function(qe){qe.method="codeAction/resolve",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.codeAction.resolveSupport","codeActionProvider.resolveProvider")})($t||(r.CodeActionResolveRequest=$t={}));var qt;(function(qe){qe.method="workspace/symbol",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("workspace.symbol","workspaceSymbolProvider")})(qt||(r.WorkspaceSymbolRequest=qt={}));var Gt;(function(qe){qe.method="workspaceSymbol/resolve",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("workspace.symbol.resolveSupport","workspaceSymbolProvider.resolveProvider")})(Gt||(r.WorkspaceSymbolResolveRequest=Gt={}));var jt;(function(qe){qe.method="textDocument/codeLens",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.codeLens","codeLensProvider")})(jt||(r.CodeLensRequest=jt={}));var Zr;(function(qe){qe.method="codeLens/resolve",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.codeLens.resolveSupport","codeLensProvider.resolveProvider")})(Zr||(r.CodeLensResolveRequest=Zr={}));var yt;(function(qe){qe.method="workspace/codeLens/refresh",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolRequestType0(qe.method),qe.capabilities=l.CM.create("workspace.codeLens",void 0)})(yt||(r.CodeLensRefreshRequest=yt={}));var $n;(function(qe){qe.method="textDocument/documentLink",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.documentLink","documentLinkProvider")})($n||(r.DocumentLinkRequest=$n={}));var Ut;(function(qe){qe.method="documentLink/resolve",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.documentLink","documentLinkProvider.resolveProvider")})(Ut||(r.DocumentLinkResolveRequest=Ut={}));var An;(function(qe){qe.method="textDocument/formatting",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.formatting","documentFormattingProvider")})(An||(r.DocumentFormattingRequest=An={}));var Un;(function(qe){qe.method="textDocument/rangeFormatting",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.rangeFormatting","documentRangeFormattingProvider")})(Un||(r.DocumentRangeFormattingRequest=Un={}));var En;(function(qe){qe.method="textDocument/rangesFormatting",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.rangeFormatting.rangesSupport","documentRangeFormattingProvider.rangesSupport")})(En||(r.DocumentRangesFormattingRequest=En={}));var ai;(function(qe){qe.method="textDocument/onTypeFormatting",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.onTypeFormatting","documentOnTypeFormattingProvider")})(ai||(r.DocumentOnTypeFormattingRequest=ai={}));var Gn;(function(qe){qe.Identifier=1})(Gn||(r.PrepareSupportDefaultBehavior=Gn={}));var ui;(function(qe){qe.method="textDocument/rename",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.rename","renameProvider")})(ui||(r.RenameRequest=ui={}));var Tn;(function(qe){qe.method="textDocument/prepareRename",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("textDocument.rename.prepareSupport","renameProvider.prepareProvider")})(Tn||(r.PrepareRenameRequest=Tn={}));var Wi;(function(qe){qe.method="workspace/executeCommand",qe.messageDirection=l.MessageDirection.clientToServer,qe.type=new l.ProtocolRequestType(qe.method),qe.capabilities=l.CM.create("workspace.executeCommand","executeCommandProvider")})(Wi||(r.ExecuteCommandRequest=Wi={}));var Pa;(function(qe){qe.method="workspace/applyEdit",qe.messageDirection=l.MessageDirection.serverToClient,qe.type=new l.ProtocolRequestType("workspace/applyEdit"),qe.capabilities=l.CM.create("workspace.applyEdit",void 0)})(Pa||(r.ApplyWorkspaceEditRequest=Pa={}))}}),Jti=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createProtocolConnection=a;var t=Cae();function a(s,l,h,f){return t.ConnectionStrategy.is(f)&&(f={connectionStrategy:f}),(0,t.createMessageConnection)(s,l,h,f)}i(a,"createProtocolConnection"),J(a,"createProtocolConnection")}}),Vot=Cl({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/api.js"(r){"use strict";var t=r&&r.__createBinding||(Object.create?(function(h,f,d,m){m===void 0&&(m=d);var b=Object.getOwnPropertyDescriptor(f,d);(!b||("get"in b?!f.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:J(function(){return f[d]},"get")}),Object.defineProperty(h,m,b)}):(function(h,f,d,m){m===void 0&&(m=d),h[m]=f[d]})),a=r&&r.__exportStar||function(h,f){for(var d in h)d!=="default"&&!Object.prototype.hasOwnProperty.call(f,d)&&t(f,h,d)};Object.defineProperty(r,"__esModule",{value:!0}),r.LSPErrorCodes=r.createProtocolConnection=void 0,a(Cae(),r),a((n4e(),jot(r4e)),r),a(nd(),r),a(Kti(),r);var s=Jti();Object.defineProperty(r,"createProtocolConnection",{enumerable:!0,get:J(function(){return s.createProtocolConnection},"get")});var l;(function(h){h.lspReservedErrorRangeStart=-32899,h.RequestFailed=-32803,h.ServerCancelled=-32802,h.ContentModified=-32801,h.RequestCancelled=-32800,h.lspReservedErrorRangeEnd=-32800})(l||(r.LSPErrorCodes=l={}))}});i(Lm,"isAstNode");J(Lm,"isAstNode");i(ok,"isReference");J(ok,"isReference");i(c8,"isMultiReference");J(c8,"isMultiReference");i($_r,"isAstNodeDescription");J($_r,"isAstNodeDescription");i(UV,"isLinkingError");J(UV,"isLinkingError");G_r=class{static{i(this,"AbstractAstReflection")}static{J(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(r){let t=this.types[r.container.$type];if(!t)throw new Error(`Type ${r.container.$type||"undefined"} not found.`);let a=t.properties[r.property]?.referenceType;if(!a)throw new Error(`Property ${r.property||"undefined"} of type ${r.container.$type} is not a reference.`);return a}getTypeMetaData(r){let t=this.types[r];return t||{name:r,properties:{},superTypes:[]}}isInstance(r,t){return Lm(r)&&this.isSubtype(r.$type,t)}isSubtype(r,t){if(r===t)return!0;let a=this.subtypes[r];a||(a=this.subtypes[r]={});let s=a[t];if(s!==void 0)return s;{let l=this.types[r],h=l?l.superTypes.some(f=>this.isSubtype(f,t)):!1;return a[t]=h,h}}getAllSubTypes(r){let t=this.allSubtypes[r];if(t)return t;{let a=this.getAllTypes(),s=[];for(let l of a)this.isSubtype(l,r)&&s.push(l);return this.allSubtypes[r]=s,s}}isComplete(r){let t=this.getTypeMetaData(r.$type);for(let a of Object.keys(t.properties)){let s=t.properties[a];if(s.optional)continue;let l=r[s.name];if(l==null)return!1}return!0}};i(KV,"isCompositeCstNode");J(KV,"isCompositeCstNode");i(Wot,"isLeafCstNode");J(Wot,"isLeafCstNode");i(Hot,"isRootCstNode");J(Hot,"isRootCstNode");vD=class n8{static{i(this,"_StreamImpl")}static{J(this,"StreamImpl")}constructor(t,a){this.startFn=t,this.nextFn=a}iterator(){let t={state:this.startFn(),next:J(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let t=this.iterator(),a=0,s=t.next();for(;!s.done;)a++,s=t.next();return a}toArray(){let t=[],a=this.iterator(),s;do s=a.next(),s.value!==void 0&&t.push(s.value);while(!s.done);return t}toSet(){return new Set(this)}toMap(t,a){let s=this.map(l=>[t?t(l):l,a?a(l):l]);return new Map(s)}toString(){return this.join()}concat(t){return new n8(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),a=>{let s;if(!a.firstDone){do if(s=this.nextFn(a.first),!s.done)return s;while(!s.done);a.firstDone=!0}do if(s=a.iterator.next(),!s.done)return s;while(!s.done);return lx})}join(t=","){let a=this.iterator(),s="",l,h=!1;do l=a.next(),l.done||(h&&(s+=t),s+=j_r(l.value)),h=!0;while(!l.done);return s}indexOf(t,a=0){let s=this.iterator(),l=0,h=s.next();for(;!h.done;){if(l>=a&&h.value===t)return l;h=s.next(),l++}return-1}every(t){let a=this.iterator(),s=a.next();for(;!s.done;){if(!t(s.value))return!1;s=a.next()}return!0}some(t){let a=this.iterator(),s=a.next();for(;!s.done;){if(t(s.value))return!0;s=a.next()}return!1}forEach(t){let a=this.iterator(),s=0,l=a.next();for(;!l.done;)t(l.value,s),l=a.next(),s++}map(t){return new n8(this.startFn,a=>{let{done:s,value:l}=this.nextFn(a);return s?lx:{done:!1,value:t(l)}})}filter(t){return new n8(this.startFn,a=>{let s;do if(s=this.nextFn(a),!s.done&&t(s.value))return s;while(!s.done);return lx})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,a){let s=this.iterator(),l=a,h=s.next();for(;!h.done;)l===void 0?l=h.value:l=t(l,h.value),h=s.next();return l}reduceRight(t,a){return this.recursiveReduce(this.iterator(),t,a)}recursiveReduce(t,a,s){let l=t.next();if(l.done)return s;let h=this.recursiveReduce(t,a,s);return h===void 0?l.value:a(h,l.value)}find(t){let a=this.iterator(),s=a.next();for(;!s.done;){if(t(s.value))return s.value;s=a.next()}}findIndex(t){let a=this.iterator(),s=0,l=a.next();for(;!l.done;){if(t(l.value))return s;l=a.next(),s++}return-1}includes(t){let a=this.iterator(),s=a.next();for(;!s.done;){if(s.value===t)return!0;s=a.next()}return!1}flatMap(t){return new n8(()=>({this:this.startFn()}),a=>{do{if(a.iterator){let h=a.iterator.next();if(h.done)a.iterator=void 0;else return h}let{done:s,value:l}=this.nextFn(a.this);if(!s){let h=t(l);if(oae(h))a.iterator=h[Symbol.iterator]();else return{done:!1,value:h}}}while(a.iterator);return lx})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let a=t>1?this.flat(t-1):this;return new n8(()=>({this:a.startFn()}),s=>{do{if(s.iterator){let f=s.iterator.next();if(f.done)s.iterator=void 0;else return f}let{done:l,value:h}=a.nextFn(s.this);if(!l)if(oae(h))s.iterator=h[Symbol.iterator]();else return{done:!1,value:h}}while(s.iterator);return lx})}head(){let a=this.iterator().next();if(!a.done)return a.value}tail(t=1){return new n8(()=>{let a=this.startFn();for(let s=0;s<t;s++)if(this.nextFn(a).done)return a;return a},this.nextFn)}limit(t){return new n8(()=>({size:0,state:this.startFn()}),a=>(a.size++,a.size>t?lx:this.nextFn(a.state)))}distinct(t){return new n8(()=>({set:new Set,internalState:this.startFn()}),a=>{let s;do if(s=this.nextFn(a.internalState),!s.done){let l=t?t(s.value):s.value;if(!a.set.has(l))return a.set.add(l),s}while(!s.done);return lx})}exclude(t,a){let s=new Set;for(let l of t){let h=a?a(l):l;s.add(h)}return this.filter(l=>{let h=a?a(l):l;return!s.has(h)})}};i(j_r,"toString");J(j_r,"toString");i(oae,"isIterable");J(oae,"isIterable");z_r=new vD(()=>{},()=>lx),lx=Object.freeze({done:!0,value:void 0});i(rd,"stream");J(rd,"stream");O3e=class extends vD{static{i(this,"TreeStreamImpl")}static{J(this,"TreeStreamImpl")}constructor(r,t,a){super(()=>({iterators:a?.includeRoot?[[r][Symbol.iterator]()]:[t(r)[Symbol.iterator]()],pruned:!1}),s=>{for(s.pruned&&(s.iterators.pop(),s.pruned=!1);s.iterators.length>0;){let h=s.iterators[s.iterators.length-1].next();if(h.done)s.iterators.pop();else return s.iterators.push(t(h.value)[Symbol.iterator]()),h}return lx})}iterator(){let r={state:this.startFn(),next:J(()=>this.nextFn(r.state),"next"),prune:J(()=>{r.state.pruned=!0},"prune"),[Symbol.iterator]:()=>r};return r}};(function(r){function t(h){return h.reduce((f,d)=>f+d,0)}i(t,"sum"),J(t,"sum"),r.sum=t;function a(h){return h.reduce((f,d)=>f*d,0)}i(a,"product"),J(a,"product"),r.product=a;function s(h){return h.reduce((f,d)=>Math.min(f,d))}i(s,"min2"),J(s,"min"),r.min=s;function l(h){return h.reduce((f,d)=>Math.max(f,d))}i(l,"max"),J(l,"max"),r.max=l})(Zat||(Zat={}));i(P3e,"linkContentToContainer");J(P3e,"linkContentToContainer");i(Eae,"getContainerOfType");J(Eae,"getContainerOfType");i(US,"getDocument");J(US,"getDocument");i(Zie,"findRootNode");J(Zie,"findRootNode");i(est,"getReferenceNodes");J(est,"getReferenceNodes");i(i4e,"streamContents");J(i4e,"streamContents");i(tW,"streamAllContents");J(tW,"streamAllContents");i(VS,"streamAst");J(VS,"streamAst");i(B3e,"isAstNodeInRange");J(B3e,"isAstNodeInRange");i(lae,"streamReferences");J(lae,"streamReferences");i(U_r,"assignMandatoryProperties");J(U_r,"assignMandatoryProperties");i(qot,"copyDefaultValue");J(qot,"copyDefaultValue");ox={$type:"AbstractElement",cardinality:"cardinality"};i(V_r,"isAbstractElement");J(V_r,"isAbstractElement");o3e={$type:"AbstractParserRule"};i(rW,"isAbstractParserRule");J(rW,"isAbstractParserRule");Ike={$type:"AbstractRule"},X4={$type:"AbstractType"},MP={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};i(Sae,"isAction");J(Sae,"isAction");l3e={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};i(Yot,"isAlternatives");J(Yot,"isAlternatives");hLr={$type:"ArrayLiteral",elements:"elements"},fLr={$type:"ArrayType",elementType:"elementType"},NP={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};i(wD,"isAssignment");J(wD,"isAssignment");tst={$type:"BooleanLiteral",true:"true"};i(W_r,"isBooleanLiteral");J(W_r,"isBooleanLiteral");OP={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};i(H_r,"isCharacterRange");J(H_r,"isCharacterRange");kV={$type:"Condition"},c3e={$type:"Conjunction",left:"left",right:"right"};i(q_r,"isConjunction");J(q_r,"isConjunction");PP={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};i(Aae,"isCrossReference");J(Aae,"isCrossReference");u3e={$type:"Disjunction",left:"left",right:"right"};i(Y_r,"isDisjunction");J(Y_r,"isDisjunction");rst={$type:"EndOfFile",cardinality:"cardinality"};i(X_r,"isEndOfFile");J(X_r,"isEndOfFile");RP={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"},dLr={$type:"GrammarImport",path:"path"},_V={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};i(a4e,"isGroup");J(a4e,"isGroup");nst={$type:"InferredType",name:"name"};i(Xot,"isInferredType");J(Xot,"isInferredType");i8={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};i(cae,"isInfixRule");J(cae,"isInfixRule");_it={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"},pLr={$type:"InfixRuleOperators",precedences:"precedences"},Vie={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};i(K_r,"isInterface");J(K_r,"isInterface");Wie={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};i(xD,"isKeyword");J(xD,"isKeyword");Mke={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"},DV={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};i(J_r,"isNegatedToken");J(J_r,"isNegatedToken");ist={$type:"Negation",value:"value"};i(Q_r,"isNegation");J(Q_r,"isNegation");gLr={$type:"NumberLiteral",value:"value"},Nke={$type:"Parameter",name:"name"},ast={$type:"ParameterReference",parameter:"parameter"};i(Z_r,"isParameterReference");J(Z_r,"isParameterReference");GS={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};i(qS,"isParserRule");J(qS,"isParserRule");Dit={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"},IV={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};i(eDr,"isRegexToken");J(eDr,"isRegexToken");sst={$type:"ReturnType",name:"name"};i(tDr,"isReturnType");J(tDr,"isReturnType");MV={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};i(TD,"isRuleCall");J(TD,"isRuleCall");Hie={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};i(rDr,"isSimpleType");J(rDr,"isSimpleType");mLr={$type:"StringLiteral",value:"value"},NV={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};i(nDr,"isTerminalAlternatives");J(nDr,"isTerminalAlternatives");sk={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},OV={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};i(iDr,"isTerminalGroup");J(iDr,"isTerminalGroup");fD={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};i(YS,"isTerminalRule");J(YS,"isTerminalRule");PV={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};i(Kot,"isTerminalRuleCall");J(Kot,"isTerminalRuleCall");h3e={$type:"Type",name:"name",type:"type"};i(aDr,"isType");J(aDr,"isType");Aie={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"},Rie={$type:"TypeDefinition"},yLr={$type:"UnionType",types:"types"},f3e={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};i(Jot,"isUnorderedGroup");J(Jot,"isUnorderedGroup");BV={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};i(sDr,"isUntilToken");J(sDr,"isUntilToken");Lie={$type:"ValueLiteral"},qie={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};i(oDr,"isWildcard");J(oDr,"isWildcard");lDr=class extends G_r{static{i(this,"LangiumGrammarAstReflection")}static{J(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments),this.types={AbstractElement:{name:ox.$type,properties:{cardinality:{name:ox.cardinality,optional:!0}},superTypes:[]},AbstractParserRule:{name:o3e.$type,properties:{},superTypes:[Ike.$type,X4.$type]},AbstractRule:{name:Ike.$type,properties:{},superTypes:[]},AbstractType:{name:X4.$type,properties:{},superTypes:[]},Action:{name:MP.$type,properties:{cardinality:{name:MP.cardinality,optional:!0},feature:{name:MP.feature,optional:!0},inferredType:{name:MP.inferredType,optional:!0},operator:{name:MP.operator,optional:!0},type:{name:MP.type,referenceType:X4.$type,optional:!0}},superTypes:[ox.$type]},Alternatives:{name:l3e.$type,properties:{cardinality:{name:l3e.cardinality,optional:!0},elements:{name:l3e.elements,defaultValue:[]}},superTypes:[ox.$type]},ArrayLiteral:{name:hLr.$type,properties:{elements:{name:hLr.elements,defaultValue:[]}},superTypes:[Lie.$type]},ArrayType:{name:fLr.$type,properties:{elementType:{name:fLr.elementType}},superTypes:[Rie.$type]},Assignment:{name:NP.$type,properties:{cardinality:{name:NP.cardinality,optional:!0},feature:{name:NP.feature},operator:{name:NP.operator},predicate:{name:NP.predicate,optional:!0},terminal:{name:NP.terminal}},superTypes:[ox.$type]},BooleanLiteral:{name:tst.$type,properties:{true:{name:tst.true,defaultValue:!1}},superTypes:[kV.$type,Lie.$type]},CharacterRange:{name:OP.$type,properties:{cardinality:{name:OP.cardinality,optional:!0},left:{name:OP.left},lookahead:{name:OP.lookahead,optional:!0},parenthesized:{name:OP.parenthesized,defaultValue:!1,optional:!0},right:{name:OP.right,optional:!0}},superTypes:[sk.$type]},Condition:{name:kV.$type,properties:{},superTypes:[]},Conjunction:{name:c3e.$type,properties:{left:{name:c3e.left},right:{name:c3e.right}},superTypes:[kV.$type]},CrossReference:{name:PP.$type,properties:{cardinality:{name:PP.cardinality,optional:!0},deprecatedSyntax:{name:PP.deprecatedSyntax,defaultValue:!1},isMulti:{name:PP.isMulti,defaultValue:!1},terminal:{name:PP.terminal,optional:!0},type:{name:PP.type,referenceType:X4.$type}},superTypes:[ox.$type]},Disjunction:{name:u3e.$type,properties:{left:{name:u3e.left},right:{name:u3e.right}},superTypes:[kV.$type]},EndOfFile:{name:rst.$type,properties:{cardinality:{name:rst.cardinality,optional:!0}},superTypes:[ox.$type]},Grammar:{name:RP.$type,properties:{imports:{name:RP.imports,defaultValue:[]},interfaces:{name:RP.interfaces,defaultValue:[]},isDeclared:{name:RP.isDeclared,defaultValue:!1},name:{name:RP.name,optional:!0},rules:{name:RP.rules,defaultValue:[]},types:{name:RP.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:dLr.$type,properties:{path:{name:dLr.path}},superTypes:[]},Group:{name:_V.$type,properties:{cardinality:{name:_V.cardinality,optional:!0},elements:{name:_V.elements,defaultValue:[]},guardCondition:{name:_V.guardCondition,optional:!0},predicate:{name:_V.predicate,optional:!0}},superTypes:[ox.$type]},InferredType:{name:nst.$type,properties:{name:{name:nst.name}},superTypes:[X4.$type]},InfixRule:{name:i8.$type,properties:{call:{name:i8.call},dataType:{name:i8.dataType,optional:!0},inferredType:{name:i8.inferredType,optional:!0},name:{name:i8.name},operators:{name:i8.operators},parameters:{name:i8.parameters,defaultValue:[]},returnType:{name:i8.returnType,referenceType:X4.$type,optional:!0}},superTypes:[o3e.$type]},InfixRuleOperatorList:{name:_it.$type,properties:{associativity:{name:_it.associativity,optional:!0},operators:{name:_it.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:pLr.$type,properties:{precedences:{name:pLr.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Vie.$type,properties:{attributes:{name:Vie.attributes,defaultValue:[]},name:{name:Vie.name},superTypes:{name:Vie.superTypes,defaultValue:[],referenceType:X4.$type}},superTypes:[X4.$type]},Keyword:{name:Wie.$type,properties:{cardinality:{name:Wie.cardinality,optional:!0},predicate:{name:Wie.predicate,optional:!0},value:{name:Wie.value}},superTypes:[ox.$type]},NamedArgument:{name:Mke.$type,properties:{calledByName:{name:Mke.calledByName,defaultValue:!1},parameter:{name:Mke.parameter,referenceType:Nke.$type,optional:!0},value:{name:Mke.value}},superTypes:[]},NegatedToken:{name:DV.$type,properties:{cardinality:{name:DV.cardinality,optional:!0},lookahead:{name:DV.lookahead,optional:!0},parenthesized:{name:DV.parenthesized,defaultValue:!1,optional:!0},terminal:{name:DV.terminal}},superTypes:[sk.$type]},Negation:{name:ist.$type,properties:{value:{name:ist.value}},superTypes:[kV.$type]},NumberLiteral:{name:gLr.$type,properties:{value:{name:gLr.value}},superTypes:[Lie.$type]},Parameter:{name:Nke.$type,properties:{name:{name:Nke.name}},superTypes:[]},ParameterReference:{name:ast.$type,properties:{parameter:{name:ast.parameter,referenceType:Nke.$type}},superTypes:[kV.$type]},ParserRule:{name:GS.$type,properties:{dataType:{name:GS.dataType,optional:!0},definition:{name:GS.definition},entry:{name:GS.entry,defaultValue:!1},fragment:{name:GS.fragment,defaultValue:!1},inferredType:{name:GS.inferredType,optional:!0},name:{name:GS.name},parameters:{name:GS.parameters,defaultValue:[]},returnType:{name:GS.returnType,referenceType:X4.$type,optional:!0}},superTypes:[o3e.$type]},ReferenceType:{name:Dit.$type,properties:{isMulti:{name:Dit.isMulti,defaultValue:!1},referenceType:{name:Dit.referenceType}},superTypes:[Rie.$type]},RegexToken:{name:IV.$type,properties:{cardinality:{name:IV.cardinality,optional:!0},lookahead:{name:IV.lookahead,optional:!0},parenthesized:{name:IV.parenthesized,defaultValue:!1,optional:!0},regex:{name:IV.regex}},superTypes:[sk.$type]},ReturnType:{name:sst.$type,properties:{name:{name:sst.name}},superTypes:[]},RuleCall:{name:MV.$type,properties:{arguments:{name:MV.arguments,defaultValue:[]},cardinality:{name:MV.cardinality,optional:!0},predicate:{name:MV.predicate,optional:!0},rule:{name:MV.rule,referenceType:Ike.$type}},superTypes:[ox.$type]},SimpleType:{name:Hie.$type,properties:{primitiveType:{name:Hie.primitiveType,optional:!0},stringType:{name:Hie.stringType,optional:!0},typeRef:{name:Hie.typeRef,referenceType:X4.$type,optional:!0}},superTypes:[Rie.$type]},StringLiteral:{name:mLr.$type,properties:{value:{name:mLr.value}},superTypes:[Lie.$type]},TerminalAlternatives:{name:NV.$type,properties:{cardinality:{name:NV.cardinality,optional:!0},elements:{name:NV.elements,defaultValue:[]},lookahead:{name:NV.lookahead,optional:!0},parenthesized:{name:NV.parenthesized,defaultValue:!1,optional:!0}},superTypes:[sk.$type]},TerminalElement:{name:sk.$type,properties:{cardinality:{name:sk.cardinality,optional:!0},lookahead:{name:sk.lookahead,optional:!0},parenthesized:{name:sk.parenthesized,defaultValue:!1,optional:!0}},superTypes:[ox.$type]},TerminalGroup:{name:OV.$type,properties:{cardinality:{name:OV.cardinality,optional:!0},elements:{name:OV.elements,defaultValue:[]},lookahead:{name:OV.lookahead,optional:!0},parenthesized:{name:OV.parenthesized,defaultValue:!1,optional:!0}},superTypes:[sk.$type]},TerminalRule:{name:fD.$type,properties:{definition:{name:fD.definition},fragment:{name:fD.fragment,defaultValue:!1},hidden:{name:fD.hidden,defaultValue:!1},name:{name:fD.name},type:{name:fD.type,optional:!0}},superTypes:[Ike.$type]},TerminalRuleCall:{name:PV.$type,properties:{cardinality:{name:PV.cardinality,optional:!0},lookahead:{name:PV.lookahead,optional:!0},parenthesized:{name:PV.parenthesized,defaultValue:!1,optional:!0},rule:{name:PV.rule,referenceType:fD.$type}},superTypes:[sk.$type]},Type:{name:h3e.$type,properties:{name:{name:h3e.name},type:{name:h3e.type}},superTypes:[X4.$type]},TypeAttribute:{name:Aie.$type,properties:{defaultValue:{name:Aie.defaultValue,optional:!0},isOptional:{name:Aie.isOptional,defaultValue:!1},name:{name:Aie.name},type:{name:Aie.type}},superTypes:[]},TypeDefinition:{name:Rie.$type,properties:{},superTypes:[]},UnionType:{name:yLr.$type,properties:{types:{name:yLr.types,defaultValue:[]}},superTypes:[Rie.$type]},UnorderedGroup:{name:f3e.$type,properties:{cardinality:{name:f3e.cardinality,optional:!0},elements:{name:f3e.elements,defaultValue:[]}},superTypes:[ox.$type]},UntilToken:{name:BV.$type,properties:{cardinality:{name:BV.cardinality,optional:!0},lookahead:{name:BV.lookahead,optional:!0},parenthesized:{name:BV.parenthesized,defaultValue:!1,optional:!0},terminal:{name:BV.terminal}},superTypes:[sk.$type]},ValueLiteral:{name:Lie.$type,properties:{},superTypes:[]},Wildcard:{name:qie.$type,properties:{cardinality:{name:qie.cardinality,optional:!0},lookahead:{name:qie.lookahead,optional:!0},parenthesized:{name:qie.parenthesized,defaultValue:!1,optional:!0}},superTypes:[sk.$type]}}}},uu=new lDr;i(F3e,"streamCst");J(F3e,"streamCst");i(cDr,"isChildNode");J(cDr,"isChildNode");i(uDr,"tokenToRange");J(uDr,"tokenToRange");i($3e,"isValidTokenRange");J($3e,"isValidTokenRange");i(uae,"toDocumentSegment");J(uae,"toDocumentSegment");(function(r){r[r.Before=0]="Before",r[r.After=1]="After",r[r.OverlapFront=2]="OverlapFront",r[r.OverlapBack=3]="OverlapBack",r[r.Inside=4]="Inside",r[r.Outside=5]="Outside"})(o8||(o8={}));i(hDr,"compareRange");J(hDr,"compareRange");i(fDr,"inRange");J(fDr,"inRange");Qti=/^[\w\p{L}]$/u;i(dDr,"findCommentNode");J(dDr,"findCommentNode");i(ost,"isCommentNode");J(ost,"isCommentNode");i(pDr,"getPreviousNode");J(pDr,"getPreviousNode");gDr=class extends Error{static{i(this,"ErrorWithLocation")}static{J(this,"ErrorWithLocation")}constructor(r,t){let a=typeof t=="string"?t:t();super(r?`${a} at ${r.range.start.line}:${r.range.start.character}`:a)}};i(nW,"assertUnreachable");J(nW,"assertUnreachable");i(Eo,"cc");J(Eo,"cc");i(d3e,"insertToSet");J(d3e,"insertToSet");i(FV,"addFlag");J(FV,"addFlag");i(BP,"ASSERT_EXISTS");J(BP,"ASSERT_EXISTS");i(Yie,"ASSERT_NEVER_REACH_HERE");J(Yie,"ASSERT_NEVER_REACH_HERE");i(lst,"isCharacter");J(lst,"isCharacter");G3e=[];for(let r=Eo("0");r<=Eo("9");r++)G3e.push(r);j3e=[Eo("_")].concat(G3e);for(let r=Eo("a");r<=Eo("z");r++)j3e.push(r);for(let r=Eo("A");r<=Eo("Z");r++)j3e.push(r);bLr=[Eo(" "),Eo("\f"),Eo(`
|
|
`),Eo("\r"),Eo(" "),Eo("\v"),Eo(" "),Eo("\xA0"),Eo("\u1680"),Eo("\u2000"),Eo("\u2001"),Eo("\u2002"),Eo("\u2003"),Eo("\u2004"),Eo("\u2005"),Eo("\u2006"),Eo("\u2007"),Eo("\u2008"),Eo("\u2009"),Eo("\u200A"),Eo("\u2028"),Eo("\u2029"),Eo("\u202F"),Eo("\u205F"),Eo("\u3000"),Eo("\uFEFF")],Zti=/[0-9a-fA-F]/,Oke=/[0-9]/,eri=/[1-9]/,mDr=class{static{i(this,"RegExpParser")}static{J(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(r){this.idx=r.idx,this.input=r.input,this.groupIdx=r.groupIdx}pattern(r){this.idx=0,this.input=r,this.groupIdx=0,this.consumeChar("/");let t=this.disjunction();this.consumeChar("/");let a={type:"Flags",loc:{begin:this.idx,end:r.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":FV(a,"global");break;case"i":FV(a,"ignoreCase");break;case"m":FV(a,"multiLine");break;case"u":FV(a,"unicode");break;case"y":FV(a,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:a,value:t,loc:this.loc(0)}}disjunction(){let r=[],t=this.idx;for(r.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),r.push(this.alternative());return{type:"Disjunction",value:r,loc:this.loc(t)}}alternative(){let r=[],t=this.idx;for(;this.isTerm();)r.push(this.term());return{type:"Alternative",value:r,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let r=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(r)};case"$":return{type:"EndAnchor",loc:this.loc(r)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(r)};case"B":return{type:"NonWordBoundary",loc:this.loc(r)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}BP(t);let a=this.disjunction();return this.consumeChar(")"),{type:t,value:a,loc:this.loc(r)}}return Yie()}quantifier(r=!1){let t,a=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":let s=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:s,atMost:s};break;case",":let l;this.isDigit()?(l=this.integerIncludingZero(),t={atLeast:s,atMost:l}):t={atLeast:s,atMost:1/0},this.consumeChar("}");break}if(r===!0&&t===void 0)return;BP(t);break}if(!(r===!0&&t===void 0)&&BP(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(a),t}atom(){let r,t=this.idx;switch(this.peekChar()){case".":r=this.dotAll();break;case"\\":r=this.atomEscape();break;case"[":r=this.characterClass();break;case"(":r=this.group();break}return r===void 0&&this.isPatternCharacter()&&(r=this.patternCharacter()),BP(r)?(r.loc=this.loc(t),this.isQuantifier()&&(r.quantifier=this.quantifier()),r):Yie()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Eo(`
|
|
`),Eo("\r"),Eo("\u2028"),Eo("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let r,t=!1;switch(this.popChar()){case"d":r=G3e;break;case"D":r=G3e,t=!0;break;case"s":r=bLr;break;case"S":r=bLr,t=!0;break;case"w":r=j3e;break;case"W":r=j3e,t=!0;break}return BP(r)?{type:"Set",value:r,complement:t}:Yie()}controlEscapeAtom(){let r;switch(this.popChar()){case"f":r=Eo("\f");break;case"n":r=Eo(`
|
|
`);break;case"r":r=Eo("\r");break;case"t":r=Eo(" ");break;case"v":r=Eo("\v");break}return BP(r)?{type:"Character",value:r}:Yie()}controlLetterEscapeAtom(){this.consumeChar("c");let r=this.popChar();if(/[a-zA-Z]/.test(r)===!1)throw Error("Invalid ");return{type:"Character",value:r.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Eo("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let r=this.popChar();return{type:"Character",value:Eo(r)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let r=this.popChar();return{type:"Character",value:Eo(r)}}}characterClass(){let r=[],t=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let a=this.classAtom(),s=a.type==="Character";if(lst(a)&&this.isRangeDash()){this.consumeChar("-");let l=this.classAtom(),h=l.type==="Character";if(lst(l)){if(l.value<a.value)throw Error("Range out of order in character class");r.push({from:a.value,to:l.value})}else d3e(a.value,r),r.push(Eo("-")),d3e(l.value,r)}else d3e(a.value,r)}return this.consumeChar("]"),{type:"Set",complement:t,value:r}}classAtom(){switch(this.peekChar()){case"]":case`
|
|
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:Eo("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let r=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),r=!1):this.groupIdx++;let t=this.disjunction();this.consumeChar(")");let a={type:"Group",capturing:r,value:t};return r&&(a.idx=this.groupIdx),a}positiveInteger(){let r=this.popChar();if(eri.test(r)===!1)throw Error("Expecting a positive integer");for(;Oke.test(this.peekChar(0));)r+=this.popChar();return parseInt(r,10)}integerIncludingZero(){let r=this.popChar();if(Oke.test(r)===!1)throw Error("Expecting an integer");for(;Oke.test(this.peekChar(0));)r+=this.popChar();return parseInt(r,10)}patternCharacter(){let r=this.popChar();switch(r){case`
|
|
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:Eo(r)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return Oke.test(this.peekChar(0))}isClassAtom(r=0){switch(this.peekChar(r)){case"]":case`
|
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){let r=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(r)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(r){let t="";for(let s=0;s<r;s++){let l=this.popChar();if(Zti.test(l)===!1)throw Error("Expecting a HexDecimal digits");t+=l}return{type:"Character",value:parseInt(t,16)}}peekChar(r=0){return this.input[this.idx+r]}popChar(){let r=this.peekChar(0);return this.consumeChar(void 0),r}consumeChar(r){if(r!==void 0&&this.input[this.idx]!==r)throw Error("Expected: '"+r+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(r){return{begin:r,end:this.idx}}},s4e=class{static{i(this,"BaseRegExpVisitor")}static{J(this,"BaseRegExpVisitor")}visitChildren(r){for(let t in r){let a=r[t];r.hasOwnProperty(t)&&(a.type!==void 0?this.visit(a):Array.isArray(a)&&a.forEach(s=>{this.visit(s)},this))}}visit(r){switch(r.type){case"Pattern":this.visitPattern(r);break;case"Flags":this.visitFlags(r);break;case"Disjunction":this.visitDisjunction(r);break;case"Alternative":this.visitAlternative(r);break;case"StartAnchor":this.visitStartAnchor(r);break;case"EndAnchor":this.visitEndAnchor(r);break;case"WordBoundary":this.visitWordBoundary(r);break;case"NonWordBoundary":this.visitNonWordBoundary(r);break;case"Lookahead":this.visitLookahead(r);break;case"NegativeLookahead":this.visitNegativeLookahead(r);break;case"Lookbehind":this.visitLookbehind(r);break;case"NegativeLookbehind":this.visitNegativeLookbehind(r);break;case"Character":this.visitCharacter(r);break;case"Set":this.visitSet(r);break;case"Group":this.visitGroup(r);break;case"GroupBackReference":this.visitGroupBackReference(r);break;case"Quantifier":this.visitQuantifier(r);break}this.visitChildren(r)}visitPattern(r){}visitFlags(r){}visitDisjunction(r){}visitAlternative(r){}visitStartAnchor(r){}visitEndAnchor(r){}visitWordBoundary(r){}visitNonWordBoundary(r){}visitLookahead(r){}visitNegativeLookahead(r){}visitLookbehind(r){}visitNegativeLookbehind(r){}visitCharacter(r){}visitSet(r){}visitGroup(r){}visitGroupBackReference(r){}visitQuantifier(r){}},tri=/\r?\n/gm,rri=new mDr,nri=class extends s4e{static{i(this,"TerminalRegExpVisitor")}static{J(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(r){this.multiline=!1,this.regex=r,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(r){r.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(r){let t=String.fromCharCode(r.value);if(!this.multiline&&t===`
|
|
`&&(this.multiline=!0),r.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let a=Rae(t);this.endRegexpStack.push(a),this.isStarting&&(this.startRegexp+=a)}}visitSet(r){if(!this.multiline){let t=this.regex.substring(r.loc.begin,r.loc.end),a=new RegExp(t);this.multiline=!!`
|
|
`.match(a)}if(r.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(r.loc.begin,r.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(r){r.type==="Group"&&r.quantifier||super.visitChildren(r)}},Iit=new nri;i(yDr,"isMultilineComment");J(yDr,"isMultilineComment");iri=`\f
|
|
\r \v \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`.split("");i(Qot,"isWhitespace");J(Qot,"isWhitespace");i(Rae,"escapeRegExp");J(Rae,"escapeRegExp");i(bDr,"partialMatches");J(bDr,"partialMatches");i(vDr,"partialRegExp");J(vDr,"partialRegExp");i(wDr,"getEntryRule");J(wDr,"getEntryRule");i(xDr,"getHiddenRules");J(xDr,"getHiddenRules");i(Zot,"getAllReachableRules");J(Zot,"getAllReachableRules");i(elt,"ruleDfs");J(elt,"ruleDfs");i(TDr,"getCrossReferenceTerminal");J(TDr,"getCrossReferenceTerminal");i(kDr,"isCommentTerminal");J(kDr,"isCommentTerminal");i(CDr,"findNodesForProperty");J(CDr,"findNodesForProperty");i(tlt,"findNodeForProperty");J(tlt,"findNodeForProperty");i(o4e,"findNodesForPropertyInternal");J(o4e,"findNodesForPropertyInternal");i(EDr,"findNodeForKeyword");J(EDr,"findNodeForKeyword");i(SDr,"findNodesForKeywordInternal");J(SDr,"findNodesForKeywordInternal");i(ADr,"findAssignment");J(ADr,"findAssignment");i(rlt,"findNameAssignment");J(rlt,"findNameAssignment");i(nlt,"findNameAssignmentInternal");J(nlt,"findNameAssignmentInternal");i(ilt,"isDataTypeRule");J(ilt,"isDataTypeRule");i(alt,"isDataTypeRuleInternal");J(alt,"isDataTypeRuleInternal");i(slt,"getExplicitRuleType");J(slt,"getExplicitRuleType");i(JV,"getTypeName");J(JV,"getTypeName");i(RDr,"getActionType");J(RDr,"getActionType");i(LDr,"getRuleType");J(LDr,"getRuleType");i(l4e,"terminalRegex");J(l4e,"terminalRegex");olt=/[\s\S]/.source;i(iB,"abstractElementToRegex");J(iB,"abstractElementToRegex");i(_Dr,"terminalAlternativesToRegex");J(_Dr,"terminalAlternativesToRegex");i(DDr,"terminalGroupToRegex");J(DDr,"terminalGroupToRegex");i(IDr,"untilTokenToRegex");J(IDr,"untilTokenToRegex");i(MDr,"negateTokenToRegex");J(MDr,"negateTokenToRegex");i(NDr,"characterRangeToRegex");J(NDr,"characterRangeToRegex");i(p3e,"keywordToRegex");J(p3e,"keywordToRegex");i(WS,"withCardinality");J(WS,"withCardinality");i(ODr,"createGrammarConfig");J(ODr,"createGrammarConfig");i(z3e,"PRINT_ERROR");J(z3e,"PRINT_ERROR");i(llt,"PRINT_WARNING");J(llt,"PRINT_WARNING");i(clt,"timer");J(clt,"timer");i(ult,"toFastProperties");J(ult,"toFastProperties");i(PDr,"tokenLabel");J(PDr,"tokenLabel");i(BDr,"hasTokenLabel");J(BDr,"hasTokenLabel");XS=class{static{i(this,"AbstractProduction")}static{J(this,"AbstractProduction")}get definition(){return this._definition}set definition(r){this._definition=r}constructor(r){this._definition=r}accept(r){r.visit(this),this.definition.forEach(t=>{t.accept(r)})}},Bb=class extends XS{static{i(this,"NonTerminal")}static{J(this,"NonTerminal")}constructor(r){super([]),this.idx=1,Object.assign(this,eC(r))}set definition(r){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(r){r.visit(this)}},iW=class extends XS{static{i(this,"Rule")}static{J(this,"Rule")}constructor(r){super(r.definition),this.orgText="",Object.assign(this,eC(r))}},x2=class extends XS{static{i(this,"Alternative")}static{J(this,"Alternative")}constructor(r){super(r.definition),this.ignoreAmbiguities=!1,Object.assign(this,eC(r))}},b1=class extends XS{static{i(this,"Option")}static{J(this,"Option")}constructor(r){super(r.definition),this.idx=1,Object.assign(this,eC(r))}},ux=class extends XS{static{i(this,"RepetitionMandatory")}static{J(this,"RepetitionMandatory")}constructor(r){super(r.definition),this.idx=1,Object.assign(this,eC(r))}},hx=class extends XS{static{i(this,"RepetitionMandatoryWithSeparator")}static{J(this,"RepetitionMandatoryWithSeparator")}constructor(r){super(r.definition),this.idx=1,Object.assign(this,eC(r))}},kp=class extends XS{static{i(this,"Repetition")}static{J(this,"Repetition")}constructor(r){super(r.definition),this.idx=1,Object.assign(this,eC(r))}},T2=class extends XS{static{i(this,"RepetitionWithSeparator")}static{J(this,"RepetitionWithSeparator")}constructor(r){super(r.definition),this.idx=1,Object.assign(this,eC(r))}},k2=class extends XS{static{i(this,"Alternation")}static{J(this,"Alternation")}get definition(){return this._definition}set definition(r){this._definition=r}constructor(r){super(r.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,eC(r))}},Af=class{static{i(this,"Terminal")}static{J(this,"Terminal")}constructor(r){this.idx=1,Object.assign(this,eC(r))}accept(r){r.visit(this)}};i(FDr,"serializeGrammar");J(FDr,"serializeGrammar");i(eae,"serializeProduction");J(eae,"serializeProduction");i(eC,"pickOnlyDefined");J(eC,"pickOnlyDefined");aW=class{static{i(this,"GAstVisitor")}static{J(this,"GAstVisitor")}visit(r){let t=r;switch(t.constructor){case Bb:return this.visitNonTerminal(t);case x2:return this.visitAlternative(t);case b1:return this.visitOption(t);case ux:return this.visitRepetitionMandatory(t);case hx:return this.visitRepetitionMandatoryWithSeparator(t);case T2:return this.visitRepetitionWithSeparator(t);case kp:return this.visitRepetition(t);case k2:return this.visitAlternation(t);case Af:return this.visitTerminal(t);case iW:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(r){}visitAlternative(r){}visitOption(r){}visitRepetition(r){}visitRepetitionMandatory(r){}visitRepetitionMandatoryWithSeparator(r){}visitRepetitionWithSeparator(r){}visitAlternation(r){}visitTerminal(r){}visitRule(r){}};i($Dr,"isSequenceProd");J($Dr,"isSequenceProd");i(hae,"isOptionalProd");J(hae,"isOptionalProd");i(GDr,"isBranchingProd");J(GDr,"isBranchingProd");i(J4,"getProductionDslName");J(J4,"getProductionDslName");c4e=class{static{i(this,"RestWalker")}static{J(this,"RestWalker")}walk(r,t=[]){r.definition.forEach((a,s)=>{let l=r.definition.slice(s+1);if(a instanceof Bb)this.walkProdRef(a,l,t);else if(a instanceof Af)this.walkTerminal(a,l,t);else if(a instanceof x2)this.walkFlat(a,l,t);else if(a instanceof b1)this.walkOption(a,l,t);else if(a instanceof ux)this.walkAtLeastOne(a,l,t);else if(a instanceof hx)this.walkAtLeastOneSep(a,l,t);else if(a instanceof T2)this.walkManySep(a,l,t);else if(a instanceof kp)this.walkMany(a,l,t);else if(a instanceof k2)this.walkOr(a,l,t);else throw Error("non exhaustive match")})}walkTerminal(r,t,a){}walkProdRef(r,t,a){}walkFlat(r,t,a){let s=t.concat(a);this.walk(r,s)}walkOption(r,t,a){let s=t.concat(a);this.walk(r,s)}walkAtLeastOne(r,t,a){let s=[new b1({definition:r.definition})].concat(t,a);this.walk(r,s)}walkAtLeastOneSep(r,t,a){let s=cst(r,t,a);this.walk(r,s)}walkMany(r,t,a){let s=[new b1({definition:r.definition})].concat(t,a);this.walk(r,s)}walkManySep(r,t,a){let s=cst(r,t,a);this.walk(r,s)}walkOr(r,t,a){let s=t.concat(a);r.definition.forEach(l=>{let h=new x2({definition:[l]});this.walk(h,s)})}};i(cst,"restForRepetitionWithSeparator");J(cst,"restForRepetitionWithSeparator");i(sW,"first");J(sW,"first");i(jDr,"firstForSequence");J(jDr,"firstForSequence");i(zDr,"firstForBranching");J(zDr,"firstForBranching");i(UDr,"firstForTerminal");J(UDr,"firstForTerminal");VDr="_~IN~_",ari=class extends c4e{static{i(this,"ResyncFollowsWalker")}static{J(this,"ResyncFollowsWalker")}constructor(r){super(),this.topProd=r,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(r,t,a){}walkProdRef(r,t,a){let s=HDr(r.referencedRule,r.idx)+this.topProd.name,l=t.concat(a),h=new x2({definition:l}),f=sW(h);this.follows[s]=f}};i(WDr,"computeAllProdsFollows");J(WDr,"computeAllProdsFollows");i(HDr,"buildBetweenProdsFollowPrefix");J(HDr,"buildBetweenProdsFollowPrefix");g3e={},sri=new mDr;i(oW,"getRegExpAst");J(oW,"getRegExpAst");i(qDr,"clearRegExpParserCache");J(qDr,"clearRegExpParserCache");YDr="Complement Sets are not supported for first char optimization",U3e=`Unable to use "first char" lexer optimizations:
|
|
`;i(XDr,"getOptimizedStartCodesIndices");J(XDr,"getOptimizedStartCodesIndices");i(V3e,"firstCharOptimizedIndices");J(V3e,"firstCharOptimizedIndices");i(Xie,"addOptimizedIdxToResult");J(Xie,"addOptimizedIdxToResult");i(KDr,"handleIgnoreCase");J(KDr,"handleIgnoreCase");i(ust,"findCode");J(ust,"findCode");i(W3e,"isWholeOptional");J(W3e,"isWholeOptional");ori=class extends s4e{static{i(this,"CharCodeFinder")}static{J(this,"CharCodeFinder")}constructor(r){super(),this.targetCharCodes=r,this.found=!1}visitChildren(r){if(this.found!==!0){switch(r.type){case"Lookahead":this.visitLookahead(r);return;case"NegativeLookahead":this.visitNegativeLookahead(r);return;case"Lookbehind":this.visitLookbehind(r);return;case"NegativeLookbehind":this.visitNegativeLookbehind(r);return}super.visitChildren(r)}}visitCharacter(r){this.targetCharCodes.includes(r.value)&&(this.found=!0)}visitSet(r){r.complement?ust(r,this.targetCharCodes)===void 0&&(this.found=!0):ust(r,this.targetCharCodes)!==void 0&&(this.found=!0)}};i(u4e,"canMatchCharCode");J(u4e,"canMatchCharCode");tB="PATTERN",Kie="defaultMode",Pke="modes",hst=0,m3e=1,fst=2,dst=3;i(JDr,"analyzeTokenTypes");J(JDr,"analyzeTokenTypes");i(QDr,"getAsciiClass");J(QDr,"getAsciiClass");i(ZDr,"validatePatterns");J(ZDr,"validatePatterns");i(e9r,"validateRegExpPattern");J(e9r,"validateRegExpPattern");i(t9r,"findMissingPatterns");J(t9r,"findMissingPatterns");i(r9r,"findInvalidPatterns");J(r9r,"findInvalidPatterns");lri=/[^\\][$]/;i(n9r,"findEndOfInputAnchor");J(n9r,"findEndOfInputAnchor");i(i9r,"findEmptyMatchRegExps");J(i9r,"findEmptyMatchRegExps");cri=/[^\\[][\^]|^\^/;i(a9r,"findStartOfInputAnchor");J(a9r,"findStartOfInputAnchor");i(s9r,"findUnsupportedFlags");J(s9r,"findUnsupportedFlags");i(o9r,"findDuplicatePatterns");J(o9r,"findDuplicatePatterns");i(l9r,"findInvalidGroupType");J(l9r,"findInvalidGroupType");i(c9r,"findModesThatDoNotExist");J(c9r,"findModesThatDoNotExist");i(u9r,"findUnreachablePatterns");J(u9r,"findUnreachablePatterns");i(h9r,"tryToMatchStrToPattern");J(h9r,"tryToMatchStrToPattern");i(f9r,"noMetaChar");J(f9r,"noMetaChar");i(d9r,"usesLookAheadOrBehind");J(d9r,"usesLookAheadOrBehind");i(pst,"addStickyFlag");J(pst,"addStickyFlag");i(p9r,"performRuntimeChecks");J(p9r,"performRuntimeChecks");i(g9r,"performWarningRuntimeChecks");J(g9r,"performWarningRuntimeChecks");i(hlt,"isCustomPattern");J(hlt,"isCustomPattern");i(m9r,"isShortPattern");J(m9r,"isShortPattern");uri={test:J(function(r){let t=r.length;for(let a=this.lastIndex;a<t;a++){let s=r.charCodeAt(a);if(s===10)return this.lastIndex=a+1,!0;if(s===13)return r.charCodeAt(a+1)===10?this.lastIndex=a+2:this.lastIndex=a+1,!0}return!1},"test"),lastIndex:0};i(flt,"checkLineBreaksIssues");J(flt,"checkLineBreaksIssues");i(y9r,"buildLineBreakIssueMessage");J(y9r,"buildLineBreakIssueMessage");i(dlt,"getCharCodes");J(dlt,"getCharCodes");i(y3e,"addToMapOfArrays");J(y3e,"addToMapOfArrays");Jie=256,b3e=[];i(u8,"charCodeToOptimizedIndex");J(u8,"charCodeToOptimizedIndex");i(b9r,"initCharCodeToOptimizedIndexMap");J(b9r,"initCharCodeToOptimizedIndexMap");i(lW,"tokenStructuredMatcher");J(lW,"tokenStructuredMatcher");i(fae,"tokenStructuredMatcherNoCategories");J(fae,"tokenStructuredMatcherNoCategories");vLr=1,v9r={};i(cW,"augmentTokenTypes");J(cW,"augmentTokenTypes");i(w9r,"expandCategories");J(w9r,"expandCategories");i(x9r,"assignTokenDefaultProps");J(x9r,"assignTokenDefaultProps");i(T9r,"assignCategoriesTokensProp");J(T9r,"assignCategoriesTokensProp");i(k9r,"assignCategoriesMapProp");J(k9r,"assignCategoriesMapProp");i(plt,"singleAssignCategoriesToksMap");J(plt,"singleAssignCategoriesToksMap");i(glt,"hasShortKeyProperty");J(glt,"hasShortKeyProperty");i(gst,"hasCategoriesProperty");J(gst,"hasCategoriesProperty");i(C9r,"hasExtendingTokensTypesProperty");J(C9r,"hasExtendingTokensTypesProperty");i(E9r,"hasExtendingTokensTypesMapProperty");J(E9r,"hasExtendingTokensTypesMapProperty");i(S9r,"isTokenType");J(S9r,"isTokenType");mst={buildUnableToPopLexerModeMessage(r){return`Unable to pop Lexer Mode after encountering Token ->${r.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(r,t,a,s,l,h){return`unexpected character: ->${r.charAt(t)}<- at offset: ${t}, skipped ${a} characters.`}};(function(r){r[r.MISSING_PATTERN=0]="MISSING_PATTERN",r[r.INVALID_PATTERN=1]="INVALID_PATTERN",r[r.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",r[r.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",r[r.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",r[r.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",r[r.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",r[r.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",r[r.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",r[r.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",r[r.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",r[r.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",r[r.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",r[r.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",r[r.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",r[r.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",r[r.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",r[r.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Cp||(Cp={}));Qie={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:mst,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Qie);w2=class{static{i(this,"Lexer")}static{J(this,"Lexer")}constructor(r,t=Qie){if(this.lexerDefinition=r,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(s,l)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let h=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${h}--> <${s}>`);let{time:f,value:d}=clt(l),m=f>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&m(`${h}<-- <${s}> time: ${f}ms`),this.traceInitIndent--,d}else return l()},typeof t=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
a boolean 2nd argument is no longer supported`);this.config=Object.assign({},Qie,t);let a=this.config.traceInitPerf;a===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof a=="number"&&(this.traceInitMaxIdent=a,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let s,l=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Qie.lineTerminatorsPattern)this.config.lineTerminatorsPattern=uri;else if(this.config.lineTerminatorCharacters===Qie.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(r)?s={modes:{defaultMode:[...r]},defaultMode:Kie}:(l=!1,s=Object.assign({},r))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(p9r(s,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(g9r(s,this.trackStartLines,this.config.lineTerminatorCharacters))})),s.modes=s.modes?s.modes:{},Object.entries(s.modes).forEach(([f,d])=>{s.modes[f]=d.filter(m=>m!==void 0)});let h=Object.keys(s.modes);if(Object.entries(s.modes).forEach(([f,d])=>{this.TRACE_INIT(`Mode: <${f}> processing`,()=>{if(this.modes.push(f),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(ZDr(d,h))}),this.lexerDefinitionErrors.length===0){cW(d);let m;this.TRACE_INIT("analyzeTokenTypes",()=>{m=JDr(d,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[f]=m.patternIdxToConfig,this.charCodeToPatternIdxToConfig[f]=m.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,m.emptyGroups),this.hasCustom=m.hasCustom||this.hasCustom,this.canModeBeOptimized[f]=m.canBeOptimized}})}),this.defaultMode=s.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let d=this.lexerDefinitionErrors.map(m=>m.message).join(`-----------------------
|
|
`);throw new Error(`Errors detected in definition of Lexer:
|
|
`+d)}this.lexerDefinitionWarning.forEach(f=>{llt(f.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(l&&(this.handleModes=()=>{}),this.trackStartLines===!1&&(this.computeNewColumn=f=>f),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=()=>{}),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let f=Object.entries(this.canModeBeOptimized).reduce((d,[m,b])=>(b===!1&&d.push(m),d),[]);if(t.ensureOptimizations&&f.length>0)throw Error(`Lexer Modes: < ${f.join(", ")} > cannot be optimized.
|
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{qDr()}),this.TRACE_INIT("toFastProperties",()=>{ult(this)})})}tokenize(r,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let s=this.lexerDefinitionErrors.map(l=>l.message).join(`-----------------------
|
|
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
`+s)}return this.tokenizeInternal(r,t)}tokenizeInternal(r,t){let a,s,l,h,f,d,m,b,v,T,C,E,S,R,L,_=r,I=_.length,N=0,B=0,O=this.hasCustom?0:Math.floor(r.length/10),P=new Array(O),$=[],V=this.trackStartLines?1:void 0,Y=this.trackStartLines?1:void 0,Q={};for(let pe=0;pe<this.cachedGroupKeys.length;pe++)Q[this.cachedGroupKeys[pe]]=[];let q=this.trackStartLines,W=this.config.lineTerminatorsPattern,H=0,re=[],Z=[],X=[],te=[];Object.freeze(te);let U=!1,ne=J(pe=>{if(X.length===1&&pe.tokenType.PUSH_MODE===void 0){let ge=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(pe);$.push({offset:pe.startOffset,line:pe.startLine,column:pe.startColumn,length:pe.image.length,message:ge})}else{X.pop();let ge=X.at(-1);re=this.patternIdxToConfig[ge],Z=this.charCodeToPatternIdxToConfig[ge],H=re.length;let we=this.canModeBeOptimized[ge]&&this.config.safeMode===!1;Z&&we?U=!0:U=!1}},"pop_mode");function se(pe){X.push(pe),Z=this.charCodeToPatternIdxToConfig[pe],re=this.patternIdxToConfig[pe],H=re.length;let ge=this.canModeBeOptimized[pe]&&this.config.safeMode===!1;Z&&ge?U=!0:U=!1}i(se,"push_mode"),J(se,"push_mode"),se.call(this,t);let he,le=this.config.recoveryEnabled;for(;N<I;){d=null,v=-1;let pe=_.charCodeAt(N),ge;if(U){let Ae=u8(pe),ve=Z[Ae];ge=ve!==void 0?ve:te}else ge=re;let we=ge.length;for(a=0;a<we;a++){he=ge[a];let Ae=he.pattern;switch(m=null,he.matchType){case hst:pe===he.short&&(v=1,d=Ae);break;case m3e:L=Ae.exec(_,N,P,Q),L!==null?(d=L[0],v=d.length,L.payload!==void 0&&(m=L.payload)):d=null;break;case dst:{let ve=he.asciiClass;if(ve[pe]!==1){Ae.lastIndex=0;break}let Ie=N+1;for(;ve[_.charCodeAt(Ie)]===1;)Ie++;v=Ie-N,Ae.lastIndex=Ie;break}case fst:Ae.lastIndex=N,v=this.matchLength(Ae,r,N);break}if(v!==-1){if(f=he.longerAlt,f!==void 0){d=r.substring(N,N+v);let ve=f.length;for(l=0;l<ve;l++){let Ie=re[f[l]],De=Ie.pattern;if(b=null,Ie.matchType===m3e?(L=De.exec(_,N,P,Q),L!==null?(h=L[0],L.payload!==void 0&&(b=L.payload)):h=null):(De.lastIndex=N,h=this.match(De,r,N)),h&&h.length>d.length){d=h,v=h.length,m=b,he=Ie;break}}}break}}if(v!==-1){if(T=he.group,T!==void 0&&(d=d!==null?d:r.substring(N,N+v),C=he.tokenTypeIdx,E=this.createTokenInstance(d,N,C,he.tokenType,V,Y,v),this.handlePayload(E,m),T===!1?B=this.addToken(P,B,E):Q[T].push(E)),q===!0&&he.canLineTerminator===!0){let Ae=0,ve,Ie;W.lastIndex=0;do d=d!==null?d:r.substring(N,N+v),ve=W.test(d),ve===!0&&(Ie=W.lastIndex-1,Ae++);while(ve===!0);Ae!==0?(V=V+Ae,Y=v-Ie,this.updateTokenEndLineColumnLocation(E,T,Ie,Ae,V,Y,v)):Y=this.computeNewColumn(Y,v)}else Y=this.computeNewColumn(Y,v);N=N+v,this.handleModes(he,ne,se,E)}else{let Ae=N,ve=V,Ie=Y,De=le===!1;for(;De===!1&&N<I;)for(N++,s=0;s<H;s++){let Be=re[s],Fe=Be.pattern;switch(Be.matchType){case hst:_.charCodeAt(N)===Be.short&&(De=!0);break;case m3e:De=Fe.exec(_,N,P,Q)!==null;break;case dst:case fst:Fe.lastIndex=N,De=Fe.exec(r)!==null;break}if(De===!0)break}if(S=N-Ae,Y=this.computeNewColumn(Y,S),R=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(_,Ae,S,ve,Ie,X.at(-1)),$.push({offset:Ae,line:ve,column:Ie,length:S,message:R}),le===!1)break}}return this.hasCustom||(P.length=B),{tokens:P,groups:Q,errors:$}}handleModes(r,t,a,s){if(r.pop===!0){let l=r.push;t(s),l!==void 0&&a.call(this,l)}else r.push!==void 0&&a.call(this,r.push)}updateTokenEndLineColumnLocation(r,t,a,s,l,h,f){let d,m;t!==void 0&&(d=a===f-1,m=d?-1:0,s===1&&d===!0||(r.endLine=l+m,r.endColumn=h-1+-m))}computeNewColumn(r,t){return r+t}createOffsetOnlyToken(r,t,a,s){return{image:r,startOffset:t,tokenTypeIdx:a,tokenType:s}}createStartOnlyToken(r,t,a,s,l,h){return{image:r,startOffset:t,startLine:l,startColumn:h,tokenTypeIdx:a,tokenType:s}}createFullToken(r,t,a,s,l,h,f){return{image:r,startOffset:t,endOffset:t+f-1,startLine:l,endLine:l,startColumn:h,endColumn:h+f-1,tokenTypeIdx:a,tokenType:s}}addTokenUsingPush(r,t,a){return r.push(a),t}addTokenUsingMemberAccess(r,t,a){return r[t]=a,t++,t}handlePayloadNoCustom(r,t){}handlePayloadWithCustom(r,t){t!==null&&(r.payload=t)}match(r,t,a){return r.test(t)===!0?t.substring(a,r.lastIndex):null}matchLength(r,t,a){return r.test(t)===!0?r.lastIndex-a:-1}};w2.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";w2.NA=/NOT_APPLICABLE/;i(eB,"tokenLabel2");J(eB,"tokenLabel");i(mlt,"hasTokenLabel2");J(mlt,"hasTokenLabel");hri="parent",wLr="categories",xLr="label",TLr="group",kLr="push_mode",CLr="pop_mode",ELr="longer_alt",SLr="line_breaks",ALr="start_chars_hint";i(ylt,"createToken");J(ylt,"createToken");i(A9r,"createTokenInternal");J(A9r,"createTokenInternal");h8=ylt({name:"EOF",pattern:w2.NA});cW([h8]);i(h4e,"createTokenInstance");J(h4e,"createTokenInstance");i(f4e,"tokenMatcher");J(f4e,"tokenMatcher");VV={buildMismatchTokenMessage({expected:r,actual:t,previous:a,ruleName:s}){return`Expecting ${mlt(r)?`--> ${eB(r)} <--`:`token of type --> ${r.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:r,ruleName:t}){return"Redundant input, expecting EOF but found: "+r.image},buildNoViableAltMessage({expectedPathsPerAlt:r,actual:t,previous:a,customUserDescription:s,ruleName:l}){let h="Expecting: ",d=`
|
|
but found: '`+t[0].image+"'";if(s)return h+s+d;{let T=`one of these possible Token sequences:
|
|
${r.reduce((C,E)=>C.concat(E),[]).map(C=>`[${C.map(E=>eB(E)).join(", ")}]`).map((C,E)=>` ${E+1}. ${C}`).join(`
|
|
`)}`;return h+T+d}},buildEarlyExitMessage({expectedIterationPaths:r,actual:t,customUserDescription:a,ruleName:s}){let l="Expecting: ",f=`
|
|
but found: '`+t[0].image+"'";if(a)return l+a+f;{let m=`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
<${r.map(b=>`[${b.map(v=>eB(v)).join(",")}]`).join(" ,")}>`;return l+m+f}}};Object.freeze(VV);fri={buildRuleNotFoundError(r,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
|
|
inside top level rule: ->`+r.name+"<-"}},ZP={buildDuplicateFoundError(r,t){function a(v){return v instanceof Af?v.terminalType.name:v instanceof Bb?v.nonTerminalName:""}i(a,"getExtraProductionArgument2"),J(a,"getExtraProductionArgument");let s=r.name,l=t[0],h=l.idx,f=J4(l),d=a(l),m=h>0,b=`->${f}${m?h:""}<- ${d?`with argument: ->${d}<-`:""}
|
|
appears more than once (${t.length} times) in the top level rule: ->${s}<-.
|
|
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
`;return b=b.replace(/[ \t]+/g," "),b=b.replace(/\s\s+/g,`
|
|
`),b},buildNamespaceConflictError(r){return`Namespace conflict found in grammar.
|
|
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${r.name}>.
|
|
To resolve this make sure each Terminal and Non-Terminal names are unique
|
|
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
|
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(r){let t=r.prefixPath.map(l=>eB(l)).join(", "),a=r.alternation.idx===0?"":r.alternation.idx;return`Ambiguous alternatives: <${r.ambiguityIndices.join(" ,")}> due to common lookahead prefix
|
|
in <OR${a}> inside <${r.topLevelRule.name}> Rule,
|
|
<${t}> may appears as a prefix path in all these alternatives.
|
|
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
|
For Further details.`},buildAlternationAmbiguityError(r){let t=r.alternation.idx===0?"":r.alternation.idx,a=r.prefixPath.length===0,s=`Ambiguous Alternatives Detected: <${r.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${r.topLevelRule.name}> Rule,
|
|
`;if(a)s+=`These alternatives are all empty (match no tokens), making them indistinguishable.
|
|
Only the last alternative may be empty.
|
|
`;else{let l=r.prefixPath.map(h=>eB(h)).join(", ");s+=`<${l}> may appears as a prefix path in all these alternatives.
|
|
`}return s+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
For Further details.`,s},buildEmptyRepetitionError(r){let t=J4(r.repetition);return r.repetition.idx!==0&&(t+=r.repetition.idx),`The repetition <${t}> within Rule <${r.topLevelRule.name}> can never consume any tokens.
|
|
This could lead to an infinite loop.`},buildTokenNameError(r){return"deprecated"},buildEmptyAlternationError(r){return`Ambiguous empty alternative: <${r.emptyChoiceIdx+1}> in <OR${r.alternation.idx}> inside <${r.topLevelRule.name}> Rule.
|
|
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(r){return`An Alternation cannot have more than 256 alternatives:
|
|
<OR${r.alternation.idx}> inside <${r.topLevelRule.name}> Rule.
|
|
has ${r.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(r){let t=r.topLevelRule.name,a=r.leftRecursionPath.map(h=>h.name),s=`${t} --> ${a.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar.
|
|
rule: <${t}> can be invoked from itself (directly or indirectly)
|
|
without consuming any Tokens. The grammar path that causes this is:
|
|
${s}
|
|
To fix this refactor your grammar to remove the left recursion.
|
|
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(r){return"deprecated"},buildDuplicateRuleNameError(r){let t;return r.topLevelRule instanceof iW?t=r.topLevelRule.name:t=r.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${r.grammarName}<-`}};i(R9r,"resolveGrammar");J(R9r,"resolveGrammar");dri=class extends aW{static{i(this,"GastRefResolverVisitor")}static{J(this,"GastRefResolverVisitor")}constructor(r,t){super(),this.nameToTopRule=r,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(r=>{this.currTopLevel=r,r.accept(this)})}visitNonTerminal(r){let t=this.nameToTopRule[r.nonTerminalName];if(t)r.referencedRule=t;else{let a=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,r);this.errors.push({message:a,type:Fb.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:r.nonTerminalName})}}},pri=class extends c4e{static{i(this,"AbstractNextPossibleTokensWalker")}static{J(this,"AbstractNextPossibleTokensWalker")}constructor(r,t){super(),this.topProd=r,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(r,t=[]){this.found||super.walk(r,t)}walkProdRef(r,t,a){if(r.referencedRule.name===this.nextProductionName&&r.idx===this.nextProductionOccurrence){let s=t.concat(a);this.updateExpectedNext(),this.walk(r.referencedRule,s)}}updateExpectedNext(){this.ruleStack.length===0?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},gri=class extends pri{static{i(this,"NextAfterTokenWalker")}static{J(this,"NextAfterTokenWalker")}constructor(r,t){super(r,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(r,t,a){if(this.isAtEndOfPath&&r.terminalType.name===this.nextTerminalName&&r.idx===this.nextTerminalOccurrence&&!this.found){let s=t.concat(a),l=new x2({definition:s});this.possibleTokTypes=sW(l),this.found=!0}}},d4e=class extends c4e{static{i(this,"AbstractNextTerminalAfterProductionWalker")}static{J(this,"AbstractNextTerminalAfterProductionWalker")}constructor(r,t){super(),this.topRule=r,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},mri=class extends d4e{static{i(this,"NextTerminalAfterManyWalker")}static{J(this,"NextTerminalAfterManyWalker")}walkMany(r,t,a){if(r.idx===this.occurrence){let s=t.concat(a)[0];this.result.isEndOfRule=s===void 0,s instanceof Af&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkMany(r,t,a)}},RLr=class extends d4e{static{i(this,"NextTerminalAfterManySepWalker")}static{J(this,"NextTerminalAfterManySepWalker")}walkManySep(r,t,a){if(r.idx===this.occurrence){let s=t.concat(a)[0];this.result.isEndOfRule=s===void 0,s instanceof Af&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkManySep(r,t,a)}},yri=class extends d4e{static{i(this,"NextTerminalAfterAtLeastOneWalker")}static{J(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(r,t,a){if(r.idx===this.occurrence){let s=t.concat(a)[0];this.result.isEndOfRule=s===void 0,s instanceof Af&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkAtLeastOne(r,t,a)}},LLr=class extends d4e{static{i(this,"NextTerminalAfterAtLeastOneSepWalker")}static{J(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(r,t,a){if(r.idx===this.occurrence){let s=t.concat(a)[0];this.result.isEndOfRule=s===void 0,s instanceof Af&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkAtLeastOneSep(r,t,a)}};i(H3e,"possiblePathsFrom");J(H3e,"possiblePathsFrom");i(L9r,"nextPossibleTokensAfter");J(L9r,"nextPossibleTokensAfter");i(_9r,"expandTopLevelRule");J(_9r,"expandTopLevelRule");(function(r){r[r.OPTION=0]="OPTION",r[r.REPETITION=1]="REPETITION",r[r.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",r[r.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",r[r.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",r[r.ALTERNATION=5]="ALTERNATION"})(Fd||(Fd={}));i(p4e,"getProdType");J(p4e,"getProdType");i(yst,"getLookaheadPaths");J(yst,"getLookaheadPaths");i(D9r,"buildLookaheadFuncForOr");J(D9r,"buildLookaheadFuncForOr");i(I9r,"buildLookaheadFuncForOptionalProd");J(I9r,"buildLookaheadFuncForOptionalProd");i(M9r,"buildAlternativesLookAheadFunc");J(M9r,"buildAlternativesLookAheadFunc");i(N9r,"buildSingleAlternativeLookaheadFunction");J(N9r,"buildSingleAlternativeLookaheadFunction");bri=class extends c4e{static{i(this,"RestDefinitionFinderWalker")}static{J(this,"RestDefinitionFinderWalker")}constructor(r,t,a){super(),this.topProd=r,this.targetOccurrence=t,this.targetProdType=a}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(r,t,a,s){return r.idx===this.targetOccurrence&&this.targetProdType===t?(this.restDef=a.concat(s),!0):!1}walkOption(r,t,a){this.checkIsTarget(r,Fd.OPTION,t,a)||super.walkOption(r,t,a)}walkAtLeastOne(r,t,a){this.checkIsTarget(r,Fd.REPETITION_MANDATORY,t,a)||super.walkOption(r,t,a)}walkAtLeastOneSep(r,t,a){this.checkIsTarget(r,Fd.REPETITION_MANDATORY_WITH_SEPARATOR,t,a)||super.walkOption(r,t,a)}walkMany(r,t,a){this.checkIsTarget(r,Fd.REPETITION,t,a)||super.walkOption(r,t,a)}walkManySep(r,t,a){this.checkIsTarget(r,Fd.REPETITION_WITH_SEPARATOR,t,a)||super.walkOption(r,t,a)}},O9r=class extends aW{static{i(this,"InsideDefinitionFinderVisitor")}static{J(this,"InsideDefinitionFinderVisitor")}constructor(r,t,a){super(),this.targetOccurrence=r,this.targetProdType=t,this.targetRef=a,this.result=[]}checkIsTarget(r,t){r.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||r===this.targetRef)&&(this.result=r.definition)}visitOption(r){this.checkIsTarget(r,Fd.OPTION)}visitRepetition(r){this.checkIsTarget(r,Fd.REPETITION)}visitRepetitionMandatory(r){this.checkIsTarget(r,Fd.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(r){this.checkIsTarget(r,Fd.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(r){this.checkIsTarget(r,Fd.REPETITION_WITH_SEPARATOR)}visitAlternation(r){this.checkIsTarget(r,Fd.ALTERNATION)}};i(bst,"initializeArrayOfArrays");J(bst,"initializeArrayOfArrays");i(v3e,"pathToHashKeys");J(v3e,"pathToHashKeys");i(P9r,"isUniquePrefixHash");J(P9r,"isUniquePrefixHash");i(blt,"lookAheadSequenceFromAlternatives");J(blt,"lookAheadSequenceFromAlternatives");i(Lae,"getLookaheadPathsForOr");J(Lae,"getLookaheadPathsForOr");i(_ae,"getLookaheadPathsForOptionalProd");J(_ae,"getLookaheadPathsForOptionalProd");i(q3e,"containsPath");J(q3e,"containsPath");i(B9r,"isStrictPrefixOfPath");J(B9r,"isStrictPrefixOfPath");i(vlt,"areTokenCategoriesNotUsed");J(vlt,"areTokenCategoriesNotUsed");i(F9r,"validateLookahead");J(F9r,"validateLookahead");i($9r,"validateGrammar");J($9r,"validateGrammar");i(G9r,"validateDuplicateProductions");J(G9r,"validateDuplicateProductions");i(j9r,"identifyProductionForDuplicates");J(j9r,"identifyProductionForDuplicates");i(wlt,"getExtraProductionArgument");J(wlt,"getExtraProductionArgument");vri=class extends aW{static{i(this,"OccurrenceValidationCollector")}static{J(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(r){this.allProductions.push(r)}visitOption(r){this.allProductions.push(r)}visitRepetitionWithSeparator(r){this.allProductions.push(r)}visitRepetitionMandatory(r){this.allProductions.push(r)}visitRepetitionMandatoryWithSeparator(r){this.allProductions.push(r)}visitRepetition(r){this.allProductions.push(r)}visitAlternation(r){this.allProductions.push(r)}visitTerminal(r){this.allProductions.push(r)}};i(z9r,"validateRuleDoesNotAlreadyExist");J(z9r,"validateRuleDoesNotAlreadyExist");i(U9r,"validateRuleIsOverridden");J(U9r,"validateRuleIsOverridden");i(xlt,"validateNoLeftRecursion");J(xlt,"validateNoLeftRecursion");i(tae,"getFirstNoneTerminal");J(tae,"getFirstNoneTerminal");Tlt=class extends aW{static{i(this,"OrCollector")}static{J(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(r){this.alternations.push(r)}};i(V9r,"validateEmptyOrAlternative");J(V9r,"validateEmptyOrAlternative");i(W9r,"validateAmbiguousAlternationAlternatives");J(W9r,"validateAmbiguousAlternationAlternatives");wri=class extends aW{static{i(this,"RepetitionCollector")}static{J(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(r){this.allProductions.push(r)}visitRepetitionMandatory(r){this.allProductions.push(r)}visitRepetitionMandatoryWithSeparator(r){this.allProductions.push(r)}visitRepetition(r){this.allProductions.push(r)}};i(H9r,"validateTooManyAlts");J(H9r,"validateTooManyAlts");i(q9r,"validateSomeNonEmptyLookaheadPath");J(q9r,"validateSomeNonEmptyLookaheadPath");i(Y9r,"checkAlternativesAmbiguities");J(Y9r,"checkAlternativesAmbiguities");i(X9r,"checkPrefixAlternativesAmbiguities");J(X9r,"checkPrefixAlternativesAmbiguities");i(K9r,"checkTerminalAndNoneTerminalsNameSpace");J(K9r,"checkTerminalAndNoneTerminalsNameSpace");i(J9r,"resolveGrammar2");J(J9r,"resolveGrammar");i(Q9r,"validateGrammar2");J(Q9r,"validateGrammar");Z9r="MismatchedTokenException",eIr="NoViableAltException",tIr="EarlyExitException",rIr="NotAllInputParsedException",nIr=[Z9r,eIr,tIr,rIr];Object.freeze(nIr);i(dae,"isRecognitionException");J(dae,"isRecognitionException");g4e=class extends Error{static{i(this,"RecognitionException")}static{J(this,"RecognitionException")}constructor(r,t){super(r),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},iIr=class extends g4e{static{i(this,"MismatchedTokenException")}static{J(this,"MismatchedTokenException")}constructor(r,t,a){super(r,t),this.previousToken=a,this.name=Z9r}},xri=class extends g4e{static{i(this,"NoViableAltException")}static{J(this,"NoViableAltException")}constructor(r,t,a){super(r,t),this.previousToken=a,this.name=eIr}},Tri=class extends g4e{static{i(this,"NotAllInputParsedException")}static{J(this,"NotAllInputParsedException")}constructor(r,t){super(r,t),this.name=rIr}},kri=class extends g4e{static{i(this,"EarlyExitException")}static{J(this,"EarlyExitException")}constructor(r,t,a){super(r,t),this.previousToken=a,this.name=tIr}},Mit={},aIr="InRuleRecoveryException",Cri=class extends Error{static{i(this,"InRuleRecoveryException")}static{J(this,"InRuleRecoveryException")}constructor(r){super(r),this.name=aIr}},Eri=class{static{i(this,"Recoverable")}static{J(this,"Recoverable")}initRecoverable(r){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(r,"recoveryEnabled")?r.recoveryEnabled:f8.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=sIr)}getTokenToInsert(r){let t=h4e(r,"",-1,-1,-1,-1,-1,-1);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(r){return!0}canTokenTypeBeDeletedInRecovery(r){return!0}tryInRepetitionRecovery(r,t,a,s){let l=this.findReSyncTokenType(),h=this.exportLexerState(),f=[],d=!1,m=this.LA_FAST(1),b=this.LA_FAST(1),v=J(()=>{let T=this.LA(0),C=this.errorMessageProvider.buildMismatchTokenMessage({expected:s,actual:m,previous:T,ruleName:this.getCurrRuleFullName()}),E=new iIr(C,m,this.LA(0));E.resyncedTokens=f.slice(0,-1),this.SAVE_ERROR(E)},"generateErrorMessage");for(;!d;)if(this.tokenMatcher(b,s)){v();return}else if(a.call(this)){v(),r.apply(this,t);return}else this.tokenMatcher(b,l)?d=!0:(b=this.SKIP_TOKEN(),this.addToResyncTokens(b,f));this.importLexerState(h)}shouldInRepetitionRecoveryBeTried(r,t,a){return!(a===!1||this.tokenMatcher(this.LA_FAST(1),r)||this.isBackTracking()||this.canPerformInRuleRecovery(r,this.getFollowsForInRuleRecovery(r,t)))}getNextPossibleTokenTypes(r){let t=r.ruleStack[0],s=this.getGAstProductions()[t];return new gri(s,r).startWalking()}getFollowsForInRuleRecovery(r,t){let a=this.getCurrentGrammarPath(r,t);return this.getNextPossibleTokenTypes(a)}tryInRuleRecovery(r,t){if(this.canRecoverWithSingleTokenInsertion(r,t))return this.getTokenToInsert(r);if(this.canRecoverWithSingleTokenDeletion(r)){let a=this.SKIP_TOKEN();return this.consumeToken(),a}throw new Cri("sad sad panda")}canPerformInRuleRecovery(r,t){return this.canRecoverWithSingleTokenInsertion(r,t)||this.canRecoverWithSingleTokenDeletion(r)}canRecoverWithSingleTokenInsertion(r,t){if(!this.canTokenTypeBeInsertedInRecovery(r)||t.length===0)return!1;let a=this.LA_FAST(1);return t.find(l=>this.tokenMatcher(a,l))!==void 0}canRecoverWithSingleTokenDeletion(r){return this.canTokenTypeBeDeletedInRecovery(r)?this.tokenMatcher(this.LA(2),r):!1}isInCurrentRuleReSyncSet(r){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(r)}findReSyncTokenType(){let r=this.flattenFollowSet(),t=this.LA_FAST(1),a=2;for(;;){let s=r.find(l=>f4e(t,l));if(s!==void 0)return s;t=this.LA(a),a++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return Mit;let r=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),a=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(a)}}buildFullFollowKeyStack(){let r=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,a=this.RULE_STACK_IDX+1,s=new Array(a);for(let l=0;l<a;l++)l===0?s[l]=Mit:s[l]={ruleName:this.shortRuleNameToFullName(r[l]),idxInCallingRule:t[l],inRule:this.shortRuleNameToFullName(r[l-1])};return s}flattenFollowSet(){return this.buildFullFollowKeyStack().map(t=>this.getFollowSetFromFollowKey(t)).flat()}getFollowSetFromFollowKey(r){if(r===Mit)return[h8];let t=r.ruleName+r.idxInCallingRule+VDr+r.inRule;return this.resyncFollows[t]}addToResyncTokens(r,t){return this.tokenMatcher(r,h8)||t.push(r),t}reSyncTo(r){let t=[],a=this.LA_FAST(1);for(;this.tokenMatcher(a,r)===!1;)a=this.SKIP_TOKEN(),this.addToResyncTokens(a,t);return t.slice(0,-1)}attemptInRepetitionRecovery(r,t,a,s,l,h,f){}getCurrentGrammarPath(r,t){let a=this.getHumanReadableRuleStack(),s=this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1);return{ruleStack:a,occurrenceStack:s,lastTok:r,lastTokOccurrence:t}}getHumanReadableRuleStack(){let r=this.RULE_STACK_IDX+1,t=new Array(r);for(let a=0;a<r;a++)t[a]=this.shortRuleNameToFullName(this.RULE_STACK[a]);return t}};i(sIr,"attemptInRepetitionRecovery");J(sIr,"attemptInRepetitionRecovery");uW=8,oIr=1<<uW,lIr=2<<uW,vst=3<<uW,wst=4<<uW,xst=5<<uW,w3e=6<<uW,klt=class{static{i(this,"LLkLookaheadStrategy")}static{J(this,"LLkLookaheadStrategy")}constructor(r){var t;this.maxLookahead=(t=r?.maxLookahead)!==null&&t!==void 0?t:f8.maxLookahead}validate(r){let t=this.validateNoLeftRecursion(r.rules);if(t.length===0){let a=this.validateEmptyOrAlternatives(r.rules),s=this.validateAmbiguousAlternationAlternatives(r.rules,this.maxLookahead),l=this.validateSomeNonEmptyLookaheadPath(r.rules,this.maxLookahead);return[...t,...a,...s,...l]}return t}validateNoLeftRecursion(r){return r.flatMap(t=>xlt(t,t,ZP))}validateEmptyOrAlternatives(r){return r.flatMap(t=>V9r(t,ZP))}validateAmbiguousAlternationAlternatives(r,t){return r.flatMap(a=>W9r(a,t,ZP))}validateSomeNonEmptyLookaheadPath(r,t){return q9r(r,t,ZP)}buildLookaheadForAlternation(r){return D9r(r.prodOccurrence,r.rule,r.maxLookahead,r.hasPredicates,r.dynamicTokensEnabled,M9r)}buildLookaheadForOptional(r){return I9r(r.prodOccurrence,r.rule,r.maxLookahead,r.dynamicTokensEnabled,p4e(r.prodType),N9r)}},Sri=class{static{i(this,"LooksAhead")}static{J(this,"LooksAhead")}initLooksAhead(r){this.dynamicTokensEnabled=Object.hasOwn(r,"dynamicTokensEnabled")?r.dynamicTokensEnabled:f8.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(r,"maxLookahead")?r.maxLookahead:f8.maxLookahead,this.lookaheadStrategy=Object.hasOwn(r,"lookaheadStrategy")?r.lookaheadStrategy:new klt({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(r){r.forEach(t=>{this.TRACE_INIT(`${t.name} Rule Lookahead`,()=>{let{alternation:a,repetition:s,option:l,repetitionMandatory:h,repetitionMandatoryWithSeparator:f,repetitionWithSeparator:d}=cIr(t);a.forEach(m=>{let b=m.idx===0?"":m.idx;this.TRACE_INIT(`${J4(m)}${b}`,()=>{let v=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:m.idx,rule:t,maxLookahead:m.maxLookahead||this.maxLookahead,hasPredicates:m.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[t.name],oIr|m.idx,v)})}),s.forEach(m=>{this.computeLookaheadFunc(t,m.idx,vst,"Repetition",m.maxLookahead,J4(m))}),l.forEach(m=>{this.computeLookaheadFunc(t,m.idx,lIr,"Option",m.maxLookahead,J4(m))}),h.forEach(m=>{this.computeLookaheadFunc(t,m.idx,wst,"RepetitionMandatory",m.maxLookahead,J4(m))}),f.forEach(m=>{this.computeLookaheadFunc(t,m.idx,w3e,"RepetitionMandatoryWithSeparator",m.maxLookahead,J4(m))}),d.forEach(m=>{this.computeLookaheadFunc(t,m.idx,xst,"RepetitionWithSeparator",m.maxLookahead,J4(m))})})})}computeLookaheadFunc(r,t,a,s,l,h){this.TRACE_INIT(`${h}${t===0?"":t}`,()=>{let f=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:r,maxLookahead:l||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:s});this.setLaFuncCache(this.fullRuleNameToShort[r.name],a|t,f)})}setLaFuncCache(r,t,a){let s=this.lookAheadFuncsCache[r];s===void 0&&(s=[],this.lookAheadFuncsCache[r]=s),s[t]=a}},Ari=class extends aW{static{i(this,"DslMethodsCollectorVisitor")}static{J(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(r){this.dslMethods.option.push(r)}visitRepetitionWithSeparator(r){this.dslMethods.repetitionWithSeparator.push(r)}visitRepetitionMandatory(r){this.dslMethods.repetitionMandatory.push(r)}visitRepetitionMandatoryWithSeparator(r){this.dslMethods.repetitionMandatoryWithSeparator.push(r)}visitRepetition(r){this.dslMethods.repetition.push(r)}visitAlternation(r){this.dslMethods.alternation.push(r)}},Bke=new Ari;i(cIr,"collectMethods");J(cIr,"collectMethods");i(Tst,"setNodeLocationOnlyOffset");J(Tst,"setNodeLocationOnlyOffset");i(kst,"setNodeLocationFull");J(kst,"setNodeLocationFull");i(uIr,"addTerminalToCst");J(uIr,"addTerminalToCst");i(hIr,"addNoneTerminalToCst");J(hIr,"addNoneTerminalToCst");Rri="name";i(Clt,"defineNameProp");J(Clt,"defineNameProp");i(fIr,"defaultVisit");J(fIr,"defaultVisit");i(dIr,"createBaseSemanticVisitorConstructor");J(dIr,"createBaseSemanticVisitorConstructor");i(pIr,"createBaseVisitorConstructorWithDefaults");J(pIr,"createBaseVisitorConstructorWithDefaults");(function(r){r[r.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",r[r.MISSING_METHOD=1]="MISSING_METHOD"})(Cst||(Cst={}));i(gIr,"validateVisitor");J(gIr,"validateVisitor");i(mIr,"validateMissingCstMethods");J(mIr,"validateMissingCstMethods");Lri=class{static{i(this,"TreeBuilder")}static{J(this,"TreeBuilder")}initTreeBuilder(r){if(this.CST_STACK=[],this.outputCst=r.outputCst,this.nodeLocationTracking=Object.hasOwn(r,"nodeLocationTracking")?r.nodeLocationTracking:f8.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=kst,this.setNodeLocationFromNode=kst,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Tst,this.setNodeLocationFromNode=Tst,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid <nodeLocationTracking> config option: "${r.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(r){r.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(r){r.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(r){r.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(r){let t=this.LA_FAST(1);r.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(r){let t={name:r,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(r){let t=this.LA(0),a=r.location;a.startOffset!==-1&&a.startOffset<=t.startOffset?(a.endOffset=t.endOffset,a.endLine=t.endLine,a.endColumn=t.endColumn):(a.startOffset=-1,a.startLine=-1,a.startColumn=-1)}cstPostRuleOnlyOffset(r){let t=this.LA(0),a=r.location;a.startOffset!==-1&&a.startOffset<=t.startOffset?a.endOffset=t.endOffset:a.startOffset=-1}cstPostTerminal(r,t){let a=this.CST_STACK[this.CST_STACK.length-1];uIr(a,t,r),this.setNodeLocationFromToken(a.location,t)}cstPostNonTerminal(r,t){let a=this.CST_STACK[this.CST_STACK.length-1];hIr(a,t,r),this.setNodeLocationFromNode(a.location,r.location)}get currCSTNode(){let r=this;return r.CST_STACK[r.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let r=dIr(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=r,r}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let r=pIr(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=r,r}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}},_ri=class{static{i(this,"LexerAdapter")}static{J(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(r){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=r,this.tokVectorLength=r.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):QV}LA_FAST(r){let t=this.currIdx+r;return this.tokVector[t]}LA(r){let t=this.currIdx+r;return t<0||this.tokVectorLength<=t?QV:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(r){this.currIdx=r}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}},Dri=class{static{i(this,"RecognizerApi")}static{J(this,"RecognizerApi")}ACTION(r){return r.call(this)}consume(r,t,a){return this.consumeInternal(t,r,a)}subrule(r,t,a){return this.subruleInternal(t,r,a)}option(r,t){return this.optionInternal(t,r)}or(r,t){return this.orInternal(t,r)}many(r,t){return this.manyInternal(r,t)}atLeastOne(r,t){return this.atLeastOneInternal(r,t)}CONSUME(r,t){return this.consumeInternal(r,0,t)}CONSUME1(r,t){return this.consumeInternal(r,1,t)}CONSUME2(r,t){return this.consumeInternal(r,2,t)}CONSUME3(r,t){return this.consumeInternal(r,3,t)}CONSUME4(r,t){return this.consumeInternal(r,4,t)}CONSUME5(r,t){return this.consumeInternal(r,5,t)}CONSUME6(r,t){return this.consumeInternal(r,6,t)}CONSUME7(r,t){return this.consumeInternal(r,7,t)}CONSUME8(r,t){return this.consumeInternal(r,8,t)}CONSUME9(r,t){return this.consumeInternal(r,9,t)}SUBRULE(r,t){return this.subruleInternal(r,0,t)}SUBRULE1(r,t){return this.subruleInternal(r,1,t)}SUBRULE2(r,t){return this.subruleInternal(r,2,t)}SUBRULE3(r,t){return this.subruleInternal(r,3,t)}SUBRULE4(r,t){return this.subruleInternal(r,4,t)}SUBRULE5(r,t){return this.subruleInternal(r,5,t)}SUBRULE6(r,t){return this.subruleInternal(r,6,t)}SUBRULE7(r,t){return this.subruleInternal(r,7,t)}SUBRULE8(r,t){return this.subruleInternal(r,8,t)}SUBRULE9(r,t){return this.subruleInternal(r,9,t)}OPTION(r){return this.optionInternal(r,0)}OPTION1(r){return this.optionInternal(r,1)}OPTION2(r){return this.optionInternal(r,2)}OPTION3(r){return this.optionInternal(r,3)}OPTION4(r){return this.optionInternal(r,4)}OPTION5(r){return this.optionInternal(r,5)}OPTION6(r){return this.optionInternal(r,6)}OPTION7(r){return this.optionInternal(r,7)}OPTION8(r){return this.optionInternal(r,8)}OPTION9(r){return this.optionInternal(r,9)}OR(r){return this.orInternal(r,0)}OR1(r){return this.orInternal(r,1)}OR2(r){return this.orInternal(r,2)}OR3(r){return this.orInternal(r,3)}OR4(r){return this.orInternal(r,4)}OR5(r){return this.orInternal(r,5)}OR6(r){return this.orInternal(r,6)}OR7(r){return this.orInternal(r,7)}OR8(r){return this.orInternal(r,8)}OR9(r){return this.orInternal(r,9)}MANY(r){this.manyInternal(0,r)}MANY1(r){this.manyInternal(1,r)}MANY2(r){this.manyInternal(2,r)}MANY3(r){this.manyInternal(3,r)}MANY4(r){this.manyInternal(4,r)}MANY5(r){this.manyInternal(5,r)}MANY6(r){this.manyInternal(6,r)}MANY7(r){this.manyInternal(7,r)}MANY8(r){this.manyInternal(8,r)}MANY9(r){this.manyInternal(9,r)}MANY_SEP(r){this.manySepFirstInternal(0,r)}MANY_SEP1(r){this.manySepFirstInternal(1,r)}MANY_SEP2(r){this.manySepFirstInternal(2,r)}MANY_SEP3(r){this.manySepFirstInternal(3,r)}MANY_SEP4(r){this.manySepFirstInternal(4,r)}MANY_SEP5(r){this.manySepFirstInternal(5,r)}MANY_SEP6(r){this.manySepFirstInternal(6,r)}MANY_SEP7(r){this.manySepFirstInternal(7,r)}MANY_SEP8(r){this.manySepFirstInternal(8,r)}MANY_SEP9(r){this.manySepFirstInternal(9,r)}AT_LEAST_ONE(r){this.atLeastOneInternal(0,r)}AT_LEAST_ONE1(r){return this.atLeastOneInternal(1,r)}AT_LEAST_ONE2(r){this.atLeastOneInternal(2,r)}AT_LEAST_ONE3(r){this.atLeastOneInternal(3,r)}AT_LEAST_ONE4(r){this.atLeastOneInternal(4,r)}AT_LEAST_ONE5(r){this.atLeastOneInternal(5,r)}AT_LEAST_ONE6(r){this.atLeastOneInternal(6,r)}AT_LEAST_ONE7(r){this.atLeastOneInternal(7,r)}AT_LEAST_ONE8(r){this.atLeastOneInternal(8,r)}AT_LEAST_ONE9(r){this.atLeastOneInternal(9,r)}AT_LEAST_ONE_SEP(r){this.atLeastOneSepFirstInternal(0,r)}AT_LEAST_ONE_SEP1(r){this.atLeastOneSepFirstInternal(1,r)}AT_LEAST_ONE_SEP2(r){this.atLeastOneSepFirstInternal(2,r)}AT_LEAST_ONE_SEP3(r){this.atLeastOneSepFirstInternal(3,r)}AT_LEAST_ONE_SEP4(r){this.atLeastOneSepFirstInternal(4,r)}AT_LEAST_ONE_SEP5(r){this.atLeastOneSepFirstInternal(5,r)}AT_LEAST_ONE_SEP6(r){this.atLeastOneSepFirstInternal(6,r)}AT_LEAST_ONE_SEP7(r){this.atLeastOneSepFirstInternal(7,r)}AT_LEAST_ONE_SEP8(r){this.atLeastOneSepFirstInternal(8,r)}AT_LEAST_ONE_SEP9(r){this.atLeastOneSepFirstInternal(9,r)}RULE(r,t,a=Y3e){if(this.definedRulesNames.includes(r)){let h={message:ZP.buildDuplicateRuleNameError({topLevelRule:r,grammarName:this.className}),type:Fb.DUPLICATE_RULE_NAME,ruleName:r};this.definitionErrors.push(h)}this.definedRulesNames.push(r);let s=this.defineRule(r,t,a);return this[r]=s,s}OVERRIDE_RULE(r,t,a=Y3e){let s=U9r(r,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(s);let l=this.defineRule(r,t,a);return this[r]=l,l}BACKTRACK(r,t){var a;let s=(a=r.coreRule)!==null&&a!==void 0?a:r;return function(){this.isBackTrackingStack.push(1);let l=this.saveRecogState();try{return s.apply(this,t),!0}catch(h){if(dae(h))return!1;throw h}finally{this.reloadRecogState(l),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return FDr(Object.values(this.gastProductionsCache))}},Iri=class{static{i(this,"RecognizerEngine")}static{J(this,"RecognizerEngine")}initRecognizerEngine(r,t){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=fae,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
For Further details.`);if(Array.isArray(r)){if(r.length===0)throw Error(`A Token Vocabulary cannot be empty.
|
|
Note that the first argument for the parser constructor
|
|
is no longer a Token vector (since v4.0).`);if(typeof r[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
For Further details.`)}if(Array.isArray(r))this.tokensMap=r.reduce((l,h)=>(l[h.name]=h,l),{});else if(Object.hasOwn(r,"modes")&&Object.values(r.modes).flat().every(S9r)){let l=Object.values(r.modes).flat(),h=[...new Set(l)];this.tokensMap=h.reduce((f,d)=>(f[d.name]=d,f),{})}else if(typeof r=="object"&&r!==null)this.tokensMap=Object.assign({},r);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=h8;let s=(Object.hasOwn(r,"modes")?Object.values(r.modes).flat():Object.values(r)).every(l=>{var h;return((h=l.categoryMatches)===null||h===void 0?void 0:h.length)==0});this.tokenMatcher=s?fae:lW,cW(Object.values(this.tokensMap))}defineRule(r,t,a){if(this.selfAnalysisDone)throw Error(`Grammar rule <${r}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let s=Object.hasOwn(a,"resyncEnabled")?a.resyncEnabled:Y3e.resyncEnabled,l=Object.hasOwn(a,"recoveryValueFunc")?a.recoveryValueFunc:Y3e.recoveryValueFunc,h=this.ruleShortNameIdx++;this.shortRuleNameToFull[h]=r,this.fullRuleNameToShort[r]=h;let f;return this.outputCst===!0?f=J(i(function(...v){try{this.ruleInvocationStateUpdate(h,r,this.subruleIdx),t.apply(this,v);let T=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(T),T}catch(T){return this.invokeRuleCatch(T,s,l)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"),"invokeRuleWithTry"):f=J(i(function(...v){try{return this.ruleInvocationStateUpdate(h,r,this.subruleIdx),t.apply(this,v)}catch(T){return this.invokeRuleCatch(T,s,l)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),"invokeRuleWithTryCst"),Object.assign(J(i(function(...v){this.onBeforeParse(r);try{return f.apply(this,v)}finally{this.onAfterParse(r)}},"rootRule"),"rootRule"),{ruleName:r,originalGrammarAction:t,coreRule:f})}invokeRuleCatch(r,t,a){let s=this.RULE_STACK_IDX===0,l=t&&!this.isBackTracking()&&this.recoveryEnabled;if(dae(r)){let h=r;if(l){let f=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(f))if(h.resyncedTokens=this.reSyncTo(f),this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return a(r);else{if(this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,h.partialCstResult=d}throw h}}else{if(s)return this.moveToTerminatedState(),a(r);throw h}}else throw r}optionInternal(r,t){let a=lIr|t;return this.optionInternalLogic(r,t,a)}optionInternalLogic(r,t,a){let s=this.currRuleLookaheadFuncs[a],l;if(typeof r!="function"){l=r.DEF;let h=r.GATE;if(h!==void 0){let f=s;s=J(()=>h.call(this)&&f.call(this),"lookAheadFunc")}}else l=r;if(s.call(this)===!0)return l.call(this)}atLeastOneInternal(r,t){let a=wst|r;return this.atLeastOneInternalLogic(r,t,a)}atLeastOneInternalLogic(r,t,a){let s=this.currRuleLookaheadFuncs[a],l;if(typeof t!="function"){l=t.DEF;let h=t.GATE;if(h!==void 0){let f=s;s=J(()=>h.call(this)&&f.call(this),"lookAheadFunc")}}else l=t;if(s.call(this)===!0){let h=this.doSingleRepetition(l);for(;s.call(this)===!0&&h===!0;)h=this.doSingleRepetition(l)}else throw this.raiseEarlyExitException(r,Fd.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[r,t],s,wst,r,yri)}atLeastOneSepFirstInternal(r,t){let a=w3e|r;this.atLeastOneSepFirstInternalLogic(r,t,a)}atLeastOneSepFirstInternalLogic(r,t,a){let s=t.DEF,l=t.SEP;if(this.currRuleLookaheadFuncs[a].call(this)===!0){s.call(this);let f=J(()=>this.tokenMatcher(this.LA_FAST(1),l),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA_FAST(1),l)===!0;)this.CONSUME(l),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[r,l,f,s,LLr],f,w3e,r,LLr)}else throw this.raiseEarlyExitException(r,Fd.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(r,t){let a=vst|r;return this.manyInternalLogic(r,t,a)}manyInternalLogic(r,t,a){let s=this.currRuleLookaheadFuncs[a],l;if(typeof t!="function"){l=t.DEF;let f=t.GATE;if(f!==void 0){let d=s;s=J(()=>f.call(this)&&d.call(this),"lookaheadFunction")}}else l=t;let h=!0;for(;s.call(this)===!0&&h===!0;)h=this.doSingleRepetition(l);this.attemptInRepetitionRecovery(this.manyInternal,[r,t],s,vst,r,mri,h)}manySepFirstInternal(r,t){let a=xst|r;this.manySepFirstInternalLogic(r,t,a)}manySepFirstInternalLogic(r,t,a){let s=t.DEF,l=t.SEP;if(this.currRuleLookaheadFuncs[a].call(this)===!0){s.call(this);let f=J(()=>this.tokenMatcher(this.LA_FAST(1),l),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA_FAST(1),l)===!0;)this.CONSUME(l),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[r,l,f,s,RLr],f,xst,r,RLr)}}repetitionSepSecondInternal(r,t,a,s,l){for(;a();)this.CONSUME(t),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[r,t,a,s,l],a,w3e,r,l)}doSingleRepetition(r){let t=this.getLexerPosition();return r.call(this),this.getLexerPosition()>t}orInternal(r,t){let a=oIr|t,s=Array.isArray(r)?r:r.DEF,h=this.currRuleLookaheadFuncs[a].call(this,s);if(h!==void 0)return s[h].ALT.call(this);this.raiseNoAltException(t,r.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(r,t,a){let s;try{let l=a!==void 0?a.ARGS:void 0;return this.subruleIdx=t,s=r.coreRule.apply(this,l),this.cstPostNonTerminal(s,a!==void 0&&a.LABEL!==void 0?a.LABEL:r.ruleName),s}catch(l){throw this.subruleInternalError(l,a,r.ruleName)}}subruleInternalError(r,t,a){throw dae(r)&&r.partialCstResult!==void 0&&(this.cstPostNonTerminal(r.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:a),delete r.partialCstResult),r}consumeInternal(r,t,a){let s;try{let l=this.LA_FAST(1);this.tokenMatcher(l,r)===!0?(this.consumeToken(),s=l):this.consumeInternalError(r,l,a)}catch(l){s=this.consumeInternalRecovery(r,t,l)}return this.cstPostTerminal(a!==void 0&&a.LABEL!==void 0?a.LABEL:r.name,s),s}consumeInternalError(r,t,a){let s,l=this.LA(0);throw a!==void 0&&a.ERR_MSG?s=a.ERR_MSG:s=this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:t,previous:l,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new iIr(s,t,l))}consumeInternalRecovery(r,t,a){if(this.recoveryEnabled&&a.name==="MismatchedTokenException"&&!this.isBackTracking()){let s=this.getFollowsForInRuleRecovery(r,t);try{return this.tryInRuleRecovery(r,s)}catch(l){throw l.name===aIr?a:l}}else throw a}saveRecogState(){let r=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:r,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(r){this.errors=r.errors,this.importLexerState(r.lexerState);let t=r.RULE_STACK;for(let a=0;a<t.length;a++)this.RULE_STACK[a]=t[a];this.RULE_STACK_IDX=t.length-1,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(r,t,a){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=a,this.RULE_STACK[++this.RULE_STACK_IDX]=r,this.currRuleShortName=r,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[r],this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let r=this.currRuleShortName;return this.shortRuleNameToFull[r]}shortRuleNameToFullName(r){return this.shortRuleNameToFull[r]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),h8)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(r){for(let t=0;t<this.maxLookahead+1;t++)this.tokVector.push(QV)}onAfterParse(r){if(this.isAtEndOfInput()===!1){let t=this.LA(1),a=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Tri(a,t))}for(;this.tokVector.at(-1)===QV;)this.tokVector.pop()}},Mri=class{static{i(this,"ErrorHandler")}static{J(this,"ErrorHandler")}initErrorHandler(r){this._errors=[],this.errorMessageProvider=Object.hasOwn(r,"errorMessageProvider")?r.errorMessageProvider:f8.errorMessageProvider}SAVE_ERROR(r){if(dae(r))return r.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(r),r;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return[...this._errors]}set errors(r){this._errors=r}raiseEarlyExitException(r,t,a){let s=this.getCurrRuleFullName(),l=this.getGAstProductions()[s],f=_ae(r,l,t,this.maxLookahead)[0],d=[];for(let b=1;b<=this.maxLookahead;b++)d.push(this.LA(b));let m=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:f,actual:d,previous:this.LA(0),customUserDescription:a,ruleName:s});throw this.SAVE_ERROR(new kri(m,this.LA(1),this.LA(0)))}raiseNoAltException(r,t){let a=this.getCurrRuleFullName(),s=this.getGAstProductions()[a],l=Lae(r,s,this.maxLookahead),h=[];for(let m=1;m<=this.maxLookahead;m++)h.push(this.LA(m));let f=this.LA(0),d=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:l,actual:h,previous:f,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new xri(d,this.LA(1),f))}},m4e={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(m4e);_Lr=!0,DLr=255,yIr=ylt({name:"RECORDING_PHASE_TOKEN",pattern:w2.NA});cW([yIr]);bIr=h4e(yIr,`This IToken indicates the Parser is in Recording Phase
|
|
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(bIr);Nri={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Ori=class{static{i(this,"GastRecorder")}static{J(this,"GastRecorder")}initGastRecorder(r){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let r=0;r<10;r++){let t=r>0?r:"";this[`CONSUME${t}`]=function(a,s){return this.consumeInternalRecord(a,r,s)},this[`SUBRULE${t}`]=function(a,s){return this.subruleInternalRecord(a,r,s)},this[`OPTION${t}`]=function(a){return this.optionInternalRecord(a,r)},this[`OR${t}`]=function(a){return this.orInternalRecord(a,r)},this[`MANY${t}`]=function(a){this.manyInternalRecord(r,a)},this[`MANY_SEP${t}`]=function(a){this.manySepFirstInternalRecord(r,a)},this[`AT_LEAST_ONE${t}`]=function(a){this.atLeastOneInternalRecord(r,a)},this[`AT_LEAST_ONE_SEP${t}`]=function(a){this.atLeastOneSepFirstInternalRecord(r,a)}}this.consume=function(r,t,a){return this.consumeInternalRecord(t,r,a)},this.subrule=function(r,t,a){return this.subruleInternalRecord(t,r,a)},this.option=function(r,t){return this.optionInternalRecord(t,r)},this.or=function(r,t){return this.orInternalRecord(t,r)},this.many=function(r,t){this.manyInternalRecord(r,t)},this.atLeastOne=function(r,t){this.atLeastOneInternalRecord(r,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let r=this;for(let t=0;t<10;t++){let a=t>0?t:"";delete r[`CONSUME${a}`],delete r[`SUBRULE${a}`],delete r[`OPTION${a}`],delete r[`OR${a}`],delete r[`MANY${a}`],delete r[`MANY_SEP${a}`],delete r[`AT_LEAST_ONE${a}`],delete r[`AT_LEAST_ONE_SEP${a}`]}delete r.consume,delete r.subrule,delete r.option,delete r.or,delete r.many,delete r.atLeastOne,delete r.ACTION,delete r.BACKTRACK,delete r.LA})}ACTION_RECORD(r){}BACKTRACK_RECORD(r,t){return()=>!0}LA_RECORD(r){return QV}topLevelRuleRecord(r,t){try{let a=new iW({definition:[],name:r});return a.name=r,this.recordingProdStack.push(a),t.call(this),this.recordingProdStack.pop(),a}catch(a){if(a.KNOWN_RECORDER_ERROR!==!0)try{a.message=a.message+`
|
|
This error was thrown during the "grammar recording phase" For more info see:
|
|
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw a}throw a}}optionInternalRecord(r,t){return $V.call(this,b1,r,t)}atLeastOneInternalRecord(r,t){$V.call(this,ux,t,r)}atLeastOneSepFirstInternalRecord(r,t){$V.call(this,hx,t,r,_Lr)}manyInternalRecord(r,t){$V.call(this,kp,t,r)}manySepFirstInternalRecord(r,t){$V.call(this,T2,t,r,_Lr)}orInternalRecord(r,t){return vIr.call(this,r,t)}subruleInternalRecord(r,t,a){if(pae(t),!r||!Object.hasOwn(r,"ruleName")){let f=new Error(`<SUBRULE${Est(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(r)}>
|
|
inside top level rule: <${this.recordingProdStack[0].name}>`);throw f.KNOWN_RECORDER_ERROR=!0,f}let s=this.recordingProdStack.at(-1),l=r.ruleName,h=new Bb({idx:t,nonTerminalName:l,label:a?.LABEL,referencedRule:void 0});return s.definition.push(h),this.outputCst?Nri:m4e}consumeInternalRecord(r,t,a){if(pae(t),!glt(r)){let h=new Error(`<CONSUME${Est(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(r)}>
|
|
inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}let s=this.recordingProdStack.at(-1),l=new Af({idx:t,terminalType:r,label:a?.LABEL});return s.definition.push(l),bIr}};i($V,"recordProd");J($V,"recordProd");i(vIr,"recordOrProd");J(vIr,"recordOrProd");i(Est,"getIdxSuffix");J(Est,"getIdxSuffix");i(pae,"assertMethodIdxIsValid");J(pae,"assertMethodIdxIsValid");Pri=class{static{i(this,"PerformanceTracer")}static{J(this,"PerformanceTracer")}initPerformanceTracer(r){if(Object.hasOwn(r,"traceInitPerf")){let t=r.traceInitPerf,a=typeof t=="number";this.traceInitMaxIdent=a?t:1/0,this.traceInitPerf=a?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=f8.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(r,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let a=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${a}--> <${r}>`);let{time:s,value:l}=clt(t),h=s>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&h(`${a}<-- <${r}> time: ${s}ms`),this.traceInitIndent--,l}else return t()}};i(wIr,"applyMixins");J(wIr,"applyMixins");QV=h4e(h8,"",-1,-1,-1,-1,-1,-1);Object.freeze(QV);f8=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:VV,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Y3e=Object.freeze({recoveryValueFunc:J(()=>{},"recoveryValueFunc"),resyncEnabled:!0});(function(r){r[r.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",r[r.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",r[r.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",r[r.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",r[r.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",r[r.LEFT_RECURSION=5]="LEFT_RECURSION",r[r.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",r[r.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",r[r.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",r[r.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",r[r.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",r[r.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",r[r.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",r[r.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Fb||(Fb={}));i(Sst,"EMPTY_ALT");J(Sst,"EMPTY_ALT");Elt=class xIr{static{i(this,"_Parser")}static{J(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let a=this.className;this.TRACE_INIT("toFastProps",()=>{ult(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),this.definedRulesNames.forEach(l=>{let f=this[l].originalGrammarAction,d;this.TRACE_INIT(`${l} Rule`,()=>{d=this.topLevelRuleRecord(l,f)}),this.gastProductionsCache[l]=d})}finally{this.disableRecording()}});let s=[];if(this.TRACE_INIT("Grammar Resolving",()=>{s=J9r({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(s)}),this.TRACE_INIT("Grammar Validations",()=>{if(s.length===0&&this.skipValidations===!1){let l=Q9r({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:ZP,grammarName:a}),h=F9r({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:a});this.definitionErrors=this.definitionErrors.concat(l,h)}}),this.definitionErrors.length===0&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let l=WDr(Object.values(this.gastProductionsCache));this.resyncFollows=l}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var l,h;(h=(l=this.lookaheadStrategy).initialize)===null||h===void 0||h.call(l,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!xIr.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw t=this.definitionErrors.map(l=>l.message),new Error(`Parser Definition Errors detected:
|
|
${t.join(`
|
|
-------------------------------
|
|
`)}`)})}constructor(t,a){this.definitionErrors=[],this.selfAnalysisDone=!1;let s=this;if(s.initErrorHandler(a),s.initLexerAdapter(),s.initLooksAhead(a),s.initRecognizerEngine(t,a),s.initRecoverable(a),s.initTreeBuilder(a),s.initGastRecorder(a),s.initPerformanceTracer(a),Object.hasOwn(a,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
For further details.`);this.skipValidations=Object.hasOwn(a,"skipValidations")?a.skipValidations:f8.skipValidations}};Elt.DEFER_DEFINITION_ERRORS_HANDLING=!1;wIr(Elt,[Eri,Sri,Lri,_ri,Iri,Dri,Mri,Ori,Pri]);Bri=class extends Elt{static{i(this,"EmbeddedActionsParser")}static{J(this,"EmbeddedActionsParser")}constructor(r,t=f8){let a=Object.assign({},t);a.outputCst=!1,super(r,a)}};i(TIr,"arrayMap");J(TIr,"arrayMap");kIr=TIr;i(CIr,"listCacheClear");J(CIr,"listCacheClear");Fri=CIr;i(EIr,"eq");J(EIr,"eq");SIr=EIr;i(AIr,"assocIndexOf");J(AIr,"assocIndexOf");y4e=AIr,$ri=Array.prototype,Gri=$ri.splice;i(RIr,"listCacheDelete");J(RIr,"listCacheDelete");jri=RIr;i(LIr,"listCacheGet");J(LIr,"listCacheGet");zri=LIr;i(_Ir,"listCacheHas");J(_Ir,"listCacheHas");Uri=_Ir;i(DIr,"listCacheSet");J(DIr,"listCacheSet");Vri=DIr;i(aB,"ListCache");J(aB,"ListCache");aB.prototype.clear=Fri;aB.prototype.delete=jri;aB.prototype.get=zri;aB.prototype.has=Uri;aB.prototype.set=Vri;b4e=aB;i(IIr,"stackClear");J(IIr,"stackClear");Wri=IIr;i(MIr,"stackDelete");J(MIr,"stackDelete");Hri=MIr;i(NIr,"stackGet");J(NIr,"stackGet");qri=NIr;i(OIr,"stackHas");J(OIr,"stackHas");Yri=OIr,Xri=typeof global=="object"&&global&&global.Object===Object&&global,PIr=Xri,Kri=typeof self=="object"&&self&&self.Object===Object&&self,Jri=PIr||Kri||Function("return this")(),d8=Jri,Qri=d8.Symbol,HS=Qri,BIr=Object.prototype,Zri=BIr.hasOwnProperty,eni=BIr.toString,_ie=HS?HS.toStringTag:void 0;i(FIr,"getRawTag");J(FIr,"getRawTag");tni=FIr,rni=Object.prototype,nni=rni.toString;i($Ir,"objectToString");J($Ir,"objectToString");ini=$Ir,ani="[object Null]",sni="[object Undefined]",ILr=HS?HS.toStringTag:void 0;i(GIr,"baseGetTag");J(GIr,"baseGetTag");hW=GIr;i(jIr,"isObject");J(jIr,"isObject");Slt=jIr,oni="[object AsyncFunction]",lni="[object Function]",cni="[object GeneratorFunction]",uni="[object Proxy]";i(zIr,"isFunction");J(zIr,"isFunction");UIr=zIr,hni=d8["__core-js_shared__"],Nit=hni,MLr=(function(){var r=/[^.]+$/.exec(Nit&&Nit.keys&&Nit.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();i(VIr,"isMasked");J(VIr,"isMasked");fni=VIr,dni=Function.prototype,pni=dni.toString;i(WIr,"toSource");J(WIr,"toSource");sB=WIr,gni=/[\\^$.*+?()[\]{}|]/g,mni=/^\[object .+?Constructor\]$/,yni=Function.prototype,bni=Object.prototype,vni=yni.toString,wni=bni.hasOwnProperty,xni=RegExp("^"+vni.call(wni).replace(gni,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");i(HIr,"baseIsNative");J(HIr,"baseIsNative");Tni=HIr;i(qIr,"getValue");J(qIr,"getValue");kni=qIr;i(YIr,"getNative");J(YIr,"getNative");fW=YIr,Cni=fW(d8,"Map"),gae=Cni,Eni=fW(Object,"create"),mae=Eni;i(XIr,"hashClear");J(XIr,"hashClear");Sni=XIr;i(KIr,"hashDelete");J(KIr,"hashDelete");Ani=KIr,Rni="__lodash_hash_undefined__",Lni=Object.prototype,_ni=Lni.hasOwnProperty;i(JIr,"hashGet");J(JIr,"hashGet");Dni=JIr,Ini=Object.prototype,Mni=Ini.hasOwnProperty;i(QIr,"hashHas");J(QIr,"hashHas");Nni=QIr,Oni="__lodash_hash_undefined__";i(ZIr,"hashSet");J(ZIr,"hashSet");Pni=ZIr;i(oB,"Hash");J(oB,"Hash");oB.prototype.clear=Sni;oB.prototype.delete=Ani;oB.prototype.get=Dni;oB.prototype.has=Nni;oB.prototype.set=Pni;NLr=oB;i(eMr,"mapCacheClear");J(eMr,"mapCacheClear");Bni=eMr;i(tMr,"isKeyable");J(tMr,"isKeyable");Fni=tMr;i(rMr,"getMapData");J(rMr,"getMapData");v4e=rMr;i(nMr,"mapCacheDelete");J(nMr,"mapCacheDelete");$ni=nMr;i(iMr,"mapCacheGet");J(iMr,"mapCacheGet");Gni=iMr;i(aMr,"mapCacheHas");J(aMr,"mapCacheHas");jni=aMr;i(sMr,"mapCacheSet");J(sMr,"mapCacheSet");zni=sMr;i(lB,"MapCache");J(lB,"MapCache");lB.prototype.clear=Bni;lB.prototype.delete=$ni;lB.prototype.get=Gni;lB.prototype.has=jni;lB.prototype.set=zni;w4e=lB,Uni=200;i(oMr,"stackSet");J(oMr,"stackSet");Vni=oMr;i(cB,"Stack");J(cB,"Stack");cB.prototype.clear=Wri;cB.prototype.delete=Hri;cB.prototype.get=qri;cB.prototype.has=Yri;cB.prototype.set=Vni;x3e=cB,Wni="__lodash_hash_undefined__";i(lMr,"setCacheAdd");J(lMr,"setCacheAdd");Hni=lMr;i(cMr,"setCacheHas");J(cMr,"setCacheHas");qni=cMr;i(yae,"SetCache");J(yae,"SetCache");yae.prototype.add=yae.prototype.push=Hni;yae.prototype.has=qni;uMr=yae;i(hMr,"arraySome");J(hMr,"arraySome");Yni=hMr;i(fMr,"cacheHas");J(fMr,"cacheHas");dMr=fMr,Xni=1,Kni=2;i(pMr,"equalArrays");J(pMr,"equalArrays");gMr=pMr,Jni=d8.Uint8Array,OLr=Jni;i(mMr,"mapToArray");J(mMr,"mapToArray");Qni=mMr;i(yMr,"setToArray");J(yMr,"setToArray");Alt=yMr,Zni=1,eii=2,tii="[object Boolean]",rii="[object Date]",nii="[object Error]",iii="[object Map]",aii="[object Number]",sii="[object RegExp]",oii="[object Set]",lii="[object String]",cii="[object Symbol]",uii="[object ArrayBuffer]",hii="[object DataView]",PLr=HS?HS.prototype:void 0,Oit=PLr?PLr.valueOf:void 0;i(bMr,"equalByTag");J(bMr,"equalByTag");fii=bMr;i(vMr,"arrayPush");J(vMr,"arrayPush");wMr=vMr,dii=Array.isArray,$b=dii;i(xMr,"baseGetAllKeys");J(xMr,"baseGetAllKeys");pii=xMr;i(TMr,"arrayFilter");J(TMr,"arrayFilter");kMr=TMr;i(CMr,"stubArray");J(CMr,"stubArray");gii=CMr,mii=Object.prototype,yii=mii.propertyIsEnumerable,BLr=Object.getOwnPropertySymbols,bii=BLr?function(r){return r==null?[]:(r=Object(r),kMr(BLr(r),function(t){return yii.call(r,t)}))}:gii,vii=bii;i(EMr,"baseTimes");J(EMr,"baseTimes");wii=EMr;i(SMr,"isObjectLike");J(SMr,"isObjectLike");ZV=SMr,xii="[object Arguments]";i(AMr,"baseIsArguments");J(AMr,"baseIsArguments");FLr=AMr,RMr=Object.prototype,Tii=RMr.hasOwnProperty,kii=RMr.propertyIsEnumerable,Cii=FLr((function(){return arguments})())?FLr:function(r){return ZV(r)&&Tii.call(r,"callee")&&!kii.call(r,"callee")},x4e=Cii;i(LMr,"stubFalse");J(LMr,"stubFalse");Eii=LMr,_Mr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$Lr=_Mr&&typeof module=="object"&&module&&!module.nodeType&&module,Sii=$Lr&&$Lr.exports===_Mr,GLr=Sii?d8.Buffer:void 0,Aii=GLr?GLr.isBuffer:void 0,Rii=Aii||Eii,X3e=Rii,Lii=9007199254740991,_ii=/^(?:0|[1-9]\d*)$/;i(DMr,"isIndex");J(DMr,"isIndex");IMr=DMr,Dii=9007199254740991;i(MMr,"isLength");J(MMr,"isLength");Rlt=MMr,Iii="[object Arguments]",Mii="[object Array]",Nii="[object Boolean]",Oii="[object Date]",Pii="[object Error]",Bii="[object Function]",Fii="[object Map]",$ii="[object Number]",Gii="[object Object]",jii="[object RegExp]",zii="[object Set]",Uii="[object String]",Vii="[object WeakMap]",Wii="[object ArrayBuffer]",Hii="[object DataView]",qii="[object Float32Array]",Yii="[object Float64Array]",Xii="[object Int8Array]",Kii="[object Int16Array]",Jii="[object Int32Array]",Qii="[object Uint8Array]",Zii="[object Uint8ClampedArray]",eai="[object Uint16Array]",tai="[object Uint32Array]",Sf={};Sf[qii]=Sf[Yii]=Sf[Xii]=Sf[Kii]=Sf[Jii]=Sf[Qii]=Sf[Zii]=Sf[eai]=Sf[tai]=!0;Sf[Iii]=Sf[Mii]=Sf[Wii]=Sf[Nii]=Sf[Hii]=Sf[Oii]=Sf[Pii]=Sf[Bii]=Sf[Fii]=Sf[$ii]=Sf[Gii]=Sf[jii]=Sf[zii]=Sf[Uii]=Sf[Vii]=!1;i(NMr,"baseIsTypedArray");J(NMr,"baseIsTypedArray");rai=NMr;i(OMr,"baseUnary");J(OMr,"baseUnary");nai=OMr,PMr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rae=PMr&&typeof module=="object"&&module&&!module.nodeType&&module,iai=rae&&rae.exports===PMr,Pit=iai&&PIr.process,aai=(function(){try{var r=rae&&rae.require&&rae.require("util").types;return r||Pit&&Pit.binding&&Pit.binding("util")}catch{}})(),jLr=aai,zLr=jLr&&jLr.isTypedArray,sai=zLr?nai(zLr):rai,Llt=sai,oai=Object.prototype,lai=oai.hasOwnProperty;i(BMr,"arrayLikeKeys");J(BMr,"arrayLikeKeys");cai=BMr,uai=Object.prototype;i(FMr,"isPrototype");J(FMr,"isPrototype");$Mr=FMr;i(GMr,"overArg");J(GMr,"overArg");hai=GMr,fai=hai(Object.keys,Object),dai=fai,pai=Object.prototype,gai=pai.hasOwnProperty;i(jMr,"baseKeys");J(jMr,"baseKeys");zMr=jMr;i(UMr,"isArrayLike");J(UMr,"isArrayLike");T4e=UMr;i(VMr,"keys");J(VMr,"keys");_lt=VMr;i(WMr,"getAllKeys");J(WMr,"getAllKeys");ULr=WMr,mai=1,yai=Object.prototype,bai=yai.hasOwnProperty;i(HMr,"equalObjects");J(HMr,"equalObjects");vai=HMr,wai=fW(d8,"DataView"),Ast=wai,xai=fW(d8,"Promise"),Rst=xai,Tai=fW(d8,"Set"),XV=Tai,kai=fW(d8,"WeakMap"),Lst=kai,VLr="[object Map]",Cai="[object Object]",WLr="[object Promise]",HLr="[object Set]",qLr="[object WeakMap]",YLr="[object DataView]",Eai=sB(Ast),Sai=sB(gae),Aai=sB(Rst),Rai=sB(XV),Lai=sB(Lst),FP=hW;(Ast&&FP(new Ast(new ArrayBuffer(1)))!=YLr||gae&&FP(new gae)!=VLr||Rst&&FP(Rst.resolve())!=WLr||XV&&FP(new XV)!=HLr||Lst&&FP(new Lst)!=qLr)&&(FP=J(function(r){var t=hW(r),a=t==Cai?r.constructor:void 0,s=a?sB(a):"";if(s)switch(s){case Eai:return YLr;case Sai:return VLr;case Aai:return WLr;case Rai:return HLr;case Lai:return qLr}return t},"getTag"));_st=FP,_ai=1,XLr="[object Arguments]",KLr="[object Array]",Fke="[object Object]",Dai=Object.prototype,JLr=Dai.hasOwnProperty;i(qMr,"baseIsEqualDeep");J(qMr,"baseIsEqualDeep");Iai=qMr;i(Dlt,"baseIsEqual");J(Dlt,"baseIsEqual");YMr=Dlt,Mai=1,Nai=2;i(XMr,"baseIsMatch");J(XMr,"baseIsMatch");Oai=XMr;i(KMr,"isStrictComparable");J(KMr,"isStrictComparable");JMr=KMr;i(QMr,"getMatchData");J(QMr,"getMatchData");Pai=QMr;i(ZMr,"matchesStrictComparable");J(ZMr,"matchesStrictComparable");eNr=ZMr;i(tNr,"baseMatches");J(tNr,"baseMatches");Bai=tNr,Fai="[object Symbol]";i(rNr,"isSymbol");J(rNr,"isSymbol");k4e=rNr,$ai=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gai=/^\w*$/;i(nNr,"isKey");J(nNr,"isKey");Ilt=nNr,jai="Expected a function";i(C4e,"memoize");J(C4e,"memoize");C4e.Cache=w4e;zai=C4e,Uai=500;i(iNr,"memoizeCapped");J(iNr,"memoizeCapped");Vai=iNr,Wai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hai=/\\(\\)?/g,qai=Vai(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(Wai,function(a,s,l,h){t.push(l?h.replace(Hai,"$1"):s||a)}),t}),Yai=qai,Xai=1/0,QLr=HS?HS.prototype:void 0,ZLr=QLr?QLr.toString:void 0;i(Mlt,"baseToString");J(Mlt,"baseToString");Kai=Mlt;i(aNr,"toString2");J(aNr,"toString");Jai=aNr;i(sNr,"castPath");J(sNr,"castPath");oNr=sNr,Qai=1/0;i(lNr,"toKey");J(lNr,"toKey");E4e=lNr;i(cNr,"baseGet");J(cNr,"baseGet");uNr=cNr;i(hNr,"get");J(hNr,"get");Zai=hNr;i(fNr,"baseHasIn");J(fNr,"baseHasIn");esi=fNr;i(dNr,"hasPath");J(dNr,"hasPath");tsi=dNr;i(pNr,"hasIn");J(pNr,"hasIn");rsi=pNr,nsi=1,isi=2;i(gNr,"baseMatchesProperty");J(gNr,"baseMatchesProperty");asi=gNr;i(mNr,"identity");J(mNr,"identity");Nlt=mNr;i(yNr,"baseProperty");J(yNr,"baseProperty");ssi=yNr;i(bNr,"basePropertyDeep");J(bNr,"basePropertyDeep");osi=bNr;i(vNr,"property");J(vNr,"property");lsi=vNr;i(wNr,"baseIteratee");J(wNr,"baseIteratee");S4e=wNr;i(xNr,"createBaseFor");J(xNr,"createBaseFor");csi=xNr,usi=csi(),hsi=usi;i(TNr,"baseForOwn");J(TNr,"baseForOwn");fsi=TNr;i(kNr,"createBaseEach");J(kNr,"createBaseEach");dsi=kNr,psi=dsi(fsi),A4e=psi;i(CNr,"baseMap");J(CNr,"baseMap");gsi=CNr;i(ENr,"map");J(ENr,"map");l8=ENr;i(SNr,"baseFilter");J(SNr,"baseFilter");msi=SNr;i(ANr,"filter");J(ANr,"filter");ysi=ANr;i(rB,"buildATNKey");J(rB,"buildATNKey");kD=1,bsi=2,RNr=4,LNr=5,uB=7,vsi=8,wsi=9,xsi=10,Tsi=11,_Nr=12,Olt=class{static{i(this,"AbstractTransition")}static{J(this,"AbstractTransition")}constructor(r){this.target=r}isEpsilon(){return!1}},R4e=class extends Olt{static{i(this,"AtomTransition")}static{J(this,"AtomTransition")}constructor(r,t){super(r),this.tokenType=t}},DNr=class extends Olt{static{i(this,"EpsilonTransition")}static{J(this,"EpsilonTransition")}constructor(r){super(r)}isEpsilon(){return!0}},L4e=class extends Olt{static{i(this,"RuleTransition")}static{J(this,"RuleTransition")}constructor(r,t,a){super(r),this.rule=t,this.followState=a}isEpsilon(){return!0}};i(INr,"createATN");J(INr,"createATN");i(MNr,"createRuleStartAndStopATNStates");J(MNr,"createRuleStartAndStopATNStates");i(Plt,"atom");J(Plt,"atom");i(NNr,"repetition");J(NNr,"repetition");i(ONr,"repetitionSep");J(ONr,"repetitionSep");i(PNr,"repetitionMandatory");J(PNr,"repetitionMandatory");i(BNr,"repetitionMandatorySep");J(BNr,"repetitionMandatorySep");i(FNr,"alternation");J(FNr,"alternation");i($Nr,"option");J($Nr,"option");i(ED,"block");J(ED,"block");i(Blt,"plus");J(Blt,"plus");i(Flt,"star");J(Flt,"star");i(GNr,"optional");J(GNr,"optional");i(p8,"defineDecisionState");J(p8,"defineDecisionState");i(hB,"makeAlts");J(hB,"makeAlts");i(jNr,"getProdType2");J(jNr,"getProdType");i(zNr,"makeBlock");J(zNr,"makeBlock");i(_4e,"tokenRef");J(_4e,"tokenRef");i(UNr,"ruleRef");J(UNr,"ruleRef");i(VNr,"buildRuleHandle");J(VNr,"buildRuleHandle");i(ag,"epsilon");J(ag,"epsilon");i(M0,"newState");J(M0,"newState");i(D4e,"addTransition");J(D4e,"addTransition");i(WNr,"removeState");J(WNr,"removeState");K3e={},Dst=class{static{i(this,"ATNConfigSet")}static{J(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(r){let t=$lt(r);t in this.map||(this.map[t]=this.configs.length,this.configs.push(r))}get elements(){return this.configs}get alts(){return l8(this.configs,r=>r.alt)}get key(){let r="";for(let t in this.map)r+=t+":";return r}};i($lt,"getATNConfigKey");J($lt,"getATNConfigKey");i(HNr,"baseExtremum");J(HNr,"baseExtremum");ksi=HNr;i(qNr,"baseLt");J(qNr,"baseLt");Csi=qNr;i(YNr,"min");J(YNr,"min");Esi=YNr,e_r=HS?HS.isConcatSpreadable:void 0;i(XNr,"isFlattenable");J(XNr,"isFlattenable");Ssi=XNr;i(Glt,"baseFlatten");J(Glt,"baseFlatten");KNr=Glt;i(JNr,"flatMap");J(JNr,"flatMap");Asi=JNr;i(QNr,"baseFindIndex");J(QNr,"baseFindIndex");Rsi=QNr;i(ZNr,"baseIsNaN");J(ZNr,"baseIsNaN");Lsi=ZNr;i(eOr,"strictIndexOf");J(eOr,"strictIndexOf");_si=eOr;i(tOr,"baseIndexOf");J(tOr,"baseIndexOf");Dsi=tOr;i(rOr,"arrayIncludes");J(rOr,"arrayIncludes");Isi=rOr;i(nOr,"arrayIncludesWith");J(nOr,"arrayIncludesWith");Msi=nOr;i(iOr,"noop");J(iOr,"noop");Nsi=iOr,Osi=1/0,Psi=XV&&1/Alt(new XV([,-0]))[1]==Osi?function(r){return new XV(r)}:Nsi,Bsi=Psi,Fsi=200;i(aOr,"baseUniq");J(aOr,"baseUniq");$si=aOr;i(sOr,"uniqBy");J(sOr,"uniqBy");Gsi=sOr;i(oOr,"flatten");J(oOr,"flatten");jsi=oOr;i(lOr,"arrayEach");J(lOr,"arrayEach");zsi=lOr;i(cOr,"castFunction");J(cOr,"castFunction");Usi=cOr;i(uOr,"forEach");J(uOr,"forEach");Bit=uOr,Vsi="[object Map]",Wsi="[object Set]",Hsi=Object.prototype,qsi=Hsi.hasOwnProperty;i(hOr,"isEmpty");J(hOr,"isEmpty");Ysi=hOr;i(fOr,"arrayReduce");J(fOr,"arrayReduce");Xsi=fOr;i(dOr,"baseReduce");J(dOr,"baseReduce");Ksi=dOr;i(pOr,"reduce");J(pOr,"reduce");t_r=pOr;i(gOr,"createDFACache");J(gOr,"createDFACache");mOr=class{static{i(this,"PredicateSet")}static{J(this,"PredicateSet")}constructor(){this.predicates=[]}is(r){return r>=this.predicates.length||this.predicates[r]}set(r,t){this.predicates[r]=t}toString(){let r="",t=this.predicates.length;for(let a=0;a<t;a++)r+=this.predicates[a]===!0?"1":"0";return r}},r_r=new mOr,Jsi=class extends klt{static{i(this,"LLStarLookaheadStrategy")}static{J(this,"LLStarLookaheadStrategy")}constructor(r){var t,a;super(),this.logging=(t=r?.logging)!==null&&t!==void 0?t:(s=>console.log(s)),this.incomplete=(a=r?.incomplete)!==null&&a!==void 0?a:!1}initialize(r){this.atn=INr(r.rules),this.dfas=vOr(this.atn),this.callers=yOr(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(r){let{prodOccurrence:t,rule:a,hasPredicates:s,dynamicTokensEnabled:l}=r,h=this.dfas,f=this.logging,d=this.incomplete,m=rB(a,"Alternation",t),v=this.atn.decisionMap[m].decision,T=l8(yst({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:a}),C=>l8(C,E=>E[0]));if(Ist(T,!1)&&!l){let C=t_r(T,(E,S,R)=>(Bit(S,L=>{L&&(E[L.tokenTypeIdx]=R,Bit(L.categoryMatches,_=>{E[_]=R}))}),E),{});return s?function(E){var S;let R=this.LA_FAST(1),L=C[R.tokenTypeIdx];if(E!==void 0&&L!==void 0){let _=(S=E[L])===null||S===void 0?void 0:S.GATE;if(_!==void 0&&_.call(this)===!1)return}return L}:function(){let E=this.LA_FAST(1);return C[E.tokenTypeIdx]}}else return s?function(C){let E=new mOr,S=C===void 0?0:C.length;for(let L=0;L<S;L++){let _=C?.[L].GATE;E.set(L,_===void 0||_.call(this))}let R=T3e.call(this,h,v,E,f,d);return typeof R=="number"?R:void 0}:function(){let C=T3e.call(this,h,v,r_r,f,d);return typeof C=="number"?C:void 0}}buildLookaheadForOptional(r){let{prodOccurrence:t,rule:a,prodType:s,dynamicTokensEnabled:l}=r,h=this.dfas,f=this.logging,d=this.incomplete,m=this.callers,b=rB(a,s,t),v=this.atn.decisionMap[b],T=v.decision,C=l8(yst({maxLookahead:1,occurrence:t,prodType:s,rule:a}),E=>l8(E,S=>S[0]));if(Ist(C)&&C[0][0]&&!l&&!bOr(v,s,m)){let E=C[0],S=jsi(E);if(S.length===1&&Ysi(S[0].categoryMatches)){let L=S[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===L}}else{let R=t_r(S,(L,_)=>(_!==void 0&&(L[_.tokenTypeIdx]=!0,Bit(_.categoryMatches,I=>{L[I]=!0})),L),{});return function(){let L=this.LA_FAST(1);return R[L.tokenTypeIdx]===!0}}}return function(){let E=T3e.call(this,h,T,r_r,f,d);return typeof E=="object"?!1:E===0}}};i(Ist,"isLL1Sequence");J(Ist,"isLL1Sequence");i(yOr,"buildCallers");J(yOr,"buildCallers");i(Mst,"firstSet");J(Mst,"firstSet");i(bOr,"optionalHasFollowConflict");J(bOr,"optionalHasFollowConflict");i(vOr,"initATNSimulator");J(vOr,"initATNSimulator");i(T3e,"adaptivePredict");J(T3e,"adaptivePredict");i(wOr,"performLookahead");J(wOr,"performLookahead");i(xOr,"computeLookaheadTarget");J(xOr,"computeLookaheadTarget");i(TOr,"reportLookaheadAmbiguity");J(TOr,"reportLookaheadAmbiguity");i(kOr,"buildAmbiguityError");J(kOr,"buildAmbiguityError");i(COr,"getProductionDslName2");J(COr,"getProductionDslName");i(EOr,"buildAdaptivePredictError");J(EOr,"buildAdaptivePredictError");i(SOr,"getExistingTargetState");J(SOr,"getExistingTargetState");i(AOr,"computeReachSet");J(AOr,"computeReachSet");i(ROr,"getReachableTarget");J(ROr,"getReachableTarget");i(LOr,"getUniqueAlt");J(LOr,"getUniqueAlt");i(jlt,"newDFAState");J(jlt,"newDFAState");i(Nst,"addDFAEdge");J(Nst,"addDFAEdge");i(zlt,"addDFAState");J(zlt,"addDFAState");i(_Or,"computeStartState");J(_Or,"computeStartState");i(bae,"closure");J(bae,"closure");i(DOr,"getEpsilonTarget");J(DOr,"getEpsilonTarget");i(IOr,"hasConfigInRuleStopState");J(IOr,"hasConfigInRuleStopState");i(MOr,"allConfigsInRuleStopStates");J(MOr,"allConfigsInRuleStopStates");i(NOr,"hasConflictTerminatingPrediction");J(NOr,"hasConflictTerminatingPrediction");i(OOr,"getConflictingAltSets");J(OOr,"getConflictingAltSets");i(POr,"hasConflictingAltSet");J(POr,"hasConflictingAltSet");i(BOr,"hasStateAssociatedWithOneAlt");J(BOr,"hasStateAssociatedWithOneAlt");i(FOr,"getBestGuess");J(FOr,"getBestGuess");$Or=class{static{i(this,"CstNodeBuilder")}static{J(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(r){return this.rootNode=new zOr(r),this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(r){let t=new Ult;return t.grammarSource=r,this.appendChild(this.current,t),this.nodeStack.push(t),t}buildLeafNode(r,t){let a=this.createLeafNode(r,!t);return t&&(a.grammarSource=t),this.appendChild(this.current,a),a}createLeafNode(r,t){return new jOr(r.startOffset,r.image.length,r.startLine-1,r.startColumn-1,r.endLine-1,r.endColumn,r.tokenType,t)}appendChild(r,t){t.container=r,r.content.push(t)}appendChildren(r,t){for(let a of t)a.container=r;r.content.length===0?r.content=t.slice():r.content.push(...t)}insertChildren(r,t,a){for(let s of a)s.container=r;r.content.splice(t,0,...a)}removeNode(r){let t=r.container;if(t){let a=t.content.indexOf(r);a>=0&&t.content.splice(a,1)}}addHiddenNodes(r){let t=[];for(let l of r)t.push(this.createLeafNode(l,!0));let a=this.current,s=!1;if(a.content.length>0){this.appendChildren(a,t);return}for(;a.container;){let l=a.container.content.indexOf(a);if(l>0){this.insertChildren(a.container,l,t),s=!0;break}a=a.container}s||this.insertChildren(this.rootNode,0,t)}construct(r){let t=this.current;r.$cstNode=t;let a=this.nodeStack.pop();a&&(a.content.length===0?this.removeNode(a):a.content=a.content.slice())}},GOr=class{static{i(this,"AbstractCstNode")}static{J(this,"AbstractCstNode")}constructor(){this.container=void 0,this.grammarSource=void 0}get root(){let r=this;for(;r.container;)r=r.container;return r}get text(){return this.root.fullText.substring(this.offset,this.end)}},jOr=class extends GOr{static{i(this,"LeafCstNodeImpl")}static{J(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get astNode(){let r=this.container;if(!r)throw new Error("This node has no associated AST element");return r.astNode}get range(){return{start:{line:this._startLine,character:this._startColumn},end:{line:this._endLine,character:this._endColumn}}}constructor(r,t,a,s,l,h,f,d=!1){super(),this._hidden=d,this._offset=$P(r),this._length=$P(t),this._startLine=$P(a),this._startColumn=$P(s),this._endLine=$P(l),this._endColumn=$P(h),this._tokenType=f}};i($P,"toSmi");J($P,"toSmi");Ult=class extends GOr{static{i(this,"CompositeCstNodeImpl")}static{J(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=[],this._astNode=void 0,this._rangeCache=void 0}get astNode(){let r=this;for(;r;){if(r._astNode)return r._astNode;r=r.container}throw new Error("This node has no associated AST element")}set astNode(r){this._astNode=r}get hidden(){return!1}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let r=this._rangeCache;if(r===void 0){let t=this.firstNonHiddenNode,a=this.lastNonHiddenNode;if(t&&a){let{range:s}=t,{range:l}=a;this._rangeCache=r={start:s.start,end:l.end.line<s.start.line?s.start:l.end}}else return{start:{line:0,character:0},end:{line:0,character:0}}}return r}get firstNonHiddenNode(){for(let r of this.content)if(!r.hidden)return r;return this.content[0]}get lastNonHiddenNode(){for(let r=this.content.length-1;r>=0;r--){let t=this.content[r];if(!t.hidden)return t}return this.content[this.content.length-1]}},zOr=class extends Ult{static{i(this,"RootCstNodeImpl")}static{J(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(r){super(),this._text="",this._text=r??""}},Ost=Symbol("Datatype");i(k3e,"isDataTypeNode");J(k3e,"isDataTypeNode");n_r="\u200B",UOr=J(r=>r.endsWith(n_r)?r:r+n_r,"withRuleSuffix"),VOr=class{static{i(this,"AbstractLangiumParser")}static{J(this,"AbstractLangiumParser")}constructor(r,t){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=r.parser.Lexer;let a=this.lexer.definition,s=r.LanguageMetaData.mode==="production";r.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new roi(a,{...r.parser.ParserConfig,skipValidations:s,errorMessageProvider:r.parser.ParserErrorMessageProvider},t,r.shared.profilers.LangiumProfiler.createTask("parsing",r.LanguageMetaData.languageId)):this.wrapper=new HOr(a,{...r.parser.ParserConfig,skipValidations:s,errorMessageProvider:r.parser.ParserErrorMessageProvider},t)}alternatives(r,t){this.wrapper.wrapOr(r,t)}optional(r,t){this.wrapper.wrapOption(r,t)}many(r,t){this.wrapper.wrapMany(r,t)}atLeastOne(r,t){this.wrapper.wrapAtLeastOne(r,t)}getRule(r){return this.allRules.get(r)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},Qsi=class extends VOr{static{i(this,"LangiumParser")}static{J(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(r){super(r,!1),this.nodeBuilder=new $Or,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=r.references.Linker,this.converter=r.parser.ValueConverter,this.astReflection=r.shared.AstReflection}rule(r,t){let a=this.computeRuleType(r),s;cae(r)&&(s=r.name,this.registerPrecedenceMap(r));let l=this.wrapper.DEFINE_RULE(UOr(r.name),this.startImplementation(a,s,t).bind(this));return this.allRules.set(r.name,l),qS(r)&&r.entry&&(this.mainRule=l),l}registerPrecedenceMap(r){let t=r.name,a=new Map;for(let s=0;s<r.operators.precedences.length;s++){let l=r.operators.precedences[s];for(let h of l.operators)a.set(h.value,{precedence:s,rightAssoc:l.associativity==="right"})}this.operatorPrecedence.set(t,a)}computeRuleType(r){return cae(r)?JV(r):r.fragment?void 0:ilt(r)?Ost:JV(r)}parse(r,t={}){this.nodeBuilder.buildRootNode(r);let a=this.lexerResult=this.lexer.tokenize(r);this.wrapper.input=a.tokens;let s=t.rule?this.allRules.get(t.rule):this.mainRule;if(!s)throw new Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");let l=this.doParse(s);return this.nodeBuilder.addHiddenNodes(a.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,P3e(l,{deep:!0}),{value:l,lexerErrors:a.errors,lexerReport:a.report,parserErrors:this.wrapper.errors}}doParse(r){let t=this.wrapper.rule(r);if(this.stack.length>0&&(t=this.construct()),t===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return this.linkCstNode(t),t}linkCstNode(r){Lm(r)&&r.$cstNode&&(r.$cstNode.astNode=r)}startImplementation(r,t,a){return s=>{let l=!this.isRecording()&&r!==void 0;if(l){let h={$type:r};this.stack.push(h),r===Ost?h.value="":t!==void 0&&(h.$infixName=t)}return a(s),l?this.construct():void 0}}extractHiddenTokens(r){let t=this.lexerResult.hidden;if(!t.length)return[];let a=r.startOffset;for(let s=0;s<t.length;s++)if(t[s].startOffset>a)return t.splice(0,s);return t.splice(0,t.length)}consume(r,t,a){let s=this.wrapper.wrapConsume(r,t);if(!this.isRecording()&&this.isValidToken(s)){let l=this.extractHiddenTokens(s);this.nodeBuilder.addHiddenNodes(l);let h=this.nodeBuilder.buildLeafNode(s,a),{assignment:f,crossRef:d}=this.getAssignment(a),m=this.current;if(f){let b=xD(a)?s.image:this.converter.convert(s.image,h);this.assign(f.operator,f.feature,b,h,d)}else if(k3e(m)){let b=s.image;xD(a)||(b=this.converter.convert(b,h).toString()),m.value+=b}}}isValidToken(r){return!r.isInsertedInRecovery&&$3e(r)}subrule(r,t,a,s,l){let h;!this.isRecording()&&!a&&(h=this.nodeBuilder.buildCompositeNode(s));let f;try{f=this.wrapper.wrapSubrule(r,t,l)}finally{this.isRecording()||(f===void 0&&!a&&(f=this.construct()),f!==void 0&&h&&h.length>0&&this.performSubruleAssignment(f,s,h))}}performSubruleAssignment(r,t,a){let{assignment:s,crossRef:l}=this.getAssignment(t);if(s)this.assign(s.operator,s.feature,r,a,l);else if(!s){let h=this.current;if(k3e(h))h.value+=r.toString();else if(typeof r=="object"&&r){let d=this.assignWithoutOverride(r,h);this.stack.pop(),this.stack.push(d)}}}action(r,t){if(!this.isRecording()){let a=this.current;if(t.feature&&t.operator){a=this.construct(),this.nodeBuilder.removeNode(a.$cstNode);let s=this.nodeBuilder.buildCompositeNode(t);this.nodeBuilder.appendChild(s,a.$cstNode);let l={$type:r};this.stack.push(l),this.assign(t.operator,t.feature,a,a.$cstNode)}else a.$type=r}}construct(){if(this.isRecording())return;let r=this.stack.pop();return this.nodeBuilder.construct(r),"$infixName"in r?this.constructInfix(r,this.operatorPrecedence.get(r.$infixName)):k3e(r)?this.converter.convert(r.value,r.$cstNode):(U_r(this.astReflection,r),r)}constructInfix(r,t){let a=r.parts;if(!Array.isArray(a)||a.length===0)return;let s=r.operators;if(!Array.isArray(s)||a.length<2)return a[0];let l=0,h=-1;for(let S=0;S<s.length;S++){let R=s[S],L=t.get(R)??{precedence:1/0,rightAssoc:!1};L.precedence>h?(h=L.precedence,l=S):L.precedence===h&&(L.rightAssoc||(l=S))}let f=s.slice(0,l),d=s.slice(l+1),m=a.slice(0,l+1),b=a.slice(l+1),v={$infixName:r.$infixName,$type:r.$type,$cstNode:r.$cstNode,parts:m,operators:f},T={$infixName:r.$infixName,$type:r.$type,$cstNode:r.$cstNode,parts:b,operators:d},C=this.constructInfix(v,t),E=this.constructInfix(T,t);return{$type:r.$type,$cstNode:r.$cstNode,left:C,operator:s[l],right:E}}getAssignment(r){if(!this.assignmentMap.has(r)){let t=Eae(r,wD);this.assignmentMap.set(r,{assignment:t,crossRef:t&&Aae(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(r)}assign(r,t,a,s,l){let h=this.current,f;switch(l==="single"&&typeof a=="string"?f=this.linker.buildReference(h,t,s,a):l==="multi"&&typeof a=="string"?f=this.linker.buildMultiReference(h,t,s,a):f=a,this.linkCstNode(f),r){case"=":{h[t]=f;break}case"?=":{h[t]=!0;break}case"+=":Array.isArray(h[t])||(h[t]=[]),h[t].push(f)}}assignWithoutOverride(r,t){for(let[a,s]of Object.entries(t)){let l=r[a];l===void 0?r[a]=s:Array.isArray(l)&&Array.isArray(s)&&(s.push(...l),r[a]=s)}return r.$cstNode=void 0,r}get definitionErrors(){return this.wrapper.definitionErrors}},Zsi=class{static{i(this,"AbstractParserErrorMessageProvider")}static{J(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(r){return VV.buildMismatchTokenMessage(r)}buildNotAllInputParsedMessage(r){return VV.buildNotAllInputParsedMessage(r)}buildNoViableAltMessage(r){return VV.buildNoViableAltMessage(r)}buildEarlyExitMessage(r){return VV.buildEarlyExitMessage(r)}},WOr=class extends Zsi{static{i(this,"LangiumParserErrorMessageProvider")}static{J(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:r,actual:t}){return`Expecting ${r.LABEL?"`"+r.LABEL+"`":r.name.endsWith(":KW")?`keyword '${r.name.substring(0,r.name.length-3)}'`:`token of type '${r.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:r}){return`Expecting end of file but found \`${r.image}\`.`}},eoi=class extends VOr{static{i(this,"LangiumCompletionParser")}static{J(this,"LangiumCompletionParser")}constructor(r){super(r,!0),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(r){this.resetState();let t=this.lexer.tokenize(r,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(r,t){let a=this.wrapper.DEFINE_RULE(UOr(r.name),this.startImplementation(t).bind(this));return this.allRules.set(r.name,a),r.entry&&(this.mainRule=a),a}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(r){return t=>{let a=this.keepStackSize();try{r(t)}finally{this.resetStackSize(a)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let r=this.elementStack.length;return this.stackSize=r,r}resetStackSize(r){this.removeUnexpectedElements(),this.stackSize=r}consume(r,t,a){this.wrapper.wrapConsume(r,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,a],this.nextTokenIndex=this.currIdx+1)}subrule(r,t,a,s,l){this.before(s),this.wrapper.wrapSubrule(r,t,l),this.after(s)}before(r){this.isRecording()||this.elementStack.push(r)}after(r){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(r);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},toi={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new WOr},HOr=class extends Bri{static{i(this,"ChevrotainWrapper")}static{J(this,"ChevrotainWrapper")}constructor(r,t,a){let s=t&&"maxLookahead"in t;super(r,{...toi,lookaheadStrategy:s?new klt({maxLookahead:t.maxLookahead}):new Jsi({logging:t.skipValidations?()=>{}:void 0,incomplete:a}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(r,t,a){return this.RULE(r,t,a)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(r,t){return this.consume(r,t,void 0)}wrapSubrule(r,t,a){return this.subrule(r,t,{ARGS:[a]})}wrapOr(r,t){this.or(r,t)}wrapOption(r,t){this.option(r,t)}wrapMany(r,t){this.many(r,t)}wrapAtLeastOne(r,t){this.atLeastOne(r,t)}rule(r){return r.call(this,{})}},roi=class extends HOr{static{i(this,"ProfilerWrapper")}static{J(this,"ProfilerWrapper")}constructor(r,t,a,s){super(r,t,a),this.task=s}rule(r){this.task.start(),this.task.startSubTask(this.ruleName(r));try{return super.rule(r)}finally{this.task.stopSubTask(this.ruleName(r)),this.task.stop()}}ruleName(r){return r.ruleName}subrule(r,t,a){this.task.startSubTask(this.ruleName(t));try{return super.subrule(r,t,a)}finally{this.task.stopSubTask(this.ruleName(t))}}};i(Vlt,"createParser");J(Vlt,"createParser");i(qOr,"buildRules");J(qOr,"buildRules");i(YOr,"buildInfixRule");J(YOr,"buildInfixRule");i(CD,"buildElement");J(CD,"buildElement");i(XOr,"buildAction");J(XOr,"buildAction");i(KOr,"buildRuleCall");J(KOr,"buildRuleCall");i(JOr,"buildRuleCallPredicate");J(JOr,"buildRuleCallPredicate");i(Q4,"buildPredicate");J(Q4,"buildPredicate");i(QOr,"buildAlternatives");J(QOr,"buildAlternatives");i(ZOr,"buildUnorderedGroup");J(ZOr,"buildUnorderedGroup");i(ePr,"buildGroup");J(ePr,"buildGroup");i(vae,"getGuardCondition");J(vae,"getGuardCondition");i(Wlt,"buildCrossReference");J(Wlt,"buildCrossReference");i(tPr,"buildKeyword");J(tPr,"buildKeyword");i(Hlt,"wrap");J(Hlt,"wrap");i(I4e,"getRule");J(I4e,"getRule");i(rPr,"getRuleName");J(rPr,"getRuleName");i(J3e,"getToken");J(J3e,"getToken");i(nPr,"createCompletionParser");J(nPr,"createCompletionParser");i(iPr,"createLangiumParser");J(iPr,"createLangiumParser");i(aPr,"prepareLangiumParser");J(aPr,"prepareLangiumParser");sPr=class{static{i(this,"DefaultTokenBuilder")}static{J(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(r,t){let a=rd(Zot(r,!1)),s=this.buildTerminalTokens(a),l=this.buildKeywordTokens(a,s,t);return l.push(...s),l}flushLexingReport(r){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let r=[...this.diagnostics];return this.diagnostics=[],r}buildTerminalTokens(r){return r.filter(YS).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(r){let t=l4e(r),a=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,s={name:r.name,PATTERN:a};return typeof a=="function"&&(s.LINE_BREAKS=!0),r.hidden&&(s.GROUP=Qot(t)?w2.SKIPPED:"hidden"),s}requiresCustomPattern(r){return!!(r.flags.includes("u")||r.flags.includes("s"))}regexPatternFunction(r){let t=new RegExp(r,r.flags+"y");return(a,s)=>(t.lastIndex=s,t.exec(a))}buildKeywordTokens(r,t,a){return r.filter(rW).flatMap(s=>tW(s).filter(xD)).distinct(s=>s.value).toArray().sort((s,l)=>l.value.length-s.value.length).map(s=>this.buildKeywordToken(s,t,!!a?.caseInsensitive))}buildKeywordToken(r,t,a){let s=this.buildKeywordPattern(r,a),l={name:r.value,PATTERN:s,LONGER_ALT:this.findLongerAlt(r,t)};return typeof s=="function"&&(l.LINE_BREAKS=!0),l}buildKeywordPattern(r,t){return t?new RegExp(Rae(r.value),"i"):r.value}findLongerAlt(r,t){return t.reduce((a,s)=>{let l=s?.PATTERN;return l?.source&&bDr("^"+l.source+"$",r.value)&&a.push(s),a},[])}},oPr=class{static{i(this,"DefaultValueConverter")}static{J(this,"DefaultValueConverter")}convert(r,t){let a=t.grammarSource;if(Aae(a)&&(a=TDr(a)),TD(a)){let s=a.rule.ref;if(!s)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(s,r,t)}return r}runConverter(r,t,a){switch(r.name.toUpperCase()){case"INT":return s8.convertInt(t);case"STRING":return s8.convertString(t);case"ID":return s8.convertID(t)}switch(LDr(r)?.toLowerCase()){case"number":return s8.convertNumber(t);case"boolean":return s8.convertBoolean(t);case"bigint":return s8.convertBigint(t);case"date":return s8.convertDate(t);default:return t}}};(function(r){function t(b){let v="";for(let T=1;T<b.length-1;T++){let C=b.charAt(T);if(C==="\\"){let E=b.charAt(++T);v+=a(E)}else v+=C}return v}i(t,"convertString"),J(t,"convertString"),r.convertString=t;function a(b){switch(b){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
`;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return b}}i(a,"convertEscapeCharacter"),J(a,"convertEscapeCharacter");function s(b){return b.charAt(0)==="^"?b.substring(1):b}i(s,"convertID"),J(s,"convertID"),r.convertID=s;function l(b){return parseInt(b)}i(l,"convertInt"),J(l,"convertInt"),r.convertInt=l;function h(b){return BigInt(b)}i(h,"convertBigint"),J(h,"convertBigint"),r.convertBigint=h;function f(b){return new Date(b)}i(f,"convertDate"),J(f,"convertDate"),r.convertDate=f;function d(b){return Number(b)}i(d,"convertNumber"),J(d,"convertNumber"),r.convertNumber=d;function m(b){return b.toLowerCase()==="true"}i(m,"convertBoolean"),J(m,"convertBoolean"),r.convertBoolean=m})(s8||(s8={}));$d=Got(Vot(),1);i(lPr,"delayNextTick");J(lPr,"delayNextTick");C3e=0,noi=10;i(cPr,"startCancelableOperation");J(cPr,"startCancelableOperation");WV=Symbol("OperationCancelled");i(Dae,"isOperationCancelled");J(Dae,"isOperationCancelled");i(ky,"interruptAndCheck");J(ky,"interruptAndCheck");qlt=class{static{i(this,"Deferred")}static{J(this,"Deferred")}constructor(){this.promise=new Promise((r,t)=>{this.resolve=a=>(r(a),this),this.reject=a=>(t(a),this)})}},i_r=class Pst{static{i(this,"_FullTextDocument")}static{J(this,"FullTextDocument")}constructor(t,a,s,l){this._uri=t,this._languageId=a,this._version=s,this._content=l,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let a=this.offsetAt(t.start),s=this.offsetAt(t.end);return this._content.substring(a,s)}return this._content}update(t,a){for(let s of t)if(Pst.isIncremental(s)){let l=Xlt(s.range),h=this.offsetAt(l.start),f=this.offsetAt(l.end);this._content=this._content.substring(0,h)+s.text+this._content.substring(f,this._content.length);let d=Math.max(l.start.line,0),m=Math.max(l.end.line,0),b=this._lineOffsets,v=Fst(s.text,!1,h);if(m-d===v.length)for(let C=0,E=v.length;C<E;C++)b[C+d+1]=v[C];else v.length<1e4?b.splice(d+1,m-d,...v):this._lineOffsets=b=b.slice(0,d+1).concat(v,b.slice(m+1));let T=s.text.length-(f-h);if(T!==0)for(let C=d+1+v.length,E=b.length;C<E;C++)b[C]=b[C]+T}else if(Pst.isFull(s))this._content=s.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=a}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Fst(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let a=this.getLineOffsets(),s=0,l=a.length;if(l===0)return{line:0,character:t};for(;s<l;){let f=Math.floor((s+l)/2);a[f]>t?l=f:s=f+1}let h=s-1;return t=this.ensureBeforeEOL(t,a[h]),{line:h,character:t-a[h]}}offsetAt(t){let a=this.getLineOffsets();if(t.line>=a.length)return this._content.length;if(t.line<0)return 0;let s=a[t.line];if(t.character<=0)return s;let l=t.line+1<a.length?a[t.line+1]:this._content.length,h=Math.min(s+t.character,l);return this.ensureBeforeEOL(h,s)}getLineRange(t){let a=this.getLineOffsets();if(t>=a.length){let f=a.length-1;return{start:{line:f,character:0},end:{line:f,character:this._content.length-a[f]}}}else if(t<0)return{start:{line:0,character:0},end:{line:0,character:0}};let s=a[t],l=t+1<a.length?a[t+1]:this._content.length,h=this.ensureBeforeEOL(l,s);return{start:{line:t,character:0},end:{line:t,character:h-s}}}getEOLCharacters(t){let a=this.getLineOffsets();if(t>=a.length)return"";if(t<0)return"";let s=t+1<a.length?a[t+1]:this._content.length,l=this.ensureBeforeEOL(s,a[t]);return this._content.substring(l,s)}ensureBeforeEOL(t,a){for(;t>a&&Ylt(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let a=t;return a!=null&&typeof a.text=="string"&&a.range!==void 0&&(a.rangeLength===void 0||typeof a.rangeLength=="number")}static isFull(t){let a=t;return a!=null&&typeof a.text=="string"&&a.range===void 0&&a.rangeLength===void 0}};(function(r){function t(l,h,f,d){return new i_r(l,h,f,d)}i(t,"create"),J(t,"create"),r.create=t;function a(l,h,f){if(l instanceof i_r)return l.update(h,f),l;throw new Error("TextDocument.update: document must be created by TextDocument.create")}i(a,"update"),J(a,"update"),r.update=a;function s(l,h){let f=l.getText(),d=Q3e(h.map(uPr),(v,T)=>{let C=v.range.start.line-T.range.start.line;return C===0?v.range.start.character-T.range.start.character:C}),m=0,b=[];for(let v of d){let T=l.offsetAt(v.range.start);if(T<m)throw new Error("Overlapping edit");T>m&&b.push(f.substring(m,T)),v.newText.length&&b.push(v.newText),m=l.offsetAt(v.range.end)}return b.push(f.substr(m)),b.join("")}i(s,"applyEdits"),J(s,"applyEdits"),r.applyEdits=s})(Bst||(Bst={}));i(Q3e,"mergeSort");J(Q3e,"mergeSort");i(Fst,"computeLineOffsets");J(Fst,"computeLineOffsets");i(Ylt,"isEOL");J(Ylt,"isEOL");i(Xlt,"getWellformedRange");J(Xlt,"getWellformedRange");i(uPr,"getWellformedEdit");J(uPr,"getWellformedEdit");(()=>{"use strict";var r={975:q=>{function W(Z){if(typeof Z!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Z))}i(W,"e2"),J(W,"e");function H(Z,X){for(var te,U="",ne=0,se=-1,he=0,le=0;le<=Z.length;++le){if(le<Z.length)te=Z.charCodeAt(le);else{if(te===47)break;te=47}if(te===47){if(!(se===le-1||he===1))if(se!==le-1&&he===2){if(U.length<2||ne!==2||U.charCodeAt(U.length-1)!==46||U.charCodeAt(U.length-2)!==46){if(U.length>2){var pe=U.lastIndexOf("/");if(pe!==U.length-1){pe===-1?(U="",ne=0):ne=(U=U.slice(0,pe)).length-1-U.lastIndexOf("/"),se=le,he=0;continue}}else if(U.length===2||U.length===1){U="",ne=0,se=le,he=0;continue}}X&&(U.length>0?U+="/..":U="..",ne=2)}else U.length>0?U+="/"+Z.slice(se+1,le):U=Z.slice(se+1,le),ne=le-se-1;se=le,he=0}else te===46&&he!==-1?++he:he=-1}return U}i(H,"r2"),J(H,"r");var re={resolve:J(function(){for(var Z,X="",te=!1,U=arguments.length-1;U>=-1&&!te;U--){var ne;U>=0?ne=arguments[U]:(Z===void 0&&(Z=process.cwd()),ne=Z),W(ne),ne.length!==0&&(X=ne+"/"+X,te=ne.charCodeAt(0)===47)}return X=H(X,!te),te?X.length>0?"/"+X:"/":X.length>0?X:"."},"resolve"),normalize:J(function(Z){if(W(Z),Z.length===0)return".";var X=Z.charCodeAt(0)===47,te=Z.charCodeAt(Z.length-1)===47;return(Z=H(Z,!X)).length!==0||X||(Z="."),Z.length>0&&te&&(Z+="/"),X?"/"+Z:Z},"normalize"),isAbsolute:J(function(Z){return W(Z),Z.length>0&&Z.charCodeAt(0)===47},"isAbsolute"),join:J(function(){if(arguments.length===0)return".";for(var Z,X=0;X<arguments.length;++X){var te=arguments[X];W(te),te.length>0&&(Z===void 0?Z=te:Z+="/"+te)}return Z===void 0?".":re.normalize(Z)},"join"),relative:J(function(Z,X){if(W(Z),W(X),Z===X||(Z=re.resolve(Z))===(X=re.resolve(X)))return"";for(var te=1;te<Z.length&&Z.charCodeAt(te)===47;++te);for(var U=Z.length,ne=U-te,se=1;se<X.length&&X.charCodeAt(se)===47;++se);for(var he=X.length-se,le=ne<he?ne:he,pe=-1,ge=0;ge<=le;++ge){if(ge===le){if(he>le){if(X.charCodeAt(se+ge)===47)return X.slice(se+ge+1);if(ge===0)return X.slice(se+ge)}else ne>le&&(Z.charCodeAt(te+ge)===47?pe=ge:ge===0&&(pe=0));break}var we=Z.charCodeAt(te+ge);if(we!==X.charCodeAt(se+ge))break;we===47&&(pe=ge)}var Ae="";for(ge=te+pe+1;ge<=U;++ge)ge!==U&&Z.charCodeAt(ge)!==47||(Ae.length===0?Ae+="..":Ae+="/..");return Ae.length>0?Ae+X.slice(se+pe):(se+=pe,X.charCodeAt(se)===47&&++se,X.slice(se))},"relative"),_makeLong:J(function(Z){return Z},"_makeLong"),dirname:J(function(Z){if(W(Z),Z.length===0)return".";for(var X=Z.charCodeAt(0),te=X===47,U=-1,ne=!0,se=Z.length-1;se>=1;--se)if((X=Z.charCodeAt(se))===47){if(!ne){U=se;break}}else ne=!1;return U===-1?te?"/":".":te&&U===1?"//":Z.slice(0,U)},"dirname"),basename:J(function(Z,X){if(X!==void 0&&typeof X!="string")throw new TypeError('"ext" argument must be a string');W(Z);var te,U=0,ne=-1,se=!0;if(X!==void 0&&X.length>0&&X.length<=Z.length){if(X.length===Z.length&&X===Z)return"";var he=X.length-1,le=-1;for(te=Z.length-1;te>=0;--te){var pe=Z.charCodeAt(te);if(pe===47){if(!se){U=te+1;break}}else le===-1&&(se=!1,le=te+1),he>=0&&(pe===X.charCodeAt(he)?--he==-1&&(ne=te):(he=-1,ne=le))}return U===ne?ne=le:ne===-1&&(ne=Z.length),Z.slice(U,ne)}for(te=Z.length-1;te>=0;--te)if(Z.charCodeAt(te)===47){if(!se){U=te+1;break}}else ne===-1&&(se=!1,ne=te+1);return ne===-1?"":Z.slice(U,ne)},"basename"),extname:J(function(Z){W(Z);for(var X=-1,te=0,U=-1,ne=!0,se=0,he=Z.length-1;he>=0;--he){var le=Z.charCodeAt(he);if(le!==47)U===-1&&(ne=!1,U=he+1),le===46?X===-1?X=he:se!==1&&(se=1):X!==-1&&(se=-1);else if(!ne){te=he+1;break}}return X===-1||U===-1||se===0||se===1&&X===U-1&&X===te+1?"":Z.slice(X,U)},"extname"),format:J(function(Z){if(Z===null||typeof Z!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof Z);return(function(X,te){var U=te.dir||te.root,ne=te.base||(te.name||"")+(te.ext||"");return U?U===te.root?U+ne:U+"/"+ne:ne})(0,Z)},"format"),parse:J(function(Z){W(Z);var X={root:"",dir:"",base:"",ext:"",name:""};if(Z.length===0)return X;var te,U=Z.charCodeAt(0),ne=U===47;ne?(X.root="/",te=1):te=0;for(var se=-1,he=0,le=-1,pe=!0,ge=Z.length-1,we=0;ge>=te;--ge)if((U=Z.charCodeAt(ge))!==47)le===-1&&(pe=!1,le=ge+1),U===46?se===-1?se=ge:we!==1&&(we=1):se!==-1&&(we=-1);else if(!pe){he=ge+1;break}return se===-1||le===-1||we===0||we===1&&se===le-1&&se===he+1?le!==-1&&(X.base=X.name=he===0&&ne?Z.slice(1,le):Z.slice(he,le)):(he===0&&ne?(X.name=Z.slice(1,se),X.base=Z.slice(1,le)):(X.name=Z.slice(he,se),X.base=Z.slice(he,le)),X.ext=Z.slice(se,le)),he>0?X.dir=Z.slice(0,he-1):ne&&(X.dir="/"),X},"parse"),sep:"/",delimiter:":",win32:null,posix:null};re.posix=re,q.exports=re}},t={};function a(q){var W=t[q];if(W!==void 0)return W.exports;var H=t[q]={exports:{}};return r[q](H,H.exports,a),H.exports}i(a,"r"),J(a,"r"),a.d=(q,W)=>{for(var H in W)a.o(W,H)&&!a.o(q,H)&&Object.defineProperty(q,H,{enumerable:!0,get:W[H]})},a.o=(q,W)=>Object.prototype.hasOwnProperty.call(q,W),a.r=q=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})};var s={};let l;a.r(s),a.d(s,{URI:J(()=>C,"URI"),Utils:J(()=>Q,"Utils")}),typeof process=="object"?l=process.platform==="win32":typeof navigator=="object"&&(l=navigator.userAgent.indexOf("Windows")>=0);let h=/^\w[\w\d+.-]*$/,f=/^\//,d=/^\/\//;function m(q,W){if(!q.scheme&&W)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${q.authority}", path: "${q.path}", query: "${q.query}", fragment: "${q.fragment}"}`);if(q.scheme&&!h.test(q.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(q.path){if(q.authority){if(!f.test(q.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(d.test(q.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}i(m,"a"),J(m,"a");let b="",v="/",T=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class C{static{i(this,"l")}static{J(this,"l")}static isUri(W){return W instanceof C||!!W&&typeof W.authority=="string"&&typeof W.fragment=="string"&&typeof W.path=="string"&&typeof W.query=="string"&&typeof W.scheme=="string"&&typeof W.fsPath=="string"&&typeof W.with=="function"&&typeof W.toString=="function"}scheme;authority;path;query;fragment;constructor(W,H,re,Z,X,te=!1){typeof W=="object"?(this.scheme=W.scheme||b,this.authority=W.authority||b,this.path=W.path||b,this.query=W.query||b,this.fragment=W.fragment||b):(this.scheme=(function(U,ne){return U||ne?U:"file"})(W,te),this.authority=H||b,this.path=(function(U,ne){switch(U){case"https":case"http":case"file":ne?ne[0]!==v&&(ne=v+ne):ne=v}return ne})(this.scheme,re||b),this.query=Z||b,this.fragment=X||b,m(this,te))}get fsPath(){return I(this,!1)}with(W){if(!W)return this;let{scheme:H,authority:re,path:Z,query:X,fragment:te}=W;return H===void 0?H=this.scheme:H===null&&(H=b),re===void 0?re=this.authority:re===null&&(re=b),Z===void 0?Z=this.path:Z===null&&(Z=b),X===void 0?X=this.query:X===null&&(X=b),te===void 0?te=this.fragment:te===null&&(te=b),H===this.scheme&&re===this.authority&&Z===this.path&&X===this.query&&te===this.fragment?this:new S(H,re,Z,X,te)}static parse(W,H=!1){let re=T.exec(W);return re?new S(re[2]||b,P(re[4]||b),P(re[5]||b),P(re[7]||b),P(re[9]||b),H):new S(b,b,b,b,b)}static file(W){let H=b;if(l&&(W=W.replace(/\\/g,v)),W[0]===v&&W[1]===v){let re=W.indexOf(v,2);re===-1?(H=W.substring(2),W=v):(H=W.substring(2,re),W=W.substring(re)||v)}return new S("file",H,W,b,b)}static from(W){let H=new S(W.scheme,W.authority,W.path,W.query,W.fragment);return m(H,!0),H}toString(W=!1){return N(this,W)}toJSON(){return this}static revive(W){if(W){if(W instanceof C)return W;{let H=new S(W);return H._formatted=W.external,H._fsPath=W._sep===E?W.fsPath:null,H}}return W}}let E=l?1:void 0;class S extends C{static{i(this,"d")}static{J(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=I(this,!1)),this._fsPath}toString(W=!1){return W?N(this,!0):(this._formatted||(this._formatted=N(this,!1)),this._formatted)}toJSON(){let W={$mid:1};return this._fsPath&&(W.fsPath=this._fsPath,W._sep=E),this._formatted&&(W.external=this._formatted),this.path&&(W.path=this.path),this.scheme&&(W.scheme=this.scheme),this.authority&&(W.authority=this.authority),this.query&&(W.query=this.query),this.fragment&&(W.fragment=this.fragment),W}}let R={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function L(q,W,H){let re,Z=-1;for(let X=0;X<q.length;X++){let te=q.charCodeAt(X);if(te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===45||te===46||te===95||te===126||W&&te===47||H&&te===91||H&&te===93||H&&te===58)Z!==-1&&(re+=encodeURIComponent(q.substring(Z,X)),Z=-1),re!==void 0&&(re+=q.charAt(X));else{re===void 0&&(re=q.substr(0,X));let U=R[te];U!==void 0?(Z!==-1&&(re+=encodeURIComponent(q.substring(Z,X)),Z=-1),re+=U):Z===-1&&(Z=X)}}return Z!==-1&&(re+=encodeURIComponent(q.substring(Z))),re!==void 0?re:q}i(L,"m"),J(L,"m");function _(q){let W;for(let H=0;H<q.length;H++){let re=q.charCodeAt(H);re===35||re===63?(W===void 0&&(W=q.substr(0,H)),W+=R[re]):W!==void 0&&(W+=q[H])}return W!==void 0?W:q}i(_,"y"),J(_,"y");function I(q,W){let H;return H=q.authority&&q.path.length>1&&q.scheme==="file"?`//${q.authority}${q.path}`:q.path.charCodeAt(0)===47&&(q.path.charCodeAt(1)>=65&&q.path.charCodeAt(1)<=90||q.path.charCodeAt(1)>=97&&q.path.charCodeAt(1)<=122)&&q.path.charCodeAt(2)===58?W?q.path.substr(1):q.path[1].toLowerCase()+q.path.substr(2):q.path,l&&(H=H.replace(/\//g,"\\")),H}i(I,"v"),J(I,"v");function N(q,W){let H=W?_:L,re="",{scheme:Z,authority:X,path:te,query:U,fragment:ne}=q;if(Z&&(re+=Z,re+=":"),(X||Z==="file")&&(re+=v,re+=v),X){let se=X.indexOf("@");if(se!==-1){let he=X.substr(0,se);X=X.substr(se+1),se=he.lastIndexOf(":"),se===-1?re+=H(he,!1,!1):(re+=H(he.substr(0,se),!1,!1),re+=":",re+=H(he.substr(se+1),!1,!0)),re+="@"}X=X.toLowerCase(),se=X.lastIndexOf(":"),se===-1?re+=H(X,!1,!0):(re+=H(X.substr(0,se),!1,!0),re+=X.substr(se))}if(te){if(te.length>=3&&te.charCodeAt(0)===47&&te.charCodeAt(2)===58){let se=te.charCodeAt(1);se>=65&&se<=90&&(te=`/${String.fromCharCode(se+32)}:${te.substr(3)}`)}else if(te.length>=2&&te.charCodeAt(1)===58){let se=te.charCodeAt(0);se>=65&&se<=90&&(te=`${String.fromCharCode(se+32)}:${te.substr(2)}`)}re+=H(te,!0,!1)}return U&&(re+="?",re+=H(U,!1,!1)),ne&&(re+="#",re+=W?ne:L(ne,!1,!1)),re}i(N,"b"),J(N,"b");function B(q){try{return decodeURIComponent(q)}catch{return q.length>3?q.substr(0,3)+B(q.substr(3)):q}}i(B,"C"),J(B,"C");let O=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function P(q){return q.match(O)?q.replace(O,(W=>B(W))):q}i(P,"w"),J(P,"w");var $=a(975);let V=$.posix||$,Y="/";var Q;(function(q){q.joinPath=function(W,...H){return W.with({path:V.join(W.path,...H)})},q.resolvePath=function(W,...H){let re=W.path,Z=!1;re[0]!==Y&&(re=Y+re,Z=!0);let X=V.resolve(re,...H);return Z&&X[0]===Y&&!W.authority&&(X=X.substring(1)),W.with({path:X})},q.dirname=function(W){if(W.path.length===0||W.path===Y)return W;let H=V.dirname(W.path);return H.length===1&&H.charCodeAt(0)===46&&(H=""),W.with({path:H})},q.basename=function(W){return V.basename(W.path)},q.extname=function(W){return V.extname(W.path)}})(Q||(Q={})),hPr=s})();({URI:cx,Utils:Die}=hPr);(function(r){r.basename=Die.basename,r.dirname=Die.dirname,r.extname=Die.extname,r.joinPath=Die.joinPath,r.resolvePath=Die.resolvePath;let t=typeof process=="object"&&process?.platform==="win32";function a(f,d){return f?.toString()===d?.toString()}i(a,"equals"),J(a,"equals"),r.equals=a;function s(f,d){let m=typeof f=="string"?cx.parse(f).path:f.path,b=typeof d=="string"?cx.parse(d).path:d.path,v=m.split("/").filter(R=>R.length>0),T=b.split("/").filter(R=>R.length>0);if(t){let R=/^[A-Z]:$/;if(v[0]&&R.test(v[0])&&(v[0]=v[0].toLowerCase()),T[0]&&R.test(T[0])&&(T[0]=T[0].toLowerCase()),v[0]!==T[0])return b.substring(1)}let C=0;for(;C<v.length&&v[C]===T[C];C++);let E="../".repeat(v.length-C),S=T.slice(C).join("/");return E+S}i(s,"relative"),J(s,"relative"),r.relative=s;function l(f){return cx.parse(f.toString()).toString()}i(l,"normalize"),J(l,"normalize"),r.normalize=l;function h(f,d){let m=typeof f=="string"?cx.parse(f):f,b=typeof d=="string"?cx.parse(d):d;if(m.scheme!==b.scheme)return!1;let v=m.path,T=b.path;return T.charAt(T.length-1)==="/"&&(T=T.slice(0,-1)),v.charAt(v.length-1)==="/"&&(v=v.slice(0,-1)),T===v?!0:T.length<v.length||T.charAt(v.length)!=="/"?!1:T.startsWith(v)}i(h,"contains"),J(h,"contains"),r.contains=h})(lk||(lk={}));ioi=class{static{i(this,"UriTrie")}static{J(this,"UriTrie")}constructor(){this.root={name:"",children:new Map}}normalizeUri(r){return lk.normalize(r)}clear(){this.root.children.clear()}insert(r,t){let a=this.getNode(this.normalizeUri(r),!0);a.element=t}delete(r){let t=this.getNode(this.normalizeUri(r),!1);t?.parent&&t.parent.children.delete(t.name)}has(r){return this.getNode(this.normalizeUri(r),!1)?.element!==void 0}hasNode(r){return this.getNode(this.normalizeUri(r),!1)!==void 0}find(r){return this.getNode(this.normalizeUri(r),!1)?.element}findNode(r){let t=this.normalizeUri(r),a=this.getNode(t,!1);if(a)return{name:a.name,uri:lk.joinPath(cx.parse(t),a.name).toString(),element:a.element}}findChildren(r){let t=this.normalizeUri(r),a=this.getNode(t,!1);return a?Array.from(a.children.values()).map(s=>({name:s.name,uri:lk.joinPath(cx.parse(t),s.name).toString(),element:s.element})):[]}all(){return this.collectValues(this.root)}findAll(r){let t=this.getNode(this.normalizeUri(r),!1);return t?this.collectValues(t):[]}getNode(r,t){let a=r.split("/");r.charAt(r.length-1)==="/"&&a.pop();let s=this.root;for(let l of a){let h=s.children.get(l);if(!h)if(t)h={name:l,children:new Map,parent:s},s.children.set(l,h);else return;s=h}return s}collectValues(r){let t=[];r.element&&t.push(r.element);for(let a of r.children.values())t.push(...this.collectValues(a));return t}};(function(r){r[r.Changed=0]="Changed",r[r.Parsed=1]="Parsed",r[r.IndexedContent=2]="IndexedContent",r[r.ComputedScopes=3]="ComputedScopes",r[r.Linked=4]="Linked",r[r.IndexedReferences=5]="IndexedReferences",r[r.Validated=6]="Validated"})(ac||(ac={}));aoi=class{static{i(this,"DefaultLangiumDocumentFactory")}static{J(this,"DefaultLangiumDocumentFactory")}constructor(r){this.serviceRegistry=r.ServiceRegistry,this.textDocuments=r.workspace.TextDocuments,this.fileSystemProvider=r.workspace.FileSystemProvider}async fromUri(r,t=$d.CancellationToken.None){let a=await this.getInitialText(r,t);return this.createAsync(r,a,t)}async getInitialText(r,t){return this.fileSystemProvider.readFile(r)}fromTextDocument(r,t,a){return t=t??cx.parse(r.uri),$d.CancellationToken.is(a)?this.createAsync(t,r,a):this.create(t,r,a)}fromString(r,t,a){return $d.CancellationToken.is(a)?this.createAsync(t,r,a):this.create(t,r,a)}fromModel(r,t){return this.create(t,{$model:r})}create(r,t,a){if(typeof t=="string"){let s=this.parse(r,t,a);return this.createLangiumDocument(s,r,void 0,t)}else if("$model"in t){let s={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(s,r)}else{let s=this.parse(r,t.getText(),a);return this.createLangiumDocument(s,r,t)}}async createAsync(r,t,a){if(typeof t=="string"){let s=await this.parseAsync(r,t,a);return this.createLangiumDocument(s,r,void 0,t)}else{let s=await this.parseAsync(r,t.getText(),a);return this.createLangiumDocument(s,r,t)}}createLangiumDocument(r,t,a,s){let l;if(a)l={parseResult:r,uri:t,state:ac.Parsed,references:[],textDocument:a};else{let h=this.createTextDocumentGetter(t,s);l={parseResult:r,uri:t,state:ac.Parsed,references:[],get textDocument(){return h()}}}return r.value.$document=l,l}async update(r,t){let a=r.parseResult.value.$cstNode?.root.fullText,s=this.textDocuments?.get(r.uri.toString()),l=await this.getUpdatedText(r,s,t);if(s)Object.defineProperty(r,"textDocument",{value:s});else{let h=this.createTextDocumentGetter(r.uri,l);Object.defineProperty(r,"textDocument",{get:h})}return a!==l&&(r.parseResult=await this.parseAsync(r.uri,l,t),r.parseResult.value.$document=r),r.state=ac.Parsed,r}async getUpdatedText(r,t,a){return t?t.getText():await this.fileSystemProvider.readFile(r.uri)}parse(r,t,a){return this.serviceRegistry.getServices(r).parser.LangiumParser.parse(t,a)}parseAsync(r,t,a){return this.serviceRegistry.getServices(r).parser.AsyncParser.parse(t,a)}createTextDocumentGetter(r,t){let a=this.serviceRegistry,s;return()=>s??(s=Bst.create(r.toString(),a.getServices(r).LanguageMetaData.languageId,0,t??""))}},soi=class{static{i(this,"DefaultLangiumDocuments")}static{J(this,"DefaultLangiumDocuments")}constructor(r){this.documentTrie=new ioi,this.services=r,this.langiumDocumentFactory=r.workspace.LangiumDocumentFactory,this.documentBuilder=()=>r.workspace.DocumentBuilder}get all(){return rd(this.documentTrie.all())}addDocument(r){let t=r.uri.toString();if(this.documentTrie.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,r)}getDocument(r){let t=r.toString();return this.documentTrie.find(t)}getDocuments(r){let t=r.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(r,t){let a=this.getDocument(r);return a||(a=await this.langiumDocumentFactory.fromUri(r,t),this.addDocument(a),a)}createDocument(r,t,a){if(a)return this.langiumDocumentFactory.fromString(t,r,a).then(s=>(this.addDocument(s),s));{let s=this.langiumDocumentFactory.fromString(t,r);return this.addDocument(s),s}}hasDocument(r){return this.documentTrie.has(r.toString())}invalidateDocument(r){let t=r.toString(),a=this.documentTrie.find(t);return a&&this.documentBuilder().resetToState(a,ac.Changed),a}deleteDocument(r){let t=r.toString(),a=this.documentTrie.find(t);return a&&(a.state=ac.Changed,this.documentTrie.delete(t)),a}deleteDocuments(r){let t=r.toString(),a=this.documentTrie.findAll(t);for(let s of a)s.state=ac.Changed;return this.documentTrie.delete(t),a}},CV=Symbol("RefResolving"),ooi=class{static{i(this,"DefaultReferenceImpl")}static{J(this,"DefaultReferenceImpl")}constructor(r,t,a,s,l){this.resolver=r,this.node=t,this.property=a,this._ref=void 0,this.$refNode=s,this.$refText=l}get ref(){return this.resolver.resolveReference(this,this.node,this.property)}get $nodeDescription(){return this._nodeDescription}get error(){return UV(this._ref)?this._ref:void 0}},loi=class{static{i(this,"DefaultMultiReferenceImpl")}static{J(this,"DefaultMultiReferenceImpl")}constructor(r,t,a,s,l){this.resolver=r,this.node=t,this.property=a,this._items=void 0,this.$refNode=s,this.$refText=l}get items(){return this.resolver.resolveMultiReference(this,this.node,this.property)}get error(){return this._linkingError}},coi=class{static{i(this,"DefaultLinker")}static{J(this,"DefaultLinker")}constructor(r){this.reflection=r.shared.AstReflection,this.langiumDocuments=()=>r.shared.workspace.LangiumDocuments,this.scopeProvider=r.references.ScopeProvider,this.astNodeLocator=r.workspace.AstNodeLocator,this.profiler=r.shared.profilers.LangiumProfiler,this.languageId=r.LanguageMetaData.languageId,this.referenceResolver={resolveReference:this.resolveReference.bind(this),resolveMultiReference:this.resolveMultiReference.bind(this)}}async link(r,t=$d.CancellationToken.None){if(this.profiler?.isActive("linking")){let a=this.profiler.createTask("linking",this.languageId);a.start();try{for(let s of VS(r.parseResult.value))await ky(t),lae(s).forEach(l=>{let h=`${s.$type}:${l.property}`;a.startSubTask(h);try{this.doLink(l,r)}finally{a.stopSubTask(h)}})}finally{a.stop()}}else for(let a of VS(r.parseResult.value))await ky(t),lae(a).forEach(s=>this.doLink(s,r))}doLink(r,t){let a=r.reference;if("_ref"in a&&a._ref===void 0){a._ref=CV;try{let s=this.getCandidate(r);if(UV(s))a._ref=s;else{a._nodeDescription=s;let l=this.loadAstNode(s);a._ref=l??this.createLinkingError(r,s)}}catch(s){console.error(`An error occurred while resolving reference to '${a.$refText}':`,s);let l=s.message??String(s);a._ref={info:r,message:`An error occurred while resolving reference to '${a.$refText}': ${l}`}}t.references.push(a)}else if("_items"in a&&a._items===void 0){a._items=CV;try{let s=this.getCandidates(r),l=[];if(UV(s))a._linkingError=s;else for(let h of s){let f=this.loadAstNode(h);f&&l.push({ref:f,$nodeDescription:h})}a._items=l}catch(s){a._linkingError={info:r,message:`An error occurred while resolving reference to '${a.$refText}': ${s}`},a._items=[]}t.references.push(a)}}unlink(r){for(let t of r.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);r.references=[]}getCandidate(r){return this.scopeProvider.getScope(r).getElement(r.reference.$refText)??this.createLinkingError(r)}getCandidates(r){let a=this.scopeProvider.getScope(r).getElements(r.reference.$refText).distinct(s=>`${s.documentUri}#${s.path}`).toArray();return a.length>0?a:this.createLinkingError(r)}buildReference(r,t,a,s){return new ooi(this.referenceResolver,r,t,a,s)}buildMultiReference(r,t,a,s){return new loi(this.referenceResolver,r,t,a,s)}resolveReference(r,t,a){if(Lm(r._ref))return r._ref;if($_r(r._nodeDescription)){let s=this.loadAstNode(r._nodeDescription);r._ref=s??this.createLinkingError({reference:r,container:t,property:a},r._nodeDescription)}else if(r._ref===void 0){r._ref=CV;let s=Zie(t).$document,l=this.getLinkedNode({reference:r,container:t,property:a});if(l.error&&s&&s.state<ac.ComputedScopes)return r._ref=void 0;r._ref=l.node??l.error,r._nodeDescription=l.descr,s?.references.push(r)}else r._ref===CV&&this.throwCyclicReferenceError(t,a,r.$refText);return Lm(r._ref)?r._ref:void 0}resolveMultiReference(r,t,a){if(Array.isArray(r._items))return r._items;if(r._items===void 0){r._items=CV;let s=Zie(t).$document,l=this.getCandidates({reference:r,container:t,property:a}),h=[];if(UV(l))r._linkingError=l;else{for(let f of l){let d=this.loadAstNode(f);d&&h.push({ref:d,$nodeDescription:f})}h.length===0&&(r._linkingError=this.createLinkingError({reference:r,container:t,property:a}))}r._items=h,s?.references.push(r)}else r._items===CV&&this.throwCyclicReferenceError(t,a,r.$refText);return Array.isArray(r._items)?r._items:[]}throwCyclicReferenceError(r,t,a){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(r)}/${t} (symbol '${a}')`)}getLinkedNode(r){try{let t=this.getCandidate(r);if(UV(t))return{error:t};let a=this.loadAstNode(t);return a?{node:a,descr:t}:{descr:t,error:this.createLinkingError(r,t)}}catch(t){console.error(`An error occurred while resolving reference to '${r.reference.$refText}':`,t);let a=t.message??String(t);return{error:{info:r,message:`An error occurred while resolving reference to '${r.reference.$refText}': ${a}`}}}}loadAstNode(r){if(r.node)return r.node;let t=this.langiumDocuments().getDocument(r.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,r.path)}createLinkingError(r,t){let a=Zie(r.container).$document;a&&a.state<ac.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${a.uri}).`);let s=this.reflection.getReferenceType(r);return{info:r,message:`Could not resolve reference to ${s} named '${r.reference.$refText}'.`,targetDescription:t}}};i(fPr,"isNamed");J(fPr,"isNamed");uoi=class{static{i(this,"DefaultNameProvider")}static{J(this,"DefaultNameProvider")}getName(r){if(fPr(r))return r.name}getNameNode(r){return tlt(r.$cstNode,"name")}},hoi=class{static{i(this,"DefaultReferences")}static{J(this,"DefaultReferences")}constructor(r){this.nameProvider=r.references.NameProvider,this.index=r.shared.workspace.IndexManager,this.nodeLocator=r.workspace.AstNodeLocator,this.documents=r.shared.workspace.LangiumDocuments,this.hasMultiReference=VS(r.Grammar).some(t=>Aae(t)&&t.isMulti)}findDeclarations(r){if(r){let t=ADr(r),a=r.astNode;if(t&&a){let s=a[t.feature];if(ok(s)||c8(s))return est(s);if(Array.isArray(s)){for(let l of s)if((ok(l)||c8(l))&&l.$refNode&&l.$refNode.offset<=r.offset&&l.$refNode.end>=r.end)return est(l)}}if(a){let s=this.nameProvider.getNameNode(a);if(s&&(s===r||cDr(r,s)))return this.getSelfNodes(a)}}return[]}getSelfNodes(r){if(this.hasMultiReference){let t=this.index.findAllReferences(r,this.nodeLocator.getAstNodePath(r)),a=this.getNodeFromReferenceDescription(t.head());if(a){for(let s of lae(a))if(c8(s.reference)&&s.reference.items.some(l=>l.ref===r))return s.reference.items.map(l=>l.ref)}return[r]}else return[r]}getNodeFromReferenceDescription(r){if(!r)return;let t=this.documents.getDocument(r.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,r.sourcePath)}findDeclarationNodes(r){let t=this.findDeclarations(r),a=[];for(let s of t){let l=this.nameProvider.getNameNode(s)??s.$cstNode;l&&a.push(l)}return a}findReferences(r,t){let a=[];t.includeDeclaration&&a.push(...this.getSelfReferences(r));let s=this.index.findAllReferences(r,this.nodeLocator.getAstNodePath(r));return t.documentUri&&(s=s.filter(l=>lk.equals(l.sourceUri,t.documentUri))),a.push(...s),rd(a)}getSelfReferences(r){let t=this.getSelfNodes(r),a=[];for(let s of t){let l=this.nameProvider.getNameNode(s);if(l){let h=US(s),f=this.nodeLocator.getAstNodePath(s);a.push({sourceUri:h.uri,sourcePath:f,targetUri:h.uri,targetPath:f,segment:uae(l),local:!0})}}return a}},wae=class{static{i(this,"MultiMap")}static{J(this,"MultiMap")}constructor(r){if(this.map=new Map,r)for(let[t,a]of r)this.add(t,a)}get size(){return Zat.sum(rd(this.map.values()).map(r=>r.length))}clear(){this.map.clear()}delete(r,t){if(t===void 0)return this.map.delete(r);{let a=this.map.get(r);if(a){let s=a.indexOf(t);if(s>=0)return a.length===1?this.map.delete(r):a.splice(s,1),!0}return!1}}get(r){return this.map.get(r)??[]}getStream(r){let t=this.map.get(r);return t?rd(t):z_r}has(r,t){if(t===void 0)return this.map.has(r);{let a=this.map.get(r);return a?a.indexOf(t)>=0:!1}}add(r,t){return this.map.has(r)?this.map.get(r).push(t):this.map.set(r,[t]),this}addAll(r,t){return this.map.has(r)?this.map.get(r).push(...t):this.map.set(r,Array.from(t)),this}forEach(r){this.map.forEach((t,a)=>t.forEach(s=>r(s,a,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return rd(this.map.entries()).flatMap(([r,t])=>t.map(a=>[r,a]))}keys(){return rd(this.map.keys())}values(){return rd(this.map.values()).flat()}entriesGroupedByKey(){return rd(this.map.entries())}},a_r=class{static{i(this,"BiMap")}static{J(this,"BiMap")}get size(){return this.map.size}constructor(r){if(this.map=new Map,this.inverse=new Map,r)for(let[t,a]of r)this.set(t,a)}clear(){this.map.clear(),this.inverse.clear()}set(r,t){return this.map.set(r,t),this.inverse.set(t,r),this}get(r){return this.map.get(r)}getKey(r){return this.inverse.get(r)}delete(r){let t=this.map.get(r);return t!==void 0?(this.map.delete(r),this.inverse.delete(t),!0):!1}},foi=class{static{i(this,"DefaultScopeComputation")}static{J(this,"DefaultScopeComputation")}constructor(r){this.nameProvider=r.references.NameProvider,this.descriptions=r.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(r,t=$d.CancellationToken.None){return this.collectExportedSymbolsForNode(r.parseResult.value,r,void 0,t)}async collectExportedSymbolsForNode(r,t,a=i4e,s=$d.CancellationToken.None){let l=[];this.addExportedSymbol(r,l,t);for(let h of a(r))await ky(s),this.addExportedSymbol(h,l,t);return l}addExportedSymbol(r,t,a){let s=this.nameProvider.getName(r);s&&t.push(this.descriptions.createDescription(r,s,a))}async collectLocalSymbols(r,t=$d.CancellationToken.None){let a=r.parseResult.value,s=new wae;for(let l of tW(a))await ky(t),this.addLocalSymbol(l,r,s);return s}addLocalSymbol(r,t,a){let s=r.$container;if(s){let l=this.nameProvider.getName(r);l&&a.add(s,this.descriptions.createDescription(r,l,t))}}},s_r=class{static{i(this,"StreamScope")}static{J(this,"StreamScope")}constructor(r,t,a){this.elements=r,this.outerScope=t,this.caseInsensitive=a?.caseInsensitive??!1,this.concatOuterScope=a?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(r){let t=this.caseInsensitive?r.toLowerCase():r,a=this.caseInsensitive?this.elements.find(s=>s.name.toLowerCase()===t):this.elements.find(s=>s.name===r);if(a)return a;if(this.outerScope)return this.outerScope.getElement(r)}getElements(r){let t=this.caseInsensitive?r.toLowerCase():r,a=this.caseInsensitive?this.elements.filter(s=>s.name.toLowerCase()===t):this.elements.filter(s=>s.name===r);return(this.concatOuterScope||a.isEmpty())&&this.outerScope?a.concat(this.outerScope.getElements(r)):a}},doi=class{static{i(this,"MultiMapScope")}static{J(this,"MultiMapScope")}constructor(r,t,a){this.elements=new wae,this.caseInsensitive=a?.caseInsensitive??!1,this.concatOuterScope=a?.concatOuterScope??!0;for(let s of r){let l=this.caseInsensitive?s.name.toLowerCase():s.name;this.elements.add(l,s)}this.outerScope=t}getElement(r){let t=this.caseInsensitive?r.toLowerCase():r,a=this.elements.get(t)[0];if(a)return a;if(this.outerScope)return this.outerScope.getElement(r)}getElements(r){let t=this.caseInsensitive?r.toLowerCase():r,a=this.elements.get(t);return(this.concatOuterScope||a.length===0)&&this.outerScope?rd(a).concat(this.outerScope.getElements(r)):rd(a)}getAllElements(){let r=rd(this.elements.values());return this.outerScope&&(r=r.concat(this.outerScope.getAllElements())),r}},dPr=class{static{i(this,"DisposableCache")}static{J(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(r){this.toDispose.push(r)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(r=>r.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},poi=class extends dPr{static{i(this,"SimpleCache")}static{J(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(r){return this.throwIfDisposed(),this.cache.has(r)}set(r,t){this.throwIfDisposed(),this.cache.set(r,t)}get(r,t){if(this.throwIfDisposed(),this.cache.has(r))return this.cache.get(r);if(t){let a=t();return this.cache.set(r,a),a}else return}delete(r){return this.throwIfDisposed(),this.cache.delete(r)}clear(){this.throwIfDisposed(),this.cache.clear()}},goi=class extends dPr{static{i(this,"ContextCache")}static{J(this,"ContextCache")}constructor(r){super(),this.cache=new Map,this.converter=r??(t=>t)}has(r,t){return this.throwIfDisposed(),this.cacheForContext(r).has(t)}set(r,t,a){this.throwIfDisposed(),this.cacheForContext(r).set(t,a)}get(r,t,a){this.throwIfDisposed();let s=this.cacheForContext(r);if(s.has(t))return s.get(t);if(a){let l=a();return s.set(t,l),l}else return}delete(r,t){return this.throwIfDisposed(),this.cacheForContext(r).delete(t)}clear(r){if(this.throwIfDisposed(),r){let t=this.converter(r);this.cache.delete(t)}else this.cache.clear()}cacheForContext(r){let t=this.converter(r),a=this.cache.get(t);return a||(a=new Map,this.cache.set(t,a)),a}},moi=class extends poi{static{i(this,"WorkspaceCache")}static{J(this,"WorkspaceCache")}constructor(r,t){super(),t?(this.toDispose.push(r.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(r.workspace.DocumentBuilder.onUpdate((a,s)=>{s.length>0&&this.clear()}))):this.toDispose.push(r.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},yoi=class{static{i(this,"DefaultScopeProvider")}static{J(this,"DefaultScopeProvider")}constructor(r){this.reflection=r.shared.AstReflection,this.nameProvider=r.references.NameProvider,this.descriptions=r.workspace.AstNodeDescriptionProvider,this.indexManager=r.shared.workspace.IndexManager,this.globalScopeCache=new moi(r.shared)}getScope(r){let t=[],a=this.reflection.getReferenceType(r),s=US(r.container).localSymbols;if(s){let h=r.container;do s.has(h)&&t.push(s.getStream(h).filter(f=>this.reflection.isSubtype(f.type,a))),h=h.$container;while(h)}let l=this.getGlobalScope(a,r);for(let h=t.length-1;h>=0;h--)l=this.createScope(t[h],l);return l}createScope(r,t,a){return new s_r(rd(r),t,a)}createScopeForNodes(r,t,a){let s=rd(r).map(l=>{let h=this.nameProvider.getName(l);if(h)return this.descriptions.createDescription(l,h)}).nonNullable();return new s_r(s,t,a)}getGlobalScope(r,t){return this.globalScopeCache.get(r,()=>new doi(this.indexManager.allElements(r)))}};i(pPr,"isAstNodeWithComment");J(pPr,"isAstNodeWithComment");i($st,"isIntermediateReference");J($st,"isIntermediateReference");boi=class{static{i(this,"DefaultJsonSerializer")}static{J(this,"DefaultJsonSerializer")}constructor(r){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=r.shared.workspace.LangiumDocuments,this.astNodeLocator=r.workspace.AstNodeLocator,this.nameProvider=r.references.NameProvider,this.commentProvider=r.documentation.CommentProvider}serialize(r,t){let a=t??{},s=t?.replacer,l=J((f,d)=>this.replacer(f,d,a),"defaultReplacer"),h=s?(f,d)=>s(f,d,l):l;try{return this.currentDocument=US(r),JSON.stringify(r,h,t?.space)}finally{this.currentDocument=void 0}}deserialize(r,t){let a=t??{},s=JSON.parse(r);return this.linkNode(s,s,a),s}replacer(r,t,{refText:a,sourceText:s,textRegions:l,comments:h,uriConverter:f}){if(!this.ignoreProperties.has(r))if(ok(t)){let d=t.ref,m=a?t.$refText:void 0;if(d){let b=US(d),v="";this.currentDocument&&this.currentDocument!==b&&(f?v=f(b.uri,d):v=b.uri.toString());let T=this.astNodeLocator.getAstNodePath(d);return{$ref:`${v}#${T}`,$refText:m}}else return{$error:t.error?.message??"Could not resolve reference",$refText:m}}else if(c8(t)){let d=a?t.$refText:void 0,m=[];for(let b of t.items){let v=b.ref,T=US(b.ref),C="";this.currentDocument&&this.currentDocument!==T&&(f?C=f(T.uri,v):C=T.uri.toString());let E=this.astNodeLocator.getAstNodePath(v);m.push(`${C}#${E}`)}return{$refs:m,$refText:d}}else if(Lm(t)){let d;if(l&&(d=this.addAstNodeRegionWithAssignmentsTo({...t}),(!r||t.$document)&&d?.$textRegion&&(d.$textRegion.documentURI=this.currentDocument?.uri.toString())),s&&!r&&(d??(d={...t}),d.$sourceText=t.$cstNode?.text),h){d??(d={...t});let m=this.commentProvider.getComment(t);m&&(d.$comment=m.replace(/\r/g,""))}return d??t}else return t}addAstNodeRegionWithAssignmentsTo(r){let t=J(a=>({offset:a.offset,end:a.end,length:a.length,range:a.range}),"createDocumentSegment");if(r.$cstNode){let a=r.$textRegion=t(r.$cstNode),s=a.assignments={};return Object.keys(r).filter(l=>!l.startsWith("$")).forEach(l=>{let h=CDr(r.$cstNode,l).map(t);h.length!==0&&(s[l]=h)}),r}}linkNode(r,t,a,s,l,h){for(let[d,m]of Object.entries(r))if(Array.isArray(m))for(let b=0;b<m.length;b++){let v=m[b];$st(v)?m[b]=this.reviveReference(r,d,t,v,a):Lm(v)&&this.linkNode(v,t,a,r,d,b)}else $st(m)?r[d]=this.reviveReference(r,d,t,m,a):Lm(m)&&this.linkNode(m,t,a,r,d);let f=r;f.$container=s,f.$containerProperty=l,f.$containerIndex=h}reviveReference(r,t,a,s,l){let h=s.$refText,f=s.$error,d;if(s.$ref){let m=this.getRefNode(a,s.$ref,l.uriConverter);if(Lm(m))return h||(h=this.nameProvider.getName(m)),{$refText:h??"",ref:m};f=m}else if(s.$refs){let m=[];for(let b of s.$refs){let v=this.getRefNode(a,b,l.uriConverter);Lm(v)&&m.push({ref:v})}if(m.length===0)d={$refText:h??"",items:m},f??(f="Could not resolve multi-reference");else return{$refText:h??"",items:m}}if(f)return d??(d={$refText:h??"",ref:void 0}),d.error={info:{container:r,property:t,reference:d},message:f},d}getRefNode(r,t,a){try{let s=t.indexOf("#");if(s===0){let d=this.astNodeLocator.getAstNode(r,t.substring(1));return d||"Could not resolve path: "+t}if(s<0){let d=a?a(t):cx.parse(t),m=this.langiumDocuments.getDocument(d);return m?m.parseResult.value:"Could not find document for URI: "+t}let l=a?a(t.substring(0,s)):cx.parse(t.substring(0,s)),h=this.langiumDocuments.getDocument(l);if(!h)return"Could not find document for URI: "+t;if(s===t.length-1)return h.parseResult.value;let f=this.astNodeLocator.getAstNode(h.parseResult.value,t.substring(s+1));return f||"Could not resolve URI: "+t}catch(s){return String(s)}}},voi=class{static{i(this,"DefaultServiceRegistry")}static{J(this,"DefaultServiceRegistry")}get map(){return this.fileExtensionMap}constructor(r){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=r?.workspace.TextDocuments}register(r){let t=r.LanguageMetaData;for(let a of t.fileExtensions)this.fileExtensionMap.has(a)&&console.warn(`The file extension ${a} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileExtensionMap.set(a,r);if(t.fileNames)for(let a of t.fileNames)this.fileNameMap.has(a)&&console.warn(`The file name ${a} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileNameMap.set(a,r);this.languageIdMap.set(t.languageId,r)}getServices(r){if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");let t=this.textDocuments?.get(r)?.languageId;if(t!==void 0){let h=this.languageIdMap.get(t);if(h)return h}let a=lk.extname(r),s=lk.basename(r),l=this.fileNameMap.get(s)??this.fileExtensionMap.get(a);if(!l)throw t?new Error(`The service registry contains no services for the extension '${a}' for language '${t}'.`):new Error(`The service registry contains no services for the extension '${a}'.`);return l}hasServices(r){try{return this.getServices(r),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}};i(HV,"diagnosticData");J(HV,"diagnosticData");(function(r){r.defaults=["fast","slow","built-in"],r.all=r.defaults})(Gst||(Gst={}));woi=class{static{i(this,"ValidationRegistry")}static{J(this,"ValidationRegistry")}constructor(r){this.entries=new wae,this.knownCategories=new Set(Gst.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=r.shared.AstReflection}register(r,t=this,a="fast"){if(a==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(a);for(let[s,l]of Object.entries(r)){let h=l;if(Array.isArray(h))for(let f of h){let d={check:this.wrapValidationException(f,t),category:a};this.addEntry(s,d)}else if(typeof h=="function"){let f={check:this.wrapValidationException(h,t),category:a};this.addEntry(s,f)}else nW(h)}}wrapValidationException(r,t){return async(a,s,l)=>{await this.handleException(()=>r.call(t,a,s,l),"An error occurred during validation",s,a)}}async handleException(r,t,a,s){try{await r()}catch(l){if(Dae(l))throw l;console.error(`${t}:`,l),l instanceof Error&&l.stack&&console.error(l.stack);let h=l instanceof Error?l.message:String(l);a("error",`${t}: ${h}`,{node:s})}}addEntry(r,t){if(r==="AstNode"){this.entries.add("AstNode",t);return}for(let a of this.reflection.getAllSubTypes(r))this.entries.add(a,t)}getChecks(r,t){let a=rd(this.entries.get(r)).concat(this.entries.get("AstNode"));return t&&(a=a.filter(s=>t.includes(s.category))),a.map(s=>s.check)}registerBeforeDocument(r,t=this){this.entriesBefore.push(this.wrapPreparationException(r,"An error occurred during set-up of the validation",t))}registerAfterDocument(r,t=this){this.entriesAfter.push(this.wrapPreparationException(r,"An error occurred during tear-down of the validation",t))}wrapPreparationException(r,t,a){return async(s,l,h,f)=>{await this.handleException(()=>r.call(a,s,l,h,f),t,l,s)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(r){return this.knownCategories}},xoi=Object.freeze({validateNode:!0,validateChildren:!0}),Toi=class{static{i(this,"DefaultDocumentValidator")}static{J(this,"DefaultDocumentValidator")}constructor(r){this.validationRegistry=r.validation.ValidationRegistry,this.metadata=r.LanguageMetaData,this.profiler=r.shared.profilers.LangiumProfiler,this.languageId=r.LanguageMetaData.languageId}async validateDocument(r,t={},a=$d.CancellationToken.None){let s=r.parseResult,l=[];if(await ky(a),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(s,l,t),t.stopAfterLexingErrors&&l.some(h=>h.data?.code===Z4.LexingError)||(this.processParsingErrors(s,l,t),t.stopAfterParsingErrors&&l.some(h=>h.data?.code===Z4.ParsingError))||(this.processLinkingErrors(r,l,t),t.stopAfterLinkingErrors&&l.some(h=>h.data?.code===Z4.LinkingError))))return l;try{l.push(...await this.validateAst(s.value,t,a))}catch(h){if(Dae(h))throw h;console.error("An error occurred during validation:",h)}return await ky(a),l}processLexingErrors(r,t,a){let s=[...r.lexerErrors,...r.lexerReport?.diagnostics??[]];for(let l of s){let h=l.severity??"error",f={severity:E3e(h),range:{start:{line:l.line-1,character:l.column-1},end:{line:l.line-1,character:l.column+l.length-1}},message:l.message,data:mPr(h),source:this.getSource()};t.push(f)}}processParsingErrors(r,t,a){for(let s of r.parserErrors){let l;if($3e(s.token))l=uDr(s.token);else if("previousToken"in s){let h=s.previousToken;if($3e(h)){let f={line:h.endLine-1,character:h.endColumn};l={start:f,end:f}}else{let f={line:0,character:0};l={start:f,end:f}}}if(l){let h={severity:E3e("error"),range:l,message:s.message,data:HV(Z4.ParsingError),source:this.getSource()};t.push(h)}}}processLinkingErrors(r,t,a){for(let s of r.references){let l=s.error;if(l){let h={node:l.info.container,range:s.$refNode?.range,property:l.info.property,index:l.info.index,data:{code:Z4.LinkingError,containerType:l.info.container.$type,property:l.info.property,refText:l.info.reference.$refText}};t.push(this.toDiagnostic("error",l.message,h))}}}async validateAst(r,t,a=$d.CancellationToken.None){let s=[],l=J((h,f,d)=>{s.push(this.toDiagnostic(h,f,d))},"acceptor");return await this.validateAstBefore(r,t,l,a),await this.validateAstNodes(r,t,l,a),await this.validateAstAfter(r,t,l,a),s}async validateAstBefore(r,t,a,s=$d.CancellationToken.None){let l=this.validationRegistry.checksBefore;for(let h of l)await ky(s),await h(r,a,t.categories??[],s)}async validateAstNodes(r,t,a,s=$d.CancellationToken.None){if(this.profiler?.isActive("validating")){let l=this.profiler.createTask("validating",this.languageId);l.start();try{let h=VS(r).iterator();for(let f of h){l.startSubTask(f.$type);let d=this.validateSingleNodeOptions(f,t);if(d.validateNode)try{let m=this.validationRegistry.getChecks(f.$type,t.categories);for(let b of m)await b(f,a,s)}finally{l.stopSubTask(f.$type)}d.validateChildren||h.prune()}}finally{l.stop()}}else{let l=VS(r).iterator();for(let h of l){await ky(s);let f=this.validateSingleNodeOptions(h,t);if(f.validateNode){let d=this.validationRegistry.getChecks(h.$type,t.categories);for(let m of d)await m(h,a,s)}f.validateChildren||l.prune()}}}validateSingleNodeOptions(r,t){return xoi}async validateAstAfter(r,t,a,s=$d.CancellationToken.None){let l=this.validationRegistry.checksAfter;for(let h of l)await ky(s),await h(r,a,t.categories??[],s)}toDiagnostic(r,t,a){return{message:t,range:gPr(a),severity:E3e(r),code:a.code,codeDescription:a.codeDescription,tags:a.tags,relatedInformation:a.relatedInformation,data:a.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};i(gPr,"getDiagnosticRange");J(gPr,"getDiagnosticRange");i(E3e,"toDiagnosticSeverity");J(E3e,"toDiagnosticSeverity");i(mPr,"toDiagnosticData");J(mPr,"toDiagnosticData");(function(r){r.LexingError="lexing-error",r.LexingWarning="lexing-warning",r.LexingInfo="lexing-info",r.LexingHint="lexing-hint",r.ParsingError="parsing-error",r.LinkingError="linking-error"})(Z4||(Z4={}));koi=class{static{i(this,"DefaultAstNodeDescriptionProvider")}static{J(this,"DefaultAstNodeDescriptionProvider")}constructor(r){this.astNodeLocator=r.workspace.AstNodeLocator,this.nameProvider=r.references.NameProvider}createDescription(r,t,a){let s=a??US(r);t??(t=this.nameProvider.getName(r));let l=this.astNodeLocator.getAstNodePath(r);if(!t)throw new Error(`Node at path ${l} has no name.`);let h,f=J(()=>h??(h=uae(this.nameProvider.getNameNode(r)??r.$cstNode)),"nameSegmentGetter");return{node:r,name:t,get nameSegment(){return f()},selectionSegment:uae(r.$cstNode),type:r.$type,documentUri:s.uri,path:l}}},Coi=class{static{i(this,"DefaultReferenceDescriptionProvider")}static{J(this,"DefaultReferenceDescriptionProvider")}constructor(r){this.nodeLocator=r.workspace.AstNodeLocator}async createDescriptions(r,t=$d.CancellationToken.None){let a=[],s=r.parseResult.value;for(let l of VS(s))await ky(t),lae(l).forEach(h=>{h.reference.error||a.push(...this.createInfoDescriptions(h))});return a}createInfoDescriptions(r){let t=r.reference;if(t.error||!t.$refNode)return[];let a=[];ok(t)&&t.$nodeDescription?a=[t.$nodeDescription]:c8(t)&&(a=t.items.map(d=>d.$nodeDescription).filter(d=>d!==void 0));let s=US(r.container).uri,l=this.nodeLocator.getAstNodePath(r.container),h=[],f=uae(t.$refNode);for(let d of a)h.push({sourceUri:s,sourcePath:l,targetUri:d.documentUri,targetPath:d.path,segment:f,local:lk.equals(d.documentUri,s)});return h}},Eoi=class{static{i(this,"DefaultAstNodeLocator")}static{J(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(r){if(r.$container){let t=this.getAstNodePath(r.$container),a=this.getPathSegment(r);return t+this.segmentSeparator+a}return""}getPathSegment({$containerProperty:r,$containerIndex:t}){if(!r)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?r+this.indexSeparator+t:r}getAstNode(r,t){return t.split(this.segmentSeparator).reduce((s,l)=>{if(!s||l.length===0)return s;let h=l.indexOf(this.indexSeparator);if(h>0){let f=l.substring(0,h),d=parseInt(l.substring(h+1));return s[f]?.[d]}return s[l]},r)}},Soi=Got(Vot(),1),Aoi=class{static{i(this,"DefaultConfigurationProvider")}static{J(this,"DefaultConfigurationProvider")}constructor(r){this._ready=new qlt,this.onConfigurationSectionUpdateEmitter=new Soi.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=r.ServiceRegistry}get ready(){return this._ready.promise}initialize(r){this.workspaceConfig=r.capabilities.workspace?.configuration??!1}async initialized(r){if(this.workspaceConfig){if(r.register){let t=this.serviceRegistry.all;r.register({section:t.map(a=>this.toSectionName(a.LanguageMetaData.languageId))})}if(r.fetchConfiguration){let t=this.serviceRegistry.all.map(s=>({section:this.toSectionName(s.LanguageMetaData.languageId)})),a=await r.fetchConfiguration(t);t.forEach((s,l)=>{this.updateSectionConfiguration(s.section,a[l])})}}this._ready.resolve()}updateConfiguration(r){typeof r.settings!="object"||r.settings===null||Object.entries(r.settings).forEach(([t,a])=>{this.updateSectionConfiguration(t,a),this.onConfigurationSectionUpdateEmitter.fire({section:t,configuration:a})})}updateSectionConfiguration(r,t){this.settings[r]=t}async getConfiguration(r,t){await this.ready;let a=this.toSectionName(r);if(this.settings[a])return this.settings[a][t]}toSectionName(r){return`${r}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},$ke=Got(Vot(),1);(function(r){function t(a){return{dispose:J(async()=>await a(),"dispose")}}i(t,"create"),J(t,"create"),r.create=t})(nae||(nae={}));Roi=class{static{i(this,"DefaultDocumentBuilder")}static{J(this,"DefaultDocumentBuilder")}constructor(r){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new wae,this.documentPhaseListeners=new wae,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=ac.Changed,this.langiumDocuments=r.workspace.LangiumDocuments,this.langiumDocumentFactory=r.workspace.LangiumDocumentFactory,this.textDocuments=r.workspace.TextDocuments,this.indexManager=r.workspace.IndexManager,this.fileSystemProvider=r.workspace.FileSystemProvider,this.workspaceManager=()=>r.workspace.WorkspaceManager,this.serviceRegistry=r.ServiceRegistry}async build(r,t={},a=$d.CancellationToken.None){for(let s of r){let l=s.uri.toString();if(s.state===ac.Validated){if(typeof t.validation=="boolean"&&t.validation)this.resetToState(s,ac.IndexedReferences);else if(typeof t.validation=="object"){let h=this.findMissingValidationCategories(s,t);h.length>0&&(this.buildState.set(l,{completed:!1,options:{validation:{categories:h}},result:this.buildState.get(l)?.result}),s.state=ac.IndexedReferences)}}else this.buildState.delete(l)}this.currentState=ac.Changed,await this.emitUpdate(r.map(s=>s.uri),[]),await this.buildDocuments(r,t,a)}async update(r,t,a=$d.CancellationToken.None){this.currentState=ac.Changed;let s=[];for(let d of t){let m=this.langiumDocuments.deleteDocuments(d);for(let b of m)s.push(b.uri),this.cleanUpDeleted(b)}let l=(await Promise.all(r.map(d=>this.findChangedUris(d)))).flat();for(let d of l){let m=this.langiumDocuments.getDocument(d);m===void 0&&(m=this.langiumDocumentFactory.fromModel({$type:"INVALID"},d),m.state=ac.Changed,this.langiumDocuments.addDocument(m)),this.resetToState(m,ac.Changed)}let h=rd(l).concat(s).map(d=>d.toString()).toSet();this.langiumDocuments.all.filter(d=>!h.has(d.uri.toString())&&this.shouldRelink(d,h)).forEach(d=>this.resetToState(d,ac.ComputedScopes)),await this.emitUpdate(l,s),await ky(a);let f=this.sortDocuments(this.langiumDocuments.all.filter(d=>d.state<ac.Validated||!this.buildState.get(d.uri.toString())?.completed||this.resultsAreIncomplete(d,this.updateBuildOptions)).toArray());await this.buildDocuments(f,this.updateBuildOptions,a)}resultsAreIncomplete(r,t){return this.findMissingValidationCategories(r,t).length>=1}findMissingValidationCategories(r,t){let a=this.buildState.get(r.uri.toString()),s=this.serviceRegistry.getServices(r.uri).validation.ValidationRegistry.getAllValidationCategories(r),l=a?.result?.validationChecks?new Set(a?.result?.validationChecks):a?.completed?s:new Set,h=t===void 0||t.validation===!0?s:typeof t.validation=="object"?t.validation.categories??s:[];return rd(h).filter(f=>!l.has(f)).toArray()}async findChangedUris(r){if(this.langiumDocuments.getDocument(r)??this.textDocuments?.get(r))return[r];try{let a=await this.fileSystemProvider.stat(r);if(a.isDirectory)return await this.workspaceManager().searchFolder(r);if(this.workspaceManager().shouldIncludeEntry(a))return[r]}catch{}return[]}async emitUpdate(r,t){await Promise.all(this.updateListeners.map(a=>a(r,t)))}sortDocuments(r){let t=0,a=r.length-1;for(;t<a;){for(;t<r.length&&this.hasTextDocument(r[t]);)t++;for(;a>=0&&!this.hasTextDocument(r[a]);)a--;t<a&&([r[t],r[a]]=[r[a],r[t]])}return r}hasTextDocument(r){return!!this.textDocuments?.get(r.uri)}shouldRelink(r,t){return r.references.some(a=>a.error!==void 0)?!0:this.indexManager.isAffected(r,t)}onUpdate(r){return this.updateListeners.push(r),nae.create(()=>{let t=this.updateListeners.indexOf(r);t>=0&&this.updateListeners.splice(t,1)})}resetToState(r,t){switch(t){case ac.Changed:case ac.Parsed:this.indexManager.removeContent(r.uri);case ac.IndexedContent:r.localSymbols=void 0;case ac.ComputedScopes:this.serviceRegistry.getServices(r.uri).references.Linker.unlink(r);case ac.Linked:this.indexManager.removeReferences(r.uri);case ac.IndexedReferences:r.diagnostics=void 0,this.buildState.delete(r.uri.toString());case ac.Validated:}r.state>t&&(r.state=t)}cleanUpDeleted(r){this.buildState.delete(r.uri.toString()),this.indexManager.remove(r.uri),r.state=ac.Changed}async buildDocuments(r,t,a){this.prepareBuild(r,t),await this.runCancelable(r,ac.Parsed,a,h=>this.langiumDocumentFactory.update(h,a)),await this.runCancelable(r,ac.IndexedContent,a,h=>this.indexManager.updateContent(h,a)),await this.runCancelable(r,ac.ComputedScopes,a,async h=>{let f=this.serviceRegistry.getServices(h.uri).references.ScopeComputation;h.localSymbols=await f.collectLocalSymbols(h,a)});let s=r.filter(h=>this.shouldLink(h));await this.runCancelable(s,ac.Linked,a,h=>this.serviceRegistry.getServices(h.uri).references.Linker.link(h,a)),await this.runCancelable(s,ac.IndexedReferences,a,h=>this.indexManager.updateReferences(h,a));let l=r.filter(h=>this.shouldValidate(h)?!0:(this.markAsCompleted(h),!1));await this.runCancelable(l,ac.Validated,a,async h=>{await this.validate(h,a),this.markAsCompleted(h)})}markAsCompleted(r){let t=this.buildState.get(r.uri.toString());t&&(t.completed=!0)}prepareBuild(r,t){for(let a of r){let s=a.uri.toString(),l=this.buildState.get(s);(!l||l.completed)&&this.buildState.set(s,{completed:!1,options:t,result:l?.result})}}async runCancelable(r,t,a,s){for(let h of r)h.state<t&&(await ky(a),await s(h),h.state=t,await this.notifyDocumentPhase(h,t,a));let l=r.filter(h=>h.state===t);await this.notifyBuildPhase(l,t,a),this.currentState=t}onBuildPhase(r,t){return this.buildPhaseListeners.add(r,t),nae.create(()=>{this.buildPhaseListeners.delete(r,t)})}onDocumentPhase(r,t){return this.documentPhaseListeners.add(r,t),nae.create(()=>{this.documentPhaseListeners.delete(r,t)})}waitUntil(r,t,a){let s;return t&&"path"in t?s=t:a=t,a??(a=$d.CancellationToken.None),s?this.awaitDocumentState(r,s,a):this.awaitBuilderState(r,a)}awaitDocumentState(r,t,a){let s=this.langiumDocuments.getDocument(t);if(s){if(s.state>=r)return Promise.resolve(t);if(a.isCancellationRequested)return Promise.reject(WV);if(this.currentState>=r&&r>s.state)return Promise.reject(new $ke.ResponseError($ke.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${ac[s.state]}, requiring ${ac[r]}, but workspace state is already ${ac[this.currentState]}. Returning undefined.`))}else return Promise.reject(new $ke.ResponseError($ke.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`));return new Promise((l,h)=>{let f=this.onDocumentPhase(r,m=>{lk.equals(m.uri,t)&&(f.dispose(),d.dispose(),l(m.uri))}),d=a.onCancellationRequested(()=>{f.dispose(),d.dispose(),h(WV)})})}awaitBuilderState(r,t){return this.currentState>=r?Promise.resolve():t.isCancellationRequested?Promise.reject(WV):new Promise((a,s)=>{let l=this.onBuildPhase(r,()=>{l.dispose(),h.dispose(),a()}),h=t.onCancellationRequested(()=>{l.dispose(),h.dispose(),s(WV)})})}async notifyDocumentPhase(r,t,a){let l=this.documentPhaseListeners.get(t).slice();for(let h of l)try{await ky(a),await h(r,a)}catch(f){if(!Dae(f))throw f}}async notifyBuildPhase(r,t,a){if(r.length===0)return;let l=this.buildPhaseListeners.get(t).slice();for(let h of l)await ky(a),await h(r,a)}shouldLink(r){return this.getBuildOptions(r).eagerLinking??!0}shouldValidate(r){return!!this.getBuildOptions(r).validation}async validate(r,t){let a=this.serviceRegistry.getServices(r.uri).validation.DocumentValidator,s=this.getBuildOptions(r),l=typeof s.validation=="object"?{...s.validation}:{};l.categories=this.findMissingValidationCategories(r,s);let h=await a.validateDocument(r,l,t);r.diagnostics?r.diagnostics.push(...h):r.diagnostics=h;let f=this.buildState.get(r.uri.toString());f&&(f.result??(f.result={}),f.result.validationChecks?f.result.validationChecks=rd(f.result.validationChecks).concat(l.categories).distinct().toArray():f.result.validationChecks=[...l.categories])}getBuildOptions(r){return this.buildState.get(r.uri.toString())?.options??{}}},Loi=class{static{i(this,"DefaultIndexManager")}static{J(this,"DefaultIndexManager")}constructor(r){this.symbolIndex=new Map,this.symbolByTypeIndex=new goi,this.referenceIndex=new Map,this.documents=r.workspace.LangiumDocuments,this.serviceRegistry=r.ServiceRegistry,this.astReflection=r.AstReflection}findAllReferences(r,t){let a=US(r).uri,s=[];return this.referenceIndex.forEach(l=>{l.forEach(h=>{lk.equals(h.targetUri,a)&&h.targetPath===t&&s.push(h)})}),rd(s)}allElements(r,t){let a=rd(this.symbolIndex.keys());return t&&(a=a.filter(s=>!t||t.has(s))),a.map(s=>this.getFileDescriptions(s,r)).flat()}getFileDescriptions(r,t){return t?this.symbolByTypeIndex.get(r,t,()=>(this.symbolIndex.get(r)??[]).filter(l=>this.astReflection.isSubtype(l.type,t))):this.symbolIndex.get(r)??[]}remove(r){this.removeContent(r),this.removeReferences(r)}removeContent(r){let t=r.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(r){let t=r.toString();this.referenceIndex.delete(t)}async updateContent(r,t=$d.CancellationToken.None){let s=await this.serviceRegistry.getServices(r.uri).references.ScopeComputation.collectExportedSymbols(r,t),l=r.uri.toString();this.symbolIndex.set(l,s),this.symbolByTypeIndex.clear(l)}async updateReferences(r,t=$d.CancellationToken.None){let s=await this.serviceRegistry.getServices(r.uri).workspace.ReferenceDescriptionProvider.createDescriptions(r,t);this.referenceIndex.set(r.uri.toString(),s)}isAffected(r,t){let a=this.referenceIndex.get(r.uri.toString());return a?a.some(s=>!s.local&&t.has(s.targetUri.toString())):!1}},_oi=class{static{i(this,"DefaultWorkspaceManager")}static{J(this,"DefaultWorkspaceManager")}constructor(r){this.initialBuildOptions={},this._ready=new qlt,this.serviceRegistry=r.ServiceRegistry,this.langiumDocuments=r.workspace.LangiumDocuments,this.documentBuilder=r.workspace.DocumentBuilder,this.fileSystemProvider=r.workspace.FileSystemProvider,this.mutex=r.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(r){this.folders=r.workspaceFolders??void 0}initialized(r){return this.mutex.write(t=>this.initializeWorkspace(this.folders??[],t))}async initializeWorkspace(r,t=$d.CancellationToken.None){let a=await this.performStartup(r);await ky(t),await this.documentBuilder.build(a,this.initialBuildOptions,t)}async performStartup(r){let t=[],a=J(h=>{t.push(h),this.langiumDocuments.hasDocument(h.uri)||this.langiumDocuments.addDocument(h)},"collector");await this.loadAdditionalDocuments(r,a);let s=[];await Promise.all(r.map(h=>this.getRootFolder(h)).map(async h=>this.traverseFolder(h,s)));let l=rd(s).distinct(h=>h.toString()).filter(h=>!this.langiumDocuments.hasDocument(h));return await this.loadWorkspaceDocuments(l,a),this._ready.resolve(),t}async loadWorkspaceDocuments(r,t){await Promise.all(r.map(async a=>{let s=await this.langiumDocuments.getOrCreateDocument(a);t(s)}))}loadAdditionalDocuments(r,t){return Promise.resolve()}getRootFolder(r){return cx.parse(r.uri)}async traverseFolder(r,t){try{let a=await this.fileSystemProvider.readDirectory(r);await Promise.all(a.map(async s=>{this.shouldIncludeEntry(s)&&(s.isDirectory?await this.traverseFolder(s.uri,t):s.isFile&&t.push(s.uri))}))}catch(a){console.error("Failure to read directory content of "+r.toString(!0),a)}}async searchFolder(r){let t=[];return await this.traverseFolder(r,t),t}shouldIncludeEntry(r){let t=lk.basename(r.uri);return t.startsWith(".")?!1:r.isDirectory?t!=="node_modules"&&t!=="out":r.isFile?this.serviceRegistry.hasServices(r.uri):!1}},Doi=class{static{i(this,"DefaultLexerErrorMessageProvider")}static{J(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(r,t,a,s,l){return mst.buildUnexpectedCharactersMessage(r,t,a,s,l)}buildUnableToPopLexerModeMessage(r){return mst.buildUnableToPopLexerModeMessage(r)}},Ioi={mode:"full"},Moi=class{static{i(this,"DefaultLexer")}static{J(this,"DefaultLexer")}constructor(r){this.errorMessageProvider=r.parser.LexerErrorMessageProvider,this.tokenBuilder=r.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(r.Grammar,{caseInsensitive:r.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let a=jst(t)?Object.values(t):t,s=r.LanguageMetaData.mode==="production";this.chevrotainLexer=new w2(a,{positionTracking:"full",skipValidations:s,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(r,t=Ioi){let a=this.chevrotainLexer.tokenize(r);return{tokens:a.tokens,errors:a.errors,hidden:a.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(r)}}toTokenTypeDictionary(r){if(jst(r))return r;let t=Klt(r)?Object.values(r.modes).flat():r,a={};return t.forEach(s=>a[s.name]=s),a}};i(yPr,"isTokenTypeArray");J(yPr,"isTokenTypeArray");i(Klt,"isIMultiModeLexerDefinition");J(Klt,"isIMultiModeLexerDefinition");i(jst,"isTokenTypeDictionary");J(jst,"isTokenTypeDictionary");n4e();i(bPr,"parseJSDoc");J(bPr,"parseJSDoc");i(vPr,"isJSDoc");J(vPr,"isJSDoc");i(Jlt,"getLines");J(Jlt,"getLines");o_r=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Noi=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;i(wPr,"tokenize");J(wPr,"tokenize");i(xPr,"buildInlineTokens");J(xPr,"buildInlineTokens");Ooi=/\S/,Poi=/\s*$/;i(Z3e,"skipWhitespace");J(Z3e,"skipWhitespace");i(TPr,"lastCharacter");J(TPr,"lastCharacter");i(kPr,"parseJSDocComment");J(kPr,"parseJSDocComment");i(CPr,"parseJSDocElement");J(CPr,"parseJSDocElement");i(EPr,"appendEmptyLine");J(EPr,"appendEmptyLine");i(Qlt,"parseJSDocText");J(Qlt,"parseJSDocText");i(SPr,"parseJSDocInline");J(SPr,"parseJSDocInline");i(Zlt,"parseJSDocTag");J(Zlt,"parseJSDocTag");i(ect,"parseJSDocLine");J(ect,"parseJSDocLine");i(M4e,"normalizeOptions");J(M4e,"normalizeOptions");i(S3e,"normalizeOption");J(S3e,"normalizeOption");l_r=class{static{i(this,"JSDocCommentImpl")}static{J(this,"JSDocCommentImpl")}constructor(r,t){this.elements=r,this.range=t}getTag(r){return this.getAllTags().find(t=>t.name===r)}getTags(r){return this.getAllTags().filter(t=>t.name===r)}getAllTags(){return this.elements.filter(r=>"name"in r)}toString(){let r="";for(let t of this.elements)if(r.length===0)r=t.toString();else{let a=t.toString();r+=Ust(r)+a}return r.trim()}toMarkdown(r){let t="";for(let a of this.elements)if(t.length===0)t=a.toMarkdown(r);else{let s=a.toMarkdown(r);t+=Ust(t)+s}return t.trim()}},Fit=class{static{i(this,"JSDocTagImpl")}static{J(this,"JSDocTagImpl")}constructor(r,t,a,s){this.name=r,this.content=t,this.inline=a,this.range=s}toString(){let r=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?r=`${r} ${t}`:this.content.inlines.length>1&&(r=`${r}
|
|
${t}`),this.inline?`{${r}}`:r}toMarkdown(r){return r?.renderTag?.(this)??this.toMarkdownDefault(r)}toMarkdownDefault(r){let t=this.content.toMarkdown(r);if(this.inline){let l=APr(this.name,t,r??{});if(typeof l=="string")return l}let a="";r?.tag==="italic"||r?.tag===void 0?a="*":r?.tag==="bold"?a="**":r?.tag==="bold-italic"&&(a="***");let s=`${a}@${this.name}${a}`;return this.content.inlines.length===1?s=`${s} \u2014 ${t}`:this.content.inlines.length>1&&(s=`${s}
|
|
${t}`),this.inline?`{${s}}`:s}};i(APr,"renderInlineTag");J(APr,"renderInlineTag");i(RPr,"renderLinkDefault");J(RPr,"renderLinkDefault");zst=class{static{i(this,"JSDocTextImpl")}static{J(this,"JSDocTextImpl")}constructor(r,t){this.inlines=r,this.range=t}toString(){let r="";for(let t=0;t<this.inlines.length;t++){let a=this.inlines[t],s=this.inlines[t+1];r+=a.toString(),s&&s.range.start.line>a.range.start.line&&(r+=`
|
|
`)}return r}toMarkdown(r){let t="";for(let a=0;a<this.inlines.length;a++){let s=this.inlines[a],l=this.inlines[a+1];t+=s.toMarkdown(r),l&&l.range.start.line>s.range.start.line&&(t+=`
|
|
`)}return t}},LPr=class{static{i(this,"JSDocLineImpl")}static{J(this,"JSDocLineImpl")}constructor(r,t){this.text=r,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};i(Ust,"fillNewlines");J(Ust,"fillNewlines");Boi=class{static{i(this,"JSDocDocumentationProvider")}static{J(this,"JSDocDocumentationProvider")}constructor(r){this.indexManager=r.shared.workspace.IndexManager,this.commentProvider=r.documentation.CommentProvider}getDocumentation(r){let t=this.commentProvider.getComment(r);if(t&&vPr(t))return bPr(t).toMarkdown({renderLink:J((s,l)=>this.documentationLinkRenderer(r,s,l),"renderLink"),renderTag:J(s=>this.documentationTagRenderer(r,s),"renderTag")})}documentationLinkRenderer(r,t,a){let s=this.findNameInLocalSymbols(r,t)??this.findNameInGlobalScope(r,t);if(s&&s.nameSegment){let l=s.nameSegment.range.start.line+1,h=s.nameSegment.range.start.character+1,f=s.documentUri.with({fragment:`L${l},${h}`});return`[${a}](${f.toString()})`}else return}documentationTagRenderer(r,t){}findNameInLocalSymbols(r,t){let s=US(r).localSymbols;if(!s)return;let l=r;do{let f=s.getStream(l).find(d=>d.name===t);if(f)return f;l=l.$container}while(l)}findNameInGlobalScope(r,t){return this.indexManager.allElements().find(s=>s.name===t)}},Foi=class{static{i(this,"DefaultCommentProvider")}static{J(this,"DefaultCommentProvider")}constructor(r){this.grammarConfig=()=>r.parser.GrammarConfig}getComment(r){return pPr(r)?r.$comment:dDr(r.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},$oi=class{static{i(this,"DefaultAsyncParser")}static{J(this,"DefaultAsyncParser")}constructor(r){this.syncParser=r.parser.LangiumParser}parse(r,t){return Promise.resolve(this.syncParser.parse(r))}};(function(r){r[r.Normal=0]="Normal",r[r.Immediate=1]="Immediate"})(e4e||(e4e={}));Goi=class{static{i(this,"DefaultWorkspaceLock")}static{J(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new $d.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.immediateReads=[],this.done=!0}write(r){this.cancelWrite();let t=cPr();return this.previousTokenSource=t,this.enqueue(this.writeQueue,r,t.token)}read(r,t=e4e.Normal){if(t===e4e.Immediate){let a=Promise.resolve().then(()=>r());this.immediateReads.push(a);let s=J(()=>{this.immediateReads.splice(this.immediateReads.indexOf(a),1)},"remove");return a.then(s,s),a}return this.enqueue(this.readQueue,r)}enqueue(r,t,a=$d.CancellationToken.None){let s=new qlt,l={action:t,deferred:s,cancellationToken:a};return r.push(l),this.performNextOperation(),s.promise}async performNextOperation(){if(!this.done)return;let r=[];if(this.writeQueue.length>0)for(r.push(this.writeQueue.shift()),this.done=!1;this.immediateReads.length>0;)await Promise.allSettled(this.immediateReads.slice());else if(this.readQueue.length>0)r.push(...this.readQueue.splice(0,this.readQueue.length)),this.done=!1;else return;await Promise.all(r.map(async({action:t,deferred:a,cancellationToken:s})=>{try{let l=await Promise.resolve().then(()=>t(s));a.resolve(l)}catch(l){Dae(l)?a.resolve(void 0):a.reject(l)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},joi=class{static{i(this,"DefaultHydrator")}static{J(this,"DefaultHydrator")}constructor(r){this.grammarElementIdMap=new a_r,this.tokenTypeIdMap=new a_r,this.cstNodeBuilder=new $Or,this.grammar=r.Grammar,this.lexer=r.parser.Lexer,this.linker=r.references.Linker}dehydrate(r){return{lexerErrors:r.lexerErrors,lexerReport:r.lexerReport?this.dehydrateLexerReport(r.lexerReport):void 0,parserErrors:r.parserErrors.map(t=>({...t,message:t.message})),value:this.dehydrateAstNode(r.value,this.createDehyrationContext(r.value))}}dehydrateLexerReport(r){return r}createDehyrationContext(r){let t=new Map,a=new Map;for(let s of VS(r))t.set(s,{});if(r.$cstNode)for(let s of F3e(r.$cstNode))a.set(s,{});return{astNodes:t,cstNodes:a}}dehydrateAstNode(r,t){let a=t.astNodes.get(r);a.$type=r.$type,a.$containerIndex=r.$containerIndex,a.$containerProperty=r.$containerProperty,r.$cstNode!==void 0&&(a.$cstNode=this.dehydrateCstNode(r.$cstNode,t));for(let[s,l]of Object.entries(r))if(!s.startsWith("$"))if(Array.isArray(l)){let h=[];a[s]=h;for(let f of l)Lm(f)?h.push(this.dehydrateAstNode(f,t)):ok(f)?h.push(this.dehydrateReference(f,t)):h.push(f)}else Lm(l)?a[s]=this.dehydrateAstNode(l,t):ok(l)?a[s]=this.dehydrateReference(l,t):l!==void 0&&(a[s]=l);return a}dehydrateReference(r,t){let a={};return a.$refText=r.$refText,r.$refNode&&(a.$refNode=t.cstNodes.get(r.$refNode)),a}dehydrateCstNode(r,t){let a=t.cstNodes.get(r);if(Hot(r)?a.fullText=r.fullText:a.grammarSource=this.getGrammarElementId(r.grammarSource),a.hidden=r.hidden,KV(r))a.content=r.content.map(s=>this.dehydrateCstNode(s,t));else if(Wot(r)){a.tokenType=r.tokenType.name,a.offset=r.offset,a.length=r.length;let{start:s,end:l}=r.range;a.startLine=s.line,a.startColumn=s.character,a.endLine=l.line,a.endColumn=l.character}return a}hydrate(r){let t=r.value,a=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,a),{lexerErrors:r.lexerErrors,lexerReport:r.lexerReport,parserErrors:r.parserErrors,value:this.hydrateAstNode(t,a)}}createHydrationContext(r){let t=new Map,a=new Map;for(let s of VS(r))t.set(s,{});if(r.$cstNode)for(let s of F3e(r.$cstNode)){let l;"fullText"in s?l=new zOr(s.fullText):"content"in s?l=new Ult:"tokenType"in s&&(l=this.hydrateCstLeafNode(s)),l&&a.set(s,l)}return{astNodes:t,cstNodes:a,linkedCstNodes:new Set}}hydrateAstNode(r,t){let a=t.astNodes.get(r);if(a.$type=r.$type,a.$containerIndex=r.$containerIndex,a.$containerProperty=r.$containerProperty,r.$cstNode){let s=t.cstNodes.get(r.$cstNode);a.$cstNode=s,s&&!t.linkedCstNodes.has(s)&&(t.linkedCstNodes.add(s),s.astNode=a)}for(let[s,l]of Object.entries(r))if(!s.startsWith("$"))if(Array.isArray(l)){let h=[];a[s]=h;for(let f of l)Lm(f)?h.push(this.setParent(this.hydrateAstNode(f,t),a)):ok(f)?h.push(this.hydrateReference(f,a,s,t)):h.push(f)}else Lm(l)?a[s]=this.setParent(this.hydrateAstNode(l,t),a):ok(l)?a[s]=this.hydrateReference(l,a,s,t):l!==void 0&&(a[s]=l);return a}setParent(r,t){return r.$container=t,r}hydrateReference(r,t,a,s){return this.linker.buildReference(t,a,s.cstNodes.get(r.$refNode),r.$refText)}hydrateCstNode(r,t,a=0){let s=t.cstNodes.get(r);if(typeof r.grammarSource=="number"&&(s.grammarSource=this.getGrammarElement(r.grammarSource)),KV(s)){let l=[];for(let h of r.content)l.push(this.hydrateCstNode(h,t,a++));this.cstNodeBuilder.appendChildren(s,l)}return s}hydrateCstLeafNode(r){let t=this.getTokenType(r.tokenType);return new jOr(r.offset,r.length,r.startLine,r.startColumn,r.endLine,r.endColumn,t,r.hidden)}getTokenType(r){return this.lexer.definition[r]}getGrammarElementId(r){if(r)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(r)}getGrammarElement(r){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(r)}createGrammarElementIdMap(){let r=0;for(let t of VS(this.grammar))V_r(t)&&this.grammarElementIdMap.set(t,r++)}};i(hu,"createDefaultCoreModule");J(hu,"createDefaultCoreModule");i(fu,"createDefaultSharedCoreModule");J(fu,"createDefaultSharedCoreModule");(function(r){r.merge=(t,a)=>eW(eW({},t),a)})(c_r||(c_r={}));i(_o,"inject");J(_o,"inject");zoi=Symbol("isProxy");i(tct,"_inject");J(tct,"_inject");u_r=Symbol();i(Vst,"_resolve");J(Vst,"_resolve");i(eW,"_merge");J(eW,"_merge");Uoi=class{static{i(this,"EmptyFileSystemProvider")}static{J(this,"EmptyFileSystemProvider")}stat(r){throw new Error("No file system is available.")}statSync(r){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},Lu={fileSystemProvider:J(()=>new Uoi,"fileSystemProvider")},Voi={Grammar:J(()=>{},"Grammar"),LanguageMetaData:J(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Woi={AstReflection:J(()=>new lDr,"AstReflection")};i(_Pr,"createMinimalGrammarServices");J(_Pr,"createMinimalGrammarServices");i(Cy,"loadGrammarFromJson");J(Cy,"loadGrammarFromJson");(r=>{r.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/}})(Wst||(Wst={}));(r=>{r.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Hst||(Hst={}));(r=>{r.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(qst||(qst={}));(r=>{r.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(Yst||(Yst={}));(r=>{r.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Xst||(Xst={}));(r=>{r.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Kst||(Kst={}));(r=>{r.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Jst||(Jst={}));(r=>{r.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Qst||(Qst={}));(r=>{r.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})(Zst||(Zst={}));(r=>{r.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(eot||(eot={}));(r=>{r.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(tot||(tot={}));(r=>{r.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(rot||(rot={}));(r=>{r.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(not||(not={}));(r=>{r.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(iot||(iot={}));(r=>{r.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(aot||(aot={}));gXa={...Wst.Terminals,...Hst.Terminals,...qst.Terminals,...Yst.Terminals,...Xst.Terminals,...Kst.Terminals,...Jst.Terminals,...Qst.Terminals,...Zst.Terminals,...eot.Terminals,...tot.Terminals,...rot.Terminals,...iot.Terminals,...not.Terminals,...aot.Terminals},sot={$type:"AbnfAlternation",alternatives:"alternatives"},oot={$type:"AbnfConcatenation",elements:"elements"},A3e={$type:"AbnfElement",primary:"primary",repeat:"repeat"},lot={$type:"AbnfGroup",element:"element"},cot={$type:"AbnfNumVal",value:"value"},uot={$type:"AbnfOptionalGroup",element:"element"},GP={$type:"AbnfPrimary"},R3e={$type:"AbnfRule",definition:"definition",name:"name"},hot={$type:"AbnfRuleName",name:"name"},fot={$type:"AbnfStringLiteral",value:"value"},Gke={$type:"Accelerator",name:"name",x:"x",y:"y"},$it={$type:"Alignment",direction:"direction",members:"members"},jke={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},Iie={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},Git={$type:"Annotations",x:"x",y:"y"},K4={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",alignments:"alignments",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};i(DPr,"isArchitecture");J(DPr,"isArchitecture");zke={$type:"Axis",label:"label",name:"name"},iae={$type:"Branch",name:"name",order:"order"};i(IPr,"isBranch");J(IPr,"isBranch");h_r={$type:"Checkout",branch:"branch"},Uke={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},jit={$type:"ClassDefStatement",className:"className",styleText:"styleText"},VP={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};i(MPr,"isCommit");J(MPr,"isCommit");Vke={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},LP={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},Wke={$type:"Curve",entries:"entries",label:"label",name:"name"},mD={$type:"Cynefin",accDescr:"accDescr",accTitle:"accTitle",domains:"domains",title:"title",transitions:"transitions"};i(NPr,"isCynefin");J(NPr,"isCynefin");Hke={$type:"Deaccelerator",name:"name",x:"x",y:"y"},f_r={$type:"Decorator",strategy:"strategy"},EV={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},aae={$type:"DomainBlock",domain:"domain",items:"items"};i(OPr,"isDomainBlock");J(OPr,"isDomainBlock");t4e={$type:"DomainItem",label:"label"};i(PPr,"isDomainItem");J(PPr,"isDomainItem");dot={$type:"EbnfChoice",alternatives:"alternatives"},pot={$type:"EbnfExceptionPostfix",except:"except"},got={$type:"EbnfGroup",element:"element"},mot={$type:"EbnfNonTerminal",name:"name"},yot={$type:"EbnfOneOrMorePostfix",operator:"operator"},bot={$type:"EbnfOptional",element:"element"},vot={$type:"EbnfOptionalPostfix",operator:"operator"},GV={$type:"EbnfPostfix"},dD={$type:"EbnfPrimary"},wot={$type:"EbnfRepetition",element:"element"},L3e={$type:"EbnfRule",definition:"definition",name:"name"},xot={$type:"EbnfSequence",elements:"elements"},Tot={$type:"EbnfSpecial",text:"text"},_3e={$type:"EbnfTerm",base:"base",postfixes:"postfixes"},kot={$type:"EbnfTerminal",value:"value"},Cot={$type:"EbnfZeroOrMorePostfix",operator:"operator"},FS={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},jP={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},pD={$type:"EmFrame"},Mie={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},d_r={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},zit={$type:"EmModelEntity",name:"name"};i(BPr,"isEmModelEntityType");J(BPr,"isEmModelEntityType");qke={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},a8={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};i(N4e,"isEmResetFrame");J(N4e,"isEmResetFrame");cD={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},Uit={$type:"Entry",axis:"axis",value:"value"},jS={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},p_r={$type:"Evolution",stages:"stages"},Yke={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},Vit={$type:"Evolve",component:"component",target:"target"},yD={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};i(FPr,"isGitGraph");J(FPr,"isGitGraph");Nie={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},qV={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};i($Pr,"isInfo");J($Pr,"isInfo");Oie={$type:"Item",classSelector:"classSelector",name:"name"},Wit={$type:"Junction",id:"id",in:"in"},Pie={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},Xke={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},_P={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},WP={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};i(GPr,"isMerge");J(GPr,"isMerge");Kke={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},Hit={$type:"Option",name:"name",value:"value"},HP={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};i(jPr,"isPacket");J(jPr,"isPacket");qP={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};i(zPr,"isPacketBlock");J(zPr,"isPacketBlock");Eot={$type:"PegAny",dot:"dot"},Sot={$type:"PegGroup",element:"element"},Aot={$type:"PegIdentifier",name:"name"},Rot={$type:"PegLiteral",value:"value"},Lot={$type:"PegOrderedChoice",alternatives:"alternatives"},D3e={$type:"PegPrefix",operator:"operator",suffix:"suffix"},jV={$type:"PegPrimary"},I3e={$type:"PegRule",definition:"definition",name:"name"},_ot={$type:"PegSequence",elements:"elements"},M3e={$type:"PegSuffix",operator:"operator",primary:"primary"},bD={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};i(UPr,"isPie");J(UPr,"isPie");sae={$type:"PieSection",label:"label",value:"value"};i(VPr,"isPieSection");J(VPr,"isPieSection");qit={$type:"Pipeline",components:"components",parent:"parent"},Jke={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},gD={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},YP={$type:"Railroad",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};i(WPr,"isRailroad");J(WPr,"isRailroad");XP={$type:"RailroadAbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};i(HPr,"isRailroadAbnf");J(HPr,"isRailroadAbnf");Dot={$type:"RailroadChoiceExpr",alternatives:"alternatives"},KP={$type:"RailroadEbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};i(qPr,"isRailroadEbnf");J(qPr,"isRailroadEbnf");zS={$type:"RailroadExpression"},Iot={$type:"RailroadNonTerminalExpr",name:"name"},Mot={$type:"RailroadOneOrMoreExpr",element:"element"},Not={$type:"RailroadOptionalExpr",element:"element"},JP={$type:"RailroadPeg",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};i(YPr,"isRailroadPeg");J(YPr,"isRailroadPeg");N3e={$type:"RailroadRule",definition:"definition",name:"name"},Oot={$type:"RailroadSequenceExpr",elements:"elements"},Pot={$type:"RailroadSpecialExpr",text:"text"},Bot={$type:"RailroadTerminalExpr",value:"value"},Fot={$type:"RailroadZeroOrMoreExpr",element:"element"},Yit={$type:"Section",classSelector:"classSelector",name:"name"},SV={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},Xit={$type:"Size",height:"height",width:"width"},zP={$type:"Statement"},YV={$type:"Transition",from:"from",label:"label",to:"to"};i(XPr,"isTransition");J(XPr,"isTransition");QP={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};i(KPr,"isTreemap");J(KPr,"isTreemap");Kit={$type:"TreemapRow",indent:"indent",item:"item"},UP={$type:"TreeNode",classAnnotation:"classAnnotation",descAnnotation:"descAnnotation",iconAnnotation:"iconAnnotation",indent:"indent",name:"name"},zV={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Rm={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};i(JPr,"isWardley");J(JPr,"isWardley");QPr=class extends G_r{static{i(this,"MermaidAstReflection")}constructor(){super(...arguments),this.types={AbnfAlternation:{name:sot.$type,properties:{alternatives:{name:sot.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:oot.$type,properties:{elements:{name:oot.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:A3e.$type,properties:{primary:{name:A3e.primary},repeat:{name:A3e.repeat,optional:!0}},superTypes:[]},AbnfGroup:{name:lot.$type,properties:{element:{name:lot.element}},superTypes:[GP.$type]},AbnfNumVal:{name:cot.$type,properties:{value:{name:cot.value}},superTypes:[GP.$type]},AbnfOptionalGroup:{name:uot.$type,properties:{element:{name:uot.element}},superTypes:[GP.$type]},AbnfPrimary:{name:GP.$type,properties:{},superTypes:[]},AbnfRule:{name:R3e.$type,properties:{definition:{name:R3e.definition},name:{name:R3e.name}},superTypes:[]},AbnfRuleName:{name:hot.$type,properties:{name:{name:hot.name}},superTypes:[GP.$type]},AbnfStringLiteral:{name:fot.$type,properties:{value:{name:fot.value}},superTypes:[GP.$type]},Accelerator:{name:Gke.$type,properties:{name:{name:Gke.name},x:{name:Gke.x},y:{name:Gke.y}},superTypes:[]},Alignment:{name:$it.$type,properties:{direction:{name:$it.direction},members:{name:$it.members,defaultValue:[]}},superTypes:[]},Anchor:{name:jke.$type,properties:{evolution:{name:jke.evolution},name:{name:jke.name},visibility:{name:jke.visibility}},superTypes:[]},Annotation:{name:Iie.$type,properties:{number:{name:Iie.number},text:{name:Iie.text},x:{name:Iie.x},y:{name:Iie.y}},superTypes:[]},Annotations:{name:Git.$type,properties:{x:{name:Git.x},y:{name:Git.y}},superTypes:[]},Architecture:{name:K4.$type,properties:{accDescr:{name:K4.accDescr,optional:!0},accTitle:{name:K4.accTitle,optional:!0},alignments:{name:K4.alignments,defaultValue:[],optional:!0},edges:{name:K4.edges,defaultValue:[],optional:!0},groups:{name:K4.groups,defaultValue:[],optional:!0},junctions:{name:K4.junctions,defaultValue:[],optional:!0},services:{name:K4.services,defaultValue:[],optional:!0},title:{name:K4.title,optional:!0}},superTypes:[]},Axis:{name:zke.$type,properties:{label:{name:zke.label,optional:!0},name:{name:zke.name}},superTypes:[]},Branch:{name:iae.$type,properties:{name:{name:iae.name},order:{name:iae.order}},superTypes:[zP.$type]},Checkout:{name:h_r.$type,properties:{branch:{name:h_r.branch}},superTypes:[zP.$type]},CherryPicking:{name:Uke.$type,properties:{id:{name:Uke.id},parent:{name:Uke.parent},tags:{name:Uke.tags,defaultValue:[]}},superTypes:[zP.$type]},ClassDefStatement:{name:jit.$type,properties:{className:{name:jit.className},styleText:{name:jit.styleText}},superTypes:[]},Commit:{name:VP.$type,properties:{id:{name:VP.id},message:{name:VP.message},tags:{name:VP.tags,defaultValue:[]},type:{name:VP.type}},superTypes:[zP.$type]},Common:{name:Vke.$type,properties:{accDescr:{name:Vke.accDescr,optional:!0},accTitle:{name:Vke.accTitle,optional:!0},title:{name:Vke.title,optional:!0}},superTypes:[]},Component:{name:LP.$type,properties:{decorator:{name:LP.decorator,optional:!0},evolution:{name:LP.evolution},inertia:{name:LP.inertia,defaultValue:!1},label:{name:LP.label,optional:!0},name:{name:LP.name},visibility:{name:LP.visibility}},superTypes:[]},Curve:{name:Wke.$type,properties:{entries:{name:Wke.entries,defaultValue:[]},label:{name:Wke.label,optional:!0},name:{name:Wke.name}},superTypes:[]},Cynefin:{name:mD.$type,properties:{accDescr:{name:mD.accDescr,optional:!0},accTitle:{name:mD.accTitle,optional:!0},domains:{name:mD.domains,defaultValue:[],optional:!0},title:{name:mD.title,optional:!0},transitions:{name:mD.transitions,defaultValue:[],optional:!0}},superTypes:[]},Deaccelerator:{name:Hke.$type,properties:{name:{name:Hke.name},x:{name:Hke.x},y:{name:Hke.y}},superTypes:[]},Decorator:{name:f_r.$type,properties:{strategy:{name:f_r.strategy}},superTypes:[]},Direction:{name:EV.$type,properties:{accDescr:{name:EV.accDescr},accTitle:{name:EV.accTitle},dir:{name:EV.dir},statements:{name:EV.statements,defaultValue:[]},title:{name:EV.title}},superTypes:[yD.$type]},DomainBlock:{name:aae.$type,properties:{domain:{name:aae.domain},items:{name:aae.items,defaultValue:[],optional:!0}},superTypes:[]},DomainItem:{name:t4e.$type,properties:{label:{name:t4e.label}},superTypes:[]},EbnfChoice:{name:dot.$type,properties:{alternatives:{name:dot.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:pot.$type,properties:{except:{name:pot.except}},superTypes:[GV.$type]},EbnfGroup:{name:got.$type,properties:{element:{name:got.element}},superTypes:[dD.$type]},EbnfNonTerminal:{name:mot.$type,properties:{name:{name:mot.name}},superTypes:[dD.$type]},EbnfOneOrMorePostfix:{name:yot.$type,properties:{operator:{name:yot.operator}},superTypes:[GV.$type]},EbnfOptional:{name:bot.$type,properties:{element:{name:bot.element}},superTypes:[dD.$type]},EbnfOptionalPostfix:{name:vot.$type,properties:{operator:{name:vot.operator}},superTypes:[GV.$type]},EbnfPostfix:{name:GV.$type,properties:{},superTypes:[]},EbnfPrimary:{name:dD.$type,properties:{},superTypes:[]},EbnfRepetition:{name:wot.$type,properties:{element:{name:wot.element}},superTypes:[dD.$type]},EbnfRule:{name:L3e.$type,properties:{definition:{name:L3e.definition},name:{name:L3e.name}},superTypes:[]},EbnfSequence:{name:xot.$type,properties:{elements:{name:xot.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:Tot.$type,properties:{text:{name:Tot.text}},superTypes:[dD.$type]},EbnfTerm:{name:_3e.$type,properties:{base:{name:_3e.base},postfixes:{name:_3e.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:kot.$type,properties:{value:{name:kot.value}},superTypes:[dD.$type]},EbnfZeroOrMorePostfix:{name:Cot.$type,properties:{operator:{name:Cot.operator}},superTypes:[GV.$type]},Edge:{name:FS.$type,properties:{lhsDir:{name:FS.lhsDir},lhsGroup:{name:FS.lhsGroup,defaultValue:!1,optional:!0},lhsId:{name:FS.lhsId},lhsInto:{name:FS.lhsInto,defaultValue:!1,optional:!0},rhsDir:{name:FS.rhsDir},rhsGroup:{name:FS.rhsGroup,defaultValue:!1,optional:!0},rhsId:{name:FS.rhsId},rhsInto:{name:FS.rhsInto,defaultValue:!1,optional:!0},title:{name:FS.title,optional:!0}},superTypes:[]},EmDataEntity:{name:jP.$type,properties:{dataBlockValue:{name:jP.dataBlockValue},dataType:{name:jP.dataType,optional:!0},name:{name:jP.name}},superTypes:[]},EmFrame:{name:pD.$type,properties:{},superTypes:[]},EmGwt:{name:Mie.$type,properties:{givenStatements:{name:Mie.givenStatements,defaultValue:[]},sourceFrame:{name:Mie.sourceFrame,referenceType:pD.$type},thenStatements:{name:Mie.thenStatements,defaultValue:[]},whenStatements:{name:Mie.whenStatements,defaultValue:[],optional:!0}},superTypes:[]},EmGwtStatement:{name:d_r.$type,properties:{entityIdentifier:{name:d_r.entityIdentifier,referenceType:zit.$type}},superTypes:[]},EmModelEntity:{name:zit.$type,properties:{name:{name:zit.name}},superTypes:[]},EmNoteEntity:{name:qke.$type,properties:{dataBlockValue:{name:qke.dataBlockValue},dataType:{name:qke.dataType,optional:!0},sourceFrame:{name:qke.sourceFrame,referenceType:pD.$type}},superTypes:[]},EmResetFrame:{name:a8.$type,properties:{dataInlineValue:{name:a8.dataInlineValue,optional:!0},dataReference:{name:a8.dataReference,referenceType:jP.$type,optional:!0},dataType:{name:a8.dataType,optional:!0},entityIdentifier:{name:a8.entityIdentifier},modelEntityType:{name:a8.modelEntityType},name:{name:a8.name},sourceFrames:{name:a8.sourceFrames,defaultValue:[],referenceType:pD.$type,optional:!0}},superTypes:[pD.$type]},EmTimeFrame:{name:cD.$type,properties:{dataInlineValue:{name:cD.dataInlineValue,optional:!0},dataReference:{name:cD.dataReference,referenceType:jP.$type,optional:!0},dataType:{name:cD.dataType,optional:!0},entityIdentifier:{name:cD.entityIdentifier},modelEntityType:{name:cD.modelEntityType},name:{name:cD.name},sourceFrames:{name:cD.sourceFrames,defaultValue:[],referenceType:pD.$type,optional:!0}},superTypes:[pD.$type]},Entry:{name:Uit.$type,properties:{axis:{name:Uit.axis,referenceType:zke.$type,optional:!0},value:{name:Uit.value}},superTypes:[]},EventModel:{name:jS.$type,properties:{accDescr:{name:jS.accDescr,optional:!0},accTitle:{name:jS.accTitle,optional:!0},dataEntities:{name:jS.dataEntities,defaultValue:[],optional:!0},frames:{name:jS.frames,defaultValue:[],optional:!0},gwtEntities:{name:jS.gwtEntities,defaultValue:[],optional:!0},modelEntities:{name:jS.modelEntities,defaultValue:[],optional:!0},noteEntities:{name:jS.noteEntities,defaultValue:[],optional:!0},title:{name:jS.title,optional:!0}},superTypes:[]},Evolution:{name:p_r.$type,properties:{stages:{name:p_r.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:Yke.$type,properties:{boundary:{name:Yke.boundary,optional:!0},name:{name:Yke.name},secondName:{name:Yke.secondName,optional:!0}},superTypes:[]},Evolve:{name:Vit.$type,properties:{component:{name:Vit.component},target:{name:Vit.target}},superTypes:[]},GitGraph:{name:yD.$type,properties:{accDescr:{name:yD.accDescr},accTitle:{name:yD.accTitle},statements:{name:yD.statements,defaultValue:[]},title:{name:yD.title}},superTypes:[]},Group:{name:Nie.$type,properties:{icon:{name:Nie.icon,optional:!0},id:{name:Nie.id},in:{name:Nie.in},title:{name:Nie.title,optional:!0}},superTypes:[]},Info:{name:qV.$type,properties:{accDescr:{name:qV.accDescr,optional:!0},accTitle:{name:qV.accTitle,optional:!0},title:{name:qV.title,optional:!0}},superTypes:[]},Item:{name:Oie.$type,properties:{classSelector:{name:Oie.classSelector,optional:!0},name:{name:Oie.name}},superTypes:[]},Junction:{name:Wit.$type,properties:{id:{name:Wit.id},in:{name:Wit.in}},superTypes:[]},Label:{name:Pie.$type,properties:{negX:{name:Pie.negX,defaultValue:!1,optional:!0},negY:{name:Pie.negY,defaultValue:!1,optional:!0},offsetX:{name:Pie.offsetX},offsetY:{name:Pie.offsetY}},superTypes:[]},Leaf:{name:Xke.$type,properties:{classSelector:{name:Xke.classSelector,optional:!0},name:{name:Xke.name},value:{name:Xke.value}},superTypes:[Oie.$type]},Link:{name:_P.$type,properties:{arrow:{name:_P.arrow,optional:!0},from:{name:_P.from},fromPort:{name:_P.fromPort,optional:!0},linkLabel:{name:_P.linkLabel,optional:!0},to:{name:_P.to},toPort:{name:_P.toPort,optional:!0}},superTypes:[]},Merge:{name:WP.$type,properties:{branch:{name:WP.branch},id:{name:WP.id},tags:{name:WP.tags,defaultValue:[]},type:{name:WP.type}},superTypes:[zP.$type]},Note:{name:Kke.$type,properties:{evolution:{name:Kke.evolution},text:{name:Kke.text},visibility:{name:Kke.visibility}},superTypes:[]},Option:{name:Hit.$type,properties:{name:{name:Hit.name},value:{name:Hit.value,defaultValue:!1}},superTypes:[]},Packet:{name:HP.$type,properties:{accDescr:{name:HP.accDescr,optional:!0},accTitle:{name:HP.accTitle,optional:!0},blocks:{name:HP.blocks,defaultValue:[],optional:!0},title:{name:HP.title,optional:!0}},superTypes:[]},PacketBlock:{name:qP.$type,properties:{bits:{name:qP.bits},end:{name:qP.end,optional:!0},label:{name:qP.label},start:{name:qP.start}},superTypes:[]},PegAny:{name:Eot.$type,properties:{dot:{name:Eot.dot}},superTypes:[jV.$type]},PegGroup:{name:Sot.$type,properties:{element:{name:Sot.element}},superTypes:[jV.$type]},PegIdentifier:{name:Aot.$type,properties:{name:{name:Aot.name}},superTypes:[jV.$type]},PegLiteral:{name:Rot.$type,properties:{value:{name:Rot.value}},superTypes:[jV.$type]},PegOrderedChoice:{name:Lot.$type,properties:{alternatives:{name:Lot.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:D3e.$type,properties:{operator:{name:D3e.operator,optional:!0},suffix:{name:D3e.suffix}},superTypes:[]},PegPrimary:{name:jV.$type,properties:{},superTypes:[]},PegRule:{name:I3e.$type,properties:{definition:{name:I3e.definition},name:{name:I3e.name}},superTypes:[]},PegSequence:{name:_ot.$type,properties:{elements:{name:_ot.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:M3e.$type,properties:{operator:{name:M3e.operator,optional:!0},primary:{name:M3e.primary}},superTypes:[]},Pie:{name:bD.$type,properties:{accDescr:{name:bD.accDescr,optional:!0},accTitle:{name:bD.accTitle,optional:!0},sections:{name:bD.sections,defaultValue:[],optional:!0},showData:{name:bD.showData,defaultValue:!1,optional:!0},title:{name:bD.title,optional:!0}},superTypes:[]},PieSection:{name:sae.$type,properties:{label:{name:sae.label},value:{name:sae.value}},superTypes:[]},Pipeline:{name:qit.$type,properties:{components:{name:qit.components,defaultValue:[]},parent:{name:qit.parent}},superTypes:[]},PipelineComponent:{name:Jke.$type,properties:{evolution:{name:Jke.evolution},label:{name:Jke.label,optional:!0},name:{name:Jke.name}},superTypes:[]},Radar:{name:gD.$type,properties:{accDescr:{name:gD.accDescr,optional:!0},accTitle:{name:gD.accTitle,optional:!0},axes:{name:gD.axes,defaultValue:[],optional:!0},curves:{name:gD.curves,defaultValue:[],optional:!0},options:{name:gD.options,defaultValue:[],optional:!0},title:{name:gD.title,optional:!0}},superTypes:[]},Railroad:{name:YP.$type,properties:{accDescr:{name:YP.accDescr,optional:!0},accTitle:{name:YP.accTitle,optional:!0},rules:{name:YP.rules,defaultValue:[]},title:{name:YP.title,optional:!0}},superTypes:[]},RailroadAbnf:{name:XP.$type,properties:{accDescr:{name:XP.accDescr,optional:!0},accTitle:{name:XP.accTitle,optional:!0},rules:{name:XP.rules,defaultValue:[]},title:{name:XP.title,optional:!0}},superTypes:[]},RailroadChoiceExpr:{name:Dot.$type,properties:{alternatives:{name:Dot.alternatives,defaultValue:[]}},superTypes:[zS.$type]},RailroadEbnf:{name:KP.$type,properties:{accDescr:{name:KP.accDescr,optional:!0},accTitle:{name:KP.accTitle,optional:!0},rules:{name:KP.rules,defaultValue:[]},title:{name:KP.title,optional:!0}},superTypes:[]},RailroadExpression:{name:zS.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:Iot.$type,properties:{name:{name:Iot.name}},superTypes:[zS.$type]},RailroadOneOrMoreExpr:{name:Mot.$type,properties:{element:{name:Mot.element}},superTypes:[zS.$type]},RailroadOptionalExpr:{name:Not.$type,properties:{element:{name:Not.element}},superTypes:[zS.$type]},RailroadPeg:{name:JP.$type,properties:{accDescr:{name:JP.accDescr,optional:!0},accTitle:{name:JP.accTitle,optional:!0},rules:{name:JP.rules,defaultValue:[]},title:{name:JP.title,optional:!0}},superTypes:[]},RailroadRule:{name:N3e.$type,properties:{definition:{name:N3e.definition},name:{name:N3e.name}},superTypes:[]},RailroadSequenceExpr:{name:Oot.$type,properties:{elements:{name:Oot.elements,defaultValue:[]}},superTypes:[zS.$type]},RailroadSpecialExpr:{name:Pot.$type,properties:{text:{name:Pot.text}},superTypes:[zS.$type]},RailroadTerminalExpr:{name:Bot.$type,properties:{value:{name:Bot.value}},superTypes:[zS.$type]},RailroadZeroOrMoreExpr:{name:Fot.$type,properties:{element:{name:Fot.element}},superTypes:[zS.$type]},Section:{name:Yit.$type,properties:{classSelector:{name:Yit.classSelector,optional:!0},name:{name:Yit.name}},superTypes:[Oie.$type]},Service:{name:SV.$type,properties:{icon:{name:SV.icon,optional:!0},iconText:{name:SV.iconText,optional:!0},id:{name:SV.id},in:{name:SV.in},title:{name:SV.title,optional:!0}},superTypes:[]},Size:{name:Xit.$type,properties:{height:{name:Xit.height},width:{name:Xit.width}},superTypes:[]},Statement:{name:zP.$type,properties:{},superTypes:[]},Transition:{name:YV.$type,properties:{from:{name:YV.from},label:{name:YV.label},to:{name:YV.to}},superTypes:[]},TreeNode:{name:UP.$type,properties:{classAnnotation:{name:UP.classAnnotation,optional:!0},descAnnotation:{name:UP.descAnnotation,optional:!0},iconAnnotation:{name:UP.iconAnnotation,optional:!0},indent:{name:UP.indent,optional:!0},name:{name:UP.name}},superTypes:[]},TreeView:{name:zV.$type,properties:{accDescr:{name:zV.accDescr,optional:!0},accTitle:{name:zV.accTitle,optional:!0},nodes:{name:zV.nodes,defaultValue:[]},title:{name:zV.title,optional:!0}},superTypes:[]},Treemap:{name:QP.$type,properties:{accDescr:{name:QP.accDescr,optional:!0},accTitle:{name:QP.accTitle,optional:!0},title:{name:QP.title,optional:!0},TreemapRows:{name:QP.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:Kit.$type,properties:{indent:{name:Kit.indent,optional:!0},item:{name:Kit.item}},superTypes:[]},Wardley:{name:Rm.$type,properties:{accDescr:{name:Rm.accDescr,optional:!0},accelerators:{name:Rm.accelerators,defaultValue:[],optional:!0},accTitle:{name:Rm.accTitle,optional:!0},anchors:{name:Rm.anchors,defaultValue:[],optional:!0},annotation:{name:Rm.annotation,defaultValue:[],optional:!0},annotations:{name:Rm.annotations,defaultValue:[],optional:!0},components:{name:Rm.components,defaultValue:[],optional:!0},deaccelerators:{name:Rm.deaccelerators,defaultValue:[],optional:!0},evolution:{name:Rm.evolution,optional:!0},evolves:{name:Rm.evolves,defaultValue:[],optional:!0},links:{name:Rm.links,defaultValue:[],optional:!0},notes:{name:Rm.notes,defaultValue:[],optional:!0},pipelines:{name:Rm.pipelines,defaultValue:[],optional:!0},size:{name:Rm.size,optional:!0},title:{name:Rm.title,optional:!0}},superTypes:[]}}}static{J(this,"MermaidAstReflection")}},sg=new QPr,Hoi=J(()=>g_r??(g_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),qoi=J(()=>m_r??(m_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"CynefinGrammarGrammar"),Yoi=J(()=>y_r??(y_r=Cy('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),Xoi=J(()=>b_r??(b_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),Koi=J(()=>v_r??(v_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),Joi=J(()=>w_r??(w_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),Qoi=J(()=>x_r??(x_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),Zoi=J(()=>T_r??(T_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),eli=J(()=>k_r??(k_r=Cy('{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadAbnfGrammarGrammar"),tli=J(()=>C_r??(C_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadEbnfGrammarGrammar"),rli=J(()=>E_r??(E_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadGrammarGrammar"),nli=J(()=>S_r??(S_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadPegGrammarGrammar"),ili=J(()=>A_r??(A_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),ali=J(()=>R_r??(R_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),sli=J(()=>L_r??(L_r=Cy(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),oli={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},lli={languageId:"cynefin",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},cli={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},uli={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},hli={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},fli={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},dli={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},pli={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},gli={languageId:"railroadAbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},mli={languageId:"railroadEbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},yli={languageId:"railroad",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},bli={languageId:"railroadPeg",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},vli={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},wli={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},xli={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},_u={AstReflection:J(()=>new QPr,"AstReflection")},rct={Grammar:J(()=>Hoi(),"Grammar"),LanguageMetaData:J(()=>oli,"LanguageMetaData"),parser:{}},nct={Grammar:J(()=>qoi(),"Grammar"),LanguageMetaData:J(()=>lli,"LanguageMetaData"),parser:{}},ict={Grammar:J(()=>Yoi(),"Grammar"),LanguageMetaData:J(()=>cli,"LanguageMetaData"),parser:{}},act={Grammar:J(()=>Xoi(),"Grammar"),LanguageMetaData:J(()=>uli,"LanguageMetaData"),parser:{}},sct={Grammar:J(()=>Koi(),"Grammar"),LanguageMetaData:J(()=>hli,"LanguageMetaData"),parser:{}},oct={Grammar:J(()=>Joi(),"Grammar"),LanguageMetaData:J(()=>fli,"LanguageMetaData"),parser:{}},lct={Grammar:J(()=>Qoi(),"Grammar"),LanguageMetaData:J(()=>dli,"LanguageMetaData"),parser:{}},cct={Grammar:J(()=>Zoi(),"Grammar"),LanguageMetaData:J(()=>pli,"LanguageMetaData"),parser:{}},uct={Grammar:J(()=>eli(),"Grammar"),LanguageMetaData:J(()=>gli,"LanguageMetaData"),parser:{}},hct={Grammar:J(()=>tli(),"Grammar"),LanguageMetaData:J(()=>mli,"LanguageMetaData"),parser:{}},fct={Grammar:J(()=>rli(),"Grammar"),LanguageMetaData:J(()=>yli,"LanguageMetaData"),parser:{}},dct={Grammar:J(()=>nli(),"Grammar"),LanguageMetaData:J(()=>bli,"LanguageMetaData"),parser:{}},pct={Grammar:J(()=>ili(),"Grammar"),LanguageMetaData:J(()=>vli,"LanguageMetaData"),parser:{}},gct={Grammar:J(()=>ali(),"Grammar"),LanguageMetaData:J(()=>wli,"LanguageMetaData"),parser:{}},mct={Grammar:J(()=>sli(),"Grammar"),LanguageMetaData:J(()=>xli,"LanguageMetaData"),parser:{}},Tli=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,kli=/accTitle[\t ]*:([^\n\r]*)/,Cli=/title([\t ][^\n\r]*|)/,Eli={ACC_DESCR:Tli,ACC_TITLE:kli,TITLE:Cli},Gg=class extends oPr{static{i(this,"AbstractMermaidValueConverter")}static{J(this,"AbstractMermaidValueConverter")}runConverter(r,t,a){let s=this.runCommonConverter(r,t,a);return s===void 0&&(s=this.runCustomConverter(r,t,a)),s===void 0?super.runConverter(r,t,a):s}runCommonConverter(r,t,a){let s=Eli[r.name];if(s===void 0)return;let l=s.exec(t);if(l!==null){if(l[1]!==void 0)return l[1].trim().replace(/[\t ]{2,}/gm," ");if(l[2]!==void 0)return l[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
|
|
`)}}},fx=class extends Gg{static{i(this,"CommonValueConverter")}static{J(this,"CommonValueConverter")}runCustomConverter(r,t,a){}},Vu=class extends sPr{static{i(this,"AbstractMermaidTokenBuilder")}static{J(this,"AbstractMermaidTokenBuilder")}constructor(r){super(),this.keywords=new Set(r)}buildKeywordTokens(r,t,a){let s=super.buildKeywordTokens(r,t,a);return s.forEach(l=>{this.keywords.has(l.name)&&l.PATTERN!==void 0&&(l.PATTERN=new RegExp(l.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),s}},Sli=class extends Vu{static{i(this,"CommonTokenBuilder")}static{J(this,"CommonTokenBuilder")}}});function P4e(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),cct,O4e);return t.ServiceRegistry.register(a),{shared:t,Radar:a}}var Ali,O4e,yct=ae(()=>{"use strict";du();Ali=class extends Vu{static{i(this,"RadarTokenBuilder")}static{J(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},O4e={parser:{TokenBuilder:J(()=>new Ali,"TokenBuilder"),ValueConverter:J(()=>new fx,"ValueConverter")}};i(P4e,"createRadarServices");J(P4e,"createRadarServices")});function dW(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),fct,B4e);return t.ServiceRegistry.register(a),{shared:t,Railroad:a}}var Rli,ZPr,Lli,B4e,bct=ae(()=>{"use strict";du();Rli=class extends Vu{static{i(this,"RailroadTokenBuilder")}static{J(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},ZPr=J(r=>{let t=r.slice(1,-1),a="";for(let s=0;s<t.length;s++){let l=t[s];if(l==="\\"&&s+1<t.length){s++;let h=t[s];switch(h){case"n":a+=`
|
|
`;break;case"r":a+="\r";break;case"t":a+=" ";break;default:a+=h}continue}a+=l}return a},"decodeEscapedString"),Lli=class extends Gg{static{i(this,"RailroadValueConverter")}static{J(this,"RailroadValueConverter")}runConverter(r,t,a){let s=super.runConverter(r,t,a);if(r.name==="TITLE"&&typeof s=="string"){let l=s.trim();if(l.startsWith('"')&&l.endsWith('"')||l.startsWith("'")&&l.endsWith("'"))return ZPr(l)}return s}runCustomConverter(r,t,a){if(r.name==="RR_STRING")return ZPr(t)}},B4e={parser:{TokenBuilder:J(()=>new Rli,"TokenBuilder"),ValueConverter:J(()=>new Lli,"ValueConverter")}};i(dW,"createRailroadServices");J(dW,"createRailroadServices")});function pW(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),hct,F4e);return t.ServiceRegistry.register(a),{shared:t,RailroadEbnf:a}}var _li,eBr,Dli,F4e,vct=ae(()=>{"use strict";du();_li=class extends Vu{static{i(this,"RailroadEbnfTokenBuilder")}static{J(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},eBr=J(r=>{let t=r.slice(1,-1),a="";for(let s=0;s<t.length;s++){let l=t[s];if(l==="\\"&&s+1<t.length){s++;let h=t[s];switch(h){case"n":a+=`
|
|
`;break;case"r":a+="\r";break;case"t":a+=" ";break;default:a+=h}continue}a+=l}return a},"decodeEscapedString"),Dli=class extends Gg{static{i(this,"RailroadEbnfValueConverter")}static{J(this,"RailroadEbnfValueConverter")}runConverter(r,t,a){let s=super.runConverter(r,t,a);if(r.name==="TITLE"&&typeof s=="string"){let l=s.trim();if(l.startsWith('"')&&l.endsWith('"')||l.startsWith("'")&&l.endsWith("'"))return eBr(l)}return s}runCustomConverter(r,t,a){if(r.name==="EBNF_STRING")return eBr(t);if(r.name==="EBNF_SPECIAL_SEQUENCE")return t.slice(1,-1).trim()}},F4e={parser:{TokenBuilder:J(()=>new _li,"TokenBuilder"),ValueConverter:J(()=>new Dli,"ValueConverter")}};i(pW,"createRailroadEbnfServices");J(pW,"createRailroadEbnfServices")});function gW(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),uct,$4e);return t.ServiceRegistry.register(a),{shared:t,RailroadAbnf:a}}var Ili,Mli,$4e,wct=ae(()=>{"use strict";du();Ili=class extends Vu{static{i(this,"RailroadAbnfTokenBuilder")}static{J(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},Mli=class extends Gg{static{i(this,"RailroadAbnfValueConverter")}static{J(this,"RailroadAbnfValueConverter")}runConverter(r,t,a){let s=super.runConverter(r,t,a);if(r.name==="TITLE"&&typeof s=="string"){let l=s.trim();if(l.startsWith('"')&&l.endsWith('"')||l.startsWith("'")&&l.endsWith("'"))return l.slice(1,-1)}return s}runCustomConverter(r,t,a){if(r.name==="ABNF_STRING")return t.slice(1,-1)}},$4e={parser:{TokenBuilder:J(()=>new Ili,"TokenBuilder"),ValueConverter:J(()=>new Mli,"ValueConverter")}};i(gW,"createRailroadAbnfServices");J(gW,"createRailroadAbnfServices")});function mW(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),dct,G4e);return t.ServiceRegistry.register(a),{shared:t,RailroadPeg:a}}var Nli,tBr,Oli,G4e,xct=ae(()=>{"use strict";du();Nli=class extends Vu{static{i(this,"RailroadPegTokenBuilder")}static{J(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},tBr=J(r=>{let t=r.slice(1,-1),a="";for(let s=0;s<t.length;s++){let l=t[s];if(l==="\\"&&s+1<t.length){s++;let h=t[s];switch(h){case"n":a+=`
|
|
`;break;case"r":a+="\r";break;case"t":a+=" ";break;default:a+=h}continue}a+=l}return a},"decodeEscapedString"),Oli=class extends Gg{static{i(this,"RailroadPegValueConverter")}static{J(this,"RailroadPegValueConverter")}runConverter(r,t,a){let s=super.runConverter(r,t,a);if(r.name==="TITLE"&&typeof s=="string"){let l=s.trim();if(l.startsWith('"')&&l.endsWith('"')||l.startsWith("'")&&l.endsWith("'"))return tBr(l)}return s}runCustomConverter(r,t,a){if(r.name==="PEG_STRING")return tBr(t)}},G4e={parser:{TokenBuilder:J(()=>new Nli,"TokenBuilder"),ValueConverter:J(()=>new Oli,"ValueConverter")}};i(mW,"createRailroadPegServices");J(mW,"createRailroadPegServices")});function rBr(r){let t=r.validation.TreemapValidator,a=r.validation.ValidationRegistry;if(a){let s={Treemap:t.checkSingleRoot.bind(t)};a.register(s,t)}}function z4e(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),pct,j4e);return t.ServiceRegistry.register(a),rBr(a),{shared:t,Treemap:a}}var Pli,Bli,Fli,$li,j4e,Tct=ae(()=>{"use strict";du();Pli=class extends Vu{static{i(this,"TreemapTokenBuilder")}static{J(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},Bli=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fli=class extends Gg{static{i(this,"TreemapValueConverter")}static{J(this,"TreemapValueConverter")}runCustomConverter(r,t,a){if(r.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));if(r.name==="SEPARATOR")return t.substring(1,t.length-1);if(r.name==="STRING2")return t.substring(1,t.length-1);if(r.name==="INDENTATION")return t.length;if(r.name==="ClassDef"){if(typeof t!="string")return t;let s=Bli.exec(t);if(s)return{$type:"ClassDefStatement",className:s[1],styleText:s[2]||void 0}}}};i(rBr,"registerValidationChecks");J(rBr,"registerValidationChecks");$li=class{static{i(this,"TreemapValidator")}static{J(this,"TreemapValidator")}checkSingleRoot(r,t){let a;for(let s of r.TreemapRows)s.item&&(a===void 0&&s.indent===void 0?a=0:s.indent===void 0?t("error","Multiple root nodes are not allowed in a treemap.",{node:s,property:"item"}):a!==void 0&&a>=parseInt(s.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:s,property:"item"}))}},j4e={parser:{TokenBuilder:J(()=>new Pli,"TokenBuilder"),ValueConverter:J(()=>new Fli,"ValueConverter")},validation:{TreemapValidator:J(()=>new $li,"TreemapValidator")}};i(z4e,"createTreemapServices");J(z4e,"createTreemapServices")});function V4e(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),mct,U4e);return t.ServiceRegistry.register(a),{shared:t,Wardley:a}}var Gli,U4e,kct=ae(()=>{"use strict";du();Gli=class extends Gg{static{i(this,"WardleyValueConverter")}static{J(this,"WardleyValueConverter")}runCustomConverter(r,t,a){if(r.name.toUpperCase()==="LINK_LABEL")return t.substring(1).trim()}},U4e={parser:{ValueConverter:J(()=>new Gli,"ValueConverter")}};i(V4e,"createWardleyServices");J(V4e,"createWardleyServices")});function H4e(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),nct,W4e);return t.ServiceRegistry.register(a),{shared:t,Cynefin:a}}var jli,W4e,Cct=ae(()=>{"use strict";du();jli=class extends Vu{static{i(this,"CynefinTokenBuilder")}static{J(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},W4e={parser:{TokenBuilder:J(()=>new jli,"TokenBuilder"),ValueConverter:J(()=>new fx,"ValueConverter")}};i(H4e,"createCynefinServices");J(H4e,"createCynefinServices")});function Y4e(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),act,q4e);return t.ServiceRegistry.register(a),{shared:t,GitGraph:a}}var zli,q4e,Ect=ae(()=>{"use strict";du();zli=class extends Vu{static{i(this,"GitGraphTokenBuilder")}static{J(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},q4e={parser:{TokenBuilder:J(()=>new zli,"TokenBuilder"),ValueConverter:J(()=>new fx,"ValueConverter")}};i(Y4e,"createGitGraphServices");J(Y4e,"createGitGraphServices")});function K4e(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),sct,X4e);return t.ServiceRegistry.register(a),{shared:t,Info:a}}var Uli,X4e,Sct=ae(()=>{"use strict";du();Uli=class extends Vu{static{i(this,"InfoTokenBuilder")}static{J(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},X4e={parser:{TokenBuilder:J(()=>new Uli,"TokenBuilder"),ValueConverter:J(()=>new fx,"ValueConverter")}};i(K4e,"createInfoServices");J(K4e,"createInfoServices")});function Q4e(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),oct,J4e);return t.ServiceRegistry.register(a),{shared:t,Packet:a}}var Vli,J4e,Act=ae(()=>{"use strict";du();Vli=class extends Vu{static{i(this,"PacketTokenBuilder")}static{J(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},J4e={parser:{TokenBuilder:J(()=>new Vli,"TokenBuilder"),ValueConverter:J(()=>new fx,"ValueConverter")}};i(Q4e,"createPacketServices");J(Q4e,"createPacketServices")});function eCe(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),lct,Z4e);return t.ServiceRegistry.register(a),{shared:t,Pie:a}}var Wli,Hli,Z4e,Rct=ae(()=>{"use strict";du();Wli=class extends Vu{static{i(this,"PieTokenBuilder")}static{J(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},Hli=class extends Gg{static{i(this,"PieValueConverter")}static{J(this,"PieValueConverter")}runCustomConverter(r,t,a){if(r.name==="PIE_SECTION_LABEL")return t.replace(/"/g,"").trim()}},Z4e={parser:{TokenBuilder:J(()=>new Wli,"TokenBuilder"),ValueConverter:J(()=>new Hli,"ValueConverter")}};i(eCe,"createPieServices");J(eCe,"createPieServices")});function rCe(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),gct,tCe);return t.ServiceRegistry.register(a),{shared:t,TreeView:a}}var qli,Yli,tCe,Lct=ae(()=>{"use strict";du();qli=class extends Gg{static{i(this,"TreeViewValueConverter")}static{J(this,"TreeViewValueConverter")}runCustomConverter(r,t,a){if(r.name==="INDENTATION")return t?.length||0;if(r.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(r.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(r.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(r.name==="ICON_ANNOTATION"){let s=t.trim();return s.substring(5,s.length-1)}if(r.name==="DESC_ANNOTATION")return t.trim().substring(2).trim()}},Yli=class extends Vu{static{i(this,"TreeViewTokenBuilder")}static{J(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},tCe={parser:{TokenBuilder:J(()=>new Yli,"TokenBuilder"),ValueConverter:J(()=>new qli,"ValueConverter")}};i(rCe,"createTreeViewServices");J(rCe,"createTreeViewServices")});function iCe(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),rct,nCe);return t.ServiceRegistry.register(a),{shared:t,Architecture:a}}var Xli,Kli,nCe,_ct=ae(()=>{"use strict";du();Xli=class extends Vu{static{i(this,"ArchitectureTokenBuilder")}static{J(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},Kli=class extends Gg{static{i(this,"ArchitectureValueConverter")}static{J(this,"ArchitectureValueConverter")}runCustomConverter(r,t,a){if(r.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();if(r.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");if(r.name==="ARCH_TITLE"){let s=t.replace(/^\[|]$/g,"").trim();return(s.startsWith('"')&&s.endsWith('"')||s.startsWith("'")&&s.endsWith("'"))&&(s=s.slice(1,-1),s=s.replace(/\\"/g,'"').replace(/\\'/g,"'")),s.trim()}}},nCe={parser:{TokenBuilder:J(()=>new Xli,"TokenBuilder"),ValueConverter:J(()=>new Kli,"ValueConverter")}};i(iCe,"createArchitectureServices");J(iCe,"createArchitectureServices")});function oBr(r){let t=r.validation.EventModelingValidator,a=r.validation.ValidationRegistry;if(a){let s={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};a.register(s,t)}}function sCe(r=Lu){let t=_o(fu(r),_u),a=_o(hu({shared:t}),ict,aCe);return t.ServiceRegistry.register(a),oBr(a),{shared:t,EventModel:a}}var Jli,nBr,iBr,Dct,aBr,sBr,Qli,aCe,Ict=ae(()=>{"use strict";du();Jli=class extends Vu{static{i(this,"EventModelingTokenBuilder")}static{J(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},nBr=new Set(["cmd","command"]),iBr=new Set(["evt","event"]),Dct=new Set(["rmo","readmodel"]),aBr=new Set(["pcr","processor"]),sBr=new Set(["ui"]);i(oBr,"registerValidationChecks");J(oBr,"registerValidationChecks");Qli=class{static{i(this,"EventModelingValidator")}static{J(this,"EventModelingValidator")}checkSourceFrameTypes(r,t){r.sourceFrames.length!==0&&(nBr.has(r.modelEntityType)?this.validateSources(r,new Set([...sBr,...aBr]),"command","ui or processor",t):iBr.has(r.modelEntityType)?this.validateSources(r,nBr,"event","command",t):Dct.has(r.modelEntityType)?this.validateSources(r,iBr,"read model","event",t):aBr.has(r.modelEntityType)?this.validateSources(r,Dct,"processor","read model",t):sBr.has(r.modelEntityType)&&this.validateSources(r,Dct,"ui","read model",t))}validateSources(r,t,a,s,l){for(let h of r.sourceFrames){let f=h.ref;f!==void 0&&!t.has(f.modelEntityType)&&l("error",`A ${a} can only receive input from a ${s}, not from '${f.modelEntityType}'.`,{node:r,property:"sourceFrames"})}}},aCe={parser:{TokenBuilder:J(()=>new Jli,"TokenBuilder"),ValueConverter:J(()=>new fx,"ValueConverter")},validation:{EventModelingValidator:J(()=>new Qli,"EventModelingValidator")}};i(sCe,"createEventModelingServices");J(sCe,"createEventModelingServices")});var lBr={};is(lBr,{InfoModule:()=>X4e,createInfoServices:()=>K4e});var cBr=ae(()=>{"use strict";Sct();du()});var uBr={};is(uBr,{PacketModule:()=>J4e,createPacketServices:()=>Q4e});var hBr=ae(()=>{"use strict";Act();du()});var fBr={};is(fBr,{PieModule:()=>Z4e,createPieServices:()=>eCe});var dBr=ae(()=>{"use strict";Rct();du()});var pBr={};is(pBr,{TreeViewModule:()=>tCe,createTreeViewServices:()=>rCe});var gBr=ae(()=>{"use strict";Lct();du()});var mBr={};is(mBr,{ArchitectureModule:()=>nCe,createArchitectureServices:()=>iCe});var yBr=ae(()=>{"use strict";_ct();du()});var bBr={};is(bBr,{GitGraphModule:()=>q4e,createGitGraphServices:()=>Y4e});var vBr=ae(()=>{"use strict";Ect();du()});var wBr={};is(wBr,{EventModelingModule:()=>aCe,createEventModelingServices:()=>sCe});var xBr=ae(()=>{"use strict";Ict();du()});var TBr={};is(TBr,{RadarModule:()=>O4e,createRadarServices:()=>P4e});var kBr=ae(()=>{"use strict";yct();du()});var CBr={};is(CBr,{RailroadModule:()=>B4e,createRailroadServices:()=>dW});var EBr=ae(()=>{"use strict";bct();du()});var SBr={};is(SBr,{RailroadEbnfModule:()=>F4e,createRailroadEbnfServices:()=>pW});var ABr=ae(()=>{"use strict";vct();du()});var RBr={};is(RBr,{RailroadAbnfModule:()=>$4e,createRailroadAbnfServices:()=>gW});var LBr=ae(()=>{"use strict";wct();du()});var _Br={};is(_Br,{RailroadPegModule:()=>G4e,createRailroadPegServices:()=>mW});var DBr=ae(()=>{"use strict";xct();du()});var IBr={};is(IBr,{TreemapModule:()=>j4e,createTreemapServices:()=>z4e});var MBr=ae(()=>{"use strict";Tct();du()});var NBr={};is(NBr,{WardleyModule:()=>U4e,createWardleyServices:()=>V4e});var OBr=ae(()=>{"use strict";kct();du()});var PBr={};is(PBr,{CynefinModule:()=>W4e,createCynefinServices:()=>H4e});var BBr=ae(()=>{"use strict";Cct();du()});async function Gd(r,t){let a=Zli[r];if(!a)throw new Error(`Unknown diagram type: ${r}`);v1[r]||await a();let l=v1[r].parse(t);if(l.lexerErrors.length>0||l.parserErrors.length>0)throw new g8(l);return l.value}var v1,Zli,oCe,g8,w1=ae(()=>{"use strict";yct();bct();vct();wct();xct();Tct();kct();Cct();Ect();Sct();Act();Rct();Lct();_ct();Ict();du();v1={},Zli={info:J(async()=>{let{createInfoServices:r}=await Promise.resolve().then(()=>(cBr(),lBr)),t=r().Info.parser.LangiumParser;v1.info=t},"info"),packet:J(async()=>{let{createPacketServices:r}=await Promise.resolve().then(()=>(hBr(),uBr)),t=r().Packet.parser.LangiumParser;v1.packet=t},"packet"),pie:J(async()=>{let{createPieServices:r}=await Promise.resolve().then(()=>(dBr(),fBr)),t=r().Pie.parser.LangiumParser;v1.pie=t},"pie"),treeView:J(async()=>{let{createTreeViewServices:r}=await Promise.resolve().then(()=>(gBr(),pBr)),t=r().TreeView.parser.LangiumParser;v1.treeView=t},"treeView"),architecture:J(async()=>{let{createArchitectureServices:r}=await Promise.resolve().then(()=>(yBr(),mBr)),t=r().Architecture.parser.LangiumParser;v1.architecture=t},"architecture"),gitGraph:J(async()=>{let{createGitGraphServices:r}=await Promise.resolve().then(()=>(vBr(),bBr)),t=r().GitGraph.parser.LangiumParser;v1.gitGraph=t},"gitGraph"),eventmodeling:J(async()=>{let{createEventModelingServices:r}=await Promise.resolve().then(()=>(xBr(),wBr)),t=r().EventModel.parser.LangiumParser;v1.eventmodeling=t},"eventmodeling"),radar:J(async()=>{let{createRadarServices:r}=await Promise.resolve().then(()=>(kBr(),TBr)),t=r().Radar.parser.LangiumParser;v1.radar=t},"radar"),railroad:J(async()=>{let{createRailroadServices:r}=await Promise.resolve().then(()=>(EBr(),CBr)),t=r().Railroad.parser.LangiumParser;v1.railroad=t},"railroad"),railroadEbnf:J(async()=>{let{createRailroadEbnfServices:r}=await Promise.resolve().then(()=>(ABr(),SBr)),t=r().RailroadEbnf.parser.LangiumParser;v1.railroadEbnf=t},"railroadEbnf"),railroadAbnf:J(async()=>{let{createRailroadAbnfServices:r}=await Promise.resolve().then(()=>(LBr(),RBr)),t=r().RailroadAbnf.parser.LangiumParser;v1.railroadAbnf=t},"railroadAbnf"),railroadPeg:J(async()=>{let{createRailroadPegServices:r}=await Promise.resolve().then(()=>(DBr(),_Br)),t=r().RailroadPeg.parser.LangiumParser;v1.railroadPeg=t},"railroadPeg"),treemap:J(async()=>{let{createTreemapServices:r}=await Promise.resolve().then(()=>(MBr(),IBr)),t=r().Treemap.parser.LangiumParser;v1.treemap=t},"treemap"),wardley:J(async()=>{let{createWardleyServices:r}=await Promise.resolve().then(()=>(OBr(),NBr)),t=r().Wardley.parser.LangiumParser;v1.wardley=t},"wardley"),cynefin:J(async()=>{let{createCynefinServices:r}=await Promise.resolve().then(()=>(BBr(),PBr)),t=r().Cynefin.parser.LangiumParser;v1.cynefin=t},"cynefin")};i(Gd,"parse");J(Gd,"parse");oCe=J(r=>r!==void 0&&r>=0?r:"?","formatLocation"),g8=class extends Error{static{i(this,"MermaidParseError")}constructor(r){let t=r.lexerErrors.map(s=>{let l=oCe(s.line),h=oCe(s.column);return`Lexer error on line ${l}, column ${h}: ${s.message}`}).join(`
|
|
`),a=r.parserErrors.map(s=>{let l=oCe(s.token.startLine),h=oCe(s.token.startColumn);return`Parse error on line ${l}, column ${h}: ${s.message}`}).join(`
|
|
`);super(`Parsing failed: ${t} ${a}`),this.result=r}static{J(this,"MermaidParseError")}}});function Eh(r,t){r.accDescr&&t.setAccDescription?.(r.accDescr),r.accTitle&&t.setAccTitle?.(r.accTitle),r.title&&t.setDiagramTitle?.(r.title)}var Gb=ae(()=>{"use strict";i(Eh,"populateCommonDb")});var Du,lCe=ae(()=>{"use strict";Du={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}});var SD,cCe=ae(()=>{"use strict";SD=class{constructor(t){this.init=t;this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}}});function Mct(){return $Je({length:7})}function tci(r,t){let a=Object.create(null);return r.reduce((s,l)=>{let h=t(l);return a[h]||(a[h]=!0,s.push(l)),s},[])}function FBr(r,t,a){let s=r.indexOf(t);s===-1?r.push(a):r.splice(s,1,a)}function GBr(r){let t=r.reduce((l,h)=>l.seq>h.seq?l:h,r[0]),a="";r.forEach(function(l){l===t?a+=" *":a+=" |"});let s=[a,t.id,t.seq];for(let l in fa.records.branches)fa.records.branches.get(l)===t.id&&s.push(l);if(Pe.debug(s.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let l=fa.records.commits.get(t.parents[0]);FBr(r,t,l),t.parents[1]&&r.push(fa.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){let l=fa.records.commits.get(t.parents[0]);FBr(r,t,l)}}r=tci(r,l=>l.id),GBr(r)}var eci,fB,fa,rci,nci,ici,aci,sci,oci,lci,$Br,cci,uci,hci,fci,dci,jBr,pci,gci,mci,uCe,Nct=ae(()=>{"use strict";Yn();Ma();Xs();nl();Au();lCe();cCe();pp();eci=ps.gitGraph,fB=i(()=>il({...eci,...ri().gitGraph}),"getConfig"),fa=new SD(()=>{let r=fB(),t=r.mainBranchName,a=r.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:a}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});i(Mct,"getID");i(tci,"uniqBy");rci=i(function(r){fa.records.direction=r},"setDirection"),nci=i(function(r){Pe.debug("options str",r),r=r?.trim(),r=r||"{}";try{fa.records.options=JSON.parse(r)}catch(t){Pe.error("error while parsing gitGraph options",t.message)}},"setOptions"),ici=i(function(){return fa.records.options},"getOptions"),aci=i(function(r){let t=r.msg,a=r.id,s=r.type,l=r.tags;Pe.info("commit",t,a,s,l),Pe.debug("Entering commit:",t,a,s,l);let h=fB();a=Xn.sanitizeText(a,h),t=Xn.sanitizeText(t,h),l=l?.map(d=>Xn.sanitizeText(d,h));let f={id:a||fa.records.seq+"-"+Mct(),message:t,seq:fa.records.seq++,type:s??Du.NORMAL,tags:l??[],parents:fa.records.head==null?[]:[fa.records.head.id],branch:fa.records.currBranch};fa.records.head=f,Pe.info("main branch",h.mainBranchName),fa.records.commits.has(f.id)&&Pe.warn(`Commit ID ${f.id} already exists`),fa.records.commits.set(f.id,f),fa.records.branches.set(fa.records.currBranch,f.id),Pe.debug("in pushCommit "+f.id)},"commit"),sci=i(function(r){let t=r.name,a=r.order;if(t=Xn.sanitizeText(t,fB()),fa.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);fa.records.branches.set(t,fa.records.head!=null?fa.records.head.id:null),fa.records.branchConfig.set(t,{name:t,order:a}),$Br(t),Pe.debug("in createBranch")},"branch"),oci=i(r=>{let t=r.branch,a=r.id,s=r.type,l=r.tags,h=fB();t=Xn.sanitizeText(t,h),a&&(a=Xn.sanitizeText(a,h));let f=fa.records.branches.get(fa.records.currBranch),d=fa.records.branches.get(t),m=f?fa.records.commits.get(f):void 0,b=d?fa.records.commits.get(d):void 0;if(m&&b&&m.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(fa.records.currBranch===t){let C=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw C.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},C}if(m===void 0||!m){let C=new Error(`Incorrect usage of "merge". Current branch (${fa.records.currBranch})has no commits`);throw C.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},C}if(!fa.records.branches.has(t)){let C=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw C.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},C}if(b===void 0||!b){let C=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw C.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},C}if(m===b){let C=new Error('Incorrect usage of "merge". Both branches have same head');throw C.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},C}if(a&&fa.records.commits.has(a)){let C=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw C.hash={text:`merge ${t} ${a} ${s} ${l?.join(" ")}`,token:`merge ${t} ${a} ${s} ${l?.join(" ")}`,expected:[`merge ${t} ${a}_UNIQUE ${s} ${l?.join(" ")}`]},C}let v=d||"",T={id:a||`${fa.records.seq}-${Mct()}`,message:`merged branch ${t} into ${fa.records.currBranch}`,seq:fa.records.seq++,parents:fa.records.head==null?[]:[fa.records.head.id,v],branch:fa.records.currBranch,type:Du.MERGE,customType:s,customId:!!a,tags:l??[]};fa.records.head=T,fa.records.commits.set(T.id,T),fa.records.branches.set(fa.records.currBranch,T.id),Pe.debug(fa.records.branches),Pe.debug("in mergeBranch")},"merge"),lci=i(function(r){let t=r.id,a=r.targetId,s=r.tags,l=r.parent;Pe.debug("Entering cherryPick:",t,a,s);let h=fB();if(t=Xn.sanitizeText(t,h),a=Xn.sanitizeText(a,h),s=s?.map(m=>Xn.sanitizeText(m,h)),l=Xn.sanitizeText(l,h),!t||!fa.records.commits.has(t)){let m=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw m.hash={text:`cherryPick ${t} ${a}`,token:`cherryPick ${t} ${a}`,expected:["cherry-pick abc"]},m}let f=fa.records.commits.get(t);if(f===void 0||!f)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(l&&!(Array.isArray(f.parents)&&f.parents.includes(l)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=f.branch;if(f.type===Du.MERGE&&!l)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!fa.records.commits.has(a)){if(d===fa.records.currBranch){let T=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw T.hash={text:`cherryPick ${t} ${a}`,token:`cherryPick ${t} ${a}`,expected:["cherry-pick abc"]},T}let m=fa.records.branches.get(fa.records.currBranch);if(m===void 0||!m){let T=new Error(`Incorrect usage of "cherry-pick". Current branch (${fa.records.currBranch})has no commits`);throw T.hash={text:`cherryPick ${t} ${a}`,token:`cherryPick ${t} ${a}`,expected:["cherry-pick abc"]},T}let b=fa.records.commits.get(m);if(b===void 0||!b){let T=new Error(`Incorrect usage of "cherry-pick". Current branch (${fa.records.currBranch})has no commits`);throw T.hash={text:`cherryPick ${t} ${a}`,token:`cherryPick ${t} ${a}`,expected:["cherry-pick abc"]},T}let v={id:fa.records.seq+"-"+Mct(),message:`cherry-picked ${f?.message} into ${fa.records.currBranch}`,seq:fa.records.seq++,parents:fa.records.head==null?[]:[fa.records.head.id,f.id],branch:fa.records.currBranch,type:Du.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${f.id}${f.type===Du.MERGE?`|parent:${l}`:""}`]};fa.records.head=v,fa.records.commits.set(v.id,v),fa.records.branches.set(fa.records.currBranch,v.id),Pe.debug(fa.records.branches),Pe.debug("in cherryPick")}},"cherryPick"),$Br=i(function(r){if(r=Xn.sanitizeText(r,fB()),fa.records.branches.has(r)){fa.records.currBranch=r;let t=fa.records.branches.get(fa.records.currBranch);t===void 0||!t?fa.records.head=null:fa.records.head=fa.records.commits.get(t)??null}else{let t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw t.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},t}},"checkout");i(FBr,"upsert");i(GBr,"prettyPrintCommitHistory");cci=i(function(){Pe.debug(fa.records.commits);let r=jBr()[0];GBr([r])},"prettyPrint"),uci=i(function(){fa.reset(),Ds()},"clear"),hci=i(function(){return[...fa.records.branchConfig.values()].map((t,a)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${a}`)}).sort((t,a)=>(t.order??0)-(a.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),fci=i(function(){return fa.records.branches},"getBranches"),dci=i(function(){return fa.records.commits},"getCommits"),jBr=i(function(){let r=[...fa.records.commits.values()];return r.forEach(function(t){Pe.debug(t.id)}),r.sort((t,a)=>t.seq-a.seq),r},"getCommitsArray"),pci=i(function(){return fa.records.currBranch},"getCurrentBranch"),gci=i(function(){return fa.records.direction},"getDirection"),mci=i(function(){return fa.records.head},"getHead"),uCe={commitType:Du,getConfig:fB,setDirection:rci,setOptions:nci,getOptions:ici,commit:aci,branch:sci,merge:oci,cherryPick:lci,checkout:$Br,prettyPrint:cci,clear:uci,getBranchesAsObjArray:hci,getBranches:fci,getCommits:dci,getCommitsArray:jBr,getCurrentBranch:pci,getDirection:gci,getHead:mci,setAccTitle:Os,getAccTitle:Vs,getAccDescription:Ws,setAccDescription:$s,setDiagramTitle:io,getDiagramTitle:Ks}});var yci,bci,vci,wci,xci,Tci,kci,zBr,UBr=ae(()=>{"use strict";w1();Yn();Gb();Nct();lCe();yci=i((r,t)=>{Eh(r,t),r.dir&&t.setDirection(r.dir);for(let a of r.statements)bci(a,t)},"populate"),bci=i((r,t)=>{let s={Commit:i(l=>t.commit(vci(l)),"Commit"),Branch:i(l=>t.branch(wci(l)),"Branch"),Merge:i(l=>t.merge(xci(l)),"Merge"),Checkout:i(l=>t.checkout(Tci(l)),"Checkout"),CherryPicking:i(l=>t.cherryPick(kci(l)),"CherryPicking")}[r.$type];s?s(r):Pe.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),vci=i(r=>({id:r.id,msg:r.message??"",type:r.type!==void 0?Du[r.type]:Du.NORMAL,tags:r.tags??void 0}),"parseCommit"),wci=i(r=>({name:r.name,order:r.order??0}),"parseBranch"),xci=i(r=>({branch:r.branch,id:r.id??"",type:r.type!==void 0?Du[r.type]:void 0,tags:r.tags??void 0}),"parseMerge"),Tci=i(r=>r.branch,"parseCheckout"),kci=i(r=>({id:r.id,targetId:"",tags:r.tags?.length===0?void 0:r.tags,parent:r.parent}),"parseCherryPicking"),zBr={parse:i(async r=>{let t=await Gd("gitGraph",r);Pe.debug(t),yci(t,uCe)},"parse")}});var AD,RD,KS,m8,dB,dCe,Oct,Pct,Cci,pB,C2,E2,hCe,Iae,fCe,y8,sc,Eci,WBr,HBr,Sci,Aci,Rci,Lci,_ci,Dci,Ici,Mci,Nci,Oci,Pci,Bci,VBr,Fci,Mae,$ci,Gci,jci,zci,Uci,qBr,YBr=ae(()=>{"use strict";zo();ma();Yn();Ma();lCe();AD=10,RD=40,KS=4,m8=2,dB=8,dCe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Oct=12,Pct=new Set(["redux-color","redux-dark-color"]),Cci=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),pB=i((r,t,a=!1)=>a&&r>0?(r-1)%(t-1)+1:r%t,"calcColorIndex"),C2=new Map,E2=new Map,hCe=30,Iae=new Map,fCe=[],y8=0,sc="LR",Eci=i(()=>{C2.clear(),E2.clear(),Iae.clear(),y8=0,fCe=[],sc="LR"},"clear"),WBr=i(r=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|<br\s*\/?>/gi):r).forEach(s=>{let l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),l.setAttribute("class","row"),l.textContent=s.trim(),t.appendChild(l)}),t},"drawText"),HBr=i(r=>{let t,a,s;return sc==="BT"?(a=i((l,h)=>l<=h,"comparisonFunc"),s=1/0):(a=i((l,h)=>l>=h,"comparisonFunc"),s=0),r.forEach(l=>{let h=sc==="TB"||sc=="BT"?E2.get(l)?.y:E2.get(l)?.x;h!==void 0&&a(h,s)&&(t=l,s=h)}),t},"findClosestParent"),Sci=i(r=>{let t="",a=1/0;return r.forEach(s=>{let l=E2.get(s).y;l<=a&&(t=s,a=l)}),t||void 0},"findClosestParentBT"),Aci=i((r,t,a)=>{let s=a,l=a,h=[];r.forEach(f=>{let d=t.get(f);if(!d)throw new Error(`Commit not found for key ${f}`);d.parents.length?(s=Lci(d),l=Math.max(s,l)):h.push(d),_ci(d,s)}),s=l,h.forEach(f=>{Dci(f,s,a)}),r.forEach(f=>{let d=t.get(f);if(d?.parents.length){let m=Sci(d.parents);s=E2.get(m).y-RD,s<=l&&(l=s);let b=C2.get(d.branch).pos,v=s-AD;E2.set(d.id,{x:b,y:v})}})},"setParallelBTPos"),Rci=i(r=>{let t=HBr(r.parents.filter(s=>s!==null));if(!t)throw new Error(`Closest parent not found for commit ${r.id}`);let a=E2.get(t)?.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${r.id}`);return a},"findClosestParentPos"),Lci=i(r=>Rci(r)+RD,"calculateCommitPosition"),_ci=i((r,t)=>{let a=C2.get(r.branch);if(!a)throw new Error(`Branch not found for commit ${r.id}`);let s=a.pos,l=t+AD;return E2.set(r.id,{x:s,y:l}),{x:s,y:l}},"setCommitPosition"),Dci=i((r,t,a)=>{let s=C2.get(r.branch);if(!s)throw new Error(`Branch not found for commit ${r.id}`);let l=t+a,h=s.pos;E2.set(r.id,{x:h,y:l})},"setRootPosition"),Ici=i((r,t,a,s,l,h)=>{let{theme:f}=er(),d=dCe.has(f??""),m=Pct.has(f??""),b=Cci.has(f??"");if(h===Du.HIGHLIGHT)r.append("rect").attr("x",a.x-10+(d?3:0)).attr("y",a.y-10+(d?3:0)).attr("width",d?14:20).attr("height",d?14:20).attr("class",`commit ${t.id} commit-highlight${pB(l,dB,m)} ${s}-outer`),r.append("rect").attr("x",a.x-6+(d?2:0)).attr("y",a.y-6+(d?2:0)).attr("width",d?8:12).attr("height",d?8:12).attr("class",`commit ${t.id} commit${pB(l,dB,m)} ${s}-inner`);else if(h===Du.CHERRY_PICK)r.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",d?7:10).attr("class",`commit ${t.id} ${s}`),r.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",d?2.5:2.75).attr("fill",b?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),r.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",d?2.5:2.75).attr("fill",b?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),r.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",b?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`),r.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",b?"#000000":"#fff").attr("class",`commit ${t.id} ${s}`);else{let v=r.append("circle");if(v.attr("cx",a.x),v.attr("cy",a.y),v.attr("r",d?7:10),v.attr("class",`commit ${t.id} commit${pB(l,dB,m)}`),h===Du.MERGE){let T=r.append("circle");T.attr("cx",a.x),T.attr("cy",a.y),T.attr("r",d?5:6),T.attr("class",`commit ${s} ${t.id} commit${pB(l,dB,m)}`)}if(h===Du.REVERSE){let T=r.append("path"),C=d?4:5;T.attr("d",`M ${a.x-C},${a.y-C}L${a.x+C},${a.y+C}M${a.x-C},${a.y+C}L${a.x+C},${a.y-C}`).attr("class",`commit ${s} ${t.id} commit${pB(l,dB,m)}`)}}},"drawCommitBullet"),Mci=i((r,t,a,s,l)=>{if(t.type!==Du.CHERRY_PICK&&(t.customId&&t.type===Du.MERGE||t.type!==Du.MERGE)&&l.showCommitLabel){let h=r.append("g"),f=h.insert("rect").attr("class","commit-label-bkg"),d=h.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(t.id),m=d.node()?.getBBox();if(m&&(f.attr("x",a.posWithOffset-m.width/2-m8).attr("y",a.y+13.5).attr("width",m.width+2*m8).attr("height",m.height+2*m8),sc==="TB"||sc==="BT"?(f.attr("x",a.x-(m.width+4*KS+5)).attr("y",a.y-12),d.attr("x",a.x-(m.width+4*KS)).attr("y",a.y+m.height-12)):d.attr("x",a.posWithOffset-m.width/2),l.rotateCommitLabel))if(sc==="TB"||sc==="BT")d.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),f.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let b=-7.5-(m.width+10)/25*9.5,v=10+m.width/25*8.5;h.attr("transform","translate("+b+", "+v+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Nci=i((r,t,a,s)=>{if(t.tags.length>0){let l=0,h=0,f=0,d=[];for(let m of t.tags.reverse()){let b=r.insert("polygon"),v=r.append("circle"),T=r.append("text").attr("y",a.y-16-l).attr("class","tag-label").text(m),C=T.node()?.getBBox();if(!C)throw new Error("Tag bbox not found");h=Math.max(h,C.width),f=Math.max(f,C.height),T.attr("x",a.posWithOffset-C.width/2),d.push({tag:T,hole:v,rect:b,yOffset:l}),l+=20}for(let{tag:m,hole:b,rect:v,yOffset:T}of d){let C=f/2,E=a.y-19.2-T;if(v.attr("class","tag-label-bkg").attr("points",`
|
|
${s-h/2-KS/2},${E+m8}
|
|
${s-h/2-KS/2},${E-m8}
|
|
${a.posWithOffset-h/2-KS},${E-C-m8}
|
|
${a.posWithOffset+h/2+KS},${E-C-m8}
|
|
${a.posWithOffset+h/2+KS},${E+C+m8}
|
|
${a.posWithOffset-h/2-KS},${E+C+m8}`),b.attr("cy",E).attr("cx",s-h/2+KS/2).attr("r",1.5).attr("class","tag-hole"),sc==="TB"||sc==="BT"){let S=s+T;v.attr("class","tag-label-bkg").attr("points",`
|
|
${a.x},${S+2}
|
|
${a.x},${S-2}
|
|
${a.x+AD},${S-C-2}
|
|
${a.x+AD+h+4},${S-C-2}
|
|
${a.x+AD+h+4},${S+C+2}
|
|
${a.x+AD},${S+C+2}`).attr("transform","translate(12,12) rotate(45, "+a.x+","+s+")"),b.attr("cx",a.x+KS/2).attr("cy",S).attr("transform","translate(12,12) rotate(45, "+a.x+","+s+")"),m.attr("x",a.x+5).attr("y",S+3).attr("transform","translate(14,14) rotate(45, "+a.x+","+s+")")}}}},"drawCommitTags"),Oci=i(r=>{switch(r.customType??r.type){case Du.NORMAL:return"commit-normal";case Du.REVERSE:return"commit-reverse";case Du.HIGHLIGHT:return"commit-highlight";case Du.MERGE:return"commit-merge";case Du.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Pci=i((r,t,a,s)=>{let l={x:0,y:0};if(r.parents.length>0){let h=HBr(r.parents);if(h){let f=s.get(h)??l;return t==="TB"?f.y+RD:t==="BT"?(s.get(r.id)??l).y-RD:f.x+RD}}else return t==="TB"?hCe:t==="BT"?(s.get(r.id)??l).y-RD:0;return 0},"calculatePosition"),Bci=i((r,t,a)=>{let s=sc==="BT"&&a?t:t+AD,l=C2.get(r.branch)?.pos,h=sc==="TB"||sc==="BT"?C2.get(r.branch)?.pos:s;if(h===void 0||l===void 0)throw new Error(`Position were undefined for commit ${r.id}`);let f=dCe.has(er().theme??""),d=sc==="TB"||sc==="BT"?s:l+(f?Oct/2+1:-2);return{x:h,y:d,posWithOffset:s}},"getCommitPosition"),VBr=i((r,t,a,s)=>{let l=r.append("g").attr("class","commit-bullets"),h=r.append("g").attr("class","commit-labels"),f=sc==="TB"||sc==="BT"?hCe:0,d=[...t.keys()],m=s.parallelCommits??!1,b=i((T,C)=>{let E=t.get(T)?.seq,S=t.get(C)?.seq;return E!==void 0&&S!==void 0?E-S:0},"sortKeys"),v=d.sort(b);sc==="BT"&&(m&&Aci(v,t,f),v=v.reverse()),v.forEach(T=>{let C=t.get(T);if(!C)throw new Error(`Commit not found for key ${T}`);m&&(f=Pci(C,sc,f,E2));let E=Bci(C,f,m);if(a){let S=Oci(C),R=C.customType??C.type,L=C2.get(C.branch)?.index??0;Ici(l,C,E,S,L,R),Mci(h,C,E,f,s),Nci(h,C,E,f)}sc==="TB"||sc==="BT"?E2.set(C.id,{x:E.x,y:E.posWithOffset}):E2.set(C.id,{x:E.posWithOffset,y:E.y}),f=sc==="BT"&&m?f+RD:f+RD+AD,f>y8&&(y8=f)})},"drawCommits"),Fci=i((r,t,a,s,l)=>{let f=(sc==="TB"||sc==="BT"?a.x<s.x:a.y<s.y)?t.branch:r.branch,d=i(b=>b.branch===f,"isOnBranchToGetCurve"),m=i(b=>b.seq>r.seq&&b.seq<t.seq,"isBetweenCommits");return[...l.values()].some(b=>m(b)&&d(b))},"shouldRerouteArrow"),Mae=i((r,t,a=0)=>{let s=r+Math.abs(r-t)/2;if(a>5)return s;if(fCe.every(f=>Math.abs(f-s)>=10))return fCe.push(s),s;let h=Math.abs(r-t);return Mae(r,t-h/5,a+1)},"findLane"),$ci=i((r,t,a,s)=>{let{theme:l}=er(),h=Pct.has(l??""),f=E2.get(t.id),d=E2.get(a.id);if(f===void 0||d===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${a.id}`);let m=Fci(t,a,f,d,s),b="",v="",T=0,C=0,E=C2.get(a.branch)?.index;a.type===Du.MERGE&&t.id!==a.parents[0]&&(E=C2.get(t.branch)?.index);let S;if(m){b="A 10 10, 0, 0, 0,",v="A 10 10, 0, 0, 1,",T=10,C=10;let R=f.y<d.y?Mae(f.y,d.y):Mae(d.y,f.y),L=f.x<d.x?Mae(f.x,d.x):Mae(d.x,f.x);sc==="TB"?f.x<d.x?S=`M ${f.x} ${f.y} L ${L-T} ${f.y} ${v} ${L} ${f.y+C} L ${L} ${d.y-T} ${b} ${L+C} ${d.y} L ${d.x} ${d.y}`:(E=C2.get(t.branch)?.index,S=`M ${f.x} ${f.y} L ${L+T} ${f.y} ${b} ${L} ${f.y+C} L ${L} ${d.y-T} ${v} ${L-C} ${d.y} L ${d.x} ${d.y}`):sc==="BT"?f.x<d.x?S=`M ${f.x} ${f.y} L ${L-T} ${f.y} ${b} ${L} ${f.y-C} L ${L} ${d.y+T} ${v} ${L+C} ${d.y} L ${d.x} ${d.y}`:(E=C2.get(t.branch)?.index,S=`M ${f.x} ${f.y} L ${L+T} ${f.y} ${v} ${L} ${f.y-C} L ${L} ${d.y+T} ${b} ${L-C} ${d.y} L ${d.x} ${d.y}`):f.y<d.y?S=`M ${f.x} ${f.y} L ${f.x} ${R-T} ${b} ${f.x+C} ${R} L ${d.x-T} ${R} ${v} ${d.x} ${R+C} L ${d.x} ${d.y}`:(E=C2.get(t.branch)?.index,S=`M ${f.x} ${f.y} L ${f.x} ${R+T} ${v} ${f.x+C} ${R} L ${d.x-T} ${R} ${b} ${d.x} ${R-C} L ${d.x} ${d.y}`)}else b="A 20 20, 0, 0, 0,",v="A 20 20, 0, 0, 1,",T=20,C=20,sc==="TB"?(f.x<d.x&&(a.type===Du.MERGE&&t.id!==a.parents[0]?S=`M ${f.x} ${f.y} L ${f.x} ${d.y-T} ${b} ${f.x+C} ${d.y} L ${d.x} ${d.y}`:S=`M ${f.x} ${f.y} L ${d.x-T} ${f.y} ${v} ${d.x} ${f.y+C} L ${d.x} ${d.y}`),f.x>d.x&&(b="A 20 20, 0, 0, 0,",v="A 20 20, 0, 0, 1,",T=20,C=20,a.type===Du.MERGE&&t.id!==a.parents[0]?S=`M ${f.x} ${f.y} L ${f.x} ${d.y-T} ${v} ${f.x-C} ${d.y} L ${d.x} ${d.y}`:S=`M ${f.x} ${f.y} L ${d.x+T} ${f.y} ${b} ${d.x} ${f.y+C} L ${d.x} ${d.y}`),f.x===d.x&&(S=`M ${f.x} ${f.y} L ${d.x} ${d.y}`)):sc==="BT"?(f.x<d.x&&(a.type===Du.MERGE&&t.id!==a.parents[0]?S=`M ${f.x} ${f.y} L ${f.x} ${d.y+T} ${v} ${f.x+C} ${d.y} L ${d.x} ${d.y}`:S=`M ${f.x} ${f.y} L ${d.x-T} ${f.y} ${b} ${d.x} ${f.y-C} L ${d.x} ${d.y}`),f.x>d.x&&(b="A 20 20, 0, 0, 0,",v="A 20 20, 0, 0, 1,",T=20,C=20,a.type===Du.MERGE&&t.id!==a.parents[0]?S=`M ${f.x} ${f.y} L ${f.x} ${d.y+T} ${b} ${f.x-C} ${d.y} L ${d.x} ${d.y}`:S=`M ${f.x} ${f.y} L ${d.x+T} ${f.y} ${v} ${d.x} ${f.y-C} L ${d.x} ${d.y}`),f.x===d.x&&(S=`M ${f.x} ${f.y} L ${d.x} ${d.y}`)):(f.y<d.y&&(a.type===Du.MERGE&&t.id!==a.parents[0]?S=`M ${f.x} ${f.y} L ${d.x-T} ${f.y} ${v} ${d.x} ${f.y+C} L ${d.x} ${d.y}`:S=`M ${f.x} ${f.y} L ${f.x} ${d.y-T} ${b} ${f.x+C} ${d.y} L ${d.x} ${d.y}`),f.y>d.y&&(a.type===Du.MERGE&&t.id!==a.parents[0]?S=`M ${f.x} ${f.y} L ${d.x-T} ${f.y} ${b} ${d.x} ${f.y-C} L ${d.x} ${d.y}`:S=`M ${f.x} ${f.y} L ${f.x} ${d.y+T} ${v} ${f.x+C} ${d.y} L ${d.x} ${d.y}`),f.y===d.y&&(S=`M ${f.x} ${f.y} L ${d.x} ${d.y}`));if(S===void 0)throw new Error("Line definition not found");r.append("path").attr("d",S).attr("class","arrow arrow"+pB(E,dB,h))},"drawArrow"),Gci=i((r,t)=>{let a=r.append("g").attr("class","commit-arrows");[...t.keys()].forEach(s=>{let l=t.get(s);l.parents&&l.parents.length>0&&l.parents.forEach(h=>{$ci(a,t.get(h),l,t)})})},"drawArrows"),jci=i((r,t,a,s)=>{let{look:l,theme:h,themeVariables:f}=er(),{dropShadow:d,THEME_COLOR_LIMIT:m}=f,b=dCe.has(h??""),v=Pct.has(h??""),T=r.append("g");t.forEach((C,E)=>{let S=pB(E,b?m:dB,v),R=C2.get(C.name)?.pos;if(R===void 0)throw new Error(`Position not found for branch ${C.name}`);let L=sc==="TB"||sc==="BT"?R:b?R+Oct/2+1:R-2,_=T.append("line");_.attr("x1",0),_.attr("y1",L),_.attr("x2",y8),_.attr("y2",L),_.attr("class","branch branch"+S),sc==="TB"?(_.attr("y1",hCe),_.attr("x1",R),_.attr("y2",y8),_.attr("x2",R)):sc==="BT"&&(_.attr("y1",y8),_.attr("x1",R),_.attr("y2",hCe),_.attr("x2",R)),fCe.push(L);let I=C.name,N=WBr(I),B=T.insert("rect"),P=T.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+S);P.node().appendChild(N);let $=N.getBBox(),V=b?0:4,Y=b?16:0,Q=b?Oct:0;l==="neo"&&B.attr("data-look","neo"),B.attr("class","branchLabelBkg label"+S).attr("style",l==="neo"?`filter:${b?`url(#${s}-drop-shadow)`:d}`:"").attr("rx",V).attr("ry",V).attr("x",-$.width-4-(a.rotateCommitLabel===!0?30:0)).attr("y",-$.height/2+10).attr("width",$.width+18+Y).attr("height",$.height+4+Q),P.attr("transform","translate("+(-$.width-14-(a.rotateCommitLabel===!0?30:0)+Y/2)+", "+(L-$.height/2-2)+")"),sc==="TB"?(B.attr("x",R-$.width/2-10).attr("y",0),P.attr("transform","translate("+(R-$.width/2-5)+", 0)"),b&&(B.attr("transform",`translate(${-Y/2-3}, ${-Q-10})`),P.attr("transform","translate("+(R-$.width/2-5)+", "+(-Q*2+7)+")"))):sc==="BT"?(B.attr("x",R-$.width/2-10).attr("y",y8),P.attr("transform","translate("+(R-$.width/2-5)+", "+y8+")"),b&&(B.attr("transform",`translate(${-Y/2-3}, ${Q+10})`),P.attr("transform","translate("+(R-$.width/2-5)+", "+(y8+Q*2+4)+")"))):B.attr("transform","translate(-19, "+(L-12-Q/2)+")")})},"drawBranches"),zci=i(function(r,t,a,s,l){return C2.set(r,{pos:t,index:a}),t+=50+(l?40:0)+(sc==="TB"||sc==="BT"?s.width/2:0),t},"setBranchPosition"),Uci=i(function(r,t,a,s){Eci(),Pe.debug("in gitgraph renderer",r+`
|
|
`,"id:",t,a);let l=s.db;if(!l.getConfig){Pe.error("getConfig method is not available on db");return}let h=l.getConfig(),f=h.rotateCommitLabel??!1;Iae=l.getCommits();let d=l.getBranchesAsObjArray();sc=l.getDirection();let m=mn(`[id="${t}"]`),{look:b,theme:v,themeVariables:T}=er(),{useGradient:C,gradientStart:E,gradientStop:S,filterColor:R}=T;if(C){let _=m.append("defs").append("linearGradient").attr("id",t+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");_.append("stop").attr("offset","0%").attr("stop-color",E).attr("stop-opacity",1),_.append("stop").attr("offset","100%").attr("stop-color",S).attr("stop-opacity",1)}b==="neo"&&dCe.has(v??"")&&m.append("defs").append("filter").attr("id",t+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",R);let L=0;d.forEach((_,I)=>{let N=WBr(_.name),B=m.append("g"),O=B.insert("g").attr("class","branchLabel"),P=O.insert("g").attr("class","label branch-label");P.node()?.appendChild(N);let $=N.getBBox();L=zci(_.name,L,I,$,f),P.remove(),O.remove(),B.remove()}),VBr(m,Iae,!1,h),h.showBranches&&jci(m,d,h,t),Gci(m,Iae),VBr(m,Iae,!0,h),Va.insertTitle(m,"gitTitleText",h.titleTopMargin??0,l.getDiagramTitle()),fte(void 0,m,h.diagramPadding,h.useMaxWidth)},"draw"),qBr={draw:Uci}});var XBr,KBr,Vci,Wci,Hci,qci,Yci,Xci,Kci,Jci,JBr,QBr=ae(()=>{"use strict";Xs();XBr=8,KBr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Vci=new Set(["redux-color","redux-dark-color"]),Wci=new Set(["neo","neo-dark"]),Hci=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),qci=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Yci=i(r=>{let{svgId:t}=r,a="";if(r.useGradient&&t)for(let s=0;s<r.THEME_COLOR_LIMIT;s++)a+=`
|
|
.label${s} { fill: ${r.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${r.strokeWidth};}
|
|
`;return a},"genGitGraphGradient"),Xci=i(r=>{let t=ri(),{theme:a,themeVariables:s}=t,{borderColorArray:l}=s,h=KBr.has(a);if(Wci.has(a)){let f="";for(let d=0;d<r.THEME_COLOR_LIMIT;d++)if(d===0)f+=`
|
|
.branch-label${d} { fill: ${r.nodeBorder};}
|
|
.commit${d} { stroke: ${r.nodeBorder}; }
|
|
.commit-highlight${d} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }
|
|
.arrow${d} { stroke: ${r.nodeBorder}; }
|
|
.commit-bullets { fill: ${r.nodeBorder}; }
|
|
.commit-cherry-pick${d} { stroke: ${r.nodeBorder}; }
|
|
${Yci(r)}`;else{let m=d%XBr;f+=`
|
|
.branch-label${d} { fill: ${r["gitBranchLabel"+m]}; }
|
|
.commit${d} { stroke: ${r["git"+m]}; fill: ${r["git"+m]}; }
|
|
.commit-highlight${d} { stroke: ${r["gitInv"+m]}; fill: ${r["gitInv"+m]}; }
|
|
.arrow${d} { stroke: ${r["git"+m]}; }
|
|
`}return f}else if(Vci.has(a)){let f="";for(let d=0;d<r.THEME_COLOR_LIMIT;d++)if(d===0)f+=`
|
|
.branch-label${d} { fill: ${r.nodeBorder}; ${h?`font-weight:${r.noteFontWeight}`:""} }
|
|
.commit${d} { stroke: ${r.nodeBorder}; }
|
|
.commit-highlight${d} { stroke: ${r.nodeBorder}; fill: ${r.mainBkg}; }
|
|
.label${d} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${h?`font-weight:${r.noteFontWeight}`:""} }
|
|
.arrow${d} { stroke: ${r.nodeBorder}; }
|
|
.commit-bullets { fill: ${r.nodeBorder}; }
|
|
`;else{let m=d%l.length;f+=`
|
|
.branch-label${d} { fill: ${r.nodeBorder}; ${h?`font-weight:${r.noteFontWeight}`:""} }
|
|
.commit${d} { stroke: ${l[m]}; fill: ${l[m]}; }
|
|
.commit-highlight${d} { stroke: ${l[m]}; fill: ${l[m]}; }
|
|
.label${d} { fill: ${Hci.has(a)?r.mainBkg:l[m]}; stroke: ${l[m]}; stroke-width: ${r.strokeWidth}; }
|
|
.arrow${d} { stroke: ${l[m]}; }
|
|
`}return f}else{let f="";for(let d=0;d<r.THEME_COLOR_LIMIT;d++)f+=`
|
|
.branch-label${d} { fill: ${r.nodeBorder}; ${h?`font-weight:${r.noteFontWeight}`:""} }
|
|
.commit${d} { stroke: ${r.nodeBorder}; }
|
|
.commit-highlight${d} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }
|
|
.label${d} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${h?`font-weight:${r.noteFontWeight}`:""}}
|
|
.arrow${d} { stroke: ${r.nodeBorder}; }
|
|
.commit-bullets { fill: ${r.nodeBorder}; }
|
|
.commit-cherry-pick${d} { stroke: ${r.nodeBorder}; }
|
|
`;return f}},"genColor"),Kci=i(r=>`${Array.from({length:r.THEME_COLOR_LIMIT},(t,a)=>a).map(t=>{let a=t%XBr;return`
|
|
.branch-label${t} { fill: ${r["gitBranchLabel"+a]}; }
|
|
.commit${t} { stroke: ${r["git"+a]}; fill: ${r["git"+a]}; }
|
|
.commit-highlight${t} { stroke: ${r["gitInv"+a]}; fill: ${r["gitInv"+a]}; }
|
|
.label${t} { fill: ${r["git"+a]}; }
|
|
.arrow${t} { stroke: ${r["git"+a]}; }
|
|
`}).join(`
|
|
`)}`,"normalTheme"),Jci=i(r=>{let t=ri(),{theme:a}=t,s=qci.has(a);return`
|
|
.commit-id,
|
|
.commit-msg,
|
|
.branch-label {
|
|
fill: lightgrey;
|
|
color: lightgrey;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
|
|
${s?Xci(r):Kci(r)}
|
|
|
|
.branch {
|
|
stroke-width: ${r.strokeWidth};
|
|
stroke: ${r.commitLineColor??r.lineColor};
|
|
stroke-dasharray: ${s?"4 2":"2"};
|
|
}
|
|
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${s?r.nodeBorder:r.commitLabelColor}; ${s?`font-weight:${r.noteFontWeight};`:""}}
|
|
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${s?"transparent":r.commitLabelBackground}; opacity: ${s?"":.5}; }
|
|
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
|
|
.tag-label-bkg { fill: ${s?r.mainBkg:r.tagLabelBackground}; stroke: ${s?r.nodeBorder:r.tagLabelBorder}; ${s?`filter:${r.dropShadow}`:""} }
|
|
.tag-hole { fill: ${r.textColor}; }
|
|
|
|
.commit-merge {
|
|
stroke: ${s?r.mainBkg:r.primaryColor};
|
|
fill: ${s?r.mainBkg:r.primaryColor};
|
|
}
|
|
.commit-reverse {
|
|
stroke: ${s?r.mainBkg:r.primaryColor};
|
|
fill: ${s?r.mainBkg:r.primaryColor};
|
|
stroke-width: ${s?r.strokeWidth:3};
|
|
}
|
|
.commit-highlight-outer {
|
|
}
|
|
.commit-highlight-inner {
|
|
stroke: ${s?r.mainBkg:r.primaryColor};
|
|
fill: ${s?r.mainBkg:r.primaryColor};
|
|
}
|
|
|
|
.arrow {
|
|
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
stroke-width: ${KBr.has(a)?r.strokeWidth:8};
|
|
stroke-linecap: round;
|
|
fill: none
|
|
}
|
|
.gitTitleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: ${r.textColor};
|
|
}
|
|
`},"getStyles"),JBr=Jci});var ZBr={};is(ZBr,{diagram:()=>Qci});var Qci,eFr=ae(()=>{"use strict";UBr();Nct();YBr();QBr();Qci={parser:zBr,db:uCe,renderer:qBr,styles:JBr}});var Bct,nFr,iFr=ae(()=>{"use strict";Bct=(function(){var r=i(function(H,re,Z,X){for(Z=Z||{},X=H.length;X--;Z[H[X]]=re);return Z},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],a=[1,26],s=[1,27],l=[1,28],h=[1,29],f=[1,30],d=[1,31],m=[1,32],b=[1,33],v=[1,34],T=[1,9],C=[1,10],E=[1,11],S=[1,12],R=[1,13],L=[1,14],_=[1,15],I=[1,16],N=[1,19],B=[1,20],O=[1,21],P=[1,22],$=[1,23],V=[1,25],Y=[1,35],Q={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:i(function(re,Z,X,te,U,ne,se){var he=ne.length-1;switch(U){case 1:return ne[he-1];case 2:this.$=[];break;case 3:ne[he-1].push(ne[he]),this.$=ne[he-1];break;case 4:case 5:this.$=ne[he];break;case 6:case 7:this.$=[];break;case 8:te.setWeekday("monday");break;case 9:te.setWeekday("tuesday");break;case 10:te.setWeekday("wednesday");break;case 11:te.setWeekday("thursday");break;case 12:te.setWeekday("friday");break;case 13:te.setWeekday("saturday");break;case 14:te.setWeekday("sunday");break;case 15:te.setWeekend("friday");break;case 16:te.setWeekend("saturday");break;case 17:te.setDateFormat(ne[he].substr(11)),this.$=ne[he].substr(11);break;case 18:te.enableInclusiveEndDates(),this.$=ne[he].substr(18);break;case 19:te.TopAxis(),this.$=ne[he].substr(8);break;case 20:te.setAxisFormat(ne[he].substr(11)),this.$=ne[he].substr(11);break;case 21:te.setTickInterval(ne[he].substr(13)),this.$=ne[he].substr(13);break;case 22:te.setExcludes(ne[he].substr(9)),this.$=ne[he].substr(9);break;case 23:te.setIncludes(ne[he].substr(9)),this.$=ne[he].substr(9);break;case 24:te.setTodayMarker(ne[he].substr(12)),this.$=ne[he].substr(12);break;case 27:te.setDiagramTitle(ne[he].substr(6)),this.$=ne[he].substr(6);break;case 28:this.$=ne[he].trim(),te.setAccTitle(this.$);break;case 29:case 30:this.$=ne[he].trim(),te.setAccDescription(this.$);break;case 31:te.addSection(ne[he].substr(8)),this.$=ne[he].substr(8);break;case 33:te.addTask(ne[he-1],ne[he]),this.$="task";break;case 34:this.$=ne[he-1],te.setClickEvent(ne[he-1],ne[he],null);break;case 35:this.$=ne[he-2],te.setClickEvent(ne[he-2],ne[he-1],ne[he]);break;case 36:this.$=ne[he-2],te.setClickEvent(ne[he-2],ne[he-1],null),te.setLink(ne[he-2],ne[he]);break;case 37:this.$=ne[he-3],te.setClickEvent(ne[he-3],ne[he-2],ne[he-1]),te.setLink(ne[he-3],ne[he]);break;case 38:this.$=ne[he-2],te.setClickEvent(ne[he-2],ne[he],null),te.setLink(ne[he-2],ne[he-1]);break;case 39:this.$=ne[he-3],te.setClickEvent(ne[he-3],ne[he-1],ne[he]),te.setLink(ne[he-3],ne[he-2]);break;case 40:this.$=ne[he-1],te.setLink(ne[he-1],ne[he]);break;case 41:case 47:this.$=ne[he-1]+" "+ne[he];break;case 42:case 43:case 45:this.$=ne[he-2]+" "+ne[he-1]+" "+ne[he];break;case 44:case 46:this.$=ne[he-3]+" "+ne[he-2]+" "+ne[he-1]+" "+ne[he];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},r(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:a,13:s,14:l,15:h,16:f,17:d,18:m,19:18,20:b,21:v,22:T,23:C,24:E,25:S,26:R,27:L,28:_,29:I,30:N,31:B,33:O,35:P,36:$,37:24,38:V,40:Y},r(t,[2,7],{1:[2,1]}),r(t,[2,3]),{9:36,11:17,12:a,13:s,14:l,15:h,16:f,17:d,18:m,19:18,20:b,21:v,22:T,23:C,24:E,25:S,26:R,27:L,28:_,29:I,30:N,31:B,33:O,35:P,36:$,37:24,38:V,40:Y},r(t,[2,5]),r(t,[2,6]),r(t,[2,17]),r(t,[2,18]),r(t,[2,19]),r(t,[2,20]),r(t,[2,21]),r(t,[2,22]),r(t,[2,23]),r(t,[2,24]),r(t,[2,25]),r(t,[2,26]),r(t,[2,27]),{32:[1,37]},{34:[1,38]},r(t,[2,30]),r(t,[2,31]),r(t,[2,32]),{39:[1,39]},r(t,[2,8]),r(t,[2,9]),r(t,[2,10]),r(t,[2,11]),r(t,[2,12]),r(t,[2,13]),r(t,[2,14]),r(t,[2,15]),r(t,[2,16]),{41:[1,40],43:[1,41]},r(t,[2,4]),r(t,[2,28]),r(t,[2,29]),r(t,[2,33]),r(t,[2,34],{42:[1,42],43:[1,43]}),r(t,[2,40],{41:[1,44]}),r(t,[2,35],{43:[1,45]}),r(t,[2,36]),r(t,[2,38],{42:[1,46]}),r(t,[2,37]),r(t,[2,39])],defaultActions:{},parseError:i(function(re,Z){if(Z.recoverable)this.trace(re);else{var X=new Error(re);throw X.hash=Z,X}},"parseError"),parse:i(function(re){var Z=this,X=[0],te=[],U=[null],ne=[],se=this.table,he="",le=0,pe=0,ge=0,we=2,Ae=1,ve=ne.slice.call(arguments,1),Ie=Object.create(this.lexer),De={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(De.yy[Be]=this.yy[Be]);Ie.setInput(re,De.yy),De.yy.lexer=Ie,De.yy.parser=this,typeof Ie.yylloc>"u"&&(Ie.yylloc={});var Fe=Ie.yylloc;ne.push(Fe);var ze=Ie.options&&Ie.options.ranges;typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function vt(Ye){X.length=X.length-2*Ye,U.length=U.length-Ye,ne.length=ne.length-Ye}i(vt,"popStack");function lt(){var Ye;return Ye=te.pop()||Ie.lex()||Ae,typeof Ye!="number"&&(Ye instanceof Array&&(te=Ye,Ye=te.pop()),Ye=Z.symbols_[Ye]||Ye),Ye}i(lt,"lex");for(var Ft,pr,tr,Mt,ot,it,mt={},Rt,pt,gt,ut;;){if(tr=X[X.length-1],this.defaultActions[tr]?Mt=this.defaultActions[tr]:((Ft===null||typeof Ft>"u")&&(Ft=lt()),Mt=se[tr]&&se[tr][Ft]),typeof Mt>"u"||!Mt.length||!Mt[0]){var Yt="";ut=[];for(Rt in se[tr])this.terminals_[Rt]&&Rt>we&&ut.push("'"+this.terminals_[Rt]+"'");Ie.showPosition?Yt="Parse error on line "+(le+1)+`:
|
|
`+Ie.showPosition()+`
|
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[Ft]||Ft)+"'":Yt="Parse error on line "+(le+1)+": Unexpected "+(Ft==Ae?"end of input":"'"+(this.terminals_[Ft]||Ft)+"'"),this.parseError(Yt,{text:Ie.match,token:this.terminals_[Ft]||Ft,line:Ie.yylineno,loc:Fe,expected:ut})}if(Mt[0]instanceof Array&&Mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+tr+", token: "+Ft);switch(Mt[0]){case 1:X.push(Ft),U.push(Ie.yytext),ne.push(Ie.yylloc),X.push(Mt[1]),Ft=null,pr?(Ft=pr,pr=null):(pe=Ie.yyleng,he=Ie.yytext,le=Ie.yylineno,Fe=Ie.yylloc,ge>0&&ge--);break;case 2:if(pt=this.productions_[Mt[1]][1],mt.$=U[U.length-pt],mt._$={first_line:ne[ne.length-(pt||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(pt||1)].first_column,last_column:ne[ne.length-1].last_column},ze&&(mt._$.range=[ne[ne.length-(pt||1)].range[0],ne[ne.length-1].range[1]]),it=this.performAction.apply(mt,[he,pe,le,De.yy,Mt[1],U,ne].concat(ve)),typeof it<"u")return it;pt&&(X=X.slice(0,-1*pt*2),U=U.slice(0,-1*pt),ne=ne.slice(0,-1*pt)),X.push(this.productions_[Mt[1]][0]),U.push(mt.$),ne.push(mt._$),gt=se[X[X.length-2]][X[X.length-1]],X.push(gt);break;case 3:return!0}}return!0},"parse")},q=(function(){var H={EOF:1,parseError:i(function(Z,X){if(this.yy.parser)this.yy.parser.parseError(Z,X);else throw new Error(Z)},"parseError"),setInput:i(function(re,Z){return this.yy=Z||this.yy||{},this._input=re,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var re=this._input[0];this.yytext+=re,this.yyleng++,this.offset++,this.match+=re,this.matched+=re;var Z=re.match(/(?:\r\n?|\n).*/g);return Z?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),re},"input"),unput:i(function(re){var Z=re.length,X=re.split(/(?:\r\n?|\n)/g);this._input=re+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Z),this.offset-=Z;var te=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),X.length-1&&(this.yylineno-=X.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:X?(X.length===te.length?this.yylloc.first_column:0)+te[te.length-X.length].length-X[0].length:this.yylloc.first_column-Z},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-Z]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(re){this.unput(this.match.slice(re))},"less"),pastInput:i(function(){var re=this.matched.substr(0,this.matched.length-this.match.length);return(re.length>20?"...":"")+re.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var re=this.match;return re.length<20&&(re+=this._input.substr(0,20-re.length)),(re.substr(0,20)+(re.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var re=this.pastInput(),Z=new Array(re.length+1).join("-");return re+this.upcomingInput()+`
|
|
`+Z+"^"},"showPosition"),test_match:i(function(re,Z){var X,te,U;if(this.options.backtrack_lexer&&(U={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(U.yylloc.range=this.yylloc.range.slice(0))),te=re[0].match(/(?:\r\n?|\n).*/g),te&&(this.yylineno+=te.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:te?te[te.length-1].length-te[te.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+re[0].length},this.yytext+=re[0],this.match+=re[0],this.matches=re,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(re[0].length),this.matched+=re[0],X=this.performAction.call(this,this.yy,this,Z,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var ne in U)this[ne]=U[ne];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var re,Z,X,te;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),ne=0;ne<U.length;ne++)if(X=this._input.match(this.rules[U[ne]]),X&&(!Z||X[0].length>Z[0].length)){if(Z=X,te=ne,this.options.backtrack_lexer){if(re=this.test_match(X,U[ne]),re!==!1)return re;if(this._backtrack){Z=!1;continue}else return!1}else if(!this.options.flex)break}return Z?(re=this.test_match(Z,U[te]),re!==!1?re:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var Z=this.next();return Z||this.lex()},"lex"),begin:i(function(Z){this.conditionStack.push(Z)},"begin"),popState:i(function(){var Z=this.conditionStack.length-1;return Z>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(Z){return Z=this.conditionStack.length-1-Math.abs(Z||0),Z>=0?this.conditionStack[Z]:"INITIAL"},"topState"),pushState:i(function(Z){this.begin(Z)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(Z,X,te,U){var ne=U;switch(te){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;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 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),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,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\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,51,52],inclusive:!0}}};return H})();Q.lexer=q;function W(){this.yy={}}return i(W,"Parser"),W.prototype=Q,Q.Parser=W,new W})();Bct.parser=Bct;nFr=Bct});var aFr=Zv((Fct,$ct)=>{"use strict";(function(r,t){typeof Fct=="object"&&typeof $ct<"u"?$ct.exports=t():typeof define=="function"&&define.amd?define(t):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=t()})(Fct,(function(){"use strict";var r="day";return function(t,a,s){var l=i(function(d){return d.add(4-d.isoWeekday(),r)},"a"),h=a.prototype;h.isoWeekYear=function(){return l(this).year()},h.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),r);var m,b,v,T,C=l(this),E=(m=this.isoWeekYear(),b=this.$u,v=(b?s.utc:s)().year(m).startOf("year"),T=4-v.isoWeekday(),v.isoWeekday()>4&&(T+=7),v.add(T,r));return C.diff(E,"week")+1},h.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var f=h.startOf;h.startOf=function(d,m){var b=this.$utils(),v=!!b.u(m)||m;return b.p(d)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):f.bind(this)(d,m)}}}))});var sFr=Zv((Gct,jct)=>{"use strict";(function(r,t){typeof Gct=="object"&&typeof jct<"u"?jct.exports=t():typeof define=="function"&&define.amd?define(t):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=t()})(Gct,(function(){"use strict";var r={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,s=/\d\d/,l=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,f={},d=i(function(S){return(S=+S)+(S>68?1900:2e3)},"a"),m=i(function(S){return function(R){this[S]=+R}},"f"),b=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function(R){if(!R||R==="Z")return 0;var L=R.match(/([+-]|\d\d)/g),_=60*L[1]+(+L[2]||0);return _===0?0:L[0]==="+"?-_:_})(S)}],v=i(function(S){var R=f[S];return R&&(R.indexOf?R:R.s.concat(R.f))},"u"),T=i(function(S,R){var L,_=f.meridiem;if(_){for(var I=1;I<=24;I+=1)if(S.indexOf(_(I,0,R))>-1){L=I>12;break}}else L=S===(R?"pm":"PM");return L},"d"),C={A:[h,function(S){this.afternoon=T(S,!1)}],a:[h,function(S){this.afternoon=T(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[l,m("seconds")],ss:[l,m("seconds")],m:[l,m("minutes")],mm:[l,m("minutes")],H:[l,m("hours")],h:[l,m("hours")],HH:[l,m("hours")],hh:[l,m("hours")],D:[l,m("day")],DD:[s,m("day")],Do:[h,function(S){var R=f.ordinal,L=S.match(/\d+/);if(this.day=L[0],R)for(var _=1;_<=31;_+=1)R(_).replace(/\[|\]/g,"")===S&&(this.day=_)}],w:[l,m("week")],ww:[s,m("week")],M:[l,m("month")],MM:[s,m("month")],MMM:[h,function(S){var R=v("months"),L=(v("monthsShort")||R.map((function(_){return _.slice(0,3)}))).indexOf(S)+1;if(L<1)throw new Error;this.month=L%12||L}],MMMM:[h,function(S){var R=v("months").indexOf(S)+1;if(R<1)throw new Error;this.month=R%12||R}],Y:[/[+-]?\d+/,m("year")],YY:[s,function(S){this.year=d(S)}],YYYY:[/\d{4}/,m("year")],Z:b,ZZ:b};function E(S){var R,L;R=S,L=f&&f.formats;for(var _=(S=R.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,Y,Q){var q=Q&&Q.toUpperCase();return Y||L[Q]||r[Q]||L[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(W,H,re){return H||re.slice(1)}))}))).match(t),I=_.length,N=0;N<I;N+=1){var B=_[N],O=C[B],P=O&&O[0],$=O&&O[1];_[N]=$?{regex:P,parser:$}:B.replace(/^\[|\]$/g,"")}return function(V){for(var Y={},Q=0,q=0;Q<I;Q+=1){var W=_[Q];if(typeof W=="string")q+=W.length;else{var H=W.regex,re=W.parser,Z=V.slice(q),X=H.exec(Z)[0];re.call(Y,X),V=V.replace(X,"")}}return(function(te){var U=te.afternoon;if(U!==void 0){var ne=te.hours;U?ne<12&&(te.hours+=12):ne===12&&(te.hours=0),delete te.afternoon}})(Y),Y}}return i(E,"l"),function(S,R,L){L.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(d=S.parseTwoDigitYear);var _=R.prototype,I=_.parse;_.parse=function(N){var B=N.date,O=N.utc,P=N.args;this.$u=O;var $=P[1];if(typeof $=="string"){var V=P[2]===!0,Y=P[3]===!0,Q=V||Y,q=P[2];Y&&(q=P[2]),f=this.$locale(),!V&&q&&(f=L.Ls[q]),this.$d=(function(Z,X,te,U){try{if(["x","X"].indexOf(X)>-1)return new Date((X==="X"?1e3:1)*Z);var ne=E(X)(Z),se=ne.year,he=ne.month,le=ne.day,pe=ne.hours,ge=ne.minutes,we=ne.seconds,Ae=ne.milliseconds,ve=ne.zone,Ie=ne.week,De=new Date,Be=le||(se||he?1:De.getDate()),Fe=se||De.getFullYear(),ze=0;se&&!he||(ze=he>0?he-1:De.getMonth());var vt,lt=pe||0,Ft=ge||0,pr=we||0,tr=Ae||0;return ve?new Date(Date.UTC(Fe,ze,Be,lt,Ft,pr,tr+60*ve.offset*1e3)):te?new Date(Date.UTC(Fe,ze,Be,lt,Ft,pr,tr)):(vt=new Date(Fe,ze,Be,lt,Ft,pr,tr),Ie&&(vt=U(vt).week(Ie).toDate()),vt)}catch{return new Date("")}})(B,$,O,L),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),Q&&B!=this.format($)&&(this.$d=new Date("")),f={}}else if($ instanceof Array)for(var W=$.length,H=1;H<=W;H+=1){P[1]=$[H-1];var re=L.apply(this,P);if(re.isValid()){this.$d=re.$d,this.$L=re.$L,this.init();break}H===W&&(this.$d=new Date(""))}else I.call(this,N)}}}))});var oFr=Zv((zct,Uct)=>{"use strict";(function(r,t){typeof zct=="object"&&typeof Uct<"u"?Uct.exports=t():typeof define=="function"&&define.amd?define(t):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=t()})(zct,(function(){"use strict";return function(r,t){var a=t.prototype,s=a.format;a.format=function(l){var h=this,f=this.$locale();if(!this.isValid())return s.bind(this)(l);var d=this.$utils(),m=(l||"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(b){switch(b){case"Q":return Math.ceil((h.$M+1)/3);case"Do":return f.ordinal(h.$D);case"gggg":return h.weekYear();case"GGGG":return h.isoWeekYear();case"wo":return f.ordinal(h.week(),"W");case"w":case"ww":return d.s(h.week(),b==="w"?1:2,"0");case"W":case"WW":return d.s(h.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return d.s(String(h.$H===0?24:h.$H),b==="k"?1:2,"0");case"X":return Math.floor(h.$d.getTime()/1e3);case"x":return h.$d.getTime();case"z":return"["+h.offsetName()+"]";case"zzz":return"["+h.offsetName("long")+"]";default:return b}}));return s.bind(this)(m)}}}))});function EFr(r,t,a){let s=!0;for(;s;)s=!1,a.forEach(function(l){let h="^\\s*"+l+"\\s*$",f=new RegExp(h);r[0].match(f)&&(t[l]=!0,r.shift(1),s=!0)})}var uFr,dx,hFr,fFr,dFr,lFr,JS,qct,Yct,Xct,vW,wW,Kct,Jct,mCe,xW,Qct,pFr,Zct,yW,Nae,eut,tut,yCe,Vct,rui,nui,iui,aui,sui,oui,lui,cui,uui,hui,fui,dui,pui,gui,mui,yui,gFr,bui,vui,wui,xui,Tui,kui,Cui,Eui,mFr,Sui,Aui,Rui,yFr,Lui,bFr,Wct,vFr,wFr,pCe,bW,_ui,Dui,Hct,gCe,N0,xFr,Iui,gB,Mui,cFr,Nui,TFr,Oui,kFr,Pui,Bui,CFr,SFr=ae(()=>{"use strict";uFr=e2(mte(),1),dx=e2(hbe(),1),hFr=e2(aFr(),1),fFr=e2(sFr(),1),dFr=e2(oFr(),1);Yn();ma();Ma();Au();dx.default.extend(hFr.default);dx.default.extend(fFr.default);dx.default.extend(dFr.default);lFr={friday:5,saturday:6},JS="",qct="",Xct="",vW=[],wW=[],Kct=new Map,Jct=[],mCe=[],xW="",Qct="",pFr=["active","done","crit","milestone","vert"],Zct=[],yW="",Nae=!1,eut=!1,tut="sunday",yCe="saturday",Vct=0,rui=i(function(){Jct=[],mCe=[],xW="",Zct=[],pCe=0,Hct=void 0,gCe=void 0,N0=[],JS="",qct="",Qct="",Yct=void 0,Xct="",vW=[],wW=[],Nae=!1,eut=!1,Vct=0,Kct=new Map,yW="",Ds(),tut="sunday",yCe="saturday"},"clear"),nui=i(function(r){yW=r},"setDiagramId"),iui=i(function(r){qct=r},"setAxisFormat"),aui=i(function(){return qct},"getAxisFormat"),sui=i(function(r){Yct=r},"setTickInterval"),oui=i(function(){return Yct},"getTickInterval"),lui=i(function(r){Xct=r},"setTodayMarker"),cui=i(function(){return Xct},"getTodayMarker"),uui=i(function(r){JS=r},"setDateFormat"),hui=i(function(){Nae=!0},"enableInclusiveEndDates"),fui=i(function(){return Nae},"endDatesAreInclusive"),dui=i(function(){eut=!0},"enableTopAxis"),pui=i(function(){return eut},"topAxisEnabled"),gui=i(function(r){Qct=r},"setDisplayMode"),mui=i(function(){return Qct},"getDisplayMode"),yui=i(function(){return JS},"getDateFormat"),gFr=i((r,t)=>{let a=t.toLowerCase().split(/[\s,]+/).filter(s=>s!=="");return[...new Set([...r,...a])]},"mergeTokens"),bui=i(function(r){vW=gFr(vW,r)},"setIncludes"),vui=i(function(){return vW},"getIncludes"),wui=i(function(r){wW=gFr(wW,r)},"setExcludes"),xui=i(function(){return wW},"getExcludes"),Tui=i(function(){return Kct},"getLinks"),kui=i(function(r){xW=r,Jct.push(r)},"addSection"),Cui=i(function(){return Jct},"getSections"),Eui=i(function(){let r=cFr(),t=10,a=0;for(;!r&&a<t;)r=cFr(),a++;return mCe=N0,mCe},"getTasks"),mFr=i(function(r,t,a,s){let l=r.format(t.trim()),h=r.format("YYYY-MM-DD");return s.includes(l)||s.includes(h)?!1:a.includes("weekends")&&(r.isoWeekday()===lFr[yCe]||r.isoWeekday()===lFr[yCe]+1)||a.includes(r.format("dddd").toLowerCase())?!0:a.includes(l)||a.includes(h)},"isInvalidDate"),Sui=i(function(r){tut=r},"setWeekday"),Aui=i(function(){return tut},"getWeekday"),Rui=i(function(r){yCe=r},"setWeekend"),yFr=i(function(r,t,a,s){if(!a.length||r.manualEndTime)return;let l;r.startTime instanceof Date?l=(0,dx.default)(r.startTime):l=(0,dx.default)(r.startTime,t,!0),l=l.add(1,"d");let h;r.endTime instanceof Date?h=(0,dx.default)(r.endTime):h=(0,dx.default)(r.endTime,t,!0);let[f,d]=Lui(l,h,t,a,s);r.endTime=f.toDate(),r.renderEndTime=d},"checkTaskDates"),Lui=i(function(r,t,a,s,l){let h=!1,f=null,d=t.add(1e4,"d");for(;r<=t;){if(h||(f=t.toDate()),h=mFr(r,a,s,l),h&&(t=t.add(1,"d"),t>d))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");r=r.add(1,"d")}return[t,f]},"fixTaskDates"),bFr=i(function(r,t){Pe.warn(`Gantt: the "${r}" statement references unknown task id(s): ${t.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),Wct=i(function(r,t,a){if(a=a.trim(),i(d=>{let m=d.trim();return m==="x"||m==="X"},"isTimestampFormat")(t)&&/^\d+$/.test(a))return new Date(Number(a));let h=/^after\s+(?<ids>[\d\w- ]+)/.exec(a);if(h!==null){let d=null,m=[],b=h.groups.ids.split(" ").filter(T=>T!=="");for(let T of b){let C=gB(T);if(C===void 0){m.push(T);continue}(!d||C.endTime>d.endTime)&&(d=C)}if(m.length>0&&bFr("after",m),d)return d.endTime;let v=new Date;return v.setHours(0,0,0,0),v}let f=(0,dx.default)(a,t.trim(),!0);if(f.isValid())return f.toDate();{Pe.debug("Invalid date:"+a),Pe.debug("With date format:"+t.trim());let d=new Date(a);if(d===void 0||isNaN(d.getTime())||d.getFullYear()<-1e4||d.getFullYear()>1e4)throw new Error("Invalid date:"+a);return d}},"getStartDate"),vFr=i(function(r){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(r.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),wFr=i(function(r,t,a,s=!1){a=a.trim();let h=/^until\s+(?<ids>[\d\w- ]+)/.exec(a);if(h!==null){let v=null,T=[],C=h.groups.ids.split(" ").filter(S=>S!=="");for(let S of C){let R=gB(S);if(R===void 0){T.push(S);continue}(!v||R.startTime<v.startTime)&&(v=R)}if(T.length>0&&bFr("until",T),v)return v.startTime;let E=new Date;return E.setHours(0,0,0,0),E}let f=(0,dx.default)(a,t.trim(),!0);if(f.isValid())return s&&(f=f.add(1,"d")),f.toDate();let d=(0,dx.default)(r),[m,b]=vFr(a);if(Number.isNaN(m))Pe.warn(`Gantt: "${a}" is neither a valid date for the "${t.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let v=d.add(m,b);v.isValid()&&(d=v)}return d.toDate()},"getEndDate"),pCe=0,bW=i(function(r){return r===void 0?(pCe=pCe+1,"task"+pCe):r},"parseId"),_ui=i(function(r,t){let a;t.substr(0,1)===":"?a=t.substr(1,t.length):a=t;let s=a.split(","),l={};EFr(s,l,pFr);for(let f=0;f<s.length;f++)s[f]=s[f].trim();let h="";switch(s.length){case 1:l.id=bW(),l.startTime=r.endTime,h=s[0];break;case 2:l.id=bW(),l.startTime=Wct(void 0,JS,s[0]),h=s[1];break;case 3:l.id=bW(s[0]),l.startTime=Wct(void 0,JS,s[1]),h=s[2];break;default:}return h&&(l.endTime=wFr(l.startTime,JS,h,Nae),l.manualEndTime=(0,dx.default)(h,"YYYY-MM-DD",!0).isValid(),yFr(l,JS,wW,vW)),l},"compileData"),Dui=i(function(r,t){let a;t.substr(0,1)===":"?a=t.substr(1,t.length):a=t;let s=a.split(","),l={};EFr(s,l,pFr);for(let h=0;h<s.length;h++)s[h]=s[h].trim();switch(s.length){case 1:l.id=bW(),l.startTime={type:"prevTaskEnd",id:r},l.endTime={data:s[0]};break;case 2:l.id=bW(),l.startTime={type:"getStartDate",startData:s[0]},l.endTime={data:s[1]};break;case 3:l.id=bW(s[0]),l.startTime={type:"getStartDate",startData:s[1]},l.endTime={data:s[2]};break;default:}return l},"parseData"),N0=[],xFr={},Iui=i(function(r,t){let a={section:xW,type:xW,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:r,classes:[]},s=Dui(gCe,t);a.raw.startTime=s.startTime,a.raw.endTime=s.endTime,a.id=s.id,a.prevTaskId=gCe,a.active=s.active,a.done=s.done,a.crit=s.crit,a.milestone=s.milestone,a.vert=s.vert,a.vert?a.order=-1:(a.order=Vct,Vct++);let l=N0.push(a);gCe=a.id,xFr[a.id]=l-1},"addTask"),gB=i(function(r){let t=xFr[r];return N0[t]},"findTaskById"),Mui=i(function(r,t){let a={section:xW,type:xW,description:r,task:r,classes:[]},s=_ui(Hct,t);a.startTime=s.startTime,a.endTime=s.endTime,a.id=s.id,a.active=s.active,a.done=s.done,a.crit=s.crit,a.milestone=s.milestone,a.vert=s.vert,Hct=a,mCe.push(a)},"addTaskOrg"),cFr=i(function(){let r=i(function(a){let s=N0[a],l="";switch(N0[a].raw.startTime.type){case"prevTaskEnd":{let h=gB(s.prevTaskId);s.startTime=h.endTime;break}case"getStartDate":l=Wct(void 0,JS,N0[a].raw.startTime.startData),l&&(N0[a].startTime=l);break}return N0[a].startTime&&(N0[a].endTime=wFr(N0[a].startTime,JS,N0[a].raw.endTime.data,Nae),N0[a].endTime&&(N0[a].processed=!0,N0[a].manualEndTime=(0,dx.default)(N0[a].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),yFr(N0[a],JS,wW,vW))),N0[a].processed},"compileTask"),t=!0;for(let[a,s]of N0.entries())r(a),t=t&&s.processed;return t},"compileTasks"),Nui=i(function(r,t){let a=t;er().securityLevel!=="loose"&&(a=(0,uFr.sanitizeUrl)(t)),r.split(",").forEach(function(s){gB(s)!==void 0&&(kFr(s,()=>{window.open(a,"_self")}),Kct.set(s,a))}),TFr(r,"clickable")},"setLink"),TFr=i(function(r,t){r.split(",").forEach(function(a){let s=gB(a);s!==void 0&&s.classes.push(t)})},"setClass"),Oui=i(function(r,t,a){if(er().securityLevel!=="loose"||t===void 0)return;let s=[];if(typeof a=="string"){s=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<s.length;h++){let f=s[h].trim();f.startsWith('"')&&f.endsWith('"')&&(f=f.substr(1,f.length-2)),s[h]=f}}s.length===0&&s.push(r),gB(r)!==void 0&&kFr(r,()=>{Va.runFunc(t,...s)})},"setClickFun"),kFr=i(function(r,t){Zct.push(function(){let a=yW?`${yW}-${r}`:r,s=document.querySelector(`[id="${a}"]`);s!==null&&s.addEventListener("click",function(){t()})},function(){let a=yW?`${yW}-${r}`:r,s=document.querySelector(`[id="${a}-text"]`);s!==null&&s.addEventListener("click",function(){t()})})},"pushFun"),Pui=i(function(r,t,a){r.split(",").forEach(function(s){Oui(s,t,a)}),TFr(r,"clickable")},"setClickEvent"),Bui=i(function(r){Zct.forEach(function(t){t(r)})},"bindFunctions"),CFr={getConfig:i(()=>er().gantt,"getConfig"),clear:rui,setDateFormat:uui,getDateFormat:yui,enableInclusiveEndDates:hui,endDatesAreInclusive:fui,enableTopAxis:dui,topAxisEnabled:pui,setAxisFormat:iui,getAxisFormat:aui,setTickInterval:sui,getTickInterval:oui,setTodayMarker:lui,getTodayMarker:cui,setAccTitle:Os,getAccTitle:Vs,setDiagramTitle:io,getDiagramTitle:Ks,setDiagramId:nui,setDisplayMode:gui,getDisplayMode:mui,setAccDescription:$s,getAccDescription:Ws,addSection:kui,getSections:Cui,getTasks:Eui,addTask:Iui,findTaskById:gB,addTaskOrg:Mui,setIncludes:bui,getIncludes:vui,setExcludes:wui,getExcludes:xui,setClickEvent:Pui,setLink:Nui,getLinks:Tui,bindFunctions:Bui,parseDuration:vFr,isInvalidDate:mFr,setWeekday:Sui,getWeekday:Aui,setWeekend:Rui};i(EFr,"getTaskTags")});var AFr=Zv((rut,nut)=>{"use strict";(function(r,t){typeof rut=="object"&&typeof nut<"u"?nut.exports=t():typeof define=="function"&&define.amd?define(t):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_duration=t()})(rut,(function(){"use strict";var r,t,a=1e3,s=6e4,l=36e5,h=864e5,f=31536e6,d=2628e6,m=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,b=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,v={years:f,months:d,days:h,hours:l,minutes:s,seconds:a,milliseconds:1,weeks:6048e5},T=i(function(B){return B instanceof I},"c"),C=i(function(B,O,P){return new I(B,P,O.$l)},"f"),E=i(function(B){return t.p(B)+"s"},"m"),S=i(function(B){return B<0},"l"),R=i(function(B){return S(B)?Math.ceil(B):Math.floor(B)},"$"),L=i(function(B){return Math.abs(B)},"y"),_=i(function(B,O){return B?S(B)?{negative:!0,format:""+L(B)+O}:{negative:!1,format:""+B+O}:{negative:!1,format:""}},"v"),I=(function(){function B(P,$,V){var Y=this;if(this.$d={},this.$l=V,P===void 0&&(this.$ms=0,this.parseFromMilliseconds()),$)return C(P*v[E($)],this);if(typeof P=="number")return this.$ms=P,this.parseFromMilliseconds(),this;if(typeof P=="object")return Object.keys(P).forEach((function(W){Y.$d[E(W)]=P[W]})),this.calMilliseconds(),this;if(typeof P=="string"){var Q=P.match(m);if(Q){var q=Q.slice(2).map((function(W){return W!=null?Number(W):0}));return this.$d.years=q[0],this.$d.months=q[1],this.$d.weeks=q[2],this.$d.days=q[3],this.$d.hours=q[4],this.$d.minutes=q[5],this.$d.seconds=q[6],this.calMilliseconds(),this}}return this}i(B,"l");var O=B.prototype;return O.calMilliseconds=function(){var P=this;this.$ms=Object.keys(this.$d).reduce((function($,V){return $+(P.$d[V]||0)*v[V]}),0)},O.parseFromMilliseconds=function(){var P=this.$ms;this.$d.years=R(P/f),P%=f,this.$d.months=R(P/d),P%=d,this.$d.days=R(P/h),P%=h,this.$d.hours=R(P/l),P%=l,this.$d.minutes=R(P/s),P%=s,this.$d.seconds=R(P/a),P%=a,this.$d.milliseconds=P},O.toISOString=function(){var P=_(this.$d.years,"Y"),$=_(this.$d.months,"M"),V=+this.$d.days||0;this.$d.weeks&&(V+=7*this.$d.weeks);var Y=_(V,"D"),Q=_(this.$d.hours,"H"),q=_(this.$d.minutes,"M"),W=this.$d.seconds||0;this.$d.milliseconds&&(W+=this.$d.milliseconds/1e3,W=Math.round(1e3*W)/1e3);var H=_(W,"S"),re=P.negative||$.negative||Y.negative||Q.negative||q.negative||H.negative,Z=Q.format||q.format||H.format?"T":"",X=(re?"-":"")+"P"+P.format+$.format+Y.format+Z+Q.format+q.format+H.format;return X==="P"||X==="-P"?"P0D":X},O.toJSON=function(){return this.toISOString()},O.format=function(P){var $=P||"YYYY-MM-DDTHH:mm:ss",V={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return $.replace(b,(function(Y,Q){return Q||String(V[Y])}))},O.as=function(P){return this.$ms/v[E(P)]},O.get=function(P){var $=this.$ms,V=E(P);return V==="milliseconds"?$%=1e3:$=V==="weeks"?R($/v[V]):this.$d[V],$||0},O.add=function(P,$,V){var Y;return Y=$?P*v[E($)]:T(P)?P.$ms:C(P,this).$ms,C(this.$ms+Y*(V?-1:1),this)},O.subtract=function(P,$){return this.add(P,$,!0)},O.locale=function(P){var $=this.clone();return $.$l=P,$},O.clone=function(){return C(this.$ms,this)},O.humanize=function(P){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!P)},O.valueOf=function(){return this.asMilliseconds()},O.milliseconds=function(){return this.get("milliseconds")},O.asMilliseconds=function(){return this.as("milliseconds")},O.seconds=function(){return this.get("seconds")},O.asSeconds=function(){return this.as("seconds")},O.minutes=function(){return this.get("minutes")},O.asMinutes=function(){return this.as("minutes")},O.hours=function(){return this.get("hours")},O.asHours=function(){return this.as("hours")},O.days=function(){return this.get("days")},O.asDays=function(){return this.as("days")},O.weeks=function(){return this.get("weeks")},O.asWeeks=function(){return this.as("weeks")},O.months=function(){return this.get("months")},O.asMonths=function(){return this.as("months")},O.years=function(){return this.get("years")},O.asYears=function(){return this.as("years")},B})(),N=i(function(B,O,P){return B.add(O.years()*P,"y").add(O.months()*P,"M").add(O.days()*P,"d").add(O.hours()*P,"h").add(O.minutes()*P,"m").add(O.seconds()*P,"s").add(O.milliseconds()*P,"ms")},"p");return function(B,O,P){r=P,t=P().$utils(),P.duration=function(Y,Q){var q=P.locale();return C(Y,{$l:q},Q)},P.isDuration=T;var $=O.prototype.add,V=O.prototype.subtract;O.prototype.add=function(Y,Q){return T(Y)?N(this,Y,1):$.bind(this)(Y,Q)},O.prototype.subtract=function(Y,Q){return T(Y)?N(this,Y,-1):V.bind(this)(Y,Q)}}}))});var TW,LFr,Fui,RFr,$ui,b8,iut,Gui,_Fr,DFr=ae(()=>{"use strict";TW=e2(hbe(),1),LFr=e2(AFr(),1);Yn();zo();nl();ma();$h();TW.default.extend(LFr.default);Fui=i(function(){Pe.debug("Something is calling, setConf, remove the call")},"setConf"),RFr={monday:ZL,tuesday:s2e,wednesday:o2e,thursday:iS,friday:l2e,saturday:c2e,sunday:R4},$ui=i((r,t)=>{let a=[...r].map(()=>-1/0),s=[...r].sort((h,f)=>h.startTime-f.startTime||h.order-f.order),l=0;for(let h of s)for(let f=0;f<a.length;f++)if(h.startTime>=a[f]){a[f]=h.endTime,h.order=f+t,f>l&&(l=f);break}return l},"getMaxIntersections"),iut=1e4,Gui=i(function(r,t,a,s){let l=er().gantt;s.db.setDiagramId(t);let h=er().securityLevel,f;h==="sandbox"&&(f=mn("#i"+t));let d=h==="sandbox"?mn(f.nodes()[0].contentDocument.body):mn("body"),m=h==="sandbox"?f.nodes()[0].contentDocument:document,b=m.getElementById(t);b8=b.parentElement.offsetWidth,b8===void 0&&(b8=1200),l.useWidth!==void 0&&(b8=l.useWidth);let v=s.db.getTasks(),T=v.filter(Q=>!Q.vert),C=[];for(let Q of T)C.push(Q.type);C=Y(C);let E={},S=2*l.topPadding;if(s.db.getDisplayMode()==="compact"||l.displayMode==="compact"){let Q={};for(let W of T)Q[W.section]===void 0?Q[W.section]=[W]:Q[W.section].push(W);let q=0;for(let W of Object.keys(Q)){let H=$ui(Q[W],q)+1;q+=H,S+=H*(l.barHeight+l.barGap),E[W]=H}}else{S+=T.length*(l.barHeight+l.barGap);for(let Q of C)E[Q]=T.filter(q=>q.type===Q).length}b.setAttribute("viewBox","0 0 "+b8+" "+S);let R=d.select(`[id="${t}"]`),L=f2e().domain([yve(v,function(Q){return Q.startTime}),mve(v,function(Q){return Q.endTime})]).rangeRound([0,b8-l.leftPadding-l.rightPadding]);function _(Q,q){let W=Q.startTime,H=q.startTime,re=0;return W>H?re=1:W<H&&(re=-1),re}i(_,"taskCompare"),v.sort(_),I(v,b8,S),wl(R,S,b8,l.useMaxWidth),R.append("text").text(s.db.getDiagramTitle()).attr("x",b8/2).attr("y",l.titleTopMargin).attr("class","titleText");function I(Q,q,W){let H=l.barHeight,re=H+l.barGap,Z=l.topPadding,X=l.leftPadding,te=A4().domain([0,C.length]).range(["#00B9FA","#F95002"]).interpolate(RXe);B(re,Z,X,q,W,Q,s.db.getExcludes(),s.db.getIncludes()),P(X,Z,q,W),N(Q,re,Z,X,H,te,q,W),$(re,Z,X,H,te),V(X,Z,q,W)}i(I,"makeGantt");function N(Q,q,W,H,re,Z,X){Q.sort((pe,ge)=>pe.vert===ge.vert?0:pe.vert?1:-1);let te=Q.filter(pe=>!pe.vert),ne=[...new Set(te.map(pe=>pe.order))].map(pe=>te.find(ge=>ge.order===pe));R.append("g").selectAll("rect").data(ne).enter().append("rect").attr("x",0).attr("y",function(pe,ge){return ge=pe.order,ge*q+W-2}).attr("width",function(){return X-l.rightPadding/2}).attr("height",q).attr("class",function(pe){for(let[ge,we]of C.entries())if(pe.type===we)return"section section"+ge%l.numberSectionStyles;return"section section0"}).enter();let se=R.append("g").selectAll("rect").data(Q).enter(),he=s.db.getLinks();if(se.append("rect").attr("id",function(pe){return t+"-"+pe.id}).attr("rx",3).attr("ry",3).attr("x",function(pe){return pe.milestone?L(pe.startTime)+H+.5*(L(pe.endTime)-L(pe.startTime))-.5*re:L(pe.startTime)+H}).attr("y",function(pe,ge){return ge=pe.order,pe.vert?l.gridLineStartPadding:ge*q+W}).attr("width",function(pe){return pe.milestone?re:pe.vert?.08*re:L(pe.renderEndTime||pe.endTime)-L(pe.startTime)}).attr("height",function(pe){return pe.vert?te.length*(l.barHeight+l.barGap)+l.barHeight*2:re}).attr("transform-origin",function(pe,ge){return ge=pe.order,(L(pe.startTime)+H+.5*(L(pe.endTime)-L(pe.startTime))).toString()+"px "+(ge*q+W+.5*re).toString()+"px"}).attr("class",function(pe){let ge="task",we="";pe.classes.length>0&&(we=pe.classes.join(" "));let Ae=0;for(let[Ie,De]of C.entries())pe.type===De&&(Ae=Ie%l.numberSectionStyles);let ve="";return pe.active?pe.crit?ve+=" activeCrit":ve=" active":pe.done?pe.crit?ve=" doneCrit":ve=" done":pe.crit&&(ve+=" crit"),ve.length===0&&(ve=" task"),pe.milestone&&(ve=" milestone "+ve),pe.vert&&(ve=" vert "+ve),ve+=Ae,ve+=" "+we,ge+ve}),se.append("text").attr("id",function(pe){return t+"-"+pe.id+"-text"}).text(function(pe){return pe.task}).attr("font-size",l.fontSize).attr("x",function(pe){let ge=L(pe.startTime),we=L(pe.renderEndTime||pe.endTime);if(pe.milestone&&(ge+=.5*(L(pe.endTime)-L(pe.startTime))-.5*re,we=ge+re),pe.vert)return L(pe.startTime)+H;let Ae=this.getBBox().width;return Ae>we-ge?we+Ae+1.5*l.leftPadding>X?ge+H-5:we+H+5:(we-ge)/2+ge+H}).attr("y",function(pe,ge){return pe.vert?l.gridLineStartPadding+te.length*(l.barHeight+l.barGap)+60:(ge=pe.order,ge*q+l.barHeight/2+(l.fontSize/2-2)+W)}).attr("text-height",re).attr("class",function(pe){let ge=L(pe.startTime),we=L(pe.endTime);pe.milestone&&(we=ge+re);let Ae=this.getBBox().width,ve="";pe.classes.length>0&&(ve=pe.classes.join(" "));let Ie=0;for(let[Be,Fe]of C.entries())pe.type===Fe&&(Ie=Be%l.numberSectionStyles);let De="";return pe.active&&(pe.crit?De="activeCritText"+Ie:De="activeText"+Ie),pe.done?pe.crit?De=De+" doneCritText"+Ie:De=De+" doneText"+Ie:pe.crit&&(De=De+" critText"+Ie),pe.milestone&&(De+=" milestoneText"),pe.vert&&(De+=" vertText"),Ae>we-ge?we+Ae+1.5*l.leftPadding>X?ve+" taskTextOutsideLeft taskTextOutside"+Ie+" "+De:ve+" taskTextOutsideRight taskTextOutside"+Ie+" "+De+" width-"+Ae:ve+" taskText taskText"+Ie+" "+De+" width-"+Ae}),er().securityLevel==="sandbox"){let pe;pe=mn("#i"+t);let ge=pe.nodes()[0].contentDocument;se.filter(function(we){return he.has(we.id)}).each(function(we){var Ae=ge.querySelector("#"+CSS.escape(t+"-"+we.id)),ve=ge.querySelector("#"+CSS.escape(t+"-"+we.id+"-text"));let Ie=Ae.parentNode;var De=ge.createElement("a");De.setAttribute("xlink:href",he.get(we.id)),De.setAttribute("target","_top"),Ie.appendChild(De),De.appendChild(Ae),De.appendChild(ve)})}}i(N,"drawRects");function B(Q,q,W,H,re,Z,X,te){if(X.length===0&&te.length===0)return;let U,ne;for(let{startTime:we,endTime:Ae}of Z)(U===void 0||we<U)&&(U=we),(ne===void 0||Ae>ne)&&(ne=Ae);if(!U||!ne)return;if((0,TW.default)(ne).diff((0,TW.default)(U),"year")>5){Pe.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let se=s.db.getDateFormat(),he=[],le=null,pe=(0,TW.default)(U);for(;pe.valueOf()<=ne;)s.db.isInvalidDate(pe,se,X,te)?le?le.end=pe:le={start:pe,end:pe}:le&&(he.push(le),le=null),pe=pe.add(1,"d");R.append("g").selectAll("rect").data(he).enter().append("rect").attr("id",we=>t+"-exclude-"+we.start.format("YYYY-MM-DD")).attr("x",we=>L(we.start.startOf("day"))+W).attr("y",l.gridLineStartPadding).attr("width",we=>L(we.end.endOf("day"))-L(we.start.startOf("day"))).attr("height",re-q-l.gridLineStartPadding).attr("transform-origin",function(we,Ae){return(L(we.start)+W+.5*(L(we.end)-L(we.start))).toString()+"px "+(Ae*Q+.5*re).toString()+"px"}).attr("class","exclude-range")}i(B,"drawExcludeDays");function O(Q,q,W,H){if(W<=0||Q>q)return 1/0;let re=q-Q,Z=TW.default.duration({[H??"day"]:W}).asMilliseconds();return Z<=0?1/0:Math.ceil(re/Z)}i(O,"getEstimatedTickCount");function P(Q,q,W,H){let re=s.db.getDateFormat(),Z=s.db.getAxisFormat(),X;Z?X=Z:re==="D"?X="%d":X=l.axisFormat??"%Y-%m-%d";let te=cYe(L).tickSize(-H+q+l.gridLineStartPadding).tickFormat(kO(X)),ne=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||l.tickInterval);if(ne!==null){let se=parseInt(ne[1],10);if(isNaN(se)||se<=0)Pe.warn(`Invalid tick interval value: "${ne[1]}". Skipping custom tick interval.`);else{let he=ne[2],le=s.db.getWeekday()||l.weekday,pe=L.domain(),ge=pe[0],we=pe[1],Ae=O(ge,we,se,he);if(Ae>iut)Pe.warn(`The tick interval "${se}${he}" would generate ${Ae} ticks, which exceeds the maximum allowed (${iut}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(he){case"millisecond":te.ticks(rS.every(se));break;case"second":te.ticks(Jw.every(se));break;case"minute":te.ticks(LA.every(se));break;case"hour":te.ticks(_A.every(se));break;case"day":te.ticks($T.every(se));break;case"week":te.ticks(RFr[le].every(se));break;case"month":te.ticks(DA.every(se));break}}}if(R.append("g").attr("class","grid").attr("transform","translate("+Q+", "+(H-50)+")").call(te).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||l.topAxis){let se=lYe(L).tickSize(-H+q+l.gridLineStartPadding).tickFormat(kO(X));if(ne!==null){let he=parseInt(ne[1],10);if(isNaN(he)||he<=0)Pe.warn(`Invalid tick interval value: "${ne[1]}". Skipping custom tick interval.`);else{let le=ne[2],pe=s.db.getWeekday()||l.weekday,ge=L.domain(),we=ge[0],Ae=ge[1];if(O(we,Ae,he,le)<=iut)switch(le){case"millisecond":se.ticks(rS.every(he));break;case"second":se.ticks(Jw.every(he));break;case"minute":se.ticks(LA.every(he));break;case"hour":se.ticks(_A.every(he));break;case"day":se.ticks($T.every(he));break;case"week":se.ticks(RFr[pe].every(he));break;case"month":se.ticks(DA.every(he));break}}}R.append("g").attr("class","grid").attr("transform","translate("+Q+", "+q+")").call(se).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}i(P,"makeGrid");function $(Q,q){let W=0,H=Object.keys(E).map(re=>[re,E[re]]);R.append("g").selectAll("text").data(H).enter().append(function(re){let Z=re[0].split(Xn.lineBreakRegex),X=-(Z.length-1)/2,te=m.createElementNS("http://www.w3.org/2000/svg","text");te.setAttribute("dy",X+"em");for(let[U,ne]of Z.entries()){let se=m.createElementNS("http://www.w3.org/2000/svg","tspan");se.setAttribute("alignment-baseline","central"),se.setAttribute("x","10"),U>0&&se.setAttribute("dy","1em"),se.textContent=ne,te.appendChild(se)}return te}).attr("x",10).attr("y",function(re,Z){if(Z>0)for(let X=0;X<Z;X++)return W+=H[Z-1][1],re[1]*Q/2+W*Q+q;else return re[1]*Q/2+q}).attr("font-size",l.sectionFontSize).attr("class",function(re){for(let[Z,X]of C.entries())if(re[0]===X)return"sectionTitle sectionTitle"+Z%l.numberSectionStyles;return"sectionTitle"})}i($,"vertLabels");function V(Q,q,W,H){let re=s.db.getTodayMarker();if(re==="off")return;let Z=R.append("g").attr("class","today"),X=new Date,te=Z.append("line");te.attr("x1",L(X)+Q).attr("x2",L(X)+Q).attr("y1",l.titleTopMargin).attr("y2",H-l.titleTopMargin).attr("class","today"),re!==""&&te.attr("style",re.replace(/,/g,";"))}i(V,"drawToday");function Y(Q){let q={},W=[];for(let H=0,re=Q.length;H<re;++H)Object.prototype.hasOwnProperty.call(q,Q[H])||(q[Q[H]]=!0,W.push(Q[H]));return W}i(Y,"checkUnique")},"draw"),_Fr={setConf:Fui,draw:Gui}});var jui,IFr,MFr=ae(()=>{"use strict";jui=i(r=>`
|
|
.mermaid-main-font {
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
.exclude-range {
|
|
fill: ${r.excludeBkgColor};
|
|
}
|
|
|
|
.section {
|
|
stroke: none;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.section0 {
|
|
fill: ${r.sectionBkgColor};
|
|
}
|
|
|
|
.section2 {
|
|
fill: ${r.sectionBkgColor2};
|
|
}
|
|
|
|
.section1,
|
|
.section3 {
|
|
fill: ${r.altSectionBkgColor};
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.sectionTitle0 {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
.sectionTitle1 {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
.sectionTitle2 {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
.sectionTitle3 {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
.sectionTitle {
|
|
text-anchor: start;
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
|
|
/* Grid and axis */
|
|
|
|
.grid .tick {
|
|
stroke: ${r.gridColor};
|
|
opacity: 0.8;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
.grid .tick text {
|
|
font-family: ${r.fontFamily};
|
|
fill: ${r.textColor};
|
|
}
|
|
|
|
.grid path {
|
|
stroke-width: 0;
|
|
}
|
|
|
|
|
|
/* Today line */
|
|
|
|
.today {
|
|
fill: none;
|
|
stroke: ${r.todayLineColor};
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
|
|
/* Task styling */
|
|
|
|
/* Default task */
|
|
|
|
.task {
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.taskText {
|
|
text-anchor: middle;
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
.taskTextOutsideRight {
|
|
fill: ${r.taskTextDarkColor};
|
|
text-anchor: start;
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
.taskTextOutsideLeft {
|
|
fill: ${r.taskTextDarkColor};
|
|
text-anchor: end;
|
|
}
|
|
|
|
|
|
/* Special case clickable */
|
|
|
|
.task.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.taskText.clickable {
|
|
cursor: pointer;
|
|
fill: ${r.taskTextClickableColor} !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideLeft.clickable {
|
|
cursor: pointer;
|
|
fill: ${r.taskTextClickableColor} !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideRight.clickable {
|
|
cursor: pointer;
|
|
fill: ${r.taskTextClickableColor} !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
/* Specific task settings for the sections*/
|
|
|
|
.taskText0,
|
|
.taskText1,
|
|
.taskText2,
|
|
.taskText3 {
|
|
fill: ${r.taskTextColor};
|
|
}
|
|
|
|
.task0,
|
|
.task1,
|
|
.task2,
|
|
.task3 {
|
|
fill: ${r.taskBkgColor};
|
|
stroke: ${r.taskBorderColor};
|
|
}
|
|
|
|
.taskTextOutside0,
|
|
.taskTextOutside2
|
|
{
|
|
fill: ${r.taskTextOutsideColor};
|
|
}
|
|
|
|
.taskTextOutside1,
|
|
.taskTextOutside3 {
|
|
fill: ${r.taskTextOutsideColor};
|
|
}
|
|
|
|
|
|
/* Active task */
|
|
|
|
.active0,
|
|
.active1,
|
|
.active2,
|
|
.active3 {
|
|
fill: ${r.activeTaskBkgColor};
|
|
stroke: ${r.activeTaskBorderColor};
|
|
}
|
|
|
|
.activeText0,
|
|
.activeText1,
|
|
.activeText2,
|
|
.activeText3 {
|
|
fill: ${r.taskTextDarkColor} !important;
|
|
}
|
|
|
|
|
|
/* Completed task */
|
|
|
|
.done0,
|
|
.done1,
|
|
.done2,
|
|
.done3 {
|
|
stroke: ${r.doneTaskBorderColor};
|
|
fill: ${r.doneTaskBkgColor};
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneText0,
|
|
.doneText1,
|
|
.doneText2,
|
|
.doneText3 {
|
|
fill: ${r.taskTextDarkColor} !important;
|
|
}
|
|
|
|
/* Done task text displayed outside the bar sits against the diagram background,
|
|
not against the done-task bar, so it must use the outside/contrast color. */
|
|
.doneText0.taskTextOutsideLeft,
|
|
.doneText0.taskTextOutsideRight,
|
|
.doneText1.taskTextOutsideLeft,
|
|
.doneText1.taskTextOutsideRight,
|
|
.doneText2.taskTextOutsideLeft,
|
|
.doneText2.taskTextOutsideRight,
|
|
.doneText3.taskTextOutsideLeft,
|
|
.doneText3.taskTextOutsideRight {
|
|
fill: ${r.taskTextOutsideColor} !important;
|
|
}
|
|
|
|
|
|
/* Tasks on the critical line */
|
|
|
|
.crit0,
|
|
.crit1,
|
|
.crit2,
|
|
.crit3 {
|
|
stroke: ${r.critBorderColor};
|
|
fill: ${r.critBkgColor};
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.activeCrit0,
|
|
.activeCrit1,
|
|
.activeCrit2,
|
|
.activeCrit3 {
|
|
stroke: ${r.critBorderColor};
|
|
fill: ${r.activeTaskBkgColor};
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneCrit0,
|
|
.doneCrit1,
|
|
.doneCrit2,
|
|
.doneCrit3 {
|
|
stroke: ${r.critBorderColor};
|
|
fill: ${r.doneTaskBkgColor};
|
|
stroke-width: 2;
|
|
cursor: pointer;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
.milestone {
|
|
transform: rotate(45deg) scale(0.8,0.8);
|
|
}
|
|
|
|
.milestoneText {
|
|
font-style: italic;
|
|
}
|
|
.doneCritText0,
|
|
.doneCritText1,
|
|
.doneCritText2,
|
|
.doneCritText3 {
|
|
fill: ${r.taskTextDarkColor} !important;
|
|
}
|
|
|
|
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
|
|
.doneCritText0.taskTextOutsideLeft,
|
|
.doneCritText0.taskTextOutsideRight,
|
|
.doneCritText1.taskTextOutsideLeft,
|
|
.doneCritText1.taskTextOutsideRight,
|
|
.doneCritText2.taskTextOutsideLeft,
|
|
.doneCritText2.taskTextOutsideRight,
|
|
.doneCritText3.taskTextOutsideLeft,
|
|
.doneCritText3.taskTextOutsideRight {
|
|
fill: ${r.taskTextOutsideColor} !important;
|
|
}
|
|
|
|
.vert {
|
|
stroke: ${r.vertLineColor};
|
|
}
|
|
|
|
.vertText {
|
|
font-size: 15px;
|
|
text-anchor: middle;
|
|
fill: ${r.vertLineColor} !important;
|
|
}
|
|
|
|
.activeCritText0,
|
|
.activeCritText1,
|
|
.activeCritText2,
|
|
.activeCritText3 {
|
|
fill: ${r.taskTextDarkColor} !important;
|
|
}
|
|
|
|
.titleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: ${r.titleColor||r.textColor};
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
`,"getStyles"),IFr=jui});var NFr={};is(NFr,{diagram:()=>zui});var zui,OFr=ae(()=>{"use strict";iFr();SFr();DFr();MFr();zui={parser:nFr,db:CFr,renderer:_Fr,styles:IFr}});var FFr,$Fr=ae(()=>{"use strict";w1();Yn();FFr={parse:i(async r=>{let t=await Gd("info",r);Pe.debug(t)},"parse")}});var Hui,qui,GFr,jFr=ae(()=>{"use strict";Hui={version:"12.3.0"},qui=i(()=>Hui.version,"getVersion"),GFr={getVersion:qui}});var pu,x1=ae(()=>{"use strict";zo();ma();pu=i(r=>{let{securityLevel:t}=er(),a=mn("body");if(t==="sandbox"){let h=mn(`#i${r}`).node()?.contentDocument??document;a=mn(h.body)}return a.select(`#${r}`)},"selectSvgElement")});var Yui,zFr,UFr=ae(()=>{"use strict";Yn();x1();$h();Yui=i((r,t,a)=>{Pe.debug(`rendering info diagram
|
|
`+r);let s=pu(t);wl(s,100,400,!0),s.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${a}`)},"draw"),zFr={draw:Yui}});var VFr={};is(VFr,{diagram:()=>Xui});var Xui,WFr=ae(()=>{"use strict";$Fr();jFr();UFr();Xui={parser:FFr,db:GFr,renderer:zFr}});var YFr,aut,bCe,sut,Qui,Zui,ehi,thi,rhi,nhi,ihi,vCe,out=ae(()=>{"use strict";Yn();Au();pp();YFr=ps.pie,aut={sections:new Map,showData:!1,config:YFr},bCe=aut.sections,sut=aut.showData,Qui=structuredClone(YFr),Zui=i(()=>structuredClone(Qui),"getConfig"),ehi=i(()=>{bCe=new Map,sut=aut.showData,Ds()},"clear"),thi=i(({label:r,value:t})=>{if(t<0)throw new Error(`"${r}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);bCe.has(r)||(bCe.set(r,t),Pe.debug(`added new section: ${r}, with value: ${t}`))},"addSection"),rhi=i(()=>bCe,"getSections"),nhi=i(r=>{sut=r},"setShowData"),ihi=i(()=>sut,"getShowData"),vCe={getConfig:Zui,clear:ehi,setDiagramTitle:io,getDiagramTitle:Ks,setAccTitle:Os,getAccTitle:Vs,setAccDescription:$s,getAccDescription:Ws,addSection:thi,getSections:rhi,setShowData:nhi,getShowData:ihi}});var ahi,XFr,KFr=ae(()=>{"use strict";w1();Yn();Gb();out();ahi=i((r,t)=>{Eh(r,t),t.setShowData(r.showData),r.sections.map(t.addSection)},"populateDb"),XFr={parse:i(async r=>{let t=await Gd("pie",r);Pe.debug(t),ahi(t,vCe)},"parse")}});var shi,JFr,QFr=ae(()=>{"use strict";shi=i(r=>`
|
|
.pieCircle{
|
|
stroke: ${r.pieStrokeColor};
|
|
stroke-width : ${r.pieStrokeWidth};
|
|
opacity : ${r.pieOpacity};
|
|
}
|
|
.pieCircle.highlighted{
|
|
scale: 1.05;
|
|
opacity: 1;
|
|
}
|
|
.pieCircle.highlightedOnHover:hover{
|
|
transition-duration: 250ms;
|
|
scale: 1.05;
|
|
opacity: 1;
|
|
}
|
|
.pieOuterCircle{
|
|
stroke: ${r.pieOuterStrokeColor};
|
|
stroke-width: ${r.pieOuterStrokeWidth};
|
|
fill: none;
|
|
}
|
|
.pieTitleText {
|
|
text-anchor: middle;
|
|
font-size: ${r.pieTitleTextSize};
|
|
fill: ${r.pieTitleTextColor};
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
.slice {
|
|
font-family: ${r.fontFamily};
|
|
fill: ${r.pieSectionTextColor};
|
|
font-size:${r.pieSectionTextSize};
|
|
// fill: white;
|
|
}
|
|
.legend text {
|
|
fill: ${r.pieLegendTextColor};
|
|
font-family: ${r.fontFamily};
|
|
font-size: ${r.pieLegendTextSize};
|
|
}
|
|
`,"getStyles"),JFr=shi});var ohi,lhi,ZFr,e$r=ae(()=>{"use strict";zo();ma();Yn();x1();$h();Ma();ohi=i(r=>{let t=[...r.values()].reduce((l,h)=>l+h,0),a=[...r.entries()].map(([l,h])=>({label:l,value:h})).filter(l=>l.value/t*100>=1);return b2e().value(l=>l.value).sort(null)(a)},"createPieArcs"),lhi=i((r,t,a,s)=>{Pe.debug(`rendering pie chart
|
|
`+r);let l=s.db,h=er(),f=il(l.getConfig(),h.pie),d=40,m=18,b=4,v=450,T=v,C=pu(t),E=C.append("g");E.attr("transform","translate("+T/2+","+v/2+")");let{themeVariables:S}=h,[R]=Rb(S.pieOuterStrokeWidth);R??=2;let L=f.legendPosition,_=f.textPosition,I=f.donutHole>0&&f.donutHole<=.9?f.donutHole:0,N=Math.min(T,v)/2-d,B=D4().innerRadius(I*N).outerRadius(N),O=D4().innerRadius(N*_).outerRadius(N*_),P=E.append("g");P.append("circle").attr("cx",0).attr("cy",0).attr("r",N+R/2).attr("class","pieOuterCircle");let $=l.getSections(),V=ohi($),Y=[S.pie1,S.pie2,S.pie3,S.pie4,S.pie5,S.pie6,S.pie7,S.pie8,S.pie9,S.pie10,S.pie11,S.pie12],Q=0;$.forEach(ve=>{Q+=ve});let q=V.filter(ve=>(ve.data.value/Q*100).toFixed(0)!=="0"),W=Kw(Y).domain([...$.keys()]);P.selectAll("mySlices").data(q).enter().append("path").attr("d",B).attr("fill",ve=>W(ve.data.label)).attr("class",ve=>{let Ie="pieCircle";return f.highlightSlice==="hover"?Ie+=" highlightedOnHover":f.highlightSlice===ve.data.label&&(Ie+=" highlighted"),Ie}),P.selectAll("mySlices").data(q).enter().append("text").text(ve=>(ve.data.value/Q*100).toFixed(0)+"%").attr("transform",ve=>"translate("+O.centroid(ve)+")").style("text-anchor","middle").attr("class","slice");let H=E.append("text").text(l.getDiagramTitle()).attr("x",0).attr("y",-(v-50)/2).attr("class","pieTitleText"),re=[...$.entries()].map(([ve,Ie])=>({label:ve,value:Ie})),Z=E.selectAll(".legend").data(re).enter().append("g").attr("class","legend");Z.append("rect").attr("width",m).attr("height",m).style("fill",ve=>W(ve.label)).style("stroke",ve=>W(ve.label)),Z.append("text").attr("x",m+b).attr("y",m-b).text(ve=>l.getShowData()?`${ve.label} [${ve.value}]`:ve.label);let X=Math.max(...Z.selectAll("text").nodes().map(ve=>ve?.getBoundingClientRect().width??0)),te=v,U=T+d,ne=m+b,se=re.length*ne;switch(L){case"center":Z.attr("transform",(ve,Ie)=>{let De=ne*re.length/2,Be=-X/2-(m+b),Fe=Ie*ne-De;return"translate("+Be+","+Fe+")"});break;case"top":te+=se,Z.attr("transform",(ve,Ie)=>{let De=N,Be=-X/2-(m+b),Fe=Ie*ne-De;return`translate(${Be}, ${Fe})`}),P.attr("transform",()=>`translate(0, ${se+ne})`);break;case"bottom":te+=se,Z.attr("transform",(ve,Ie)=>{let De=-N-ne,Be=-X/2-(m+b),Fe=Ie*ne-De;return"translate("+Be+","+Fe+")"});break;case"left":U+=m+b+X,Z.attr("transform",(ve,Ie)=>{let De=ne*re.length/2,Be=-N-(m+b),Fe=Ie*ne-De;return"translate("+Be+","+Fe+")"}),P.attr("transform",()=>`translate(${X+m+b}, 0)`);break;default:U+=m+b+X,Z.attr("transform",(ve,Ie)=>{let De=ne*re.length/2,Be=12*m,Fe=Ie*ne-De;return"translate("+Be+","+Fe+")"});break}let he=H.node()?.getBoundingClientRect().width??0,le=T/2-he/2,pe=T/2+he/2,ge=Math.min(0,le),Ae=Math.max(U,pe)-ge;C.attr("viewBox",`${ge} 0 ${Ae} ${te}`),wl(C,te,Ae,f.useMaxWidth)},"draw"),ZFr={draw:lhi}});var t$r={};is(t$r,{diagram:()=>chi});var chi,r$r=ae(()=>{"use strict";KFr();out();QFr();e$r();chi={parser:XFr,db:vCe,renderer:ZFr,styles:JFr}});var lut,i$r,a$r=ae(()=>{"use strict";lut=(function(){var r=i(function(me,be,ke,We){for(ke=ke||{},We=me.length;We--;ke[me[We]]=be);return ke},"o"),t=[1,3],a=[1,4],s=[1,5],l=[1,6],h=[1,7],f=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],d=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],m=[55,56,57],b=[2,36],v=[1,37],T=[1,36],C=[1,38],E=[1,35],S=[1,43],R=[1,41],L=[1,45],_=[1,14],I=[1,23],N=[1,18],B=[1,19],O=[1,20],P=[1,21],$=[1,22],V=[1,24],Y=[1,25],Q=[1,26],q=[1,27],W=[1,28],H=[1,29],re=[1,32],Z=[1,33],X=[1,34],te=[1,39],U=[1,40],ne=[1,42],se=[1,44],he=[1,63],le=[1,62],pe=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ge=[1,66],we=[1,67],Ae=[1,68],ve=[1,69],Ie=[1,70],De=[1,71],Be=[1,72],Fe=[1,73],ze=[1,74],vt=[1,75],lt=[1,76],Ft=[1,77],pr=[4,5,6,7,8,9,10,11,12,13,14,15,18],tr=[1,91],Mt=[1,92],ot=[1,93],it=[1,100],mt=[1,94],Rt=[1,97],pt=[1,95],gt=[1,96],ut=[1,98],Yt=[1,99],Ye=[1,103],Oe=[10,55,56,57],K=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Te={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:i(function(be,ke,We,Ue,rt,nt,Ot){var ft=nt.length-1;switch(rt){case 23:this.$=nt[ft];break;case 24:this.$=nt[ft-1]+""+nt[ft];break;case 26:this.$=nt[ft-1]+nt[ft];break;case 27:this.$=[nt[ft].trim()];break;case 28:nt[ft-2].push(nt[ft].trim()),this.$=nt[ft-2];break;case 29:this.$=nt[ft-4],Ue.addClass(nt[ft-2],nt[ft]);break;case 37:this.$=[];break;case 42:this.$=nt[ft].trim(),Ue.setDiagramTitle(this.$);break;case 43:this.$=nt[ft].trim(),Ue.setAccTitle(this.$);break;case 44:case 45:this.$=nt[ft].trim(),Ue.setAccDescription(this.$);break;case 46:Ue.addSection(nt[ft].substr(8)),this.$=nt[ft].substr(8);break;case 47:Ue.addPoint(nt[ft-3],"",nt[ft-1],nt[ft],[]);break;case 48:Ue.addPoint(nt[ft-4],nt[ft-3],nt[ft-1],nt[ft],[]);break;case 49:Ue.addPoint(nt[ft-4],"",nt[ft-2],nt[ft-1],nt[ft]);break;case 50:Ue.addPoint(nt[ft-5],nt[ft-4],nt[ft-2],nt[ft-1],nt[ft]);break;case 51:Ue.setXAxisLeftText(nt[ft-2]),Ue.setXAxisRightText(nt[ft]);break;case 52:nt[ft-1].text+=" \u27F6 ",Ue.setXAxisLeftText(nt[ft-1]);break;case 53:Ue.setXAxisLeftText(nt[ft]);break;case 54:Ue.setYAxisBottomText(nt[ft-2]),Ue.setYAxisTopText(nt[ft]);break;case 55:nt[ft-1].text+=" \u27F6 ",Ue.setYAxisBottomText(nt[ft-1]);break;case 56:Ue.setYAxisBottomText(nt[ft]);break;case 57:Ue.setQuadrant1Text(nt[ft]);break;case 58:Ue.setQuadrant2Text(nt[ft]);break;case 59:Ue.setQuadrant3Text(nt[ft]);break;case 60:Ue.setQuadrant4Text(nt[ft]);break;case 64:this.$={text:nt[ft],type:"text"};break;case 65:this.$={text:nt[ft-1].text+""+nt[ft],type:nt[ft-1].type};break;case 66:this.$={text:nt[ft],type:"text"};break;case 67:this.$={text:nt[ft],type:"markdown"};break;case 68:this.$=nt[ft];break;case 69:this.$=nt[ft-1]+""+nt[ft];break}},"anonymous"),table:[{18:t,26:1,27:2,28:a,55:s,56:l,57:h},{1:[3]},{18:t,26:8,27:2,28:a,55:s,56:l,57:h},{18:t,26:9,27:2,28:a,55:s,56:l,57:h},r(f,[2,33],{29:10}),r(d,[2,61]),r(d,[2,62]),r(d,[2,63]),{1:[2,30]},{1:[2,31]},r(m,b,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:v,5:T,10:C,12:E,13:S,14:R,15:L,18:_,25:I,35:N,37:B,39:O,41:P,42:$,48:V,50:Y,51:Q,52:q,53:W,54:H,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se}),r(f,[2,34]),{27:46,55:s,56:l,57:h},r(m,[2,37]),r(m,b,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:v,5:T,10:C,12:E,13:S,14:R,15:L,18:_,25:I,35:N,37:B,39:O,41:P,42:$,48:V,50:Y,51:Q,52:q,53:W,54:H,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se}),r(m,[2,39]),r(m,[2,40]),r(m,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},r(m,[2,45]),r(m,[2,46]),{18:[1,51]},{4:v,5:T,10:C,12:E,13:S,14:R,15:L,43:52,58:31,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se},{4:v,5:T,10:C,12:E,13:S,14:R,15:L,43:53,58:31,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se},{4:v,5:T,10:C,12:E,13:S,14:R,15:L,43:54,58:31,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se},{4:v,5:T,10:C,12:E,13:S,14:R,15:L,43:55,58:31,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se},{4:v,5:T,10:C,12:E,13:S,14:R,15:L,43:56,58:31,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se},{4:v,5:T,10:C,12:E,13:S,14:R,15:L,43:57,58:31,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se},{4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,44:[1,58],47:[1,59],58:61,59:60,63:X,64:te,65:U,66:ne,67:se},r(pe,[2,64]),r(pe,[2,66]),r(pe,[2,67]),r(pe,[2,70]),r(pe,[2,71]),r(pe,[2,72]),r(pe,[2,73]),r(pe,[2,74]),r(pe,[2,75]),r(pe,[2,76]),r(pe,[2,77]),r(pe,[2,78]),r(pe,[2,79]),r(pe,[2,80]),r(pe,[2,81]),r(f,[2,35]),r(m,[2,38]),r(m,[2,42]),r(m,[2,43]),r(m,[2,44]),{3:65,4:ge,5:we,6:Ae,7:ve,8:Ie,9:De,10:Be,11:Fe,12:ze,13:vt,14:lt,15:Ft,21:64},r(m,[2,53],{59:60,58:61,4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,49:[1,78],63:X,64:te,65:U,66:ne,67:se}),r(m,[2,56],{59:60,58:61,4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,49:[1,79],63:X,64:te,65:U,66:ne,67:se}),r(m,[2,57],{59:60,58:61,4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,63:X,64:te,65:U,66:ne,67:se}),r(m,[2,58],{59:60,58:61,4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,63:X,64:te,65:U,66:ne,67:se}),r(m,[2,59],{59:60,58:61,4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,63:X,64:te,65:U,66:ne,67:se}),r(m,[2,60],{59:60,58:61,4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,63:X,64:te,65:U,66:ne,67:se}),{45:[1,80]},{44:[1,81]},r(pe,[2,65]),r(pe,[2,82]),r(pe,[2,83]),r(pe,[2,84]),{3:83,4:ge,5:we,6:Ae,7:ve,8:Ie,9:De,10:Be,11:Fe,12:ze,13:vt,14:lt,15:Ft,18:[1,82]},r(pr,[2,23]),r(pr,[2,1]),r(pr,[2,2]),r(pr,[2,3]),r(pr,[2,4]),r(pr,[2,5]),r(pr,[2,6]),r(pr,[2,7]),r(pr,[2,8]),r(pr,[2,9]),r(pr,[2,10]),r(pr,[2,11]),r(pr,[2,12]),r(m,[2,52],{58:31,43:84,4:v,5:T,10:C,12:E,13:S,14:R,15:L,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se}),r(m,[2,55],{58:31,43:85,4:v,5:T,10:C,12:E,13:S,14:R,15:L,60:re,61:Z,63:X,64:te,65:U,66:ne,67:se}),{46:[1,86]},{45:[1,87]},{4:tr,5:Mt,6:ot,8:it,11:mt,13:Rt,16:90,17:pt,18:gt,19:ut,20:Yt,22:89,23:88},r(pr,[2,24]),r(m,[2,51],{59:60,58:61,4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,63:X,64:te,65:U,66:ne,67:se}),r(m,[2,54],{59:60,58:61,4:v,5:T,8:he,10:C,12:E,13:S,14:R,15:L,18:le,63:X,64:te,65:U,66:ne,67:se}),r(m,[2,47],{22:89,16:90,23:101,4:tr,5:Mt,6:ot,8:it,11:mt,13:Rt,17:pt,18:gt,19:ut,20:Yt}),{46:[1,102]},r(m,[2,29],{10:Ye}),r(Oe,[2,27],{16:104,4:tr,5:Mt,6:ot,8:it,11:mt,13:Rt,17:pt,18:gt,19:ut,20:Yt}),r(K,[2,25]),r(K,[2,13]),r(K,[2,14]),r(K,[2,15]),r(K,[2,16]),r(K,[2,17]),r(K,[2,18]),r(K,[2,19]),r(K,[2,20]),r(K,[2,21]),r(K,[2,22]),r(m,[2,49],{10:Ye}),r(m,[2,48],{22:89,16:90,23:105,4:tr,5:Mt,6:ot,8:it,11:mt,13:Rt,17:pt,18:gt,19:ut,20:Yt}),{4:tr,5:Mt,6:ot,8:it,11:mt,13:Rt,16:90,17:pt,18:gt,19:ut,20:Yt,22:106},r(K,[2,26]),r(m,[2,50],{10:Ye}),r(Oe,[2,28],{16:104,4:tr,5:Mt,6:ot,8:it,11:mt,13:Rt,17:pt,18:gt,19:ut,20:Yt})],defaultActions:{8:[2,30],9:[2,31]},parseError:i(function(be,ke){if(ke.recoverable)this.trace(be);else{var We=new Error(be);throw We.hash=ke,We}},"parseError"),parse:i(function(be){var ke=this,We=[0],Ue=[],rt=[null],nt=[],Ot=this.table,ft="",Qt=0,$t=0,qt=0,Gt=2,jt=1,Zr=nt.slice.call(arguments,1),yt=Object.create(this.lexer),$n={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&($n.yy[Ut]=this.yy[Ut]);yt.setInput(be,$n.yy),$n.yy.lexer=yt,$n.yy.parser=this,typeof yt.yylloc>"u"&&(yt.yylloc={});var An=yt.yylloc;nt.push(An);var Un=yt.options&&yt.options.ranges;typeof $n.yy.parseError=="function"?this.parseError=$n.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function En(Bn){We.length=We.length-2*Bn,rt.length=rt.length-Bn,nt.length=nt.length-Bn}i(En,"popStack");function ai(){var Bn;return Bn=Ue.pop()||yt.lex()||jt,typeof Bn!="number"&&(Bn instanceof Array&&(Ue=Bn,Bn=Ue.pop()),Bn=ke.symbols_[Bn]||Bn),Bn}i(ai,"lex");for(var Gn,ui,Tn,Wi,Pa,qe,Rn={},Mn,ct,dr,Kr;;){if(Tn=We[We.length-1],this.defaultActions[Tn]?Wi=this.defaultActions[Tn]:((Gn===null||typeof Gn>"u")&&(Gn=ai()),Wi=Ot[Tn]&&Ot[Tn][Gn]),typeof Wi>"u"||!Wi.length||!Wi[0]){var pn="";Kr=[];for(Mn in Ot[Tn])this.terminals_[Mn]&&Mn>Gt&&Kr.push("'"+this.terminals_[Mn]+"'");yt.showPosition?pn="Parse error on line "+(Qt+1)+`:
|
|
`+yt.showPosition()+`
|
|
Expecting `+Kr.join(", ")+", got '"+(this.terminals_[Gn]||Gn)+"'":pn="Parse error on line "+(Qt+1)+": Unexpected "+(Gn==jt?"end of input":"'"+(this.terminals_[Gn]||Gn)+"'"),this.parseError(pn,{text:yt.match,token:this.terminals_[Gn]||Gn,line:yt.yylineno,loc:An,expected:Kr})}if(Wi[0]instanceof Array&&Wi.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Tn+", token: "+Gn);switch(Wi[0]){case 1:We.push(Gn),rt.push(yt.yytext),nt.push(yt.yylloc),We.push(Wi[1]),Gn=null,ui?(Gn=ui,ui=null):($t=yt.yyleng,ft=yt.yytext,Qt=yt.yylineno,An=yt.yylloc,qt>0&&qt--);break;case 2:if(ct=this.productions_[Wi[1]][1],Rn.$=rt[rt.length-ct],Rn._$={first_line:nt[nt.length-(ct||1)].first_line,last_line:nt[nt.length-1].last_line,first_column:nt[nt.length-(ct||1)].first_column,last_column:nt[nt.length-1].last_column},Un&&(Rn._$.range=[nt[nt.length-(ct||1)].range[0],nt[nt.length-1].range[1]]),qe=this.performAction.apply(Rn,[ft,$t,Qt,$n.yy,Wi[1],rt,nt].concat(Zr)),typeof qe<"u")return qe;ct&&(We=We.slice(0,-1*ct*2),rt=rt.slice(0,-1*ct),nt=nt.slice(0,-1*ct)),We.push(this.productions_[Wi[1]][0]),rt.push(Rn.$),nt.push(Rn._$),dr=Ot[We[We.length-2]][We[We.length-1]],We.push(dr);break;case 3:return!0}}return!0},"parse")},ce=(function(){var me={EOF:1,parseError:i(function(ke,We){if(this.yy.parser)this.yy.parser.parseError(ke,We);else throw new Error(ke)},"parseError"),setInput:i(function(be,ke){return this.yy=ke||this.yy||{},this._input=be,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var be=this._input[0];this.yytext+=be,this.yyleng++,this.offset++,this.match+=be,this.matched+=be;var ke=be.match(/(?:\r\n?|\n).*/g);return ke?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),be},"input"),unput:i(function(be){var ke=be.length,We=be.split(/(?:\r\n?|\n)/g);this._input=be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ke),this.offset-=ke;var Ue=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),We.length-1&&(this.yylineno-=We.length-1);var rt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:We?(We.length===Ue.length?this.yylloc.first_column:0)+Ue[Ue.length-We.length].length-We[0].length:this.yylloc.first_column-ke},this.options.ranges&&(this.yylloc.range=[rt[0],rt[0]+this.yyleng-ke]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(be){this.unput(this.match.slice(be))},"less"),pastInput:i(function(){var be=this.matched.substr(0,this.matched.length-this.match.length);return(be.length>20?"...":"")+be.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var be=this.match;return be.length<20&&(be+=this._input.substr(0,20-be.length)),(be.substr(0,20)+(be.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var be=this.pastInput(),ke=new Array(be.length+1).join("-");return be+this.upcomingInput()+`
|
|
`+ke+"^"},"showPosition"),test_match:i(function(be,ke){var We,Ue,rt;if(this.options.backtrack_lexer&&(rt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(rt.yylloc.range=this.yylloc.range.slice(0))),Ue=be[0].match(/(?:\r\n?|\n).*/g),Ue&&(this.yylineno+=Ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ue?Ue[Ue.length-1].length-Ue[Ue.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+be[0].length},this.yytext+=be[0],this.match+=be[0],this.matches=be,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(be[0].length),this.matched+=be[0],We=this.performAction.call(this,this.yy,this,ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),We)return We;if(this._backtrack){for(var nt in rt)this[nt]=rt[nt];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var be,ke,We,Ue;this._more||(this.yytext="",this.match="");for(var rt=this._currentRules(),nt=0;nt<rt.length;nt++)if(We=this._input.match(this.rules[rt[nt]]),We&&(!ke||We[0].length>ke[0].length)){if(ke=We,Ue=nt,this.options.backtrack_lexer){if(be=this.test_match(We,rt[nt]),be!==!1)return be;if(this._backtrack){ke=!1;continue}else return!1}else if(!this.options.flex)break}return ke?(be=this.test_match(ke,rt[Ue]),be!==!1?be:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var ke=this.next();return ke||this.lex()},"lex"),begin:i(function(ke){this.conditionStack.push(ke)},"begin"),popState:i(function(){var ke=this.conditionStack.length-1;return ke>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(ke){return ke=this.conditionStack.length-1-Math.abs(ke||0),ke>=0?this.conditionStack[ke]:"INITIAL"},"topState"),pushState:i(function(ke){this.begin(ke)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(ke,We,Ue,rt){var nt=rt;switch(Ue){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return me})();Te.lexer=ce;function Re(){this.yy={}}return i(Re,"Parser"),Re.prototype=Te,Te.Parser=Re,new Re})();lut.parser=lut;i$r=lut});var jb,wCe,s$r=ae(()=>{"use strict";zo();pp();Yn();jE();jb=hm(),wCe=class{constructor(){this.classes=new Map;this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{i(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:ps.quadrantChart?.chartWidth||500,chartWidth:ps.quadrantChart?.chartHeight||500,titlePadding:ps.quadrantChart?.titlePadding||10,titleFontSize:ps.quadrantChart?.titleFontSize||20,quadrantPadding:ps.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:ps.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:ps.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:ps.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:ps.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:ps.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:ps.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:ps.quadrantChart?.pointTextPadding||5,pointLabelFontSize:ps.quadrantChart?.pointLabelFontSize||12,pointRadius:ps.quadrantChart?.pointRadius||5,xAxisPosition:ps.quadrantChart?.xAxisPosition||"top",yAxisPosition:ps.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:ps.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:ps.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:jb.quadrant1Fill,quadrant2Fill:jb.quadrant2Fill,quadrant3Fill:jb.quadrant3Fill,quadrant4Fill:jb.quadrant4Fill,quadrant1TextFill:jb.quadrant1TextFill,quadrant2TextFill:jb.quadrant2TextFill,quadrant3TextFill:jb.quadrant3TextFill,quadrant4TextFill:jb.quadrant4TextFill,quadrantPointFill:jb.quadrantPointFill,quadrantPointTextFill:jb.quadrantPointTextFill,quadrantXAxisTextFill:jb.quadrantXAxisTextFill,quadrantYAxisTextFill:jb.quadrantYAxisTextFill,quadrantTitleFill:jb.quadrantTitleFill,quadrantInternalBorderStrokeFill:jb.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:jb.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,Pe.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,a){this.classes.set(t,a)}setConfig(t){Pe.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){Pe.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,a,s,l){let h=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,f={top:t==="top"&&a?h:0,bottom:t==="bottom"&&a?h:0},d=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,m={left:this.config.yAxisPosition==="left"&&s?d:0,right:this.config.yAxisPosition==="right"&&s?d:0},b=this.config.titleFontSize+this.config.titlePadding*2,v={top:l?b:0},T=this.config.quadrantPadding+m.left,C=this.config.quadrantPadding+f.top+v.top,E=this.config.chartWidth-this.config.quadrantPadding*2-m.left-m.right,S=this.config.chartHeight-this.config.quadrantPadding*2-f.top-f.bottom-v.top,R=E/2,L=S/2;return{xAxisSpace:f,yAxisSpace:m,titleSpace:v,quadrantSpace:{quadrantLeft:T,quadrantTop:C,quadrantWidth:E,quadrantHalfWidth:R,quadrantHeight:S,quadrantHalfHeight:L}}}getAxisLabels(t,a,s,l){let{quadrantSpace:h,titleSpace:f}=l,{quadrantHalfHeight:d,quadrantHeight:m,quadrantLeft:b,quadrantHalfWidth:v,quadrantTop:T,quadrantWidth:C}=h,E=!!this.data.xAxisRightText,S=!!this.data.yAxisTopText,R=[];return this.data.xAxisLeftText&&a&&R.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:b+(E?v/2:0),y:t==="top"?this.config.xAxisLabelPadding+f.top:this.config.xAxisLabelPadding+T+m+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:E?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&a&&R.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:b+v+(E?v/2:0),y:t==="top"?this.config.xAxisLabelPadding+f.top:this.config.xAxisLabelPadding+T+m+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:E?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&s&&R.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+b+C+this.config.quadrantPadding,y:T+m-(S?d/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&s&&R.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+b+C+this.config.quadrantPadding,y:T+d-(S?d/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),R}getQuadrants(t){let{quadrantSpace:a}=t,{quadrantHalfHeight:s,quadrantLeft:l,quadrantHalfWidth:h,quadrantTop:f}=a,d=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:l+h,y:f,width:h,height:s,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:l,y:f,width:h,height:s,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:l,y:f+s,width:h,height:s,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:l+h,y:f+s,width:h,height:s,fill:this.themeConfig.quadrant4Fill}];for(let m of d)m.text.x=m.x+m.width/2,this.data.points.length===0?(m.text.y=m.y+m.height/2,m.text.horizontalPos="middle"):(m.text.y=m.y+this.config.quadrantTextTopPadding,m.text.horizontalPos="top");return d}getQuadrantPoints(t){let{quadrantSpace:a}=t,{quadrantHeight:s,quadrantLeft:l,quadrantTop:h,quadrantWidth:f}=a,d=A4().domain([0,1]).range([l,f+l]),m=A4().domain([0,1]).range([s+h,h]);return this.data.points.map(v=>{let T=this.classes.get(v.className);return T&&(v={...T,...v}),{x:d(v.x),y:m(v.y),fill:v.color??this.themeConfig.quadrantPointFill,radius:v.radius??this.config.pointRadius,text:{text:v.text,fill:this.themeConfig.quadrantPointTextFill,x:d(v.x),y:m(v.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:v.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:v.strokeWidth??"0px"}})}getBorders(t){let a=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:s}=t,{quadrantHalfHeight:l,quadrantHeight:h,quadrantLeft:f,quadrantHalfWidth:d,quadrantTop:m,quadrantWidth:b}=s;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f-a,y1:m,x2:f+b+a,y2:m},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f+b,y1:m+a,x2:f+b,y2:m+h-a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f-a,y1:m+h,x2:f+b+a,y2:m+h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f,y1:m+a,x2:f,y2:m+h-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:f+d,y1:m+a,x2:f+d,y2:m+h-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:f+a,y1:m+l,x2:f+b-a,y2:m+l}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),a=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),s=this.config.showTitle&&!!this.data.titleText,l=this.data.points.length>0?"bottom":this.config.xAxisPosition,h=this.calculateSpace(l,t,a,s);return{points:this.getQuadrantPoints(h),quadrants:this.getQuadrants(h),axisLabels:this.getAxisLabels(l,t,a,h),borderLines:this.getBorders(h),title:this.getTitle(s)}}}});function cut(r){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(r)}function o$r(r){return!/^\d+$/.test(r)}function l$r(r){return!/^\d+px$/.test(r)}var mB,c$r=ae(()=>{"use strict";mB=class extends Error{static{i(this,"InvalidStyleError")}constructor(t,a,s){super(`value for ${t} ${a} is invalid, please use a valid ${s}`),this.name="InvalidStyleError"}};i(cut,"validateHexCode");i(o$r,"validateNumber");i(l$r,"validateSizeInPixels")});function v8(r){return Ns(r.trim(),er())}function fhi(r){T1.setData({quadrant1Text:v8(r.text)})}function dhi(r){T1.setData({quadrant2Text:v8(r.text)})}function phi(r){T1.setData({quadrant3Text:v8(r.text)})}function ghi(r){T1.setData({quadrant4Text:v8(r.text)})}function mhi(r){T1.setData({xAxisLeftText:v8(r.text)})}function yhi(r){T1.setData({xAxisRightText:v8(r.text)})}function bhi(r){T1.setData({yAxisTopText:v8(r.text)})}function vhi(r){T1.setData({yAxisBottomText:v8(r.text)})}function uut(r){let t={};for(let a of r){let[s,l]=a.trim().split(/\s*:\s*/);if(s==="radius"){if(o$r(l))throw new mB(s,l,"number");t.radius=parseInt(l)}else if(s==="color"){if(cut(l))throw new mB(s,l,"hex code");t.color=l}else if(s==="stroke-color"){if(cut(l))throw new mB(s,l,"hex code");t.strokeColor=l}else if(s==="stroke-width"){if(l$r(l))throw new mB(s,l,"number of pixels (eg. 10px)");t.strokeWidth=l}else throw new Error(`style named ${s} is not supported.`)}return t}function whi(r,t,a,s,l){let h=uut(l);T1.addPoints([{x:a,y:s,text:v8(r.text),className:t,...h}])}function xhi(r,t){T1.addClass(r,uut(t))}function Thi(r){T1.setConfig({chartWidth:r})}function khi(r){T1.setConfig({chartHeight:r})}function Chi(){let r=er(),{themeVariables:t,quadrantChart:a}=r;return a&&T1.setConfig(a),T1.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),T1.setData({titleText:Ks()}),T1.build()}var T1,Ehi,u$r,h$r=ae(()=>{"use strict";ma();nl();Au();s$r();c$r();i(v8,"textSanitizer");T1=new wCe;i(fhi,"setQuadrant1Text");i(dhi,"setQuadrant2Text");i(phi,"setQuadrant3Text");i(ghi,"setQuadrant4Text");i(mhi,"setXAxisLeftText");i(yhi,"setXAxisRightText");i(bhi,"setYAxisTopText");i(vhi,"setYAxisBottomText");i(uut,"parseStyles");i(whi,"addPoint");i(xhi,"addClass");i(Thi,"setWidth");i(khi,"setHeight");i(Chi,"getQuadrantData");Ehi=i(function(){T1.clear(),Ds()},"clear"),u$r={setWidth:Thi,setHeight:khi,setQuadrant1Text:fhi,setQuadrant2Text:dhi,setQuadrant3Text:phi,setQuadrant4Text:ghi,setXAxisLeftText:mhi,setXAxisRightText:yhi,setYAxisTopText:bhi,setYAxisBottomText:vhi,parseStyles:uut,addPoint:whi,addClass:xhi,getQuadrantData:Chi,clear:Ehi,setAccTitle:Os,getAccTitle:Vs,setDiagramTitle:io,getDiagramTitle:Ks,getAccDescription:Ws,setAccDescription:$s}});var Shi,f$r,d$r=ae(()=>{"use strict";zo();ma();Yn();$h();Shi=i((r,t,a,s)=>{function l(V){return V==="top"?"hanging":"middle"}i(l,"getDominantBaseLine");function h(V){return V==="left"?"start":"middle"}i(h,"getTextAnchor");function f(V){return`translate(${V.x}, ${V.y}) rotate(${V.rotation||0})`}i(f,"getTransformation");let d=er();Pe.debug(`Rendering quadrant chart
|
|
`+r);let m=d.securityLevel,b;m==="sandbox"&&(b=mn("#i"+t));let T=(m==="sandbox"?mn(b.nodes()[0].contentDocument.body):mn("body")).select(`[id="${t}"]`),C=T.append("g").attr("class","main"),E=d.quadrantChart?.chartWidth??500,S=d.quadrantChart?.chartHeight??500;wl(T,S,E,d.quadrantChart?.useMaxWidth??!0),T.attr("viewBox","0 0 "+E+" "+S),s.db.setHeight(S),s.db.setWidth(E);let R=s.db.getQuadrantData(),L=C.append("g").attr("class","quadrants"),_=C.append("g").attr("class","border"),I=C.append("g").attr("class","data-points"),N=C.append("g").attr("class","labels"),B=C.append("g").attr("class","title");R.title&&B.append("text").attr("x",0).attr("y",0).attr("fill",R.title.fill).attr("font-size",R.title.fontSize).attr("dominant-baseline",l(R.title.horizontalPos)).attr("text-anchor",h(R.title.verticalPos)).attr("transform",f(R.title)).text(R.title.text),R.borderLines&&_.selectAll("line").data(R.borderLines).enter().append("line").attr("x1",V=>V.x1).attr("y1",V=>V.y1).attr("x2",V=>V.x2).attr("y2",V=>V.y2).style("stroke",V=>V.strokeFill).style("stroke-width",V=>V.strokeWidth);let O=L.selectAll("g.quadrant").data(R.quadrants).enter().append("g").attr("class","quadrant");O.append("rect").attr("x",V=>V.x).attr("y",V=>V.y).attr("width",V=>V.width).attr("height",V=>V.height).attr("fill",V=>V.fill),O.append("text").attr("x",0).attr("y",0).attr("fill",V=>V.text.fill).attr("font-size",V=>V.text.fontSize).attr("dominant-baseline",V=>l(V.text.horizontalPos)).attr("text-anchor",V=>h(V.text.verticalPos)).attr("transform",V=>f(V.text)).text(V=>V.text.text),N.selectAll("g.label").data(R.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(V=>V.text).attr("fill",V=>V.fill).attr("font-size",V=>V.fontSize).attr("dominant-baseline",V=>l(V.horizontalPos)).attr("text-anchor",V=>h(V.verticalPos)).attr("transform",V=>f(V));let $=I.selectAll("g.data-point").data(R.points).enter().append("g").attr("class","data-point");$.append("circle").attr("cx",V=>V.x).attr("cy",V=>V.y).attr("r",V=>V.radius).attr("fill",V=>V.fill).attr("stroke",V=>V.strokeColor).attr("stroke-width",V=>V.strokeWidth),$.append("text").attr("x",0).attr("y",0).text(V=>V.text.text).attr("fill",V=>V.text.fill).attr("font-size",V=>V.text.fontSize).attr("dominant-baseline",V=>l(V.text.horizontalPos)).attr("text-anchor",V=>h(V.text.verticalPos)).attr("transform",V=>f(V.text))},"draw"),f$r={draw:Shi}});var p$r={};is(p$r,{diagram:()=>Ahi});var Ahi,g$r=ae(()=>{"use strict";a$r();h$r();d$r();Ahi={parser:i$r,db:u$r,renderer:f$r,styles:i(()=>"","styles")}});var hut,b$r,v$r=ae(()=>{"use strict";hut=(function(){var r=i(function(X,te,U,ne){for(U=U||{},ne=X.length;ne--;U[X[ne]]=te);return U},"o"),t=[1,10,12,14,16,18,19,21,23],a=[2,6],s=[1,3],l=[1,5],h=[1,6],f=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],m=[1,25],b=[1,26],v=[1,28],T=[1,29],C=[1,30],E=[1,31],S=[1,32],R=[1,33],L=[1,34],_=[1,35],I=[1,36],N=[1,37],B=[1,43],O=[1,42],P=[1,47],$=[1,50],V=[1,10,12,14,16,18,19,21,23,36,37,38],Y=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],Q=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],q=[1,65],W=[26,28],H={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:i(function(te,U,ne,se,he,le,pe){var ge=le.length-1;switch(he){case 5:se.setOrientation(le[ge]);break;case 9:se.setDiagramTitle(le[ge].text.trim());break;case 12:se.setLineData({text:"",type:"text"},le[ge]);break;case 13:se.setLineData(le[ge-1],le[ge]);break;case 14:se.setBarData({text:"",type:"text"},le[ge]);break;case 15:se.setBarData(le[ge-1],le[ge]);break;case 16:this.$=le[ge].trim(),se.setAccTitle(this.$);break;case 17:case 18:this.$=le[ge].trim(),se.setAccDescription(this.$);break;case 19:this.$=le[ge-1];break;case 20:case 30:this.$=[le[ge-2],...le[ge]];break;case 21:case 31:this.$=[le[ge]];break;case 22:this.$={value:Number(le[ge-1]),label:le[ge]};break;case 23:this.$={value:Number(le[ge]),label:""};break;case 24:se.setXAxisTitle(le[ge]);break;case 25:se.setXAxisTitle(le[ge-1]);break;case 26:se.setXAxisTitle({type:"text",text:""});break;case 27:se.setXAxisBand(le[ge]);break;case 28:se.setXAxisRangeData(Number(le[ge-2]),Number(le[ge]));break;case 29:this.$=le[ge-1];break;case 32:se.setYAxisTitle(le[ge]);break;case 33:se.setYAxisTitle(le[ge-1]);break;case 34:se.setYAxisTitle({type:"text",text:""});break;case 35:se.setYAxisRangeData(Number(le[ge-2]),Number(le[ge]));break;case 39:this.$={text:le[ge],type:"text"};break;case 40:this.$={text:le[ge],type:"text"};break;case 41:this.$={text:le[ge],type:"markdown"};break;case 42:this.$=le[ge];break;case 43:this.$=le[ge-1]+""+le[ge];break}},"anonymous"),table:[r(t,a,{3:1,4:2,7:4,5:s,36:l,37:h,38:f}),{1:[3]},r(t,a,{4:2,7:4,3:8,5:s,36:l,37:h,38:f}),r(t,a,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:l,37:h,38:f}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},r(d,[2,36]),r(d,[2,37]),r(d,[2,38]),{1:[2,1]},r(t,a,{4:2,7:4,3:21,5:s,36:l,37:h,38:f}),{1:[2,3]},r(d,[2,5]),r(t,[2,7],{4:22,36:l,37:h,38:f}),{11:23,30:m,39:24,40:b,41:27,42:v,43:T,44:C,45:E,46:S,47:R,48:L,49:_,50:I,51:N},{11:39,13:38,24:B,29:O,30:m,31:40,32:41,39:24,40:b,41:27,42:v,43:T,44:C,45:E,46:S,47:R,48:L,49:_,50:I,51:N},{11:45,15:44,29:P,30:m,35:46,39:24,40:b,41:27,42:v,43:T,44:C,45:E,46:S,47:R,48:L,49:_,50:I,51:N},{11:49,17:48,24:$,30:m,39:24,40:b,41:27,42:v,43:T,44:C,45:E,46:S,47:R,48:L,49:_,50:I,51:N},{11:52,17:51,24:$,30:m,39:24,40:b,41:27,42:v,43:T,44:C,45:E,46:S,47:R,48:L,49:_,50:I,51:N},{20:[1,53]},{22:[1,54]},r(V,[2,18]),{1:[2,2]},r(V,[2,8]),r(V,[2,9]),r(Y,[2,39],{41:55,42:v,43:T,44:C,45:E,46:S,47:R,48:L,49:_,50:I,51:N}),r(Y,[2,40]),r(Y,[2,41]),r(Q,[2,42]),r(Q,[2,44]),r(Q,[2,45]),r(Q,[2,46]),r(Q,[2,47]),r(Q,[2,48]),r(Q,[2,49]),r(Q,[2,50]),r(Q,[2,51]),r(Q,[2,52]),r(Q,[2,53]),r(V,[2,10]),r(V,[2,24],{32:41,31:56,24:B,29:O}),r(V,[2,26]),r(V,[2,27]),{33:[1,57]},{11:59,30:m,34:58,39:24,40:b,41:27,42:v,43:T,44:C,45:E,46:S,47:R,48:L,49:_,50:I,51:N},r(V,[2,11]),r(V,[2,32],{35:60,29:P}),r(V,[2,34]),{33:[1,61]},r(V,[2,12]),{17:62,24:$},{25:63,27:64,29:q},r(V,[2,14]),{17:66,24:$},r(V,[2,16]),r(V,[2,17]),r(Q,[2,43]),r(V,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},r(V,[2,33]),{29:[1,70]},r(V,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},r(W,[2,23],{30:[1,73]}),r(V,[2,15]),r(V,[2,28]),r(V,[2,29]),{11:59,30:m,34:74,39:24,40:b,41:27,42:v,43:T,44:C,45:E,46:S,47:R,48:L,49:_,50:I,51:N},r(V,[2,35]),r(V,[2,19]),{25:75,27:64,29:q},r(W,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:i(function(te,U){if(U.recoverable)this.trace(te);else{var ne=new Error(te);throw ne.hash=U,ne}},"parseError"),parse:i(function(te){var U=this,ne=[0],se=[],he=[null],le=[],pe=this.table,ge="",we=0,Ae=0,ve=0,Ie=2,De=1,Be=le.slice.call(arguments,1),Fe=Object.create(this.lexer),ze={yy:{}};for(var vt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,vt)&&(ze.yy[vt]=this.yy[vt]);Fe.setInput(te,ze.yy),ze.yy.lexer=Fe,ze.yy.parser=this,typeof Fe.yylloc>"u"&&(Fe.yylloc={});var lt=Fe.yylloc;le.push(lt);var Ft=Fe.options&&Fe.options.ranges;typeof ze.yy.parseError=="function"?this.parseError=ze.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pr(Te){ne.length=ne.length-2*Te,he.length=he.length-Te,le.length=le.length-Te}i(pr,"popStack");function tr(){var Te;return Te=se.pop()||Fe.lex()||De,typeof Te!="number"&&(Te instanceof Array&&(se=Te,Te=se.pop()),Te=U.symbols_[Te]||Te),Te}i(tr,"lex");for(var Mt,ot,it,mt,Rt,pt,gt={},ut,Yt,Ye,Oe;;){if(it=ne[ne.length-1],this.defaultActions[it]?mt=this.defaultActions[it]:((Mt===null||typeof Mt>"u")&&(Mt=tr()),mt=pe[it]&&pe[it][Mt]),typeof mt>"u"||!mt.length||!mt[0]){var K="";Oe=[];for(ut in pe[it])this.terminals_[ut]&&ut>Ie&&Oe.push("'"+this.terminals_[ut]+"'");Fe.showPosition?K="Parse error on line "+(we+1)+`:
|
|
`+Fe.showPosition()+`
|
|
Expecting `+Oe.join(", ")+", got '"+(this.terminals_[Mt]||Mt)+"'":K="Parse error on line "+(we+1)+": Unexpected "+(Mt==De?"end of input":"'"+(this.terminals_[Mt]||Mt)+"'"),this.parseError(K,{text:Fe.match,token:this.terminals_[Mt]||Mt,line:Fe.yylineno,loc:lt,expected:Oe})}if(mt[0]instanceof Array&&mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+it+", token: "+Mt);switch(mt[0]){case 1:ne.push(Mt),he.push(Fe.yytext),le.push(Fe.yylloc),ne.push(mt[1]),Mt=null,ot?(Mt=ot,ot=null):(Ae=Fe.yyleng,ge=Fe.yytext,we=Fe.yylineno,lt=Fe.yylloc,ve>0&&ve--);break;case 2:if(Yt=this.productions_[mt[1]][1],gt.$=he[he.length-Yt],gt._$={first_line:le[le.length-(Yt||1)].first_line,last_line:le[le.length-1].last_line,first_column:le[le.length-(Yt||1)].first_column,last_column:le[le.length-1].last_column},Ft&&(gt._$.range=[le[le.length-(Yt||1)].range[0],le[le.length-1].range[1]]),pt=this.performAction.apply(gt,[ge,Ae,we,ze.yy,mt[1],he,le].concat(Be)),typeof pt<"u")return pt;Yt&&(ne=ne.slice(0,-1*Yt*2),he=he.slice(0,-1*Yt),le=le.slice(0,-1*Yt)),ne.push(this.productions_[mt[1]][0]),he.push(gt.$),le.push(gt._$),Ye=pe[ne[ne.length-2]][ne[ne.length-1]],ne.push(Ye);break;case 3:return!0}}return!0},"parse")},re=(function(){var X={EOF:1,parseError:i(function(U,ne){if(this.yy.parser)this.yy.parser.parseError(U,ne);else throw new Error(U)},"parseError"),setInput:i(function(te,U){return this.yy=U||this.yy||{},this._input=te,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var te=this._input[0];this.yytext+=te,this.yyleng++,this.offset++,this.match+=te,this.matched+=te;var U=te.match(/(?:\r\n?|\n).*/g);return U?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),te},"input"),unput:i(function(te){var U=te.length,ne=te.split(/(?:\r\n?|\n)/g);this._input=te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-U),this.offset-=U;var se=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var he=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ne?(ne.length===se.length?this.yylloc.first_column:0)+se[se.length-ne.length].length-ne[0].length:this.yylloc.first_column-U},this.options.ranges&&(this.yylloc.range=[he[0],he[0]+this.yyleng-U]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(te){this.unput(this.match.slice(te))},"less"),pastInput:i(function(){var te=this.matched.substr(0,this.matched.length-this.match.length);return(te.length>20?"...":"")+te.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var te=this.match;return te.length<20&&(te+=this._input.substr(0,20-te.length)),(te.substr(0,20)+(te.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var te=this.pastInput(),U=new Array(te.length+1).join("-");return te+this.upcomingInput()+`
|
|
`+U+"^"},"showPosition"),test_match:i(function(te,U){var ne,se,he;if(this.options.backtrack_lexer&&(he={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(he.yylloc.range=this.yylloc.range.slice(0))),se=te[0].match(/(?:\r\n?|\n).*/g),se&&(this.yylineno+=se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:se?se[se.length-1].length-se[se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+te[0].length},this.yytext+=te[0],this.match+=te[0],this.matches=te,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(te[0].length),this.matched+=te[0],ne=this.performAction.call(this,this.yy,this,U,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var le in he)this[le]=he[le];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var te,U,ne,se;this._more||(this.yytext="",this.match="");for(var he=this._currentRules(),le=0;le<he.length;le++)if(ne=this._input.match(this.rules[he[le]]),ne&&(!U||ne[0].length>U[0].length)){if(U=ne,se=le,this.options.backtrack_lexer){if(te=this.test_match(ne,he[le]),te!==!1)return te;if(this._backtrack){U=!1;continue}else return!1}else if(!this.options.flex)break}return U?(te=this.test_match(U,he[se]),te!==!1?te:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var U=this.next();return U||this.lex()},"lex"),begin:i(function(U){this.conditionStack.push(U)},"begin"),popState:i(function(){var U=this.conditionStack.length-1;return U>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(U){return U=this.conditionStack.length-1-Math.abs(U||0),U>=0?this.conditionStack[U]:"INITIAL"},"topState"),pushState:i(function(U){this.begin(U)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(U,ne,se,he){var le=he;switch(se){case 0:break;case 1:break;case 2:return this.popState(),36;break;case 3:return this.popState(),36;break;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 33;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 29;case 25:return this.popState(),26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return X})();H.lexer=re;function Z(){this.yy={}}return i(Z,"Parser"),Z.prototype=H,H.Parser=Z,new Z})();hut.parser=hut;b$r=hut});function Oae(r){return r.type==="bar"}function Pae(r){return r.type==="band"}function kW(r){return r.type==="linear"}var Bae=ae(()=>{"use strict";i(Oae,"isBarPlot");i(Pae,"isBandAxisData");i(kW,"isLinearAxisData")});var LD,xCe=ae(()=>{"use strict";ex();LD=class{constructor(t){this.parentGroup=t}static{i(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,a){if(!this.parentGroup)return{width:t.reduce((b,v)=>Math.max(v.length,b),0)*a,height:a};let s={width:0,height:0},l=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",a),h=l.node()?.getScreenCTM?.(),f=i(b=>b&&b>0?b:1,"toScale"),d=f(h?.a),m=f(h?.d);for(let b of t){let v=e0r(l,1,b),T=v?v.width/d:b.length*a,C=v?v.height/m:a;s.width=Math.max(s.width,T),s.height=Math.max(s.height,C)}return l.remove(),s}}});var CW,fut=ae(()=>{"use strict";CW=class{constructor(t,a,s,l){this.axisConfig=t;this.title=a;this.textDimensionCalculator=s;this.axisThemeConfig=l;this.boundingRect={x:0,y:0,width:0,height:0};this.axisPosition="left";this.showTitle=!1;this.showLabel=!1;this.showTick=!1;this.showAxisLine=!1;this.outerPadding=0;this.titleTextHeight=0;this.labelTextHeight=0;this.normalizedLabelRotationInRad=0;this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{i(this,"BaseAxis")}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let a=t.height;if(this.axisConfig.showAxisLine&&a>this.axisConfig.axisLineWidth&&(a-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let s=this.getLabelDimension(),l=.2*t.width;this.outerPadding=Math.min(s.width/2,l);let h=s.height;this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0&&(h=Math.max(h,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*s.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*s.height))),h+=this.axisConfig.labelPadding*2,this.labelTextHeight=s.height,h<=a&&(a-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&a>=this.axisConfig.tickLength&&(this.showTick=!0,a-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),l=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,l<=a&&(a-=l,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-a}calculateSpaceIfDrawnVertical(t){let a=t.width;if(this.axisConfig.showAxisLine&&a>this.axisConfig.axisLineWidth&&(a-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let s=this.getLabelDimension(),l=.2*t.height;this.outerPadding=Math.min(s.height/2,l);let h=s.width+this.axisConfig.labelPadding*2;h<=a&&(a-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&a>=this.axisConfig.tickLength&&(this.showTick=!0,a-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),l=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,l<=a&&(a-=l,this.showTitle=!0)}this.boundingRect.width=t.width-a,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){let a=this.normalizedLabelRotationInRad;return a===0?0:Math.sin(a)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let a=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${a},${this.boundingRect.y} L ${a},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(a=>({text:a.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(a),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let a=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${a},${this.getScaleValue(s)} L ${a-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let a=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${a} L ${this.boundingRect.x+this.boundingRect.width},${a}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(a=>({text:a.toString(),x:this.getScaleValue(a)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let a=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${a} L ${this.getScaleValue(s)},${a+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let a=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${a} L ${this.boundingRect.x+this.boundingRect.width},${a}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(a=>({text:a.toString(),x:this.getScaleValue(a),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let a=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${a+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${a+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}});var TCe,w$r=ae(()=>{"use strict";zo();Yn();fut();TCe=class extends CW{static{i(this,"BandAxis")}constructor(t,a,s,l,h){super(t,l,h,a),this.categories=s,this.scale=Vz().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=Vz().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Pe.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}}});var kCe,x$r=ae(()=>{"use strict";zo();fut();kCe=class extends CW{static{i(this,"LinearAxis")}constructor(t,a,s,l,h){super(t,l,h,a),this.domain=s,this.scale=A4().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=A4().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}});function dut(r,t,a,s){let l=new LD(s);return Pae(r)?new TCe(t,a,r.categories,r.title,l):new kCe(t,a,[r.min,r.max],r.title,l)}var T$r=ae(()=>{"use strict";Bae();xCe();w$r();x$r();i(dut,"getAxis")});function k$r(r,t,a,s){let l=new LD(s);return new put(l,r,t,a)}var put,C$r=ae(()=>{"use strict";xCe();put=class{constructor(t,a,s,l){this.textDimensionCalculator=t;this.chartConfig=a;this.chartData=s;this.chartThemeConfig=l;this.titleWidth=0;this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{i(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let a=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(a.width,t.width),l=a.height+2*this.chartConfig.titlePadding;return l<=t.height&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=l,this.titleWidth=a.width,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}alignTo(t,a){let s=Math.min(this.titleWidth,this.chartConfig.width)/2,l=Math.min(Math.max((t+a)/2,s),this.chartConfig.width-s);this.boundingRect.x=l-s,this.boundingRect.width=s*2}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};i(k$r,"getChartTitleComponent")});function E$r(r){return{fontSize:r,markerSize:r*Dhi,markerSpacing:r*Mhi,itemSpacing:r*Ihi}}function S$r(r,t,a,s){let l=new LD(s);return new gut(l,r,t,a)}var Dhi,Ihi,Mhi,gut,A$r=ae(()=>{"use strict";Bae();xCe();Dhi=.75,Ihi=.5,Mhi=.35;i(E$r,"getLegendLayout");gut=class{constructor(t,a,s,l){this.textDimensionCalculator=t;this.chartConfig=a;this.chartData=s;this.chartThemeConfig=l;this.boundingRect={x:0,y:0,width:0,height:0};this.visiblePlots=[]}static{i(this,"ChartLegend")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(b=>b.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:a,markerSize:s,markerSpacing:l,itemSpacing:h}=E$r(this.chartConfig.legendFontSize),f=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(b=>b.title),a),d=this.chartConfig.legendPadding*2+s+l+f.width,m=this.chartConfig.legendPadding*2+this.visiblePlots.length*a+(this.visiblePlots.length-1)*h;return d<=t.width&&m<=t.height?(this.boundingRect.width=d,this.boundingRect.height=m):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:t,markerSize:a,markerSpacing:s,itemSpacing:l}=E$r(this.chartConfig.legendFontSize),h=t+l,f=this.boundingRect.x+this.chartConfig.legendPadding,d=this.boundingRect.y+this.chartConfig.legendPadding,m=[],b=[];for(let[v,T]of this.visiblePlots.entries())if(Oae(T))m.push({x:f,y:d+v*h,width:a,height:a,fill:T.fill,strokeFill:T.fill,strokeWidth:0});else{let C=d+v*h+a/2;b.push({path:`M ${f},${C} L ${f+a},${C}`,strokeFill:T.strokeFill,strokeWidth:T.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:m},{groupTexts:["legend","markers"],type:"path",data:b},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((v,T)=>({text:v.title,x:f+a+s,y:d+T*h+a/2,fill:this.chartThemeConfig.legendTextColor,fontSize:t,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}};i(S$r,"getChartLegendComponent")});var CCe,R$r=ae(()=>{"use strict";zo();CCe=class{constructor(t,a,s,l,h){this.plotData=t;this.xAxis=a;this.yAxis=s;this.orientation=l;this.plotIndex=h}static{i(this,"LinePlot")}getDrawableElement(){let t=this.plotData.data.map(l=>[this.xAxis.getScaleValue(l[0]),this.yAxis.getScaleValue(l[1])]),a;if(this.orientation==="horizontal"?a=EO().y(l=>l[0]).x(l=>l[1])(t):a=EO().x(l=>l[0]).y(l=>l[1])(t),!a)return[];let s=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:a,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let f=[];for(let[d,[m,b]]of t.entries()){let v=this.plotData.pointLabels[d];v&&(this.orientation==="horizontal"?f.push({x:b+10,y:m,text:v,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):f.push({x:m,y:b-10,text:v,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}f.length>0&&s.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:f})}return s}}});var ECe,L$r=ae(()=>{"use strict";ECe=class{constructor(t,a,s,l,h,f){this.barData=t;this.boundingRect=a;this.xAxis=s;this.yAxis=l;this.orientation=h;this.plotIndex=f}static{i(this,"BarPlot")}getDrawableElement(){let t=this.barData.data.map(h=>[this.xAxis.getScaleValue(h[0]),this.yAxis.getScaleValue(h[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),l=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:this.boundingRect.x,y:h[0]-l,height:s,width:h[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(h=>({x:h[0]-l,y:h[1],width:s,height:this.boundingRect.y+this.boundingRect.height-h[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}});function _$r(r,t,a){return new mut(r,t,a)}var mut,D$r=ae(()=>{"use strict";R$r();L$r();mut=class{constructor(t,a,s){this.chartConfig=t;this.chartData=a;this.chartThemeConfig=s;this.boundingRect={x:0,y:0,width:0,height:0}}static{i(this,"BasePlot")}setAxes(t,a){this.xAxis=t,this.yAxis=a}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[a,s]of this.chartData.plots.entries())switch(s.type){case"line":{let l=new CCe(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,a);t.push(...l.getDrawableElement())}break;case"bar":{let l=new ECe(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,a);t.push(...l.getDrawableElement())}break}return t}};i(_$r,"getPlotComponent")});var SCe,I$r=ae(()=>{"use strict";T$r();C$r();A$r();D$r();Bae();SCe=class{constructor(t,a,s,l){this.chartConfig=t;this.chartData=a;this.componentStore={title:k$r(t,a,s,l),plot:_$r(t,a,s),legend:S$r(t,a,s,l),xAxis:dut(a.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},l),yAxis:dut(a.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},l)}}static{i(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,a=this.chartConfig.height,s=0,l=0,h={width:0,height:0},f=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(a*this.chartConfig.plotReservedSpacePercent/100),m=this.componentStore.plot.calculateSpace({width:f,height:d});t-=m.width,a-=m.height,m=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:a}),l=m.height,a-=m.height,this.componentStore.xAxis.setAxisPosition("bottom"),m=this.componentStore.xAxis.calculateSpace({width:t,height:a}),a-=m.height,this.componentStore.yAxis.setAxisPosition("left"),m=this.componentStore.yAxis.calculateSpace({width:t,height:a}),s=m.width,t-=m.width,h=this.componentStore.legend.calculateSpace({width:t,height:d}),t-=h.width,t>0&&(f+=t,t=0),a>0&&(d+=a,a=0),this.componentStore.plot.calculateSpace({width:f,height:d}),this.componentStore.plot.setBoundingBoxXY({x:s,y:l}),this.componentStore.title.alignTo(s,s+f),this.componentStore.legend.setBoundingBoxXY({x:s+f,y:l+Math.max((d-h.height)/2,0)}),this.componentStore.xAxis.setRange([s,s+f]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:l+d}),this.componentStore.yAxis.setRange([l,l+d]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:l}),this.chartData.plots.some(b=>Oae(b))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,a=this.chartConfig.height,s=0,l=0,h=0,f={width:0,height:0},d=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),m=Math.floor(a*this.chartConfig.plotReservedSpacePercent/100),b=this.componentStore.plot.calculateSpace({width:d,height:m});t-=b.width,a-=b.height,b=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:a}),s=b.height,a-=b.height,this.componentStore.xAxis.setAxisPosition("left"),b=this.componentStore.xAxis.calculateSpace({width:t,height:a}),t-=b.width,l=b.width,this.componentStore.yAxis.setAxisPosition("top"),b=this.componentStore.yAxis.calculateSpace({width:t,height:a}),a-=b.height,h=s+b.height,f=this.componentStore.legend.calculateSpace({width:t,height:m}),t-=f.width,t>0&&(d+=t,t=0),a>0&&(m+=a,a=0),this.componentStore.plot.calculateSpace({width:d,height:m}),this.componentStore.plot.setBoundingBoxXY({x:l,y:h}),this.componentStore.title.alignTo(l,l+d),this.componentStore.legend.setBoundingBoxXY({x:l+d,y:h+Math.max((m-f.height)/2,0)}),this.componentStore.yAxis.setRange([l,l+d]),this.componentStore.yAxis.setBoundingBoxXY({x:l,y:s}),this.componentStore.xAxis.setRange([h,h+m]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:h}),this.chartData.plots.some(v=>Oae(v))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let a of Object.values(this.componentStore))t.push(...a.getDrawableElements());return t}}});var ACe,M$r=ae(()=>{"use strict";I$r();ACe=class{static{i(this,"XYChartBuilder")}static build(t,a,s,l){return new SCe(t,a,s,l).getDrawableElement()}}});function O$r(){let r=hm(),t=ri();return il(r.xyChart,t.themeVariables.xyChart)}function P$r(){let r=ri();return il(ps.xyChart,r.xyChart)}function B$r(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function EW(r){let t=ri();return Ns(r.trim(),t)}function Nhi(r){N$r=r}function Ohi(r){r==="horizontal"?$ae.chartOrientation="horizontal":$ae.chartOrientation="vertical"}function Phi(r){Hc.xAxis.title=EW(r.text)}function F$r(r,t){Hc.xAxis={type:"linear",title:Hc.xAxis.title,min:r,max:t},RCe=!0}function Bhi(r){Hc.xAxis={type:"band",title:Hc.xAxis.title,categories:r.map(t=>EW(t.text))},RCe=!0}function Fhi(r){Hc.yAxis.title=EW(r.text)}function $hi(r,t){Hc.yAxis={type:"linear",title:Hc.yAxis.title,min:r,max:t},but=!0}function Ghi(r){let t=Math.min(...r),a=Math.max(...r),s=kW(Hc.yAxis)?Hc.yAxis.min:1/0,l=kW(Hc.yAxis)?Hc.yAxis.max:-1/0;Hc.yAxis={type:"linear",title:Hc.yAxis.title,min:Math.min(s,t),max:Math.max(l,a)}}function $$r(r){let t=[];if(r.length===0)return t;if(!RCe){let a=kW(Hc.xAxis)?Hc.xAxis.min:1/0,s=kW(Hc.xAxis)?Hc.xAxis.max:-1/0;F$r(Math.min(a,1),Math.max(s,r.length))}if(Pae(Hc.xAxis)&&r.length>Hc.xAxis.categories.length&&(r=r.slice(0,Hc.xAxis.categories.length)),but||Ghi(r),Pae(Hc.xAxis)&&(t=Hc.xAxis.categories.map((a,s)=>[a,r[s]])),kW(Hc.xAxis)){let a=Hc.xAxis.min,s=Hc.xAxis.max;if(r.length===1)t=[[`${a}`,r[0]]];else{let l=(s-a)/(r.length-1);t=r.map((h,f)=>[`${a+f*l}`,h])}}return t}function G$r(r){return yut[r===0?0:r%yut.length]}function jhi(r,t){let a=t.map(f=>f.value),s=t.map(f=>f.label?EW(f.label):""),l=$$r(a),h=s.some(f=>f!=="");Hc.plots.push({type:"line",title:EW(r.text),strokeFill:G$r(Fae),strokeWidth:2,data:l,...h?{pointLabels:s}:{}}),Fae++}function zhi(r,t){let a=t.map(l=>l.value),s=$$r(a);Hc.plots.push({type:"bar",title:EW(r.text),fill:G$r(Fae),data:s}),Fae++}function Uhi(){if(Hc.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Hc.title=Ks(),ACe.build($ae,Hc,Gae,N$r)}function Vhi(){return Gae}function Whi(){return $ae}function Hhi(){return Hc}var Fae,N$r,$ae,Gae,Hc,yut,RCe,but,qhi,j$r,z$r=ae(()=>{"use strict";Xs();pp();jE();Ma();nl();Au();M$r();Bae();Fae=0,$ae=P$r(),Gae=O$r(),Hc=B$r(),yut=Gae.plotColorPalette.split(",").map(r=>r.trim()),RCe=!1,but=!1;i(O$r,"getChartDefaultThemeConfig");i(P$r,"getChartDefaultConfig");i(B$r,"getChartDefaultData");i(EW,"textSanitizer");i(Nhi,"setTmpSVGG");i(Ohi,"setOrientation");i(Phi,"setXAxisTitle");i(F$r,"setXAxisRangeData");i(Bhi,"setXAxisBand");i(Fhi,"setYAxisTitle");i($hi,"setYAxisRangeData");i(Ghi,"setYAxisRangeFromPlotData");i($$r,"transformDataWithoutCategory");i(G$r,"getPlotColorFromPalette");i(jhi,"setLineData");i(zhi,"setBarData");i(Uhi,"getDrawableElem");i(Vhi,"getChartThemeConfig");i(Whi,"getChartConfig");i(Hhi,"getXYChartData");qhi=i(function(){Ds(),Fae=0,$ae=P$r(),Hc=B$r(),Gae=O$r(),yut=Gae.plotColorPalette.split(",").map(r=>r.trim()),RCe=!1,but=!1},"clear"),j$r={getDrawableElem:Uhi,clear:qhi,setAccTitle:Os,getAccTitle:Vs,setDiagramTitle:io,getDiagramTitle:Ks,getAccDescription:Ws,setAccDescription:$s,setOrientation:Ohi,setXAxisTitle:Phi,setXAxisRangeData:F$r,setXAxisBand:Bhi,setYAxisTitle:Fhi,setYAxisRangeData:$hi,setLineData:jhi,setBarData:zhi,setTmpSVGG:Nhi,getChartThemeConfig:Vhi,getChartConfig:Whi,getXYChartData:Hhi}});var Yhi,U$r,V$r=ae(()=>{"use strict";Yn();x1();$h();Yhi=i((r,t,a,s)=>{let l=s.db,h=l.getChartThemeConfig(),f=l.getChartConfig(),d=l.getXYChartData().plots[0].data.map(N=>N[1]);function m(N){return N==="top"?"text-before-edge":"middle"}i(m,"getDominantBaseLine");function b(N){return N==="left"?"start":N==="right"?"end":"middle"}i(b,"getTextAnchor");function v(N){return`translate(${N.x}, ${N.y}) rotate(${N.rotation||0})`}i(v,"getTextTransformation"),Pe.debug(`Rendering xychart chart
|
|
`+r);let T=pu(t),C=T.append("g").attr("class","main"),E=C.append("rect").attr("width",f.width).attr("height",f.height).attr("class","background");wl(T,f.height,f.width,!0),T.attr("viewBox",`0 0 ${f.width} ${f.height}`),E.attr("fill",h.backgroundColor),l.setTmpSVGG(T.append("g").attr("class","mermaid-tmp-group"));let S=l.getDrawableElem(),R={};function L(N){let B=C,O="";for(let[P]of N.entries()){let $=C;P>0&&R[O]&&($=R[O]),O+=N[P],B=R[O],B||(B=R[O]=$.append("g").attr("class",N[P]))}return B}i(L,"getGroup");for(let N of S){if(N.data.length===0)continue;let B=L(N.groupTexts);switch(N.type){case"rect":if(B.selectAll("rect").data(N.data).enter().append("rect").attr("x",O=>O.x).attr("y",O=>O.y).attr("width",O=>O.width).attr("height",O=>O.height).attr("fill",O=>O.fill).attr("stroke",O=>O.strokeFill).attr("stroke-width",O=>O.strokeWidth),f.showDataLabel){let O=f.showDataLabelOutsideBar;if(f.chartOrientation==="horizontal"){let Y=function(H,re){let{data:Z,label:X}=H;return re*X.length*.7<=Z.width-10};var _=Y;i(Y,"fitsHorizontally");let P=.7,$=10,V=N.data.map((H,re)=>({data:H,label:d[re].toString()})).filter(H=>H.data.width>0&&H.data.height>0),Q=V.map(H=>{let{data:re}=H,Z=re.height*.7;for(;!Y(H,Z)&&Z>0;)Z-=1;return Z}),q=Math.floor(Math.min(...Q)),W=i(H=>O?H.data.x+H.data.width+10:H.data.x+H.data.width-10,"determineLabelXPosition");B.selectAll("text").data(V).enter().append("text").attr("x",W).attr("y",H=>H.data.y+H.data.height/2).attr("text-anchor",O?"start":"end").attr("dominant-baseline","middle").attr("fill",h.dataLabelColor).attr("font-size",`${q}px`).text(H=>H.label)}else{let V=function(W,H,re){let{data:Z,label:X}=W,U=H*X.length*.7,ne=Z.x+Z.width/2,se=ne-U/2,he=ne+U/2,le=se>=Z.x&&he<=Z.x+Z.width,pe=Z.y+re+H<=Z.y+Z.height;return le&&pe};var I=V;i(V,"fitsInBar");let P=10,$=N.data.map((W,H)=>({data:W,label:d[H].toString()})).filter(W=>W.data.width>0&&W.data.height>0),Y=$.map(W=>{let{data:H,label:re}=W,Z=H.width/(re.length*.7);for(;!V(W,Z,10)&&Z>0;)Z-=1;return Z}),Q=Math.floor(Math.min(...Y)),q=i(W=>O?W.data.y-10:W.data.y+10,"determineLabelYPosition");B.selectAll("text").data($).enter().append("text").attr("x",W=>W.data.x+W.data.width/2).attr("y",q).attr("text-anchor","middle").attr("dominant-baseline",O?"auto":"hanging").attr("fill",h.dataLabelColor).attr("font-size",`${Q}px`).text(W=>W.label)}}break;case"text":B.selectAll("text").data(N.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",O=>O.fill).attr("font-size",O=>O.fontSize).attr("dominant-baseline",O=>m(O.verticalPos)).attr("text-anchor",O=>b(O.horizontalPos)).attr("transform",O=>v(O)).text(O=>O.text);break;case"path":B.selectAll("path").data(N.data).enter().append("path").attr("d",O=>O.path).attr("fill",O=>O.fill?O.fill:"none").attr("stroke",O=>O.strokeFill).attr("stroke-width",O=>O.strokeWidth);break}}},"draw"),U$r={draw:Yhi}});var W$r={};is(W$r,{diagram:()=>Xhi});var Xhi,H$r=ae(()=>{"use strict";v$r();z$r();V$r();Xhi={parser:b$r,db:j$r,renderer:U$r}});var vut,X$r,K$r=ae(()=>{"use strict";vut=(function(){var r=i(function(K,Te,ce,Re){for(ce=ce||{},Re=K.length;Re--;ce[K[Re]]=Te);return ce},"o"),t=[1,3],a=[1,4],s=[1,5],l=[1,6],h=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],f=[1,22],d=[2,7],m=[1,26],b=[1,27],v=[1,28],T=[1,29],C=[1,33],E=[1,34],S=[1,35],R=[1,36],L=[1,37],_=[1,38],I=[1,24],N=[1,31],B=[1,32],O=[1,30],P=[1,39],$=[1,40],V=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],Y=[1,61],Q=[89,90],q=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],W=[27,29],H=[1,70],re=[1,71],Z=[1,72],X=[1,73],te=[1,74],U=[1,75],ne=[1,76],se=[1,83],he=[1,80],le=[1,84],pe=[1,85],ge=[1,86],we=[1,87],Ae=[1,88],ve=[1,89],Ie=[1,90],De=[1,91],Be=[1,92],Fe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ze=[63,64],vt=[1,101],lt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Ft=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],pr=[1,110],tr=[1,106],Mt=[1,107],ot=[1,108],it=[1,109],mt=[1,111],Rt=[1,116],pt=[1,117],gt=[1,114],ut=[1,115],Yt={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:i(function(Te,ce,Re,me,be,ke,We){var Ue=ke.length-1;switch(be){case 4:this.$=ke[Ue].trim(),me.setAccTitle(this.$);break;case 5:case 6:this.$=ke[Ue].trim(),me.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:me.setDirection("TB");break;case 18:me.setDirection("BT");break;case 19:me.setDirection("RL");break;case 20:me.setDirection("LR");break;case 21:me.addRequirement(ke[Ue-3],ke[Ue-4]);break;case 22:me.addRequirement(ke[Ue-5],ke[Ue-6]),me.setClass([ke[Ue-5]],ke[Ue-3]);break;case 23:me.setNewReqId(ke[Ue-2]);break;case 24:me.setNewReqText(ke[Ue-2]);break;case 25:me.setNewReqRisk(ke[Ue-2]);break;case 26:me.setNewReqVerifyMethod(ke[Ue-2]);break;case 29:this.$=me.RequirementType.REQUIREMENT;break;case 30:this.$=me.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=me.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=me.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=me.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=me.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=me.RiskLevel.LOW_RISK;break;case 36:this.$=me.RiskLevel.MED_RISK;break;case 37:this.$=me.RiskLevel.HIGH_RISK;break;case 38:this.$=me.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=me.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=me.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=me.VerifyType.VERIFY_TEST;break;case 42:me.addElement(ke[Ue-3]);break;case 43:me.addElement(ke[Ue-5]),me.setClass([ke[Ue-5]],ke[Ue-3]);break;case 44:me.setNewElementType(ke[Ue-2]);break;case 45:me.setNewElementDocRef(ke[Ue-2]);break;case 48:me.addRelationship(ke[Ue-2],ke[Ue],ke[Ue-4]);break;case 49:me.addRelationship(ke[Ue-2],ke[Ue-4],ke[Ue]);break;case 50:this.$=me.Relationships.CONTAINS;break;case 51:this.$=me.Relationships.COPIES;break;case 52:this.$=me.Relationships.DERIVES;break;case 53:this.$=me.Relationships.SATISFIES;break;case 54:this.$=me.Relationships.VERIFIES;break;case 55:this.$=me.Relationships.REFINES;break;case 56:this.$=me.Relationships.TRACES;break;case 57:this.$=ke[Ue-2],me.defineClass(ke[Ue-1],ke[Ue]);break;case 58:me.setClass(ke[Ue-1],ke[Ue]);break;case 59:me.setClass([ke[Ue-2]],ke[Ue]);break;case 60:case 62:this.$=[ke[Ue]];break;case 61:case 63:this.$=ke[Ue-2].concat([ke[Ue]]);break;case 64:this.$=ke[Ue-2],me.setCssStyle(ke[Ue-1],ke[Ue]);break;case 65:this.$=[ke[Ue]];break;case 66:ke[Ue-2].push(ke[Ue]),this.$=ke[Ue-2];break;case 68:this.$=ke[Ue-1]+ke[Ue];break}},"anonymous"),table:[{3:1,4:2,6:t,9:a,11:s,13:l},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:a,11:s,13:l},{5:[1,9]},{10:[1,10]},{12:[1,11]},r(h,[2,6]),{3:12,4:2,6:t,9:a,11:s,13:l},{1:[2,2]},{4:17,5:f,7:13,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},r(h,[2,4]),r(h,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:f,7:42,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{4:17,5:f,7:43,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{4:17,5:f,7:44,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{4:17,5:f,7:45,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{4:17,5:f,7:46,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{4:17,5:f,7:47,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{4:17,5:f,7:48,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{4:17,5:f,7:49,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{4:17,5:f,7:50,8:d,9:a,11:s,13:l,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:m,22:b,23:v,24:T,25:23,33:25,41:C,42:E,43:S,44:R,45:L,46:_,54:I,72:N,74:B,77:O,89:P,90:$},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},r(V,[2,17]),r(V,[2,18]),r(V,[2,19]),r(V,[2,20]),{30:60,33:62,75:Y,89:P,90:$},{30:63,33:62,75:Y,89:P,90:$},{30:64,33:62,75:Y,89:P,90:$},r(Q,[2,29]),r(Q,[2,30]),r(Q,[2,31]),r(Q,[2,32]),r(Q,[2,33]),r(Q,[2,34]),r(q,[2,81]),r(q,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},r(W,[2,79]),r(W,[2,80]),{27:[1,67],29:[1,68]},r(W,[2,85]),r(W,[2,86]),{62:69,65:H,66:re,67:Z,68:X,69:te,70:U,71:ne},{62:77,65:H,66:re,67:Z,68:X,69:te,70:U,71:ne},{30:78,33:62,75:Y,89:P,90:$},{73:79,75:se,76:he,78:81,79:82,80:le,81:pe,82:ge,83:we,84:Ae,85:ve,86:Ie,87:De,88:Be},r(Fe,[2,60]),r(Fe,[2,62]),{73:93,75:se,76:he,78:81,79:82,80:le,81:pe,82:ge,83:we,84:Ae,85:ve,86:Ie,87:De,88:Be},{30:94,33:62,75:Y,76:he,89:P,90:$},{5:[1,95]},{30:96,33:62,75:Y,89:P,90:$},{5:[1,97]},{30:98,33:62,75:Y,89:P,90:$},{63:[1,99]},r(ze,[2,50]),r(ze,[2,51]),r(ze,[2,52]),r(ze,[2,53]),r(ze,[2,54]),r(ze,[2,55]),r(ze,[2,56]),{64:[1,100]},r(V,[2,59],{76:he}),r(V,[2,64],{76:vt}),{33:103,75:[1,102],89:P,90:$},r(lt,[2,65],{79:104,75:se,80:le,81:pe,82:ge,83:we,84:Ae,85:ve,86:Ie,87:De,88:Be}),r(Ft,[2,67]),r(Ft,[2,69]),r(Ft,[2,70]),r(Ft,[2,71]),r(Ft,[2,72]),r(Ft,[2,73]),r(Ft,[2,74]),r(Ft,[2,75]),r(Ft,[2,76]),r(Ft,[2,77]),r(Ft,[2,78]),r(V,[2,57],{76:vt}),r(V,[2,58],{76:he}),{5:pr,28:105,31:tr,34:Mt,36:ot,38:it,40:mt},{27:[1,112],76:he},{5:Rt,40:pt,56:113,57:gt,59:ut},{27:[1,118],76:he},{33:119,89:P,90:$},{33:120,89:P,90:$},{75:se,78:121,79:82,80:le,81:pe,82:ge,83:we,84:Ae,85:ve,86:Ie,87:De,88:Be},r(Fe,[2,61]),r(Fe,[2,63]),r(Ft,[2,68]),r(V,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:pr,28:126,31:tr,34:Mt,36:ot,38:it,40:mt},r(V,[2,28]),{5:[1,127]},r(V,[2,42]),{32:[1,128]},{32:[1,129]},{5:Rt,40:pt,56:130,57:gt,59:ut},r(V,[2,47]),{5:[1,131]},r(V,[2,48]),r(V,[2,49]),r(lt,[2,66],{79:104,75:se,80:le,81:pe,82:ge,83:we,84:Ae,85:ve,86:Ie,87:De,88:Be}),{33:132,89:P,90:$},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},r(V,[2,27]),{5:pr,28:145,31:tr,34:Mt,36:ot,38:it,40:mt},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},r(V,[2,46]),{5:Rt,40:pt,56:152,57:gt,59:ut},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},r(V,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},r(V,[2,43]),{5:pr,28:159,31:tr,34:Mt,36:ot,38:it,40:mt},{5:pr,28:160,31:tr,34:Mt,36:ot,38:it,40:mt},{5:pr,28:161,31:tr,34:Mt,36:ot,38:it,40:mt},{5:pr,28:162,31:tr,34:Mt,36:ot,38:it,40:mt},{5:Rt,40:pt,56:163,57:gt,59:ut},{5:Rt,40:pt,56:164,57:gt,59:ut},r(V,[2,23]),r(V,[2,24]),r(V,[2,25]),r(V,[2,26]),r(V,[2,44]),r(V,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:i(function(Te,ce){if(ce.recoverable)this.trace(Te);else{var Re=new Error(Te);throw Re.hash=ce,Re}},"parseError"),parse:i(function(Te){var ce=this,Re=[0],me=[],be=[null],ke=[],We=this.table,Ue="",rt=0,nt=0,Ot=0,ft=2,Qt=1,$t=ke.slice.call(arguments,1),qt=Object.create(this.lexer),Gt={yy:{}};for(var jt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,jt)&&(Gt.yy[jt]=this.yy[jt]);qt.setInput(Te,Gt.yy),Gt.yy.lexer=qt,Gt.yy.parser=this,typeof qt.yylloc>"u"&&(qt.yylloc={});var Zr=qt.yylloc;ke.push(Zr);var yt=qt.options&&qt.options.ranges;typeof Gt.yy.parseError=="function"?this.parseError=Gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $n(ct){Re.length=Re.length-2*ct,be.length=be.length-ct,ke.length=ke.length-ct}i($n,"popStack");function Ut(){var ct;return ct=me.pop()||qt.lex()||Qt,typeof ct!="number"&&(ct instanceof Array&&(me=ct,ct=me.pop()),ct=ce.symbols_[ct]||ct),ct}i(Ut,"lex");for(var An,Un,En,ai,Gn,ui,Tn={},Wi,Pa,qe,Rn;;){if(En=Re[Re.length-1],this.defaultActions[En]?ai=this.defaultActions[En]:((An===null||typeof An>"u")&&(An=Ut()),ai=We[En]&&We[En][An]),typeof ai>"u"||!ai.length||!ai[0]){var Mn="";Rn=[];for(Wi in We[En])this.terminals_[Wi]&&Wi>ft&&Rn.push("'"+this.terminals_[Wi]+"'");qt.showPosition?Mn="Parse error on line "+(rt+1)+`:
|
|
`+qt.showPosition()+`
|
|
Expecting `+Rn.join(", ")+", got '"+(this.terminals_[An]||An)+"'":Mn="Parse error on line "+(rt+1)+": Unexpected "+(An==Qt?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(Mn,{text:qt.match,token:this.terminals_[An]||An,line:qt.yylineno,loc:Zr,expected:Rn})}if(ai[0]instanceof Array&&ai.length>1)throw new Error("Parse Error: multiple actions possible at state: "+En+", token: "+An);switch(ai[0]){case 1:Re.push(An),be.push(qt.yytext),ke.push(qt.yylloc),Re.push(ai[1]),An=null,Un?(An=Un,Un=null):(nt=qt.yyleng,Ue=qt.yytext,rt=qt.yylineno,Zr=qt.yylloc,Ot>0&&Ot--);break;case 2:if(Pa=this.productions_[ai[1]][1],Tn.$=be[be.length-Pa],Tn._$={first_line:ke[ke.length-(Pa||1)].first_line,last_line:ke[ke.length-1].last_line,first_column:ke[ke.length-(Pa||1)].first_column,last_column:ke[ke.length-1].last_column},yt&&(Tn._$.range=[ke[ke.length-(Pa||1)].range[0],ke[ke.length-1].range[1]]),ui=this.performAction.apply(Tn,[Ue,nt,rt,Gt.yy,ai[1],be,ke].concat($t)),typeof ui<"u")return ui;Pa&&(Re=Re.slice(0,-1*Pa*2),be=be.slice(0,-1*Pa),ke=ke.slice(0,-1*Pa)),Re.push(this.productions_[ai[1]][0]),be.push(Tn.$),ke.push(Tn._$),qe=We[Re[Re.length-2]][Re[Re.length-1]],Re.push(qe);break;case 3:return!0}}return!0},"parse")},Ye=(function(){var K={EOF:1,parseError:i(function(ce,Re){if(this.yy.parser)this.yy.parser.parseError(ce,Re);else throw new Error(ce)},"parseError"),setInput:i(function(Te,ce){return this.yy=ce||this.yy||{},this._input=Te,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var Te=this._input[0];this.yytext+=Te,this.yyleng++,this.offset++,this.match+=Te,this.matched+=Te;var ce=Te.match(/(?:\r\n?|\n).*/g);return ce?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Te},"input"),unput:i(function(Te){var ce=Te.length,Re=Te.split(/(?:\r\n?|\n)/g);this._input=Te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ce),this.offset-=ce;var me=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Re.length-1&&(this.yylineno-=Re.length-1);var be=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Re?(Re.length===me.length?this.yylloc.first_column:0)+me[me.length-Re.length].length-Re[0].length:this.yylloc.first_column-ce},this.options.ranges&&(this.yylloc.range=[be[0],be[0]+this.yyleng-ce]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(Te){this.unput(this.match.slice(Te))},"less"),pastInput:i(function(){var Te=this.matched.substr(0,this.matched.length-this.match.length);return(Te.length>20?"...":"")+Te.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var Te=this.match;return Te.length<20&&(Te+=this._input.substr(0,20-Te.length)),(Te.substr(0,20)+(Te.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var Te=this.pastInput(),ce=new Array(Te.length+1).join("-");return Te+this.upcomingInput()+`
|
|
`+ce+"^"},"showPosition"),test_match:i(function(Te,ce){var Re,me,be;if(this.options.backtrack_lexer&&(be={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(be.yylloc.range=this.yylloc.range.slice(0))),me=Te[0].match(/(?:\r\n?|\n).*/g),me&&(this.yylineno+=me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:me?me[me.length-1].length-me[me.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Te[0].length},this.yytext+=Te[0],this.match+=Te[0],this.matches=Te,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Te[0].length),this.matched+=Te[0],Re=this.performAction.call(this,this.yy,this,ce,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Re)return Re;if(this._backtrack){for(var ke in be)this[ke]=be[ke];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Te,ce,Re,me;this._more||(this.yytext="",this.match="");for(var be=this._currentRules(),ke=0;ke<be.length;ke++)if(Re=this._input.match(this.rules[be[ke]]),Re&&(!ce||Re[0].length>ce[0].length)){if(ce=Re,me=ke,this.options.backtrack_lexer){if(Te=this.test_match(Re,be[ke]),Te!==!1)return Te;if(this._backtrack){ce=!1;continue}else return!1}else if(!this.options.flex)break}return ce?(Te=this.test_match(ce,be[me]),Te!==!1?Te:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var ce=this.next();return ce||this.lex()},"lex"),begin:i(function(ce){this.conditionStack.push(ce)},"begin"),popState:i(function(){var ce=this.conditionStack.length-1;return ce>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(ce){return ce=this.conditionStack.length-1-Math.abs(ce||0),ce>=0?this.conditionStack[ce]:"INITIAL"},"topState"),pushState:i(function(ce){this.begin(ce)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(ce,Re,me,be){var ke=be;switch(me){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return Re.yytext=Re.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return K})();Yt.lexer=Ye;function Oe(){this.yy={}}return i(Oe,"Parser"),Oe.prototype=Yt,Yt.Parser=Oe,new Oe})();vut.parser=vut;X$r=vut});var LCe,J$r=ae(()=>{"use strict";ma();Yn();Au();LCe=class{constructor(){this.relations=[];this.latestRequirement=this.getInitialRequirement();this.requirements=new Map;this.latestElement=this.getInitialElement();this.elements=new Map;this.classes=new Map;this.direction="TB";this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"};this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"};this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"};this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"};this.setAccTitle=Os;this.getAccTitle=Vs;this.setAccDescription=$s;this.getAccDescription=Ws;this.setDiagramTitle=io;this.getDiagramTitle=Ks;this.getConfig=i(()=>er().requirement,"getConfig");this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{i(this,"RequirementDB")}getDirection(){return this.direction}setDirection(t){this.direction=t}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(t,a){return this.requirements.has(t)||this.requirements.set(t,{name:t,type:a,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(t)}getRequirements(){return this.requirements}setNewReqId(t){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=t)}setNewReqText(t){this.latestRequirement!==void 0&&(this.latestRequirement.text=t)}setNewReqRisk(t){this.latestRequirement!==void 0&&(this.latestRequirement.risk=t)}setNewReqVerifyMethod(t){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=t)}addElement(t){return this.elements.has(t)||(this.elements.set(t,{name:t,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),Pe.info("Added new element: ",t)),this.resetLatestElement(),this.elements.get(t)}getElements(){return this.elements}setNewElementType(t){this.latestElement!==void 0&&(this.latestElement.type=t)}setNewElementDocRef(t){this.latestElement!==void 0&&(this.latestElement.docRef=t)}addRelationship(t,a,s){this.relations.push({type:t,src:a,dst:s})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,Ds()}setCssStyle(t,a){for(let s of t){let l=this.requirements.get(s)??this.elements.get(s);if(!a||!l)return;for(let h of a)h.includes(",")?l.cssStyles.push(...h.split(",")):l.cssStyles.push(h)}}setClass(t,a){for(let s of t){let l=this.requirements.get(s)??this.elements.get(s);if(l)for(let h of a){l.classes.push(h);let f=this.classes.get(h)?.styles;f&&l.cssStyles.push(...f)}}}defineClass(t,a){for(let s of t){let l=this.classes.get(s);l===void 0&&(l={id:s,styles:[],textStyles:[]},this.classes.set(s,l)),a&&a.forEach(function(h){if(/color/.exec(h)){let f=h.replace("fill","bgFill");l.textStyles.push(f)}l.styles.push(h)}),this.requirements.forEach(h=>{h.classes.includes(s)&&h.cssStyles.push(...a.flatMap(f=>f.split(",")))}),this.elements.forEach(h=>{h.classes.includes(s)&&h.cssStyles.push(...a.flatMap(f=>f.split(",")))})}}getClasses(){return this.classes}getData(){let t=er(),a=[],s=[];for(let h of this.requirements.values()){let f=h;f.id=h.name,f.cssStyles=h.cssStyles,f.cssClasses=h.classes.join(" "),f.shape="requirementBox",f.look=t.look,f.colorIndex=a.length,a.push(f)}for(let h of this.elements.values()){let f=h;f.shape="requirementBox",f.look=t.look,f.id=h.name,f.cssStyles=h.cssStyles,f.cssClasses=h.classes.join(" "),f.colorIndex=a.length,a.push(f)}let l=0;for(let h of this.relations){let f=h.type===this.Relationships.CONTAINS,d={id:`${h.src}-${h.dst}-${l++}`,start:this.requirements.get(h.src)?.name??this.elements.get(h.src)?.name,end:this.requirements.get(h.dst)?.name??this.elements.get(h.dst)?.name,label:`<<${h.type}>>`,classes:"relationshipLine",style:["fill:none",f?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:f?"normal":"dashed",arrowTypeStart:f?"requirement_contains":"",arrowTypeEnd:f?"":"requirement_arrow",look:t.look,labelType:"markdown"};s.push(d)}return{nodes:a,edges:s,other:{},config:t,direction:this.getDirection()}}}});var Zhi,efi,Q$r,Z$r=ae(()=>{"use strict";Xs();A0();Zhi=i(()=>{let r=ri(),{theme:t,themeVariables:a}=r,{bkgColorArray:s,borderColorArray:l}=a;if(!S0(t,l))return"";let h=Pg(r.look),f="",d=E0(s);for(let m=0;m<lS(l);m++){let b=l[m],v=d?`fill: ${s[m%s.length]};`:"";f+=`
|
|
|
|
[data-look="${h}"][data-color-id="color-${m}"].node path {
|
|
stroke: ${b};
|
|
${v}
|
|
}
|
|
|
|
[data-look="${h}"][data-color-id="color-${m}"].node rect {
|
|
stroke: ${b};
|
|
${v}
|
|
}
|
|
`}return f},"genColor"),efi=i(r=>{let t=ri(),{look:a,themeVariables:s}=t,{requirementEdgeLabelBackground:l}=s;return`
|
|
${Zhi()}
|
|
marker {
|
|
fill: ${r.relationColor};
|
|
stroke: ${r.relationColor};
|
|
}
|
|
|
|
marker.cross {
|
|
stroke: ${r.lineColor};
|
|
}
|
|
|
|
svg {
|
|
font-family: ${r.fontFamily};
|
|
font-size: ${r.fontSize};
|
|
}
|
|
|
|
.reqBox {
|
|
fill: ${r.requirementBackground};
|
|
fill-opacity: 1.0;
|
|
stroke: ${r.requirementBorderColor};
|
|
stroke-width: ${r.requirementBorderSize};
|
|
}
|
|
|
|
.reqTitle, .reqLabel{
|
|
fill: ${r.requirementTextColor};
|
|
}
|
|
.reqLabelBox {
|
|
fill: ${r.relationLabelBackground};
|
|
fill-opacity: 1.0;
|
|
}
|
|
|
|
.req-title-line {
|
|
stroke: ${r.requirementBorderColor};
|
|
stroke-width: ${r.requirementBorderSize};
|
|
}
|
|
.relationshipLine {
|
|
stroke: ${r.relationColor};
|
|
stroke-width: ${a==="neo"?r.strokeWidth:"1px"};
|
|
}
|
|
.relationshipLabel {
|
|
fill: ${r.relationLabelColor};
|
|
}
|
|
.edgeLabel {
|
|
background-color: ${r.edgeLabelBackground};
|
|
}
|
|
.edgeLabel .label rect {
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
.edgeLabel .label text {
|
|
fill: ${r.relationLabelColor};
|
|
}
|
|
.divider {
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: 1;
|
|
}
|
|
.label {
|
|
font-family: ${r.fontFamily};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
.label text,span {
|
|
fill: ${r.nodeTextColor||r.textColor};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
.labelBkg {
|
|
background-color: ${l??r.edgeLabelBackground};
|
|
}
|
|
|
|
`},"getStyles"),Q$r=efi});var wut={};is(wut,{draw:()=>tfi});var tfi,eGr=ae(()=>{"use strict";ma();Yn();FA();PS();BS();Ma();tfi=i(async function(r,t,a,s){Pe.info("REF0:"),Pe.info("Drawing requirement diagram (unified)",t);let{securityLevel:l,state:h,layout:f,look:d}=er(),m=s.db.getData(),b=dy(t,l);m.type=s.type,m.layoutAlgorithm=Ty(f),m.nodeSpacing=h?.nodeSpacing??50,m.rankSpacing=h?.rankSpacing??50,m.markers=d==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],m.diagramId=t,await xy(m,b);let v=8;Va.insertTitle(b,"requirementDiagramTitleText",h?.titleTopMargin??25,s.db.getDiagramTitle()),Sm(b,v,"requirementDiagram",h?.useMaxWidth??!0)},"draw")});var tGr={};is(tGr,{diagram:()=>rfi});var rfi,rGr=ae(()=>{"use strict";K$r();J$r();Z$r();eGr();rfi={parser:X$r,get db(){return new LCe},renderer:wut,styles:Q$r}});var xut,aGr,sGr=ae(()=>{"use strict";xut=(function(){var r=i(function(Qt,$t,qt,Gt){for(qt=qt||{},Gt=Qt.length;Gt--;qt[Qt[Gt]]=$t);return qt},"o"),t=[1,2],a=[1,3],s=[1,4],l=[2,4],h=[1,9],f=[1,11],d=[1,12],m=[1,14],b=[1,15],v=[1,17],T=[1,18],C=[1,19],E=[1,25],S=[1,26],R=[1,27],L=[1,28],_=[1,29],I=[1,30],N=[1,31],B=[1,32],O=[1,33],P=[1,34],$=[1,35],V=[1,36],Y=[1,37],Q=[1,38],q=[1,39],W=[1,40],H=[1,42],re=[1,43],Z=[1,44],X=[1,45],te=[1,46],U=[1,47],ne=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],se=[1,56],he=[1,75],le=[1,81],pe=[1,82],ge=[1,83],we=[1,84],Ae=[1,85],ve=[1,86],Ie=[1,87],De=[1,88],Be=[1,89],Fe=[1,90],ze=[1,91],vt=[1,92],lt=[1,93],Ft=[1,94],pr=[1,95],tr=[1,96],Mt=[1,97],ot=[1,98],it=[1,99],mt=[1,100],Rt=[1,101],pt=[1,102],gt=[1,103],ut=[1,104],Yt=[1,105],Ye=[1,106],Oe=[2,79],K=[2,78],Te=[4,5,17,51,53,54],ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Re=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],ke=[5,52],We=[62,70,71,72,73],Ue=[62,73],rt=[1,152],nt={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:i(function($t,qt,Gt,jt,Zr,yt,$n){var Ut=yt.length-1;switch(Zr){case 3:return jt.apply(yt[Ut]),yt[Ut];break;case 4:case 10:this.$=[];break;case 5:case 11:yt[Ut-1].push(yt[Ut]),this.$=yt[Ut-1];break;case 6:case 7:case 12:case 13:this.$=yt[Ut];break;case 8:case 9:case 14:this.$=[];break;case 16:yt[Ut].type="createParticipant",this.$=yt[Ut];break;case 17:yt[Ut-1].unshift({type:"boxStart",boxData:jt.parseBoxData(yt[Ut-2])}),yt[Ut-1].push({type:"boxEnd",boxText:yt[Ut-2]}),this.$=yt[Ut-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(yt[Ut-2]),sequenceIndexStep:Number(yt[Ut-1]),sequenceVisible:!0,signalType:jt.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(yt[Ut-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:jt.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:jt.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:jt.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:jt.LINETYPE.ACTIVE_START,actor:yt[Ut-1].actor};break;case 24:this.$={type:"activeEnd",signalType:jt.LINETYPE.ACTIVE_END,actor:yt[Ut-1].actor};break;case 30:jt.setDiagramTitle(yt[Ut].substring(6)),this.$=yt[Ut].substring(6);break;case 31:jt.setDiagramTitle(yt[Ut].substring(7)),this.$=yt[Ut].substring(7);break;case 32:this.$=yt[Ut].trim(),jt.setAccTitle(this.$);break;case 33:case 34:this.$=yt[Ut].trim(),jt.setAccDescription(this.$);break;case 35:yt[Ut-1].unshift({type:"loopStart",loopText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.LOOP_START}),yt[Ut-1].push({type:"loopEnd",loopText:yt[Ut-2],signalType:jt.LINETYPE.LOOP_END}),this.$=yt[Ut-1];break;case 36:yt[Ut-1].unshift({type:"rectStart",color:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.RECT_START}),yt[Ut-1].push({type:"rectEnd",color:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.RECT_END}),this.$=yt[Ut-1];break;case 37:yt[Ut-1].unshift({type:"optStart",optText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.OPT_START}),yt[Ut-1].push({type:"optEnd",optText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.OPT_END}),this.$=yt[Ut-1];break;case 38:yt[Ut-1].unshift({type:"altStart",altText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.ALT_START}),yt[Ut-1].push({type:"altEnd",signalType:jt.LINETYPE.ALT_END}),this.$=yt[Ut-1];break;case 39:yt[Ut-1].unshift({type:"parStart",parText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.PAR_START}),yt[Ut-1].push({type:"parEnd",signalType:jt.LINETYPE.PAR_END}),this.$=yt[Ut-1];break;case 40:yt[Ut-1].unshift({type:"parStart",parText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.PAR_OVER_START}),yt[Ut-1].push({type:"parEnd",signalType:jt.LINETYPE.PAR_END}),this.$=yt[Ut-1];break;case 41:yt[Ut-1].unshift({type:"criticalStart",criticalText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.CRITICAL_START}),yt[Ut-1].push({type:"criticalEnd",signalType:jt.LINETYPE.CRITICAL_END}),this.$=yt[Ut-1];break;case 42:yt[Ut-1].unshift({type:"breakStart",breakText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.BREAK_START}),yt[Ut-1].push({type:"breakEnd",optText:jt.parseMessage(yt[Ut-2]),signalType:jt.LINETYPE.BREAK_END}),this.$=yt[Ut-1];break;case 44:this.$=yt[Ut-3].concat([{type:"option",optionText:jt.parseMessage(yt[Ut-1]),signalType:jt.LINETYPE.CRITICAL_OPTION},yt[Ut]]);break;case 46:this.$=yt[Ut-3].concat([{type:"and",parText:jt.parseMessage(yt[Ut-1]),signalType:jt.LINETYPE.PAR_AND},yt[Ut]]);break;case 48:this.$=yt[Ut-3].concat([{type:"else",altText:jt.parseMessage(yt[Ut-1]),signalType:jt.LINETYPE.ALT_ELSE},yt[Ut]]);break;case 49:yt[Ut-3].draw="participant",yt[Ut-3].type="addParticipant",yt[Ut-3].description=jt.parseMessage(yt[Ut-1]),this.$=yt[Ut-3];break;case 50:yt[Ut-1].draw="participant",yt[Ut-1].type="addParticipant",this.$=yt[Ut-1];break;case 51:yt[Ut-3].draw="actor",yt[Ut-3].type="addParticipant",yt[Ut-3].description=jt.parseMessage(yt[Ut-1]),this.$=yt[Ut-3];break;case 52:case 57:yt[Ut-1].draw="actor",yt[Ut-1].type="addParticipant",this.$=yt[Ut-1];break;case 53:yt[Ut-1].type="destroyParticipant",this.$=yt[Ut-1];break;case 54:yt[Ut-3].draw="participant",yt[Ut-3].type="addParticipant",yt[Ut-3].description=jt.parseMessage(yt[Ut-1]),this.$=yt[Ut-3];break;case 55:yt[Ut-1].draw="participant",yt[Ut-1].type="addParticipant",this.$=yt[Ut-1];break;case 56:yt[Ut-3].draw="actor",yt[Ut-3].type="addParticipant",yt[Ut-3].description=jt.parseMessage(yt[Ut-1]),this.$=yt[Ut-3];break;case 58:this.$=[yt[Ut-1],{type:"addNote",placement:yt[Ut-2],actor:yt[Ut-1].actor,text:yt[Ut]}];break;case 59:yt[Ut-2]=[].concat(yt[Ut-1],yt[Ut-1]).slice(0,2),yt[Ut-2][0]=yt[Ut-2][0].actor,yt[Ut-2][1]=yt[Ut-2][1].actor,this.$=[yt[Ut-1],{type:"addNote",placement:jt.PLACEMENT.OVER,actor:yt[Ut-2].slice(0,2),text:yt[Ut]}];break;case 60:this.$=[yt[Ut-1],{type:"addLinks",actor:yt[Ut-1].actor,text:yt[Ut]}];break;case 61:this.$=[yt[Ut-1],{type:"addALink",actor:yt[Ut-1].actor,text:yt[Ut]}];break;case 62:this.$=[yt[Ut-1],{type:"addProperties",actor:yt[Ut-1].actor,text:yt[Ut]}];break;case 63:this.$=[yt[Ut-1],{type:"addDetails",actor:yt[Ut-1].actor,text:yt[Ut]}];break;case 66:this.$=[yt[Ut-2],yt[Ut]];break;case 67:this.$=yt[Ut];break;case 68:this.$=jt.PLACEMENT.LEFTOF;break;case 69:this.$=jt.PLACEMENT.RIGHTOF;break;case 70:this.$=[yt[Ut-4],yt[Ut-1],{type:"addMessage",from:yt[Ut-4].actor,to:yt[Ut-1].actor,signalType:yt[Ut-3],msg:yt[Ut],activate:!0},{type:"activeStart",signalType:jt.LINETYPE.ACTIVE_START,actor:yt[Ut-1].actor}];break;case 71:this.$=[yt[Ut-4],yt[Ut-1],{type:"addMessage",from:yt[Ut-4].actor,to:yt[Ut-1].actor,signalType:yt[Ut-3],msg:yt[Ut]},{type:"activeEnd",signalType:jt.LINETYPE.ACTIVE_END,actor:yt[Ut-4].actor}];break;case 72:this.$=[yt[Ut-4],yt[Ut-1],{type:"addMessage",from:yt[Ut-4].actor,to:yt[Ut-1].actor,signalType:yt[Ut-3],msg:yt[Ut],activate:!0,centralConnection:jt.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:jt.LINETYPE.CENTRAL_CONNECTION,actor:yt[Ut-1].actor}];break;case 73:this.$=[yt[Ut-4],yt[Ut-1],{type:"addMessage",from:yt[Ut-4].actor,to:yt[Ut-1].actor,signalType:yt[Ut-2],msg:yt[Ut],activate:!1,centralConnection:jt.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:jt.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:yt[Ut-4].actor}];break;case 74:this.$=[yt[Ut-5],yt[Ut-1],{type:"addMessage",from:yt[Ut-5].actor,to:yt[Ut-1].actor,signalType:yt[Ut-3],msg:yt[Ut],activate:!0,centralConnection:jt.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:jt.LINETYPE.CENTRAL_CONNECTION,actor:yt[Ut-1].actor},{type:"centralConnectionReverse",signalType:jt.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:yt[Ut-5].actor}];break;case 75:this.$=[yt[Ut-3],yt[Ut-1],{type:"addMessage",from:yt[Ut-3].actor,to:yt[Ut-1].actor,signalType:yt[Ut-2],msg:yt[Ut]}];break;case 76:this.$={type:"addParticipant",actor:yt[Ut-1],config:yt[Ut]};break;case 77:this.$=yt[Ut-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:yt[Ut]};break;case 80:this.$=jt.LINETYPE.SOLID_OPEN;break;case 81:this.$=jt.LINETYPE.DOTTED_OPEN;break;case 82:this.$=jt.LINETYPE.SOLID;break;case 83:this.$=jt.LINETYPE.SOLID_TOP;break;case 84:this.$=jt.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=jt.LINETYPE.STICK_TOP;break;case 86:this.$=jt.LINETYPE.STICK_BOTTOM;break;case 87:this.$=jt.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=jt.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=jt.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=jt.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=jt.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=jt.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=jt.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=jt.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=jt.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=jt.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=jt.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=jt.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=jt.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=jt.LINETYPE.DOTTED;break;case 101:this.$=jt.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=jt.LINETYPE.SOLID_CROSS;break;case 103:this.$=jt.LINETYPE.DOTTED_CROSS;break;case 104:this.$=jt.LINETYPE.SOLID_POINT;break;case 105:this.$=jt.LINETYPE.DOTTED_POINT;break;case 106:this.$=jt.parseMessage(yt[Ut].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:s},{1:[3]},{3:5,4:t,5:a,6:s},{3:6,4:t,5:a,6:s},r([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],l,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:f,8:8,9:10,10:d,13:13,14:m,15:b,18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},r(ne,[2,5]),{9:48,13:13,14:m,15:b,18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},r(ne,[2,7]),r(ne,[2,8]),r(ne,[2,9]),r(ne,[2,15]),{13:49,51:Q,53:q,54:W},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:se,73:U},{23:57,62:se,73:U},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},r(ne,[2,30]),r(ne,[2,31]),{33:[1,63]},{35:[1,64]},r(ne,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:se,73:he},{23:76,55:77,62:se,73:he},{23:78,62:se,73:U},{69:79,72:[1,80],78:le,79:pe,80:ge,81:we,82:Ae,83:ve,84:Ie,85:De,86:Be,87:Fe,88:ze,89:vt,90:lt,91:Ft,92:pr,93:tr,94:Mt,95:ot,96:it,97:mt,98:Rt,99:pt,100:gt,101:ut,102:Yt,103:Ye},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:se,73:U},r([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],Oe,{23:112,62:se,73:U}),{23:113,62:se,73:U},{23:114,62:se,73:U},r([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],K),r(ne,[2,6]),r(ne,[2,16]),r(Te,[2,10],{11:115}),r(ne,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},r(ne,[2,22]),{5:[1,119]},r([5,52,66,104],Oe),{5:[1,120]},r(ne,[2,25]),r(ne,[2,26]),r(ne,[2,27]),r(ne,[2,28]),r(ne,[2,29]),r(ne,[2,32]),r(ne,[2,33]),r(ce,l,{7:121}),r(ce,l,{7:122}),r(ce,l,{7:123}),r(Re,l,{41:124,7:125}),r(me,l,{43:126,7:127}),r(me,l,{7:127,43:128}),r(be,l,{46:129,7:130}),r(ce,l,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},r(ke,K,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:se,70:[1,143],71:[1,144],72:[1,145],73:U},{69:147,78:le,79:pe,80:ge,81:we,82:Ae,83:ve,84:Ie,85:De,86:Be,87:Fe,88:ze,89:vt,90:lt,91:Ft,92:pr,93:tr,94:Mt,95:ot,96:it,97:mt,98:Rt,99:pt,100:gt,101:ut,102:Yt,103:Ye},r(We,[2,80]),r(We,[2,81]),r(We,[2,82]),r(We,[2,83]),r(We,[2,84]),r(We,[2,85]),r(We,[2,86]),r(We,[2,87]),r(We,[2,88]),r(We,[2,89]),r(We,[2,90]),r(We,[2,91]),r(We,[2,92]),r(We,[2,93]),r(We,[2,94]),r(We,[2,95]),r(We,[2,96]),r(We,[2,97]),r(We,[2,98]),r(We,[2,99]),r(We,[2,100]),r(We,[2,101]),r(We,[2,102]),r(We,[2,103]),r(We,[2,104]),r(We,[2,105]),{23:148,62:se,73:U},{23:150,60:149,62:se,73:U},r(Ue,[2,68]),r(Ue,[2,69]),{58:151,104:rt},{58:153,104:rt},{58:154,104:rt},{58:155,104:rt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:Q,53:q,54:W},{5:[1,161]},r(ne,[2,20]),r(ne,[2,21]),r(ne,[2,23]),r(ne,[2,24]),{4:h,5:f,8:8,9:10,10:d,13:13,14:m,15:b,17:[1,162],18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},{4:h,5:f,8:8,9:10,10:d,13:13,14:m,15:b,17:[1,163],18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},{4:h,5:f,8:8,9:10,10:d,13:13,14:m,15:b,17:[1,164],18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},{17:[1,165]},{4:h,5:f,8:8,9:10,10:d,13:13,14:m,15:b,17:[2,47],18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,50:[1,166],51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},{17:[1,167]},{4:h,5:f,8:8,9:10,10:d,13:13,14:m,15:b,17:[2,45],18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,49:[1,168],51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},{17:[1,169]},{17:[1,170]},{4:h,5:f,8:8,9:10,10:d,13:13,14:m,15:b,17:[2,43],18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,48:[1,171],51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},{4:h,5:f,8:8,9:10,10:d,13:13,14:m,15:b,17:[1,172],18:16,19:v,22:T,23:41,24:C,25:20,26:21,27:22,28:23,29:24,30:E,31:S,32:R,34:L,36:_,37:I,38:N,39:B,40:O,42:P,44:$,45:V,47:Y,51:Q,53:q,54:W,56:H,61:re,62:Z,63:X,64:te,73:U},{16:[1,173]},r(ne,[2,50]),{16:[1,174]},r(ne,[2,55]),r(ke,[2,76]),{76:[1,175]},{16:[1,176]},r(ne,[2,52]),{16:[1,177]},r(ne,[2,57]),r(ne,[2,53]),{23:178,62:se,73:U},{23:179,62:se,73:U},{23:180,62:se,73:U},{58:181,104:rt},{23:182,62:se,72:[1,183],73:U},{58:184,104:rt},{58:185,104:rt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},r(ne,[2,17]),r(Te,[2,11]),{13:187,51:Q,53:q,54:W},r(Te,[2,13]),r(Te,[2,14]),r(ne,[2,19]),r(ne,[2,35]),r(ne,[2,36]),r(ne,[2,37]),r(ne,[2,38]),{16:[1,188]},r(ne,[2,39]),{16:[1,189]},r(ne,[2,40]),r(ne,[2,41]),{16:[1,190]},r(ne,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:rt},{58:197,104:rt},{58:198,104:rt},{5:[2,75]},{58:199,104:rt},{23:200,62:se,73:U},{5:[2,58]},{5:[2,59]},{23:201,62:se,73:U},r(Te,[2,12]),r(Re,l,{7:125,41:202}),r(me,l,{7:127,43:203}),r(be,l,{7:130,46:204}),r(ne,[2,49]),r(ne,[2,54]),r(ke,[2,77]),r(ne,[2,51]),r(ne,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:rt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:i(function($t,qt){if(qt.recoverable)this.trace($t);else{var Gt=new Error($t);throw Gt.hash=qt,Gt}},"parseError"),parse:i(function($t){var qt=this,Gt=[0],jt=[],Zr=[null],yt=[],$n=this.table,Ut="",An=0,Un=0,En=0,ai=2,Gn=1,ui=yt.slice.call(arguments,1),Tn=Object.create(this.lexer),Wi={yy:{}};for(var Pa in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pa)&&(Wi.yy[Pa]=this.yy[Pa]);Tn.setInput($t,Wi.yy),Wi.yy.lexer=Tn,Wi.yy.parser=this,typeof Tn.yylloc>"u"&&(Tn.yylloc={});var qe=Tn.yylloc;yt.push(qe);var Rn=Tn.options&&Tn.options.ranges;typeof Wi.yy.parseError=="function"?this.parseError=Wi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mn(Vr){Gt.length=Gt.length-2*Vr,Zr.length=Zr.length-Vr,yt.length=yt.length-Vr}i(Mn,"popStack");function ct(){var Vr;return Vr=jt.pop()||Tn.lex()||Gn,typeof Vr!="number"&&(Vr instanceof Array&&(jt=Vr,Vr=jt.pop()),Vr=qt.symbols_[Vr]||Vr),Vr}i(ct,"lex");for(var dr,Kr,pn,Bn,Hs,Ki,so={},js,ls,Ba,cs;;){if(pn=Gt[Gt.length-1],this.defaultActions[pn]?Bn=this.defaultActions[pn]:((dr===null||typeof dr>"u")&&(dr=ct()),Bn=$n[pn]&&$n[pn][dr]),typeof Bn>"u"||!Bn.length||!Bn[0]){var ln="";cs=[];for(js in $n[pn])this.terminals_[js]&&js>ai&&cs.push("'"+this.terminals_[js]+"'");Tn.showPosition?ln="Parse error on line "+(An+1)+`:
|
|
`+Tn.showPosition()+`
|
|
Expecting `+cs.join(", ")+", got '"+(this.terminals_[dr]||dr)+"'":ln="Parse error on line "+(An+1)+": Unexpected "+(dr==Gn?"end of input":"'"+(this.terminals_[dr]||dr)+"'"),this.parseError(ln,{text:Tn.match,token:this.terminals_[dr]||dr,line:Tn.yylineno,loc:qe,expected:cs})}if(Bn[0]instanceof Array&&Bn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pn+", token: "+dr);switch(Bn[0]){case 1:Gt.push(dr),Zr.push(Tn.yytext),yt.push(Tn.yylloc),Gt.push(Bn[1]),dr=null,Kr?(dr=Kr,Kr=null):(Un=Tn.yyleng,Ut=Tn.yytext,An=Tn.yylineno,qe=Tn.yylloc,En>0&&En--);break;case 2:if(ls=this.productions_[Bn[1]][1],so.$=Zr[Zr.length-ls],so._$={first_line:yt[yt.length-(ls||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(ls||1)].first_column,last_column:yt[yt.length-1].last_column},Rn&&(so._$.range=[yt[yt.length-(ls||1)].range[0],yt[yt.length-1].range[1]]),Ki=this.performAction.apply(so,[Ut,Un,An,Wi.yy,Bn[1],Zr,yt].concat(ui)),typeof Ki<"u")return Ki;ls&&(Gt=Gt.slice(0,-1*ls*2),Zr=Zr.slice(0,-1*ls),yt=yt.slice(0,-1*ls)),Gt.push(this.productions_[Bn[1]][0]),Zr.push(so.$),yt.push(so._$),Ba=$n[Gt[Gt.length-2]][Gt[Gt.length-1]],Gt.push(Ba);break;case 3:return!0}}return!0},"parse")},Ot=(function(){var Qt={EOF:1,parseError:i(function(qt,Gt){if(this.yy.parser)this.yy.parser.parseError(qt,Gt);else throw new Error(qt)},"parseError"),setInput:i(function($t,qt){return this.yy=qt||this.yy||{},this._input=$t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var $t=this._input[0];this.yytext+=$t,this.yyleng++,this.offset++,this.match+=$t,this.matched+=$t;var qt=$t.match(/(?:\r\n?|\n).*/g);return qt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),$t},"input"),unput:i(function($t){var qt=$t.length,Gt=$t.split(/(?:\r\n?|\n)/g);this._input=$t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qt),this.offset-=qt;var jt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Gt.length-1&&(this.yylineno-=Gt.length-1);var Zr=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Gt?(Gt.length===jt.length?this.yylloc.first_column:0)+jt[jt.length-Gt.length].length-Gt[0].length:this.yylloc.first_column-qt},this.options.ranges&&(this.yylloc.range=[Zr[0],Zr[0]+this.yyleng-qt]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function($t){this.unput(this.match.slice($t))},"less"),pastInput:i(function(){var $t=this.matched.substr(0,this.matched.length-this.match.length);return($t.length>20?"...":"")+$t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var $t=this.match;return $t.length<20&&($t+=this._input.substr(0,20-$t.length)),($t.substr(0,20)+($t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var $t=this.pastInput(),qt=new Array($t.length+1).join("-");return $t+this.upcomingInput()+`
|
|
`+qt+"^"},"showPosition"),test_match:i(function($t,qt){var Gt,jt,Zr;if(this.options.backtrack_lexer&&(Zr={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Zr.yylloc.range=this.yylloc.range.slice(0))),jt=$t[0].match(/(?:\r\n?|\n).*/g),jt&&(this.yylineno+=jt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:jt?jt[jt.length-1].length-jt[jt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$t[0].length},this.yytext+=$t[0],this.match+=$t[0],this.matches=$t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice($t[0].length),this.matched+=$t[0],Gt=this.performAction.call(this,this.yy,this,qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Gt)return Gt;if(this._backtrack){for(var yt in Zr)this[yt]=Zr[yt];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var $t,qt,Gt,jt;this._more||(this.yytext="",this.match="");for(var Zr=this._currentRules(),yt=0;yt<Zr.length;yt++)if(Gt=this._input.match(this.rules[Zr[yt]]),Gt&&(!qt||Gt[0].length>qt[0].length)){if(qt=Gt,jt=yt,this.options.backtrack_lexer){if($t=this.test_match(Gt,Zr[yt]),$t!==!1)return $t;if(this._backtrack){qt=!1;continue}else return!1}else if(!this.options.flex)break}return qt?($t=this.test_match(qt,Zr[jt]),$t!==!1?$t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var qt=this.next();return qt||this.lex()},"lex"),begin:i(function(qt){this.conditionStack.push(qt)},"begin"),popState:i(function(){var qt=this.conditionStack.length-1;return qt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(qt){return qt=this.conditionStack.length-1-Math.abs(qt||0),qt>=0?this.conditionStack[qt]:"INITIAL"},"topState"),pushState:i(function(qt){this.begin(qt)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(qt,Gt,jt,Zr){var yt=Zr;switch(jt){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return Gt.yytext=Gt.yytext.trim(),73;break;case 12:return Gt.yytext=Gt.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return Gt.yytext=Gt.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return Gt.yytext=Gt.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return Gt.yytext=Gt.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return Qt})();nt.lexer=Ot;function ft(){this.yy={}}return i(ft,"Parser"),ft.prototype=nt,nt.Parser=ft,new ft})();xut.parser=xut;aGr=xut});var sfi,ofi,lfi,jae,_Ce,Tut=ae(()=>{"use strict";ma();cU();Yn();cCe();nl();Au();sfi={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},ofi={FILLED:0,OPEN:1},lfi={LEFTOF:0,RIGHTOF:1,OVER:2},jae={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},_Ce=class{constructor(){this.state=new SD(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0}));this.setAccTitle=Os;this.setAccDescription=$s;this.setDiagramTitle=io;this.getAccTitle=Vs;this.getAccDescription=Ws;this.getDiagramTitle=Ks;this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(er().wrap),this.LINETYPE=sfi,this.ARROWTYPE=ofi,this.PLACEMENT=lfi}static{i(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,a,s,l,h){let f=this.state.records.currentBox,d;if(h!==void 0){let b;h.includes(`
|
|
`)?b=h+`
|
|
`:b=`{
|
|
`+h+`
|
|
}`,d=P4(b,{schema:O4})}l=d?.type??l,d?.alias&&(!s||s.text===a)&&(s={text:d.alias,wrap:s?.wrap,type:l});let m=this.state.records.actors.get(t);if(m){if(this.state.records.currentBox&&m.box&&this.state.records.currentBox!==m.box)throw new Error(`A same participant should only be defined in one Box: ${m.name} can't be in '${m.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(f=m.box?m.box:this.state.records.currentBox,m.box=f,m&&a===m.name&&s==null)return}if(s?.text==null&&(s={text:a,type:l}),(l==null||s.text==null)&&(s={text:a,type:l}),this.state.records.actors.set(t,{box:f,name:a,description:s.text,wrap:s.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:l??"participant"}),this.state.records.prevActor){let b=this.state.records.actors.get(this.state.records.prevActor);b&&(b.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let a,s=0;if(!t)return 0;for(a=0;a<this.state.records.messages.length;a++)this.state.records.messages[a].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[a].from===t&&s++,this.state.records.messages[a].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[a].from===t&&s--;return s}addMessage(t,a,s,l){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:a,message:s.text,wrap:s.wrap??this.autoWrap(),answer:l})}addSignal(t,a,s,l,h=!1,f){if(l===this.LINETYPE.ACTIVE_END&&this.activationCount(t??"")<1){let m=new Error("Trying to inactivate an inactive participant ("+t+")");throw m.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},m}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:a,message:s?.text??"",wrap:s?.wrap??this.autoWrap(),type:l,activate:h,centralConnection:f??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(t===void 0)return{};t=t.trim();let a=/^:?wrap:/.exec(t)!==null?!0:/^:?nowrap:/.exec(t)!==null?!1:void 0;return{cleanedText:(a===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:a}}autoWrap(){return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:er().sequence?.wrap??!1}clear(){this.state.reset(),Ds()}parseMessage(t){let a=t.trim(),{wrap:s,cleanedText:l}=this.extractWrap(a),h={text:l,wrap:s};return Pe.debug(`parseMessage: ${JSON.stringify(h)}`),h}parseBoxData(t){let a=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),s=a?.[1]?a[1].trim():"transparent",l=a?.[2]?a[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",s)||(s="transparent",l=t.trim());else{let d=new Option().style;d.color=s,d.color!==s&&(s="transparent",l=t.trim())}let{wrap:h,cleanedText:f}=this.extractWrap(l);return{text:f?Ns(f,er()):void 0,color:s,wrap:h}}addNote(t,a,s){let l={actor:t,placement:a,message:s.text,wrap:s.wrap??this.autoWrap()},h=[].concat(t,t);this.state.records.notes.push(l),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:h[0],to:h[1],message:s.text,wrap:s.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:a})}addLinks(t,a){let s=this.getActor(t);try{let l=Ns(a.text,er());l=l.replace(/=/g,"="),l=l.replace(/&/g,"&");let h=JSON.parse(l);this.insertLinks(s,h)}catch(l){Pe.error("error while parsing actor link text",l)}}addALink(t,a){let s=this.getActor(t);try{let l={},h=Ns(a.text,er()),f=h.indexOf("@");h=h.replace(/=/g,"="),h=h.replace(/&/g,"&");let d=h.slice(0,f-1).trim(),m=h.slice(f+1).trim();l[d]=m,this.insertLinks(s,l)}catch(l){Pe.error("error while parsing actor link text",l)}}insertLinks(t,a){if(t.links==null)t.links=a;else for(let s in a)t.links[s]=a[s]}addProperties(t,a){let s=this.getActor(t);try{let l=Ns(a.text,er()),h=JSON.parse(l);this.insertProperties(s,h)}catch(l){Pe.error("error while parsing actor properties text",l)}}insertProperties(t,a){if(t.properties==null)t.properties=a;else for(let s in a)t.properties[s]=a[s]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,a){let s=this.getActor(t),l=document.getElementById(a.text);try{let h=l.innerHTML,f=JSON.parse(h);f.properties&&this.insertProperties(s,f.properties),f.links&&this.insertLinks(s,f.links)}catch(h){Pe.error("error while parsing actor details text",h)}}getActorProperty(t,a){if(t?.properties!==void 0)return t.properties[a]}apply(t){if(Array.isArray(t))t.forEach(a=>{this.apply(a)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"centralConnection":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"centralConnectionReverse":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":Os(t.text);break;case"parStart":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break}}getConfig(){return er().sequence}}});var cfi,oGr,lGr=ae(()=>{"use strict";ma();cfi=i(r=>{let t=r.dropShadow??"none",{look:a}=er();return`.actor {
|
|
stroke: ${r.actorBorder};
|
|
fill: ${r.actorBkg};
|
|
stroke-width: ${r.strokeWidth??1};
|
|
}
|
|
|
|
rect.actor.outer-path[data-look="neo"] {
|
|
filter: ${t};
|
|
}
|
|
|
|
rect.note[data-look="neo"] {
|
|
stroke:${r.noteBorderColor};
|
|
fill:${r.noteBkgColor};
|
|
filter: ${t};
|
|
}
|
|
|
|
text.actor > tspan {
|
|
fill: ${r.actorTextColor};
|
|
stroke: none;
|
|
}
|
|
|
|
.actor-line {
|
|
stroke: ${r.actorLineColor};
|
|
}
|
|
|
|
.innerArc {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: none;
|
|
}
|
|
|
|
.messageLine0 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: none;
|
|
stroke: ${r.signalColor};
|
|
}
|
|
|
|
.messageLine1 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: ${r.signalColor};
|
|
}
|
|
|
|
[id$="-arrowhead"] path {
|
|
fill: ${r.signalColor};
|
|
stroke: ${r.signalColor};
|
|
}
|
|
|
|
.sequenceNumber {
|
|
fill: ${r.sequenceNumberColor};
|
|
}
|
|
|
|
[id$="-sequencenumber"] {
|
|
fill: ${r.signalColor};
|
|
}
|
|
|
|
[id$="-crosshead"] path {
|
|
fill: ${r.signalColor};
|
|
stroke: ${r.signalColor};
|
|
}
|
|
|
|
.messageText {
|
|
fill: ${r.signalTextColor};
|
|
stroke: none;
|
|
}
|
|
|
|
.labelBox {
|
|
stroke: ${r.labelBoxBorderColor};
|
|
fill: ${r.labelBoxBkgColor};
|
|
filter: ${a==="neo"?t:"none"};
|
|
}
|
|
|
|
.labelText, .labelText > tspan {
|
|
fill: ${r.labelTextColor};
|
|
stroke: none;
|
|
}
|
|
|
|
.loopText, .loopText > tspan {
|
|
fill: ${r.loopTextColor};
|
|
stroke: none;
|
|
}
|
|
|
|
.sectionTitle, .sectionTitle > tspan {
|
|
fill: ${r.loopTextColor};
|
|
stroke: none;
|
|
}
|
|
|
|
.loopLine {
|
|
stroke-width: 2px;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: ${r.labelBoxBorderColor};
|
|
fill: ${r.labelBoxBorderColor};
|
|
}
|
|
|
|
.note {
|
|
//stroke: #decc93;
|
|
stroke: ${r.noteBorderColor};
|
|
fill: ${r.noteBkgColor};
|
|
}
|
|
|
|
/*
|
|
* No font-weight here, deliberately. Note text renders inside tspan elements, and a weight emitted at
|
|
* tspan level outranks the inline style drawText puts on the parent text element from the
|
|
* sequence.noteFontWeight config key -- so that documented key would never reach the glyphs.
|
|
* The theme variable formerly emitted here is a different value from that config key, and
|
|
* git/styles.js reads it as its own bold-label weight under redux and neo, so it cannot be
|
|
* lowered there either.
|
|
*/
|
|
.noteText, .noteText > tspan {
|
|
fill: ${r.noteTextColor};
|
|
stroke: none;
|
|
}
|
|
|
|
.activation0 {
|
|
fill: ${r.activationBkgColor};
|
|
stroke: ${r.activationBorderColor};
|
|
}
|
|
|
|
.activation1 {
|
|
fill: ${r.activationBkgColor};
|
|
stroke: ${r.activationBorderColor};
|
|
}
|
|
|
|
.activation2 {
|
|
fill: ${r.activationBkgColor};
|
|
stroke: ${r.activationBorderColor};
|
|
}
|
|
|
|
.actorPopupMenu {
|
|
position: absolute;
|
|
}
|
|
|
|
.actorPopupMenuPanel {
|
|
position: absolute;
|
|
fill: ${r.actorBkg};
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
}
|
|
.actor-man circle, line {
|
|
fill: ${r.actorBkg};
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
g rect.rect {
|
|
filter: ${t};
|
|
stroke: ${r.nodeBorder};
|
|
}
|
|
`},"getStyles"),oGr=cfi});var zae,kut,DCe,cGr,Cut,uGr,hGr,Eut=ae(()=>{"use strict";Ma();zae=44,kut=6,DCe=6,cGr=i((r,t)=>r.actorTextHeight??Va.calculateTextDimensions(r.description??"",{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}).height,"actorLabelHeight"),Cut=i(r=>zae+kut+r+DCe,"actorStackHeight"),uGr=i((r,t,a)=>{let s=r+t,l=s-DCe-a/2;return{lifelineStartY:s,glyphBottomY:s-DCe-a-kut,labelCenterY:l}},"headerBands"),hGr=i((r,t)=>{let a=r+DCe,s=a+zae;return{glyphTopY:a,glyphBottomY:s,labelCenterY:s+kut+t/2,stackHeight:Cut(t)}},"footerBands")});var Sut,_D,ufi,dGr,fGr,Wae,DD,ID,ICe,yB,w8,Ep,Uae,hfi,MCe,Vae,bB,pGr,bc,Aut,ffi,dfi,pfi,gfi,mfi,yfi,bfi,vfi,wfi,xfi,Tfi,kfi,Cfi,gGr,Efi,Sfi,Afi,Rfi,Lfi,_fi,Dfi,MD,Ifi,mGr,Mfi,x8,Nfi,Ofi,Pfi,Bfi,Ffi,Uh,yGr=ae(()=>{"use strict";Sut=e2(mte(),1);Xs();Ma();nl();IA();Eut();_D=36,ufi=-5,dGr=60,fGr=dGr-ufi,Wae=i((r,t,a,s)=>{if(t.look!=="neo")return null;let l=cGr(r,t);return a?hGr(s,l):uGr(s,r.height,l)},"neoBands"),DD="actor-top",ID="actor-bottom",ICe="actor-box",yB="actor-man",w8=new Set(["redux-color","redux-dark-color"]),Ep=i((r,t)=>r?.length?r[t%r.length]:void 0,"paletteColor"),Uae=i(function(r,t){let a=AO(r,t);return ri().look==="neo"&&a.attr("data-look","neo"),a},"drawRect"),hfi=i(function(r,t,a,s,l){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let h=t.links,f=t.actorCnt,d=t.rectData;var m="none";l&&(m="block !important");let b=r.append("g");b.attr("id","actor"+f+"_popup"),b.attr("class","actorPopupMenu"),b.attr("display",m);var v="";d.class!==void 0&&(v=" "+d.class);let T=d.width>a?d.width:a,C=b.append("rect");if(C.attr("class","actorPopupMenuPanel"+v),C.attr("x",d.x),C.attr("y",d.height),C.attr("fill",d.fill),C.attr("stroke",d.stroke),C.attr("width",T),C.attr("height",d.height),C.attr("rx",d.rx),C.attr("ry",d.ry),h!=null){var E=20;for(let L in h){var S=b.append("a"),R=(0,Sut.sanitizeUrl)(h[L]);S.attr("xlink:href",R),S.attr("target","_blank"),Nfi(s)(L,S,d.x+10,d.height+E,T,20,{class:"actor"},s),E+=30}}return C.attr("height",E),{height:d.height+E,width:T}},"drawPopup"),MCe=i(function(r){return"var pu = document.getElementById('"+r+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Vae=i(async function(r,t,a=null){let s=r.append("foreignObject"),l=await Ez(t.text,ri()),f=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(l).node().getBoundingClientRect();if(s.attr("height",Math.round(f.height)).attr("width",Math.round(f.width)),t.class==="noteText"){let d=r.node().firstChild;d.setAttribute("height",f.height+2*t.textMargin);let m=d.getBBox();s.attr("x",Math.round(m.x+m.width/2-f.width/2)).attr("y",Math.round(m.y+m.height/2-f.height/2))}else if(a){let{startx:d,stopx:m,starty:b}=a;if(d>m){let v=d;d=m,m=v}s.attr("x",Math.round(d+Math.abs(d-m)/2-f.width/2)),t.class==="loopText"?s.attr("y",Math.round(b)):s.attr("y",Math.round(b-f.height))}return[s]},"drawKatex"),bB=i(function(r,t){let a=0,s=0,l=t.text.split(Xn.lineBreakRegex),[h,f]=Rb(t.fontSize),d=[],m=0,b=i(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":b=i(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":b=i(()=>Math.round(t.y+(a+s+t.textMargin)/2),"yfunc");break;case"bottom":case"end":b=i(()=>Math.round(t.y+(a+s+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[v,T]of l.entries()){t.textMargin!==void 0&&t.textMargin===0&&h!==void 0&&(m=v*h);let C=r.append("text");C.attr("x",t.x),C.attr("y",b()),t.anchor!==void 0&&C.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&C.style("font-family",t.fontFamily),f!==void 0&&C.style("font-size",f),t.fontWeight!==void 0&&C.style("font-weight",t.fontWeight),t.fill!==void 0&&C.attr("fill",t.fill),t.class!==void 0&&C.attr("class",t.class),t.dy!==void 0?C.attr("dy",t.dy):m!==0&&C.attr("dy",m);let E=T||NJe;if(t.tspan){let S=C.append("tspan");S.attr("x",t.x),t.fill!==void 0&&S.attr("fill",t.fill),S.text(E)}else C.text(E);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(s+=(C._groups||C)[0][0].getBBox().height,a=s),d.push(C)}return d},"drawText"),pGr=i(function(r,t){function a(l,h,f,d,m){return l+","+h+" "+(l+f)+","+h+" "+(l+f)+","+(h+d-m)+" "+(l+f-m*1.2)+","+(h+d)+" "+l+","+(h+d)}i(a,"genPoints");let s=r.append("polygon");return s.attr("points",a(t.x,t.y,t.width,t.height,7)),s.attr("class","labelBox"),t.y=t.y+t.height/2,bB(r,t),s},"drawLabel"),bc=-1,Aut=i((r,t,a,s)=>{r.select&&a.forEach(l=>{let h=t.get(l),f=r.select("#actor"+h.actorCnt);!s.mirrorActors&&h.stopy?f.attr("y2",h.stopy+h.height/2):s.mirrorActors&&f.attr("y2",h.stopy)})},"fixLifeLineHeights"),ffi=i(function(r,t,a,s,l,h){let f=s?t.stopy:t.starty,d=t.x+t.width/2,m=f+t.height,{look:b,theme:v,themeVariables:T}=a,{bkgColorArray:C,borderColorArray:E}=T,S=r.append("g").lower();var R=S;s||(bc++,Object.keys(t.links||{}).length&&!a.forceMenus&&R.attr("onclick",MCe(`actor${bc}_popup`)).attr("cursor","pointer"),R.append("line").attr("id","actor"+bc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),R=S.append("g"),t.actorCnt=bc,t.links!=null&&R.attr("id","root-"+bc),b==="neo"&&R.attr("data-look","neo"));let L=Ab();var _="actor";t.properties?.class?_=t.properties.class:L.fill="#eaeaea",s?_+=` ${ID}`:_+=` ${DD}`,L.x=t.x,L.y=f,L.width=t.width,L.height=t.height,L.class=_,L.rx=3,L.ry=3,L.name=t.name,b==="neo"&&(L.rx=6,L.ry=6);let I=Uae(R,L),N=h.get(t.name)??0;if(w8.has(v)&&(I.style("stroke",Ep(E,N)),I.style("fill",Ep(C,N))),b==="neo"&&I.attr("filter",`url(#${MD(l)})`),t.rectData=L,t.properties?.icon){let O=t.properties.icon.trim();O.charAt(0)==="@"?D2e(R,L.x+L.width-20,L.y+10,O.substr(1)):_2e(R,L.x+L.width-20,L.y+10,O)}s||(R.attr("data-et","participant"),R.attr("data-type","participant"),R.attr("data-id",t.name)),x8(a,Tf(t.description))(t.description,R,L.x,L.y,L.width,L.height,{class:`actor ${ICe}`},a);let B=t.height;if(I.node){let O=I.node().getBBox();a.look!=="neo"&&(t.height=O.height,B=O.height)}return B},"drawActorTypeParticipant"),dfi=i(function(r,t,a,s,l,h){let f=s?t.stopy:t.starty,d=t.x+t.width/2,m=f+t.height,{look:b,theme:v,themeVariables:T}=a,{bkgColorArray:C,borderColorArray:E}=T,S=r.append("g").lower();var R=S;s||(bc++,Object.keys(t.links||{}).length&&!a.forceMenus&&R.attr("onclick",MCe(`actor${bc}_popup`)).attr("cursor","pointer"),R.append("line").attr("id","actor"+bc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),R=S.append("g"),t.actorCnt=bc,t.links!=null&&R.attr("id","root-"+bc),b==="neo"&&R.attr("data-look","neo"));let L=Ab();var _="actor";t.properties?.class?_=t.properties.class:L.fill="#eaeaea",s?_+=` ${ID}`:_+=` ${DD}`,L.x=t.x,L.y=f,L.width=t.width,L.height=t.height,L.class=_,L.name=t.name;let I=6;a.look==="neo"&&(L.height=t.height-I);let N={...L,x:L.x+-I,y:L.y+ +I,class:"actor"},B=Uae(R,L),O=Uae(R,N);t.rectData=L,b==="neo"&&R.attr("filter",`url(#${MD(l)})`);let P=h.get(t.name)??0;if(w8.has(v)&&(B.style("stroke",Ep(E,P)),B.style("fill",Ep(C,P)),O.style("stroke",Ep(E,P)),O.style("fill",Ep(C,P))),t.properties?.icon){let V=t.properties.icon.trim();V.charAt(0)==="@"?D2e(R,L.x+L.width-20,L.y+10,V.substr(1)):_2e(R,L.x+L.width-20,L.y+10,V)}x8(a,Tf(t.description))(t.description,R,L.x-I,L.y+I,L.width,L.height,{class:`actor ${ICe}`},a);let $=t.height;if(B.node){let V=B.node().getBBox();a.look!=="neo"&&(t.height=V.height,$=V.height)}return s||(R.attr("data-et","participant"),R.attr("data-type","collections"),R.attr("data-id",t.name)),$},"drawActorTypeCollections"),pfi=i(function(r,t,a,s,l,h){let f=s?t.stopy:t.starty,d=t.x+t.width/2,m=f+t.height,{look:b,theme:v,themeVariables:T}=a,{bkgColorArray:C,borderColorArray:E}=T,S=r.append("g").lower(),R=S;s||(bc++,Object.keys(t.links||{}).length&&!a.forceMenus&&R.attr("onclick",MCe(`actor${bc}_popup`)).attr("cursor","pointer"),R.append("line").attr("id","actor"+bc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),R=S.append("g"),t.actorCnt=bc,t.links!=null&&R.attr("id","root-"+bc),b==="neo"&&R.attr("data-look","neo"));let L=Ab(),_="actor";t.properties?.class?_=t.properties.class:L.fill="#eaeaea",s?_+=` ${ID}`:_+=` ${DD}`,R.attr("class",_),L.x=t.x,L.y=f,L.width=t.width,L.height=t.height,L.name=t.name;let I=L.height/2,N=I/(2.5+L.height/50),B=R.append("g"),O=R.append("g"),P=`M ${L.x},${L.y+I}
|
|
a ${N},${I} 0 0 0 0,${L.height}
|
|
h ${L.width-2*N}
|
|
a ${N},${I} 0 0 0 0,-${L.height}
|
|
Z
|
|
`;B.append("path").attr("d",P),O.append("path").attr("d",`M ${L.x},${L.y+I}
|
|
a ${N},${I} 0 0 0 0,${L.height}`),B.attr("transform",`translate(${N}, ${-(L.height/2)})`),O.attr("transform",`translate(${L.width-N}, ${-L.height/2})`),t.rectData=L,b==="neo"&&B.attr("filter",`url(#${MD(l)})`);let $=h.get(t.name)??0;if(w8.has(v)&&(B.style("stroke",Ep(E,$)),B.style("fill",Ep(C,$)),O.style("stroke",Ep(E,$)),O.style("fill",Ep(C,$))),t.properties?.icon){let Q=t.properties.icon.trim(),q=L.x+L.width-20,W=L.y+10;Q.charAt(0)==="@"?D2e(R,q,W,Q.substr(1)):_2e(R,q,W,Q)}x8(a,Tf(t.description))(t.description,R,L.x,L.y,L.width,L.height,{class:`actor ${ICe}`},a);let V=t.height,Y=B.select("path:last-child");if(Y.node()){let Q=Y.node().getBBox();a.look!=="neo"&&(t.height=Q.height,V=Q.height)}return s||(R.attr("data-et","participant"),R.attr("data-type","queue"),R.attr("data-id",t.name)),V},"drawActorTypeQueue"),gfi=i(function(r,t,a,s,l,h){let f=s?t.stopy:t.starty,d=t.x+t.width/2,m=Wae(t,a,s,f),b=m?m.lifelineStartY:f+75,{look:v,theme:T,themeVariables:C}=a,{bkgColorArray:E,borderColorArray:S,actorBorder:R,actorBkg:L}=C,_=r.append("g").lower();s||(bc++,_.append("line").attr("id","actor"+bc).attr("x1",d).attr("y1",b).attr("x2",d).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=bc);let I=r.append("g"),N=yB;s?N+=` ${ID}`:N+=` ${DD}`,I.attr("class",N),I.attr("name",t.name);let B=Ab();B.x=t.x,B.y=f,B.fill="#eaeaea",B.width=t.width,B.height=t.height,B.class="actor";let O=t.x+t.width/2,P=m?m.glyphBottomY-22:f+32,$=22;I.append("defs").append("marker").attr("id",l+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),I.append("circle").attr("cx",O).attr("cy",P).attr("r",$).attr("filter",`${v==="neo"?`url(#${MD(l)})`:""}`),I.append("line").attr("marker-end","url(#"+l+"-filled-head-control)").attr("transform",`translate(${O}, ${P-$})`);let V=h.get(t.name)??0;if(w8.has(T)?(I.style("stroke",Ep(S,V)),I.style("fill",Ep(E,V))):(I.style("stroke",R),I.style("fill",L)),!m){let Y=I.node().getBBox();t.height=Y.height+2*(a?.sequence?.labelBoxHeight??0)}return x8(a,Tf(t.description))(t.description,I,B.x,m?m.labelCenterY-B.height/2:B.y+$+(s?5:12),B.width,B.height,{class:`actor ${yB}`},a),s||(I.attr("data-et","participant"),I.attr("data-type","control"),I.attr("data-id",t.name)),t.height},"drawActorTypeControl"),mfi=i(function(r,t,a,s,l,h){let f=s?t.stopy:t.starty,d=t.x+t.width/2,m=Wae(t,a,s,f),b=m?m.lifelineStartY:f+75,{look:v,theme:T,themeVariables:C}=a,{bkgColorArray:E,borderColorArray:S}=C,R=r.append("g").lower(),L=r.append("g"),_="actor";s?_+=` ${ID}`:_+=` ${DD}`,L.attr("class",_),L.attr("name",t.name);let I=Ab();I.x=t.x,I.y=f,I.fill="#eaeaea",I.width=t.width,I.height=t.height,I.class="actor";let N=t.x+t.width/2,B=m?m.glyphBottomY-22:f+(s?10:25),O=22;L.append("circle").attr("cx",N).attr("cy",B).attr("r",O).attr("width",t.width).attr("height",t.height),L.append("line").attr("x1",N-O).attr("x2",N+O).attr("y1",B+O).attr("y2",B+O).attr("stroke-width",2),v==="neo"&&L.attr("filter",`url(#${MD(l)})`);let P=h.get(t.name)??0;if(w8.has(T)&&(L.style("stroke",Ep(S,P)),L.style("fill",Ep(E,P))),!m){let $=L.node().getBBox();t.height=$.height+(a?.sequence?.labelBoxHeight??0)}return s||(bc++,R.append("line").attr("id","actor"+bc).attr("x1",d).attr("y1",b).attr("x2",d).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=bc),x8(a,Tf(t.description))(t.description,L,I.x,m?m.labelCenterY-I.height/2:I.y+(s?15:30),I.width,I.height,{class:`actor ${yB}`},a),m||L.attr("transform",`translate(0, ${s?O:O/2-5})`),s||(L.attr("data-et","participant"),L.attr("data-type","entity"),L.attr("data-id",t.name)),t.height},"drawActorTypeEntity"),yfi=i(function(r,t,a,s,l,h){let f=s?t.stopy:t.starty,d=t.x+t.width/2,m=Wae(t,a,s,f),b=m?m.lifelineStartY:f+t.height+2*a.boxTextMargin,{theme:v,themeVariables:T,look:C}=a,{bkgColorArray:E,borderColorArray:S,actorBorder:R}=T,L=r.append("g").lower(),_=L;s||(bc++,Object.keys(t.links||{}).length&&!a.forceMenus&&_.attr("onclick",MCe(`actor${bc}_popup`)).attr("cursor","pointer"),_.append("line").attr("id","actor"+bc).attr("x1",d).attr("y1",b).attr("x2",d).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),_=L.append("g"),t.actorCnt=bc,t.links!=null&&_.attr("id","root-"+bc),C==="neo"&&_.attr("data-look","neo"));let I=Ab(),N="actor";t.properties?.class?N=t.properties.class:I.fill="#eaeaea",s?N+=` ${ID}`:N+=` ${DD}`,I.x=t.x,I.y=f,I.width=t.width,I.height=t.height,I.class=N,I.name=t.name,I.x=t.x,I.y=f;let B=I.width/3,O=B/2,P=O/(2.5+B/50),$=m?zae:I.width/3,V=m?m.glyphBottomY-$-P:I.y,Y=_.append("g");Y.attr("class",N);let Q=`
|
|
M ${I.x},${V+P}
|
|
a ${O},${P} 0 0 0 ${B},0
|
|
a ${O},${P} 0 0 0 -${B},0
|
|
l 0,${$-2*P}
|
|
a ${O},${P} 0 0 0 ${B},0
|
|
l 0,-${$-2*P}
|
|
`;Y.append("path").attr("d",Q),C==="neo"&&Y.attr("filter",`url(#${MD(l)})`);let q=h.get(t.name)??0;if(w8.has(v)?(Y.style("stroke",Ep(S,q)),Y.style("fill",Ep(E,q))):Y.style("stroke",R),Y.attr("transform",`translate(${B}, ${P})`),t.rectData=I,x8(a,Tf(t.description))(t.description,_,I.x,m?m.labelCenterY-I.height/2:I.y+35,I.width,I.height,{class:`actor ${ICe}`},a),!m){let W=Y.select("path:last-child");if(W.node()){let H=W.node().getBBox();t.height=H.height+(a.sequence.labelBoxHeight??0)}}return s||(_.attr("data-et","participant"),_.attr("data-type","database"),_.attr("data-id",t.name)),t.height},"drawActorTypeDatabase"),bfi=i(function(r,t,a,s,l,h){let f=s?t.stopy:t.starty,d=t.x+t.width/2,m=Wae(t,a,s,f),b=m?m.lifelineStartY:f+80,v=22,T=m?m.glyphBottomY-v:f+12,C=r.append("g").lower(),{look:E,theme:S,themeVariables:R}=a,{bkgColorArray:L,borderColorArray:_,actorBorder:I}=R;s||(bc++,C.append("line").attr("id","actor"+bc).attr("x1",d).attr("y1",b).attr("x2",d).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=bc);let N=r.append("g"),B=yB;s?B+=` ${ID}`:B+=` ${DD}`,N.attr("class",B),N.attr("name",t.name);let O=Ab();O.x=t.x,O.y=f,O.fill="#eaeaea",O.width=t.width,O.height=t.height,O.class="actor",N.append("line").attr("id","actor-man-torso"+bc).attr("x1",t.x+t.width/2-v*2.5).attr("y1",T).attr("x2",t.x+t.width/2-15).attr("y2",T),N.append("line").attr("id","actor-man-arms"+bc).attr("x1",t.x+t.width/2-v*2.5).attr("y1",T-10).attr("x2",t.x+t.width/2-v*2.5).attr("y2",T+10),N.append("circle").attr("cx",t.x+t.width/2).attr("cy",T).attr("r",v),E==="neo"&&N.attr("filter",`url(#${MD(l)})`);let P=h.get(t.name)??0;if(w8.has(S)?(N.style("stroke",Ep(_,P)),N.style("fill",Ep(L,P))):N.style("stroke",I),!m){let $=N.node().getBBox();t.height=$.height+(a.sequence.labelBoxHeight??0)}return x8(a,Tf(t.description))(t.description,N,O.x,m?m.labelCenterY-O.height/2:O.y+15,O.width,O.height,{class:`actor ${yB}`},a),m||N.attr("transform",`translate(0,${v/2+10})`),s||(N.attr("data-et","participant"),N.attr("data-type","boundary"),N.attr("data-id",t.name)),t.height},"drawActorTypeBoundary"),vfi=i(function(r,t,a,s,l){let h=s?t.stopy:t.starty,f=t.x+t.width/2,d=Wae(t,a,s,h),m=d?d.lifelineStartY:h+80,{theme:b,themeVariables:v}=a,{bkgColorArray:T,borderColorArray:C,actorBorder:E}=v,S=r.append("g").lower();s||(bc++,S.append("line").attr("id","actor"+bc).attr("x1",f).attr("y1",m).attr("x2",f).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=bc);let R=r.append("g"),L=yB;s?L+=` ${ID}`:L+=` ${DD}`,R.attr("class",L),R.attr("name",t.name),s||R.attr("data-et","participant").attr("data-type","actor").attr("data-id",t.name);let _=d?zae/fGr:1,I=i($=>d?d.glyphBottomY-(dGr-$)*_:h+$,"gy"),N=i($=>f+$*_,"gx");R.append("line").attr("id","actor-man-torso"+bc).attr("x1",f).attr("y1",I(25)).attr("x2",f).attr("y2",I(45)),R.append("line").attr("id","actor-man-arms"+bc).attr("x1",N(-_D/2)).attr("y1",I(33)).attr("x2",N(_D/2)).attr("y2",I(33)),R.append("line").attr("x1",N(-_D/2)).attr("y1",I(60)).attr("x2",f).attr("y2",I(45)),R.append("line").attr("x1",f).attr("y1",I(45)).attr("x2",N(_D/2-2)).attr("y2",I(60));let B=R.append("circle");B.attr("cx",t.x+t.width/2),B.attr("cy",I(10)),B.attr("r",15*_),B.attr("width",t.width),B.attr("height",t.height),d||(t.height=fGr);let O=Ab();O.x=t.x,O.y=h,O.fill="#eaeaea",O.width=t.width,O.height=t.height,O.class="actor",O.rx=3,O.ry=3;let P=l.get(t.name)??0;return w8.has(b)?(R.style("stroke",Ep(C,P)),R.style("fill",Ep(T,P))):R.style("stroke",E),x8(a,Tf(t.description))(t.description,R,O.x,d?d.labelCenterY-O.height/2:h+35,O.width,O.height,{class:`actor ${yB}`},a),t.height},"drawActorTypeActor"),wfi=i(async function(r,t,a,s,l,h,f){let d=f??new Map([...h.db.getActors().values()].map((m,b)=>[m.name,b]));switch(t.type){case"actor":return await vfi(r,t,a,s,d);case"participant":return await ffi(r,t,a,s,l,d);case"boundary":return await bfi(r,t,a,s,l,d);case"control":return await gfi(r,t,a,s,l,d);case"entity":return await mfi(r,t,a,s,l,d);case"database":return await yfi(r,t,a,s,l,d);case"collections":return await dfi(r,t,a,s,l,d);case"queue":return await pfi(r,t,a,s,l,d)}},"drawActor"),xfi=i(function(r,t,a){let l=r.append("g");gGr(l,t),t.name&&x8(a)(t.name,l,t.x,t.y+a.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},a),l.lower()},"drawBox"),Tfi=i(function(r){return r.append("g")},"anchorElement"),kfi=i(function(r,t,a,s,l,h,f){let{theme:d,themeVariables:m}=s,{bkgColorArray:b,borderColorArray:v,mainBkg:T}=m,C=Ab(),E=t.anchored,S=t.actor;C.x=t.startx,C.y=t.starty,C.class="activation"+l%3,C.width=t.stopx-t.startx,C.height=a-t.starty;let R=Uae(E,C),_=(f??new Map([...h.db.getActors().values()].map((I,N)=>[I.name,N]))).get(S)??0;w8.has(d)&&(R.style("stroke",Ep(v,_)),R.style("fill",Ep(b,_)??T))},"drawActivation"),Cfi=i(async function(r,t,a,s,l){let{boxMargin:h,boxTextMargin:f,labelBoxHeight:d,labelBoxWidth:m,messageFontFamily:b,messageFontSize:v,messageFontWeight:T}=s,C=r.append("g").attr("data-et","control-structure").attr("data-id","i"+l.id),E=i(function(L,_,I,N){return C.append("line").attr("x1",L).attr("y1",_).attr("x2",I).attr("y2",N).attr("class","loopLine")},"drawLoopLine");E(t.startx,t.starty,t.stopx,t.starty),E(t.stopx,t.starty,t.stopx,t.stopy),E(t.startx,t.stopy,t.stopx,t.stopy),E(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(L){E(t.startx,L.y,t.stopx,L.y).style("stroke-dasharray","3, 3")});let S=ure();S.text=a,S.x=t.startx,S.y=t.starty,S.fontFamily=b,S.fontSize=v,S.fontWeight=T,S.anchor="middle",S.valign="middle",S.tspan=!1,S.width=Math.max(m??0,50),S.height=d+(s.look==="neo"?15:0)||20,S.textMargin=f,S.class="labelText",pGr(C,S),S=mGr(),S.text=t.title,S.x=t.startx+m/2+(t.stopx-t.startx)/2,S.y=t.starty+h+f,S.anchor="middle",S.valign="middle",S.textMargin=f,S.class="loopText",S.fontFamily=b,S.fontSize=v,S.fontWeight=T,S.wrap=!0;let R=Tf(S.text)?await Vae(C,S,t):bB(C,S);if(t.sectionTitles!==void 0){for(let[L,_]of Object.entries(t.sectionTitles))if(_.message){S.text=_.message,S.x=t.startx+(t.stopx-t.startx)/2,S.y=t.sections[L].y+h+f,S.class="sectionTitle",S.anchor="middle",S.valign="middle",S.tspan=!1,S.fontFamily=b,S.fontSize=v,S.fontWeight=T,S.wrap=t.wrap,Tf(S.text)?(t.starty=t.sections[L].y,await Vae(C,S,t)):bB(C,S);let I=Math.round(R.map(N=>(N._groups||N)[0][0].getBBox().height).reduce((N,B)=>N+B));t.sections[L].height+=I-(h+f)}}return t.height=Math.round(t.stopy-t.starty),C},"drawLoop"),gGr=i(function(r,t){L2e(r,t)},"drawBackgroundRect"),Efi=i(function(r,t){r.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),Sfi=i(function(r,t){r.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),Afi=i(function(r,t){r.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Rfi=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),Lfi=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),_fi=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),Dfi=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),MD=i(r=>r?`${r}-drop-shadow`:"drop-shadow","dropShadowId"),Ifi=i(function(r,t,a){let{theme:s}=t;r.append("defs").append("filter").attr("id",MD(a)).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s==="redux"||s==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),mGr=i(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),Mfi=i(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),x8=(function(){function r(h,f,d,m,b,v,T){let C=f.append("text").attr("x",d+b/2).attr("y",m+v/2+5).style("text-anchor","middle").text(h);l(C,T)}i(r,"byText");function t(h,f,d,m,b,v,T,C){let{actorFontSize:E,actorFontFamily:S,actorFontWeight:R}=C,[L,_]=Rb(E),I=h.split(Xn.lineBreakRegex);for(let N=0;N<I.length;N++){let B=N*L-L*(I.length-1)/2,O=f.append("text").attr("x",d+b/2).attr("y",m).style("text-anchor","middle").style("font-size",_).style("font-weight",R).style("font-family",S);O.append("tspan").attr("x",d+b/2).attr("dy",B).text(I[N]),O.attr("y",m+v/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(O,T)}}i(t,"byTspan");function a(h,f,d,m,b,v,T,C){let E=f.append("switch"),R=E.append("foreignObject").attr("x",d).attr("y",m).attr("width",b).attr("height",v).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");R.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(h),t(h,E,d,m,b,v,T,C),l(R,T)}i(a,"byFo");async function s(h,f,d,m,b,v,T,C){let E=await nO(h,ri()),S=f.append("switch"),L=S.append("foreignObject").attr("x",d+b/2-E.width/2).attr("y",m+v/2-E.height/2).attr("width",E.width).attr("height",E.height).append("xhtml:div").style("height","100%").style("width","100%");L.append("div").style("text-align","center").style("vertical-align","middle").html(await Ez(h,ri())),t(h,S,d,m,b,v,T,C),l(L,T)}i(s,"byKatex");function l(h,f){for(let d in f)f.hasOwnProperty(d)&&h.attr(d,f[d])}return i(l,"_setTextAttrs"),function(h,f=!1){return f?s:h.textPlacement==="fo"?a:h.textPlacement==="old"?r:t}})(),Nfi=(function(){function r(l,h,f,d,m,b,v){let T=h.append("text").attr("x",f).attr("y",d).style("text-anchor","start").text(l);s(T,v)}i(r,"byText");function t(l,h,f,d,m,b,v,T){let{actorFontSize:C,actorFontFamily:E,actorFontWeight:S}=T,R=l.split(Xn.lineBreakRegex);for(let L=0;L<R.length;L++){let _=L*C-C*(R.length-1)/2,I=h.append("text").attr("x",f).attr("y",d).style("text-anchor","start").style("font-size",C).style("font-weight",S).style("font-family",E);I.append("tspan").attr("x",f).attr("dy",_).text(R[L]),I.attr("y",d+b/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(I,v)}}i(t,"byTspan");function a(l,h,f,d,m,b,v,T){let C=h.append("switch"),S=C.append("foreignObject").attr("x",f).attr("y",d).attr("width",m).attr("height",b).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,C,f,d,m,b,v,T),s(S,v)}i(a,"byFo");function s(l,h){for(let f in h)h.hasOwnProperty(f)&&l.attr(f,h[f])}return i(s,"_setTextAttrs"),function(l){return l.textPlacement==="fo"?a:l.textPlacement==="old"?r:t}})(),Ofi=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),Pfi=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),Bfi=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),Ffi=i(function(r,t){r.append("defs").append("marker").attr("id",t+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),Uh={drawRect:Uae,drawText:bB,drawLabel:pGr,drawActor:wfi,drawBox:xfi,drawPopup:hfi,anchorElement:Tfi,drawActivation:kfi,drawLoop:Cfi,drawBackgroundRect:gGr,insertArrowHead:Rfi,insertArrowFilledHead:Lfi,insertSequenceNumber:_fi,insertArrowCrossHead:Dfi,insertDatabaseIcon:Efi,insertComputerIcon:Sfi,insertClockIcon:Afi,getTextObj:mGr,getNoteRect:Mfi,fixLifeLineHeights:Aut,sanitizeUrl:Sut.sanitizeUrl,insertDropShadow:Ifi,insertSolidTopArrowHead:Ofi,insertSolidBottomArrowHead:Pfi,insertStickTopArrowHead:Bfi,insertStickBottomArrowHead:Ffi}});async function Gfi(r,t){gi.bumpVerticalPos(10);let{startx:a,stopx:s,message:l}=t,h=Xn.splitBreaks(l).length,f=Tf(l),d=f?await nO(l,er()):Va.calculateTextDimensions(l,vB(Ar));if(!f){let T=d.height/h;t.height+=T,gi.bumpVerticalPos(T)}let m,b=d.height-10,v=d.width;if(a===s){m=gi.getVerticalPos()+b,Ar.rightAngles||(b+=Ar.boxMargin,m=gi.getVerticalPos()+b),b+=30;let T=Xn.getMax(v/2,Ar.width/2);gi.insert(a-T,gi.getVerticalPos()-10+b,s+T,gi.getVerticalPos()+30+b)}else b+=Ar.boxMargin,m=gi.getVerticalPos()+b,gi.insert(a,m-10,s,m);return gi.bumpVerticalPos(b),t.height+=b,t.stopy=t.starty+t.height,gi.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),m}function QS(r,t,a,s,l){gi.bumpVerticalPos(a);let h=s;if(t.id&&t.message&&r[t.id]){let f=r[t.id].width,d=vB(Ar);t.message=Va.wrapLabel(`[${t.message}]`,f-2*Ar.wrapPadding,d),t.width=f,t.wrap=!0;let m=Va.calculateTextDimensions(t.message,d),b=Xn.getMax(m.height,Ar.labelBoxHeight);h=s+b,Pe.debug(`${b} - ${t.message}`)}l(t),gi.bumpVerticalPos(h)}function Ufi(r,t,a,s,l,h,f){function d(v,T){v.x<l.get(r.from).x?(gi.insert(t.stopx-T,t.starty,t.startx,t.stopy+v.height/2+Ar.noteMargin),t.stopx=t.stopx+T):(gi.insert(t.startx,t.starty,t.stopx+T,t.stopy+v.height/2+Ar.noteMargin),t.stopx=t.stopx-T)}i(d,"receiverAdjustment");function m(v,T){v.x<l.get(r.to).x?(gi.insert(t.startx-T,t.starty,t.stopx,t.stopy+v.height/2+Ar.noteMargin),t.startx=t.startx+T):(gi.insert(t.stopx,t.starty,t.startx+T,t.stopy+v.height/2+Ar.noteMargin),t.startx=t.startx-T)}i(m,"senderAdjustment");let b=[jae.ACTOR,jae.CONTROL,jae.ENTITY,jae.DATABASE];if(h.get(r.to)==s){let v=l.get(r.to),T=b.includes(v.type)?_D/2+3:v.width/2+3;d(v,T),v.starty=a-v.height/2,gi.bumpVerticalPos(v.height/2)}else if(f.get(r.from)==s){let v=l.get(r.from);if(Ar.mirrorActors){let T=b.includes(v.type)?_D/2:v.width/2;m(v,T)}v.stopy=a-v.height/2,gi.bumpVerticalPos(v.height/2)}else if(f.get(r.to)==s){let v=l.get(r.to);if(Ar.mirrorActors){let T=b.includes(v.type)?_D/2+3:v.width/2+3;d(v,T)}v.stopy=a-v.height/2,gi.bumpVerticalPos(v.height/2)}}async function Wfi(r,t,a){let s={};for(let l of t)if(r.get(l.to)&&r.get(l.from)){let h=r.get(l.to);if(l.placement===a.db.PLACEMENT.LEFTOF&&!h.prevActor||l.placement===a.db.PLACEMENT.RIGHTOF&&!h.nextActor)continue;let f=l.placement!==void 0,d=!f,m=f?SW(Ar):vB(Ar),b=l.wrap?Va.wrapLabel(l.message,Ar.width-2*Ar.wrapPadding,m):l.message,T=(Tf(b)?await nO(l.message,er()):Va.calculateTextDimensions(b,m)).width+2*Ar.wrapPadding;d&&l.from===h.nextActor?s[l.to]=Xn.getMax(s[l.to]||0,T):d&&l.from===h.prevActor?s[l.from]=Xn.getMax(s[l.from]||0,T):d&&l.from===l.to?(s[l.from]=Xn.getMax(s[l.from]||0,T/2),s[l.to]=Xn.getMax(s[l.to]||0,T/2)):l.placement===a.db.PLACEMENT.RIGHTOF?s[l.from]=Xn.getMax(s[l.from]||0,T):l.placement===a.db.PLACEMENT.LEFTOF?s[h.prevActor]=Xn.getMax(s[h.prevActor]||0,T):l.placement===a.db.PLACEMENT.OVER&&(h.prevActor&&(s[h.prevActor]=Xn.getMax(s[h.prevActor]||0,T/2)),h.nextActor&&(s[l.from]=Xn.getMax(s[l.from]||0,T/2)))}return Pe.debug("maxMessageWidthPerActor:",s),s}async function qfi(r,t,a){let s=0;for(let h of r.keys()){let f=r.get(h);f.wrap&&(f.description=Va.wrapLabel(f.description,Ar.width-2*Ar.wrapPadding,Lut(Ar)));let d=Tf(f.description)?await nO(f.description,er()):Va.calculateTextDimensions(f.description,Lut(Ar));f.width=f.wrap?Ar.width:Xn.getMax(Ar.width,d.width+2*Ar.wrapPadding),er().look==="neo"?(f.actorTextHeight=d.height,f.height=Xn.getMax(Cut(d.height),Ar.height)):f.height=f.wrap?Xn.getMax(d.height,Ar.height):Ar.height,s=Xn.getMax(s,f.height)}for(let h in t){let f=r.get(h);if(!f)continue;let d=r.get(f.nextActor);if(!d){let T=t[h]+Ar.actorMargin-f.width/2;f.margin=Xn.getMax(T,Ar.actorMargin);continue}let b=t[h]+Ar.actorMargin-f.width/2-d.width/2;f.margin=Xn.getMax(b,Ar.actorMargin)}let l=0;return a.forEach(h=>{let f=vB(Ar),d=h.actorKeys.reduce((T,C)=>T+=r.get(C).width+(r.get(C).margin||0),0),m=Ar.boxMargin*8;d+=m,d-=2*Ar.boxTextMargin,h.wrap&&(h.name=Va.wrapLabel(h.name,d-2*Ar.wrapPadding,f));let b=Va.calculateTextDimensions(h.name,f);l=Xn.getMax(b.height,l);let v=Xn.getMax(d,b.width+2*Ar.wrapPadding);if(h.margin=Ar.boxTextMargin,d<v){let T=(v-d)/2;h.margin+=T}}),a.forEach(h=>h.textMaxHeight=l),Xn.getMax(s,Ar.height)}var Ar,gi,$fi,bGr,vB,SW,Lut,jfi,zfi,_ut,wGr,xGr,NCe,vGr,Vfi,Hfi,Yfi,Xfi,Kfi,Rut,Jfi,TGr,Qfi,Zfi,edi,kGr,CGr=ae(()=>{"use strict";zo();yGr();Yn();nl();nl();IA();ma();Eut();fz();Ma();$h();Tut();Ar={},gi={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:i(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(r=>r.height||0))+(this.loops.length===0?0:this.loops.map(r=>r.height||0).reduce((r,t)=>r+t))+(this.messages.length===0?0:this.messages.map(r=>r.height||0).reduce((r,t)=>r+t))+(this.notes.length===0?0:this.notes.map(r=>r.height||0).reduce((r,t)=>r+t))},"getHeight"),clear:i(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:i(function(r){this.boxes.push(r)},"addBox"),addActor:i(function(r){this.actors.push(r)},"addActor"),addLoop:i(function(r){this.loops.push(r)},"addLoop"),addMessage:i(function(r){this.messages.push(r)},"addMessage"),addNote:i(function(r){this.notes.push(r)},"addNote"),lastActor:i(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:i(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:i(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:i(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:i(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,xGr(er())},"init"),updateVal:i(function(r,t,a,s){r[t]===void 0?r[t]=a:r[t]=s(a,r[t])},"updateVal"),updateBounds:i(function(r,t,a,s){let l=this,h=0;function f(d){return i(function(b){h++;let v=l.sequenceItems.length-h+1;l.updateVal(b,"starty",t-v*Ar.boxMargin,Math.min),l.updateVal(b,"stopy",s+v*Ar.boxMargin,Math.max),l.updateVal(gi.data,"startx",r-v*Ar.boxMargin,Math.min),l.updateVal(gi.data,"stopx",a+v*Ar.boxMargin,Math.max),d!=="activation"&&(l.updateVal(b,"startx",r-v*Ar.boxMargin,Math.min),l.updateVal(b,"stopx",a+v*Ar.boxMargin,Math.max),l.updateVal(gi.data,"starty",t-v*Ar.boxMargin,Math.min),l.updateVal(gi.data,"stopy",s+v*Ar.boxMargin,Math.max))},"updateItemBounds")}i(f,"updateFn"),this.sequenceItems.forEach(f()),this.activations.forEach(f("activation"))},"updateBounds"),insert:i(function(r,t,a,s){let l=Xn.getMin(r,a),h=Xn.getMax(r,a),f=Xn.getMin(t,s),d=Xn.getMax(t,s);this.updateVal(gi.data,"startx",l,Math.min),this.updateVal(gi.data,"starty",f,Math.min),this.updateVal(gi.data,"stopx",h,Math.max),this.updateVal(gi.data,"stopy",d,Math.max),this.updateBounds(l,f,h,d)},"insert"),newActivation:i(function(r,t,a){let s=a.get(r.from),l=NCe(r.from).length||0,h=s.x+s.width/2+(l-1)*Ar.activationWidth/2;this.activations.push({startx:h,starty:this.verticalPos+2,stopx:h+Ar.activationWidth,stopy:void 0,actor:r.from,anchored:Uh.anchorElement(t)})},"newActivation"),endActivation:i(function(r){let t=this.activations.map(function(a){return a.actor}).lastIndexOf(r.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:i(function(r={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:r.message,wrap:r.wrap,width:r.width,height:0,fill:t}},"createLoop"),newLoop:i(function(r={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(r,t))},"newLoop"),endLoop:i(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:i(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:i(function(r){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:gi.getVerticalPos(),height:0}),t.sectionTitles.push(r),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:i(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:i(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:i(function(r){this.verticalPos=this.verticalPos+r,this.data.stopy=Xn.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:i(function(){return this.verticalPos},"getVerticalPos"),getBounds:i(function(){return{bounds:this.data,models:this.models}},"getBounds")},$fi=i(async function(r,t,a){gi.bumpVerticalPos(Ar.boxMargin),t.height=Ar.boxMargin,t.starty=gi.getVerticalPos();let s=Ab();s.x=t.startx,s.y=t.starty,s.width=t.width||Ar.width,s.class="note";let l=r.append("g");l.attr("data-et","note"),l.attr("data-id","i"+a);let h=Uh.drawRect(l,s),f=ure();f.x=t.startx,f.y=t.starty,f.width=s.width,f.dy="1em",f.text=t.message,f.class="noteText",f.fontFamily=Ar.noteFontFamily,f.fontSize=Ar.noteFontSize,f.fontWeight=Ar.noteFontWeight,f.anchor=Ar.noteAlign,f.textMargin=Ar.noteMargin,f.valign="center";let d=Tf(f.text)?await Vae(l,f):bB(l,f),m=Math.round(d.map(b=>(b._groups||b)[0][0].getBBox().height).reduce((b,v)=>b+v));h.attr("height",m+2*Ar.noteMargin),t.height+=m+2*Ar.noteMargin,gi.bumpVerticalPos(m+2*Ar.noteMargin),t.stopy=t.starty+m+2*Ar.noteMargin,t.stopx=t.startx+s.width,gi.insert(t.startx,t.starty,t.stopx,t.stopy),gi.models.addNote(t)},"drawNote"),bGr=i(function(r,t,a,s,l,h,f){let d=s.db.getActors(),m=d.get(t.from),b=d.get(t.to),v=a.sequenceVisible,T=m.x+m.width/2,C=b.x+b.width/2,E=T<=C,S=TGr(t,s),R=r.append("g"),L=16.5,_=i((P,$)=>{let V=P?L:-L;return $?-V:V},"getCircleOffset"),I=i(P=>{R.append("circle").attr("cx",P).attr("cy",f).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:N,CENTRAL_CONNECTION_REVERSE:B,CENTRAL_CONNECTION_DUAL:O}=s.db.LINETYPE;if(v)switch(t.centralConnection){case N:S&&(C+=_(E,!0));break;case B:S||(T+=_(E,!1));break;case O:S?C+=_(E,!0):T+=_(E,!1);break}switch(t.centralConnection){case N:I(C);break;case B:I(T);break;case O:I(T),I(C);break}},"drawCentralConnection"),vB=i(r=>({fontFamily:r.messageFontFamily,fontSize:r.messageFontSize,fontWeight:r.messageFontWeight}),"messageFont"),SW=i(r=>({fontFamily:r.noteFontFamily,fontSize:r.noteFontSize,fontWeight:r.noteFontWeight}),"noteFont"),Lut=i(r=>({fontFamily:r.actorFontFamily,fontSize:r.actorFontSize,fontWeight:r.actorFontWeight}),"actorFont");i(Gfi,"boundMessage");jfi=i(async function(r,t,a,s,l,h){let{startx:f,stopx:d,starty:m,message:b,type:v,sequenceIndex:T,sequenceVisible:C}=t,E=Va.calculateTextDimensions(b,vB(Ar)),S=ure();S.x=Math.min(f,d),S.y=m+10,S.width=Math.abs(d-f),S.class="messageText",S.dy="1em",S.text=b,S.fontFamily=Ar.messageFontFamily,S.fontSize=Ar.messageFontSize,S.fontWeight=Ar.messageFontWeight,S.anchor=Ar.messageAlign,S.valign="center",S.textMargin=Ar.wrapPadding,S.tspan=!1,Tf(S.text)?await Vae(r,S,{startx:f,stopx:d,starty:a}):bB(r,S);let R=E.width,L;if(f===d){let I=C||Ar.showSequenceNumbers,N=TGr(l,s),B=Qfi(l,s),O=f+(I&&(N||B)?10:0);Ar.rightAngles?L=r.append("path").attr("d",`M ${O},${a} H ${f+Xn.getMax(Ar.width/2,R/2)} V ${a+25} H ${f}`):L=r.append("path").attr("d","M "+O+","+a+" C "+(O+60)+","+(a-10)+" "+(f+60)+","+(a+30)+" "+f+","+(a+20)),Rut(l,s)&&bGr(r,l,t,s,f,d,a)}else L=r.append("line"),L.attr("x1",f),L.attr("y1",a),L.attr("x2",d),L.attr("y2",a),Rut(l,s)&&bGr(r,l,t,s,f,d,a);v===s.db.LINETYPE.DOTTED||v===s.db.LINETYPE.DOTTED_CROSS||v===s.db.LINETYPE.DOTTED_POINT||v===s.db.LINETYPE.DOTTED_OPEN||v===s.db.LINETYPE.BIDIRECTIONAL_DOTTED||v===s.db.LINETYPE.SOLID_TOP_DOTTED||v===s.db.LINETYPE.SOLID_BOTTOM_DOTTED||v===s.db.LINETYPE.STICK_TOP_DOTTED||v===s.db.LINETYPE.STICK_BOTTOM_DOTTED||v===s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||v===s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||v===s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||v===s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(L.style("stroke-dasharray","3, 3"),L.attr("class","messageLine1")):L.attr("class","messageLine0"),L.attr("data-et","message"),L.attr("data-id","i"+t.id),L.attr("data-from",t.from),L.attr("data-to",t.to);let _="";if(Ar.arrowMarkerAbsolute&&(_=Oqe(!0)),L.attr("stroke-width",2),L.attr("stroke","none"),L.style("fill","none"),(v===s.db.LINETYPE.SOLID_TOP||v===s.db.LINETYPE.SOLID_TOP_DOTTED)&&L.attr("marker-end","url("+_+"#"+h+"-solidTopArrowHead)"),(v===s.db.LINETYPE.SOLID_BOTTOM||v===s.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&L.attr("marker-end","url("+_+"#"+h+"-solidBottomArrowHead)"),(v===s.db.LINETYPE.STICK_TOP||v===s.db.LINETYPE.STICK_TOP_DOTTED)&&L.attr("marker-end","url("+_+"#"+h+"-stickTopArrowHead)"),(v===s.db.LINETYPE.STICK_BOTTOM||v===s.db.LINETYPE.STICK_BOTTOM_DOTTED)&&L.attr("marker-end","url("+_+"#"+h+"-stickBottomArrowHead)"),(v===s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||v===s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&L.attr("marker-start","url("+_+"#"+h+"-solidBottomArrowHead)"),(v===s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||v===s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&L.attr("marker-start","url("+_+"#"+h+"-solidTopArrowHead)"),(v===s.db.LINETYPE.STICK_ARROW_TOP_REVERSE||v===s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&L.attr("marker-start","url("+_+"#"+h+"-stickBottomArrowHead)"),(v===s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||v===s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&L.attr("marker-start","url("+_+"#"+h+"-stickTopArrowHead)"),(v===s.db.LINETYPE.SOLID||v===s.db.LINETYPE.DOTTED)&&L.attr("marker-end","url("+_+"#"+h+"-arrowhead)"),(v===s.db.LINETYPE.BIDIRECTIONAL_SOLID||v===s.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(L.attr("marker-start","url("+_+"#"+h+"-arrowhead)"),L.attr("marker-end","url("+_+"#"+h+"-arrowhead)")),(v===s.db.LINETYPE.SOLID_POINT||v===s.db.LINETYPE.DOTTED_POINT)&&L.attr("marker-end","url("+_+"#"+h+"-filled-head)"),(v===s.db.LINETYPE.SOLID_CROSS||v===s.db.LINETYPE.DOTTED_CROSS)&&L.attr("marker-end","url("+_+"#"+h+"-crosshead)"),C||Ar.showSequenceNumbers){let I=v===s.db.LINETYPE.BIDIRECTIONAL_SOLID||v===s.db.LINETYPE.BIDIRECTIONAL_DOTTED,N=v===s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||v===s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||v===s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||v===s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||v===s.db.LINETYPE.STICK_ARROW_TOP_REVERSE||v===s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||v===s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||v===s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,B=6,O=Rut(l,s),P=f,$=d;I?(f<d?P=f+B*2:(P=f-B+(O?-5:0),P+=l?.centralConnection===s.db.LINETYPE.CENTRAL_CONNECTION_DUAL||l?.centralConnection===s.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),L.attr("x1",P)):N?(d>f?$=d-2*B:($=d-B,P+=l?.centralConnection===s.db.LINETYPE.CENTRAL_CONNECTION_DUAL||l?.centralConnection===s.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),$+=O?15:0,L.attr("x2",$),L.attr("x1",P)):L.attr("x1",f+B);let V=0,Y=f===d,Q=f<=d;Y?V=t.fromBounds+1:N?V=Q?t.toBounds-1:t.fromBounds+1:V=Q?t.fromBounds+1:t.toBounds-1;let q="12px",W=T.toString().length;W>5?q="7px":W>3&&(q="9px"),r.append("line").attr("x1",V).attr("y1",a).attr("x2",V).attr("y2",a).attr("stroke-width",0).attr("marker-start","url("+_+"#"+h+"-sequencenumber)"),r.append("text").attr("x",V).attr("y",a+4).attr("font-family","sans-serif").attr("font-size",q).attr("text-anchor","middle").attr("class","sequenceNumber").text(T)}},"drawMessage"),zfi=i(function(r,t,a,s,l,h,f){let d=0,m=0,b,v=0;for(let T of s){let C=t.get(T),E=C.box;b&&b!=E&&(f||gi.models.addBox(b),m+=Ar.boxMargin+b.margin),E&&E!=b&&(f||(E.x=d+m,E.y=l),m+=E.margin),C.width=Xn.getMax(C.width||Ar.width,Ar.width),C.height=Xn.getMax(C.height||Ar.height,Ar.height),C.margin=C.margin||Ar.actorMargin,v=Xn.getMax(v,C.height),a.get(C.name)&&(m+=C.width/2),C.x=d+m,C.starty=gi.getVerticalPos(),gi.insert(C.x,l,C.x+C.width,C.height),d+=C.width+m,C.box&&(C.box.width=d+E.margin-C.box.x),m=C.margin,b=C.box,gi.models.addActor(C)}b&&!f&&gi.models.addBox(b),gi.bumpVerticalPos(v)},"addActorRenderingData"),_ut=i(async function(r,t,a,s,l,h,f){if(s){let d=0;gi.bumpVerticalPos(Ar.boxMargin*2);for(let m of a){let b=t.get(m);b.stopy||(b.stopy=gi.getVerticalPos());let v=await Uh.drawActor(r,b,Ar,!0,l,h,f);d=Xn.getMax(d,v)}gi.bumpVerticalPos(d+Ar.boxMargin)}else for(let d of a){let m=t.get(d);await Uh.drawActor(r,m,Ar,!1,l,h,f)}},"drawActors"),wGr=i(function(r,t,a,s){let l=0,h=0;for(let f of a){let d=t.get(f),m=Hfi(d),b=Uh.drawPopup(r,d,m,Ar,Ar.forceMenus,s);b.height>l&&(l=b.height),b.width+d.x>h&&(h=b.width+d.x)}return{maxHeight:l,maxWidth:h}},"drawActorsPopup"),xGr=i(function(r){Bh(Ar,r),r.fontFamily&&(Ar.actorFontFamily=Ar.noteFontFamily=Ar.messageFontFamily=r.fontFamily),r.fontSize&&(Ar.actorFontSize=Ar.noteFontSize=Ar.messageFontSize=r.fontSize),r.fontWeight&&(Ar.actorFontWeight=Ar.noteFontWeight=Ar.messageFontWeight=r.fontWeight)},"setConf"),NCe=i(function(r){return gi.activations.filter(function(t){return t.actor===r})},"actorActivations"),vGr=i(function(r,t){let a=t.get(r),s=NCe(r),l=s.reduce(function(f,d){return Xn.getMin(f,d.startx)},a.x+a.width/2-1),h=s.reduce(function(f,d){return Xn.getMax(f,d.stopx)},a.x+a.width/2+1);return[l,h]},"activationBounds");i(QS,"adjustLoopHeightForWrap");i(Ufi,"adjustCreatedDestroyedData");Vfi=i(async function(r,t,a,s){let{securityLevel:l,sequence:h,look:f,themeVariables:d}=er();Ar=h;let m;l==="sandbox"&&(m=mn("#i"+t));let b=l==="sandbox"?mn(m.nodes()[0].contentDocument.body):mn("body"),v=l==="sandbox"?m.nodes()[0].contentDocument:document;gi.init(),Pe.debug(s.db);let T=l==="sandbox"?b.select(`[id="${t}"]`):mn(`[id="${t}"]`),C=s.db.getActors(),E=s.db.getCreatedActors(),S=s.db.getDestroyedActors(),R=s.db.getBoxes(),L=s.db.getActorKeys(),_=s.db.getMessages(),I=s.db.getDiagramTitle(),N=s.db.hasAtLeastOneBox(),B=s.db.hasAtLeastOneBoxWithTitle(),O=await Wfi(C,_,s);if(Ar.height=await qfi(C,O,R),Uh.insertComputerIcon(T,t),Uh.insertDatabaseIcon(T,t),Uh.insertClockIcon(T,t),N&&(gi.bumpVerticalPos(Ar.boxMargin),B&&gi.bumpVerticalPos(R[0].textMaxHeight)),Ar.hideUnusedParticipants===!0){let le=new Set;_.forEach(pe=>{le.add(pe.from),le.add(pe.to)}),L=L.filter(pe=>le.has(pe))}let P=new Map(L.map((le,pe)=>[C.get(le)?.name??le,pe]));zfi(T,C,E,L,0,_,!1);let $=await edi(_,C,O,s);Uh.insertArrowHead(T,t),Uh.insertArrowCrossHead(T,t),Uh.insertArrowFilledHead(T,t),Uh.insertSequenceNumber(T,t),Uh.insertSolidTopArrowHead(T,t),Uh.insertSolidBottomArrowHead(T,t),Uh.insertStickTopArrowHead(T,t),Uh.insertStickBottomArrowHead(T,t),f==="neo"&&Uh.insertDropShadow(T,Ar,t);function V(le,pe){let ge=gi.endActivation(le);ge.starty+18>pe&&(ge.starty=pe-6,pe+=12),Uh.drawActivation(T,ge,pe,Ar,NCe(le.from).length,s,P),gi.insert(ge.startx,pe-10,ge.stopx,pe)}i(V,"activeEnd");let Y=1,Q=1,q=[],W=[],H=0;for(let le of _){let pe,ge,we;switch(le.type){case s.db.LINETYPE.NOTE:gi.resetVerticalPos(),ge=le.noteModel,await $fi(T,ge,le.id);break;case s.db.LINETYPE.ACTIVE_START:gi.newActivation(le,T,C);break;case s.db.LINETYPE.CENTRAL_CONNECTION:gi.newActivation(le,T,C);break;case s.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:gi.newActivation(le,T,C);break;case s.db.LINETYPE.ACTIVE_END:V(le,gi.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:QS($,le,Ar.boxMargin,Ar.boxMargin+Ar.boxTextMargin,Ae=>gi.newLoop(Ae));break;case s.db.LINETYPE.LOOP_END:pe=gi.endLoop(),await Uh.drawLoop(T,pe,"loop",Ar,le),gi.bumpVerticalPos(pe.stopy-gi.getVerticalPos()),gi.models.addLoop(pe);break;case s.db.LINETYPE.RECT_START:QS($,le,Ar.boxMargin,Ar.boxMargin,Ae=>{let ve=Ae.message;ve||(ve=d?.rectBkgColor||d?.actorBkg||"rgba(128, 128, 128, 0.5)"),gi.newLoop(void 0,ve)});break;case s.db.LINETYPE.RECT_END:pe=gi.endLoop(),W.push(pe),gi.models.addLoop(pe),gi.bumpVerticalPos(pe.stopy-gi.getVerticalPos());break;case s.db.LINETYPE.OPT_START:QS($,le,Ar.boxMargin,Ar.boxMargin+Ar.boxTextMargin,Ae=>gi.newLoop(Ae));break;case s.db.LINETYPE.OPT_END:pe=gi.endLoop(),await Uh.drawLoop(T,pe,"opt",Ar,le),gi.bumpVerticalPos(pe.stopy-gi.getVerticalPos()),gi.models.addLoop(pe);break;case s.db.LINETYPE.ALT_START:QS($,le,Ar.boxMargin,Ar.boxMargin+Ar.boxTextMargin,Ae=>gi.newLoop(Ae));break;case s.db.LINETYPE.ALT_ELSE:QS($,le,Ar.boxMargin+Ar.boxTextMargin,Ar.boxMargin,Ae=>gi.addSectionToLoop(Ae));break;case s.db.LINETYPE.ALT_END:pe=gi.endLoop(),await Uh.drawLoop(T,pe,"alt",Ar,le),gi.bumpVerticalPos(pe.stopy-gi.getVerticalPos()),gi.models.addLoop(pe);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:QS($,le,Ar.boxMargin,Ar.boxMargin+Ar.boxTextMargin,Ae=>gi.newLoop(Ae)),gi.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:QS($,le,Ar.boxMargin+Ar.boxTextMargin,Ar.boxMargin,Ae=>gi.addSectionToLoop(Ae));break;case s.db.LINETYPE.PAR_END:pe=gi.endLoop(),await Uh.drawLoop(T,pe,"par",Ar,le),gi.bumpVerticalPos(pe.stopy-gi.getVerticalPos()),gi.models.addLoop(pe);break;case s.db.LINETYPE.AUTONUMBER:Y=le.message.start||Y,Q=le.message.step||Q,le.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:QS($,le,Ar.boxMargin,Ar.boxMargin+Ar.boxTextMargin,Ae=>gi.newLoop(Ae));break;case s.db.LINETYPE.CRITICAL_OPTION:QS($,le,Ar.boxMargin+Ar.boxTextMargin,Ar.boxMargin,Ae=>gi.addSectionToLoop(Ae));break;case s.db.LINETYPE.CRITICAL_END:pe=gi.endLoop(),await Uh.drawLoop(T,pe,"critical",Ar,le),gi.bumpVerticalPos(pe.stopy-gi.getVerticalPos()),gi.models.addLoop(pe);break;case s.db.LINETYPE.BREAK_START:QS($,le,Ar.boxMargin,Ar.boxMargin+Ar.boxTextMargin,Ae=>gi.newLoop(Ae));break;case s.db.LINETYPE.BREAK_END:pe=gi.endLoop(),await Uh.drawLoop(T,pe,"break",Ar,le),gi.bumpVerticalPos(pe.stopy-gi.getVerticalPos()),gi.models.addLoop(pe);break;default:try{we=le.msgModel,we.starty=gi.getVerticalPos(),we.sequenceIndex=Y,we.sequenceVisible=s.db.showSequenceNumbers(),we.id=le.id,we.from=le.from,we.to=le.to;let Ae=await Gfi(T,we);Ufi(le,we,Ae,H,C,E,S),q.push({messageModel:we,lineStartY:Ae,msg:le}),gi.models.addMessage(we)}catch(Ae){Pe.error("error while drawing message",Ae)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.SOLID_TOP,s.db.LINETYPE.SOLID_BOTTOM,s.db.LINETYPE.STICK_TOP,s.db.LINETYPE.STICK_BOTTOM,s.db.LINETYPE.SOLID_TOP_DOTTED,s.db.LINETYPE.SOLID_BOTTOM_DOTTED,s.db.LINETYPE.STICK_TOP_DOTTED,s.db.LINETYPE.STICK_BOTTOM_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT,s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(le.type)&&(Y=Math.round((Y+Q)*100)/100),H++}Pe.debug("createdActors",E),Pe.debug("destroyedActors",S),await _ut(T,C,L,!1,t,s,P);for(let le of q)await jfi(T,le.messageModel,le.lineStartY,s,le.msg,t);Ar.mirrorActors&&await _ut(T,C,L,!0,t,s,P),W.forEach(le=>Uh.drawBackgroundRect(T,le)),Aut(T,C,L,Ar);for(let le of gi.models.boxes){le.height=gi.getVerticalPos()-le.y,gi.insert(le.x,le.y,le.x+le.width,le.height);let pe=Ar.boxMargin*2;le.startx=le.x-pe,le.starty=le.y-pe*.25,le.stopx=le.startx+le.width+2*pe,le.stopy=le.starty+le.height+pe*.75,le.stroke="rgb(0,0,0, 0.5)",Uh.drawBox(T,le,Ar)}N&&gi.bumpVerticalPos(Ar.boxMargin);let re=wGr(T,C,L,v),{bounds:Z}=gi.getBounds();Z.startx===void 0&&(Z.startx=0),Z.starty===void 0&&(Z.starty=0),Z.stopx===void 0&&(Z.stopx=0),Z.stopy===void 0&&(Z.stopy=0);let X=Z.stopy-Z.starty;X<re.maxHeight&&(X=re.maxHeight);let te=X+2*Ar.diagramMarginY;Ar.mirrorActors&&(te=te-Ar.boxMargin+Ar.bottomMarginAdj);let U=Z.stopx-Z.startx;U<re.maxWidth&&(U=re.maxWidth);let ne=U+2*Ar.diagramMarginX;I&&T.append("text").text(I).attr("x",(Z.stopx-Z.startx)/2-2*Ar.diagramMarginX).attr("y",-25),wl(T,te,ne,Ar.useMaxWidth);let se=I?40:0,he=C.size&&f==="neo"?30:0;T.attr("viewBox",Z.startx-Ar.diagramMarginX+" -"+(Ar.diagramMarginY+se)+" "+ne+" "+(te+se+he)),Pe.debug("models:",gi.models)},"draw");i(Wfi,"getMaxMessageWidthPerActor");Hfi=i(function(r){let t=0,a=Lut(Ar);for(let s in r.links){let h=Va.calculateTextDimensions(s,a).width+2*Ar.wrapPadding+2*Ar.boxMargin;t<h&&(t=h)}return t},"getRequiredPopupWidth");i(qfi,"calculateActorMargins");Yfi=i(async function(r,t,a){let s=t.get(r.from),l=t.get(r.to),h=s.x,f=l.x,d=r.wrap&&r.message,m=Tf(r.message)?await nO(r.message,er()):Va.calculateTextDimensions(d?Va.wrapLabel(r.message,Ar.width,SW(Ar)):r.message,SW(Ar)),b={width:d?Ar.width:Xn.getMax(Ar.width,m.width+2*Ar.noteMargin),height:0,startx:s.x,stopx:0,starty:0,stopy:0,message:r.message};return r.placement===a.db.PLACEMENT.RIGHTOF?(b.width=d?Xn.getMax(Ar.width,m.width):Xn.getMax(s.width/2+l.width/2,m.width+2*Ar.noteMargin),b.startx=h+(s.width+Ar.actorMargin)/2):r.placement===a.db.PLACEMENT.LEFTOF?(b.width=d?Xn.getMax(Ar.width,m.width+2*Ar.noteMargin):Xn.getMax(s.width/2+l.width/2,m.width+2*Ar.noteMargin),b.startx=h-b.width+(s.width-Ar.actorMargin)/2):r.to===r.from?(m=Va.calculateTextDimensions(d?Va.wrapLabel(r.message,Xn.getMax(Ar.width,s.width),SW(Ar)):r.message,SW(Ar)),b.width=d?Xn.getMax(Ar.width,s.width):Xn.getMax(s.width,Ar.width,m.width+2*Ar.noteMargin),b.startx=h+(s.width-b.width)/2):(b.width=Math.abs(h+s.width/2-(f+l.width/2))+Ar.actorMargin,b.startx=h<f?h+s.width/2-Ar.actorMargin/2:f+l.width/2-Ar.actorMargin/2),d&&(b.message=Va.wrapLabel(r.message,b.width-2*Ar.wrapPadding,SW(Ar))),Pe.debug(`NM:[${b.startx},${b.stopx},${b.starty},${b.stopy}:${b.width},${b.height}=${r.message}]`),b},"buildNoteModel"),Xfi=4,Kfi=6,Rut=i(function(r,t){let{CENTRAL_CONNECTION:a,CENTRAL_CONNECTION_REVERSE:s,CENTRAL_CONNECTION_DUAL:l}=t.db.LINETYPE;return[a,s,l].includes(r.centralConnection)},"hasCentralConnection"),Jfi=i(function(r,t,a){let{CENTRAL_CONNECTION_REVERSE:s,CENTRAL_CONNECTION_DUAL:l,BIDIRECTIONAL_SOLID:h,BIDIRECTIONAL_DOTTED:f}=t.db.LINETYPE,d=0;return(r.centralConnection===s||r.centralConnection===l)&&(d+=Xfi),(r.centralConnection===s||r.centralConnection===l)&&(r.type===h||r.type===f)&&(d+=a?0:-Kfi),d},"calculateCentralConnectionOffset"),TGr=i(function(r,t){let{SOLID_ARROW_TOP_REVERSE:a,SOLID_ARROW_TOP_REVERSE_DOTTED:s,SOLID_ARROW_BOTTOM_REVERSE:l,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:h,STICK_ARROW_TOP_REVERSE:f,STICK_ARROW_TOP_REVERSE_DOTTED:d,STICK_ARROW_BOTTOM_REVERSE:m,STICK_ARROW_BOTTOM_REVERSE_DOTTED:b}=t.db.LINETYPE;return[a,s,l,h,f,d,m,b].includes(r.type)},"isReverseArrowType"),Qfi=i(function(r,t){let{BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:s}=t.db.LINETYPE;return[a,s].includes(r.type)},"isBidirectionalArrowType"),Zfi=i(function(r,t,a){let{look:s}=er();if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(r.type))return{};let[l,h]=vGr(r.from,t),[f,d]=vGr(r.to,t),m=l<=f,b=m?h:l,v=m?f:d;s==="neo"&&(r.type!==a.db.LINETYPE.SOLID_OPEN&&(v+=m?-3:3),(r.type===a.db.LINETYPE.BIDIRECTIONAL_SOLID||r.type===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(b+=m?3:-3)),b+=Jfi(r,a,m);let T=Math.abs(f-d)>2,C=i(L=>m?-L:L,"adjustValue");r.from===r.to?v=b:(r.activate&&!T&&(v+=C(Ar.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(r.type)||(v+=C(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(r.type)&&(b-=C(3)));let E=[l,h,f,d],S=Math.abs(b-v);r.wrap&&r.message&&(r.message=Va.wrapLabel(r.message,Xn.getMax(S+2*Ar.wrapPadding,Ar.width),vB(Ar)));let R=Va.calculateTextDimensions(r.message,vB(Ar));return{width:Xn.getMax(r.wrap?0:R.width+2*Ar.wrapPadding,S+2*Ar.wrapPadding,Ar.width),height:0,startx:b,stopx:v,starty:0,stopy:0,message:r.message,type:r.type,wrap:r.wrap,fromBounds:Math.min.apply(null,E),toBounds:Math.max.apply(null,E)}},"buildMessageModel"),edi=i(async function(r,t,a,s){let l={},h=[],f,d,m;for(let b of r){switch(b.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:h.push({id:b.id,msg:b.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:b.message&&(f=h.pop(),l[f.id]=f,l[b.id]=f,h.push(f));break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:f=h.pop(),l[f.id]=f;break;case s.db.LINETYPE.ACTIVE_START:{let T=t.get(b.from?b.from:b.to.actor),C=NCe(b.from?b.from:b.to.actor).length,E=T.x+T.width/2+(C-1)*Ar.activationWidth/2,S={startx:E,stopx:E+Ar.activationWidth,actor:b.from,enabled:!0};gi.activations.push(S)}break;case s.db.LINETYPE.ACTIVE_END:{let T=gi.activations.map(C=>C.actor).lastIndexOf(b.from);gi.activations.splice(T,1).splice(0,1)}break}b.placement!==void 0?(d=await Yfi(b,t,s),b.noteModel=d,h.forEach(T=>{f=T,f.from=Xn.getMin(f.from,d.startx),f.to=Xn.getMax(f.to,d.startx+d.width),f.width=Xn.getMax(f.width,Math.abs(f.from-f.to))-Ar.labelBoxWidth})):(m=Zfi(b,t,s),b.msgModel=m,m.startx&&m.stopx&&h.length>0&&h.forEach(T=>{if(f=T,m.startx===m.stopx){let C=t.get(b.from),E=t.get(b.to);f.from=Xn.getMin(C.x-m.width/2,C.x-C.width/2,f.from),f.to=Xn.getMax(E.x+m.width/2,E.x+C.width/2,f.to),f.width=Xn.getMax(f.width,Math.abs(f.to-f.from))-Ar.labelBoxWidth}else f.from=Xn.getMin(m.startx,f.from),f.to=Xn.getMax(m.stopx,f.to),f.width=Xn.getMax(f.width,m.width)-Ar.labelBoxWidth}))}return gi.activations=[],Pe.debug("Loop type widths:",l),l},"calculateLoopBounds"),kGr={bounds:gi,drawActors:_ut,drawActorsPopup:wGr,setConf:xGr,draw:Vfi}});var EGr={};is(EGr,{diagram:()=>tdi});var tdi,SGr=ae(()=>{"use strict";sGr();Tut();lGr();ma();CGr();tdi={parser:aGr,get db(){return new _Ce},renderer:kGr,styles:oGr,init:i(r=>{r.sequence||(r.sequence={}),r.wrap&&(r.sequence.wrap=r.wrap,TA({sequence:{wrap:r.wrap}}))},"init")}});var Dut,LGr,_Gr=ae(()=>{"use strict";Dut=(function(){var r=i(function(Ye,Oe,K,Te){for(K=K||{},Te=Ye.length;Te--;K[Ye[Te]]=Oe);return K},"o"),t=[1,18],a=[1,19],s=[1,20],l=[1,41],h=[1,26],f=[1,42],d=[1,24],m=[1,25],b=[1,32],v=[1,33],T=[1,34],C=[1,45],E=[1,35],S=[1,36],R=[1,37],L=[1,38],_=[1,27],I=[1,28],N=[1,29],B=[1,30],O=[1,31],P=[1,44],$=[1,46],V=[1,43],Y=[1,47],Q=[1,9],q=[1,8,9],W=[1,58],H=[1,59],re=[1,60],Z=[1,61],X=[1,62],te=[1,63],U=[1,64],ne=[1,8,9,41],se=[1,77],he=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],le=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],pe=[13,60,86,100,102,103],ge=[13,60,73,74,86,100,102,103],we=[13,60,68,69,70,71,72,86,100,102,103],Ae=[1,103],ve=[1,121],Ie=[1,117],De=[1,113],Be=[1,119],Fe=[1,114],ze=[1,115],vt=[1,116],lt=[1,118],Ft=[1,120],pr=[22,50,60,61,82,86,87,88,89,90],tr=[1,128],Mt=[12,39],ot=[1,8,9,39,41,44,46],it=[1,8,9,22],mt=[1,153],Rt=[1,8,9,61],pt=[1,8,9,22,50,60,61,82,86,87,88,89,90],gt={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:i(function(Oe,K,Te,ce,Re,me,be){var ke=me.length-1;switch(Re){case 8:this.$=me[ke-1];break;case 9:case 10:case 13:case 15:this.$=me[ke];break;case 11:case 14:this.$=me[ke-2]+"."+me[ke];break;case 12:case 16:this.$=me[ke-1]+me[ke];break;case 17:case 18:this.$=me[ke-1]+"~"+me[ke]+"~";break;case 19:ce.addRelation(me[ke]);break;case 20:me[ke-1].title=ce.cleanupLabel(me[ke]),ce.addRelation(me[ke-1]);break;case 31:this.$=me[ke].trim(),ce.setAccTitle(this.$);break;case 32:case 33:this.$=me[ke].trim(),ce.setAccDescription(this.$);break;case 34:ce.addClassesToNamespace(me[ke-3],me[ke-1][0],me[ke-1][1]),ce.popNamespace();break;case 35:ce.addClassesToNamespace(me[ke-4],me[ke-1][0],me[ke-1][1]),ce.popNamespace();break;case 36:this.$=ce.addNamespace(me[ke]);break;case 37:this.$=ce.addNamespace(me[ke-1],me[ke]);break;case 38:this.$=[[me[ke]],[]];break;case 39:this.$=[[me[ke-1]],[]];break;case 40:me[ke][0].unshift(me[ke-2]),this.$=me[ke];break;case 41:this.$=[[],[me[ke]]];break;case 42:this.$=[[],[me[ke-1]]];break;case 43:me[ke][1].unshift(me[ke-2]),this.$=me[ke];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=me[ke];break;case 48:ce.setCssClass(me[ke-2],me[ke]);break;case 49:ce.addMembers(me[ke-3],me[ke-1]);break;case 51:ce.setCssClass(me[ke-5],me[ke-3]),ce.addMembers(me[ke-5],me[ke-1]);break;case 52:ce.addAnnotation(me[ke-3],me[ke-1]);break;case 53:ce.addAnnotation(me[ke-6],me[ke-4]),ce.addMembers(me[ke-6],me[ke-1]);break;case 54:ce.addAnnotation(me[ke-5],me[ke-3]);break;case 55:this.$=me[ke],ce.addClass(me[ke]);break;case 56:this.$=me[ke-1],ce.addClass(me[ke-1]),ce.setClassLabel(me[ke-1],me[ke]);break;case 60:ce.addAnnotation(me[ke],me[ke-2]);break;case 61:case 74:this.$=[me[ke]];break;case 62:me[ke].push(me[ke-1]),this.$=me[ke];break;case 63:break;case 64:ce.addMember(me[ke-1],ce.cleanupLabel(me[ke]));break;case 65:break;case 66:break;case 67:this.$={id1:me[ke-2],id2:me[ke],relation:me[ke-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:me[ke-3],id2:me[ke],relation:me[ke-1],relationTitle1:me[ke-2],relationTitle2:"none"};break;case 69:this.$={id1:me[ke-3],id2:me[ke],relation:me[ke-2],relationTitle1:"none",relationTitle2:me[ke-1]};break;case 70:this.$={id1:me[ke-4],id2:me[ke],relation:me[ke-2],relationTitle1:me[ke-3],relationTitle2:me[ke-1]};break;case 71:this.$=ce.addNote(me[ke],me[ke-1]);break;case 72:this.$=ce.addNote(me[ke]);break;case 73:this.$=me[ke-2],ce.defineClass(me[ke-1],me[ke]);break;case 75:this.$=me[ke-2].concat([me[ke]]);break;case 76:ce.setDirection("TB");break;case 77:ce.setDirection("BT");break;case 78:ce.setDirection("RL");break;case 79:ce.setDirection("LR");break;case 80:this.$={type1:me[ke-2],type2:me[ke],lineType:me[ke-1]};break;case 81:this.$={type1:"none",type2:me[ke],lineType:me[ke-1]};break;case 82:this.$={type1:me[ke-1],type2:"none",lineType:me[ke]};break;case 83:this.$={type1:"none",type2:"none",lineType:me[ke]};break;case 84:this.$=ce.relationType.AGGREGATION;break;case 85:this.$=ce.relationType.EXTENSION;break;case 86:this.$=ce.relationType.COMPOSITION;break;case 87:this.$=ce.relationType.DEPENDENCY;break;case 88:this.$=ce.relationType.LOLLIPOP;break;case 89:this.$=ce.lineType.LINE;break;case 90:this.$=ce.lineType.DOTTED_LINE;break;case 91:case 97:this.$=me[ke-2],ce.setClickEvent(me[ke-1],me[ke]);break;case 92:case 98:this.$=me[ke-3],ce.setClickEvent(me[ke-2],me[ke-1]),ce.setTooltip(me[ke-2],me[ke]);break;case 93:this.$=me[ke-2],ce.setLink(me[ke-1],me[ke]);break;case 94:this.$=me[ke-3],ce.setLink(me[ke-2],me[ke-1],me[ke]);break;case 95:this.$=me[ke-3],ce.setLink(me[ke-2],me[ke-1]),ce.setTooltip(me[ke-2],me[ke]);break;case 96:this.$=me[ke-4],ce.setLink(me[ke-3],me[ke-2],me[ke]),ce.setTooltip(me[ke-3],me[ke-1]);break;case 99:this.$=me[ke-3],ce.setClickEvent(me[ke-2],me[ke-1],me[ke]);break;case 100:this.$=me[ke-4],ce.setClickEvent(me[ke-3],me[ke-2],me[ke-1]),ce.setTooltip(me[ke-3],me[ke]);break;case 101:this.$=me[ke-3],ce.setLink(me[ke-2],me[ke]);break;case 102:this.$=me[ke-4],ce.setLink(me[ke-3],me[ke-1],me[ke]);break;case 103:this.$=me[ke-4],ce.setLink(me[ke-3],me[ke-1]),ce.setTooltip(me[ke-3],me[ke]);break;case 104:this.$=me[ke-5],ce.setLink(me[ke-4],me[ke-2],me[ke]),ce.setTooltip(me[ke-4],me[ke-1]);break;case 105:this.$=me[ke-2],ce.setCssStyle(me[ke-1],me[ke]);break;case 106:ce.setCssClass(me[ke-1],me[ke]);break;case 107:this.$=[me[ke]];break;case 108:me[ke-2].push(me[ke]),this.$=me[ke-2];break;case 110:this.$=me[ke-1]+me[ke];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:a,37:s,38:22,42:l,43:23,46:h,48:f,51:d,52:m,54:b,56:v,57:T,60:C,62:E,63:S,64:R,65:L,75:_,76:I,78:N,82:B,83:O,86:P,100:$,102:V,103:Y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},r(Q,[2,5],{8:[1,48]}),{8:[1,49]},r(q,[2,19],{22:[1,50]}),r(q,[2,21]),r(q,[2,22]),r(q,[2,23]),r(q,[2,24]),r(q,[2,25]),r(q,[2,26]),r(q,[2,27]),r(q,[2,28]),r(q,[2,29]),r(q,[2,30]),{34:[1,51]},{36:[1,52]},r(q,[2,33]),r(q,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:W,69:H,70:re,71:Z,72:X,73:te,74:U}),{39:[1,65]},r(ne,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),r(q,[2,65]),r(q,[2,66]),{16:69,60:C,86:P,100:$,102:V},{16:39,17:40,19:70,60:C,86:P,100:$,102:V,103:Y},{16:39,17:40,19:71,60:C,86:P,100:$,102:V,103:Y},{16:39,17:40,19:72,60:C,86:P,100:$,102:V,103:Y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:C,86:P,100:$,102:V,103:Y},{13:se,55:76},{58:78,60:[1,79]},r(q,[2,76]),r(q,[2,77]),r(q,[2,78]),r(q,[2,79]),r(he,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:C,86:P,100:$,102:V,103:Y}),r(he,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:C,86:P,100:$,102:V,103:Y},{16:39,17:40,19:87,60:C,86:P,100:$,102:V,103:Y},r(le,[2,133]),r(le,[2,134]),r(le,[2,135]),r(le,[2,136]),r([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),r(Q,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:a,37:s,42:l,46:h,48:f,51:d,52:m,54:b,56:v,57:T,60:C,62:E,63:S,64:R,65:L,75:_,76:I,78:N,82:B,83:O,86:P,100:$,102:V,103:Y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:a,37:s,38:22,42:l,43:23,46:h,48:f,51:d,52:m,54:b,56:v,57:T,60:C,62:E,63:S,64:R,65:L,75:_,76:I,78:N,82:B,83:O,86:P,100:$,102:V,103:Y},r(q,[2,20]),r(q,[2,31]),r(q,[2,32]),{13:[1,91],16:39,17:40,19:90,60:C,86:P,100:$,102:V,103:Y},{53:92,66:56,67:57,68:W,69:H,70:re,71:Z,72:X,73:te,74:U},r(q,[2,64]),{67:93,73:te,74:U},r(pe,[2,83],{66:94,68:W,69:H,70:re,71:Z,72:X}),r(ge,[2,84]),r(ge,[2,85]),r(ge,[2,86]),r(ge,[2,87]),r(ge,[2,88]),r(we,[2,89]),r(we,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:l,43:23,48:f,54:b,56:v},{16:100,60:C,86:P,100:$,102:V},{41:[1,102],45:101,51:Ae},{16:104,60:C,86:P,100:$,102:V},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ve,50:Ie,59:110,60:De,82:Be,84:111,85:112,86:Fe,87:ze,88:vt,89:lt,90:Ft},{60:[1,122]},{13:se,55:123},r(ne,[2,72]),r(ne,[2,138]),{22:ve,50:Ie,59:124,60:De,61:[1,125],82:Be,84:111,85:112,86:Fe,87:ze,88:vt,89:lt,90:Ft},r(pr,[2,74]),{16:39,17:40,19:126,60:C,86:P,100:$,102:V,103:Y},r(he,[2,16]),r(he,[2,17]),r(he,[2,18]),{11:127,12:tr,39:[2,36]},r(Mt,[2,9],{16:85,17:86,15:130,18:[1,129],60:C,86:P,100:$,102:V,103:Y}),r(Mt,[2,10]),r(ot,[2,55],{11:131,12:tr}),r(Q,[2,7]),{9:[1,132]},r(it,[2,67]),{16:39,17:40,19:133,60:C,86:P,100:$,102:V,103:Y},{13:[1,135],16:39,17:40,19:134,60:C,86:P,100:$,102:V,103:Y},r(pe,[2,82],{66:136,68:W,69:H,70:re,71:Z,72:X}),r(pe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:l,43:23,48:f,54:b,56:v},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},r(ne,[2,48],{39:[1,142]}),{41:[1,143]},r(ne,[2,50]),{41:[2,61],45:144,51:Ae},{47:[1,145]},{16:39,17:40,19:146,60:C,86:P,100:$,102:V,103:Y},r(q,[2,91],{13:[1,147]}),r(q,[2,93],{13:[1,149],77:[1,148]}),r(q,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},r(q,[2,105],{61:mt}),r(Rt,[2,107],{85:154,22:ve,50:Ie,60:De,82:Be,86:Fe,87:ze,88:vt,89:lt,90:Ft}),r(pt,[2,109]),r(pt,[2,111]),r(pt,[2,112]),r(pt,[2,113]),r(pt,[2,114]),r(pt,[2,115]),r(pt,[2,116]),r(pt,[2,117]),r(pt,[2,118]),r(pt,[2,119]),r(q,[2,106]),r(ne,[2,71]),r(q,[2,73],{61:mt}),{60:[1,155]},r(he,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:C,86:P,100:$,102:V,103:Y},r(Mt,[2,12]),r(ot,[2,56]),{1:[2,4]},r(it,[2,69]),r(it,[2,68]),{16:39,17:40,19:158,60:C,86:P,100:$,102:V,103:Y},r(pe,[2,80]),r(ne,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:l,43:23,48:f,54:b,56:v},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:l,43:23,48:f,54:b,56:v},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:l,43:23,48:f,54:b,56:v},{45:163,51:Ae},r(ne,[2,49]),{41:[2,62]},r(ne,[2,52],{39:[1,164]}),r(q,[2,60]),r(q,[2,92]),r(q,[2,94]),r(q,[2,95],{77:[1,165]}),r(q,[2,98]),r(q,[2,99],{13:[1,166]}),r(q,[2,101],{13:[1,168],77:[1,167]}),{22:ve,50:Ie,60:De,82:Be,84:169,85:112,86:Fe,87:ze,88:vt,89:lt,90:Ft},r(pt,[2,110]),r(pr,[2,75]),{14:[1,170]},r(Mt,[2,11]),r(it,[2,70]),r(ne,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:Ae},r(q,[2,96]),r(q,[2,100]),r(q,[2,102]),r(q,[2,103],{77:[1,174]}),r(Rt,[2,108],{85:154,22:ve,50:Ie,60:De,82:Be,86:Fe,87:ze,88:vt,89:lt,90:Ft}),r(ot,[2,8]),r(ne,[2,51]),{41:[1,175]},r(ne,[2,54]),r(q,[2,104]),r(ne,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:i(function(Oe,K){if(K.recoverable)this.trace(Oe);else{var Te=new Error(Oe);throw Te.hash=K,Te}},"parseError"),parse:i(function(Oe){var K=this,Te=[0],ce=[],Re=[null],me=[],be=this.table,ke="",We=0,Ue=0,rt=0,nt=2,Ot=1,ft=me.slice.call(arguments,1),Qt=Object.create(this.lexer),$t={yy:{}};for(var qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qt)&&($t.yy[qt]=this.yy[qt]);Qt.setInput(Oe,$t.yy),$t.yy.lexer=Qt,$t.yy.parser=this,typeof Qt.yylloc>"u"&&(Qt.yylloc={});var Gt=Qt.yylloc;me.push(Gt);var jt=Qt.options&&Qt.options.ranges;typeof $t.yy.parseError=="function"?this.parseError=$t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zr(Rn){Te.length=Te.length-2*Rn,Re.length=Re.length-Rn,me.length=me.length-Rn}i(Zr,"popStack");function yt(){var Rn;return Rn=ce.pop()||Qt.lex()||Ot,typeof Rn!="number"&&(Rn instanceof Array&&(ce=Rn,Rn=ce.pop()),Rn=K.symbols_[Rn]||Rn),Rn}i(yt,"lex");for(var $n,Ut,An,Un,En,ai,Gn={},ui,Tn,Wi,Pa;;){if(An=Te[Te.length-1],this.defaultActions[An]?Un=this.defaultActions[An]:(($n===null||typeof $n>"u")&&($n=yt()),Un=be[An]&&be[An][$n]),typeof Un>"u"||!Un.length||!Un[0]){var qe="";Pa=[];for(ui in be[An])this.terminals_[ui]&&ui>nt&&Pa.push("'"+this.terminals_[ui]+"'");Qt.showPosition?qe="Parse error on line "+(We+1)+`:
|
|
`+Qt.showPosition()+`
|
|
Expecting `+Pa.join(", ")+", got '"+(this.terminals_[$n]||$n)+"'":qe="Parse error on line "+(We+1)+": Unexpected "+($n==Ot?"end of input":"'"+(this.terminals_[$n]||$n)+"'"),this.parseError(qe,{text:Qt.match,token:this.terminals_[$n]||$n,line:Qt.yylineno,loc:Gt,expected:Pa})}if(Un[0]instanceof Array&&Un.length>1)throw new Error("Parse Error: multiple actions possible at state: "+An+", token: "+$n);switch(Un[0]){case 1:Te.push($n),Re.push(Qt.yytext),me.push(Qt.yylloc),Te.push(Un[1]),$n=null,Ut?($n=Ut,Ut=null):(Ue=Qt.yyleng,ke=Qt.yytext,We=Qt.yylineno,Gt=Qt.yylloc,rt>0&&rt--);break;case 2:if(Tn=this.productions_[Un[1]][1],Gn.$=Re[Re.length-Tn],Gn._$={first_line:me[me.length-(Tn||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(Tn||1)].first_column,last_column:me[me.length-1].last_column},jt&&(Gn._$.range=[me[me.length-(Tn||1)].range[0],me[me.length-1].range[1]]),ai=this.performAction.apply(Gn,[ke,Ue,We,$t.yy,Un[1],Re,me].concat(ft)),typeof ai<"u")return ai;Tn&&(Te=Te.slice(0,-1*Tn*2),Re=Re.slice(0,-1*Tn),me=me.slice(0,-1*Tn)),Te.push(this.productions_[Un[1]][0]),Re.push(Gn.$),me.push(Gn._$),Wi=be[Te[Te.length-2]][Te[Te.length-1]],Te.push(Wi);break;case 3:return!0}}return!0},"parse")},ut=(function(){var Ye={EOF:1,parseError:i(function(K,Te){if(this.yy.parser)this.yy.parser.parseError(K,Te);else throw new Error(K)},"parseError"),setInput:i(function(Oe,K){return this.yy=K||this.yy||{},this._input=Oe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var Oe=this._input[0];this.yytext+=Oe,this.yyleng++,this.offset++,this.match+=Oe,this.matched+=Oe;var K=Oe.match(/(?:\r\n?|\n).*/g);return K?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Oe},"input"),unput:i(function(Oe){var K=Oe.length,Te=Oe.split(/(?:\r\n?|\n)/g);this._input=Oe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var ce=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Te.length-1&&(this.yylineno-=Te.length-1);var Re=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Te?(Te.length===ce.length?this.yylloc.first_column:0)+ce[ce.length-Te.length].length-Te[0].length:this.yylloc.first_column-K},this.options.ranges&&(this.yylloc.range=[Re[0],Re[0]+this.yyleng-K]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(Oe){this.unput(this.match.slice(Oe))},"less"),pastInput:i(function(){var Oe=this.matched.substr(0,this.matched.length-this.match.length);return(Oe.length>20?"...":"")+Oe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var Oe=this.match;return Oe.length<20&&(Oe+=this._input.substr(0,20-Oe.length)),(Oe.substr(0,20)+(Oe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var Oe=this.pastInput(),K=new Array(Oe.length+1).join("-");return Oe+this.upcomingInput()+`
|
|
`+K+"^"},"showPosition"),test_match:i(function(Oe,K){var Te,ce,Re;if(this.options.backtrack_lexer&&(Re={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Re.yylloc.range=this.yylloc.range.slice(0))),ce=Oe[0].match(/(?:\r\n?|\n).*/g),ce&&(this.yylineno+=ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ce?ce[ce.length-1].length-ce[ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Oe[0].length},this.yytext+=Oe[0],this.match+=Oe[0],this.matches=Oe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Oe[0].length),this.matched+=Oe[0],Te=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Te)return Te;if(this._backtrack){for(var me in Re)this[me]=Re[me];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Oe,K,Te,ce;this._more||(this.yytext="",this.match="");for(var Re=this._currentRules(),me=0;me<Re.length;me++)if(Te=this._input.match(this.rules[Re[me]]),Te&&(!K||Te[0].length>K[0].length)){if(K=Te,ce=me,this.options.backtrack_lexer){if(Oe=this.test_match(Te,Re[me]),Oe!==!1)return Oe;if(this._backtrack){K=!1;continue}else return!1}else if(!this.options.flex)break}return K?(Oe=this.test_match(K,Re[ce]),Oe!==!1?Oe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var K=this.next();return K||this.lex()},"lex"),begin:i(function(K){this.conditionStack.push(K)},"begin"),popState:i(function(){var K=this.conditionStack.length-1;return K>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(K){return K=this.conditionStack.length-1-Math.abs(K||0),K>=0?this.conditionStack[K]:"INITIAL"},"topState"),pushState:i(function(K){this.begin(K)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(K,Te,ce,Re){var me=Re;switch(ce){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return Ye})();gt.lexer=ut;function Yt(){this.yy={}}return i(Yt,"Parser"),Yt.prototype=gt,gt.Parser=Yt,new Yt})();Dut.parser=Dut;LGr=Dut});var DGr,Hae,IGr=ae(()=>{"use strict";ma();nl();DGr=["#","+","~","-",""],Hae=class{static{i(this,"ClassMember")}constructor(t,a){this.memberType=a,this.visibility="",this.classifier="",this.text="";let s=Ns(t,er());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+JE(this.id);this.memberType==="method"&&(t+=`(${JE(this.parameters.trim())})`,this.returnType&&(t+=" : "+JE(this.returnType))),t=t.trim();let a=this.parseClassifier();return{displayText:t,cssStyle:a}}parseMember(t){let a="";if(this.memberType==="method"){let h=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(h){let f=h[1]?h[1].trim():"";if(DGr.includes(f)&&(this.visibility=f),this.id=h[2],this.parameters=h[3]?h[3].trim():"",a=h[4]?h[4].trim():"",this.returnType=h[5]?h[5].trim():"",a===""){let d=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(d)&&(a=d,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let l=t.length,h=t.substring(0,1),f=t.substring(l-1);DGr.includes(h)&&(this.visibility=h),/[$*]/.exec(f)&&(a=f),this.id=t.substring(this.visibility===""?0:1,a===""?l:l-1)}this.classifier=a,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let s=`${this.visibility?"\\"+this.visibility:""}${JE(this.id)}${this.memberType==="method"?`(${JE(this.parameters)})${this.returnType?" : "+JE(this.returnType):""}`:""}`;this.text=s.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}});var OCe,MGr,wB,PCe,NGr=ae(()=>{"use strict";zo();Yn();ma();nl();Ma();Au();IA();IGr();QN();OCe="classId-",MGr=0,wB=i(r=>Xn.sanitizeText(r,er()),"sanitizeText"),PCe=class r{constructor(){this.relations=[];this.classes=new Map;this.styleClasses=new Map;this.notes=new Map;this.interfaces=[];this.namespaces=new Map;this.namespaceCounter=0;this.namespaceStack=[];this.diagramId="";this.functions=[];this.lineType={LINE:0,DOTTED_LINE:1};this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4};this.setupToolTips=i(t=>{let a=n_();mn(t).select("svg").selectAll("g").filter(function(){return mn(this).attr("title")!==null}).on("mouseover",h=>{let f=mn(h.currentTarget),d=f.attr("title");if(!d)return;let m=h.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(oy.sanitize(d)).style("left",`${window.scrollX+m.left+m.width/2}px`).style("top",`${window.scrollY+m.bottom+4}px`),f.classed("hover",!0)}).on("mouseout",h=>{a.transition().duration(500).style("opacity",0),mn(h.currentTarget).classed("hover",!1)})},"setupToolTips");this.direction="TB";this.setAccTitle=Os;this.getAccTitle=Vs;this.setAccDescription=$s;this.getAccDescription=Ws;this.setDiagramTitle=io;this.getDiagramTitle=Ks;this.getConfig=i(()=>er().class,"getConfig");this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{i(this,"ClassDB")}splitClassNameAndType(t){let a=Xn.sanitizeText(t,er()),s="",l=a;if(a.indexOf("~")>0){let h=a.split("~");l=wB(h[0]),s=wB(h[1])}return{className:l,type:s}}setClassLabel(t,a){let s=Xn.sanitizeText(t,er());a&&(a=wB(a));let{className:l}=this.splitClassNameAndType(s);this.classes.get(l).label=a,this.classes.get(l).text=`${a}${this.classes.get(l).type?`<${this.classes.get(l).type}>`:""}`}addClass(t){let a=Xn.sanitizeText(t,er()),{className:s,type:l}=this.splitClassNameAndType(a);if(this.classes.has(s))return;let h=Xn.sanitizeText(s,er());this.classes.set(h,{id:h,type:l,label:h,text:`${h}${l?`<${l}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:OCe+h+"-"+MGr}),MGr++}addInterface(t,a){let s={id:`interface${this.interfaces.length}`,label:t,classId:a};this.interfaces.push(s)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){let a=Xn.sanitizeText(t,er());if(this.classes.has(a)){let s=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${s}`:s}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",Ds()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){let a=typeof t=="number"?`note${t}`:t;return this.notes.get(a)}getNotes(){return this.notes}addRelation(t){Pe.debug("Adding relation: "+JSON.stringify(t));let a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1===this.relationType.LOLLIPOP&&!a.includes(t.relation.type2)?(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1=`interface${this.interfaces.length-1}`):t.relation.type2===this.relationType.LOLLIPOP&&!a.includes(t.relation.type1)?(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2=`interface${this.interfaces.length-1}`):(this.addClass(t.id1),this.addClass(t.id2)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=Xn.sanitizeText(t.relationTitle1.trim(),er()),t.relationTitle2=Xn.sanitizeText(t.relationTitle2.trim(),er()),this.relations.push(t)}addAnnotation(t,a){let s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(a)}addMember(t,a){this.addClass(t);let s=this.splitClassNameAndType(t).className,l=this.classes.get(s);if(typeof a=="string"){let h=a.trim();h.startsWith("<<")&&h.endsWith(">>")?l.annotations.push(wB(h.substring(2,h.length-2))):h.indexOf(")")>0?l.methods.push(new Hae(h,"method")):h&&l.members.push(new Hae(h,"attribute"))}}addMembers(t,a){Array.isArray(a)&&(a.reverse(),a.forEach(s=>this.addMember(t,s)))}addNote(t,a){let s=this.notes.size,l={id:`note${s}`,class:a,text:t,index:s};return this.notes.set(l.id,l),l.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),wB(t.trim())}setCssClass(t,a){t.split(",").forEach(s=>{let l=s;/\d/.exec(s[0])&&(l=OCe+l),l=this.splitClassNameAndType(l).className;let h=this.classes.get(l);h&&(h.cssClasses+=" "+a)})}defineClass(t,a){for(let s of t){let l=this.styleClasses.get(s);l===void 0&&(l={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,l)),a&&a.forEach(h=>{if(/color/.exec(h)){let f=h.replace("fill","bgFill");l.textStyles.push(f)}l.styles.push(h)}),this.classes.forEach(h=>{h.cssClasses.includes(s)&&h.styles.push(...a.flatMap(f=>f.split(",")))})}}setTooltip(t,a){t.split(",").forEach(s=>{if(a!==void 0){let l=this.splitClassNameAndType(s).className,h=this.classes.get(l);h&&(h.tooltip=wB(a))}})}getTooltip(t,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,a,s){let l=er();t.split(",").forEach(h=>{let f=h;/\d/.exec(h[0])&&(f=OCe+f),f=this.splitClassNameAndType(f).className;let d=this.classes.get(f);d&&(d.link=Va.formatUrl(a,l),l.securityLevel==="sandbox"?d.linkTarget="_top":typeof s=="string"?d.linkTarget=wB(s):d.linkTarget="_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,a,s){t.split(",").forEach(l=>{this.setClickFunc(l,a,s);let h=this.splitClassNameAndType(l).className,f=this.classes.get(h);f&&(f.haveCallback=!0)}),this.setCssClass(t,"clickable")}setClickFunc(t,a,s){let l=Xn.sanitizeText(t,er());if(er().securityLevel!=="loose"||a===void 0)return;let f=this.splitClassNameAndType(l).className;if(this.classes.has(f)){let d=[];if(typeof s=="string"){d=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m<d.length;m++){let b=d[m].trim();b.startsWith('"')&&b.endsWith('"')&&(b=b.substr(1,b.length-2)),d[m]=b}}d.length===0&&d.push(f),this.functions.push(()=>{let m=this.lookUpDomId(f),b=document.querySelector(`[id="${m}"]`);b!==null&&b.addEventListener("click",()=>{Va.runFunc(a,...d)},!1)})}}bindFunctions(t){this.functions.forEach(a=>{a(t)})}escapeHtml(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(t){this.direction=t}static resolveQualifiedId(t,a){let s=a.at(-1);return s?`${s}.${t}`:t}static getAncestorIds(t){let a=t.split("."),s=new Array(a.length);s[0]=a[0];for(let l=1;l<a.length;l++)s[l]=`${s[l-1]}.${a[l]}`;return s}createNamespaceNode(t,a,s,l=!1){return{id:t,label:a,classes:new Map,notes:new Map,children:new Map,domId:OCe+t+"-"+this.namespaceCounter++,parent:s,explicit:l}}linkParentChild(t,a){let s=this.namespaces.get(t),l=this.namespaces.get(a);!s||!l||(s.children.has(a)||s.children.set(a,l),l.parent??=t)}addNamespace(t,a){let s=r.resolveQualifiedId(t,this.namespaceStack);if(this.namespaceStack.push(s),this.namespaces.has(s)){let f=this.namespaces.get(s);return f.explicit=!0,a&&(f.label=a),s}let l=s.split("."),h=r.getAncestorIds(s);for(let f=0;f<h.length;f++){let d=h[f],m=f>0?h[f-1]:void 0,b=f===h.length-1,v=b&&a?a:l[f];this.namespaces.has(d)?b&&(this.namespaces.get(d).explicit=!0):this.namespaces.set(d,this.createNamespaceNode(d,v,m,b)),m&&this.linkParentChild(m,d)}return s}popNamespace(){this.namespaceStack.pop()}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,a,s){if(this.namespaces.has(t)){for(let l of a){let{className:h}=this.splitClassNameAndType(l),f=this.getClass(h);f.parent=t,this.namespaces.get(t).classes.set(h,f)}for(let l of s){let h=this.getNote(l);h.parent=t,this.namespaces.get(t).notes.set(l,h)}}}setCssStyle(t,a){let s=this.classes.get(t);if(!(!a||!s))for(let l of a)l.includes(",")?s.styles.push(...l.split(",")):s.styles.push(l)}getArrowMarker(t){let a;switch(t){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}resolveExplicitAncestor(t){let a=t;for(;a;){let s=this.namespaces.get(a);if(!s)return;if(s.explicit)return a;a=s.parent}}getData(){let t=[],a=[],s=er(),l=s.class?.hierarchicalNamespaces??!0;for(let d of this.namespaces.values()){if(!l&&!d.explicit)continue;let m={id:d.id,label:l?d.label:d.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:[],look:s.look,parentId:l?d.parent:void 0};t.push(m)}let h=0;for(let d of this.classes.values()){let m=l?d.parent:this.resolveExplicitAncestor(d.parent),b={...d,type:void 0,isGroup:!1,parentId:m,look:s.look,colorIndex:h++};t.push(b)}for(let d of this.notes.values()){let m=l?d.parent:this.resolveExplicitAncestor(d.parent),b={id:d.id,label:d.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look,parentId:m,labelType:"markdown"};t.push(b);let v=this.classes.get(d.class)?.id;if(v){let T={id:`edgeNote${d.index}`,start:d.id,end:v,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};a.push(T)}}for(let d of this.interfaces){let m={id:d.id,label:d.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(m)}let f=0;for(let d of this.relations){f++;let m={id:s2(d.id1,d.id2,{prefix:"id",counter:f}),start:d.id1,end:d.id2,type:"normal",label:d.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(d.relation.type1),arrowTypeEnd:this.getArrowMarker(d.relation.type2),startLabelRight:d.relationTitle1==="none"?"":d.relationTitle1,endLabelLeft:d.relationTitle2==="none"?"":d.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:d.style||"",pattern:d.relation.lineType==1?"dashed":"solid",look:s.look,labelType:"markdown"};a.push(m)}return{nodes:t,edges:a,other:{},config:s,direction:this.getDirection()}}}});var adi,sdi,OGr,PGr=ae(()=>{"use strict";AP();A0();adi=i(r=>{let{theme:t,bkgColorArray:a,borderColorArray:s}=r;if(!S0(t,s))return"";let l=Pg(r.look),h=E0(a),f="";for(let d=0;d<VT(r.THEME_COLOR_LIMIT,s);d++){let m=s[d%s.length];f+=`
|
|
|
|
[data-look="${l}"][data-color-id="color-${d}"].node .outer-path path {
|
|
stroke: ${m};
|
|
${h?`fill: ${a[d%a.length]};`:""}
|
|
}
|
|
|
|
[data-look="${l}"][data-color-id="color-${d}"].node .divider path {
|
|
stroke: ${m};
|
|
}
|
|
`}return f},"genColor"),sdi=i(r=>`${adi(r)}
|
|
g.classGroup text {
|
|
fill: ${r.nodeBorder||r.classText};
|
|
stroke: none;
|
|
font-family: ${r.fontFamily};
|
|
font-size: 10px;
|
|
|
|
.title {
|
|
font-weight: bolder;
|
|
}
|
|
|
|
}
|
|
|
|
.cluster-label text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
.cluster-label span {
|
|
color: ${r.titleColor};
|
|
}
|
|
.cluster-label span p {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: ${r.clusterBkg};
|
|
stroke: ${r.clusterBorder};
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
.cluster span {
|
|
color: ${r.titleColor};
|
|
}
|
|
|
|
.nodeLabel, .edgeLabel {
|
|
color: ${r.classText};
|
|
}
|
|
|
|
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
|
|
color: ${r.noteTextColor};
|
|
}
|
|
.edgeLabel .label rect {
|
|
fill: ${r.mainBkg};
|
|
}
|
|
.label text {
|
|
fill: ${r.classText};
|
|
}
|
|
|
|
.labelBkg {
|
|
background: ${r.mainBkg};
|
|
}
|
|
.edgeLabel .label span {
|
|
background: ${r.mainBkg};
|
|
}
|
|
|
|
.classTitle {
|
|
font-weight: bolder;
|
|
}
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: ${r.strokeWidth};
|
|
}
|
|
|
|
|
|
.divider {
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: 1;
|
|
}
|
|
|
|
g.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
g.classGroup rect {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
}
|
|
|
|
g.classGroup line {
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.classLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: ${r.mainBkg};
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.classLabel .label {
|
|
fill: ${r.nodeBorder};
|
|
font-size: 10px;
|
|
}
|
|
|
|
.relation {
|
|
stroke: ${r.lineColor};
|
|
stroke-width: ${r.strokeWidth};
|
|
fill: none;
|
|
}
|
|
|
|
.dashed-line{
|
|
stroke-dasharray: 3;
|
|
}
|
|
|
|
.dotted-line{
|
|
stroke-dasharray: 1 2;
|
|
}
|
|
|
|
[id$="-compositionStart"], .composition {
|
|
fill: ${r.lineColor} !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-compositionEnd"], .composition {
|
|
fill: ${r.lineColor} !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-dependencyStart"], .dependency {
|
|
fill: ${r.lineColor} !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-dependencyEnd"], .dependency {
|
|
fill: ${r.lineColor} !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-extensionStart"], .extension {
|
|
fill: transparent !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-extensionEnd"], .extension {
|
|
fill: transparent !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-aggregationStart"], .aggregation {
|
|
fill: transparent !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-aggregationEnd"], .aggregation {
|
|
fill: transparent !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-lollipopStart"], .lollipop {
|
|
fill: ${r.mainBkg} !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
[id$="-lollipopEnd"], .lollipop {
|
|
fill: ${r.mainBkg} !important;
|
|
stroke: ${r.lineColor} !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.edgeTerminals {
|
|
font-size: 11px;
|
|
line-height: initial;
|
|
}
|
|
|
|
.classTitleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: ${r.textColor};
|
|
}
|
|
|
|
.edgeLabel[data-look="neo"] {
|
|
background-color: ${r.edgeLabelBackground};
|
|
p {
|
|
background-color: ${r.edgeLabelBackground};
|
|
}
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: ${r.edgeLabelBackground};
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
text-align: center;
|
|
}
|
|
${ak()}
|
|
`,"getStyles"),OGr=sdi});var odi,ldi,cdi,BGr,FGr=ae(()=>{"use strict";ma();Yn();FA();PS();BS();Ma();odi=i((r,t="TB")=>{if(!r.doc)return t;let a=t;for(let s of r.doc)s.stmt==="dir"&&(a=s.value);return a},"getDir"),ldi=i(function(r,t){return t.db.getClasses()},"getClasses"),cdi=i(async function(r,t,a,s){Pe.info("REF0:"),Pe.info("Drawing class diagram (v3)",t);let{securityLevel:l,state:h,layout:f}=er();s.db.setDiagramId(t);let d=s.db.getData(),m=dy(t,l);d.type=s.type,d.layoutAlgorithm=Ty(f),d.nodeSpacing=h?.nodeSpacing||50,d.rankSpacing=h?.rankSpacing||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=t,await xy(d,m);let b=8;Va.insertTitle(m,"classDiagramTitleText",h?.titleTopMargin??25,s.db.getDiagramTitle()),Sm(m,b,"classDiagram",h?.useMaxWidth??!0)},"draw"),BGr={getClasses:ldi,draw:cdi,getDir:odi}});var $Gr={};is($Gr,{diagram:()=>udi});var udi,GGr=ae(()=>{"use strict";_Gr();NGr();PGr();FGr();udi={parser:LGr,get db(){return new PCe},renderer:BGr,styles:OGr,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")}});var Iut,UGr,VGr=ae(()=>{"use strict";Iut=(function(){var r=i(function(ne,se,he,le){for(he=he||{},le=ne.length;le--;he[ne[le]]=se);return he},"o"),t=[1,2],a=[1,3],s=[1,4],l=[2,4],h=[1,9],f=[1,11],d=[1,16],m=[1,17],b=[1,18],v=[1,19],T=[1,33],C=[1,20],E=[1,21],S=[1,22],R=[1,23],L=[1,24],_=[1,26],I=[1,27],N=[1,28],B=[1,29],O=[1,30],P=[1,31],$=[1,32],V=[1,35],Y=[1,36],Q=[1,37],q=[1,38],W=[1,34],H=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],re=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Z=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],X={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:i(function(se,he,le,pe,ge,we,Ae){var ve=we.length-1;switch(ge){case 3:return pe.setRootDoc(we[ve]),we[ve];break;case 4:this.$=[];break;case 5:we[ve]!="nl"&&(we[ve-1].push(we[ve]),this.$=we[ve-1]);break;case 6:case 7:this.$=we[ve];break;case 8:this.$="nl";break;case 12:this.$=we[ve];break;case 13:let Fe=we[ve-1];Fe.description=pe.trimColon(we[ve]),this.$=Fe;break;case 14:this.$={stmt:"relation",state1:we[ve-2],state2:we[ve]};break;case 15:let ze=pe.trimColon(we[ve]);this.$={stmt:"relation",state1:we[ve-3],state2:we[ve-1],description:ze};break;case 19:this.$={stmt:"state",id:we[ve-3],type:"default",description:"",doc:we[ve-1]};break;case 20:var Ie=we[ve],De=we[ve-2].trim();if(we[ve].match(":")){var Be=we[ve].split(":");Ie=Be[0],De=[De,Be[1]]}this.$={stmt:"state",id:Ie,type:"default",description:De};break;case 21:this.$={stmt:"state",id:we[ve-3],type:"default",description:we[ve-5],doc:we[ve-1]};break;case 22:this.$={stmt:"state",id:we[ve],type:"fork"};break;case 23:this.$={stmt:"state",id:we[ve],type:"join"};break;case 24:this.$={stmt:"state",id:we[ve],type:"choice"};break;case 25:this.$={stmt:"state",id:pe.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:we[ve-1].trim(),note:{position:we[ve-2].trim(),text:we[ve].trim()}};break;case 29:this.$=we[ve].trim(),pe.setAccTitle(this.$);break;case 30:case 31:this.$=we[ve].trim(),pe.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:we[ve-3],url:we[ve-2],tooltip:we[ve-1]};break;case 33:this.$={stmt:"click",id:we[ve-3],url:we[ve-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:we[ve-1].trim(),classes:we[ve].trim()};break;case 36:this.$={stmt:"style",id:we[ve-1].trim(),styleClass:we[ve].trim()};break;case 37:this.$={stmt:"applyClass",id:we[ve-1].trim(),styleClass:we[ve].trim()};break;case 38:pe.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:pe.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:pe.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:pe.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:we[ve].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:we[ve-2].trim(),classes:[we[ve].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:we[ve-2].trim(),classes:[we[ve].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:a,6:s},{1:[3]},{3:5,4:t,5:a,6:s},{3:6,4:t,5:a,6:s},r([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],l,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:m,19:b,22:v,24:T,25:C,26:E,27:S,28:R,29:L,32:25,33:_,35:I,37:N,38:B,41:O,45:P,48:$,51:V,52:Y,53:Q,54:q,57:W},r(H,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:d,17:m,19:b,22:v,24:T,25:C,26:E,27:S,28:R,29:L,32:25,33:_,35:I,37:N,38:B,41:O,45:P,48:$,51:V,52:Y,53:Q,54:q,57:W},r(H,[2,7]),r(H,[2,8]),r(H,[2,9]),r(H,[2,10]),r(H,[2,11]),r(H,[2,12],{14:[1,40],15:[1,41]}),r(H,[2,16]),{18:[1,42]},r(H,[2,18],{20:[1,43]}),{23:[1,44]},r(H,[2,22]),r(H,[2,23]),r(H,[2,24]),r(H,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},r(H,[2,28]),{34:[1,49]},{36:[1,50]},r(H,[2,31]),{13:51,24:T,57:W},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},r(re,[2,44],{58:[1,56]}),r(re,[2,45],{58:[1,57]}),r(H,[2,38]),r(H,[2,39]),r(H,[2,40]),r(H,[2,41]),r(H,[2,6]),r(H,[2,13]),{13:58,24:T,57:W},r(H,[2,17]),r(Z,l,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},r(H,[2,29]),r(H,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},r(H,[2,14],{14:[1,71]}),{4:h,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:m,19:b,21:[1,72],22:v,24:T,25:C,26:E,27:S,28:R,29:L,32:25,33:_,35:I,37:N,38:B,41:O,45:P,48:$,51:V,52:Y,53:Q,54:q,57:W},r(H,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},r(H,[2,34]),r(H,[2,35]),r(H,[2,36]),r(H,[2,37]),r(re,[2,46]),r(re,[2,47]),r(H,[2,15]),r(H,[2,19]),r(Z,l,{7:78}),r(H,[2,26]),r(H,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:m,19:b,21:[1,81],22:v,24:T,25:C,26:E,27:S,28:R,29:L,32:25,33:_,35:I,37:N,38:B,41:O,45:P,48:$,51:V,52:Y,53:Q,54:q,57:W},r(H,[2,32]),r(H,[2,33]),r(H,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:i(function(se,he){if(he.recoverable)this.trace(se);else{var le=new Error(se);throw le.hash=he,le}},"parseError"),parse:i(function(se){var he=this,le=[0],pe=[],ge=[null],we=[],Ae=this.table,ve="",Ie=0,De=0,Be=0,Fe=2,ze=1,vt=we.slice.call(arguments,1),lt=Object.create(this.lexer),Ft={yy:{}};for(var pr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pr)&&(Ft.yy[pr]=this.yy[pr]);lt.setInput(se,Ft.yy),Ft.yy.lexer=lt,Ft.yy.parser=this,typeof lt.yylloc>"u"&&(lt.yylloc={});var tr=lt.yylloc;we.push(tr);var Mt=lt.options&<.options.ranges;typeof Ft.yy.parseError=="function"?this.parseError=Ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ot(me){le.length=le.length-2*me,ge.length=ge.length-me,we.length=we.length-me}i(ot,"popStack");function it(){var me;return me=pe.pop()||lt.lex()||ze,typeof me!="number"&&(me instanceof Array&&(pe=me,me=pe.pop()),me=he.symbols_[me]||me),me}i(it,"lex");for(var mt,Rt,pt,gt,ut,Yt,Ye={},Oe,K,Te,ce;;){if(pt=le[le.length-1],this.defaultActions[pt]?gt=this.defaultActions[pt]:((mt===null||typeof mt>"u")&&(mt=it()),gt=Ae[pt]&&Ae[pt][mt]),typeof gt>"u"||!gt.length||!gt[0]){var Re="";ce=[];for(Oe in Ae[pt])this.terminals_[Oe]&&Oe>Fe&&ce.push("'"+this.terminals_[Oe]+"'");lt.showPosition?Re="Parse error on line "+(Ie+1)+`:
|
|
`+lt.showPosition()+`
|
|
Expecting `+ce.join(", ")+", got '"+(this.terminals_[mt]||mt)+"'":Re="Parse error on line "+(Ie+1)+": Unexpected "+(mt==ze?"end of input":"'"+(this.terminals_[mt]||mt)+"'"),this.parseError(Re,{text:lt.match,token:this.terminals_[mt]||mt,line:lt.yylineno,loc:tr,expected:ce})}if(gt[0]instanceof Array&>.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+mt);switch(gt[0]){case 1:le.push(mt),ge.push(lt.yytext),we.push(lt.yylloc),le.push(gt[1]),mt=null,Rt?(mt=Rt,Rt=null):(De=lt.yyleng,ve=lt.yytext,Ie=lt.yylineno,tr=lt.yylloc,Be>0&&Be--);break;case 2:if(K=this.productions_[gt[1]][1],Ye.$=ge[ge.length-K],Ye._$={first_line:we[we.length-(K||1)].first_line,last_line:we[we.length-1].last_line,first_column:we[we.length-(K||1)].first_column,last_column:we[we.length-1].last_column},Mt&&(Ye._$.range=[we[we.length-(K||1)].range[0],we[we.length-1].range[1]]),Yt=this.performAction.apply(Ye,[ve,De,Ie,Ft.yy,gt[1],ge,we].concat(vt)),typeof Yt<"u")return Yt;K&&(le=le.slice(0,-1*K*2),ge=ge.slice(0,-1*K),we=we.slice(0,-1*K)),le.push(this.productions_[gt[1]][0]),ge.push(Ye.$),we.push(Ye._$),Te=Ae[le[le.length-2]][le[le.length-1]],le.push(Te);break;case 3:return!0}}return!0},"parse")},te=(function(){var ne={EOF:1,parseError:i(function(he,le){if(this.yy.parser)this.yy.parser.parseError(he,le);else throw new Error(he)},"parseError"),setInput:i(function(se,he){return this.yy=he||this.yy||{},this._input=se,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var se=this._input[0];this.yytext+=se,this.yyleng++,this.offset++,this.match+=se,this.matched+=se;var he=se.match(/(?:\r\n?|\n).*/g);return he?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),se},"input"),unput:i(function(se){var he=se.length,le=se.split(/(?:\r\n?|\n)/g);this._input=se+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var pe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),le.length-1&&(this.yylineno-=le.length-1);var ge=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:le?(le.length===pe.length?this.yylloc.first_column:0)+pe[pe.length-le.length].length-le[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[ge[0],ge[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(se){this.unput(this.match.slice(se))},"less"),pastInput:i(function(){var se=this.matched.substr(0,this.matched.length-this.match.length);return(se.length>20?"...":"")+se.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var se=this.match;return se.length<20&&(se+=this._input.substr(0,20-se.length)),(se.substr(0,20)+(se.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var se=this.pastInput(),he=new Array(se.length+1).join("-");return se+this.upcomingInput()+`
|
|
`+he+"^"},"showPosition"),test_match:i(function(se,he){var le,pe,ge;if(this.options.backtrack_lexer&&(ge={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ge.yylloc.range=this.yylloc.range.slice(0))),pe=se[0].match(/(?:\r\n?|\n).*/g),pe&&(this.yylineno+=pe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:pe?pe[pe.length-1].length-pe[pe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+se[0].length},this.yytext+=se[0],this.match+=se[0],this.matches=se,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(se[0].length),this.matched+=se[0],le=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),le)return le;if(this._backtrack){for(var we in ge)this[we]=ge[we];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var se,he,le,pe;this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),we=0;we<ge.length;we++)if(le=this._input.match(this.rules[ge[we]]),le&&(!he||le[0].length>he[0].length)){if(he=le,pe=we,this.options.backtrack_lexer){if(se=this.test_match(le,ge[we]),se!==!1)return se;if(this._backtrack){he=!1;continue}else return!1}else if(!this.options.flex)break}return he?(se=this.test_match(he,ge[pe]),se!==!1?se:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var he=this.next();return he||this.lex()},"lex"),begin:i(function(he){this.conditionStack.push(he)},"begin"),popState:i(function(){var he=this.conditionStack.length-1;return he>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(he){return he=this.conditionStack.length-1-Math.abs(he||0),he>=0?this.conditionStack[he]:"INITIAL"},"topState"),pushState:i(function(he){this.begin(he)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(he,le,pe,ge){function we(){let ve=le.yytext.indexOf("%%");if(ve===0)return!1;if(ve>0){let Ie=le.yytext.slice(0,ve),De=le.yytext.slice(ve);De&&he.lexer.unput(De),le.yytext=Ie}return!0}i(we,"processId");var Ae=ge;switch(pe){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),le.yytext=le.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),le.yytext=le.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),le.yytext=le.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),le.yytext=le.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),le.yytext=le.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),le.yytext=le.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!we())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw new Error('Error: State name must be a single word. Found: "'+le.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!we())return;return this.popState(),"ID";break;case 66:if(!we())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),le.yytext=le.yytext.substr(2).trim(),31;break;case 68:return this.popState(),le.yytext=le.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return we()?24:void 0;case 74:return le.yytext=le.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return ne})();X.lexer=te;function U(){this.yy={}}return i(U,"Parser"),U.prototype=X,X.Parser=U,new U})();Iut.parser=Iut;UGr=Iut});var ND,xB,qae,WGr,HGr,qGr,TB,BCe,Mut,Nut,Out,Put,FCe,$Ce,YGr,XGr,GCe,But,KGr,JGr,AW,pdi,QGr,Fut,gdi,mdi,ZGr,ejr,ydi,tjr,bdi,rjr,$ut,Gut,njr,jCe,ijr,jut,zCe=ae(()=>{"use strict";ND="state",xB="root",qae="relation",WGr="classDef",HGr="style",qGr="applyClass",TB="default",BCe="divider",Mut="fill:none",Nut="fill: #333",Out="markdown",Put="normal",FCe="rect",$Ce="rectWithTitle",YGr="stateStart",XGr="stateEnd",GCe="divider",But="roundedWithTitle",KGr="note",JGr="noteGroup",AW="statediagram",pdi="state",QGr=`${AW}-${pdi}`,Fut="transition",gdi="note",mdi="note-edge",ZGr=`${Fut} ${mdi}`,ejr=`${AW}-${gdi}`,ydi="cluster",tjr=`${AW}-${ydi}`,bdi="cluster-alt",rjr=`${AW}-${bdi}`,$ut="parent",Gut="note",njr="state",jCe="----",ijr=`${jCe}${Gut}`,jut=`${jCe}${$ut}`});function zut(r="",t=0,a="",s=jCe){let l=a!==null&&a.length>0?`${s}${a}`:"";return`${njr}-${r}${l}-${t}`}function UCe(r,t,a){if(!t.id||t.id==="</join></fork>"||t.id==="</choice>")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(l=>{let h=a.get(l);h&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...h.styles])}));let s=r.find(l=>l.id===t.id);s?Object.assign(s,t):r.push(t)}function xdi(r){return r?.classes?.join(" ")??""}function Tdi(r){return r?.styles??[]}var VCe,OD,ojr,Yae,vdi,wdi,ajr,RW,ljr,cjr=ae(()=>{"use strict";ma();Yn();nl();zCe();VCe=new Map,OD=0,ojr=0,Yae=new Map,vdi=i((r,t,a,s)=>{if(r===GCe&&a?.id!==void 0&&Yae.has(a.id)){let f=Yae.get(a.id);return Yae.set(t,f),f}let l=ojr++,h=s?void 0:l;return Yae.set(t,h),h},"colorSlotFor");i(zut,"stateDomId");wdi=i((r,t,a,s,l,h,f,d)=>{Pe.trace("items",t),t.forEach(m=>{switch(m.stmt){case ND:RW(r,m,a,s,l,h,f,d);break;case TB:RW(r,m,a,s,l,h,f,d);break;case qae:{RW(r,m.state1,a,s,l,h,f,d),RW(r,m.state2,a,s,l,h,f,d);let b=f==="neo",v={id:"edge"+OD,start:m.state1.id,end:m.state2.id,arrowhead:"normal",arrowTypeEnd:b?"arrow_barb_neo":"arrow_barb",style:Mut,labelStyle:"",label:Xn.sanitizeText(m.description??"",er()),arrowheadStyle:Nut,labelpos:"c",labelType:Out,thickness:Put,classes:Fut,look:f};l.push(v),OD++}break}})},"setupDoc"),ajr=i((r,t="TB")=>{let a=t;if(r.doc)for(let s of r.doc)s.stmt==="dir"&&(a=s.value);return a},"getDir");i(UCe,"insertOrUpdateNode");i(xdi,"getClassesFromDbInfo");i(Tdi,"getStylesFromDbInfo");RW=i((r,t,a,s,l,h,f,d)=>{let m=t.id,b=a.get(m),v=xdi(b),T=Tdi(b),C=er(),E=v.trim()!==""||T.length>0;if(Pe.info("dataFetcher parsedItem",t,b,T),m!=="root"){let S=FCe;t.start===!0?S=YGr:t.start===!1&&(S=XGr),t.type!==TB&&(S=t.type),VCe.get(m)||VCe.set(m,{id:m,shape:S,description:Xn.sanitizeText(m,C),cssClasses:`${v} ${QGr}`,cssStyles:T});let R=VCe.get(m);t.description&&(Array.isArray(R.description)?(R.shape=$Ce,R.description.push(t.description)):R.description?.length&&R.description.length>0?(R.shape=$Ce,R.description===m?R.description=[t.description]:R.description=[R.description,t.description]):(R.shape=FCe,R.description=t.description),R.description=Xn.sanitizeTextOrArray(R.description,C)),R.description?.length===1&&R.shape===$Ce&&(R.type==="group"?R.shape=But:R.shape=FCe),!R.type&&t.doc&&(Pe.info("Setting cluster for XCX",m,ajr(t)),R.type="group",R.isGroup=!0,R.dir=ajr(t),R.shape=t.type===BCe?GCe:But,R.colorIndex=vdi(R.shape,m,r,E),R.cssClasses=`${R.cssClasses} ${tjr} ${h?rjr:""}`);let L={labelStyle:"",shape:R.shape,label:R.description,cssClasses:R.cssClasses,cssCompiledStyles:[],cssStyles:R.cssStyles,id:m,dir:R.dir,domId:zut(m,OD),type:R.type,isGroup:R.type==="group",colorIndex:R.colorIndex,padding:8,rx:10,ry:10,look:f,labelType:"markdown"};if(L.shape===GCe&&(L.label=""),r&&r.id!=="root"&&(Pe.trace("Setting node ",m," to be child of its parent ",r.id),L.parentId=r.id),L.centerLabel=!0,t.note){let _={labelStyle:"",shape:KGr,label:t.note.text,labelType:"markdown",cssClasses:ejr,cssStyles:[],cssCompiledStyles:[],id:m+ijr+"-"+OD,domId:zut(m,OD,Gut),type:"node",isGroup:!1,padding:C.flowchart?.padding,look:f,position:t.note.position},I=m+jut,N={labelStyle:"",shape:JGr,label:t.note.text,cssClasses:R.cssClasses,cssStyles:[],id:m+jut,domId:zut(m,OD,$ut),type:"group",isGroup:!0,padding:16,look:f,position:t.note.position};OD++,N.id=I,_.parentId=I,UCe(s,N,d),UCe(s,_,d),UCe(s,L,d);let B=m,O=_.id;t.note.position==="left of"&&(B=_.id,O=m),l.push({id:B+"-"+O,start:B,end:O,arrowhead:"none",arrowTypeEnd:"",style:Mut,labelStyle:"",classes:ZGr,pattern:"dashed",arrowheadStyle:Nut,labelpos:"c",labelType:Out,thickness:Put,look:f})}else UCe(s,L,d)}t.doc&&(Pe.trace("Adding nodes children "),wdi(t,t.doc,a,s,l,!h,f,d))},"dataFetcher"),ljr=i(()=>{VCe.clear(),OD=0,ojr=0,Yae.clear()},"reset")});var Vut,kdi,Cdi,ujr,Wut=ae(()=>{"use strict";ma();Yn();FA();PS();BS();Ma();zCe();Vut=i((r,t="TB")=>{if(!r.doc)return t;let a=t;for(let s of r.doc)s.stmt==="dir"&&(a=s.value);return a},"getDir"),kdi=i(function(r,t){return t.db.getClasses()},"getClasses"),Cdi=i(async function(r,t,a,s){Pe.info("REF0:"),Pe.info("Drawing state diagram (v2)",t);let{securityLevel:l,state:h,layout:f}=er();s.db.extract(s.db.getRootDocV2());let d=s.db.getData(),m=dy(t,l);d.type=s.type,d.layoutAlgorithm=Ty(f),d.nodeSpacing=h?.nodeSpacing||50,d.rankSpacing=h?.rankSpacing||50,er().look==="neo"?d.markers=["barbNeo"]:d.markers=["barb"],d.diagramId=t,await xy(d,m);let v=8;try{(typeof s.db.getLinks=="function"?s.db.getLinks():new Map).forEach((C,E)=>{let S=typeof E=="string"?E:typeof E?.id=="string"?E.id:"",R=d.nodes.find(O=>O.id===S);if(!S){Pe.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(E));return}let L=m.node()?.querySelectorAll("g.node, g.rough-node"),_;if(L?.forEach(O=>{let P=O.textContent?.trim();(O.id===R?.domId||P===S)&&(_=O)}),!_){Pe.warn("\u26A0\uFE0F Could not find node matching text:",S);return}let I=_.parentNode;if(!I){Pe.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",S);return}let N=document.createElementNS("http://www.w3.org/2000/svg","a"),B=C.url.replace(/^"+|"+$/g,"");if(N.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",B),N.setAttribute("target","_blank"),C.tooltip){let O=C.tooltip.replace(/^"+|"+$/g,"");N.setAttribute("title",O),_.setAttribute("title",O)}I.replaceChild(N,_),N.appendChild(_),Pe.info("\u{1F517} Wrapped node in <a> tag for:",S,C.url)})}catch(T){Pe.error("\u274C Error injecting clickable links:",T)}Va.insertTitle(m,"statediagramTitleText",h?.titleTopMargin??25,s.db.getDiagramTitle()),Sm(m,v,AW,h?.useMaxWidth??!0)},"draw"),ujr={getClasses:kdi,draw:Cdi,getDir:Vut}});var zb,fjr,djr,WCe,HCe,pjr=ae(()=>{"use strict";zo();QN();ma();Yn();Ma();nl();Au();IA();cjr();Wut();zCe();zb={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},fjr=i(()=>new Map,"newClassesList"),djr=i(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),WCe=i(r=>JSON.parse(JSON.stringify(r)),"clone"),HCe=class{constructor(t){this.version=t;this.nodes=[];this.edges=[];this.rootDoc=[];this.classes=fjr();this.documents={root:djr()};this.currentDocument=this.documents.root;this.startEndCount=0;this.dividerCnt=0;this.links=new Map;this.funs=[];this.getAccTitle=Vs;this.setAccTitle=Os;this.getAccDescription=Ws;this.setAccDescription=$s;this.setDiagramTitle=io;this.getDiagramTitle=Ks;this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{i(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(let l of Array.isArray(t)?t:t.doc)switch(l.stmt){case ND:this.addState(l.id.trim(),l.type,l.doc,l.description,l.note);break;case qae:this.addRelation(l.state1,l.state2,l.description);break;case WGr:this.addStyleClass(l.id.trim(),l.classes);break;case HGr:this.handleStyleDef(l);break;case qGr:this.setCssClass(l.id.trim(),l.styleClass);break;case"click":this.addLink(l.id,l.url,l.tooltip);break}let a=this.getStates(),s=er();ljr(),RW(void 0,this.getRootDocV2(),a,this.nodes,this.edges,!0,s.look,this.classes);for(let l of this.nodes)if(Array.isArray(l.label)){if(l.description=l.label.slice(1),l.isGroup&&l.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${l.id}]`);l.label=l.label[0]}}handleStyleDef(t){let a=t.id.trim().split(","),s=t.styleClass.split(",");for(let l of a){let h=this.getState(l);if(!h){let f=l.trim();this.addState(f),h=this.getState(f)}h&&(h.styles=s.map(f=>f.replace(/;/g,"")?.trim()))}}setRootDoc(t){Pe.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,a,s){if(a.stmt===qae){this.docTranslator(t,a.state1,!0),this.docTranslator(t,a.state2,!1);return}if(a.stmt===ND&&(a.id===zb.START_NODE?(a.id=t.id+(s?"_start":"_end"),a.start=s):a.id=a.id.trim()),a.stmt!==xB&&a.stmt!==ND||!a.doc)return;let l=[],h=[];for(let f of a.doc)if(f.type===BCe){let d=WCe(f);d.doc=WCe(h),l.push(d),h=[]}else h.push(f);if(l.length>0&&h.length>0){let f={stmt:ND,id:FJe(),type:"divider",doc:WCe(h)};l.push(WCe(f)),a.doc=l}a.doc.forEach(f=>this.docTranslator(a,f,!0))}getRootDocV2(){return this.docTranslator({id:xB,stmt:xB},{id:xB,stmt:xB,doc:this.rootDoc},!0),{id:xB,doc:this.rootDoc}}addState(t,a=TB,s=void 0,l=void 0,h=void 0,f=void 0,d=void 0,m=void 0){let b=t?.trim();if(!this.currentDocument.states.has(b))Pe.info("Adding state ",b,l),this.currentDocument.states.set(b,{stmt:ND,id:b,descriptions:[],type:a,doc:s,note:h,classes:[],styles:[],textStyles:[]});else{let v=this.currentDocument.states.get(b);if(!v)throw new Error(`State not found: ${b}`);v.doc||(v.doc=s),v.type||(v.type=a)}if(l&&(Pe.info("Setting state description",b,l),(Array.isArray(l)?l:[l]).forEach(T=>this.addDescription(b,T.trim()))),h){let v=this.currentDocument.states.get(b);if(!v)throw new Error(`State not found: ${b}`);v.note=h,v.note.text=Xn.sanitizeText(v.note.text,er())}f&&(Pe.info("Setting state classes",b,f),(Array.isArray(f)?f:[f]).forEach(T=>this.setCssClass(b,T.trim()))),d&&(Pe.info("Setting state styles",b,d),(Array.isArray(d)?d:[d]).forEach(T=>this.setStyle(b,T.trim()))),m&&(Pe.info("Setting state styles",b,d),(Array.isArray(m)?m:[m]).forEach(T=>this.setTextStyle(b,T.trim())))}clear(t){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:djr()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=fjr(),t||(this.links=new Map,Ds())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){Pe.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,a,s){this.links.set(t,{url:a,tooltip:s}),Pe.warn("Adding link",t,a,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===zb.START_NODE?(this.startEndCount++,`${zb.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",a=TB){return t===zb.START_NODE?zb.START_TYPE:a}endIdIfNeeded(t=""){return t===zb.END_NODE?(this.startEndCount++,`${zb.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",a=TB){return t===zb.END_NODE?zb.END_TYPE:a}addRelationObjs(t,a,s=""){let l=this.startIdIfNeeded(t.id.trim()),h=this.startTypeIfNeeded(t.id.trim(),t.type),f=this.startIdIfNeeded(a.id.trim()),d=this.startTypeIfNeeded(a.id.trim(),a.type);this.addState(l,h,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(f,d,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles),this.currentDocument.relations.push({id1:l,id2:f,relationTitle:Xn.sanitizeText(s,er())})}addRelation(t,a,s){if(typeof t=="object"&&typeof a=="object")this.addRelationObjs(t,a,s);else if(typeof t=="string"&&typeof a=="string"){let l=this.startIdIfNeeded(t.trim()),h=this.startTypeIfNeeded(t),f=this.endIdIfNeeded(a.trim()),d=this.endTypeIfNeeded(a);this.addState(l,h),this.addState(f,d),this.currentDocument.relations.push({id1:l,id2:f,relationTitle:s?Xn.sanitizeText(s,er()):void 0})}}addDescription(t,a){let s=this.currentDocument.states.get(t),l=a.startsWith(":")?a.replace(":","").trim():a;s?.descriptions?.push(Xn.sanitizeText(l,er()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,a=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let s=this.classes.get(t);a&&s&&a.split(zb.STYLECLASS_SEP).forEach(l=>{let h=l.replace(/([^;]*);/,"$1").trim();if(RegExp(zb.COLOR_KEYWORD).exec(l)){let d=h.replace(zb.FILL_KEYWORD,zb.BG_FILL).replace(zb.COLOR_KEYWORD,zb.FILL_KEYWORD);s.textStyles.push(d)}s.styles.push(h)})}getClasses(){return this.classes}setupToolTips(t){let a=n_();mn(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover",h=>{let f=mn(h.currentTarget),d=f.attr("title");if(d===null)return;let m=h.currentTarget?.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.style("left",window.scrollX+m.left+(m.right-m.left)/2+"px").style("top",window.scrollY+m.bottom+"px"),a.html(oy.sanitize(d)),f.classed("hover",!0)}).on("mouseout",h=>{a.transition().duration(500).style("opacity",0),mn(h.currentTarget).classed("hover",!1)})}setCssClass(t,a){t.split(",").forEach(s=>{let l=this.getState(s);if(!l){let h=s.trim();this.addState(h),l=this.getState(h)}l?.classes?.push(a)})}setStyle(t,a){this.getState(t)?.styles?.push(a)}setTextStyle(t,a){this.getState(t)?.textStyles?.push(a)}bindFunctions(t){this.funs.forEach(a=>{a(t)})}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt==="dir")}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){let a=this.getDirectionStatement();a?a.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=er();for(let a of this.nodes)a.wrappingWidth??=t.state?.wrappingWidth,a.isGroup||(a.minWidth??=t.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:Vut(this.getRootDocV2())}}getConfig(){return er().state}}});var Sdi,Adi,gjr,mjr=ae(()=>{"use strict";A0();Sdi=i(r=>{let{theme:t,bkgColorArray:a,borderColorArray:s}=r;if(!S0(t,s))return"";let l=Pg(r.look),h=E0(a),f="";for(let d=0;d<lS(s);d++){let m=s[d],b=h?`fill: ${a[d%a.length]};`:"",v=`[data-look="${l}"][data-color-id="color-${d}"]`;f+=`
|
|
|
|
/* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
|
|
the body, so what stays visible of \`outer\` is the band behind the label. */
|
|
${v}.statediagram-cluster rect.outer {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
|
|
${v}.statediagram-cluster rect.inner {
|
|
stroke: ${m};
|
|
}
|
|
|
|
/* Concurrency regions. Siblings of one composite share a slot, so a divided composite
|
|
reads as one thing split into parts rather than as several composites. */
|
|
${v}.statediagram-cluster rect.divider {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
|
|
/* handDrawn draws the same container as roughjs shapes rather than plain rects, so it
|
|
needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,
|
|
\`inner\` and \`divider\` to match the classic branch, which is what lets these
|
|
discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and
|
|
tinted the whole composite, losing \`compositeBackground\` and diverging from what
|
|
classic and neo do.
|
|
|
|
roughjs emits two paths per shape and marks them: the filled shape carries
|
|
\`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is
|
|
what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed
|
|
region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which
|
|
would otherwise gain an edge it was drawn without. */
|
|
${v}.statediagram-cluster .outer path[stroke='none'] {
|
|
${b}
|
|
}
|
|
|
|
${v}.statediagram-cluster .outer path[fill='none'] {
|
|
stroke: ${m};
|
|
}
|
|
|
|
/* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,
|
|
where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a
|
|
hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like
|
|
the outline and no selector separates them. An \`.inner\` stroke rule therefore
|
|
repainted the hatching of every alt composite in the palette colour instead of
|
|
leaving it on \`altBackground\`. The container still reads as palette-coloured: the
|
|
\`outer\` shape spans the whole composite, so its outline already frames the body. */
|
|
|
|
/* Regions split the same way, which is why \`divider\` fills solid rather than taking
|
|
roughjs's default hachure -- see the note on that call. Hatched, both of its paths
|
|
carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and
|
|
the border rule repainted the hatching. */
|
|
${v}.statediagram-cluster .divider path[stroke='none'] {
|
|
${b}
|
|
}
|
|
|
|
${v}.statediagram-cluster .divider path[fill='none'] {
|
|
stroke: ${m};
|
|
}
|
|
`}return f},"genColor"),Adi=i(r=>`
|
|
${Sdi(r)}
|
|
defs [id$="-barbEnd"] {
|
|
fill: ${r.transitionColor};
|
|
stroke: ${r.transitionColor};
|
|
}
|
|
g.stateGroup text {
|
|
fill: ${r.nodeBorder};
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
g.stateGroup text {
|
|
fill: ${r.textColor};
|
|
stroke: none;
|
|
font-size: 10px;
|
|
|
|
}
|
|
g.stateGroup .state-title {
|
|
font-weight: bolder;
|
|
fill: ${r.stateLabelColor};
|
|
}
|
|
|
|
g.stateGroup rect {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
}
|
|
|
|
g.stateGroup line {
|
|
stroke: ${r.lineColor};
|
|
stroke-width: ${r.strokeWidth||1};
|
|
}
|
|
|
|
.transition {
|
|
stroke: ${r.transitionColor};
|
|
stroke-width: ${r.strokeWidth||1};
|
|
fill: none;
|
|
}
|
|
|
|
.stateGroup .composit {
|
|
fill: ${r.background};
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.stateGroup .alt-composit {
|
|
fill: #e0e0e0;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.state-note {
|
|
stroke: ${r.noteBorderColor};
|
|
fill: ${r.noteBkgColor};
|
|
|
|
text {
|
|
fill: ${r.noteTextColor};
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
.stateLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: ${r.mainBkg};
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.edgeLabel .label rect {
|
|
fill: ${r.labelBackgroundColor};
|
|
opacity: 0.5;
|
|
}
|
|
.edgeLabel {
|
|
background-color: ${r.edgeLabelBackground};
|
|
p {
|
|
background-color: ${r.edgeLabelBackground};
|
|
}
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: ${r.edgeLabelBackground};
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
text-align: center;
|
|
}
|
|
.edgeLabel .label text {
|
|
fill: ${r.transitionLabelColor||r.tertiaryTextColor};
|
|
}
|
|
.label div .edgeLabel {
|
|
color: ${r.transitionLabelColor||r.tertiaryTextColor};
|
|
}
|
|
|
|
.stateLabel text {
|
|
fill: ${r.stateLabelColor};
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.node circle.state-start {
|
|
fill: ${r.specialStateColor};
|
|
stroke: ${r.specialStateColor};
|
|
}
|
|
|
|
.node .fork-join {
|
|
fill: ${r.specialStateColor};
|
|
stroke: ${r.specialStateColor};
|
|
}
|
|
|
|
.node circle.state-end {
|
|
fill: ${r.innerEndBackground};
|
|
stroke: ${r.background};
|
|
stroke-width: 1.5
|
|
}
|
|
.end-state-inner {
|
|
fill: ${r.compositeBackground||r.background};
|
|
// stroke: ${r.background};
|
|
stroke-width: 1.5
|
|
}
|
|
|
|
.node rect {
|
|
fill: ${r.stateBkg||r.mainBkg};
|
|
stroke: ${r.stateBorder||r.nodeBorder};
|
|
stroke-width: ${r.strokeWidth||1}px;
|
|
}
|
|
.node polygon {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.stateBorder||r.nodeBorder};;
|
|
stroke-width: ${r.strokeWidth||1}px;
|
|
}
|
|
[id$="-barbEnd"] {
|
|
fill: ${r.lineColor};
|
|
}
|
|
|
|
.statediagram-cluster rect {
|
|
fill: ${r.compositeTitleBackground};
|
|
stroke: ${r.stateBorder||r.nodeBorder};
|
|
stroke-width: ${r.strokeWidth||1}px;
|
|
}
|
|
|
|
.cluster-label, .nodeLabel {
|
|
color: ${r.stateLabelColor};
|
|
// line-height: 1;
|
|
}
|
|
|
|
.statediagram-cluster rect.outer {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state .divider {
|
|
stroke: ${r.stateBorder||r.nodeBorder};
|
|
}
|
|
|
|
.statediagram-state .title-state {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster .inner {
|
|
fill: ${r.compositeBackground||r.background};
|
|
}
|
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
fill: ${r.altBackground?r.altBackground:"#efefef"};
|
|
}
|
|
|
|
.statediagram-cluster .inner {
|
|
rx:0;
|
|
ry:0;
|
|
}
|
|
|
|
.statediagram-state rect.basic {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state rect.divider {
|
|
stroke-dasharray: 10,10;
|
|
fill: ${r.altBackground?r.altBackground:"#efefef"};
|
|
}
|
|
|
|
.note-edge {
|
|
stroke-dasharray: 5;
|
|
}
|
|
|
|
.statediagram-note rect {
|
|
fill: ${r.noteBkgColor};
|
|
stroke: ${r.noteBorderColor};
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
.statediagram-note rect {
|
|
fill: ${r.noteBkgColor};
|
|
stroke: ${r.noteBorderColor};
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
|
|
.statediagram-note text {
|
|
fill: ${r.noteTextColor};
|
|
}
|
|
|
|
.statediagram-note .nodeLabel {
|
|
color: ${r.noteTextColor};
|
|
}
|
|
.statediagram .edgeLabel {
|
|
color: red; // ${r.noteTextColor};
|
|
}
|
|
|
|
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
fill: ${r.lineColor};
|
|
stroke: ${r.lineColor};
|
|
stroke-width: ${r.strokeWidth||1};
|
|
}
|
|
|
|
.statediagramTitleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: ${r.textColor};
|
|
}
|
|
|
|
[data-look="neo"].statediagram-cluster rect {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.useGradient?"url("+r.svgId+"-gradient)":r.stateBorder||r.nodeBorder};
|
|
stroke-width: ${r.strokeWidth??1};
|
|
}
|
|
[data-look="neo"].statediagram-cluster rect.outer {
|
|
rx: ${r.radius}px;
|
|
ry: ${r.radius}px;
|
|
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${r.svgId}-drop-shadow)`):"none"}
|
|
}
|
|
`,"getStyles"),gjr=Adi});var yjr={};is(yjr,{diagram:()=>Rdi});var Rdi,bjr=ae(()=>{"use strict";VGr();pjr();mjr();Wut();Rdi={parser:UGr,get db(){return new HCe(2)},renderer:ujr,styles:gjr,init:i(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")}});var Hut,xjr,Tjr=ae(()=>{"use strict";Hut=(function(){var r=i(function(T,C,E,S){for(E=E||{},S=T.length;S--;E[T[S]]=C);return E},"o"),t=[6,8,10,11,12,14,16,17,18],a=[1,9],s=[1,10],l=[1,11],h=[1,12],f=[1,13],d=[1,14],m={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i(function(C,E,S,R,L,_,I){var N=_.length-1;switch(L){case 1:return _[N-1];case 2:this.$=[];break;case 3:_[N-1].push(_[N]),this.$=_[N-1];break;case 4:case 5:this.$=_[N];break;case 6:case 7:this.$=[];break;case 8:R.setDiagramTitle(_[N].substr(6)),this.$=_[N].substr(6);break;case 9:this.$=_[N].trim(),R.setAccTitle(this.$);break;case 10:case 11:this.$=_[N].trim(),R.setAccDescription(this.$);break;case 12:R.addSection(_[N].substr(8)),this.$=_[N].substr(8);break;case 13:R.addTask(_[N-1],_[N]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},r(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:s,14:l,16:h,17:f,18:d},r(t,[2,7],{1:[2,1]}),r(t,[2,3]),{9:15,11:a,12:s,14:l,16:h,17:f,18:d},r(t,[2,5]),r(t,[2,6]),r(t,[2,8]),{13:[1,16]},{15:[1,17]},r(t,[2,11]),r(t,[2,12]),{19:[1,18]},r(t,[2,4]),r(t,[2,9]),r(t,[2,10]),r(t,[2,13])],defaultActions:{},parseError:i(function(C,E){if(E.recoverable)this.trace(C);else{var S=new Error(C);throw S.hash=E,S}},"parseError"),parse:i(function(C){var E=this,S=[0],R=[],L=[null],_=[],I=this.table,N="",B=0,O=0,P=0,$=2,V=1,Y=_.slice.call(arguments,1),Q=Object.create(this.lexer),q={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(q.yy[W]=this.yy[W]);Q.setInput(C,q.yy),q.yy.lexer=Q,q.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var H=Q.yylloc;_.push(H);var re=Q.options&&Q.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(De){S.length=S.length-2*De,L.length=L.length-De,_.length=_.length-De}i(Z,"popStack");function X(){var De;return De=R.pop()||Q.lex()||V,typeof De!="number"&&(De instanceof Array&&(R=De,De=R.pop()),De=E.symbols_[De]||De),De}i(X,"lex");for(var te,U,ne,se,he,le,pe={},ge,we,Ae,ve;;){if(ne=S[S.length-1],this.defaultActions[ne]?se=this.defaultActions[ne]:((te===null||typeof te>"u")&&(te=X()),se=I[ne]&&I[ne][te]),typeof se>"u"||!se.length||!se[0]){var Ie="";ve=[];for(ge in I[ne])this.terminals_[ge]&&ge>$&&ve.push("'"+this.terminals_[ge]+"'");Q.showPosition?Ie="Parse error on line "+(B+1)+`:
|
|
`+Q.showPosition()+`
|
|
Expecting `+ve.join(", ")+", got '"+(this.terminals_[te]||te)+"'":Ie="Parse error on line "+(B+1)+": Unexpected "+(te==V?"end of input":"'"+(this.terminals_[te]||te)+"'"),this.parseError(Ie,{text:Q.match,token:this.terminals_[te]||te,line:Q.yylineno,loc:H,expected:ve})}if(se[0]instanceof Array&&se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+te);switch(se[0]){case 1:S.push(te),L.push(Q.yytext),_.push(Q.yylloc),S.push(se[1]),te=null,U?(te=U,U=null):(O=Q.yyleng,N=Q.yytext,B=Q.yylineno,H=Q.yylloc,P>0&&P--);break;case 2:if(we=this.productions_[se[1]][1],pe.$=L[L.length-we],pe._$={first_line:_[_.length-(we||1)].first_line,last_line:_[_.length-1].last_line,first_column:_[_.length-(we||1)].first_column,last_column:_[_.length-1].last_column},re&&(pe._$.range=[_[_.length-(we||1)].range[0],_[_.length-1].range[1]]),le=this.performAction.apply(pe,[N,O,B,q.yy,se[1],L,_].concat(Y)),typeof le<"u")return le;we&&(S=S.slice(0,-1*we*2),L=L.slice(0,-1*we),_=_.slice(0,-1*we)),S.push(this.productions_[se[1]][0]),L.push(pe.$),_.push(pe._$),Ae=I[S[S.length-2]][S[S.length-1]],S.push(Ae);break;case 3:return!0}}return!0},"parse")},b=(function(){var T={EOF:1,parseError:i(function(E,S){if(this.yy.parser)this.yy.parser.parseError(E,S);else throw new Error(E)},"parseError"),setInput:i(function(C,E){return this.yy=E||this.yy||{},this._input=C,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var C=this._input[0];this.yytext+=C,this.yyleng++,this.offset++,this.match+=C,this.matched+=C;var E=C.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),C},"input"),unput:i(function(C){var E=C.length,S=C.split(/(?:\r\n?|\n)/g);this._input=C+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var R=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var L=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===R.length?this.yylloc.first_column:0)+R[R.length-S.length].length-S[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[L[0],L[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(C){this.unput(this.match.slice(C))},"less"),pastInput:i(function(){var C=this.matched.substr(0,this.matched.length-this.match.length);return(C.length>20?"...":"")+C.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var C=this.match;return C.length<20&&(C+=this._input.substr(0,20-C.length)),(C.substr(0,20)+(C.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var C=this.pastInput(),E=new Array(C.length+1).join("-");return C+this.upcomingInput()+`
|
|
`+E+"^"},"showPosition"),test_match:i(function(C,E){var S,R,L;if(this.options.backtrack_lexer&&(L={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(L.yylloc.range=this.yylloc.range.slice(0))),R=C[0].match(/(?:\r\n?|\n).*/g),R&&(this.yylineno+=R.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:R?R[R.length-1].length-R[R.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+C[0].length},this.yytext+=C[0],this.match+=C[0],this.matches=C,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(C[0].length),this.matched+=C[0],S=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var _ in L)this[_]=L[_];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var C,E,S,R;this._more||(this.yytext="",this.match="");for(var L=this._currentRules(),_=0;_<L.length;_++)if(S=this._input.match(this.rules[L[_]]),S&&(!E||S[0].length>E[0].length)){if(E=S,R=_,this.options.backtrack_lexer){if(C=this.test_match(S,L[_]),C!==!1)return C;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(C=this.test_match(E,L[R]),C!==!1?C:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var E=this.next();return E||this.lex()},"lex"),begin:i(function(E){this.conditionStack.push(E)},"begin"),popState:i(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:i(function(E){this.begin(E)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(E,S,R,L){var _=L;switch(R){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return T})();m.lexer=b;function v(){this.yy={}}return i(v,"Parser"),v.prototype=m,m.Parser=v,new v})();Hut.parser=Hut;xjr=Hut});var LW,qut,Xae,Kae,Idi,Mdi,Ndi,Odi,Pdi,Bdi,Fdi,kjr,$di,Yut,Cjr=ae(()=>{"use strict";ma();Au();LW="",qut=[],Xae=[],Kae=[],Idi=i(function(){qut.length=0,Xae.length=0,LW="",Kae.length=0,Ds()},"clear"),Mdi=i(function(r){LW=r,qut.push(r)},"addSection"),Ndi=i(function(){return qut},"getSections"),Odi=i(function(){let r=kjr(),t=100,a=0;for(;!r&&a<t;)r=kjr(),a++;return Xae.push(...Kae),Xae},"getTasks"),Pdi=i(function(){let r=[];return Xae.forEach(a=>{a.people&&r.push(...a.people)}),[...new Set(r)].sort()},"updateActors"),Bdi=i(function(r,t){let a=t.substr(1).split(":"),s=0,l=[];a.length===1?(s=Number(a[0]),l=[]):(s=Number(a[0]),l=a[1].split(","));let h=l.map(d=>d.trim()),f={section:LW,type:LW,people:h,task:r,score:s};Kae.push(f)},"addTask"),Fdi=i(function(r){let t={section:LW,type:LW,description:r,task:r,classes:[]};Xae.push(t)},"addTaskOrg"),kjr=i(function(){let r=i(function(a){return Kae[a].processed},"compileTask"),t=!0;for(let[a,s]of Kae.entries())r(a),t=t&&s.processed;return t},"compileTasks"),$di=i(function(){return Pdi()},"getActors"),Yut={getConfig:i(()=>er().journey,"getConfig"),clear:Idi,setDiagramTitle:io,getDiagramTitle:Ks,setAccTitle:Os,getAccTitle:Vs,setAccDescription:$s,getAccDescription:Ws,addSection:Mdi,getSections:Ndi,getTasks:Odi,addTask:Bdi,addTaskOrg:Fdi,getActors:$di}});var Gdi,Ejr,Sjr=ae(()=>{"use strict";AP();Gdi=i(r=>`.label {
|
|
font-family: ${r.fontFamily};
|
|
color: ${r.textColor};
|
|
}
|
|
.mouth {
|
|
stroke: #666;
|
|
}
|
|
|
|
line {
|
|
stroke: ${r.textColor}
|
|
}
|
|
|
|
.legend {
|
|
fill: ${r.textColor};
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
.label text {
|
|
fill: #333;
|
|
}
|
|
.label {
|
|
color: ${r.textColor}
|
|
}
|
|
|
|
.face {
|
|
${r.faceColor?`fill: ${r.faceColor}`:"fill: #FFF8DC"};
|
|
stroke: #999;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: ${r.arrowheadColor};
|
|
}
|
|
|
|
.edgePaths .path {
|
|
stroke: ${r.lineColor};
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: ${r.lineColor};
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: ${r.edgeLabelBackground};
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
}
|
|
|
|
.cluster text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: ${r.fontFamily};
|
|
font-size: 12px;
|
|
background: ${r.tertiaryColor};
|
|
border: 1px solid ${r.border2};
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.task-type-0, .section-type-0 {
|
|
${r.fillType0?`fill: ${r.fillType0}`:""};
|
|
}
|
|
.task-type-1, .section-type-1 {
|
|
${r.fillType0?`fill: ${r.fillType1}`:""};
|
|
}
|
|
.task-type-2, .section-type-2 {
|
|
${r.fillType0?`fill: ${r.fillType2}`:""};
|
|
}
|
|
.task-type-3, .section-type-3 {
|
|
${r.fillType0?`fill: ${r.fillType3}`:""};
|
|
}
|
|
.task-type-4, .section-type-4 {
|
|
${r.fillType0?`fill: ${r.fillType4}`:""};
|
|
}
|
|
.task-type-5, .section-type-5 {
|
|
${r.fillType0?`fill: ${r.fillType5}`:""};
|
|
}
|
|
.task-type-6, .section-type-6 {
|
|
${r.fillType0?`fill: ${r.fillType6}`:""};
|
|
}
|
|
.task-type-7, .section-type-7 {
|
|
${r.fillType0?`fill: ${r.fillType7}`:""};
|
|
}
|
|
|
|
.actor-0 {
|
|
${r.actor0?`fill: ${r.actor0}`:""};
|
|
}
|
|
.actor-1 {
|
|
${r.actor1?`fill: ${r.actor1}`:""};
|
|
}
|
|
.actor-2 {
|
|
${r.actor2?`fill: ${r.actor2}`:""};
|
|
}
|
|
.actor-3 {
|
|
${r.actor3?`fill: ${r.actor3}`:""};
|
|
}
|
|
.actor-4 {
|
|
${r.actor4?`fill: ${r.actor4}`:""};
|
|
}
|
|
.actor-5 {
|
|
${r.actor5?`fill: ${r.actor5}`:""};
|
|
}
|
|
${ak()}
|
|
`,"getStyles"),Ejr=Gdi});var Kut,jdi,Ajr,Rjr,zdi,Udi,Xut,Vdi,Wdi,Ljr,Hdi,_W,_jr=ae(()=>{"use strict";zo();IA();Kut=i(function(r,t){return AO(r,t)},"drawRect"),jdi=i(function(r,t){let s=r.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),l=r.append("g");l.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),l.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(m){let b=D4().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);m.append("path").attr("class","mouth").attr("d",b).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}i(h,"smile");function f(m){let b=D4().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);m.append("path").attr("class","mouth").attr("d",b).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}i(f,"sad");function d(m){m.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i(d,"ambivalent"),t.score>3?h(l):t.score<3?f(l):d(l),s},"drawFace"),Ajr=i(function(r,t){let a=r.append("circle");return a.attr("cx",t.cx),a.attr("cy",t.cy),a.attr("class","actor-"+t.pos),a.attr("fill",t.fill),a.attr("stroke",t.stroke),a.attr("r",t.r),a.class!==void 0&&a.attr("class",a.class),t.title!==void 0&&a.append("title").text(t.title),a},"drawCircle"),Rjr=i(function(r,t){return Bpr(r,t)},"drawText"),zdi=i(function(r,t){function a(l,h,f,d,m){return l+","+h+" "+(l+f)+","+h+" "+(l+f)+","+(h+d-m)+" "+(l+f-m*1.2)+","+(h+d)+" "+l+","+(h+d)}i(a,"genPoints");let s=r.append("polygon");s.attr("points",a(t.x,t.y,50,20,7)),s.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Rjr(r,t)},"drawLabel"),Udi=i(function(r,t,a){let s=r.append("g"),l=Ab();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=a.width*t.taskCount+a.diagramMarginX*(t.taskCount-1),l.height=a.height,l.class="journey-section section-type-"+t.num,l.rx=3,l.ry=3,Kut(s,l),Ljr(a)(t.text,s,l.x,l.y,l.width,l.height,{class:"journey-section section-type-"+t.num},a,t.colour)},"drawSection"),Xut=-1,Vdi=i(function(r,t,a,s){let l=t.x+a.width/2,h=r.append("g");Xut++,h.append("line").attr("id",s+"-task"+Xut).attr("x1",l).attr("y1",t.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),jdi(h,{cx:l,cy:300+(5-t.score)*30,score:t.score});let d=Ab();d.x=t.x,d.y=t.y,d.fill=t.fill,d.width=a.width,d.height=a.height,d.class="task task-type-"+t.num,d.rx=3,d.ry=3,Kut(h,d);let m=t.x+14;t.people.forEach(b=>{let v=t.actors[b].color,T={cx:m,cy:t.y,r:7,fill:v,stroke:"#000",title:b,pos:t.actors[b].position};Ajr(h,T),m+=10}),Ljr(a)(t.task,h,d.x,d.y,d.width,d.height,{class:"task"},a,t.colour)},"drawTask"),Wdi=i(function(r,t){L2e(r,t)},"drawBackgroundRect"),Ljr=(function(){function r(l,h,f,d,m,b,v,T){let C=h.append("text").attr("x",f+m/2).attr("y",d+b/2+5).style("font-color",T).style("text-anchor","middle").text(l);s(C,v)}i(r,"byText");function t(l,h,f,d,m,b,v,T,C){let{taskFontSize:E,taskFontFamily:S}=T,R=l.split(/<br\s*\/?>/gi);for(let L=0;L<R.length;L++){let _=L*E-E*(R.length-1)/2,I=h.append("text").attr("x",f+m/2).attr("y",d).attr("fill",C).style("text-anchor","middle").style("font-size",E).style("font-family",S);I.append("tspan").attr("x",f+m/2).attr("dy",_).text(R[L]),I.attr("y",d+b/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(I,v)}}i(t,"byTspan");function a(l,h,f,d,m,b,v,T){let C=h.append("switch"),S=C.append("foreignObject").attr("x",f).attr("y",d).attr("width",m).attr("height",b).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,C,f,d,m,b,v,T),s(S,v)}i(a,"byFo");function s(l,h){for(let f in h)f in h&&l.attr(f,h[f])}return i(s,"_setTextAttrs"),function(l){return l.textPlacement==="fo"?a:l.textPlacement==="old"?r:t}})(),Hdi=i(function(r,t){Xut=-1,r.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),_W={drawRect:Kut,drawCircle:Ajr,drawSection:Udi,drawText:Rjr,drawLabel:zdi,drawTask:Vdi,drawBackgroundRect:Wdi,initGraphics:Hdi}});function Ydi(r){let t=er().journey,a=t.maxLabelWidth;qCe=0;let s=60;Object.keys(T8).forEach(l=>{let h=T8[l].color,f={cx:20,cy:s,r:7,fill:h,stroke:"#000",pos:T8[l].position};_W.drawCircle(r,f);let d=r.append("text").attr("visibility","hidden").text(l),m=d.node().getBoundingClientRect().width;d.remove();let b=[];if(m<=a)b=[l];else{let v=l.split(" "),T="";d=r.append("text").attr("visibility","hidden"),v.forEach(C=>{let E=T?`${T} ${C}`:C;if(d.text(E),d.node().getBoundingClientRect().width>a){if(T&&b.push(T),T=C,d.text(C),d.node().getBoundingClientRect().width>a){let R="";for(let L of C)R+=L,d.text(R+"-"),d.node().getBoundingClientRect().width>a&&(b.push(R.slice(0,-1)+"-"),R=L);T=R}}else T=E}),T&&b.push(T),d.remove()}b.forEach((v,T)=>{let C={x:40,y:s+7+T*20,fill:"#666",text:v,textMargin:t.boxTextMargin??5},S=_W.drawText(r,C).node().getBoundingClientRect().width;S>qCe&&S>t.leftMargin-S&&(qCe=S)}),s+=Math.max(20,b.length*20)})}var qdi,T8,qCe,tC,PD,Xdi,ck,Jut,Djr,Kdi,Qut,Ijr=ae(()=>{"use strict";zo();_jr();ma();$h();qdi=i(function(r){Object.keys(r).forEach(function(a){tC[a]=r[a]})},"setConf"),T8={},qCe=0;i(Ydi,"drawActorLegend");tC=er().journey,PD=0,Xdi=i(function(r,t,a,s){let l=er(),h=l.journey.titleColor,f=l.journey.titleFontSize,d=l.journey.titleFontFamily,m=l.securityLevel,b;m==="sandbox"&&(b=mn("#i"+t));let v=m==="sandbox"?mn(b.nodes()[0].contentDocument.body):mn("body");ck.init();let T=v.select("#"+t);_W.initGraphics(T,t);let C=s.db.getTasks(),E=s.db.getDiagramTitle(),S=s.db.getActors();for(let B in T8)delete T8[B];let R=0;S.forEach(B=>{T8[B]={color:tC.actorColours[R%tC.actorColours.length],position:R},R++}),Ydi(T),PD=tC.leftMargin+qCe,ck.insert(0,0,PD,Object.keys(T8).length*50),Kdi(T,C,0,t);let L=ck.getBounds();E&&T.append("text").text(E).attr("x",PD).attr("font-size",f).attr("font-weight","bold").attr("y",25).attr("fill",h).attr("font-family",d);let _=L.stopy-L.starty+2*tC.diagramMarginY,I=PD+L.stopx+2*tC.diagramMarginX;wl(T,_,I,tC.useMaxWidth),T.append("line").attr("x1",PD).attr("y1",tC.height*4).attr("x2",I-PD-4).attr("y2",tC.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+t+"-arrowhead)");let N=E?70:0;T.attr("viewBox",`${L.startx} -25 ${I} ${_+N}`),T.attr("preserveAspectRatio","xMinYMin meet"),T.attr("height",_+N+25)},"draw"),ck={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:i(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:i(function(r,t,a,s){r[t]===void 0?r[t]=a:r[t]=s(a,r[t])},"updateVal"),updateBounds:i(function(r,t,a,s){let l=er().journey,h=this,f=0;function d(m){return i(function(v){f++;let T=h.sequenceItems.length-f+1;h.updateVal(v,"starty",t-T*l.boxMargin,Math.min),h.updateVal(v,"stopy",s+T*l.boxMargin,Math.max),h.updateVal(ck.data,"startx",r-T*l.boxMargin,Math.min),h.updateVal(ck.data,"stopx",a+T*l.boxMargin,Math.max),m!=="activation"&&(h.updateVal(v,"startx",r-T*l.boxMargin,Math.min),h.updateVal(v,"stopx",a+T*l.boxMargin,Math.max),h.updateVal(ck.data,"starty",t-T*l.boxMargin,Math.min),h.updateVal(ck.data,"stopy",s+T*l.boxMargin,Math.max))},"updateItemBounds")}i(d,"updateFn"),this.sequenceItems.forEach(d())},"updateBounds"),insert:i(function(r,t,a,s){let l=Math.min(r,a),h=Math.max(r,a),f=Math.min(t,s),d=Math.max(t,s);this.updateVal(ck.data,"startx",l,Math.min),this.updateVal(ck.data,"starty",f,Math.min),this.updateVal(ck.data,"stopx",h,Math.max),this.updateVal(ck.data,"stopy",d,Math.max),this.updateBounds(l,f,h,d)},"insert"),bumpVerticalPos:i(function(r){this.verticalPos=this.verticalPos+r,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:i(function(){return this.verticalPos},"getVerticalPos"),getBounds:i(function(){return this.data},"getBounds")},Jut=tC.sectionFills,Djr=tC.sectionColours,Kdi=i(function(r,t,a,s){let l=er().journey,h="",f=l.height*2+l.diagramMarginY,d=a+f,m=0,b="#CCC",v="black",T=0;for(let[C,E]of t.entries()){if(h!==E.section){b=Jut[m%Jut.length],T=m%Jut.length,v=Djr[m%Djr.length];let R=0,L=E.section;for(let I=C;I<t.length&&t[I].section==L;I++)R=R+1;let _={x:C*l.taskMargin+C*l.width+PD,y:50,text:E.section,fill:b,num:T,colour:v,taskCount:R};_W.drawSection(r,_,l),h=E.section,m++}let S=E.people.reduce((R,L)=>(T8[L]&&(R[L]=T8[L]),R),{});E.x=C*l.taskMargin+C*l.width+PD,E.y=d,E.width=l.diagramMarginX,E.height=l.diagramMarginY,E.colour=v,E.fill=b,E.num=T,E.actors=S,_W.drawTask(r,E,l,s),ck.insert(E.x,E.y,E.x+E.width+l.taskMargin,450)}},"drawTasks"),Qut={setConf:qdi,draw:Xdi}});var Mjr={};is(Mjr,{diagram:()=>Jdi});var Jdi,Njr=ae(()=>{"use strict";Tjr();Cjr();Sjr();Ijr();Jdi={parser:xjr,db:Yut,renderer:Qut,styles:Ejr,init:i(r=>{Qut.setConf(r.journey),Yut.clear()},"init")}});var tht,jjr,zjr=ae(()=>{"use strict";tht=(function(){var r=i(function(C,E,S,R){for(S=S||{},R=C.length;R--;S[C[R]]=E);return S},"o"),t=[6,11,13,14,15,17,19,20,23,24],a=[1,12],s=[1,13],l=[1,14],h=[1,15],f=[1,16],d=[1,19],m=[1,20],b={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:i(function(E,S,R,L,_,I,N){var B=I.length-1;switch(_){case 1:return I[B-1];case 3:L.setDirection("LR");break;case 4:L.setDirection("TD");break;case 5:this.$=[];break;case 6:I[B-1].push(I[B]),this.$=I[B-1];break;case 7:case 8:this.$=I[B];break;case 9:case 10:this.$=[];break;case 11:L.getCommonDb().setDiagramTitle(I[B].substr(6)),this.$=I[B].substr(6);break;case 12:this.$=I[B].trim(),L.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=I[B].trim(),L.getCommonDb().setAccDescription(this.$);break;case 15:L.addSection(I[B].substr(8)),this.$=I[B].substr(8);break;case 18:L.addTask(I[B],0,""),this.$=I[B];break;case 19:L.addEvent(I[B].substr(2)),this.$=I[B];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},r(t,[2,5],{5:6}),r(t,[2,2]),r(t,[2,3]),r(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:a,15:s,17:l,19:h,20:f,21:17,22:18,23:d,24:m},r(t,[2,10],{1:[2,1]}),r(t,[2,6]),{12:21,14:a,15:s,17:l,19:h,20:f,21:17,22:18,23:d,24:m},r(t,[2,8]),r(t,[2,9]),r(t,[2,11]),{16:[1,22]},{18:[1,23]},r(t,[2,14]),r(t,[2,15]),r(t,[2,16]),r(t,[2,17]),r(t,[2,18]),r(t,[2,19]),r(t,[2,7]),r(t,[2,12]),r(t,[2,13])],defaultActions:{},parseError:i(function(E,S){if(S.recoverable)this.trace(E);else{var R=new Error(E);throw R.hash=S,R}},"parseError"),parse:i(function(E){var S=this,R=[0],L=[],_=[null],I=[],N=this.table,B="",O=0,P=0,$=0,V=2,Y=1,Q=I.slice.call(arguments,1),q=Object.create(this.lexer),W={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(W.yy[H]=this.yy[H]);q.setInput(E,W.yy),W.yy.lexer=q,W.yy.parser=this,typeof q.yylloc>"u"&&(q.yylloc={});var re=q.yylloc;I.push(re);var Z=q.options&&q.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(Be){R.length=R.length-2*Be,_.length=_.length-Be,I.length=I.length-Be}i(X,"popStack");function te(){var Be;return Be=L.pop()||q.lex()||Y,typeof Be!="number"&&(Be instanceof Array&&(L=Be,Be=L.pop()),Be=S.symbols_[Be]||Be),Be}i(te,"lex");for(var U,ne,se,he,le,pe,ge={},we,Ae,ve,Ie;;){if(se=R[R.length-1],this.defaultActions[se]?he=this.defaultActions[se]:((U===null||typeof U>"u")&&(U=te()),he=N[se]&&N[se][U]),typeof he>"u"||!he.length||!he[0]){var De="";Ie=[];for(we in N[se])this.terminals_[we]&&we>V&&Ie.push("'"+this.terminals_[we]+"'");q.showPosition?De="Parse error on line "+(O+1)+`:
|
|
`+q.showPosition()+`
|
|
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[U]||U)+"'":De="Parse error on line "+(O+1)+": Unexpected "+(U==Y?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(De,{text:q.match,token:this.terminals_[U]||U,line:q.yylineno,loc:re,expected:Ie})}if(he[0]instanceof Array&&he.length>1)throw new Error("Parse Error: multiple actions possible at state: "+se+", token: "+U);switch(he[0]){case 1:R.push(U),_.push(q.yytext),I.push(q.yylloc),R.push(he[1]),U=null,ne?(U=ne,ne=null):(P=q.yyleng,B=q.yytext,O=q.yylineno,re=q.yylloc,$>0&&$--);break;case 2:if(Ae=this.productions_[he[1]][1],ge.$=_[_.length-Ae],ge._$={first_line:I[I.length-(Ae||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(Ae||1)].first_column,last_column:I[I.length-1].last_column},Z&&(ge._$.range=[I[I.length-(Ae||1)].range[0],I[I.length-1].range[1]]),pe=this.performAction.apply(ge,[B,P,O,W.yy,he[1],_,I].concat(Q)),typeof pe<"u")return pe;Ae&&(R=R.slice(0,-1*Ae*2),_=_.slice(0,-1*Ae),I=I.slice(0,-1*Ae)),R.push(this.productions_[he[1]][0]),_.push(ge.$),I.push(ge._$),ve=N[R[R.length-2]][R[R.length-1]],R.push(ve);break;case 3:return!0}}return!0},"parse")},v=(function(){var C={EOF:1,parseError:i(function(S,R){if(this.yy.parser)this.yy.parser.parseError(S,R);else throw new Error(S)},"parseError"),setInput:i(function(E,S){return this.yy=S||this.yy||{},this._input=E,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var S=E.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),E},"input"),unput:i(function(E){var S=E.length,R=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var L=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),R.length-1&&(this.yylineno-=R.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:R?(R.length===L.length?this.yylloc.first_column:0)+L[L.length-R.length].length-R[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(E){this.unput(this.match.slice(E))},"less"),pastInput:i(function(){var E=this.matched.substr(0,this.matched.length-this.match.length);return(E.length>20?"...":"")+E.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var E=this.match;return E.length<20&&(E+=this._input.substr(0,20-E.length)),(E.substr(0,20)+(E.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var E=this.pastInput(),S=new Array(E.length+1).join("-");return E+this.upcomingInput()+`
|
|
`+S+"^"},"showPosition"),test_match:i(function(E,S){var R,L,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),L=E[0].match(/(?:\r\n?|\n).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+E[0].length},this.yytext+=E[0],this.match+=E[0],this.matches=E,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(E[0].length),this.matched+=E[0],R=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),R)return R;if(this._backtrack){for(var I in _)this[I]=_[I];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var E,S,R,L;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),I=0;I<_.length;I++)if(R=this._input.match(this.rules[_[I]]),R&&(!S||R[0].length>S[0].length)){if(S=R,L=I,this.options.backtrack_lexer){if(E=this.test_match(R,_[I]),E!==!1)return E;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(E=this.test_match(S,_[L]),E!==!1?E:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var S=this.next();return S||this.lex()},"lex"),begin:i(function(S){this.conditionStack.push(S)},"begin"),popState:i(function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},"topState"),pushState:i(function(S){this.begin(S)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(S,R,L,_){var I=_;switch(L){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return C})();b.lexer=v;function T(){this.yy={}}return i(T,"Parser"),T.prototype=b,b.Parser=T,new T})();tht.parser=tht;jjr=tht});var iht={};is(iht,{addEvent:()=>Zjr,addSection:()=>Xjr,addTask:()=>Qjr,addTaskOrg:()=>ezr,clear:()=>Hjr,default:()=>lpi,getCommonDb:()=>Wjr,getDirection:()=>Yjr,getSections:()=>Kjr,getTasks:()=>Jjr,setDirection:()=>qjr});var DW,Vjr,rht,nht,XCe,IW,Wjr,Hjr,qjr,Yjr,Xjr,Kjr,Jjr,Qjr,Zjr,ezr,Ujr,lpi,tzr=ae(()=>{"use strict";Au();DW="",Vjr=0,rht="LR",nht=[],XCe=[],IW=[],Wjr=i(()=>ute,"getCommonDb"),Hjr=i(function(){nht.length=0,XCe.length=0,DW="",IW.length=0,rht="LR",Ds()},"clear"),qjr=i(function(r){rht=r},"setDirection"),Yjr=i(function(){return rht},"getDirection"),Xjr=i(function(r){DW=r,nht.push(r)},"addSection"),Kjr=i(function(){return nht},"getSections"),Jjr=i(function(){let r=Ujr(),t=100,a=0;for(;!r&&a<t;)r=Ujr(),a++;return XCe.push(...IW),XCe},"getTasks"),Qjr=i(function(r,t,a){let s={id:Vjr++,section:DW,type:DW,task:r,score:t||0,events:a?[a]:[]};IW.push(s)},"addTask"),Zjr=i(function(r){IW.find(a=>a.id===Vjr-1).events.push(r)},"addEvent"),ezr=i(function(r){let t={section:DW,type:DW,description:r,task:r,classes:[]};XCe.push(t)},"addTaskOrg"),Ujr=i(function(){let r=i(function(a){return IW[a].processed},"compileTask"),t=!0;for(let[a,s]of IW.entries())r(a),t=t&&s.processed;return t},"compileTasks"),lpi={clear:Hjr,getCommonDb:Wjr,getDirection:Yjr,setDirection:qjr,addSection:Xjr,getSections:Kjr,getTasks:Jjr,addTask:Qjr,addTaskOrg:ezr,addEvent:Zjr}});function azr(r,t){r.each(function(){var a=mn(this),s=a.text().split(/(\s+|<br>)/).reverse(),l,h=[],f=1.1,d=a.attr("y"),m=parseFloat(a.attr("dy")),b=a.text(null).append("tspan").attr("x",0).attr("y",d).attr("dy",m+"em");for(let v=0;v<s.length;v++)l=s[s.length-1-v],h.push(l),b.text(h.join(" ").trim()),(b.node().getComputedTextLength()>t||l==="<br>")&&(h.pop(),b.text(h.join(" ").trim()),l==="<br>"?h=[""]:h=[l],b=a.append("tspan").attr("x",0).attr("y",d).attr("dy",f+"em").text(l))})}var rzr,KCe,cpi,upi,nzr,hpi,fpi,aht,dpi,ppi,gpi,sht,izr,mpi,ypi,bpi,vpi,Ey,oht=ae(()=>{"use strict";zo();rzr=0,KCe=i(function(r,t){let a=r.append("rect");return a.attr("x",t.x),a.attr("y",t.y),a.attr("fill",t.fill),a.attr("stroke",t.stroke),a.attr("width",t.width),a.attr("height",t.height),a.attr("rx",t.rx),a.attr("ry",t.ry),t.class!==void 0&&a.attr("class",t.class),a},"drawRect"),cpi=i(function(r,t){let s=r.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),l=r.append("g");l.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),l.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(m){let b=D4().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);m.append("path").attr("class","mouth").attr("d",b).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}i(h,"smile");function f(m){let b=D4().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);m.append("path").attr("class","mouth").attr("d",b).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}i(f,"sad");function d(m){m.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i(d,"ambivalent"),t.score>3?h(l):t.score<3?f(l):d(l),s},"drawFace"),upi=i(function(r,t){let a=r.append("circle");return a.attr("cx",t.cx),a.attr("cy",t.cy),a.attr("class","actor-"+t.pos),a.attr("fill",t.fill),a.attr("stroke",t.stroke),a.attr("r",t.r),a.class!==void 0&&a.attr("class",a.class),t.title!==void 0&&a.append("title").text(t.title),a},"drawCircle"),nzr=i(function(r,t){let a=t.text.replace(/<br\s*\/?>/gi," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class!==void 0&&s.attr("class",t.class);let l=s.append("tspan");return l.attr("x",t.x+t.textMargin*2),l.text(a),s},"drawText"),hpi=i(function(r,t){function a(l,h,f,d,m){return l+","+h+" "+(l+f)+","+h+" "+(l+f)+","+(h+d-m)+" "+(l+f-m*1.2)+","+(h+d)+" "+l+","+(h+d)}i(a,"genPoints");let s=r.append("polygon");s.attr("points",a(t.x,t.y,50,20,7)),s.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,nzr(r,t)},"drawLabel"),fpi=i(function(r,t,a){let s=r.append("g"),l=sht();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=a.width,l.height=a.height,l.class="journey-section section-type-"+t.num,l.rx=3,l.ry=3,KCe(s,l),izr(a)(t.text,s,l.x,l.y,l.width,l.height,{class:"journey-section section-type-"+t.num},a,t.colour)},"drawSection"),aht=-1,dpi=i(function(r,t,a,s){let l=t.x+a.width/2,h=r.append("g");aht++,h.append("line").attr("id",s+"-task"+aht).attr("x1",l).attr("y1",t.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),cpi(h,{cx:l,cy:300+(5-t.score)*30,score:t.score});let d=sht();d.x=t.x,d.y=t.y,d.fill=t.fill,d.width=a.width,d.height=a.height,d.class="task task-type-"+t.num,d.rx=3,d.ry=3,KCe(h,d),izr(a)(t.task,h,d.x,d.y,d.width,d.height,{class:"task"},a,t.colour)},"drawTask"),ppi=i(function(r,t){KCe(r,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),gpi=i(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),sht=i(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),izr=(function(){function r(l,h,f,d,m,b,v,T){let C=h.append("text").attr("x",f+m/2).attr("y",d+b/2+5).style("font-color",T).style("text-anchor","middle").text(l);s(C,v)}i(r,"byText");function t(l,h,f,d,m,b,v,T,C){let{taskFontSize:E,taskFontFamily:S}=T,R=l.split(/<br\s*\/?>/gi);for(let L=0;L<R.length;L++){let _=L*E-E*(R.length-1)/2,I=h.append("text").attr("x",f+m/2).attr("y",d).attr("fill",C).style("text-anchor","middle").style("font-size",E).style("font-family",S);I.append("tspan").attr("x",f+m/2).attr("dy",_).text(R[L]),I.attr("y",d+b/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(I,v)}}i(t,"byTspan");function a(l,h,f,d,m,b,v,T){let C=h.append("switch"),S=C.append("foreignObject").attr("x",f).attr("y",d).attr("width",m).attr("height",b).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,C,f,d,m,b,v,T),s(S,v)}i(a,"byFo");function s(l,h){for(let f in h)f in h&&l.attr(f,h[f])}return i(s,"_setTextAttrs"),function(l){return l.textPlacement==="fo"?a:l.textPlacement==="old"?r:t}})(),mpi=i(function(r,t){rzr=0,aht=-1,r.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");i(azr,"wrap");ypi=i(function(r,t,a,s,l,h=!1){let{theme:f,look:d}=s,m=f?.includes("redux"),b=s?.themeVariables?.THEME_COLOR_LIMIT??12,v=a%b-1,T=r.append("g");t.section=v,T.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+v));let C=T.append("g"),E=T.append("g"),R=E.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(azr,t.width).node().getBBox(),L=s.fontSize?.replace?s.fontSize.replace("px",""):s.fontSize;if(t.height=R.height+L*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,E.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),m&&E.attr("transform",`translate(${t.width/2}, ${h?t.padding/2+3:t.padding})`),vpi(C,t,v,l,s),d==="neo"&&(T.attr("data-look","neo"),m)){let _=f.includes("dark"),I=r.node()?.ownerSVGElement??r.node(),N=mn(I),B=N.attr("id")??"",O=B?`${B}-drop-shadow`:"drop-shadow";if(N.select(`#${O}`).empty()){let P=N.select("defs");(P.empty()?N.append("defs"):P).append("filter").attr("id",O).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",_?"0.2":"0.06").attr("flood-color",_?"#FFFFFF":"#000000")}}return t},"drawNode"),bpi=i(function(r,t,a){let s=r.append("g"),h=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(azr,t.width).node().getBBox(),f=a.fontSize?.replace?a.fontSize.replace("px",""):a.fontSize;return s.remove(),h.height+f*1.1*.5+t.padding},"getVirtualNodeHeight"),vpi=i(function(r,t,a,s,l){let{theme:h}=l,f=h?.includes("redux")?0:5,d=5,m=f>0?`M0 ${t.height-d} v${-t.height+2*d} q0,-${f},${f},-${f} h${t.width-2*d} q${f},0,${f},${f} v${t.height-d} H0 Z`:`M0 ${t.height-d} v${-(t.height-d)} h${t.width} v${t.height} H0 Z`;r.append("path").attr("id",s+"-node-"+rzr++).attr("class","node-bkg node-"+t.type).attr("d",m),h?.includes("redux")||r.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),Ey={drawRect:KCe,drawCircle:upi,drawSection:fpi,drawText:nzr,drawLabel:hpi,drawTask:dpi,drawBackgroundRect:ppi,getTextObj:gpi,getNoteRect:sht,initGraphics:mpi,drawNode:ypi,getVirtualNodeHeight:bpi}});var wpi,szr,xpi,ozr,lzr=ae(()=>{"use strict";zo();oht();Yn();ma();$h();wpi=i(function(r,t,a,s){let l=er(),{look:h,theme:f,themeVariables:d}=l,{useGradient:m,gradientStart:b,gradientStop:v}=d,T=l.timeline?.leftMargin??50;Pe.debug("timeline",s.db);let C=l.securityLevel,E;C==="sandbox"&&(E=mn("#i"+t));let R=(C==="sandbox"?mn(E.nodes()[0].contentDocument.body):mn("body")).select("#"+t);R.append("g");let L=s.db.getTasks(),_=s.db.getCommonDb().getDiagramTitle();Pe.debug("task",L),Ey.initGraphics(R,t);let I=s.db.getSections();Pe.debug("sections",I);let N=0,B=0,O=0,P=0,$=50+T,V=50;P=50;let Y=0,Q=!0;I.forEach(function(Z){let X={number:Y,descr:Z,section:Y,width:150,padding:20,maxHeight:N},te=Ey.getVirtualNodeHeight(R,X,l);Pe.debug("sectionHeight before draw",te),N=Math.max(N,te+20)});let q=0,W=0;Pe.debug("tasks.length",L.length);for(let[Z,X]of L.entries()){let te={number:Z,descr:X,section:X.section,width:150,padding:20,maxHeight:B},U=Ey.getVirtualNodeHeight(R,te,l);Pe.debug("taskHeight before draw",U),B=Math.max(B,U+20),q=Math.max(q,X.events.length);let ne=0;for(let se of X.events){let he={descr:se,section:X.section,number:X.section,width:150,padding:20,maxHeight:50};ne+=Ey.getVirtualNodeHeight(R,he,l)}X.events.length>0&&(ne+=(X.events.length-1)*10),W=Math.max(W,ne)}Pe.debug("maxSectionHeight before draw",N),Pe.debug("maxTaskHeight before draw",B),I&&I.length>0?I.forEach(Z=>{let X=L.filter(se=>se.section===Z),te={number:Y,descr:Z,section:Y,width:200*Math.max(X.length,1)-50,padding:20,maxHeight:N};Pe.debug("sectionNode",te);let U=R.append("g"),ne=Ey.drawNode(U,te,Y,l,t);Pe.debug("sectionNode output",ne),U.attr("transform",`translate(${$}, ${P})`),V+=N+50,X.length>0&&szr(R,X,Y,$,V,B,l,q,W,N,!1,t),$+=200*Math.max(X.length,1),V=P,Y++}):(Q=!1,szr(R,L,Y,$,V,B,l,q,W,N,!0,t));let H=R.node().getBBox();if(Pe.debug("bounds",H),_&&R.append("text").text(_).attr("x",h==="neo"?H.x*2+T:H.width/2-T).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=Q?N+B+150:B+100,R.append("g").attr("class","lineWrapper").append("line").attr("x1",T).attr("y1",O).attr("x2",H.width+3*T).attr("y2",O).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),h==="neo"&&m&&f!=="neutral"){let Z=R.select("defs"),te=(Z.empty()?R.append("defs"):Z).append("linearGradient").attr("id",R.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");te.append("stop").attr("offset","0%").attr("stop-color",b).attr("stop-opacity",1),te.append("stop").attr("offset","100%").attr("stop-color",v).attr("stop-opacity",1)}BT(void 0,R,l.timeline?.padding??50,l.timeline?.useMaxWidth??!1)},"draw"),szr=i(function(r,t,a,s,l,h,f,d,m,b,v,T){for(let C of t){let E={descr:C.task,section:a,number:a,width:150,padding:20,maxHeight:h};Pe.debug("taskNode",E);let S=r.append("g").attr("class","taskWrapper"),L=Ey.drawNode(S,E,a,f,T).height;if(Pe.debug("taskHeight after draw",L),S.attr("transform",`translate(${s}, ${l})`),h=Math.max(h,L),C.events){let _=r.append("g").attr("class","lineWrapper"),I=h;l+=100,I=I+xpi(r,C.events,a,s,l,f,T),l-=100,_.append("line").attr("x1",s+190/2).attr("y1",l+h).attr("x2",s+190/2).attr("y2",l+h+100+m+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${T}-arrowhead)`).attr("stroke-dasharray","5,5")}s=s+200,v&&!f.timeline?.disableMulticolor&&a++}l=l-10},"drawTasks"),xpi=i(function(r,t,a,s,l,h,f){let d=0,m=l;l=l+100;for(let b of t){let v={descr:b,section:a,number:a,width:150,padding:20,maxHeight:50};Pe.debug("eventNode",v);let T=r.append("g").attr("class","eventWrapper"),E=Ey.drawNode(T,v,a,h,f,!0).height;d=d+E,T.attr("transform",`translate(${s}, ${l})`),l=l+10+E}return l=m,d},"drawEvents"),ozr={setConf:i(()=>{},"setConf"),draw:wpi}});var JCe,k8,Tpi,lht,kpi,fzr,Cpi,czr,dzr,uzr,pzr,Epi,hzr,Spi,gzr,mzr=ae(()=>{"use strict";oht();Yn();ma();$h();x1();Ma();JCe=200,k8=5,Tpi=JCe+k8*2,lht=JCe+100,kpi=lht+k8*2,fzr=10,Cpi=0,czr=20,dzr=20,uzr=30,pzr=50,Epi=i(function(r,t,a,s){let l=er(),h=l.timeline?.leftMargin??50;Pe.debug("timeline",s.db);let f=pu(t);f.append("g");let d=s.db.getTasks(),m=s.db.getCommonDb().getDiagramTitle();Pe.debug("task",d),Ey.initGraphics(f);let b=s.db.getSections();Pe.debug("sections",b);let v=0,T=0,C=50+h,E=50,S=E,R=C,L=Tpi+dzr,_=kpi+pzr,I=R+L,N=0,B=b&&b.length>0,O=B?I:C+L,P=Math.max(50,L+_-k8*2);b.forEach(function(Z){let X={number:N,descr:Z,section:N,width:P,padding:k8,maxHeight:v},te=Ey.getVirtualNodeHeight(f,X,l);Pe.debug("sectionHeight before draw",te),v=Math.max(v,te)});let $=0;Pe.debug("tasks.length",d.length);for(let[Z,X]of d.entries()){let te={number:Z,descr:X,section:X.section,width:JCe,padding:k8,maxHeight:T},U=Ey.getVirtualNodeHeight(f,te,l);Pe.debug("taskHeight before draw",U),T=Math.max(T,U);let ne=0;for(let se of X.events){let he={descr:se,section:X.section,number:X.section,width:lht,padding:k8,maxHeight:50};ne+=Ey.getVirtualNodeHeight(f,he,l)}X.events.length>0&&(ne+=(X.events.length-1)*fzr),$=Math.max($,ne)+Cpi}Pe.debug("maxSectionHeight before draw",v),Pe.debug("maxTaskHeight before draw",T);let Y=Math.max(T,$)+uzr;B?b.forEach(Z=>{let X=d.filter(ge=>ge.section===Z),te={number:N,descr:Z,section:N,width:P,padding:k8,maxHeight:v};Pe.debug("sectionNode",te);let U=f.append("g"),ne=Ey.drawNode(U,te,N,l);Pe.debug("sectionNode output",ne);let se=O-L;U.attr("transform",`translate(${se}, ${E})`);let he=E+ne.height+czr;X.length>0&&hzr(f,X,N,O,he,T,l,Y,!1);let le=X.length,pe=ne.height+czr+Y*Math.max(le,1)-(le>0?uzr*2:0);E+=pe,N++}):hzr(f,d,N,O,E,T,l,Y,!0);let Q=f.node()?.getBBox();if(!Q)throw new Error("bbox not found");if(Pe.debug("bounds",Q),m){if(f.append("text").text(m).attr("x",Q.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),Q=f.node()?.getBBox(),!Q)throw new Error("bbox not found");Pe.debug("bounds after title",Q)}let[q]=Rb(l.fontSize),W=(q??16)*2,H=(q??16)*.5+20,re=f.append("g").attr("class","lineWrapper");re.append("line").attr("x1",O).attr("y1",S-W).attr("x2",O).attr("y2",Q.y+Q.height+H).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),re.lower(),BT(void 0,f,l.timeline?.padding??50,l.timeline?.useMaxWidth??!1)},"draw"),hzr=i(function(r,t,a,s,l,h,f,d,m){for(let b of t){let v={descr:b.task,section:a,number:a,width:JCe,padding:k8,maxHeight:h};Pe.debug("taskNode",v);let T=r.append("g").attr("class","taskWrapper"),C=Ey.drawNode(T,v,a,f),E=C.height;Pe.debug("taskHeight after draw",E);let S=s-dzr-C.width;if(T.attr("transform",`translate(${S}, ${l})`),h=Math.max(h,E),b.events&&b.events.length>0){let R=l,L=s+pzr;Spi(r,b.events,a,s,L,R,f)}l=l+d,m&&!f.timeline?.disableMulticolor&&a++}},"drawTasks"),Spi=i(function(r,t,a,s,l,h,f){let d=h;for(let m of t){let b={descr:m,section:a,number:a,width:lht,padding:k8,maxHeight:0};Pe.debug("eventNode",b);let v=r.append("g").attr("class","eventWrapper"),C=Ey.drawNode(v,b,a,f).height;v.attr("transform",`translate(${l}, ${d})`);let E=r.append("g").attr("class","lineWrapper"),S=d+C/2;E.append("line").attr("x1",s).attr("y1",S).attr("x2",l).attr("y2",S).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),d=d+C+fzr}return d-h},"drawEvents"),gzr={setConf:i(()=>{},"setConf"),draw:Epi}});var Api,Rpi,Lpi,yzr,bzr=ae(()=>{"use strict";hp();Xs();A0();Api=i(r=>{let{theme:t}=ri(),a=t?.includes("dark"),s=S0(t,r.borderColorArray),l=r.svgId?.replace(/^#/,"")??"",h=l?`url(#${l}-drop-shadow)`:r.dropShadow??"none",f="";for(let d=0;d<VT(r.THEME_COLOR_LIMIT);d++){let m=`${17-3*d}`,b=s?r.borderColorArray[d%r.borderColorArray.length]:void 0,v=b??r.mainBkg,T=b??r.nodeBorder;f+=`
|
|
.section-${d-1} rect,
|
|
.section-${d-1} path,
|
|
.section-${d-1} circle {
|
|
fill: ${a&&s?r.mainBkg:v};
|
|
stroke: ${T};
|
|
stroke-width: ${r.strokeWidth};
|
|
filter: ${h};
|
|
}
|
|
|
|
.section-${d-1} text {
|
|
fill: ${r.nodeBorder};
|
|
font-weight: ${r.fontWeight}
|
|
}
|
|
|
|
.node-icon-${d-1} {
|
|
font-size: 40px;
|
|
color: ${r["cScaleLabel"+d]};
|
|
}
|
|
|
|
.section-edge-${d-1} {
|
|
stroke: ${r["cScale"+d]};
|
|
}
|
|
|
|
.edge-depth-${d-1} {
|
|
stroke-width: ${m};
|
|
}
|
|
|
|
.section-${d-1} line {
|
|
stroke: ${r["cScaleInv"+d]};
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.lineWrapper line {
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width:${r.strokeWidth}
|
|
}
|
|
|
|
.disabled,
|
|
.disabled circle,
|
|
.disabled text {
|
|
fill: ${r.tertiaryColor??"lightgray"};
|
|
}
|
|
|
|
.disabled text {
|
|
fill: ${r.clusterBorder??"#efefef"};
|
|
}
|
|
`}return f},"genReduxSections"),Rpi=i(r=>{let t="",a=VT(r.THEME_COLOR_LIMIT);for(let s=0;s<a;s++)r["lineColor"+s]=r["lineColor"+s]??r["cScaleInv"+s],Dc(r["lineColor"+s])?r["lineColor"+s]=Br(r["lineColor"+s],20):r["lineColor"+s]=$r(r["lineColor"+s],20);for(let s=0;s<a;s++){let l=""+(17-3*s);t+=`
|
|
.section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} path {
|
|
fill: ${r["cScale"+s]};
|
|
}
|
|
.section-${s-1} text {
|
|
fill: ${r["cScaleLabel"+s]};
|
|
}
|
|
.node-icon-${s-1} {
|
|
font-size: 40px;
|
|
color: ${r["cScaleLabel"+s]};
|
|
}
|
|
.section-edge-${s-1}{
|
|
stroke: ${r["cScale"+s]};
|
|
}
|
|
.edge-depth-${s-1}{
|
|
stroke-width: ${l};
|
|
}
|
|
.section-${s-1} line {
|
|
stroke: ${r["cScaleInv"+s]} ;
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.lineWrapper line{
|
|
stroke: ${r["cScaleLabel"+s]} ;
|
|
}
|
|
|
|
.disabled, .disabled circle, .disabled text {
|
|
fill: ${r.tertiaryColor??"lightgray"};
|
|
}
|
|
.disabled text {
|
|
fill: ${r.clusterBorder??"#efefef"};
|
|
}
|
|
`}return t},"genSections"),Lpi=i(r=>{let{theme:t}=ri(),a=t?.includes("redux"),s=t==="neutral",l=r.svgId?.replace(/^#/,"")??"",h="";if(r.useGradient&&l&&r.THEME_COLOR_LIMIT&&!s){let f=VT(r.THEME_COLOR_LIMIT);for(let d=0;d<f;d++)h+=`
|
|
.section-${d-1}[data-look="neo"] rect,
|
|
.section-${d-1}[data-look="neo"] path,
|
|
.section-${d-1}[data-look="neo"] circle {
|
|
fill: ${r.mainBkg};
|
|
stroke: url(#${l}-gradient);
|
|
stroke-width: 2;
|
|
}
|
|
.section-${d-1}[data-look="neo"] line {
|
|
stroke: url(#${l}-gradient);
|
|
stroke-width: 2;
|
|
}`}return`
|
|
.edge {
|
|
stroke-width: 3;
|
|
}
|
|
${a?Api(r):Rpi(r)}
|
|
${h}
|
|
.section-root rect, .section-root path, .section-root circle {
|
|
fill: ${r.git0};
|
|
}
|
|
.section-root text {
|
|
fill: ${r.gitBranchLabel0};
|
|
}
|
|
.icon-container {
|
|
height:100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.edge {
|
|
fill: none;
|
|
}
|
|
.eventWrapper {
|
|
filter: brightness(120%);
|
|
}
|
|
`},"getStyles"),yzr=Lpi});var vzr={};is(vzr,{diagram:()=>Dpi});var _pi,Dpi,wzr=ae(()=>{"use strict";zjr();tzr();lzr();mzr();bzr();_pi={setConf:i(()=>{},"setConf"),draw:i((r,t,a,s)=>(s?.db?.getDirection?.()??"LR")==="TD"?gzr.draw(r,t,a,s):ozr.draw(r,t,a,s),"draw")},Dpi={db:iht,renderer:_pi,parser:jjr,styles:yzr}});var cht,kzr,Czr=ae(()=>{"use strict";cht=(function(){var r=i(function(B,O,P,$){for(P=P||{},$=B.length;$--;P[B[$]]=O);return P},"o"),t=[1,4],a=[1,13],s=[1,12],l=[1,15],h=[1,16],f=[1,20],d=[1,19],m=[6,7,8],b=[1,26],v=[1,24],T=[1,25],C=[6,7,11],E=[1,6,13,15,16,19,22],S=[1,33],R=[1,34],L=[1,6,7,11,13,15,16,19,22],_={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:i(function(O,P,$,V,Y,Q,q){var W=Q.length-1;switch(Y){case 6:case 7:return V;case 8:V.getLogger().trace("Stop NL ");break;case 9:V.getLogger().trace("Stop EOF ");break;case 11:V.getLogger().trace("Stop NL2 ");break;case 12:V.getLogger().trace("Stop EOF2 ");break;case 15:V.getLogger().info("Node: ",Q[W].id),V.addNode(Q[W-1].length,Q[W].id,Q[W].descr,Q[W].type);break;case 16:V.getLogger().trace("Icon: ",Q[W]),V.decorateNode({icon:Q[W]});break;case 17:case 21:V.decorateNode({class:Q[W]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",Q[W].id),V.addNode(0,Q[W].id,Q[W].descr,Q[W].type);break;case 20:V.decorateNode({icon:Q[W]});break;case 25:V.getLogger().trace("node found ..",Q[W-2]),this.$={id:Q[W-1],descr:Q[W-1],type:V.getType(Q[W-2],Q[W])};break;case 26:this.$={id:Q[W],descr:Q[W],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",Q[W-3]),this.$={id:Q[W-3],descr:Q[W-1],type:V.getType(Q[W-2],Q[W])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:a,7:[1,10],9:9,12:11,13:s,14:14,15:l,16:h,17:17,18:18,19:f,22:d},r(m,[2,3]),{1:[2,2]},r(m,[2,4]),r(m,[2,5]),{1:[2,6],6:a,12:21,13:s,14:14,15:l,16:h,17:17,18:18,19:f,22:d},{6:a,9:22,12:11,13:s,14:14,15:l,16:h,17:17,18:18,19:f,22:d},{6:b,7:v,10:23,11:T},r(C,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:d}),r(C,[2,18]),r(C,[2,19]),r(C,[2,20]),r(C,[2,21]),r(C,[2,23]),r(C,[2,24]),r(C,[2,26],{19:[1,30]}),{20:[1,31]},{6:b,7:v,10:32,11:T},{1:[2,7],6:a,12:21,13:s,14:14,15:l,16:h,17:17,18:18,19:f,22:d},r(E,[2,14],{7:S,11:R}),r(L,[2,8]),r(L,[2,9]),r(L,[2,10]),r(C,[2,15]),r(C,[2,16]),r(C,[2,17]),{20:[1,35]},{21:[1,36]},r(E,[2,13],{7:S,11:R}),r(L,[2,11]),r(L,[2,12]),{21:[1,37]},r(C,[2,25]),r(C,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:i(function(O,P){if(P.recoverable)this.trace(O);else{var $=new Error(O);throw $.hash=P,$}},"parseError"),parse:i(function(O){var P=this,$=[0],V=[],Y=[null],Q=[],q=this.table,W="",H=0,re=0,Z=0,X=2,te=1,U=Q.slice.call(arguments,1),ne=Object.create(this.lexer),se={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(se.yy[he]=this.yy[he]);ne.setInput(O,se.yy),se.yy.lexer=ne,se.yy.parser=this,typeof ne.yylloc>"u"&&(ne.yylloc={});var le=ne.yylloc;Q.push(le);var pe=ne.options&&ne.options.ranges;typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ge(Mt){$.length=$.length-2*Mt,Y.length=Y.length-Mt,Q.length=Q.length-Mt}i(ge,"popStack");function we(){var Mt;return Mt=V.pop()||ne.lex()||te,typeof Mt!="number"&&(Mt instanceof Array&&(V=Mt,Mt=V.pop()),Mt=P.symbols_[Mt]||Mt),Mt}i(we,"lex");for(var Ae,ve,Ie,De,Be,Fe,ze={},vt,lt,Ft,pr;;){if(Ie=$[$.length-1],this.defaultActions[Ie]?De=this.defaultActions[Ie]:((Ae===null||typeof Ae>"u")&&(Ae=we()),De=q[Ie]&&q[Ie][Ae]),typeof De>"u"||!De.length||!De[0]){var tr="";pr=[];for(vt in q[Ie])this.terminals_[vt]&&vt>X&&pr.push("'"+this.terminals_[vt]+"'");ne.showPosition?tr="Parse error on line "+(H+1)+`:
|
|
`+ne.showPosition()+`
|
|
Expecting `+pr.join(", ")+", got '"+(this.terminals_[Ae]||Ae)+"'":tr="Parse error on line "+(H+1)+": Unexpected "+(Ae==te?"end of input":"'"+(this.terminals_[Ae]||Ae)+"'"),this.parseError(tr,{text:ne.match,token:this.terminals_[Ae]||Ae,line:ne.yylineno,loc:le,expected:pr})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+Ae);switch(De[0]){case 1:$.push(Ae),Y.push(ne.yytext),Q.push(ne.yylloc),$.push(De[1]),Ae=null,ve?(Ae=ve,ve=null):(re=ne.yyleng,W=ne.yytext,H=ne.yylineno,le=ne.yylloc,Z>0&&Z--);break;case 2:if(lt=this.productions_[De[1]][1],ze.$=Y[Y.length-lt],ze._$={first_line:Q[Q.length-(lt||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(lt||1)].first_column,last_column:Q[Q.length-1].last_column},pe&&(ze._$.range=[Q[Q.length-(lt||1)].range[0],Q[Q.length-1].range[1]]),Fe=this.performAction.apply(ze,[W,re,H,se.yy,De[1],Y,Q].concat(U)),typeof Fe<"u")return Fe;lt&&($=$.slice(0,-1*lt*2),Y=Y.slice(0,-1*lt),Q=Q.slice(0,-1*lt)),$.push(this.productions_[De[1]][0]),Y.push(ze.$),Q.push(ze._$),Ft=q[$[$.length-2]][$[$.length-1]],$.push(Ft);break;case 3:return!0}}return!0},"parse")},I=(function(){var B={EOF:1,parseError:i(function(P,$){if(this.yy.parser)this.yy.parser.parseError(P,$);else throw new Error(P)},"parseError"),setInput:i(function(O,P){return this.yy=P||this.yy||{},this._input=O,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var O=this._input[0];this.yytext+=O,this.yyleng++,this.offset++,this.match+=O,this.matched+=O;var P=O.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),O},"input"),unput:i(function(O){var P=O.length,$=O.split(/(?:\r\n?|\n)/g);this._input=O+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var V=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),$.length-1&&(this.yylineno-=$.length-1);var Y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:$?($.length===V.length?this.yylloc.first_column:0)+V[V.length-$.length].length-$[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[Y[0],Y[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(O){this.unput(this.match.slice(O))},"less"),pastInput:i(function(){var O=this.matched.substr(0,this.matched.length-this.match.length);return(O.length>20?"...":"")+O.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var O=this.match;return O.length<20&&(O+=this._input.substr(0,20-O.length)),(O.substr(0,20)+(O.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var O=this.pastInput(),P=new Array(O.length+1).join("-");return O+this.upcomingInput()+`
|
|
`+P+"^"},"showPosition"),test_match:i(function(O,P){var $,V,Y;if(this.options.backtrack_lexer&&(Y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Y.yylloc.range=this.yylloc.range.slice(0))),V=O[0].match(/(?:\r\n?|\n).*/g),V&&(this.yylineno+=V.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:V?V[V.length-1].length-V[V.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+O[0].length},this.yytext+=O[0],this.match+=O[0],this.matches=O,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(O[0].length),this.matched+=O[0],$=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),$)return $;if(this._backtrack){for(var Q in Y)this[Q]=Y[Q];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var O,P,$,V;this._more||(this.yytext="",this.match="");for(var Y=this._currentRules(),Q=0;Q<Y.length;Q++)if($=this._input.match(this.rules[Y[Q]]),$&&(!P||$[0].length>P[0].length)){if(P=$,V=Q,this.options.backtrack_lexer){if(O=this.test_match($,Y[Q]),O!==!1)return O;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(O=this.test_match(P,Y[V]),O!==!1?O:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var P=this.next();return P||this.lex()},"lex"),begin:i(function(P){this.conditionStack.push(P)},"begin"),popState:i(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:i(function(P){this.begin(P)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(P,$,V,Y){var Q=Y;switch(V){case 0:return P.getLogger().trace("Found comment",$.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:P.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return P.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:P.getLogger().trace("end icon"),this.popState();break;case 10:return P.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return P.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return P.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return P.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:P.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return P.getLogger().trace("description:",$.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),P.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),P.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),P.getLogger().trace("node end ...",$.yytext),"NODE_DEND";break;case 30:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),P.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),P.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return P.getLogger().trace("Long description:",$.yytext),20;break;case 36:return P.getLogger().trace("Long description:",$.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return B})();_.lexer=I;function N(){this.yy={}}return i(N,"Parser"),N.prototype=_,_.Parser=N,new N})();cht.parser=cht;kzr=cht});var uht,Ezr=ae(()=>{"use strict";ex();Ma();uht=12});var C8,QCe,Szr=ae(()=>{"use strict";ma();nl();Yn();pp();Xs();Ezr();C8={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},QCe=class{constructor(){this.nodes=[];this.count=0;this.elements={};this.getLogger=this.getLogger.bind(this),this.nodeType=C8,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{i(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(t){for(let a=this.nodes.length-1;a>=0;a--)if(this.nodes[a].level<t)return this.nodes[a];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,a,s,l){Pe.info("addNode",t,a,s,l);let h=!1;this.nodes.length===0?(this.baseLevel=t,t=0,h=!0):this.baseLevel!==void 0&&(t=t-this.baseLevel,h=!1);let f=er(),d=f.mindmap?.padding??ps.mindmap.padding;switch(l){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:d*=2;break}let m={id:this.count++,nodeId:Ns(a,f),level:t,descr:Ns(s,f),type:l,children:[],width:f.mindmap?.maxNodeWidth??ps.mindmap.maxNodeWidth,padding:d,isRoot:h},b=this.getParent(t);if(b)b.children.push(m),this.nodes.push(m);else if(h)this.nodes.push(m);else throw new Error(`There can be only one root. No parent could be found for ("${m.descr}")`)}getType(t,a){switch(Pe.debug("In get type",t,a),t){case"[":return this.nodeType.RECT;case"(":return a===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(t,a){this.elements[t]=a}getElementById(t){return this.elements[t]}decorateNode(t){if(!t)return;let a=er(),s=this.nodes[this.nodes.length-1];t.icon&&(s.icon=Ns(t.icon,a)),t.class&&(s.class=Ns(t.class,a))}type2Str(t){switch(t){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(t,a,s=0,l=!1){if(t.level===0?t.section=void 0:t.section=l?(s-1)%(uht-1):a,t.children)for(let[h,f]of t.children.entries()){let d=t.level===0?h%(uht-1):a;this.assignSections(f,d,s+1,l)}}flattenNodes(t,a){let s=er(),l=["mindmap-node"];t.isRoot===!0?l.push("section-root","section--1"):t.section!==void 0&&l.push(`section-${t.section}`),t.class&&l.push(t.class);let h=l.join(" "),f=i(m=>{let v=(s.theme?.toLowerCase()??"").includes("redux");switch(m){case C8.CIRCLE:return"mindmapCircle";case C8.RECT:return"rect";case C8.ROUNDED_RECT:return"rounded";case C8.CLOUD:return"cloud";case C8.BANG:return"bang";case C8.HEXAGON:return"hexagon";case C8.DEFAULT:return v?"rounded":"defaultMindmapNode";case C8.NO_BORDER:default:return"rect"}},"getShapeFromType"),d={id:t.id.toString(),domId:"node_"+t.id.toString(),label:t.descr,labelType:"markdown",isGroup:!1,shape:f(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:h,cssStyles:[],centerLabel:!0,look:s.look,icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(a.push(d),t.children)for(let m of t.children)this.flattenNodes(m,a)}generateEdges(t,a){if(!t.children)return;let s=er();for(let l of t.children){let h="edge";l.section!==void 0&&(h+=` section-edge-${l.section}`);let f=t.level+1;h+=` edge-depth-${f}`;let d={id:`edge_${t.id}_${l.id}`,start:t.id.toString(),end:l.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:s.look,classes:h,depth:t.level,section:l.section};a.push(d),this.generateEdges(l,a)}}getData(){let t=this.getMindmap(),a=er(),l=oor().layout!==void 0,h=a;if(l||(h.layout="cose-bilkent"),!t)return{nodes:[],edges:[],config:h};Pe.debug("getData: mindmapRoot",t,a),this.assignSections(t,void 0,0,a.mindmap?.colorBy==="depth");let f=[],d=[];this.flattenNodes(t,f),this.generateEdges(t,d),Pe.debug(`getData: processed ${f.length} nodes and ${d.length} edges`);let m=new Map;for(let b of f)m.set(b.id,{shape:b.shape,width:b.width,height:b.height,padding:b.padding});return{nodes:f,edges:d,config:h,rootNode:t,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(m),type:"mindmap"}}getLogger(){return Pe}}});var Opi,Azr,Rzr=ae(()=>{"use strict";Yn();FA();PS();BS();pp();Xs();Opi=i(async(r,t,a,s)=>{Pe.debug(`Rendering mindmap diagram
|
|
`+r);let l=s.db,h=l.getData(),f=dy(t,h.config.securityLevel);if(h.type=s.type,h.layoutAlgorithm=Ty(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=t,!l.getMindmap())return;h.nodes.forEach(C=>{C.shape==="rounded"?(C.radius=15,C.taper=15,C.stroke="none",C.width=0,C.padding=15):C.shape==="circle"?C.padding=10:C.shape==="rect"?(C.width=0,C.padding=10):C.shape==="hexagon"&&(C.width=0,C.height=0)}),await xy(h,f);let{themeVariables:m}=ri(),{useGradient:b,gradientStart:v,gradientStop:T}=m;if(b&&v&&T){let C=f.attr("id"),E=f.append("defs").append("linearGradient").attr("id",`${C}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");E.append("stop").attr("offset","0%").attr("stop-color",v).attr("stop-opacity",1),E.append("stop").attr("offset","100%").attr("stop-color",T).attr("stop-opacity",1)}Sm(f,h.config.mindmap?.padding??ps.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??ps.mindmap.useMaxWidth)},"draw"),Azr={draw:Opi}});var Ppi,Bpi,Fpi,Lzr,_zr=ae(()=>{"use strict";hp();Ppi=i(r=>{let{theme:t,look:a}=r,s="";for(let l=0;l<r.THEME_COLOR_LIMIT;l++)r["lineColor"+l]=r["lineColor"+l]||r["cScaleInv"+l],Dc(r["lineColor"+l])?r["lineColor"+l]=Br(r["lineColor"+l],20):r["lineColor"+l]=$r(r["lineColor"+l],20);for(let l=0;l<r.THEME_COLOR_LIMIT;l++){let h=""+(a==="neo"?Math.max(10-(l-1)*2,2):17-3*l),f=t==="redux"||t==="redux-dark"?r.nodeBorder:r["cScaleLabel"+(t==="neutral"?1:l)];s+=`
|
|
.section-${l-1} rect, .section-${l-1} path, .section-${l-1} circle, .section-${l-1} polygon, .section-${l-1} path {
|
|
fill: ${r["cScale"+l]};
|
|
}
|
|
.section-${l-1} text {
|
|
fill: ${r["cScaleLabel"+l]};
|
|
}
|
|
.section-${l-1} span {
|
|
color: ${r["cScaleLabel"+l]};
|
|
}
|
|
.node-icon-${l-1} {
|
|
font-size: 40px;
|
|
color: ${r["cScaleLabel"+l]};
|
|
}
|
|
.section-edge-${l-1}{
|
|
stroke: ${r["cScale"+l]};
|
|
}
|
|
.edge-depth-${l-1}{
|
|
stroke-width: ${h};
|
|
}
|
|
.section-${l-1} line {
|
|
stroke: ${r["cScaleInv"+l]} ;
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.disabled, .disabled circle, .disabled text {
|
|
fill: lightgray;
|
|
}
|
|
.disabled text {
|
|
fill: #efefef;
|
|
}
|
|
[data-look="neo"].mindmap-node.section-${l-1} rect, [data-look="neo"].mindmap-node.section-${l-1} path, [data-look="neo"].mindmap-node.section-${l-1} circle, [data-look="neo"].mindmap-node.section-${l-1} polygon {
|
|
fill: ${t==="redux"||t==="redux-dark"||t==="neutral"?r.mainBkg:r["cScale"+l]};
|
|
stroke: ${t==="redux"||t==="redux-dark"?r.nodeBorder:r["cScale"+l]};
|
|
stroke-width: ${r.strokeWidth??2}px;
|
|
}
|
|
[data-look="neo"].section-edge-${l-1}{
|
|
stroke: ${t?.includes("redux")||t==="neo-dark"?r.nodeBorder:r["cScale"+l]};
|
|
}
|
|
[data-look="neo"].mindmap-node.section-${l-1} text, [data-look="neo"].mindmap-node.section-${l-1} span {
|
|
fill: ${f};
|
|
color: ${f};
|
|
}
|
|
`}return s},"genSections"),Bpi=i((r,t,a)=>{let s="";for(let l=0;l<r;l++)s+=`
|
|
[data-look="neo"].mindmap-node.section-${l-1} rect, [data-look="neo"].mindmap-node.section-${l-1} path, [data-look="neo"].mindmap-node.section-${l-1} circle, [data-look="neo"].mindmap-node.section-${l-1} polygon {
|
|
stroke: url(${t}-gradient);
|
|
fill: ${a};
|
|
}
|
|
.section-${l-1} line {
|
|
stroke-width: 0;
|
|
}`;return s},"genGradient"),Fpi=i(r=>{let{theme:t}=r,a=r.svgId,s=t?.includes("redux")?r.nodeBorder:r["cScaleLabel"+(t==="neutral"?1:0)],l=r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none";return`
|
|
.edge {
|
|
stroke-width: 3;
|
|
}
|
|
${Ppi(r)}
|
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
fill: ${r.git0};
|
|
}
|
|
.section-root text {
|
|
fill: ${r.gitBranchLabel0};
|
|
}
|
|
.section-root span {
|
|
color: ${t?.includes("redux")?r.nodeBorder:r.gitBranchLabel0};
|
|
}
|
|
.icon-container {
|
|
height:100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.edge {
|
|
fill: none;
|
|
}
|
|
.mindmap-node-label {
|
|
dy: 1em;
|
|
alignment-baseline: middle;
|
|
text-anchor: middle;
|
|
dominant-baseline: middle;
|
|
text-align: center;
|
|
}
|
|
[data-look="neo"].mindmap-node {
|
|
filter: ${l};
|
|
}
|
|
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
fill: ${t?.includes("redux")?r.mainBkg:r.git0};
|
|
}
|
|
[data-look="neo"].mindmap-node.section-root .text-inner-tspan, [data-look="neo"].mindmap-node.section-root span {
|
|
fill: ${s};
|
|
color: ${s};
|
|
}
|
|
${r.useGradient&&a&&r.mainBkg?Bpi(r.THEME_COLOR_LIMIT,a,r.mainBkg):""}
|
|
`},"getStyles"),Lzr=Fpi});var Dzr={};is(Dzr,{diagram:()=>$pi});var $pi,Izr=ae(()=>{"use strict";Czr();Szr();Rzr();_zr();$pi={get db(){return new QCe},renderer:Azr,parser:kzr,styles:Lzr}});var hht,Ozr,Pzr=ae(()=>{"use strict";hht=(function(){var r=i(function($,V,Y,Q){for(Y=Y||{},Q=$.length;Q--;Y[$[Q]]=V);return Y},"o"),t=[1,4],a=[1,13],s=[1,12],l=[1,15],h=[1,16],f=[1,20],d=[1,19],m=[6,7,8],b=[1,26],v=[1,24],T=[1,25],C=[6,7,11],E=[1,31],S=[6,7,11,24],R=[1,6,13,16,17,20,23],L=[1,35],_=[1,36],I=[1,6,7,11,13,16,17,20,23],N=[1,38],B={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:i(function(V,Y,Q,q,W,H,re){var Z=H.length-1;switch(W){case 6:case 7:return q;case 8:q.getLogger().trace("Stop NL ");break;case 9:q.getLogger().trace("Stop EOF ");break;case 11:q.getLogger().trace("Stop NL2 ");break;case 12:q.getLogger().trace("Stop EOF2 ");break;case 15:q.getLogger().info("Node: ",H[Z-1].id),q.addNode(H[Z-2].length,H[Z-1].id,H[Z-1].descr,H[Z-1].type,H[Z]);break;case 16:q.getLogger().info("Node: ",H[Z].id),q.addNode(H[Z-1].length,H[Z].id,H[Z].descr,H[Z].type);break;case 17:q.getLogger().trace("Icon: ",H[Z]),q.decorateNode({icon:H[Z]});break;case 18:case 23:q.decorateNode({class:H[Z]});break;case 19:q.getLogger().trace("SPACELIST");break;case 20:q.getLogger().trace("Node: ",H[Z-1].id),q.addNode(0,H[Z-1].id,H[Z-1].descr,H[Z-1].type,H[Z]);break;case 21:q.getLogger().trace("Node: ",H[Z].id),q.addNode(0,H[Z].id,H[Z].descr,H[Z].type);break;case 22:q.decorateNode({icon:H[Z]});break;case 27:q.getLogger().trace("node found ..",H[Z-2]),this.$={id:H[Z-1],descr:H[Z-1],type:q.getType(H[Z-2],H[Z])};break;case 28:this.$={id:H[Z],descr:H[Z],type:0};break;case 29:q.getLogger().trace("node found ..",H[Z-3]),this.$={id:H[Z-3],descr:H[Z-1],type:q.getType(H[Z-2],H[Z])};break;case 30:this.$=H[Z-1]+H[Z];break;case 31:this.$=H[Z];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:a,7:[1,10],9:9,12:11,13:s,14:14,16:l,17:h,18:17,19:18,20:f,23:d},r(m,[2,3]),{1:[2,2]},r(m,[2,4]),r(m,[2,5]),{1:[2,6],6:a,12:21,13:s,14:14,16:l,17:h,18:17,19:18,20:f,23:d},{6:a,9:22,12:11,13:s,14:14,16:l,17:h,18:17,19:18,20:f,23:d},{6:b,7:v,10:23,11:T},r(C,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:d}),r(C,[2,19]),r(C,[2,21],{15:30,24:E}),r(C,[2,22]),r(C,[2,23]),r(S,[2,25]),r(S,[2,26]),r(S,[2,28],{20:[1,32]}),{21:[1,33]},{6:b,7:v,10:34,11:T},{1:[2,7],6:a,12:21,13:s,14:14,16:l,17:h,18:17,19:18,20:f,23:d},r(R,[2,14],{7:L,11:_}),r(I,[2,8]),r(I,[2,9]),r(I,[2,10]),r(C,[2,16],{15:37,24:E}),r(C,[2,17]),r(C,[2,18]),r(C,[2,20],{24:N}),r(S,[2,31]),{21:[1,39]},{22:[1,40]},r(R,[2,13],{7:L,11:_}),r(I,[2,11]),r(I,[2,12]),r(C,[2,15],{24:N}),r(S,[2,30]),{22:[1,41]},r(S,[2,27]),r(S,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:i(function(V,Y){if(Y.recoverable)this.trace(V);else{var Q=new Error(V);throw Q.hash=Y,Q}},"parseError"),parse:i(function(V){var Y=this,Q=[0],q=[],W=[null],H=[],re=this.table,Z="",X=0,te=0,U=0,ne=2,se=1,he=H.slice.call(arguments,1),le=Object.create(this.lexer),pe={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(pe.yy[ge]=this.yy[ge]);le.setInput(V,pe.yy),pe.yy.lexer=le,pe.yy.parser=this,typeof le.yylloc>"u"&&(le.yylloc={});var we=le.yylloc;H.push(we);var Ae=le.options&&le.options.ranges;typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ve(mt){Q.length=Q.length-2*mt,W.length=W.length-mt,H.length=H.length-mt}i(ve,"popStack");function Ie(){var mt;return mt=q.pop()||le.lex()||se,typeof mt!="number"&&(mt instanceof Array&&(q=mt,mt=q.pop()),mt=Y.symbols_[mt]||mt),mt}i(Ie,"lex");for(var De,Be,Fe,ze,vt,lt,Ft={},pr,tr,Mt,ot;;){if(Fe=Q[Q.length-1],this.defaultActions[Fe]?ze=this.defaultActions[Fe]:((De===null||typeof De>"u")&&(De=Ie()),ze=re[Fe]&&re[Fe][De]),typeof ze>"u"||!ze.length||!ze[0]){var it="";ot=[];for(pr in re[Fe])this.terminals_[pr]&&pr>ne&&ot.push("'"+this.terminals_[pr]+"'");le.showPosition?it="Parse error on line "+(X+1)+`:
|
|
`+le.showPosition()+`
|
|
Expecting `+ot.join(", ")+", got '"+(this.terminals_[De]||De)+"'":it="Parse error on line "+(X+1)+": Unexpected "+(De==se?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(it,{text:le.match,token:this.terminals_[De]||De,line:le.yylineno,loc:we,expected:ot})}if(ze[0]instanceof Array&&ze.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fe+", token: "+De);switch(ze[0]){case 1:Q.push(De),W.push(le.yytext),H.push(le.yylloc),Q.push(ze[1]),De=null,Be?(De=Be,Be=null):(te=le.yyleng,Z=le.yytext,X=le.yylineno,we=le.yylloc,U>0&&U--);break;case 2:if(tr=this.productions_[ze[1]][1],Ft.$=W[W.length-tr],Ft._$={first_line:H[H.length-(tr||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(tr||1)].first_column,last_column:H[H.length-1].last_column},Ae&&(Ft._$.range=[H[H.length-(tr||1)].range[0],H[H.length-1].range[1]]),lt=this.performAction.apply(Ft,[Z,te,X,pe.yy,ze[1],W,H].concat(he)),typeof lt<"u")return lt;tr&&(Q=Q.slice(0,-1*tr*2),W=W.slice(0,-1*tr),H=H.slice(0,-1*tr)),Q.push(this.productions_[ze[1]][0]),W.push(Ft.$),H.push(Ft._$),Mt=re[Q[Q.length-2]][Q[Q.length-1]],Q.push(Mt);break;case 3:return!0}}return!0},"parse")},O=(function(){var $={EOF:1,parseError:i(function(Y,Q){if(this.yy.parser)this.yy.parser.parseError(Y,Q);else throw new Error(Y)},"parseError"),setInput:i(function(V,Y){return this.yy=Y||this.yy||{},this._input=V,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var V=this._input[0];this.yytext+=V,this.yyleng++,this.offset++,this.match+=V,this.matched+=V;var Y=V.match(/(?:\r\n?|\n).*/g);return Y?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),V},"input"),unput:i(function(V){var Y=V.length,Q=V.split(/(?:\r\n?|\n)/g);this._input=V+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Y),this.offset-=Y;var q=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Q.length-1&&(this.yylineno-=Q.length-1);var W=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Q?(Q.length===q.length?this.yylloc.first_column:0)+q[q.length-Q.length].length-Q[0].length:this.yylloc.first_column-Y},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-Y]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(V){this.unput(this.match.slice(V))},"less"),pastInput:i(function(){var V=this.matched.substr(0,this.matched.length-this.match.length);return(V.length>20?"...":"")+V.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var V=this.match;return V.length<20&&(V+=this._input.substr(0,20-V.length)),(V.substr(0,20)+(V.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var V=this.pastInput(),Y=new Array(V.length+1).join("-");return V+this.upcomingInput()+`
|
|
`+Y+"^"},"showPosition"),test_match:i(function(V,Y){var Q,q,W;if(this.options.backtrack_lexer&&(W={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(W.yylloc.range=this.yylloc.range.slice(0))),q=V[0].match(/(?:\r\n?|\n).*/g),q&&(this.yylineno+=q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:q?q[q.length-1].length-q[q.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+V[0].length},this.yytext+=V[0],this.match+=V[0],this.matches=V,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(V[0].length),this.matched+=V[0],Q=this.performAction.call(this,this.yy,this,Y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Q)return Q;if(this._backtrack){for(var H in W)this[H]=W[H];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var V,Y,Q,q;this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),H=0;H<W.length;H++)if(Q=this._input.match(this.rules[W[H]]),Q&&(!Y||Q[0].length>Y[0].length)){if(Y=Q,q=H,this.options.backtrack_lexer){if(V=this.test_match(Q,W[H]),V!==!1)return V;if(this._backtrack){Y=!1;continue}else return!1}else if(!this.options.flex)break}return Y?(V=this.test_match(Y,W[q]),V!==!1?V:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var Y=this.next();return Y||this.lex()},"lex"),begin:i(function(Y){this.conditionStack.push(Y)},"begin"),popState:i(function(){var Y=this.conditionStack.length-1;return Y>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(Y){return Y=this.conditionStack.length-1-Math.abs(Y||0),Y>=0?this.conditionStack[Y]:"INITIAL"},"topState"),pushState:i(function(Y){this.begin(Y)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(Y,Q,q,W){var H=W;switch(q){case 0:return this.pushState("shapeData"),Q.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let re=/\n\s*/g;return Q.yytext=Q.yytext.replace(re,"<br/>"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return Y.getLogger().trace("Found comment",Q.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:Y.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return Y.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:Y.getLogger().trace("end icon"),this.popState();break;case 16:return Y.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return Y.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return Y.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return Y.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:Y.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return Y.getLogger().trace("description:",Q.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),Y.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),Y.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),Y.getLogger().trace("node end ...",Q.yytext),"NODE_DEND";break;case 36:return this.popState(),Y.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),Y.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),Y.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),Y.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),Y.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return Y.getLogger().trace("Long description:",Q.yytext),21;break;case 42:return Y.getLogger().trace("Long description:",Q.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return $})();B.lexer=O;function P(){this.yy={}}return i(P,"Parser"),P.prototype=B,B.Parser=P,new P})();hht.parser=hht;Ozr=hht});var uk,dht,fht,pht,Upi,Vpi,Bzr,Wpi,Hpi,O0,qpi,Ypi,Xpi,Kpi,Jpi,Qpi,Zpi,Fzr,$zr=ae(()=>{"use strict";ma();nl();Yn();pp();cU();uk=[],dht=[],fht=0,pht={},Upi=i(()=>{uk=[],dht=[],fht=0,pht={}},"clear"),Vpi=i(r=>{if(uk.length===0)return null;let t=uk[0].level,a=null;for(let s=uk.length-1;s>=0;s--)if(uk[s].level===t&&!a&&(a=uk[s]),uk[s].level<t)throw new Error('Items without section detected, found section ("'+uk[s].label+'")');return r===a?.level?null:a},"getSection"),Bzr=i(function(){return dht},"getSections"),Wpi=i(function(){let r=[],t=[],a=Bzr(),s=er();for(let l of a){let h={id:l.id,label:Ns(l.label??"",s),labelType:"markdown",isGroup:!0,ticket:l.ticket,shape:"kanbanSection",level:l.level,look:s.look};t.push(h);let f=uk.filter(d=>d.parentId===l.id);for(let d of f){let m={id:d.id,parentId:l.id,label:Ns(d.label??"",s),labelType:"markdown",isGroup:!1,ticket:d?.ticket,priority:d?.priority,assigned:d?.assigned,icon:d?.icon,shape:"kanbanItem",level:d.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(m)}}return{nodes:t,edges:r,other:{},config:er()}},"getData"),Hpi=i((r,t,a,s,l)=>{let h=er(),f=h.mindmap?.padding??ps.mindmap.padding;switch(s){case O0.ROUNDED_RECT:case O0.RECT:case O0.HEXAGON:f*=2}let d={id:Ns(t,h)||"kbn"+fht++,level:r,label:Ns(a,h),width:h.mindmap?.maxNodeWidth??ps.mindmap.maxNodeWidth,padding:f,isGroup:!1};if(l!==void 0){let b;l.includes(`
|
|
`)?b=l+`
|
|
`:b=`{
|
|
`+l+`
|
|
}`;let v=P4(b,{schema:O4});if(v.shape&&(v.shape!==v.shape.toLowerCase()||v.shape.includes("_")))throw new Error(`No such shape: ${v.shape}. Shape names should be lowercase.`);v?.shape&&v.shape==="kanbanItem"&&(d.shape=v?.shape),v?.label&&(d.label=v?.label),v?.icon&&(d.icon=v?.icon.toString()),v?.assigned&&(d.assigned=v?.assigned.toString()),v?.ticket&&(d.ticket=v?.ticket.toString()),v?.priority&&(d.priority=v?.priority)}let m=Vpi(r);m?d.parentId=m.id||"kbn"+fht++:dht.push(d),uk.push(d)},"addNode"),O0={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},qpi=i((r,t)=>{switch(Pe.debug("In get type",r,t),r){case"[":return O0.RECT;case"(":return t===")"?O0.ROUNDED_RECT:O0.CLOUD;case"((":return O0.CIRCLE;case")":return O0.CLOUD;case"))":return O0.BANG;case"{{":return O0.HEXAGON;default:return O0.DEFAULT}},"getType"),Ypi=i((r,t)=>{pht[r]=t},"setElementForId"),Xpi=i(r=>{if(!r)return;let t=er(),a=uk[uk.length-1];r.icon&&(a.icon=Ns(r.icon,t)),r.class&&(a.cssClasses=Ns(r.class,t))},"decorateNode"),Kpi=i(r=>{switch(r){case O0.DEFAULT:return"no-border";case O0.RECT:return"rect";case O0.ROUNDED_RECT:return"rounded-rect";case O0.CIRCLE:return"circle";case O0.CLOUD:return"cloud";case O0.BANG:return"bang";case O0.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Jpi=i(()=>Pe,"getLogger"),Qpi=i(r=>pht[r],"getElementById"),Zpi={clear:Upi,addNode:Hpi,getSections:Bzr,getData:Wpi,nodeType:O0,getType:qpi,setElementForId:Ypi,decorateNode:Xpi,type2Str:Kpi,getLogger:Jpi,getElementById:Qpi},Fzr=Zpi});var egi,Gzr,jzr=ae(()=>{"use strict";ma();Yn();x1();$h();pp();uU();UO();egi=i(async(r,t,a,s)=>{Pe.debug(`Rendering kanban diagram
|
|
`+r);let h=s.db.getData(),f=er();f.htmlLabels=!1;let d=pu(t);for(let L of h.nodes)L.domId=`${t}-${L.id}`;let m=d.append("g");m.attr("class","sections");let b=d.append("g");b.attr("class","items");let v=h.nodes.filter(L=>L.isGroup),T=0,C=10,E=[],S=25;for(let L of v){let _=f?.kanban?.sectionWidth||200;T=T+1,L.x=_*T+(T-1)*C/2,L.width=_,L.y=0,L.height=_*3,L.rx=5,L.ry=5,L.cssClasses=L.cssClasses+" section-"+T;let I=await g_(m,L);S=Math.max(S,I?.labelBBox?.height),E.push(I)}let R=0;for(let L of v){let _=E[R];R=R+1;let I=f?.kanban?.sectionWidth||200,N=-I*3/2+S,B=N,O=h.nodes.filter(V=>V.parentId===L.id);for(let V of O){if(V.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");V.x=L.x,V.width=I-1.5*C;let Q=(await jA(b,V,{config:f})).node().getBBox();V.y=B+Q.height/2,await dS(V),B=V.y+Q.height/2+C/2}let P=_.cluster.select("rect"),$=Math.max(B-N+3*C,50)+(S-25);P.attr("height",$)}BT(void 0,d,f.mindmap?.padding??ps.kanban.padding,f.mindmap?.useMaxWidth??ps.kanban.useMaxWidth)},"draw"),Gzr={draw:egi}});var tgi,rgi,zzr,Uzr=ae(()=>{"use strict";hp();AP();tgi=i(r=>{let t="";for(let s=0;s<r.THEME_COLOR_LIMIT;s++)r["lineColor"+s]=r["lineColor"+s]||r["cScaleInv"+s],Dc(r["lineColor"+s])?r["lineColor"+s]=Br(r["lineColor"+s],20):r["lineColor"+s]=$r(r["lineColor"+s],20);let a=i((s,l)=>r.darkMode?$r(s,l):Br(s,l),"adjuster");for(let s=0;s<r.THEME_COLOR_LIMIT;s++){let l=""+(17-3*s);t+=`
|
|
.section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} polygon, .section-${s-1} path {
|
|
fill: ${a(r["cScale"+s],10)};
|
|
stroke: ${a(r["cScale"+s],10)};
|
|
|
|
}
|
|
.section-${s-1} text {
|
|
fill: ${r["cScaleLabel"+s]};
|
|
}
|
|
.node-icon-${s-1} {
|
|
font-size: 40px;
|
|
color: ${r["cScaleLabel"+s]};
|
|
}
|
|
.section-edge-${s-1}{
|
|
stroke: ${r["cScale"+s]};
|
|
}
|
|
.edge-depth-${s-1}{
|
|
stroke-width: ${l};
|
|
}
|
|
.section-${s-1} line {
|
|
stroke: ${r["cScaleInv"+s]} ;
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.disabled, .disabled circle, .disabled text {
|
|
fill: lightgray;
|
|
}
|
|
.disabled text {
|
|
fill: #efefef;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: ${r.background};
|
|
stroke: ${r.nodeBorder};
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.kanban-ticket-link {
|
|
fill: ${r.background};
|
|
stroke: ${r.nodeBorder};
|
|
text-decoration: underline;
|
|
}
|
|
`}return t},"genSections"),rgi=i(r=>`
|
|
.edge {
|
|
stroke-width: 3;
|
|
}
|
|
${tgi(r)}
|
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
fill: ${r.git0};
|
|
}
|
|
.section-root text {
|
|
fill: ${r.gitBranchLabel0};
|
|
}
|
|
.icon-container {
|
|
height:100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.edge {
|
|
fill: none;
|
|
}
|
|
.cluster-label, .label {
|
|
color: ${r.textColor};
|
|
fill: ${r.textColor};
|
|
}
|
|
.kanban-label {
|
|
dy: 1em;
|
|
alignment-baseline: middle;
|
|
text-anchor: middle;
|
|
dominant-baseline: middle;
|
|
text-align: center;
|
|
}
|
|
${ak()}
|
|
`,"getStyles"),zzr=rgi});var Vzr={};is(Vzr,{diagram:()=>ngi});var ngi,Wzr=ae(()=>{"use strict";Pzr();$zr();jzr();Uzr();ngi={db:Fzr,renderer:Gzr,parser:Ozr,styles:zzr}});var ght,Qae,Yzr=ae(()=>{"use strict";ght=(function(){var r=i(function(d,m,b,v){for(b=b||{},v=d.length;v--;b[d[v]]=m);return b},"o"),t=[1,9],a=[1,10],s=[1,5,10,12],l={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:i(function(m,b,v,T,C,E,S){var R=E.length-1;switch(C){case 7:let L=T.findOrCreateNode(E[R-4].trim().replaceAll('""','"')),_=T.findOrCreateNode(E[R-2].trim().replaceAll('""','"')),I=parseFloat(E[R].trim());T.addLink(L,_,I);break;case 8:case 9:case 11:this.$=E[R];break;case 10:this.$=E[R-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:a},{1:[2,6],7:11,10:[1,12]},r(a,[2,4],{9:13,5:[1,14]}),{12:[1,15]},r(s,[2,8]),r(s,[2,9]),{19:[1,16]},r(s,[2,11]),{1:[2,1]},{1:[2,5]},r(a,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:a},{15:18,16:7,17:8,18:t,20:a},{18:[1,19]},r(a,[2,3]),{12:[1,20]},r(s,[2,10]),{15:21,16:7,17:8,18:t,20:a},r([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:i(function(m,b){if(b.recoverable)this.trace(m);else{var v=new Error(m);throw v.hash=b,v}},"parseError"),parse:i(function(m){var b=this,v=[0],T=[],C=[null],E=[],S=this.table,R="",L=0,_=0,I=0,N=2,B=1,O=E.slice.call(arguments,1),P=Object.create(this.lexer),$={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&($.yy[V]=this.yy[V]);P.setInput(m,$.yy),$.yy.lexer=P,$.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var Y=P.yylloc;E.push(Y);var Q=P.options&&P.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(we){v.length=v.length-2*we,C.length=C.length-we,E.length=E.length-we}i(q,"popStack");function W(){var we;return we=T.pop()||P.lex()||B,typeof we!="number"&&(we instanceof Array&&(T=we,we=T.pop()),we=b.symbols_[we]||we),we}i(W,"lex");for(var H,re,Z,X,te,U,ne={},se,he,le,pe;;){if(Z=v[v.length-1],this.defaultActions[Z]?X=this.defaultActions[Z]:((H===null||typeof H>"u")&&(H=W()),X=S[Z]&&S[Z][H]),typeof X>"u"||!X.length||!X[0]){var ge="";pe=[];for(se in S[Z])this.terminals_[se]&&se>N&&pe.push("'"+this.terminals_[se]+"'");P.showPosition?ge="Parse error on line "+(L+1)+`:
|
|
`+P.showPosition()+`
|
|
Expecting `+pe.join(", ")+", got '"+(this.terminals_[H]||H)+"'":ge="Parse error on line "+(L+1)+": Unexpected "+(H==B?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(ge,{text:P.match,token:this.terminals_[H]||H,line:P.yylineno,loc:Y,expected:pe})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+H);switch(X[0]){case 1:v.push(H),C.push(P.yytext),E.push(P.yylloc),v.push(X[1]),H=null,re?(H=re,re=null):(_=P.yyleng,R=P.yytext,L=P.yylineno,Y=P.yylloc,I>0&&I--);break;case 2:if(he=this.productions_[X[1]][1],ne.$=C[C.length-he],ne._$={first_line:E[E.length-(he||1)].first_line,last_line:E[E.length-1].last_line,first_column:E[E.length-(he||1)].first_column,last_column:E[E.length-1].last_column},Q&&(ne._$.range=[E[E.length-(he||1)].range[0],E[E.length-1].range[1]]),U=this.performAction.apply(ne,[R,_,L,$.yy,X[1],C,E].concat(O)),typeof U<"u")return U;he&&(v=v.slice(0,-1*he*2),C=C.slice(0,-1*he),E=E.slice(0,-1*he)),v.push(this.productions_[X[1]][0]),C.push(ne.$),E.push(ne._$),le=S[v[v.length-2]][v[v.length-1]],v.push(le);break;case 3:return!0}}return!0},"parse")},h=(function(){var d={EOF:1,parseError:i(function(b,v){if(this.yy.parser)this.yy.parser.parseError(b,v);else throw new Error(b)},"parseError"),setInput:i(function(m,b){return this.yy=b||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var b=m.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:i(function(m){var b=m.length,v=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===T.length?this.yylloc.first_column:0)+T[T.length-v.length].length-v[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(m){this.unput(this.match.slice(m))},"less"),pastInput:i(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var m=this.pastInput(),b=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
`+b+"^"},"showPosition"),test_match:i(function(m,b){var v,T,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),T=m[0].match(/(?:\r\n?|\n).*/g),T&&(this.yylineno+=T.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:T?T[T.length-1].length-T[T.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],v=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var E in C)this[E]=C[E];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,b,v,T;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),E=0;E<C.length;E++)if(v=this._input.match(this.rules[C[E]]),v&&(!b||v[0].length>b[0].length)){if(b=v,T=E,this.options.backtrack_lexer){if(m=this.test_match(v,C[E]),m!==!1)return m;if(this._backtrack){b=!1;continue}else return!1}else if(!this.options.flex)break}return b?(m=this.test_match(b,C[T]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var b=this.next();return b||this.lex()},"lex"),begin:i(function(b){this.conditionStack.push(b)},"begin"),popState:i(function(){var b=this.conditionStack.length-1;return b>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(b){return b=this.conditionStack.length-1-Math.abs(b||0),b>=0?this.conditionStack[b]:"INITIAL"},"topState"),pushState:i(function(b){this.begin(b)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(b,v,T,C){var E=C;switch(T){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return d})();l.lexer=h;function f(){this.yy={}}return i(f,"Parser"),f.prototype=l,l.Parser=f,new f})();ght.parser=ght;Qae=ght});var eEe,tEe,ZCe,ogi,mht,lgi,yht,cgi,ugi,hgi,fgi,Xzr,Kzr=ae(()=>{"use strict";ma();nl();Au();eEe=[],tEe=[],ZCe=new Map,ogi=i(()=>{eEe=[],tEe=[],ZCe=new Map,Ds()},"clear"),mht=class{constructor(t,a,s=0){this.source=t;this.target=a;this.value=s}static{i(this,"SankeyLink")}},lgi=i((r,t,a)=>{eEe.push(new mht(r,t,a))},"addLink"),yht=class{constructor(t){this.ID=t}static{i(this,"SankeyNode")}},cgi=i(r=>{r=Xn.sanitizeText(r,er());let t=ZCe.get(r);return t===void 0&&(t=new yht(r),ZCe.set(r,t),tEe.push(t)),t},"findOrCreateNode"),ugi=i(()=>tEe,"getNodes"),hgi=i(()=>eEe,"getLinks"),fgi=i(()=>({nodes:tEe.map(r=>({id:r.ID})),links:eEe.map(r=>({source:r.source.ID,target:r.target.ID,value:r.value}))}),"getGraph"),Xzr={nodesMap:ZCe,getConfig:i(()=>er().sankey,"getConfig"),getNodes:ugi,getLinks:hgi,getGraph:fgi,addLink:lgi,findOrCreateNode:cgi,getAccTitle:Vs,setAccTitle:Os,getAccDescription:Ws,setAccDescription:$s,getDiagramTitle:Ks,setDiagramTitle:io,clear:ogi}});function Zae(r,t){let a;if(t===void 0)for(let s of r)s!=null&&(a<s||a===void 0&&s>=s)&&(a=s);else{let s=-1;for(let l of r)(l=t(l,++s,r))!=null&&(a<l||a===void 0&&l>=l)&&(a=l)}return a}var Jzr=ae(()=>{"use strict";i(Zae,"max")});function MW(r,t){let a;if(t===void 0)for(let s of r)s!=null&&(a>s||a===void 0&&s>=s)&&(a=s);else{let s=-1;for(let l of r)(l=t(l,++s,r))!=null&&(a>l||a===void 0&&l>=l)&&(a=l)}return a}var Qzr=ae(()=>{"use strict";i(MW,"min")});function NW(r,t){let a=0;if(t===void 0)for(let s of r)(s=+s)&&(a+=s);else{let s=-1;for(let l of r)(l=+t(l,++s,r))&&(a+=l)}return a}var Zzr=ae(()=>{"use strict";i(NW,"sum")});var bht=ae(()=>{"use strict";Jzr();Qzr();Zzr()});function dgi(r){return r.target.depth}function vht(r){return r.depth}function wht(r,t){return t-1-r.height}function ese(r,t){return r.sourceLinks.length?r.depth:t-1}function xht(r){return r.targetLinks.length?r.depth:r.sourceLinks.length?MW(r.sourceLinks,dgi)-1:0}var Tht=ae(()=>{"use strict";bht();i(dgi,"targetDepth");i(vht,"left");i(wht,"right");i(ese,"justify");i(xht,"center")});function OW(r){return function(){return r}}var eUr=ae(()=>{"use strict";i(OW,"constant")});function tUr(r,t){return rEe(r.source,t.source)||r.index-t.index}function rUr(r,t){return rEe(r.target,t.target)||r.index-t.index}function rEe(r,t){return r.y0-t.y0}function kht(r){return r.value}function pgi(r){return r.index}function ggi(r){return r.nodes}function mgi(r){return r.links}function nUr(r,t){let a=r.get(t);if(!a)throw new Error("missing: "+t);return a}function iUr({nodes:r}){for(let t of r){let a=t.y0,s=a;for(let l of t.sourceLinks)l.y0=a+l.width/2,a+=l.width;for(let l of t.targetLinks)l.y1=s+l.width/2,s+=l.width}}function nEe(){let r=0,t=0,a=1,s=1,l=24,h=8,f,d=pgi,m=ese,b,v,T=ggi,C=mgi,E=6;function S(){let Z={nodes:T.apply(null,arguments),links:C.apply(null,arguments)};return R(Z),L(Z),_(Z),I(Z),O(Z),iUr(Z),Z}i(S,"sankey"),S.update=function(Z){return iUr(Z),Z},S.nodeId=function(Z){return arguments.length?(d=typeof Z=="function"?Z:OW(Z),S):d},S.nodeAlign=function(Z){return arguments.length?(m=typeof Z=="function"?Z:OW(Z),S):m},S.nodeSort=function(Z){return arguments.length?(b=Z,S):b},S.nodeWidth=function(Z){return arguments.length?(l=+Z,S):l},S.nodePadding=function(Z){return arguments.length?(h=f=+Z,S):h},S.nodes=function(Z){return arguments.length?(T=typeof Z=="function"?Z:OW(Z),S):T},S.links=function(Z){return arguments.length?(C=typeof Z=="function"?Z:OW(Z),S):C},S.linkSort=function(Z){return arguments.length?(v=Z,S):v},S.size=function(Z){return arguments.length?(r=t=0,a=+Z[0],s=+Z[1],S):[a-r,s-t]},S.extent=function(Z){return arguments.length?(r=+Z[0][0],a=+Z[1][0],t=+Z[0][1],s=+Z[1][1],S):[[r,t],[a,s]]},S.iterations=function(Z){return arguments.length?(E=+Z,S):E};function R({nodes:Z,links:X}){for(let[U,ne]of Z.entries())ne.index=U,ne.sourceLinks=[],ne.targetLinks=[];let te=new Map(Z.map((U,ne)=>[d(U,ne,Z),U]));for(let[U,ne]of X.entries()){ne.index=U;let{source:se,target:he}=ne;typeof se!="object"&&(se=ne.source=nUr(te,se)),typeof he!="object"&&(he=ne.target=nUr(te,he)),se.sourceLinks.push(ne),he.targetLinks.push(ne)}if(v!=null)for(let{sourceLinks:U,targetLinks:ne}of Z)U.sort(v),ne.sort(v)}i(R,"computeNodeLinks");function L({nodes:Z}){for(let X of Z)X.value=X.fixedValue===void 0?Math.max(NW(X.sourceLinks,kht),NW(X.targetLinks,kht)):X.fixedValue}i(L,"computeNodeValues");function _({nodes:Z}){let X=Z.length,te=new Set(Z),U=new Set,ne=0;for(;te.size;){for(let se of te){se.depth=ne;for(let{target:he}of se.sourceLinks)U.add(he)}if(++ne>X)throw new Error("circular link");te=U,U=new Set}}i(_,"computeNodeDepths");function I({nodes:Z}){let X=Z.length,te=new Set(Z),U=new Set,ne=0;for(;te.size;){for(let se of te){se.height=ne;for(let{source:he}of se.targetLinks)U.add(he)}if(++ne>X)throw new Error("circular link");te=U,U=new Set}}i(I,"computeNodeHeights");function N({nodes:Z}){let X=Zae(Z,ne=>ne.depth)+1,te=(a-r-l)/(X-1),U=new Array(X);for(let ne of Z){let se=Math.max(0,Math.min(X-1,Math.floor(m.call(null,ne,X))));ne.layer=se,ne.x0=r+se*te,ne.x1=ne.x0+l,U[se]?U[se].push(ne):U[se]=[ne]}if(b)for(let ne of U)ne.sort(b);return U}i(N,"computeNodeLayers");function B(Z){let X=MW(Z,te=>(s-t-(te.length-1)*f)/NW(te,kht));for(let te of Z){let U=t;for(let ne of te){ne.y0=U,ne.y1=U+ne.value*X,U=ne.y1+f;for(let se of ne.sourceLinks)se.width=se.value*X}U=(s-U+f)/(te.length+1);for(let ne=0;ne<te.length;++ne){let se=te[ne];se.y0+=U*(ne+1),se.y1+=U*(ne+1)}W(te)}}i(B,"initializeNodeBreadths");function O(Z){let X=N(Z);f=Math.min(h,(s-t)/(Zae(X,te=>te.length)-1)),B(X);for(let te=0;te<E;++te){let U=Math.pow(.99,te),ne=Math.max(1-U,(te+1)/E);$(X,U,ne),P(X,U,ne)}}i(O,"computeNodeBreadths");function P(Z,X,te){for(let U=1,ne=Z.length;U<ne;++U){let se=Z[U];for(let he of se){let le=0,pe=0;for(let{source:we,value:Ae}of he.targetLinks){let ve=Ae*(he.layer-we.layer);le+=H(we,he)*ve,pe+=ve}if(!(pe>0))continue;let ge=(le/pe-he.y0)*X;he.y0+=ge,he.y1+=ge,q(he)}b===void 0&&se.sort(rEe),V(se,te)}}i(P,"relaxLeftToRight");function $(Z,X,te){for(let U=Z.length,ne=U-2;ne>=0;--ne){let se=Z[ne];for(let he of se){let le=0,pe=0;for(let{target:we,value:Ae}of he.sourceLinks){let ve=Ae*(we.layer-he.layer);le+=re(he,we)*ve,pe+=ve}if(!(pe>0))continue;let ge=(le/pe-he.y0)*X;he.y0+=ge,he.y1+=ge,q(he)}b===void 0&&se.sort(rEe),V(se,te)}}i($,"relaxRightToLeft");function V(Z,X){let te=Z.length>>1,U=Z[te];Q(Z,U.y0-f,te-1,X),Y(Z,U.y1+f,te+1,X),Q(Z,s,Z.length-1,X),Y(Z,t,0,X)}i(V,"resolveCollisions");function Y(Z,X,te,U){for(;te<Z.length;++te){let ne=Z[te],se=(X-ne.y0)*U;se>1e-6&&(ne.y0+=se,ne.y1+=se),X=ne.y1+f}}i(Y,"resolveCollisionsTopToBottom");function Q(Z,X,te,U){for(;te>=0;--te){let ne=Z[te],se=(ne.y1-X)*U;se>1e-6&&(ne.y0-=se,ne.y1-=se),X=ne.y0-f}}i(Q,"resolveCollisionsBottomToTop");function q({sourceLinks:Z,targetLinks:X}){if(v===void 0){for(let{source:{sourceLinks:te}}of X)te.sort(rUr);for(let{target:{targetLinks:te}}of Z)te.sort(tUr)}}i(q,"reorderNodeLinks");function W(Z){if(v===void 0)for(let{sourceLinks:X,targetLinks:te}of Z)X.sort(rUr),te.sort(tUr)}i(W,"reorderLinks");function H(Z,X){let te=Z.y0-(Z.sourceLinks.length-1)*f/2;for(let{target:U,width:ne}of Z.sourceLinks){if(U===X)break;te+=ne+f}for(let{source:U,width:ne}of X.targetLinks){if(U===Z)break;te-=ne}return te}i(H,"targetTop");function re(Z,X){let te=X.y0-(X.targetLinks.length-1)*f/2;for(let{source:U,width:ne}of X.targetLinks){if(U===Z)break;te+=ne+f}for(let{target:U,width:ne}of Z.sourceLinks){if(U===X)break;te-=ne}return te}return i(re,"sourceTop"),S}var aUr=ae(()=>{"use strict";bht();Tht();eUr();i(tUr,"ascendingSourceBreadth");i(rUr,"ascendingTargetBreadth");i(rEe,"ascendingBreadth");i(kht,"value");i(pgi,"defaultId");i(ggi,"defaultNodes");i(mgi,"defaultLinks");i(nUr,"find");i(iUr,"computeLinkBreadths");i(nEe,"Sankey")});function Sht(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function sUr(){return new Sht}var Cht,Eht,kB,ygi,Aht,oUr=ae(()=>{"use strict";Cht=Math.PI,Eht=2*Cht,kB=1e-6,ygi=Eht-kB;i(Sht,"Path");i(sUr,"path");Sht.prototype=sUr.prototype={constructor:Sht,moveTo:i(function(r,t){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:i(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:i(function(r,t){this._+="L"+(this._x1=+r)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:i(function(r,t,a,s){this._+="Q"+ +r+","+ +t+","+(this._x1=+a)+","+(this._y1=+s)},"quadraticCurveTo"),bezierCurveTo:i(function(r,t,a,s,l,h){this._+="C"+ +r+","+ +t+","+ +a+","+ +s+","+(this._x1=+l)+","+(this._y1=+h)},"bezierCurveTo"),arcTo:i(function(r,t,a,s,l){r=+r,t=+t,a=+a,s=+s,l=+l;var h=this._x1,f=this._y1,d=a-r,m=s-t,b=h-r,v=f-t,T=b*b+v*v;if(l<0)throw new Error("negative radius: "+l);if(this._x1===null)this._+="M"+(this._x1=r)+","+(this._y1=t);else if(T>kB)if(!(Math.abs(v*d-m*b)>kB)||!l)this._+="L"+(this._x1=r)+","+(this._y1=t);else{var C=a-h,E=s-f,S=d*d+m*m,R=C*C+E*E,L=Math.sqrt(S),_=Math.sqrt(T),I=l*Math.tan((Cht-Math.acos((S+T-R)/(2*L*_)))/2),N=I/_,B=I/L;Math.abs(N-1)>kB&&(this._+="L"+(r+N*b)+","+(t+N*v)),this._+="A"+l+","+l+",0,0,"+ +(v*C>b*E)+","+(this._x1=r+B*d)+","+(this._y1=t+B*m)}},"arcTo"),arc:i(function(r,t,a,s,l,h){r=+r,t=+t,a=+a,h=!!h;var f=a*Math.cos(s),d=a*Math.sin(s),m=r+f,b=t+d,v=1^h,T=h?s-l:l-s;if(a<0)throw new Error("negative radius: "+a);this._x1===null?this._+="M"+m+","+b:(Math.abs(this._x1-m)>kB||Math.abs(this._y1-b)>kB)&&(this._+="L"+m+","+b),a&&(T<0&&(T=T%Eht+Eht),T>ygi?this._+="A"+a+","+a+",0,1,"+v+","+(r-f)+","+(t-d)+"A"+a+","+a+",0,1,"+v+","+(this._x1=m)+","+(this._y1=b):T>kB&&(this._+="A"+a+","+a+",0,"+ +(T>=Cht)+","+v+","+(this._x1=r+a*Math.cos(l))+","+(this._y1=t+a*Math.sin(l))))},"arc"),rect:i(function(r,t,a,s){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+t)+"h"+ +a+"v"+ +s+"h"+-a+"Z"},"rect"),toString:i(function(){return this._},"toString")};Aht=sUr});var lUr=ae(()=>{"use strict";oUr()});function iEe(r){return i(function(){return r},"constant")}var cUr=ae(()=>{"use strict";i(iEe,"default")});function uUr(r){return r[0]}function hUr(r){return r[1]}var fUr=ae(()=>{"use strict";i(uUr,"x");i(hUr,"y")});var dUr,pUr=ae(()=>{"use strict";dUr=Array.prototype.slice});function bgi(r){return r.source}function vgi(r){return r.target}function wgi(r){var t=bgi,a=vgi,s=uUr,l=hUr,h=null;function f(){var d,m=dUr.call(arguments),b=t.apply(this,m),v=a.apply(this,m);if(h||(h=d=Aht()),r(h,+s.apply(this,(m[0]=b,m)),+l.apply(this,m),+s.apply(this,(m[0]=v,m)),+l.apply(this,m)),d)return h=null,d+""||null}return i(f,"link"),f.source=function(d){return arguments.length?(t=d,f):t},f.target=function(d){return arguments.length?(a=d,f):a},f.x=function(d){return arguments.length?(s=typeof d=="function"?d:iEe(+d),f):s},f.y=function(d){return arguments.length?(l=typeof d=="function"?d:iEe(+d),f):l},f.context=function(d){return arguments.length?(h=d??null,f):h},f}function xgi(r,t,a,s,l){r.moveTo(t,a),r.bezierCurveTo(t=(t+s)/2,a,t,l,s,l)}function Rht(){return wgi(xgi)}var gUr=ae(()=>{"use strict";lUr();pUr();cUr();fUr();i(bgi,"linkSource");i(vgi,"linkTarget");i(wgi,"link");i(xgi,"curveHorizontal");i(Rht,"linkHorizontal")});var mUr=ae(()=>{"use strict";gUr()});function Tgi(r){return[r.source.x1,r.y0]}function kgi(r){return[r.target.x0,r.y1]}function aEe(){return Rht().source(Tgi).target(kgi)}var yUr=ae(()=>{"use strict";mUr();i(Tgi,"horizontalSource");i(kgi,"horizontalTarget");i(aEe,"default")});var bUr=ae(()=>{"use strict";aUr();Tht();yUr()});var tse,vUr=ae(()=>{"use strict";tse=class r{static{i(this,"Uid")}static{this.count=0}static next(t){return new r(t+ ++r.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}}});var Cgi,Egi,Sgi,wUr,xUr=ae(()=>{"use strict";ma();zo();bUr();$h();vUr();Cgi={left:vht,right:wht,center:xht,justify:ese},Egi=i(r=>{let t=0,a=0;for(let s of r){let l=s.value??0;l>t&&(t=l,a=s.layer??0)}return a},"findCentralNodeLayer"),Sgi=i(function(r,t,a,s){let{securityLevel:l,sankey:h}=er(),f=Az.sankey,d;l==="sandbox"&&(d=mn("#i"+t));let m=l==="sandbox"?mn(d.nodes()[0].contentDocument.body):mn("body"),b=l==="sandbox"?m.select(`[id="${t}"]`):mn(`[id="${t}"]`),v=h?.width??f.width,T=h?.height??f.width,C=h?.useMaxWidth??f.useMaxWidth,E=h?.nodeAlignment??f.nodeAlignment,S=h?.prefix??f.prefix,R=h?.suffix??f.suffix,L=h?.showValues??f.showValues,_=h?.nodeWidth??f.nodeWidth??10,I=h?.nodePadding??f.nodePadding??12,N=h?.labelStyle??f.labelStyle??"legacy",B=h?.nodeColors??{},O=s.db.getGraph(),P=Cgi[E];nEe().nodeId(U=>U.id).nodeWidth(_).nodePadding(I+(L?15:0)).nodeAlign(P).extent([[0,0],[v,T]])(O);let V=Egi(O.nodes),Y=Kw(aJe),Q=i(U=>B[U]??Y(U),"getNodeColor");b.append("g").attr("class","nodes").selectAll(".node").data(O.nodes).join("g").attr("class","node").attr("id",U=>(U.uid=tse.next("node-")).id).attr("transform",function(U){return"translate("+U.x0+","+U.y0+")"}).attr("x",U=>U.x0).attr("y",U=>U.y0).append("rect").attr("height",U=>U.y1-U.y0).attr("width",U=>U.x1-U.x0).attr("fill",U=>Q(U.id));let q=i(({id:U,value:ne})=>L?`${U}
|
|
${S}${Math.round(ne*100)/100}${R}`:U,"getText"),W=i(U=>N==="outlined"?(U.layer??0)<V?{x:U.x0-6,anchor:"end"}:{x:U.x1+6,anchor:"start"}:U.x0<v/2?{x:U.x1+6,anchor:"start"}:{x:U.x0-6,anchor:"end"},"getLabelPosition"),H=b.append("g").attr("class","node-labels").attr("font-size",14),re=i(U=>H.selectAll(U?`.${U}`:"text").data(O.nodes).join("text").attr("class",U??null).attr("x",ne=>W(ne).x).attr("y",ne=>(ne.y1+ne.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",ne=>W(ne).anchor).text(q),"appendLabel");N==="outlined"?(re("sankey-label-bg"),re("sankey-label-fg")):re();let Z=b.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(O.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),X=h?.linkColor??"gradient";if(X==="gradient"){let U=Z.append("linearGradient").attr("id",ne=>(ne.uid=tse.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",ne=>ne.source.x1).attr("x2",ne=>ne.target.x0);U.append("stop").attr("offset","0%").attr("stop-color",ne=>Q(ne.source.id)),U.append("stop").attr("offset","100%").attr("stop-color",ne=>Q(ne.target.id))}let te;switch(X){case"gradient":te=i(U=>U.uid,"coloring");break;case"source":te=i(U=>Q(U.source.id),"coloring");break;case"target":te=i(U=>Q(U.target.id),"coloring");break;default:te=X}Z.append("path").attr("d",aEe()).attr("stroke",te).attr("stroke-width",U=>Math.max(1,U.width)),BT(void 0,b,0,C)},"draw"),wUr={draw:Sgi}});var TUr,kUr=ae(()=>{"use strict";TUr=i(r=>r.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
`).trim(),"prepareTextForParsing")});var Agi,CUr,EUr=ae(()=>{"use strict";Agi=i(r=>`.label {
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
.node-labels {
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
/* Outlined label style - background stroke for better readability */
|
|
.sankey-label-bg {
|
|
stroke: ${r.mainBkg||r.background||"#fff"};
|
|
stroke-width: 4px;
|
|
stroke-linejoin: round;
|
|
paint-order: stroke;
|
|
}
|
|
|
|
/* Foreground label text */
|
|
.sankey-label-fg {
|
|
fill: ${r.textColor};
|
|
}
|
|
|
|
/* Node styling */
|
|
.node rect {
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
/* Link styling */
|
|
.link {
|
|
fill: none;
|
|
stroke-opacity: 0.5;
|
|
mix-blend-mode: multiply;
|
|
}
|
|
`,"getStyles"),CUr=Agi});var SUr={};is(SUr,{diagram:()=>Lgi});var Rgi,Lgi,AUr=ae(()=>{"use strict";Yzr();Kzr();xUr();kUr();EUr();Rgi=Qae.parse.bind(Qae);Qae.parse=r=>Rgi(TUr(r));Lgi={styles:CUr,parser:Qae,db:Xzr,renderer:wUr}});var Mgi,PW,Lht=ae(()=>{"use strict";Xs();pp();Ma();Au();Mgi=ps.packet,PW=class{constructor(){this.packet=[];this.setAccTitle=Os;this.getAccTitle=Vs;this.setDiagramTitle=io;this.getDiagramTitle=Ks;this.getAccDescription=Ws;this.setAccDescription=$s}static{i(this,"PacketDB")}getConfig(){let t=il({...Mgi,...ri().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){Ds(),this.packet=[]}}});var Ngi,Ogi,Pgi,_ht,_Ur=ae(()=>{"use strict";w1();Yn();Gb();Lht();Ngi=1e4,Ogi=i((r,t)=>{Eh(r,t);let a=-1,s=[],l=1,{bitsPerRow:h}=t.getConfig();for(let{start:f,end:d,bits:m,label:b}of r.blocks){if(f!==void 0&&d!==void 0&&d<f)throw new Error(`Packet block ${f} - ${d} is invalid. End must be greater than start.`);if(f??=a+1,f!==a+1)throw new Error(`Packet block ${f} - ${d??f} is not contiguous. It should start from ${a+1}.`);if(m===0)throw new Error(`Packet block ${f} is invalid. Cannot have a zero bit field.`);for(d??=f+(m??1)-1,m??=d-f+1,a=d,Pe.debug(`Packet block ${f} - ${a} with label ${b}`);s.length<=h+1&&t.getPacket().length<Ngi;){let[v,T]=Pgi({start:f,end:d,bits:m,label:b},l,h);if(s.push(v),v.end+1===l*h&&(t.pushWord(s),s=[],l++),!T)break;({start:f,end:d,bits:m,label:b}=T)}}t.pushWord(s)},"populate"),Pgi=i((r,t,a)=>{if(r.start===void 0)throw new Error("start should have been set during first phase");if(r.end===void 0)throw new Error("end should have been set during first phase");if(r.start>r.end)throw new Error(`Block start ${r.start} is greater than block end ${r.end}.`);if(r.end+1<=t*a)return[r,void 0];let s=t*a-1,l=t*a;return[{start:r.start,end:s,label:r.label,bits:s-r.start},{start:l,end:r.end,label:r.label,bits:r.end-l}]},"getNextFittingBlock"),_ht={parser:{yy:void 0},parse:i(async r=>{let t=await Gd("packet",r),a=_ht.parser?.yy;if(!(a instanceof PW))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Pe.debug(t),Ogi(t,a)},"parse")}});var Bgi,Fgi,DUr,IUr=ae(()=>{"use strict";x1();$h();Bgi=i((r,t,a,s)=>{let l=s.db,h=l.getConfig(),{rowHeight:f,paddingY:d,bitWidth:m,bitsPerRow:b}=h,v=l.getPacket(),T=l.getDiagramTitle(),C=f+d,E=C*(v.length+1)-(T?0:f),S=m*b+2,R=pu(t);R.attr("viewBox",`0 0 ${S} ${E}`),wl(R,E,S,h.useMaxWidth);for(let[L,_]of v.entries())Fgi(R,_,L,h);R.append("text").text(T).attr("x",S/2).attr("y",E-C/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),Fgi=i((r,t,a,{rowHeight:s,paddingX:l,paddingY:h,bitWidth:f,bitsPerRow:d,showBits:m,bitOrder:b})=>{let v=r.append("g"),T=a*(s+h)+h,C=b==="descending";for(let E of t){let S=E.end-E.start+1,R=E.start%d,_=(C?d-R-S:R)*f+1,I=S*f-l;if(v.append("rect").attr("x",_).attr("y",T).attr("width",I).attr("height",s).attr("class","packetBlock"),v.append("text").attr("x",_+I/2).attr("y",T+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(E.label),!m)continue;let[N,B]=C?[E.end,E.start]:[E.start,E.end],O=S===1,P=T-2;v.append("text").attr("x",_+(O?I/2:0)).attr("y",P).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",O?"middle":"start").text(N),O||v.append("text").attr("x",_+I).attr("y",P).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(B)}},"drawWord"),DUr={draw:Bgi}});var $gi,MUr,NUr=ae(()=>{"use strict";Ma();$gi={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},MUr=i(({packet:r}={})=>{let t=il($gi,r);return`
|
|
.packetByte {
|
|
font-size: ${t.byteFontSize};
|
|
}
|
|
.packetByte.start {
|
|
fill: ${t.startByteColor};
|
|
}
|
|
.packetByte.end {
|
|
fill: ${t.endByteColor};
|
|
}
|
|
.packetLabel {
|
|
fill: ${t.labelColor};
|
|
font-size: ${t.labelFontSize};
|
|
}
|
|
.packetTitle {
|
|
fill: ${t.titleColor};
|
|
font-size: ${t.titleFontSize};
|
|
}
|
|
.packetBlock {
|
|
stroke: ${t.blockStrokeColor};
|
|
stroke-width: ${t.blockStrokeWidth};
|
|
fill: ${t.blockFillColor};
|
|
}
|
|
`},"styles")});var OUr={};is(OUr,{diagram:()=>Ggi});var Ggi,PUr=ae(()=>{"use strict";Lht();_Ur();IUr();NUr();Ggi={parser:_ht,get db(){return new PW},renderer:DUr,styles:MUr}});var BW,sEe,$Ur,ZS,Ugi,Vgi,GUr,Wgi,Hgi,qgi,Ygi,Xgi,Kgi,Jgi,CB,Dht=ae(()=>{"use strict";Xs();pp();Ma();Au();Yn();BW={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},sEe=32,$Ur={axes:[],curves:[],options:BW},ZS=structuredClone($Ur),Ugi=ps.radar,Vgi=i(()=>il({...Ugi,...ri().radar}),"getConfig"),GUr=i(()=>ZS.axes,"getAxes"),Wgi=i(()=>ZS.curves,"getCurves"),Hgi=i(()=>ZS.options,"getOptions"),qgi=i(r=>{ZS.axes=r.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Ygi=i(r=>{ZS.curves=r.map(t=>({name:t.name,label:t.label??t.name,entries:Xgi(t.entries)}))},"setCurves"),Xgi=i(r=>{if(r[0].axis==null)return r.map(a=>a.value);let t=GUr();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(a=>{let s=r.find(l=>l.axis?.$refText===a.name);if(s===void 0)throw new Error("Missing entry for axis "+a.label);return s.value})},"computeCurveEntries"),Kgi=i(r=>{let t=r.reduce((a,s)=>(a[s.name]=s,a),{});ZS.options={showLegend:t.showLegend?.value??BW.showLegend,ticks:t.ticks?.value??BW.ticks,max:t.max?.value??BW.max,min:t.min?.value??BW.min,graticule:t.graticule?.value??BW.graticule},ZS.options.ticks>sEe&&(Pe.warn(`Radar diagram ticks (${ZS.options.ticks}) exceeds maximum allowed (${sEe}). Using ${sEe} instead.`),ZS.options.ticks=sEe)},"setOptions"),Jgi=i(()=>{Ds(),ZS=structuredClone($Ur)},"clear"),CB={getAxes:GUr,getCurves:Wgi,getOptions:Hgi,setAxes:qgi,setCurves:Ygi,setOptions:Kgi,getConfig:Vgi,clear:Jgi,setAccTitle:Os,getAccTitle:Vs,setDiagramTitle:io,getDiagramTitle:Ks,getAccDescription:Ws,setAccDescription:$s}});var Qgi,jUr,zUr=ae(()=>{"use strict";w1();Yn();Gb();Dht();Qgi=i(r=>{Eh(r,CB);let{axes:t,curves:a,options:s}=r;CB.setAxes(t),CB.setCurves(a),CB.setOptions(s)},"populate"),jUr={parse:i(async r=>{let t=await Gd("radar",r);Pe.debug(t),Qgi(t)},"parse")}});function n0i(r,t,a,s,l,h,f){let d=t.length,m=Math.min(f.width,f.height)/2;a.forEach((b,v)=>{if(b.entries.length!==d)return;let T=b.entries.map((C,E)=>{let S=2*Math.PI*E/d-Math.PI/2,R=i0i(C,s,l,m),L=R*Math.cos(S),_=R*Math.sin(S);return{x:L,y:_}});h==="circle"?r.append("path").attr("d",a0i(T,f.curveTension)).attr("class",`radarCurve-${v}`):h==="polygon"&&r.append("polygon").attr("points",T.map(C=>`${C.x},${C.y}`).join(" ")).attr("class",`radarCurve-${v}`)})}function i0i(r,t,a,s){let l=Math.min(Math.max(r,t),a);return s*(l-t)/(a-t)}function a0i(r,t){let a=r.length,s=`M${r[0].x},${r[0].y}`;for(let l=0;l<a;l++){let h=r[(l-1+a)%a],f=r[l],d=r[(l+1)%a],m=r[(l+2)%a],b={x:f.x+(d.x-h.x)*t,y:f.y+(d.y-h.y)*t},v={x:d.x-(m.x-f.x)*t,y:d.y-(m.y-f.y)*t};s+=` C${b.x},${b.y} ${v.x},${v.y} ${d.x},${d.y}`}return`${s} Z`}function s0i(r,t,a,s){if(!a)return;let l=(s.width/2+s.marginRight)*3/4,h=-(s.height/2+s.marginTop)*3/4,f=20;t.forEach((d,m)=>{let b=r.append("g").attr("transform",`translate(${l}, ${h+m*f})`);b.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${m}`),b.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(d.label)})}var Zgi,e0i,t0i,r0i,UUr,VUr=ae(()=>{"use strict";x1();$h();Zgi=i((r,t,a,s)=>{let l=s.db,h=l.getAxes(),f=l.getCurves(),d=l.getOptions(),m=l.getConfig(),b=l.getDiagramTitle(),v=pu(t),T=e0i(v,m),C=d.max??Math.max(...f.map(R=>Math.max(...R.entries))),E=d.min,S=Math.min(m.width,m.height)/2;t0i(T,h,S,d.ticks,d.graticule),r0i(T,h,S,m),n0i(T,h,f,E,C,d.graticule,m),s0i(T,f,d.showLegend,m),T.append("text").attr("class","radarTitle").text(b).attr("x",0).attr("y",-m.height/2-m.marginTop)},"draw"),e0i=i((r,t)=>{let a=t.width+t.marginLeft+t.marginRight,s=t.height+t.marginTop+t.marginBottom,l={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return wl(r,s,a,t.useMaxWidth??!0),r.attr("viewBox",`0 0 ${a} ${s}`).attr("overflow","visible"),r.append("g").attr("transform",`translate(${l.x}, ${l.y})`)},"drawFrame"),t0i=i((r,t,a,s,l)=>{if(l==="circle")for(let h=0;h<s;h++){let f=a*(h+1)/s;r.append("circle").attr("r",f).attr("class","radarGraticule")}else if(l==="polygon"){let h=t.length;for(let f=0;f<s;f++){let d=a*(f+1)/s,m=t.map((b,v)=>{let T=2*v*Math.PI/h-Math.PI/2,C=d*Math.cos(T),E=d*Math.sin(T);return`${C},${E}`}).join(" ");r.append("polygon").attr("points",m).attr("class","radarGraticule")}}},"drawGraticule"),r0i=i((r,t,a,s)=>{let l=t.length;for(let h=0;h<l;h++){let f=t[h].label,d=2*h*Math.PI/l-Math.PI/2,m=Math.cos(d),b=Math.sin(d);r.append("line").attr("x1",0).attr("y1",0).attr("x2",a*s.axisScaleFactor*m).attr("y2",a*s.axisScaleFactor*b).attr("class","radarAxisLine");let v=m>.01?"start":m<-.01?"end":"middle",T=b>.01?"hanging":b<-.01?"auto":"central",C=4;r.append("text").text(f).attr("x",a*s.axisLabelFactor*m+C*m).attr("y",a*s.axisLabelFactor*b+C*b).attr("text-anchor",v).attr("dominant-baseline",T).attr("class","radarAxisLabel")}},"drawAxes");i(n0i,"drawCurves");i(i0i,"relativeRadius");i(a0i,"closedRoundCurve");i(s0i,"drawLegend");UUr={draw:Zgi}});var o0i,l0i,WUr,HUr=ae(()=>{"use strict";Ma();jE();Xs();o0i=i((r,t)=>{let a="";for(let s=0;s<r.THEME_COLOR_LIMIT;s++){let l=r[`cScale${s}`];a+=`
|
|
.radarCurve-${s} {
|
|
color: ${l};
|
|
fill: ${l};
|
|
fill-opacity: ${t.curveOpacity};
|
|
stroke: ${l};
|
|
stroke-width: ${t.curveStrokeWidth};
|
|
}
|
|
.radarLegendBox-${s} {
|
|
fill: ${l};
|
|
fill-opacity: ${t.curveOpacity};
|
|
stroke: ${l};
|
|
}
|
|
`}return a},"genIndexStyles"),l0i=i(r=>{let t=hm(),a=ri(),s=il(t,a.themeVariables),l=il(s.radar,r);return{themeVariables:s,radarOptions:l}},"buildRadarStyleOptions"),WUr=i(({radar:r}={})=>{let{themeVariables:t,radarOptions:a}=l0i(r);return`
|
|
.radarTitle {
|
|
font-size: ${t.fontSize};
|
|
color: ${t.titleColor};
|
|
dominant-baseline: hanging;
|
|
text-anchor: middle;
|
|
}
|
|
.radarAxisLine {
|
|
stroke: ${a.axisColor};
|
|
stroke-width: ${a.axisStrokeWidth};
|
|
}
|
|
.radarAxisLabel {
|
|
font-size: ${a.axisLabelFontSize}px;
|
|
color: ${a.axisColor};
|
|
}
|
|
.radarGraticule {
|
|
fill: ${a.graticuleColor};
|
|
fill-opacity: ${a.graticuleOpacity};
|
|
stroke: ${a.graticuleColor};
|
|
stroke-width: ${a.graticuleStrokeWidth};
|
|
}
|
|
.radarLegendText {
|
|
text-anchor: start;
|
|
font-size: ${a.legendFontSize}px;
|
|
dominant-baseline: hanging;
|
|
}
|
|
${o0i(t,a)}
|
|
`},"styles")});var qUr={};is(qUr,{diagram:()=>c0i});var c0i,YUr=ae(()=>{"use strict";Dht();zUr();VUr();HUr();c0i={parser:jUr,db:CB,renderer:UUr,styles:WUr}});var Iht,JUr,QUr=ae(()=>{"use strict";Iht=(function(){var r=i(function(N,B,O,P){for(O=O||{},P=N.length;P--;O[N[P]]=B);return O},"o"),t=[1,15],a=[1,7],s=[1,13],l=[1,14],h=[1,19],f=[1,16],d=[1,17],m=[1,18],b=[8,30],v=[8,10,21,28,29,30,31,39,43,46],T=[1,23],C=[1,24],E=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],R=[1,49],L={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:i(function(B,O,P,$,V,Y,Q){var q=Y.length-1;switch(V){case 4:$.getLogger().debug("Rule: separator (NL) ");break;case 5:$.getLogger().debug("Rule: separator (Space) ");break;case 6:$.getLogger().debug("Rule: separator (EOF) ");break;case 7:$.getLogger().debug("Rule: hierarchy: ",Y[q-1]),$.setHierarchy(Y[q-1]);break;case 8:$.getLogger().debug("Stop NL ");break;case 9:$.getLogger().debug("Stop EOF ");break;case 10:$.getLogger().debug("Stop NL2 ");break;case 11:$.getLogger().debug("Stop EOF2 ");break;case 12:$.getLogger().debug("Rule: statement: ",Y[q]),typeof Y[q].length=="number"?this.$=Y[q]:this.$=[Y[q]];break;case 13:$.getLogger().debug("Rule: statement #2: ",Y[q-1]),this.$=[Y[q-1]].concat(Y[q]);break;case 14:$.getLogger().debug("Rule: link: ",Y[q],B),this.$={edgeTypeStr:Y[q],label:""};break;case 15:$.getLogger().debug("Rule: LABEL link: ",Y[q-3],Y[q-1],Y[q]),this.$={edgeTypeStr:Y[q],label:Y[q-1]};break;case 18:let W=parseInt(Y[q]),H=$.generateId();this.$={id:H,type:"space",label:"",width:W,children:[]};break;case 23:$.getLogger().debug("Rule: (nodeStatement link node) ",Y[q-2],Y[q-1],Y[q]," typestr: ",Y[q-1].edgeTypeStr);let re=$.edgeStrToEdgeData(Y[q-1].edgeTypeStr),Z=$.edgeStrToEdgeStartData(Y[q-1].edgeTypeStr),X=$.edgeStrToThickness(Y[q-1].edgeTypeStr),te=$.edgeStrToPattern(Y[q-1].edgeTypeStr);this.$=[{id:Y[q-2].id,label:Y[q-2].label,type:Y[q-2].type,directions:Y[q-2].directions},{id:Y[q-2].id+"-"+Y[q].id,start:Y[q-2].id,end:Y[q].id,label:Y[q-1].label,type:"edge",thickness:X,pattern:te,directions:Y[q].directions,arrowTypeEnd:re,arrowTypeStart:Z},{id:Y[q].id,label:Y[q].label,type:$.typeStr2Type(Y[q].typeStr),directions:Y[q].directions}];break;case 24:$.getLogger().debug("Rule: nodeStatement (abc88 node size) ",Y[q-1],Y[q]),this.$={id:Y[q-1].id,label:Y[q-1].label,type:$.typeStr2Type(Y[q-1].typeStr),directions:Y[q-1].directions,widthInColumns:parseInt(Y[q],10)};break;case 25:$.getLogger().debug("Rule: nodeStatement (node) ",Y[q]),this.$={id:Y[q].id,label:Y[q].label,type:$.typeStr2Type(Y[q].typeStr),directions:Y[q].directions,widthInColumns:1};break;case 26:$.getLogger().debug("APA123",this?this:"na"),$.getLogger().debug("COLUMNS: ",Y[q]),this.$={type:"column-setting",columns:Y[q]==="auto"?-1:parseInt(Y[q])};break;case 27:$.getLogger().debug("Rule: id-block statement : ",Y[q-2],Y[q-1]);let U=$.generateId();this.$={...Y[q-2],type:"composite",children:Y[q-1]};break;case 28:$.getLogger().debug("Rule: blockStatement : ",Y[q-2],Y[q-1],Y[q]);let ne=$.generateId();this.$={id:ne,type:"composite",label:"",children:Y[q-1]};break;case 29:$.getLogger().debug("Rule: node (NODE_ID separator): ",Y[q]),this.$={id:Y[q]};break;case 30:$.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",Y[q-1],Y[q]),this.$={id:Y[q-1],label:Y[q].label,typeStr:Y[q].typeStr,directions:Y[q].directions};break;case 31:$.getLogger().debug("Rule: dirList: ",Y[q]),this.$=[Y[q]];break;case 32:$.getLogger().debug("Rule: dirList: ",Y[q-1],Y[q]),this.$=[Y[q-1]].concat(Y[q]);break;case 33:$.getLogger().debug("Rule: nodeShapeNLabel: ",Y[q-2],Y[q-1],Y[q]),this.$={typeStr:Y[q-2]+Y[q],label:Y[q-1]};break;case 34:$.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",Y[q-3],Y[q-2]," #3:",Y[q-1],Y[q]),this.$={typeStr:Y[q-3]+Y[q],label:Y[q-2],directions:Y[q-1]};break;case 35:case 36:this.$={type:"classDef",id:Y[q-1].trim(),css:Y[q].trim()};break;case 37:this.$={type:"applyClass",id:Y[q-1].trim(),styleClass:Y[q].trim()};break;case 38:this.$={type:"applyStyles",id:Y[q-1].trim(),stylesStr:Y[q].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:l,31:h,39:f,43:d,46:m},{8:[1,20]},r(b,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:s,29:l,31:h,39:f,43:d,46:m}),r(v,[2,16],{14:22,15:T,16:C}),r(v,[2,17]),r(v,[2,18]),r(v,[2,19]),r(v,[2,20]),r(v,[2,21]),r(v,[2,22]),r(E,[2,25],{27:[1,25]}),r(v,[2,26]),{19:26,26:12,31:h},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:l,31:h,39:f,43:d,46:m},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},r(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},r(b,[2,13]),{26:35,31:h},{31:[2,14]},{17:[1,36]},r(E,[2,24]),{10:t,11:37,13:4,14:22,15:T,16:C,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:l,31:h,39:f,43:d,46:m},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},r(S,[2,30]),{18:[1,43]},{18:[1,44]},r(E,[2,23]),{18:[1,45]},{30:[1,46]},r(v,[2,28]),r(v,[2,35]),r(v,[2,36]),r(v,[2,37]),r(v,[2,38]),{36:[1,47]},{33:48,34:R},{15:[1,50]},r(v,[2,27]),r(S,[2,33]),{38:[1,51]},{33:52,34:R,38:[2,31]},{31:[2,15]},r(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:i(function(B,O){if(O.recoverable)this.trace(B);else{var P=new Error(B);throw P.hash=O,P}},"parseError"),parse:i(function(B){var O=this,P=[0],$=[],V=[null],Y=[],Q=this.table,q="",W=0,H=0,re=0,Z=2,X=1,te=Y.slice.call(arguments,1),U=Object.create(this.lexer),ne={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(ne.yy[se]=this.yy[se]);U.setInput(B,ne.yy),ne.yy.lexer=U,ne.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var he=U.yylloc;Y.push(he);var le=U.options&&U.options.ranges;typeof ne.yy.parseError=="function"?this.parseError=ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(tr){P.length=P.length-2*tr,V.length=V.length-tr,Y.length=Y.length-tr}i(pe,"popStack");function ge(){var tr;return tr=$.pop()||U.lex()||X,typeof tr!="number"&&(tr instanceof Array&&($=tr,tr=$.pop()),tr=O.symbols_[tr]||tr),tr}i(ge,"lex");for(var we,Ae,ve,Ie,De,Be,Fe={},ze,vt,lt,Ft;;){if(ve=P[P.length-1],this.defaultActions[ve]?Ie=this.defaultActions[ve]:((we===null||typeof we>"u")&&(we=ge()),Ie=Q[ve]&&Q[ve][we]),typeof Ie>"u"||!Ie.length||!Ie[0]){var pr="";Ft=[];for(ze in Q[ve])this.terminals_[ze]&&ze>Z&&Ft.push("'"+this.terminals_[ze]+"'");U.showPosition?pr="Parse error on line "+(W+1)+`:
|
|
`+U.showPosition()+`
|
|
Expecting `+Ft.join(", ")+", got '"+(this.terminals_[we]||we)+"'":pr="Parse error on line "+(W+1)+": Unexpected "+(we==X?"end of input":"'"+(this.terminals_[we]||we)+"'"),this.parseError(pr,{text:U.match,token:this.terminals_[we]||we,line:U.yylineno,loc:he,expected:Ft})}if(Ie[0]instanceof Array&&Ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ve+", token: "+we);switch(Ie[0]){case 1:P.push(we),V.push(U.yytext),Y.push(U.yylloc),P.push(Ie[1]),we=null,Ae?(we=Ae,Ae=null):(H=U.yyleng,q=U.yytext,W=U.yylineno,he=U.yylloc,re>0&&re--);break;case 2:if(vt=this.productions_[Ie[1]][1],Fe.$=V[V.length-vt],Fe._$={first_line:Y[Y.length-(vt||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(vt||1)].first_column,last_column:Y[Y.length-1].last_column},le&&(Fe._$.range=[Y[Y.length-(vt||1)].range[0],Y[Y.length-1].range[1]]),Be=this.performAction.apply(Fe,[q,H,W,ne.yy,Ie[1],V,Y].concat(te)),typeof Be<"u")return Be;vt&&(P=P.slice(0,-1*vt*2),V=V.slice(0,-1*vt),Y=Y.slice(0,-1*vt)),P.push(this.productions_[Ie[1]][0]),V.push(Fe.$),Y.push(Fe._$),lt=Q[P[P.length-2]][P[P.length-1]],P.push(lt);break;case 3:return!0}}return!0},"parse")},_=(function(){var N={EOF:1,parseError:i(function(O,P){if(this.yy.parser)this.yy.parser.parseError(O,P);else throw new Error(O)},"parseError"),setInput:i(function(B,O){return this.yy=O||this.yy||{},this._input=B,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var B=this._input[0];this.yytext+=B,this.yyleng++,this.offset++,this.match+=B,this.matched+=B;var O=B.match(/(?:\r\n?|\n).*/g);return O?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),B},"input"),unput:i(function(B){var O=B.length,P=B.split(/(?:\r\n?|\n)/g);this._input=B+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var $=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),P.length-1&&(this.yylineno-=P.length-1);var V=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:P?(P.length===$.length?this.yylloc.first_column:0)+$[$.length-P.length].length-P[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(B){this.unput(this.match.slice(B))},"less"),pastInput:i(function(){var B=this.matched.substr(0,this.matched.length-this.match.length);return(B.length>20?"...":"")+B.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var B=this.match;return B.length<20&&(B+=this._input.substr(0,20-B.length)),(B.substr(0,20)+(B.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var B=this.pastInput(),O=new Array(B.length+1).join("-");return B+this.upcomingInput()+`
|
|
`+O+"^"},"showPosition"),test_match:i(function(B,O){var P,$,V;if(this.options.backtrack_lexer&&(V={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(V.yylloc.range=this.yylloc.range.slice(0))),$=B[0].match(/(?:\r\n?|\n).*/g),$&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+B[0].length},this.yytext+=B[0],this.match+=B[0],this.matches=B,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(B[0].length),this.matched+=B[0],P=this.performAction.call(this,this.yy,this,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),P)return P;if(this._backtrack){for(var Y in V)this[Y]=V[Y];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var B,O,P,$;this._more||(this.yytext="",this.match="");for(var V=this._currentRules(),Y=0;Y<V.length;Y++)if(P=this._input.match(this.rules[V[Y]]),P&&(!O||P[0].length>O[0].length)){if(O=P,$=Y,this.options.backtrack_lexer){if(B=this.test_match(P,V[Y]),B!==!1)return B;if(this._backtrack){O=!1;continue}else return!1}else if(!this.options.flex)break}return O?(B=this.test_match(O,V[$]),B!==!1?B:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var O=this.next();return O||this.lex()},"lex"),begin:i(function(O){this.conditionStack.push(O)},"begin"),popState:i(function(){var O=this.conditionStack.length-1;return O>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(O){return O=this.conditionStack.length-1-Math.abs(O||0),O>=0?this.conditionStack[O]:"INITIAL"},"topState"),pushState:i(function(O){this.begin(O)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(O,P,$,V){var Y=V;switch($){case 0:return O.getLogger().debug("Found block-beta"),10;break;case 1:return O.getLogger().debug("Found id-block"),29;break;case 2:return O.getLogger().debug("Found block"),10;break;case 3:O.getLogger().debug(".",P.yytext);break;case 4:O.getLogger().debug("_",P.yytext);break;case 5:return 5;case 6:return P.yytext=-1,28;break;case 7:return P.yytext=P.yytext.replace(/columns\s+/,""),O.getLogger().debug("COLUMNS (LEX)",P.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:O.getLogger().debug("LEX: POPPING STR:",P.yytext),this.popState();break;case 13:return O.getLogger().debug("LEX: STR end:",P.yytext),"STR";break;case 14:return P.yytext=P.yytext.replace(/space\:/,""),O.getLogger().debug("SPACE NUM (LEX)",P.yytext),21;break;case 15:return P.yytext="1",O.getLogger().debug("COLUMNS (LEX)",P.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),O.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),O.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),O.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),O.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),O.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),O.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),O.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),O.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),O.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),O.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),O.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),O.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),O.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),O.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),O.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),O.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),O.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return O.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return O.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return O.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return O.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return O.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return O.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return O.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return O.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return O.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return O.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return O.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return O.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),O.getLogger().debug("LEX ARR START"),37;break;case 74:return O.getLogger().debug("Lex: NODE_ID",P.yytext),31;break;case 75:return O.getLogger().debug("Lex: EOF",P.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:O.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:O.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return O.getLogger().debug("LEX: NODE_DESCR:",P.yytext),"NODE_DESCR";break;case 83:O.getLogger().debug("LEX POPPING"),this.popState();break;case 84:O.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return P.yytext=P.yytext.replace(/^,\s*/,""),O.getLogger().debug("Lex (right): dir:",P.yytext),"DIR";break;case 86:return P.yytext=P.yytext.replace(/^,\s*/,""),O.getLogger().debug("Lex (left):",P.yytext),"DIR";break;case 87:return P.yytext=P.yytext.replace(/^,\s*/,""),O.getLogger().debug("Lex (x):",P.yytext),"DIR";break;case 88:return P.yytext=P.yytext.replace(/^,\s*/,""),O.getLogger().debug("Lex (y):",P.yytext),"DIR";break;case 89:return P.yytext=P.yytext.replace(/^,\s*/,""),O.getLogger().debug("Lex (up):",P.yytext),"DIR";break;case 90:return P.yytext=P.yytext.replace(/^,\s*/,""),O.getLogger().debug("Lex (down):",P.yytext),"DIR";break;case 91:return P.yytext="]>",O.getLogger().debug("Lex (ARROW_DIR end):",P.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return O.getLogger().debug("Lex: LINK","#"+P.yytext+"#"),15;break;case 93:return O.getLogger().debug("Lex: LINK",P.yytext),15;break;case 94:return O.getLogger().debug("Lex: LINK",P.yytext),15;break;case 95:return O.getLogger().debug("Lex: LINK",P.yytext),15;break;case 96:return O.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 97:return O.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 98:return O.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return O.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),O.getLogger().debug("Lex: LINK","#"+P.yytext+"#"),15;break;case 102:return this.popState(),O.getLogger().debug("Lex: LINK",P.yytext),15;break;case 103:return this.popState(),O.getLogger().debug("Lex: LINK",P.yytext),15;break;case 104:return O.getLogger().debug("Lex: COLON",P.yytext),P.yytext=P.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return N})();L.lexer=_;function I(){this.yy={}}return i(I,"Parser"),I.prototype=L,L.Parser=I,new I})();Iht.parser=Iht;JUr=Iht});function b0i(r){switch(Pe.debug("typeStr2Type",r),r){case"[]":return"square";case"()":return Pe.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function v0i(r){return Pe.debug("typeStr2Type",r),r==="=="?"thick":"normal"}function w0i(r){switch(r.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function x0i(r){switch(r.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function T0i(r){return r.includes("==")?"thick":"normal"}function k0i(r){return r.includes(".-")?"dotted":"solid"}var rC,Nht,Mht,ZUr,eVr,f0i,rVr,oEe,Oht,d0i,p0i,g0i,m0i,nVr,iVr,Pht,rse,y0i,tVr,C0i,E0i,S0i,A0i,R0i,L0i,_0i,D0i,I0i,M0i,N0i,O0i,P0i,aVr,sVr=ae(()=>{"use strict";J2e();Xs();ma();Yn();nl();Au();rC=new Map,Nht=[],Mht=new Map,ZUr="color",eVr="fill",f0i="bgFill",rVr=",",oEe=new Map,Oht="",d0i=i(r=>Xn.sanitizeText(r,er()),"sanitizeText"),p0i=i(function(r,t=""){let a=oEe.get(r);a||(a={id:r,styles:[],textStyles:[]},oEe.set(r,a)),t?.split(rVr).forEach(s=>{let l=s.replace(/([^;]*);/,"$1").trim();if(RegExp(ZUr).exec(s)){let f=l.replace(eVr,f0i).replace(ZUr,eVr);a.textStyles.push(f)}a.styles.push(l)})},"addStyleClass"),g0i=i(function(r,t=""){let a=rC.get(r);t!=null&&(a.styles=t.split(rVr))},"addStyle2Node"),m0i=i(function(r,t){r.split(",").forEach(function(a){let s=rC.get(a);if(s===void 0){let l=a.trim();s={id:l,type:"na",children:[]},rC.set(l,s)}s.classes||(s.classes=[]),s.classes.push(t)})},"setCssClass"),nVr=0,iVr=i((r,t)=>{let a=r.flat(),s=[],h=a.find(f=>f?.type==="column-setting")?.columns??-1;for(let f of a){if(typeof h=="number"&&h>0&&f.type!=="column-setting"&&typeof f.widthInColumns=="number"&&f.widthInColumns>h&&Pe.warn(`Block ${f.id} width ${f.widthInColumns} exceeds configured column width ${h}`),f.label&&(f.label=d0i(f.label)),f.type==="classDef"){p0i(f.id,f.css);continue}if(f.type==="applyClass"){m0i(f.id,f?.styleClass??"");continue}if(f.type==="applyStyles"){f?.stylesStr&&g0i(f.id,f?.stylesStr);continue}if(f.type==="column-setting")t.columns=f.columns??-1;else if(f.type==="edge"){let d=(Mht.get(f.id)??0)+1;Mht.set(f.id,d),f.id=d+"-"+f.id,Nht.push(f)}else{f.label||(f.type==="composite"?f.label="":f.label=f.id);let d=rC.get(f.id);if(d===void 0?(f.type==="composite"&&(f.colorIndex=nVr++),rC.set(f.id,f)):(f.type!=="na"&&(d.type=f.type),f.label!==f.id&&(d.label=f.label)),f.children&&iVr(f.children,f),f.type==="space"){let m=f.width??1;for(let b=0;b<m;b++){let v=DJe(f);v.id=v.id+"-"+b,rC.set(v.id,v),s.push(v)}}else d===void 0&&s.push(f)}}t.children=s},"populateBlockDatabase"),Pht=[],rse={id:"root",type:"composite",children:[],columns:-1},y0i=i(()=>{Pe.debug("Clear called"),Ds(),rse={id:"root",type:"composite",children:[],columns:-1},rC=new Map([["root",rse]]),Pht=[],oEe=new Map,Nht=[],Mht=new Map,Oht="",nVr=0},"clear");i(b0i,"typeStr2Type");i(v0i,"edgeTypeStr2Type");i(w0i,"edgeStrToEdgeData");i(x0i,"edgeStrToEdgeStartData");i(T0i,"edgeStrToThickness");i(k0i,"edgeStrToPattern");tVr=0,C0i=i(()=>(tVr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+tVr),"generateId"),E0i=i(r=>{rse.children=r,iVr(r,rse),Pht=rse.children},"setHierarchy"),S0i=i(r=>{let t=rC.get(r);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),A0i=i(()=>[...rC.values()],"getBlocksFlat"),R0i=i(()=>Pht||[],"getBlocks"),L0i=i(()=>Nht,"getEdges"),_0i=i(r=>rC.get(r),"getBlock"),D0i=i(r=>{rC.set(r.id,r)},"setBlock"),I0i=i(r=>{Oht=r},"setDiagramId"),M0i=i(()=>Oht,"getDiagramId"),N0i=i(()=>Pe,"getLogger"),O0i=i(function(){return oEe},"getClasses"),P0i={getConfig:i(()=>ri().block,"getConfig"),typeStr2Type:b0i,edgeTypeStr2Type:v0i,edgeStrToEdgeData:w0i,edgeStrToEdgeStartData:x0i,edgeStrToThickness:T0i,edgeStrToPattern:k0i,getLogger:N0i,getBlocksFlat:A0i,getBlocks:R0i,getEdges:L0i,setHierarchy:E0i,getBlock:_0i,setBlock:D0i,getColumns:S0i,getClasses:O0i,clear:y0i,generateId:C0i,setDiagramId:I0i,getDiagramId:M0i},aVr=P0i});var B0i,Bht,F0i,oVr,lVr=ae(()=>{"use strict";hp();AP();A0();B0i=i(r=>{let{theme:t,bkgColorArray:a,borderColorArray:s}=r;if(!S0(t,s))return"";let l=Pg(r.look),h=E0(a),f="";for(let d=0;d<VT(r.THEME_COLOR_LIMIT,s);d++){let m=s[d%s.length],b=h?`fill: ${a[d%a.length]};`:"",v=`[data-look="${l}"][data-color-id="color-${d}"]`;f+=`
|
|
|
|
${v}.node rect.composite {
|
|
stroke: ${m};
|
|
${b}
|
|
}
|
|
`}return f},"genColor"),Bht=i((r,t)=>{let a=m4,s=a(r,"r"),l=a(r,"g"),h=a(r,"b");return _d(s,l,h,t)},"fade"),F0i=i(r=>`${B0i(r)}
|
|
.label {
|
|
font-family: ${r.fontFamily};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
.cluster-label text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
.cluster-label span {
|
|
color: ${r.titleColor};
|
|
}
|
|
|
|
|
|
|
|
.label text,span {
|
|
fill: ${r.nodeTextColor||r.textColor};
|
|
color: ${r.nodeTextColor||r.textColor};
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder};
|
|
/* From the theme, as every other diagram does. Pinned at 1px here, so block drew a
|
|
thinner border than an identical flowchart node under any theme asking for more --
|
|
the neo theme asks for 2. Nothing downstream corrected it: the neo rules set stroke
|
|
and filter, never stroke-width. */
|
|
stroke-width: ${r.strokeWidth??1}px;
|
|
}
|
|
.flowchart-label text {
|
|
text-anchor: middle;
|
|
}
|
|
// .flowchart-label .text-outer-tspan {
|
|
// text-anchor: middle;
|
|
// }
|
|
// .flowchart-label .text-inner-tspan {
|
|
// text-anchor: start;
|
|
// }
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: ${r.arrowheadColor};
|
|
}
|
|
|
|
.edgePaths .path {
|
|
stroke: ${r.lineColor};
|
|
stroke-width: 2.0px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: ${r.lineColor};
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: ${r.edgeLabelBackground};
|
|
/*
|
|
* This is for backward compatibility with existing code that didn't
|
|
* add a \`<p>\` around edge labels.
|
|
*
|
|
* TODO: We should probably remove this in a future release.
|
|
*/
|
|
p {
|
|
margin: 0;
|
|
padding: 0;
|
|
display: inline;
|
|
}
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: ${r.edgeLabelBackground};
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
/* For html labels only */
|
|
.labelBkg {
|
|
background-color: ${r.edgeLabelBackground};
|
|
}
|
|
|
|
.node .cluster {
|
|
// fill: ${Bht(r.mainBkg,.5)};
|
|
fill: ${Bht(r.clusterBkg,.5)};
|
|
stroke: ${Bht(r.clusterBorder,.2)};
|
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: ${r.titleColor};
|
|
}
|
|
|
|
.cluster span {
|
|
color: ${r.titleColor};
|
|
}
|
|
/* .cluster div {
|
|
color: ${r.titleColor};
|
|
} */
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: ${r.fontFamily};
|
|
font-size: 12px;
|
|
background: ${r.tertiaryColor};
|
|
border: 1px solid ${r.border2};
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.flowchartTitleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: ${r.textColor};
|
|
}
|
|
${ak()}
|
|
`,"getStyles"),oVr=F0i});function cVr(r,t){if(r===0||!Number.isInteger(r))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(r<0)return{px:t,py:0};if(r===1)return{px:0,py:t};let a=t%r,s=Math.floor(t/r);return{px:a,py:s}}function Fht(r,t,a=0,s=0,l=8){Pe.debug("setBlockSizes abc95 (start)",r.id,r?.size?.x,"block width =",r?.size,"siblingWidth",a),r?.size?.width||(r.size={width:a,height:s,x:0,y:0});let h=0,f=0;if(r.children?.length>0){for(let S of r.children)Fht(S,t,0,0,l);let d=$0i(r);h=d.width,f=d.height,Pe.debug("setBlockSizes abc95 maxWidth of",r.id,":s children is ",h,f);for(let S of r.children)S.size&&(Pe.debug(`abc95 Setting size of children of ${r.id} id=${S.id} ${h} ${f} ${JSON.stringify(S.size)}`),S.size.width=h*(S.widthInColumns??1)+l*((S.widthInColumns??1)-1),S.size.height=f,S.size.x=0,S.size.y=0,Pe.debug(`abc95 updating size of ${r.id} children child:${S.id} maxWidth:${h} maxHeight:${f}`));for(let S of r.children)Fht(S,t,h,f,l);let m=r.columns??-1,b=0;for(let S of r.children)b+=S.widthInColumns??1;let v=r.children.length;m>0&&m<b&&(v=m);let T=Math.ceil(b/v),C=v*(h+l)+l,E=T*(f+l)+l;if(C<a){Pe.debug(`Detected to small sibling: abc95 ${r.id} siblingWidth ${a} siblingHeight ${s} width ${C}`),C=a,E=s;let S=(a-v*l-l)/v,R=(s-T*l-l)/T;Pe.debug("Size indata abc88",r.id,"childWidth",S,"maxWidth",h),Pe.debug("Size indata abc88",r.id,"childHeight",R,"maxHeight",f),Pe.debug("Size indata abc88 xSize",v,"padding",l);for(let L of r.children)L.size&&(L.size.width=S,L.size.height=R,L.size.x=0,L.size.y=0)}if(Pe.debug(`abc95 (finale calc) ${r.id} xSize ${v} ySize ${T} columns ${m}${r.children.length} width=${Math.max(C,r.size?.width||0)}`),C<(r?.size?.width||0)){C=r?.size?.width||0;let S=m>0?Math.min(r.children.length,m):r.children.length;if(S>0){let R=(C-S*l-l)/S;Pe.debug("abc95 (growing to fit) width",r.id,C,r.size?.width,R);for(let L of r.children)L.size&&(L.size.width=R)}}r.size={width:C,height:E,x:0,y:0}}Pe.debug("setBlockSizes abc94 (done)",r.id,r?.size?.x,r?.size?.width,r?.size?.y,r?.size?.height)}function uVr(r,t,a=8){Pe.debug(`abc85 layout blocks (=>layoutBlocks) ${r.id} x: ${r?.size?.x} y: ${r?.size?.y} width: ${r?.size?.width}`);let s=r.columns??-1;if(Pe.debug("layoutBlocks columns abc95",r.id,"=>",s,r),r.children&&r.children.length>0){let l=r?.children[0]?.size?.width??0,h=r.children.length*l+(r.children.length-1)*a;Pe.debug("widthOfChildren 88",h,"posX");let f=new Map;{let T=0;for(let C of r.children){if(!C.size)continue;let{py:E}=cVr(s,T),S=f.get(E)??0;C.size.height>S&&f.set(E,C.size.height);let R=C?.widthInColumns??1;s>0&&(R=Math.min(R,s-T%s)),T+=R}}let d=new Map;{let T=0,C=[...f.keys()].sort((E,S)=>E-S);for(let E of C)d.set(E,T),T+=(f.get(E)??0)+a}let m=0;Pe.debug("abc91 block?.size?.x",r.id,r?.size?.x);let b=r?.size?.x?r?.size?.x+(-r?.size?.width/2||0):-a,v=0;for(let T of r.children){let C=r;if(!T.size)continue;let{width:E,height:S}=T.size,{px:R,py:L}=cVr(s,m);if(L!=v&&(v=L,b=r?.size?.x?r?.size?.x+(-r?.size?.width/2||0):-a,Pe.debug("New row in layout for block",r.id," and child ",T.id,v)),Pe.debug(`abc89 layout blocks (child) id: ${T.id} Pos: ${m} (px, py) ${R},${L} (${C?.size?.x},${C?.size?.y}) parent: ${C.id} width: ${E}${a}`),C.size){let I=E/2;T.size.x=b+a+I,Pe.debug(`abc91 layout blocks (calc) px, pyid:${T.id} startingPos=X${b} new startingPosX${T.size.x} ${I} padding=${a} width=${E} halfWidth=${I} => x:${T.size.x} y:${T.size.y} ${T.widthInColumns} (width * (child?.w || 1)) / 2 ${E*(T?.widthInColumns??1)/2}`),b=T.size.x+I;let N=d.get(L)??0,B=f.get(L)??S;T.size.y=C.size.y-C.size.height/2+N+B/2+a,Pe.debug(`abc88 layout blocks (calc) px, pyid:${T.id}startingPosX${b}${a}${I}=>x:${T.size.x}y:${T.size.y}${T.widthInColumns}(width * (child?.w || 1)) / 2${E*(T?.widthInColumns??1)/2}`)}T.children&&uVr(T,t,a);let _=T?.widthInColumns??1;s>0&&(_=Math.min(_,s-m%s)),m+=_,Pe.debug("abc88 columnsPos",T,m)}}Pe.debug(`layout blocks (<==layoutBlocks) ${r.id} x: ${r?.size?.x} y: ${r?.size?.y} width: ${r?.size?.width}`)}function hVr(r,{minX:t,minY:a,maxX:s,maxY:l}={minX:0,minY:0,maxX:0,maxY:0}){if(r.size&&r.id!=="root"){let{x:h,y:f,width:d,height:m}=r.size;h-d/2<t&&(t=h-d/2),f-m/2<a&&(a=f-m/2),h+d/2>s&&(s=h+d/2),f+m/2>l&&(l=f+m/2)}if(r.children)for(let h of r.children)({minX:t,minY:a,maxX:s,maxY:l}=hVr(h,{minX:t,minY:a,maxX:s,maxY:l}));return{minX:t,minY:a,maxX:s,maxY:l}}function fVr(r){let t=r.getBlock("root");if(!t)return;let a=er()?.block?.padding??8;Fht(t,r,0,0,a),uVr(t,r,a),Pe.debug("getBlocks",JSON.stringify(t,null,2));let{minX:s,minY:l,maxX:h,maxY:f}=hVr(t),d=f-l,m=h-s;return{x:s,y:l,width:m,height:d}}var $0i,dVr=ae(()=>{"use strict";Yn();ma();i(cVr,"calculateBlockPosition");$0i=i(r=>{let t=0,a=0;for(let s of r.children){let{width:l,height:h,x:f,y:d}=s.size??{width:0,height:0,x:0,y:0};if(Pe.debug("getMaxChildSize abc95 child:",s.id,"width:",l,"height:",h,"x:",f,"y:",d,s.type),s.type==="space")continue;let m=l/(s.widthInColumns??1);m>t&&(t=m),h>a&&(a=h)}return{width:t,height:a}},"getMaxChildSize");i(Fht,"setBlockSizes");i(uVr,"layoutBlocks");i(hVr,"findBounds");i(fVr,"layout")});function pVr(r,t,a=!1){let s=r,l="default";(s?.classes?.length||0)>0&&(l=(s?.classes??[]).join(" ")),l=l+" flowchart-label";let h=(s?.classes??[]).flatMap(S=>t.getClasses().get(S)?.styles??[]),f=0,d="rect",m;switch(s.type){case"round":f=5,d="rect";break;case"composite":f=0,d="composite",m=0;break;case"square":d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"block_arrow":d="block_arrow";break;case"odd":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"rect_left_inv_arrow":d="rect_left_inv_arrow";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"group":d="rect";break;case"doublecircle":d="doublecircle";break;default:d="rect"}let b=BJe(s?.styles??[]),v=s.label,T=s.size??{width:0,height:0,x:0,y:0},C=t.getDiagramId();return{labelStyle:b.labelStyle,shape:d,label:v,labelText:v,rx:f,ry:f,class:l,cssClasses:l,cssStyles:s?.styles??[],cssCompiledStyles:h,style:b.style,id:s.id,domId:C?`${C}-${s.id}`:s.id,isGroup:!1,directions:s.directions,width:T.width||void 0,height:T.height||void 0,wrappingWidth:T.width||Number.POSITIVE_INFINITY,x:T.x,y:T.y,positioned:a,intersect:void 0,padding:m??ri()?.block?.padding??0,widthInColumns:s.widthInColumns??1,colorIndex:s.colorIndex,look:ri().look}}async function G0i(r,t,a){let s=pVr(t,a,!1);if(t.type==="group")return;let l=ri(),h=await jA(r,s,{config:l}),f=h.node()?.getBBox()??{width:0,height:0},d=a.getBlock(s.id);d.size={width:f.width,height:f.height,x:0,y:0,node:h},a.setBlock(d),h.remove()}async function j0i(r,t,a){let s=pVr(t,a,!0);if(a.getBlock(s.id).type!=="space"){let h=ri(),f=await jA(r,s,{config:h});s.colorIndex!==void 0&&yp(f,s.colorIndex,h.theme,h.themeVariables?.borderColorArray),t.intersect=s?.intersect,dS(s)}}async function $ht(r,t,a,s){for(let l of t)await s(r,l,a),l.children&&await $ht(r,l.children,a,s)}async function gVr(r,t,a){await $ht(r,t,a,G0i)}async function mVr(r,t,a){await $ht(r,t,a,j0i)}async function yVr(r,t,a,s,l){let h=new lh({multigraph:!0,compound:!0});h.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let f of a)f.size&&h.setNode(f.id,{width:f.size.width,height:f.size.height,intersect:f.intersect});for(let f of t)if(f.start&&f.end){let d=s.getBlock(f.start),m=s.getBlock(f.end);if(d?.size&&m?.size){let b=d.size,v=m.size,T=[{x:b.x,y:b.y},{x:b.x+(v.x-b.x)/2,y:b.y+(v.y-b.y)/2},{x:v.x,y:v.y}],C=l?`${l}-${f.id}`:f.id,E=f.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",S=f.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",R=`${E} ${S} flowchart-link LS-a1 LE-b1`;m_(r,{...f,id:C,arrowTypeEnd:f.arrowTypeEnd,arrowTypeStart:f.arrowTypeStart,points:T,classes:R},{},"block",h.node(f.start),h.node(f.end),l),f.label&&(await F4(r,{...f,label:f.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:f.arrowTypeEnd,arrowTypeStart:f.arrowTypeStart,points:T,classes:R}),dU({...f,x:T[1].x,y:T[1].y},{originalPath:T}))}}}var bVr=ae(()=>{"use strict";QT();Xs();pU();UO();A0();Ma();i(pVr,"getNodeFromBlock");i(G0i,"calculateBlockSize");i(j0i,"insertBlockPositioned");i($ht,"performOperations");i(gVr,"calculateBlockSizes");i(mVr,"insertBlocks");i(yVr,"insertEdges")});var z0i,U0i,vVr,wVr=ae(()=>{"use strict";zo();Xs();Yn();Gwe();bZe();$h();dVr();bVr();z0i=i(function(r,t){return t.db.getClasses()},"getClasses"),U0i=i(async function(r,t,a,s){let{securityLevel:l,block:h}=ri(),f=s.db;f.setDiagramId(t);let d;l==="sandbox"&&(d=mn("#i"+t));let m=l==="sandbox"?mn(d.nodes()[0].contentDocument.body):mn("body"),b=l==="sandbox"?m.select(`[id="${t}"]`):mn(`[id="${t}"]`);zwe(b,ri()),gU(b,["point","circle","cross"],s.type,t);let T=f.getBlocks(),C=f.getBlocksFlat(),E=f.getEdges(),S=b.insert("g").attr("class","block");await gVr(S,T,f);let R=fVr(f);await mVr(S,T,f),await yVr(S,E,C,f,t);let L=S.node()?.getBBox(),_=L&&Number.isFinite(L.width)&&Number.isFinite(L.height)?L:R;if(_){let I=Math.max(1,Math.round(.125*(_.width/_.height))),N=_.height+I+10,B=_.width+10,{useMaxWidth:O}=h;wl(b,N,B,!!O),Pe.debug("Here Bounds",R,_),b.attr("viewBox",`${_.x-5} ${_.y-5} ${_.width+10} ${_.height+10}`)}},"draw"),vVr={draw:U0i,getClasses:z0i}});var xVr={};is(xVr,{diagram:()=>V0i});var V0i,TVr=ae(()=>{"use strict";QUr();sVr();lVr();wVr();V0i={parser:JUr,db:aVr,renderer:vVr,styles:oVr}});function K0i(r){return r.some(t=>RVr.test(t))}function J0i(r){for(let t of r){let a=LVr.exec(t);if(a?.index&&a.index>0)return a.index}return 4}function _Vr(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(a,s)=>{let l=parseInt(s,10),h=t.get(l);return h?`line ${h}`:a})}function DVr(r){let t=r.split(`
|
|
`),a=new Map,s=-1;for(let[m,b]of t.entries())if(b.trim()==="treeView-beta"){s=m;break}if(s===-1)return{text:r,lineMap:a};let l=[];for(let m=s+1;m<t.length;m++){let b=t[m];b.trim()===""||AVr.test(b)||SVr.test(b)||EVr.test(b)||l.push(b.replace(/\t/g," "))}if(!K0i(l))return{text:r,lineMap:a};let h=J0i(l),f=[],d=0;for(let m=0;m<=s;m++)f.push(t[m]),d++,a.set(d,m+1);for(let m=s+1;m<t.length;m++){let b=t[m],v=b.trim(),T=m+1;if(v===""){f.push(b),d++,a.set(d,T);continue}if(AVr.test(b)){f.push(b),d++,a.set(d,T);continue}if(SVr.test(b)){f.push(b),d++,a.set(d,T);continue}if(EVr.test(b))continue;let C=b.replace(/\t/g," "),E=LVr.exec(C);if(E?.index!==void 0){let S=E.index,R=Math.round(S/h)+1,L=S+1;for(;L<C.length&&Y0i.test(C[L]);)L++;for(;L<C.length&&C[L]===" ";)L++;let _=C.slice(L).trimEnd();if(!_)throw new Error(`Line ${T}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let I=X0i.repeat(R);f.push(I+_),d++,a.set(d,T)}else{if(/^[\s─━│┃└┗├┣]+$/.test(C))continue;if(RVr.test(C))f.push(b),d++,a.set(d,T);else{if(/^\s+/.test(C))throw new Error(`Line ${T}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);f.push(b),d++,a.set(d,T)}}}return{text:f.join(`
|
|
`),lineMap:a}}var RVr,LVr,Y0i,EVr,SVr,AVr,X0i,IVr=ae(()=>{"use strict";RVr=/[─━│┃└┗├┣]/,LVr=/[└┗├┣]/,Y0i=/[─━]/,EVr=/^[\s│┃]+$/,SVr=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,AVr=/^\s*%%/,X0i=" ";i(K0i,"isBoxDrawingFormat");i(J0i,"inferSegmentWidth");i(_Vr,"remapErrorLines");i(DVr,"preprocessBoxDrawing")});var e5,Q0i,Z0i,emi,tmi,rmi,nmi,imi,nse,Ght=ae(()=>{"use strict";Xs();pp();Ma();cCe();Au();e5=new SD(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),Q0i=i(()=>{e5.reset(),Ds()},"clear"),Z0i=i(()=>e5.records.stack[0],"getRoot"),emi=i(()=>e5.records.cnt,"getCount"),tmi=ps.treeView,rmi=i(()=>il(tmi,ri().treeView),"getConfig"),nmi=i((r,t,a,s,l,h)=>{for(;r<=e5.records.stack[e5.records.stack.length-1].level;)e5.records.stack.pop();let f={id:e5.records.cnt++,level:r,name:t,nodeType:a,icon:l,cssClass:s,description:h,children:[]};e5.records.stack[e5.records.stack.length-1].children.push(f),e5.records.stack.push(f)},"addNode"),imi={clear:Q0i,addNode:nmi,getRoot:Z0i,getCount:emi,getConfig:rmi,getAccTitle:Vs,getAccDescription:Ws,getDiagramTitle:Ks,setAccDescription:$s,setAccTitle:Os,setDiagramTitle:io},nse=imi});var ami,MVr,NVr=ae(()=>{"use strict";w1();Xs();Yn();nl();Gb();IVr();Ght();ami=i(r=>{Eh(r,nse);for(let t of r.nodes){let a=typeof t.indent=="number"?t.indent:0,s=t.name,l=s.endsWith("/");l&&(s=s.slice(0,-1));let h=l?"directory":"file",f=t.classAnnotation||void 0,d=t.iconAnnotation,m=d!==void 0?d||"none":void 0,b=t.descAnnotation||void 0,v=b?Ns(b,ri()):void 0;nse.addNode(a,s,h,f,m,v)}},"populate"),MVr={parse:i(async r=>{let{text:t,lineMap:a}=DVr(r);try{let s=await Gd("treeView",t);Pe.debug(s),ami(s)}catch(s){throw a.size>0&&s instanceof Error&&(s.message=_Vr(s.message,a)),s}},"parse")}});function smi(r,t){let a=t?.filenameIcons?.[r];if(a)return a;let s=r.lastIndexOf(".");if(s>0){let l=r.substring(s).toLowerCase(),h=t?.extensionIcons;return h?.[l]??h?.[l.slice(1)]}}function OVr(r,t){return r.includes(":")?r:r in FW.icons||!t?`${FW.prefix}:${r}`:`${t}:${r}`}function jht(r,t){if(r.icon!=="none"){if(r.icon)return OVr(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){let a=smi(r.name,t);if(a==="none")return;if(a)return OVr(a,t.defaultIconPack)}return`${FW.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}var FW,PVr=ae(()=>{"use strict";FW={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};i(smi,"detectIcon");i(OVr,"qualifyIcon");i(jht,"getNodeIcon")});var zht,omi,lmi,cmi,umi,BVr,hmi,fmi,dmi,FVr,$Vr=ae(()=>{"use strict";Yn();Xw();x1();$h();PVr();GL([{name:FW.prefix,icons:FW}]);zht=14,omi=4,lmi=16,cmi=i(async(r,t)=>{let a=[],s=i(h=>{let f=jht(h,t);f&&a.push({icon:f,node:h}),h.children.forEach(s)},"collect");s(r);let l=await Promise.all(a.map(async({icon:h,node:f})=>({id:f.id,svg:await Og(h,{height:zht,width:zht})})));return new Map(l.map(({id:h,svg:f})=>[h,f]))},"resolveNodeIcons"),umi=i((r,t,a,s,l,h)=>{let f=s.append("g"),d="treeView-node-label";a.nodeType==="directory"&&(d+=" treeView-node-dir"),a.cssClass&&(d+=` ${a.cssClass}`);let m=zht+omi,b=jht(a,l),v=b!==void 0;b&&f.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+l.paddingX}, ${t+l.paddingY})`).html(h.get(a.id)??"");let T=f.append("text").text(a.name).attr("dominant-baseline","middle").attr("class",d),{height:C,width:E}=T.node().getBBox(),S=C+l.paddingY*2,R=r+l.paddingX+(v?m:0);T.attr("x",R),T.attr("y",t+S/2);let L=R+E,_=E+l.paddingX*2+(v?m:0);return a.BBox={x:r,y:t,width:_,height:S},a.cssClass?.split(/\s+/).includes("highlight")&&f.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",S-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:a,nodeGroup:f,labelRightEdge:L,centerY:t+S/2}},"positionLabel"),BVr=i((r,t,a,s,l,h)=>r.append("line").attr("x1",t).attr("y1",a).attr("x2",s).attr("y2",l).attr("stroke-width",h).attr("class","treeView-node-line"),"positionLine"),hmi=i((r,t,a,s)=>{let l=0,h=0,f=[],d=i((v,T,C,E)=>{let S=E*(C.rowIndent+C.paddingX),R=umi(S,l,T,v,C,s);f.push(R);let{height:L,width:_}=T.BBox;BVr(v,S-C.rowIndent,l+L/2,S,l+L/2,C.lineThickness),h=Math.max(h,S+_),l+=L},"drawNode"),m=i((v,T=0)=>{d(r,v,a,T),v.children.forEach(R=>{m(R,T+1)});let{x:C,y:E,height:S}=v.BBox;if(v.children.length){let{y:R,height:L}=v.children[v.children.length-1].BBox;BVr(r,C+a.paddingX,E+S,C+a.paddingX,R+L/2+a.lineThickness/2,a.lineThickness)}},"processNode");m(t);let b=f.filter(v=>v.node.description);if(b.length>0){let T=Math.max(...f.map(C=>C.labelRightEdge))+lmi;for(let C of b){let S=C.nodeGroup.append("text").text(C.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",T).attr("y",C.centerY).node().getBBox();h=Math.max(h,T+S.width+a.paddingX)}}for(let v of f)if(v.node.cssClass?.split(/\s+/).includes("highlight")){let T=v.nodeGroup.select(".treeView-highlight-bg");if(!T.empty()){let C=h-v.node.BBox.x+8;T.attr("width",C),h=Math.max(h,v.node.BBox.x+C+2)}}return{totalHeight:l,totalWidth:h}},"drawTree"),fmi=i(async(r,t,a,s)=>{Pe.debug(`Rendering treeView diagram
|
|
`+r);let l=s.db,h=l.getRoot(),f=l.getConfig(),d=pu(t),m=d.append("g");m.attr("class","tree-view");let b=await cmi(h,f),{totalHeight:v,totalWidth:T}=hmi(m,h,f,b);d.attr("viewBox",`-${f.lineThickness/2} 0 ${T} ${v}`),wl(d,v,T,f.useMaxWidth)},"draw"),dmi={draw:fmi},FVr=dmi});var pmi,gmi,GVr,jVr=ae(()=>{"use strict";Ma();pmi={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},gmi=i(({treeView:r})=>{let{labelFontSize:t,labelColor:a,lineColor:s,iconColor:l,descriptionColor:h,highlightBg:f,highlightStroke:d}=il(pmi,r);return`
|
|
.treeView-node-label {
|
|
font-size: ${t};
|
|
fill: ${a};
|
|
white-space: pre;
|
|
}
|
|
.treeView-node-dir {
|
|
font-weight: bold;
|
|
}
|
|
.treeView-node-line {
|
|
stroke: ${s};
|
|
}
|
|
.treeView-node-icon {
|
|
color: ${l};
|
|
}
|
|
.treeView-node-description {
|
|
font-size: ${t};
|
|
fill: ${h};
|
|
font-style: italic;
|
|
white-space: pre;
|
|
}
|
|
.treeView-highlight-bg {
|
|
fill: ${f};
|
|
stroke: ${d};
|
|
stroke-width: 1;
|
|
}
|
|
`},"styles"),GVr=gmi});var zVr={};is(zVr,{diagram:()=>mmi});var mmi,UVr=ae(()=>{"use strict";NVr();Ght();$Vr();jVr();mmi={db:nse,renderer:FVr,parser:MVr,styles:GVr}});var Uht,Vht,ise,HVr,Wht,Sy,t5,ase,qVr,wmi,sse,YVr,XVr,KVr,JVr,QVr,lEe,cEe,BD,uEe=ae(()=>{"use strict";Uht={L:"left",R:"right",T:"top",B:"bottom"},Vht={L:i(r=>`${r},${r/2} 0,${r} 0,0`,"L"),R:i(r=>`0,${r/2} ${r},0 ${r},${r}`,"R"),T:i(r=>`0,0 ${r},0 ${r/2},${r}`,"T"),B:i(r=>`${r/2},0 ${r},${r} 0,${r}`,"B")},ise={L:i((r,t)=>r-t+2,"L"),R:i((r,t)=>r-2,"R"),T:i((r,t)=>r-t+2,"T"),B:i((r,t)=>r-2,"B")},HVr=i(function(r){return Sy(r)?r==="L"?"R":"L":r==="T"?"B":"T"},"getOppositeArchitectureDirection"),Wht=i(function(r){let t=r;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),Sy=i(function(r){let t=r;return t==="L"||t==="R"},"isArchitectureDirectionX"),t5=i(function(r){let t=r;return t==="T"||t==="B"},"isArchitectureDirectionY"),ase=i(function(r,t){let a=Sy(r)&&t5(t),s=t5(r)&&Sy(t);return a||s},"isArchitectureDirectionXY"),qVr=i(function(r){let t=r[0],a=r[1],s=Sy(t)&&t5(a),l=t5(t)&&Sy(a);return s||l},"isArchitecturePairXY"),wmi=i(function(r){return r!=="LL"&&r!=="RR"&&r!=="TT"&&r!=="BB"},"isValidArchitectureDirectionPair"),sse=i(function(r,t){let a=`${r}${t}`;return wmi(a)?a:void 0},"getArchitectureDirectionPair"),YVr=i(function([r,t],a){let s=a[0],l=a[1];return Sy(s)?t5(l)?[r+(s==="L"?-1:1),t+(l==="T"?1:-1)]:[r+(s==="L"?-1:1),t]:Sy(l)?[r+(l==="L"?1:-1),t+(s==="T"?1:-1)]:[r,t+(s==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),XVr=i(function(r){return r==="LT"||r==="TL"?[1,1]:r==="BL"||r==="LB"?[1,-1]:r==="BR"||r==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),KVr=i(function(r,t){return ase(r,t)?"bend":Sy(r)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),JVr=i(function(r){return r.type==="service"},"isArchitectureService"),QVr=i(function(r){return r.type==="junction"},"isArchitectureJunction"),lEe=i((r,t)=>{let[a,s]=[r,t].sort();return`${JSON.stringify(a)}-${JSON.stringify(s)}`},"architectureGroupAlignmentKey"),cEe=i(r=>r.data(),"edgeData"),BD=i(r=>r.data(),"nodeData")});var xmi,$W,Hht=ae(()=>{"use strict";Xs();pp();Ma();Au();uEe();xmi=ps.architecture,$W=class{constructor(){this.nodes=new Map;this.groups=new Map;this.edges=[];this.layoutHints=[];this.registeredIds=new Map;this.elements=new Map;this.diagramId="";this.setAccTitle=Os;this.getAccTitle=Vs;this.setDiagramTitle=io;this.getDiagramTitle=Ks;this.getAccDescription=Ws;this.setAccDescription=$s;this.clear()}static{i(this,"ArchitectureDB")}setDiagramId(t){this.diagramId=t}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",Ds()}addService({id:t,icon:a,in:s,title:l,iconText:h}){if(this.registeredIds.has(t))throw new Error(`The service id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(s!==void 0){if(t===s)throw new Error(`The service [${t}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw new Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(s)==="node")throw new Error(`The service [${t}]'s parent is not a group`)}this.registeredIds.set(t,"node"),this.nodes.set(t,{id:t,type:"service",icon:a,iconText:h,title:l,edges:[],in:s})}getServices(){return[...this.nodes.values()].filter(JVr)}addJunction({id:t,in:a}){if(this.registeredIds.has(t))throw new Error(`The junction id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(a!==void 0){if(t===a)throw new Error(`The junction [${t}] cannot be placed within itself`);if(!this.registeredIds.has(a))throw new Error(`The junction [${t}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(a)==="node")throw new Error(`The junction [${t}]'s parent is not a group`)}this.registeredIds.set(t,"node"),this.nodes.set(t,{id:t,type:"junction",edges:[],in:a})}getJunctions(){return[...this.nodes.values()].filter(QVr)}getNodes(){return[...this.nodes.values()]}getNode(t){return this.nodes.get(t)??null}addGroup({id:t,icon:a,in:s,title:l}){if(this.registeredIds.has(t))throw new Error(`The group id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(s!==void 0){if(t===s)throw new Error(`The group [${t}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw new Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(s)==="node")throw new Error(`The group [${t}]'s parent is not a group`)}this.registeredIds.set(t,"group"),this.groups.set(t,{id:t,icon:a,title:l,in:s})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:t,rhsId:a,lhsDir:s,rhsDir:l,lhsInto:h,rhsInto:f,lhsGroup:d,rhsGroup:m,title:b}){if(!Wht(s))throw new Error(`Invalid direction given for left hand side of edge ${t}--${a}. Expected (L,R,T,B) got ${String(s)}`);if(!Wht(l))throw new Error(`Invalid direction given for right hand side of edge ${t}--${a}. Expected (L,R,T,B) got ${String(l)}`);if(!this.nodes.has(t)&&!this.groups.has(t))throw new Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(a)&&!this.groups.has(a))throw new Error(`The right-hand id [${a}] does not yet exist. Please create the service/group before declaring an edge to it.`);let v=this.nodes.get(t).in,T=this.nodes.get(a).in;if(d&&v&&T&&v==T)throw new Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(m&&v&&T&&v==T)throw new Error(`The right-hand id [${a}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let C={lhsId:t,lhsDir:s,lhsInto:h,lhsGroup:d,rhsId:a,rhsDir:l,rhsInto:f,rhsGroup:m,title:b};this.edges.push(C);let E=this.nodes.get(t),S=this.nodes.get(a);E&&S&&(E.edges.push(this.edges[this.edges.length-1]),S.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(t){if(t.members.length<2)throw new Error(`An align directive requires at least two members; got ${t.members.length}`);let a=new Set;t.members.forEach(s=>{if(this.registeredIds.get(s)!=="node")throw new Error(`align ${t.direction} references [${s}], which is not a service or junction`);if(a.has(s))throw new Error(`align ${t.direction} lists [${s}] more than once`);a.add(s)}),this.layoutHints.push(t)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let t=new Map,a=new Map;for(let[d,m]of this.nodes.entries()){let b=new Map;for(let v of m.edges){let T=this.getNode(v.lhsId)?.in,C=this.getNode(v.rhsId)?.in;if(T&&C&&T!==C){let E=KVr(v.lhsDir,v.rhsDir);E!=="bend"&&t.set(lEe(T,C),E)}if(v.lhsId===d){let E=sse(v.lhsDir,v.rhsDir);E&&b.set(E,v.rhsId)}else{let E=sse(v.rhsDir,v.lhsDir);E&&b.set(E,v.lhsId)}}a.set(d,b)}let s=new Set,l=new Set(a.keys()),h=i(d=>{let m=new Map([[d,[0,0]]]),b=[d];for(;b.length>0;){let v=b.shift();if(v){s.add(v),l.delete(v);let T=a.get(v);if(!T)throw new Error(`BFS error: adjacency list for id ${v} not found. Please report this as a bug.`);let C=m.get(v);if(!C)throw new Error(`BFS error: position for id ${v} not found in spatial map. Please report this as a bug.`);let[E,S]=C;T.forEach((R,L)=>{s.has(R)||(m.set(R,YVr([E,S],L)),b.push(R))})}}return m},"BFS"),f=[];for(;l.size>0;){let d=l.values().next().value;f.push(h(d))}this.dataStructures={adjList:a,spatialMaps:f,groupAlignments:t}}return this.dataStructures}setElementForId(t,a){this.elements.set(t,a)}getElementById(t){return this.elements.get(t)}getConfig(){return il({...xmi,...ri().architecture})}getConfigField(t){return this.getConfig()[t]}}});var Tmi,qht,ZVr=ae(()=>{"use strict";w1();Yn();Gb();Hht();Tmi=i((r,t)=>{Eh(r,t),r.groups.map(a=>t.addGroup(a)),r.services.map(a=>t.addService({...a,type:"service"})),r.junctions.map(a=>t.addJunction({...a,type:"junction"})),r.edges.map(a=>t.addEdge(a)),r.alignments?.map(a=>t.addLayoutHint({direction:a.direction,members:[...a.members]}))},"populateDb"),qht={parser:{yy:void 0},parse:i(async r=>{let t=await Gd("architecture",r);Pe.debug(t);let a=qht.parser?.yy;if(!(a instanceof $W))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Tmi(t,a)},"parse")}});var kmi,eWr,tWr=ae(()=>{"use strict";kmi=i(r=>`
|
|
.edge {
|
|
stroke-width: ${r.archEdgeWidth};
|
|
stroke: ${r.archEdgeColor};
|
|
fill: none;
|
|
}
|
|
|
|
.arrow {
|
|
fill: ${r.archEdgeArrowColor};
|
|
}
|
|
|
|
.node-bkg {
|
|
fill: none;
|
|
stroke: ${r.archGroupBorderColor};
|
|
stroke-width: ${r.archGroupBorderWidth};
|
|
stroke-dasharray: 8;
|
|
}
|
|
.node-icon-text {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.node-icon-text > div {
|
|
color: #fff;
|
|
margin: 1px;
|
|
height: fit-content;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
`,"getStyles"),eWr=kmi});var Xht=Zv((ose,Yht)=>{"use strict";i((function(t,a){typeof ose=="object"&&typeof Yht=="object"?Yht.exports=a():typeof define=="function"&&define.amd?define([],a):typeof ose=="object"?ose.layoutBase=a():t.layoutBase=a()}),"webpackUniversalModuleDefinition")(ose,function(){return(function(r){var t={};function a(s){if(t[s])return t[s].exports;var l=t[s]={i:s,l:!1,exports:{}};return r[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return i(a,"__webpack_require__"),a.m=r,a.c=t,a.i=function(s){return s},a.d=function(s,l,h){a.o(s,l)||Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:h})},a.n=function(s){var l=s&&s.__esModule?i(function(){return s.default},"getDefault"):i(function(){return s},"getModuleExports");return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s=28)})([(function(r,t,a){"use strict";function s(){}i(s,"LayoutConstants"),s.QUALITY=1,s.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,s.DEFAULT_INCREMENTAL=!1,s.DEFAULT_ANIMATION_ON_LAYOUT=!0,s.DEFAULT_ANIMATION_DURING_LAYOUT=!1,s.DEFAULT_ANIMATION_PERIOD=50,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,s.DEFAULT_GRAPH_MARGIN=15,s.NODE_DIMENSIONS_INCLUDE_LABELS=!1,s.SIMPLE_NODE_SIZE=40,s.SIMPLE_NODE_HALF_SIZE=s.SIMPLE_NODE_SIZE/2,s.EMPTY_COMPOUND_NODE_SIZE=40,s.MIN_EDGE_LENGTH=1,s.WORLD_BOUNDARY=1e6,s.INITIAL_WORLD_BOUNDARY=s.WORLD_BOUNDARY/1e3,s.WORLD_CENTER_X=1200,s.WORLD_CENTER_Y=900,r.exports=s}),(function(r,t,a){"use strict";var s=a(2),l=a(8),h=a(9);function f(m,b,v){s.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=m,this.target=b}i(f,"LEdge"),f.prototype=Object.create(s.prototype);for(var d in s)f[d]=s[d];f.prototype.getSource=function(){return this.source},f.prototype.getTarget=function(){return this.target},f.prototype.isInterGraph=function(){return this.isInterGraph},f.prototype.getLength=function(){return this.length},f.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},f.prototype.getBendpoints=function(){return this.bendpoints},f.prototype.getLca=function(){return this.lca},f.prototype.getSourceInLca=function(){return this.sourceInLca},f.prototype.getTargetInLca=function(){return this.targetInLca},f.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"},f.prototype.getOtherEndInGraph=function(m,b){for(var v=this.getOtherEnd(m),T=b.getGraphManager().getRoot();;){if(v.getOwner()==b)return v;if(v.getOwner()==T)break;v=v.getOwner().getParent()}return null},f.prototype.updateLength=function(){var m=new Array(4);this.isOverlapingSourceAndTarget=l.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=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},f.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=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=f}),(function(r,t,a){"use strict";function s(l){this.vGraphObject=l}i(s,"LGraphObject"),r.exports=s}),(function(r,t,a){"use strict";var s=a(2),l=a(10),h=a(13),f=a(0),d=a(16),m=a(5);function b(T,C,E,S){E==null&&S==null&&(S=C),s.call(this,S),T.graphManager!=null&&(T=T.graphManager),this.estimatedSize=l.MIN_VALUE,this.inclusionTreeDepth=l.MAX_VALUE,this.vGraphObject=S,this.edges=[],this.graphManager=T,E!=null&&C!=null?this.rect=new h(C.x,C.y,E.width,E.height):this.rect=new h}i(b,"LNode"),b.prototype=Object.create(s.prototype);for(var v in s)b[v]=s[v];b.prototype.getEdges=function(){return this.edges},b.prototype.getChild=function(){return this.child},b.prototype.getOwner=function(){return this.owner},b.prototype.getWidth=function(){return this.rect.width},b.prototype.setWidth=function(T){this.rect.width=T},b.prototype.getHeight=function(){return this.rect.height},b.prototype.setHeight=function(T){this.rect.height=T},b.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},b.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},b.prototype.getCenter=function(){return new m(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},b.prototype.getLocation=function(){return new m(this.rect.x,this.rect.y)},b.prototype.getRect=function(){return this.rect},b.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},b.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},b.prototype.setRect=function(T,C){this.rect.x=T.x,this.rect.y=T.y,this.rect.width=C.width,this.rect.height=C.height},b.prototype.setCenter=function(T,C){this.rect.x=T-this.rect.width/2,this.rect.y=C-this.rect.height/2},b.prototype.setLocation=function(T,C){this.rect.x=T,this.rect.y=C},b.prototype.moveBy=function(T,C){this.rect.x+=T,this.rect.y+=C},b.prototype.getEdgeListToNode=function(T){var C=[],E,S=this;return S.edges.forEach(function(R){if(R.target==T){if(R.source!=S)throw"Incorrect edge source!";C.push(R)}}),C},b.prototype.getEdgesBetween=function(T){var C=[],E,S=this;return S.edges.forEach(function(R){if(!(R.source==S||R.target==S))throw"Incorrect edge source and/or target";(R.target==T||R.source==T)&&C.push(R)}),C},b.prototype.getNeighborsList=function(){var T=new Set,C=this;return C.edges.forEach(function(E){if(E.source==C)T.add(E.target);else{if(E.target!=C)throw"Incorrect incidency!";T.add(E.source)}}),T},b.prototype.withChildren=function(){var T=new Set,C,E;if(T.add(this),this.child!=null)for(var S=this.child.getNodes(),R=0;R<S.length;R++)C=S[R],E=C.withChildren(),E.forEach(function(L){T.add(L)});return T},b.prototype.getNoOfChildren=function(){var T=0,C;if(this.child==null)T=1;else for(var E=this.child.getNodes(),S=0;S<E.length;S++)C=E[S],T+=C.getNoOfChildren();return T==0&&(T=1),T},b.prototype.getEstimatedSize=function(){if(this.estimatedSize==l.MIN_VALUE)throw"assert failed";return this.estimatedSize},b.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)},b.prototype.scatter=function(){var T,C,E=-f.INITIAL_WORLD_BOUNDARY,S=f.INITIAL_WORLD_BOUNDARY;T=f.WORLD_CENTER_X+d.nextDouble()*(S-E)+E;var R=-f.INITIAL_WORLD_BOUNDARY,L=f.INITIAL_WORLD_BOUNDARY;C=f.WORLD_CENTER_Y+d.nextDouble()*(L-R)+R,this.rect.x=T,this.rect.y=C},b.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var T=this.getChild();if(T.updateBounds(!0),this.rect.x=T.getLeft(),this.rect.y=T.getTop(),this.setWidth(T.getRight()-T.getLeft()),this.setHeight(T.getBottom()-T.getTop()),f.NODE_DIMENSIONS_INCLUDE_LABELS){var C=T.getRight()-T.getLeft(),E=T.getBottom()-T.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(C+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>C?(this.rect.x-=(this.labelWidth-C)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(C+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(E+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>E?(this.rect.y-=(this.labelHeight-E)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(E+this.labelHeight))}}},b.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==l.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},b.prototype.transform=function(T){var C=this.rect.x;C>f.WORLD_BOUNDARY?C=f.WORLD_BOUNDARY:C<-f.WORLD_BOUNDARY&&(C=-f.WORLD_BOUNDARY);var E=this.rect.y;E>f.WORLD_BOUNDARY?E=f.WORLD_BOUNDARY:E<-f.WORLD_BOUNDARY&&(E=-f.WORLD_BOUNDARY);var S=new m(C,E),R=T.inverseTransformPoint(S);this.setLocation(R.x,R.y)},b.prototype.getLeft=function(){return this.rect.x},b.prototype.getRight=function(){return this.rect.x+this.rect.width},b.prototype.getTop=function(){return this.rect.y},b.prototype.getBottom=function(){return this.rect.y+this.rect.height},b.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=b}),(function(r,t,a){"use strict";var s=a(0);function l(){}i(l,"FDLayoutConstants");for(var h in s)l[h]=s[h];l.MAX_ITERATIONS=2500,l.DEFAULT_EDGE_LENGTH=50,l.DEFAULT_SPRING_STRENGTH=.45,l.DEFAULT_REPULSION_STRENGTH=4500,l.DEFAULT_GRAVITY_STRENGTH=.4,l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,l.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,l.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,l.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,l.COOLING_ADAPTATION_FACTOR=.33,l.ADAPTATION_LOWER_NODE_LIMIT=1e3,l.ADAPTATION_UPPER_NODE_LIMIT=5e3,l.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,l.MAX_NODE_DISPLACEMENT=l.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10,l.CONVERGENCE_CHECK_PERIOD=100,l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,l.MIN_EDGE_LENGTH=1,l.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=l}),(function(r,t,a){"use strict";function s(l,h){l==null&&h==null?(this.x=0,this.y=0):(this.x=l,this.y=h)}i(s,"PointD"),s.prototype.getX=function(){return this.x},s.prototype.getY=function(){return this.y},s.prototype.setX=function(l){this.x=l},s.prototype.setY=function(l){this.y=l},s.prototype.getDifference=function(l){return new DimensionD(this.x-l.x,this.y-l.y)},s.prototype.getCopy=function(){return new s(this.x,this.y)},s.prototype.translate=function(l){return this.x+=l.width,this.y+=l.height,this},r.exports=s}),(function(r,t,a){"use strict";var s=a(2),l=a(10),h=a(0),f=a(7),d=a(3),m=a(1),b=a(13),v=a(12),T=a(11);function C(S,R,L){s.call(this,L),this.estimatedSize=l.MIN_VALUE,this.margin=h.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=S,R!=null&&R instanceof f?this.graphManager=R:R!=null&&R instanceof Layout&&(this.graphManager=R.graphManager)}i(C,"LGraph"),C.prototype=Object.create(s.prototype);for(var E in s)C[E]=s[E];C.prototype.getNodes=function(){return this.nodes},C.prototype.getEdges=function(){return this.edges},C.prototype.getGraphManager=function(){return this.graphManager},C.prototype.getParent=function(){return this.parent},C.prototype.getLeft=function(){return this.left},C.prototype.getRight=function(){return this.right},C.prototype.getTop=function(){return this.top},C.prototype.getBottom=function(){return this.bottom},C.prototype.isConnected=function(){return this.isConnected},C.prototype.add=function(S,R,L){if(R==null&&L==null){var _=S;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(_)>-1)throw"Node already in graph!";return _.owner=this,this.getNodes().push(_),_}else{var I=S;if(!(this.getNodes().indexOf(R)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(!(R.owner==L.owner&&R.owner==this))throw"Both owners must be this graph!";return R.owner!=L.owner?null:(I.source=R,I.target=L,I.isInterGraph=!1,this.getEdges().push(I),R.edges.push(I),L!=R&&L.edges.push(I),I)}},C.prototype.remove=function(S){var R=S;if(S instanceof d){if(R==null)throw"Node is null!";if(!(R.owner!=null&&R.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=R.edges.slice(),_,I=L.length,N=0;N<I;N++)_=L[N],_.isInterGraph?this.graphManager.remove(_):_.source.owner.remove(_);var B=this.nodes.indexOf(R);if(B==-1)throw"Node not in owner node list!";this.nodes.splice(B,1)}else if(S instanceof m){var _=S;if(_==null)throw"Edge is null!";if(!(_.source!=null&&_.target!=null))throw"Source and/or target is null!";if(!(_.source.owner!=null&&_.target.owner!=null&&_.source.owner==this&&_.target.owner==this))throw"Source and/or target owner is invalid!";var O=_.source.edges.indexOf(_),P=_.target.edges.indexOf(_);if(!(O>-1&&P>-1))throw"Source and/or target doesn't know this edge!";_.source.edges.splice(O,1),_.target!=_.source&&_.target.edges.splice(P,1);var B=_.source.owner.getEdges().indexOf(_);if(B==-1)throw"Not in owner's edge list!";_.source.owner.getEdges().splice(B,1)}},C.prototype.updateLeftTop=function(){for(var S=l.MAX_VALUE,R=l.MAX_VALUE,L,_,I,N=this.getNodes(),B=N.length,O=0;O<B;O++){var P=N[O];L=P.getTop(),_=P.getLeft(),S>L&&(S=L),R>_&&(R=_)}return S==l.MAX_VALUE?null:(N[0].getParent().paddingLeft!=null?I=N[0].getParent().paddingLeft:I=this.margin,this.left=R-I,this.top=S-I,new v(this.left,this.top))},C.prototype.updateBounds=function(S){for(var R=l.MAX_VALUE,L=-l.MAX_VALUE,_=l.MAX_VALUE,I=-l.MAX_VALUE,N,B,O,P,$,V=this.nodes,Y=V.length,Q=0;Q<Y;Q++){var q=V[Q];S&&q.child!=null&&q.updateBounds(),N=q.getLeft(),B=q.getRight(),O=q.getTop(),P=q.getBottom(),R>N&&(R=N),L<B&&(L=B),_>O&&(_=O),I<P&&(I=P)}var W=new b(R,_,L-R,I-_);R==l.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),V[0].getParent().paddingLeft!=null?$=V[0].getParent().paddingLeft:$=this.margin,this.left=W.x-$,this.right=W.x+W.width+$,this.top=W.y-$,this.bottom=W.y+W.height+$},C.calculateBounds=function(S){for(var R=l.MAX_VALUE,L=-l.MAX_VALUE,_=l.MAX_VALUE,I=-l.MAX_VALUE,N,B,O,P,$=S.length,V=0;V<$;V++){var Y=S[V];N=Y.getLeft(),B=Y.getRight(),O=Y.getTop(),P=Y.getBottom(),R>N&&(R=N),L<B&&(L=B),_>O&&(_=O),I<P&&(I=P)}var Q=new b(R,_,L-R,I-_);return Q},C.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},C.prototype.getEstimatedSize=function(){if(this.estimatedSize==l.MIN_VALUE)throw"assert failed";return this.estimatedSize},C.prototype.calcEstimatedSize=function(){for(var S=0,R=this.nodes,L=R.length,_=0;_<L;_++){var I=R[_];S+=I.calcEstimatedSize()}return S==0?this.estimatedSize=h.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=S/Math.sqrt(this.nodes.length),this.estimatedSize},C.prototype.updateConnected=function(){var S=this;if(this.nodes.length==0){this.isConnected=!0;return}var R=new T,L=new Set,_=this.nodes[0],I,N,B=_.withChildren();for(B.forEach(function(Q){R.push(Q),L.add(Q)});R.length!==0;){_=R.shift(),I=_.getEdges();for(var O=I.length,P=0;P<O;P++){var $=I[P];if(N=$.getOtherEndInGraph(_,this),N!=null&&!L.has(N)){var V=N.withChildren();V.forEach(function(Q){R.push(Q),L.add(Q)})}}}if(this.isConnected=!1,L.size>=this.nodes.length){var Y=0;L.forEach(function(Q){Q.owner==S&&Y++}),Y==this.nodes.length&&(this.isConnected=!0)}},r.exports=C}),(function(r,t,a){"use strict";var s,l=a(1);function h(f){s=a(6),this.layout=f,this.graphs=[],this.edges=[]}i(h,"LGraphManager"),h.prototype.addRoot=function(){var f=this.layout.newGraph(),d=this.layout.newNode(null),m=this.add(f,d);return this.setRootGraph(m),this.rootGraph},h.prototype.add=function(f,d,m,b,v){if(m==null&&b==null&&v==null){if(f==null)throw"Graph is null!";if(d==null)throw"Parent node is null!";if(this.graphs.indexOf(f)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(f),f.parent!=null)throw"Already has a parent!";if(d.child!=null)throw"Already has a child!";return f.parent=d,d.child=f,f}else{v=m,b=d,m=f;var T=b.getOwner(),C=v.getOwner();if(!(T!=null&&T.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(C!=null&&C.getGraphManager()==this))throw"Target not in this graph mgr!";if(T==C)return m.isInterGraph=!1,T.add(m,b,v);if(m.isInterGraph=!0,m.source=b,m.target=v,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}},h.prototype.remove=function(f){if(f instanceof s){var d=f;if(d.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(d==this.rootGraph||d.parent!=null&&d.parent.graphManager==this))throw"Invalid parent node!";var m=[];m=m.concat(d.getEdges());for(var b,v=m.length,T=0;T<v;T++)b=m[T],d.remove(b);var C=[];C=C.concat(d.getNodes());var E;v=C.length;for(var T=0;T<v;T++)E=C[T],d.remove(E);d==this.rootGraph&&this.setRootGraph(null);var S=this.graphs.indexOf(d);this.graphs.splice(S,1),d.parent=null}else if(f instanceof l){if(b=f,b==null)throw"Edge is null!";if(!b.isInterGraph)throw"Not an inter-graph edge!";if(!(b.source!=null&&b.target!=null))throw"Source and/or target is null!";if(!(b.source.edges.indexOf(b)!=-1&&b.target.edges.indexOf(b)!=-1))throw"Source and/or target doesn't know this edge!";var S=b.source.edges.indexOf(b);if(b.source.edges.splice(S,1),S=b.target.edges.indexOf(b),b.target.edges.splice(S,1),!(b.source.owner!=null&&b.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(b.source.owner.getGraphManager().edges.indexOf(b)==-1)throw"Not in owner graph manager's edge list!";var S=b.source.owner.getGraphManager().edges.indexOf(b);b.source.owner.getGraphManager().edges.splice(S,1)}},h.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},h.prototype.getGraphs=function(){return this.graphs},h.prototype.getAllNodes=function(){if(this.allNodes==null){for(var f=[],d=this.getGraphs(),m=d.length,b=0;b<m;b++)f=f.concat(d[b].getNodes());this.allNodes=f}return this.allNodes},h.prototype.resetAllNodes=function(){this.allNodes=null},h.prototype.resetAllEdges=function(){this.allEdges=null},h.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},h.prototype.getAllEdges=function(){if(this.allEdges==null){for(var f=[],d=this.getGraphs(),m=d.length,b=0;b<d.length;b++)f=f.concat(d[b].getEdges());f=f.concat(this.edges),this.allEdges=f}return this.allEdges},h.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},h.prototype.setAllNodesToApplyGravitation=function(f){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=f},h.prototype.getRoot=function(){return this.rootGraph},h.prototype.setRootGraph=function(f){if(f.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=f,f.parent==null&&(f.parent=this.layout.newNode("Root node"))},h.prototype.getLayout=function(){return this.layout},h.prototype.isOneAncestorOfOther=function(f,d){if(!(f!=null&&d!=null))throw"assert failed";if(f==d)return!0;var m=f.getOwner(),b;do{if(b=m.getParent(),b==null)break;if(b==d)return!0;if(m=b.getOwner(),m==null)break}while(!0);m=d.getOwner();do{if(b=m.getParent(),b==null)break;if(b==f)return!0;if(m=b.getOwner(),m==null)break}while(!0);return!1},h.prototype.calcLowestCommonAncestors=function(){for(var f,d,m,b,v,T=this.getAllEdges(),C=T.length,E=0;E<C;E++){if(f=T[E],d=f.source,m=f.target,f.lca=null,f.sourceInLca=d,f.targetInLca=m,d==m){f.lca=d.getOwner();continue}for(b=d.getOwner();f.lca==null;){for(f.targetInLca=m,v=m.getOwner();f.lca==null;){if(v==b){f.lca=v;break}if(v==this.rootGraph)break;if(f.lca!=null)throw"assert failed";f.targetInLca=v.getParent(),v=f.targetInLca.getOwner()}if(b==this.rootGraph)break;f.lca==null&&(f.sourceInLca=b.getParent(),b=f.sourceInLca.getOwner())}if(f.lca==null)throw"assert failed"}},h.prototype.calcLowestCommonAncestor=function(f,d){if(f==d)return f.getOwner();var m=f.getOwner();do{if(m==null)break;var b=d.getOwner();do{if(b==null)break;if(b==m)return b;b=b.getParent().getOwner()}while(!0);m=m.getParent().getOwner()}while(!0);return m},h.prototype.calcInclusionTreeDepths=function(f,d){f==null&&d==null&&(f=this.rootGraph,d=1);for(var m,b=f.getNodes(),v=b.length,T=0;T<v;T++)m=b[T],m.inclusionTreeDepth=d,m.child!=null&&this.calcInclusionTreeDepths(m.child,d+1)},h.prototype.includesInvalidEdge=function(){for(var f,d=[],m=this.edges.length,b=0;b<m;b++)f=this.edges[b],this.isOneAncestorOfOther(f.source,f.target)&&d.push(f);for(var b=0;b<d.length;b++)this.remove(d[b]);return!1},r.exports=h}),(function(r,t,a){"use strict";var s=a(12);function l(){}i(l,"IGeometry"),l.calcSeparationAmount=function(h,f,d,m){if(!h.intersects(f))throw"assert failed";var b=new Array(2);this.decideDirectionsForOverlappingNodes(h,f,b),d[0]=Math.min(h.getRight(),f.getRight())-Math.max(h.x,f.x),d[1]=Math.min(h.getBottom(),f.getBottom())-Math.max(h.y,f.y),h.getX()<=f.getX()&&h.getRight()>=f.getRight()?d[0]+=Math.min(f.getX()-h.getX(),h.getRight()-f.getRight()):f.getX()<=h.getX()&&f.getRight()>=h.getRight()&&(d[0]+=Math.min(h.getX()-f.getX(),f.getRight()-h.getRight())),h.getY()<=f.getY()&&h.getBottom()>=f.getBottom()?d[1]+=Math.min(f.getY()-h.getY(),h.getBottom()-f.getBottom()):f.getY()<=h.getY()&&f.getBottom()>=h.getBottom()&&(d[1]+=Math.min(h.getY()-f.getY(),f.getBottom()-h.getBottom()));var v=Math.abs((f.getCenterY()-h.getCenterY())/(f.getCenterX()-h.getCenterX()));f.getCenterY()===h.getCenterY()&&f.getCenterX()===h.getCenterX()&&(v=1);var T=v*d[0],C=d[1]/v;d[0]<C?C=d[0]:T=d[1],d[0]=-1*b[0]*(C/2+m),d[1]=-1*b[1]*(T/2+m)},l.decideDirectionsForOverlappingNodes=function(h,f,d){h.getCenterX()<f.getCenterX()?d[0]=-1:d[0]=1,h.getCenterY()<f.getCenterY()?d[1]=-1:d[1]=1},l.getIntersection2=function(h,f,d){var m=h.getCenterX(),b=h.getCenterY(),v=f.getCenterX(),T=f.getCenterY();if(h.intersects(f))return d[0]=m,d[1]=b,d[2]=v,d[3]=T,!0;var C=h.getX(),E=h.getY(),S=h.getRight(),R=h.getX(),L=h.getBottom(),_=h.getRight(),I=h.getWidthHalf(),N=h.getHeightHalf(),B=f.getX(),O=f.getY(),P=f.getRight(),$=f.getX(),V=f.getBottom(),Y=f.getRight(),Q=f.getWidthHalf(),q=f.getHeightHalf(),W=!1,H=!1;if(m===v){if(b>T)return d[0]=m,d[1]=E,d[2]=v,d[3]=V,!1;if(b<T)return d[0]=m,d[1]=L,d[2]=v,d[3]=O,!1}else if(b===T){if(m>v)return d[0]=C,d[1]=b,d[2]=P,d[3]=T,!1;if(m<v)return d[0]=S,d[1]=b,d[2]=B,d[3]=T,!1}else{var re=h.height/h.width,Z=f.height/f.width,X=(T-b)/(v-m),te=void 0,U=void 0,ne=void 0,se=void 0,he=void 0,le=void 0;if(-re===X?m>v?(d[0]=R,d[1]=L,W=!0):(d[0]=S,d[1]=E,W=!0):re===X&&(m>v?(d[0]=C,d[1]=E,W=!0):(d[0]=_,d[1]=L,W=!0)),-Z===X?v>m?(d[2]=$,d[3]=V,H=!0):(d[2]=P,d[3]=O,H=!0):Z===X&&(v>m?(d[2]=B,d[3]=O,H=!0):(d[2]=Y,d[3]=V,H=!0)),W&&H)return!1;if(m>v?b>T?(te=this.getCardinalDirection(re,X,4),U=this.getCardinalDirection(Z,X,2)):(te=this.getCardinalDirection(-re,X,3),U=this.getCardinalDirection(-Z,X,1)):b>T?(te=this.getCardinalDirection(-re,X,1),U=this.getCardinalDirection(-Z,X,3)):(te=this.getCardinalDirection(re,X,2),U=this.getCardinalDirection(Z,X,4)),!W)switch(te){case 1:se=E,ne=m+-N/X,d[0]=ne,d[1]=se;break;case 2:ne=_,se=b+I*X,d[0]=ne,d[1]=se;break;case 3:se=L,ne=m+N/X,d[0]=ne,d[1]=se;break;case 4:ne=R,se=b+-I*X,d[0]=ne,d[1]=se;break}if(!H)switch(U){case 1:le=O,he=v+-q/X,d[2]=he,d[3]=le;break;case 2:he=Y,le=T+Q*X,d[2]=he,d[3]=le;break;case 3:le=V,he=v+q/X,d[2]=he,d[3]=le;break;case 4:he=$,le=T+-Q*X,d[2]=he,d[3]=le;break}}return!1},l.getCardinalDirection=function(h,f,d){return h>f?d:1+d%4},l.getIntersection=function(h,f,d,m){if(m==null)return this.getIntersection2(h,f,d);var b=h.x,v=h.y,T=f.x,C=f.y,E=d.x,S=d.y,R=m.x,L=m.y,_=void 0,I=void 0,N=void 0,B=void 0,O=void 0,P=void 0,$=void 0,V=void 0,Y=void 0;return N=C-v,O=b-T,$=T*v-b*C,B=L-S,P=E-R,V=R*S-E*L,Y=N*P-B*O,Y===0?null:(_=(O*V-P*$)/Y,I=(B*$-N*V)/Y,new s(_,I))},l.angleOfVector=function(h,f,d,m){var b=void 0;return h!==d?(b=Math.atan((m-f)/(d-h)),d<h?b+=Math.PI:m<f&&(b+=this.TWO_PI)):m<f?b=this.ONE_AND_HALF_PI:b=this.HALF_PI,b},l.doIntersect=function(h,f,d,m){var b=h.x,v=h.y,T=f.x,C=f.y,E=d.x,S=d.y,R=m.x,L=m.y,_=(T-b)*(L-S)-(R-E)*(C-v);if(_===0)return!1;var I=((L-S)*(R-b)+(E-R)*(L-v))/_,N=((v-C)*(R-b)+(T-b)*(L-v))/_;return 0<I&&I<1&&0<N&&N<1},l.findCircleLineIntersections=function(h,f,d,m,b,v,T){var C=(d-h)*(d-h)+(m-f)*(m-f),E=2*((h-b)*(d-h)+(f-v)*(m-f)),S=(h-b)*(h-b)+(f-v)*(f-v)-T*T,R=E*E-4*C*S;if(R>=0){var L=(-E+Math.sqrt(E*E-4*C*S))/(2*C),_=(-E-Math.sqrt(E*E-4*C*S))/(2*C),I=null;return L>=0&&L<=1?[L]:_>=0&&_<=1?[_]:I}else return null},l.HALF_PI=.5*Math.PI,l.ONE_AND_HALF_PI=1.5*Math.PI,l.TWO_PI=2*Math.PI,l.THREE_PI=3*Math.PI,r.exports=l}),(function(r,t,a){"use strict";function s(){}i(s,"IMath"),s.sign=function(l){return l>0?1:l<0?-1:0},s.floor=function(l){return l<0?Math.ceil(l):Math.floor(l)},s.ceil=function(l){return l<0?Math.floor(l):Math.ceil(l)},r.exports=s}),(function(r,t,a){"use strict";function s(){}i(s,"Integer"),s.MAX_VALUE=2147483647,s.MIN_VALUE=-2147483648,r.exports=s}),(function(r,t,a){"use strict";var s=(function(){function b(v,T){for(var C=0;C<T.length;C++){var E=T[C];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}return i(b,"defineProperties"),function(v,T,C){return T&&b(v.prototype,T),C&&b(v,C),v}})();function l(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}i(l,"_classCallCheck");var h=i(function(v){return{value:v,next:null,prev:null}},"nodeFrom"),f=i(function(v,T,C,E){return v!==null?v.next=T:E.head=T,C!==null?C.prev=T:E.tail=T,T.prev=v,T.next=C,E.length++,T},"add"),d=i(function(v,T){var C=v.prev,E=v.next;return C!==null?C.next=E:T.head=E,E!==null?E.prev=C:T.tail=C,v.prev=v.next=null,T.length--,v},"_remove"),m=(function(){function b(v){var T=this;l(this,b),this.length=0,this.head=null,this.tail=null,v?.forEach(function(C){return T.push(C)})}return i(b,"LinkedList"),s(b,[{key:"size",value:i(function(){return this.length},"size")},{key:"insertBefore",value:i(function(T,C){return f(C.prev,h(T),C,this)},"insertBefore")},{key:"insertAfter",value:i(function(T,C){return f(C,h(T),C.next,this)},"insertAfter")},{key:"insertNodeBefore",value:i(function(T,C){return f(C.prev,T,C,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:i(function(T,C){return f(C,T,C.next,this)},"insertNodeAfter")},{key:"push",value:i(function(T){return f(this.tail,h(T),null,this)},"push")},{key:"unshift",value:i(function(T){return f(null,h(T),this.head,this)},"unshift")},{key:"remove",value:i(function(T){return d(T,this)},"remove")},{key:"pop",value:i(function(){return d(this.tail,this).value},"pop")},{key:"popNode",value:i(function(){return d(this.tail,this)},"popNode")},{key:"shift",value:i(function(){return d(this.head,this).value},"shift")},{key:"shiftNode",value:i(function(){return d(this.head,this)},"shiftNode")},{key:"get_object_at",value:i(function(T){if(T<=this.length()){for(var C=1,E=this.head;C<T;)E=E.next,C++;return E.value}},"get_object_at")},{key:"set_object_at",value:i(function(T,C){if(T<=this.length()){for(var E=1,S=this.head;E<T;)S=S.next,E++;S.value=C}},"set_object_at")}]),b})();r.exports=m}),(function(r,t,a){"use strict";function s(l,h,f){this.x=null,this.y=null,l==null&&h==null&&f==null?(this.x=0,this.y=0):typeof l=="number"&&typeof h=="number"&&f==null?(this.x=l,this.y=h):l.constructor.name=="Point"&&h==null&&f==null&&(f=l,this.x=f.x,this.y=f.y)}i(s,"Point"),s.prototype.getX=function(){return this.x},s.prototype.getY=function(){return this.y},s.prototype.getLocation=function(){return new s(this.x,this.y)},s.prototype.setLocation=function(l,h,f){l.constructor.name=="Point"&&h==null&&f==null?(f=l,this.setLocation(f.x,f.y)):typeof l=="number"&&typeof h=="number"&&f==null&&(parseInt(l)==l&&parseInt(h)==h?this.move(l,h):(this.x=Math.floor(l+.5),this.y=Math.floor(h+.5)))},s.prototype.move=function(l,h){this.x=l,this.y=h},s.prototype.translate=function(l,h){this.x+=l,this.y+=h},s.prototype.equals=function(l){if(l.constructor.name=="Point"){var h=l;return this.x==h.x&&this.y==h.y}return this==l},s.prototype.toString=function(){return new s().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=s}),(function(r,t,a){"use strict";function s(l,h,f,d){this.x=0,this.y=0,this.width=0,this.height=0,l!=null&&h!=null&&f!=null&&d!=null&&(this.x=l,this.y=h,this.width=f,this.height=d)}i(s,"RectangleD"),s.prototype.getX=function(){return this.x},s.prototype.setX=function(l){this.x=l},s.prototype.getY=function(){return this.y},s.prototype.setY=function(l){this.y=l},s.prototype.getWidth=function(){return this.width},s.prototype.setWidth=function(l){this.width=l},s.prototype.getHeight=function(){return this.height},s.prototype.setHeight=function(l){this.height=l},s.prototype.getRight=function(){return this.x+this.width},s.prototype.getBottom=function(){return this.y+this.height},s.prototype.intersects=function(l){return!(this.getRight()<l.x||this.getBottom()<l.y||l.getRight()<this.x||l.getBottom()<this.y)},s.prototype.getCenterX=function(){return this.x+this.width/2},s.prototype.getMinX=function(){return this.getX()},s.prototype.getMaxX=function(){return this.getX()+this.width},s.prototype.getCenterY=function(){return this.y+this.height/2},s.prototype.getMinY=function(){return this.getY()},s.prototype.getMaxY=function(){return this.getY()+this.height},s.prototype.getWidthHalf=function(){return this.width/2},s.prototype.getHeightHalf=function(){return this.height/2},r.exports=s}),(function(r,t,a){"use strict";var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function l(){}i(l,"UniqueIDGeneretor"),l.lastID=0,l.createID=function(h){return l.isPrimitive(h)?h:(h.uniqueID!=null||(h.uniqueID=l.getString(),l.lastID++),h.uniqueID)},l.getString=function(h){return h==null&&(h=l.lastID),"Object#"+h},l.isPrimitive=function(h){var f=typeof h>"u"?"undefined":s(h);return h==null||f!="object"&&f!="function"},r.exports=l}),(function(r,t,a){"use strict";function s(E){if(Array.isArray(E)){for(var S=0,R=Array(E.length);S<E.length;S++)R[S]=E[S];return R}else return Array.from(E)}i(s,"_toConsumableArray");var l=a(0),h=a(7),f=a(3),d=a(1),m=a(6),b=a(5),v=a(17),T=a(29);function C(E){T.call(this),this.layoutQuality=l.QUALITY,this.createBendsAsNeeded=l.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=l.DEFAULT_INCREMENTAL,this.animationOnLayout=l.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=l.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=l.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=l.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new h(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,E!=null&&(this.isRemoteUse=E)}i(C,"Layout"),C.RANDOM_SEED=1,C.prototype=Object.create(T.prototype),C.prototype.getGraphManager=function(){return this.graphManager},C.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},C.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},C.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},C.prototype.newGraphManager=function(){var E=new h(this);return this.graphManager=E,E},C.prototype.newGraph=function(E){return new m(null,this.graphManager,E)},C.prototype.newNode=function(E){return new f(this.graphManager,E)},C.prototype.newEdge=function(E){return new d(null,null,E)},C.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},C.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var E;return this.checkLayoutSuccess()?E=!1:E=this.layout(),l.ANIMATE==="during"?!1:(E&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,E)},C.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},C.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var E,S=this.graphManager.getAllEdges(),R=0;R<S.length;R++)E=S[R];for(var L,_=this.graphManager.getRoot().getNodes(),R=0;R<_.length;R++)L=_[R];this.update(this.graphManager.getRoot())}},C.prototype.update=function(E){if(E==null)this.update2();else if(E instanceof f){var S=E;if(S.getChild()!=null)for(var R=S.getChild().getNodes(),L=0;L<R.length;L++)update(R[L]);if(S.vGraphObject!=null){var _=S.vGraphObject;_.update(S)}}else if(E instanceof d){var I=E;if(I.vGraphObject!=null){var N=I.vGraphObject;N.update(I)}}else if(E instanceof m){var B=E;if(B.vGraphObject!=null){var O=B.vGraphObject;O.update(B)}}},C.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=l.QUALITY,this.animationDuringLayout=l.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=l.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=l.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=l.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=l.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=l.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},C.prototype.transform=function(E){if(E==null)this.transform(new b(0,0));else{var S=new v,R=this.graphManager.getRoot().updateLeftTop();if(R!=null){S.setWorldOrgX(E.x),S.setWorldOrgY(E.y),S.setDeviceOrgX(R.x),S.setDeviceOrgY(R.y);for(var L=this.getAllNodes(),_,I=0;I<L.length;I++)_=L[I],_.transform(S)}}},C.prototype.positionNodesRandomly=function(E){if(E==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var S,R,L=E.getNodes(),_=0;_<L.length;_++)S=L[_],R=S.getChild(),R==null||R.getNodes().length==0?S.scatter():(this.positionNodesRandomly(R),S.updateBounds())},C.prototype.getFlatForest=function(){for(var E=[],S=!0,R=this.graphManager.getRoot().getNodes(),L=!0,_=0;_<R.length;_++)R[_].getChild()!=null&&(L=!1);if(!L)return E;var I=new Set,N=[],B=new Map,O=[];for(O=O.concat(R);O.length>0&&S;){for(N.push(O[0]);N.length>0&&S;){var P=N[0];N.splice(0,1),I.add(P);for(var $=P.getEdges(),_=0;_<$.length;_++){var V=$[_].getOtherEnd(P);if(B.get(P)!=V)if(!I.has(V))N.push(V),B.set(V,P);else{S=!1;break}}}if(!S)E=[];else{var Y=[].concat(s(I));E.push(Y);for(var _=0;_<Y.length;_++){var Q=Y[_],q=O.indexOf(Q);q>-1&&O.splice(q,1)}I=new Set,B=new Map}}return E},C.prototype.createDummyNodesForBendpoints=function(E){for(var S=[],R=E.source,L=this.graphManager.calcLowestCommonAncestor(E.source,E.target),_=0;_<E.bendpoints.length;_++){var I=this.newNode(null);I.setRect(new Point(0,0),new Dimension(1,1)),L.add(I);var N=this.newEdge(null);this.graphManager.add(N,R,I),S.add(I),R=I}var N=this.newEdge(null);return this.graphManager.add(N,R,E.target),this.edgeToDummyNodes.set(E,S),E.isInterGraph()?this.graphManager.remove(E):L.remove(E),S},C.prototype.createBendpointsFromDummyNodes=function(){var E=[];E=E.concat(this.graphManager.getAllEdges()),E=[].concat(s(this.edgeToDummyNodes.keys())).concat(E);for(var S=0;S<E.length;S++){var R=E[S];if(R.bendpoints.length>0){for(var L=this.edgeToDummyNodes.get(R),_=0;_<L.length;_++){var I=L[_],N=new b(I.getCenterX(),I.getCenterY()),B=R.bendpoints.get(_);B.x=N.x,B.y=N.y,I.getOwner().remove(I)}this.graphManager.add(R,R.source,R.target)}}},C.transform=function(E,S,R,L){if(R!=null&&L!=null){var _=S;if(E<=50){var I=S/R;_-=(S-I)/50*(50-E)}else{var N=S*L;_+=(N-S)/50*(E-50)}return _}else{var B,O;return E<=50?(B=9*S/500,O=S/10):(B=9*S/50,O=-8*S),B*E+O}},C.findCenterOfTree=function(E){var S=[];S=S.concat(E);var R=[],L=new Map,_=!1,I=null;(S.length==1||S.length==2)&&(_=!0,I=S[0]);for(var N=0;N<S.length;N++){var B=S[N],O=B.getNeighborsList().size;L.set(B,B.getNeighborsList().size),O==1&&R.push(B)}var P=[];for(P=P.concat(R);!_;){var $=[];$=$.concat(P),P=[];for(var N=0;N<S.length;N++){var B=S[N],V=S.indexOf(B);V>=0&&S.splice(V,1);var Y=B.getNeighborsList();Y.forEach(function(W){if(R.indexOf(W)<0){var H=L.get(W),re=H-1;re==1&&P.push(W),L.set(W,re)}})}R=R.concat(P),(S.length==1||S.length==2)&&(_=!0,I=S[0])}return I},C.prototype.setGraphManager=function(E){this.graphManager=E},r.exports=C}),(function(r,t,a){"use strict";function s(){}i(s,"RandomSeed"),s.seed=1,s.x=0,s.nextDouble=function(){return s.x=Math.sin(s.seed++)*1e4,s.x-Math.floor(s.x)},r.exports=s}),(function(r,t,a){"use strict";var s=a(5);function l(h,f){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i(l,"Transform"),l.prototype.getWorldOrgX=function(){return this.lworldOrgX},l.prototype.setWorldOrgX=function(h){this.lworldOrgX=h},l.prototype.getWorldOrgY=function(){return this.lworldOrgY},l.prototype.setWorldOrgY=function(h){this.lworldOrgY=h},l.prototype.getWorldExtX=function(){return this.lworldExtX},l.prototype.setWorldExtX=function(h){this.lworldExtX=h},l.prototype.getWorldExtY=function(){return this.lworldExtY},l.prototype.setWorldExtY=function(h){this.lworldExtY=h},l.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},l.prototype.setDeviceOrgX=function(h){this.ldeviceOrgX=h},l.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},l.prototype.setDeviceOrgY=function(h){this.ldeviceOrgY=h},l.prototype.getDeviceExtX=function(){return this.ldeviceExtX},l.prototype.setDeviceExtX=function(h){this.ldeviceExtX=h},l.prototype.getDeviceExtY=function(){return this.ldeviceExtY},l.prototype.setDeviceExtY=function(h){this.ldeviceExtY=h},l.prototype.transformX=function(h){var f=0,d=this.lworldExtX;return d!=0&&(f=this.ldeviceOrgX+(h-this.lworldOrgX)*this.ldeviceExtX/d),f},l.prototype.transformY=function(h){var f=0,d=this.lworldExtY;return d!=0&&(f=this.ldeviceOrgY+(h-this.lworldOrgY)*this.ldeviceExtY/d),f},l.prototype.inverseTransformX=function(h){var f=0,d=this.ldeviceExtX;return d!=0&&(f=this.lworldOrgX+(h-this.ldeviceOrgX)*this.lworldExtX/d),f},l.prototype.inverseTransformY=function(h){var f=0,d=this.ldeviceExtY;return d!=0&&(f=this.lworldOrgY+(h-this.ldeviceOrgY)*this.lworldExtY/d),f},l.prototype.inverseTransformPoint=function(h){var f=new s(this.inverseTransformX(h.x),this.inverseTransformY(h.y));return f},r.exports=l}),(function(r,t,a){"use strict";function s(T){if(Array.isArray(T)){for(var C=0,E=Array(T.length);C<T.length;C++)E[C]=T[C];return E}else return Array.from(T)}i(s,"_toConsumableArray");var l=a(15),h=a(4),f=a(0),d=a(8),m=a(9);function b(){l.call(this),this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*h.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=h.MAX_ITERATIONS}i(b,"FDLayout"),b.prototype=Object.create(l.prototype);for(var v in l)b[v]=l[v];b.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},b.prototype.calcIdealEdgeLengths=function(){for(var T,C,E,S,R,L,_,I=this.getGraphManager().getAllEdges(),N=0;N<I.length;N++)T=I[N],C=T.idealLength,T.isInterGraph&&(S=T.getSource(),R=T.getTarget(),L=T.getSourceInLca().getEstimatedSize(),_=T.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(T.idealLength+=L+_-2*f.SIMPLE_NODE_SIZE),E=T.getLca().getInclusionTreeDepth(),T.idealLength+=C*h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(S.getInclusionTreeDepth()+R.getInclusionTreeDepth()-2*E))},b.prototype.initSpringEmbedder=function(){var T=this.getAllNodes().length;this.incremental?(T>h.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*h.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(T-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-h.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT_INCREMENTAL):(T>h.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(h.COOLING_ADAPTATION_FACTOR,1-(T-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*(1-h.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*h.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},b.prototype.calcSpringForces=function(){for(var T=this.getAllEdges(),C,E=0;E<T.length;E++)C=T[E],this.calcSpringForce(C,C.idealLength)},b.prototype.calcRepulsionForces=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E,S,R,L,_=this.getAllNodes(),I;if(this.useFRGridVariant)for(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&T&&this.updateGrid(),I=new Set,E=0;E<_.length;E++)R=_[E],this.calculateRepulsionForceOfANode(R,I,T,C),I.add(R);else for(E=0;E<_.length;E++)for(R=_[E],S=E+1;S<_.length;S++)L=_[S],R.getOwner()==L.getOwner()&&this.calcRepulsionForce(R,L)},b.prototype.calcGravitationalForces=function(){for(var T,C=this.getAllNodesToApplyGravitation(),E=0;E<C.length;E++)T=C[E],this.calcGravitationalForce(T)},b.prototype.moveNodes=function(){for(var T=this.getAllNodes(),C,E=0;E<T.length;E++)C=T[E],C.move()},b.prototype.calcSpringForce=function(T,C){var E=T.getSource(),S=T.getTarget(),R,L,_,I;if(this.uniformLeafNodeSizes&&E.getChild()==null&&S.getChild()==null)T.updateLengthSimple();else if(T.updateLength(),T.isOverlapingSourceAndTarget)return;R=T.getLength(),R!=0&&(L=T.edgeElasticity*(R-C),_=L*(T.lengthX/R),I=L*(T.lengthY/R),E.springForceX+=_,E.springForceY+=I,S.springForceX-=_,S.springForceY-=I)},b.prototype.calcRepulsionForce=function(T,C){var E=T.getRect(),S=C.getRect(),R=new Array(2),L=new Array(4),_,I,N,B,O,P,$;if(E.intersects(S)){d.calcSeparationAmount(E,S,R,h.DEFAULT_EDGE_LENGTH/2),P=2*R[0],$=2*R[1];var V=T.noOfChildren*C.noOfChildren/(T.noOfChildren+C.noOfChildren);T.repulsionForceX-=V*P,T.repulsionForceY-=V*$,C.repulsionForceX+=V*P,C.repulsionForceY+=V*$}else this.uniformLeafNodeSizes&&T.getChild()==null&&C.getChild()==null?(_=S.getCenterX()-E.getCenterX(),I=S.getCenterY()-E.getCenterY()):(d.getIntersection(E,S,L),_=L[2]-L[0],I=L[3]-L[1]),Math.abs(_)<h.MIN_REPULSION_DIST&&(_=m.sign(_)*h.MIN_REPULSION_DIST),Math.abs(I)<h.MIN_REPULSION_DIST&&(I=m.sign(I)*h.MIN_REPULSION_DIST),N=_*_+I*I,B=Math.sqrt(N),O=(T.nodeRepulsion/2+C.nodeRepulsion/2)*T.noOfChildren*C.noOfChildren/N,P=O*_/B,$=O*I/B,T.repulsionForceX-=P,T.repulsionForceY-=$,C.repulsionForceX+=P,C.repulsionForceY+=$},b.prototype.calcGravitationalForce=function(T){var C,E,S,R,L,_,I,N;C=T.getOwner(),E=(C.getRight()+C.getLeft())/2,S=(C.getTop()+C.getBottom())/2,R=T.getCenterX()-E,L=T.getCenterY()-S,_=Math.abs(R)+T.getWidth()/2,I=Math.abs(L)+T.getHeight()/2,T.getOwner()==this.graphManager.getRoot()?(N=C.getEstimatedSize()*this.gravityRangeFactor,(_>N||I>N)&&(T.gravitationForceX=-this.gravityConstant*R,T.gravitationForceY=-this.gravityConstant*L)):(N=C.getEstimatedSize()*this.compoundGravityRangeFactor,(_>N||I>N)&&(T.gravitationForceX=-this.gravityConstant*R*this.compoundGravityConstant,T.gravitationForceY=-this.gravityConstant*L*this.compoundGravityConstant))},b.prototype.isConverged=function(){var T,C=!1;return this.totalIterations>this.maxIterations/3&&(C=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),T=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,T||C},b.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},b.prototype.calcNoOfChildrenForAllNodes=function(){for(var T,C=this.graphManager.getAllNodes(),E=0;E<C.length;E++)T=C[E],T.noOfChildren=T.getNoOfChildren()},b.prototype.calcGrid=function(T){var C=0,E=0;C=parseInt(Math.ceil((T.getRight()-T.getLeft())/this.repulsionRange)),E=parseInt(Math.ceil((T.getBottom()-T.getTop())/this.repulsionRange));for(var S=new Array(C),R=0;R<C;R++)S[R]=new Array(E);for(var R=0;R<C;R++)for(var L=0;L<E;L++)S[R][L]=new Array;return S},b.prototype.addNodeToGrid=function(T,C,E){var S=0,R=0,L=0,_=0;S=parseInt(Math.floor((T.getRect().x-C)/this.repulsionRange)),R=parseInt(Math.floor((T.getRect().width+T.getRect().x-C)/this.repulsionRange)),L=parseInt(Math.floor((T.getRect().y-E)/this.repulsionRange)),_=parseInt(Math.floor((T.getRect().height+T.getRect().y-E)/this.repulsionRange));for(var I=S;I<=R;I++)for(var N=L;N<=_;N++)this.grid[I][N].push(T),T.setGridCoordinates(S,R,L,_)},b.prototype.updateGrid=function(){var T,C,E=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),T=0;T<E.length;T++)C=E[T],this.addNodeToGrid(C,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},b.prototype.calculateRepulsionForceOfANode=function(T,C,E,S){if(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&E||S){var R=new Set;T.surrounding=new Array;for(var L,_=this.grid,I=T.startX-1;I<T.finishX+2;I++)for(var N=T.startY-1;N<T.finishY+2;N++)if(!(I<0||N<0||I>=_.length||N>=_[0].length)){for(var B=0;B<_[I][N].length;B++)if(L=_[I][N][B],!(T.getOwner()!=L.getOwner()||T==L)&&!C.has(L)&&!R.has(L)){var O=Math.abs(T.getCenterX()-L.getCenterX())-(T.getWidth()/2+L.getWidth()/2),P=Math.abs(T.getCenterY()-L.getCenterY())-(T.getHeight()/2+L.getHeight()/2);O<=this.repulsionRange&&P<=this.repulsionRange&&R.add(L)}}T.surrounding=[].concat(s(R))}for(I=0;I<T.surrounding.length;I++)this.calcRepulsionForce(T,T.surrounding[I])},b.prototype.calcRepulsionRange=function(){return 0},r.exports=b}),(function(r,t,a){"use strict";var s=a(1),l=a(4);function h(d,m,b){s.call(this,d,m,b),this.idealLength=l.DEFAULT_EDGE_LENGTH,this.edgeElasticity=l.DEFAULT_SPRING_STRENGTH}i(h,"FDLayoutEdge"),h.prototype=Object.create(s.prototype);for(var f in s)h[f]=s[f];r.exports=h}),(function(r,t,a){"use strict";var s=a(3),l=a(4);function h(d,m,b,v){s.call(this,d,m,b,v),this.nodeRepulsion=l.DEFAULT_REPULSION_STRENGTH,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=[]}i(h,"FDLayoutNode"),h.prototype=Object.create(s.prototype);for(var f in s)h[f]=s[f];h.prototype.setGridCoordinates=function(d,m,b,v){this.startX=d,this.finishX=m,this.startY=b,this.finishY=v},r.exports=h}),(function(r,t,a){"use strict";function s(l,h){this.width=0,this.height=0,l!==null&&h!==null&&(this.height=h,this.width=l)}i(s,"DimensionD"),s.prototype.getWidth=function(){return this.width},s.prototype.setWidth=function(l){this.width=l},s.prototype.getHeight=function(){return this.height},s.prototype.setHeight=function(l){this.height=l},r.exports=s}),(function(r,t,a){"use strict";var s=a(14);function l(){this.map={},this.keys=[]}i(l,"HashMap"),l.prototype.put=function(h,f){var d=s.createID(h);this.contains(d)||(this.map[d]=f,this.keys.push(h))},l.prototype.contains=function(h){var f=s.createID(h);return this.map[h]!=null},l.prototype.get=function(h){var f=s.createID(h);return this.map[f]},l.prototype.keySet=function(){return this.keys},r.exports=l}),(function(r,t,a){"use strict";var s=a(14);function l(){this.set={}}i(l,"HashSet"),l.prototype.add=function(h){var f=s.createID(h);this.contains(f)||(this.set[f]=h)},l.prototype.remove=function(h){delete this.set[s.createID(h)]},l.prototype.clear=function(){this.set={}},l.prototype.contains=function(h){return this.set[s.createID(h)]==h},l.prototype.isEmpty=function(){return this.size()===0},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAllTo=function(h){for(var f=Object.keys(this.set),d=f.length,m=0;m<d;m++)h.push(this.set[f[m]])},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAll=function(h){for(var f=h.length,d=0;d<f;d++){var m=h[d];this.add(m)}},r.exports=l}),(function(r,t,a){"use strict";function s(){}i(s,"Matrix"),s.multMat=function(l,h){for(var f=[],d=0;d<l.length;d++){f[d]=[];for(var m=0;m<h[0].length;m++){f[d][m]=0;for(var b=0;b<l[0].length;b++)f[d][m]+=l[d][b]*h[b][m]}}return f},s.transpose=function(l){for(var h=[],f=0;f<l[0].length;f++){h[f]=[];for(var d=0;d<l.length;d++)h[f][d]=l[d][f]}return h},s.multCons=function(l,h){for(var f=[],d=0;d<l.length;d++)f[d]=l[d]*h;return f},s.minusOp=function(l,h){for(var f=[],d=0;d<l.length;d++)f[d]=l[d]-h[d];return f},s.dotProduct=function(l,h){for(var f=0,d=0;d<l.length;d++)f+=l[d]*h[d];return f},s.mag=function(l){return Math.sqrt(this.dotProduct(l,l))},s.normalize=function(l){for(var h=[],f=this.mag(l),d=0;d<l.length;d++)h[d]=l[d]/f;return h},s.multGamma=function(l){for(var h=[],f=0,d=0;d<l.length;d++)f+=l[d];f*=-1/l.length;for(var m=0;m<l.length;m++)h[m]=f+l[m];return h},s.multL=function(l,h,f){for(var d=[],m=[],b=[],v=0;v<h[0].length;v++){for(var T=0,C=0;C<h.length;C++)T+=-.5*h[C][v]*l[C];m[v]=T}for(var E=0;E<f.length;E++){for(var S=0,R=0;R<f.length;R++)S+=f[E][R]*m[R];b[E]=S}for(var L=0;L<h.length;L++){for(var _=0,I=0;I<h[0].length;I++)_+=h[L][I]*b[I];d[L]=_}return d},r.exports=s}),(function(r,t,a){"use strict";var s=(function(){function d(m,b){for(var v=0;v<b.length;v++){var T=b[v];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(m,T.key,T)}}return i(d,"defineProperties"),function(m,b,v){return b&&d(m.prototype,b),v&&d(m,v),m}})();function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}i(l,"_classCallCheck");var h=a(11),f=(function(){function d(m,b){l(this,d),(b!==null||b!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var v=void 0;m instanceof h?v=m.size():v=m.length,this._quicksort(m,0,v-1)}return i(d,"Quicksort"),s(d,[{key:"_quicksort",value:i(function(b,v,T){if(v<T){var C=this._partition(b,v,T);this._quicksort(b,v,C),this._quicksort(b,C+1,T)}},"_quicksort")},{key:"_partition",value:i(function(b,v,T){for(var C=this._get(b,v),E=v,S=T;;){for(;this.compareFunction(C,this._get(b,S));)S--;for(;this.compareFunction(this._get(b,E),C);)E++;if(E<S)this._swap(b,E,S),E++,S--;else return S}},"_partition")},{key:"_get",value:i(function(b,v){return b instanceof h?b.get_object_at(v):b[v]},"_get")},{key:"_set",value:i(function(b,v,T){b instanceof h?b.set_object_at(v,T):b[v]=T},"_set")},{key:"_swap",value:i(function(b,v,T){var C=this._get(b,v);this._set(b,v,this._get(b,T)),this._set(b,T,C)},"_swap")},{key:"_defaultCompareFunction",value:i(function(b,v){return v>b},"_defaultCompareFunction")}]),d})();r.exports=f}),(function(r,t,a){"use strict";function s(){}i(s,"SVD"),s.svd=function(l){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=l.length,this.n=l[0].length;var h=Math.min(this.m,this.n);this.s=(function(Un){for(var En=[];Un-- >0;)En.push(0);return En})(Math.min(this.m+1,this.n)),this.U=(function(Un){var En=i(function ai(Gn){if(Gn.length==0)return 0;for(var ui=[],Tn=0;Tn<Gn[0];Tn++)ui.push(ai(Gn.slice(1)));return ui},"allocate");return En(Un)})([this.m,h]),this.V=(function(Un){var En=i(function ai(Gn){if(Gn.length==0)return 0;for(var ui=[],Tn=0;Tn<Gn[0];Tn++)ui.push(ai(Gn.slice(1)));return ui},"allocate");return En(Un)})([this.n,this.n]);for(var f=(function(Un){for(var En=[];Un-- >0;)En.push(0);return En})(this.n),d=(function(Un){for(var En=[];Un-- >0;)En.push(0);return En})(this.m),m=!0,b=!0,v=Math.min(this.m-1,this.n),T=Math.max(0,Math.min(this.n-2,this.m)),C=0;C<Math.max(v,T);C++){if(C<v){this.s[C]=0;for(var E=C;E<this.m;E++)this.s[C]=s.hypot(this.s[C],l[E][C]);if(this.s[C]!==0){l[C][C]<0&&(this.s[C]=-this.s[C]);for(var S=C;S<this.m;S++)l[S][C]/=this.s[C];l[C][C]+=1}this.s[C]=-this.s[C]}for(var R=C+1;R<this.n;R++){if((function(Un,En){return Un&&En})(C<v,this.s[C]!==0)){for(var L=0,_=C;_<this.m;_++)L+=l[_][C]*l[_][R];L=-L/l[C][C];for(var I=C;I<this.m;I++)l[I][R]+=L*l[I][C]}f[R]=l[C][R]}if((function(Un,En){return Un&&En})(m,C<v))for(var N=C;N<this.m;N++)this.U[N][C]=l[N][C];if(C<T){f[C]=0;for(var B=C+1;B<this.n;B++)f[C]=s.hypot(f[C],f[B]);if(f[C]!==0){f[C+1]<0&&(f[C]=-f[C]);for(var O=C+1;O<this.n;O++)f[O]/=f[C];f[C+1]+=1}if(f[C]=-f[C],(function(Un,En){return Un&&En})(C+1<this.m,f[C]!==0)){for(var P=C+1;P<this.m;P++)d[P]=0;for(var $=C+1;$<this.n;$++)for(var V=C+1;V<this.m;V++)d[V]+=f[$]*l[V][$];for(var Y=C+1;Y<this.n;Y++)for(var Q=-f[Y]/f[C+1],q=C+1;q<this.m;q++)l[q][Y]+=Q*d[q]}if(b)for(var W=C+1;W<this.n;W++)this.V[W][C]=f[W]}}var H=Math.min(this.n,this.m+1);if(v<this.n&&(this.s[v]=l[v][v]),this.m<H&&(this.s[H-1]=0),T+1<H&&(f[T]=l[T][H-1]),f[H-1]=0,m){for(var re=v;re<h;re++){for(var Z=0;Z<this.m;Z++)this.U[Z][re]=0;this.U[re][re]=1}for(var X=v-1;X>=0;X--)if(this.s[X]!==0){for(var te=X+1;te<h;te++){for(var U=0,ne=X;ne<this.m;ne++)U+=this.U[ne][X]*this.U[ne][te];U=-U/this.U[X][X];for(var se=X;se<this.m;se++)this.U[se][te]+=U*this.U[se][X]}for(var he=X;he<this.m;he++)this.U[he][X]=-this.U[he][X];this.U[X][X]=1+this.U[X][X];for(var le=0;le<X-1;le++)this.U[le][X]=0}else{for(var pe=0;pe<this.m;pe++)this.U[pe][X]=0;this.U[X][X]=1}}if(b)for(var ge=this.n-1;ge>=0;ge--){if((function(Un,En){return Un&&En})(ge<T,f[ge]!==0))for(var we=ge+1;we<h;we++){for(var Ae=0,ve=ge+1;ve<this.n;ve++)Ae+=this.V[ve][ge]*this.V[ve][we];Ae=-Ae/this.V[ge+1][ge];for(var Ie=ge+1;Ie<this.n;Ie++)this.V[Ie][we]+=Ae*this.V[Ie][ge]}for(var De=0;De<this.n;De++)this.V[De][ge]=0;this.V[ge][ge]=1}for(var Be=H-1,Fe=0,ze=Math.pow(2,-52),vt=Math.pow(2,-966);H>0;){var lt=void 0,Ft=void 0;for(lt=H-2;lt>=-1&<!==-1;lt--)if(Math.abs(f[lt])<=vt+ze*(Math.abs(this.s[lt])+Math.abs(this.s[lt+1]))){f[lt]=0;break}if(lt===H-2)Ft=4;else{var pr=void 0;for(pr=H-1;pr>=lt&&pr!==lt;pr--){var tr=(pr!==H?Math.abs(f[pr]):0)+(pr!==lt+1?Math.abs(f[pr-1]):0);if(Math.abs(this.s[pr])<=vt+ze*tr){this.s[pr]=0;break}}pr===lt?Ft=3:pr===H-1?Ft=1:(Ft=2,lt=pr)}switch(lt++,Ft){case 1:{var Mt=f[H-2];f[H-2]=0;for(var ot=H-2;ot>=lt;ot--){var it=s.hypot(this.s[ot],Mt),mt=this.s[ot]/it,Rt=Mt/it;if(this.s[ot]=it,ot!==lt&&(Mt=-Rt*f[ot-1],f[ot-1]=mt*f[ot-1]),b)for(var pt=0;pt<this.n;pt++)it=mt*this.V[pt][ot]+Rt*this.V[pt][H-1],this.V[pt][H-1]=-Rt*this.V[pt][ot]+mt*this.V[pt][H-1],this.V[pt][ot]=it}}break;case 2:{var gt=f[lt-1];f[lt-1]=0;for(var ut=lt;ut<H;ut++){var Yt=s.hypot(this.s[ut],gt),Ye=this.s[ut]/Yt,Oe=gt/Yt;if(this.s[ut]=Yt,gt=-Oe*f[ut],f[ut]=Ye*f[ut],m)for(var K=0;K<this.m;K++)Yt=Ye*this.U[K][ut]+Oe*this.U[K][lt-1],this.U[K][lt-1]=-Oe*this.U[K][ut]+Ye*this.U[K][lt-1],this.U[K][ut]=Yt}}break;case 3:{var Te=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[H-1]),Math.abs(this.s[H-2])),Math.abs(f[H-2])),Math.abs(this.s[lt])),Math.abs(f[lt])),ce=this.s[H-1]/Te,Re=this.s[H-2]/Te,me=f[H-2]/Te,be=this.s[lt]/Te,ke=f[lt]/Te,We=((Re+ce)*(Re-ce)+me*me)/2,Ue=ce*me*(ce*me),rt=0;(function(Un,En){return Un||En})(We!==0,Ue!==0)&&(rt=Math.sqrt(We*We+Ue),We<0&&(rt=-rt),rt=Ue/(We+rt));for(var nt=(be+ce)*(be-ce)+rt,Ot=be*ke,ft=lt;ft<H-1;ft++){var Qt=s.hypot(nt,Ot),$t=nt/Qt,qt=Ot/Qt;if(ft!==lt&&(f[ft-1]=Qt),nt=$t*this.s[ft]+qt*f[ft],f[ft]=$t*f[ft]-qt*this.s[ft],Ot=qt*this.s[ft+1],this.s[ft+1]=$t*this.s[ft+1],b)for(var Gt=0;Gt<this.n;Gt++)Qt=$t*this.V[Gt][ft]+qt*this.V[Gt][ft+1],this.V[Gt][ft+1]=-qt*this.V[Gt][ft]+$t*this.V[Gt][ft+1],this.V[Gt][ft]=Qt;if(Qt=s.hypot(nt,Ot),$t=nt/Qt,qt=Ot/Qt,this.s[ft]=Qt,nt=$t*f[ft]+qt*this.s[ft+1],this.s[ft+1]=-qt*f[ft]+$t*this.s[ft+1],Ot=qt*f[ft+1],f[ft+1]=$t*f[ft+1],m&&ft<this.m-1)for(var jt=0;jt<this.m;jt++)Qt=$t*this.U[jt][ft]+qt*this.U[jt][ft+1],this.U[jt][ft+1]=-qt*this.U[jt][ft]+$t*this.U[jt][ft+1],this.U[jt][ft]=Qt}f[H-2]=nt,Fe=Fe+1}break;case 4:{if(this.s[lt]<=0&&(this.s[lt]=this.s[lt]<0?-this.s[lt]:0,b))for(var Zr=0;Zr<=Be;Zr++)this.V[Zr][lt]=-this.V[Zr][lt];for(;lt<Be&&!(this.s[lt]>=this.s[lt+1]);){var yt=this.s[lt];if(this.s[lt]=this.s[lt+1],this.s[lt+1]=yt,b&<<this.n-1)for(var $n=0;$n<this.n;$n++)yt=this.V[$n][lt+1],this.V[$n][lt+1]=this.V[$n][lt],this.V[$n][lt]=yt;if(m&<<this.m-1)for(var Ut=0;Ut<this.m;Ut++)yt=this.U[Ut][lt+1],this.U[Ut][lt+1]=this.U[Ut][lt],this.U[Ut][lt]=yt;lt++}Fe=0,H--}break}}var An={U:this.U,V:this.V,S:this.s};return An},s.hypot=function(l,h){var f=void 0;return Math.abs(l)>Math.abs(h)?(f=h/l,f=Math.abs(l)*Math.sqrt(1+f*f)):h!=0?(f=l/h,f=Math.abs(h)*Math.sqrt(1+f*f)):f=0,f},r.exports=s}),(function(r,t,a){"use strict";var s=(function(){function f(d,m){for(var b=0;b<m.length;b++){var v=m[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}return i(f,"defineProperties"),function(d,m,b){return m&&f(d.prototype,m),b&&f(d,b),d}})();function l(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}i(l,"_classCallCheck");var h=(function(){function f(d,m){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;l(this,f),this.sequence1=d,this.sequence2=m,this.match_score=b,this.mismatch_penalty=v,this.gap_penalty=T,this.iMax=d.length+1,this.jMax=m.length+1,this.grid=new Array(this.iMax);for(var C=0;C<this.iMax;C++){this.grid[C]=new Array(this.jMax);for(var E=0;E<this.jMax;E++)this.grid[C][E]=0}this.tracebackGrid=new Array(this.iMax);for(var S=0;S<this.iMax;S++){this.tracebackGrid[S]=new Array(this.jMax);for(var R=0;R<this.jMax;R++)this.tracebackGrid[S][R]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return i(f,"NeedlemanWunsch"),s(f,[{key:"getScore",value:i(function(){return this.score},"getScore")},{key:"getAlignments",value:i(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:i(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 b=1;b<this.iMax;b++)this.grid[b][0]=this.grid[b-1][0]+this.gap_penalty,this.tracebackGrid[b][0]=[!1,!0,!1];for(var v=1;v<this.iMax;v++)for(var T=1;T<this.jMax;T++){var C=void 0;this.sequence1[v-1]===this.sequence2[T-1]?C=this.grid[v-1][T-1]+this.match_score:C=this.grid[v-1][T-1]+this.mismatch_penalty;var E=this.grid[v-1][T]+this.gap_penalty,S=this.grid[v][T-1]+this.gap_penalty,R=[C,E,S],L=this.arrayAllMaxIndexes(R);this.grid[v][T]=R[L[0]],this.tracebackGrid[v][T]=[L.includes(0),L.includes(1),L.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:i(function(){var m=[];for(m.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});m[0];){var b=m[0],v=this.tracebackGrid[b.pos[0]][b.pos[1]];v[0]&&m.push({pos:[b.pos[0]-1,b.pos[1]-1],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),v[1]&&m.push({pos:[b.pos[0]-1,b.pos[1]],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:"-"+b.seq2}),v[2]&&m.push({pos:[b.pos[0],b.pos[1]-1],seq1:"-"+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),b.pos[0]===0&&b.pos[1]===0&&this.alignments.push({sequence1:b.seq1,sequence2:b.seq2}),m.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:i(function(m,b){for(var v=[],T=-1;(T=m.indexOf(b,T+1))!==-1;)v.push(T);return v},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:i(function(m){return this.getAllIndexes(m,Math.max.apply(null,m))},"arrayAllMaxIndexes")}]),f})();r.exports=h}),(function(r,t,a){"use strict";var s=i(function(){},"layoutBase");s.FDLayout=a(18),s.FDLayoutConstants=a(4),s.FDLayoutEdge=a(19),s.FDLayoutNode=a(20),s.DimensionD=a(21),s.HashMap=a(22),s.HashSet=a(23),s.IGeometry=a(8),s.IMath=a(9),s.Integer=a(10),s.Point=a(12),s.PointD=a(5),s.RandomSeed=a(16),s.RectangleD=a(13),s.Transform=a(17),s.UniqueIDGeneretor=a(14),s.Quicksort=a(25),s.LinkedList=a(11),s.LGraphObject=a(2),s.LGraph=a(6),s.LEdge=a(1),s.LGraphManager=a(7),s.LNode=a(3),s.Layout=a(15),s.LayoutConstants=a(0),s.NeedlemanWunsch=a(27),s.Matrix=a(24),s.SVD=a(26),r.exports=s}),(function(r,t,a){"use strict";function s(){this.listeners=[]}i(s,"Emitter");var l=s.prototype;l.addListener=function(h,f){this.listeners.push({event:h,callback:f})},l.removeListener=function(h,f){for(var d=this.listeners.length;d>=0;d--){var m=this.listeners[d];m.event===h&&m.callback===f&&this.listeners.splice(d,1)}},l.emit=function(h,f){for(var d=0;d<this.listeners.length;d++){var m=this.listeners[d];h===m.event&&m.callback(f)}},r.exports=s})])})});var Jht=Zv((lse,Kht)=>{"use strict";i((function(t,a){typeof lse=="object"&&typeof Kht=="object"?Kht.exports=a(Xht()):typeof define=="function"&&define.amd?define(["layout-base"],a):typeof lse=="object"?lse.coseBase=a(Xht()):t.coseBase=a(t.layoutBase)}),"webpackUniversalModuleDefinition")(lse,function(r){return(()=>{"use strict";var t={45:((h,f,d)=>{var m={};m.layoutBase=d(551),m.CoSEConstants=d(806),m.CoSEEdge=d(767),m.CoSEGraph=d(880),m.CoSEGraphManager=d(578),m.CoSELayout=d(765),m.CoSENode=d(991),m.ConstraintHandler=d(902),h.exports=m}),806:((h,f,d)=>{var m=d(551).FDLayoutConstants;function b(){}i(b,"CoSEConstants");for(var v in m)b[v]=m[v];b.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,b.DEFAULT_RADIAL_SEPARATION=m.DEFAULT_EDGE_LENGTH,b.DEFAULT_COMPONENT_SEPERATION=60,b.TILE=!0,b.TILING_PADDING_VERTICAL=10,b.TILING_PADDING_HORIZONTAL=10,b.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,b.ENFORCE_CONSTRAINTS=!0,b.APPLY_LAYOUT=!0,b.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,b.TREE_REDUCTION_ON_INCREMENTAL=!0,b.PURE_INCREMENTAL=b.DEFAULT_INCREMENTAL,h.exports=b}),767:((h,f,d)=>{var m=d(551).FDLayoutEdge;function b(T,C,E){m.call(this,T,C,E)}i(b,"CoSEEdge"),b.prototype=Object.create(m.prototype);for(var v in m)b[v]=m[v];h.exports=b}),880:((h,f,d)=>{var m=d(551).LGraph;function b(T,C,E){m.call(this,T,C,E)}i(b,"CoSEGraph"),b.prototype=Object.create(m.prototype);for(var v in m)b[v]=m[v];h.exports=b}),578:((h,f,d)=>{var m=d(551).LGraphManager;function b(T){m.call(this,T)}i(b,"CoSEGraphManager"),b.prototype=Object.create(m.prototype);for(var v in m)b[v]=m[v];h.exports=b}),765:((h,f,d)=>{var m=d(551).FDLayout,b=d(578),v=d(880),T=d(991),C=d(767),E=d(806),S=d(902),R=d(551).FDLayoutConstants,L=d(551).LayoutConstants,_=d(551).Point,I=d(551).PointD,N=d(551).DimensionD,B=d(551).Layout,O=d(551).Integer,P=d(551).IGeometry,$=d(551).LGraph,V=d(551).Transform,Y=d(551).LinkedList;function Q(){m.call(this),this.toBeTiled={},this.constraints={}}i(Q,"CoSELayout"),Q.prototype=Object.create(m.prototype);for(var q in m)Q[q]=m[q];Q.prototype.newGraphManager=function(){var W=new b(this);return this.graphManager=W,W},Q.prototype.newGraph=function(W){return new v(null,this.graphManager,W)},Q.prototype.newNode=function(W){return new T(this.graphManager,W)},Q.prototype.newEdge=function(W){return new C(null,null,W)},Q.prototype.initParameters=function(){m.prototype.initParameters.call(this,arguments),this.isSubLayout||(E.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=E.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=E.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,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)},Q.prototype.initSpringEmbedder=function(){m.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/R.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},Q.prototype.layout=function(){var W=L.DEFAULT_CREATE_BENDS_AS_NEEDED;return W&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},Q.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(E.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var H=new Set(this.getAllNodes()),re=this.nodesWithGravity.filter(function(te){return H.has(te)});this.graphManager.setAllNodesToApplyGravitation(re)}}else{var W=this.getFlatForest();if(W.length>0)this.positionNodesRadially(W);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var H=new Set(this.getAllNodes()),re=this.nodesWithGravity.filter(function(Z){return H.has(Z)});this.graphManager.setAllNodesToApplyGravitation(re),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(S.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),E.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},Q.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 W=new Set(this.getAllNodes()),H=this.nodesWithGravity.filter(function(X){return W.has(X)});this.graphManager.setAllNodesToApplyGravitation(H),this.graphManager.updateBounds(),this.updateGrid(),E.PURE_INCREMENTAL?this.coolingFactor=R.DEFAULT_COOLING_FACTOR_INCREMENTAL/2: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()),E.PURE_INCREMENTAL?this.coolingFactor=R.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=R.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var re=!this.isTreeGrowing&&!this.isGrowthFinished,Z=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(re,Z),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Q.prototype.getPositionsData=function(){for(var W=this.graphManager.getAllNodes(),H={},re=0;re<W.length;re++){var Z=W[re].rect,X=W[re].id;H[X]={id:X,x:Z.getCenterX(),y:Z.getCenterY(),w:Z.width,h:Z.height}}return H},Q.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var W=!1;if(R.ANIMATE==="during")this.emit("layoutstarted");else{for(;!W;)W=this.tick();this.graphManager.updateBounds()}},Q.prototype.moveNodes=function(){for(var W=this.getAllNodes(),H,re=0;re<W.length;re++)H=W[re],H.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var re=0;re<W.length;re++)H=W[re],H.move()},Q.prototype.initConstraintVariables=function(){var W=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var H=this.graphManager.getAllNodes(),re=0;re<H.length;re++){var Z=H[re];this.idToNodeMap.set(Z.id,Z)}var X=i(function ve(Ie){for(var De=Ie.getChild().getNodes(),Be,Fe=0,ze=0;ze<De.length;ze++)Be=De[ze],Be.getChild()==null?W.fixedNodeSet.has(Be.id)&&(Fe+=100):Fe+=ve(Be);return Fe},"calculateCompoundWeight");if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(De){W.fixedNodeSet.add(De.nodeId)});for(var H=this.graphManager.getAllNodes(),Z,re=0;re<H.length;re++)if(Z=H[re],Z.getChild()!=null){var te=X(Z);te>0&&(Z.fixedNodeWeight=te)}}if(this.constraints.relativePlacementConstraint){var U=new Map,ne=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(ve){W.fixedNodesOnHorizontal.add(ve),W.fixedNodesOnVertical.add(ve)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var se=this.constraints.alignmentConstraint.vertical,re=0;re<se.length;re++)this.dummyToNodeForVerticalAlignment.set("dummy"+re,[]),se[re].forEach(function(Ie){U.set(Ie,"dummy"+re),W.dummyToNodeForVerticalAlignment.get("dummy"+re).push(Ie),W.fixedNodeSet.has(Ie)&&W.fixedNodesOnHorizontal.add("dummy"+re)});if(this.constraints.alignmentConstraint.horizontal)for(var he=this.constraints.alignmentConstraint.horizontal,re=0;re<he.length;re++)this.dummyToNodeForHorizontalAlignment.set("dummy"+re,[]),he[re].forEach(function(Ie){ne.set(Ie,"dummy"+re),W.dummyToNodeForHorizontalAlignment.get("dummy"+re).push(Ie),W.fixedNodeSet.has(Ie)&&W.fixedNodesOnVertical.add("dummy"+re)})}if(E.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(ve){var Ie,De,Be;for(Be=ve.length-1;Be>=2*ve.length/3;Be--)Ie=Math.floor(Math.random()*(Be+1)),De=ve[Be],ve[Be]=ve[Ie],ve[Ie]=De;return ve},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(ve){if(ve.left){var Ie=U.has(ve.left)?U.get(ve.left):ve.left,De=U.has(ve.right)?U.get(ve.right):ve.right;W.nodesInRelativeHorizontal.includes(Ie)||(W.nodesInRelativeHorizontal.push(Ie),W.nodeToRelativeConstraintMapHorizontal.set(Ie,[]),W.dummyToNodeForVerticalAlignment.has(Ie)?W.nodeToTempPositionMapHorizontal.set(Ie,W.idToNodeMap.get(W.dummyToNodeForVerticalAlignment.get(Ie)[0]).getCenterX()):W.nodeToTempPositionMapHorizontal.set(Ie,W.idToNodeMap.get(Ie).getCenterX())),W.nodesInRelativeHorizontal.includes(De)||(W.nodesInRelativeHorizontal.push(De),W.nodeToRelativeConstraintMapHorizontal.set(De,[]),W.dummyToNodeForVerticalAlignment.has(De)?W.nodeToTempPositionMapHorizontal.set(De,W.idToNodeMap.get(W.dummyToNodeForVerticalAlignment.get(De)[0]).getCenterX()):W.nodeToTempPositionMapHorizontal.set(De,W.idToNodeMap.get(De).getCenterX())),W.nodeToRelativeConstraintMapHorizontal.get(Ie).push({right:De,gap:ve.gap}),W.nodeToRelativeConstraintMapHorizontal.get(De).push({left:Ie,gap:ve.gap})}else{var Be=ne.has(ve.top)?ne.get(ve.top):ve.top,Fe=ne.has(ve.bottom)?ne.get(ve.bottom):ve.bottom;W.nodesInRelativeVertical.includes(Be)||(W.nodesInRelativeVertical.push(Be),W.nodeToRelativeConstraintMapVertical.set(Be,[]),W.dummyToNodeForHorizontalAlignment.has(Be)?W.nodeToTempPositionMapVertical.set(Be,W.idToNodeMap.get(W.dummyToNodeForHorizontalAlignment.get(Be)[0]).getCenterY()):W.nodeToTempPositionMapVertical.set(Be,W.idToNodeMap.get(Be).getCenterY())),W.nodesInRelativeVertical.includes(Fe)||(W.nodesInRelativeVertical.push(Fe),W.nodeToRelativeConstraintMapVertical.set(Fe,[]),W.dummyToNodeForHorizontalAlignment.has(Fe)?W.nodeToTempPositionMapVertical.set(Fe,W.idToNodeMap.get(W.dummyToNodeForHorizontalAlignment.get(Fe)[0]).getCenterY()):W.nodeToTempPositionMapVertical.set(Fe,W.idToNodeMap.get(Fe).getCenterY())),W.nodeToRelativeConstraintMapVertical.get(Be).push({bottom:Fe,gap:ve.gap}),W.nodeToRelativeConstraintMapVertical.get(Fe).push({top:Be,gap:ve.gap})}});else{var le=new Map,pe=new Map;this.constraints.relativePlacementConstraint.forEach(function(ve){if(ve.left){var Ie=U.has(ve.left)?U.get(ve.left):ve.left,De=U.has(ve.right)?U.get(ve.right):ve.right;le.has(Ie)?le.get(Ie).push(De):le.set(Ie,[De]),le.has(De)?le.get(De).push(Ie):le.set(De,[Ie])}else{var Be=ne.has(ve.top)?ne.get(ve.top):ve.top,Fe=ne.has(ve.bottom)?ne.get(ve.bottom):ve.bottom;pe.has(Be)?pe.get(Be).push(Fe):pe.set(Be,[Fe]),pe.has(Fe)?pe.get(Fe).push(Be):pe.set(Fe,[Be])}});var ge=i(function(Ie,De){var Be=[],Fe=[],ze=new Y,vt=new Set,lt=0;return Ie.forEach(function(Ft,pr){if(!vt.has(pr)){Be[lt]=[],Fe[lt]=!1;var tr=pr;for(ze.push(tr),vt.add(tr),Be[lt].push(tr);ze.length!=0;){tr=ze.shift(),De.has(tr)&&(Fe[lt]=!0);var Mt=Ie.get(tr);Mt.forEach(function(ot){vt.has(ot)||(ze.push(ot),vt.add(ot),Be[lt].push(ot))})}lt++}}),{components:Be,isFixed:Fe}},"constructComponents"),we=ge(le,W.fixedNodesOnHorizontal);this.componentsOnHorizontal=we.components,this.fixedComponentsOnHorizontal=we.isFixed;var Ae=ge(pe,W.fixedNodesOnVertical);this.componentsOnVertical=Ae.components,this.fixedComponentsOnVertical=Ae.isFixed}}},Q.prototype.updateDisplacements=function(){var W=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(Ae){var ve=W.idToNodeMap.get(Ae.nodeId);ve.displacementX=0,ve.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,re=0;re<H.length;re++){for(var Z=0,X=0;X<H[re].length;X++){if(this.fixedNodeSet.has(H[re][X])){Z=0;break}Z+=this.idToNodeMap.get(H[re][X]).displacementX}for(var te=Z/H[re].length,X=0;X<H[re].length;X++)this.idToNodeMap.get(H[re][X]).displacementX=te}if(this.constraints.alignmentConstraint.horizontal)for(var U=this.constraints.alignmentConstraint.horizontal,re=0;re<U.length;re++){for(var ne=0,X=0;X<U[re].length;X++){if(this.fixedNodeSet.has(U[re][X])){ne=0;break}ne+=this.idToNodeMap.get(U[re][X]).displacementY}for(var se=ne/U[re].length,X=0;X<U[re].length;X++)this.idToNodeMap.get(U[re][X]).displacementY=se}}if(this.constraints.relativePlacementConstraint)if(E.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(Ae){if(!W.fixedNodesOnHorizontal.has(Ae)){var ve=0;W.dummyToNodeForVerticalAlignment.has(Ae)?ve=W.idToNodeMap.get(W.dummyToNodeForVerticalAlignment.get(Ae)[0]).displacementX:ve=W.idToNodeMap.get(Ae).displacementX,W.nodeToRelativeConstraintMapHorizontal.get(Ae).forEach(function(Ie){if(Ie.right){var De=W.nodeToTempPositionMapHorizontal.get(Ie.right)-W.nodeToTempPositionMapHorizontal.get(Ae)-ve;De<Ie.gap&&(ve-=Ie.gap-De)}else{var De=W.nodeToTempPositionMapHorizontal.get(Ae)-W.nodeToTempPositionMapHorizontal.get(Ie.left)+ve;De<Ie.gap&&(ve+=Ie.gap-De)}}),W.nodeToTempPositionMapHorizontal.set(Ae,W.nodeToTempPositionMapHorizontal.get(Ae)+ve),W.dummyToNodeForVerticalAlignment.has(Ae)?W.dummyToNodeForVerticalAlignment.get(Ae).forEach(function(Ie){W.idToNodeMap.get(Ie).displacementX=ve}):W.idToNodeMap.get(Ae).displacementX=ve}}),this.nodesInRelativeVertical.forEach(function(Ae){if(!W.fixedNodesOnHorizontal.has(Ae)){var ve=0;W.dummyToNodeForHorizontalAlignment.has(Ae)?ve=W.idToNodeMap.get(W.dummyToNodeForHorizontalAlignment.get(Ae)[0]).displacementY:ve=W.idToNodeMap.get(Ae).displacementY,W.nodeToRelativeConstraintMapVertical.get(Ae).forEach(function(Ie){if(Ie.bottom){var De=W.nodeToTempPositionMapVertical.get(Ie.bottom)-W.nodeToTempPositionMapVertical.get(Ae)-ve;De<Ie.gap&&(ve-=Ie.gap-De)}else{var De=W.nodeToTempPositionMapVertical.get(Ae)-W.nodeToTempPositionMapVertical.get(Ie.top)+ve;De<Ie.gap&&(ve+=Ie.gap-De)}}),W.nodeToTempPositionMapVertical.set(Ae,W.nodeToTempPositionMapVertical.get(Ae)+ve),W.dummyToNodeForHorizontalAlignment.has(Ae)?W.dummyToNodeForHorizontalAlignment.get(Ae).forEach(function(Ie){W.idToNodeMap.get(Ie).displacementY=ve}):W.idToNodeMap.get(Ae).displacementY=ve}});else{for(var re=0;re<this.componentsOnHorizontal.length;re++){var he=this.componentsOnHorizontal[re];if(this.fixedComponentsOnHorizontal[re])for(var X=0;X<he.length;X++)this.dummyToNodeForVerticalAlignment.has(he[X])?this.dummyToNodeForVerticalAlignment.get(he[X]).forEach(function(Ie){W.idToNodeMap.get(Ie).displacementX=0}):this.idToNodeMap.get(he[X]).displacementX=0;else{for(var le=0,pe=0,X=0;X<he.length;X++)if(this.dummyToNodeForVerticalAlignment.has(he[X])){var ge=this.dummyToNodeForVerticalAlignment.get(he[X]);le+=ge.length*this.idToNodeMap.get(ge[0]).displacementX,pe+=ge.length}else le+=this.idToNodeMap.get(he[X]).displacementX,pe++;for(var we=le/pe,X=0;X<he.length;X++)this.dummyToNodeForVerticalAlignment.has(he[X])?this.dummyToNodeForVerticalAlignment.get(he[X]).forEach(function(Ie){W.idToNodeMap.get(Ie).displacementX=we}):this.idToNodeMap.get(he[X]).displacementX=we}}for(var re=0;re<this.componentsOnVertical.length;re++){var he=this.componentsOnVertical[re];if(this.fixedComponentsOnVertical[re])for(var X=0;X<he.length;X++)this.dummyToNodeForHorizontalAlignment.has(he[X])?this.dummyToNodeForHorizontalAlignment.get(he[X]).forEach(function(De){W.idToNodeMap.get(De).displacementY=0}):this.idToNodeMap.get(he[X]).displacementY=0;else{for(var le=0,pe=0,X=0;X<he.length;X++)if(this.dummyToNodeForHorizontalAlignment.has(he[X])){var ge=this.dummyToNodeForHorizontalAlignment.get(he[X]);le+=ge.length*this.idToNodeMap.get(ge[0]).displacementY,pe+=ge.length}else le+=this.idToNodeMap.get(he[X]).displacementY,pe++;for(var we=le/pe,X=0;X<he.length;X++)this.dummyToNodeForHorizontalAlignment.has(he[X])?this.dummyToNodeForHorizontalAlignment.get(he[X]).forEach(function(ze){W.idToNodeMap.get(ze).displacementY=we}):this.idToNodeMap.get(he[X]).displacementY=we}}}},Q.prototype.calculateNodesToApplyGravitationTo=function(){var W=[],H,re=this.graphManager.getGraphs(),Z=re.length,X;for(X=0;X<Z;X++)H=re[X],H.updateConnected(),H.isConnected||(W=W.concat(H.getNodes()));return W},Q.prototype.createBendpoints=function(){var W=[];W=W.concat(this.graphManager.getAllEdges());var H=new Set,re;for(re=0;re<W.length;re++){var Z=W[re];if(!H.has(Z)){var X=Z.getSource(),te=Z.getTarget();if(X==te)Z.getBendpoints().push(new I),Z.getBendpoints().push(new I),this.createDummyNodesForBendpoints(Z),H.add(Z);else{var U=[];if(U=U.concat(X.getEdgeListToNode(te)),U=U.concat(te.getEdgeListToNode(X)),!H.has(U[0])){if(U.length>1){var ne;for(ne=0;ne<U.length;ne++){var se=U[ne];se.getBendpoints().push(new I),this.createDummyNodesForBendpoints(se)}}U.forEach(function(he){H.add(he)})}}}if(H.size==W.length)break}},Q.prototype.positionNodesRadially=function(W){for(var H=new _(0,0),re=Math.ceil(Math.sqrt(W.length)),Z=0,X=0,te=0,U=new I(0,0),ne=0;ne<W.length;ne++){ne%re==0&&(te=0,X=Z,ne!=0&&(X+=E.DEFAULT_COMPONENT_SEPERATION),Z=0);var se=W[ne],he=B.findCenterOfTree(se);H.x=te,H.y=X,U=Q.radialLayout(se,he,H),U.y>Z&&(Z=Math.floor(U.y)),te=Math.floor(U.x+E.DEFAULT_COMPONENT_SEPERATION)}this.transform(new I(L.WORLD_CENTER_X-U.x/2,L.WORLD_CENTER_Y-U.y/2))},Q.radialLayout=function(W,H,re){var Z=Math.max(this.maxDiagonalInTree(W),E.DEFAULT_RADIAL_SEPARATION);Q.branchRadialLayout(H,null,0,359,0,Z);var X=$.calculateBounds(W),te=new V;te.setDeviceOrgX(X.getMinX()),te.setDeviceOrgY(X.getMinY()),te.setWorldOrgX(re.x),te.setWorldOrgY(re.y);for(var U=0;U<W.length;U++){var ne=W[U];ne.transform(te)}var se=new I(X.getMaxX(),X.getMaxY());return te.inverseTransformPoint(se)},Q.branchRadialLayout=function(W,H,re,Z,X,te){var U=(Z-re+1)/2;U<0&&(U+=180);var ne=(U+re)%360,se=ne*P.TWO_PI/360,he=Math.cos(se),le=X*Math.cos(se),pe=X*Math.sin(se);W.setCenter(le,pe);var ge=[];ge=ge.concat(W.getEdges());var we=ge.length;H!=null&&we--;for(var Ae=0,ve=ge.length,Ie,De=W.getEdgesBetween(H);De.length>1;){var Be=De[0];De.splice(0,1);var Fe=ge.indexOf(Be);Fe>=0&&ge.splice(Fe,1),ve--,we--}H!=null?Ie=(ge.indexOf(De[0])+1)%ve:Ie=0;for(var ze=Math.abs(Z-re)/we,vt=Ie;Ae!=we;vt=++vt%ve){var lt=ge[vt].getOtherEnd(W);if(lt!=H){var Ft=(re+Ae*ze)%360,pr=(Ft+ze)%360;Q.branchRadialLayout(lt,W,Ft,pr,X+te,te),Ae++}}},Q.maxDiagonalInTree=function(W){for(var H=O.MIN_VALUE,re=0;re<W.length;re++){var Z=W[re],X=Z.getDiagonal();X>H&&(H=X)}return H},Q.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Q.prototype.groupZeroDegreeMembers=function(){var W=this,H={};this.memberGroups={},this.idToDummyNode={};for(var re=[],Z=this.graphManager.getAllNodes(),X=0;X<Z.length;X++){var te=Z[X],U=te.getParent();this.getNodeDegreeWithChildren(te)===0&&(U.id==null||!this.getToBeTiled(U))&&re.push(te)}for(var X=0;X<re.length;X++){var te=re[X],ne=te.getParent().id;typeof H[ne]>"u"&&(H[ne]=[]),H[ne]=H[ne].concat(te)}Object.keys(H).forEach(function(se){if(H[se].length>1){var he="DummyCompound_"+se;W.memberGroups[he]=H[se];var le=H[se][0].getParent(),pe=new T(W.graphManager);pe.id=he,pe.paddingLeft=le.paddingLeft||0,pe.paddingRight=le.paddingRight||0,pe.paddingBottom=le.paddingBottom||0,pe.paddingTop=le.paddingTop||0,W.idToDummyNode[he]=pe;var ge=W.getGraphManager().add(W.newGraph(),pe),we=le.getChild();we.add(pe);for(var Ae=0;Ae<H[se].length;Ae++){var ve=H[se][Ae];we.remove(ve),ge.add(ve)}}})},Q.prototype.clearCompounds=function(){var W={},H={};this.performDFSOnCompounds();for(var re=0;re<this.compoundOrder.length;re++)H[this.compoundOrder[re].id]=this.compoundOrder[re],W[this.compoundOrder[re].id]=[].concat(this.compoundOrder[re].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[re].getChild()),this.compoundOrder[re].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(W,H)},Q.prototype.clearZeroDegreeMembers=function(){var W=this,H=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(re){var Z=W.idToDummyNode[re];if(H[re]=W.tileNodes(W.memberGroups[re],Z.paddingLeft+Z.paddingRight),Z.rect.width=H[re].width,Z.rect.height=H[re].height,Z.setCenter(H[re].centerX,H[re].centerY),Z.labelMarginLeft=0,Z.labelMarginTop=0,E.NODE_DIMENSIONS_INCLUDE_LABELS){var X=Z.rect.width,te=Z.rect.height;Z.labelWidth&&(Z.labelPosHorizontal=="left"?(Z.rect.x-=Z.labelWidth,Z.setWidth(X+Z.labelWidth),Z.labelMarginLeft=Z.labelWidth):Z.labelPosHorizontal=="center"&&Z.labelWidth>X?(Z.rect.x-=(Z.labelWidth-X)/2,Z.setWidth(Z.labelWidth),Z.labelMarginLeft=(Z.labelWidth-X)/2):Z.labelPosHorizontal=="right"&&Z.setWidth(X+Z.labelWidth)),Z.labelHeight&&(Z.labelPosVertical=="top"?(Z.rect.y-=Z.labelHeight,Z.setHeight(te+Z.labelHeight),Z.labelMarginTop=Z.labelHeight):Z.labelPosVertical=="center"&&Z.labelHeight>te?(Z.rect.y-=(Z.labelHeight-te)/2,Z.setHeight(Z.labelHeight),Z.labelMarginTop=(Z.labelHeight-te)/2):Z.labelPosVertical=="bottom"&&Z.setHeight(te+Z.labelHeight))}})},Q.prototype.repopulateCompounds=function(){for(var W=this.compoundOrder.length-1;W>=0;W--){var H=this.compoundOrder[W],re=H.id,Z=H.paddingLeft,X=H.paddingTop,te=H.labelMarginLeft,U=H.labelMarginTop;this.adjustLocations(this.tiledMemberPack[re],H.rect.x,H.rect.y,Z,X,te,U)}},Q.prototype.repopulateZeroDegreeMembers=function(){var W=this,H=this.tiledZeroDegreePack;Object.keys(H).forEach(function(re){var Z=W.idToDummyNode[re],X=Z.paddingLeft,te=Z.paddingTop,U=Z.labelMarginLeft,ne=Z.labelMarginTop;W.adjustLocations(H[re],Z.rect.x,Z.rect.y,X,te,U,ne)})},Q.prototype.getToBeTiled=function(W){var H=W.id;if(this.toBeTiled[H]!=null)return this.toBeTiled[H];var re=W.getChild();if(re==null)return this.toBeTiled[H]=!1,!1;for(var Z=re.getNodes(),X=0;X<Z.length;X++){var te=Z[X];if(this.getNodeDegree(te)>0)return this.toBeTiled[H]=!1,!1;if(te.getChild()==null){this.toBeTiled[te.id]=!1;continue}if(!this.getToBeTiled(te))return this.toBeTiled[H]=!1,!1}return this.toBeTiled[H]=!0,!0},Q.prototype.getNodeDegree=function(W){for(var H=W.id,re=W.getEdges(),Z=0,X=0;X<re.length;X++){var te=re[X];te.getSource().id!==te.getTarget().id&&(Z=Z+1)}return Z},Q.prototype.getNodeDegreeWithChildren=function(W){var H=this.getNodeDegree(W);if(W.getChild()==null)return H;for(var re=W.getChild().getNodes(),Z=0;Z<re.length;Z++){var X=re[Z];H+=this.getNodeDegreeWithChildren(X)}return H},Q.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},Q.prototype.fillCompexOrderByDFS=function(W){for(var H=0;H<W.length;H++){var re=W[H];re.getChild()!=null&&this.fillCompexOrderByDFS(re.getChild().getNodes()),this.getToBeTiled(re)&&this.compoundOrder.push(re)}},Q.prototype.adjustLocations=function(W,H,re,Z,X,te,U){H+=Z+te,re+=X+U;for(var ne=H,se=0;se<W.rows.length;se++){var he=W.rows[se];H=ne;for(var le=0,pe=0;pe<he.length;pe++){var ge=he[pe];ge.rect.x=H,ge.rect.y=re,H+=ge.rect.width+W.horizontalPadding,ge.rect.height>le&&(le=ge.rect.height)}re+=le+W.verticalPadding}},Q.prototype.tileCompoundMembers=function(W,H){var re=this;this.tiledMemberPack=[],Object.keys(W).forEach(function(Z){var X=H[Z];if(re.tiledMemberPack[Z]=re.tileNodes(W[Z],X.paddingLeft+X.paddingRight),X.rect.width=re.tiledMemberPack[Z].width,X.rect.height=re.tiledMemberPack[Z].height,X.setCenter(re.tiledMemberPack[Z].centerX,re.tiledMemberPack[Z].centerY),X.labelMarginLeft=0,X.labelMarginTop=0,E.NODE_DIMENSIONS_INCLUDE_LABELS){var te=X.rect.width,U=X.rect.height;X.labelWidth&&(X.labelPosHorizontal=="left"?(X.rect.x-=X.labelWidth,X.setWidth(te+X.labelWidth),X.labelMarginLeft=X.labelWidth):X.labelPosHorizontal=="center"&&X.labelWidth>te?(X.rect.x-=(X.labelWidth-te)/2,X.setWidth(X.labelWidth),X.labelMarginLeft=(X.labelWidth-te)/2):X.labelPosHorizontal=="right"&&X.setWidth(te+X.labelWidth)),X.labelHeight&&(X.labelPosVertical=="top"?(X.rect.y-=X.labelHeight,X.setHeight(U+X.labelHeight),X.labelMarginTop=X.labelHeight):X.labelPosVertical=="center"&&X.labelHeight>U?(X.rect.y-=(X.labelHeight-U)/2,X.setHeight(X.labelHeight),X.labelMarginTop=(X.labelHeight-U)/2):X.labelPosVertical=="bottom"&&X.setHeight(U+X.labelHeight))}})},Q.prototype.tileNodes=function(W,H){var re=this.tileNodesByFavoringDim(W,H,!0),Z=this.tileNodesByFavoringDim(W,H,!1),X=this.getOrgRatio(re),te=this.getOrgRatio(Z),U;return te<X?U=Z:U=re,U},Q.prototype.getOrgRatio=function(W){var H=W.width,re=W.height,Z=H/re;return Z<1&&(Z=1/Z),Z},Q.prototype.calcIdealRowWidth=function(W,H){var re=E.TILING_PADDING_VERTICAL,Z=E.TILING_PADDING_HORIZONTAL,X=W.length,te=0,U=0,ne=0;W.forEach(function(Ae){te+=Ae.getWidth(),U+=Ae.getHeight(),Ae.getWidth()>ne&&(ne=Ae.getWidth())});var se=te/X,he=U/X,le=Math.pow(re-Z,2)+4*(se+Z)*(he+re)*X,pe=(Z-re+Math.sqrt(le))/(2*(se+Z)),ge;H?(ge=Math.ceil(pe),ge==pe&&ge++):ge=Math.floor(pe);var we=ge*(se+Z)-Z;return ne>we&&(we=ne),we+=Z*2,we},Q.prototype.tileNodesByFavoringDim=function(W,H,re){var Z=E.TILING_PADDING_VERTICAL,X=E.TILING_PADDING_HORIZONTAL,te=E.TILING_COMPARE_BY,U={rows:[],rowWidth:[],rowHeight:[],width:0,height:H,verticalPadding:Z,horizontalPadding:X,centerX:0,centerY:0};te&&(U.idealRowWidth=this.calcIdealRowWidth(W,re));var ne=i(function(ve){return ve.rect.width*ve.rect.height},"getNodeArea"),se=i(function(ve,Ie){return ne(Ie)-ne(ve)},"areaCompareFcn");W.sort(function(Ae,ve){var Ie=se;return U.idealRowWidth?(Ie=te,Ie(Ae.id,ve.id)):Ie(Ae,ve)});for(var he=0,le=0,pe=0;pe<W.length;pe++){var ge=W[pe];he+=ge.getCenterX(),le+=ge.getCenterY()}U.centerX=he/W.length,U.centerY=le/W.length;for(var pe=0;pe<W.length;pe++){var ge=W[pe];if(U.rows.length==0)this.insertNodeToRow(U,ge,0,H);else if(this.canAddHorizontal(U,ge.rect.width,ge.rect.height)){var we=U.rows.length-1;U.idealRowWidth||(we=this.getShortestRowIndex(U)),this.insertNodeToRow(U,ge,we,H)}else this.insertNodeToRow(U,ge,U.rows.length,H);this.shiftToLastRow(U)}return U},Q.prototype.insertNodeToRow=function(W,H,re,Z){var X=Z;if(re==W.rows.length){var te=[];W.rows.push(te),W.rowWidth.push(X),W.rowHeight.push(0)}var U=W.rowWidth[re]+H.rect.width;W.rows[re].length>0&&(U+=W.horizontalPadding),W.rowWidth[re]=U,W.width<U&&(W.width=U);var ne=H.rect.height;re>0&&(ne+=W.verticalPadding);var se=0;ne>W.rowHeight[re]&&(se=W.rowHeight[re],W.rowHeight[re]=ne,se=W.rowHeight[re]-se),W.height+=se,W.rows[re].push(H)},Q.prototype.getShortestRowIndex=function(W){for(var H=-1,re=Number.MAX_VALUE,Z=0;Z<W.rows.length;Z++)W.rowWidth[Z]<re&&(H=Z,re=W.rowWidth[Z]);return H},Q.prototype.getLongestRowIndex=function(W){for(var H=-1,re=Number.MIN_VALUE,Z=0;Z<W.rows.length;Z++)W.rowWidth[Z]>re&&(H=Z,re=W.rowWidth[Z]);return H},Q.prototype.canAddHorizontal=function(W,H,re){if(W.idealRowWidth){var Z=W.rows.length-1,X=W.rowWidth[Z];return X+H+W.horizontalPadding<=W.idealRowWidth}var te=this.getShortestRowIndex(W);if(te<0)return!0;var U=W.rowWidth[te];if(U+W.horizontalPadding+H<=W.width)return!0;var ne=0;W.rowHeight[te]<re&&te>0&&(ne=re+W.verticalPadding-W.rowHeight[te]);var se;W.width-U>=H+W.horizontalPadding?se=(W.height+ne)/(U+H+W.horizontalPadding):se=(W.height+ne)/W.width,ne=re+W.verticalPadding;var he;return W.width<H?he=(W.height+ne)/H:he=(W.height+ne)/W.width,he<1&&(he=1/he),se<1&&(se=1/se),se<he},Q.prototype.shiftToLastRow=function(W){var H=this.getLongestRowIndex(W),re=W.rowWidth.length-1,Z=W.rows[H],X=Z[Z.length-1],te=X.width+W.horizontalPadding;if(W.width-W.rowWidth[re]>te&&H!=re){Z.splice(-1,1),W.rows[re].push(X),W.rowWidth[H]=W.rowWidth[H]-te,W.rowWidth[re]=W.rowWidth[re]+te,W.width=W.rowWidth[instance.getLongestRowIndex(W)];for(var U=Number.MIN_VALUE,ne=0;ne<Z.length;ne++)Z[ne].height>U&&(U=Z[ne].height);H>0&&(U+=W.verticalPadding);var se=W.rowHeight[H]+W.rowHeight[re];W.rowHeight[H]=U,W.rowHeight[re]<X.height+W.verticalPadding&&(W.rowHeight[re]=X.height+W.verticalPadding);var he=W.rowHeight[H]+W.rowHeight[re];W.height+=he-se,this.shiftToLastRow(W)}},Q.prototype.tilingPreLayout=function(){E.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},Q.prototype.tilingPostLayout=function(){E.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},Q.prototype.reduceTrees=function(){for(var W=[],H=!0,re;H;){var Z=this.graphManager.getAllNodes(),X=[];H=!1;for(var te=0;te<Z.length;te++)if(re=Z[te],re.getEdges().length==1&&!re.getEdges()[0].isInterGraph&&re.getChild()==null){if(E.PURE_INCREMENTAL){var U=re.getEdges()[0].getOtherEnd(re),ne=new N(re.getCenterX()-U.getCenterX(),re.getCenterY()-U.getCenterY());X.push([re,re.getEdges()[0],re.getOwner(),ne])}else X.push([re,re.getEdges()[0],re.getOwner()]);H=!0}if(H==!0){for(var se=[],he=0;he<X.length;he++)X[he][0].getEdges().length==1&&(se.push(X[he]),X[he][0].getOwner().remove(X[he][0]));W.push(se),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=W},Q.prototype.growTree=function(W){for(var H=W.length,re=W[H-1],Z,X=0;X<re.length;X++)Z=re[X],this.findPlaceforPrunedNode(Z),Z[2].add(Z[0]),Z[2].add(Z[1],Z[1].source,Z[1].target);W.splice(W.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},Q.prototype.findPlaceforPrunedNode=function(W){var H,re,Z=W[0];if(Z==W[1].source?re=W[1].target:re=W[1].source,E.PURE_INCREMENTAL)Z.setCenter(re.getCenterX()+W[3].getWidth(),re.getCenterY()+W[3].getHeight());else{var X=re.startX,te=re.finishX,U=re.startY,ne=re.finishY,se=0,he=0,le=0,pe=0,ge=[se,le,he,pe];if(U>0)for(var we=X;we<=te;we++)ge[0]+=this.grid[we][U-1].length+this.grid[we][U].length-1;if(te<this.grid.length-1)for(var we=U;we<=ne;we++)ge[1]+=this.grid[te+1][we].length+this.grid[te][we].length-1;if(ne<this.grid[0].length-1)for(var we=X;we<=te;we++)ge[2]+=this.grid[we][ne+1].length+this.grid[we][ne].length-1;if(X>0)for(var we=U;we<=ne;we++)ge[3]+=this.grid[X-1][we].length+this.grid[X][we].length-1;for(var Ae=O.MAX_VALUE,ve,Ie,De=0;De<ge.length;De++)ge[De]<Ae?(Ae=ge[De],ve=1,Ie=De):ge[De]==Ae&&ve++;if(ve==3&&Ae==0)ge[0]==0&&ge[1]==0&&ge[2]==0?H=1:ge[0]==0&&ge[1]==0&&ge[3]==0?H=0:ge[0]==0&&ge[2]==0&&ge[3]==0?H=3:ge[1]==0&&ge[2]==0&&ge[3]==0&&(H=2);else if(ve==2&&Ae==0){var Be=Math.floor(Math.random()*2);ge[0]==0&&ge[1]==0?Be==0?H=0:H=1:ge[0]==0&&ge[2]==0?Be==0?H=0:H=2:ge[0]==0&&ge[3]==0?Be==0?H=0:H=3:ge[1]==0&&ge[2]==0?Be==0?H=1:H=2:ge[1]==0&&ge[3]==0?Be==0?H=1:H=3:Be==0?H=2:H=3}else if(ve==4&&Ae==0){var Be=Math.floor(Math.random()*4);H=Be}else H=Ie;H==0?Z.setCenter(re.getCenterX(),re.getCenterY()-re.getHeight()/2-R.DEFAULT_EDGE_LENGTH-Z.getHeight()/2):H==1?Z.setCenter(re.getCenterX()+re.getWidth()/2+R.DEFAULT_EDGE_LENGTH+Z.getWidth()/2,re.getCenterY()):H==2?Z.setCenter(re.getCenterX(),re.getCenterY()+re.getHeight()/2+R.DEFAULT_EDGE_LENGTH+Z.getHeight()/2):Z.setCenter(re.getCenterX()-re.getWidth()/2-R.DEFAULT_EDGE_LENGTH-Z.getWidth()/2,re.getCenterY())}},h.exports=Q}),991:((h,f,d)=>{var m=d(551).FDLayoutNode,b=d(551).IMath;function v(C,E,S,R){m.call(this,C,E,S,R)}i(v,"CoSENode"),v.prototype=Object.create(m.prototype);for(var T in m)v[T]=m[T];v.prototype.calculateDisplacement=function(){var C=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=C.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=C.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=C.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=C.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>C.coolingFactor*C.maxNodeDisplacement&&(this.displacementX=C.coolingFactor*C.maxNodeDisplacement*b.sign(this.displacementX)),Math.abs(this.displacementY)>C.coolingFactor*C.maxNodeDisplacement&&(this.displacementY=C.coolingFactor*C.maxNodeDisplacement*b.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},v.prototype.propogateDisplacementToChildren=function(C,E){for(var S=this.getChild().getNodes(),R,L=0;L<S.length;L++)R=S[L],R.getChild()==null?(R.displacementX+=C,R.displacementY+=E):R.propogateDisplacementToChildren(C,E)},v.prototype.move=function(){var C=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),C.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},v.prototype.setPred1=function(C){this.pred1=C},v.prototype.getPred1=function(){return pred1},v.prototype.getPred2=function(){return pred2},v.prototype.setNext=function(C){this.next=C},v.prototype.getNext=function(){return next},v.prototype.setProcessed=function(C){this.processed=C},v.prototype.isProcessed=function(){return processed},h.exports=v}),902:((h,f,d)=>{function m(S){if(Array.isArray(S)){for(var R=0,L=Array(S.length);R<S.length;R++)L[R]=S[R];return L}else return Array.from(S)}i(m,"_toConsumableArray");var b=d(806),v=d(551).LinkedList,T=d(551).Matrix,C=d(551).SVD;function E(){}i(E,"ConstraintHandler"),E.handleConstraints=function(S){var R={};R.fixedNodeConstraint=S.constraints.fixedNodeConstraint,R.alignmentConstraint=S.constraints.alignmentConstraint,R.relativePlacementConstraint=S.constraints.relativePlacementConstraint;for(var L=new Map,_=new Map,I=[],N=[],B=S.getAllNodes(),O=0,P=0;P<B.length;P++){var $=B[P];$.getChild()==null&&(_.set($.id,O++),I.push($.getCenterX()),N.push($.getCenterY()),L.set($.id,$))}R.relativePlacementConstraint&&R.relativePlacementConstraint.forEach(function(Te){!Te.gap&&Te.gap!=0&&(Te.left?Te.gap=b.DEFAULT_EDGE_LENGTH+L.get(Te.left).getWidth()/2+L.get(Te.right).getWidth()/2:Te.gap=b.DEFAULT_EDGE_LENGTH+L.get(Te.top).getHeight()/2+L.get(Te.bottom).getHeight()/2)});var V=i(function(ce,Re){return{x:ce.x-Re.x,y:ce.y-Re.y}},"calculatePositionDiff"),Y=i(function(ce){var Re=0,me=0;return ce.forEach(function(be){Re+=I[_.get(be)],me+=N[_.get(be)]}),{x:Re/ce.size,y:me/ce.size}},"calculateAvgPosition"),Q=i(function(ce,Re,me,be,ke){function We(qt,Gt){var jt=new Set(qt),Zr=!0,yt=!1,$n=void 0;try{for(var Ut=Gt[Symbol.iterator](),An;!(Zr=(An=Ut.next()).done);Zr=!0){var Un=An.value;jt.add(Un)}}catch(En){yt=!0,$n=En}finally{try{!Zr&&Ut.return&&Ut.return()}finally{if(yt)throw $n}}return jt}i(We,"setUnion");var Ue=new Map;ce.forEach(function(qt,Gt){Ue.set(Gt,0)}),ce.forEach(function(qt,Gt){qt.forEach(function(jt){Ue.set(jt.id,Ue.get(jt.id)+1)})});var rt=new Map,nt=new Map,Ot=new v;Ue.forEach(function(qt,Gt){qt==0?(Ot.push(Gt),me||(Re=="horizontal"?rt.set(Gt,_.has(Gt)?I[_.get(Gt)]:be.get(Gt)):rt.set(Gt,_.has(Gt)?N[_.get(Gt)]:be.get(Gt)))):rt.set(Gt,Number.NEGATIVE_INFINITY),me&&nt.set(Gt,new Set([Gt]))}),me&&ke.forEach(function(qt){var Gt=[];if(qt.forEach(function(yt){me.has(yt)&&Gt.push(yt)}),Gt.length>0){var jt=0;Gt.forEach(function(yt){Re=="horizontal"?(rt.set(yt,_.has(yt)?I[_.get(yt)]:be.get(yt)),jt+=rt.get(yt)):(rt.set(yt,_.has(yt)?N[_.get(yt)]:be.get(yt)),jt+=rt.get(yt))}),jt=jt/Gt.length,qt.forEach(function(yt){me.has(yt)||rt.set(yt,jt)})}else{var Zr=0;qt.forEach(function(yt){Re=="horizontal"?Zr+=_.has(yt)?I[_.get(yt)]:be.get(yt):Zr+=_.has(yt)?N[_.get(yt)]:be.get(yt)}),Zr=Zr/qt.length,qt.forEach(function(yt){rt.set(yt,Zr)})}});for(var ft=i(function(){var Gt=Ot.shift(),jt=ce.get(Gt);jt.forEach(function(Zr){if(rt.get(Zr.id)<rt.get(Gt)+Zr.gap)if(me&&me.has(Zr.id)){var yt=void 0;if(Re=="horizontal"?yt=_.has(Zr.id)?I[_.get(Zr.id)]:be.get(Zr.id):yt=_.has(Zr.id)?N[_.get(Zr.id)]:be.get(Zr.id),rt.set(Zr.id,yt),yt<rt.get(Gt)+Zr.gap){var $n=rt.get(Gt)+Zr.gap-yt;nt.get(Gt).forEach(function(Ut){rt.set(Ut,rt.get(Ut)-$n)})}}else rt.set(Zr.id,rt.get(Gt)+Zr.gap);Ue.set(Zr.id,Ue.get(Zr.id)-1),Ue.get(Zr.id)==0&&Ot.push(Zr.id),me&&nt.set(Zr.id,We(nt.get(Gt),nt.get(Zr.id)))})},"_loop");Ot.length!=0;)ft();if(me){var Qt=new Set;ce.forEach(function(qt,Gt){qt.length==0&&Qt.add(Gt)});var $t=[];nt.forEach(function(qt,Gt){if(Qt.has(Gt)){var jt=!1,Zr=!0,yt=!1,$n=void 0;try{for(var Ut=qt[Symbol.iterator](),An;!(Zr=(An=Ut.next()).done);Zr=!0){var Un=An.value;me.has(Un)&&(jt=!0)}}catch(Gn){yt=!0,$n=Gn}finally{try{!Zr&&Ut.return&&Ut.return()}finally{if(yt)throw $n}}if(!jt){var En=!1,ai=void 0;$t.forEach(function(Gn,ui){Gn.has([].concat(m(qt))[0])&&(En=!0,ai=ui)}),En?qt.forEach(function(Gn){$t[ai].add(Gn)}):$t.push(new Set(qt))}}}),$t.forEach(function(qt,Gt){var jt=Number.POSITIVE_INFINITY,Zr=Number.POSITIVE_INFINITY,yt=Number.NEGATIVE_INFINITY,$n=Number.NEGATIVE_INFINITY,Ut=!0,An=!1,Un=void 0;try{for(var En=qt[Symbol.iterator](),ai;!(Ut=(ai=En.next()).done);Ut=!0){var Gn=ai.value,ui=void 0;Re=="horizontal"?ui=_.has(Gn)?I[_.get(Gn)]:be.get(Gn):ui=_.has(Gn)?N[_.get(Gn)]:be.get(Gn);var Tn=rt.get(Gn);ui<jt&&(jt=ui),ui>yt&&(yt=ui),Tn<Zr&&(Zr=Tn),Tn>$n&&($n=Tn)}}catch(Kr){An=!0,Un=Kr}finally{try{!Ut&&En.return&&En.return()}finally{if(An)throw Un}}var Wi=(jt+yt)/2-(Zr+$n)/2,Pa=!0,qe=!1,Rn=void 0;try{for(var Mn=qt[Symbol.iterator](),ct;!(Pa=(ct=Mn.next()).done);Pa=!0){var dr=ct.value;rt.set(dr,rt.get(dr)+Wi)}}catch(Kr){qe=!0,Rn=Kr}finally{try{!Pa&&Mn.return&&Mn.return()}finally{if(qe)throw Rn}}})}return rt},"findAppropriatePositionForRelativePlacement"),q=i(function(ce){var Re=0,me=0,be=0,ke=0;if(ce.forEach(function(nt){nt.left?I[_.get(nt.left)]-I[_.get(nt.right)]>=0?Re++:me++:N[_.get(nt.top)]-N[_.get(nt.bottom)]>=0?be++:ke++}),Re>me&&be>ke)for(var We=0;We<_.size;We++)I[We]=-1*I[We],N[We]=-1*N[We];else if(Re>me)for(var Ue=0;Ue<_.size;Ue++)I[Ue]=-1*I[Ue];else if(be>ke)for(var rt=0;rt<_.size;rt++)N[rt]=-1*N[rt]},"applyReflectionForRelativePlacement"),W=i(function(ce){var Re=[],me=new v,be=new Set,ke=0;return ce.forEach(function(We,Ue){if(!be.has(Ue)){Re[ke]=[];var rt=Ue;for(me.push(rt),be.add(rt),Re[ke].push(rt);me.length!=0;){rt=me.shift();var nt=ce.get(rt);nt.forEach(function(Ot){be.has(Ot.id)||(me.push(Ot.id),be.add(Ot.id),Re[ke].push(Ot.id))})}ke++}}),Re},"findComponents"),H=i(function(ce){var Re=new Map;return ce.forEach(function(me,be){Re.set(be,[])}),ce.forEach(function(me,be){me.forEach(function(ke){Re.get(be).push(ke),Re.get(ke.id).push({id:be,gap:ke.gap,direction:ke.direction})})}),Re},"dagToUndirected"),re=i(function(ce){var Re=new Map;return ce.forEach(function(me,be){Re.set(be,[])}),ce.forEach(function(me,be){me.forEach(function(ke){Re.get(ke.id).push({id:be,gap:ke.gap,direction:ke.direction})})}),Re},"dagToReversed"),Z=[],X=[],te=!1,U=!1,ne=new Set,se=new Map,he=new Map,le=[];if(R.fixedNodeConstraint&&R.fixedNodeConstraint.forEach(function(Te){ne.add(Te.nodeId)}),R.relativePlacementConstraint&&(R.relativePlacementConstraint.forEach(function(Te){Te.left?(se.has(Te.left)?se.get(Te.left).push({id:Te.right,gap:Te.gap,direction:"horizontal"}):se.set(Te.left,[{id:Te.right,gap:Te.gap,direction:"horizontal"}]),se.has(Te.right)||se.set(Te.right,[])):(se.has(Te.top)?se.get(Te.top).push({id:Te.bottom,gap:Te.gap,direction:"vertical"}):se.set(Te.top,[{id:Te.bottom,gap:Te.gap,direction:"vertical"}]),se.has(Te.bottom)||se.set(Te.bottom,[]))}),he=H(se),le=W(he)),b.TRANSFORM_ON_CONSTRAINT_HANDLING){if(R.fixedNodeConstraint&&R.fixedNodeConstraint.length>1)R.fixedNodeConstraint.forEach(function(Te,ce){Z[ce]=[Te.position.x,Te.position.y],X[ce]=[I[_.get(Te.nodeId)],N[_.get(Te.nodeId)]]}),te=!0;else if(R.alignmentConstraint)(function(){var Te=0;if(R.alignmentConstraint.vertical){for(var ce=R.alignmentConstraint.vertical,Re=i(function(rt){var nt=new Set;ce[rt].forEach(function(Qt){nt.add(Qt)});var Ot=new Set([].concat(m(nt)).filter(function(Qt){return ne.has(Qt)})),ft=void 0;Ot.size>0?ft=I[_.get(Ot.values().next().value)]:ft=Y(nt).x,ce[rt].forEach(function(Qt){Z[Te]=[ft,N[_.get(Qt)]],X[Te]=[I[_.get(Qt)],N[_.get(Qt)]],Te++})},"_loop2"),me=0;me<ce.length;me++)Re(me);te=!0}if(R.alignmentConstraint.horizontal){for(var be=R.alignmentConstraint.horizontal,ke=i(function(rt){var nt=new Set;be[rt].forEach(function(Qt){nt.add(Qt)});var Ot=new Set([].concat(m(nt)).filter(function(Qt){return ne.has(Qt)})),ft=void 0;Ot.size>0?ft=I[_.get(Ot.values().next().value)]:ft=Y(nt).y,be[rt].forEach(function(Qt){Z[Te]=[I[_.get(Qt)],ft],X[Te]=[I[_.get(Qt)],N[_.get(Qt)]],Te++})},"_loop3"),We=0;We<be.length;We++)ke(We);te=!0}R.relativePlacementConstraint&&(U=!0)})();else if(R.relativePlacementConstraint){for(var pe=0,ge=0,we=0;we<le.length;we++)le[we].length>pe&&(pe=le[we].length,ge=we);if(pe<he.size/2)q(R.relativePlacementConstraint),te=!1,U=!1;else{var Ae=new Map,ve=new Map,Ie=[];le[ge].forEach(function(Te){se.get(Te).forEach(function(ce){ce.direction=="horizontal"?(Ae.has(Te)?Ae.get(Te).push(ce):Ae.set(Te,[ce]),Ae.has(ce.id)||Ae.set(ce.id,[]),Ie.push({left:Te,right:ce.id})):(ve.has(Te)?ve.get(Te).push(ce):ve.set(Te,[ce]),ve.has(ce.id)||ve.set(ce.id,[]),Ie.push({top:Te,bottom:ce.id}))})}),q(Ie),U=!1;var De=Q(Ae,"horizontal"),Be=Q(ve,"vertical");le[ge].forEach(function(Te,ce){X[ce]=[I[_.get(Te)],N[_.get(Te)]],Z[ce]=[],De.has(Te)?Z[ce][0]=De.get(Te):Z[ce][0]=I[_.get(Te)],Be.has(Te)?Z[ce][1]=Be.get(Te):Z[ce][1]=N[_.get(Te)]}),te=!0}}if(te){for(var Fe=void 0,ze=T.transpose(Z),vt=T.transpose(X),lt=0;lt<ze.length;lt++)ze[lt]=T.multGamma(ze[lt]),vt[lt]=T.multGamma(vt[lt]);var Ft=T.multMat(ze,T.transpose(vt)),pr=C.svd(Ft);Fe=T.multMat(pr.V,T.transpose(pr.U));for(var tr=0;tr<_.size;tr++){var Mt=[I[tr],N[tr]],ot=[Fe[0][0],Fe[1][0]],it=[Fe[0][1],Fe[1][1]];I[tr]=T.dotProduct(Mt,ot),N[tr]=T.dotProduct(Mt,it)}U&&q(R.relativePlacementConstraint)}}if(b.ENFORCE_CONSTRAINTS){if(R.fixedNodeConstraint&&R.fixedNodeConstraint.length>0){var mt={x:0,y:0};R.fixedNodeConstraint.forEach(function(Te,ce){var Re={x:I[_.get(Te.nodeId)],y:N[_.get(Te.nodeId)]},me=Te.position,be=V(me,Re);mt.x+=be.x,mt.y+=be.y}),mt.x/=R.fixedNodeConstraint.length,mt.y/=R.fixedNodeConstraint.length,I.forEach(function(Te,ce){I[ce]+=mt.x}),N.forEach(function(Te,ce){N[ce]+=mt.y}),R.fixedNodeConstraint.forEach(function(Te){I[_.get(Te.nodeId)]=Te.position.x,N[_.get(Te.nodeId)]=Te.position.y})}if(R.alignmentConstraint){if(R.alignmentConstraint.vertical)for(var Rt=R.alignmentConstraint.vertical,pt=i(function(ce){var Re=new Set;Rt[ce].forEach(function(ke){Re.add(ke)});var me=new Set([].concat(m(Re)).filter(function(ke){return ne.has(ke)})),be=void 0;me.size>0?be=I[_.get(me.values().next().value)]:be=Y(Re).x,Re.forEach(function(ke){ne.has(ke)||(I[_.get(ke)]=be)})},"_loop4"),gt=0;gt<Rt.length;gt++)pt(gt);if(R.alignmentConstraint.horizontal)for(var ut=R.alignmentConstraint.horizontal,Yt=i(function(ce){var Re=new Set;ut[ce].forEach(function(ke){Re.add(ke)});var me=new Set([].concat(m(Re)).filter(function(ke){return ne.has(ke)})),be=void 0;me.size>0?be=N[_.get(me.values().next().value)]:be=Y(Re).y,Re.forEach(function(ke){ne.has(ke)||(N[_.get(ke)]=be)})},"_loop5"),Ye=0;Ye<ut.length;Ye++)Yt(Ye)}R.relativePlacementConstraint&&(function(){var Te=new Map,ce=new Map,Re=new Map,me=new Map,be=new Map,ke=new Map,We=new Set,Ue=new Set;if(ne.forEach(function(Vr){We.add(Vr),Ue.add(Vr)}),R.alignmentConstraint){if(R.alignmentConstraint.vertical)for(var rt=R.alignmentConstraint.vertical,nt=i(function(gn){Re.set("dummy"+gn,[]),rt[gn].forEach(function(xi){Te.set(xi,"dummy"+gn),Re.get("dummy"+gn).push(xi),ne.has(xi)&&We.add("dummy"+gn)}),be.set("dummy"+gn,I[_.get(rt[gn][0])])},"_loop6"),Ot=0;Ot<rt.length;Ot++)nt(Ot);if(R.alignmentConstraint.horizontal)for(var ft=R.alignmentConstraint.horizontal,Qt=i(function(gn){me.set("dummy"+gn,[]),ft[gn].forEach(function(xi){ce.set(xi,"dummy"+gn),me.get("dummy"+gn).push(xi),ne.has(xi)&&Ue.add("dummy"+gn)}),ke.set("dummy"+gn,N[_.get(ft[gn][0])])},"_loop7"),$t=0;$t<ft.length;$t++)Qt($t)}var qt=new Map,Gt=new Map,jt=i(function(gn){se.get(gn).forEach(function(xi){var Pn=void 0,Vn=void 0;xi.direction=="horizontal"?(Pn=Te.get(gn)?Te.get(gn):gn,Te.get(xi.id)?Vn={id:Te.get(xi.id),gap:xi.gap,direction:xi.direction}:Vn=xi,qt.has(Pn)?qt.get(Pn).push(Vn):qt.set(Pn,[Vn]),qt.has(Vn.id)||qt.set(Vn.id,[])):(Pn=ce.get(gn)?ce.get(gn):gn,ce.get(xi.id)?Vn={id:ce.get(xi.id),gap:xi.gap,direction:xi.direction}:Vn=xi,Gt.has(Pn)?Gt.get(Pn).push(Vn):Gt.set(Pn,[Vn]),Gt.has(Vn.id)||Gt.set(Vn.id,[]))})},"_loop8"),Zr=!0,yt=!1,$n=void 0;try{for(var Ut=se.keys()[Symbol.iterator](),An;!(Zr=(An=Ut.next()).done);Zr=!0){var Un=An.value;jt(Un)}}catch(Vr){yt=!0,$n=Vr}finally{try{!Zr&&Ut.return&&Ut.return()}finally{if(yt)throw $n}}var En=H(qt),ai=H(Gt),Gn=W(En),ui=W(ai),Tn=re(qt),Wi=re(Gt),Pa=[],qe=[];Gn.forEach(function(Vr,gn){Pa[gn]=[],Vr.forEach(function(xi){Tn.get(xi).length==0&&Pa[gn].push(xi)})}),ui.forEach(function(Vr,gn){qe[gn]=[],Vr.forEach(function(xi){Wi.get(xi).length==0&&qe[gn].push(xi)})});var Rn=Q(qt,"horizontal",We,be,Pa),Mn=Q(Gt,"vertical",Ue,ke,qe),ct=i(function(gn){Re.get(gn)?Re.get(gn).forEach(function(xi){I[_.get(xi)]=Rn.get(gn)}):I[_.get(gn)]=Rn.get(gn)},"_loop9"),dr=!0,Kr=!1,pn=void 0;try{for(var Bn=Rn.keys()[Symbol.iterator](),Hs;!(dr=(Hs=Bn.next()).done);dr=!0){var Ki=Hs.value;ct(Ki)}}catch(Vr){Kr=!0,pn=Vr}finally{try{!dr&&Bn.return&&Bn.return()}finally{if(Kr)throw pn}}var so=i(function(gn){me.get(gn)?me.get(gn).forEach(function(xi){N[_.get(xi)]=Mn.get(gn)}):N[_.get(gn)]=Mn.get(gn)},"_loop10"),js=!0,ls=!1,Ba=void 0;try{for(var cs=Mn.keys()[Symbol.iterator](),ln;!(js=(ln=cs.next()).done);js=!0){var Ki=ln.value;so(Ki)}}catch(Vr){ls=!0,Ba=Vr}finally{try{!js&&cs.return&&cs.return()}finally{if(ls)throw Ba}}})()}for(var Oe=0;Oe<B.length;Oe++){var K=B[Oe];K.getChild()==null&&K.setCenter(I[_.get(K.id)],N[_.get(K.id)])}},h.exports=E}),551:(h=>{h.exports=r})},a={};function s(h){var f=a[h];if(f!==void 0)return f.exports;var d=a[h]={exports:{}};return t[h](d,d.exports,s),d.exports}i(s,"__webpack_require__");var l=s(45);return l})()})});var rWr=Zv((cse,Qht)=>{"use strict";i((function(t,a){typeof cse=="object"&&typeof Qht=="object"?Qht.exports=a(Jht()):typeof define=="function"&&define.amd?define(["cose-base"],a):typeof cse=="object"?cse.cytoscapeFcose=a(Jht()):t.cytoscapeFcose=a(t.coseBase)}),"webpackUniversalModuleDefinition")(cse,function(r){return(()=>{"use strict";var t={658:(h=>{h.exports=Object.assign!=null?Object.assign.bind(Object):function(f){for(var d=arguments.length,m=Array(d>1?d-1:0),b=1;b<d;b++)m[b-1]=arguments[b];return m.forEach(function(v){Object.keys(v).forEach(function(T){return f[T]=v[T]})}),f}}),548:((h,f,d)=>{var m=(function(){function T(C,E){var S=[],R=!0,L=!1,_=void 0;try{for(var I=C[Symbol.iterator](),N;!(R=(N=I.next()).done)&&(S.push(N.value),!(E&&S.length===E));R=!0);}catch(B){L=!0,_=B}finally{try{!R&&I.return&&I.return()}finally{if(L)throw _}}return S}return i(T,"sliceIterator"),function(C,E){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return T(C,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),b=d(140).layoutBase.LinkedList,v={};v.getTopMostNodes=function(T){for(var C={},E=0;E<T.length;E++)C[T[E].id()]=!0;var S=T.filter(function(R,L){typeof R=="number"&&(R=L);for(var _=R.parent()[0];_!=null;){if(C[_.id()])return!1;_=_.parent()[0]}return!0});return S},v.connectComponents=function(T,C,E,S){var R=new b,L=new Set,_=[],I=void 0,N=void 0,B=void 0,O=!1,P=1,$=[],V=[],Y=i(function(){var q=T.collection();V.push(q);var W=E[0],H=T.collection();H.merge(W).merge(W.descendants().intersection(C)),_.push(W),H.forEach(function(X){R.push(X),L.add(X),q.merge(X)});for(var re=i(function(){W=R.shift();var te=T.collection();W.neighborhood().nodes().forEach(function(he){C.intersection(W.edgesWith(he)).length>0&&te.merge(he)});for(var U=0;U<te.length;U++){var ne=te[U];if(I=E.intersection(ne.union(ne.ancestors())),I!=null&&!L.has(I[0])){var se=I.union(I.descendants());se.forEach(function(he){R.push(he),L.add(he),q.merge(he),E.has(he)&&_.push(he)})}}},"_loop2");R.length!=0;)re();if(q.forEach(function(X){C.intersection(X.connectedEdges()).forEach(function(te){q.has(te.source())&&q.has(te.target())&&q.merge(te)})}),_.length==E.length&&(O=!0),!O||O&&P>1){N=_[0],B=N.connectedEdges().length,_.forEach(function(X){X.connectedEdges().length<B&&(B=X.connectedEdges().length,N=X)}),$.push(N.id());var Z=T.collection();Z.merge(_[0]),_.forEach(function(X){Z.merge(X)}),_=[],E=E.difference(Z),P++}},"_loop");do Y();while(!O);return S&&$.length>0&&S.set("dummy"+(S.size+1),$),V},v.relocateComponent=function(T,C,E){if(!E.fixedNodeConstraint){var S=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,L=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;if(E.quality=="draft"){var I=!0,N=!1,B=void 0;try{for(var O=C.nodeIndexes[Symbol.iterator](),P;!(I=(P=O.next()).done);I=!0){var $=P.value,V=m($,2),Y=V[0],Q=V[1],q=E.cy.getElementById(Y);if(q){var W=q.boundingBox(),H=C.xCoords[Q]-W.w/2,re=C.xCoords[Q]+W.w/2,Z=C.yCoords[Q]-W.h/2,X=C.yCoords[Q]+W.h/2;H<S&&(S=H),re>R&&(R=re),Z<L&&(L=Z),X>_&&(_=X)}}}catch(he){N=!0,B=he}finally{try{!I&&O.return&&O.return()}finally{if(N)throw B}}var te=T.x-(R+S)/2,U=T.y-(_+L)/2;C.xCoords=C.xCoords.map(function(he){return he+te}),C.yCoords=C.yCoords.map(function(he){return he+U})}else{Object.keys(C).forEach(function(he){var le=C[he],pe=le.getRect().x,ge=le.getRect().x+le.getRect().width,we=le.getRect().y,Ae=le.getRect().y+le.getRect().height;pe<S&&(S=pe),ge>R&&(R=ge),we<L&&(L=we),Ae>_&&(_=Ae)});var ne=T.x-(R+S)/2,se=T.y-(_+L)/2;Object.keys(C).forEach(function(he){var le=C[he];le.setCenter(le.getCenterX()+ne,le.getCenterY()+se)})}}},v.calcBoundingBox=function(T,C,E,S){for(var R=Number.MAX_SAFE_INTEGER,L=Number.MIN_SAFE_INTEGER,_=Number.MAX_SAFE_INTEGER,I=Number.MIN_SAFE_INTEGER,N=void 0,B=void 0,O=void 0,P=void 0,$=T.descendants().not(":parent"),V=$.length,Y=0;Y<V;Y++){var Q=$[Y];N=C[S.get(Q.id())]-Q.width()/2,B=C[S.get(Q.id())]+Q.width()/2,O=E[S.get(Q.id())]-Q.height()/2,P=E[S.get(Q.id())]+Q.height()/2,R>N&&(R=N),L<B&&(L=B),_>O&&(_=O),I<P&&(I=P)}var q={};return q.topLeftX=R,q.topLeftY=_,q.width=L-R,q.height=I-_,q},v.calcParentsWithoutChildren=function(T,C){var E=T.collection();return C.nodes(":parent").forEach(function(S){var R=!1;S.children().forEach(function(L){L.css("display")!="none"&&(R=!0)}),R||E.merge(S)}),E},h.exports=v}),816:((h,f,d)=>{var m=d(548),b=d(140).CoSELayout,v=d(140).CoSENode,T=d(140).layoutBase.PointD,C=d(140).layoutBase.DimensionD,E=d(140).layoutBase.LayoutConstants,S=d(140).layoutBase.FDLayoutConstants,R=d(140).CoSEConstants,L=i(function(I,N){var B=I.cy,O=I.eles,P=O.nodes(),$=O.edges(),V=void 0,Y=void 0,Q=void 0,q={};I.randomize&&(V=N.nodeIndexes,Y=N.xCoords,Q=N.yCoords);var W=i(function(he){return typeof he=="function"},"isFn"),H=i(function(he,le){return W(he)?he(le):he},"optFn"),re=m.calcParentsWithoutChildren(B,O),Z=i(function se(he,le,pe,ge){for(var we=le.length,Ae=0;Ae<we;Ae++){var ve=le[Ae],Ie=null;ve.intersection(re).length==0&&(Ie=ve.children());var De=void 0,Be=ve.layoutDimensions({nodeDimensionsIncludeLabels:ge.nodeDimensionsIncludeLabels});if(ve.outerWidth()!=null&&ve.outerHeight()!=null)if(ge.randomize)if(!ve.isParent())De=he.add(new v(pe.graphManager,new T(Y[V.get(ve.id())]-Be.w/2,Q[V.get(ve.id())]-Be.h/2),new C(parseFloat(Be.w),parseFloat(Be.h))));else{var Fe=m.calcBoundingBox(ve,Y,Q,V);ve.intersection(re).length==0?De=he.add(new v(pe.graphManager,new T(Fe.topLeftX,Fe.topLeftY),new C(Fe.width,Fe.height))):De=he.add(new v(pe.graphManager,new T(Fe.topLeftX,Fe.topLeftY),new C(parseFloat(Be.w),parseFloat(Be.h))))}else De=he.add(new v(pe.graphManager,new T(ve.position("x")-Be.w/2,ve.position("y")-Be.h/2),new C(parseFloat(Be.w),parseFloat(Be.h))));else De=he.add(new v(this.graphManager));if(De.id=ve.data("id"),De.nodeRepulsion=H(ge.nodeRepulsion,ve),De.paddingLeft=parseInt(ve.css("padding")),De.paddingTop=parseInt(ve.css("padding")),De.paddingRight=parseInt(ve.css("padding")),De.paddingBottom=parseInt(ve.css("padding")),ge.nodeDimensionsIncludeLabels&&(De.labelWidth=ve.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,De.labelHeight=ve.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,De.labelPosVertical=ve.css("text-valign"),De.labelPosHorizontal=ve.css("text-halign")),q[ve.data("id")]=De,isNaN(De.rect.x)&&(De.rect.x=0),isNaN(De.rect.y)&&(De.rect.y=0),Ie!=null&&Ie.length>0){var ze=void 0;ze=pe.getGraphManager().add(pe.newGraph(),De),se(ze,Ie,pe,ge)}}},"processChildrenList"),X=i(function(he,le,pe){for(var ge=0,we=0,Ae=0;Ae<pe.length;Ae++){var ve=pe[Ae],Ie=q[ve.data("source")],De=q[ve.data("target")];if(Ie&&De&&Ie!==De&&Ie.getEdgesBetween(De).length==0){var Be=le.add(he.newEdge(),Ie,De);Be.id=ve.id(),Be.idealLength=H(I.idealEdgeLength,ve),Be.edgeElasticity=H(I.edgeElasticity,ve),ge+=Be.idealLength,we++}}I.idealEdgeLength!=null&&(we>0?R.DEFAULT_EDGE_LENGTH=S.DEFAULT_EDGE_LENGTH=ge/we:W(I.idealEdgeLength)?R.DEFAULT_EDGE_LENGTH=S.DEFAULT_EDGE_LENGTH=50:R.DEFAULT_EDGE_LENGTH=S.DEFAULT_EDGE_LENGTH=I.idealEdgeLength,R.MIN_REPULSION_DIST=S.MIN_REPULSION_DIST=S.DEFAULT_EDGE_LENGTH/10,R.DEFAULT_RADIAL_SEPARATION=S.DEFAULT_EDGE_LENGTH)},"processEdges"),te=i(function(he,le){le.fixedNodeConstraint&&(he.constraints.fixedNodeConstraint=le.fixedNodeConstraint),le.alignmentConstraint&&(he.constraints.alignmentConstraint=le.alignmentConstraint),le.relativePlacementConstraint&&(he.constraints.relativePlacementConstraint=le.relativePlacementConstraint)},"processConstraints");I.nestingFactor!=null&&(R.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=S.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=I.nestingFactor),I.gravity!=null&&(R.DEFAULT_GRAVITY_STRENGTH=S.DEFAULT_GRAVITY_STRENGTH=I.gravity),I.numIter!=null&&(R.MAX_ITERATIONS=S.MAX_ITERATIONS=I.numIter),I.gravityRange!=null&&(R.DEFAULT_GRAVITY_RANGE_FACTOR=S.DEFAULT_GRAVITY_RANGE_FACTOR=I.gravityRange),I.gravityCompound!=null&&(R.DEFAULT_COMPOUND_GRAVITY_STRENGTH=S.DEFAULT_COMPOUND_GRAVITY_STRENGTH=I.gravityCompound),I.gravityRangeCompound!=null&&(R.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=S.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=I.gravityRangeCompound),I.initialEnergyOnIncremental!=null&&(R.DEFAULT_COOLING_FACTOR_INCREMENTAL=S.DEFAULT_COOLING_FACTOR_INCREMENTAL=I.initialEnergyOnIncremental),I.tilingCompareBy!=null&&(R.TILING_COMPARE_BY=I.tilingCompareBy),I.quality=="proof"?E.QUALITY=2:E.QUALITY=0,R.NODE_DIMENSIONS_INCLUDE_LABELS=S.NODE_DIMENSIONS_INCLUDE_LABELS=E.NODE_DIMENSIONS_INCLUDE_LABELS=I.nodeDimensionsIncludeLabels,R.DEFAULT_INCREMENTAL=S.DEFAULT_INCREMENTAL=E.DEFAULT_INCREMENTAL=!I.randomize,R.ANIMATE=S.ANIMATE=E.ANIMATE=I.animate,R.TILE=I.tile,R.TILING_PADDING_VERTICAL=typeof I.tilingPaddingVertical=="function"?I.tilingPaddingVertical.call():I.tilingPaddingVertical,R.TILING_PADDING_HORIZONTAL=typeof I.tilingPaddingHorizontal=="function"?I.tilingPaddingHorizontal.call():I.tilingPaddingHorizontal,R.DEFAULT_INCREMENTAL=S.DEFAULT_INCREMENTAL=E.DEFAULT_INCREMENTAL=!0,R.PURE_INCREMENTAL=!I.randomize,E.DEFAULT_UNIFORM_LEAF_NODE_SIZES=I.uniformNodeDimensions,I.step=="transformed"&&(R.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,R.ENFORCE_CONSTRAINTS=!1,R.APPLY_LAYOUT=!1),I.step=="enforced"&&(R.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,R.ENFORCE_CONSTRAINTS=!0,R.APPLY_LAYOUT=!1),I.step=="cose"&&(R.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,R.ENFORCE_CONSTRAINTS=!1,R.APPLY_LAYOUT=!0),I.step=="all"&&(I.randomize?R.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:R.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,R.ENFORCE_CONSTRAINTS=!0,R.APPLY_LAYOUT=!0),I.fixedNodeConstraint||I.alignmentConstraint||I.relativePlacementConstraint?R.TREE_REDUCTION_ON_INCREMENTAL=!1:R.TREE_REDUCTION_ON_INCREMENTAL=!0;var U=new b,ne=U.newGraphManager();return Z(ne.addRoot(),m.getTopMostNodes(P),U,I),X(U,ne,$),te(U,I),U.runLayout(),q},"coseLayout");h.exports={coseLayout:L}}),212:((h,f,d)=>{var m=(function(){function I(N,B){for(var O=0;O<B.length;O++){var P=B[O];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}return i(I,"defineProperties"),function(N,B,O){return B&&I(N.prototype,B),O&&I(N,O),N}})();function b(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}i(b,"_classCallCheck");var v=d(658),T=d(548),C=d(657),E=C.spectralLayout,S=d(816),R=S.coseLayout,L=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:i(function(N){return 4500},"nodeRepulsion"),idealEdgeLength:i(function(N){return 50},"idealEdgeLength"),edgeElasticity:i(function(N){return .45},"edgeElasticity"),nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:i(function(){},"ready"),stop:i(function(){},"stop")}),_=(function(){function I(N){b(this,I),this.options=v({},L,N)}return i(I,"Layout"),m(I,[{key:"run",value:i(function(){var B=this,O=this.options,P=O.cy,$=O.eles,V=[],Y=void 0,Q=void 0,q=[],W=void 0,H=[];O.fixedNodeConstraint&&(!Array.isArray(O.fixedNodeConstraint)||O.fixedNodeConstraint.length==0)&&(O.fixedNodeConstraint=void 0),O.alignmentConstraint&&(O.alignmentConstraint.vertical&&(!Array.isArray(O.alignmentConstraint.vertical)||O.alignmentConstraint.vertical.length==0)&&(O.alignmentConstraint.vertical=void 0),O.alignmentConstraint.horizontal&&(!Array.isArray(O.alignmentConstraint.horizontal)||O.alignmentConstraint.horizontal.length==0)&&(O.alignmentConstraint.horizontal=void 0)),O.relativePlacementConstraint&&(!Array.isArray(O.relativePlacementConstraint)||O.relativePlacementConstraint.length==0)&&(O.relativePlacementConstraint=void 0);var re=O.fixedNodeConstraint||O.alignmentConstraint||O.relativePlacementConstraint;re&&(O.tile=!1,O.packComponents=!1);var Z=void 0,X=!1;if(P.layoutUtilities&&O.packComponents&&(Z=P.layoutUtilities("get"),Z||(Z=P.layoutUtilities()),X=!0),$.nodes().length>0)if(X){var ne=T.getTopMostNodes(O.eles.nodes());if(W=T.connectComponents(P,O.eles,ne),W.forEach(function(tr){var Mt=tr.boundingBox();H.push({x:Mt.x1+Mt.w/2,y:Mt.y1+Mt.h/2})}),O.randomize&&W.forEach(function(tr){O.eles=tr,V.push(E(O))}),O.quality=="default"||O.quality=="proof"){var se=P.collection();if(O.tile){var he=new Map,le=[],pe=[],ge=0,we={nodeIndexes:he,xCoords:le,yCoords:pe},Ae=[];if(W.forEach(function(tr,Mt){tr.edges().length==0&&(tr.nodes().forEach(function(ot,it){se.merge(tr.nodes()[it]),ot.isParent()||(we.nodeIndexes.set(tr.nodes()[it].id(),ge++),we.xCoords.push(tr.nodes()[0].position().x),we.yCoords.push(tr.nodes()[0].position().y))}),Ae.push(Mt))}),se.length>1){var ve=se.boundingBox();H.push({x:ve.x1+ve.w/2,y:ve.y1+ve.h/2}),W.push(se),V.push(we);for(var Ie=Ae.length-1;Ie>=0;Ie--)W.splice(Ae[Ie],1),V.splice(Ae[Ie],1),H.splice(Ae[Ie],1)}}W.forEach(function(tr,Mt){O.eles=tr,q.push(R(O,V[Mt])),T.relocateComponent(H[Mt],q[Mt],O)})}else W.forEach(function(tr,Mt){T.relocateComponent(H[Mt],V[Mt],O)});var De=new Set;if(W.length>1){var Be=[],Fe=$.filter(function(tr){return tr.css("display")=="none"});W.forEach(function(tr,Mt){var ot=void 0;if(O.quality=="draft"&&(ot=V[Mt].nodeIndexes),tr.nodes().not(Fe).length>0){var it={};it.edges=[],it.nodes=[];var mt=void 0;tr.nodes().not(Fe).forEach(function(Rt){if(O.quality=="draft")if(!Rt.isParent())mt=ot.get(Rt.id()),it.nodes.push({x:V[Mt].xCoords[mt]-Rt.boundingbox().w/2,y:V[Mt].yCoords[mt]-Rt.boundingbox().h/2,width:Rt.boundingbox().w,height:Rt.boundingbox().h});else{var pt=T.calcBoundingBox(Rt,V[Mt].xCoords,V[Mt].yCoords,ot);it.nodes.push({x:pt.topLeftX,y:pt.topLeftY,width:pt.width,height:pt.height})}else q[Mt][Rt.id()]&&it.nodes.push({x:q[Mt][Rt.id()].getLeft(),y:q[Mt][Rt.id()].getTop(),width:q[Mt][Rt.id()].getWidth(),height:q[Mt][Rt.id()].getHeight()})}),tr.edges().forEach(function(Rt){var pt=Rt.source(),gt=Rt.target();if(pt.css("display")!="none"&>.css("display")!="none")if(O.quality=="draft"){var ut=ot.get(pt.id()),Yt=ot.get(gt.id()),Ye=[],Oe=[];if(pt.isParent()){var K=T.calcBoundingBox(pt,V[Mt].xCoords,V[Mt].yCoords,ot);Ye.push(K.topLeftX+K.width/2),Ye.push(K.topLeftY+K.height/2)}else Ye.push(V[Mt].xCoords[ut]),Ye.push(V[Mt].yCoords[ut]);if(gt.isParent()){var Te=T.calcBoundingBox(gt,V[Mt].xCoords,V[Mt].yCoords,ot);Oe.push(Te.topLeftX+Te.width/2),Oe.push(Te.topLeftY+Te.height/2)}else Oe.push(V[Mt].xCoords[Yt]),Oe.push(V[Mt].yCoords[Yt]);it.edges.push({startX:Ye[0],startY:Ye[1],endX:Oe[0],endY:Oe[1]})}else q[Mt][pt.id()]&&q[Mt][gt.id()]&&it.edges.push({startX:q[Mt][pt.id()].getCenterX(),startY:q[Mt][pt.id()].getCenterY(),endX:q[Mt][gt.id()].getCenterX(),endY:q[Mt][gt.id()].getCenterY()})}),it.nodes.length>0&&(Be.push(it),De.add(Mt))}});var ze=Z.packComponents(Be,O.randomize).shifts;if(O.quality=="draft")V.forEach(function(tr,Mt){var ot=tr.xCoords.map(function(mt){return mt+ze[Mt].dx}),it=tr.yCoords.map(function(mt){return mt+ze[Mt].dy});tr.xCoords=ot,tr.yCoords=it});else{var vt=0;De.forEach(function(tr){Object.keys(q[tr]).forEach(function(Mt){var ot=q[tr][Mt];ot.setCenter(ot.getCenterX()+ze[vt].dx,ot.getCenterY()+ze[vt].dy)}),vt++})}}}else{var te=O.eles.boundingBox();if(H.push({x:te.x1+te.w/2,y:te.y1+te.h/2}),O.randomize){var U=E(O);V.push(U)}O.quality=="default"||O.quality=="proof"?(q.push(R(O,V[0])),T.relocateComponent(H[0],q[0],O)):T.relocateComponent(H[0],V[0],O)}var lt=i(function(Mt,ot){if(O.quality=="default"||O.quality=="proof"){typeof Mt=="number"&&(Mt=ot);var it=void 0,mt=void 0,Rt=Mt.data("id");return q.forEach(function(gt){Rt in gt&&(it={x:gt[Rt].getRect().getCenterX(),y:gt[Rt].getRect().getCenterY()},mt=gt[Rt])}),O.nodeDimensionsIncludeLabels&&(mt.labelWidth&&(mt.labelPosHorizontal=="left"?it.x+=mt.labelWidth/2:mt.labelPosHorizontal=="right"&&(it.x-=mt.labelWidth/2)),mt.labelHeight&&(mt.labelPosVertical=="top"?it.y+=mt.labelHeight/2:mt.labelPosVertical=="bottom"&&(it.y-=mt.labelHeight/2))),it==null&&(it={x:Mt.position("x"),y:Mt.position("y")}),{x:it.x,y:it.y}}else{var pt=void 0;return V.forEach(function(gt){var ut=gt.nodeIndexes.get(Mt.id());ut!=null&&(pt={x:gt.xCoords[ut],y:gt.yCoords[ut]})}),pt==null&&(pt={x:Mt.position("x"),y:Mt.position("y")}),{x:pt.x,y:pt.y}}},"getPositions");if(O.quality=="default"||O.quality=="proof"||O.randomize){var Ft=T.calcParentsWithoutChildren(P,$),pr=$.filter(function(tr){return tr.css("display")=="none"});O.eles=$.not(pr),$.nodes().not(":parent").not(pr).layoutPositions(B,O,lt),Ft.length>0&&Ft.forEach(function(tr){tr.position(lt(tr))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),I})();h.exports=_}),657:((h,f,d)=>{var m=d(548),b=d(140).layoutBase.Matrix,v=d(140).layoutBase.SVD,T=i(function(E){var S=E.cy,R=E.eles,L=R.nodes(),_=R.nodes(":parent"),I=new Map,N=new Map,B=new Map,O=[],P=[],$=[],V=[],Y=[],Q=[],q=[],W=[],H=void 0,re=void 0,Z=1e8,X=1e-9,te=E.piTol,U=E.samplingType,ne=E.nodeSeparation,se=void 0,he=i(function(){for(var Re=0,me=0,be=!1;me<se;){Re=Math.floor(Math.random()*re),be=!1;for(var ke=0;ke<me;ke++)if(V[ke]==Re){be=!0;break}if(!be)V[me]=Re,me++;else continue}},"randomSampleCR"),le=i(function(Re,me,be){for(var ke=[],We=0,Ue=0,rt=0,nt=void 0,Ot=[],ft=0,Qt=1,$t=0;$t<re;$t++)Ot[$t]=Z;for(ke[Ue]=Re,Ot[Re]=0;Ue>=We;){rt=ke[We++];for(var qt=O[rt],Gt=0;Gt<qt.length;Gt++)nt=N.get(qt[Gt]),Ot[nt]==Z&&(Ot[nt]=Ot[rt]+1,ke[++Ue]=nt);Q[rt][me]=Ot[rt]*ne}if(be){for(var jt=0;jt<re;jt++)Q[jt][me]<Y[jt]&&(Y[jt]=Q[jt][me]);for(var Zr=0;Zr<re;Zr++)Y[Zr]>ft&&(ft=Y[Zr],Qt=Zr)}return Qt},"BFS"),pe=i(function(Re){var me=void 0;if(Re){me=Math.floor(Math.random()*re),H=me;for(var ke=0;ke<re;ke++)Y[ke]=Z;for(var We=0;We<se;We++)V[We]=me,me=le(me,We,Re)}else{he();for(var be=0;be<se;be++)le(V[be],be,Re,!1)}for(var Ue=0;Ue<re;Ue++)for(var rt=0;rt<se;rt++)Q[Ue][rt]*=Q[Ue][rt];for(var nt=0;nt<se;nt++)q[nt]=[];for(var Ot=0;Ot<se;Ot++)for(var ft=0;ft<se;ft++)q[Ot][ft]=Q[V[ft]][Ot]},"allBFS"),ge=i(function(){for(var Re=v.svd(q),me=Re.S,be=Re.U,ke=Re.V,We=me[0]*me[0]*me[0],Ue=[],rt=0;rt<se;rt++){Ue[rt]=[];for(var nt=0;nt<se;nt++)Ue[rt][nt]=0,rt==nt&&(Ue[rt][nt]=me[rt]/(me[rt]*me[rt]+We/(me[rt]*me[rt])))}W=b.multMat(b.multMat(ke,Ue),b.transpose(be))},"sample"),we=i(function(){for(var Re=void 0,me=void 0,be=[],ke=[],We=[],Ue=[],rt=0;rt<re;rt++)be[rt]=Math.random(),ke[rt]=Math.random();be=b.normalize(be),ke=b.normalize(ke);for(var nt=0,Ot=X,ft=X,Qt=void 0;;){nt++;for(var $t=0;$t<re;$t++)We[$t]=be[$t];if(be=b.multGamma(b.multL(b.multGamma(We),Q,W)),Re=b.dotProduct(We,be),be=b.normalize(be),Ot=b.dotProduct(We,be),Qt=Math.abs(Ot/ft),Qt<=1+te&&Qt>=1)break;ft=Ot}for(var qt=0;qt<re;qt++)We[qt]=be[qt];for(nt=0,ft=X;;){nt++;for(var Gt=0;Gt<re;Gt++)Ue[Gt]=ke[Gt];if(Ue=b.minusOp(Ue,b.multCons(We,b.dotProduct(We,Ue))),ke=b.multGamma(b.multL(b.multGamma(Ue),Q,W)),me=b.dotProduct(Ue,ke),ke=b.normalize(ke),Ot=b.dotProduct(Ue,ke),Qt=Math.abs(Ot/ft),Qt<=1+te&&Qt>=1)break;ft=Ot}for(var jt=0;jt<re;jt++)Ue[jt]=ke[jt];P=b.multCons(We,Math.sqrt(Math.abs(Re))),$=b.multCons(Ue,Math.sqrt(Math.abs(me)))},"powerIteration");m.connectComponents(S,R,m.getTopMostNodes(L),I),_.forEach(function(ce){m.connectComponents(S,R,m.getTopMostNodes(ce.descendants().intersection(R)),I)});for(var Ae=0,ve=0;ve<L.length;ve++)L[ve].isParent()||N.set(L[ve].id(),Ae++);var Ie=!0,De=!1,Be=void 0;try{for(var Fe=I.keys()[Symbol.iterator](),ze;!(Ie=(ze=Fe.next()).done);Ie=!0){var vt=ze.value;N.set(vt,Ae++)}}catch(ce){De=!0,Be=ce}finally{try{!Ie&&Fe.return&&Fe.return()}finally{if(De)throw Be}}for(var lt=0;lt<N.size;lt++)O[lt]=[];_.forEach(function(ce){for(var Re=ce.children().intersection(R);Re.nodes(":childless").length==0;)Re=Re.nodes()[0].children().intersection(R);var me=0,be=Re.nodes(":childless")[0].connectedEdges().length;Re.nodes(":childless").forEach(function(ke,We){ke.connectedEdges().length<be&&(be=ke.connectedEdges().length,me=We)}),B.set(ce.id(),Re.nodes(":childless")[me].id())}),L.forEach(function(ce){var Re=void 0;ce.isParent()?Re=N.get(B.get(ce.id())):Re=N.get(ce.id()),ce.neighborhood().nodes().forEach(function(me){R.intersection(ce.edgesWith(me)).length>0&&(me.isParent()?O[Re].push(B.get(me.id())):O[Re].push(me.id()))})});var Ft=i(function(Re){var me=N.get(Re),be=void 0;I.get(Re).forEach(function(ke){S.getElementById(ke).isParent()?be=B.get(ke):be=ke,O[me].push(be),O[N.get(be)].push(Re)})},"_loop"),pr=!0,tr=!1,Mt=void 0;try{for(var ot=I.keys()[Symbol.iterator](),it;!(pr=(it=ot.next()).done);pr=!0){var mt=it.value;Ft(mt)}}catch(ce){tr=!0,Mt=ce}finally{try{!pr&&ot.return&&ot.return()}finally{if(tr)throw Mt}}re=N.size;var Rt=void 0;if(re>2){se=re<E.sampleSize?re:E.sampleSize;for(var pt=0;pt<re;pt++)Q[pt]=[];for(var gt=0;gt<se;gt++)W[gt]=[];return E.quality=="draft"||E.step=="all"?(pe(U),ge(),we(),Rt={nodeIndexes:N,xCoords:P,yCoords:$}):(N.forEach(function(ce,Re){P.push(S.getElementById(Re).position("x")),$.push(S.getElementById(Re).position("y"))}),Rt={nodeIndexes:N,xCoords:P,yCoords:$}),Rt}else{var ut=N.keys(),Yt=S.getElementById(ut.next().value),Ye=Yt.position(),Oe=Yt.outerWidth();if(P.push(Ye.x),$.push(Ye.y),re==2){var K=S.getElementById(ut.next().value),Te=K.outerWidth();P.push(Ye.x+Oe/2+Te/2+E.idealEdgeLength),$.push(Ye.y)}return Rt={nodeIndexes:N,xCoords:P,yCoords:$},Rt}},"spectralLayout");h.exports={spectralLayout:T}}),579:((h,f,d)=>{var m=d(212),b=i(function(T){T&&T("layout","fcose",m)},"register");typeof cytoscape<"u"&&b(cytoscape),h.exports=b}),140:(h=>{h.exports=r})},a={};function s(h){var f=a[h];if(f!==void 0)return f.exports;var d=a[h]={exports:{}};return t[h](d,d.exports,s),d.exports}i(s,"__webpack_require__");var l=s(579);return l})()})});function Zht(r,t){if(r===0)return t();let a=Math.random,s=r>>>0;Math.random=function(){s=s+1831565813>>>0;let l=s;return l=Math.imul(l^l>>>15,l|1),l^=l+Math.imul(l^l>>>7,l|61),((l^l>>>14)>>>0)/4294967296};try{return t()}finally{Math.random=a}}var nWr=ae(()=>{"use strict";i(Zht,"withSeededRandom")});var GW,EB,eft=ae(()=>{"use strict";Xw();GW=i(r=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${r}</g>`,"wrapIcon"),EB={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:GW('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:GW('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:GW('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:GW('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:GW('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:Pqe,blank:{body:GW("")}}}});var iWr,aWr,sWr,oWr,lWr=ae(()=>{"use strict";ma();ex();Xw();nl();eft();uEe();Ma();iWr=i(async function(r,t,a,s){let l=a.getConfigField("padding"),h=a.getConfigField("iconSize"),f=h/2,d=h/6,m=d/2;await Promise.all(t.edges().map(async b=>{let{source:v,sourceDir:T,sourceArrow:C,sourceGroup:E,target:S,targetDir:R,targetArrow:L,targetGroup:_,label:I}=cEe(b),{x:N,y:B}=b[0].sourceEndpoint(),{x:O,y:P}=b[0].midpoint(),{x:$,y:V}=b[0].targetEndpoint(),Y=l+4;if(E&&(Sy(T)?N+=T==="L"?-Y:Y:B+=T==="T"?-Y:Y+18),_&&(Sy(R)?$+=R==="L"?-Y:Y:V+=R==="T"?-Y:Y+18),!E&&a.getNode(v)?.type==="junction"&&(Sy(T)?N+=T==="L"?f:-f:B+=T==="T"?f:-f),!_&&a.getNode(S)?.type==="junction"&&(Sy(R)?$+=R==="L"?f:-f:V+=R==="T"?f:-f),b[0]._private.rscratch){let Q=r.insert("g");if(Q.insert("path").attr("d",`M ${N},${B} L ${O},${P} L${$},${V} `).attr("class","edge").attr("id",`${s}-${s2(v,S,{prefix:"L"})}`),C){let q=Sy(T)?ise[T](N,d):N-m,W=t5(T)?ise[T](B,d):B-m;Q.insert("polygon").attr("points",Vht[T](d)).attr("transform",`translate(${q},${W})`).attr("class","arrow")}if(L){let q=Sy(R)?ise[R]($,d):$-m,W=t5(R)?ise[R](V,d):V-m;Q.insert("polygon").attr("points",Vht[R](d)).attr("transform",`translate(${q},${W})`).attr("class","arrow")}if(I){let q=ase(T,R)?"XY":Sy(T)?"X":"Y",W=0;q==="X"?W=Math.abs(N-$):q==="Y"?W=Math.abs(B-V)/1.5:W=Math.abs(N-$)/2;let H=Q.append("g");if(await jh(H,I,{useHtmlLabels:!1,width:W,classes:"architecture-service-label"},er()),H.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),q==="X")H.attr("transform","translate("+O+", "+P+")");else if(q==="Y")H.attr("transform","translate("+O+", "+P+") rotate(-90)");else if(q==="XY"){let re=sse(T,R);if(re&&qVr(re)){let Z=H.node().getBoundingClientRect(),[X,te]=XVr(re);H.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*X*te*45})`);let U=H.node().getBoundingClientRect();H.attr("transform",`
|
|
translate(${O}, ${P-Z.height/2})
|
|
translate(${X*U.width/2}, ${te*U.height/2})
|
|
rotate(${-1*X*te*45}, 0, ${Z.height/2})
|
|
`)}}}}}))},"drawEdges"),aWr=i(async function(r,t,a,s){let h=a.getConfigField("padding")*.75,f=a.getConfigField("fontSize"),m=a.getConfigField("iconSize")/2;await Promise.all(t.nodes().map(async b=>{let v=BD(b);if(v.type==="group"){let{h:T,w:C,x1:E,y1:S}=b.boundingBox(),R=r.append("rect");R.attr("id",`${s}-group-${v.id}`).attr("x",E+m).attr("y",S+m).attr("width",C).attr("height",T).attr("class","node-bkg");let L=r.append("g"),_=E,I=S;if(v.icon){let N=L.append("g");N.html(`<g>${await Og(v.icon,{height:h,width:h,fallbackPrefix:EB.prefix})}</g>`),N.attr("transform","translate("+(_+m+1)+", "+(I+m+1)+")"),_+=h,I+=f/2-1-2}if(v.label){let N=L.append("g");await jh(N,v.label,{useHtmlLabels:!1,width:C,classes:"architecture-service-label"},er()),N.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),N.attr("transform","translate("+(_+m+4)+", "+(I+m+2)+")")}a.setElementForId(v.id,R)}}))},"drawGroups"),sWr=i(async function(r,t,a,s){let l=er();for(let h of a){let f=t.append("g"),d=r.getConfigField("iconSize");if(h.title){let T=f.append("g");await jh(T,h.title,{useHtmlLabels:!1,width:d*1.5,classes:"architecture-service-label"},l),T.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),T.attr("transform","translate("+d/2+", "+d+")")}let m=f.append("g");if(h.icon)m.html(`<g>${await Og(h.icon,{height:d,width:d,fallbackPrefix:EB.prefix})}</g>`);else if(h.iconText){m.html(`<g>${await Og("blank",{height:d,width:d,fallbackPrefix:EB.prefix})}</g>`);let E=m.append("g").append("foreignObject").attr("width",d).attr("height",d).append("div").attr("class","node-icon-text").attr("style",`height: ${d}px;`).append("div").html(Ns(h.iconText,l)),S=parseInt(window.getComputedStyle(E.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;E.attr("style",`-webkit-line-clamp: ${Math.floor((d-2)/S)};`)}else m.append("path").attr("class","node-bkg").attr("id",`${s}-node-${h.id}`).attr("d",`M0,${d} V5 Q0,0 5,0 H${d-5} Q${d},0 ${d},5 V${d} Z`);f.attr("id",`${s}-service-${h.id}`).attr("class","architecture-service");let{width:b,height:v}=f.node().getBBox();h.width=b,h.height=v,r.setElementForId(h.id,f)}return 0},"drawServices"),oWr=i(function(r,t,a,s){a.forEach(l=>{let h=t.append("g"),f=r.getConfigField("iconSize");h.append("g").append("rect").attr("id",`${s}-node-${l.id}`).attr("fill-opacity","0").attr("width",f).attr("height",f),h.attr("class","architecture-junction");let{width:m,height:b}=h._groups[0][0].getBBox();h.width=m,h.height=b,r.setElementForId(l.id,h)})},"drawJunctions")});function Cmi(r,t,a){r.forEach(s=>{t.add({group:"nodes",data:{type:"service",id:s.id,icon:s.icon,label:s.title,parent:s.in,width:a.getConfigField("iconSize"),height:a.getConfigField("iconSize")},classes:"node-service"})})}function Emi(r,t,a){r.forEach(s=>{t.add({group:"nodes",data:{type:"junction",id:s.id,parent:s.in,width:a.getConfigField("iconSize"),height:a.getConfigField("iconSize")},classes:"node-junction"})})}function Smi(r,t){t.nodes().map(a=>{let s=BD(a);if(s.type==="group")return;s.x=a.position().x,s.y=a.position().y,r.getElementById(s.id).attr("transform","translate("+(s.x||0)+","+(s.y||0)+")")})}function Ami(r,t){r.forEach(a=>{t.add({group:"nodes",data:{type:"group",id:a.id,icon:a.icon,label:a.title,parent:a.in},classes:"node-group"})})}function Rmi(r,t){r.forEach(a=>{let{lhsId:s,rhsId:l,lhsInto:h,lhsGroup:f,rhsInto:d,lhsDir:m,rhsDir:b,rhsGroup:v,title:T}=a,C=ase(a.lhsDir,a.rhsDir)?"segments":"straight",E={id:`${s}-${l}`,label:T,source:s,sourceDir:m,sourceArrow:h,sourceGroup:f,sourceEndpoint:m==="L"?"0 50%":m==="R"?"100% 50%":m==="T"?"50% 0":"50% 100%",target:l,targetDir:b,targetArrow:d,targetGroup:v,targetEndpoint:b==="L"?"0 50%":b==="R"?"100% 50%":b==="T"?"50% 0":"50% 100%"};t.add({group:"edges",data:E,classes:C})})}function Lmi(r,t,a,s=[]){let l=i((C,E)=>{let S=new Map;for(let[R,L]of C.entries()){let _=`${R}`,I=0,N=[...L.entries()];if(N.length===1){S.set(_,N[0][1]);continue}for(let B=0;B<N.length-1;B++)for(let O=B+1;O<N.length;O++){let[P,$]=N[B],[V,Y]=N[O];if(a.get(lEe(P,V))===E)S.set(_,[...S.get(_)??[],...$,...Y]);else if(P==="default"||V==="default")S.set(_,[...S.get(_)??[],...$,...Y]);else{let q=`${_}-${I++}`;S.set(q,$);let W=`${_}-${I++}`;S.set(W,Y)}}}return S},"flattenAlignments"),h=t.map(C=>{let E=new Map,S=new Map;return C.forEach(([R,L],_)=>{let I=r.getNode(_)?.in??"default",N=E.get(L)??new Map;E.has(L)||E.set(L,N);let B=S.get(R)??new Map;S.has(R)||S.set(R,B);for(let O of[N,B]){let P=O.get(I)??[];O.has(I)||O.set(I,P),P.push(_)}}),{horiz:[...l(E,"horizontal").values()].filter(R=>R.length>1),vert:[...l(S,"vertical").values()].filter(R=>R.length>1)}}),[f,d]=h.reduce(([C,E],{horiz:S,vert:R})=>[[...C,...S],[...E,...R]],[[],[]]),m=new Set;s.forEach(C=>C.members.forEach(E=>m.add(E)));let b=i(C=>C.filter(E=>!E.some(S=>m.has(S))),"dropOverlapping"),v=b(f),T=b(d);return s.forEach(C=>{C.members.length<2||(C.direction==="row"?v.push([...C.members]):T.push([...C.members]))}),{horizontal:v,vertical:T}}function _mi(r,t,a=[]){let s=[],l=t.getConfigField("iconSize"),h=t.getConfigField("idealEdgeLengthMultiplier"),f=h*l,d=new Set;a.forEach(v=>{for(let T=0;T<v.members.length-1;T++){let C=v.members[T],E=v.members[T+1];d.add(`${C}|${E}`),d.add(`${E}|${C}`),v.direction==="row"?s.push({left:C,right:E,gap:f}):s.push({top:C,bottom:E,gap:f})}});let m=i(v=>`${v[0]},${v[1]}`,"posToStr"),b=i(v=>v.split(",").map(T=>parseInt(T)),"strToPos");return r.forEach(v=>{let T=new Map([...v.entries()].map(([R,L])=>[m(L),R])),C=[m([0,0])],E={},S={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;C.length>0;){let R=C.shift();if(R){E[R]=1;let L=T.get(R);if(L){let _=b(R);Object.entries(S).forEach(([I,N])=>{let B=m([_[0]+N[0],_[1]+N[1]]),O=T.get(B);if(O&&!E[B]){if(C.push(B),d.has(`${L}|${O}`))return;s.push({[Uht[I]]:O,[Uht[HVr(I)]]:L,gap:h*l})}})}}}}),s}function Dmi(r,t,a,s,l,{spatialMaps:h,groupAlignments:f}){return new Promise(d=>{let m=mn("body").append("div").attr("id","cy").attr("style","display:none"),b=ik({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${l.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${l.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});m.remove(),Ami(a,b),Cmi(r,b,l),Emi(t,b,l),Rmi(s,b);let v=l.getLayoutHints(),T=Lmi(l,h,f,v),C=_mi(h,l,v),E=l.getConfigField("iconSize"),S=l.getConfigField("idealEdgeLengthMultiplier")*E,R=.5*E,L=l.getConfigField("edgeElasticity"),_=l.getConfigField("seed"),I=b.layout({name:"fcose",quality:"proof",randomize:l.getConfigField("randomize"),nodeSeparation:l.getConfigField("nodeSeparation"),numIter:l.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(N){let[B,O]=N.connectedNodes(),{parent:P}=BD(B),{parent:$}=BD(O);return P===$?S:R},edgeElasticity(N){let[B,O]=N.connectedNodes(),{parent:P}=BD(B),{parent:$}=BD(O);return P===$?L:.001},alignmentConstraint:T,relativePlacementConstraint:C});I.one("layoutstop",()=>{function N(B,O,P,$){let V,Y,{x:Q,y:q}=B,{x:W,y:H}=O;Y=($-q+(Q-P)*(q-H)/(Q-W))/Math.sqrt(1+Math.pow((q-H)/(Q-W),2)),V=Math.sqrt(Math.pow($-q,2)+Math.pow(P-Q,2)-Math.pow(Y,2));let re=Math.sqrt(Math.pow(W-Q,2)+Math.pow(H-q,2));V=V/re;let Z=(W-Q)*($-q)-(H-q)*(P-Q);switch(!0){case Z>=0:Z=1;break;case Z<0:Z=-1;break}let X=(W-Q)*(P-Q)+(H-q)*($-q);switch(!0){case X>=0:X=1;break;case X<0:X=-1;break}return Y=Math.abs(Y)*Z,V=V*X,{distances:Y,weights:V}}i(N,"getSegmentWeights"),b.startBatch();for(let B of Object.values(b.edges()))if(B.data?.()){let{x:O,y:P}=B.source().position(),{x:$,y:V}=B.target().position();if(O!==$&&P!==V){let Y=B.sourceEndpoint(),Q=B.targetEndpoint(),{sourceDir:q}=cEe(B),[W,H]=t5(q)?[Y.x,Q.y]:[Q.x,Y.y],{weights:re,distances:Z}=N(Y,Q,W,H);B.style("segment-distances",Z),B.style("segment-weights",re)}}b.endBatch(),Zht(_,()=>I.run())});try{Zht(_,()=>I.run())}catch(N){throw N instanceof RangeError&&N.message.includes("Invalid array length")?new Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis."):N}b.ready(N=>{Pe.info("Ready",N),d(b)})})}var cWr,Imi,uWr,hWr=ae(()=>{"use strict";oit();cWr=e2(rWr(),1);nWr();zo();Yn();Xw();x1();$h();eft();uEe();lWr();GL([{name:EB.prefix,icons:EB}]);ik.use(cWr.default);i(Cmi,"addServices");i(Emi,"addJunctions");i(Smi,"positionNodes");i(Ami,"addGroups");i(Rmi,"addEdges");i(Lmi,"getAlignments");i(_mi,"getRelativeConstraints");i(Dmi,"layoutArchitecture");Imi=i(async(r,t,a,s)=>{let l=s.db;l.setDiagramId(t);let h=l.getServices(),f=l.getJunctions(),d=l.getGroups(),m=l.getEdges(),b=l.getDataStructures(),v=pu(t),T=v.append("g");T.attr("class","architecture-edges");let C=v.append("g");C.attr("class","architecture-services");let E=v.append("g");E.attr("class","architecture-groups"),await sWr(l,C,h,t),oWr(l,C,f,t);let S=await Dmi(h,f,d,m,l,b);await iWr(T,S,l,t),await aWr(E,S,l,t),Smi(l,S),BT(void 0,v,l.getConfigField("padding"),l.getConfigField("useMaxWidth"))},"draw"),uWr={draw:Imi}});var fWr={};is(fWr,{diagram:()=>Mmi});var Mmi,dWr=ae(()=>{"use strict";ZVr();Hht();tWr();hWr();Mmi={parser:qht,get db(){return new $W},renderer:uWr,styles:eWr}});var tft,rft,hEe,nft,mWr=ae(()=>{"use strict";tft="position frame",rft="frame positioned",hEe="position relation",nft="relation positioned"});function Gmi(){fEe={}}function Umi(){let r=Wmi,{ast:t}=fEe,a=bWr();if(!t)throw new Error("No data for EventModel");return t.frames.forEach((s,l)=>{let h=Jmi(s,t.dataEntities,a);r=aft(r,{$kind:tft,index:l,frame:s,textProps:h});let f;n1i(s)?(Pe.debug("source frame",s.sourceFrames),f=t.frames.filter(d=>s.sourceFrames.some(m=>m.$refText===d.name)),f.forEach(d=>{r=aft(r,{$kind:hEe,index:l,frame:s,sourceFrame:d})})):r=aft(r,{$kind:hEe,index:l,frame:s})}),r={...r,sortedSwimlanesArray:vWr(r.swimlanes)},r}function Vmi(r){fEe.ast=void 0;let t=new Set;for(let a of r.frames){if(t.has(a.name)){let s=a.$cstNode?.range.start.line,l=s===void 0?"":` on line ${s+1}`;throw new Error(`Duplicate event modeling frame ID "${a.name}"${l}`)}t.add(a.name)}fEe.ast=r}function bWr(){return gu}function Hmi(r){let t=r.split(".");if(t.length===2)return t[0]}function qmi(r){let t=r.split(".");return t.length===2?t[1]:r}function Ymi(r,t){if(!(!t||t.length===0))return Object.values(r).find(a=>a.namespace===t)}function ift(r,t,a){return Math.max(t,...Object.keys(r).filter(s=>{let l=Number.parseInt(s);return l>t&&l<a}).map(s=>Number.parseInt(s)))+1}function Xmi(r,t){let a=Hmi(r.entityIdentifier),s=Ymi(t,a);switch(r.modelEntityType){case"ui":case"pcr":case"processor":return s?{index:s.index,label:s.namespace||gu.labelUiAutomation}:a?{index:ift(t,0,100),label:gu.labelUiAutomationPrefix+a}:{index:0,label:gu.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return s?{index:s.index,label:s.namespace||gu.labelCommandReadModel}:a?{index:ift(t,100,200),label:gu.labelCommandReadModelPrefix+a}:{index:100,label:gu.labelCommandReadModel};default:return s?{index:s.index,label:s.namespace||gu.labelEvents}:a?{index:ift(t,200,300),label:gu.labelEventsPrefix+a}:{index:200,label:gu.labelEvents}}}function Kmi(r){let{themeVariables:t}=ri();switch(r.modelEntityType){case"ui":return{fill:t.emUiFill??"white",stroke:t.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:t.emProcessorFill??"#edb3f6",stroke:t.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:t.emReadModelFill??"#d3f1a2",stroke:t.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:t.emCommandFill??"#bcd6fe",stroke:t.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:t.emEventFill??"#ffb778",stroke:t.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function Jmi(r,t,a){let s=ri(),l=Ns(qmi(r.entityIdentifier)??"",s),h,f={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},m=`<b>${IO(l,a.textMaxWidth,f)}</b>`;if(r.dataInlineValue&&(h=r.dataInlineValue,h=h.substring(h.indexOf("{")+1),h=h.substring(0,h.lastIndexOf("}")-1),h=Ns(h,s),h=IO(h,a.textMaxWidth,f),h=h.replaceAll(" "," ")),r.dataReference){let S=t.find(R=>R.name===r.dataReference?.$refText);S&&(h=S.dataBlockValue,h=h.substring(h.indexOf(`{
|
|
`)+2),h=h.substring(0,h.lastIndexOf("}")-1),h=Ns(h,s),h=IO(h,a.textMaxWidth,f),h=h.replaceAll(" "," "),h+="<br/>")}let b=h!==void 0;b&&(m+=`<br/><br/><code style="text-align: left; display: block;max-width:${a.textMaxWidth}px">${h}</code>`);let v={fontSize:f.fontSize,fontWeight:f.fontWeight,fontFamily:f.fontFamily},T=kre(m,v),C=b?T.width/3:T.width,E={content:m,width:C,height:T.height};return Pe.debug(`[${r.name}] ${r.entityIdentifier} text`,E),E}function Qmi(r,t){let a=t,s=Kmi(a.frame),l={width:a.textProps.width+2*gu.boxTextPadding,height:a.textProps.height+2*gu.boxTextPadding};return[{$kind:rft,frame:a.frame,index:a.index,visual:s,dimension:l,textProps:a.textProps}]}function Zmi(r,t,a){return t===void 0?gu.contentStartX:t.index===r.index&&r.r?r.r+gu.boxPadding:a===void 0?gu.contentStartX:a.r-gu.boxOverlap+gu.boxPadding}function e1i(r,t){let a=[...r.map(s=>s.r),t];return Math.max(...a)}function vWr(r){return Object.values(r).sort((t,a)=>t.index-a.index)}function t1i(r,t){let a=t,s=Xmi(a.frame,r.swimlanes),l;s.index in r.swimlanes?l=r.swimlanes[s.index]:l={index:s.index,label:s.label,r:0,y:s.index*gu.swimlaneMinHeight+gu.swimlaneGap,height:gu.swimlaneMinHeight,maxHeight:gu.swimlaneMinHeight};let h=r.boxes.length>0?r.boxes[r.boxes.length-1]:void 0,f=r.previousSwimlaneNumber!==void 0?r.swimlanes[r.previousSwimlaneNumber]:void 0,d={width:Math.max(gu.boxMinWidth,Math.min(gu.boxMaxWidth,a.dimension.width))+2*gu.boxPadding,height:Math.max(gu.boxMinHeight,Math.min(gu.boxMaxHeight,a.dimension.height))+2*gu.boxPadding},m=Zmi(l,f,h),b=m+d.width+gu.boxPadding,v=e1i(Object.values(r.swimlanes),b);l.r=m+d.width,l.maxHeight=Math.max(l.maxHeight,d.height),l.height=Math.max(gu.swimlaneMinHeight,l.maxHeight)+2*gu.swimlanePadding;let T={x:m,y:gu.swimlanePadding+l.y,r:b,dimension:d,leftSibling:!1,swimlane:l,visual:a.visual,text:a.textProps.content,frame:a.frame,index:a.index},C={...r,boxes:[...r.boxes,T],swimlanes:{...r.swimlanes,[`${l.index}`]:l},previousSwimlaneNumber:s.index,previousFrame:a.frame,maxR:v},E=vWr(C.swimlanes);E.length>0&&(E[0].y=0);for(let S=1;S<E.length;S++){let R=E[S],L=E[S-1];R.y=L.y+L.height+gu.swimlaneGap}return C}function r1i(r,t){return r===0&&t.sourceFrames.length===0}function n1i(r){return r.sourceFrames!==void 0&&r.sourceFrames!==null&&r.sourceFrames.length>0}function yWr(r,t){if(t!=null)return r.find(a=>a.frame.name===t.name)}function i1i(r,t,a){if(!(a<0))for(let s=a;s>=0;s--){let l=r[s];if(l.swimlane.index!==t)return l}}function a1i(r,t){let a=t;if(r1i(a.index,a.frame))return[];let s=yWr(r.boxes,a.frame);if(s===void 0)throw new Error(`Target box not found for frame ${a.frame.name}`);let l;if(a.sourceFrame)l=yWr(r.boxes,a.sourceFrame);else{if(N4e(a.frame))return[];l=i1i(r.boxes,s.swimlane.index,a.index-1)}return l===void 0?[]:[{$kind:nft,frame:a.frame,index:a.index,sourceBox:l,targetBox:s}]}function s1i(r,t){let a=t,s={visual:{fill:"none",stroke:"#000"},source:{x:a.sourceBox.x,y:a.sourceBox.y},target:{x:a.targetBox.x,y:a.targetBox.y},sourceBox:a.sourceBox,targetBox:a.targetBox};return{...r,relations:[...r.relations,s]}}function c1i(r,t){let a=o1i[t.$kind];if(a==null)return[];let s=a(r,t);return Pe.debug("decided events",s),s}function u1i(r,t){let a=t.reduce((s,l)=>{let h=l1i[l.$kind];return h==null?s:h(s,l)},r);return Pe.debug("evolve events",{state:r,newState:a,events:t}),a}function aft(r,t){let a=c1i(r,t);return u1i(r,a)}var Bmi,Fmi,$mi,jmi,zmi,fEe,gu,Wmi,o1i,l1i,use,sft=ae(()=>{"use strict";Yn();Ma();Ma();Xs();Au();nl();pp();w1();mWr();Bmi=i(function(r){Pe.debug("options str",r)},"setOptions"),Fmi=i(function(){return{}},"getOptions"),$mi=i(function(){Gmi(),Ds()},"clear");i(Gmi,"reset");jmi=ps.eventmodeling,zmi=i(()=>il({...jmi,...ri().eventmodeling}),"getConfig"),fEe={};i(Umi,"getState");i(Vmi,"setAst");gu={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};i(bWr,"getDiagramProps");Wmi={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};i(Hmi,"extractNamespace");i(qmi,"extractName");i(Ymi,"findSwimlaneByNamespace");i(ift,"findNextAvailableIndex");i(Xmi,"calculateSwimlaneProps");i(Kmi,"calculateEntityVisualProps");i(Jmi,"calculateTextProps");i(Qmi,"decidePositionFrame");i(Zmi,"calculateX");i(e1i,"calculateMaxRight");i(vWr,"sortedSwimlanesArray");i(t1i,"evolveFramePositioned");i(r1i,"isFirstFrame");i(n1i,"hasSourceFrame");i(yWr,"findBoxByFrame");i(i1i,"findBoxByLineIndex");i(a1i,"decidePositionRelation");i(s1i,"evolveRelationPositioned");o1i={[tft]:Qmi,[hEe]:a1i},l1i={[rft]:t1i,[nft]:s1i};i(c1i,"decide");i(u1i,"evolve");i(aft,"dispatch");use={getConfig:zmi,preserveCommentsWhenParsing:!0,setOptions:Bmi,getOptions:Fmi,clear:$mi,setAccTitle:Os,getAccTitle:Vs,getAccDescription:Ws,setAccDescription:$s,setDiagramTitle:io,getDiagramTitle:Ks,setAst:Vmi,getDiagramProps:bWr,getState:Umi}});var wWr,xWr=ae(()=>{"use strict";w1();Yn();Gb();sft();wWr={parse:i(async r=>{let t=await Gd("eventmodeling",r);Pe.debug(t),use.setAst(t),Eh(t,use)},"parse")}});function d1i(r,t){return a=>{let s=a.swimlane.y+t.swimlanePadding,l=r.append("g").attr("class","em-box");l.append("rect").attr("x",a.x).attr("y",s).attr("rx","3").attr("width",a.dimension.width).attr("height",a.dimension.height).attr("stroke",a.visual.stroke).attr("fill",a.visual.fill),l.append("foreignObject").attr("x",a.x+t.boxPadding).attr("y",s+10).attr("width",a.dimension.width-2*t.boxPadding).attr("height",a.dimension.height-2*t.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(a.text)}}function p1i(r,t){return r>t}function g1i(r,t,a,s){return l=>{let h=l.sourceBox.swimlane.y+t.swimlanePadding,f=l.targetBox.swimlane.y+t.swimlanePadding,d=p1i(h,f),m=l.sourceBox.x+l.sourceBox.dimension.width*2/3,b=l.targetBox.x+l.targetBox.dimension.width/3,v,T;Pe.debug(`rendering relation up=${d} for `,{sourceBox:l.sourceBox,targetBox:l.targetBox}),d?(v=h,T=f+l.targetBox.dimension.height):(v=h+l.sourceBox.dimension.height,T=f);let C=s.emRelationStroke??l.visual.stroke;r.append("path").attr("class","em-relation").attr("fill",l.visual.fill).attr("stroke",C).attr("stroke-width","1").attr("marker-end",`url(#${a})`).attr("d",`M${m} ${v} L${b} ${T}`)}}function m1i(r,t,a,s){return l=>{let h=r.append("g").attr("class","em-swimlane"),f=s.emSwimlaneBackgroundOdd??"rgb(250,250,250)",d=s.emSwimlaneBackgroundStroke??"rgb(240,240,240)";h.append("rect").attr("x",0).attr("y",l.y).attr("rx","3").attr("width",t+a.swimlanePadding).attr("height",l.height).attr("fill",f).attr("stroke",d),h.append("text").attr("font-weight",a.swimlaneTextFontWeight).attr("x",30).attr("y",l.y+30).text(l.label)}}var h1i,f1i,y1i,TWr,kWr=ae(()=>{"use strict";zo();ma();Yn();h1i=er(),f1i=h1i?.eventmodeling;i(d1i,"renderD3Box");i(p1i,"dirUpwards");i(g1i,"renderD3Relation");i(m1i,"renderD3Swimlane");y1i=i(function(r,t,a,s){if(Pe.debug("in eventmodeling renderer",r+`
|
|
`,"id:",t,a),!f1i)throw new Error("EventModeling config not found");let l=s.db,{themeVariables:h,eventmodeling:f}=er(),d=mn(`[id="${t}"]`),m=l.getDiagramProps(),b=l.getState(),v=`em-arrowhead-${t}`,T=h.emArrowhead??"#000000";b.sortedSwimlanesArray.forEach(m1i(d,b.maxR,m,h)),b.boxes.forEach(d1i(d,m)),b.relations.forEach(g1i(d,m,v,h)),d.append("defs").append("marker").attr("id",v).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",T),fte(void 0,d,f?.padding??30,f?.useMaxWidth)},"draw"),TWr={draw:y1i}});var b1i,CWr,EWr=ae(()=>{"use strict";b1i=i(r=>"","getStyles"),CWr=b1i});var SWr={};is(SWr,{diagram:()=>v1i});var v1i,AWr=ae(()=>{"use strict";xWr();sft();kWr();EWr();v1i={parser:wWr,db:use,renderer:TWr,styles:CWr}});var oft,_Wr,DWr=ae(()=>{"use strict";oft=(function(){var r=i(function(_,I,N,B){for(N=N||{},B=_.length;B--;N[_[B]]=I);return N},"o"),t=[1,4],a=[1,14],s=[1,12],l=[1,13],h=[6,7,8],f=[1,20],d=[1,18],m=[1,19],b=[6,7,11],v=[1,6,13,14],T=[1,23],C=[1,24],E=[1,6,7,11,13,14],S={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:i(function(I,N,B,O,P,$,V){var Y=$.length-1;switch(P){case 6:case 7:return O;case 15:O.addNode($[Y-1].length,$[Y].trim());break;case 16:O.addNode(0,$[Y].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:a,7:[1,10],9:9,12:11,13:s,14:l},r(h,[2,3]),{1:[2,2]},r(h,[2,4]),r(h,[2,5]),{1:[2,6],6:a,12:15,13:s,14:l},{6:a,9:16,12:11,13:s,14:l},{6:f,7:d,10:17,11:m},r(b,[2,18],{14:[1,21]}),r(b,[2,16]),r(b,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:a,12:15,13:s,14:l},r(v,[2,14],{7:T,11:C}),r(E,[2,8]),r(E,[2,9]),r(E,[2,10]),r(b,[2,15]),r(v,[2,13],{7:T,11:C}),r(E,[2,11]),r(E,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:i(function(I,N){if(N.recoverable)this.trace(I);else{var B=new Error(I);throw B.hash=N,B}},"parseError"),parse:i(function(I){var N=this,B=[0],O=[],P=[null],$=[],V=this.table,Y="",Q=0,q=0,W=0,H=2,re=1,Z=$.slice.call(arguments,1),X=Object.create(this.lexer),te={yy:{}};for(var U in this.yy)Object.prototype.hasOwnProperty.call(this.yy,U)&&(te.yy[U]=this.yy[U]);X.setInput(I,te.yy),te.yy.lexer=X,te.yy.parser=this,typeof X.yylloc>"u"&&(X.yylloc={});var ne=X.yylloc;$.push(ne);var se=X.options&&X.options.ranges;typeof te.yy.parseError=="function"?this.parseError=te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(Ft){B.length=B.length-2*Ft,P.length=P.length-Ft,$.length=$.length-Ft}i(he,"popStack");function le(){var Ft;return Ft=O.pop()||X.lex()||re,typeof Ft!="number"&&(Ft instanceof Array&&(O=Ft,Ft=O.pop()),Ft=N.symbols_[Ft]||Ft),Ft}i(le,"lex");for(var pe,ge,we,Ae,ve,Ie,De={},Be,Fe,ze,vt;;){if(we=B[B.length-1],this.defaultActions[we]?Ae=this.defaultActions[we]:((pe===null||typeof pe>"u")&&(pe=le()),Ae=V[we]&&V[we][pe]),typeof Ae>"u"||!Ae.length||!Ae[0]){var lt="";vt=[];for(Be in V[we])this.terminals_[Be]&&Be>H&&vt.push("'"+this.terminals_[Be]+"'");X.showPosition?lt="Parse error on line "+(Q+1)+`:
|
|
`+X.showPosition()+`
|
|
Expecting `+vt.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":lt="Parse error on line "+(Q+1)+": Unexpected "+(pe==re?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(lt,{text:X.match,token:this.terminals_[pe]||pe,line:X.yylineno,loc:ne,expected:vt})}if(Ae[0]instanceof Array&&Ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+we+", token: "+pe);switch(Ae[0]){case 1:B.push(pe),P.push(X.yytext),$.push(X.yylloc),B.push(Ae[1]),pe=null,ge?(pe=ge,ge=null):(q=X.yyleng,Y=X.yytext,Q=X.yylineno,ne=X.yylloc,W>0&&W--);break;case 2:if(Fe=this.productions_[Ae[1]][1],De.$=P[P.length-Fe],De._$={first_line:$[$.length-(Fe||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(Fe||1)].first_column,last_column:$[$.length-1].last_column},se&&(De._$.range=[$[$.length-(Fe||1)].range[0],$[$.length-1].range[1]]),Ie=this.performAction.apply(De,[Y,q,Q,te.yy,Ae[1],P,$].concat(Z)),typeof Ie<"u")return Ie;Fe&&(B=B.slice(0,-1*Fe*2),P=P.slice(0,-1*Fe),$=$.slice(0,-1*Fe)),B.push(this.productions_[Ae[1]][0]),P.push(De.$),$.push(De._$),ze=V[B[B.length-2]][B[B.length-1]],B.push(ze);break;case 3:return!0}}return!0},"parse")},R=(function(){var _={EOF:1,parseError:i(function(N,B){if(this.yy.parser)this.yy.parser.parseError(N,B);else throw new Error(N)},"parseError"),setInput:i(function(I,N){return this.yy=N||this.yy||{},this._input=I,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var N=I.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:i(function(I){var N=I.length,B=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var O=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1&&(this.yylineno-=B.length-1);var P=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===O.length?this.yylloc.first_column:0)+O[O.length-B.length].length-B[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[P[0],P[0]+this.yyleng-N]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(I){this.unput(this.match.slice(I))},"less"),pastInput:i(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var I=this.pastInput(),N=new Array(I.length+1).join("-");return I+this.upcomingInput()+`
|
|
`+N+"^"},"showPosition"),test_match:i(function(I,N){var B,O,P;if(this.options.backtrack_lexer&&(P={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(P.yylloc.range=this.yylloc.range.slice(0))),O=I[0].match(/(?:\r\n?|\n).*/g),O&&(this.yylineno+=O.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:O?O[O.length-1].length-O[O.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+I[0].length},this.yytext+=I[0],this.match+=I[0],this.matches=I,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(I[0].length),this.matched+=I[0],B=this.performAction.call(this,this.yy,this,N,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var $ in P)this[$]=P[$];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var I,N,B,O;this._more||(this.yytext="",this.match="");for(var P=this._currentRules(),$=0;$<P.length;$++)if(B=this._input.match(this.rules[P[$]]),B&&(!N||B[0].length>N[0].length)){if(N=B,O=$,this.options.backtrack_lexer){if(I=this.test_match(B,P[$]),I!==!1)return I;if(this._backtrack){N=!1;continue}else return!1}else if(!this.options.flex)break}return N?(I=this.test_match(N,P[O]),I!==!1?I:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var N=this.next();return N||this.lex()},"lex"),begin:i(function(N){this.conditionStack.push(N)},"begin"),popState:i(function(){var N=this.conditionStack.length-1;return N>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},"topState"),pushState:i(function(N){this.begin(N)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(N,B,O,P){var $=P;switch(O){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return _})();S.lexer=R;function L(){this.yy={}}return i(L,"Parser"),L.prototype=S,S.Parser=L,new L})();oft.parser=oft;_Wr=oft});var dEe,IWr=ae(()=>{"use strict";ma();nl();Au();dEe=class{constructor(){this.stack=[];this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{i(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,Ds()}getRoot(){return this.root}addNode(t,a){let s=Xn.sanitizeText(a,er());if(!this.root){this.root={text:s,children:[]},this.stack=[{level:0,node:this.root}],io(s);return}this.baseLevel??=t;let l=t-this.baseLevel+1;for(l<=0&&(l=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=l;)this.stack.pop();let h=this.stack[this.stack.length-1].node,f={text:s,children:[]};h.children.push(f),this.stack.push({level:l,node:f})}getAccTitle(){return Vs()}setAccTitle(t){Os(t)}getAccDescription(){return Ws()}setAccDescription(t){$s(t)}getDiagramTitle(){return Ks()}setDiagramTitle(t){io(t)}}});var k1i,jW,C1i,E1i,S1i,FWr,MWr,NWr,OWr,A1i,PWr,R1i,L1i,_1i,lft,D1i,I1i,$Wr,pEe,BWr,zW,GWr,jWr=ae(()=>{"use strict";ma();x1();$h();Ma();wa();k1i=14,jW=250,C1i=30,E1i=60,S1i=5,FWr=82*Math.PI/180,MWr=Math.cos(FWr),NWr=Math.sin(FWr),OWr=i((r,t,a)=>{let s=r.node().getBBox(),l=s.width+t*2,h=s.height+t*2;wl(r,h,l,a),r.attr("viewBox",`${s.x-t} ${s.y-t} ${l} ${h}`)},"applyPaddedViewBox"),A1i=i((r,t,a,s)=>{let h=s.db.getRoot();if(!h)return;let f=er(),{look:d,handDrawnSeed:m,themeVariables:b}=f,v=Rb(f.fontSize)[0]??k1i,T=d==="handDrawn",C=h.children??[],E=f.ishikawa?.diagramPadding??20,S=f.ishikawa?.useMaxWidth??!1,R=pu(t),L=R.append("g").attr("class","ishikawa"),_=T?en.svg(R.node()):void 0,I=_?{roughSvg:_,seed:m??0,lineColor:b?.lineColor??"#333",fillColor:b?.mainBkg??"#fff"}:void 0,N=`ishikawa-arrow-${t}`;T||L.append("defs").append("marker").attr("id",N).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let B=0,O=jW,P=T?void 0:zW(L,B,O,B,O,"ishikawa-spine");if(R1i(L,B,O,h.text,v,I),!C.length){T&&zW(L,B,O,B,O,"ishikawa-spine",I),OWr(R,E,S);return}B-=20;let $=C.filter((X,te)=>te%2===0),V=C.filter((X,te)=>te%2===1),Y=PWr($),Q=PWr(V),q=Y.total+Q.total,W=jW,H=jW;if(q>0){let X=jW*2,te=jW*.3;W=Math.max(te,X*(Y.total/q)),H=Math.max(te,X*(Q.total/q))}let re=v*2;W=Math.max(W,Y.max*re),H=Math.max(H,Q.max*re),O=Math.max(W,jW),P&&P.attr("y1",O).attr("y2",O),L.select(".ishikawa-head-group").attr("transform",`translate(0,${O})`);let Z=Math.ceil(C.length/2);for(let X=0;X<Z;X++){let te=L.append("g").attr("class","ishikawa-pair");for(let[U,ne,se]of[[C[X*2],-1,W],[C[X*2+1],1,H]])U&&D1i(te,U,B,O,ne,se,v,I);B=te.selectAll("text").nodes().reduce((U,ne)=>Math.min(U,ne.getBBox().x),1/0)}if(T)zW(L,B,O,0,O,"ishikawa-spine",I);else{P.attr("x1",B);let X=`url(#${N})`;L.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",X)}OWr(R,E,S)},"draw"),PWr=i(r=>{let t=i(a=>a.children.reduce((s,l)=>s+1+t(l),0),"countDescendants");return r.reduce((a,s)=>{let l=t(s);return a.total+=l,a.max=Math.max(a.max,l),a},{total:0,max:0})},"sideStats"),R1i=i((r,t,a,s,l,h)=>{let f=Math.max(6,Math.floor(110/(l*.6))),d=r.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${t},${a})`),m=pEe(d,$Wr(s,f),0,0,"ishikawa-head-label","start",l),b=m.node().getBBox(),v=Math.max(60,b.width+6),T=Math.max(40,b.height*2+40),C=`M 0 ${-T/2} L 0 ${T/2} Q ${v*2.4} 0 0 ${-T/2} Z`;if(h){let E=h.roughSvg.path(C,{roughness:1.5,seed:h.seed,fill:h.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:h.lineColor,strokeWidth:2});d.insert(()=>E,":first-child").attr("class","ishikawa-head")}else d.insert("path",":first-child").attr("class","ishikawa-head").attr("d",C);m.attr("transform",`translate(${(v-b.width)/2-b.x+3},${-b.y-b.height/2})`)},"drawHead"),L1i=i((r,t)=>{let a=[],s=[],l=i((h,f,d)=>{let m=t===-1?[...h].reverse():h;for(let b of m){let v=a.length,T=b.children??[];a.push({depth:d,text:$Wr(b.text,15),parentIndex:f,childCount:T.length}),d%2===0?(s.push(v),T.length&&l(T,v,d+1)):(T.length&&l(T,v,d+1),s.push(v))}},"walk");return l(r,-1,2),{entries:a,yOrder:s}},"flattenTree"),_1i=i((r,t,a,s,l,h,f)=>{let d=r.append("g").attr("class","ishikawa-label-group"),b=pEe(d,t,a,s+11*l,"ishikawa-label cause","middle",h).node().getBBox();if(f){let v=f.roughSvg.rectangle(b.x-20,b.y-2,b.width+40,b.height+4,{roughness:1.5,seed:f.seed,fill:f.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:f.lineColor,strokeWidth:2});d.insert(()=>v,":first-child").attr("class","ishikawa-label-box")}else d.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",b.x-20).attr("y",b.y-2).attr("width",b.width+40).attr("height",b.height+4)},"drawCauseLabel"),lft=i((r,t,a,s,l,h)=>{let f=Math.sqrt(s*s+l*l);if(f===0)return;let d=s/f,m=l/f,b=6,v=-m*b,T=d*b,C=t,E=a,S=`M ${C} ${E} L ${C-d*b*2+v} ${E-m*b*2+T} L ${C-d*b*2-v} ${E-m*b*2-T} Z`,R=h.roughSvg.path(S,{roughness:1,seed:h.seed,fill:h.lineColor,fillStyle:"solid",stroke:h.lineColor,strokeWidth:1});r.append(()=>R)},"drawArrowMarker"),D1i=i((r,t,a,s,l,h,f,d)=>{let m=t.children??[],b=h*(m.length?1:.2),v=-MWr*b,T=NWr*b*l,C=a+v,E=s+T;if(zW(r,a,s,C,E,"ishikawa-branch",d),d&&lft(r,a,s,a-C,s-E,d),_1i(r,t.text,C,E,l,f,d),!m.length)return;let{entries:S,yOrder:R}=L1i(m,l),L=S.length,_=new Array(L);for(let[P,$]of R.entries())_[$]=s+T*((P+1)/(L+1));let I=new Map;I.set(-1,{x0:a,y0:s,x1:C,y1:E,childCount:m.length,childrenDrawn:0});let N=-MWr,B=NWr*l,O=l<0?"ishikawa-label up":"ishikawa-label down";for(let[P,$]of S.entries()){let V=_[P],Y=I.get($.parentIndex),Q=r.append("g").attr("class","ishikawa-sub-group"),q=0,W=0,H=0;if($.depth%2===0){let re=Y.y1-Y.y0;q=BWr(Y.x0,Y.x1,re?(V-Y.y0)/re:.5),W=V,H=q-($.childCount>0?E1i+$.childCount*S1i:C1i),zW(Q,q,V,H,V,"ishikawa-sub-branch",d),d&&lft(Q,q,V,1,0,d),pEe(Q,$.text,H,V,"ishikawa-label align","end",f)}else{let re=Y.childrenDrawn++;q=BWr(Y.x0,Y.x1,(Y.childCount-re)/(Y.childCount+1)),W=Y.y0,H=q+N*((V-W)/B),zW(Q,q,W,H,V,"ishikawa-sub-branch",d),d&&lft(Q,q,W,q-H,W-V,d),pEe(Q,$.text,H,V,O,"end",f)}$.childCount>0&&I.set(P,{x0:q,y0:W,x1:H,y1:V,childCount:$.childCount,childrenDrawn:0})}},"drawBranch"),I1i=i(r=>r.split(/<br\s*\/?>|\n/),"splitLines"),$Wr=i((r,t)=>{if(r.length<=t)return r;let a=[];for(let s of r.split(/\s+/)){let l=a.length-1;l>=0&&a[l].length+1+s.length<=t?a[l]+=" "+s:a.push(s)}return a.join(`
|
|
`)},"wrapText"),pEe=i((r,t,a,s,l,h,f)=>{let d=I1i(t),m=f*1.05,b=r.append("text").attr("class",l).attr("text-anchor",h).attr("x",a).attr("y",s-(d.length-1)*m/2);for(let[v,T]of d.entries())b.append("tspan").attr("x",a).attr("dy",v===0?0:m).text(T);return b},"drawMultilineText"),BWr=i((r,t,a)=>r+(t-r)*a,"lerp"),zW=i((r,t,a,s,l,h,f)=>{if(f){let d=f.roughSvg.line(t,a,s,l,{roughness:1.5,seed:f.seed,stroke:f.lineColor,strokeWidth:2});r.append(()=>d).attr("class",h);return}return r.append("line").attr("class",h).attr("x1",t).attr("y1",a).attr("x2",s).attr("y2",l)},"drawLine"),GWr={draw:A1i}});var M1i,zWr,UWr=ae(()=>{"use strict";M1i=i(r=>`
|
|
.ishikawa .ishikawa-spine,
|
|
.ishikawa .ishikawa-branch,
|
|
.ishikawa .ishikawa-sub-branch {
|
|
stroke: ${r.lineColor};
|
|
stroke-width: 2;
|
|
fill: none;
|
|
}
|
|
|
|
.ishikawa .ishikawa-sub-branch {
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.ishikawa .ishikawa-arrow {
|
|
fill: ${r.lineColor};
|
|
}
|
|
|
|
.ishikawa .ishikawa-head {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.lineColor};
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.ishikawa .ishikawa-label-box {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.lineColor};
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.ishikawa text {
|
|
font-family: ${r.fontFamily};
|
|
font-size: ${r.fontSize};
|
|
fill: ${r.textColor};
|
|
}
|
|
|
|
.ishikawa .ishikawa-head-label {
|
|
font-weight: 600;
|
|
text-anchor: middle;
|
|
dominant-baseline: middle;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.ishikawa .ishikawa-label {
|
|
text-anchor: end;
|
|
}
|
|
|
|
.ishikawa .ishikawa-label.cause {
|
|
text-anchor: middle;
|
|
dominant-baseline: middle;
|
|
}
|
|
|
|
.ishikawa .ishikawa-label.align {
|
|
text-anchor: end;
|
|
dominant-baseline: middle;
|
|
}
|
|
|
|
.ishikawa .ishikawa-label.up {
|
|
dominant-baseline: baseline;
|
|
}
|
|
|
|
.ishikawa .ishikawa-label.down {
|
|
dominant-baseline: hanging;
|
|
}
|
|
`,"getStyles"),zWr=M1i});var VWr={};is(VWr,{diagram:()=>N1i});var N1i,WWr=ae(()=>{"use strict";DWr();IWr();jWr();UWr();N1i={parser:_Wr,get db(){return new dEe},renderer:GWr,styles:zWr}});var cft,YWr,XWr=ae(()=>{"use strict";cft=(function(){var r=i(function(I,N,B,O){for(B=B||{},O=I.length;O--;B[I[O]]=N);return B},"o"),t=[5,8],a=[7,8,11,12,17,19,22,24],s=[1,17],l=[1,18],h=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],f=[1,31],d=[1,39],m=[7,8,11,12,17,19,22,24,27],b=[1,57],v=[1,56],T=[1,58],C=[1,59],E=[1,60],S=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],R={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:i(function(N,B,O,P,$,V,Y){var Q=V.length-1;switch($){case 1:return V[Q-1];case 2:case 3:case 4:this.$=[];break;case 5:V[Q-1].push(V[Q]),this.$=V[Q-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=V[Q];break;case 8:P.setDiagramTitle(V[Q].substr(6)),this.$=V[Q].substr(6);break;case 9:P.addSubsetData([V[Q]],void 0,void 0),P.setIndentMode&&P.setIndentMode(!0);break;case 10:P.addSubsetData([V[Q-1]],V[Q],void 0),P.setIndentMode&&P.setIndentMode(!0);break;case 11:P.addSubsetData([V[Q-2]],void 0,parseFloat(V[Q])),P.setIndentMode&&P.setIndentMode(!0);break;case 12:P.addSubsetData([V[Q-3]],V[Q-2],parseFloat(V[Q])),P.setIndentMode&&P.setIndentMode(!0);break;case 13:if(V[Q].length<2)throw new Error("union requires multiple identifiers");P.validateUnionIdentifiers&&P.validateUnionIdentifiers(V[Q]),P.addSubsetData(V[Q],void 0,void 0),P.setIndentMode&&P.setIndentMode(!0);break;case 14:if(V[Q-1].length<2)throw new Error("union requires multiple identifiers");P.validateUnionIdentifiers&&P.validateUnionIdentifiers(V[Q-1]),P.addSubsetData(V[Q-1],V[Q],void 0),P.setIndentMode&&P.setIndentMode(!0);break;case 15:if(V[Q-2].length<2)throw new Error("union requires multiple identifiers");P.validateUnionIdentifiers&&P.validateUnionIdentifiers(V[Q-2]),P.addSubsetData(V[Q-2],void 0,parseFloat(V[Q])),P.setIndentMode&&P.setIndentMode(!0);break;case 16:if(V[Q-3].length<2)throw new Error("union requires multiple identifiers");P.validateUnionIdentifiers&&P.validateUnionIdentifiers(V[Q-3]),P.addSubsetData(V[Q-3],V[Q-2],parseFloat(V[Q])),P.setIndentMode&&P.setIndentMode(!0);break;case 17:case 18:case 19:P.addTextData(V[Q-1],V[Q],void 0);break;case 20:case 21:P.addTextData(V[Q-2],V[Q-1],V[Q]);break;case 23:P.addStyleData(V[Q-1],V[Q]);break;case 24:case 25:case 26:var q=P.getCurrentSets();if(!q)throw new Error("text requires set");P.addTextData(q,V[Q],void 0);break;case 27:case 28:var q=P.getCurrentSets();if(!q)throw new Error("text requires set");P.addTextData(q,V[Q-1],V[Q]);break;case 29:case 41:this.$=[V[Q]];break;case 30:case 42:this.$=[...V[Q-2],V[Q]];break;case 31:this.$=[V[Q-2],V[Q]];break;case 33:this.$=V[Q].join(" ");break;case 34:this.$=[V[Q]];break;case 35:V[Q-1].push(V[Q]),this.$=V[Q-1];break;case 43:case 44:this.$=V[Q];break}},"anonymous"),table:[r(t,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},r(a,[2,4],{6:5}),r(t,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},r(a,[2,5]),r(a,[2,6]),r(a,[2,7]),r(a,[2,8]),{13:16,20:s,21:l},{13:20,18:19,20:s,21:l},{13:20,18:21,20:s,21:l},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:s,21:l},r(a,[2,9],{14:[1,27],15:[1,28]}),r(h,[2,43]),r(h,[2,44]),r(a,[2,13],{14:[1,29],15:[1,30],27:f}),r(h,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:f},r(a,[2,22]),r(a,[2,24],{14:[1,35]}),r(a,[2,25],{14:[1,36]}),r(a,[2,26]),{20:d,25:37,26:38,27:f},r(a,[2,10],{15:[1,40]}),{16:[1,41]},r(a,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:s,21:l},r(a,[2,17],{14:[1,45]}),r(a,[2,18],{14:[1,46]}),r(a,[2,19]),r(a,[2,27]),r(a,[2,28]),r(a,[2,23],{27:[1,47]}),r(m,[2,29]),{15:[1,48]},{16:[1,49]},r(a,[2,11]),{16:[1,50]},r(a,[2,15]),r(h,[2,42]),r(a,[2,20]),r(a,[2,21]),{20:d,26:51},{16:b,20:v,21:[1,53],28:52,29:54,30:55,31:T,32:C,33:E},r(a,[2,12]),r(a,[2,16]),r(m,[2,30]),r(m,[2,31]),r(m,[2,32]),r(m,[2,33],{30:61,16:b,20:v,31:T,32:C,33:E}),r(S,[2,34]),r(S,[2,36]),r(S,[2,37]),r(S,[2,38]),r(S,[2,39]),r(S,[2,40]),r(S,[2,35])],defaultActions:{6:[2,1]},parseError:i(function(N,B){if(B.recoverable)this.trace(N);else{var O=new Error(N);throw O.hash=B,O}},"parseError"),parse:i(function(N){var B=this,O=[0],P=[],$=[null],V=[],Y=this.table,Q="",q=0,W=0,H=0,re=2,Z=1,X=V.slice.call(arguments,1),te=Object.create(this.lexer),U={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(U.yy[ne]=this.yy[ne]);te.setInput(N,U.yy),U.yy.lexer=te,U.yy.parser=this,typeof te.yylloc>"u"&&(te.yylloc={});var se=te.yylloc;V.push(se);var he=te.options&&te.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function le(pr){O.length=O.length-2*pr,$.length=$.length-pr,V.length=V.length-pr}i(le,"popStack");function pe(){var pr;return pr=P.pop()||te.lex()||Z,typeof pr!="number"&&(pr instanceof Array&&(P=pr,pr=P.pop()),pr=B.symbols_[pr]||pr),pr}i(pe,"lex");for(var ge,we,Ae,ve,Ie,De,Be={},Fe,ze,vt,lt;;){if(Ae=O[O.length-1],this.defaultActions[Ae]?ve=this.defaultActions[Ae]:((ge===null||typeof ge>"u")&&(ge=pe()),ve=Y[Ae]&&Y[Ae][ge]),typeof ve>"u"||!ve.length||!ve[0]){var Ft="";lt=[];for(Fe in Y[Ae])this.terminals_[Fe]&&Fe>re&<.push("'"+this.terminals_[Fe]+"'");te.showPosition?Ft="Parse error on line "+(q+1)+`:
|
|
`+te.showPosition()+`
|
|
Expecting `+lt.join(", ")+", got '"+(this.terminals_[ge]||ge)+"'":Ft="Parse error on line "+(q+1)+": Unexpected "+(ge==Z?"end of input":"'"+(this.terminals_[ge]||ge)+"'"),this.parseError(Ft,{text:te.match,token:this.terminals_[ge]||ge,line:te.yylineno,loc:se,expected:lt})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+ge);switch(ve[0]){case 1:O.push(ge),$.push(te.yytext),V.push(te.yylloc),O.push(ve[1]),ge=null,we?(ge=we,we=null):(W=te.yyleng,Q=te.yytext,q=te.yylineno,se=te.yylloc,H>0&&H--);break;case 2:if(ze=this.productions_[ve[1]][1],Be.$=$[$.length-ze],Be._$={first_line:V[V.length-(ze||1)].first_line,last_line:V[V.length-1].last_line,first_column:V[V.length-(ze||1)].first_column,last_column:V[V.length-1].last_column},he&&(Be._$.range=[V[V.length-(ze||1)].range[0],V[V.length-1].range[1]]),De=this.performAction.apply(Be,[Q,W,q,U.yy,ve[1],$,V].concat(X)),typeof De<"u")return De;ze&&(O=O.slice(0,-1*ze*2),$=$.slice(0,-1*ze),V=V.slice(0,-1*ze)),O.push(this.productions_[ve[1]][0]),$.push(Be.$),V.push(Be._$),vt=Y[O[O.length-2]][O[O.length-1]],O.push(vt);break;case 3:return!0}}return!0},"parse")},L=(function(){var I={EOF:1,parseError:i(function(B,O){if(this.yy.parser)this.yy.parser.parseError(B,O);else throw new Error(B)},"parseError"),setInput:i(function(N,B){return this.yy=B||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var B=N.match(/(?:\r\n?|\n).*/g);return B?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},"input"),unput:i(function(N){var B=N.length,O=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===P.length?this.yylloc.first_column:0)+P[P.length-O.length].length-O[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-B]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(N){this.unput(this.match.slice(N))},"less"),pastInput:i(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var N=this.pastInput(),B=new Array(N.length+1).join("-");return N+this.upcomingInput()+`
|
|
`+B+"^"},"showPosition"),test_match:i(function(N,B){var O,P,$;if(this.options.backtrack_lexer&&($={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($.yylloc.range=this.yylloc.range.slice(0))),P=N[0].match(/(?:\r\n?|\n).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+N[0].length},this.yytext+=N[0],this.match+=N[0],this.matches=N,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(N[0].length),this.matched+=N[0],O=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var V in $)this[V]=$[V];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var N,B,O,P;this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),V=0;V<$.length;V++)if(O=this._input.match(this.rules[$[V]]),O&&(!B||O[0].length>B[0].length)){if(B=O,P=V,this.options.backtrack_lexer){if(N=this.test_match(O,$[V]),N!==!1)return N;if(this._backtrack){B=!1;continue}else return!1}else if(!this.options.flex)break}return B?(N=this.test_match(B,$[P]),N!==!1?N:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var B=this.next();return B||this.lex()},"lex"),begin:i(function(B){this.conditionStack.push(B)},"begin"),popState:i(function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},"topState"),pushState:i(function(B){this.begin(B)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(B,O,P,$){var V=$;switch(P){case 0:break;case 1:break;case 2:break;case 3:if(B.getIndentMode&&B.getIndentMode())return B.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:B.setIndentMode&&B.setIndentMode(!1),this.begin("INITIAL"),this.unput(O.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(B.consumeIndentText)B.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return O.yytext=O.yytext.slice(2,-2),14;break;case 17:return O.yytext=O.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return I})();R.lexer=L;function _(){this.yy={}}return i(_,"Parser"),_.prototype=R,R.Parser=_,new _})();cft.parser=cft;YWr=cft});function X1i(){return il(Y1i,ri().venn)}var uft,hft,fft,dft,pft,gft,B1i,F1i,hse,$1i,G1i,j1i,z1i,gEe,U1i,V1i,W1i,H1i,q1i,Y1i,K1i,KWr,JWr=ae(()=>{"use strict";Ma();Xs();Au();pp();uft=[],hft=[],fft=[],dft=new Set,gft=!1,B1i=i((r,t,a)=>{let s=gEe(r).sort(),l=a??10/Math.pow(r.length,2);pft=s,s.length===1&&dft.add(s[0]),uft.push({sets:s,size:l,label:t?hse(t):void 0})},"addSubsetData"),F1i=i(()=>uft,"getSubsetData"),hse=i(r=>{let t=r.trim();return t.length>=2&&t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):t},"normalizeText"),$1i=i(r=>r&&hse(r),"normalizeStyleValue"),G1i=i((r,t,a)=>{let s=hse(t);hft.push({sets:gEe(r).sort(),id:s,label:a?hse(a):void 0})},"addTextData"),j1i=i((r,t)=>{let a=gEe(r).sort(),s={};for(let[l,h]of t)s[l]=$1i(h)??h;fft.push({targets:a,styles:s})},"addStyleData"),z1i=i(()=>fft,"getStyleData"),gEe=i(r=>r.map(t=>hse(t)),"normalizeIdentifierList"),U1i=i(r=>{let a=gEe(r).filter(s=>!dft.has(s));if(a.length>0)throw new Error(`unknown set identifier: ${a.join(", ")}`)},"validateUnionIdentifiers"),V1i=i(()=>hft,"getTextData"),W1i=i(()=>pft,"getCurrentSets"),H1i=i(()=>gft,"getIndentMode"),q1i=i(r=>{gft=r},"setIndentMode"),Y1i=ps.venn;i(X1i,"getConfig");K1i=i(()=>{Ds(),uft.length=0,hft.length=0,fft.length=0,dft.clear(),pft=void 0,gft=!1},"customClear"),KWr={getConfig:X1i,clear:K1i,setAccTitle:Os,getAccTitle:Vs,setDiagramTitle:io,getDiagramTitle:Ks,getAccDescription:Ws,setAccDescription:$s,addSubsetData:B1i,getSubsetData:F1i,addTextData:G1i,addStyleData:j1i,validateUnionIdentifiers:U1i,getTextData:V1i,getStyleData:z1i,getCurrentSets:W1i,getIndentMode:H1i,setIndentMode:q1i}});var J1i,QWr,ZWr=ae(()=>{"use strict";J1i=i(r=>`
|
|
.venn-title {
|
|
font-size: 32px;
|
|
fill: ${r.vennTitleTextColor};
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
.venn-circle text {
|
|
font-size: 48px;
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
.venn-intersection text {
|
|
font-size: 48px;
|
|
fill: ${r.vennSetTextColor};
|
|
font-family: ${r.fontFamily};
|
|
}
|
|
|
|
.venn-text-node {
|
|
font-family: ${r.fontFamily};
|
|
color: ${r.vennSetTextColor};
|
|
}
|
|
`,"getStyles"),QWr=J1i});function mEe(r,t){let a=Z1i(r),s=a.filter(d=>Q1i(d,r)),l=0,h=0,f=[];if(s.length>1){let d=nHr(s);for(let b=0;b<s.length;++b){let v=s[b];v.angle=Math.atan2(v.x-d.x,v.y-d.y)}s.sort((b,v)=>v.angle-b.angle);let m=s[s.length-1];for(let b=0;b<s.length;++b){let v=s[b];h+=(m.x+v.x)*(v.y-m.y);let T={x:(v.x+m.x)/2,y:(v.y+m.y)/2},C=null;for(let E=0;E<v.parentIndex.length;++E)if(m.parentIndex.includes(v.parentIndex[E])){let S=r[v.parentIndex[E]],R=Math.atan2(v.x-S.x,v.y-S.y),L=Math.atan2(m.x-S.x,m.y-S.y),_=L-R;_<0&&(_+=2*Math.PI);let I=L-_/2,N=S2(T,{x:S.x+S.radius*Math.sin(I),y:S.y+S.radius*Math.cos(I)});N>S.radius*2&&(N=S.radius*2),(C==null||C.width>N)&&(C={circle:S,width:N,p1:v,p2:m,large:N>S.radius,sweep:!0})}C!=null&&(f.push(C),l+=bft(C.circle.radius,C.width),m=v)}}else{let d=r[0];for(let b=1;b<r.length;++b)r[b].radius<d.radius&&(d=r[b]);let m=!1;for(let b=0;b<r.length;++b)if(S2(r[b],d)>Math.abs(d.radius-r[b].radius)){m=!0;break}m?l=h=0:(l=d.radius*d.radius*Math.PI,f.push({circle:d,p1:{x:d.x,y:d.y+d.radius},p2:{x:d.x-1e-10,y:d.y+d.radius},width:d.radius*2,large:!0,sweep:!0}))}return h/=2,t&&(t.area=l+h,t.arcArea=l,t.polygonArea=h,t.arcs=f,t.innerPoints=s,t.intersectionPoints=a),l+h}function Q1i(r,t){return t.every(a=>S2(r,a)<a.radius+1e-10)}function Z1i(r){let t=[];for(let a=0;a<r.length;++a)for(let s=a+1;s<r.length;++s){let l=rHr(r[a],r[s]);for(let h of l)h.parentIndex=[a,s],t.push(h)}return t}function bft(r,t){return r*r*Math.acos(1-t/r)-(r-t)*Math.sqrt(t*(2*r-t))}function S2(r,t){return Math.sqrt((r.x-t.x)*(r.x-t.x)+(r.y-t.y)*(r.y-t.y))}function Cft(r,t,a){if(a>=r+t)return 0;if(a<=Math.abs(r-t))return Math.PI*Math.min(r,t)*Math.min(r,t);let s=r-(a*a-t*t+r*r)/(2*a),l=t-(a*a-r*r+t*t)/(2*a);return bft(r,s)+bft(t,l)}function rHr(r,t){let a=S2(r,t),s=r.radius,l=t.radius;if(a>=s+l||a<=Math.abs(s-l))return[];let h=(s*s-l*l+a*a)/(2*a),f=Math.sqrt(s*s-h*h),d=r.x+h*(t.x-r.x)/a,m=r.y+h*(t.y-r.y)/a,b=-(t.y-r.y)*(f/a),v=-(t.x-r.x)*(f/a);return[{x:d+b,y:m-v},{x:d-b,y:m+v}]}function nHr(r){let t={x:0,y:0};for(let a of r)t.x+=a.x,t.y+=a.y;return t.x/=r.length,t.y/=r.length,t}function eyi(r,t,a,s){s=s||{};let l=s.maxIterations||100,h=s.tolerance||1e-10,f=r(t),d=r(a),m=a-t;if(f*d>0)throw"Initial bisect points must have opposite signs";if(f===0)return t;if(d===0)return a;for(let b=0;b<l;++b){m/=2;let v=t+m,T=r(v);if(T*f>=0&&(t=v),Math.abs(m)<h||T===0)return v}return t+m}function vft(r){let t=new Array(r);for(let a=0;a<r;++a)t[a]=0;return t}function eHr(r,t){return vft(r).map(()=>vft(t))}function UW(r,t){let a=0;for(let s=0;s<r.length;++s)a+=r[s]*t[s];return a}function wft(r){return Math.sqrt(UW(r,r))}function xft(r,t,a){for(let s=0;s<t.length;++s)r[s]=t[s]*a}function E8(r,t,a,s,l){for(let h=0;h<r.length;++h)r[h]=t*a[h]+s*l[h]}function iHr(r,t,a){a=a||{};let s=a.maxIterations||t.length*200,l=a.nonZeroDelta||1.05,h=a.zeroDelta||.001,f=a.minErrorDelta||1e-6,d=a.minErrorDelta||1e-5,m=a.rho!==void 0?a.rho:1,b=a.chi!==void 0?a.chi:2,v=a.psi!==void 0?a.psi:-.5,T=a.sigma!==void 0?a.sigma:.5,C,E=t.length,S=new Array(E+1);S[0]=t,S[0].fx=r(t),S[0].id=0;for(let O=0;O<E;++O){let P=t.slice();P[O]=P[O]?P[O]*l:h,S[O+1]=P,S[O+1].fx=r(P),S[O+1].id=O+1}function R(O){for(let P=0;P<O.length;P++)S[E][P]=O[P];S[E].fx=O.fx}i(R,"updateSimplex");let L=i((O,P)=>O.fx-P.fx,"sortOrder"),_=t.slice(),I=t.slice(),N=t.slice(),B=t.slice();for(let O=0;O<s;++O){if(S.sort(L),a.history){let $=S.map(V=>{let Y=V.slice();return Y.fx=V.fx,Y.id=V.id,Y});$.sort((V,Y)=>V.id-Y.id),a.history.push({x:S[0].slice(),fx:S[0].fx,simplex:$})}C=0;for(let $=0;$<E;++$)C=Math.max(C,Math.abs(S[0][$]-S[1][$]));if(Math.abs(S[0].fx-S[E].fx)<f&&C<d)break;for(let $=0;$<E;++$){_[$]=0;for(let V=0;V<E;++V)_[$]+=S[V][$];_[$]/=E}let P=S[E];if(E8(I,1+m,_,-m,P),I.fx=r(I),I.fx<S[0].fx)E8(B,1+b,_,-b,P),B.fx=r(B),B.fx<I.fx?R(B):R(I);else if(I.fx>=S[E-1].fx){let $=!1;if(I.fx>P.fx?(E8(N,1+v,_,-v,P),N.fx=r(N),N.fx<P.fx?R(N):$=!0):(E8(N,1-v*m,_,v*m,P),N.fx=r(N),N.fx<I.fx?R(N):$=!0),$){if(T>=1)break;for(let V=1;V<S.length;++V)E8(S[V],1-T,S[0],T,S[V]),S[V].fx=r(S[V])}}else R(I)}return S.sort(L),{fx:S[0].fx,x:S[0]}}function tyi(r,t,a,s,l,h,f){let d=a.fx,m=UW(a.fxprime,t),b=d,v=d,T=m,C=0;l=l||1,h=h||1e-6,f=f||.1;function E(S,R,L){for(let _=0;_<16;++_)if(l=(S+R)/2,E8(s.x,1,a.x,l,t),b=s.fx=r(s.x,s.fxprime),T=UW(s.fxprime,t),b>d+h*l*m||b>=L)R=l;else{if(Math.abs(T)<=-f*m)return l;T*(R-S)>=0&&(R=S),S=l,L=b}return 0}i(E,"zoom");for(let S=0;S<10;++S){if(E8(s.x,1,a.x,l,t),b=s.fx=r(s.x,s.fxprime),T=UW(s.fxprime,t),b>d+h*l*m||S&&b>=v)return E(C,l,v);if(Math.abs(T)<=-f*m)return l;if(T>=0)return E(l,C,b);v=b,C=l,l*=2}return l}function ryi(r,t,a){let s={x:t.slice(),fx:0,fxprime:t.slice()},l={x:t.slice(),fx:0,fxprime:t.slice()},h=t.slice(),f,d,m=1,b;a=a||{},b=a.maxIterations||t.length*20,s.fx=r(s.x,s.fxprime),f=s.fxprime.slice(),xft(f,s.fxprime,-1);for(let v=0;v<b;++v){if(m=tyi(r,f,s,l,m),a.history&&a.history.push({x:s.x.slice(),fx:s.fx,fxprime:s.fxprime.slice(),alpha:m}),!m)xft(f,s.fxprime,-1);else{E8(h,1,l.fxprime,-1,s.fxprime);let T=UW(s.fxprime,s.fxprime),C=Math.max(0,UW(h,l.fxprime)/T);E8(f,C,f,-1,l.fxprime),d=s,s=l,l=d}if(wft(s.fxprime)<=1e-5)break}return a.history&&a.history.push({x:s.x.slice(),fx:s.fx,fxprime:s.fxprime.slice(),alpha:m}),s}function aHr(r,t={}){t.maxIterations=t.maxIterations||500;let a=t.initialLayout||syi,s=t.lossFunction||VW,l=nyi(r,t),h=a(l,t),f=Object.keys(h),d=[];for(let v of f)d.push(h[v].x),d.push(h[v].y);let b=iHr(v=>{let T={};for(let C=0;C<f.length;++C){let E=f[C];T[E]={x:v[2*C],y:v[2*C+1],radius:h[E].radius}}return s(T,l)},d,t).x;for(let v=0;v<f.length;++v){let T=f[v];h[T].x=b[2*v],h[T].y=b[2*v+1]}return h}function Tft(r,t,a){return Math.min(r,t)*Math.min(r,t)*Math.PI<=a+sHr?Math.abs(r-t):eyi(s=>Cft(r,t,s)-a,0,r+t)}function nyi(r,t={}){let a=t.distinct,s=r.map(d=>Object.assign({},d));function l(d){return d.join(";")}if(i(l,"toKey"),a){let d=new Map;for(let m of s)for(let b=0;b<m.sets.length;b++){let v=String(m.sets[b]);d.set(v,m.size+(d.get(v)||0));for(let T=b+1;T<m.sets.length;T++){let C=String(m.sets[T]),E=`${v};${C}`,S=`${C};${v}`;d.set(E,m.size+(d.get(E)||0)),d.set(S,m.size+(d.get(S)||0))}}for(let m of s)m.sets.length<3&&(m.size=d.get(l(m.sets)))}let h=[],f=new Set;for(let d of s)if(d.sets.length===1)h.push(d.sets[0]);else if(d.sets.length===2){let m=d.sets[0],b=d.sets[1];f.add(l(d.sets)),f.add(l([b,m]))}h.sort((d,m)=>d===m?0:d<m?-1:1);for(let d=0;d<h.length;++d){let m=h[d];for(let b=d+1;b<h.length;++b){let v=h[b];f.has(l([m,v]))||s.push({sets:[m,v],size:0})}}return s}function iyi(r,t,a){let s=eHr(t.length,t.length),l=eHr(t.length,t.length);return r.filter(h=>h.sets.length===2).forEach(h=>{let f=a[h.sets[0]],d=a[h.sets[1]],m=Math.sqrt(t[f].size/Math.PI),b=Math.sqrt(t[d].size/Math.PI),v=Tft(m,b,h.size);s[f][d]=s[d][f]=v;let T=0;h.size+1e-10>=Math.min(t[f].size,t[d].size)?T=1:h.size<=1e-10&&(T=-1),l[f][d]=l[d][f]=T}),{distances:s,constraints:l}}function ayi(r,t,a,s){for(let h=0;h<t.length;++h)t[h]=0;let l=0;for(let h=0;h<a.length;++h){let f=r[2*h],d=r[2*h+1];for(let m=h+1;m<a.length;++m){let b=r[2*m],v=r[2*m+1],T=a[h][m],C=s[h][m],E=(b-f)*(b-f)+(v-d)*(v-d),S=Math.sqrt(E),R=E-T*T;C>0&&S<=T||C<0&&S>=T||(l+=2*R*R,t[2*h]+=4*R*(f-b),t[2*h+1]+=4*R*(d-v),t[2*m]+=4*R*(b-f),t[2*m+1]+=4*R*(v-d))}}return l}function syi(r,t={}){let a=lyi(r,t),s=t.lossFunction||VW;if(r.length>=8){let l=oyi(r,t),h=s(l,r),f=s(a,r);h+1e-8<f&&(a=l)}return a}function oyi(r,t={}){let a=t.restarts||10,s=[],l={};for(let C of r)C.sets.length===1&&(l[C.sets[0]]=s.length,s.push(C));let{distances:h,constraints:f}=iyi(r,s,l),d=wft(h.map(wft))/h.length;h=h.map(C=>C.map(E=>E/d));let m=i((C,E)=>ayi(C,E,h,f),"obj"),b=null;for(let C=0;C<a;++C){let E=vft(h.length*2).map(Math.random),S=ryi(m,E,t);(!b||S.fx<b.fx)&&(b=S)}let v=b.x,T={};for(let C=0;C<s.length;++C){let E=s[C];T[E.sets[0]]={x:v[2*C]*d,y:v[2*C+1]*d,radius:Math.sqrt(E.size/Math.PI)}}if(t.history)for(let C of t.history)xft(C.x,d);return T}function lyi(r,t){let a=t&&t.lossFunction?t.lossFunction:VW,s={},l={};for(let T of r)if(T.sets.length===1){let C=T.sets[0];s[C]={x:1e10,y:1e10,rowid:s.length,size:T.size,radius:Math.sqrt(T.size/Math.PI)},l[C]=[]}r=r.filter(T=>T.sets.length===2);for(let T of r){let C=T.weight!=null?T.weight:1,E=T.sets[0],S=T.sets[1];T.size+sHr>=Math.min(s[E].size,s[S].size)&&(C=0),l[E].push({set:S,size:T.size,weight:C}),l[S].push({set:E,size:T.size,weight:C})}let h=[];Object.keys(l).forEach(T=>{let C=0;for(let E=0;E<l[T].length;++E)C+=l[T][E].size*l[T][E].weight;h.push({set:T,size:C})});function f(T,C){return C.size-T.size}i(f,"sortOrder"),h.sort(f);let d={};function m(T){return T.set in d}i(m,"isPositioned");function b(T,C){s[C].x=T.x,s[C].y=T.y,d[C]=!0}i(b,"positionSet"),b({x:0,y:0},h[0].set);for(let T=1;T<h.length;++T){let C=h[T].set,E=l[C].filter(m),S=s[C];if(E.sort(f),E.length===0)throw"ERROR: missing pairwise overlap information";let R=[];for(var v=0;v<E.length;++v){let I=s[E[v].set],N=Tft(S.radius,I.radius,E[v].size);R.push({x:I.x+N,y:I.y}),R.push({x:I.x-N,y:I.y}),R.push({y:I.y+N,x:I.x}),R.push({y:I.y-N,x:I.x});for(let B=v+1;B<E.length;++B){let O=s[E[B].set],P=Tft(S.radius,O.radius,E[B].size),$=rHr({x:I.x,y:I.y,radius:N},{x:O.x,y:O.y,radius:P});R.push(...$)}}let L=1e50,_=R[0];for(let I of R){s[C].x=I.x,s[C].y=I.y;let N=a(s,r);N<L&&(L=N,_=I)}b(_,C)}return s}function VW(r,t){let a=0;for(let s of t){if(s.sets.length===1)continue;let l;if(s.sets.length===2){let f=r[s.sets[0]],d=r[s.sets[1]];l=Cft(f.radius,d.radius,S2(f,d))}else l=mEe(s.sets.map(f=>r[f]));let h=s.weight!=null?s.weight:1;a+=h*(l-s.size)*(l-s.size)}return a}function oHr(r,t){let a=0;for(let s of t){if(s.sets.length===1)continue;let l;if(s.sets.length===2){let d=r[s.sets[0]],m=r[s.sets[1]];l=Cft(d.radius,m.radius,S2(d,m))}else l=mEe(s.sets.map(d=>r[d]));let h=s.weight!=null?s.weight:1,f=Math.log((l+1)/(s.size+1));a+=h*f*f}return a}function cyi(r,t,a){if(a==null?r.sort((l,h)=>h.radius-l.radius):r.sort(a),r.length>0){let l=r[0].x,h=r[0].y;for(let f of r)f.x-=l,f.y-=h}if(r.length===2&&S2(r[0],r[1])<Math.abs(r[1].radius-r[0].radius)&&(r[1].x=r[0].x+r[0].radius-r[1].radius-1e-10,r[1].y=r[0].y),r.length>1){let l=Math.atan2(r[1].x,r[1].y)-t,h=Math.cos(l),f=Math.sin(l);for(let d of r){let m=d.x,b=d.y;d.x=h*m-f*b,d.y=f*m+h*b}}if(r.length>2){let l=Math.atan2(r[2].x,r[2].y)-t;for(;l<0;)l+=2*Math.PI;for(;l>2*Math.PI;)l-=2*Math.PI;if(l>Math.PI){let h=r[1].y/(1e-10+r[1].x);for(let f of r){var s=(f.x+h*f.y)/(1+h*h);f.x=2*s-f.x,f.y=2*s*h-f.y}}}}function uyi(r){r.forEach(l=>{l.parent=l});function t(l){return l.parent!==l&&(l.parent=t(l.parent)),l.parent}i(t,"find");function a(l,h){let f=t(l),d=t(h);f.parent=d}i(a,"union");for(let l=0;l<r.length;++l)for(let h=l+1;h<r.length;++h){let f=r[l].radius+r[h].radius;S2(r[l],r[h])+1e-10<f&&a(r[h],r[l])}let s=new Map;for(let l=0;l<r.length;++l){let h=t(r[l]).parent.setid;s.has(h)||s.set(h,[]),s.get(h).push(r[l])}return r.forEach(l=>{delete l.parent}),Array.from(s.values())}function kft(r){let t=i(a=>{let s=r.reduce((h,f)=>Math.max(h,f[a]+f.radius),Number.NEGATIVE_INFINITY),l=r.reduce((h,f)=>Math.min(h,f[a]-f.radius),Number.POSITIVE_INFINITY);return{max:s,min:l}},"minMax");return{xRange:t("x"),yRange:t("y")}}function lHr(r,t,a){t==null&&(t=Math.PI/2);let s=hHr(r).map(b=>Object.assign({},b)),l=uyi(s);for(let b of l){cyi(b,t,a);let v=kft(b);b.size=(v.xRange.max-v.xRange.min)*(v.yRange.max-v.yRange.min),b.bounds=v}l.sort((b,v)=>v.size-b.size),s=l[0];let h=s.bounds,f=(h.xRange.max-h.xRange.min)/50;function d(b,v,T){if(!b)return;let C=b.bounds,E,S;if(v)E=h.xRange.max-C.xRange.min+f;else{E=h.xRange.max-C.xRange.max;let R=(C.xRange.max-C.xRange.min)/2-(h.xRange.max-h.xRange.min)/2;R<0&&(E+=R)}if(T)S=h.yRange.max-C.yRange.min+f;else{S=h.yRange.max-C.yRange.max;let R=(C.yRange.max-C.yRange.min)/2-(h.yRange.max-h.yRange.min)/2;R<0&&(S+=R)}for(let R of b)R.x+=E,R.y+=S,s.push(R)}i(d,"addCluster");let m=1;for(;m<l.length;)d(l[m],!0,!1),d(l[m+1],!1,!0),d(l[m+2],!0,!0),m+=3,h=kft(s);return uHr(s)}function cHr(r,t,a,s,l){let h=hHr(r);t-=2*s,a-=2*s;let{xRange:f,yRange:d}=kft(h);if(f.max===f.min||d.max===d.min)return console.log("not scaling solution: zero size detected"),r;let m,b;if(l){let E=Math.sqrt(l/Math.PI)*2;m=t/E,b=a/E}else m=t/(f.max-f.min),b=a/(d.max-d.min);let v=Math.min(b,m),T=(t-(f.max-f.min)*v)/2,C=(a-(d.max-d.min)*v)/2;return uHr(h.map(E=>({radius:v*E.radius,x:s+T+(E.x-f.min)*v,y:s+C+(E.y-d.min)*v,setid:E.setid})))}function uHr(r){let t={};for(let a of r)t[a.setid]=a;return t}function hHr(r){return Object.keys(r).map(a=>Object.assign(r[a],{setid:a}))}function fHr(r={}){let t=!1,a=600,s=350,l=15,h=1e3,f=Math.PI/2,d=!0,m=null,b=!0,v=!0,T=null,C=null,E=!1,S=null,R=r&&r.symmetricalTextCentre?r.symmetricalTextCentre:!1,L={},_=r&&r.colourScheme?r.colourScheme:r&&r.colorScheme?r.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],I=0,N=i(function($){if($ in L)return L[$];var V=L[$]=_[I];return I+=1,I>=_.length&&(I=0),V},"colours"),B=aHr,O=VW;function P($){let V=$.datum(),Y=new Set;V.forEach(ve=>{ve.size==0&&ve.sets.length==1&&Y.add(ve.sets[0])}),V=V.filter(ve=>!ve.sets.some(Ie=>Y.has(Ie)));let Q={},q={};if(V.length>0){let ve=B(V,{lossFunction:O,distinct:E});d&&(ve=lHr(ve,f,C)),Q=cHr(ve,a,s,l,m),q=pHr(Q,V,R)}let W={};V.forEach(ve=>{ve.label&&(W[ve.sets]=ve.label)});function H(ve){if(ve.sets in W)return W[ve.sets];if(ve.sets.length==1)return""+ve.sets[0]}i(H,"label"),$.selectAll("svg").data([Q]).enter().append("svg");let re=$.select("svg");t?re.attr("viewBox",`0 0 ${a} ${s}`):re.attr("width",a).attr("height",s);let Z={},X=!1;re.selectAll(".venn-area path").each(function(ve){let Ie=this.getAttribute("d");ve.sets.length==1&&Ie&&!E&&(X=!0,Z[ve.sets[0]]=dyi(Ie))});function te(ve){return Ie=>{let De=ve.sets.map(Be=>{let Fe=Z[Be],ze=Q[Be];return Fe||(Fe={x:a/2,y:s/2,radius:1}),ze||(ze={x:a/2,y:s/2,radius:1}),{x:Fe.x*(1-Ie)+ze.x*Ie,y:Fe.y*(1-Ie)+ze.y*Ie,radius:Fe.radius*(1-Ie)+ze.radius*Ie}});return tHr(De,S)}}i(te,"pathTween");let U=re.selectAll(".venn-area").data(V,ve=>ve.sets),ne=U.enter().append("g").attr("class",ve=>`venn-area venn-${ve.sets.length==1?"circle":"intersection"}${ve.colour||ve.color?" venn-coloured":""}`).attr("data-venn-sets",ve=>ve.sets.join("_")),se=ne.append("path"),he=ne.append("text").attr("class","label").text(ve=>H(ve)).attr("text-anchor","middle").attr("dy",".35em").attr("x",a/2).attr("y",s/2);v&&(se.style("fill-opacity","0").filter(ve=>ve.sets.length==1).style("fill",ve=>ve.colour?ve.colour:ve.color?ve.color:N(ve.sets)).style("fill-opacity",".25"),he.style("fill",ve=>ve.colour||ve.color?"#FFF":r.textFill?r.textFill:ve.sets.length==1?N(ve.sets):"#444"));function le(ve){return typeof ve.transition=="function"?ve.transition("venn").duration(h):ve}i(le,"asTransition");let pe=$;X&&typeof pe.transition=="function"?(pe=le($),pe.selectAll("path").attrTween("d",te)):pe.selectAll("path").attr("d",ve=>tHr(ve.sets.map(Ie=>Q[Ie])),S);let ge=pe.selectAll("text").filter(ve=>ve.sets in q).text(ve=>H(ve)).attr("x",ve=>Math.floor(q[ve.sets].x)).attr("y",ve=>Math.floor(q[ve.sets].y));b&&(X?"on"in ge?ge.on("end",mft(Q,H)):ge.each("end",mft(Q,H)):ge.each(mft(Q,H)));let we=le(U.exit()).remove();typeof U.transition=="function"&&we.selectAll("path").attrTween("d",te);let Ae=we.selectAll("text").attr("x",a/2).attr("y",s/2);return T!==null&&(he.style("font-size","0px"),ge.style("font-size",T),Ae.style("font-size","0px")),{circles:Q,textCentres:q,nodes:U,enter:ne,update:pe,exit:we}}return i(P,"chart"),P.wrap=function($){return arguments.length?(b=$,P):b},P.useViewBox=function(){return t=!0,P},P.width=function($){return arguments.length?(a=$,P):a},P.height=function($){return arguments.length?(s=$,P):s},P.padding=function($){return arguments.length?(l=$,P):l},P.distinct=function($){return arguments.length?(E=$,P):E},P.colours=function($){return arguments.length?(N=$,P):N},P.colors=function($){return arguments.length?(N=$,P):N},P.fontSize=function($){return arguments.length?(T=$,P):T},P.round=function($){return arguments.length?(S=$,P):S},P.duration=function($){return arguments.length?(h=$,P):h},P.layoutFunction=function($){return arguments.length?(B=$,P):B},P.normalize=function($){return arguments.length?(d=$,P):d},P.scaleToFit=function($){return arguments.length?(m=$,P):m},P.styled=function($){return arguments.length?(v=$,P):v},P.orientation=function($){return arguments.length?(f=$,P):f},P.orientationOrder=function($){return arguments.length?(C=$,P):C},P.lossFunction=function($){return arguments.length?(O=$==="default"?VW:$==="logRatio"?oHr:$,P):O},P}function mft(r,t){return function(a){let s=this,l=r[a.sets[0]].radius||50,h=t(a)||"",f=h.split(/\s+/).reverse(),m=(h.length+f.length)/3,b=f.pop(),v=[b],T=0,C=1.1;s.textContent=null;let E=[];function S(N){let B=s.ownerDocument.createElementNS(s.namespaceURI,"tspan");return B.textContent=N,E.push(B),s.append(B),B}i(S,"append");let R=S(b);for(;b=f.pop(),!!b;){v.push(b);let N=v.join(" ");R.textContent=N,N.length>m&&R.getComputedTextLength()>l&&(v.pop(),R.textContent=v.join(" "),v=[b],R=S(b),T++)}let L=.35-T*C/2,_=s.getAttribute("x"),I=s.getAttribute("y");E.forEach((N,B)=>{N.setAttribute("x",_),N.setAttribute("y",I),N.setAttribute("dy",`${L+B*C}em`)})}}function yft(r,t,a){let s=t[0].radius-S2(t[0],r);for(let l=1;l<t.length;++l){let h=t[l].radius-S2(t[l],r);h<=s&&(s=h)}for(let l=0;l<a.length;++l){let h=S2(a[l],r)-a[l].radius;h<=s&&(s=h)}return s}function dHr(r,t,a){let s=[];for(let v of r)s.push({x:v.x,y:v.y}),s.push({x:v.x+v.radius/2,y:v.y}),s.push({x:v.x-v.radius/2,y:v.y}),s.push({x:v.x,y:v.y+v.radius/2}),s.push({x:v.x,y:v.y-v.radius/2});let l=s[0],h=yft(s[0],r,t);for(let v=1;v<s.length;++v){let T=yft(s[v],r,t);T>=h&&(l=s[v],h=T)}let f=iHr(v=>-1*yft({x:v[0],y:v[1]},r,t),[l.x,l.y],{maxIterations:500,minErrorDelta:1e-10}).x,d={x:a?0:f[0],y:f[1]},m=!0;for(let v of r)if(S2(d,v)>v.radius){m=!1;break}for(let v of t)if(S2(d,v)<v.radius){m=!1;break}if(m)return d;if(r.length==1)return{x:r[0].x,y:r[0].y};let b={};return mEe(r,b),b.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:b.arcs.length==1?{x:b.arcs[0].circle.x,y:b.arcs[0].circle.y}:t.length?dHr(r,[]):nHr(b.arcs.map(v=>v.p1))}function hyi(r){let t={},a=Object.keys(r);for(let s of a)t[s]=[];for(let s=0;s<a.length;s++){let l=a[s],h=r[l];for(let f=s+1;f<a.length;++f){let d=a[f],m=r[d],b=S2(h,m);b+m.radius<=h.radius+1e-10?t[d].push(l):b+h.radius<=m.radius+1e-10&&t[l].push(d)}}return t}function pHr(r,t,a){let s={},l=hyi(r);for(let h=0;h<t.length;++h){let f=t[h].sets,d={},m={};for(let C=0;C<f.length;++C){d[f[C]]=!0;let E=l[f[C]];for(let S=0;S<E.length;++S)m[E[S]]=!0}let b=[],v=[];for(let C in r)C in d?b.push(r[C]):C in m||v.push(r[C]);let T=dHr(b,v,a);s[f]=T,T.disjoint&&t[h].size>0&&console.log("WARNING: area "+f+" not represented on screen")}return s}function fyi(r,t,a){let s=[];return s.push(`
|
|
M`,r,t),s.push(`
|
|
m`,-a,0),s.push(`
|
|
a`,a,a,0,1,0,a*2,0),s.push(`
|
|
a`,a,a,0,1,0,-a*2,0),s.join(" ")}function dyi(r){let t=r.split(" ");return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}function gHr(r){if(r.length===0)return[];let t={};return mEe(r,t),t.arcs}function mHr(r,t){if(r.length===0)return"M 0 0";let a=Math.pow(10,t||0),s=t!=null?h=>Math.round(h*a)/a:h=>h;if(r.length==1){let h=r[0].circle;return fyi(s(h.x),s(h.y),s(h.radius))}let l=[`
|
|
M`,s(r[0].p2.x),s(r[0].p2.y)];for(let h of r){let f=s(h.circle.radius);l.push(`
|
|
A`,f,f,0,h.large?1:0,h.sweep?1:0,s(h.p1.x),s(h.p1.y))}return l.join(" ")}function tHr(r,t){return mHr(gHr(r),t)}function yHr(r,t={}){let{lossFunction:a,layoutFunction:s=aHr,normalize:l=!0,orientation:h=Math.PI/2,orientationOrder:f,width:d=600,height:m=350,padding:b=15,scaleToFit:v=!1,symmetricalTextCentre:T=!1,distinct:C,round:E=2}=t,S=s(r,{lossFunction:a==="default"||!a?VW:a==="logRatio"?oHr:a,distinct:C});l&&(S=lHr(S,h,f));let R=cHr(S,d,m,b,v),L=pHr(R,r,T),_=new Map(Object.keys(R).map(B=>[B,{set:B,x:R[B].x,y:R[B].y,radius:R[B].radius}])),I=r.map(B=>{let O=B.sets.map(V=>_.get(V)),P=gHr(O),$=mHr(P,E);return{circles:O,arcs:P,path:$,area:B,has:new Set(B.sets)}});function N(B){let O="";for(let P of I)P.has.size>B.length&&B.every($=>P.has.has($))&&(O+=" "+P.path);return O}return i(N,"genDistinctPath"),I.map(({circles:B,arcs:O,path:P,area:$})=>({data:$,text:L[$.sets],circles:B,arcs:O,path:P,distinctPath:P+N($.sets)}))}var sHr,bHr=ae(()=>{"use strict";i(mEe,"intersectionArea");i(Q1i,"containedInCircles");i(Z1i,"getIntersectionPoints");i(bft,"circleArea");i(S2,"distance");i(Cft,"circleOverlap");i(rHr,"circleCircleIntersection");i(nHr,"getCenter");i(eyi,"bisect");i(vft,"zeros");i(eHr,"zerosM");i(UW,"dot");i(wft,"norm2");i(xft,"scale");i(E8,"weightedSum");i(iHr,"nelderMead");i(tyi,"wolfeLineSearch");i(ryi,"conjugateGradient");i(aHr,"venn");sHr=1e-10;i(Tft,"distanceFromIntersectArea");i(nyi,"addMissingAreas");i(iyi,"getDistanceMatrices");i(ayi,"constrainedMDSGradient");i(syi,"bestInitialLayout");i(oyi,"constrainedMDSLayout");i(lyi,"greedyLayout");i(VW,"lossFunction");i(oHr,"logRatioLossFunction");i(cyi,"orientateCircles");i(uyi,"disjointCluster");i(kft,"getBoundingBox");i(lHr,"normalizeSolution");i(cHr,"scaleSolution");i(uHr,"toObjectNotation");i(hHr,"fromObjectNotation");i(fHr,"VennDiagram");i(mft,"wrapText");i(yft,"circleMargin");i(dHr,"computeTextCentre");i(hyi,"getOverlappingCircles");i(pHr,"computeTextCentres");i(fyi,"circlePath");i(dyi,"circleFromPath");i(gHr,"intersectionAreaArcs");i(mHr,"arcsToPath");i(tHr,"intersectionAreaPath");i(yHr,"layout")});function gyi(r){let t=new Map;for(let a of r){let s=a.targets.join("|"),l=t.get(s);l?Object.assign(l,a.styles):t.set(s,{...a.styles})}return t}function SB(r){return r.join("|")}function yyi(r,t,a,s,l,h){let f=r?.useDebugLayout??!1,m=a.select("svg").append("g").attr("class","venn-text-nodes"),b=new Map;for(let v of s){let T=SB(v.sets),C=b.get(T);C?C.push(v):b.set(T,[v])}for(let[v,T]of b.entries()){let C=t.get(v);if(!C?.text)continue;let E=C.text.x,S=C.text.y,R=Math.min(...C.circles.map(re=>re.radius)),L=Math.min(...C.circles.map(re=>re.radius-Math.hypot(E-re.x,S-re.y))),_=Number.isFinite(L)?Math.max(0,L):0;_===0&&Number.isFinite(R)&&(_=R*.6);let I=m.append("g").attr("class","venn-text-area").attr("font-size",`${40*l}px`);f&&I.append("circle").attr("class","venn-text-debug-circle").attr("cx",E).attr("cy",S).attr("r",_).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*l).attr("stroke-dasharray",`${6*l} ${4*l}`);let N=Math.max(80*l,_*2*.95),B=Math.max(60*l,_*2*.95),$=(C.data.label&&C.data.label.length>0?Math.min(32*l,_*.25):0)+(T.length<=2?30*l:0),V=E-N/2,Y=S-B/2+$,Q=Math.max(1,Math.ceil(Math.sqrt(T.length))),q=Math.max(1,Math.ceil(T.length/Q)),W=N/Q,H=B/q;for(let[re,Z]of T.entries()){let X=re%Q,te=Math.floor(re/Q),U=V+W*(X+.5),ne=Y+H*(te+.5);f&&I.append("rect").attr("class","venn-text-debug-cell").attr("x",V+W*X).attr("y",Y+H*te).attr("width",W).attr("height",H).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*l).attr("stroke-dasharray",`${4*l} ${3*l}`);let se=W*.9,he=H*.9,le=I.append("foreignObject").attr("class","venn-text-node-fo").attr("width",se).attr("height",he).attr("x",U-se/2).attr("y",ne-he/2).attr("overflow","visible"),pe=h.get(Z.id)?.color,ge=le.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(Z.label??Z.id);pe&&ge.style("color",pe)}}}function byi(r){let t=new Set(r.map(l=>[...l.sets].sort().join("|"))),a=new Map(r.filter(l=>l.sets.length===1&&l.size!==void 0).map(l=>[l.sets[0],l.size])),s=[];for(let l of r){if(l.sets.length<3)continue;let h=[...l.sets].sort();for(let f=0;f<h.length-1;f++)for(let d=f+1;d<h.length;d++){let m=[h[f],h[d]],b=m.join("|");if(!t.has(b)){t.add(b);let v=a.get(m[0]),T=a.get(m[1]),C=v!==void 0&&T!==void 0?Math.min(v,T)/4:2.5;s.push({sets:m,size:C,label:""})}}}return s.length>0?[...r,...s]:r}var myi,vHr,wHr=ae(()=>{"use strict";zo();hp();Xs();x1();bHr();$h();wa();i(gyi,"buildStyleByKey");myi=i((r,t,a,s)=>{let l=s.db,h=l.getConfig?.(),{themeVariables:f,look:d,handDrawnSeed:m}=ri(),b=d==="handDrawn",v=[f.venn1,f.venn2,f.venn3,f.venn4,f.venn5,f.venn6,f.venn7,f.venn8].filter(Boolean),T=l.getDiagramTitle?.(),C=l.getSubsetData(),E=l.getTextData(),S=gyi(l.getStyleData()),R=byi(C),L=h?.width??800,_=h?.height??450,N=L/1600,B=T?48*N:0,O=f.primaryTextColor??f.textColor,P=pu(t);P.attr("viewBox",`0 0 ${L} ${_}`),T&&P.append("text").text(T).attr("class","venn-title").attr("font-size",`${32*N}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*N).style("fill",f.vennTitleTextColor||f.titleColor);let $=mn(document.createElement("div")),V=fHr().width(L).height(_-B);$.datum(R).call(V);let Y=b?en.svg($.select("svg").node()):void 0,Q=yHr(R,{width:L,height:_-B,padding:h?.padding??15}),q=new Map;for(let Z of Q){let X=SB([...Z.data.sets].sort());q.set(X,Z)}E.length>0&&yyi(h,q,$,E,N,S);let W=Dc(f.background||"#f4f4f4");$.selectAll(".venn-circle").each(function(Z,X){let te=mn(this),ne=SB([...Z.sets].sort()),se=S.get(ne),he=v.length>0?v[X%v.length]:void 0,le=se?.fill||he||f.primaryColor;te.classed(`venn-set-${X%8}`,!0);let pe=se?.["fill-opacity"]??.1,ge=se?.stroke||le,we=se?.["stroke-width"]||`${5*N}`;if(b&&Y){let ve=q.get(ne);if(ve&&ve.circles.length>0){let Ie=ve.circles[0],De=Y.circle(Ie.x,Ie.y,Ie.radius*2,{roughness:.7,seed:m,fill:ybe(le,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+X*60,stroke:ge,strokeWidth:parseFloat(String(we))});te.select("path").remove(),te.node()?.insertBefore(De,te.select("text").node())}}else te.select("path").style("fill",le).style("fill-opacity",pe).style("stroke",ge).style("stroke-width",we).style("stroke-opacity",.95);let Ae=se?.color||(W?Br(le,30):$r(le,30));te.select("text").style("font-size",`${48*N}px`).style("fill",Ae)}),b&&Y?$.selectAll(".venn-intersection").each(function(Z){let X=mn(this),U=SB([...Z.sets].sort()),ne=S.get(U),se=ne?.fill;if(se){let he=X.select("path"),le=he.attr("d");if(le){let pe=Y.path(le,{roughness:.7,seed:m,fill:ybe(se,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),ge=he.node();ge?.parentNode?.insertBefore(pe,ge),he.remove()}}else X.select("path").style("fill-opacity",0);X.select("text").style("font-size",`${48*N}px`).style("fill",ne?.color??f.vennSetTextColor??O)}):($.selectAll(".venn-intersection text").style("font-size",`${48*N}px`).style("fill",Z=>{let te=SB([...Z.sets].sort());return S.get(te)?.color??f.vennSetTextColor??O}),$.selectAll(".venn-intersection path").style("fill-opacity",Z=>{let te=SB([...Z.sets].sort());return S.get(te)?.fill?1:0}).style("fill",Z=>{let te=SB([...Z.sets].sort());return S.get(te)?.fill??"transparent"}));let H=P.append("g").attr("transform",`translate(0, ${B})`),re=$.select("svg").node();if(re&&"childNodes"in re)for(let Z of[...re.childNodes])H.node()?.appendChild(Z);wl(P,_,L,h?.useMaxWidth??!0)},"draw");i(SB,"stableSetsKey");i(yyi,"renderTextNodes");i(byi,"ensurePairwiseSubsets");vHr={draw:myi}});var xHr={};is(xHr,{diagram:()=>vyi});var vyi,THr=ae(()=>{"use strict";XWr();JWr();ZWr();wHr();vyi={parser:YWr,db:KWr,renderer:vHr,styles:QWr}});var WW,Eft=ae(()=>{"use strict";pp();Xs();Ma();na();Au();WW=class{constructor(){this.nodes=[];this.levels=new Map;this.outerNodes=[];this.classes=new Map;this.setAccTitle=Os;this.getAccTitle=Vs;this.setDiagramTitle=io;this.getDiagramTitle=Ks;this.getAccDescription=Ws;this.setAccDescription=$s}static{i(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let t=ps,a=ri();return il({...t.treemap,...a.treemap??{}})}addNode(t,a){this.nodes.push(t),this.levels.set(t,a),a===0&&(this.outerNodes.push(t),this.root??=t)}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,a){let s=this.classes.get(t)??{id:t,styles:[],textStyles:[]},l=a.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");l&&l.forEach(h=>{Lre(h)&&(s?.textStyles?s.textStyles.push(h):s.textStyles=[h]),s?.styles?s.styles.push(h):s.styles=[h]}),this.classes.set(t,s)}getClasses(){return this.classes}getStylesForClass(t){return this.classes.get(t)?.styles??[]}clear(){Ds(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}}});function EHr(r){if(!r.length)return[];let t=[],a=[];return r.forEach(s=>{let l={name:s.name,children:s.type==="Leaf"?void 0:[]};for(l.classSelector=s?.classSelector,s?.cssCompiledStyles&&(l.cssCompiledStyles=s.cssCompiledStyles),s.type==="Leaf"&&s.value!==void 0&&(l.value=s.value);a.length>0&&a[a.length-1].level>=s.level;)a.pop();if(a.length===0)t.push(l);else{let h=a[a.length-1].node;h.children?h.children.push(l):h.children=[l]}s.type!=="Leaf"&&a.push({node:l,level:s.level})}),t}var SHr=ae(()=>{"use strict";i(EHr,"buildHierarchy")});var kyi,Cyi,Sft,AHr=ae(()=>{"use strict";w1();Yn();Gb();SHr();Eft();kyi=i((r,t)=>{Eh(r,t);let a=[];for(let h of r.TreemapRows??[])h.$type==="ClassDefStatement"&&t.addClass(h.className??"",h.styleText??"");for(let h of r.TreemapRows??[]){let f=h.item;if(!f)continue;let d=h.indent?parseInt(h.indent):0,m=Cyi(f),b=f.classSelector?t.getStylesForClass(f.classSelector):[],v=b.length>0?b:void 0,T={level:d,name:m,type:f.$type,value:f.value,classSelector:f.classSelector,cssCompiledStyles:v};a.push(T)}let s=EHr(a),l=i((h,f)=>{for(let d of h)t.addNode(d,f),d.children&&d.children.length>0&&l(d.children,f+1)},"addNodesRecursively");l(s,0)},"populate"),Cyi=i(r=>r.name?String(r.name):"","getItemName"),Sft={parser:{yy:void 0},parse:i(async r=>{try{let a=await Gd("treemap",r);Pe.debug("Treemap AST:",a);let s=Sft.parser?.yy;if(!(s instanceof WW))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");kyi(a,s)}catch(t){throw Pe.error("Error parsing treemap:",t),t}},"parse")}});var Eyi,HW,fse,Syi,Ayi,RHr,LHr=ae(()=>{"use strict";x1();BS();$h();zo();na();Xs();Yn();Eyi=10,HW=10,fse=25,Syi=i((r,t,a,s)=>{let l=s.db,h=l.getConfig(),f=h.padding??Eyi,d=l.getDiagramTitle(),m=l.getRoot(),{themeVariables:b}=ri();if(!m)return;let v=d?30:0,T=pu(t),C=h.nodeWidth?h.nodeWidth*HW:960,E=h.nodeHeight?h.nodeHeight*HW:500,S=C,R=E+v;T.attr("viewBox",`0 0 ${S} ${R}`),wl(T,R,S,h.useMaxWidth);let L;try{let le=h.valueFormat||",";if(le==="$0,0")L=i(pe=>"$"+tS(",")(pe),"valueFormat");else if(le.startsWith("$")&&le.includes(",")){let pe=/\.\d+/.exec(le),ge=pe?pe[0]:"";L=i(we=>"$"+tS(","+ge)(we),"valueFormat")}else if(le.startsWith("$")){let pe=le.substring(1);L=i(ge=>"$"+tS(pe||"")(ge),"valueFormat")}else L=tS(le)}catch(le){Pe.error("Error creating format function:",le),L=tS(",")}let _=Kw().range(["transparent",b.cScale0,b.cScale1,b.cScale2,b.cScale3,b.cScale4,b.cScale5,b.cScale6,b.cScale7,b.cScale8,b.cScale9,b.cScale10,b.cScale11]),I=Kw().range(["transparent",b.cScalePeer0,b.cScalePeer1,b.cScalePeer2,b.cScalePeer3,b.cScalePeer4,b.cScalePeer5,b.cScalePeer6,b.cScalePeer7,b.cScalePeer8,b.cScalePeer9,b.cScalePeer10,b.cScalePeer11]),N=Kw().range([b.cScaleLabel0,b.cScaleLabel1,b.cScaleLabel2,b.cScaleLabel3,b.cScaleLabel4,b.cScaleLabel5,b.cScaleLabel6,b.cScaleLabel7,b.cScaleLabel8,b.cScaleLabel9,b.cScaleLabel10,b.cScaleLabel11]);d&&T.append("text").attr("x",S/2).attr("y",v/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);let B=T.append("g").attr("transform",`translate(0, ${v})`).attr("class","treemapContainer"),O=zz(m).sum(le=>le.value??0).sort((le,pe)=>(pe.value??0)-(le.value??0)),$=t2e().size([C,E]).paddingTop(le=>le.children&&le.children.length>0?fse+HW:0).paddingInner(f).paddingLeft(le=>le.children&&le.children.length>0?HW:0).paddingRight(le=>le.children&&le.children.length>0?HW:0).paddingBottom(le=>le.children&&le.children.length>0?HW:0).round(!0)(O),V=$.descendants().filter(le=>le.children&&le.children.length>0),Y=B.selectAll(".treemapSection").data(V).enter().append("g").attr("class","treemapSection").attr("transform",le=>`translate(${le.x0},${le.y0})`);Y.append("rect").attr("width",le=>le.x1-le.x0).attr("height",fse).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",le=>le.depth===0?"display: none;":""),Y.append("clipPath").attr("id",(le,pe)=>`clip-section-${t}-${pe}`).append("rect").attr("width",le=>Math.max(0,le.x1-le.x0-12)).attr("height",fse),Y.append("rect").attr("width",le=>le.x1-le.x0).attr("height",le=>le.y1-le.y0).attr("class",(le,pe)=>`treemapSection section${pe}`).attr("fill",le=>_(le.data.name)).attr("fill-opacity",.6).attr("stroke",le=>I(le.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",le=>{if(le.depth===0)return"display: none;";let pe=Gr({cssCompiledStyles:le.data.cssCompiledStyles});return pe.nodeStyles+";"+pe.borderStyles.join(";")}),Y.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",fse/2).attr("dominant-baseline","middle").text(le=>le.depth===0?"":le.data.name).attr("font-weight","bold").attr("clip-path",(le,pe)=>`url(#clip-section-${t}-${pe})`).attr("style",le=>{if(le.depth===0)return"display: none;";let pe="dominant-baseline: middle; font-size: 12px; fill:"+N(le.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",ge=Gr({cssCompiledStyles:le.data.cssCompiledStyles});return pe+ge.labelStyles.replace("color:","fill:")}).each(function(le){if(le.depth===0)return;let pe=mn(this),ge=le.data.name;pe.text(ge);let we=le.x1-le.x0,Ae=6,ve;h.showValues!==!1&&le.value?ve=we-10-30-10-Ae:ve=we-Ae-6;let De=Math.max(15,ve),Be=pe.node();if(Be.getComputedTextLength()>De){let vt=ge;for(;vt.length>0;){if(vt=ge.substring(0,vt.length-1),vt.length===0){pe.text("..."),Be.getComputedTextLength()>De&&pe.text("");break}if(pe.text(vt+"..."),Be.getComputedTextLength()<=De)break}}}),h.showValues!==!1&&Y.append("text").attr("class","treemapSectionValue").attr("x",le=>le.x1-le.x0-10).attr("y",fse/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(le=>le.value?L(le.value):"").attr("font-style","italic").attr("style",le=>{if(le.depth===0)return"display: none;";let pe="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+N(le.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",ge=Gr({cssCompiledStyles:le.data.cssCompiledStyles});return pe+ge.labelStyles.replace("color:","fill:")});let Q=$.leaves(),q=Q.length>20,W=q?16:38,H=q?14:28,re=q?4:8,Z=q?4:6,X=q?2:4,te=q?8:10,U=q?1:2,ne=B.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(le,pe)=>`treemapNode treemapLeafGroup leaf${pe}${le.data.classSelector?` ${le.data.classSelector}`:""}x`).attr("transform",le=>`translate(${le.x0},${le.y0})`);ne.append("rect").attr("width",le=>le.x1-le.x0).attr("height",le=>le.y1-le.y0).attr("class","treemapLeaf").attr("fill",le=>le.parent?_(le.parent.data.name):_(le.data.name)).attr("style",le=>Gr({cssCompiledStyles:le.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",le=>le.parent?_(le.parent.data.name):_(le.data.name)).attr("stroke-width",3),ne.append("clipPath").attr("id",(le,pe)=>`clip-${t}-${pe}`).append("rect").attr("width",le=>Math.max(0,le.x1-le.x0-4)).attr("height",le=>Math.max(0,le.y1-le.y0-4)),ne.append("text").attr("class","treemapLabel").attr("x",le=>(le.x1-le.x0)/2).attr("y",le=>(le.y1-le.y0)/2).attr("style",le=>{let pe=`text-anchor: middle; dominant-baseline: middle; font-size: ${W}px;fill:`+N(le.data.name)+";",ge=Gr({cssCompiledStyles:le.data.cssCompiledStyles});return pe+ge.labelStyles.replace("color:","fill:")}).attr("clip-path",(le,pe)=>`url(#clip-${t}-${pe})`).text(le=>le.data.name).each(function(le){let pe=mn(this),ge=le.x1-le.x0,we=le.y1-le.y0,Ae=pe.node(),ve=ge-2*X,Ie=we-2*X;if(ve<te||Ie<te){pe.style("display","none");return}let De=parseInt(pe.style("font-size"),10),Be=.6;for(;Ae.getComputedTextLength()>ve&&De>re;)De--,pe.style("font-size",`${De}px`);let Fe=Math.max(Z,Math.min(H,Math.round(De*Be))),ze=De+U+Fe;for(;ze>Ie&&De>re&&(De--,Fe=Math.max(Z,Math.min(H,Math.round(De*Be))),!(Fe<Z&&De===re));)pe.style("font-size",`${De}px`),ze=De+U+Fe,Fe<=Z&&ze>Ie;pe.style("font-size",`${De}px`),q?(De<re||Ie<re)&&pe.style("display","none"):(Ae.getComputedTextLength()>ve||De<re||Ie<De)&&pe.style("display","none")}),h.showValues!==!1&&ne.append("text").attr("class","treemapValue").attr("x",pe=>(pe.x1-pe.x0)/2).attr("y",function(pe){return(pe.y1-pe.y0)/2}).attr("style",pe=>{let ge=`text-anchor: middle; dominant-baseline: hanging; font-size: ${H}px;fill:`+N(pe.data.name)+";",we=Gr({cssCompiledStyles:pe.data.cssCompiledStyles});return ge+we.labelStyles.replace("color:","fill:")}).attr("clip-path",(pe,ge)=>`url(#clip-${t}-${ge})`).text(pe=>pe.value?L(pe.value):"").each(function(pe){let ge=mn(this),we=this.parentNode;if(!we){ge.style("display","none");return}let Ae=mn(we).select(".treemapLabel");if(Ae.empty()||Ae.style("display")==="none"){ge.style("display","none");return}let ve=parseFloat(Ae.style("font-size")),De=Math.max(Z,Math.min(H,Math.round(ve*.6)));ge.style("font-size",`${De}px`);let Fe=(pe.y1-pe.y0)/2+ve/2+U;ge.attr("y",Fe);let ze=pe.x1-pe.x0,Ft=pe.y1-pe.y0-4,pr=ze-2*X;ge.node().getComputedTextLength()>pr||Fe+De>Ft||De<Z?ge.style("display","none"):ge.style("display",null)});let he=h.diagramPadding??8;Sm(T,he,"flowchart",h?.useMaxWidth||!1)},"draw"),Ayi=i(function(r,t){return t.db.getClasses()},"getClasses"),RHr={draw:Syi,getClasses:Ayi}});var Ryi,Lyi,_Hr,DHr=ae(()=>{"use strict";Ma();jE();Xs();Ryi={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Lyi=i(({treemap:r}={})=>{let t=hm(),a=ri(),s=il(t,a.themeVariables),l=il(Ryi,r),h=l.titleColor??s.titleColor,f=l.labelColor??s.textColor,d=l.valueColor??s.textColor;return`
|
|
.treemapNode.section {
|
|
stroke: ${l.sectionStrokeColor};
|
|
stroke-width: ${l.sectionStrokeWidth};
|
|
fill: ${l.sectionFillColor};
|
|
}
|
|
.treemapNode.leaf {
|
|
stroke: ${l.leafStrokeColor};
|
|
stroke-width: ${l.leafStrokeWidth};
|
|
fill: ${l.leafFillColor};
|
|
}
|
|
.treemapLabel {
|
|
fill: ${f};
|
|
font-size: ${l.labelFontSize};
|
|
}
|
|
.treemapValue {
|
|
fill: ${d};
|
|
font-size: ${l.valueFontSize};
|
|
}
|
|
.treemapTitle {
|
|
fill: ${h};
|
|
font-size: ${l.titleFontSize};
|
|
}
|
|
`},"getStyles"),_Hr=Lyi});var IHr={};is(IHr,{diagram:()=>_yi});var _yi,MHr=ae(()=>{"use strict";Eft();AHr();LHr();DHr();_yi={parser:Sft,get db(){return new WW},renderer:RHr,styles:_Hr}});function PHr(r,t){let a=r.lexer.tokenize(t);if(a.errors.length>0){let l=a.errors[0],h=AB(l.offset)?l.offset:t.length,f=h+(AB(l.length)?l.length:0);throw new Error(`Error lexing ${r.diagramType} diagram: ${l.message} at line ${l.line??1}, column ${l.column??1} [${h},${f})`)}r.parser.input=a.tokens;let s=r.entry();if(r.parser.errors.length>0)throw new Error(`Error parsing ${r.diagramType} diagram: ${r.parser.errors[0].message}`);r.visit(s)}var AB,BHr=ae(()=>{"use strict";AB=i(r=>r!==void 0&&r>=0,"isKnownLocation");i(PHr,"runChevrotainParse")});var lf,FHr,yEe=ae(()=>{"use strict";lf={SOLID_ARROW:0,BACK_ARROW:1,LINE_SOLID:2,CIRCLE_ARROW:3,CROSS_ARROW:4,CIRCLE_ARROW_REVERSED:5,CROSS_ARROW_REVERSED:6},FHr="LR"});var Myi,Aft,Nyi,Ic,Oyi,Pyi,Byi,Fyi,$yi,Gyi,jyi,zyi,Uyi,Vyi,Wyi,Hyi,qyi,Yyi,Xyi,Kyi,Jyi,GHr,RB,Qyi,$Hr,Zyi,ebi,tbi,rbi,nbi,ibi,dse,abi,LB,bEe=ae(()=>{"use strict";Au();yEe();pp();ma();nl();Myi=ps.usecase,Aft=i(()=>({actors:new Map,useCases:new Map,systemBoundaries:new Map,relationships:[],notes:new Map,jsonNodes:new Map,classDefs:new Map,symbols:new Map,direction:FHr,relationshipCounter:0,noteCounter:0,accTitle:"",accDescription:"",ast:void 0,config:structuredClone(Myi)}),"createModel"),Nyi=i(r=>{if(!(r.actors instanceof Map)||!(r.useCases instanceof Map)||!(r.systemBoundaries instanceof Map)||!Array.isArray(r.relationships)||!(r.notes instanceof Map)||!(r.jsonNodes instanceof Map)||!(r.classDefs instanceof Map)||!(r.symbols instanceof Map)||!["TB","TD","BT","RL","LR"].includes(r.direction)||!Number.isSafeInteger(r.relationshipCounter)||r.relationshipCounter<0||!Number.isSafeInteger(r.noteCounter)||r.noteCounter<0||typeof r.accTitle!="string"||typeof r.accDescription!="string"||!r.config)throw new Error("Cannot commit an incomplete usecase model")},"assertCompleteModel"),Ic=Aft(),Oyi=i(()=>structuredClone(Ic.config),"getConfig"),Pyi=i(()=>Ic.ast,"getAST"),Byi=i(r=>{let t=structuredClone(r);Nyi(t);let a=Vs(),s=Ws();try{Os(t.accTitle),$s(t.accDescription),Ic=t}catch(l){throw Os(a),$s(s),l}},"commit"),Fyi=i(()=>{Ic=Aft(),Ds()},"clear"),$yi=i(()=>Ic.actors,"getActors"),Gyi=i(r=>Ic.actors.get(r),"getActor"),jyi=i(()=>Ic.useCases,"getUseCases"),zyi=i(r=>Ic.useCases.get(r),"getUseCase"),Uyi=i(()=>Ic.systemBoundaries,"getSystemBoundaries"),Vyi=i(r=>Ic.systemBoundaries.get(r),"getSystemBoundary"),Wyi=i(()=>Ic.relationships,"getRelationships"),Hyi=i(()=>Ic.notes,"getNotes"),qyi=i(r=>Ic.notes.get(r),"getNote"),Yyi=i(()=>Ic.jsonNodes,"getJsonNodes"),Xyi=i(r=>Ic.jsonNodes.get(r),"getJsonNode"),Kyi=i(()=>Ic.classDefs,"getClassDefs"),Jyi=i(r=>Ic.classDefs.get(r),"getClassDef"),GHr=i(()=>Ic.direction,"getDirection"),RB=i(r=>{let t=new Map;for(let a of["default",...r]){let s=Ic.classDefs.get(a);if(s)for(let l of s.styles){let h=l.trim(),f=h.indexOf(":"),d=(f===-1?h:h.slice(0,f)).trim();d&&t.set(d,h)}}return[...t.values()]},"getCompiledStyles"),Qyi=i(r=>r.replaceAll("~","~0").replaceAll("/","~1"),"escapeJsonPointerPart"),$Hr=i(r=>typeof r=="string"?r:r===null?"null":String(r),"displayJsonScalar"),Zyi=i((r,t,a=s=>s)=>{let s=[],l=i((f,d,m)=>{s.push({key:a(f),accessibleKey:a(d),value:a(m)})},"append"),h=i((f,d,m)=>{if(Array.isArray(f)){if(f.length===0){l(d,d,"[]");return}if(f.every(v=>v===null||["string","number","boolean"].includes(typeof v))){for(let[v,T]of f.entries())l(v===0?d:"",d,$Hr(T));return}for(let[v,T]of f.entries())h(T,`${d}[${v}]`,`${m}/${v}`);return}if(f!==null&&typeof f=="object"){let b=f,v=t[m]??Object.keys(b);if(v.length===0){l(d,d,"{}");return}for(let T of v){let C=d?`${d}.${T}`:T;h(b[T],C,`${m}/${Qyi(T)}`)}return}l(d,d,$Hr(f))},"visit");return h(r,"",""),s},"flattenJsonRows"),ebi=i(r=>{switch(r.type){case"hollow":return"usecaseActorHollow";case"awesome":return"usecaseActorAwesome";case"icon":return"usecaseActorIcon";case"normal":return"usecaseActor"}},"actorShape"),tbi=i(r=>r.shape==="ellipse"?r.business?"usecaseBusiness":"usecaseEllipse":r.shape,"useCaseShape"),rbi=i(r=>{switch(r){case lf.SOLID_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point"};case lf.BACK_ARROW:return{arrowTypeStart:"arrow_point",arrowTypeEnd:"none"};case lf.CIRCLE_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_circle"};case lf.CROSS_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_cross"};case lf.CIRCLE_ARROW_REVERSED:return{arrowTypeStart:"arrow_circle",arrowTypeEnd:"none"};case lf.CROSS_ARROW_REVERSED:return{arrowTypeStart:"arrow_cross",arrowTypeEnd:"none"};case lf.LINE_SOLID:return{arrowTypeStart:"none",arrowTypeEnd:"none"}}},"associationMarkers"),nbi=i(r=>{switch(r.type){case"include":case"extend":return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point",pattern:"dotted",label:`\xAB${r.type}\xBB`,labelType:"text"};case"generalization":return{arrowTypeStart:"none",arrowTypeEnd:"extension",pattern:"solid"};case"association":return{...rbi(r.arrowType),pattern:"solid",...r.label?{label:r.label}:{},...r.labelType?{labelType:r.labelType}:{}}}},"relationshipVisuals"),ibi=i(r=>r.animate||r.animation?[`edge-animation-${r.animation??"fast"}`]:[],"animationClasses"),dse=i((...r)=>r.filter(t=>!!t).join(" "),"classNames"),abi=i(()=>{let r=er(),t={...Ic.config,...r.usecase},a=i(m=>Ns(m,r),"sanitize"),s=i(m=>a(Ic.actors.get(m)?.label??Ic.useCases.get(m)?.label??Ic.jsonNodes.get(m)?.id??Ic.notes.get(m)?.label??m),"endpointLabel"),l=[],h=[],f=0,d=0;for(let m of Ic.actors.values())l.push({id:m.id,label:a(m.label),labelType:m.labelType,shape:ebi(m),isGroup:!1,padding:10,look:r.look,colorIndex:f++,cssClasses:dse("default","usecase-actor",`usecase-actor-${m.type}`,m.business&&"usecase-business",...m.classes),cssStyles:[...m.styles],cssCompiledStyles:RB(m.classes),actorType:m.type,business:m.business,...m.icon?{icon:m.icon}:{},...m.stereotype?{stereotype:a(m.stereotype)}:{},...m.parentId?{parentId:m.parentId}:{}});for(let m of Ic.useCases.values())l.push({id:m.id,label:a(m.label),labelType:m.labelType,shape:tbi(m),isGroup:!1,padding:m.shape==="ellipse"?20:10,look:r.look,colorIndex:f++,cssClasses:dse("default","usecase-element",`usecase-${m.shape}`,m.business&&"usecase-business",...m.classes),cssStyles:[...m.styles],cssCompiledStyles:RB(m.classes),business:m.business,...m.stereotype?{stereotype:a(m.stereotype)}:{},...m.parentId?{parentId:m.parentId}:{}});for(let m of Ic.notes.values())l.push({id:m.id,label:a(m.label),labelType:m.labelType,shape:"note",isGroup:!1,padding:10,look:r.look,cssClasses:"default usecase-note",cssStyles:[],cssCompiledStyles:RB([]),noteTarget:m.target,noteTargetLabel:a(Ic.actors.get(m.target)?.label??Ic.useCases.get(m.target)?.label??Ic.jsonNodes.get(m.target)?.id??m.target)});for(let m of Ic.jsonNodes.values())l.push({id:m.id,label:a(m.id),labelType:"text",shape:"usecaseJsonTable",isGroup:!1,padding:10,look:r.look,cssClasses:dse("default","usecase-json-table",...m.classes),cssStyles:[...m.styles],cssCompiledStyles:RB(m.classes),jsonRows:Zyi(m.value,m.propertyOrder,a)});for(let m of Ic.systemBoundaries.values())l.push({id:m.id,label:a(m.label),labelType:m.labelType,shape:"usecaseSystemBoundary",isGroup:!0,padding:20,look:r.look,colorIndex:d++,cssClasses:dse("default","system-boundary",`system-boundary-${m.type}`,...m.classes),cssStyles:[...m.styles],cssCompiledStyles:RB(m.classes),boundaryType:m.type});for(let m of Ic.relationships){let{label:b,...v}=nbi(m);h.push({id:m.id,start:m.source,end:m.target,source:m.source,target:m.target,sourceLabel:s(m.source),targetLabel:s(m.target),type:"edge",relationshipType:m.type,internal:!1,...v,...b!==void 0?{label:a(b)}:{},labelpos:"c",classes:dse("default","relationship",`relationship-${m.type}`,...m.classes,...ibi(m)),style:[...m.styles],cssCompiledStyles:RB(m.classes),animate:m.animate,...m.animation?{animation:m.animation}:{},look:r.look,thickness:"normal",minlen:m.minlen,isUserDefinedId:m.explicitId})}for(let m of Ic.notes.values())h.push({id:`${m.id}-edge`,start:m.id,end:m.target,source:m.id,target:m.target,type:"edge",relationshipType:"note",sourceLabel:s(m.id),targetLabel:s(m.target),internal:!0,pattern:"dotted",arrowTypeStart:"none",arrowTypeEnd:"none",labelpos:"c",classes:"default relationship relationship-note",style:[],cssCompiledStyles:RB([]),animate:!1,look:r.look,thickness:"normal",minlen:1,isUserDefinedId:!1});for(let m of l)m.wrappingWidth??=t.wrappingWidth,!m.isGroup&&!m.shape.startsWith("usecaseActor")&&(m.minWidth??=t.minNodeWidth),(m.shape==="usecaseEllipse"||m.shape==="usecaseBusiness")&&(m.spreadPorts=!0);return{nodes:l,edges:h,config:r,type:"usecase",layoutAlgorithm:"dagre",direction:GHr(),nodeSpacing:t.nodeSpacing,rankSpacing:t.rankSpacing,actorFontSize:t.actorFontSize,actorFontFamily:t.actorFontFamily,actorFontWeight:t.actorFontWeight,usecaseFontSize:t.usecaseFontSize,usecaseFontFamily:t.usecaseFontFamily,usecaseFontWeight:t.usecaseFontWeight,diagramPadding:t.diagramPadding,useMaxWidth:t.useMaxWidth,markers:["point","circle","cross","extension"]}},"getData"),LB={getConfig:Oyi,createModel:Aft,commit:Byi,getAST:Pyi,clear:Fyi,setDiagramTitle:io,getDiagramTitle:Ks,setAccTitle:Os,getAccTitle:Vs,setAccDescription:$s,getAccDescription:Ws,getActors:$yi,getActor:Gyi,getUseCases:jyi,getUseCase:zyi,getSystemBoundaries:Uyi,getSystemBoundary:Vyi,getRelationships:Wyi,getNotes:Hyi,getNote:qyi,getJsonNodes:Yyi,getJsonNode:Xyi,getClassDefs:Kyi,getClassDef:Jyi,getDirection:GHr,getData:abi}});var Rft=ae(()=>{"use strict"});function qW(r){console&&console.error&&console.error(`Error: ${r}`)}function pse(r){console&&console.warn&&console.warn(`Warning: ${r}`)}var jHr=ae(()=>{"use strict";i(qW,"PRINT_ERROR");i(pse,"PRINT_WARNING")});function gse(r){let t=new Date().getTime(),a=r();return{time:new Date().getTime()-t,value:a}}var zHr=ae(()=>{"use strict";i(gse,"timer")});function mse(r){function t(){}i(t,"FakeConstructor"),t.prototype=r;let a=new t;function s(){return typeof a.bar}return i(s,"fakeAccess"),s(),s(),r;(0,eval)(r)}var UHr=ae(()=>{"use strict";i(mse,"toFastProperties")});var YW=ae(()=>{"use strict";jHr();zHr();UHr()});function sbi(r){return obi(r)?r.LABEL:r.name}function obi(r){return typeof r.LABEL=="string"&&r.LABEL!==""}function vEe(r){return r.map(XW)}function XW(r){function t(a){return a.map(XW)}if(i(t,"convertDefinition"),r instanceof cf){let a={type:"NonTerminal",name:r.nonTerminalName,idx:r.idx};return typeof r.label=="string"&&(a.label=r.label),a}else{if(r instanceof uf)return{type:"Alternative",definition:t(r.definition)};if(r instanceof Rf)return{type:"Option",idx:r.idx,definition:t(r.definition)};if(r instanceof og)return{type:"RepetitionMandatory",idx:r.idx,definition:t(r.definition)};if(r instanceof lg)return{type:"RepetitionMandatoryWithSeparator",idx:r.idx,separator:XW(new Ec({terminalType:r.separator})),definition:t(r.definition)};if(r instanceof Sp)return{type:"RepetitionWithSeparator",idx:r.idx,separator:XW(new Ec({terminalType:r.separator})),definition:t(r.definition)};if(r instanceof Wu)return{type:"Repetition",idx:r.idx,definition:t(r.definition)};if(r instanceof Ap)return{type:"Alternation",idx:r.idx,definition:t(r.definition)};if(r instanceof Ec){let a={type:"Terminal",name:r.terminalType.name,label:sbi(r.terminalType),idx:r.idx};typeof r.label=="string"&&(a.terminalLabel=r.label);let s=r.terminalType.PATTERN;return r.terminalType.PATTERN&&(a.pattern=s instanceof RegExp?s.source:s),a}else{if(r instanceof Ub)return{type:"Rule",name:r.name,orgText:r.orgText,definition:t(r.definition)};throw Error("non exhaustive match")}}}function r5(r){return Object.fromEntries(Object.entries(r).filter(([,t])=>t!==void 0))}var px,cf,Ub,uf,Rf,og,lg,Wu,Sp,Ap,Ec,wEe=ae(()=>{"use strict";i(sbi,"tokenLabel");i(obi,"hasTokenLabel");px=class{static{i(this,"AbstractProduction")}get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){this._definition=t}accept(t){t.visit(this),this.definition.forEach(a=>{a.accept(t)})}},cf=class extends px{static{i(this,"NonTerminal")}constructor(t){super([]),this.idx=1,Object.assign(this,r5(t))}set definition(t){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(t){t.visit(this)}},Ub=class extends px{static{i(this,"Rule")}constructor(t){super(t.definition),this.orgText="",Object.assign(this,r5(t))}},uf=class extends px{static{i(this,"Alternative")}constructor(t){super(t.definition),this.ignoreAmbiguities=!1,Object.assign(this,r5(t))}},Rf=class extends px{static{i(this,"Option")}constructor(t){super(t.definition),this.idx=1,Object.assign(this,r5(t))}},og=class extends px{static{i(this,"RepetitionMandatory")}constructor(t){super(t.definition),this.idx=1,Object.assign(this,r5(t))}},lg=class extends px{static{i(this,"RepetitionMandatoryWithSeparator")}constructor(t){super(t.definition),this.idx=1,Object.assign(this,r5(t))}},Wu=class extends px{static{i(this,"Repetition")}constructor(t){super(t.definition),this.idx=1,Object.assign(this,r5(t))}},Sp=class extends px{static{i(this,"RepetitionWithSeparator")}constructor(t){super(t.definition),this.idx=1,Object.assign(this,r5(t))}},Ap=class extends px{static{i(this,"Alternation")}get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){super(t.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,r5(t))}},Ec=class{static{i(this,"Terminal")}constructor(t){this.idx=1,Object.assign(this,r5(t))}accept(t){t.visit(this)}};i(vEe,"serializeGrammar");i(XW,"serializeProduction");i(r5,"pickOnlyDefined")});var Vb,VHr=ae(()=>{"use strict";wEe();Vb=class{static{i(this,"GAstVisitor")}visit(t){let a=t;switch(a.constructor){case cf:return this.visitNonTerminal(a);case uf:return this.visitAlternative(a);case Rf:return this.visitOption(a);case og:return this.visitRepetitionMandatory(a);case lg:return this.visitRepetitionMandatoryWithSeparator(a);case Sp:return this.visitRepetitionWithSeparator(a);case Wu:return this.visitRepetition(a);case Ap:return this.visitAlternation(a);case Ec:return this.visitTerminal(a);case Ub:return this.visitRule(a);default:throw Error("non exhaustive match")}}visitNonTerminal(t){}visitAlternative(t){}visitOption(t){}visitRepetition(t){}visitRepetitionMandatory(t){}visitRepetitionMandatoryWithSeparator(t){}visitRepetitionWithSeparator(t){}visitAlternation(t){}visitTerminal(t){}visitRule(t){}}});function Lft(r){return r instanceof uf||r instanceof Rf||r instanceof Wu||r instanceof og||r instanceof lg||r instanceof Sp||r instanceof Ec||r instanceof Ub}function _B(r,t=[]){return r instanceof Rf||r instanceof Wu||r instanceof Sp?!0:r instanceof Ap?r.definition.some(s=>_B(s,t)):r instanceof cf&&t.includes(r)?!1:r instanceof px?(r instanceof cf&&t.push(r),r.definition.every(s=>_B(s,t))):!1}function _ft(r){return r instanceof Ap}function A2(r){if(r instanceof cf)return"SUBRULE";if(r instanceof Rf)return"OPTION";if(r instanceof Ap)return"OR";if(r instanceof og)return"AT_LEAST_ONE";if(r instanceof lg)return"AT_LEAST_ONE_SEP";if(r instanceof Sp)return"MANY_SEP";if(r instanceof Wu)return"MANY";if(r instanceof Ec)return"CONSUME";throw Error("non exhaustive match")}var WHr=ae(()=>{"use strict";wEe();i(Lft,"isSequenceProd");i(_B,"isOptionalProd");i(_ft,"isBranchingProd");i(A2,"getProductionDslName")});var Wb=ae(()=>{"use strict";wEe();VHr();WHr()});function HHr(r,t,a){return[new Rf({definition:[new Ec({terminalType:r.separator})].concat(r.definition)})].concat(t,a)}var S8,xEe=ae(()=>{"use strict";Wb();S8=class{static{i(this,"RestWalker")}walk(t,a=[]){t.definition.forEach((s,l)=>{let h=t.definition.slice(l+1);if(s instanceof cf)this.walkProdRef(s,h,a);else if(s instanceof Ec)this.walkTerminal(s,h,a);else if(s instanceof uf)this.walkFlat(s,h,a);else if(s instanceof Rf)this.walkOption(s,h,a);else if(s instanceof og)this.walkAtLeastOne(s,h,a);else if(s instanceof lg)this.walkAtLeastOneSep(s,h,a);else if(s instanceof Sp)this.walkManySep(s,h,a);else if(s instanceof Wu)this.walkMany(s,h,a);else if(s instanceof Ap)this.walkOr(s,h,a);else throw Error("non exhaustive match")})}walkTerminal(t,a,s){}walkProdRef(t,a,s){}walkFlat(t,a,s){let l=a.concat(s);this.walk(t,l)}walkOption(t,a,s){let l=a.concat(s);this.walk(t,l)}walkAtLeastOne(t,a,s){let l=[new Rf({definition:t.definition})].concat(a,s);this.walk(t,l)}walkAtLeastOneSep(t,a,s){let l=HHr(t,a,s);this.walk(t,l)}walkMany(t,a,s){let l=[new Rf({definition:t.definition})].concat(a,s);this.walk(t,l)}walkManySep(t,a,s){let l=HHr(t,a,s);this.walk(t,l)}walkOr(t,a,s){let l=a.concat(s);t.definition.forEach(h=>{let f=new uf({definition:[h]});this.walk(f,l)})}};i(HHr,"restForRepetitionWithSeparator")});function DB(r){if(r instanceof cf)return DB(r.referencedRule);if(r instanceof Ec)return ubi(r);if(Lft(r))return lbi(r);if(_ft(r))return cbi(r);throw Error("non exhaustive match")}function lbi(r){let t=[],a=r.definition,s=0,l=a.length>s,h,f=!0;for(;l&&f;)h=a[s],f=_B(h),t=t.concat(DB(h)),s=s+1,l=a.length>s;return[...new Set(t)]}function cbi(r){let t=r.definition.map(a=>DB(a));return[...new Set(t.flat())]}function ubi(r){return[r.terminalType]}var Dft=ae(()=>{"use strict";Wb();i(DB,"first");i(lbi,"firstForSequence");i(cbi,"firstForBranching");i(ubi,"firstForTerminal")});var TEe,Ift=ae(()=>{"use strict";TEe="_~IN~_"});function qHr(r){let t={};return r.forEach(a=>{let s=new Mft(a).startWalking();Object.assign(t,s)}),t}function hbi(r,t){return r.name+t+TEe}var Mft,YHr=ae(()=>{"use strict";xEe();Dft();Ift();Wb();Mft=class extends S8{static{i(this,"ResyncFollowsWalker")}constructor(t){super(),this.topProd=t,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(t,a,s){}walkProdRef(t,a,s){let l=hbi(t.referencedRule,t.idx)+this.topProd.name,h=a.concat(s),f=new uf({definition:h}),d=DB(f);this.follows[l]=d}};i(qHr,"computeAllProdsFollows");i(hbi,"buildBetweenProdsFollowPrefix")});function wo(r){return r.charCodeAt(0)}function kEe(r,t){Array.isArray(r)?r.forEach(function(a){t.push(a)}):t.push(r)}function KW(r,t){if(r[t]===!0)throw"duplicate flag "+t;let a=r[t];r[t]=!0}function IB(r){if(r===void 0)throw Error("Internal Error - Should never get here!");return!0}function yse(){throw Error("Internal Error - Should never get here!")}function Nft(r){return r.type==="Character"}var Oft=ae(()=>{"use strict";i(wo,"cc");i(kEe,"insertToSet");i(KW,"addFlag");i(IB,"ASSERT_EXISTS");i(yse,"ASSERT_NEVER_REACH_HERE");i(Nft,"isCharacter")});var bse,vse,Pft,XHr=ae(()=>{"use strict";Oft();bse=[];for(let r=wo("0");r<=wo("9");r++)bse.push(r);vse=[wo("_")].concat(bse);for(let r=wo("a");r<=wo("z");r++)vse.push(r);for(let r=wo("A");r<=wo("Z");r++)vse.push(r);Pft=[wo(" "),wo("\f"),wo(`
|
|
`),wo("\r"),wo(" "),wo("\v"),wo(" "),wo("\xA0"),wo("\u1680"),wo("\u2000"),wo("\u2001"),wo("\u2002"),wo("\u2003"),wo("\u2004"),wo("\u2005"),wo("\u2006"),wo("\u2007"),wo("\u2008"),wo("\u2009"),wo("\u200A"),wo("\u2028"),wo("\u2029"),wo("\u202F"),wo("\u205F"),wo("\u3000"),wo("\uFEFF")]});var fbi,CEe,dbi,wse,KHr=ae(()=>{"use strict";Oft();XHr();fbi=/[0-9a-fA-F]/,CEe=/[0-9]/,dbi=/[1-9]/,wse=class{static{i(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(t){this.idx=t.idx,this.input=t.input,this.groupIdx=t.groupIdx}pattern(t){this.idx=0,this.input=t,this.groupIdx=0,this.consumeChar("/");let a=this.disjunction();this.consumeChar("/");let s={type:"Flags",loc:{begin:this.idx,end:t.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":KW(s,"global");break;case"i":KW(s,"ignoreCase");break;case"m":KW(s,"multiLine");break;case"u":KW(s,"unicode");break;case"y":KW(s,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:s,value:a,loc:this.loc(0)}}disjunction(){let t=[],a=this.idx;for(t.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),t.push(this.alternative());return{type:"Disjunction",value:t,loc:this.loc(a)}}alternative(){let t=[],a=this.idx;for(;this.isTerm();)t.push(this.term());return{type:"Alternative",value:t,loc:this.loc(a)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let a;switch(this.popChar()){case"=":a="Lookahead";break;case"!":a="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":a="Lookbehind";break;case"!":a="NegativeLookbehind"}break}}IB(a);let s=this.disjunction();return this.consumeChar(")"),{type:a,value:s,loc:this.loc(t)}}return yse()}quantifier(t=!1){let a,s=this.idx;switch(this.popChar()){case"*":a={atLeast:0,atMost:1/0};break;case"+":a={atLeast:1,atMost:1/0};break;case"?":a={atLeast:0,atMost:1};break;case"{":let l=this.integerIncludingZero();switch(this.popChar()){case"}":a={atLeast:l,atMost:l};break;case",":let h;this.isDigit()?(h=this.integerIncludingZero(),a={atLeast:l,atMost:h}):a={atLeast:l,atMost:1/0},this.consumeChar("}");break}if(t===!0&&a===void 0)return;IB(a);break}if(!(t===!0&&a===void 0)&&IB(a))return this.peekChar(0)==="?"?(this.consumeChar("?"),a.greedy=!1):a.greedy=!0,a.type="Quantifier",a.loc=this.loc(s),a}atom(){let t,a=this.idx;switch(this.peekChar()){case".":t=this.dotAll();break;case"\\":t=this.atomEscape();break;case"[":t=this.characterClass();break;case"(":t=this.group();break}return t===void 0&&this.isPatternCharacter()&&(t=this.patternCharacter()),IB(t)?(t.loc=this.loc(a),this.isQuantifier()&&(t.quantifier=this.quantifier()),t):yse()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[wo(`
|
|
`),wo("\r"),wo("\u2028"),wo("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let t,a=!1;switch(this.popChar()){case"d":t=bse;break;case"D":t=bse,a=!0;break;case"s":t=Pft;break;case"S":t=Pft,a=!0;break;case"w":t=vse;break;case"W":t=vse,a=!0;break}return IB(t)?{type:"Set",value:t,complement:a}:yse()}controlEscapeAtom(){let t;switch(this.popChar()){case"f":t=wo("\f");break;case"n":t=wo(`
|
|
`);break;case"r":t=wo("\r");break;case"t":t=wo(" ");break;case"v":t=wo("\v");break}return IB(t)?{type:"Character",value:t}:yse()}controlLetterEscapeAtom(){this.consumeChar("c");let t=this.popChar();if(/[a-zA-Z]/.test(t)===!1)throw Error("Invalid ");return{type:"Character",value:t.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:wo("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let t=this.popChar();return{type:"Character",value:wo(t)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let t=this.popChar();return{type:"Character",value:wo(t)}}}characterClass(){let t=[],a=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),a=!0);this.isClassAtom();){let s=this.classAtom(),l=s.type==="Character";if(Nft(s)&&this.isRangeDash()){this.consumeChar("-");let h=this.classAtom(),f=h.type==="Character";if(Nft(h)){if(h.value<s.value)throw Error("Range out of order in character class");t.push({from:s.value,to:h.value})}else kEe(s.value,t),t.push(wo("-")),kEe(h.value,t)}else kEe(s.value,t)}return this.consumeChar("]"),{type:"Set",complement:a,value:t}}classAtom(){switch(this.peekChar()){case"]":case`
|
|
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:wo("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let t=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),t=!1):this.groupIdx++;let a=this.disjunction();this.consumeChar(")");let s={type:"Group",capturing:t,value:a};return t&&(s.idx=this.groupIdx),s}positiveInteger(){let t=this.popChar();if(dbi.test(t)===!1)throw Error("Expecting a positive integer");for(;CEe.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}integerIncludingZero(){let t=this.popChar();if(CEe.test(t)===!1)throw Error("Expecting an integer");for(;CEe.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}patternCharacter(){let t=this.popChar();switch(t){case`
|
|
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:wo(t)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return CEe.test(this.peekChar(0))}isClassAtom(t=0){switch(this.peekChar(t)){case"]":case`
|
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){let t=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(t)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(t){let a="";for(let l=0;l<t;l++){let h=this.popChar();if(fbi.test(h)===!1)throw Error("Expecting a HexDecimal digits");a+=h}return{type:"Character",value:parseInt(a,16)}}peekChar(t=0){return this.input[this.idx+t]}popChar(){let t=this.peekChar(0);return this.consumeChar(void 0),t}consumeChar(t){if(t!==void 0&&this.input[this.idx]!==t)throw Error("Expected: '"+t+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(t){return{begin:t,end:this.idx}}}});var FD,JHr=ae(()=>{"use strict";FD=class{static{i(this,"BaseRegExpVisitor")}visitChildren(t){for(let a in t){let s=t[a];t.hasOwnProperty(a)&&(s.type!==void 0?this.visit(s):Array.isArray(s)&&s.forEach(l=>{this.visit(l)},this))}}visit(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Lookbehind":this.visitLookbehind(t);break;case"NegativeLookbehind":this.visitNegativeLookbehind(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t);break}this.visitChildren(t)}visitPattern(t){}visitFlags(t){}visitDisjunction(t){}visitAlternative(t){}visitStartAnchor(t){}visitEndAnchor(t){}visitWordBoundary(t){}visitNonWordBoundary(t){}visitLookahead(t){}visitNegativeLookahead(t){}visitLookbehind(t){}visitNegativeLookbehind(t){}visitCharacter(t){}visitSet(t){}visitGroup(t){}visitGroupBackReference(t){}visitQuantifier(t){}}});var EEe=ae(()=>{"use strict";KHr();JHr()});function MB(r){let t=r.toString();if(SEe.hasOwnProperty(t))return SEe[t];{let a=pbi.pattern(t);return SEe[t]=a,a}}function QHr(){SEe={}}var SEe,pbi,AEe=ae(()=>{"use strict";EEe();SEe={},pbi=new wse;i(MB,"getRegExpAst");i(QHr,"clearRegExpParserCache")});function tqr(r,t=!1){try{let a=MB(r);return Bft(a.value,{},a.flags.ignoreCase)}catch(a){if(a.message===eqr)t&&pse(`${xse} Unable to optimize: < ${r.toString()} >
|
|
Complement Sets cannot be automatically optimized.
|
|
This will disable the lexer's first char optimizations.
|
|
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let s="";t&&(s=`
|
|
This will disable the lexer's first char optimizations.
|
|
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),qW(`${xse}
|
|
Failed parsing: < ${r.toString()} >
|
|
Using the @chevrotain/regexp-to-ast library
|
|
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+s)}}return[]}function Bft(r,t,a){switch(r.type){case"Disjunction":for(let l=0;l<r.value.length;l++)Bft(r.value[l],t,a);break;case"Alternative":let s=r.value;for(let l=0;l<s.length;l++){let h=s[l];switch(h.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}let f=h;switch(f.type){case"Character":REe(f.value,t,a);break;case"Set":if(f.complement===!0)throw Error(eqr);f.value.forEach(m=>{if(typeof m=="number")REe(m,t,a);else{let b=m;if(a===!0)for(let v=b.from;v<=b.to;v++)REe(v,t,a);else{for(let v=b.from;v<=b.to&&v<JW;v++)REe(v,t,a);if(b.to>=JW){let v=b.from>=JW?b.from:JW,T=b.to,C=n5(v),E=n5(T);for(let S=C;S<=E;S++)t[S]=S}}}});break;case"Group":Bft(f.value,t,a);break;default:throw Error("Non Exhaustive Match")}let d=f.quantifier!==void 0&&f.quantifier.atLeast===0;if(f.type==="Group"&&Fft(f)===!1||f.type!=="Group"&&d===!1)break}break;default:throw Error("non exhaustive match!")}return Object.values(t)}function REe(r,t,a){let s=n5(r);t[s]=s,a===!0&&gbi(r,t)}function gbi(r,t){let a=String.fromCharCode(r),s=a.toUpperCase();if(s!==a){let l=n5(s.charCodeAt(0));t[l]=l}else{let l=a.toLowerCase();if(l!==a){let h=n5(l.charCodeAt(0));t[h]=h}}}function ZHr(r,t){return r.value.find(a=>{if(typeof a=="number")return t.includes(a);{let s=a;return t.find(l=>s.from<=l&&l<=s.to)!==void 0}})}function Fft(r){let t=r.quantifier;return t&&t.atLeast===0?!0:r.value?Array.isArray(r.value)?r.value.every(Fft):Fft(r.value):!1}function LEe(r,t){if(t instanceof RegExp){let a=MB(t),s=new $ft(r);return s.visit(a),s.found}else{for(let a of t){let s=a.charCodeAt(0);if(r.includes(s))return!0}return!1}}var eqr,xse,$ft,rqr=ae(()=>{"use strict";EEe();YW();AEe();Gft();eqr="Complement Sets are not supported for first char optimization",xse=`Unable to use "first char" lexer optimizations:
|
|
`;i(tqr,"getOptimizedStartCodesIndices");i(Bft,"firstCharOptimizedIndices");i(REe,"addOptimizedIdxToResult");i(gbi,"handleIgnoreCase");i(ZHr,"findCode");i(Fft,"isWholeOptional");$ft=class extends FD{static{i(this,"CharCodeFinder")}constructor(t){super(),this.targetCharCodes=t,this.found=!1}visitChildren(t){if(this.found!==!0){switch(t.type){case"Lookahead":this.visitLookahead(t);return;case"NegativeLookahead":this.visitNegativeLookahead(t);return;case"Lookbehind":this.visitLookbehind(t);return;case"NegativeLookbehind":this.visitNegativeLookbehind(t);return}super.visitChildren(t)}}visitCharacter(t){this.targetCharCodes.includes(t.value)&&(this.found=!0)}visitSet(t){t.complement?ZHr(t,this.targetCharCodes)===void 0&&(this.found=!0):ZHr(t,this.targetCharCodes)!==void 0&&(this.found=!0)}};i(LEe,"canMatchCharCode")});function iqr(r,t){t=Object.assign({safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
`],tracer:i((I,N)=>N(),"tracer")},t);let a=t.tracer;a("initCharCodeToOptimizedIndexMap",()=>{Obi()});let s;a("Reject Lexer.NA",()=>{s=r.filter(I=>I[NB]!==ad.NA)});let l=!1,h;a("Transform Patterns",()=>{l=!1,h=s.map(I=>{let N=I[NB];if(N instanceof RegExp){let B=N.source;return B.length===1&&B!=="^"&&B!=="$"&&B!=="."&&!N.ignoreCase?B:B.length===2&&B[0]==="\\"&&!["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"].includes(B[1])?B[1]:nqr(N)}else{if(typeof N=="function")return l=!0,{exec:N};if(typeof N=="object")return l=!0,N;if(typeof N=="string"){if(N.length===1)return N;{let B=N.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),O=new RegExp(B);return nqr(O)}}else throw Error("non exhaustive match")}})});let f,d,m,b,v;a("misc mapping",()=>{f=s.map(I=>I.tokenTypeIdx),d=s.map(I=>{let N=I.GROUP;if(N!==ad.SKIPPED){if(typeof N=="string")return N;if(N===void 0)return!1;throw Error("non exhaustive match")}}),m=s.map(I=>{let N=I.LONGER_ALT;if(N)return Array.isArray(N)?N.map(O=>s.indexOf(O)):[s.indexOf(N)]}),b=s.map(I=>I.PUSH_MODE),v=s.map(I=>Object.hasOwn(I,"POP_MODE"))});let T;a("Line Terminator Handling",()=>{let I=hqr(t.lineTerminatorCharacters);T=s.map(N=>!1),t.positionTracking!=="onlyOffset"&&(T=s.map(N=>Object.hasOwn(N,"LINE_BREAKS")?!!N.LINE_BREAKS:uqr(N,I)===!1&&LEe(I,N.PATTERN)))});let C,E,S,R;a("Misc Mapping #2",()=>{C=s.map(lqr),E=h.map(Mbi),S=s.reduce((I,N)=>{let B=N.GROUP;return typeof B=="string"&&B!==ad.SKIPPED&&(I[B]=[]),I},{}),R=h.map((I,N)=>{let B=d[N]===void 0&&m[N]===void 0?mbi(s[N].PATTERN):void 0;return{pattern:h[N],asciiClass:B,longerAlt:m[N],canLineTerminator:T[N],matchType:B!==void 0?NEe:E[N]!==!1?IEe:C[N]?Tse:MEe,short:E[N],group:d[N],push:b[N],pop:v[N],tokenTypeIdx:f[N],tokenType:s[N]}})});let L=!0,_=[];return t.safeMode||a("First Char Optimization",()=>{_=s.reduce((I,N,B)=>{if(typeof N.PATTERN=="string"){let O=N.PATTERN.charCodeAt(0),P=n5(O);jft(I,P,R[B])}else if(Array.isArray(N.START_CHARS_HINT)){let O;N.START_CHARS_HINT.forEach(P=>{let $=typeof P=="string"?P.charCodeAt(0):P,V=n5($);O!==V&&(O=V,jft(I,V,R[B]))})}else if(N.PATTERN instanceof RegExp)if(N.PATTERN.unicode)L=!1,t.ensureOptimizations&&qW(`${xse} Unable to analyze < ${N.PATTERN.toString()} > pattern.
|
|
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
This will disable the lexer's first char optimizations.
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let O=tqr(N.PATTERN,t.ensureOptimizations);O.length===0&&(L=!1),O.forEach(P=>{jft(I,P,R[B])})}else t.ensureOptimizations&&qW(`${xse} TokenType: <${N.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
This will disable the lexer's first char optimizations.
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),L=!1;return I},[])}),{emptyGroups:S,patternIdxToConfig:R,charCodeToPatternIdxToConfig:_,hasCustom:l,canBeOptimized:L}}function mbi(r){var t,a;if(!(r instanceof RegExp)||r.flags!=="")return;let s;try{s=MB(r)}catch{return}if(s.value.value.length!==1||s.value.value[0].value.length!==1)return;let l=s.value.value[0].value[0],h;for(;l.type==="Group";){if(l.capturing||l.quantifier!==void 0&&h!==void 0||l.value.value.length!==1||l.value.value[0].value.length!==1)return;h=(t=l.quantifier)!==null&&t!==void 0?t:h,l=l.value.value[0].value[0]}if(l.type!=="Set"||l.complement||l.quantifier!==void 0&&h!==void 0||(h=(a=l.quantifier)!==null&&a!==void 0?a:h,h?.atLeast!==1||h.atMost!==1/0||!h.greedy))return;let f=new Uint8Array(128);for(let d of l.value){let m=typeof d=="number"?d:d.from,b=typeof d=="number"?d:d.to;if(m<0||b>=f.length)return;f.fill(1,m,b+1)}return f}function aqr(r,t){let a=[],s=bbi(r);a=a.concat(s.errors);let l=vbi(s.valid),h=l.valid;return a=a.concat(l.errors),a=a.concat(ybi(h)),a=a.concat(Abi(h)),a=a.concat(Rbi(h,t)),a=a.concat(Lbi(h)),a}function ybi(r){let t=[],a=r.filter(s=>s[NB]instanceof RegExp);return t=t.concat(xbi(a)),t=t.concat(Cbi(a)),t=t.concat(Ebi(a)),t=t.concat(Sbi(a)),t=t.concat(Tbi(a)),t}function bbi(r){let t=r.filter(l=>!Object.hasOwn(l,NB)),a=t.map(l=>({message:"Token Type: ->"+l.name+"<- missing static 'PATTERN' property",type:id.MISSING_PATTERN,tokenTypes:[l]})),s=r.filter(l=>!t.includes(l));return{errors:a,valid:s}}function vbi(r){let t=r.filter(l=>{let h=l[NB];return!(h instanceof RegExp)&&typeof h!="function"&&!Object.hasOwn(h,"exec")&&typeof h!="string"}),a=t.map(l=>({message:"Token Type: ->"+l.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:id.INVALID_PATTERN,tokenTypes:[l]})),s=r.filter(l=>!t.includes(l));return{errors:a,valid:s}}function xbi(r){class t extends FD{static{i(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(h){this.found=!0}}return r.filter(l=>{let h=l.PATTERN;try{let f=MB(h),d=new t;return d.visit(f),d.found}catch{return wbi.test(h.source)}}).map(l=>({message:`Unexpected RegExp Anchor Error:
|
|
Token Type: ->`+l.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:id.EOI_ANCHOR_FOUND,tokenTypes:[l]}))}function Tbi(r){return r.filter(s=>s.PATTERN.test("")).map(s=>({message:"Token Type: ->"+s.name+"<- static 'PATTERN' must not match an empty string",type:id.EMPTY_MATCH_PATTERN,tokenTypes:[s]}))}function Cbi(r){class t extends FD{static{i(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(h){this.found=!0}}return r.filter(l=>{let h=l.PATTERN;try{let f=MB(h),d=new t;return d.visit(f),d.found}catch{return kbi.test(h.source)}}).map(l=>({message:`Unexpected RegExp Anchor Error:
|
|
Token Type: ->`+l.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:id.SOI_ANCHOR_FOUND,tokenTypes:[l]}))}function Ebi(r){return r.filter(s=>{let l=s[NB];return l instanceof RegExp&&(l.multiline||l.global)}).map(s=>({message:"Token Type: ->"+s.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:id.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[s]}))}function Sbi(r){let t=[],a=r.map(h=>r.reduce((f,d)=>(h.PATTERN.source===d.PATTERN.source&&!t.includes(d)&&d.PATTERN!==ad.NA&&(t.push(d),f.push(d)),f),[]));return a=a.filter(Boolean),a.filter(h=>h.length>1).map(h=>{let f=h.map(m=>m.name);return{message:`The same RegExp pattern ->${h[0].PATTERN}<-has been used in all of the following Token Types: ${f.join(", ")} <-`,type:id.DUPLICATE_PATTERNS_FOUND,tokenTypes:h}})}function Abi(r){return r.filter(s=>{if(!Object.hasOwn(s,"GROUP"))return!1;let l=s.GROUP;return l!==ad.SKIPPED&&l!==ad.NA&&typeof l!="string"}).map(s=>({message:"Token Type: ->"+s.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:id.INVALID_GROUP_TYPE_FOUND,tokenTypes:[s]}))}function Rbi(r,t){return r.filter(l=>l.PUSH_MODE!==void 0&&!t.includes(l.PUSH_MODE)).map(l=>({message:`Token Type: ->${l.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${l.PUSH_MODE}<-which does not exist`,type:id.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[l]}))}function Lbi(r){let t=[],a=r.reduce((s,l,h)=>{let f=l.PATTERN;return f===ad.NA||(typeof f=="string"?s.push({str:f,idx:h,tokenType:l}):f instanceof RegExp&&Dbi(f)&&s.push({str:f.source,idx:h,tokenType:l})),s},[]);return r.forEach((s,l)=>{a.forEach(({str:h,idx:f,tokenType:d})=>{if(l<f&&_bi(h,s.PATTERN)){let m=`Token: ->${d.name}<- can never be matched.
|
|
Because it appears AFTER the Token Type ->${s.name}<-in the lexer's definition.
|
|
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:m,type:id.UNREACHABLE_PATTERN,tokenTypes:[s,d]})}})}),t}function _bi(r,t){if(t instanceof RegExp){if(Ibi(t))return!1;let a=t.exec(r);return a!==null&&a.index===0}else{if(typeof t=="function")return t(r,0,[],{});if(Object.hasOwn(t,"exec"))return t.exec(r,0,[],{});if(typeof t=="string")return t===r;throw Error("non exhaustive match")}}function Dbi(r){return[".","\\","[","]","|","^","$","(",")","?","*","+","{"].find(a=>r.source.indexOf(a)!==-1)===void 0}function Ibi(r){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(r.source)}function nqr(r){let t=r.ignoreCase?"iy":"y";return new RegExp(`${r.source}`,t)}function sqr(r,t,a){let s=[];return Object.hasOwn(r,QW)||s.push({message:"A MultiMode Lexer cannot be initialized without a <"+QW+`> property in its definition
|
|
`,type:id.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(r,_Ee)||s.push({message:"A MultiMode Lexer cannot be initialized without a <"+_Ee+`> property in its definition
|
|
`,type:id.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(r,_Ee)&&Object.hasOwn(r,QW)&&!Object.hasOwn(r.modes,r.defaultMode)&&s.push({message:`A MultiMode Lexer cannot be initialized with a ${QW}: <${r.defaultMode}>which does not exist
|
|
`,type:id.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(r,_Ee)&&Object.keys(r.modes).forEach(l=>{let h=r.modes[l];h.forEach((f,d)=>{f===void 0?s.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${l}> at index: <${d}>
|
|
`,type:id.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(f,"LONGER_ALT")&&(Array.isArray(f.LONGER_ALT)?f.LONGER_ALT:[f.LONGER_ALT]).forEach(b=>{b!==void 0&&!h.includes(b)&&s.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${b.name}> on token <${f.name}> outside of mode <${l}>
|
|
`,type:id.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),s}function oqr(r,t,a){let s=[],l=!1,f=Object.values(r.modes||{}).flat().filter(Boolean).filter(m=>m[NB]!==ad.NA),d=hqr(a);return t&&f.forEach(m=>{let b=uqr(m,d);if(b!==!1){let T={message:Nbi(m,b),type:b.issue,tokenType:m};s.push(T)}else Object.hasOwn(m,"LINE_BREAKS")?m.LINE_BREAKS===!0&&(l=!0):LEe(d,m.PATTERN)&&(l=!0)}),t&&!l&&s.push({message:`Warning: No LINE_BREAKS Found.
|
|
This Lexer has been defined to track line and column information,
|
|
But none of the Token Types can be identified as matching a line terminator.
|
|
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
|
for details.`,type:id.NO_LINE_BREAKS_FLAGS}),s}function lqr(r){let t=r.PATTERN;if(t instanceof RegExp)return!1;if(typeof t=="function")return!0;if(Object.hasOwn(t,"exec"))return!0;if(typeof t=="string")return!1;throw Error("non exhaustive match")}function Mbi(r){return typeof r=="string"&&r.length===1?r.charCodeAt(0):!1}function uqr(r,t){if(Object.hasOwn(r,"LINE_BREAKS"))return!1;if(r.PATTERN instanceof RegExp){try{LEe(t,r.PATTERN)}catch(a){return{issue:id.IDENTIFY_TERMINATOR,errMsg:a.message}}return!1}else{if(typeof r.PATTERN=="string")return!1;if(lqr(r))return{issue:id.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function Nbi(r,t){if(t.issue===id.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
The problem is in the <${r.name}> Token Type
|
|
Root cause: ${t.errMsg}.
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===id.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
The problem is in the <${r.name}> Token Type
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function hqr(r){return r.map(a=>typeof a=="string"?a.charCodeAt(0):a)}function jft(r,t,a){r[t]===void 0?r[t]=[a]:r[t].push(a)}function n5(r){return r<JW?r:DEe[r]}function Obi(){if(DEe.length===0){DEe=new Array(65536);for(let r=0;r<65536;r++)DEe[r]=r>255?255+~~(r/255):r}}var NB,QW,_Ee,IEe,Tse,MEe,NEe,wbi,kbi,cqr,JW,DEe,Gft=ae(()=>{"use strict";EEe();kse();YW();rqr();AEe();NB="PATTERN",QW="defaultMode",_Ee="modes",IEe=0,Tse=1,MEe=2,NEe=3;i(iqr,"analyzeTokenTypes");i(mbi,"getAsciiClass");i(aqr,"validatePatterns");i(ybi,"validateRegExpPattern");i(bbi,"findMissingPatterns");i(vbi,"findInvalidPatterns");wbi=/[^\\][$]/;i(xbi,"findEndOfInputAnchor");i(Tbi,"findEmptyMatchRegExps");kbi=/[^\\[][\^]|^\^/;i(Cbi,"findStartOfInputAnchor");i(Ebi,"findUnsupportedFlags");i(Sbi,"findDuplicatePatterns");i(Abi,"findInvalidGroupType");i(Rbi,"findModesThatDoNotExist");i(Lbi,"findUnreachablePatterns");i(_bi,"tryToMatchStrToPattern");i(Dbi,"noMetaChar");i(Ibi,"usesLookAheadOrBehind");i(nqr,"addStickyFlag");i(sqr,"performRuntimeChecks");i(oqr,"performWarningRuntimeChecks");i(lqr,"isCustomPattern");i(Mbi,"isShortPattern");cqr={test:i(function(r){let t=r.length;for(let a=this.lastIndex;a<t;a++){let s=r.charCodeAt(a);if(s===10)return this.lastIndex=a+1,!0;if(s===13)return r.charCodeAt(a+1)===10?this.lastIndex=a+2:this.lastIndex=a+1,!0}return!1},"test"),lastIndex:0};i(uqr,"checkLineBreaksIssues");i(Nbi,"buildLineBreakIssueMessage");i(hqr,"getCharCodes");i(jft,"addToMapOfArrays");JW=256,DEe=[];i(n5,"charCodeToOptimizedIndex");i(Obi,"initCharCodeToOptimizedIndexMap")});function A8(r,t){let a=r.tokenTypeIdx;return a===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[a]===!0}function ZW(r,t){return r.tokenTypeIdx===t.tokenTypeIdx}function R8(r){let t=Pbi(r);Bbi(t),$bi(t),Fbi(t),t.forEach(a=>{a.isParent=a.categoryMatches.length>0})}function Pbi(r){let t=[...r],a=r,s=!0;for(;s;){a=a.map(h=>h.CATEGORIES).flat().filter(Boolean);let l=a.filter(h=>!t.includes(h));t=t.concat(l),l.length===0?s=!1:a=l}return t}function Bbi(r){r.forEach(t=>{zft(t)||(pqr[fqr]=t,t.tokenTypeIdx=fqr++),dqr(t)&&!Array.isArray(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),dqr(t)||(t.CATEGORIES=[]),Gbi(t)||(t.categoryMatches=[]),jbi(t)||(t.categoryMatchesMap={})})}function Fbi(r){r.forEach(t=>{t.categoryMatches=[],Object.keys(t.categoryMatchesMap).forEach(a=>{t.categoryMatches.push(pqr[a].tokenTypeIdx)})})}function $bi(r){r.forEach(t=>{gqr([],t)})}function gqr(r,t){r.forEach(a=>{t.categoryMatchesMap[a.tokenTypeIdx]=!0}),t.CATEGORIES.forEach(a=>{let s=r.concat(t);s.includes(a)||gqr(s,a)})}function zft(r){return Object.hasOwn(r??{},"tokenTypeIdx")}function dqr(r){return Object.hasOwn(r??{},"CATEGORIES")}function Gbi(r){return Object.hasOwn(r??{},"categoryMatches")}function jbi(r){return Object.hasOwn(r??{},"categoryMatchesMap")}function mqr(r){return Object.hasOwn(r??{},"tokenTypeIdx")}var fqr,pqr,OB=ae(()=>{"use strict";i(A8,"tokenStructuredMatcher");i(ZW,"tokenStructuredMatcherNoCategories");fqr=1,pqr={};i(R8,"augmentTokenTypes");i(Pbi,"expandCategories");i(Bbi,"assignTokenDefaultProps");i(Fbi,"assignCategoriesTokensProp");i($bi,"assignCategoriesMapProp");i(gqr,"singleAssignCategoriesToksMap");i(zft,"hasShortKeyProperty");i(dqr,"hasCategoriesProperty");i(Gbi,"hasExtendingTokensTypesProperty");i(jbi,"hasExtendingTokensTypesMapProperty");i(mqr,"isTokenType")});var Uft,Vft=ae(()=>{"use strict";Uft={buildUnableToPopLexerModeMessage(r){return`Unable to pop Lexer Mode after encountering Token ->${r.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(r,t,a,s,l,h){return`unexpected character: ->${r.charAt(t)}<- at offset: ${t}, skipped ${a} characters.`}}});var id,Cse,ad,kse=ae(()=>{"use strict";Gft();YW();OB();Vft();AEe();(function(r){r[r.MISSING_PATTERN=0]="MISSING_PATTERN",r[r.INVALID_PATTERN=1]="INVALID_PATTERN",r[r.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",r[r.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",r[r.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",r[r.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",r[r.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",r[r.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",r[r.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",r[r.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",r[r.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",r[r.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",r[r.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",r[r.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",r[r.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",r[r.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",r[r.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",r[r.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(id||(id={}));Cse={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Uft,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Cse);ad=class{static{i(this,"Lexer")}constructor(t,a=Cse){if(this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(l,h)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let f=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${f}--> <${l}>`);let{time:d,value:m}=gse(h),b=d>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&b(`${f}<-- <${l}> time: ${d}ms`),this.traceInitIndent--,m}else return h()},typeof a=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
a boolean 2nd argument is no longer supported`);this.config=Object.assign({},Cse,a);let s=this.config.traceInitPerf;s===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof s=="number"&&(this.traceInitMaxIdent=s,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let l,h=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Cse.lineTerminatorsPattern)this.config.lineTerminatorsPattern=cqr;else if(this.config.lineTerminatorCharacters===Cse.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(a.safeMode&&a.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(t)?l={modes:{defaultMode:[...t]},defaultMode:QW}:(h=!1,l=Object.assign({},t))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(sqr(l,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(oqr(l,this.trackStartLines,this.config.lineTerminatorCharacters))})),l.modes=l.modes?l.modes:{},Object.entries(l.modes).forEach(([d,m])=>{l.modes[d]=m.filter(b=>b!==void 0)});let f=Object.keys(l.modes);if(Object.entries(l.modes).forEach(([d,m])=>{this.TRACE_INIT(`Mode: <${d}> processing`,()=>{if(this.modes.push(d),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(aqr(m,f))}),this.lexerDefinitionErrors.length===0){R8(m);let b;this.TRACE_INIT("analyzeTokenTypes",()=>{b=iqr(m,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:a.positionTracking,ensureOptimizations:a.ensureOptimizations,safeMode:a.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[d]=b.patternIdxToConfig,this.charCodeToPatternIdxToConfig[d]=b.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,b.emptyGroups),this.hasCustom=b.hasCustom||this.hasCustom,this.canModeBeOptimized[d]=b.canBeOptimized}})}),this.defaultMode=l.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let m=this.lexerDefinitionErrors.map(b=>b.message).join(`-----------------------
|
|
`);throw new Error(`Errors detected in definition of Lexer:
|
|
`+m)}this.lexerDefinitionWarning.forEach(d=>{pse(d.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(h&&(this.handleModes=()=>{}),this.trackStartLines===!1&&(this.computeNewColumn=d=>d),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=()=>{}),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let d=Object.entries(this.canModeBeOptimized).reduce((m,[b,v])=>(v===!1&&m.push(b),m),[]);if(a.ensureOptimizations&&d.length>0)throw Error(`Lexer Modes: < ${d.join(", ")} > cannot be optimized.
|
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{QHr()}),this.TRACE_INIT("toFastProperties",()=>{mse(this)})})}tokenize(t,a=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let l=this.lexerDefinitionErrors.map(h=>h.message).join(`-----------------------
|
|
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
`+l)}return this.tokenizeInternal(t,a)}tokenizeInternal(t,a){let s,l,h,f,d,m,b,v,T,C,E,S,R,L,_,I=t,N=I.length,B=0,O=0,P=this.hasCustom?0:Math.floor(t.length/10),$=new Array(P),V=[],Y=this.trackStartLines?1:void 0,Q=this.trackStartLines?1:void 0,q={};for(let ge=0;ge<this.cachedGroupKeys.length;ge++)q[this.cachedGroupKeys[ge]]=[];let W=this.trackStartLines,H=this.config.lineTerminatorsPattern,re=0,Z=[],X=[],te=[],U=[];Object.freeze(U);let ne=!1,se=i(ge=>{if(te.length===1&&ge.tokenType.PUSH_MODE===void 0){let we=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ge);V.push({offset:ge.startOffset,line:ge.startLine,column:ge.startColumn,length:ge.image.length,message:we})}else{te.pop();let we=te.at(-1);Z=this.patternIdxToConfig[we],X=this.charCodeToPatternIdxToConfig[we],re=Z.length;let Ae=this.canModeBeOptimized[we]&&this.config.safeMode===!1;X&&Ae?ne=!0:ne=!1}},"pop_mode");function he(ge){te.push(ge),X=this.charCodeToPatternIdxToConfig[ge],Z=this.patternIdxToConfig[ge],re=Z.length;let we=this.canModeBeOptimized[ge]&&this.config.safeMode===!1;X&&we?ne=!0:ne=!1}i(he,"push_mode"),he.call(this,a);let le,pe=this.config.recoveryEnabled;for(;B<N;){m=null,T=-1;let ge=I.charCodeAt(B),we;if(ne){let ve=n5(ge),Ie=X[ve];we=Ie!==void 0?Ie:U}else we=Z;let Ae=we.length;for(s=0;s<Ae;s++){le=we[s];let ve=le.pattern;switch(b=null,le.matchType){case IEe:ge===le.short&&(T=1,m=ve);break;case Tse:_=ve.exec(I,B,$,q),_!==null?(m=_[0],T=m.length,_.payload!==void 0&&(b=_.payload)):m=null;break;case NEe:{let Ie=le.asciiClass;if(Ie[ge]!==1){ve.lastIndex=0;break}let De=B+1;for(;Ie[I.charCodeAt(De)]===1;)De++;T=De-B,ve.lastIndex=De;break}case MEe:ve.lastIndex=B,T=this.matchLength(ve,t,B);break}if(T!==-1){if(d=le.longerAlt,d!==void 0){m=t.substring(B,B+T);let Ie=d.length;for(h=0;h<Ie;h++){let De=Z[d[h]],Be=De.pattern;if(v=null,De.matchType===Tse?(_=Be.exec(I,B,$,q),_!==null?(f=_[0],_.payload!==void 0&&(v=_.payload)):f=null):(Be.lastIndex=B,f=this.match(Be,t,B)),f&&f.length>m.length){m=f,T=f.length,b=v,le=De;break}}}break}}if(T!==-1){if(C=le.group,C!==void 0&&(m=m!==null?m:t.substring(B,B+T),E=le.tokenTypeIdx,S=this.createTokenInstance(m,B,E,le.tokenType,Y,Q,T),this.handlePayload(S,b),C===!1?O=this.addToken($,O,S):q[C].push(S)),W===!0&&le.canLineTerminator===!0){let ve=0,Ie,De;H.lastIndex=0;do m=m!==null?m:t.substring(B,B+T),Ie=H.test(m),Ie===!0&&(De=H.lastIndex-1,ve++);while(Ie===!0);ve!==0?(Y=Y+ve,Q=T-De,this.updateTokenEndLineColumnLocation(S,C,De,ve,Y,Q,T)):Q=this.computeNewColumn(Q,T)}else Q=this.computeNewColumn(Q,T);B=B+T,this.handleModes(le,se,he,S)}else{let ve=B,Ie=Y,De=Q,Be=pe===!1;for(;Be===!1&&B<N;)for(B++,l=0;l<re;l++){let Fe=Z[l],ze=Fe.pattern;switch(Fe.matchType){case IEe:I.charCodeAt(B)===Fe.short&&(Be=!0);break;case Tse:Be=ze.exec(I,B,$,q)!==null;break;case NEe:case MEe:ze.lastIndex=B,Be=ze.exec(t)!==null;break}if(Be===!0)break}if(R=B-ve,Q=this.computeNewColumn(Q,R),L=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(I,ve,R,Ie,De,te.at(-1)),V.push({offset:ve,line:Ie,column:De,length:R,message:L}),pe===!1)break}}return this.hasCustom||($.length=O),{tokens:$,groups:q,errors:V}}handleModes(t,a,s,l){if(t.pop===!0){let h=t.push;a(l),h!==void 0&&s.call(this,h)}else t.push!==void 0&&s.call(this,t.push)}updateTokenEndLineColumnLocation(t,a,s,l,h,f,d){let m,b;a!==void 0&&(m=s===d-1,b=m?-1:0,l===1&&m===!0||(t.endLine=h+b,t.endColumn=f-1+-b))}computeNewColumn(t,a){return t+a}createOffsetOnlyToken(t,a,s,l){return{image:t,startOffset:a,tokenTypeIdx:s,tokenType:l}}createStartOnlyToken(t,a,s,l,h,f){return{image:t,startOffset:a,startLine:h,startColumn:f,tokenTypeIdx:s,tokenType:l}}createFullToken(t,a,s,l,h,f,d){return{image:t,startOffset:a,endOffset:a+d-1,startLine:h,endLine:h,startColumn:f,endColumn:f+d-1,tokenTypeIdx:s,tokenType:l}}addTokenUsingPush(t,a,s){return t.push(s),a}addTokenUsingMemberAccess(t,a,s){return t[a]=s,a++,a}handlePayloadNoCustom(t,a){}handlePayloadWithCustom(t,a){a!==null&&(t.payload=a)}match(t,a,s){return t.test(a)===!0?a.substring(s,t.lastIndex):null}matchLength(t,a,s){return t.test(a)===!0?t.lastIndex-s:-1}};ad.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";ad.NA=/NOT_APPLICABLE/});function PB(r){return Wft(r)?r.LABEL:r.name}function Wft(r){return typeof r.LABEL=="string"&&r.LABEL!==""}function Gs(r){return Ubi(r)}function Ubi(r){let t=r.pattern,a={};if(a.name=r.name,t!==void 0&&(a.PATTERN=t),Object.hasOwn(r,zbi))throw`The parent property is no longer supported.
|
|
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Object.hasOwn(r,yqr)&&(a.CATEGORIES=r[yqr]),R8([a]),Object.hasOwn(r,bqr)&&(a.LABEL=r[bqr]),Object.hasOwn(r,vqr)&&(a.GROUP=r[vqr]),Object.hasOwn(r,xqr)&&(a.POP_MODE=r[xqr]),Object.hasOwn(r,wqr)&&(a.PUSH_MODE=r[wqr]),Object.hasOwn(r,Tqr)&&(a.LONGER_ALT=r[Tqr]),Object.hasOwn(r,kqr)&&(a.LINE_BREAKS=r[kqr]),Object.hasOwn(r,Cqr)&&(a.START_CHARS_HINT=r[Cqr]),a}function BB(r,t,a,s,l,h,f,d){return{image:t,startOffset:a,endOffset:s,startLine:l,endLine:h,startColumn:f,endColumn:d,tokenTypeIdx:r.tokenTypeIdx,tokenType:r}}function Ese(r,t){return A8(r,t)}var zbi,yqr,bqr,vqr,wqr,xqr,Tqr,kqr,Cqr,R2,FB=ae(()=>{"use strict";kse();OB();i(PB,"tokenLabel");i(Wft,"hasTokenLabel");zbi="parent",yqr="categories",bqr="label",vqr="group",wqr="push_mode",xqr="pop_mode",Tqr="longer_alt",kqr="line_breaks",Cqr="start_chars_hint";i(Gs,"createToken");i(Ubi,"createTokenInternal");R2=Gs({name:"EOF",pattern:ad.NA});R8([R2]);i(BB,"createTokenInstance");i(Ese,"tokenMatcher")});var OEe,Eqr,nC,eH=ae(()=>{"use strict";FB();Wb();OEe={buildMismatchTokenMessage({expected:r,actual:t,previous:a,ruleName:s}){return`Expecting ${Wft(r)?`--> ${PB(r)} <--`:`token of type --> ${r.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:r,ruleName:t}){return"Redundant input, expecting EOF but found: "+r.image},buildNoViableAltMessage({expectedPathsPerAlt:r,actual:t,previous:a,customUserDescription:s,ruleName:l}){let h="Expecting: ",d=`
|
|
but found: '`+t[0].image+"'";if(s)return h+s+d;{let T=`one of these possible Token sequences:
|
|
${r.reduce((C,E)=>C.concat(E),[]).map(C=>`[${C.map(E=>PB(E)).join(", ")}]`).map((C,E)=>` ${E+1}. ${C}`).join(`
|
|
`)}`;return h+T+d}},buildEarlyExitMessage({expectedIterationPaths:r,actual:t,customUserDescription:a,ruleName:s}){let l="Expecting: ",f=`
|
|
but found: '`+t[0].image+"'";if(a)return l+a+f;{let m=`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
<${r.map(b=>`[${b.map(v=>PB(v)).join(",")}]`).join(" ,")}>`;return l+m+f}}};Object.freeze(OEe);Eqr={buildRuleNotFoundError(r,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
|
|
inside top level rule: ->`+r.name+"<-"}},nC={buildDuplicateFoundError(r,t){function a(v){return v instanceof Ec?v.terminalType.name:v instanceof cf?v.nonTerminalName:""}i(a,"getExtraProductionArgument");let s=r.name,l=t[0],h=l.idx,f=A2(l),d=a(l),m=h>0,b=`->${f}${m?h:""}<- ${d?`with argument: ->${d}<-`:""}
|
|
appears more than once (${t.length} times) in the top level rule: ->${s}<-.
|
|
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
`;return b=b.replace(/[ \t]+/g," "),b=b.replace(/\s\s+/g,`
|
|
`),b},buildNamespaceConflictError(r){return`Namespace conflict found in grammar.
|
|
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${r.name}>.
|
|
To resolve this make sure each Terminal and Non-Terminal names are unique
|
|
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
|
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(r){let t=r.prefixPath.map(l=>PB(l)).join(", "),a=r.alternation.idx===0?"":r.alternation.idx;return`Ambiguous alternatives: <${r.ambiguityIndices.join(" ,")}> due to common lookahead prefix
|
|
in <OR${a}> inside <${r.topLevelRule.name}> Rule,
|
|
<${t}> may appears as a prefix path in all these alternatives.
|
|
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
|
For Further details.`},buildAlternationAmbiguityError(r){let t=r.alternation.idx===0?"":r.alternation.idx,a=r.prefixPath.length===0,s=`Ambiguous Alternatives Detected: <${r.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${r.topLevelRule.name}> Rule,
|
|
`;if(a)s+=`These alternatives are all empty (match no tokens), making them indistinguishable.
|
|
Only the last alternative may be empty.
|
|
`;else{let l=r.prefixPath.map(h=>PB(h)).join(", ");s+=`<${l}> may appears as a prefix path in all these alternatives.
|
|
`}return s+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
For Further details.`,s},buildEmptyRepetitionError(r){let t=A2(r.repetition);return r.repetition.idx!==0&&(t+=r.repetition.idx),`The repetition <${t}> within Rule <${r.topLevelRule.name}> can never consume any tokens.
|
|
This could lead to an infinite loop.`},buildTokenNameError(r){return"deprecated"},buildEmptyAlternationError(r){return`Ambiguous empty alternative: <${r.emptyChoiceIdx+1}> in <OR${r.alternation.idx}> inside <${r.topLevelRule.name}> Rule.
|
|
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(r){return`An Alternation cannot have more than 256 alternatives:
|
|
<OR${r.alternation.idx}> inside <${r.topLevelRule.name}> Rule.
|
|
has ${r.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(r){let t=r.topLevelRule.name,a=r.leftRecursionPath.map(h=>h.name),s=`${t} --> ${a.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar.
|
|
rule: <${t}> can be invoked from itself (directly or indirectly)
|
|
without consuming any Tokens. The grammar path that causes this is:
|
|
${s}
|
|
To fix this refactor your grammar to remove the left recursion.
|
|
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(r){return"deprecated"},buildDuplicateRuleNameError(r){let t;return r.topLevelRule instanceof Ub?t=r.topLevelRule.name:t=r.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${r.grammarName}<-`}}});function Sqr(r,t){let a=new Hft(r,t);return a.resolveRefs(),a.errors}var Hft,Aqr=ae(()=>{"use strict";L2();Wb();i(Sqr,"resolveGrammar");Hft=class extends Vb{static{i(this,"GastRefResolverVisitor")}constructor(t,a){super(),this.nameToTopRule=t,this.errMsgProvider=a,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(t=>{this.currTopLevel=t,t.accept(this)})}visitNonTerminal(t){let a=this.nameToTopRule[t.nonTerminalName];if(a)t.referencedRule=a;else{let s=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:s,type:P0.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}}}});function $Ee(r,t,a=[]){a=[...a];let s=[],l=0;function h(d){return d.concat(r.slice(l+1))}i(h,"remainingPathWith");function f(d){let m=$Ee(h(d),t,a);return s.concat(m)}for(i(f,"getAlternativesForProd");a.length<t&&l<r.length;){let d=r[l];if(d instanceof uf)return f(d.definition);if(d instanceof cf)return f(d.definition);if(d instanceof Rf)s=f(d.definition);else if(d instanceof og){let m=d.definition.concat([new Wu({definition:d.definition})]);return f(m)}else if(d instanceof lg){let m=[new uf({definition:d.definition}),new Wu({definition:[new Ec({terminalType:d.separator})].concat(d.definition)})];return f(m)}else if(d instanceof Sp){let m=d.definition.concat([new Wu({definition:[new Ec({terminalType:d.separator})].concat(d.definition)})]);s=f(m)}else if(d instanceof Wu){let m=d.definition.concat([new Wu({definition:d.definition})]);s=f(m)}else{if(d instanceof Ap)return d.definition.forEach(m=>{m.definition.length!==0&&(s=f(m.definition))}),s;if(d instanceof Ec)a.push(d.terminalType);else throw Error("non exhaustive match")}l++}return s.push({partialPath:a,suffixDef:r.slice(l)}),s}function Rqr(r,t,a,s){let l="EXIT_NONE_TERMINAL",h=[l],f="EXIT_ALTERNATIVE",d=!1,m=t.length,b=m-s-1,v=[],T=[];for(T.push({idx:-1,def:r,ruleStack:[],occurrenceStack:[]});T.length!==0;){let C=T.pop();if(C===f){d&&T.at(-1).idx<=b&&T.pop();continue}let E=C.def,S=C.idx,R=C.ruleStack,L=C.occurrenceStack;if(E.length===0)continue;let _=E[0];if(_===l){let I={idx:S,def:E.slice(1),ruleStack:R.slice(0,-1),occurrenceStack:L.slice(0,-1)};T.push(I)}else if(_ instanceof Ec)if(S<m-1){let I=S+1,N=t[I];if(a(N,_.terminalType)){let B={idx:I,def:E.slice(1),ruleStack:R,occurrenceStack:L};T.push(B)}}else if(S===m-1)v.push({nextTokenType:_.terminalType,nextTokenOccurrence:_.idx,ruleStack:R,occurrenceStack:L}),d=!0;else throw Error("non exhaustive match");else if(_ instanceof cf){let I=[...R];I.push(_.nonTerminalName);let N=[...L];N.push(_.idx);let B={idx:S,def:_.definition.concat(h,E.slice(1)),ruleStack:I,occurrenceStack:N};T.push(B)}else if(_ instanceof Rf){let I={idx:S,def:E.slice(1),ruleStack:R,occurrenceStack:L};T.push(I),T.push(f);let N={idx:S,def:_.definition.concat(E.slice(1)),ruleStack:R,occurrenceStack:L};T.push(N)}else if(_ instanceof og){let I=new Wu({definition:_.definition,idx:_.idx}),N=_.definition.concat([I],E.slice(1)),B={idx:S,def:N,ruleStack:R,occurrenceStack:L};T.push(B)}else if(_ instanceof lg){let I=new Ec({terminalType:_.separator}),N=new Wu({definition:[I].concat(_.definition),idx:_.idx}),B=_.definition.concat([N],E.slice(1)),O={idx:S,def:B,ruleStack:R,occurrenceStack:L};T.push(O)}else if(_ instanceof Sp){let I={idx:S,def:E.slice(1),ruleStack:R,occurrenceStack:L};T.push(I),T.push(f);let N=new Ec({terminalType:_.separator}),B=new Wu({definition:[N].concat(_.definition),idx:_.idx}),O=_.definition.concat([B],E.slice(1)),P={idx:S,def:O,ruleStack:R,occurrenceStack:L};T.push(P)}else if(_ instanceof Wu){let I={idx:S,def:E.slice(1),ruleStack:R,occurrenceStack:L};T.push(I),T.push(f);let N=new Wu({definition:_.definition,idx:_.idx}),B=_.definition.concat([N],E.slice(1)),O={idx:S,def:B,ruleStack:R,occurrenceStack:L};T.push(O)}else if(_ instanceof Ap)for(let I=_.definition.length-1;I>=0;I--){let N=_.definition[I],B={idx:S,def:N.definition.concat(E.slice(1)),ruleStack:R,occurrenceStack:L};T.push(B),T.push(f)}else if(_ instanceof uf)T.push({idx:S,def:_.definition.concat(E.slice(1)),ruleStack:R,occurrenceStack:L});else if(_ instanceof Ub)T.push(Vbi(_,S,R,L));else throw Error("non exhaustive match")}return v}function Vbi(r,t,a,s){let l=[...a];l.push(r.name);let h=[...s];return h.push(1),{idx:t,def:r.definition,ruleStack:l,occurrenceStack:h}}var qft,PEe,tH,BEe,Sse,FEe,Ase,Rse=ae(()=>{"use strict";Dft();xEe();Wb();qft=class extends S8{static{i(this,"AbstractNextPossibleTokensWalker")}constructor(t,a){super(),this.topProd=t,this.path=a,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(t,a=[]){this.found||super.walk(t,a)}walkProdRef(t,a,s){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){let l=a.concat(s);this.updateExpectedNext(),this.walk(t.referencedRule,l)}}updateExpectedNext(){this.ruleStack.length===0?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},PEe=class extends qft{static{i(this,"NextAfterTokenWalker")}constructor(t,a){super(t,a),this.path=a,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(t,a,s){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){let l=a.concat(s),h=new uf({definition:l});this.possibleTokTypes=DB(h),this.found=!0}}},tH=class extends S8{static{i(this,"AbstractNextTerminalAfterProductionWalker")}constructor(t,a){super(),this.topRule=t,this.occurrence=a,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},BEe=class extends tH{static{i(this,"NextTerminalAfterManyWalker")}walkMany(t,a,s){if(t.idx===this.occurrence){let l=a.concat(s)[0];this.result.isEndOfRule=l===void 0,l instanceof Ec&&(this.result.token=l.terminalType,this.result.occurrence=l.idx)}else super.walkMany(t,a,s)}},Sse=class extends tH{static{i(this,"NextTerminalAfterManySepWalker")}walkManySep(t,a,s){if(t.idx===this.occurrence){let l=a.concat(s)[0];this.result.isEndOfRule=l===void 0,l instanceof Ec&&(this.result.token=l.terminalType,this.result.occurrence=l.idx)}else super.walkManySep(t,a,s)}},FEe=class extends tH{static{i(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(t,a,s){if(t.idx===this.occurrence){let l=a.concat(s)[0];this.result.isEndOfRule=l===void 0,l instanceof Ec&&(this.result.token=l.terminalType,this.result.occurrence=l.idx)}else super.walkAtLeastOne(t,a,s)}},Ase=class extends tH{static{i(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(t,a,s){if(t.idx===this.occurrence){let l=a.concat(s)[0];this.result.isEndOfRule=l===void 0,l instanceof Ec&&(this.result.token=l.terminalType,this.result.occurrence=l.idx)}else super.walkAtLeastOneSep(t,a,s)}};i($Ee,"possiblePathsFrom");i(Rqr,"nextPossibleTokensAfter");i(Vbi,"expandTopLevelRule")});function jEe(r){if(r instanceof Rf||r==="Option")return jd.OPTION;if(r instanceof Wu||r==="Repetition")return jd.REPETITION;if(r instanceof og||r==="RepetitionMandatory")return jd.REPETITION_MANDATORY;if(r instanceof lg||r==="RepetitionMandatoryWithSeparator")return jd.REPETITION_MANDATORY_WITH_SEPARATOR;if(r instanceof Sp||r==="RepetitionWithSeparator")return jd.REPETITION_WITH_SEPARATOR;if(r instanceof Ap||r==="Alternation")return jd.ALTERNATION;throw Error("non exhaustive match")}function _qr(r,t,a,s,l,h){let f=Lse(r,t,a),d=Pqr(f)?ZW:A8;return h(f,s,d,l)}function Dqr(r,t,a,s,l,h){let f=_se(r,t,l,a),d=Pqr(f)?ZW:A8;return h(f[0],d,s)}function Iqr(r,t,a,s){let l=r.length,h=r.every(f=>f.every(d=>d.length===1));if(t)return function(f){let d=f.map(m=>m.GATE);for(let m=0;m<l;m++){let b=r[m],v=b.length,T=d[m];if(!(T!==void 0&&T.call(this)===!1))e:for(let C=0;C<v;C++){let E=b[C],S=E.length;for(let R=0;R<S;R++){let L=this.LA_FAST(R+1);if(a(L,E[R])===!1)continue e}return m}}};if(h&&!s){let d=r.map(m=>m.flat()).reduce((m,b,v)=>(b.forEach(T=>{T.tokenTypeIdx in m||(m[T.tokenTypeIdx]=v),T.categoryMatches.forEach(C=>{Object.hasOwn(m,C)||(m[C]=v)})}),m),{});return function(){let m=this.LA_FAST(1);return d[m.tokenTypeIdx]}}else return function(){for(let f=0;f<l;f++){let d=r[f],m=d.length;e:for(let b=0;b<m;b++){let v=d[b],T=v.length;for(let C=0;C<T;C++){let E=this.LA_FAST(C+1);if(a(E,v[C])===!1)continue e}return f}}}}function Mqr(r,t,a){let s=r.every(h=>h.length===1),l=r.length;if(s&&!a){let h=r.flat();if(h.length===1&&h[0].categoryMatches.length===0){let d=h[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===d}}else{let f=h.reduce((d,m,b)=>(d[m.tokenTypeIdx]=!0,m.categoryMatches.forEach(v=>{d[v]=!0}),d),[]);return function(){let d=this.LA_FAST(1);return f[d.tokenTypeIdx]===!0}}}else return function(){e:for(let h=0;h<l;h++){let f=r[h],d=f.length;for(let m=0;m<d;m++){let b=this.LA_FAST(m+1);if(t(b,f[m])===!1)continue e}return!0}return!1}}function Lqr(r){let t=new Array(r);for(let a=0;a<r;a++)t[a]=[];return t}function Yft(r){let t=[""];for(let a=0;a<r.length;a++){let s=r[a],l=[];for(let h=0;h<t.length;h++){let f=t[h];l.push(f+"_"+s.tokenTypeIdx);for(let d=0;d<s.categoryMatches.length;d++){let m="_"+s.categoryMatches[d];l.push(f+m)}}t=l}return t}function Wbi(r,t,a){for(let s=0;s<r.length;s++){if(s===a)continue;let l=r[s];for(let h=0;h<t.length;h++){let f=t[h];if(l[f]===!0)return!1}}return!0}function Nqr(r,t){let a=r.map(f=>$Ee([f],1)),s=Lqr(a.length),l=a.map(f=>{let d={};return f.forEach(m=>{Yft(m.partialPath).forEach(v=>{d[v]=!0})}),d}),h=a;for(let f=1;f<=t;f++){let d=h;h=Lqr(d.length);for(let m=0;m<d.length;m++){let b=d[m];for(let v=0;v<b.length;v++){let T=b[v].partialPath,C=b[v].suffixDef,E=Yft(T);if(Wbi(l,E,m)||C.length===0||T.length===t){let R=s[m];if(zEe(R,T)===!1){R.push(T);for(let L=0;L<E.length;L++){let _=E[L];l[m][_]=!0}}}else{let R=$Ee(C,f+1,T);h[m]=h[m].concat(R),R.forEach(L=>{Yft(L.partialPath).forEach(I=>{l[m][I]=!0})})}}}}return s}function Lse(r,t,a,s){let l=new GEe(r,jd.ALTERNATION,s);return t.accept(l),Nqr(l.result,a)}function _se(r,t,a,s){let l=new GEe(r,a);t.accept(l);let h=l.result,d=new Xft(t,r,a).startWalking(),m=new uf({definition:h}),b=new uf({definition:d});return Nqr([m,b],s)}function zEe(r,t){e:for(let a=0;a<r.length;a++){let s=r[a];if(s.length===t.length){for(let l=0;l<s.length;l++){let h=t[l],f=s[l];if((h===f||f.categoryMatchesMap[h.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}function Oqr(r,t){return r.length<t.length&&r.every((a,s)=>{let l=t[s];return a===l||l.categoryMatchesMap[a.tokenTypeIdx]})}function Pqr(r){return r.every(t=>t.every(a=>a.every(s=>s.categoryMatches.length===0)))}var jd,Xft,GEe,rH=ae(()=>{"use strict";Rse();xEe();OB();Wb();(function(r){r[r.OPTION=0]="OPTION",r[r.REPETITION=1]="REPETITION",r[r.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",r[r.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",r[r.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",r[r.ALTERNATION=5]="ALTERNATION"})(jd||(jd={}));i(jEe,"getProdType");i(_qr,"buildLookaheadFuncForOr");i(Dqr,"buildLookaheadFuncForOptionalProd");i(Iqr,"buildAlternativesLookAheadFunc");i(Mqr,"buildSingleAlternativeLookaheadFunction");Xft=class extends S8{static{i(this,"RestDefinitionFinderWalker")}constructor(t,a,s){super(),this.topProd=t,this.targetOccurrence=a,this.targetProdType=s}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(t,a,s,l){return t.idx===this.targetOccurrence&&this.targetProdType===a?(this.restDef=s.concat(l),!0):!1}walkOption(t,a,s){this.checkIsTarget(t,jd.OPTION,a,s)||super.walkOption(t,a,s)}walkAtLeastOne(t,a,s){this.checkIsTarget(t,jd.REPETITION_MANDATORY,a,s)||super.walkOption(t,a,s)}walkAtLeastOneSep(t,a,s){this.checkIsTarget(t,jd.REPETITION_MANDATORY_WITH_SEPARATOR,a,s)||super.walkOption(t,a,s)}walkMany(t,a,s){this.checkIsTarget(t,jd.REPETITION,a,s)||super.walkOption(t,a,s)}walkManySep(t,a,s){this.checkIsTarget(t,jd.REPETITION_WITH_SEPARATOR,a,s)||super.walkOption(t,a,s)}},GEe=class extends Vb{static{i(this,"InsideDefinitionFinderVisitor")}constructor(t,a,s){super(),this.targetOccurrence=t,this.targetProdType=a,this.targetRef=s,this.result=[]}checkIsTarget(t,a){t.idx===this.targetOccurrence&&this.targetProdType===a&&(this.targetRef===void 0||t===this.targetRef)&&(this.result=t.definition)}visitOption(t){this.checkIsTarget(t,jd.OPTION)}visitRepetition(t){this.checkIsTarget(t,jd.REPETITION)}visitRepetitionMandatory(t){this.checkIsTarget(t,jd.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(t){this.checkIsTarget(t,jd.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(t){this.checkIsTarget(t,jd.REPETITION_WITH_SEPARATOR)}visitAlternation(t){this.checkIsTarget(t,jd.ALTERNATION)}};i(Lqr,"initializeArrayOfArrays");i(Yft,"pathToHashKeys");i(Wbi,"isUniquePrefixHash");i(Nqr,"lookAheadSequenceFromAlternatives");i(Lse,"getLookaheadPathsForOr");i(_se,"getLookaheadPathsForOptionalProd");i(zEe,"containsPath");i(Oqr,"isStrictPrefixOfPath");i(Pqr,"areTokenCategoriesNotUsed")});function Bqr(r){return r.lookaheadStrategy.validate({rules:r.rules,tokenTypes:r.tokenTypes,grammarName:r.grammarName}).map(a=>Object.assign({type:P0.CUSTOM_LOOKAHEAD_VALIDATION},a))}function Fqr(r,t,a,s){let l=r.flatMap(m=>Hbi(m,a)),h=Qbi(r,t,a),f=r.flatMap(m=>Xbi(m,a)),d=r.flatMap(m=>Ybi(m,r,s,a));return l.concat(h,f,d)}function Hbi(r,t){let a=new Kft;r.accept(a);let s=a.allProductions,l=Object.groupBy(s,qbi),h=Object.fromEntries(Object.entries(l).filter(([d,m])=>m.length>1));return Object.values(h).map(d=>{let m=d[0],b=t.buildDuplicateFoundError(r,d),v=A2(m),T={message:b,type:P0.DUPLICATE_PRODUCTIONS,ruleName:r.name,dslName:v,occurrence:m.idx},C=$qr(m);return C&&(T.parameter=C),T})}function qbi(r){return`${A2(r)}_#_${r.idx}_#_${$qr(r)}`}function $qr(r){return r instanceof Ec?r.terminalType.name:r instanceof cf?r.nonTerminalName:""}function Ybi(r,t,a,s){let l=[];if(t.reduce((f,d)=>d.name===r.name?f+1:f,0)>1){let f=s.buildDuplicateRuleNameError({topLevelRule:r,grammarName:a});l.push({message:f,type:P0.DUPLICATE_RULE_NAME,ruleName:r.name})}return l}function Gqr(r,t,a){let s=[],l;return t.includes(r)||(l=`Invalid rule override, rule: ->${r}<- cannot be overridden in the grammar: ->${a}<-as it is not defined in any of the super grammars `,s.push({message:l,type:P0.INVALID_RULE_OVERRIDE,ruleName:r})),s}function Qft(r,t,a,s=[]){let l=[],h=UEe(t.definition);if(h.length===0)return[];{let f=r.name;h.includes(r)&&l.push({message:a.buildLeftRecursionError({topLevelRule:r,leftRecursionPath:s}),type:P0.LEFT_RECURSION,ruleName:f});let m=s.concat([r]),v=h.filter(T=>!m.includes(T)).flatMap(T=>{let C=[...s];return C.push(T),Qft(r,T,a,C)});return l.concat(v)}}function UEe(r){let t=[];if(r.length===0)return t;let a=r[0];if(a instanceof cf)t.push(a.referencedRule);else if(a instanceof uf||a instanceof Rf||a instanceof og||a instanceof lg||a instanceof Sp||a instanceof Wu)t=t.concat(UEe(a.definition));else if(a instanceof Ap)t=a.definition.map(h=>UEe(h.definition)).flat();else if(!(a instanceof Ec))throw Error("non exhaustive match");let s=_B(a),l=r.length>1;if(s&&l){let h=r.slice(1);return t.concat(UEe(h))}else return t}function jqr(r,t){let a=new Dse;return r.accept(a),a.alternations.flatMap(h=>h.definition.slice(0,-1).flatMap((d,m)=>Rqr([d],[],A8,1).length===0?[{message:t.buildEmptyAlternationError({topLevelRule:r,alternation:h,emptyChoiceIdx:m}),type:P0.NONE_LAST_EMPTY_ALT,ruleName:r.name,occurrence:h.idx,alternative:m+1}]:[]))}function zqr(r,t,a){let s=new Dse;r.accept(s);let l=s.alternations;return l=l.filter(f=>f.ignoreAmbiguities!==!0),l.flatMap(f=>{let d=f.idx,m=f.maxLookahead||t,b=Lse(d,r,m,f),v=Kbi(b,f,r,a),T=Jbi(b,f,r,a);return v.concat(T)})}function Xbi(r,t){let a=new Dse;return r.accept(a),a.alternations.flatMap(h=>h.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:r,alternation:h}),type:P0.TOO_MANY_ALTS,ruleName:r.name,occurrence:h.idx}]:[])}function Uqr(r,t,a){let s=[];return r.forEach(l=>{let h=new Jft;l.accept(h),h.allProductions.forEach(d=>{let m=jEe(d),b=d.maxLookahead||t,v=d.idx;if(_se(v,l,m,b)[0].flat().length===0){let E=a.buildEmptyRepetitionError({topLevelRule:l,repetition:d});s.push({message:E,type:P0.NO_NON_EMPTY_LOOKAHEAD,ruleName:l.name})}})}),s}function Kbi(r,t,a,s){let l=[];return r.reduce((d,m,b)=>(t.definition[b].ignoreAmbiguities===!0||m.forEach(v=>{let T=[b];r.forEach((C,E)=>{b!==E&&zEe(C,v)&&t.definition[E].ignoreAmbiguities!==!0&&T.push(E)}),T.length>1&&!zEe(l,v)&&(l.push(v),d.push({alts:T,path:v}))}),d),[]).map(d=>{let m=d.alts.map(v=>v+1);return{message:s.buildAlternationAmbiguityError({topLevelRule:a,alternation:t,ambiguityIndices:m,prefixPath:d.path}),type:P0.AMBIGUOUS_ALTS,ruleName:a.name,occurrence:t.idx,alternatives:d.alts}})}function Jbi(r,t,a,s){let l=r.reduce((f,d,m)=>{let b=d.map(v=>({idx:m,path:v}));return f.concat(b)},[]);return l.flatMap(f=>{if(t.definition[f.idx].ignoreAmbiguities===!0)return[];let m=f.idx,b=f.path;return l.filter(C=>t.definition[C.idx].ignoreAmbiguities!==!0&&C.idx<m&&Oqr(C.path,b)).map(C=>{let E=[C.idx+1,m+1],S=t.idx===0?"":t.idx;return{message:s.buildAlternationPrefixAmbiguityError({topLevelRule:a,alternation:t,ambiguityIndices:E,prefixPath:C.path}),type:P0.AMBIGUOUS_PREFIX_ALTS,ruleName:a.name,occurrence:S,alternatives:E}})})}function Qbi(r,t,a){let s=[],l=t.map(h=>h.name);return r.forEach(h=>{let f=h.name;if(l.includes(f)){let d=a.buildNamespaceConflictError(h);s.push({message:d,type:P0.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:f})}}),s}var Kft,Dse,Jft,Ise=ae(()=>{"use strict";L2();Wb();rH();Rse();OB();i(Bqr,"validateLookahead");i(Fqr,"validateGrammar");i(Hbi,"validateDuplicateProductions");i(qbi,"identifyProductionForDuplicates");i($qr,"getExtraProductionArgument");Kft=class extends Vb{static{i(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(t){this.allProductions.push(t)}visitOption(t){this.allProductions.push(t)}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}visitAlternation(t){this.allProductions.push(t)}visitTerminal(t){this.allProductions.push(t)}};i(Ybi,"validateRuleDoesNotAlreadyExist");i(Gqr,"validateRuleIsOverridden");i(Qft,"validateNoLeftRecursion");i(UEe,"getFirstNoneTerminal");Dse=class extends Vb{static{i(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(t){this.alternations.push(t)}};i(jqr,"validateEmptyOrAlternative");i(zqr,"validateAmbiguousAlternationAlternatives");Jft=class extends Vb{static{i(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}};i(Xbi,"validateTooManyAlts");i(Uqr,"validateSomeNonEmptyLookaheadPath");i(Kbi,"checkAlternativesAmbiguities");i(Jbi,"checkPrefixAlternativesAmbiguities");i(Qbi,"checkTerminalAndNoneTerminalsNameSpace")});function Vqr(r){let t=Object.assign({errMsgProvider:Eqr},r),a={};return r.rules.forEach(s=>{a[s.name]=s}),Sqr(a,t.errMsgProvider)}function Wqr(r){var t;let a=(t=r.errMsgProvider)!==null&&t!==void 0?t:nC;return Fqr(r.rules,r.tokenTypes,a,r.grammarName)}var Hqr=ae(()=>{"use strict";Aqr();Ise();eH();i(Vqr,"resolveGrammar");i(Wqr,"validateGrammar")});function $D(r){return Jqr.includes(r.name)}var qqr,Yqr,Xqr,Kqr,Jqr,nH,$B,Mse,Nse,Ose,iH=ae(()=>{"use strict";qqr="MismatchedTokenException",Yqr="NoViableAltException",Xqr="EarlyExitException",Kqr="NotAllInputParsedException",Jqr=[qqr,Yqr,Xqr,Kqr];Object.freeze(Jqr);i($D,"isRecognitionException");nH=class extends Error{static{i(this,"RecognitionException")}constructor(t,a){super(t),this.token=a,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},$B=class extends nH{static{i(this,"MismatchedTokenException")}constructor(t,a,s){super(t,a),this.previousToken=s,this.name=qqr}},Mse=class extends nH{static{i(this,"NoViableAltException")}constructor(t,a,s){super(t,a),this.previousToken=s,this.name=Yqr}},Nse=class extends nH{static{i(this,"NotAllInputParsedException")}constructor(t,a){super(t,a),this.name=Kqr}},Ose=class extends nH{static{i(this,"EarlyExitException")}constructor(t,a,s){super(t,a),this.previousToken=s,this.name=Xqr}}});function Zbi(r,t,a,s,l,h,f){var d,m,b;let v=s|l,T=(d=(m=this.firstAfterRepMap)[b=this.currRuleShortName])!==null&&d!==void 0?d:m[b]=[],C=T[v];if(C===void 0){let L=this.getCurrRuleFullName(),_=this.getGAstProductions()[L];C=new h(_,l).startWalking(),T[v]=C}let E=C.token,S=C.occurrence,R=C.isEndOfRule;this.RULE_STACK_IDX===0&&R&&E===void 0&&(E=R2,S=1),!(E===void 0||S===void 0)&&this.shouldInRepetitionRecoveryBeTried(E,S,f)&&this.tryInRepetitionRecovery(r,t,a,E)}var Zft,tdt,edt,VEe,rdt=ae(()=>{"use strict";FB();Rse();iH();Ift();L2();Zft={},tdt="InRuleRecoveryException",edt=class extends Error{static{i(this,"InRuleRecoveryException")}constructor(t){super(t),this.name=tdt}},VEe=class{static{i(this,"Recoverable")}initRecoverable(t){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(t,"recoveryEnabled")?t.recoveryEnabled:Hb.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Zbi)}getTokenToInsert(t){let a=BB(t,"",-1,-1,-1,-1,-1,-1);return a.isInsertedInRecovery=!0,a}canTokenTypeBeInsertedInRecovery(t){return!0}canTokenTypeBeDeletedInRecovery(t){return!0}tryInRepetitionRecovery(t,a,s,l){let h=this.findReSyncTokenType(),f=this.exportLexerState(),d=[],m=!1,b=this.LA_FAST(1),v=this.LA_FAST(1),T=i(()=>{let C=this.LA(0),E=this.errorMessageProvider.buildMismatchTokenMessage({expected:l,actual:b,previous:C,ruleName:this.getCurrRuleFullName()}),S=new $B(E,b,this.LA(0));S.resyncedTokens=d.slice(0,-1),this.SAVE_ERROR(S)},"generateErrorMessage");for(;!m;)if(this.tokenMatcher(v,l)){T();return}else if(s.call(this)){T(),t.apply(this,a);return}else this.tokenMatcher(v,h)?m=!0:(v=this.SKIP_TOKEN(),this.addToResyncTokens(v,d));this.importLexerState(f)}shouldInRepetitionRecoveryBeTried(t,a,s){return!(s===!1||this.tokenMatcher(this.LA_FAST(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,a)))}getNextPossibleTokenTypes(t){let a=t.ruleStack[0],l=this.getGAstProductions()[a];return new PEe(l,t).startWalking()}getFollowsForInRuleRecovery(t,a){let s=this.getCurrentGrammarPath(t,a);return this.getNextPossibleTokenTypes(s)}tryInRuleRecovery(t,a){if(this.canRecoverWithSingleTokenInsertion(t,a))return this.getTokenToInsert(t);if(this.canRecoverWithSingleTokenDeletion(t)){let s=this.SKIP_TOKEN();return this.consumeToken(),s}throw new edt("sad sad panda")}canPerformInRuleRecovery(t,a){return this.canRecoverWithSingleTokenInsertion(t,a)||this.canRecoverWithSingleTokenDeletion(t)}canRecoverWithSingleTokenInsertion(t,a){if(!this.canTokenTypeBeInsertedInRecovery(t)||a.length===0)return!1;let s=this.LA_FAST(1);return a.find(h=>this.tokenMatcher(s,h))!==void 0}canRecoverWithSingleTokenDeletion(t){return this.canTokenTypeBeDeletedInRecovery(t)?this.tokenMatcher(this.LA(2),t):!1}isInCurrentRuleReSyncSet(t){let a=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(a).includes(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),a=this.LA_FAST(1),s=2;for(;;){let l=t.find(h=>Ese(a,h));if(l!==void 0)return l;a=this.LA(s),s++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return Zft;let t=this.currRuleShortName,a=this.getLastExplicitRuleOccurrenceIndex(),s=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:a,inRule:this.shortRuleNameToFullName(s)}}buildFullFollowKeyStack(){let t=this.RULE_STACK,a=this.RULE_OCCURRENCE_STACK,s=this.RULE_STACK_IDX+1,l=new Array(s);for(let h=0;h<s;h++)h===0?l[h]=Zft:l[h]={ruleName:this.shortRuleNameToFullName(t[h]),idxInCallingRule:a[h],inRule:this.shortRuleNameToFullName(t[h-1])};return l}flattenFollowSet(){return this.buildFullFollowKeyStack().map(a=>this.getFollowSetFromFollowKey(a)).flat()}getFollowSetFromFollowKey(t){if(t===Zft)return[R2];let a=t.ruleName+t.idxInCallingRule+TEe+t.inRule;return this.resyncFollows[a]}addToResyncTokens(t,a){return this.tokenMatcher(t,R2)||a.push(t),a}reSyncTo(t){let a=[],s=this.LA_FAST(1);for(;this.tokenMatcher(s,t)===!1;)s=this.SKIP_TOKEN(),this.addToResyncTokens(s,a);return a.slice(0,-1)}attemptInRepetitionRecovery(t,a,s,l,h,f,d){}getCurrentGrammarPath(t,a){let s=this.getHumanReadableRuleStack(),l=this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1);return{ruleStack:s,occurrenceStack:l,lastTok:t,lastTokOccurrence:a}}getHumanReadableRuleStack(){let t=this.RULE_STACK_IDX+1,a=new Array(t);for(let s=0;s<t;s++)a[s]=this.shortRuleNameToFullName(this.RULE_STACK[s]);return a}};i(Zbi,"attemptInRepetitionRecovery")});var ndt=ae(()=>{"use strict"});var Pse,idt=ae(()=>{"use strict";eH();L2();Ise();rH();Pse=class{static{i(this,"LLkLookaheadStrategy")}constructor(t){var a;this.maxLookahead=(a=t?.maxLookahead)!==null&&a!==void 0?a:Hb.maxLookahead}validate(t){let a=this.validateNoLeftRecursion(t.rules);if(a.length===0){let s=this.validateEmptyOrAlternatives(t.rules),l=this.validateAmbiguousAlternationAlternatives(t.rules,this.maxLookahead),h=this.validateSomeNonEmptyLookaheadPath(t.rules,this.maxLookahead);return[...a,...s,...l,...h]}return a}validateNoLeftRecursion(t){return t.flatMap(a=>Qft(a,a,nC))}validateEmptyOrAlternatives(t){return t.flatMap(a=>jqr(a,nC))}validateAmbiguousAlternationAlternatives(t,a){return t.flatMap(s=>zqr(s,a,nC))}validateSomeNonEmptyLookaheadPath(t,a){return Uqr(t,a,nC)}buildLookaheadForAlternation(t){return _qr(t.prodOccurrence,t.rule,t.maxLookahead,t.hasPredicates,t.dynamicTokensEnabled,Iqr)}buildLookaheadForOptional(t){return Dqr(t.prodOccurrence,t.rule,t.maxLookahead,t.dynamicTokensEnabled,jEe(t.prodType),Mqr)}}});function evi(r){WEe.reset(),r.accept(WEe);let t=WEe.dslMethods;return WEe.reset(),t}var HEe,adt,WEe,Qqr=ae(()=>{"use strict";L2();ndt();Wb();idt();HEe=class{static{i(this,"LooksAhead")}initLooksAhead(t){this.dynamicTokensEnabled=Object.hasOwn(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Hb.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(t,"maxLookahead")?t.maxLookahead:Hb.maxLookahead,this.lookaheadStrategy=Object.hasOwn(t,"lookaheadStrategy")?t.lookaheadStrategy:new Pse({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(t){t.forEach(a=>{this.TRACE_INIT(`${a.name} Rule Lookahead`,()=>{let{alternation:s,repetition:l,option:h,repetitionMandatory:f,repetitionMandatoryWithSeparator:d,repetitionWithSeparator:m}=evi(a);s.forEach(b=>{let v=b.idx===0?"":b.idx;this.TRACE_INIT(`${A2(b)}${v}`,()=>{let T=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:b.idx,rule:a,maxLookahead:b.maxLookahead||this.maxLookahead,hasPredicates:b.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[a.name],256|b.idx,T)})}),l.forEach(b=>{this.computeLookaheadFunc(a,b.idx,768,"Repetition",b.maxLookahead,A2(b))}),h.forEach(b=>{this.computeLookaheadFunc(a,b.idx,512,"Option",b.maxLookahead,A2(b))}),f.forEach(b=>{this.computeLookaheadFunc(a,b.idx,1024,"RepetitionMandatory",b.maxLookahead,A2(b))}),d.forEach(b=>{this.computeLookaheadFunc(a,b.idx,1536,"RepetitionMandatoryWithSeparator",b.maxLookahead,A2(b))}),m.forEach(b=>{this.computeLookaheadFunc(a,b.idx,1280,"RepetitionWithSeparator",b.maxLookahead,A2(b))})})})}computeLookaheadFunc(t,a,s,l,h,f){this.TRACE_INIT(`${f}${a===0?"":a}`,()=>{let d=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:a,rule:t,maxLookahead:h||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:l});this.setLaFuncCache(this.fullRuleNameToShort[t.name],s|a,d)})}setLaFuncCache(t,a,s){let l=this.lookAheadFuncsCache[t];l===void 0&&(l=[],this.lookAheadFuncsCache[t]=l),l[a]=s}},adt=class extends Vb{static{i(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(t){this.dslMethods.option.push(t)}visitRepetitionWithSeparator(t){this.dslMethods.repetitionWithSeparator.push(t)}visitRepetitionMandatory(t){this.dslMethods.repetitionMandatory.push(t)}visitRepetitionMandatoryWithSeparator(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)}visitRepetition(t){this.dslMethods.repetition.push(t)}visitAlternation(t){this.dslMethods.alternation.push(t)}},WEe=new adt;i(evi,"collectMethods")});function ldt(r,t){r.startOffset===-1?(r.startOffset=t.startOffset,r.endOffset=t.endOffset):r.endOffset<t.endOffset&&(r.endOffset=t.endOffset)}function cdt(r,t){r.startOffset===-1?(r.startOffset=t.startOffset,r.startColumn=t.startColumn,r.startLine=t.startLine,r.endOffset=t.endOffset,r.endColumn=t.endColumn,r.endLine=t.endLine):r.endOffset<t.endOffset&&(r.endOffset=t.endOffset,r.endColumn=t.endColumn,r.endLine=t.endLine)}function Zqr(r,t,a){r.children[a]===void 0?r.children[a]=[t]:r.children[a].push(t)}function eYr(r,t,a){r.children[t]===void 0?r.children[t]=[a]:r.children[t].push(a)}var tYr=ae(()=>{"use strict";i(ldt,"setNodeLocationOnlyOffset");i(cdt,"setNodeLocationFull");i(Zqr,"addTerminalToCst");i(eYr,"addNoneTerminalToCst")});function udt(r,t){Object.defineProperty(r,tvi,{enumerable:!1,configurable:!0,writable:!1,value:t})}var tvi,rYr=ae(()=>{"use strict";tvi="name";i(udt,"defineNameProp")});function rvi(r,t){let a=Object.keys(r),s=a.length;for(let l=0;l<s;l++){let h=a[l],f=r[h],d=f.length;for(let m=0;m<d;m++){let b=f[m];b.tokenTypeIdx===void 0&&this[b.name](b.children,t)}}}function nYr(r,t){let a=i(function(){},"derivedConstructor");udt(a,r+"BaseSemantics");let s={visit:i(function(l,h){if(Array.isArray(l)&&(l=l[0]),l!==void 0)return this[l.name](l.children,h)},"visit"),validateVisitor:i(function(){let l=nvi(this,t);if(l.length!==0){let h=l.map(f=>f.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
${h.join(`
|
|
|
|
`).replace(/\n/g,`
|
|
`)}`)}},"validateVisitor")};return a.prototype=s,a.prototype.constructor=a,a._RULE_NAMES=t,a}function iYr(r,t,a){let s=i(function(){},"derivedConstructor");udt(s,r+"BaseSemanticsWithDefaults");let l=Object.create(a.prototype);return t.forEach(h=>{l[h]=rvi}),s.prototype=l,s.prototype.constructor=s,s}function nvi(r,t){return ivi(r,t)}function ivi(r,t){return t.filter(l=>typeof r[l]!="function").map(l=>({msg:`Missing visitor method: <${l}> on ${r.constructor.name} CST Visitor.`,type:hdt.MISSING_METHOD,methodName:l})).filter(Boolean)}var hdt,aYr=ae(()=>{"use strict";rYr();i(rvi,"defaultVisit");i(nYr,"createBaseSemanticVisitorConstructor");i(iYr,"createBaseVisitorConstructorWithDefaults");(function(r){r[r.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",r[r.MISSING_METHOD=1]="MISSING_METHOD"})(hdt||(hdt={}));i(nvi,"validateVisitor");i(ivi,"validateMissingCstMethods")});var KEe,sYr=ae(()=>{"use strict";tYr();aYr();L2();KEe=class{static{i(this,"TreeBuilder")}initTreeBuilder(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Object.hasOwn(t,"nodeLocationTracking")?t.nodeLocationTracking:Hb.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=cdt,this.setNodeLocationFromNode=cdt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=ldt,this.setNodeLocationFromNode=ldt,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid <nodeLocationTracking> config option: "${t.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(t){t.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(t){t.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(t){t.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(t){let a=this.LA_FAST(1);t.location={startOffset:a.startOffset,startLine:a.startLine,startColumn:a.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(t){let a={name:t,children:Object.create(null)};this.setInitialNodeLocation(a),this.CST_STACK.push(a)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(t){let a=this.LA(0),s=t.location;s.startOffset!==-1&&s.startOffset<=a.startOffset?(s.endOffset=a.endOffset,s.endLine=a.endLine,s.endColumn=a.endColumn):(s.startOffset=-1,s.startLine=-1,s.startColumn=-1)}cstPostRuleOnlyOffset(t){let a=this.LA(0),s=t.location;s.startOffset!==-1&&s.startOffset<=a.startOffset?s.endOffset=a.endOffset:s.startOffset=-1}cstPostTerminal(t,a){let s=this.CST_STACK[this.CST_STACK.length-1];Zqr(s,a,t),this.setNodeLocationFromToken(s.location,a)}cstPostNonTerminal(t,a){let s=this.CST_STACK[this.CST_STACK.length-1];eYr(s,a,t),this.setNodeLocationFromNode(s.location,t.location)}get currCSTNode(){let t=this;return t.CST_STACK[t.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let t=nYr(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let t=iYr(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}}});var JEe,oYr=ae(()=>{"use strict";L2();JEe=class{static{i(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):L8}LA_FAST(t){let a=this.currIdx+t;return this.tokVector[a]}LA(t){let a=this.currIdx+t;return a<0||this.tokVectorLength<=a?L8:this.tokVector[a]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(t){this.currIdx=t}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}}});var QEe,lYr=ae(()=>{"use strict";iH();L2();eH();Ise();Wb();QEe=class{static{i(this,"RecognizerApi")}ACTION(t){return t.call(this)}consume(t,a,s){return this.consumeInternal(a,t,s)}subrule(t,a,s){return this.subruleInternal(a,t,s)}option(t,a){return this.optionInternal(a,t)}or(t,a){return this.orInternal(a,t)}many(t,a){return this.manyInternal(t,a)}atLeastOne(t,a){return this.atLeastOneInternal(t,a)}CONSUME(t,a){return this.consumeInternal(t,0,a)}CONSUME1(t,a){return this.consumeInternal(t,1,a)}CONSUME2(t,a){return this.consumeInternal(t,2,a)}CONSUME3(t,a){return this.consumeInternal(t,3,a)}CONSUME4(t,a){return this.consumeInternal(t,4,a)}CONSUME5(t,a){return this.consumeInternal(t,5,a)}CONSUME6(t,a){return this.consumeInternal(t,6,a)}CONSUME7(t,a){return this.consumeInternal(t,7,a)}CONSUME8(t,a){return this.consumeInternal(t,8,a)}CONSUME9(t,a){return this.consumeInternal(t,9,a)}SUBRULE(t,a){return this.subruleInternal(t,0,a)}SUBRULE1(t,a){return this.subruleInternal(t,1,a)}SUBRULE2(t,a){return this.subruleInternal(t,2,a)}SUBRULE3(t,a){return this.subruleInternal(t,3,a)}SUBRULE4(t,a){return this.subruleInternal(t,4,a)}SUBRULE5(t,a){return this.subruleInternal(t,5,a)}SUBRULE6(t,a){return this.subruleInternal(t,6,a)}SUBRULE7(t,a){return this.subruleInternal(t,7,a)}SUBRULE8(t,a){return this.subruleInternal(t,8,a)}SUBRULE9(t,a){return this.subruleInternal(t,9,a)}OPTION(t){return this.optionInternal(t,0)}OPTION1(t){return this.optionInternal(t,1)}OPTION2(t){return this.optionInternal(t,2)}OPTION3(t){return this.optionInternal(t,3)}OPTION4(t){return this.optionInternal(t,4)}OPTION5(t){return this.optionInternal(t,5)}OPTION6(t){return this.optionInternal(t,6)}OPTION7(t){return this.optionInternal(t,7)}OPTION8(t){return this.optionInternal(t,8)}OPTION9(t){return this.optionInternal(t,9)}OR(t){return this.orInternal(t,0)}OR1(t){return this.orInternal(t,1)}OR2(t){return this.orInternal(t,2)}OR3(t){return this.orInternal(t,3)}OR4(t){return this.orInternal(t,4)}OR5(t){return this.orInternal(t,5)}OR6(t){return this.orInternal(t,6)}OR7(t){return this.orInternal(t,7)}OR8(t){return this.orInternal(t,8)}OR9(t){return this.orInternal(t,9)}MANY(t){this.manyInternal(0,t)}MANY1(t){this.manyInternal(1,t)}MANY2(t){this.manyInternal(2,t)}MANY3(t){this.manyInternal(3,t)}MANY4(t){this.manyInternal(4,t)}MANY5(t){this.manyInternal(5,t)}MANY6(t){this.manyInternal(6,t)}MANY7(t){this.manyInternal(7,t)}MANY8(t){this.manyInternal(8,t)}MANY9(t){this.manyInternal(9,t)}MANY_SEP(t){this.manySepFirstInternal(0,t)}MANY_SEP1(t){this.manySepFirstInternal(1,t)}MANY_SEP2(t){this.manySepFirstInternal(2,t)}MANY_SEP3(t){this.manySepFirstInternal(3,t)}MANY_SEP4(t){this.manySepFirstInternal(4,t)}MANY_SEP5(t){this.manySepFirstInternal(5,t)}MANY_SEP6(t){this.manySepFirstInternal(6,t)}MANY_SEP7(t){this.manySepFirstInternal(7,t)}MANY_SEP8(t){this.manySepFirstInternal(8,t)}MANY_SEP9(t){this.manySepFirstInternal(9,t)}AT_LEAST_ONE(t){this.atLeastOneInternal(0,t)}AT_LEAST_ONE1(t){return this.atLeastOneInternal(1,t)}AT_LEAST_ONE2(t){this.atLeastOneInternal(2,t)}AT_LEAST_ONE3(t){this.atLeastOneInternal(3,t)}AT_LEAST_ONE4(t){this.atLeastOneInternal(4,t)}AT_LEAST_ONE5(t){this.atLeastOneInternal(5,t)}AT_LEAST_ONE6(t){this.atLeastOneInternal(6,t)}AT_LEAST_ONE7(t){this.atLeastOneInternal(7,t)}AT_LEAST_ONE8(t){this.atLeastOneInternal(8,t)}AT_LEAST_ONE9(t){this.atLeastOneInternal(9,t)}AT_LEAST_ONE_SEP(t){this.atLeastOneSepFirstInternal(0,t)}AT_LEAST_ONE_SEP1(t){this.atLeastOneSepFirstInternal(1,t)}AT_LEAST_ONE_SEP2(t){this.atLeastOneSepFirstInternal(2,t)}AT_LEAST_ONE_SEP3(t){this.atLeastOneSepFirstInternal(3,t)}AT_LEAST_ONE_SEP4(t){this.atLeastOneSepFirstInternal(4,t)}AT_LEAST_ONE_SEP5(t){this.atLeastOneSepFirstInternal(5,t)}AT_LEAST_ONE_SEP6(t){this.atLeastOneSepFirstInternal(6,t)}AT_LEAST_ONE_SEP7(t){this.atLeastOneSepFirstInternal(7,t)}AT_LEAST_ONE_SEP8(t){this.atLeastOneSepFirstInternal(8,t)}AT_LEAST_ONE_SEP9(t){this.atLeastOneSepFirstInternal(9,t)}RULE(t,a,s=aH){if(this.definedRulesNames.includes(t)){let f={message:nC.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),type:P0.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(f)}this.definedRulesNames.push(t);let l=this.defineRule(t,a,s);return this[t]=l,l}OVERRIDE_RULE(t,a,s=aH){let l=Gqr(t,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(l);let h=this.defineRule(t,a,s);return this[t]=h,h}BACKTRACK(t,a){var s;let l=(s=t.coreRule)!==null&&s!==void 0?s:t;return function(){this.isBackTrackingStack.push(1);let h=this.saveRecogState();try{return l.apply(this,a),!0}catch(f){if($D(f))return!1;throw f}finally{this.reloadRecogState(h),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return vEe(Object.values(this.gastProductionsCache))}}});var ZEe,cYr=ae(()=>{"use strict";ndt();iH();rH();Rse();L2();rdt();FB();OB();ZEe=class{static{i(this,"RecognizerEngine")}initRecognizerEngine(t,a){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=ZW,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(a,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
For Further details.`);if(Array.isArray(t)){if(t.length===0)throw Error(`A Token Vocabulary cannot be empty.
|
|
Note that the first argument for the parser constructor
|
|
is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
For Further details.`)}if(Array.isArray(t))this.tokensMap=t.reduce((h,f)=>(h[f.name]=f,h),{});else if(Object.hasOwn(t,"modes")&&Object.values(t.modes).flat().every(mqr)){let h=Object.values(t.modes).flat(),f=[...new Set(h)];this.tokensMap=f.reduce((d,m)=>(d[m.name]=m,d),{})}else if(typeof t=="object"&&t!==null)this.tokensMap=Object.assign({},t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=R2;let l=(Object.hasOwn(t,"modes")?Object.values(t.modes).flat():Object.values(t)).every(h=>{var f;return((f=h.categoryMatches)===null||f===void 0?void 0:f.length)==0});this.tokenMatcher=l?ZW:A8,R8(Object.values(this.tokensMap))}defineRule(t,a,s){if(this.selfAnalysisDone)throw Error(`Grammar rule <${t}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let l=Object.hasOwn(s,"resyncEnabled")?s.resyncEnabled:aH.resyncEnabled,h=Object.hasOwn(s,"recoveryValueFunc")?s.recoveryValueFunc:aH.recoveryValueFunc,f=this.ruleShortNameIdx++;this.shortRuleNameToFull[f]=t,this.fullRuleNameToShort[t]=f;let d;return this.outputCst===!0?d=i(function(...T){try{this.ruleInvocationStateUpdate(f,t,this.subruleIdx),a.apply(this,T);let C=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(C),C}catch(C){return this.invokeRuleCatch(C,l,h)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):d=i(function(...T){try{return this.ruleInvocationStateUpdate(f,t,this.subruleIdx),a.apply(this,T)}catch(C){return this.invokeRuleCatch(C,l,h)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(i(function(...T){this.onBeforeParse(t);try{return d.apply(this,T)}finally{this.onAfterParse(t)}},"rootRule"),{ruleName:t,originalGrammarAction:a,coreRule:d})}invokeRuleCatch(t,a,s){let l=this.RULE_STACK_IDX===0,h=a&&!this.isBackTracking()&&this.recoveryEnabled;if($D(t)){let f=t;if(h){let d=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(d))if(f.resyncedTokens=this.reSyncTo(d),this.outputCst){let m=this.CST_STACK[this.CST_STACK.length-1];return m.recoveredNode=!0,m}else return s(t);else{if(this.outputCst){let m=this.CST_STACK[this.CST_STACK.length-1];m.recoveredNode=!0,f.partialCstResult=m}throw f}}else{if(l)return this.moveToTerminatedState(),s(t);throw f}}else throw t}optionInternal(t,a){let s=512|a;return this.optionInternalLogic(t,a,s)}optionInternalLogic(t,a,s){let l=this.currRuleLookaheadFuncs[s],h;if(typeof t!="function"){h=t.DEF;let f=t.GATE;if(f!==void 0){let d=l;l=i(()=>f.call(this)&&d.call(this),"lookAheadFunc")}}else h=t;if(l.call(this)===!0)return h.call(this)}atLeastOneInternal(t,a){let s=1024|t;return this.atLeastOneInternalLogic(t,a,s)}atLeastOneInternalLogic(t,a,s){let l=this.currRuleLookaheadFuncs[s],h;if(typeof a!="function"){h=a.DEF;let f=a.GATE;if(f!==void 0){let d=l;l=i(()=>f.call(this)&&d.call(this),"lookAheadFunc")}}else h=a;if(l.call(this)===!0){let f=this.doSingleRepetition(h);for(;l.call(this)===!0&&f===!0;)f=this.doSingleRepetition(h)}else throw this.raiseEarlyExitException(t,jd.REPETITION_MANDATORY,a.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,a],l,1024,t,FEe)}atLeastOneSepFirstInternal(t,a){let s=1536|t;this.atLeastOneSepFirstInternalLogic(t,a,s)}atLeastOneSepFirstInternalLogic(t,a,s){let l=a.DEF,h=a.SEP;if(this.currRuleLookaheadFuncs[s].call(this)===!0){l.call(this);let d=i(()=>this.tokenMatcher(this.LA_FAST(1),h),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA_FAST(1),h)===!0;)this.CONSUME(h),l.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,h,d,l,Ase],d,1536,t,Ase)}else throw this.raiseEarlyExitException(t,jd.REPETITION_MANDATORY_WITH_SEPARATOR,a.ERR_MSG)}manyInternal(t,a){let s=768|t;return this.manyInternalLogic(t,a,s)}manyInternalLogic(t,a,s){let l=this.currRuleLookaheadFuncs[s],h;if(typeof a!="function"){h=a.DEF;let d=a.GATE;if(d!==void 0){let m=l;l=i(()=>d.call(this)&&m.call(this),"lookaheadFunction")}}else h=a;let f=!0;for(;l.call(this)===!0&&f===!0;)f=this.doSingleRepetition(h);this.attemptInRepetitionRecovery(this.manyInternal,[t,a],l,768,t,BEe,f)}manySepFirstInternal(t,a){let s=1280|t;this.manySepFirstInternalLogic(t,a,s)}manySepFirstInternalLogic(t,a,s){let l=a.DEF,h=a.SEP;if(this.currRuleLookaheadFuncs[s].call(this)===!0){l.call(this);let d=i(()=>this.tokenMatcher(this.LA_FAST(1),h),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA_FAST(1),h)===!0;)this.CONSUME(h),l.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,h,d,l,Sse],d,1280,t,Sse)}}repetitionSepSecondInternal(t,a,s,l,h){for(;s();)this.CONSUME(a),l.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,a,s,l,h],s,1536,t,h)}doSingleRepetition(t){let a=this.getLexerPosition();return t.call(this),this.getLexerPosition()>a}orInternal(t,a){let s=256|a,l=Array.isArray(t)?t:t.DEF,f=this.currRuleLookaheadFuncs[s].call(this,l);if(f!==void 0)return l[f].ALT.call(this);this.raiseNoAltException(a,t.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(t,a,s){let l;try{let h=s!==void 0?s.ARGS:void 0;return this.subruleIdx=a,l=t.coreRule.apply(this,h),this.cstPostNonTerminal(l,s!==void 0&&s.LABEL!==void 0?s.LABEL:t.ruleName),l}catch(h){throw this.subruleInternalError(h,s,t.ruleName)}}subruleInternalError(t,a,s){throw $D(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,a!==void 0&&a.LABEL!==void 0?a.LABEL:s),delete t.partialCstResult),t}consumeInternal(t,a,s){let l;try{let h=this.LA_FAST(1);this.tokenMatcher(h,t)===!0?(this.consumeToken(),l=h):this.consumeInternalError(t,h,s)}catch(h){l=this.consumeInternalRecovery(t,a,h)}return this.cstPostTerminal(s!==void 0&&s.LABEL!==void 0?s.LABEL:t.name,l),l}consumeInternalError(t,a,s){let l,h=this.LA(0);throw s!==void 0&&s.ERR_MSG?l=s.ERR_MSG:l=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:a,previous:h,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new $B(l,a,h))}consumeInternalRecovery(t,a,s){if(this.recoveryEnabled&&s.name==="MismatchedTokenException"&&!this.isBackTracking()){let l=this.getFollowsForInRuleRecovery(t,a);try{return this.tryInRuleRecovery(t,l)}catch(h){throw h.name===tdt?s:h}}else throw s}saveRecogState(){let t=this.errors,a=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:a,CST_STACK:this.CST_STACK}}reloadRecogState(t){this.errors=t.errors,this.importLexerState(t.lexerState);let a=t.RULE_STACK;for(let s=0;s<a.length;s++)this.RULE_STACK[s]=a[s];this.RULE_STACK_IDX=a.length-1,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(t,a,s){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=s,this.RULE_STACK[++this.RULE_STACK_IDX]=t,this.currRuleShortName=t,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[t],this.cstInvocationStateUpdate(a)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let t=this.currRuleShortName;return this.shortRuleNameToFull[t]}shortRuleNameToFullName(t){return this.shortRuleNameToFull[t]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),R2)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(t){for(let a=0;a<this.maxLookahead+1;a++)this.tokVector.push(L8)}onAfterParse(t){if(this.isAtEndOfInput()===!1){let a=this.LA(1),s=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:a,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Nse(s,a))}for(;this.tokVector.at(-1)===L8;)this.tokVector.pop()}}});var eSe,uYr=ae(()=>{"use strict";iH();rH();L2();eSe=class{static{i(this,"ErrorHandler")}initErrorHandler(t){this._errors=[],this.errorMessageProvider=Object.hasOwn(t,"errorMessageProvider")?t.errorMessageProvider:Hb.errorMessageProvider}SAVE_ERROR(t){if($D(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return[...this._errors]}set errors(t){this._errors=t}raiseEarlyExitException(t,a,s){let l=this.getCurrRuleFullName(),h=this.getGAstProductions()[l],d=_se(t,h,a,this.maxLookahead)[0],m=[];for(let v=1;v<=this.maxLookahead;v++)m.push(this.LA(v));let b=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:d,actual:m,previous:this.LA(0),customUserDescription:s,ruleName:l});throw this.SAVE_ERROR(new Ose(b,this.LA(1),this.LA(0)))}raiseNoAltException(t,a){let s=this.getCurrRuleFullName(),l=this.getGAstProductions()[s],h=Lse(t,l,this.maxLookahead),f=[];for(let b=1;b<=this.maxLookahead;b++)f.push(this.LA(b));let d=this.LA(0),m=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:h,actual:f,previous:d,customUserDescription:a,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Mse(m,this.LA(1),d))}}});function Fse(r,t,a,s=!1){rSe(a);let l=this.recordingProdStack.at(-1),h=typeof t=="function"?t:t.DEF,f=new r({definition:[],idx:a});return s&&(f.separator=t.SEP),Object.hasOwn(t,"MAX_LOOKAHEAD")&&(f.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(f),h.call(this),l.definition.push(f),this.recordingProdStack.pop(),nSe}function svi(r,t){rSe(t);let a=this.recordingProdStack.at(-1),s=Array.isArray(r)===!1,l=s===!1?r:r.DEF,h=new Ap({definition:[],idx:t,ignoreAmbiguities:s&&r.IGNORE_AMBIGUITIES===!0});Object.hasOwn(r,"MAX_LOOKAHEAD")&&(h.maxLookahead=r.MAX_LOOKAHEAD);let f=l.some(d=>typeof d.GATE=="function");return h.hasPredicates=f,a.definition.push(h),l.forEach(d=>{let m=new uf({definition:[]});h.definition.push(m),Object.hasOwn(d,"IGNORE_AMBIGUITIES")?m.ignoreAmbiguities=d.IGNORE_AMBIGUITIES:Object.hasOwn(d,"GATE")&&(m.ignoreAmbiguities=!0),this.recordingProdStack.push(m),d.ALT.call(this),this.recordingProdStack.pop()}),nSe}function dYr(r){return r===0?"":`${r}`}function rSe(r){if(r<0||r>fYr){let t=new Error(`Invalid DSL Method idx value: <${r}>
|
|
Idx value must be a none negative value smaller than ${fYr+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}var nSe,hYr,fYr,pYr,gYr,avi,tSe,mYr=ae(()=>{"use strict";Wb();kse();OB();FB();L2();nSe={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(nSe);hYr=!0,fYr=255,pYr=Gs({name:"RECORDING_PHASE_TOKEN",pattern:ad.NA});R8([pYr]);gYr=BB(pYr,`This IToken indicates the Parser is in Recording Phase
|
|
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(gYr);avi={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},tSe=class{static{i(this,"GastRecorder")}initGastRecorder(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let t=0;t<10;t++){let a=t>0?t:"";this[`CONSUME${a}`]=function(s,l){return this.consumeInternalRecord(s,t,l)},this[`SUBRULE${a}`]=function(s,l){return this.subruleInternalRecord(s,t,l)},this[`OPTION${a}`]=function(s){return this.optionInternalRecord(s,t)},this[`OR${a}`]=function(s){return this.orInternalRecord(s,t)},this[`MANY${a}`]=function(s){this.manyInternalRecord(t,s)},this[`MANY_SEP${a}`]=function(s){this.manySepFirstInternalRecord(t,s)},this[`AT_LEAST_ONE${a}`]=function(s){this.atLeastOneInternalRecord(t,s)},this[`AT_LEAST_ONE_SEP${a}`]=function(s){this.atLeastOneSepFirstInternalRecord(t,s)}}this.consume=function(t,a,s){return this.consumeInternalRecord(a,t,s)},this.subrule=function(t,a,s){return this.subruleInternalRecord(a,t,s)},this.option=function(t,a){return this.optionInternalRecord(a,t)},this.or=function(t,a){return this.orInternalRecord(a,t)},this.many=function(t,a){this.manyInternalRecord(t,a)},this.atLeastOne=function(t,a){this.atLeastOneInternalRecord(t,a)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let t=this;for(let a=0;a<10;a++){let s=a>0?a:"";delete t[`CONSUME${s}`],delete t[`SUBRULE${s}`],delete t[`OPTION${s}`],delete t[`OR${s}`],delete t[`MANY${s}`],delete t[`MANY_SEP${s}`],delete t[`AT_LEAST_ONE${s}`],delete t[`AT_LEAST_ONE_SEP${s}`]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})}ACTION_RECORD(t){}BACKTRACK_RECORD(t,a){return()=>!0}LA_RECORD(t){return L8}topLevelRuleRecord(t,a){try{let s=new Ub({definition:[],name:t});return s.name=t,this.recordingProdStack.push(s),a.call(this),this.recordingProdStack.pop(),s}catch(s){if(s.KNOWN_RECORDER_ERROR!==!0)try{s.message=s.message+`
|
|
This error was thrown during the "grammar recording phase" For more info see:
|
|
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw s}throw s}}optionInternalRecord(t,a){return Fse.call(this,Rf,t,a)}atLeastOneInternalRecord(t,a){Fse.call(this,og,a,t)}atLeastOneSepFirstInternalRecord(t,a){Fse.call(this,lg,a,t,hYr)}manyInternalRecord(t,a){Fse.call(this,Wu,a,t)}manySepFirstInternalRecord(t,a){Fse.call(this,Sp,a,t,hYr)}orInternalRecord(t,a){return svi.call(this,t,a)}subruleInternalRecord(t,a,s){if(rSe(a),!t||!Object.hasOwn(t,"ruleName")){let d=new Error(`<SUBRULE${dYr(a)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(t)}>
|
|
inside top level rule: <${this.recordingProdStack[0].name}>`);throw d.KNOWN_RECORDER_ERROR=!0,d}let l=this.recordingProdStack.at(-1),h=t.ruleName,f=new cf({idx:a,nonTerminalName:h,label:s?.LABEL,referencedRule:void 0});return l.definition.push(f),this.outputCst?avi:nSe}consumeInternalRecord(t,a,s){if(rSe(a),!zft(t)){let f=new Error(`<CONSUME${dYr(a)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(t)}>
|
|
inside top level rule: <${this.recordingProdStack[0].name}>`);throw f.KNOWN_RECORDER_ERROR=!0,f}let l=this.recordingProdStack.at(-1),h=new Ec({idx:a,terminalType:t,label:s?.LABEL});return l.definition.push(h),gYr}};i(Fse,"recordProd");i(svi,"recordOrProd");i(dYr,"getIdxSuffix");i(rSe,"assertMethodIdxIsValid")});var iSe,yYr=ae(()=>{"use strict";YW();L2();iSe=class{static{i(this,"PerformanceTracer")}initPerformanceTracer(t){if(Object.hasOwn(t,"traceInitPerf")){let a=t.traceInitPerf,s=typeof a=="number";this.traceInitMaxIdent=s?a:1/0,this.traceInitPerf=s?a>0:a}else this.traceInitMaxIdent=0,this.traceInitPerf=Hb.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(t,a){if(this.traceInitPerf===!0){this.traceInitIndent++;let s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${s}--> <${t}>`);let{time:l,value:h}=gse(a),f=l>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&f(`${s}<-- <${t}> time: ${l}ms`),this.traceInitIndent--,h}else return a()}}});function bYr(r,t){t.forEach(a=>{let s=a.prototype;Object.getOwnPropertyNames(s).forEach(l=>{if(l==="constructor")return;let h=Object.getOwnPropertyDescriptor(s,l);h&&(h.get||h.set)?Object.defineProperty(r.prototype,l,h):r.prototype[l]=a.prototype[l]})})}var vYr=ae(()=>{"use strict";i(bYr,"applyMixins")});var L8,Hb,aH,P0,$se,Gse,L2=ae(()=>{"use strict";YW();YHr();FB();eH();Hqr();rdt();Qqr();sYr();oYr();lYr();cYr();uYr();mYr();yYr();vYr();Ise();L8=BB(R2,"",-1,-1,-1,-1,-1,-1);Object.freeze(L8);Hb=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:OEe,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),aH=Object.freeze({recoveryValueFunc:i(()=>{},"recoveryValueFunc"),resyncEnabled:!0});(function(r){r[r.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",r[r.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",r[r.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",r[r.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",r[r.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",r[r.LEFT_RECURSION=5]="LEFT_RECURSION",r[r.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",r[r.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",r[r.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",r[r.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",r[r.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",r[r.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",r[r.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",r[r.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(P0||(P0={}));$se=class r{static{i(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let a=this.className;this.TRACE_INIT("toFastProps",()=>{mse(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),this.definedRulesNames.forEach(l=>{let f=this[l].originalGrammarAction,d;this.TRACE_INIT(`${l} Rule`,()=>{d=this.topLevelRuleRecord(l,f)}),this.gastProductionsCache[l]=d})}finally{this.disableRecording()}});let s=[];if(this.TRACE_INIT("Grammar Resolving",()=>{s=Vqr({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(s)}),this.TRACE_INIT("Grammar Validations",()=>{if(s.length===0&&this.skipValidations===!1){let l=Wqr({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:nC,grammarName:a}),h=Bqr({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:a});this.definitionErrors=this.definitionErrors.concat(l,h)}}),this.definitionErrors.length===0&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let l=qHr(Object.values(this.gastProductionsCache));this.resyncFollows=l}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var l,h;(h=(l=this.lookaheadStrategy).initialize)===null||h===void 0||h.call(l,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!r.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw t=this.definitionErrors.map(l=>l.message),new Error(`Parser Definition Errors detected:
|
|
${t.join(`
|
|
-------------------------------
|
|
`)}`)})}constructor(t,a){this.definitionErrors=[],this.selfAnalysisDone=!1;let s=this;if(s.initErrorHandler(a),s.initLexerAdapter(),s.initLooksAhead(a),s.initRecognizerEngine(t,a),s.initRecoverable(a),s.initTreeBuilder(a),s.initGastRecorder(a),s.initPerformanceTracer(a),Object.hasOwn(a,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
For further details.`);this.skipValidations=Object.hasOwn(a,"skipValidations")?a.skipValidations:Hb.skipValidations}};$se.DEFER_DEFINITION_ERRORS_HANDLING=!1;bYr($se,[VEe,HEe,KEe,JEe,ZEe,QEe,eSe,tSe,iSe]);Gse=class extends $se{static{i(this,"CstParser")}constructor(t,a=Hb){let s=Object.assign({},a);s.outputCst=!0,super(t,s)}}});var wYr=ae(()=>{"use strict";Wb()});var xYr=ae(()=>{"use strict"});var TYr=ae(()=>{"use strict";wYr();xYr()});var kYr=ae(()=>{"use strict";Rft()});var aSe=ae(()=>{"use strict";Rft();L2();kse();FB();rH();idt();eH();iH();Vft();Wb();Wb();TYr();kYr()});function sH(r,t,a){let s=[a];return s.index=t,s.input=r,s}var lvi,cvi,CYr,EYr,uvi,hvi,fvi,B0,GB,sSe,zd,dvi,i5,pvi,oSe,a5,fdt,gvi,mvi,ddt,pdt,gdt,lSe,SYr,jg,mdt,cSe,ydt,bdt,vdt,wdt,xdt,Tdt,kdt,Cdt,Edt,Sdt,yvi,Adt,Rdt,Ldt,_dt,Ddt,Idt,Mdt,Ndt,Odt,Pdt,uSe,hSe,AYr,Bdt,jse,Fdt,zse,$dt,Use,Gdt,gx,fSe,Vse,jdt,dSe,Wse,Hse,oH,lH,hk,cH,zdt,mx,pSe,Udt,Vdt,Wdt,Hdt,qdt,bvi,vvi,RYr,LYr,_Yr,Ydt=ae(()=>{"use strict";aSe();i(sH,"customMatch");lvi=i((r,t)=>{if(r[t]!=='"'||r[t+1]!=="`")return null;for(let a=t+2;a<r.length-1;a++)if(r[a]==="`"&&r[a+1]==='"')return sH(r,t,r.slice(t,a+2));return null},"matchMarkdownString"),cvi=i((r,t)=>{if(r[t]!=="%"||r[t+1]!=="%")return null;for(let s=t-1;s>=0;s--){let l=r[s];if(l===`
|
|
`||l==="\r")break;if(l!==" "&&l!==" ")return null}let a=t+2;for(;a<r.length&&r[a]!==`
|
|
`&&r[a]!=="\r";)a++;return sH(r,t,r.slice(t,a))},"matchComment"),CYr=i((r,t)=>{for(let a=t-1;a>=0;a--){let s=r[a];if(s===`
|
|
`||s==="\r")return!0;if(s!==" "&&s!==" ")return!1}return!0},"isIndentedLineStart"),EYr=i((r,t,a)=>{if(!CYr(r,t))return null;let s=a.exec(r.slice(t));return s?sH(r,t,s[0]):null},"matchAccessibilityLine"),uvi=i((r,t)=>{if(!CYr(r,t))return null;let a=/^accDescr[\t ]*{/.exec(r.slice(t));if(!a)return null;let s=r.indexOf("}",t+a[0].length);return s===-1?null:sH(r,t,r.slice(t,s+1))},"matchAccDescrBlock"),hvi=i((r,t)=>{if(r[t]!=="{")return null;let a=0,s=!1,l=!1;for(let h=t;h<r.length;h++){let f=r[h];if(s){l?l=!1:f==="\\"?l=!0:f==='"'&&(s=!1);continue}if(f==='"')s=!0;else if(f==="{")a++;else if(f==="}"&&--a===0)return sH(r,t,r.slice(t,h+1))}return null},"matchJsonObject"),fvi=i((r,t)=>{let a=r.indexOf(">>",t);if(a===-1||/[\n\r]/.test(r.slice(t,a)))return null;let s=r.slice(t,a);return s.trim()?sH(r,t,s):null},"matchStereotypeText"),B0=Gs({name:"LABEL_TEXT",pattern:ad.NA}),GB=Gs({name:"WORD",pattern:ad.NA,categories:B0}),sSe=Gs({name:"NUMBER",pattern:/(?:\d+\.\d+|\d+|\.\d+)(?:[A-Za-z]+)?/,categories:B0}),zd=Gs({name:"IDENTIFIER",pattern:/\w+/,longer_alt:sSe,categories:GB}),dvi=Gs({name:"HWS",pattern:/[\t ]+/,group:ad.SKIPPED}),i5=Gs({name:"MARKDOWN_STRING",pattern:lvi,start_chars_hint:['"'],line_breaks:!0}),pvi=Gs({name:"UNCLOSED_MARKDOWN_STRING",pattern:/"`[^]*/,line_breaks:!0}),oSe=Gs({name:"COMMENT",pattern:cvi,start_chars_hint:["%"],line_breaks:!1}),a5=Gs({name:"NEWLINE",pattern:/\r\n|\n|\r/,line_breaks:!0}),fdt=Gs({name:"ACC_DESCR_BLOCK",pattern:uvi,start_chars_hint:["a"],line_breaks:!0}),gvi=/^accTitle[\t ]*:[^\n\r]*/,mvi=/^accDescr[\t ]*:[^\n\r]*/,ddt=Gs({name:"ACC_TITLE_LINE",pattern:i((r,t)=>EYr(r,t,gvi),"pattern"),start_chars_hint:["a"],line_breaks:!1}),pdt=Gs({name:"ACC_DESCR_LINE",pattern:i((r,t)=>EYr(r,t,mvi),"pattern"),start_chars_hint:["a"],line_breaks:!1}),gdt=Gs({name:"JSON_DECLARATION_START",pattern:/json[\t ]+\w+[\t ]*@[\t ]*(?={)/,push_mode:"jsonBody"}),lSe=Gs({name:"JSON_OBJECT_LITERAL",pattern:hvi,start_chars_hint:["{"],line_breaks:!0,pop_mode:!0}),SYr=Gs({name:"UNCLOSED_JSON_OBJECT_LITERAL",pattern:/{[^]*/,line_breaks:!0,pop_mode:!0}),jg=i((r,t)=>Gs({name:r,pattern:t,longer_alt:zd,categories:GB}),"keyword"),mdt=jg("USECASE",/usecase-beta/),cSe=jg("ACTOR",/actor/),ydt=jg("SYSTEM_BOUNDARY",/systemBoundary/),bdt=jg("END",/end/),vdt=jg("DIRECTION",/direction/),wdt=jg("TD",/TD/),xdt=jg("TB",/TB/),Tdt=jg("BT",/BT/),kdt=jg("LR",/LR/),Cdt=jg("RL",/RL/),Edt=jg("NOTE",/note/),Sdt=jg("FOR",/for/),yvi=jg("JSON",/json/),Adt=jg("CLASS_DEF",/classDef/),Rdt=jg("CLASS",/class/),Ldt=jg("STYLE",/style/),_dt=jg("INCLUDE",/include/i),Ddt=jg("EXTEND",/extend/i),Idt=jg("TRUE",/true/),Mdt=jg("FALSE",/false/),Ndt=Gs({name:"GENERALIZATION",pattern:/--\|>/}),Odt=Gs({name:"DEPENDENCY_ARROW",pattern:/\.\.>/}),Pdt=Gs({name:"STEREOTYPE_START",pattern:/<</,push_mode:"stereotype"}),uSe=Gs({name:"STEREOTYPE_END",pattern:/>>/,pop_mode:!0}),hSe=Gs({name:"STEREOTYPE_TEXT",pattern:fvi,line_breaks:!1}),AYr=Gs({name:"UNCLOSED_STEREOTYPE_TEXT",pattern:/[^\n\r]+/,line_breaks:!1,pop_mode:!0}),Bdt=Gs({name:"CLASS_SEPARATOR",pattern:/:::/}),jse=Gs({name:"FORWARD_SOLID",pattern:/--+>/}),Fdt=Gs({name:"BACKWARD_SOLID",pattern:/<--+/}),zse=Gs({name:"FORWARD_CIRCLE",pattern:/--o/}),$dt=Gs({name:"BACKWARD_CIRCLE",pattern:/o--/}),Use=Gs({name:"FORWARD_CROSS",pattern:/--x/}),Gdt=Gs({name:"BACKWARD_CROSS",pattern:/x--/}),gx=Gs({name:"MARKERLESS_SOLID",pattern:/--+/}),fSe=Gs({name:"METADATA_START",pattern:/@{/}),Vse=Gs({name:"AT",pattern:/@/,categories:B0}),jdt=Gs({name:"LBRACE",pattern:/{/}),dSe=Gs({name:"RBRACE",pattern:/}/}),Wse=Gs({name:"LBRACKET",pattern:/\[/}),Hse=Gs({name:"RBRACKET",pattern:/]/}),oH=Gs({name:"LPAREN",pattern:/\(/}),lH=Gs({name:"RPAREN",pattern:/\)/}),hk=Gs({name:"COMMA",pattern:/,/,categories:B0}),cH=Gs({name:"COLON",pattern:/:/,categories:B0}),zdt=Gs({name:"HASH_COLOR",pattern:/#[\dA-Fa-f]+/,categories:B0}),mx=Gs({name:"PLAIN_STRING",pattern:/"[^\n\r"]*"|'[^\n\r']*'/}),pSe=Gs({name:"CSS_IDENTIFIER",pattern:/--[A-Z_a-z][\w-]*|[A-Z_a-z]\w*(?:-\w+)+/,categories:B0}),Udt=Gs({name:"CSS_ESCAPED_COMMA",pattern:/\\,/,categories:B0}),Vdt=Gs({name:"DASH",pattern:/-/,categories:B0}),Wdt=Gs({name:"DOT",pattern:/\./,categories:B0}),Hdt=Gs({name:"PERCENT",pattern:/%/,categories:B0}),qdt=Gs({name:"CSS_PUNCTUATION",pattern:/[!#$&*+/=?^_|~]/,categories:B0}),bvi=Gs({name:"LABEL_PUNCTUATION",pattern:/[;<>\\`]/,categories:B0}),vvi=Gs({name:"LABEL_SYMBOL",pattern:/[^\t\n\r !-~]+/,categories:B0}),RYr=[B0,GB,dvi,i5,pvi,oSe,a5,fdt,ddt,pdt,gdt,mdt,cSe,ydt,bdt,vdt,wdt,xdt,Tdt,kdt,Cdt,Edt,Sdt,yvi,Adt,Rdt,Ldt,_dt,Ddt,Idt,Mdt,Ndt,Odt,Pdt,Bdt,jse,Fdt,zse,$dt,Use,Gdt,gx,fSe,Vse,jdt,dSe,Wse,Hse,oH,lH,hk,cH,zdt,mx,pSe,zd,sSe,Udt,Vdt,Wdt,Hdt,qdt,bvi,vvi],LYr={defaultMode:"defaultMode",modes:{defaultMode:[...RYr],jsonBody:[lSe,SYr],stereotype:[uSe,hSe,AYr]}},_Yr=[...RYr,lSe,SYr,uSe,hSe,AYr]});var DYr,IYr=ae(()=>{"use strict";aSe();Ydt();DYr=new ad(LYr)});var MYr,wvi,Xdt,jB,Kdt=ae(()=>{"use strict";aSe();Ydt();MYr=i(r=>Ese(r,B0)||r.tokenType===mx||r.tokenType===i5,"isLabelToken"),wvi={allowmixing:!0,newpage:!0,package:!0,rectangle:!0,skinparam:!0},Xdt=class extends Gse{static{i(this,"UsecaseParser")}constructor(){super(_Yr,{nodeLocationTracking:"full"}),this.RULE("start",()=>{this.CONSUME(mdt),this.SUBRULE(this.lineEnd),this.MANY(()=>this.SUBRULE(this.line))}),this.RULE("line",()=>{this.OR([{ALT:i(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:i(()=>this.SUBRULE(this.commentLine),"ALT")},{GATE:i(()=>this.isStatementStart(),"GATE"),ALT:i(()=>this.SUBRULE(this.statement),"ALT")}])}),this.RULE("statement",()=>{this.OR([{ALT:i(()=>this.SUBRULE(this.accTitleStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.accDescrStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.directionStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.actorStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.systemBoundaryStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.noteStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.jsonStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.classDefStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.classStatement),"ALT")},{ALT:i(()=>this.SUBRULE(this.styleStatement),"ALT")},{GATE:i(()=>this.isMetadataAssignment(),"GATE"),ALT:i(()=>this.SUBRULE(this.metadataAssignmentStatement),"ALT")},{GATE:i(()=>!this.isForbiddenPlantUmlStatement(),"GATE"),ALT:i(()=>this.SUBRULE(this.entityStatement),"ALT")}])}),this.RULE("lineEnd",()=>{this.OR([{ALT:i(()=>this.CONSUME(a5),"ALT")},{ALT:i(()=>this.CONSUME(R2),"ALT")}])}),this.RULE("blankLine",()=>{this.CONSUME(a5)}),this.RULE("commentLine",()=>{this.CONSUME(oSe),this.SUBRULE(this.lineEnd)}),this.RULE("accTitleStatement",()=>{this.CONSUME(ddt),this.SUBRULE(this.lineEnd)}),this.RULE("accDescrStatement",()=>{this.OR([{ALT:i(()=>this.CONSUME(pdt),"ALT")},{ALT:i(()=>this.CONSUME(fdt),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("actorStatement",()=>{this.CONSUME(cSe),this.SUBRULE(this.actorItem),this.OPTION(()=>{this.OR([{ALT:i(()=>this.AT_LEAST_ONE(()=>{this.CONSUME(hk),this.SUBRULE2(this.actorItem)}),"ALT")},{ALT:i(()=>this.SUBRULE(this.relationTail),"ALT")}])}),this.SUBRULE(this.lineEnd)}),this.RULE("actorItem",()=>{this.SUBRULE(this.actorName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.stereotype)),this.OPTION3(()=>this.SUBRULE(this.classSuffix))}),this.RULE("actorName",()=>{this.OR([{ALT:i(()=>{this.CONSUME(zd),this.OPTION(()=>{this.CONSUME(oH),this.SUBRULE(this.nodeLabel),this.CONSUME(lH)})},"ALT")},{ALT:i(()=>this.CONSUME(mx),"ALT")},{ALT:i(()=>this.CONSUME(i5),"ALT")}])}),this.RULE("actorDeclarationOnly",()=>{this.CONSUME(cSe),this.SUBRULE(this.actorItem),this.MANY(()=>{this.CONSUME(hk),this.SUBRULE2(this.actorItem)}),this.SUBRULE(this.lineEnd)}),this.RULE("entityStatement",()=>{this.SUBRULE(this.entityName),this.OPTION(()=>this.SUBRULE(this.relationTail)),this.SUBRULE(this.lineEnd)}),this.RULE("entityName",()=>{this.OR([{ALT:i(()=>{this.CONSUME(zd),this.OPTION(()=>{this.OR2([{ALT:i(()=>{this.CONSUME(oH),this.SUBRULE(this.nodeLabel),this.CONSUME(lH)},"ALT")},{ALT:i(()=>{this.CONSUME(Wse),this.SUBRULE2(this.nodeLabel),this.CONSUME(Hse)},"ALT")}])})},"ALT")},{ALT:i(()=>this.CONSUME(mx),"ALT")},{ALT:i(()=>this.CONSUME(i5),"ALT")}]),this.OPTION2(()=>this.SUBRULE(this.useCaseMetadata)),this.OPTION3(()=>this.SUBRULE(this.stereotype)),this.OPTION4(()=>this.SUBRULE(this.classSuffix))}),this.RULE("nodeLabel",()=>{this.OR([{ALT:i(()=>this.CONSUME(mx),"ALT")},{ALT:i(()=>this.CONSUME(i5),"ALT")},{ALT:i(()=>this.AT_LEAST_ONE(()=>this.CONSUME(B0)),"ALT")}])}),this.RULE("useCaseMetadata",()=>{this.SUBRULE(this.metadata)}),this.RULE("relationTail",()=>{this.OPTION({GATE:i(()=>this.LA(1).tokenType===zd&&this.LA(2).tokenType===Vse,"GATE"),DEF:i(()=>{this.CONSUME(zd),this.CONSUME(Vse)},"DEF")}),this.SUBRULE(this.arrow),this.SUBRULE(this.entityName)}),this.RULE("arrow",()=>{this.OR([{ALT:i(()=>this.SUBRULE(this.semanticRelation),"ALT")},{ALT:i(()=>this.SUBRULE(this.forwardSolidOperator),"ALT")},{ALT:i(()=>this.SUBRULE(this.backwardSolidOperator),"ALT")},{ALT:i(()=>this.SUBRULE(this.markerlessSolidOperator),"ALT")},{ALT:i(()=>this.SUBRULE(this.forwardCircleOperator),"ALT")},{ALT:i(()=>this.SUBRULE(this.backwardCircleOperator),"ALT")},{ALT:i(()=>this.SUBRULE(this.forwardCrossOperator),"ALT")},{ALT:i(()=>this.SUBRULE(this.backwardCrossOperator),"ALT")}])}),this.RULE("forwardSolidOperator",()=>{this.CONSUME(jse)}),this.RULE("backwardSolidOperator",()=>{this.CONSUME(Fdt),this.OPTION({GATE:i(()=>this.LA(0).image==="<--"&&this.hasLabeledRight([gx]),"GATE"),DEF:i(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(gx)},"DEF")})}),this.RULE("markerlessSolidOperator",()=>{this.CONSUME(gx),this.OPTION({GATE:i(()=>this.LA(0).image==="--"&&this.hasLabeledRight([jse,gx,zse,Use]),"GATE"),DEF:i(()=>{this.SUBRULE(this.edgeLabel),this.OR([{ALT:i(()=>this.CONSUME(jse),"ALT")},{ALT:i(()=>this.CONSUME2(gx),"ALT")},{ALT:i(()=>this.CONSUME(zse),"ALT")},{ALT:i(()=>this.CONSUME(Use),"ALT")}])},"DEF")})}),this.RULE("forwardCircleOperator",()=>{this.CONSUME(zse)}),this.RULE("backwardCircleOperator",()=>{this.CONSUME($dt),this.OPTION({GATE:i(()=>this.hasLabeledRight([gx]),"GATE"),DEF:i(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(gx)},"DEF")})}),this.RULE("forwardCrossOperator",()=>{this.CONSUME(Use)}),this.RULE("backwardCrossOperator",()=>{this.CONSUME(Gdt),this.OPTION({GATE:i(()=>this.hasLabeledRight([gx]),"GATE"),DEF:i(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(gx)},"DEF")})}),this.RULE("edgeLabel",()=>{this.OR([{ALT:i(()=>this.CONSUME(mx),"ALT")},{ALT:i(()=>this.CONSUME(i5),"ALT")},{ALT:i(()=>this.AT_LEAST_ONE(()=>this.CONSUME(B0)),"ALT")}])}),this.RULE("semanticRelation",()=>{this.OR([{ALT:i(()=>{this.CONSUME(Odt),this.CONSUME(cH),this.OR2([{ALT:i(()=>this.CONSUME(_dt),"ALT")},{ALT:i(()=>this.CONSUME(Ddt),"ALT")}])},"ALT")},{ALT:i(()=>this.CONSUME(Ndt),"ALT")}])}),this.RULE("metadata",()=>{this.CONSUME(fSe),this.MANY(()=>this.CONSUME(a5)),this.OPTION(()=>{this.SUBRULE(this.metadataProperty),this.MANY2(()=>{this.SUBRULE(this.metadataSeparator),this.SUBRULE2(this.metadataProperty)}),this.OPTION2(()=>this.CONSUME(hk)),this.MANY3(()=>this.CONSUME2(a5))}),this.CONSUME(dSe)}),this.RULE("metadataProperty",()=>{this.OR([{ALT:i(()=>this.CONSUME(zd),"ALT")},{ALT:i(()=>this.CONSUME(mx),"ALT")}]),this.CONSUME(cH),this.OR2([{ALT:i(()=>this.CONSUME2(zd),"ALT")},{ALT:i(()=>this.CONSUME2(mx),"ALT")},{ALT:i(()=>this.CONSUME(Idt),"ALT")},{ALT:i(()=>this.CONSUME(Mdt),"ALT")}])}),this.RULE("metadataSeparator",()=>{this.OR([{ALT:i(()=>{this.CONSUME(hk),this.MANY(()=>this.CONSUME(a5))},"ALT")},{ALT:i(()=>{this.AT_LEAST_ONE(()=>this.CONSUME2(a5)),this.OPTION(()=>this.CONSUME2(hk)),this.MANY2(()=>this.CONSUME3(a5))},"ALT")}])}),this.RULE("systemBoundaryStatement",()=>{this.CONSUME(ydt),this.SUBRULE(this.systemBoundaryName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd),this.SUBRULE(this.systemBoundaryContent),this.CONSUME(bdt),this.SUBRULE2(this.lineEnd)}),this.RULE("systemBoundaryName",()=>{this.OR([{ALT:i(()=>{this.CONSUME(zd),this.OPTION(()=>{this.OR2([{ALT:i(()=>{this.CONSUME(oH),this.SUBRULE(this.nodeLabel),this.CONSUME(lH)},"ALT")},{ALT:i(()=>{this.CONSUME(Wse),this.SUBRULE2(this.nodeLabel),this.CONSUME(Hse)},"ALT")}])})},"ALT")},{ALT:i(()=>this.CONSUME(mx),"ALT")},{ALT:i(()=>this.CONSUME(i5),"ALT")}])}),this.RULE("systemBoundaryContent",()=>{this.MANY(()=>{this.OR([{ALT:i(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:i(()=>this.SUBRULE(this.commentLine),"ALT")},{ALT:i(()=>this.SUBRULE(this.boundaryElement),"ALT")}])})}),this.RULE("boundaryElement",()=>{this.OR([{ALT:i(()=>this.SUBRULE(this.actorDeclarationOnly),"ALT")},{ALT:i(()=>{this.SUBRULE(this.entityName),this.SUBRULE(this.lineEnd)},"ALT")}])}),this.RULE("metadataAssignmentStatement",()=>{this.SUBRULE(this.metadataAssignmentTarget),this.SUBRULE(this.metadata),this.SUBRULE(this.lineEnd)}),this.RULE("metadataAssignmentTarget",()=>{this.OR([{ALT:i(()=>this.CONSUME(zd),"ALT")},{ALT:i(()=>this.CONSUME(mx),"ALT")},{ALT:i(()=>this.CONSUME(i5),"ALT")}])}),this.RULE("noteStatement",()=>{this.CONSUME(Edt),this.CONSUME(Sdt),this.CONSUME(zd),this.SUBRULE(this.nodeLabel),this.SUBRULE(this.lineEnd)}),this.RULE("stereotype",()=>{this.CONSUME(Pdt),this.CONSUME(hSe),this.CONSUME(uSe)}),this.RULE("classSuffix",()=>{this.CONSUME(Bdt),this.CONSUME(zd),this.MANY(()=>{this.CONSUME(hk),this.CONSUME2(zd)})}),this.RULE("jsonStatement",()=>{this.CONSUME(gdt),this.CONSUME(lSe),this.OPTION(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd)}),this.RULE("directionStatement",()=>{this.CONSUME(vdt),this.OR([{ALT:i(()=>this.CONSUME(wdt),"ALT")},{ALT:i(()=>this.CONSUME(xdt),"ALT")},{ALT:i(()=>this.CONSUME(Tdt),"ALT")},{ALT:i(()=>this.CONSUME(kdt),"ALT")},{ALT:i(()=>this.CONSUME(Cdt),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("classDefStatement",()=>{this.CONSUME(Adt),this.CONSUME(zd),this.MANY(()=>{this.CONSUME(hk),this.CONSUME2(zd)}),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("classStatement",()=>{this.CONSUME(Rdt),this.CONSUME(zd),this.MANY(()=>{this.CONSUME(hk),this.CONSUME2(zd)}),this.CONSUME3(zd),this.MANY2(()=>{this.CONSUME2(hk),this.CONSUME4(zd)}),this.SUBRULE(this.lineEnd)}),this.RULE("styleStatement",()=>{this.CONSUME(Ldt),this.CONSUME(zd),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("styles",()=>{this.SUBRULE(this.styleValue),this.MANY(()=>{this.CONSUME(hk),this.SUBRULE2(this.styleValue)})}),this.RULE("styleValue",()=>{this.OR([{ALT:i(()=>this.CONSUME(GB),"ALT")},{ALT:i(()=>this.CONSUME(pSe),"ALT")},{ALT:i(()=>{this.CONSUME(gx),this.CONSUME2(GB)},"ALT")}]),this.CONSUME(cH),this.AT_LEAST_ONE(()=>this.SUBRULE(this.styleComponent))}),this.RULE("styleComponent",()=>{this.OR([{ALT:i(()=>this.CONSUME(GB),"ALT")},{ALT:i(()=>this.CONSUME(mx),"ALT")},{ALT:i(()=>this.CONSUME(sSe),"ALT")},{ALT:i(()=>this.CONSUME(zdt),"ALT")},{ALT:i(()=>this.CONSUME(pSe),"ALT")},{ALT:i(()=>this.CONSUME(Udt),"ALT")},{ALT:i(()=>this.CONSUME(Vdt),"ALT")},{ALT:i(()=>this.CONSUME(Wdt),"ALT")},{ALT:i(()=>this.CONSUME(Hdt),"ALT")},{ALT:i(()=>this.CONSUME(qdt),"ALT")},{ALT:i(()=>this.CONSUME(cH),"ALT")},{ALT:i(()=>this.CONSUME(oH),"ALT")},{ALT:i(()=>this.CONSUME(lH),"ALT")},{ALT:i(()=>this.CONSUME(Wse),"ALT")},{ALT:i(()=>this.CONSUME(Hse),"ALT")},{ALT:i(()=>this.CONSUME(jdt),"ALT")},{ALT:i(()=>this.CONSUME(dSe),"ALT")},{ALT:i(()=>this.CONSUME(Vse),"ALT")},{ALT:i(()=>this.CONSUME(gx),"ALT")}])}),this.performSelfAnalysis()}isMetadataAssignment(){let t=this.LA(1).tokenType;return(t===zd||t===mx||t===i5)&&this.LA(2).tokenType===fSe}isStatementStart(){let t=this.LA(1).tokenType;return t!==R2&&t!==a5&&t!==oSe}isForbiddenPlantUmlStatement(){return this.LA(1).tokenType===zd&&wvi[this.LA(1).image.toLowerCase()]===!0}hasLabeledRight(t){if(!MYr(this.LA(1)))return!1;for(let a=2;;a++){let s=this.LA(a);if(t.includes(s.tokenType))return!0;if(!MYr(s))return!1}}},jB=new Xdt});function NYr(r,t,a){let s;try{s=JSON.parse(r)}catch(l){let h=l instanceof Error?l.message:String(l),f=xvi(h,r,t,a);if(!f){let d=0;try{new mSe(r).collect()}catch(m){m instanceof F0&&(d=m.offset)}f=Jdt(r,d,t,a)}throw new gSe(`Invalid JSON: ${h}`,f.line,f.column)}if(typeof s!="object"||s===null||Array.isArray(s))throw new gSe("JSON value must have an object root",t,a);return{value:s,propertyOrder:new mSe(r).collect()}}var gSe,Jdt,xvi,F0,mSe,OYr=ae(()=>{"use strict";gSe=class extends Error{constructor(a,s,l){super(`${a} (line ${s}, column ${l})`);this.line=s;this.column=l;this.name="UsecaseJsonError"}static{i(this,"UsecaseJsonError")}},Jdt=i((r,t,a,s)=>{let l=a,h=s,f=Math.min(Math.max(t,0),r.length);for(let d=0;d<f;d++){let m=r[d];m==="\r"?(l++,h=1):m===`
|
|
`?(d===0||r[d-1]!=="\r")&&(l++,h=1):h++}return{line:l,column:h}},"locationAtOffset"),xvi=i((r,t,a,s)=>{let l=/\bposition (\d+)\b/u.exec(r);if(l)return Jdt(t,Number.parseInt(l[1],10),a,s);let h=/\bline (\d+) column (\d+)\b/u.exec(r);if(h){let f=Number.parseInt(h[1],10),d=Number.parseInt(h[2],10);return{line:a+f-1,column:f===1?s+d-1:d}}if(/unexpected end|end of json input/iu.test(r))return Jdt(t,t.length,a,s)},"locationFromErrorMessage"),F0=class extends Error{constructor(a){super("Invalid JSON token");this.offset=a}static{i(this,"JsonWalkError")}},mSe=class{constructor(t){this.text=t;this.offset=0;this.propertyOrder={}}static{i(this,"PropertyOrderCollector")}collect(){if(this.skipWhitespace(),this.collectValue(""),this.skipWhitespace(),this.offset!==this.text.length)throw new F0(this.offset);return this.propertyOrder}collectValue(t){this.skipWhitespace();let a=this.text[this.offset];if(a==="{")this.collectObject(t);else if(a==="[")this.collectArray(t);else if(a==='"')this.readString(!1);else if(a==="t")this.consumeLiteral("true");else if(a==="f")this.consumeLiteral("false");else if(a==="n")this.consumeLiteral("null");else if(a==="-"||a>="0"&&a<="9")this.consumeNumber();else throw new F0(this.offset)}collectObject(t){this.offset++;let a=[],s=new Set;if(this.propertyOrder[t]=a,this.skipWhitespace(),this.text[this.offset]==="}"){this.offset++;return}for(;this.offset<this.text.length;){if(this.text[this.offset]!=='"')throw new F0(this.offset);let l=this.readString(!0),h=`${t}/${l.replaceAll("~","~0").replaceAll("/","~1")}`;if(s.has(l)?this.deletePointerSubtree(h):(s.add(l),a.push(l)),this.skipWhitespace(),this.text[this.offset]!==":")throw new F0(this.offset);if(this.offset++,this.collectValue(h),this.skipWhitespace(),this.text[this.offset]==="}"){this.offset++;return}if(this.text[this.offset]!==",")throw new F0(this.offset);this.offset++,this.skipWhitespace()}throw new F0(this.offset)}collectArray(t){if(this.offset++,this.skipWhitespace(),this.text[this.offset]==="]"){this.offset++;return}let a=0;for(;this.offset<this.text.length;){if(this.collectValue(`${t}/${a}`),a++,this.skipWhitespace(),this.text[this.offset]==="]"){this.offset++;return}if(this.text[this.offset]!==",")throw new F0(this.offset);this.offset++,this.skipWhitespace()}throw new F0(this.offset)}readString(t){this.offset++;let a="";for(;this.offset<this.text.length;){let s=this.offset,l=this.text[this.offset++];if(l==='"')return a;if(l.charCodeAt(0)<32)throw new F0(s);if(l!=="\\"){t&&(a+=l);continue}let h=this.offset,f=this.text[this.offset++];switch(f){case'"':case"\\":case"/":t&&(a+=f);break;case"b":t&&(a+="\b");break;case"f":t&&(a+="\f");break;case"n":t&&(a+=`
|
|
`);break;case"r":t&&(a+="\r");break;case"t":t&&(a+=" ");break;case"u":{let d=this.text.slice(this.offset,this.offset+4);if(!/^[\dA-Fa-f]{4}$/u.test(d))throw new F0(this.offset);t&&(a+=String.fromCharCode(Number.parseInt(d,16))),this.offset+=4;break}default:throw new F0(h)}}throw new F0(this.offset)}consumeLiteral(t){let a=0;for(let s of t){if(this.text[this.offset+a]!==s)throw new F0(this.offset+a);a++}this.offset+=t.length}consumeNumber(){if(this.text[this.offset]==="-"&&this.offset++,this.text[this.offset]==="0")this.offset++;else if(this.text[this.offset]>="1"&&this.text[this.offset]<="9")for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++;else throw new F0(this.offset);if(this.text[this.offset]==="."){if(this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new F0(this.offset);for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++}if(this.text[this.offset]==="e"||this.text[this.offset]==="E"){if(this.offset++,(this.text[this.offset]==="+"||this.text[this.offset]==="-")&&this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new F0(this.offset);for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++}}skipWhitespace(){for(;this.offset<this.text.length;){let t=this.text[this.offset];if(t!==" "&&t!==" "&&t!==`
|
|
`&&t!=="\r")return;this.offset++}}deletePointerSubtree(t){let a=`${t}/`;for(let s of Object.keys(this.propertyOrder))(s===t||s.startsWith(a))&&delete this.propertyOrder[s]}};i(NYr,"parseOrderedJsonObject")});var Tvi,kvi,Cvi,Evi,Svi,Avi,PYr,BYr=ae(()=>{"use strict";yEe();Tvi=i(r=>({shape:r.type==="normal"?"actor":r.type==="hollow"?"actor-hollow":r.type==="awesome"?"actor-awesome":"actor-icon",...r.label===r.id?{}:{label:r.label},...r.classes.length?{classes:[...r.classes]}:{},...r.styles.length?{styles:[...r.styles]}:{},attrs:{kind:"actor",actorType:r.type,business:r.business,labelType:r.labelType,...r.icon?{icon:r.icon}:{},...r.stereotype?{stereotype:r.stereotype}:{},...r.parentId?{parentId:r.parentId}:{}}}),"actorNode"),kvi=i(r=>({shape:r.shape,...r.label===r.id?{}:{label:r.label},...r.classes.length?{classes:[...r.classes]}:{},...r.styles.length?{styles:[...r.styles]}:{},attrs:{kind:"usecase",useCaseShape:r.shape,business:r.business,labelType:r.labelType,...r.stereotype?{stereotype:r.stereotype}:{},...r.parentId?{parentId:r.parentId}:{}}}),"useCaseNode"),Cvi=i(r=>({label:r.label,shape:"note",attrs:{kind:"note",target:r.target,labelType:r.labelType}}),"noteNode"),Evi=i(r=>({label:r.id,shape:"json-table",...r.classes.length?{classes:[...r.classes]}:{},...r.styles.length?{styles:[...r.styles]}:{},attrs:{kind:"json",value:r.value,propertyOrder:r.propertyOrder,labelType:"text"}}),"jsonNode"),Svi=i(r=>({id:r.id,source:r.source,target:r.target,...r.label?{label:r.label}:{},...r.classes.length?{classes:[...r.classes]}:{},...r.styles.length?{styles:[...r.styles]}:{},attrs:{relationshipType:r.type,arrowType:r.arrowType,minlen:r.minlen,explicitId:r.explicitId,animate:r.animate,...r.animation?{animation:r.animation}:{},...r.labelType?{labelType:r.labelType}:{}}}),"relationshipEdge"),Avi=i(r=>({id:`${r.id}-edge`,source:r.id,target:r.target,attrs:{relationshipType:"note",arrowType:lf.LINE_SOLID,pattern:"dotted",minlen:1,explicitId:!1,animate:!1,internal:!0}}),"noteEdge"),PYr=i((r,t,a,s)=>{let l={};for(let m of r.getActors().values())l[m.id]=Tvi(m);for(let m of r.getUseCases().values())l[m.id]=kvi(m);for(let m of r.getNotes().values())l[m.id]=Cvi(m);for(let m of r.getJsonNodes().values())l[m.id]=Evi(m);let h={};for(let m of r.getSystemBoundaries().values())h[m.id]={...m.label===m.id?{}:{title:m.label},nodes:[...m.members],...m.classes.length?{classes:[...m.classes]}:{},...m.styles.length?{styles:[...m.styles]}:{},attrs:{kind:"systemBoundary",boundaryType:m.type,labelType:m.labelType}};let f={};for(let m of r.getClassDefs().values())f[m.id]={styles:[...m.styles]};let d=r.getDirection();return{version:1,diagramType:"usecase",source:t,header:{keyword:"usecase",direction:d==="TD"?"TB":d,span:a},...r.getAccTitle()?{accTitle:r.getAccTitle()}:{},...r.getAccDescription()?{accDescr:r.getAccDescription()}:{},nodes:l,edges:[...r.getRelationships().map(Svi),...[...r.getNotes().values()].map(Avi)],groups:h,classDefs:f,statements:s}},"buildUsecaseGraphAST")});var Ay,FYr,zB,Qdt,ySe,$Yr=ae(()=>{"use strict";BYr();Ay=i(r=>`line ${r.line}, column ${r.column} [${r.span[0]},${r.span[1]})`,"locationText"),FYr=i(r=>r===void 0?"":` (label "${r}")`,"labelSuffix"),zB=i(r=>r.generated?r.label:void 0,"generatedFrom"),Qdt=i((r,t)=>{for(let a of t)r.includes(a)||r.push(a)},"pushUnique"),ySe=class{constructor(t){this.db=t;this.source="";this.statements=[];this.elements=[];this.boundaries=[];this.jsonDrafts=[];this.relationshipDrafts=[];this.noteDrafts=[];this.metadataAssignments=[];this.classAssignments=[];this.styleAssignments=[];this.classDefinitions=[];this.directions=[];this.model=t.createModel()}static{i(this,"UsecaseModelBuilder")}reset(t){this.model=this.db.createModel(),this.source=t,this.statements=[],this.elements.length=0,this.boundaries.length=0,this.jsonDrafts.length=0,this.relationshipDrafts.length=0,this.noteDrafts.length=0,this.metadataAssignments.length=0,this.classAssignments.length=0,this.styleAssignments.length=0,this.classDefinitions.length=0,this.directions.length=0}addElement(t){this.elements.push(t)}addBoundary(t){this.boundaries.push(t)}addJson(t){this.jsonDrafts.push(t)}addRelationship(t){this.relationshipDrafts.push(t)}addNote(t){this.noteDrafts.push(t)}addMetadataAssignment(t,a,s,l){this.metadataAssignments.push({target:t,targetLocation:a,metadata:s,statement:l})}addClassDef(t,a){this.classDefinitions.push({ids:t,styles:a})}addClassAssignment(t,a){this.classAssignments.push({targets:t,classes:a})}addStyleAssignment(t,a,s){this.styleAssignments.push({target:t,location:a,styles:s})}setDirection(t){this.directions.push(t==="TD"?"TB":t)}setAccTitle(t){this.model.accTitle=t}setAccDescription(t){this.model.accDescription=t}setStatements(t){this.statements=t}getActors(){return this.model.actors}getUseCases(){return this.model.useCases}getSystemBoundaries(){return this.model.systemBoundaries}getRelationships(){return this.model.relationships}getNotes(){return this.model.notes}getJsonNodes(){return this.model.jsonNodes}getClassDefs(){return this.model.classDefs}getDirection(){return this.model.direction}getAccTitle(){return this.model.accTitle}getAccDescription(){return this.model.accDescription}finalize(t){let a=new Map,s=new Map,l=new Map,h=new Map;for(let b of this.relationshipDrafts)this.recordFirst(h,b.source.id,b.source.location.span[0]),this.recordFirst(h,b.target.id,b.target.location.span[0]);for(let b of this.elements)this.recordFirst(h,b.id,b.location.span[0]);for(let b of this.boundaries)this.recordFirst(h,b.id,b.location.span[0]);for(let b of this.jsonDrafts)this.recordFirst(h,b.id,b.location.span[0]);let f=[...this.elements.map(b=>({offset:b.location.span[0],type:"element",value:b})),...this.boundaries.map(b=>({offset:b.location.span[0],type:"boundary",value:b})),...this.jsonDrafts.map(b=>({offset:b.location.span[0],type:"json",value:b})),...this.relationshipDrafts.filter(b=>b.explicitId).map(b=>({offset:b.explicitIdLocation.span[0],type:"edge",value:b}))].sort((b,v)=>b.offset-v.offset);for(let b of f)b.type==="element"?this.collectElement(b.value,a,s):b.type==="boundary"?this.collectBoundary(b.value,a,l):b.type==="json"?this.registerUnique(a,b.value.id,"json",b.value.location,!1):this.registerUnique(a,b.value.explicitId,"edge",b.value.explicitIdLocation,!1);this.materializeElements(s,h),this.materializeBoundaries(l,h),this.materializeJson(h);let d=this.materializeRelationships(a,s,h);this.reorderElements(s,h),this.applyMetadataAssignments(a,s,l,d),this.validateAndRefreshElements(s),this.refreshBoundaries(l,s),this.materializeNotes(a),this.applyClassDefinitions(),this.applyClassesAndStyles(a,d),this.model.direction=this.directions.at(-1)??this.model.direction,this.model.symbols=new Map([...a].map(([b,v])=>[b,v.kind]));let m=PYr(this,this.source,t,this.statements);return this.model.ast=m,this.db.commit(this.model),m}collectElement(t,a,s){let l=a.get(t.id),h=zB({generated:t.generated,label:t.label.text});l&&l.kind!==t.kind&&this.conflict(`ID '${t.id}' is declared as both ${l.kind} and ${t.kind}`,t.location,l.location,h,zB(l)),l&&(l.generated||t.generated)&&this.conflict(`Generated ID '${t.id}' collides with another declaration`,t.location,l.location,h,zB(l));let f=s.get(t.id);if(!f){let d={kind:t.kind,id:t.id,label:t.label,location:t.location,generated:t.generated,classes:[...t.classes],...t.parentId?{parentId:t.parentId,parentLocation:t.parentLocation}:{},...t.shape?{shape:t.shape}:{},...t.stereotype?{stereotype:t.stereotype,stereotypeLocation:t.location}:{}};this.applyDeclarationMetadata(d,t.metadata),s.set(t.id,d),a.set(t.id,{kind:t.kind,location:t.location,generated:t.generated,label:t.label.text});return}(f.label.text!==t.label.text||f.label.type!==t.label.type)&&this.conflict(`ID '${t.id}' has conflicting labels`,t.location,f.location),t.shape&&f.shape&&t.shape!==f.shape&&this.conflict(`Use case '${t.id}' has conflicting shapes`,t.location,f.location),t.parentId&&f.parentId&&t.parentId!==f.parentId&&this.conflict(`Element '${t.id}' belongs to more than one system boundary`,t.parentLocation??t.location,f.parentLocation??f.location),t.stereotype&&f.stereotype&&t.stereotype!==f.stereotype&&this.conflict(`Element '${t.id}' has conflicting stereotypes`,t.location,f.stereotypeLocation??f.location),f.shape??=t.shape,f.parentId??=t.parentId,f.parentLocation??=t.parentLocation,f.stereotype??=t.stereotype,f.stereotypeLocation??=t.stereotype?t.location:void 0,Qdt(f.classes,t.classes),this.applyDeclarationMetadata(f,t.metadata)}collectBoundary(t,a,s){let l=a.get(t.id),h=zB({generated:t.generated,label:t.label.text});l&&l.kind!=="boundary"&&this.conflict(`ID '${t.id}' is declared as both ${l.kind} and boundary`,t.location,l.location,h,zB(l)),l&&(l.generated||t.generated)&&this.conflict(`Generated ID '${t.id}' collides with another declaration`,t.location,l.location,h,zB(l));let f=s.get(t.id);if(f){(f.label.text!==t.label.text||f.label.type!==t.label.type)&&this.conflict(`Boundary '${t.id}' has conflicting titles`,t.location,f.location),Qdt(f.classes,t.classes);return}s.set(t.id,{id:t.id,label:t.label,location:t.location,generated:t.generated,classes:[...t.classes],styles:[],members:[]}),a.set(t.id,{kind:"boundary",location:t.location,generated:t.generated,label:t.label.text})}materializeElements(t,a){for(let s of[...t.values()].sort((l,h)=>(a.get(l.id)??0)-(a.get(h.id)??0)))this.setElementModel(s)}materializeBoundaries(t,a){for(let s of[...t.values()].sort((l,h)=>(a.get(l.id)??0)-(a.get(h.id)??0)))this.model.systemBoundaries.set(s.id,{id:s.id,label:s.label.text,labelType:s.label.type,type:s.type??"rect",members:[],classes:[...s.classes],styles:[...s.styles]})}materializeJson(t){for(let a of[...this.jsonDrafts].sort((s,l)=>(t.get(s.id)??0)-(t.get(l.id)??0)))this.model.jsonNodes.set(a.id,{id:a.id,value:a.value,propertyOrder:a.propertyOrder,classes:[...a.classes],styles:[]})}materializeRelationships(t,a,s){let l=new Map,h=0;for(let f of this.relationshipDrafts){let d=this.resolveEndpoint(f.source,t,a,s),m=this.resolveEndpoint(f.target,t,a,s);this.validateRelationship(f,d,m,t);let b=f.explicitId??`edge-${h++}`,v={id:b,explicitId:!!f.explicitId,source:f.source.id,target:f.target.id,type:f.type,arrowType:f.arrowType,...f.label?{label:f.label.text,labelType:f.label.type}:{},minlen:f.minlen,classes:[],styles:[],animate:!1};this.model.relationships.push(v),l.set(b,{draft:f,relationship:v})}return this.model.relationshipCounter=h,l}resolveEndpoint(t,a,s,l){if(t.classesOnReference&&!t.declaration)throw new Error(`Relationship endpoint '${t.id}' uses ::: without declaring the node at ${Ay(t.location)}`);let h=a.get(t.id);return h?h.kind:(s.set(t.id,{kind:"usecase",id:t.id,label:t.label,location:t.location,generated:t.generated,shape:"ellipse",classes:[]}),a.set(t.id,{kind:"usecase",location:t.location,generated:t.generated,label:t.label.text}),this.recordFirst(l,t.id,t.location.span[0]),"usecase")}reorderElements(t,a){let s=new Map(this.model.actors),l=new Map(this.model.useCases);this.model.actors.clear(),this.model.useCases.clear();for(let h of[...t.values()].sort((f,d)=>(a.get(f.id)??0)-(a.get(d.id)??0))){!s.has(h.id)&&!l.has(h.id)&&this.setElementModel(h);let f=s.get(h.id)??this.model.actors.get(h.id),d=l.get(h.id)??this.model.useCases.get(h.id);f?this.model.actors.set(h.id,f):d&&this.model.useCases.set(h.id,d)}}applyMetadataAssignments(t,a,s,l){for(let h of this.metadataAssignments){let f=t.get(h.target);if(!f){let d=this.inferMetadataKind(h.metadata);throw new Error(`Metadata target '${h.target}' is unresolved${d?` (metadata implies ${d})`:""} at ${Ay(h.targetLocation)}`)}if(f.kind==="actor"||f.kind==="usecase")this.applyStandaloneElementMetadata(a.get(h.target),h.metadata);else if(f.kind==="boundary"){let d=s.get(h.target);for(let m of h.metadata.properties)(m.key!=="type"||m.value!=="rect"&&m.value!=="package")&&this.invalidMetadata(h.target,f.kind,m),d.type=m.value}else if(f.kind==="edge"){let d=l.get(h.target);if(!d)throw new Error(`Metadata target '${h.target}' is not an explicit edge at ${Ay(h.targetLocation)}`);h.statement.kind="edgeMetadata",h.statement.edges=[{id:h.target,span:h.statement.span,idSpan:h.targetLocation.span,...h.statement.metadata?{metadata:h.statement.metadata}:{}}],delete h.statement.nodes;for(let m of h.metadata.properties)m.key==="animate"&&typeof m.value=="boolean"?d.relationship.animate=m.value:m.key==="animation"&&(m.value==="fast"||m.value==="slow")?(d.relationship.animation=m.value,d.relationship.animate=!0):this.invalidMetadata(h.target,f.kind,m)}else for(let d of h.metadata.properties)this.invalidMetadata(h.target,f.kind,d)}for(let{relationship:h}of l.values())h.animation&&(h.animate=!0)}applyStandaloneElementMetadata(t,a){for(let s of a.properties)t.kind==="actor"?this.applyActorProperty(t,s,!0):s.key==="business"&&typeof s.value=="boolean"?t.business=s.value:this.invalidMetadata(t.id,t.kind,s)}applyDeclarationMetadata(t,a){if(a)for(let s of a.properties)t.kind==="actor"?this.applyActorProperty(t,s,!1):s.key==="business"&&typeof s.value=="boolean"?(t.business!==void 0&&t.business!==s.value&&this.conflict(`Use case '${t.id}' has conflicting business metadata`,s.location,t.location),t.business=s.value):this.invalidMetadata(t.id,t.kind,s)}applyActorProperty(t,a,s){a.key==="type"&&(a.value==="normal"||a.value==="hollow"||a.value==="awesome")?(!s&&t.actorType!==void 0&&t.actorType!==a.value&&this.conflict(`Actor '${t.id}' has conflicting type metadata`,a.location,t.location),t.actorType=a.value):a.key==="icon"&&typeof a.value=="string"?(!s&&t.icon!==void 0&&t.icon!==a.value&&this.conflict(`Actor '${t.id}' has conflicting icon metadata`,a.location,t.location),t.icon=a.value):a.key==="business"&&typeof a.value=="boolean"?(!s&&t.business!==void 0&&t.business!==a.value&&this.conflict(`Actor '${t.id}' has conflicting business metadata`,a.location,t.location),t.business=a.value):this.invalidMetadata(t.id,t.kind,a)}validateAndRefreshElements(t){for(let a of t.values()){let s=a.icon?"icon":a.actorType??"normal";if(a.kind==="actor"){if(a.icon&&a.actorType&&a.actorType!=="normal")throw new Error(`Actor '${a.id}' cannot combine icon with type '${a.actorType}' at ${Ay(a.location)}`);if(a.business&&(s==="icon"||s==="awesome"))throw new Error(`Business actor '${a.id}' must use normal or hollow geometry at ${Ay(a.location)}`)}else if((a.shape??"ellipse")==="rect"&&a.business)throw new Error(`Rectangular use case '${a.id}' cannot be a business use case at ${Ay(a.location)}`);this.setElementModel(a)}}refreshBoundaries(t,a){for(let s of t.values())s.members.length=0;for(let s of[...this.elements].sort((l,h)=>l.location.span[0]-h.location.span[0])){if(!s.parentId)continue;let l=t.get(s.parentId);if(!l)throw new Error(`Parent boundary '${s.parentId}' for '${s.id}' is unresolved at ${Ay(s.parentLocation??s.location)}`);l.members.includes(s.id)||l.members.push(s.id)}for(let s of a.values())if(s.parentId&&!t.has(s.parentId))throw new Error(`Parent boundary '${s.parentId}' for '${s.id}' is unresolved at ${Ay(s.parentLocation??s.location)}`);for(let s of t.values()){let l=this.model.systemBoundaries.get(s.id);l.type=s.type??"rect",l.members=[...s.members],l.classes=[...s.classes],l.styles=[...s.styles]}}materializeNotes(t){let a=0;for(let s of this.noteDrafts){let l=t.get(s.target);if(!l)throw new Error(`Note target '${s.target}' is unresolved at ${Ay(s.targetLocation)}`);l.kind!=="actor"&&l.kind!=="usecase"&&this.conflict(`Note target '${s.target}' must be an actor or use case, not ${l.kind}`,s.targetLocation,l.location);let h=`note-${a++}`;this.model.notes.set(h,{id:h,target:s.target,label:s.label.text,labelType:s.label.type})}this.model.noteCounter=a}applyClassDefinitions(){for(let t of this.classDefinitions)for(let a of t.ids)this.model.classDefs.set(a,{id:a,styles:[...t.styles]})}applyClassesAndStyles(t,a){for(let s of this.classAssignments)for(let l of s.targets)Qdt(this.getStylable(l.id,t,a,l.location).classes,s.classes);for(let s of this.styleAssignments)this.getStylable(s.target,t,a,s.location).styles.push(...s.styles)}getStylable(t,a,s,l){let h=a.get(t)?.kind,f=h==="actor"?this.model.actors.get(t):h==="usecase"?this.model.useCases.get(t):h==="boundary"?this.model.systemBoundaries.get(t):h==="json"?this.model.jsonNodes.get(t):h==="edge"?s.get(t)?.relationship:void 0;if(!f)throw new Error(`Class/style target '${t}' is unresolved or anonymous at ${Ay(l)}`);return f}validateRelationship(t,a,s,l){let h=i(f=>f==="actor"||f==="usecase"||f==="json","allowed");if(h(a)||this.conflict(`Relationship source '${t.source.id}' cannot be ${a}`,t.source.location,l.get(t.source.id).location),h(s)||this.conflict(`Relationship target '${t.target.id}' cannot be ${s}`,t.target.location,l.get(t.target.id).location),(t.type==="include"||t.type==="extend")&&(a!=="usecase"||s!=="usecase"))throw new Error(`${t.type} relationship requires use-case endpoints at ${Ay(t.location)}`);if(t.type==="generalization"&&(a!=="actor"&&a!=="usecase"||a!==s))throw new Error(`Generalization requires actor-to-actor or use-case-to-use-case endpoints at ${Ay(t.location)}`);if(t.type==="association"&&(a==="json"||s==="json")&&![0,1,2].includes(t.arrowType))throw new Error(`JSON relationship '${t.source.id}' to '${t.target.id}' permits only point, reversed-point, or markerless solid association at ${Ay(t.location)}`)}setElementModel(t){if(t.kind==="actor"){let a=t.icon?"icon":t.actorType??"normal";this.model.useCases.delete(t.id),this.model.actors.set(t.id,{id:t.id,label:t.label.text,labelType:t.label.type,type:a,...t.icon?{icon:t.icon}:{},business:t.business??!1,...t.stereotype?{stereotype:t.stereotype}:{},...t.parentId?{parentId:t.parentId}:{},classes:[...t.classes],styles:this.model.actors.get(t.id)?.styles??[]})}else this.model.actors.delete(t.id),this.model.useCases.set(t.id,{id:t.id,label:t.label.text,labelType:t.label.type,shape:t.shape??"ellipse",business:t.business??!1,...t.stereotype?{stereotype:t.stereotype}:{},...t.parentId?{parentId:t.parentId}:{},classes:[...t.classes],styles:this.model.useCases.get(t.id)?.styles??[]})}inferMetadataKind(t){let a=new Set(["actor","usecase","boundary","edge"]);for(let s of t.properties)if(s.key==="icon")a.clear(),a.add("actor");else if(s.key==="animate"||s.key==="animation")a.clear(),a.add("edge");else if(s.key==="type")a.clear(),s.value==="rect"||s.value==="package"?a.add("boundary"):(s.value==="normal"||s.value==="hollow"||s.value==="awesome")&&a.add("actor");else if(s.key==="business")a.delete("boundary"),a.delete("edge");else return;return a.size===1?[...a][0]:void 0}invalidMetadata(t,a,s){throw new Error(`Metadata property '${s.key}' is invalid for ${a} '${t}' at ${Ay(s.location)}`)}registerUnique(t,a,s,l,h){let f=t.get(a);f&&this.conflict(`ID '${a}' is declared more than once (${f.kind} and ${s})`,l,f.location,void 0,zB(f)),t.set(a,{kind:s,location:l,generated:h})}recordFirst(t,a,s){let l=t.get(a);(l===void 0||s<l)&&t.set(a,s)}conflict(t,a,s,l,h){throw new Error(`${t} at ${Ay(a)}${FYr(l)}; previous declaration at ${Ay(s)}${FYr(h)}`)}}});var Rvi,Zdt,GYr,jYr=ae(()=>{"use strict";bEe();yEe();OYr();$Yr();Kdt();Rvi=jB.getBaseCstVisitorConstructor(),Zdt=class extends Rvi{constructor(){super();this.builder=new ySe(LB);this.source="";this.anonymousEdge=0;this.anonymousNote=0;this.validateVisitor()}static{i(this,"UsecaseVisitor")}build(a,s){this.source=s,this.parentBoundary=void 0,this.anonymousEdge=0,this.anonymousNote=0,this.builder.reset(s),this.visit(a)}start(a){let s=this.tokens(a,"USECASE")[0],l=[];for(let h of this.nodes(a,"line"))l.push(this.visit(h));this.builder.setStatements(l),this.builder.finalize(this.tokenSpan(s))}line(a){let s=this.firstNode(a,"blankLine","commentLine","statement");return this.wrap(s,this.visit(s))}statement(a){return this.visit(this.firstNode(a,"accTitleStatement","accDescrStatement","directionStatement","actorStatement","systemBoundaryStatement","noteStatement","jsonStatement","classDefStatement","classStatement","styleStatement","metadataAssignmentStatement","entityStatement"))}lineEnd(a){}blankLine(a){return{kind:"blank",span:this.tokenSpan(this.tokens(a,"NEWLINE")[0])}}commentLine(a){return{kind:"comment",span:this.tokenSpan(this.tokens(a,"COMMENT")[0])}}accTitleStatement(a){let s=this.tokens(a,"ACC_TITLE_LINE")[0].image;return this.builder.setAccTitle(s.slice(s.indexOf(":")+1).trim()),{kind:"accTitle",span:[0,0]}}accDescrStatement(a){let s=this.tokens(a,"ACC_DESCR_LINE")[0],l=this.tokens(a,"ACC_DESCR_BLOCK")[0],h=s?s.image.slice(s.image.indexOf(":")+1).trim():l.image.slice(l.image.indexOf("{")+1,l.image.lastIndexOf("}")).trim();return this.builder.setAccDescription(h),{kind:"accDescr",span:[0,0]}}actorStatement(a){let s=this.nodes(a,"actorItem"),l=s.map(v=>this.visit(v)),h=this.nodes(a,"relationTail")[0],f=l.map((v,T)=>this.actorOccurrence(s[T],v,!0));for(let v of l)this.builder.addElement(this.actorDraft(v));if(!h)return{kind:"node",span:[0,0],nodes:f};let d=this.visit(h);d.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(d.target));let m=this.relationshipDraft(l[0],d,this.nodeLocation(h));this.builder.addRelationship(m);let b=m.explicitId??`edge-${this.anonymousEdge++}`;return f.push(this.entityOccurrence(this.nodes(h.children,"entityName")[0],d.target,d.target.explicitDeclaration)),{kind:"edge",span:[0,0],nodes:f,edges:[{id:b,span:[0,0],...m.explicitIdLocation?{idSpan:m.explicitIdLocation.span}:{},...m.label?{labelSpan:m.label.span}:{}}]}}actorItem(a){let s=this.visit(this.nodes(a,"actorName")[0]),l=this.nodes(a,"metadata")[0],h=this.nodes(a,"stereotype")[0],f=this.nodes(a,"classSuffix")[0],d=f?this.visit(f):{classes:[],spans:[]};return{...s,...l?{metadata:this.visit(l)}:{},...h?{stereotype:this.visit(h)}:{},classes:d.classes,classSpans:d.spans}}actorName(a){let s=this.tokens(a,"IDENTIFIER")[0],l=this.tokens(a,"PLAIN_STRING")[0]??this.tokens(a,"MARKDOWN_STRING")[0];if(s){let f=this.nodes(a,"nodeLabel")[0],d=f?this.visit(f):this.tokenLabel(s);return{id:s.image,label:d,location:this.tokenLocation(s),generated:!1,classes:[],classSpans:[]}}let h=this.tokenLabel(l);return{id:this.generateId(h.text),label:h,location:this.tokenLocation(l),generated:!0,classes:[],classSpans:[]}}actorDeclarationOnly(a){let s=this.nodes(a,"actorItem"),l=s.map(h=>this.visit(h));for(let h of l)this.builder.addElement(this.actorDraft(h));return{kind:"node",span:[0,0],nodes:l.map((h,f)=>this.actorOccurrence(s[f],h,!0))}}entityStatement(a){let s=this.nodes(a,"entityName"),l=this.visit(s[0]),h=this.nodes(a,"relationTail")[0];if(!h)return l.explicitDeclaration=!0,l.shape??="ellipse",this.builder.addElement(this.entityDraft(l)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(s[0],l,!0)]};l.explicitDeclaration&&this.builder.addElement(this.entityDraft(l));let f=this.visit(h);f.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(f.target));let d={source:this.endpoint(l),target:this.endpoint(f.target),location:this.nodeLocation(h),...f.explicitId?{explicitId:f.explicitId,explicitIdLocation:f.explicitIdLocation}:{},...f.arrow};this.builder.addRelationship(d);let m=d.explicitId??`edge-${this.anonymousEdge++}`;return{kind:"edge",span:[0,0],nodes:[this.entityOccurrence(s[0],l,l.explicitDeclaration),this.entityOccurrence(this.nodes(h.children,"entityName")[0],f.target,f.target.explicitDeclaration)],edges:[{id:m,span:[0,0],...d.explicitIdLocation?{idSpan:d.explicitIdLocation.span}:{},...d.label?{labelSpan:d.label.span}:{}}]}}entityName(a){let s=this.tokens(a,"IDENTIFIER")[0],l=this.tokens(a,"PLAIN_STRING")[0]??this.tokens(a,"MARKDOWN_STRING")[0],h=this.nodes(a,"nodeLabel")[0],f=this.nodes(a,"useCaseMetadata")[0],d=this.nodes(a,"stereotype")[0],m=this.nodes(a,"classSuffix")[0],b=m?this.visit(m):{classes:[],spans:[]};if(s){let T=h?this.visit(h):this.tokenLabel(s),C=h?this.tokens(a,"LBRACKET").length?"rect":"ellipse":void 0;return{id:s.image,label:T,location:this.tokenLocation(s),generated:!1,...C?{shape:C}:{},...f?{metadata:this.visit(f)}:{},...d?{stereotype:this.visit(d)}:{},classes:b.classes,classSpans:b.spans,explicitDeclaration:!!(C||f||d)}}let v=this.tokenLabel(l);return{id:this.generateId(v.text),label:v,location:this.tokenLocation(l),generated:!0,...f?{metadata:this.visit(f)}:{},...d?{stereotype:this.visit(d)}:{},classes:b.classes,classSpans:b.spans,explicitDeclaration:!!(f||d)}}nodeLabel(a){let s=this.allTokens(a);if(s.length===1&&(s[0].tokenType.name==="PLAIN_STRING"||s[0].tokenType.name==="MARKDOWN_STRING"))return this.tokenLabel(s[0]);let l=[s[0].startOffset,(s.at(-1).endOffset??s.at(-1).startOffset)+1];return{text:this.source.slice(l[0],l[1]),type:"text",span:l}}useCaseMetadata(a){return this.visit(this.nodes(a,"metadata")[0])}relationTail(a){let s=this.tokens(a,"IDENTIFIER")[0];return{...s?{explicitId:s.image,explicitIdLocation:this.tokenLocation(s)}:{},arrow:this.visit(this.nodes(a,"arrow")[0]),target:this.visit(this.nodes(a,"entityName")[0])}}arrow(a){return this.visit(this.firstNode(a,"semanticRelation","forwardSolidOperator","backwardSolidOperator","markerlessSolidOperator","forwardCircleOperator","backwardCircleOperator","forwardCrossOperator","backwardCrossOperator"))}edgeLabel(a){return this.nodeLabel(a)}semanticRelation(a){if(this.tokens(a,"GENERALIZATION").length)return{type:"generalization",arrowType:lf.SOLID_ARROW,minlen:1};let s=this.tokens(a,"INCLUDE").length?"include":"extend",l=this.tokens(a,s==="include"?"INCLUDE":"EXTEND")[0];return{type:s,arrowType:lf.SOLID_ARROW,label:{text:s,type:"text",span:this.tokenSpan(l)},minlen:1}}metadata(a){return{properties:this.nodes(a,"metadataProperty").map(s=>this.visit(s)),location:this.ctxLocation(a)}}metadataProperty(a){let s=this.allTokens(a).filter(m=>m.tokenType.name!=="COLON"),l=s[0],h=s[1],f=h.tokenType.name==="TRUE"?!0:h.tokenType.name==="FALSE"?!1:this.decodePlain(h),d=[l.startOffset,(h.endOffset??h.startOffset)+1];return{key:this.decodePlain(l),value:f,span:d,keySpan:this.contentSpan(l),valueSpan:this.contentSpan(h),location:this.tokenLocation(l)}}metadataSeparator(a){}systemBoundaryStatement(a){let s=this.visit(this.nodes(a,"systemBoundaryName")[0]),l=this.nodes(a,"classSuffix")[0],h=l?this.visit(l):{classes:[],spans:[]};s.classes=h.classes,this.builder.addBoundary(s);let f=this.parentBoundary;this.parentBoundary={id:s.id,location:s.location};let d=this.nodes(a,"systemBoundaryContent")[0],m=d?this.visit(d):[];this.parentBoundary=f;let b=this.tokens(a,"END")[0],v=this.nodes(a,"metadata")[0],T=v?this.visit(v):void 0,C={kind:"group",span:[0,0],group:s.id,idSpan:s.location.span,titleSpan:s.label.span,endSpan:this.tokenSpan(b),classSpans:h.spans,...T?{metadata:T.properties.map(({key:E,span:S,keySpan:R,valueSpan:L})=>({key:E,span:S,keySpan:R,valueSpan:L}))}:{},...m.length?{children:m}:{}};return T&&this.builder.addMetadataAssignment(s.id,s.location,T,C),C}systemBoundaryName(a){let s=this.tokens(a,"IDENTIFIER")[0];if(s){let f=this.nodes(a,"nodeLabel")[0];return{id:s.image,label:f?this.visit(f):this.tokenLabel(s),location:this.tokenLocation(s),generated:!1,classes:[]}}let l=this.tokens(a,"PLAIN_STRING")[0]??this.tokens(a,"MARKDOWN_STRING")[0],h=this.tokenLabel(l);return{id:this.generateId(h.text),label:h,location:this.tokenLocation(l),generated:!0,classes:[]}}systemBoundaryContent(a){return[...this.nodes(a,"blankLine"),...this.nodes(a,"commentLine"),...this.nodes(a,"boundaryElement")].sort((l,h)=>(l.location?.startOffset??0)-(h.location?.startOffset??0)).map(l=>this.wrap(l,this.visit(l)))}boundaryElement(a){let s=this.nodes(a,"actorDeclarationOnly")[0];if(s)return this.visit(s);let l=this.nodes(a,"entityName")[0],h=this.visit(l);return h.explicitDeclaration=!0,h.shape??="ellipse",this.builder.addElement(this.entityDraft(h)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(l,h,!0)]}}metadataAssignmentStatement(a){let s=this.visit(this.nodes(a,"metadataAssignmentTarget")[0]),l=this.visit(this.nodes(a,"metadata")[0]),h={kind:"metadata",span:[0,0],nodes:[{id:s.id,span:s.location.span,idSpan:s.location.span}],metadata:l.properties.map(({key:f,span:d,keySpan:m,valueSpan:b})=>({key:f,span:d,keySpan:m,valueSpan:b}))};return this.builder.addMetadataAssignment(s.id,s.location,l,h),h}metadataAssignmentTarget(a){let s=this.allTokens(a)[0],l=this.tokenLabel(s);return{id:s.tokenType.name==="IDENTIFIER"?s.image:this.generateId(l.text),location:this.tokenLocation(s)}}noteStatement(a){let s=this.tokens(a,"IDENTIFIER")[0],l=this.visit(this.nodes(a,"nodeLabel")[0]);return this.builder.addNote({target:s.image,targetLocation:this.tokenLocation(s),label:l,location:this.ctxLocation(a)}),{kind:"note",span:[0,0],ref:`note-${this.anonymousNote++}`,refSpan:l.span,nodes:[{id:s.image,span:this.tokenSpan(s),idSpan:this.tokenSpan(s)}]}}stereotype(a){let s=this.tokens(a,"STEREOTYPE_TEXT")[0];return{value:s.image.trim(),span:this.tokenSpan(s)}}classSuffix(a){let s=this.tokens(a,"IDENTIFIER");return{classes:s.map(l=>l.image),spans:s.map(l=>this.tokenSpan(l))}}jsonStatement(a){let s=this.tokens(a,"JSON_DECLARATION_START")[0],l=this.tokens(a,"JSON_OBJECT_LITERAL")[0],h=/^json[\t ]+(\w+)/.exec(s.image),f=h[1],d=h[0].length-f.length,m={span:[s.startOffset+d,s.startOffset+d+f.length],line:s.startLine??1,column:(s.startColumn??1)+d},b=NYr(l.image,l.startLine??1,l.startColumn??1),v=this.nodes(a,"classSuffix")[0],T=v?this.visit(v):{classes:[],spans:[]},C={id:f,value:b.value,propertyOrder:b.propertyOrder,location:m,classes:T.classes};return this.builder.addJson(C),{kind:"json",span:[0,0],nodes:[{id:f,span:m.span,idSpan:m.span,defines:!0,classSpans:T.spans}],classSpans:T.spans}}directionStatement(a){let s=this.allTokens(a).find(l=>["TD","TB","BT","RL","LR"].includes(l.tokenType.name));return this.builder.setDirection(s.image),{kind:"direction",span:[0,0]}}classDefStatement(a){let s=this.tokens(a,"IDENTIFIER"),l=this.visit(this.nodes(a,"styles")[0]);return this.builder.addClassDef(s.map(h=>h.image),l),{kind:"classDef",span:[0,0],ref:s[0].image,refSpan:this.tokenSpan(s[0])}}classStatement(a){let s=this.tokens(a,"IDENTIFIER"),l=1;for(;l<s.length&&this.source.slice((s[l-1].endOffset??s[l-1].startOffset)+1,s[l].startOffset).includes(",");l++);let h=s.slice(0,l).map(d=>({id:d.image,location:this.tokenLocation(d)})),f=s.slice(l).map(d=>d.image);return this.builder.addClassAssignment(h,f),{kind:"classAssign",span:[0,0],ref:f[0],refSpan:this.tokenSpan(s[l]),nodes:h.map(({id:d,location:m})=>({id:d,span:m.span,idSpan:m.span}))}}styleStatement(a){let s=this.tokens(a,"IDENTIFIER")[0],l=this.visit(this.nodes(a,"styles")[0]);return this.builder.addStyleAssignment(s.image,this.tokenLocation(s),l),{kind:"style",span:[0,0],nodes:[{id:s.image,span:this.tokenSpan(s),idSpan:this.tokenSpan(s)}]}}styles(a){return this.nodes(a,"styleValue").map(s=>this.visit(s))}styleValue(a){let s=this.allTokens(a),l=[s[0].startOffset,(s.at(-1).endOffset??s.at(-1).startOffset)+1];return this.source.slice(l[0],l[1]).replaceAll("\\,",",")}styleComponent(a){return this.allTokens(a).map(s=>s.image).join("")}forwardSolidOperator(a){let s=this.tokens(a,"FORWARD_SOLID")[0];return{type:"association",arrowType:lf.SOLID_ARROW,minlen:this.solidMinlen(s)}}backwardSolidOperator(a){let s=this.tokens(a,"BACKWARD_SOLID")[0],l=this.nodes(a,"edgeLabel")[0],h=l?this.tokens(a,"MARKERLESS_SOLID").at(-1):s;return{type:"association",arrowType:lf.BACK_ARROW,minlen:this.solidMinlen(h),...l?{label:this.visit(l)}:{}}}markerlessSolidOperator(a){let s=this.nodes(a,"edgeLabel")[0],l=this.allTokens(a);if(!s)return{type:"association",arrowType:lf.LINE_SOLID,minlen:this.solidMinlen(this.tokens(a,"MARKERLESS_SOLID")[0])};let h=l.at(-1),f=h.tokenType.name==="FORWARD_SOLID"?lf.SOLID_ARROW:h.tokenType.name==="FORWARD_CIRCLE"?lf.CIRCLE_ARROW:h.tokenType.name==="FORWARD_CROSS"?lf.CROSS_ARROW:lf.LINE_SOLID;return{type:"association",arrowType:f,label:this.visit(s),minlen:f===lf.SOLID_ARROW||f===lf.LINE_SOLID?this.solidMinlen(h):1}}forwardCircleOperator(a){return{type:"association",arrowType:lf.CIRCLE_ARROW,minlen:1}}backwardCircleOperator(a){let s=this.nodes(a,"edgeLabel")[0];return{type:"association",arrowType:lf.CIRCLE_ARROW_REVERSED,minlen:1,...s?{label:this.visit(s)}:{}}}forwardCrossOperator(a){return{type:"association",arrowType:lf.CROSS_ARROW,minlen:1}}backwardCrossOperator(a){let s=this.nodes(a,"edgeLabel")[0];return{type:"association",arrowType:lf.CROSS_ARROW_REVERSED,minlen:1,...s?{label:this.visit(s)}:{}}}actorDraft(a){return{id:a.id,kind:"actor",label:a.label,location:a.location,generated:a.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...a.metadata?{metadata:a.metadata}:{},...a.stereotype?{stereotype:a.stereotype.value,stereotypeSpan:a.stereotype.span}:{},classes:a.classes}}entityDraft(a){return{id:a.id,kind:"usecase",label:a.label,location:a.location,generated:a.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...a.shape?{shape:a.shape}:{},...a.metadata?{metadata:a.metadata}:{},...a.stereotype?{stereotype:a.stereotype.value,stereotypeSpan:a.stereotype.span}:{},classes:a.classes}}endpoint(a,s=a.explicitDeclaration??!0){return{id:a.id,label:a.label,location:a.location,generated:a.generated,declaration:s,classesOnReference:a.classes.length>0}}relationshipDraft(a,s,l){return{source:this.endpoint(a,!0),target:this.endpoint(s.target),location:l,...s.explicitId?{explicitId:s.explicitId,explicitIdLocation:s.explicitIdLocation}:{},...s.arrow}}actorOccurrence(a,s,l){return{id:s.id,span:this.nodeSpan(a),idSpan:s.location.span,labelSpan:s.label.span,...l?{defines:!0}:{},...s.stereotype?{stereotypeSpan:s.stereotype.span}:{},...s.metadata?{metadata:s.metadata.properties.map(({key:h,span:f,keySpan:d,valueSpan:m})=>({key:h,span:f,keySpan:d,valueSpan:m}))}:{},...s.classSpans.length?{classSpans:s.classSpans}:{}}}entityOccurrence(a,s,l){return this.actorOccurrence(a,s,l)}wrap(a,s){if(s.kind==="blank"||s.kind==="comment")return s;s.span=this.nodeSpan(a);for(let l of s.edges??[])l.span=s.span;return s}tokenLabel(a){let s=a.tokenType.name==="MARKDOWN_STRING"?"markdown":"text",l=s==="markdown"?2:a.tokenType.name==="PLAIN_STRING"?1:0,h=this.tokenSpan(a,l);return{text:this.source.slice(h[0],h[1]),type:s,span:h}}decodePlain(a){return a.tokenType.name==="PLAIN_STRING"?a.image.slice(1,-1):a.image}contentSpan(a){return this.tokenSpan(a,a.tokenType.name==="PLAIN_STRING"?1:a.tokenType.name==="MARKDOWN_STRING"?2:0)}generateId(a){return a.replace(/\W/g,"_")}solidMinlen(a){return Math.max(1,(a.image.match(/-/g)?.length??2)-1)}nodeLocation(a){let s=this.allTokens(a.children)[0];return{span:this.nodeSpan(a),line:s.startLine??1,column:s.startColumn??1}}ctxLocation(a){let s=this.allTokens(a).filter(f=>f.tokenType.name!=="NEWLINE"&&f.tokenType.name!=="EOF"),l=s[0],h=s.at(-1);return{span:[l.startOffset,Math.min(this.source.length,(h.endOffset??h.startOffset+h.image.length-1)+1)],line:l.startLine??1,column:l.startColumn??1}}tokenLocation(a){let s=a.tokenType.name==="PLAIN_STRING"?1:a.tokenType.name==="MARKDOWN_STRING"?2:0;return{span:this.tokenSpan(a,s),line:a.startLine??1,column:(a.startColumn??1)+s}}nodeSpan(a){let s=this.allTokens(a.children).filter(f=>f.tokenType.name!=="NEWLINE"&&f.tokenType.name!=="EOF"),l=s[0],h=s.at(-1);if(!l||!h)throw new Error("Usecase CST node has no source token");return[l.startOffset,Math.min(this.source.length,(h.endOffset??h.startOffset+h.image.length-1)+1)]}tokenSpan(a,s=0){return[a.startOffset+s,Math.min(this.source.length,(a.endOffset??a.startOffset+a.image.length-1)+1-s)]}nodes(a,s){return(a[s]??[]).filter(l=>"children"in l)}tokens(a,s){return(a[s]??[]).filter(l=>"tokenTypeIdx"in l)}firstNode(a,...s){for(let l of s){let h=this.nodes(a,l)[0];if(h)return h}throw new Error(`Usecase CST is missing one of: ${s.join(", ")}`)}allTokens(a){let s=[];for(let l of Object.values(a))for(let h of l)"tokenTypeIdx"in h?s.push(h):s.push(...this.allTokens(h.children));return s.sort((l,h)=>l.startOffset-h.startOffset)}},GYr=new Zdt});var zYr,UYr=ae(()=>{"use strict";BHr();bEe();IYr();Kdt();jYr();zYr={parse:i(async r=>{LB.clear(),jB.input=[];try{PHr({diagramType:"usecase",lexer:DYr,parser:jB,entry:i(()=>jB.start(),"entry"),visit:i(t=>GYr.build(t,r),"visit")},r)}catch(t){LB.clear();let a=jB.errors[0];if(a){let{token:s}=a,l=AB(s.startOffset)?s.startOffset:r.length,h=AB(s.endOffset)?s.endOffset+1:l,f=AB(s.startLine)?s.startLine:r.slice(0,l).split(/\r\n|\r|\n/).length,d=Math.max(r.lastIndexOf(`
|
|
`,l-1),r.lastIndexOf("\r",l-1)),m=AB(s.startColumn)?s.startColumn:l-d,b=t instanceof Error?t.message:String(t);throw new Error(`${b} at line ${f}, column ${m} [${l},${h})`)}throw t}},"parse")}});var Lvi,qYr,VYr,_vi,bSe,Dvi,Ivi,Mvi,uH,WYr,Nvi,Ovi,HYr,Pvi,YYr,XYr=ae(()=>{"use strict";zo();ma();Yn();FA();PS();ZJe();BS();Ma();Lvi=["point","circle","cross","extension"],qYr={usecaseActor:!0,usecaseActorHollow:!0,usecaseActorAwesome:!0,usecaseActorIcon:!0},VYr=i((r,t)=>{let[a,s]=[r,t].map(l=>l.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element");return`usecase-${a}-${s}`},"usecaseDomId"),_vi=i(r=>`usecase-${r.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element"}`,"usecaseNodeDomId"),bSe=i((r,t)=>t!=="markdown"?r:swe(r).map(a=>a.map(s=>s.content).join(" ")).join(`
|
|
`),"getAccessibleLabel"),Dvi=i(r=>{let t=bSe(r.label??r.id,r.labelType);if(qYr[r.shape]){let s=r.actorType&&r.actorType!=="normal"?`${r.actorType} `:"",l=r.business?"business ":"",h=r.stereotype?`, stereotype ${r.stereotype}`:"";return`${l}${s}actor ${t}${h}`}if(r.shape==="note")return`Note for ${r.noteTargetLabel??r.noteTarget??""}: ${t}`;if(r.shape==="usecaseJsonTable"){let s=(r.jsonRows??[]).map(l=>`${l.accessibleKey}: ${l.value}`).join("; ");return s?`${t}: ${s}`:t}let a=r.stereotype?`, stereotype ${r.stereotype}`:"";return`${r.business?"business ":""}use case ${t}${a}`},"getUsecaseNodeAccessibleName"),Ivi=i(r=>`${r.boundaryType} system boundary ${bSe(r.label??r.id,r.labelType)}`,"getUsecaseBoundaryAccessibleName"),Mvi=i(r=>r.relationshipType==="note"?"":`${r.relationshipType==="association"&&r.label?`association ${bSe(r.label,r.labelType)}`:r.relationshipType} from ${r.sourceLabel} to ${r.targetLabel}`,"getUsecaseEdgeAccessibleName"),uH=i(r=>r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"escapePlainLabel"),WYr=i(r=>r.replace(/([*[\\\]_`])/g,"\\$1"),"escapeMarkdownMarkers"),Nvi=i((r,t)=>{r.diagramId=t,r.markers=[...Lvi];for(let a of r.nodes){let s=a;if(s.domId=_vi(a.id),a.label!==void 0&&a.labelType==="text"&&(a.label=uH(a.label)),a.stereotype&&(a.stereotype=uH(a.stereotype)),!a.isGroup&&a.shape==="usecaseJsonTable"&&(a.jsonRows=a.jsonRows?.map(l=>({...l,key:uH(l.key),value:uH(l.value)}))),!a.isGroup&&(a.shape==="usecaseEllipse"||a.shape==="rect")&&a.stereotype){let l=a.label??uH(a.id);a.label=`\xAB${WYr(a.stereotype)}\xBB<br/>${a.labelType==="text"?WYr(l):l}`,a.labelType="markdown",s.hasFoldedStereotype=!0,delete a.stereotype}}for(let a of r.edges)a.label!==void 0&&a.labelType==="text"&&(a.label=uH(a.label));return r},"prepareUsecaseLayoutData"),Ovi=i((r,t,a)=>{for(let l of t.nodes){let h=typeof l.domId=="string"?l.domId:VYr(t.diagramId,l.id),f=r.select(`#${h}`),d=l.isGroup?"boundary":qYr[l.shape]?"actor":l.shape==="note"?"note":l.shape==="usecaseJsonTable"?"json":"usecase",m=a.nodes.get(l.id)??l.id;if(f.attr("data-usecase-id",l.id).attr("data-usecase-kind",d).attr("role","img").attr("aria-label",m),!l.isGroup&&(l.shape==="usecaseEllipse"||l.shape==="rect")&&"hasFoldedStereotype"in l&&l.hasFoldedStereotype===!0){let b=f.node(),v=b?.querySelector(".nodeLabel"),T=v?.querySelector("p")??v,C=T?.firstChild;if(T&&C?.nodeType===3){let E=T.ownerDocument.createElement("span");E.className="usecase-stereotype",T.insertBefore(E,C),E.appendChild(C)}else b?.querySelector(".label tspan tspan, .label tspan")?.classList.add("usecase-stereotype")}}let s=new Map(t.edges.map(l=>[l.id,l]));r.selectAll('path[data-et="edge"]').each(function(){let l=s.get(this.getAttribute("data-id")??"");if(!l)return;let h=mn(this);h.attr("id",VYr(t.diagramId,l.id)).attr("data-usecase-id",l.id).attr("data-usecase-kind",l.internal?"note-connector":"relationship"),l.internal?h.attr("aria-hidden","true"):h.attr("role","img").attr("aria-label",a.edges.get(l.id)??l.id)})},"annotateUsecaseElements"),HYr=i((r,t)=>{r.style("--mermaid-usecase-actor-font-size",`${t.actorFontSize}px`).style("--mermaid-usecase-actor-font-family",t.actorFontFamily).style("--mermaid-usecase-actor-font-weight",t.actorFontWeight).style("--mermaid-usecase-font-size",`${t.usecaseFontSize}px`).style("--mermaid-usecase-font-family",t.usecaseFontFamily).style("--mermaid-usecase-font-weight",t.usecaseFontWeight)},"applyUsecaseFonts"),Pvi=i(async(r,t,a,s)=>{Pe.info("Drawing usecase diagram (unified)",t);let{layout:l}=er(),h=s.db,f=h.getData(),d=new Map(f.nodes.map(T=>[T.id,bSe(T.label??T.id,T.labelType)])),m={nodes:new Map(f.nodes.map(T=>[T.id,T.isGroup?Ivi(T):Dvi(T.shape==="note"?{...T,noteTargetLabel:d.get(T.noteTarget??"")}:T)])),edges:new Map(f.edges.map(T=>[T.id,Mvi({...T,sourceLabel:d.get(T.source)??T.sourceLabel,targetLabel:d.get(T.target)??T.targetLabel})]))},b=dy(t,f.config.securityLevel);f.layoutAlgorithm=Ty(l),Nvi(f,t),HYr(b,f),await xy(f,b),Ovi(b,f,m);let v=f.diagramPadding;Va.insertTitle(b,"usecaseDiagramTitleText",0,h.getDiagramTitle?.()??""),Sm(b,v,"usecaseDiagram",f.useMaxWidth),HYr(b,f)},"draw"),YYr={draw:Pvi}});var Bvi,Fvi,$vi,KYr,JYr=ae(()=>{"use strict";Xs();A0();Bvi=i(r=>({actorBkg:r.usecaseActorBkg??r.actorBkg??r.mainBkg,actorBorder:r.usecaseActorBorder??r.actorBorder??r.primaryColor,bkg:r.usecaseBkg??r.mainBkg,border:r.usecaseBorder??r.nodeBorder??r.primaryColor,boundaryBkg:r.usecaseBoundaryBkg??r.clusterBkg,boundaryBorder:r.usecaseBoundaryBorder??r.clusterBorder,includeLine:r.usecaseIncludeLine??r.lineColor,extendLine:r.usecaseExtendLine??r.lineColor}),"roleColors"),Fvi=i(r=>{let{theme:t,bkgColorArray:a,borderColorArray:s}=r;if(!S0(t,s))return"";let l=ri().usecase?.colorScheme==="rotate",h=Pg(r.look),f=h==="handDrawn",d=E0(a),m="";for(let b=0;b<lS(s);b++){let v=s[b],T=d?`fill: ${a[b%a.length]};`:"",C=`[data-look="${h}"][data-color-id="color-${b}"]`;m+=`
|
|
|
|
& ${C}.system-boundary rect.boundary-body,
|
|
& ${C}.system-boundary rect.boundary-tab,
|
|
& ${C}.system-boundary .boundary-body path,
|
|
& ${C}.system-boundary .boundary-tab path {
|
|
stroke: ${v};
|
|
${T}
|
|
}
|
|
`,l&&(m+=`
|
|
|
|
/* Use case bodies -- \`.usecase-element\` covers the ellipse form, the \`[Rect]\` form and
|
|
the business variant.
|
|
|
|
Element selectors only, never a bare \`path\`. Under the handDrawn look roughjs draws
|
|
the body as a *pair* of paths, an outline stroked in the border colour and a hachure
|
|
fill stroked in the background colour, with no class to tell them apart. Stroking
|
|
both repaints the fill lines as border colour and the shape collapses into a solid
|
|
block -- which is what \`.usecase-element path\` did. So handDrawn bodies keep the
|
|
theme's uniform colours, exactly as handDrawn flowchart nodes do. */
|
|
& ${C}.usecase-element ellipse,
|
|
& ${C}.usecase-element rect {
|
|
stroke: ${v};
|
|
${T}
|
|
}
|
|
|
|
/* The business marker is a single classed path, so it can be reached safely by name --
|
|
without it the marker keeps the uniform border beside a palette-coloured body. No
|
|
\`fill\`: the marker is drawn with \`fill="none"\` and has to stay that way. */
|
|
& ${C}.usecase-element .usecase-business-marker {
|
|
stroke: ${v};
|
|
}
|
|
|
|
/* Actor glyphs, mirroring the uniform rule further down. The fill goes on the glyph
|
|
group, never on its children, so the hollow variant's own \`fill="none"\` keeps
|
|
winning and a hollow actor stays hollow. Same reason as above for not descending
|
|
into the handDrawn paths. */
|
|
& ${C}.usecase-actor .usecase-actor-shape,
|
|
& ${C}.usecase-actor .usecase-actor-hollow,
|
|
& ${C}.usecase-actor .usecase-actor-awesome,
|
|
& ${C}.usecase-actor .usecase-actor-icon {
|
|
stroke: ${v};
|
|
${T}
|
|
}
|
|
${f?"":`
|
|
/* The group rule above reaches the glyph by inheritance, which the neo look breaks: it
|
|
ships a \`[data-look="neo"].node path { stroke }\` rule that hits the glyph's own paths,
|
|
and a value set directly on the child always beats one inherited from the parent,
|
|
whatever the parent rule's specificity. So name the children too.
|
|
|
|
Emitted for every look *except* handDrawn, where roughjs draws the glyph as an
|
|
outline path plus a hachure fill path stroked in the fill colour, indistinguishable
|
|
in CSS -- stroking both turns a hollow actor into a solid disc. Deliberately no
|
|
\`fill\` either way, so the hollow variant's own \`fill="none"\` keeps winning. */
|
|
& ${C}.usecase-actor .usecase-actor-glyph path,
|
|
& ${C}.usecase-actor .usecase-actor-glyph circle {
|
|
stroke: ${v};
|
|
}
|
|
`}
|
|
`)}return m},"genColor"),$vi=i(r=>{let t=Bvi(r),a=Pg(r.look)==="handDrawn";return`
|
|
${Fvi(r)}
|
|
& .usecase-actor {
|
|
color: ${r.actorTextColor??r.primaryTextColor};
|
|
}
|
|
|
|
& .usecase-actor-shape,
|
|
& .usecase-actor-hollow,
|
|
& .usecase-actor-awesome,
|
|
& .usecase-actor-icon {
|
|
fill: ${t.actorBkg};
|
|
stroke: ${t.actorBorder};
|
|
stroke-width: 2px;
|
|
}
|
|
${a?"":`
|
|
/* The rule above colours the glyph group and lets its children inherit, which the neo
|
|
look breaks: it ships a \`[data-look="neo"].node path { stroke }\` rule that lands on
|
|
the glyph's own paths, and a value set directly on a child always beats one inherited
|
|
from its parent, whatever the parent rule's specificity. Since neo is the default look,
|
|
without this every actor renders in the node border colour rather than the actor
|
|
colour the rule above asks for.
|
|
|
|
\`.node\` is in the selector to outrank that neo rule rather than tie with it: both
|
|
would otherwise be one attribute plus one class plus one element, leaving the winner to
|
|
depend on which stylesheet is concatenated last.
|
|
|
|
Stroke only: the hollow variant's own \`fill="none"\` has to keep winning. */
|
|
& .node.usecase-actor .usecase-actor-glyph path,
|
|
& .node.usecase-actor .usecase-actor-glyph circle {
|
|
stroke: ${t.actorBorder};
|
|
}
|
|
`}
|
|
& .usecase-actor .nodeLabel,
|
|
& .actor-label {
|
|
color: ${r.actorTextColor??r.primaryTextColor};
|
|
fill: ${r.actorTextColor??r.primaryTextColor};
|
|
font-family: var(--mermaid-usecase-actor-font-family, ${r.fontFamily});
|
|
font-size: var(--mermaid-usecase-actor-font-size, 14px);
|
|
font-weight: var(--mermaid-usecase-actor-font-weight, normal);
|
|
}
|
|
|
|
& .usecase-element ellipse,
|
|
& .usecase-element rect,
|
|
& .usecase-business ellipse,
|
|
& .usecase-business rect {
|
|
fill: ${t.bkg};
|
|
stroke: ${t.border};
|
|
stroke-width: 2px;
|
|
}
|
|
${a?"":`
|
|
/* The same interception the actor glyph hits, one element down: neo ships
|
|
\`[data-look="neo"].node rect { stroke: nodeBorder }\`, which outranks the plain
|
|
\`.usecase-element rect\` above, so a use case written in the \`[Rect]\` form kept the node
|
|
border colour while its ellipse siblings took the role colour. An \`<ellipse>\` has no
|
|
equivalent neo rule and is already correct; restating it here costs nothing and means
|
|
the two forms cannot drift apart again.
|
|
|
|
Qualified with \`[data-look]\` *and* \`.node\` to land strictly above that rule rather than
|
|
tie with it -- on a tie the later stylesheet would win, which is how neo took this in
|
|
the first place. Skipped under handDrawn, where roughjs draws paths and neither element
|
|
exists. */
|
|
& [data-look="${Pg(r.look)}"].node.usecase-element ellipse,
|
|
& [data-look="${Pg(r.look)}"].node.usecase-element rect {
|
|
fill: ${t.bkg};
|
|
stroke: ${t.border};
|
|
}
|
|
|
|
/* The business marker is a \`<path>\`, so it loses to \`[data-look="neo"].node path\` the same
|
|
way. No \`fill\`: the marker is drawn with \`fill="none"\` and has to stay that way. */
|
|
& [data-look="${Pg(r.look)}"].node.usecase-element .usecase-business-marker {
|
|
stroke: ${t.border};
|
|
}
|
|
`}
|
|
& .usecase-element .nodeLabel,
|
|
& .usecase-label {
|
|
color: ${r.primaryTextColor};
|
|
fill: ${r.primaryTextColor};
|
|
font-family: var(--mermaid-usecase-font-family, ${r.fontFamily});
|
|
font-size: var(--mermaid-usecase-font-size, 12px);
|
|
font-weight: var(--mermaid-usecase-font-weight, normal);
|
|
}
|
|
|
|
& .usecase-stereotype,
|
|
& .usecase-business-marker {
|
|
color: ${r.primaryTextColor};
|
|
fill: ${r.primaryTextColor};
|
|
stroke: ${t.border};
|
|
}
|
|
|
|
& .system-boundary rect.boundary-body,
|
|
& .system-boundary rect.boundary-tab,
|
|
& .system-boundary-package-tab {
|
|
fill: ${t.boundaryBkg};
|
|
stroke: ${t.boundaryBorder};
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
& .system-boundary-title text {
|
|
fill: ${r.titleColor??r.primaryTextColor};
|
|
}
|
|
|
|
/* Only the span, never the <p> inside it: the renderer puts a user-supplied
|
|
'color' on the span, and that has to stay inheritable by its children. */
|
|
& .system-boundary-title span {
|
|
color: ${r.titleColor??r.primaryTextColor};
|
|
}
|
|
|
|
& .usecase-note {
|
|
fill: ${r.noteBkgColor};
|
|
stroke: ${r.noteBorderColor};
|
|
color: ${r.noteTextColor};
|
|
}
|
|
|
|
& .usecase-note .nodeLabel {
|
|
color: ${r.noteTextColor};
|
|
fill: ${r.noteTextColor};
|
|
}
|
|
|
|
& .usecase-json-table,
|
|
& .usecase-json-table rect,
|
|
& .usecase-json-cell {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.nodeBorder??r.primaryColor};
|
|
}
|
|
|
|
& .usecase-json-title,
|
|
& .usecase-json-key,
|
|
& .usecase-json-value {
|
|
color: ${r.primaryTextColor};
|
|
fill: ${r.primaryTextColor};
|
|
}
|
|
|
|
& .relationship {
|
|
fill: none;
|
|
stroke: ${r.lineColor};
|
|
}
|
|
|
|
& .relationship-include,
|
|
& .relationship-extend,
|
|
& .relationship-note {
|
|
stroke-dasharray: 3;
|
|
}
|
|
|
|
/* Include and extend are both dashed, which is a weak distinction at small sizes. The
|
|
tokens default to \`lineColor\`, so a theme that does not set them is unchanged. */
|
|
& .relationship-include {
|
|
stroke: ${t.includeLine};
|
|
}
|
|
|
|
& .relationship-extend {
|
|
stroke: ${t.extendLine};
|
|
}
|
|
|
|
& .relationship.edge-animation-fast,
|
|
& .relationship.edge-animation-slow {
|
|
stroke-linecap: round;
|
|
}
|
|
|
|
& .edgeLabel,
|
|
& .edgeLabel p {
|
|
background-color: ${r.edgeLabelBackground};
|
|
}
|
|
|
|
& .labelBkg {
|
|
background-color: ${r.edgeLabelBackground};
|
|
padding: 0 2px;
|
|
}
|
|
|
|
& .edgeLabel .label rect {
|
|
fill: ${r.edgeLabelBackground};
|
|
}
|
|
|
|
& .relationship-label,
|
|
& .edgeLabel {
|
|
color: ${r.primaryTextColor};
|
|
fill: ${r.primaryTextColor};
|
|
font-family: ${r.fontFamily};
|
|
font-size: 10px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
& .marker,
|
|
& .marker.point,
|
|
& .marker.circle,
|
|
& .marker.cross {
|
|
fill: ${r.lineColor};
|
|
stroke: ${r.lineColor};
|
|
}
|
|
|
|
& .marker.extension {
|
|
fill: ${r.mainBkg};
|
|
stroke: ${r.lineColor};
|
|
}
|
|
`},"getStyles"),KYr=$vi});var QYr={};is(QYr,{diagram:()=>Gvi});var Gvi,ZYr=ae(()=>{"use strict";UYr();bEe();XYr();JYr();Gvi={parser:zYr,db:LB,renderer:YYr,styles:KYr}});var vSe,UB,rXr,Uvi,Vvi,ept,nXr=ae(()=>{"use strict";w1();Yn();Gb();vSe=i((r,t)=>{let a=r<=1?r*100:r;if(a<0||a>100)throw new Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${r}`);return a},"toPercent"),UB=i((r,t,a)=>({x:vSe(t,`${a} evolution`),y:vSe(r,`${a} visibility`)}),"toCoordinates"),rXr=i(r=>{if(r){if(r==="+<>")return"bidirectional";if(r==="+<")return"backward";if(r==="+>")return"forward"}},"getFlowFromPort"),Uvi=i(r=>{if(!r?.startsWith("+"))return{};let a=/^\+'([^']*)'/.exec(r)?.[1];return r.includes("<>")?{flow:"bidirectional",label:a}:r.includes("<")?{flow:"backward",label:a}:r.includes(">")?{flow:"forward",label:a}:{label:a}},"extractFlowFromArrow"),Vvi=i((r,t)=>{if(Eh(r,t),r.size&&t.setSize(r.size.width,r.size.height),r.evolution){let a=r.evolution.stages.map(l=>l.secondName?`${l.name.trim()} / ${l.secondName.trim()}`:l.name.trim()),s=r.evolution.stages.filter(l=>l.boundary!==void 0).map(l=>l.boundary);t.updateAxes({stages:a,stageBoundaries:s})}if(r.anchors.forEach(a=>{let s=UB(a.visibility,a.evolution,`Anchor "${a.name}"`);t.addNode(a.name,a.name,s.x,s.y,"anchor")}),r.components.forEach(a=>{let s=UB(a.visibility,a.evolution,`Component "${a.name}"`),l=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,h=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,f=a.decorator?.strategy;t.addNode(a.name,a.name,s.x,s.y,"component",l,h,a.inertia,f)}),r.notes.forEach(a=>{let s=UB(a.visibility,a.evolution,`Note "${a.text}"`);t.addNote(a.text,s.x,s.y)}),r.pipelines.forEach(a=>{let s=t.getNode(a.parent);if(!s||typeof s.y!="number")throw new Error(`Pipeline "${a.parent}" must reference an existing component with coordinates.`);let l=s.y;t.startPipeline(a.parent),a.components.forEach(h=>{let f=`${a.parent}_${h.name}`,d=h.label?(h.label.negX?-1:1)*h.label.offsetX:void 0,m=h.label?(h.label.negY?-1:1)*h.label.offsetY:void 0,b=vSe(h.evolution,`Pipeline component "${h.name}" evolution`);t.addNode(f,h.name,b,l,"pipeline-component",d,m),t.addPipelineComponent(a.parent,f)})}),r.links.forEach(a=>{let s=!!a.arrow&&(a.arrow.includes("-.->")||a.arrow.includes(".-.")),l=rXr(a.fromPort)??rXr(a.toPort),{flow:h,label:f}=Uvi(a.arrow);!l&&h&&(l=h);let d=a.linkLabel,m=f??d;t.addLink(t.resolveNodeId(a.from),t.resolveNodeId(a.to),s,m,l)}),r.evolves.forEach(a=>{let s=t.getNode(a.component);if(s?.y!==void 0){let l=vSe(a.target,`Evolve target for "${a.component}"`);t.addTrend(a.component,l,s.y)}}),r.annotations.length>0){let a=r.annotations[0],s=UB(a.x,a.y,"Annotations box");t.setAnnotationsBox(s.x,s.y)}r.annotation.forEach(a=>{let s=UB(a.x,a.y,`Annotation ${a.number}`);t.addAnnotation(a.number,[{x:s.x,y:s.y}],a.text)}),r.accelerators.forEach(a=>{let s=UB(a.x,a.y,`Accelerator "${a.name}"`);t.addAccelerator(a.name,s.x,s.y)}),r.deaccelerators.forEach(a=>{let s=UB(a.x,a.y,`Deaccelerator "${a.name}"`);t.addDeaccelerator(a.name,s.x,s.y)})},"populateDb"),ept={parser:{yy:void 0},parse:i(async r=>{let t=await Gd("wardley",r);Pe.debug(t);let a=ept.parser?.yy;if(!a||typeof a.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Vvi(t,a)},"parse")}});var wSe,iXr=ae(()=>{"use strict";wSe=class{constructor(){this.nodes=new Map;this.links=[];this.trends=new Map;this.pipelines=new Map;this.annotations=[];this.notes=[];this.accelerators=[];this.deaccelerators=[];this.axes={}}static{i(this,"WardleyBuilder")}addNode(t){let a=this.nodes.get(t.id)??{id:t.id,label:t.label},s={...a,...t,className:t.className??a.className,labelOffsetX:t.labelOffsetX??a.labelOffsetX,labelOffsetY:t.labelOffsetY??a.labelOffsetY};this.nodes.set(t.id,s)}addLink(t){this.links.push(t)}addTrend(t){this.trends.set(t.nodeId,t)}startPipeline(t){this.pipelines.set(t,{nodeId:t,componentIds:[]});let a=this.nodes.get(t);a&&(a.isPipelineParent=!0)}addPipelineComponent(t,a){let s=this.pipelines.get(t);s&&s.componentIds.push(a);let l=this.nodes.get(a);l&&(l.inPipeline=!0)}addAnnotation(t){this.annotations.push(t)}addNote(t){this.notes.push(t)}addAccelerator(t){this.accelerators.push(t)}addDeaccelerator(t){this.deaccelerators.push(t)}setAnnotationsBox(t,a){this.annotationsBox={x:t,y:a}}setAxes(t){this.axes={...this.axes,...t}}setSize(t,a){this.size={width:t,height:a}}getNode(t){return this.nodes.get(t)}resolveNodeId(t){if(this.nodes.has(t))return t;for(let[a,s]of this.nodes)if(s.label===t)return a;return t}build(){let t=[];for(let a of this.nodes.values()){if(typeof a.x!="number"||typeof a.y!="number")throw new Error(`Node "${a.label}" is missing coordinates`);t.push(a)}return{nodes:t,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}}});function Wvi(){return er()["wardley-beta"]}function Hvi(r,t,a,s,l,h,f,d,m){Ry.addNode({id:r,label:t,x:a,y:s,className:l,labelOffsetX:h,labelOffsetY:f,inertia:d,sourceStrategy:m})}function qvi(r,t,a=!1,s,l){Ry.addLink({source:r,target:t,dashed:a,label:s,flow:l})}function Yvi(r,t,a){Ry.addTrend({nodeId:r,targetX:t,targetY:a})}function Xvi(r,t,a){Ry.addAnnotation({number:r,coordinates:t,text:a})}function Kvi(r,t,a){Ry.addNote({text:r,x:t,y:a})}function Jvi(r,t,a){Ry.addAccelerator({name:r,x:t,y:a})}function Qvi(r,t,a){Ry.addDeaccelerator({name:r,x:t,y:a})}function Zvi(r,t){Ry.setAnnotationsBox(r,t)}function e2i(r,t){Ry.setSize(r,t)}function t2i(r){Ry.startPipeline(r)}function r2i(r,t){Ry.addPipelineComponent(r,t)}function n2i(r){Ry.setAxes(r)}function i2i(r){return Ry.getNode(r)}function a2i(r){return Ry.resolveNodeId(r)}function s2i(){return Ry.build()}function o2i(){Ry.clear(),Ds()}var Ry,aXr,sXr=ae(()=>{"use strict";ma();Au();iXr();Ry=new wSe;i(Wvi,"getConfig");i(Hvi,"addNode");i(qvi,"addLink");i(Yvi,"addTrend");i(Xvi,"addAnnotation");i(Kvi,"addNote");i(Jvi,"addAccelerator");i(Qvi,"addDeaccelerator");i(Zvi,"setAnnotationsBox");i(e2i,"setSize");i(t2i,"startPipeline");i(r2i,"addPipelineComponent");i(n2i,"updateAxes");i(i2i,"getNode");i(a2i,"resolveNodeId");i(s2i,"getWardleyData");i(o2i,"clear");aXr={getConfig:Wvi,addNode:Hvi,addLink:qvi,addTrend:Yvi,addAnnotation:Xvi,addNote:Kvi,addAccelerator:Jvi,addDeaccelerator:Qvi,setAnnotationsBox:Zvi,setSize:e2i,startPipeline:t2i,addPipelineComponent:r2i,updateAxes:n2i,getNode:i2i,resolveNodeId:a2i,getWardleyData:s2i,clear:o2i,setAccTitle:Os,getAccTitle:Vs,setDiagramTitle:io,getDiagramTitle:Ks,getAccDescription:Ws,setAccDescription:$s}});var l2i,c2i,u2i,h2i,oXr,lXr=ae(()=>{"use strict";ma();Yn();x1();$h();l2i=["Genesis","Custom Built","Product","Commodity"],c2i=i(()=>{let{themeVariables:r}=er();return{backgroundColor:r.wardley?.backgroundColor??r.background??"#fff",axisColor:r.wardley?.axisColor??"#000",axisTextColor:r.wardley?.axisTextColor??r.primaryTextColor??"#222",gridColor:r.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:r.wardley?.componentFill??"#fff",componentStroke:r.wardley?.componentStroke??"#000",componentLabelColor:r.wardley?.componentLabelColor??r.primaryTextColor??"#222",linkStroke:r.wardley?.linkStroke??"#000",evolutionStroke:r.wardley?.evolutionStroke??"#dc3545",annotationStroke:r.wardley?.annotationStroke??"#000",annotationTextColor:r.wardley?.annotationTextColor??r.primaryTextColor??"#222",annotationFill:r.wardley?.annotationFill??r.background??"#fff"}},"getTheme"),u2i=i(()=>{let r=er()["wardley-beta"];return{width:r?.width??900,height:r?.height??600,padding:r?.padding??48,nodeRadius:r?.nodeRadius??6,nodeLabelOffset:r?.nodeLabelOffset??8,axisFontSize:r?.axisFontSize??12,labelFontSize:r?.labelFontSize??10,showGrid:r?.showGrid??!1,useMaxWidth:r?.useMaxWidth??!0}},"getConfigValues"),h2i=i((r,t,a,s)=>{Pe.debug(`Rendering Wardley map
|
|
`+r);let l=u2i(),h=c2i(),f=l.nodeRadius*1.6,d=s.db,m=d.getWardleyData(),b=d.getDiagramTitle(),v=m.size?.width??l.width,T=m.size?.height??l.height,C=pu(t);C.selectAll("*").remove(),wl(C,T,v,l.useMaxWidth),C.attr("viewBox",`0 0 ${v} ${T}`);let E=C.append("g").attr("class","wardley-map"),S=C.append("defs");S.append("marker").attr("id",`arrow-${t}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",h.evolutionStroke).attr("stroke","none"),S.append("marker").attr("id",`link-arrow-end-${t}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",h.linkStroke).attr("stroke","none"),S.append("marker").attr("id",`link-arrow-start-${t}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",h.linkStroke).attr("stroke","none"),E.append("rect").attr("class","wardley-background").attr("width",v).attr("height",T).attr("fill",h.backgroundColor);let R=v-l.padding*2,L=T-l.padding*2;b&&E.append("text").attr("class","wardley-title").attr("x",v/2).attr("y",l.padding/2).attr("fill",h.axisTextColor).attr("font-size",l.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(b);let _=i(U=>l.padding+U/100*R,"projectX"),I=i(U=>T-l.padding-U/100*L,"projectY"),N=E.append("g").attr("class","wardley-axes");N.append("line").attr("x1",l.padding).attr("x2",v-l.padding).attr("y1",T-l.padding).attr("y2",T-l.padding).attr("stroke",h.axisColor).attr("stroke-width",1),N.append("line").attr("x1",l.padding).attr("x2",l.padding).attr("y1",l.padding).attr("y2",T-l.padding).attr("stroke",h.axisColor).attr("stroke-width",1);let B=m.axes.xLabel??"Evolution",O=m.axes.yLabel??"Visibility";N.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",l.padding+R/2).attr("y",T-l.padding/4).attr("fill",h.axisTextColor).attr("font-size",l.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(B),N.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",l.padding/3).attr("y",l.padding+L/2).attr("fill",h.axisTextColor).attr("font-size",l.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${l.padding/3} ${l.padding+L/2})`).text(O);let P=m.axes.stages&&m.axes.stages.length>0?m.axes.stages:l2i;if(P.length>0){let U=E.append("g").attr("class","wardley-stages"),ne=m.axes.stageBoundaries,se=[];if(ne&&ne.length===P.length){let he=0;ne.forEach(le=>{se.push({start:he,end:le}),he=le})}else{let he=1/P.length;P.forEach((le,pe)=>{se.push({start:pe*he,end:(pe+1)*he})})}P.forEach((he,le)=>{let pe=se[le],ge=l.padding+pe.start*R,we=l.padding+pe.end*R,Ae=(ge+we)/2;le>0&&U.append("line").attr("x1",ge).attr("x2",ge).attr("y1",l.padding).attr("y2",T-l.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),U.append("text").attr("class","wardley-stage-label").attr("x",Ae).attr("y",T-l.padding/1.5).attr("fill",h.axisTextColor).attr("font-size",l.axisFontSize-2).attr("text-anchor","middle").text(he)})}if(l.showGrid){let U=E.append("g").attr("class","wardley-grid");for(let ne=1;ne<4;ne++){let se=ne/4,he=l.padding+R*se;U.append("line").attr("x1",he).attr("x2",he).attr("y1",l.padding).attr("y2",T-l.padding).attr("stroke",h.gridColor).attr("stroke-dasharray","2 6"),U.append("line").attr("x1",l.padding).attr("x2",v-l.padding).attr("y1",T-l.padding-L*se).attr("y2",T-l.padding-L*se).attr("stroke",h.gridColor).attr("stroke-dasharray","2 6")}}let $=new Map;if(m.nodes.forEach(U=>{$.set(U.id,{x:_(U.x),y:I(U.y),node:U})}),m.pipelines.length>0){let U=E.append("g").attr("class","wardley-pipelines"),ne=E.append("g").attr("class","wardley-pipeline-links");m.pipelines.forEach(se=>{if(se.componentIds.length===0)return;let he=se.componentIds.map(we=>({id:we,pos:$.get(we),node:m.nodes.find(Ae=>Ae.id===we)})).filter(we=>we.pos&&we.node).sort((we,Ae)=>we.node.x-Ae.node.x);for(let we=0;we<he.length-1;we++){let Ae=he[we],ve=he[we+1];ne.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",Ae.pos.x).attr("y1",Ae.pos.y).attr("x2",ve.pos.x).attr("y2",ve.pos.y).attr("stroke",h.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let le=1/0,pe=-1/0,ge=0;if(se.componentIds.forEach(we=>{let Ae=$.get(we);Ae&&(le=Math.min(le,Ae.x),pe=Math.max(pe,Ae.x),ge=Ae.y)}),le!==1/0&&pe!==-1/0){let Ae=l.nodeRadius*4,ve=ge-Ae/2,Ie=$.get(se.nodeId);if(Ie){let De=(le+pe)/2;Ie.x=De,Ie.y=ve-f/6}U.append("rect").attr("class","wardley-pipeline-box").attr("x",le-15).attr("y",ve).attr("width",pe-le+30).attr("height",Ae).attr("fill","none").attr("stroke",h.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let V=E.append("g").attr("class","wardley-links"),Y=new Map;m.pipelines.forEach(U=>{Y.set(U.nodeId,new Set(U.componentIds))});let Q=m.links.filter(U=>!(!$.has(U.source)||!$.has(U.target)||Y.get(U.target)?.has(U.source)));V.selectAll("line").data(Q).enter().append("line").attr("class",U=>`wardley-link${U.dashed?" wardley-link--dashed":""}`).attr("x1",U=>{let ne=$.get(U.source),se=$.get(U.target),le=m.nodes.find(Ae=>Ae.id===U.source).isPipelineParent?f/Math.sqrt(2):l.nodeRadius,pe=se.x-ne.x,ge=se.y-ne.y,we=Math.sqrt(pe*pe+ge*ge);return ne.x+pe/we*le}).attr("y1",U=>{let ne=$.get(U.source),se=$.get(U.target),le=m.nodes.find(Ae=>Ae.id===U.source).isPipelineParent?f/Math.sqrt(2):l.nodeRadius,pe=se.x-ne.x,ge=se.y-ne.y,we=Math.sqrt(pe*pe+ge*ge);return ne.y+ge/we*le}).attr("x2",U=>{let ne=$.get(U.source),se=$.get(U.target),le=m.nodes.find(Ae=>Ae.id===U.target).isPipelineParent?f/Math.sqrt(2):l.nodeRadius,pe=ne.x-se.x,ge=ne.y-se.y,we=Math.sqrt(pe*pe+ge*ge);return se.x+pe/we*le}).attr("y2",U=>{let ne=$.get(U.source),se=$.get(U.target),le=m.nodes.find(Ae=>Ae.id===U.target).isPipelineParent?f/Math.sqrt(2):l.nodeRadius,pe=ne.x-se.x,ge=ne.y-se.y,we=Math.sqrt(pe*pe+ge*ge);return se.y+ge/we*le}).attr("stroke",h.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",U=>U.dashed?"6 6":null).attr("marker-end",U=>U.flow==="forward"||U.flow==="bidirectional"?`url(#link-arrow-end-${t})`:null).attr("marker-start",U=>U.flow==="backward"||U.flow==="bidirectional"?`url(#link-arrow-start-${t})`:null),V.selectAll("text").data(Q.filter(U=>U.label)).enter().append("text").attr("class","wardley-link-label").attr("x",U=>{let ne=$.get(U.source),se=$.get(U.target),he=(ne.x+se.x)/2,le=se.y-ne.y,pe=se.x-ne.x,ge=Math.sqrt(pe*pe+le*le),we=8,Ae=le/ge;return he+Ae*we}).attr("y",U=>{let ne=$.get(U.source),se=$.get(U.target),he=(ne.y+se.y)/2,le=se.x-ne.x,pe=se.y-ne.y,ge=Math.sqrt(le*le+pe*pe),we=8,Ae=-le/ge;return he+Ae*we}).attr("fill",h.axisTextColor).attr("font-size",l.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",U=>{let ne=$.get(U.source),se=$.get(U.target),he=(ne.x+se.x)/2,le=(ne.y+se.y)/2,pe=se.x-ne.x,ge=se.y-ne.y,we=Math.sqrt(pe*pe+ge*ge),Ae=8,ve=ge/we,Ie=-pe/we,De=he+ve*Ae,Be=le+Ie*Ae,Fe=Math.atan2(ge,pe)*180/Math.PI;return(Fe>90||Fe<-90)&&(Fe+=180),`rotate(${Fe} ${De} ${Be})`}).text(U=>U.label);let q=E.append("g").attr("class","wardley-trends"),W=m.trends.map(U=>{let ne=$.get(U.nodeId);if(!ne)return null;let se=_(U.targetX),he=I(U.targetY),le=se-ne.x,pe=he-ne.y,ge=Math.sqrt(le*le+pe*pe),we=l.nodeRadius+2,Ae=ge>we?se-le/ge*we:se,ve=ge>we?he-pe/ge*we:he;return{origin:ne,targetX:se,targetY:he,adjustedX2:Ae,adjustedY2:ve}}).filter(U=>U!==null);q.selectAll("line").data(W).enter().append("line").attr("class","wardley-trend").attr("x1",U=>U.origin.x).attr("y1",U=>U.origin.y).attr("x2",U=>U.adjustedX2).attr("y2",U=>U.adjustedY2).attr("stroke",h.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${t})`);let re=E.append("g").attr("class","wardley-nodes").selectAll("g").data(m.nodes).enter().append("g").attr("class",U=>["wardley-node",U.className?`wardley-node--${U.className}`:""].filter(Boolean).join(" "));re.filter(U=>U.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",U=>$.get(U.id).x).attr("cy",U=>$.get(U.id).y).attr("r",l.nodeRadius*2).attr("fill","#666").attr("stroke",h.componentStroke).attr("stroke-width",1),re.filter(U=>U.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",U=>$.get(U.id).x).attr("cy",U=>$.get(U.id).y).attr("r",l.nodeRadius*2).attr("fill","#ccc").attr("stroke",h.componentStroke).attr("stroke-width",1),re.filter(U=>U.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",U=>$.get(U.id).x).attr("cy",U=>$.get(U.id).y).attr("r",l.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let Z=re.filter(U=>U.sourceStrategy==="market");Z.append("circle").attr("class","wardley-market-overlay").attr("cx",U=>$.get(U.id).x).attr("cy",U=>$.get(U.id).y).attr("r",l.nodeRadius*2).attr("fill","white").attr("stroke",h.componentStroke).attr("stroke-width",1),re.filter(U=>!U.isPipelineParent&&U.sourceStrategy!=="market"&&U.className!=="anchor").append("circle").attr("cx",U=>$.get(U.id).x).attr("cy",U=>$.get(U.id).y).attr("r",l.nodeRadius).attr("fill",h.componentFill).attr("stroke",h.componentStroke).attr("stroke-width",1);let X=l.nodeRadius*.7,te=l.nodeRadius*1.2;if(Z.append("line").attr("class","wardley-market-line").attr("x1",U=>$.get(U.id).x).attr("y1",U=>$.get(U.id).y-te).attr("x2",U=>$.get(U.id).x-te*Math.cos(Math.PI/6)).attr("y2",U=>$.get(U.id).y+te*Math.sin(Math.PI/6)).attr("stroke",h.componentStroke).attr("stroke-width",1),Z.append("line").attr("class","wardley-market-line").attr("x1",U=>$.get(U.id).x-te*Math.cos(Math.PI/6)).attr("y1",U=>$.get(U.id).y+te*Math.sin(Math.PI/6)).attr("x2",U=>$.get(U.id).x+te*Math.cos(Math.PI/6)).attr("y2",U=>$.get(U.id).y+te*Math.sin(Math.PI/6)).attr("stroke",h.componentStroke).attr("stroke-width",1),Z.append("line").attr("class","wardley-market-line").attr("x1",U=>$.get(U.id).x+te*Math.cos(Math.PI/6)).attr("y1",U=>$.get(U.id).y+te*Math.sin(Math.PI/6)).attr("x2",U=>$.get(U.id).x).attr("y2",U=>$.get(U.id).y-te).attr("stroke",h.componentStroke).attr("stroke-width",1),Z.append("circle").attr("class","wardley-market-dot").attr("cx",U=>$.get(U.id).x).attr("cy",U=>$.get(U.id).y-te).attr("r",X).attr("fill","white").attr("stroke",h.componentStroke).attr("stroke-width",2),Z.append("circle").attr("class","wardley-market-dot").attr("cx",U=>$.get(U.id).x-te*Math.cos(Math.PI/6)).attr("cy",U=>$.get(U.id).y+te*Math.sin(Math.PI/6)).attr("r",X).attr("fill","white").attr("stroke",h.componentStroke).attr("stroke-width",2),Z.append("circle").attr("class","wardley-market-dot").attr("cx",U=>$.get(U.id).x+te*Math.cos(Math.PI/6)).attr("cy",U=>$.get(U.id).y+te*Math.sin(Math.PI/6)).attr("r",X).attr("fill","white").attr("stroke",h.componentStroke).attr("stroke-width",2),re.filter(U=>U.isPipelineParent===!0).append("rect").attr("x",U=>$.get(U.id).x-f/2).attr("y",U=>$.get(U.id).y-f/2).attr("width",f).attr("height",f).attr("fill",h.componentFill).attr("stroke",h.componentStroke).attr("stroke-width",1),re.filter(U=>U.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",U=>{let ne=$.get(U.id),se=U.isPipelineParent?f/2+15:l.nodeRadius+15;return U.sourceStrategy&&(se+=l.nodeRadius+10),ne.x+se}).attr("y1",U=>{let ne=$.get(U.id),se=U.isPipelineParent?f:l.nodeRadius*2;return ne.y-se/2}).attr("x2",U=>{let ne=$.get(U.id),se=U.isPipelineParent?f/2+15:l.nodeRadius+15;return U.sourceStrategy&&(se+=l.nodeRadius+10),ne.x+se}).attr("y2",U=>{let ne=$.get(U.id),se=U.isPipelineParent?f:l.nodeRadius*2;return ne.y+se/2}).attr("stroke",h.componentStroke).attr("stroke-width",6),re.append("text").attr("x",U=>{let ne=$.get(U.id);if(U.className==="anchor")return U.labelOffsetX!==void 0?ne.x+U.labelOffsetX:ne.x;let se=l.nodeLabelOffset;U.sourceStrategy&&U.labelOffsetX===void 0&&(se+=10);let he=U.labelOffsetX??se;return ne.x+he}).attr("y",U=>{let ne=$.get(U.id);if(U.className==="anchor")return U.labelOffsetY!==void 0?ne.y+U.labelOffsetY:ne.y-3;let se=-l.nodeLabelOffset;U.sourceStrategy&&U.labelOffsetY===void 0&&(se-=10);let he=U.labelOffsetY??se;return ne.y+he}).attr("class","wardley-node-label").attr("fill",U=>U.className==="evolved"?h.evolutionStroke:U.className==="anchor"?"#000":h.componentLabelColor).attr("font-size",l.labelFontSize).attr("font-weight",U=>U.className==="anchor"?"bold":"normal").attr("text-anchor",U=>U.className==="anchor"?"middle":"start").attr("dominant-baseline",U=>U.className==="anchor"?"middle":"auto").text(U=>U.label),m.annotations.length>0){let U=E.append("g").attr("class","wardley-annotations");if(m.annotations.forEach(ne=>{let se=ne.coordinates.map(he=>({x:_(he.x),y:I(he.y)}));if(se.length>1)for(let he=0;he<se.length-1;he++)U.append("line").attr("class","wardley-annotation-line").attr("x1",se[he].x).attr("y1",se[he].y).attr("x2",se[he+1].x).attr("y2",se[he+1].y).attr("stroke",h.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");se.forEach(he=>{let le=U.append("g").attr("class","wardley-annotation");le.append("circle").attr("cx",he.x).attr("cy",he.y).attr("r",10).attr("fill","white").attr("stroke",h.axisColor).attr("stroke-width",1.5),le.append("text").attr("x",he.x).attr("y",he.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",h.axisTextColor).attr("font-weight","bold").text(ne.number)})}),m.annotationsBox){let ne=_(m.annotationsBox.x),se=I(m.annotationsBox.y),he=10,le=16,pe=11,ge=U.append("g").attr("class","wardley-annotations-box"),we=[...m.annotations].filter(ve=>ve.text).sort((ve,Ie)=>ve.number-Ie.number),Ae=[];if(we.forEach((ve,Ie)=>{let De=ge.append("text").attr("x",ne+he).attr("y",se+he+(Ie+1)*le).attr("font-size",pe).attr("fill",h.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${ve.number}. ${ve.text}`);Ae.push(De)}),Ae.length>0){let ve=0,Ie=0;Ae.forEach(Ft=>{let pr=Ft.node(),tr=pr.getComputedTextLength();ve=Math.max(ve,tr);let Mt=pr.getBBox();Ie=Math.max(Ie,Mt.height)});let De=ve+he*2+105,Be=we.length*le+he*2+Ie/2,Fe=l.padding,ze=v-l.padding-De,vt=l.padding,lt=T-l.padding-Be;ne=Math.max(Fe,Math.min(ne,ze)),se=Math.max(vt,Math.min(se,lt)),Ae.forEach((Ft,pr)=>{Ft.attr("x",ne+he).attr("y",se+he+(pr+1)*le)}),ge.insert("rect","text").attr("x",ne).attr("y",se).attr("width",De).attr("height",Be).attr("fill","white").attr("stroke",h.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(m.notes.length>0){let U=E.append("g").attr("class","wardley-notes");m.notes.forEach(ne=>{let se=_(ne.x),he=I(ne.y);U.append("text").attr("x",se).attr("y",he).attr("text-anchor","start").attr("font-size",11).attr("fill",h.axisTextColor).attr("font-weight","bold").text(ne.text)})}if(m.accelerators.length>0){let U=E.append("g").attr("class","wardley-accelerators");m.accelerators.forEach(ne=>{let se=_(ne.x),he=I(ne.y),le=60,pe=30,ge=20,we=`
|
|
M ${se} ${he-pe/2}
|
|
L ${se+le-ge} ${he-pe/2}
|
|
L ${se+le-ge} ${he-pe/2-8}
|
|
L ${se+le} ${he}
|
|
L ${se+le-ge} ${he+pe/2+8}
|
|
L ${se+le-ge} ${he+pe/2}
|
|
L ${se} ${he+pe/2}
|
|
Z
|
|
`;U.append("path").attr("d",we).attr("fill","white").attr("stroke",h.componentStroke).attr("stroke-width",1),U.append("text").attr("x",se+le/2).attr("y",he+pe/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",h.axisTextColor).attr("font-weight","bold").text(ne.name)})}if(m.deaccelerators.length>0){let U=E.append("g").attr("class","wardley-deaccelerators");m.deaccelerators.forEach(ne=>{let se=_(ne.x),he=I(ne.y),le=60,pe=30,ge=20,we=`
|
|
M ${se+le} ${he-pe/2}
|
|
L ${se+ge} ${he-pe/2}
|
|
L ${se+ge} ${he-pe/2-8}
|
|
L ${se} ${he}
|
|
L ${se+ge} ${he+pe/2+8}
|
|
L ${se+ge} ${he+pe/2}
|
|
L ${se+le} ${he+pe/2}
|
|
Z
|
|
`;U.append("path").attr("d",we).attr("fill","white").attr("stroke",h.componentStroke).attr("stroke-width",1),U.append("text").attr("x",se+le/2).attr("y",he+pe/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",h.axisTextColor).attr("font-weight","bold").text(ne.name)})}},"draw"),oXr={draw:h2i}});var cXr,uXr=ae(()=>{"use strict";Ma();jE();Xs();cXr=i(({wardley:r}={})=>{let t=hm(),a=ri(),s=il(t,a.themeVariables),l=il(s.wardley,r);return`
|
|
.wardley-background {
|
|
fill: ${l.backgroundColor};
|
|
}
|
|
.wardley-axes line, .wardley-axes path {
|
|
stroke: ${l.axisColor};
|
|
}
|
|
.wardley-axis-label {
|
|
fill: ${l.axisTextColor};
|
|
}
|
|
.wardley-stage-label {
|
|
fill: ${l.axisTextColor};
|
|
}
|
|
.wardley-grid line {
|
|
stroke: ${l.gridColor};
|
|
}
|
|
.wardley-node circle {
|
|
fill: ${l.componentFill};
|
|
stroke: ${l.componentStroke};
|
|
}
|
|
.wardley-node-label {
|
|
fill: ${l.componentLabelColor};
|
|
}
|
|
.wardley-link {
|
|
stroke: ${l.linkStroke};
|
|
}
|
|
.wardley-link--dashed {
|
|
stroke-dasharray: 4 4;
|
|
}
|
|
.wardley-link-label {
|
|
fill: ${l.axisTextColor};
|
|
}
|
|
.wardley-trend line {
|
|
stroke: ${l.evolutionStroke};
|
|
}
|
|
.wardley-annotation-line {
|
|
stroke: ${l.annotationStroke};
|
|
}
|
|
.wardley-annotation circle {
|
|
fill: ${l.annotationFill};
|
|
stroke: ${l.annotationStroke};
|
|
}
|
|
.wardley-annotation text {
|
|
fill: ${l.annotationTextColor};
|
|
}
|
|
.wardley-annotations-box rect {
|
|
fill: ${l.annotationFill};
|
|
stroke: ${l.annotationStroke};
|
|
}
|
|
.wardley-annotations-box text {
|
|
fill: ${l.annotationTextColor};
|
|
}
|
|
.wardley-pipeline-box {
|
|
stroke: ${l.componentStroke};
|
|
}
|
|
.wardley-notes text {
|
|
fill: ${l.axisTextColor};
|
|
}
|
|
`},"styles")});var hXr={};is(hXr,{diagram:()=>f2i});var f2i,fXr=ae(()=>{"use strict";nXr();sXr();lXr();uXr();f2i={parser:ept,db:aXr,renderer:oXr,styles:cXr}});var gXr,qse,m2i,y2i,b2i,v2i,w2i,x2i,hH,tpt=ae(()=>{"use strict";Xs();pp();Yn();Ma();Au();gXr=i(()=>({domains:new Map,transitions:[]}),"createDefaultData"),qse=gXr(),m2i=i(()=>qse.domains,"getDomains"),y2i=i(()=>qse.transitions,"getTransitions"),b2i=i(r=>{if(r)for(let t of r){let a=t.domain,s=(t.items??[]).map(l=>({label:l.label}));qse.domains.set(a,{name:a,items:s})}},"setDomains"),v2i=i(r=>{r&&(qse.transitions=r.filter(t=>t.from===t.to?(Pe.warn(`Cynefin: self-loop transition on domain "${t.from}" is not meaningful and will be skipped.`),!1):!0).map(t=>({from:t.from,to:t.to,label:t.label||void 0})))},"setTransitions"),w2i=i(()=>il({...ps.cynefin,...ri().cynefin}),"getConfig"),x2i=i(()=>{Ds(),qse=gXr()},"clear"),hH={getDomains:m2i,getTransitions:y2i,setDomains:b2i,setTransitions:v2i,getConfig:w2i,clear:x2i,setAccTitle:Os,getAccTitle:Vs,setDiagramTitle:io,getDiagramTitle:Ks,getAccDescription:Ws,setAccDescription:$s}});var T2i,mXr,yXr=ae(()=>{"use strict";w1();Yn();Gb();tpt();T2i=i(r=>{Eh(r,hH),hH.setDomains(r.domains),hH.setTransitions(r.transitions)},"populate"),mXr={parse:i(async r=>{let t=await Gd("cynefin",r);Pe.debug(t),T2i(t)},"parse")}});function xSe(r){let t=r+1831565813|0;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function k2i(r){let t=0;for(let a=0;a<r.length;a++){let s=r.charCodeAt(a);t=(t<<5)-t+s,t|=0}return t}function bXr(r,t){return typeof r=="number"&&Number.isFinite(r)&&r!==0?r:k2i(t)}function vXr(r,t,a,s){let l=r/2,h=s??r*.015,f=7,d=t/f,m=[];for(let v=0;v<=f;v++){let T=xSe(a+v*17)*h*2-h;m.push({x:l+T,y:v*d})}let b=`M${m[0].x},${m[0].y}`;for(let v=0;v<m.length-1;v++){let T=m[v],C=m[v+1],E=(T.y+C.y)/2,S=v%2===0?1:-1,R=h*1.5*S*xSe(a+v*31+7),L=T.x+R,_=E,I=C.x-R;b+=` C${L},${_} ${I},${E} ${C.x},${C.y}`}return b}function wXr(r,t,a,s){let l=t/2,h=s??t*.015,f=7,d=r/f,m=[];for(let v=0;v<=f;v++){let T=xSe(a+v*23)*h*2-h;m.push({x:v*d,y:l+T})}let b=`M${m[0].x},${m[0].y}`;for(let v=0;v<m.length-1;v++){let T=m[v],C=m[v+1],E=(T.x+C.x)/2,S=v%2===0?1:-1,R=h*1.5*S*xSe(a+v*37+11),L=E,_=T.y+R,I=E,N=C.y-R;b+=` C${L},${_} ${I},${N} ${C.x},${C.y}`}return b}function xXr(r,t){let a=r/2,s=t*.5,l=t,h=r*.03;return[`M${a},${s}`,`C${a+h},${s+(l-s)*.2}`,`${a-h*1.5},${s+(l-s)*.55}`,`${a+h*.5},${s+(l-s)*.75}`,`C${a-h},${s+(l-s)*.85}`,`${a+h*.3},${s+(l-s)*.95}`,`${a},${l}`].join(" ")}function TXr(r,t,a,s){return[`M${r-a},${t}`,`A${a},${s} 0 1,1 ${r+a},${t}`,`A${a},${s} 0 1,1 ${r-a},${t}`,"Z"].join(" ")}var kXr=ae(()=>{"use strict";i(xSe,"seededRandom");i(k2i,"hashString");i(bXr,"resolveSeed");i(vXr,"generateFoldPath");i(wXr,"generateHorizontalBoundary");i(xXr,"generateCliffPath");i(TXr,"generateConfusionPath")});var CXr,C2i,E2i,rpt,S2i,EXr,SXr=ae(()=>{"use strict";x1();$h();Yn();Xs();jE();Ma();kXr();CXr={complex:{model:"Probe \u2192 Sense \u2192 Respond",practice:"Emergent Practices"},complicated:{model:"Sense \u2192 Analyse \u2192 Respond",practice:"Good Practices"},clear:{model:"Sense \u2192 Categorise \u2192 Respond",practice:"Best Practices"},chaotic:{model:"Act \u2192 Sense \u2192 Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},C2i=i((r,t)=>{let a=r/2,s=t/2;return{complex:{cx:a/2,cy:s/2,x:0,y:0,w:a,h:s},complicated:{cx:a+a/2,cy:s/2,x:a,y:0,w:a,h:s},chaotic:{cx:a/2,cy:s+s/2,x:0,y:s,w:a,h:s},clear:{cx:a+a/2,cy:s+s/2,x:a,y:s,w:a,h:s},confusion:{cx:a,cy:s,x:a*.7,y:s*.7,w:a*.6,h:s*.6}}},"getDomainLayouts"),E2i=i(()=>{let r=hm(),t=ri();return il(r,t.themeVariables).cynefin},"getCynefinDomainColors"),rpt=3,S2i=i((r,t,a,s)=>{let l=s.db,h=l.getDomains(),f=l.getTransitions(),d=l.getDiagramTitle(),m=l.getAccTitle(),b=l.getAccDescription(),v=l.getConfig(),T=E2i();Pe.debug("Rendering Cynefin diagram");let C=v.width,E=v.height,S=v.padding,R=v.showDomainDescriptions,L=v.boundaryAmplitude,_=C+S*2,I=E+S*2,N={complex:T.complexBg,complicated:T.complicatedBg,clear:T.clearBg,chaotic:T.chaoticBg,confusion:T.confusionBg},B=pu(t);wl(B,I,_,v.useMaxWidth??!0),B.attr("viewBox",`0 0 ${_} ${I}`),m&&B.append("title").text(m),b&&B.append("desc").text(b);let O=B.append("g").attr("transform",`translate(${S}, ${S})`),P=C2i(C,E),$=bXr(v.seed,t),V=O.append("g").attr("class","cynefin-backgrounds"),Y=["complex","complicated","chaotic","clear"];for(let U of Y){let ne=P[U];V.append("rect").attr("class","cynefinDomain").attr("x",ne.x).attr("y",ne.y).attr("width",ne.w).attr("height",ne.h).attr("fill",N[U]).attr("fill-opacity",.4).attr("stroke","none")}let Q=O.append("g").attr("class","cynefin-boundaries");Q.append("path").attr("class","cynefinBoundary").attr("d",vXr(C,E,$,L)).attr("fill","none"),Q.append("path").attr("class","cynefinBoundary").attr("d",wXr(C,E,$+100,L)).attr("fill","none"),Q.append("path").attr("class","cynefinCliff").attr("d",xXr(C,E)).attr("fill","none");let q=C*.15,W=E*.15;O.append("path").attr("class","cynefinConfusion").attr("d",TXr(C/2,E/2,q,W)).attr("fill",N.confusion).attr("fill-opacity",.5);let H=O.append("g").attr("class","cynefin-labels");for(let U of Y){let ne=P[U];H.append("text").attr("class","cynefinDomainLabel").attr("x",ne.cx).attr("y",R?ne.cy-30:ne.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(U.charAt(0).toUpperCase()+U.slice(1))}if(H.append("text").attr("class","cynefinDomainLabel").attr("x",C/2).attr("y",R?E/2-10:E/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),R){let U=O.append("g").attr("class","cynefin-subtitles");for(let ne of Y){let se=P[ne],he=CXr[ne];U.append("text").attr("class","cynefinSubtitle").attr("x",se.cx).attr("y",se.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(he.model),U.append("text").attr("class","cynefinSubtitle").attr("x",se.cx).attr("y",se.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(he.practice)}U.append("text").attr("class","cynefinSubtitle").attr("x",C/2).attr("y",E/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(CXr.confusion.practice)}let re=O.append("g").attr("class","cynefin-items"),Z=26,X=10,te=["complex","complicated","chaotic","clear","confusion"];for(let U of te){let ne=h.get(U);if(!ne||ne.items.length===0)continue;let se=P[U],he=U==="confusion",le=ne.items,pe=0;he&&ne.items.length>rpt&&(pe=ne.items.length-rpt,le=ne.items.slice(0,rpt));let ge;if(he){let we=R?22:14;ge=se.cy+we}else ge=se.cy+(R?25:15);if([...le].forEach((we,Ae)=>{let ve=ge+Ae*(Z+4),Ie=re.append("g"),De=Ie.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",Z/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(we.label),Be=we.label.length*7,Fe=De.node();if(Fe&&typeof Fe.getBBox=="function"){let lt=Fe.getBBox();lt.width>0&&(Be=lt.width)}let ze=Be+X*2,vt=se.cx-ze/2;Ie.attr("transform",`translate(${vt}, ${ve})`),Ie.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",ze).attr("height",Z).attr("rx",4).attr("ry",4).attr("fill",N[U]).attr("fill-opacity",.95),De.attr("x",ze/2).attr("y",Z/2)}),pe>0){let we=ge+le.length*(Z+4),Ae=`+${pe} more`,ve=re.append("g"),Ie=ve.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",Z/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(Ae),De=Ae.length*7,Be=Ie.node();if(Be&&typeof Be.getBBox=="function"){let vt=Be.getBBox();vt.width>0&&(De=vt.width)}let Fe=De+X*2,ze=se.cx-Fe/2;ve.attr("transform",`translate(${ze}, ${we})`),ve.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",Fe).attr("height",Z).attr("rx",4).attr("ry",4).attr("fill",N[U]).attr("fill-opacity",.6),Ie.attr("x",Fe/2).attr("y",Z/2)}}if(f.length>0){let U=B.select("defs").empty()?B.append("defs"):B.select("defs"),ne=`cynefin-arrow-${t}`;U.append("marker").attr("id",ne).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let se=O.append("g").attr("class","cynefin-arrows");f.forEach(he=>{let le=P[he.from],pe=P[he.to];if(!le||!pe)return;if(he.from===he.to){Pe.warn(`Cynefin renderer: skipping self-loop on domain "${he.from}"`);return}let ge=le.cx,we=le.cy,Ae=pe.cx,ve=pe.cy,Ie=(ge+Ae)/2,De=(we+ve)/2,Be=Ae-ge,Fe=ve-we,ze=Math.sqrt(Be*Be+Fe*Fe),vt=ze*.15,lt=-Fe/ze,Ft=Be/ze,pr=Ie+lt*vt,tr=De+Ft*vt;se.append("path").attr("class","cynefinArrowLine").attr("d",`M${ge},${we} Q${pr},${tr} ${Ae},${ve}`).attr("fill","none").attr("marker-end",`url(#${ne})`),he.label&&se.append("text").attr("class","cynefinArrowLabel").attr("x",pr).attr("y",tr-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(he.label)})}d&&O.append("text").attr("class","cynefinTitle").attr("x",C/2).attr("y",-S/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d)},"draw"),EXr={draw:S2i}});var A2i,R2i,AXr,RXr=ae(()=>{"use strict";Ma();jE();Xs();A2i=i(()=>{let r=hm(),t=ri();return il(r,t.themeVariables).cynefin},"getCynefinTheme"),R2i=i(()=>{let r=A2i();return`
|
|
.cynefinDomain {
|
|
stroke: none;
|
|
}
|
|
.cynefinDomainLabel {
|
|
font-size: ${r.domainFontSize}px;
|
|
font-weight: bold;
|
|
fill: ${r.labelColor};
|
|
}
|
|
.cynefinSubtitle {
|
|
font-size: ${r.itemFontSize-1}px;
|
|
fill: ${r.textColor};
|
|
font-style: italic;
|
|
}
|
|
.cynefinItem {
|
|
fill-opacity: 0.95;
|
|
stroke: ${r.boundaryColor};
|
|
stroke-width: 1;
|
|
}
|
|
.cynefinItemText {
|
|
font-size: ${r.itemFontSize}px;
|
|
fill: ${r.textColor};
|
|
}
|
|
.cynefinItemOverflow {
|
|
fill-opacity: 0.6;
|
|
stroke: ${r.boundaryColor};
|
|
stroke-width: 1;
|
|
stroke-dasharray: 3 2;
|
|
}
|
|
.cynefinBoundary {
|
|
stroke: ${r.boundaryColor};
|
|
stroke-width: ${r.boundaryWidth};
|
|
stroke-dasharray: 6 3;
|
|
}
|
|
.cynefinCliff {
|
|
stroke: ${r.cliffColor};
|
|
stroke-width: ${r.cliffWidth};
|
|
}
|
|
.cynefinConfusion {
|
|
stroke: ${r.boundaryColor};
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: 4 2;
|
|
}
|
|
.cynefinArrowLine {
|
|
stroke: ${r.arrowColor};
|
|
stroke-width: ${r.arrowWidth};
|
|
fill: none;
|
|
}
|
|
.cynefinArrowHead {
|
|
fill: ${r.arrowColor};
|
|
stroke: none;
|
|
}
|
|
.cynefinArrowLabel {
|
|
font-size: ${r.itemFontSize-1}px;
|
|
fill: ${r.textColor};
|
|
}
|
|
.cynefinTitle {
|
|
font-size: ${r.domainFontSize+2}px;
|
|
font-weight: bold;
|
|
fill: ${r.labelColor};
|
|
}
|
|
`},"styles"),AXr=R2i});var LXr={};is(LXr,{diagram:()=>L2i});var L2i,_Xr=ae(()=>{"use strict";yXr();tpt();SXr();RXr();L2i={parser:mXr,db:hH,renderer:EXr,styles:AXr}});var npt,ipt,apt,spt,TSe,GD,fH,I2i,MXr,NXr,M2i,N2i,O2i,P2i,B2i,F2i,$2i,G2i,j2i,Mc,s5=ae(()=>{"use strict";ma();Yn();Au();nl();npt="",ipt="",apt="",spt=[],TSe=new Map,GD=i(r=>Ns(r,er()),"sanitizeText"),fH=i(r=>{switch(r.type){case"terminal":return{...r,value:GD(r.value)};case"nonterminal":return{...r,name:GD(r.name)};case"sequence":return{...r,elements:r.elements.map(fH)};case"choice":return{...r,alternatives:r.alternatives.map(fH)};case"optional":return{...r,element:fH(r.element)};case"repetition":return{...r,element:fH(r.element),separator:r.separator?fH(r.separator):void 0};case"special":return{...r,text:GD(r.text)}}},"sanitizeAstNode"),I2i=i(()=>{npt="",ipt="",apt="",spt.length=0,TSe.clear(),Ds(),Pe.debug("[Railroad] Database cleared")},"clear"),MXr=i(r=>{npt=GD(r),Pe.debug("[Railroad] Title set:",r)},"setTitle"),NXr=i(()=>npt,"getTitle"),M2i=i(r=>{let t={...r,name:GD(r.name),definition:fH(r.definition),comment:r.comment?GD(r.comment):void 0};Pe.debug("[Railroad] Adding rule:",t.name),TSe.has(t.name)&&Pe.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),spt.push(t),TSe.set(t.name,t)},"addRule"),N2i=i(()=>spt,"getRules"),O2i=i(r=>TSe.get(r),"getRule"),P2i=i(r=>{ipt=GD(r).replace(/^\s+/g,""),Pe.debug("[Railroad] Accessibility title set:",r)},"setAccTitle"),B2i=i(()=>ipt,"getAccTitle"),F2i=i(r=>{apt=GD(r).replace(/\n\s+/g,`
|
|
`),Pe.debug("[Railroad] Accessibility description set:",r)},"setAccDescription"),$2i=i(()=>apt,"getAccDescription"),G2i=MXr,j2i=NXr,Mc={clear:I2i,setTitle:MXr,getTitle:NXr,addRule:M2i,getRules:N2i,getRule:O2i,setAccTitle:P2i,getAccTitle:B2i,setAccDescription:F2i,getAccDescription:$2i,setDiagramTitle:G2i,getDiagramTitle:j2i}});var z2i,dH,U2i,V2i,OXr,PXr=ae(()=>{"use strict";w1();Yn();Gb();s5();z2i=dW().Railroad.parser.LangiumParser,dH=i(r=>{switch(r.$type){case"RailroadTerminalExpr":return{type:"terminal",value:r.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:r.name};case"RailroadSpecialExpr":return{type:"special",text:r.text};case"RailroadSequenceExpr":{let t=r.elements.map(dH);return t.length===1?t[0]:{type:"sequence",elements:t}}case"RailroadChoiceExpr":{let t=r.alternatives.map(dH);return t.length===1?t[0]:{type:"choice",alternatives:t}}case"RailroadOptionalExpr":return{type:"optional",element:dH(r.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:dH(r.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:dH(r.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${r.$type}`)}},"transformExpression"),U2i=i(r=>({name:r.name,definition:dH(r.definition)}),"transformRule"),V2i=i(r=>{Eh(r,Mc),r.title&&Mc.setTitle(r.title),r.rules.map(t=>Mc.addRule(U2i(t)))},"populateDb"),OXr={parse:i(r=>{Mc.clear(),Pe.debug("[Railroad Parser] Starting Langium parse");let t=z2i.parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new g8(t);let a=t.value;Pe.debug("[Railroad Parser] Parsed rules:",a.rules.length),V2i(a),Pe.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:Mc}}});var _m,BXr=ae(()=>{"use strict";_m={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5}});var W2i,H2i,q2i,FXr,Y2i,X2i,Sh,$Xr,VB,K2i,J2i,kSe,jD,pH=ae(()=>{"use strict";Xs();jE();BXr();W2i=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,H2i=/^[\w "',.-]+$/,q2i=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),FXr=i(r=>r?Object.keys(r).every(t=>t==="railroad"||q2i.has(t)):!1,"isRailroadStyleOptions"),Y2i=i(r=>r?"railroad"in r&&r.railroad?r.railroad:FXr(r)?r:{}:{},"extractRailroadOverrides"),X2i=i(r=>{if(!r||FXr(r))return{};let{railroad:t,svgId:a,theme:s,look:l,...h}=r;return h},"extractThemeOverrides"),Sh=i((r,t)=>{if(typeof r!="string")return t;let a=r.trim();return W2i.test(a)?a:t},"sanitizeColorValue"),$Xr=i((r,t)=>{if(typeof r!="string")return t;let a=r.trim();return H2i.test(a)?a:t},"sanitizeFontFamilyValue"),VB=i((r,t)=>{let a=typeof r=="number"?r:typeof r=="string"?Number.parseFloat(r):Number.NaN;return Number.isFinite(a)&&a>=0?a:t},"sanitizeNumberValue"),K2i=i(r=>{let t=typeof r=="number"?r:typeof r=="string"?Number.parseFloat(r):Number.NaN;return Number.isFinite(t)&&t>0?t:void 0},"parseThemeFontSize"),J2i=i(r=>{let t=$Xr(r.fontFamily,_m.fontFamily),a=K2i(r.fontSize)??_m.fontSize;return{..._m,fontFamily:t,fontSize:a,terminalFill:Sh(r.secondBkg??r.secondaryColor,_m.terminalFill),terminalStroke:Sh(r.secondaryBorderColor??r.lineColor,_m.terminalStroke),terminalTextColor:Sh(r.secondaryTextColor??r.textColor,_m.terminalTextColor),nonTerminalFill:Sh(r.mainBkg??r.background,_m.nonTerminalFill),nonTerminalStroke:Sh(r.primaryBorderColor??r.lineColor,_m.nonTerminalStroke),nonTerminalTextColor:Sh(r.primaryTextColor??r.textColor,_m.nonTerminalTextColor),lineColor:Sh(r.lineColor,_m.lineColor),markerFill:Sh(r.lineColor,_m.markerFill),commentFill:Sh(r.labelBackground??r.tertiaryColor,_m.commentFill),commentStroke:Sh(r.tertiaryBorderColor??r.lineColor,_m.commentStroke),commentTextColor:Sh(r.tertiaryTextColor??r.textColor,_m.commentTextColor),specialFill:Sh(r.tertiaryColor??r.secondaryColor,_m.specialFill),specialStroke:Sh(r.tertiaryBorderColor??r.secondaryBorderColor,_m.specialStroke),ruleNameColor:Sh(r.titleColor??r.textColor,_m.ruleNameColor)}},"buildThemeDefaults"),kSe=i(r=>{let t=ri(),a={...hm(),...t.themeVariables??{},...X2i(r)},s=J2i(a),l={...t.railroad??{},...Y2i(r)};return{compactMode:l.compactMode??s.compactMode,padding:VB(l.padding,s.padding),verticalSeparation:VB(l.verticalSeparation,s.verticalSeparation),horizontalSeparation:VB(l.horizontalSeparation,s.horizontalSeparation),arcRadius:VB(l.arcRadius,s.arcRadius),fontSize:VB(l.fontSize,s.fontSize),fontFamily:$Xr(l.fontFamily,s.fontFamily),terminalFill:Sh(l.terminalFill,s.terminalFill),terminalStroke:Sh(l.terminalStroke,s.terminalStroke),terminalTextColor:Sh(l.terminalTextColor,s.terminalTextColor),nonTerminalFill:Sh(l.nonTerminalFill,s.nonTerminalFill),nonTerminalStroke:Sh(l.nonTerminalStroke,s.nonTerminalStroke),nonTerminalTextColor:Sh(l.nonTerminalTextColor,s.nonTerminalTextColor),lineColor:Sh(l.lineColor,s.lineColor),strokeWidth:VB(l.strokeWidth,s.strokeWidth),markerFill:Sh(l.markerFill,s.markerFill),commentFill:Sh(l.commentFill,s.commentFill),commentStroke:Sh(l.commentStroke,s.commentStroke),commentTextColor:Sh(l.commentTextColor,s.commentTextColor),specialFill:Sh(l.specialFill,s.specialFill),specialStroke:Sh(l.specialStroke,s.specialStroke),ruleNameColor:Sh(l.ruleNameColor,s.ruleNameColor),showMarkers:l.showMarkers??s.showMarkers,markerRadius:VB(l.markerRadius,s.markerRadius)}},"buildRailroadStyleOptions"),jD=i(r=>{let{fontFamily:t,fontSize:a,terminalFill:s,terminalStroke:l,terminalTextColor:h,nonTerminalFill:f,nonTerminalStroke:d,nonTerminalTextColor:m,lineColor:b,strokeWidth:v,markerFill:T,commentFill:C,commentStroke:E,commentTextColor:S,specialFill:R,specialStroke:L,ruleNameColor:_}=kSe(r);return`
|
|
.railroad-diagram {
|
|
font-family: ${t};
|
|
font-size: ${a}px;
|
|
}
|
|
|
|
.railroad-terminal rect {
|
|
fill: ${s};
|
|
stroke: ${l};
|
|
stroke-width: ${v}px;
|
|
}
|
|
|
|
.railroad-terminal text {
|
|
fill: ${h};
|
|
font-family: ${t};
|
|
font-size: ${a}px;
|
|
text-anchor: middle;
|
|
dominant-baseline: middle;
|
|
}
|
|
|
|
.railroad-nonterminal rect {
|
|
fill: ${f};
|
|
stroke: ${d};
|
|
stroke-width: ${v}px;
|
|
}
|
|
|
|
.railroad-nonterminal text {
|
|
fill: ${m};
|
|
font-family: ${t};
|
|
font-size: ${a}px;
|
|
text-anchor: middle;
|
|
dominant-baseline: middle;
|
|
}
|
|
|
|
.railroad-line {
|
|
stroke: ${b};
|
|
stroke-width: ${v}px;
|
|
fill: none;
|
|
}
|
|
|
|
.railroad-start circle,
|
|
.railroad-end circle {
|
|
fill: ${T};
|
|
}
|
|
|
|
.railroad-comment ellipse {
|
|
fill: ${C};
|
|
stroke: ${E};
|
|
stroke-width: ${v}px;
|
|
}
|
|
|
|
.railroad-comment text {
|
|
fill: ${S};
|
|
font-style: italic;
|
|
font-family: ${t};
|
|
font-size: ${a}px;
|
|
text-anchor: middle;
|
|
dominant-baseline: middle;
|
|
}
|
|
|
|
.railroad-special rect {
|
|
fill: ${R};
|
|
stroke: ${L};
|
|
stroke-width: ${v}px;
|
|
stroke-dasharray: 5,3;
|
|
}
|
|
|
|
.railroad-special text {
|
|
fill: ${m};
|
|
font-family: ${t};
|
|
font-size: ${a}px;
|
|
text-anchor: middle;
|
|
dominant-baseline: middle;
|
|
}
|
|
|
|
.railroad-rule-name {
|
|
font-weight: bold;
|
|
fill: ${_};
|
|
font-family: ${t};
|
|
font-size: ${a}px;
|
|
}
|
|
|
|
.railroad-group {
|
|
/* Grouping container, no specific styles */
|
|
}
|
|
`},"getStyles")});var _2,opt,GXr,Q2i,zD,Yse=ae(()=>{"use strict";Yn();Xs();x1();$h();s5();pH();_2=class{constructor(){this.d=""}static{i(this,"PathBuilder")}moveTo(t,a){return this.d+=`M ${t} ${a} `,this}lineTo(t,a){return this.d+=`L ${t} ${a} `,this}horizontalTo(t){return this.d+=`H ${t} `,this}verticalTo(t){return this.d+=`V ${t} `,this}arcTo(t,a,s,l,h,f,d){return this.d+=`A ${t} ${a} ${s} ${l?1:0} ${h?1:0} ${f} ${d} `,this}build(){return this.d.trim()}},opt=class{constructor(t,a=kSe()){this.textCache=new Map;this.svg=t,this.config=a}static{i(this,"RailroadRenderer")}measureText(t){if(this.textCache.has(t))return this.textCache.get(t);let a=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(t),s=a.node().getBBox(),l={width:s.width,height:s.height};return a.remove(),this.textCache.set(t,l),l}renderTerminal(t,a){let s=this.measureText(a),l=s.width+this.config.padding*2,h=s.height+this.config.padding*2,f=t.append("g").attr("class","railroad-terminal");return f.append("rect").attr("x",0).attr("y",0).attr("width",l).attr("height",h).attr("rx",10).attr("ry",10),f.append("text").attr("x",l/2).attr("y",h/2).text(a),{element:f.node(),dimensions:{width:l,height:h,up:h/2,down:h/2}}}renderNonTerminal(t,a){let s=this.measureText(a),l=s.width+this.config.padding*2,h=s.height+this.config.padding*2,f=t.append("g").attr("class","railroad-nonterminal");return f.append("rect").attr("x",0).attr("y",0).attr("width",l).attr("height",h),f.append("text").attr("x",l/2).attr("y",h/2).text(a),{element:f.node(),dimensions:{width:l,height:h,up:h/2,down:h/2}}}renderSequence(t,a){let s=a.map(b=>this.renderExpression(t,b)),l=0,h=0,f=0;for(let b of s)l+=b.dimensions.width,h=Math.max(h,b.dimensions.up),f=Math.max(f,b.dimensions.down);l+=(s.length-1)*this.config.horizontalSeparation;let d=t.append("g").attr("class","railroad-sequence"),m=0;for(let b=0;b<s.length;b++){let v=s[b],T=h-v.dimensions.up;if(d.node().appendChild(v.element).setAttribute("transform",`translate(${m}, ${T})`),b<s.length-1){let E=m+v.dimensions.width,S=E+this.config.horizontalSeparation,R=h;d.append("path").attr("class","railroad-line").attr("d",new _2().moveTo(E,R).lineTo(S,R).build())}m+=v.dimensions.width+this.config.horizontalSeparation}return{element:d.node(),dimensions:{width:l,height:h+f,up:h,down:f}}}renderChoice(t,a){let s=a.map(C=>this.renderExpression(t,C)),l=0,h=0;for(let C of s)l=Math.max(l,C.dimensions.width),h+=C.dimensions.height;h+=(s.length-1)*this.config.verticalSeparation;let f=this.config.arcRadius,d=f*4,m=l+d,b=t.append("g").attr("class","railroad-choice"),v=0,T=h/2;for(let C of s){let E=v,S=E+C.dimensions.up,R=f*2+(l-C.dimensions.width)/2;b.node().appendChild(C.element).setAttribute("transform",`translate(${R}, ${E})`);let _=new _2,I=S>T;S===T?_.moveTo(0,T).lineTo(R,S):_.moveTo(0,T).arcTo(f,f,0,!1,I,f,T+(I?f:-f)).lineTo(f,S-(I?f:-f)).arcTo(f,f,0,!1,!I,f*2,S).lineTo(R,S),b.append("path").attr("class","railroad-line").attr("d",_.build());let N=new _2,B=R+C.dimensions.width,O=m-f*2;S===T?N.moveTo(B,S).lineTo(m,T):N.moveTo(B,S).lineTo(O,S).arcTo(f,f,0,!1,!I,m-f,S+(I?-f:f)).lineTo(m-f,T+(I?f:-f)).arcTo(f,f,0,!1,I,m,T),b.append("path").attr("class","railroad-line").attr("d",N.build()),v+=C.dimensions.height+this.config.verticalSeparation}return{element:b.node(),dimensions:{width:m,height:h,up:T,down:h-T}}}renderOptional(t,a){let s=this.renderExpression(t,a),l=this.config.arcRadius,h=l*2,f=s.dimensions.width+l*4,d=s.dimensions.height+h,m=t.append("g").attr("class","railroad-optional"),b=l*2,v=h;m.node().appendChild(s.element).setAttribute("transform",`translate(${b}, ${v})`);let C=v+s.dimensions.up,E=new _2().moveTo(0,C).lineTo(l*2,C);m.append("path").attr("class","railroad-line").attr("d",E.build());let S=new _2().moveTo(b+s.dimensions.width,C).lineTo(f,C);m.append("path").attr("class","railroad-line").attr("d",S.build());let R=new _2().moveTo(0,C).arcTo(l,l,0,!1,!1,l,C-l).lineTo(l,l).arcTo(l,l,0,!1,!0,l*2,0).lineTo(f-l*2,0).arcTo(l,l,0,!1,!0,f-l,l).lineTo(f-l,C-l).arcTo(l,l,0,!1,!1,f,C);return m.append("path").attr("class","railroad-line").attr("d",R.build()),{element:m.node(),dimensions:{width:f,height:d,up:C,down:d-C}}}renderRepetition(t,a,s){let l=this.renderExpression(t,a),h=this.config.arcRadius,f=h*2,d=l.dimensions.width+h*4,m=s===0,b=l.dimensions.height+f+(m?f:0),v=t.append("g").attr("class","railroad-repetition"),T=h*2,C=m?f:0;v.node().appendChild(l.element).setAttribute("transform",`translate(${T}, ${C})`);let S=C+l.dimensions.up;v.append("path").attr("class","railroad-line").attr("d",new _2().moveTo(0,S).lineTo(h*2,S).build()),v.append("path").attr("class","railroad-line").attr("d",new _2().moveTo(T+l.dimensions.width,S).lineTo(d,S).build());let R=C+l.dimensions.height+h,L=new _2().moveTo(T+l.dimensions.width,S).arcTo(h,h,0,!1,!0,T+l.dimensions.width+h,S+h).lineTo(T+l.dimensions.width+h,R).arcTo(h,h,0,!1,!0,T+l.dimensions.width,R+h).lineTo(h*2,R+h).arcTo(h,h,0,!1,!0,h,R).lineTo(h,S+h).arcTo(h,h,0,!1,!0,h*2,S);if(v.append("path").attr("class","railroad-line").attr("d",L.build()),m){let _=new _2().moveTo(0,S).arcTo(h,h,0,!1,!1,h,S-h).lineTo(h,h).arcTo(h,h,0,!1,!0,h*2,0).lineTo(d-h*2,0).arcTo(h,h,0,!1,!0,d-h,h).lineTo(d-h,S-h).arcTo(h,h,0,!1,!1,d,S);v.append("path").attr("class","railroad-line").attr("d",_.build())}return{element:v.node(),dimensions:{width:d,height:b,up:S,down:b-S}}}renderSpecial(t,a){let s=this.measureText("? "+a+" ?"),l=s.width+this.config.padding*2,h=s.height+this.config.padding*2,f=t.append("g").attr("class","railroad-special");return f.append("rect").attr("x",0).attr("y",0).attr("width",l).attr("height",h),f.append("text").attr("x",l/2).attr("y",h/2).text("? "+a+" ?"),{element:f.node(),dimensions:{width:l,height:h,up:h/2,down:h/2}}}renderExpression(t,a){switch(a.type){case"terminal":return this.renderTerminal(t,a.value);case"nonterminal":return this.renderNonTerminal(t,a.name);case"sequence":return this.renderSequence(t,a.elements);case"choice":return this.renderChoice(t,a.alternatives);case"optional":return this.renderOptional(t,a.element);case"repetition":return this.renderRepetition(t,a.element,a.min);case"special":return this.renderSpecial(t,a.text);default:throw new Error(`Unknown node type: ${a.type}`)}}renderRule(t,a){let s=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${a})`),l=t.name+" =",h=this.measureText(l).width+20,f=h+20,d=s.append("g"),m=this.renderExpression(d,t.definition),b=Math.max(20,m.dimensions.up),v=b-m.dimensions.up;return d.attr("transform",`translate(${f}, ${v})`),s.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",b).text(l),s.append("g").attr("class","railroad-start").append("circle").attr("cx",h).attr("cy",b).attr("r",this.config.markerRadius),s.append("g").attr("class","railroad-end").append("circle").attr("cx",f+m.dimensions.width+10).attr("cy",b).attr("r",this.config.markerRadius),s.append("path").attr("class","railroad-line").attr("d",new _2().moveTo(h+this.config.markerRadius,b).lineTo(f,b).build()),s.append("path").attr("class","railroad-line").attr("d",new _2().moveTo(f+m.dimensions.width,b).lineTo(f+m.dimensions.width+10-this.config.markerRadius,b).build()),{height:Math.max(40,v+m.dimensions.height+this.config.padding*2),width:f+m.dimensions.width+10+this.config.markerRadius}}renderDiagram(t){let a=this.config.padding,s=0;for(let l of t){let h=this.renderRule(l,a);a+=h.height+this.config.verticalSeparation,s=Math.max(s,h.width)}return{width:s+this.config.padding*2,height:a+this.config.padding}}},GXr=i((r,t,a)=>{wl(r,t.height,t.width,a),r.attr("viewBox",`0 0 ${t.width} ${t.height}`)},"configureRailroadSvgSize"),Q2i=i((r,t,a)=>{Pe.debug(`[Railroad] Rendering diagram
|
|
`+r);try{let s=pu(t);s.attr("class","railroad-diagram");let h=ri().railroad?.useMaxWidth??!0,f=Mc.getRules();if(Pe.debug(`[Railroad] Rendering ${f.length} rules`),f.length===0){Pe.warn("[Railroad] No rules to render"),GXr(s,{height:100,width:200},h);return}let m=new opt(s,kSe()).renderDiagram(f);GXr(s,m,h),Pe.debug("[Railroad] Render complete")}catch(s){throw Pe.error("[Railroad] Render error:",s),s}},"draw"),zD={draw:Q2i}});var zXr={};is(zXr,{default:()=>Z2i,diagram:()=>jXr});var jXr,Z2i,UXr=ae(()=>{"use strict";PXr();s5();Yse();pH();jXr={parser:OXr,db:Mc,renderer:zD,styles:jD},Z2i=jXr});var rwi,CSe,nwi,HXr,iwi,awi,swi,owi,qXr,YXr=ae(()=>{"use strict";w1();Yn();Gb();s5();rwi=pW().RailroadEbnf.parser.LangiumParser,CSe=i(r=>{let t=r.alternatives.map(nwi);return t.length===1?t[0]:{type:"choice",alternatives:t}},"transformChoice"),nwi=i(r=>{let t=r.elements.map(awi);return t.length===1?t[0]:{type:"sequence",elements:t}},"transformSequence"),HXr=i(r=>{switch(r.$type){case"EbnfTerminal":return{type:"terminal",value:r.value};case"EbnfNonTerminal":return{type:"nonterminal",name:r.name};case"EbnfSpecial":return{type:"special",text:r.text};case"EbnfGroup":return CSe(r.element);case"EbnfOptional":return{type:"optional",element:CSe(r.element)};case"EbnfRepetition":return{type:"repetition",element:CSe(r.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${r.$type}`)}},"transformPrimary"),iwi=i((r,t)=>{switch(t.$type){case"EbnfOptionalPostfix":return{type:"optional",element:r};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:r,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:r,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[r,{type:"terminal",value:"-"},HXr(t.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${t.$type}`)}},"transformPostfix"),awi=i(r=>r.postfixes.reduce((t,a)=>iwi(t,a),HXr(r.base)),"transformTerm"),swi=i(r=>({name:r.name,definition:CSe(r.definition)}),"transformRule"),owi=i(r=>{Eh(r,Mc),r.title&&Mc.setTitle(r.title),r.rules.map(t=>Mc.addRule(swi(t)))},"populateDb"),qXr={parse:i(r=>{Mc.clear(),Pe.debug("[EBNF Parser] Starting Langium parse");let t=rwi.parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new g8(t);let a=t.value;Pe.debug("[EBNF Parser] Parsed rules:",a.rules.length),owi(a),Pe.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:Mc}}});var XXr={};is(XXr,{diagram:()=>lwi});var lwi,KXr=ae(()=>{"use strict";YXr();s5();Yse();pH();lwi={parser:qXr,db:Mc,renderer:zD,styles:jD}});var hwi,lpt,fwi,dwi,pwi,gwi,mwi,ywi,ZXr,eKr=ae(()=>{"use strict";w1();Yn();Gb();s5();hwi=gW().RailroadAbnf.parser.LangiumParser,lpt=i(r=>{let t=r.alternatives.map(fwi);return t.length===1?t[0]:{type:"choice",alternatives:t}},"transformAlternation"),fwi=i(r=>{let t=r.elements.map(pwi);return t.length===1?t[0]:{type:"sequence",elements:t}},"transformConcatenation"),dwi=i(r=>{if(r.includes("*")){let[a,s]=r.split("*"),l=a?parseInt(a,10):0,h=s?parseInt(s,10):1/0;return{min:l,max:h}}let t=parseInt(r,10);return{min:t,max:t}},"parseRepeat"),pwi=i(r=>{let t=gwi(r.primary);if(!r.repeat)return t;let{min:a,max:s}=dwi(r.repeat);return a===0&&s===1?{type:"optional",element:t}:{type:"repetition",element:t,min:a,max:s}},"transformElement"),gwi=i(r=>{switch(r.$type){case"AbnfStringLiteral":return{type:"terminal",value:r.value};case"AbnfNumVal":return{type:"terminal",value:r.value};case"AbnfRuleName":return{type:"nonterminal",name:r.name};case"AbnfGroup":return lpt(r.element);case"AbnfOptionalGroup":return{type:"optional",element:lpt(r.element)};default:throw new Error(`Unsupported ABNF primary node: ${r.$type}`)}},"transformPrimary"),mwi=i(r=>({name:r.name,definition:lpt(r.definition)}),"transformRule"),ywi=i(r=>{Eh(r,Mc),r.title&&Mc.setTitle(r.title),r.rules.map(t=>Mc.addRule(mwi(t)))},"populateDb"),ZXr={parse:i(r=>{Mc.clear(),Pe.debug("[ABNF Parser] Starting Langium parse");let t=hwi.parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new g8(t);let a=t.value;Pe.debug("[ABNF Parser] Parsed rules:",a.rules.length),ywi(a),Pe.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:Mc}}});var tKr={};is(tKr,{diagram:()=>bwi});var bwi,rKr=ae(()=>{"use strict";eKr();s5();Yse();pH();bwi={parser:ZXr,db:Mc,renderer:zD,styles:jD}});var xwi,sKr,Twi,kwi,aKr,Cwi,Ewi,Swi,Awi,oKr,lKr=ae(()=>{"use strict";w1();Yn();Gb();s5();xwi=mW().RailroadPeg.parser.LangiumParser,sKr=i(r=>{let t=r.alternatives.map(Twi);return t.length===1?t[0]:{type:"choice",alternatives:t}},"transformOrderedChoice"),Twi=i(r=>{let t=r.elements.map(kwi);return t.length===1?t[0]:{type:"sequence",elements:t}},"transformSequence"),kwi=i(r=>{let t=Cwi(r.suffix);return r.operator?{type:"special",text:r.operator==="&"?`&${aKr(t)}`:`!${aKr(t)}`}:t},"transformPrefix"),aKr=i(r=>{switch(r.type){case"terminal":return`"${r.value}"`;case"nonterminal":return r.name;case"special":return r.text;default:return"(...)"}},"nodeToLabel"),Cwi=i(r=>{let t=Ewi(r.primary);if(!r.operator)return t;switch(r.operator){case"?":return{type:"optional",element:t};case"*":return{type:"repetition",element:t,min:0,max:1/0};case"+":return{type:"repetition",element:t,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${r.operator}`)}},"transformSuffix"),Ewi=i(r=>{switch(r.$type){case"PegLiteral":return{type:"terminal",value:r.value};case"PegIdentifier":return{type:"nonterminal",name:r.name};case"PegGroup":return sKr(r.element);case"PegAny":return{type:"special",text:r.dot};default:throw new Error(`Unsupported PEG primary node: ${r.$type}`)}},"transformPrimary"),Swi=i(r=>({name:r.name,definition:sKr(r.definition)}),"transformRule"),Awi=i(r=>{Eh(r,Mc),r.title&&Mc.setTitle(r.title),r.rules.map(t=>Mc.addRule(Swi(t)))},"populateDb"),oKr={parse:i(r=>{Mc.clear(),Pe.debug("[PEG Parser] Starting Langium parse");let t=xwi.parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new g8(t);let a=t.value;Pe.debug("[PEG Parser] Parsed rules:",a.rules.length),Awi(a),Pe.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:Mc}}});var cKr={};is(cKr,{diagram:()=>Rwi});var Rwi,uKr=ae(()=>{"use strict";lKr();s5();Yse();pH();Rwi={parser:oKr,db:Mc,renderer:zD,styles:jD}});var bxi={};is(bxi,{default:()=>yxi});Xw();Fqe();zL();var oMn=i(r=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(r),"detector"),lMn=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Mbr(),Ibr));return{id:"c4",diagram:r}},"loader"),cMn={id:"c4",detector:oMn,loader:lMn},Nbr=cMn;var SRr="flowchart-v2",$ei=i(r=>/^\s*(graph|flowchart)/.test(r),"detector"),Gei=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Lke(),bit));return{id:SRr,diagram:r}},"loader"),jei={id:SRr,detector:$ei,loader:Gei},ARr=jei;var HRr="agentflow",tti=i(r=>/^\s*agentflow-beta\b/.test(r),"detector"),rti=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(WRr(),VRr));return{id:HRr,diagram:r}},"loader"),nti={id:HRr,detector:tti,loader:rti},qRr=nti;var QRr="swimlane",sti=i(r=>/^\s*swimlane-beta\b/.test(r),"detector"),oti=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(JRr(),KRr));return{id:QRr,diagram:r}},"loader"),lti={id:QRr,detector:sti,loader:oti},ZRr=lti;var dti=i(r=>/^\s*erDiagram/.test(r),"detector"),pti=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(lLr(),oLr));return{id:"er",diagram:r}},"loader"),gti={id:"er",detector:dti,loader:pti},cLr=gti;var tFr="gitGraph",Zci=i(r=>/^\s*gitGraph/.test(r),"detector"),eui=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(eFr(),ZBr));return{id:tFr,diagram:r}},"loader"),tui={id:tFr,detector:Zci,loader:eui},rFr=tui;var PFr="gantt",Uui=i(r=>/^\s*gantt/.test(r),"detector"),Vui=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(OFr(),NFr));return{id:PFr,diagram:r}},"loader"),Wui={id:PFr,detector:Uui,loader:Vui},BFr=Wui;var HFr="info",Kui=i(r=>/^\s*info/.test(r),"detector"),Jui=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(WFr(),VFr));return{id:HFr,diagram:r}},"loader"),qFr={id:HFr,detector:Kui,loader:Jui};var uhi=i(r=>/^\s*pie/.test(r),"detector"),hhi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(r$r(),t$r));return{id:"pie",diagram:r}},"loader"),n$r={id:"pie",detector:uhi,loader:hhi};var m$r="quadrantChart",Rhi=i(r=>/^\s*quadrantChart/.test(r),"detector"),Lhi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(g$r(),p$r));return{id:m$r,diagram:r}},"loader"),_hi={id:m$r,detector:Rhi,loader:Lhi},y$r=_hi;var q$r="xychart",Khi=i(r=>/^\s*xychart(-beta)?/.test(r),"detector"),Jhi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(H$r(),W$r));return{id:q$r,diagram:r}},"loader"),Qhi={id:q$r,detector:Khi,loader:Jhi},Y$r=Qhi;var nGr="requirement",nfi=i(r=>/^\s*requirement(Diagram)?/.test(r),"detector"),ifi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(rGr(),tGr));return{id:nGr,diagram:r}},"loader"),afi={id:nGr,detector:nfi,loader:ifi},iGr=afi;var AGr="sequence",rdi=i(r=>/^\s*sequenceDiagram/.test(r),"detector"),ndi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(SGr(),EGr));return{id:AGr,diagram:r}},"loader"),idi={id:AGr,detector:rdi,loader:ndi},RGr=idi;var jGr="classDiagram",hdi=i(r=>/^\s*classDiagram/.test(r),"detector"),fdi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(GGr(),$Gr));return{id:jGr,diagram:r}},"loader"),ddi={id:jGr,detector:hdi,loader:fdi},zGr=ddi;var vjr="stateDiagram",Ldi=i(r=>/^\s*stateDiagram/.test(r),"detector"),_di=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(bjr(),yjr));return{id:vjr,diagram:r}},"loader"),Ddi={id:vjr,detector:Ldi,loader:_di},wjr=Ddi;var Ojr="journey",Qdi=i(r=>/^\s*journey/.test(r),"detector"),Zdi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Njr(),Mjr));return{id:Ojr,diagram:r}},"loader"),epi={id:Ojr,detector:Qdi,loader:Zdi},Pjr=epi;Yn();x1();$h();var YCe=4,Jae=75,tpi=i(r=>{let t=[];for(let l of r.split(/\s+/)){let h=[...l];for(;h.length>Jae;)t.push(h.slice(0,Jae).join("")),h=h.slice(Jae);h.length>0&&t.push(h.join(""))}let a=[],s="";for(let l of t){let h=s?`${s} ${l}`:l;[...h].length>Jae?(a.push(s),s=l):s=h}if(s&&a.push(s),a.length>YCe){a.length=YCe;let l=a[YCe-1]??"";a[YCe-1]=`${[...l].slice(0,Jae-3).join("")}...`}return a},"wrapErrorMessage"),rpi=i((r,t,a,s)=>{Pe.debug(`rendering svg for syntax error
|
|
`);let l=pu(t),h=l.append("g"),f=tpi(s?.db.getErrorMessage?.()??""),d=f.length>0?500+f.length*56:512;l.attr("viewBox",`0 0 2412 ${d}`),wl(l,100,d,!0),h.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),h.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),h.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),h.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),h.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),h.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),h.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),h.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${a}`),f.forEach((m,b)=>{h.append("text").attr("class","error-text").attr("x",1440).attr("y",510+b*56).attr("font-size","42px").style("text-anchor","middle").text(m)})},"draw"),Zut={draw:rpi},Bjr=Zut;var eht,npi={clear(){eht=void 0},setErrorMessage(r){eht=r},getErrorMessage(){return eht}},ipi={db:npi,renderer:Zut,parser:{parse:i(()=>{},"parse")}},Fjr=ipi;var $jr="flowchart-elk",api=i((r,t={})=>/^\s*flowchart-elk/.test(r)?(t.layout="elk",!0):!1,"detector"),spi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Lke(),bit));return{id:$jr,diagram:r}},"loader"),opi={id:$jr,detector:api,loader:spi},Gjr=opi;var xzr="timeline",Ipi=i(r=>/^\s*timeline/.test(r),"detector"),Mpi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(wzr(),vzr));return{id:xzr,diagram:r}},"loader"),Npi={id:xzr,detector:Ipi,loader:Mpi},Tzr=Npi;var Mzr="mindmap",Gpi=i(r=>/^\s*mindmap/.test(r),"detector"),jpi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Izr(),Dzr));return{id:Mzr,diagram:r}},"loader"),zpi={id:Mzr,detector:Gpi,loader:jpi},Nzr=zpi;var Hzr="kanban",igi=i(r=>/^\s*kanban/.test(r),"detector"),agi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Wzr(),Vzr));return{id:Hzr,diagram:r}},"loader"),sgi={id:Hzr,detector:igi,loader:agi},qzr=sgi;var RUr="sankey",_gi=i(r=>/^\s*sankey(-beta)?/.test(r),"detector"),Dgi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(AUr(),SUr));return{id:RUr,diagram:r}},"loader"),Igi={id:RUr,detector:_gi,loader:Dgi},LUr=Igi;var BUr="packet",jgi=i(r=>/^\s*packet(-beta)?/.test(r),"detector"),zgi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(PUr(),OUr));return{id:BUr,diagram:r}},"loader"),FUr={id:BUr,detector:jgi,loader:zgi};var XUr="radar",u0i=i(r=>/^\s*radar-beta/.test(r),"detector"),h0i=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(YUr(),qUr));return{id:XUr,diagram:r}},"loader"),KUr={id:XUr,detector:u0i,loader:h0i};var kVr="block",W0i=i(r=>/^\s*block(-beta)?/.test(r),"detector"),H0i=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(TVr(),xVr));return{id:kVr,diagram:r}},"loader"),q0i={id:kVr,detector:W0i,loader:H0i},CVr=q0i;var VVr="treeView",ymi=i(r=>/^\s*treeView-beta/.test(r),"detector"),bmi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(UVr(),zVr));return{id:VVr,diagram:r}},"loader"),vmi={id:VVr,detector:ymi,loader:bmi},WVr=vmi;var pWr="architecture",Nmi=i(r=>/^\s*architecture/.test(r),"detector"),Omi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(dWr(),fWr));return{id:pWr,diagram:r}},"loader"),Pmi={id:pWr,detector:Nmi,loader:Omi},gWr=Pmi;var RWr="eventmodeling",w1i=i(r=>/^\s*eventmodeling/.test(r),"detector"),x1i=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(AWr(),SWr));return{id:RWr,diagram:r}},"loader"),T1i={id:RWr,detector:w1i,loader:x1i},LWr=T1i;var HWr="ishikawa",O1i=i(r=>/^\s*ishikawa(-beta)?\b/i.test(r),"detector"),P1i=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(WWr(),VWr));return{id:HWr,diagram:r}},"loader"),qWr={id:HWr,detector:O1i,loader:P1i};var kHr="venn",wyi=i(r=>/^\s*venn-beta/.test(r),"detector"),xyi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(THr(),xHr));return{id:kHr,diagram:r}},"loader"),Tyi={id:kHr,detector:wyi,loader:xyi},CHr=Tyi;zL();ma();var NHr="treemap",Dyi=i(r=>/^\s*treemap/.test(r),"detector"),Iyi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(MHr(),IHr));return{id:NHr,diagram:r}},"loader"),OHr={id:NHr,detector:Dyi,loader:Iyi};var eXr="usecase",jvi=i(r=>/^\s*usecase-beta(?:\s|$)/.test(r),"detector"),zvi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(ZYr(),QYr));return{id:eXr,diagram:r}},"loader"),tXr={id:eXr,detector:jvi,loader:zvi};var dXr="wardley",d2i=i(r=>/^\s*wardley-beta/i.test(r),"detector"),p2i=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(fXr(),hXr));return{id:dXr,diagram:r}},"loader"),g2i={id:dXr,detector:d2i,loader:p2i},pXr=g2i;var DXr="cynefin",_2i=i(r=>/^\s*cynefin-beta(?:[\s:]|$)/.test(r),"detector"),D2i=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(_Xr(),LXr));return{id:DXr,diagram:r}},"loader"),IXr={id:DXr,detector:_2i,loader:D2i};var VXr="railroad",ewi=i(r=>/^\s*railroad-beta/i.test(r),"detector"),twi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(UXr(),zXr));return{id:VXr,diagram:r}},"loader"),WXr={id:VXr,detector:ewi,loader:twi};var JXr="railroadEbnf",cwi=i(r=>/^\s*railroad-ebnf-beta/i.test(r),"detector"),uwi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(KXr(),XXr));return{id:JXr,diagram:r}},"loader"),QXr={id:JXr,detector:cwi,loader:uwi};var nKr="railroadAbnf",vwi=i(r=>/^\s*railroad-abnf-beta/i.test(r),"detector"),wwi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(rKr(),tKr));return{id:nKr,diagram:r}},"loader"),iKr={id:nKr,detector:vwi,loader:wwi};var hKr="railroadPeg",Lwi=i(r=>/^\s*railroad-peg-beta/i.test(r),"detector"),_wi=i(async()=>{let{diagram:r}=await Promise.resolve().then(()=>(uKr(),cKr));return{id:hKr,diagram:r}},"loader"),fKr={id:hKr,detector:Lwi,loader:_wi};var dKr=!1,gH=i(()=>{dKr||(dKr=!0,aO("error",Fjr,r=>r.toLowerCase().trim()==="error"),aO("---",{db:{clear:i(()=>{},"clear")},styles:{},renderer:{draw:i(()=>{},"draw")},parser:{parse:i(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:i(()=>null,"init")},r=>r.toLowerCase().trimStart().startsWith("---")),lte(Gjr,Nzr,gWr),lte(qRr,Nbr,qzr,zGr,cLr,BFr,qFr,n$r,iGr,RGr,ZRr,ARr,Tzr,rFr,wjr,Pjr,y$r,LUr,FUr,Y$r,CVr,LWr,WVr,KUr,qWr,OHr,WXr,QXr,iKr,fKr,CHr,pXr,IXr,tXr))},"addDiagrams");Yn();zL();ma();var pKr=i(async()=>{Pe.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(xA).map(async([a,{detector:s,loader:l}])=>{if(l)try{dte(a)}catch{try{let{diagram:h,id:f}=await l();aO(f,h,s)}catch(h){throw Pe.error(`Failed to load external diagram with key ${a}. Removing from detectors.`),delete xA[a],h}}}))).filter(a=>a.status==="rejected");if(t.length>0){Pe.error(`Failed to load ${t.length} external diagrams`);for(let a of t)Pe.error(a);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");Yn();zo();var mH="comm",ESe="rule",SSe="decl";var gKr="@media",mKr="@import";var yKr="@supports";var bKr="@namespace",Xse="@keyframes";var ASe="@layer",vKr="@scope";var cpt=Math.abs,Kse=String.fromCharCode;function RSe(r){return r.trim()}i(RSe,"trim");function yH(r,t,a){return r.replace(t,a)}i(yH,"replace");function wKr(r,t,a){return r.indexOf(t,a)}i(wKr,"indexof");function _8(r,t){return r.charCodeAt(t)|0}i(_8,"charat");function D8(r,t,a){return r.slice(t,a)}i(D8,"substr");function D2(r){return r.length}i(D2,"strlen");function LSe(r){return r.length}i(LSe,"sizeof");function bH(r,t){return t.push(r),r}i(bH,"append");var _Se=1,vH=1,xKr=0,fk=0,zg=0,xH="";function DSe(r,t,a,s,l,h,f,d){return{value:r,root:t,parent:a,type:s,props:l,children:h,line:_Se,column:vH,length:f,return:"",siblings:d}}i(DSe,"node");function TKr(){return zg}i(TKr,"char");function kKr(){return zg=fk>0?_8(xH,--fk):0,vH--,zg===10&&(vH=1,_Se--),zg}i(kKr,"prev");function dk(){return zg=fk<xKr?_8(xH,fk++):0,vH++,zg===10&&(vH=1,_Se++),zg}i(dk,"next");function I8(){return _8(xH,fk)}i(I8,"peek");function Jse(){return fk}i(Jse,"caret");function ISe(r,t){return D8(xH,r,t)}i(ISe,"slice");function wH(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}i(wH,"token");function CKr(r){return _Se=vH=1,xKr=D2(xH=r),fk=0,[]}i(CKr,"alloc");function EKr(r){return xH="",r}i(EKr,"dealloc");function MSe(r){return RSe(ISe(fk-1,upt(r===91?r+2:r===40?r+1:r)))}i(MSe,"delimit");function SKr(r){for(;(zg=I8())&&zg<33;)dk();return wH(r)>2||wH(zg)>3?"":" "}i(SKr,"whitespace");function AKr(r,t){for(;--t&&dk()&&!(zg<48||zg>102||zg>57&&zg<65||zg>70&&zg<97););return ISe(r,Jse()+(t<6&&I8()==32&&dk()==32))}i(AKr,"escaping");function upt(r){for(;dk();)switch(zg){case r:return fk;case 34:case 39:r!==34&&r!==39&&upt(zg);break;case 40:r===41&&upt(r);break;case 92:dk();break}return fk}i(upt,"delimiter");function RKr(r,t){for(;dk()&&r+zg!==57;)if(r+zg===84&&I8()===47)break;return"/*"+ISe(t,fk-1)+"*"+Kse(r===47?r:dk())}i(RKr,"commenter");function LKr(r){for(;!wH(I8());)dk();return ISe(r,fk)}i(LKr,"identifier");function IKr(r){return EKr(NSe("",null,null,null,[""],r=CKr(r),0,[0],r))}i(IKr,"compile");function NSe(r,t,a,s,l,h,f,d,m){for(var b=0,v=0,T=f,C=0,E=0,S=0,R=1,L=1,_=1,I=0,N="",B=l,O=h,P=s,$=N;L;)switch(S=I,I=dk()){case 40:if(S!=108&&_8($,T-1)==58){wKr($+=yH(MSe(I),"&","&\f"),"&\f",cpt(b?d[b-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:$+=MSe(I);break;case 9:case 10:case 13:case 32:$+=SKr(S);break;case 92:$+=AKr(Jse()-1,7);continue;case 47:switch(I8()){case 42:case 47:bH(Iwi(RKr(dk(),Jse()),t,a,m),m),(wH(S||1)==5||wH(I8()||1)==5)&&D2($)&&D8($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*R:d[b++]=D2($)*_;case 125*R:case 59:case 0:switch(I){case 0:case 125:L=0;case 59+v:_==-1&&($=yH($,/\f/g,"")),E>0&&(D2($)-T||R===0&&S===47)&&bH(E>32?DKr($+";",s,a,T-1,m):DKr(yH($," ","")+";",s,a,T-2,m),m);break;case 59:$+=";";default:if(bH(P=_Kr($,t,a,b,v,l,d,N,B=[],O=[],T,h),h),I===123)if(v===0)NSe($,t,P,P,B,h,T,d,O);else{switch(C){case 99:if(_8($,3)===110)break;case 108:if(_8($,2)===97)break;default:v=0;case 100:case 109:case 115:}v?NSe(r,P,P,s&&bH(_Kr(r,P,P,0,0,l,d,N,l,B=[],T,O),O),l,O,T,d,s?B:O):NSe($,P,P,P,[""],O,0,d,O)}}b=v=E=0,R=_=1,N=$="",T=f;break;case 58:T=1+D2($),E=S;default:if(R<1){if(I==123)--R;else if(I==125&&R++==0&&kKr()==125)continue}switch($+=Kse(I),I*R){case 38:_=v>0?1:($+="\f",-1);break;case 44:d[b++]=(D2($)-1)*_,_=1;break;case 64:I8()===45&&($+=MSe(dk())),C=I8(),v=T=D2(N=$+=LKr(Jse())),I++;break;case 45:S===45&&D2($)==2&&(R=0)}}return h}i(NSe,"parse");function _Kr(r,t,a,s,l,h,f,d,m,b,v,T){for(var C=l-1,E=l===0?h:[""],S=LSe(E),R=0,L=0,_=0;R<s;++R)for(var I=0,N=D8(r,C+1,C=cpt(L=f[R])),B=r;I<S;++I)(B=RSe(L>0?E[I]+" "+N:yH(N,/&\f/g,E[I])))&&(m[_++]=B);return DSe(r,t,a,l===0?ESe:d,m,b,v,T)}i(_Kr,"ruleset");function Iwi(r,t,a,s){return DSe(r,t,a,mH,Kse(TKr()),D8(r,2,-2),0,s)}i(Iwi,"comment");function DKr(r,t,a,s,l){return DSe(r,t,a,SSe,D8(r,0,s),D8(r,s+1,-1),s,l)}i(DKr,"declaration");function OSe(r,t){for(var a="",s=0;s<r.length;s++)a+=t(r[s],s,r,t)||"";return a}i(OSe,"serialize");function MKr(r,t,a,s){switch(r.type){case ASe:if(r.children.length)break;case mKr:case bKr:case SSe:return r.return=r.return||r.value;case mH:return"";case Xse:return r.return=r.value+"{"+OSe(r.children,s)+"}";case ESe:if(!D2(r.value=r.props.join(",")))return""}return D2(a=OSe(r.children,s))?r.return=r.value+"{"+a+"}":""}i(MKr,"stringify");function NKr(r){var t=LSe(r);return function(a,s,l,h){for(var f="",d=0;d<t;d++)f+=r[d](a,s,l,h)||"";return f}}i(NKr,"middleware");QN();J2e();var Mwi="graphics-document document";function OKr(r,t){r.attr("role",Mwi),t!==""&&r.attr("aria-roledescription",t)}i(OKr,"setA11yDiagramInfo");function PKr(r,t,a,s){if(r.insert!==void 0){if(a){let l=`chart-desc-${s}`;r.attr("aria-describedby",l),r.insert("desc",":first-child").attr("id",l).text(a)}if(t){let l=`chart-title-${s}`;r.attr("aria-labelledby",l),r.insert("title",":first-child").attr("id",l).text(t)}}}i(PKr,"addSVGa11yTitleDescription");fz();Xs();Xs();zL();Xs();ma();zL();$qe();pp();Yn();Ma();var WB=class r{constructor(t,a,s,l,h){this.type=t;this.text=a;this.db=s;this.parser=l;this.renderer=h}static{i(this,"Diagram")}static async fromText(t,a={}){let s=typeof t=="string"?{raw:t,cleaned:t}:t,l=ri(),h=jL(s.cleaned,l);try{dte(h)}catch{let C=bcr(h);if(!C)throw new Sz(`Diagram ${h} not found.`);let{id:E,diagram:S}=await C();aO(E,S)}let{db:f,parser:d,renderer:m,init:b}=dte(h);d.parser&&(d.parser.yy=f),f.clear?.(),b?.(l),a.title&&f.setDiagramTitle?.(a.title);let v=s.cleaned;if(f.preserveCommentsWhenParsing&&s.withComments){let C=l.maxTextSize??ps.maxTextSize;s.withComments.length>C?Pe.warn(`Comment-preserving source exceeds maxTextSize (${s.withComments.length} > ${C}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):v=s.withComments}let T=vgr(v)+`
|
|
`;return s.frontmatterLineOffset&&f.setFrontmatterLineOffset?.(s.frontmatterLineOffset),await d.parse(T),new r(h,T,f,d,m)}async render(t,a){await this.renderer.draw(this.text,t,a,this)}getParser(){return this.parser}getType(){return this.type}};nl();var BKr=[];var FKr=i(()=>{BKr.forEach(r=>{r()}),BKr=[]},"attachFunctions");Yn();nU();var $Kr=i(r=>r.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");lve();cU();function GKr(r){let t=ove(r);if(!t)return{text:r,metadata:{}};let a=t.indent,s=a?t.body.split(`
|
|
`).map(f=>f.startsWith(a)?f.slice(a.length):f).join(`
|
|
`):t.body,l=P4(s,{schema:O4})??{};l=typeof l=="object"&&!Array.isArray(l)?l:{};let h={};return l.displayMode&&(h.displayMode=l.displayMode.toString()),l.title&&(h.title=l.title.toString()),l.config&&(h.config=l.config),{text:r.slice(t.length),metadata:h}}i(GKr,"extractFrontMatter");Ma();var Nwi=i(r=>r.replace(/\r\n?/g,`
|
|
`).replace(/<(\w+)([^>]*)>/g,(t,a,s)=>"<"+a+s.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Owi=i(r=>{let{text:t,metadata:a}=GKr(r),{displayMode:s,title:l,config:h={}}=a;return s&&(h.gantt||(h.gantt={}),h.gantt.displayMode=s),{title:l,config:h,text:t}},"processFrontmatter"),Pwi=i(r=>{let t=Va.detectInit(r)??{},a=Va.detectDirective(r,"wrap");return Array.isArray(a)?t.wrap=a.some(({type:s})=>s==="wrap"):a?.type==="wrap"&&(t.wrap=!0),{text:mgr(r),directive:t}},"processDirectives");function hpt(r){let t=r,a=Nwi(r),s=Owi(a),l=Pwi(s.text),h=il(s.config,l.directive),f=l.text,d=$Kr(f),m=a.length>s.text.length?(a.substring(0,a.length-s.text.length).match(/\n/g)??[]).length:0;return{code:{raw:t,cleaned:d,withComments:f,frontmatterLineOffset:m},title:s.title,config:h}}i(hpt,"preprocessDiagram");Uqe();vbe();Ma();function jKr(r){let t=new TextEncoder().encode(r),a=Array.from(t,s=>String.fromCodePoint(s)).join("");return btoa(a)}i(jKr,"toBase64");wbe();var Bwi=5e4,Fwi="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",$wi="sandbox",Gwi="loose",jwi="http://www.w3.org/2000/svg",zwi="http://www.w3.org/1999/xlink",Uwi="http://www.w3.org/1999/xhtml",Vwi="100%",Wwi="100%",Hwi="border:0;margin:0;",qwi="margin:0",Ywi="allow-top-navigation-by-user-activation allow-popups",Xwi='The "iframe" tag is not supported by your browser.',Kwi=["foreignobject"],Jwi=["dominant-baseline"];function WKr(r){let t=hpt(r);Wee();let a;try{a=jL(t.code.cleaned,ri())}catch{a=void 0}return kbe(a),aor(t.config??{}),t}i(WKr,"processAndSetConfigs");async function Qwi(r,t){gH();try{let{code:a,config:s}=WKr(r);return{diagramType:(await WB.fromText(a)).type,config:s}}catch(a){if(t?.suppressErrors)return!1;throw a}finally{kbe(void 0)}}i(Qwi,"parse");var zKr=i((r,t,a=[])=>{let s=SHe(`{ ${a.join(" !important; ")} !important; }`);return`.${r} ${t} ${s}`},"cssImportantStyles"),Zwi=i((r,t=new Map)=>{let a=new CSSStyleSheet;if(r.fontFamily!==void 0&&a.insertRule(`:root { --mermaid-font-family: ${r.fontFamily}}`,a.cssRules.length),r.altFontFamily!==void 0&&a.insertRule(`:root { --mermaid-alt-font-family: ${r.altFontFamily}}`,a.cssRules.length),t instanceof Map){let d=Fh(r)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(m=>{K2e(m.styles)||d.forEach(b=>{a.insertRule(zKr(m.id,b,m.styles),a.cssRules.length)}),K2e(m.textStyles)||a.insertRule(zKr(m.id,"tspan",(m?.textStyles||[]).map(b=>b.replace("color","fill"))),a.cssRules.length)})}let s="";if(r.themeCSS!==void 0)if(typeof a.replaceSync=="function"){let l=new CSSStyleSheet;l.replaceSync(r.themeCSS),s=zqe(l)+`
|
|
`}else s+=`${r.themeCSS}
|
|
`;return s+zqe(a)},"createCssStyles"),exi=i((r,t)=>OSe(IKr(`${r}{${t}}`),NKr([i(function(s,l,h,f){if(s.type==="rule"&&Array.isArray(s.props)){if(s.parent&&s.parent.type===Xse)return;s.props=s.props.map(d=>d===r&&Array.isArray(s.children)&&s.children.every(b=>b.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(b.props))||(d.startsWith(`${r} `)||d.startsWith(`${r}>`))&&!d.startsWith(`${r} ||`)?d:`${r} ${d}`)}else s.type.startsWith("@")&&([...[gKr,yKr,ASe,vKr,"@container","@starting-style"],Xse].includes(s.type)||(Pe.warn(`Removing unsupported at-rule ${s.type} from CSS`),s.type=mH))},"addNamespace"),MKr])),"compileCSS"),txi=i((r,t,a,s)=>{let l=Zwi(r,a),h=xcr(t,l,{...r.themeVariables,theme:r.theme,look:r.look},s);return exi(s,h)},"createUserStyles"),rxi=i((r="",t,a)=>{let s=r;return!a&&!t&&(s=s.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),s=a2(s),s=s.replace(/<br>/g,"<br/>"),s},"cleanUpSvgCode"),nxi=i((r="",t)=>{let a=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":Wwi,s=jKr(`<body style="${qwi}">${r}</body>`);return`<iframe style="width:${Vwi};height:${a};${Hwi}" src="data:text/html;charset=UTF-8;base64,${s}" sandbox="${Ywi}">
|
|
${Xwi}
|
|
</iframe>`},"putIntoIFrame"),UKr=i((r,t,a,s,l)=>{let h=r.append("div");h.attr("id",a),s&&h.attr("style",s);let f=h.append("svg").attr("id",t).attr("width","100%").attr("xmlns",jwi);return l&&f.attr("xmlns:xlink",l),f.append("g"),r},"appendDivSvgG");function VKr(r,t){return r.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}i(VKr,"sandboxedIframe");var ixi=i((r,t,a,s)=>{r.getElementById(t)?.remove(),r.getElementById(a)?.remove(),r.getElementById(s)?.remove()},"removeExistingElements"),axi=i(async function(r,t,a){gH();let s=WKr(t),l=s.code;t=l.cleaned;let h=ri();Pe.debug(h),t.length>(h?.maxTextSize??Bwi)&&(t=Fwi,l={raw:t,cleaned:t});let f=`#${r}`,d="i"+r,m="#"+d,b="d"+r,v="#"+b,T=i(()=>{let Z=mn(E?m:v).node();Z&&"remove"in Z&&Z.remove()},"removeTempElements"),C=mn(document.body),E=h.securityLevel===$wi,S=h.securityLevel===Gwi,R=h.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=""),E){let re=VKr(mn(a),d);C=mn(re.nodes()[0].contentDocument.body),C.node().style.margin="0"}else C=mn(a);UKr(C,r,b,`font-family: ${R}`,zwi)}else{if(ixi(document,r,b,d),E){let re=VKr(mn(document.body),d);C=mn(re.nodes()[0].contentDocument.body),C.node().style.margin="0"}else C=mn("body");UKr(C,r,b)}let L,_;try{L=await WB.fromText(l,{title:s.title})}catch(re){if(h.suppressErrorRendering)throw T(),re;L=await WB.fromText("error"),_=re,L.db.setErrorMessage?.(bgr(re))}let I=C.select(v).node(),N=L.type,B=I.firstChild,O=B.firstChild,P=L.renderer.getClasses?.(t,L),$=txi(h,N,P,f),V=document.createElement("style");V.innerHTML=$,B.insertBefore(V,O);try{await L.renderer.draw(t,r,"12.3.0",L)}catch(re){throw h.suppressErrorRendering?T():Bjr.draw(t,r,"12.3.0"),re}let Y=C.select(`${v} svg`),Q=L.db.getAccTitle?.(),q=L.db.getAccDescription?.();cxi(N,Y,Q,q);let H=i(()=>{C.select(`[id="${r}"]`).selectAll("foreignobject > *").attr("xmlns",Uwi);let re=C.select(v).node().innerHTML;if(Pe.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),re=rxi(re,E,fm(h.arrowMarkerAbsolute)),E){let Z=C.select(v+" svg").node();re=nxi(re,Z)}else S||(re=oy.sanitize(re,{ADD_TAGS:Kwi,ADD_ATTR:Jwi,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return FKr(),re},"serializeSvg")();if(_)throw _;return T(),{diagramType:N,svg:H,bindFunctions:L.db.bindFunctions}},"renderDiagram"),sxi=i(async function(r,t,a){try{return await axi(r,t,a)}finally{kbe(void 0)}},"render");function oxi(r={}){let t=Bh({},r);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),ror(t);let a=zE.theme;t?.theme&&Object.hasOwn(MT,t.theme)?t.themeVariables=MT[t.theme].getThemeVariables(t.themeVariables):t&&(t.theme!=null&&t.theme!=="null"&&(t.theme=a),t.themeVariables=MT[a].getThemeVariables(t.themeVariables));let s=typeof t=="object"?AHe(t):RHe();Fee(s.logLevel),gH()}i(oxi,"initialize");var lxi=i((r,t={})=>{let{code:a}=hpt(r);return WB.fromText(a,t)},"getDiagramFromText");function cxi(r,t,a,s){OKr(t,r),PKr(t,a,s,t.attr("id"))}i(cxi,"addA11yInfo");var UD=Object.freeze({render:sxi,parse:Qwi,getDiagramFromText:lxi,initialize:oxi,getConfig:ri,setConfig:Cbe,getSiteConfig:RHe,updateSiteConfig:nor,reset:i(()=>{Wee()},"reset"),globalReset:i(()=>{Wee(zE)},"globalReset"),defaultConfig:zE});Fee(ri().logLevel);Wee(ri());PS();Ma();var uxi=i((r,t,a)=>{Pe.warn(r),GJe(r)?(a&&a(r.str,r.hash),t.push({...r,message:r.str,error:r})):(a&&a(r),r instanceof Error&&t.push({str:r.message,message:r.message,hash:r.name,error:r}))},"handleError"),HKr=i(async function(r={querySelector:".mermaid"}){try{await hxi(r)}catch(t){if(GJe(t)&&Pe.error(t.str),M8.parseError&&M8.parseError(t),!r.suppressErrors)throw Pe.error("Use the suppressErrors option to suppress these errors"),t}},"run"),hxi=i(async function({postRenderCallback:r,querySelector:t,nodes:a}={querySelector:".mermaid"}){let s=UD.getConfig();Pe.debug(`${r?"":"No "}Callback function found`);let l;if(a)l=a;else if(t)l=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");Pe.debug(`Found ${l.length} diagrams`),s?.startOnLoad!==void 0&&(Pe.debug("Start On Load: "+s?.startOnLoad),UD.updateSiteConfig({startOnLoad:s?.startOnLoad}));let h=new Va.InitIDGenerator(s.deterministicIds,s.deterministicIDSeed),f,d=[];for(let m of Array.from(l)){Pe.info("Rendering diagram: "+m.id);if(m.getAttribute("data-processed"))continue;m.setAttribute("data-processed","true");let b=`mermaid-${h.next()}`;f=m.innerHTML,f=ive(Va.entityDecode(f)).trim().replace(/<br\s*\/?>/gi,"<br/>");let v=Va.detectInit(f);v&&Pe.debug("Detected early reinit: ",v);try{let{svg:T,bindFunctions:C}=await KKr(b,f,m);m.innerHTML=T,r&&await r(b),C&&C(m)}catch(T){uxi(T,d,M8.parseError)}}if(d.length>0)throw d[0]},"runThrowsErrors"),qKr=i(function(r){UD.initialize(r)},"initialize"),fxi=i(async function(r,t,a){Pe.warn("mermaid.init is deprecated. Please use run instead."),r&&qKr(r);let s={postRenderCallback:a,querySelector:".mermaid"};typeof t=="string"?s.querySelector=t:t&&(t instanceof HTMLElement?s.nodes=[t]:s.nodes=t),await HKr(s)},"init"),dxi=i(async(r,{lazyLoad:t=!0}={})=>{gH(),lte(...r),t===!1&&await pKr()},"registerExternalDiagrams"),YKr=i(function(){if(M8.startOnLoad){let{startOnLoad:r}=UD.getConfig();r&&M8.run().catch(t=>Pe.error("Mermaid failed to initialize",t))}},"contentLoaded");if(typeof document<"u"){window.addEventListener("load",YKr,!1)}var pxi=i(function(r){M8.parseError=r},"setParseErrorHandler"),PSe=[],fpt=!1,XKr=i(async()=>{if(!fpt){for(fpt=!0;PSe.length>0;){let r=PSe.shift();if(r)try{await r()}catch(t){Pe.error("Error executing queue",t)}}fpt=!1}},"executeQueue"),gxi=i(async(r,t)=>new Promise((a,s)=>{let l=i(()=>new Promise((h,f)=>{UD.parse(r,t).then(d=>{h(d),a(d)},d=>{Pe.error("Error parsing",d),M8.parseError?.(d),f(d),s(d)})}),"performCall");PSe.push(l),XKr().catch(s)}),"parse"),KKr=i((r,t,a)=>new Promise((s,l)=>{let h=i(()=>new Promise((f,d)=>{UD.render(r,t,a).then(m=>{f(m),s(m)},m=>{Pe.error("Error parsing",m),M8.parseError?.(m),d(m),l(m)})}),"performCall");PSe.push(h),XKr().catch(l)}),"render"),mxi=i(()=>Object.keys(xA).map(r=>({id:r})),"getRegisteredDiagramsMetadata"),M8={startOnLoad:!0,mermaidAPI:UD,parse:gxi,render:KKr,init:fxi,run:HKr,registerExternalDiagrams:dxi,registerLayoutLoaders:pit,initialize:qKr,parseError:void 0,contentLoaded:YKr,setParseErrorHandler:pxi,detectType:jL,registerIconPacks:GL,getRegisteredDiagramsMetadata:mxi},yxi=M8;return BSn(bxi);})();
|
|
/*! Check if previously processed */
|
|
/*!
|
|
* Wait for document loaded before starting the execution
|
|
*/
|
|
/*! Bundled license information:
|
|
|
|
dompurify/dist/purify.es.mjs:
|
|
(*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE *)
|
|
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
|
|
|
lodash-es/lodash.js:
|
|
(**
|
|
* @license
|
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
* Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
* Released under MIT license <https://lodash.com/license>
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
*)
|
|
|
|
cytoscape/dist/cytoscape.esm.mjs:
|
|
(*!
|
|
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
|
|
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
|
|
Licensed under The MIT License (http://opensource.org/licenses/MIT)
|
|
*)
|
|
(*!
|
|
Event object based on jQuery events, MIT license
|
|
|
|
https://jquery.org/license/
|
|
https://tldrlegal.com/license/mit-license
|
|
https://github.com/jquery/jquery/blob/master/src/event.js
|
|
*)
|
|
(*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License *)
|
|
(*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License *)
|
|
*/
|
|
globalThis["mermaid"] = globalThis.__esbuild_esm_mermaid_nm["mermaid"].default;
|