website-zarif/assets/lib/mermaid/mermaid.min.js

1581 lines
2.6 MiB
JavaScript
Raw Normal View History

2023-08-30 20:07:11 +03:00
(function(tA,g0){typeof exports=="object"&&typeof module<"u"?module.exports=g0():typeof define=="function"&&define.amd?define(g0):(tA=typeof globalThis<"u"?globalThis:tA||self,tA.mermaid=g0())})(this,function(){"use strict";function tA(s){for(var o=[],f=1;f<arguments.length;f++)o[f-1]=arguments[f];var p=Array.from(typeof s=="string"?[s]:s);p[p.length-1]=p[p.length-1].replace(/\r?\n([\t ]*)$/,"");var w=p.reduce(function(_,A){var N=A.match(/\n([\t ]+|(?!\s).)/g);return N?_.concat(N.map(function(B){var F,H;return(H=(F=B.match(/[\t ]/g))===null||F===void 0?void 0:F.length)!==null&&H!==void 0?H:0})):_},[]);if(w.length){var k=new RegExp(`
[ ]{`+Math.min.apply(Math,w)+"}","g");p=p.map(function(_){return _.replace(k,`
`)})}p[0]=p[0].replace(/^\r?\n/,"");var b=p[0];return o.forEach(function(_,A){var N=b.match(/(?:^|\n)( *)$/),B=N?N[1]:"",F=_;typeof _=="string"&&_.includes(`
`)&&(F=String(_).split(`
`).map(function(H,j){return j===0?H:""+B+H}).join(`
`)),b+=F+p[A+1]}),b}var g0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GAe(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var hfe={},n4t={get exports(){return hfe},set exports(s){hfe=s}};(function(s,o){(function(f,p){s.exports=p()})(g0,function(){var f=1e3,p=6e4,w=36e5,k="millisecond",b="second",_="minute",A="hour",N="day",B="week",F="month",H="quarter",j="year",V="date",Z="Invalid Date",ae=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,le=/\[([^\]]+)]|Y{1,4}|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,ce={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:function(De){var X=["th","st","nd","rd"],Re=De%100;return"["+De+(X[(Re-20)%10]||X[Re]||X[0])+"]"}},be=function(De,X,Re){var pe=String(De);return!pe||pe.length>=X?De:""+Array(X+1-pe.length).join(Re)+De},xe={s:be,z:function(De){var X=-De.utcOffset(),Re=Math.abs(X),pe=Math.floor(Re/60),Ge=Re%60;return(X<=0?"+":"-")+be(pe,2,"0")+":"+be(Ge,2,"0")},m:function De(X,Re){if(X.date()<Re.date())return-De(Re,X);var pe=12*(Re.year()-X.year())+(Re.month()-X.month()),Ge=X.clone().add(pe,F),de=Re-Ge<0,ct=X.clone().add(pe+(de?-1:1),F);return+(-(pe+(Re-Ge)/(de?Ge-ct:ct-Ge))||0)},a:function(De){return De<0?Math.ceil(De)||0:Math.floor(De)},p:function(De){return{M:F,y:j,w:B,d:N,D:V,h:A,m:_,s:b,ms:k,Q:H}[De]||String(De||"").toLowerCase().replace(/s$/,"")},u:function(De){return De===void 0}},Ee="en",Me={};Me[Ee]=ce;var fe=function(De){return De instanceof ke},ye=function De(X,Re,pe){var Ge;if(!X)return Ee;if(typeof X=="string"){var de=X.toLowerCase();Me[de]&&(Ge=de),Re&&(Me[de]=Re,Ge=de);var ct=X.split("-");if(!Ge&&ct.length>1)return De(ct[0])}else{var bt=X.name;Me[bt]=X,Ge=bt}return!pe&&Ge&&(Ee=Ge),Ge||!pe&&Ee},re=function(De,X){if(fe(De))return De.clone();var Re=typeof X=="object"?X:{};return Re.date=De,Re.args=arguments,new ke(Re)},we=xe;we.l=ye,we.i=fe,we.w=function(De,X){return re(De,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var ke=function(){function De(Re){this.$L=ye(Re.locale,null,!0),this.parse(Re)}var X=De.prototype;return X.parse=function(Re){this.$d=function(pe){var Ge=pe.date,de=pe.utc;if(Ge===null)return new Date(NaN);if(we.u(Ge))return new Date;if(Ge instanceof Date)return new Date(Ge);if(typeof Ge=="string"&&!/Z$/i.test(Ge)){var ct=Ge.match(ae);if(ct){var bt=ct[2]-1||0,St=(ct[7]||"0").substring(0,3);return de?new Date(Date.UTC(ct[1],bt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,St)):new Date(ct[1],bt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,St)}}return new Date(Ge)}(Re),this.$x=Re.x||{},this.init()},X.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()},X.$utils=function(){return we},X.isValid=function(){return this.$d.toString()!==Z},X.isSame=function(Re,pe){var Ge=re(Re);return this.startOf(pe)<=Ge&&Ge<=this.endOf(pe)},X.isAfter=function(Re,pe){return re(Re)<this.startOf(pe)},X.isBefore=function(Re,pe){return this.endOf(pe)<re(Re)},X.$g=function(Re,pe,Ge){return we.u(Re)?this[pe]:this.set(Ge,Re)},X.unix=function(){return Math.floor(this.valueOf()/1e3)},X.valueOf=function(){return this.$d.getTime()},X.startOf=function(Re,pe){var Ge=this,de=!!we.u(pe)||pe,ct=we.p(Re),bt=function(xt,Tt){var wt=we.w(Ge.$u?Date.UTC(Ge.$y,Tt,xt):new Date(Ge.$y,Tt,xt),Ge);return de?wt:wt.endOf(N)},St=function(xt,Tt){return we.w(Ge.toDate()[xt].apply(Ge.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(Tt)),Ge)},yt=this.$W,Mt=this.$M,nn=this.$D,dn="set"+(this.$u?"UTC":"");switch(ct){case j:return de?bt(1,0):bt(31,11);case F:return de?bt(1,Mt):bt(0,Mt+1);case B:var vt=this.$locale().weekStart||0,Lr=(yt<vt?yt+7:yt)-vt;return bt(de?nn-Lr:nn+(6-Lr),Mt);case N:case V:return St(dn+"Hours",0);case A:return St(dn+"Minut
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var C7t=Object.hasOwnProperty,WMe=Object.setPrototypeOf,S7t=Object.isFrozen,A7t=Object.getPrototypeOf,L7t=Object.getOwnPropertyDescriptor,tg=Object.freeze,Hw=Object.seal,M7t=Object.create,YMe=typeof Reflect<"u"&&Reflect,AU=YMe.apply,g1e=YMe.construct;AU||(AU=function(o,f,p){return o.apply(f,p)}),tg||(tg=function(o){return o}),Hw||(Hw=function(o){return o}),g1e||(g1e=function(o,f){return SU(o,$w(f))});var D7t=zb(Array.prototype.forEach),XMe=zb(Array.prototype.pop),bN=zb(Array.prototype.push),LU=zb(String.prototype.toLowerCase),p1e=zb(String.prototype.toString),I7t=zb(String.prototype.match),zw=zb(String.prototype.replace),O7t=zb(String.prototype.indexOf),N7t=zb(String.prototype.trim),ng=zb(RegExp.prototype.test),b1e=P7t(TypeError);function zb(s){return function(o){for(var f=arguments.length,p=new Array(f>1?f-1:0),w=1;w<f;w++)p[w-1]=arguments[w];return AU(s,o,p)}}function P7t(s){return function(){for(var o=arguments.length,f=new Array(o),p=0;p<o;p++)f[p]=arguments[p];return g1e(s,f)}}function Lo(s,o,f){f=f||LU,WMe&&WMe(s,null);for(var p=o.length;p--;){var w=o[p];if(typeof w=="string"){var k=f(w);k!==w&&(S7t(o)||(o[p]=k),w=k)}s[w]=!0}return s}function jE(s){var o=M7t(null),f;for(f in s)AU(C7t,s,[f])===!0&&(o[f]=s[f]);return o}function MU(s,o){for(;s!==null;){var f=L7t(s,o);if(f){if(f.get)return zb(f.get);if(typeof f.value=="function")return zb(f.value)}s=A7t(s)}function p(w){return console.warn("fallback value for",w),null}return p}var QMe=tg(["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","section","select","shadow","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"]),v1e=tg(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),w1e=tg(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B7t=tg(["animate","color-profile","cursor","discard","fedropshadow","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"]),m1e=tg(["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"]),F7t=tg(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ZMe=tg(["#text"]),JMe=tg(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding",
`+tl),He&&(tl=zw(tl,X," "),tl=zw(tl,Re," "),tl=zw(tl,pe," ")),xe&&Di?xe.createHTML(tl):tl},o.setConfig=function(Ai){Ea(Ai),Lt=!0},o.clearConfig=function(){Ks=null,Lt=!1},o.isValidAttribute=function(Ai,$t,Mr){Ks||Ea({});var bi=un(Ai),Aa=un($t);return Rl(bi,Aa,Mr)},o.addHook=function(Ai,$t){typeof $t=="function"&&(De[Ai]=De[Ai]||[],bN(De[Ai],$t))},o.removeHook=function(Ai){if(De[Ai])return XMe(De[Ai])},o.removeHooks=function(Ai){De[Ai]&&(De[Ai]=[])},o.removeAllHooks=function(){De={}},o}var vN=tDe();const Y7t=s=>s?iDe(s).replace(/\\n/g,"#br#").split("#br#"):[""],nDe=s=>vN.sanitize(s),rDe=(s,o)=>{var f;if(((f=o.flowchart)==null?void 0:f.htmlLabels)!==!1){const p=o.securityLevel;p==="antiscript"||p==="strict"?s=nDe(s):p!=="loose"&&(s=iDe(s),s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;"),s=s.replace(/=/g,"&equals;"),s=J7t(s))}return s},T2=(s,o)=>s&&(o.dompurifyConfig?s=vN.sanitize(rDe(s,o),o.dompurifyConfig).toString():s=vN.sanitize(rDe(s,o),{FORBID_TAGS:["style"]}).toString(),s),X7t=(s,o)=>typeof s=="string"?T2(s,o):s.flat().map(f=>T2(f,o)),IU=/<br\s*\/?>/gi,Q7t=s=>IU.test(s),Z7t=s=>s.split(IU),J7t=s=>s.replace(/#br#/g,"<br/>"),iDe=s=>s.replace(IU,"#br#"),eEt=s=>{let o="";return s&&(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,o=o.replaceAll(/\(/g,"\\("),o=o.replaceAll(/\)/g,"\\)")),o},l1=s=>!(s===!1||["false","null","0"].includes(String(s).trim().toLowerCase())),Uk=function(s){let o=s;if(s.split("~").length-1>=2){let f=o;do o=f,f=o.replace(/~([^\s,:;]+)~/,"<$1>");while(f!=o);return Uk(f)}else return o},xa={getRows:Y7t,sanitizeText:T2,sanitizeTextOrArray:X7t,hasBreaks:Q7t,splitBreaks:Z7t,lineBreakRegex:IU,removeScript:nDe,getUrl:eEt,evaluate:l1},OU={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:s=>s>=255?255:s<0?0:s,g:s=>s>=255?255:s<0?0:s,b:s=>s>=255?255:s<0?0:s,h:s=>s%360,s:s=>s>=100?100:s<0?0:s,l:s=>s>=100?100:s<0?0:s,a:s=>s>=1?1:s<0?0:s},toLinear:s=>{const o=s/255;return s>.03928?Math.pow((o+.055)/1.055,2.4):o/12.92},hue2rgb:(s,o,f)=>(f<0&&(f+=1),f>1&&(f-=1),f<1/6?s+(o-s)*6*f:f<1/2?o:f<2/3?s+(o-s)*(2/3-f)*6:s),hsl2rgb:({h:s,s:o,l:f},p)=>{if(!o)return f*2.55;s/=360,o/=100,f/=100;const w=f<.5?f*(1+o):f+o-f*o,k=2*f-w;switch(p){case"r":return OU.hue2rgb(k,w,s+1/3)*255;case"g":return OU.hue2rgb(k,w,s)*255;case"b":return OU.hue2rgb(k,w,s-1/3)*255}},rgb2hsl:({r:s,g:o,b:f},p)=>{s/=255,o/=255,f/=255;const w=Math.max(s,o,f),k=Math.min(s,o,f),b=(w+k)/2;if(p==="l")return b*100;if(w===k)return 0;const _=w-k,A=b>.5?_/(2-w-k):_/(w+k);if(p==="s")return A*100;switch(w){case s:return((o-f)/_+(o<f?6:0))*60;case o:return((f-s)/_+2)*60;case f:return((s-o)/_+4)*60;default:return-1}}},Na={channel:OU,lang:{clamp:(s,o,f)=>o>f?Math.min(o,Math.max(f,s)):Math.min(f,Math.max(o,s)),round:s=>Math.round(s*1e10)/1e10},unit:{dec2hex:s=>{const o=Math.round(s).toString(16);return o.length>1?o:`0${o}`}}},Kk={};for(let s=0;s<=255;s++)Kk[s]=Na.unit.dec2hex(s);const w0={ALL:0,RGB:1,HSL:2};class tEt{constructor(){this.type=w0.ALL}get(){return this.type}set(o){if(this.type&&this.type!==o)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=o}reset(){this.type=w0.ALL}is(o){return this.type===o}}const nEt=tEt;class rEt{constructor(o,f){this.color=f,this.changed=!1,this.data=o,this.type=new nEt}set(o,f){return this.color=f,this.changed=!1,this.data=o,this.type.type=w0.ALL,this}_ensureHSL(){const o=this.data,{h:f,s:p,l:w}=o;f===void 0&&(o.h=Na.channel.rgb2hsl(o,"h")),p===void 0&&(o.s=Na.channel.rgb2hsl(o,"s")),w===void 0&&(o.l=Na.channel.rgb2hsl(o,"l"))}_ensureRGB(){const o=this.data,{r:f,g:p,b:w}=o;f===void 0&&(o.r=Na.channel.hsl2rgb(o,"r")),p===void 0&&(o.g=Na.channel.hsl2rgb(o,"g")),w===void 0&&(o.b=Na.channel.hsl2rgb(o,"b"))}get r(){const o=this.data,f=o.r;return!this.type.is(w0.HSL)&&f!==void 0?f:(this._ensureHSL(),Na.channel.hsl2rgb(o,"r"))}get g(){const o=this.data,f=o.g;return!this.type.is(w0.HSL)&&f!==void 0?f:(this._ensureHSL(),Na.channel.hsl2rgb(o,"g"))}get b(){const o=this.data,f=o.b;return!this.type.is(w0.HSL)&&f!==void 0?f:(thi
`+s.mark.snippet),p+" "+f):p}function yN(s,o){Error.call(this),this.name="YAMLException",this.reason=s,this.mark=o,this.message=dDe(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}yN.prototype=Object.create(Error.prototype),yN.prototype.constructor=yN,yN.prototype.toString=function(o){return this.name+": "+dDe(this,o)};var d5=yN;function k1e(s,o,f,p,w){var k="",b="",_=Math.floor(w/2)-1;return p-o>_&&(k=" ... ",o=p-_+k.length),f-p>_&&(b=" ...",f=p+_-b.length),{str:k+s.slice(o,f).replace(/\t/g,"→")+b,pos:p-o+k.length}}function x1e(s,o){return ig.repeat(" ",o-s.length)+s}function MEt(s,o){if(o=Object.create(o||null),!s.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);for(var f=/\r?\n|\r|\0/g,p=[0],w=[],k,b=-1;k=f.exec(s.buffer);)w.push(k.index),p.push(k.index+k[0].length),s.position<=k.index&&b<0&&(b=p.length-2);b<0&&(b=p.length-1);var _="",A,N,B=Math.min(s.line+o.linesAfter,w.length).toString().length,F=o.maxLength-(o.indent+B+3);for(A=1;A<=o.linesBefore&&!(b-A<0);A++)N=k1e(s.buffer,p[b-A],w[b-A],s.position-(p[b]-p[b-A]),F),_=ig.repeat(" ",o.indent)+x1e((s.line-A+1).toString(),B)+" | "+N.str+`
`+_;for(N=k1e(s.buffer,p[b],w[b],s.position,F),_+=ig.repeat(" ",o.indent)+x1e((s.line+1).toString(),B)+" | "+N.str+`
`,_+=ig.repeat("-",o.indent+B+3+N.pos)+`^
`,A=1;A<=o.linesAfter&&!(b+A>=w.length);A++)N=k1e(s.buffer,p[b+A],w[b+A],s.position-(p[b]-p[b+A]),F),_+=ig.repeat(" ",o.indent)+x1e((s.line+A+1).toString(),B)+" | "+N.str+`
`;return _.replace(/\n$/,"")}var DEt=MEt,IEt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],OEt=["scalar","sequence","mapping"];function NEt(s){var o={};return s!==null&&Object.keys(s).forEach(function(f){s[f].forEach(function(p){o[String(p)]=f})}),o}function PEt(s,o){if(o=o||{},Object.keys(o).forEach(function(f){if(IEt.indexOf(f)===-1)throw new d5('Unknown option "'+f+'" is met in definition of "'+s+'" YAML type.')}),this.options=o,this.tag=s,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(f){return f},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=NEt(o.styleAliases||null),OEt.indexOf(this.kind)===-1)throw new d5('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}var m0=PEt;function gDe(s,o){var f=[];return s[o].forEach(function(p){var w=f.length;f.forEach(function(k,b){k.tag===p.tag&&k.kind===p.kind&&k.multi===p.multi&&(w=b)}),f[w]=p}),f}function BEt(){var s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},o,f;function p(w){w.multi?(s.multi[w.kind].push(w),s.multi.fallback.push(w)):s[w.kind][w.tag]=s.fallback[w.tag]=w}for(o=0,f=arguments.length;o<f;o+=1)arguments[o].forEach(p);return s}function E1e(s){return this.extend(s)}E1e.prototype.extend=function(o){var f=[],p=[];if(o instanceof m0)p.push(o);else if(Array.isArray(o))p=p.concat(o);else if(o&&(Array.isArray(o.implicit)||Array.isArray(o.explicit)))o.implicit&&(f=f.concat(o.implicit)),o.explicit&&(p=p.concat(o.explicit));else throw new d5("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(k){if(!(k instanceof m0))throw new d5("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(k.loadKind&&k.loadKind!=="scalar")throw new d5("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(k.multi)throw new d5("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),p.forEach(function(k){if(!(k instanceof m0))throw new d5("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var w=Object.create(E1e.prototype);return w.implicit=(this.implicit||[]).concat(f),w.explicit=(this.explicit||[]).concat(p),w.compiledImplicit=gDe(w,"implicit"),w.compiledExplicit=gDe(w,"explicit"),w.compiledTypeMap=BEt(w.compiledImplicit,w.compiledExplicit),w};var FEt=E1e,REt=new m0("tag:yaml.org,2002:str",{kind:"scalar",construct:function(s){return s!==null?s:""}}),jEt=new m0("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(s){return s!==null?s:[]}}),$Et=new m0("tag:yaml.org,2002:map",{kind:"mapping",construct:function(s){return s!==null?s:{}}}),pDe=new FEt({explicit:[REt,jEt,$Et]});function HEt(s){if(s===null)return!0;var o=s.length;return o===1&&s==="~"||o===4&&(s==="null"||s==="Null"||s==="NULL")}function zEt(){return null}function GEt(s){return s===null}var qEt=new m0("tag:yaml.org,2002:null",{kind:"scalar",resolve:HEt,construct:zEt,predicate:GEt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function VEt(s){if(s===null)return!1;var o=s.length;return o===4&&(s==="true"||s==="True"||s==="TRUE")||o===5&&(s==="false"||s==="False"||s==="FALSE")}function UEt(s){return s==="true"||s==="True"||s==="TRUE"}function KEt(s){return Object.prototype.toString.call(s)==="[object Boolean]"}var WEt=new m0("tag:yaml.org,2002:bool",{kind:"scalar",resolve:VEt,construct:UEt,predicate:KEt,represent:{lowercase:function(s){return s?"true":"false"},uppercase:function(s){return s?"TRUE":"FALSE"},camelcase:function(s){return s?"True":"F
\r`;function v9t(s){if(s===null)return!1;var o,f,p=0,w=s.length,k=T1e;for(f=0;f<w;f++)if(o=k.indexOf(s.charAt(f)),!(o>64)){if(o<0)return!1;p+=6}return p%8===0}function w9t(s){var o,f,p=s.replace(/[\r\n=]/g,""),w=p.length,k=T1e,b=0,_=[];for(o=0;o<w;o++)o%4===0&&o&&(_.push(b>>16&255),_.push(b>>8&255),_.push(b&255)),b=b<<6|k.indexOf(p.charAt(o));return f=w%4*6,f===0?(_.push(b>>16&255),_.push(b>>8&255),_.push(b&255)):f===18?(_.push(b>>10&255),_.push(b>>2&255)):f===12&&_.push(b>>4&255),new Uint8Array(_)}function m9t(s){var o="",f=0,p,w,k=s.length,b=T1e;for(p=0;p<k;p++)p%3===0&&p&&(o+=b[f>>18&63],o+=b[f>>12&63],o+=b[f>>6&63],o+=b[f&63]),f=(f<<8)+s[p];return w=k%3,w===0?(o+=b[f>>18&63],o+=b[f>>12&63],o+=b[f>>6&63],o+=b[f&63]):w===2?(o+=b[f>>10&63],o+=b[f>>4&63],o+=b[f<<2&63],o+=b[64]):w===1&&(o+=b[f>>2&63],o+=b[f<<4&63],o+=b[64],o+=b[64]),o}function y9t(s){return Object.prototype.toString.call(s)==="[object Uint8Array]"}var k9t=new m0("tag:yaml.org,2002:binary",{kind:"scalar",resolve:v9t,construct:w9t,predicate:y9t,represent:m9t}),x9t=Object.prototype.hasOwnProperty,E9t=Object.prototype.toString;function T9t(s){if(s===null)return!0;var o=[],f,p,w,k,b,_=s;for(f=0,p=_.length;f<p;f+=1){if(w=_[f],b=!1,E9t.call(w)!=="[object Object]")return!1;for(k in w)if(x9t.call(w,k))if(!b)b=!0;else return!1;if(!b)return!1;if(o.indexOf(k)===-1)o.push(k);else return!1}return!0}function _9t(s){return s!==null?s:[]}var C9t=new m0("tag:yaml.org,2002:omap",{kind:"sequence",resolve:T9t,construct:_9t}),S9t=Object.prototype.toString;function A9t(s){if(s===null)return!0;var o,f,p,w,k,b=s;for(k=new Array(b.length),o=0,f=b.length;o<f;o+=1){if(p=b[o],S9t.call(p)!=="[object Object]"||(w=Object.keys(p),w.length!==1))return!1;k[o]=[w[0],p[w[0]]]}return!0}function L9t(s){if(s===null)return[];var o,f,p,w,k,b=s;for(k=new Array(b.length),o=0,f=b.length;o<f;o+=1)p=b[o],w=Object.keys(p),k[o]=[w[0],p[w[0]]];return k}var M9t=new m0("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:A9t,construct:L9t}),D9t=Object.prototype.hasOwnProperty;function I9t(s){if(s===null)return!0;var o,f=s;for(o in f)if(D9t.call(f,o)&&f[o]!==null)return!1;return!0}function O9t(s){return s!==null?s:{}}var N9t=new m0("tag:yaml.org,2002:set",{kind:"mapping",resolve:I9t,construct:O9t}),P9t=l9t.extend({implicit:[g9t,b9t],explicit:[k9t,C9t,M9t,N9t]}),Yk=Object.prototype.hasOwnProperty,HU=1,wDe=2,mDe=3,zU=4,_1e=1,B9t=2,yDe=3,F9t=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,R9t=/[\x85\u2028\u2029]/,j9t=/[,\[\]\{\}]/,kDe=/^(?:!|!!|![a-z\-]+!)$/i,xDe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function EDe(s){return Object.prototype.toString.call(s)}function t3(s){return s===10||s===13}function $E(s){return s===9||s===32}function Zg(s){return s===9||s===32||s===10||s===13}function bA(s){return s===44||s===91||s===93||s===123||s===125}function $9t(s){var o;return 48<=s&&s<=57?s-48:(o=s|32,97<=o&&o<=102?o-97+10:-1)}function H9t(s){return s===120?2:s===117?4:s===85?8:0}function z9t(s){return 48<=s&&s<=57?s-48:-1}function TDe(s){return s===48?"\0":s===97?"\x07":s===98?"\b":s===116||s===9?" ":s===110?`
`:s===118?"\v":s===102?"\f":s===114?"\r":s===101?"\x1B":s===32?" ":s===34?'"':s===47?"/":s===92?"\\":s===78?"…":s===95?" ":s===76?"\u2028":s===80?"\u2029":""}function G9t(s){return s<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320)}for(var _De=new Array(256),CDe=new Array(256),vA=0;vA<256;vA++)_De[vA]=TDe(vA)?1:0,CDe[vA]=TDe(vA);function q9t(s,o){this.input=s,this.filename=o.filename||null,this.schema=o.schema||P9t,this.onWarning=o.onWarning||null,this.legacy=o.legacy||!1,this.json=o.json||!1,this.listener=o.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=s.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function SDe(s,o){var f={name:s.filename,buffer:s.input.slice(0,-1),position:s.position,line:s.line,column:s.position-s.lineStart};return f.snippet=DEt(f),new d5(o,f)}function Os(s,o){throw SDe(s,o)}function GU(s,o){s.onWarning&&s.onWarning.call(null,SDe(s,o))}var ADe={YAML:function(o,f,p){var w,k,b;o.version!==null&&Os(o,"duplication of %YAML directive"),p.length!==1&&Os(o,"YAML directive accepts exactly one argument"),w=/^([0-9]+)\.([0-9]+)$/.exec(p[0]),w===null&&Os(o,"ill-formed argument of the YAML directive"),k=parseInt(w[1],10),b=parseInt(w[2],10),k!==1&&Os(o,"unacceptable YAML version of the document"),o.version=p[0],o.checkLineBreaks=b<2,b!==1&&b!==2&&GU(o,"unsupported YAML version of the document")},TAG:function(o,f,p){var w,k;p.length!==2&&Os(o,"TAG directive accepts exactly two arguments"),w=p[0],k=p[1],kDe.test(w)||Os(o,"ill-formed tag handle (first argument) of the TAG directive"),Yk.call(o.tagMap,w)&&Os(o,'there is a previously declared suffix for "'+w+'" tag handle'),xDe.test(k)||Os(o,"ill-formed tag prefix (second argument) of the TAG directive");try{k=decodeURIComponent(k)}catch{Os(o,"tag prefix is malformed: "+k)}o.tagMap[w]=k}};function Xk(s,o,f,p){var w,k,b,_;if(o<f){if(_=s.input.slice(o,f),p)for(w=0,k=_.length;w<k;w+=1)b=_.charCodeAt(w),b===9||32<=b&&b<=1114111||Os(s,"expected valid JSON character");else F9t.test(_)&&Os(s,"the stream contains non-printable characters");s.result+=_}}function LDe(s,o,f,p){var w,k,b,_;for(ig.isObject(f)||Os(s,"cannot merge mappings; the provided source object is unacceptable"),w=Object.keys(f),b=0,_=w.length;b<_;b+=1)k=w[b],Yk.call(o,k)||(o[k]=f[k],p[k]=!0)}function wA(s,o,f,p,w,k,b,_,A){var N,B;if(Array.isArray(w))for(w=Array.prototype.slice.call(w),N=0,B=w.length;N<B;N+=1)Array.isArray(w[N])&&Os(s,"nested arrays are not supported inside keys"),typeof w=="object"&&EDe(w[N])==="[object Object]"&&(w[N]="[object Object]");if(typeof w=="object"&&EDe(w)==="[object Object]"&&(w="[object Object]"),w=String(w),o===null&&(o={}),p==="tag:yaml.org,2002:merge")if(Array.isArray(k))for(N=0,B=k.length;N<B;N+=1)LDe(s,o,k[N],f);else LDe(s,o,k,f);else!s.json&&!Yk.call(f,w)&&Yk.call(o,w)&&(s.line=b||s.line,s.lineStart=_||s.lineStart,s.position=A||s.position,Os(s,"duplicated mapping key")),w==="__proto__"?Object.defineProperty(o,w,{configurable:!0,enumerable:!0,writable:!0,value:k}):o[w]=k,delete f[w];return o}function C1e(s){var o;o=s.input.charCodeAt(s.position),o===10?s.position++:o===13?(s.position++,s.input.charCodeAt(s.position)===10&&s.position++):Os(s,"a line break is expected"),s.line+=1,s.lineStart=s.position,s.firstTabInLine=-1}function Bf(s,o,f){for(var p=0,w=s.input.charCodeAt(s.position);w!==0;){for(;$E(w);)w===9&&s.firstTabInLine===-1&&(s.firstTabInLine=s.position),w=s.input.charCodeAt(++s.position);if(o&&w===35)do w=s.input.charCodeAt(++s.position);while(w!==10&&w!==13&&w!==0);if(t3(w))for(C1e(s),w=s.input.charCodeAt(s.position),p++,s.lineIndent=0;w===32;)s.lineIndent++,w=s.input.charCodeAt(++s.position);else break}return f!==-1&&p!==0&&s.lineIndent<f&&GU(s,"deficient indentation"),p}function qU(s){var o=s.position,f;return f=s.input.charCodeAt(o),!!((f===45||f===46)&&f===s.input.charCodeAt(o+1)&&f===s.input.charCodeAt(o+2)&&(o+=3,f=s.input.charCodeAt(o),f===0||Zg(f)))}function S1e(s,o){o===1?s.resu
`,o-1))}function V9t(s,o,f){var p,w,k,b,_,A,N,B,F=s.kind,H=s.result,j;if(j=s.input.charCodeAt(s.position),Zg(j)||bA(j)||j===35||j===38||j===42||j===33||j===124||j===62||j===39||j===34||j===37||j===64||j===96||(j===63||j===45)&&(w=s.input.charCodeAt(s.position+1),Zg(w)||f&&bA(w)))return!1;for(s.kind="scalar",s.result="",k=b=s.position,_=!1;j!==0;){if(j===58){if(w=s.input.charCodeAt(s.position+1),Zg(w)||f&&bA(w))break}else if(j===35){if(p=s.input.charCodeAt(s.position-1),Zg(p))break}else{if(s.position===s.lineStart&&qU(s)||f&&bA(j))break;if(t3(j))if(A=s.line,N=s.lineStart,B=s.lineIndent,Bf(s,!1,-1),s.lineIndent>=o){_=!0,j=s.input.charCodeAt(s.position);continue}else{s.position=b,s.line=A,s.lineStart=N,s.lineIndent=B;break}}_&&(Xk(s,k,b,!1),S1e(s,s.line-A),k=b=s.position,_=!1),$E(j)||(b=s.position+1),j=s.input.charCodeAt(++s.position)}return Xk(s,k,b,!1),s.result?!0:(s.kind=F,s.result=H,!1)}function U9t(s,o){var f,p,w;if(f=s.input.charCodeAt(s.position),f!==39)return!1;for(s.kind="scalar",s.result="",s.position++,p=w=s.position;(f=s.input.charCodeAt(s.position))!==0;)if(f===39)if(Xk(s,p,s.position,!0),f=s.input.charCodeAt(++s.position),f===39)p=s.position,s.position++,w=s.position;else return!0;else t3(f)?(Xk(s,p,w,!0),S1e(s,Bf(s,!1,o)),p=w=s.position):s.position===s.lineStart&&qU(s)?Os(s,"unexpected end of the document within a single quoted scalar"):(s.position++,w=s.position);Os(s,"unexpected end of the stream within a single quoted scalar")}function K9t(s,o){var f,p,w,k,b,_;if(_=s.input.charCodeAt(s.position),_!==34)return!1;for(s.kind="scalar",s.result="",s.position++,f=p=s.position;(_=s.input.charCodeAt(s.position))!==0;){if(_===34)return Xk(s,f,s.position,!0),s.position++,!0;if(_===92){if(Xk(s,f,s.position,!0),_=s.input.charCodeAt(++s.position),t3(_))Bf(s,!1,o);else if(_<256&&_De[_])s.result+=CDe[_],s.position++;else if((b=H9t(_))>0){for(w=b,k=0;w>0;w--)_=s.input.charCodeAt(++s.position),(b=$9t(_))>=0?k=(k<<4)+b:Os(s,"expected hexadecimal character");s.result+=G9t(k),s.position++}else Os(s,"unknown escape sequence");f=p=s.position}else t3(_)?(Xk(s,f,p,!0),S1e(s,Bf(s,!1,o)),f=p=s.position):s.position===s.lineStart&&qU(s)?Os(s,"unexpected end of the document within a double quoted scalar"):(s.position++,p=s.position)}Os(s,"unexpected end of the stream within a double quoted scalar")}function W9t(s,o){var f=!0,p,w,k,b=s.tag,_,A=s.anchor,N,B,F,H,j,V=Object.create(null),Z,ae,le,ce;if(ce=s.input.charCodeAt(s.position),ce===91)B=93,j=!1,_=[];else if(ce===123)B=125,j=!0,_={};else return!1;for(s.anchor!==null&&(s.anchorMap[s.anchor]=_),ce=s.input.charCodeAt(++s.position);ce!==0;){if(Bf(s,!0,o),ce=s.input.charCodeAt(s.position),ce===B)return s.position++,s.tag=b,s.anchor=A,s.kind=j?"mapping":"sequence",s.result=_,!0;f?ce===44&&Os(s,"expected the node content, but found ','"):Os(s,"missed comma between flow collection entries"),ae=Z=le=null,F=H=!1,ce===63&&(N=s.input.charCodeAt(s.position+1),Zg(N)&&(F=H=!0,s.position++,Bf(s,!0,o))),p=s.line,w=s.lineStart,k=s.position,mA(s,o,HU,!1,!0),ae=s.tag,Z=s.result,Bf(s,!0,o),ce=s.input.charCodeAt(s.position),(H||s.line===p)&&ce===58&&(F=!0,ce=s.input.charCodeAt(++s.position),Bf(s,!0,o),mA(s,o,HU,!1,!0),le=s.result),j?wA(s,_,V,ae,Z,le,p,w,k):F?_.push(wA(s,null,V,ae,Z,le,p,w,k)):_.push(Z),Bf(s,!0,o),ce=s.input.charCodeAt(s.position),ce===44?(f=!0,ce=s.input.charCodeAt(++s.position)):f=!1}Os(s,"unexpected end of the stream within a flow collection")}function Y9t(s,o){var f,p,w=_1e,k=!1,b=!1,_=o,A=0,N=!1,B,F;if(F=s.input.charCodeAt(s.position),F===124)p=!1;else if(F===62)p=!0;else return!1;for(s.kind="scalar",s.result="";F!==0;)if(F=s.input.charCodeAt(++s.position),F===43||F===45)_1e===w?w=F===43?yDe:B9t:Os(s,"repeat of a chomping mode identifier");else if((B=z9t(F))>=0)B===0?Os(s,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?Os(s,"repeat of an indentation width identifier"):(_=o+B-1,b=!0);else break;if($E(F)){do F=s.input.charCodeAt(++s.position);while($E(F));if(F===35)do F=s.input.charCodeAt(++s.position);while(!t3(F)&&F!==0)}for(;F!==0;){for(C1e(s),s.li
`,k?1+A:A):w===_1e&&k&&(s.result+=`
`);break}for(p?$E(F)?(N=!0,s.result+=ig.repeat(`
`,k?1+A:A)):N?(N=!1,s.result+=ig.repeat(`
`,A+1)):A===0?k&&(s.result+=" "):s.result+=ig.repeat(`
`,A):s.result+=ig.repeat(`
`,k?1+A:A),k=!0,b=!0,A=0,f=s.position;!t3(F)&&F!==0;)F=s.input.charCodeAt(++s.position);Xk(s,f,s.position,!1)}return!0}function MDe(s,o){var f,p=s.tag,w=s.anchor,k=[],b,_=!1,A;if(s.firstTabInLine!==-1)return!1;for(s.anchor!==null&&(s.anchorMap[s.anchor]=k),A=s.input.charCodeAt(s.position);A!==0&&(s.firstTabInLine!==-1&&(s.position=s.firstTabInLine,Os(s,"tab characters must not be used in indentation")),!(A!==45||(b=s.input.charCodeAt(s.position+1),!Zg(b))));){if(_=!0,s.position++,Bf(s,!0,-1)&&s.lineIndent<=o){k.push(null),A=s.input.charCodeAt(s.position);continue}if(f=s.line,mA(s,o,mDe,!1,!0),k.push(s.result),Bf(s,!0,-1),A=s.input.charCodeAt(s.position),(s.line===f||s.lineIndent>o)&&A!==0)Os(s,"bad indentation of a sequence entry");else if(s.lineIndent<o)break}return _?(s.tag=p,s.anchor=w,s.kind="sequence",s.result=k,!0):!1}function X9t(s,o,f){var p,w,k,b,_,A,N=s.tag,B=s.anchor,F={},H=Object.create(null),j=null,V=null,Z=null,ae=!1,le=!1,ce;if(s.firstTabInLine!==-1)return!1;for(s.anchor!==null&&(s.anchorMap[s.anchor]=F),ce=s.input.charCodeAt(s.position);ce!==0;){if(!ae&&s.firstTabInLine!==-1&&(s.position=s.firstTabInLine,Os(s,"tab characters must not be used in indentation")),p=s.input.charCodeAt(s.position+1),k=s.line,(ce===63||ce===58)&&Zg(p))ce===63?(ae&&(wA(s,F,H,j,V,null,b,_,A),j=V=Z=null),le=!0,ae=!0,w=!0):ae?(ae=!1,w=!0):Os(s,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),s.position+=1,ce=p;else{if(b=s.line,_=s.lineStart,A=s.position,!mA(s,f,wDe,!1,!0))break;if(s.line===k){for(ce=s.input.charCodeAt(s.position);$E(ce);)ce=s.input.charCodeAt(++s.position);if(ce===58)ce=s.input.charCodeAt(++s.position),Zg(ce)||Os(s,"a whitespace character is expected after the key-value separator within a block mapping"),ae&&(wA(s,F,H,j,V,null,b,_,A),j=V=Z=null),le=!0,ae=!1,w=!1,j=s.tag,V=s.result;else if(le)Os(s,"can not read an implicit mapping pair; a colon is missed");else return s.tag=N,s.anchor=B,!0}else if(le)Os(s,"can not read a block mapping entry; a multiline key may not be an implicit key");else return s.tag=N,s.anchor=B,!0}if((s.line===k||s.lineIndent>o)&&(ae&&(b=s.line,_=s.lineStart,A=s.position),mA(s,o,zU,!0,w)&&(ae?V=s.result:Z=s.result),ae||(wA(s,F,H,j,V,Z,b,_,A),j=V=Z=null),Bf(s,!0,-1),ce=s.input.charCodeAt(s.position)),(s.line===k||s.lineIndent>o)&&ce!==0)Os(s,"bad indentation of a mapping entry");else if(s.lineIndent<o)break}return ae&&wA(s,F,H,j,V,null,b,_,A),le&&(s.tag=N,s.anchor=B,s.kind="mapping",s.result=F),le}function Q9t(s){var o,f=!1,p=!1,w,k,b;if(b=s.input.charCodeAt(s.position),b!==33)return!1;if(s.tag!==null&&Os(s,"duplication of a tag property"),b=s.input.charCodeAt(++s.position),b===60?(f=!0,b=s.input.charCodeAt(++s.position)):b===33?(p=!0,w="!!",b=s.input.charCodeAt(++s.position)):w="!",o=s.position,f){do b=s.input.charCodeAt(++s.position);while(b!==0&&b!==62);s.position<s.length?(k=s.input.slice(o,s.position),b=s.input.charCodeAt(++s.position)):Os(s,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!Zg(b);)b===33&&(p?Os(s,"tag suffix cannot contain exclamation marks"):(w=s.input.slice(o-1,s.position+1),kDe.test(w)||Os(s,"named tag handle cannot contain such characters"),p=!0,o=s.position+1)),b=s.input.charCodeAt(++s.position);k=s.input.slice(o,s.position),j9t.test(k)&&Os(s,"tag suffix cannot contain flow indicator characters")}k&&!xDe.test(k)&&Os(s,"tag name cannot contain such characters: "+k);try{k=decodeURIComponent(k)}catch{Os(s,"tag name is malformed: "+k)}return f?s.tag=k:Yk.call(s.tagMap,w)?s.tag=s.tagMap[w]+k:w==="!"?s.tag="!"+k:w==="!!"?s.tag="tag:yaml.org,2002:"+k:Os(s,'undeclared tag handle "'+w+'"'),!0}function Z9t(s){var o,f;if(f=s.input.charCodeAt(s.position),f!==38)return!1;for(s.anchor!==null&&Os(s,"duplication of an anchor property"),f=s.input.charCodeAt(++s.position),o=s.position;f!==0&&!Zg(f)&&!bA(f);)f=s.input.charCodeAt(++s.position);return s.position===o&&Os(s,"name of an anchor node must contain at least one character"),s.anchor=s.input.slice(o,s.position),!0}function J9t(s){var o,f,p;if(p=s.input.charCo
`),s.charCodeAt(0)===65279&&(s=s.slice(1)));var f=new q9t(s,o),p=s.indexOf("\0");for(p!==-1&&(f.position=p,Os(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)eTt(f);return f.documents}function tTt(s,o,f){o!==null&&typeof o=="object"&&typeof f>"u"&&(f=o,o=null);var p=DDe(s,f);if(typeof o!="function")return p;for(var w=0,k=p.length;w<k;w+=1)o(p[w])}function nTt(s,o){var f=DDe(s,o);if(f.length!==0){if(f.length===1)return f[0];throw new d5("expected a single document in the stream, but found more")}}var rTt=tTt,iTt=nTt,sTt={loadAll:rTt,load:iTt},aTt=pDe,oTt=sTt.load;const IDe=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function cTt(s,o){var p;const f=s.match(IDe);if(f){const w=oTt(f[1],{schema:aTt});return w!=null&&w.title&&((p=o.setDiagramTitle)==null||p.call(o,w.title)),s.slice(f[0].length)}else return s}const uTt=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,lTt=/\s*%%.*\n/gm,VU={},A1e=function(s,o){s=s.replace(IDe,"").replace(uTt,"").replace(lTt,`
`);for(const[f,{detector:p}]of Object.entries(VU))if(p(s,o))return f;throw new Error(`No diagram type detected for text: ${s}`)},ODe=(...s)=>{for(const{id:o,detector:f,loader:p}of s)NDe(o,f,p)},NDe=(s,o,f)=>{VU[s]?je.error(`Detector with key ${s} already exists`):VU[s]={detector:o,loader:f},je.debug(`Detector with key ${s} added${f?" with loader":""}`)},hTt=s=>VU[s].loader,L1e=function(s,o,f){const{depth:p,clobber:w}=Object.assign({depth:2,clobber:!1},f);return Array.isArray(o)&&!Array.isArray(s)?(o.forEach(k=>L1e(s,k,f)),s):Array.isArray(o)&&Array.isArray(s)?(o.forEach(k=>{s.includes(k)||s.push(k)}),s):s===void 0||p<=0?s!=null&&typeof s=="object"&&typeof o=="object"?Object.assign(s,o):o:(o!==void 0&&typeof s=="object"&&typeof o=="object"&&Object.keys(o).forEach(k=>{typeof o[k]=="object"&&(s[k]===void 0||typeof s[k]=="object")?(s[k]===void 0&&(s[k]=Array.isArray(o[k])?[]:{}),s[k]=L1e(s[k],o[k],{depth:p-1,clobber:w})):(w||typeof s[k]!="object"&&typeof o[k]!="object")&&(s[k]=o[k])}),s)},nd=L1e;var fTt=typeof global=="object"&&global&&global.Object===Object&&global;const PDe=fTt;var dTt=typeof self=="object"&&self&&self.Object===Object&&self,gTt=PDe||dTt||Function("return this")();const Gw=gTt;var pTt=Gw.Symbol;const Gb=pTt;var BDe=Object.prototype,bTt=BDe.hasOwnProperty,vTt=BDe.toString,kN=Gb?Gb.toStringTag:void 0;function wTt(s){var o=bTt.call(s,kN),f=s[kN];try{s[kN]=void 0;var p=!0}catch{}var w=vTt.call(s);return p&&(o?s[kN]=f:delete s[kN]),w}var mTt=Object.prototype,yTt=mTt.toString;function kTt(s){return yTt.call(s)}var xTt="[object Null]",ETt="[object Undefined]",FDe=Gb?Gb.toStringTag:void 0;function HE(s){return s==null?s===void 0?ETt:xTt:FDe&&FDe in Object(s)?wTt(s):kTt(s)}function _2(s){var o=typeof s;return s!=null&&(o=="object"||o=="function")}var TTt="[object AsyncFunction]",_Tt="[object Function]",CTt="[object GeneratorFunction]",STt="[object Proxy]";function yA(s){if(!_2(s))return!1;var o=HE(s);return o==_Tt||o==CTt||o==TTt||o==STt}var ATt=Gw["__core-js_shared__"];const M1e=ATt;var RDe=function(){var s=/[^.]+$/.exec(M1e&&M1e.keys&&M1e.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}();function LTt(s){return!!RDe&&RDe in s}var MTt=Function.prototype,DTt=MTt.toString;function zE(s){if(s!=null){try{return DTt.call(s)}catch{}try{return s+""}catch{}}return""}var ITt=/[\\^$.*+?()[\]{}|]/g,OTt=/^\[object .+?Constructor\]$/,NTt=Function.prototype,PTt=Object.prototype,BTt=NTt.toString,FTt=PTt.hasOwnProperty,RTt=RegExp("^"+BTt.call(FTt).replace(ITt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jTt(s){if(!_2(s)||LTt(s))return!1;var o=yA(s)?RTt:OTt;return o.test(zE(s))}function $Tt(s,o){return s==null?void 0:s[o]}function GE(s,o){var f=$Tt(s,o);return jTt(f)?f:void 0}var HTt=GE(Object,"create");const xN=HTt;function zTt(){this.__data__=xN?xN(null):{},this.size=0}function GTt(s){var o=this.has(s)&&delete this.__data__[s];return this.size-=o?1:0,o}var qTt="__lodash_hash_undefined__",VTt=Object.prototype,UTt=VTt.hasOwnProperty;function KTt(s){var o=this.__data__;if(xN){var f=o[s];return f===qTt?void 0:f}return UTt.call(o,s)?o[s]:void 0}var WTt=Object.prototype,YTt=WTt.hasOwnProperty;function XTt(s){var o=this.__data__;return xN?o[s]!==void 0:YTt.call(o,s)}var QTt="__lodash_hash_undefined__";function ZTt(s,o){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=xN&&o===void 0?QTt:o,this}function qE(s){var o=-1,f=s==null?0:s.length;for(this.clear();++o<f;){var p=s[o];this.set(p[0],p[1])}}qE.prototype.clear=zTt,qE.prototype.delete=GTt,qE.prototype.get=KTt,qE.prototype.has=XTt,qE.prototype.set=ZTt;function JTt(){this.__data__=[],this.size=0}function kA(s,o){return s===o||s!==s&&o!==o}function UU(s,o){for(var f=s.length;f--;)if(kA(s[f][0],o))return f;return-1}var e_t=Array.prototype,t_t=e_t.splice;function n_t(s){var o=this.__data__,f=UU(o,s);if(f<0)return!1;var p=o.length-1;return f==p?o.pop():t_t.call(o,f,1),--this.size,!0}function r_t(s){var o=this.__data__,f=UU(o,s);return f<0?void 0:o[f][1]}function i_t(s){return UU(this.__data__,s)>-1}function s_t(s,o){var f=this.__
`,"ig");s=s.trim().replace(f,"").replace(/'/gm,'"'),je.debug(`Detecting diagram directive${o!==null?" type:"+o:""} based on the text:${s}`);let p;const w=[];for(;(p=D1e.exec(s))!==null;)if(p.index===D1e.lastIndex&&D1e.lastIndex++,p&&!o||o&&p[1]&&p[1].match(o)||o&&p[2]&&p[2].match(o)){const k=p[1]?p[1]:p[2],b=p[3]?p[3].trim():p[4]?JSON.parse(p[4].trim()):null;w.push({type:k,args:b})}return w.length===0&&w.push({type:s,args:null}),w.length===1?w[0]:w}catch(f){return je.error(`ERROR: ${f.message} - Unable to parse directive
${o!==null?" type:"+o:""} based on the text:${s}`),{type:null,args:null}}},v_t=function(s,o){for(const[f,p]of o.entries())if(p.match(s))return f;return-1};function Jg(s,o){if(!s)return o;const f=`curve${s.charAt(0).toUpperCase()+s.slice(1)}`;return g_t[f]||o}function w_t(s,o){const f=s.trim();if(f)return o.securityLevel!=="loose"?a5(f):f}const m_t=(s,...o)=>{const f=s.split("."),p=f.length-1,w=f[p];let k=window;for(let b=0;b<p;b++)if(k=k[f[b]],!k)return;k[w](...o)};function WU(s,o){return s&&o?Math.sqrt(Math.pow(o.x-s.x,2)+Math.pow(o.y-s.y,2)):0}function y_t(s){let o,f=0;s.forEach(k=>{f+=WU(k,o),o=k});let p=f/2,w;return o=void 0,s.forEach(k=>{if(o&&!w){const b=WU(k,o);if(b<p)p-=b;else{const _=p/b;_<=0&&(w=o),_>=1&&(w={x:k.x,y:k.y}),_>0&&_<1&&(w={x:(1-_)*o.x+_*k.x,y:(1-_)*o.y+_*k.y})}}o=k}),w}function k_t(s){return s.length===1?s[0]:y_t(s)}const x_t=(s,o,f)=>{let p;je.info(`our points ${JSON.stringify(o)}`),o[0]!==f&&(o=o.reverse());let k=25,b;p=void 0,o.forEach(B=>{if(p&&!b){const F=WU(B,p);if(F<k)k-=F;else{const H=k/F;H<=0&&(b=p),H>=1&&(b={x:B.x,y:B.y}),H>0&&H<1&&(b={x:(1-H)*p.x+H*B.x,y:(1-H)*p.y+H*B.y})}}p=B});const _=s?10:5,A=Math.atan2(o[0].y-b.y,o[0].x-b.x),N={x:0,y:0};return N.x=Math.sin(A)*_+(o[0].x+b.x)/2,N.y=-Math.cos(A)*_+(o[0].y+b.y)/2,N};function E_t(s,o,f){let p=JSON.parse(JSON.stringify(f)),w;je.info("our points",p),o!=="start_left"&&o!=="start_right"&&(p=p.reverse()),p.forEach(F=>{w=F});let b=25+s,_;w=void 0,p.forEach(F=>{if(w&&!_){const H=WU(F,w);if(H<b)b-=H;else{const j=b/H;j<=0&&(_=w),j>=1&&(_={x:F.x,y:F.y}),j>0&&j<1&&(_={x:(1-j)*w.x+j*F.x,y:(1-j)*w.y+j*F.y})}}w=F});const A=10+s*.5,N=Math.atan2(p[0].y-_.y,p[0].x-_.x),B={x:0,y:0};return B.x=Math.sin(N)*A+(p[0].x+_.x)/2,B.y=-Math.cos(N)*A+(p[0].y+_.y)/2,o==="start_left"&&(B.x=Math.sin(N+Math.PI)*A+(p[0].x+_.x)/2,B.y=-Math.cos(N+Math.PI)*A+(p[0].y+_.y)/2),o==="end_right"&&(B.x=Math.sin(N-Math.PI)*A+(p[0].x+_.x)/2-5,B.y=-Math.cos(N-Math.PI)*A+(p[0].y+_.y)/2-5),o==="end_left"&&(B.x=Math.sin(N)*A+(p[0].x+_.x)/2-5,B.y=-Math.cos(N)*A+(p[0].y+_.y)/2-5),B}function qw(s){let o="",f="";for(const p of s)p!==void 0&&(p.startsWith("color:")||p.startsWith("text-align:")?f=f+p+";":o=o+p+";");return{style:o,labelStyle:f}}let $De=0;const HDe=()=>($De++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$De);function T_t(s){let o="";const f="0123456789abcdef",p=f.length;for(let w=0;w<s;w++)o+=f.charAt(Math.floor(Math.random()*p));return o}const zDe=s=>T_t(s.length),__t=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}},C_t=function(s,o){const f=o.text.replace(xa.lineBreakRegex," "),[,p]=TN(o.fontSize),w=s.append("text");w.attr("x",o.x),w.attr("y",o.y),w.style("text-anchor",o.anchor),w.style("font-family",o.fontFamily),w.style("font-size",p),w.style("font-weight",o.fontWeight),w.attr("fill",o.fill),o.class!==void 0&&w.attr("class",o.class);const k=w.append("tspan");return k.attr("x",o.x+o.textMargin*2),k.attr("fill",o.fill),k.text(f),w},GDe=xA((s,o,f)=>{if(!s||(f=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},f),xa.lineBreakRegex.test(s)))return s;const p=s.split(" "),w=[];let k="";return p.forEach((b,_)=>{const A=n3(`${b} `,f),N=n3(k,f);if(A>o){const{hyphenatedStrings:H,remainingWord:j}=S_t(b,o,"-",f);w.push(k,...H),k=j}else N+A>=o?(w.push(k),k=b):k=[k,b].filter(Boolean).join(" ");_+1===p.length&&w.push(k)}),w.filter(b=>b!=="").join(f.joinWith)},(s,o,f)=>`${s}${o}${f.fontSize}${f.fontWeight}${f.fontFamily}${f.joinWith}`),S_t=xA((s,o,f="-",p)=>{p=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},p);const w=[...s],k=[];let b="";return w.forEach((_,A)=>{const N=`${b}${_}`;if(n3(N,p)>=o){const F=A+1,H=w.length===F,j=`${N}${f}`;k.push(H?N:j),b=""}else b=N}),{hyphenatedStrings:k,remainingWord:b}},(s,o,f="-",p)=>`${s}${o}${f}${p.fontSize}${p.fontWeight}${p.fontFamily}`);function I1e(s,o){return o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},o),O1e(s,o).height}function n3(s,o){return o=Object.assign({fontSize:12,fontWeight
fill: ${s.nodeBorder};
fill: ${s.classText};
stroke: none;
font-family: ${s.fontFamily};
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: ${s.classText};
}
.edgeLabel .label rect {
fill: ${s.mainBkg};
}
.label text {
fill: ${s.classText};
}
.edgeLabel .label span {
background: ${s.mainBkg};
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${s.mainBkg};
stroke: ${s.nodeBorder};
stroke-width: 1px;
}
.divider {
stroke: ${s.nodeBorder};
stroke: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: ${s.mainBkg};
stroke: ${s.nodeBorder};
}
g.classGroup line {
stroke: ${s.nodeBorder};
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: ${s.mainBkg};
opacity: 0.5;
}
.classLabel .label {
fill: ${s.nodeBorder};
font-size: 10px;
}
.relation {
stroke: ${s.lineColor};
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
.dotted-line{
stroke-dasharray: 1 2;
}
#compositionStart, .composition {
fill: ${s.lineColor} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: ${s.lineColor} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${s.lineColor} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${s.lineColor} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: ${s.mainBkg} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: ${s.mainBkg} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: ${s.mainBkg} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: ${s.mainBkg} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#lollipopStart, .lollipop {
fill: ${s.mainBkg} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
#lollipopEnd, .lollipop {
fill: ${s.mainBkg} !important;
stroke: ${s.lineColor} !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
.classTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${s.textColor};
}
`,sIe=s=>`
.entityBox {
fill: ${s.mainBkg};
stroke: ${s.nodeBorder};
}
.attributeBoxOdd {
fill: ${s.attributeBackgroundColorOdd};
stroke: ${s.nodeBorder};
}
.attributeBoxEven {
fill: ${s.attributeBackgroundColorEven};
stroke: ${s.nodeBorder};
}
.relationshipLabelBox {
fill: ${s.tertiaryColor};
opacity: 0.7;
background-color: ${s.tertiaryColor};
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: ${s.lineColor};
}
.entityTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${s.textColor};
}
`,G1e=()=>"",sK=s=>`.label {
font-family: ${s.fontFamily};
color: ${s.nodeTextColor||s.textColor};
}
.cluster-label text {
fill: ${s.titleColor};
}
.cluster-label span {
color: ${s.titleColor};
}
.label text,span {
fill: ${s.nodeTextColor||s.textColor};
color: ${s.nodeTextColor||s.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${s.mainBkg};
stroke: ${s.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${s.arrowheadColor};
}
.edgePath .path {
stroke: ${s.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${s.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${s.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${s.edgeLabelBackground};
fill: ${s.edgeLabelBackground};
}
text-align: center;
}
.cluster rect {
fill: ${s.clusterBkg};
stroke: ${s.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${s.titleColor};
}
.cluster span {
color: ${s.titleColor};
}
/* .cluster div {
color: ${s.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${s.fontFamily};
font-size: 12px;
background: ${s.tertiaryColor};
border: 1px solid ${s.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${s.textColor};
}
`,aIe=s=>`
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.exclude-range {
fill: ${s.excludeBkgColor};
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: ${s.sectionBkgColor};
}
.section2 {
fill: ${s.sectionBkgColor2};
}
.section1,
.section3 {
fill: ${s.altSectionBkgColor};
opacity: 0.2;
}
.sectionTitle0 {
fill: ${s.titleColor};
}
.sectionTitle1 {
fill: ${s.titleColor};
}
.sectionTitle2 {
fill: ${s.titleColor};
}
.sectionTitle3 {
fill: ${s.titleColor};
}
.sectionTitle {
text-anchor: start;
// font-size: ${s.ganttFontSize};
// text-height: 14px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
/* Grid and axis */
.grid .tick {
stroke: ${s.gridColor};
opacity: 0.8;
shape-rendering: crispEdges;
text {
font-family: ${s.fontFamily};
fill: ${s.textColor};
}
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: ${s.todayLineColor};
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
// .taskText:not([font-size]) {
// font-size: ${s.ganttFontSize};
// }
.taskTextOutsideRight {
fill: ${s.taskTextDarkColor};
text-anchor: start;
// font-size: ${s.ganttFontSize};
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.taskTextOutsideLeft {
fill: ${s.taskTextDarkColor};
text-anchor: end;
// font-size: ${s.ganttFontSize};
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: ${s.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: ${s.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: ${s.taskTextClickableColor} !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: ${s.taskTextColor};
}
.task0,
.task1,
.task2,
.task3 {
fill: ${s.taskBkgColor};
stroke: ${s.taskBorderColor};
}
.taskTextOutside0,
.taskTextOutside2
{
fill: ${s.taskTextOutsideColor};
}
.taskTextOutside1,
.taskTextOutside3 {
fill: ${s.taskTextOutsideColor};
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: ${s.activeTaskBkgColor};
stroke: ${s.activeTaskBorderColor};
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: ${s.taskTextDarkColor} !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: ${s.doneTaskBorderColor};
fill: ${s.doneTaskBkgColor};
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: ${s.taskTextDarkColor} !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: ${s.critBorderColor};
fill: ${s.critBkgColor};
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: ${s.critBorderColor};
fill: ${s.activeTaskBkgColor};
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: ${s.critBorderColor};
fill: ${s.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: ${s.taskTextDarkColor} !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: ${s.taskTextDarkColor} !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: ${s.textColor} ;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`,oIe=()=>"",cIe=s=>`
.pieCircle{
stroke: ${s.pieStrokeColor};
stroke-width : ${s.pieStrokeWidth};
opacity : ${s.pieOpacity};
}
.pieTitleText {
text-anchor: middle;
font-size: ${s.pieTitleTextSize};
fill: ${s.pieTitleTextColor};
font-family: ${s.fontFamily};
}
.slice {
font-family: ${s.fontFamily};
fill: ${s.pieSectionTextColor};
font-size:${s.pieSectionTextSize};
// fill: white;
}
.legend text {
fill: ${s.pieLegendTextColor};
font-family: ${s.fontFamily};
font-size: ${s.pieLegendTextSize};
}
`,uIe=s=>`
marker {
fill: ${s.relationColor};
stroke: ${s.relationColor};
}
marker.cross {
stroke: ${s.lineColor};
}
svg {
font-family: ${s.fontFamily};
font-size: ${s.fontSize};
}
.reqBox {
fill: ${s.requirementBackground};
fill-opacity: 100%;
stroke: ${s.requirementBorderColor};
stroke-width: ${s.requirementBorderSize};
}
.reqTitle, .reqLabel{
fill: ${s.requirementTextColor};
}
.reqLabelBox {
fill: ${s.relationLabelBackground};
fill-opacity: 100%;
}
.req-title-line {
stroke: ${s.requirementBorderColor};
stroke-width: ${s.requirementBorderSize};
}
.relationshipLine {
stroke: ${s.relationColor};
stroke-width: 1;
}
.relationshipLabel {
fill: ${s.relationLabelColor};
}
`,lIe=s=>`.actor {
stroke: ${s.actorBorder};
fill: ${s.actorBkg};
}
text.actor > tspan {
fill: ${s.actorTextColor};
stroke: none;
}
.actor-line {
stroke: ${s.actorLineColor};
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: ${s.signalColor};
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: ${s.signalColor};
}
#arrowhead path {
fill: ${s.signalColor};
stroke: ${s.signalColor};
}
.sequenceNumber {
fill: ${s.sequenceNumberColor};
}
#sequencenumber {
fill: ${s.signalColor};
}
#crosshead path {
fill: ${s.signalColor};
stroke: ${s.signalColor};
}
.messageText {
fill: ${s.signalTextColor};
stroke: none;
}
.labelBox {
stroke: ${s.labelBoxBorderColor};
fill: ${s.labelBoxBkgColor};
}
.labelText, .labelText > tspan {
fill: ${s.labelTextColor};
stroke: none;
}
.loopText, .loopText > tspan {
fill: ${s.loopTextColor};
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: ${s.labelBoxBorderColor};
fill: ${s.labelBoxBorderColor};
}
.note {
//stroke: #decc93;
stroke: ${s.noteBorderColor};
fill: ${s.noteBkgColor};
}
.noteText, .noteText > tspan {
fill: ${s.noteTextColor};
stroke: none;
}
.activation0 {
fill: ${s.activationBkgColor};
stroke: ${s.activationBorderColor};
}
.activation1 {
fill: ${s.activationBkgColor};
stroke: ${s.activationBorderColor};
}
.activation2 {
fill: ${s.activationBkgColor};
stroke: ${s.activationBorderColor};
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: ${s.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 line {
stroke: ${s.actorBorder};
fill: ${s.actorBkg};
}
.actor-man circle, line {
stroke: ${s.actorBorder};
fill: ${s.actorBkg};
stroke-width: 2px;
}
`,aK=s=>`
defs #statediagram-barbEnd {
fill: ${s.transitionColor};
stroke: ${s.transitionColor};
}
g.stateGroup text {
fill: ${s.nodeBorder};
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: ${s.textColor};
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: ${s.stateLabelColor};
}
g.stateGroup rect {
fill: ${s.mainBkg};
stroke: ${s.nodeBorder};
}
g.stateGroup line {
stroke: ${s.lineColor};
stroke-width: 1;
}
.transition {
stroke: ${s.transitionColor};
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: ${s.background};
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: ${s.noteBorderColor};
fill: ${s.noteBkgColor};
text {
fill: ${s.noteTextColor};
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: ${s.mainBkg};
opacity: 0.5;
}
.edgeLabel .label rect {
fill: ${s.labelBackgroundColor};
opacity: 0.5;
}
.edgeLabel .label text {
fill: ${s.transitionLabelColor||s.tertiaryTextColor};
}
.label div .edgeLabel {
color: ${s.transitionLabelColor||s.tertiaryTextColor};
}
.stateLabel text {
fill: ${s.stateLabelColor};
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: ${s.specialStateColor};
stroke: ${s.specialStateColor};
}
.node .fork-join {
fill: ${s.specialStateColor};
stroke: ${s.specialStateColor};
}
.node circle.state-end {
fill: ${s.innerEndBackground};
stroke: ${s.background};
stroke-width: 1.5
}
.end-state-inner {
fill: ${s.compositeBackground||s.background};
// stroke: ${s.background};
stroke-width: 1.5
}
.node rect {
fill: ${s.stateBkg||s.mainBkg};
stroke: ${s.stateBorder||s.nodeBorder};
stroke-width: 1px;
}
.node polygon {
fill: ${s.mainBkg};
stroke: ${s.stateBorder||s.nodeBorder};;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: ${s.lineColor};
}
.statediagram-cluster rect {
fill: ${s.compositeTitleBackground};
stroke: ${s.stateBorder||s.nodeBorder};
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: ${s.stateLabelColor};
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: ${s.stateBorder||s.nodeBorder};
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: ${s.compositeBackground||s.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: ${s.altBackground?s.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: ${s.altBackground?s.altBackground:"#efefef"};
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: ${s.noteBkgColor};
stroke: ${s.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: ${s.noteBkgColor};
stroke: ${s.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: ${s.noteTextColor};
}
.statediagram-note .nodeLabel {
color: ${s.noteTextColor};
}
.statediagram .edgeLabel {
color: red; // ${s.noteTextColor};
}
#dependencyStart, #dependencyEnd {
fill: ${s.lineColor};
stroke: ${s.lineColor};
stroke-width: 1;
}
.statediagramTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${s.textColor};
}
`,hIe=s=>`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: ${s.textColor};
}
.mouth {
stroke: #666;
}
line {
stroke: ${s.textColor}
}
.legend {
fill: ${s.textColor};
}
.label text {
fill: #333;
}
.label {
color: ${s.textColor}
}
.face {
${s.faceColor?`fill: ${s.faceColor}`:"fill: #FFF8DC"};
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${s.mainBkg};
stroke: ${s.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${s.arrowheadColor};
}
.edgePath .path {
stroke: ${s.lineColor};
stroke-width: 1.5px;
}
.flowchart-link {
stroke: ${s.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${s.edgeLabelBackground};
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: ${s.titleColor};
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
font-size: 12px;
background: ${s.tertiaryColor};
border: 1px solid ${s.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
${s.fillType0?`fill: ${s.fillType0}`:""};
}
.task-type-1, .section-type-1 {
${s.fillType0?`fill: ${s.fillType1}`:""};
}
.task-type-2, .section-type-2 {
${s.fillType0?`fill: ${s.fillType2}`:""};
}
.task-type-3, .section-type-3 {
${s.fillType0?`fill: ${s.fillType3}`:""};
}
.task-type-4, .section-type-4 {
${s.fillType0?`fill: ${s.fillType4}`:""};
}
.task-type-5, .section-type-5 {
${s.fillType0?`fill: ${s.fillType5}`:""};
}
.task-type-6, .section-type-6 {
${s.fillType0?`fill: ${s.fillType6}`:""};
}
.task-type-7, .section-type-7 {
${s.fillType0?`fill: ${s.fillType7}`:""};
}
.actor-0 {
${s.actor0?`fill: ${s.actor0}`:""};
}
.actor-1 {
${s.actor1?`fill: ${s.actor1}`:""};
}
.actor-2 {
${s.actor2?`fill: ${s.actor2}`:""};
}
.actor-3 {
${s.actor3?`fill: ${s.actor3}`:""};
}
.actor-4 {
${s.actor4?`fill: ${s.actor4}`:""};
}
.actor-5 {
${s.actor5?`fill: ${s.actor5}`:""};
}
`,fIe=s=>`.person {
stroke: ${s.personBorder};
fill: ${s.personBkg};
}
`,oK={flowchart:sK,"flowchart-v2":sK,sequence:lIe,gantt:aIe,classDiagram:AN,"classDiagram-v2":AN,class:AN,stateDiagram:aK,state:aK,info:oIe,pie:cIe,er:sIe,error:G1e,journey:hIe,requirement:uIe,c4:fIe},J_t=(s,o,f)=>{let p="";return s in oK&&oK[s]?p=oK[s](f):je.warn(`No theme found for ${s}`),` & {
font-family: ${f.fontFamily};
font-size: ${f.fontSize};
fill: ${f.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${f.errorBkgColor};
}
& .error-text {
fill: ${f.errorTextColor};
stroke: ${f.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${f.lineColor};
stroke: ${f.lineColor};
}
& .marker.cross {
stroke: ${f.lineColor};
}
& svg {
font-family: ${f.fontFamily};
font-size: ${f.fontSize};
}
${p}
${o}
`},eCt=(s,o)=>{oK[s]=o},tCt=J_t;let q1e="",cK="",V1e="";const U1e=s=>T2(s,Pt()),tp=function(){q1e="",V1e="",cK=""},np=function(s){q1e=U1e(s).replace(/^\s+/g,"")},C2=function(){return q1e||cK},S2=function(s){V1e=U1e(s).replace(/\n\s+/g,`
`)},A2=function(){return V1e},Kw=function(s){cK=U1e(s)},Ww=function(){return cK},dIe=Object.freeze(Object.defineProperty({__proto__:null,clear:tp,default:{setAccTitle:np,getAccTitle:C2,setDiagramTitle:Kw,getDiagramTitle:Ww,getAccDescription:A2,setAccDescription:S2,clear:tp},getAccDescription:A2,getAccTitle:C2,getDiagramTitle:Ww,setAccDescription:S2,setAccTitle:np,setDiagramTitle:Kw},Symbol.toStringTag,{value:"Module"}));let WE={};const K1e=function(s,o,f,p){je.debug("parseDirective is being called",o,f,p);try{if(o!==void 0)switch(o=o.trim(),f){case"open_directive":WE={};break;case"type_directive":if(!WE)throw new Error("currentDirective is undefined");WE.type=o.toLowerCase();break;case"arg_directive":if(!WE)throw new Error("currentDirective is undefined");WE.args=JSON.parse(o);break;case"close_directive":nCt(s,WE,p),WE=void 0;break}}catch(w){je.error(`Error while rendering sequenceDiagram directive: ${o} jison context: ${f}`),je.error(w.message)}},nCt=function(s,o,f){switch(je.info(`Directive type=${o.type} with args:`,o.args),o.type){case"init":case"initialize":{["config"].forEach(p=>{o.args[p]!==void 0&&(f==="flowchart-v2"&&(f="flowchart"),o.args[f]=o.args[p],delete o.args[p])}),je.info("sanitize in handleDirective",o.args),VE(o.args),je.info("sanitize in handleDirective (done)",o.args),z1e(o.args);break}case"wrap":case"nowrap":s&&s.setWrap&&s.setWrap(o.type==="wrap");break;case"themeCss":je.warn("themeCss encountered");break;default:je.warn(`Unhandled directive: source: '%%{${o.type}: ${JSON.stringify(o.args?o.args:{})}}%%`,o);break}},rCt=je,iCt=ffe,LN=Pt,sCt=s=>T2(s,LN()),gIe=KE,aCt=()=>dIe,oCt=(s,o,f,p)=>K1e(s,o,f,p),uK={},h1=(s,o,f)=>{if(uK[s])throw new Error(`Diagram ${s} already registered.`);uK[s]=o,f&&NDe(s,f),eCt(s,o.styles),o.injectUtils&&o.injectUtils(rCt,iCt,LN,sCt,gIe,aCt(),oCt)},pIe=s=>{if(s in uK)return uK[s];throw new Error(`Diagram ${s} not found.`)};var W1e=function(){var s=function(ye,re,we,ke){for(we=we||{},ke=ye.length;ke--;we[ye[ke]]=re);return we},o=[1,4],f=[1,7],p=[1,5],w=[1,9],k=[1,6],b=[2,6],_=[1,16],A=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],N=[8,14,20,22,24,25,27,29,32,37,40],B=[8,13,14,20,22,24,25,27,29,32,37,40],F=[1,26],H=[6,8,14,50,55],j=[8,14,55],V=[1,53],Z=[1,52],ae=[8,14,30,33,35,38,55],le=[1,67],ce=[1,68],be=[1,69],xe=[8,14,33,35,42,55],Ee={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7]
`+yt.showPosition()+`
Expecting `+Mn.join(", ")+", got '"+(this.terminals_[xt]||xt)+"'":Oe="Parse error on line "+(Ge+1)+": Unexpected "+(xt==bt?"end of input":"'"+(this.terminals_[xt]||xt)+"'"),this.parseError(Oe,{text:yt.match,token:this.terminals_[xt]||xt,line:yt.yylineno,loc:dn,expected:Mn})}if(wt[0]instanceof Array&&wt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Tt+", token: "+xt);switch(wt[0]){case 1:ke.push(xt),De.push(yt.yytext),X.push(yt.yylloc),ke.push(wt[1]),xt=null,de=yt.yyleng,pe=yt.yytext,Ge=yt.yylineno,dn=yt.yylloc;break;case 2:if(Lt=this.productions_[wt[1]][1],He.$=De[De.length-Lt],He._$={first_line:X[X.length-(Lt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Lt||1)].first_column,last_column:X[X.length-1].last_column},vt&&(He._$.range=[X[X.length-(Lt||1)].range[0],X[X.length-1].range[1]]),At=this.performAction.apply(He,[pe,de,Ge,Mt.yy,wt[1],De,X].concat(St)),typeof At<"u")return At;Lt&&(ke=ke.slice(0,-1*Lt*2),De=De.slice(0,-1*Lt),X=X.slice(0,-1*Lt)),ke.push(this.productions_[wt[1]][0]),De.push(He.$),X.push(He._$),Ve=Re[ke[ke.length-2]][ke[ke.length-1]],ke.push(Ve);break;case 3:return!0}}return!0}},Me=function(){var ye={EOF:1,parseError:function(we,ke){if(this.yy.parser)this.yy.parser.parseError(we,ke);else throw new Error(we)},setInput:function(re,we){return this.yy=we||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},input:function(){var re=this._input[0];this.yytext+=re,this.yyleng++,this.offset++,this.match+=re,this.matched+=re;var we=re.match(/(?:\r\n?|\n).*/g);return we?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),re},unput:function(re){var we=re.length,ke=re.split(/(?:\r\n?|\n)/g);this._input=re+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-we),this.offset-=we;var he=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),ke.length-1&&(this.yylineno-=ke.length-1);var De=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:ke?(ke.length===he.length?this.yylloc.first_column:0)+he[he.length-ke.length].length-ke[0].length:this.yylloc.first_column-we},this.options.ranges&&(this.yylloc.range=[De[0],De[0]+this.yyleng-we]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(re){this.unput(this.match.slice(re))},pastInput:function(){var re=this.matched.substr(0,this.matched.length-this.match.length);return(re.length>20?"...":"")+re.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var re=this.pastInput(),we=new Array(re.length+1).join("-");return re+this.upcomingInput()+`
`+we+"^"},test_match:function(re,we){var ke,he,De;if(this.options.backtrack_lexer&&(De={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&&(De.yylloc.range=this.yylloc.range.slice(0))),he=re[0].match(/(?:\r\n?|\n).*/g),he&&(this.yylineno+=he.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:he?he[he.length-1].length-he[he.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],ke=this.performAction.call(this,this.yy,this,we,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ke)return ke;if(this._backtrack){for(var X in De)this[X]=De[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var re,we,ke,he;this._more||(this.yytext="",this.match="");for(var De=this._currentRules(),X=0;X<De.length;X++)if(ke=this._input.match(this.rules[De[X]]),ke&&(!we||ke[0].length>we[0].length)){if(we=ke,he=X,this.options.backtrack_lexer){if(re=this.test_match(ke,De[X]),re!==!1)return re;if(this._backtrack){we=!1;continue}else return!1}else if(!this.options.flex)break}return we?(re=this.test_match(we,De[he]),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})},lex:function(){var we=this.next();return we||this.lex()},begin:function(we){this.conditionStack.push(we)},popState:function(){var we=this.conditionStack.length-1;return we>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(we){return we=this.conditionStack.length-1-Math.abs(we||0),we>=0?this.conditionStack[we]:"INITIAL"},pushState:function(we){this.begin(we)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(we,ke,he,De){switch(he){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return ye}();Ee.lexer=Me;function fe(){this.yy={}}return fe.prototype=Ee,Ee.Parser=fe,new fe}();W1e.parser=W1e;const cCt=W1e,uCt=s=>s.match(/^\s*gitGraph/)!==null;let lK=Pt().gitGraph.mainBranchName,lCt=Pt().gitGraph.mainBranchOrder,f1={},sg=null,MN={};MN[lK]={name:lK,order:lCt};let Rf={};Rf[lK]=sg;let rd=lK,bIe="LR",YE=0;function Y1e(){return zDe({length:7})}const hCt=function(s,o,f){Fl.parseDirective(this,s,o,f)};function fCt(s,o){const f=Object.create(null);return s.reduce((p,w)=>{const k=o(w);return f[k]||(f[k]=!0,p.push(w)),p},[])}const dCt=function(s){bIe=s};let vIe={};const gCt=function(s){je.debug("options str",s),s=s&&s.trim(),s=s||"{}";try{vIe=JSON.parse(s)}catch(o){je.error("error while parsing gitGraph options",o.message)}},pCt=function(){return vIe},bCt=function(s,o,f,p){je.debug("Entering commit:",s,o,f,p),o=xa.sanitizeText(o,Pt()),s=xa.sa
${b-ce.width/2-4/2},${xe+2}
${b-ce.width/2-4/2},${xe-2}
${b+10-ce.width/2-4},${xe-be-2}
${b+10+ce.width/2+4},${xe-be-2}
${b+10+ce.width/2+4},${xe+be+2}
${b+10-ce.width/2-4},${xe+be+2}`),ae.attr("cx",b-ce.width/2+4/2).attr("cy",xe).attr("r",1.5).attr("class","tag-hole")}}b+=50,b>dK&&(dK=b)})},DCt=(s,o,f)=>Object.keys(f).filter(k=>f[k].branch===o.branch&&f[k].seq>s.seq&&f[k].seq<o.seq).length>0,X1e=(s,o,f=0)=>{const p=s+Math.abs(s-o)/2;if(f>5)return p;if(fK.every(b=>Math.abs(b-p)>=10))return fK.push(p),p;const k=Math.abs(s-o);return X1e(s,o-k/5,f+1)},ICt=(s,o,f,p)=>{const w=hK[o.id],k=hK[f.id],b=DCt(o,f,p);let _="",A="",N=0,B=0,F=rp[f.branch].index,H;if(b){_="A 10 10, 0, 0, 0,",A="A 10 10, 0, 0, 1,",N=10,B=10,F=rp[f.branch].index;const j=w.y<k.y?X1e(w.y,k.y):X1e(k.y,w.y);w.y<k.y?H=`M ${w.x} ${w.y} L ${w.x} ${j-N} ${_} ${w.x+B} ${j} L ${k.x-N} ${j} ${A} ${k.x} ${j+B} L ${k.x} ${k.y}`:H=`M ${w.x} ${w.y} L ${w.x} ${j+N} ${A} ${w.x+B} ${j} L ${k.x-N} ${j} ${_} ${k.x} ${j-B} L ${k.x} ${k.y}`}else w.y<k.y&&(_="A 20 20, 0, 0, 0,",N=20,B=20,F=rp[f.branch].index,H=`M ${w.x} ${w.y} L ${w.x} ${k.y-N} ${_} ${w.x+B} ${k.y} L ${k.x} ${k.y}`),w.y>k.y&&(_="A 20 20, 0, 0, 0,",N=20,B=20,F=rp[o.branch].index,H=`M ${w.x} ${w.y} L ${k.x-N} ${w.y} ${_} ${k.x} ${w.y-B} L ${k.x} ${k.y}`),w.y===k.y&&(F=rp[o.branch].index,H=`M ${w.x} ${w.y} L ${w.x} ${k.y-N} ${_} ${w.x+B} ${k.y} L ${k.x} ${k.y}`);s.append("path").attr("d",H).attr("class","arrow arrow"+F%XE)},OCt=(s,o)=>{const f=s.append("g").attr("class","commit-arrows");Object.keys(o).forEach(p=>{const w=o[p];w.parents&&w.parents.length>0&&w.parents.forEach(k=>{ICt(f,o[k],w,o)})})},NCt=(s,o)=>{const f=LN().gitGraph,p=s.append("g");o.forEach((w,k)=>{const b=k%XE,_=rp[w.name].pos,A=p.append("line");A.attr("x1",0),A.attr("y1",_),A.attr("x2",dK),A.attr("y2",_),A.attr("class","branch branch"+b),fK.push(_);let N=w.name;const B=MCt(N),F=p.insert("rect"),j=p.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);j.node().appendChild(B);let V=B.getBBox();F.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-V.width-4-(f.rotateCommitLabel===!0?30:0)).attr("y",-V.height/2+8).attr("width",V.width+18).attr("height",V.height+4),j.attr("transform","translate("+(-V.width-14-(f.rotateCommitLabel===!0?30:0))+", "+(_-V.height/2-1)+")"),F.attr("transform","translate("+-19+", "+(_-V.height/2)+")")})},PCt={draw:function(s,o,f,p){LCt();const w=LN(),k=w.gitGraph;je.debug("in gitgraph renderer",s+`
`,"id:",o,f),IN=p.db.getCommits();const b=p.db.getBranchesAsObjArray();let _=0;b.forEach((N,B)=>{rp[N.name]={pos:_,index:B},_+=50+(k.rotateCommitLabel?40:0)});const A=sr(`[id="${o}"]`);xIe(A,IN,!1),k.showBranches&&NCt(A,b),OCt(A,IN),xIe(A,IN,!0),Pa.insertTitle(A,"gitTitleText",k.titleTopMargin,p.db.getDiagramTitle()),gIe(void 0,A,k.diagramPadding,k.useMaxWidth??w.useMaxWidth)}},BCt=s=>`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
${[0,1,2,3,4,5,6,7].map(o=>`
.branch-label${o} { fill: ${s["gitBranchLabel"+o]}; }
.commit${o} { stroke: ${s["git"+o]}; fill: ${s["git"+o]}; }
.commit-highlight${o} { stroke: ${s["gitInv"+o]}; fill: ${s["gitInv"+o]}; }
.label${o} { fill: ${s["git"+o]}; }
.arrow${o} { stroke: ${s["git"+o]}; }
`).join(`
`)}
.branch {
stroke-width: 1;
stroke: ${s.lineColor};
stroke-dasharray: 2;
}
.commit-label { font-size: ${s.commitLabelFontSize}; fill: ${s.commitLabelColor};}
.commit-label-bkg { font-size: ${s.commitLabelFontSize}; fill: ${s.commitLabelBackground}; opacity: 0.5; }
.tag-label { font-size: ${s.tagLabelFontSize}; fill: ${s.tagLabelColor};}
.tag-label-bkg { fill: ${s.tagLabelBackground}; stroke: ${s.tagLabelBorder}; }
.tag-hole { fill: ${s.textColor}; }
.commit-merge {
stroke: ${s.primaryColor};
fill: ${s.primaryColor};
}
.commit-reverse {
stroke: ${s.primaryColor};
fill: ${s.primaryColor};
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${s.primaryColor};
fill: ${s.primaryColor};
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${s.textColor};
}
}
`;var gK=function(){var s=function(Fi,vr,wr,ni){for(wr=wr||{},ni=Fi.length;ni--;wr[Fi[ni]]=vr);return wr},o=[1,6],f=[1,7],p=[1,8],w=[1,9],k=[1,16],b=[1,11],_=[1,12],A=[1,13],N=[1,14],B=[1,15],F=[1,27],H=[1,33],j=[1,34],V=[1,35],Z=[1,36],ae=[1,37],le=[1,72],ce=[1,73],be=[1,74],xe=[1,75],Ee=[1,76],Me=[1,77],fe=[1,78],ye=[1,38],re=[1,39],we=[1,40],ke=[1,41],he=[1,42],De=[1,43],X=[1,44],Re=[1,45],pe=[1,46],Ge=[1,47],de=[1,48],ct=[1,49],bt=[1,50],St=[1,51],yt=[1,52],Mt=[1,53],nn=[1,54],dn=[1,55],vt=[1,56],Lr=[1,57],xt=[1,59],Tt=[1,60],wt=[1,61],At=[1,62],He=[1,63],Ze=[1,64],Lt=[1,65],Ve=[1,66],Mn=[1,67],Oe=[1,68],Di=[1,69],rn=[24,52],pi=[24,44,46,47,48,49,50,51,52,54,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],Fr=[15,24,44,46,47,48,49,50,51,52,54,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],tr=[1,94],Wn=[1,95],er=[1,96],Fn=[1,97],nr=[15,24,52],ha=[7,8,9,10,18,22,25,26,27,28],fa=[15,24,43,52],is=[15,24,43,52,86,87,89,90],Xi=[15,43],da=[44,46,47,48,49,50,51,54,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],Cc={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,
`+ss.showPosition()+`
Expecting `+ah.join(", ")+", got '"+(this.terminals_[bu]||bu)+"'":Ai="Parse error on line "+(Ms+1)+": Unexpected "+(bu==Ba?"end of input":"'"+(this.terminals_[bu]||bu)+"'"),this.parseError(Ai,{text:ss.match,token:this.terminals_[bu]||bu,line:ss.yylineno,loc:$s,expected:ah})}if(Ju[0]instanceof Array&&Ju.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ra+", token: "+bu);switch(Ju[0]){case 1:ni.push(bu),Gi.push(ss.yytext),un.push(ss.yylloc),ni.push(Ju[1]),bu=null,Ea=ss.yyleng,Hn=ss.yytext,Ms=ss.yylineno,$s=ss.yylloc;break;case 2:if(vu=this.productions_[Ju[1]][1],el.$=Gi[Gi.length-vu],el._$={first_line:un[un.length-(vu||1)].first_line,last_line:un[un.length-1].last_line,first_column:un[un.length-(vu||1)].first_column,last_column:un[un.length-1].last_column},ap&&(el._$.range=[un[un.length-(vu||1)].range[0],un[un.length-1].range[1]]),lf=this.performAction.apply(el,[Hn,Ea,Ms,Zs.yy,Ju[1],Gi,un].concat(Ta)),typeof lf<"u")return lf;vu&&(ni=ni.slice(0,-1*vu*2),Gi=Gi.slice(0,-1*vu),un=un.slice(0,-1*vu)),ni.push(this.productions_[Ju[1]][0]),Gi.push(el.$),un.push(el._$),Mh=Ks[ni[ni.length-2]][ni[ni.length-1]],ni.push(Mh);break;case 3:return!0}}return!0}},na=function(){var Fi={EOF:1,parseError:function(wr,ni){if(this.yy.parser)this.yy.parser.parseError(wr,ni);else throw new Error(wr)},setInput:function(vr,wr){return this.yy=wr||this.yy||{},this._input=vr,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},input:function(){var vr=this._input[0];this.yytext+=vr,this.yyleng++,this.offset++,this.match+=vr,this.matched+=vr;var wr=vr.match(/(?:\r\n?|\n).*/g);return wr?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),vr},unput:function(vr){var wr=vr.length,ni=vr.split(/(?:\r\n?|\n)/g);this._input=vr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wr),this.offset-=wr;var Yn=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),ni.length-1&&(this.yylineno-=ni.length-1);var Gi=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:ni?(ni.length===Yn.length?this.yylloc.first_column:0)+Yn[Yn.length-ni.length].length-ni[0].length:this.yylloc.first_column-wr},this.options.ranges&&(this.yylloc.range=[Gi[0],Gi[0]+this.yyleng-wr]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(vr){this.unput(this.match.slice(vr))},pastInput:function(){var vr=this.matched.substr(0,this.matched.length-this.match.length);return(vr.length>20?"...":"")+vr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var vr=this.match;return vr.length<20&&(vr+=this._input.substr(0,20-vr.length)),(vr.substr(0,20)+(vr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var vr=this.pastInput(),wr=new Array(vr.length+1).join("-");return vr+this.upcomingInput()+`
`+wr+"^"},test_match:function(vr,wr){var ni,Yn,Gi;if(this.options.backtrack_lexer&&(Gi={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&&(Gi.yylloc.range=this.yylloc.range.slice(0))),Yn=vr[0].match(/(?:\r\n?|\n).*/g),Yn&&(this.yylineno+=Yn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Yn?Yn[Yn.length-1].length-Yn[Yn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+vr[0].length},this.yytext+=vr[0],this.match+=vr[0],this.matches=vr,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(vr[0].length),this.matched+=vr[0],ni=this.performAction.call(this,this.yy,this,wr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ni)return ni;if(this._backtrack){for(var un in Gi)this[un]=Gi[un];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var vr,wr,ni,Yn;this._more||(this.yytext="",this.match="");for(var Gi=this._currentRules(),un=0;un<Gi.length;un++)if(ni=this._input.match(this.rules[Gi[un]]),ni&&(!wr||ni[0].length>wr[0].length)){if(wr=ni,Yn=un,this.options.backtrack_lexer){if(vr=this.test_match(ni,Gi[un]),vr!==!1)return vr;if(this._backtrack){wr=!1;continue}else return!1}else if(!this.options.flex)break}return wr?(vr=this.test_match(wr,Gi[Yn]),vr!==!1?vr:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var wr=this.next();return wr||this.lex()},begin:function(wr){this.conditionStack.push(wr)},popState:function(){var wr=this.conditionStack.length-1;return wr>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(wr){return wr=this.conditionStack.length-1-Math.abs(wr||0),wr>=0?this.conditionStack[wr]:"INITIAL"},pushState:function(wr){this.begin(wr)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(wr,ni,Yn,Gi){switch(Yn){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.
`+Fn.showPosition()+`
Expecting `+Yn.join(", ")+", got '"+(this.terminals_[da]||da)+"'":Gi="Parse error on line "+(pi+1)+": Unexpected "+(da==Wn?"end of input":"'"+(this.terminals_[da]||da)+"'"),this.parseError(Gi,{text:Fn.match,token:this.terminals_[da]||da,line:Fn.yylineno,loc:fa,expected:Yn})}if(na[0]instanceof Array&&na.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cc+", token: "+da);switch(na[0]){case 1:Lt.push(da),Mn.push(Fn.yytext),Oe.push(Fn.yylloc),Lt.push(na[1]),da=null,Fr=Fn.yyleng,rn=Fn.yytext,pi=Fn.yylineno,fa=Fn.yylloc;break;case 2:if(wr=this.productions_[na[1]][1],Fi.$=Mn[Mn.length-wr],Fi._$={first_line:Oe[Oe.length-(wr||1)].first_line,last_line:Oe[Oe.length-1].last_line,first_column:Oe[Oe.length-(wr||1)].first_column,last_column:Oe[Oe.length-1].last_column},is&&(Fi._$.range=[Oe[Oe.length-(wr||1)].range[0],Oe[Oe.length-1].range[1]]),Ji=this.performAction.apply(Fi,[rn,Fr,pi,nr.yy,na[1],Mn,Oe].concat(er)),typeof Ji<"u")return Ji;wr&&(Lt=Lt.slice(0,-1*wr*2),Mn=Mn.slice(0,-1*wr),Oe=Oe.slice(0,-1*wr)),Lt.push(this.productions_[na[1]][0]),Mn.push(Fi.$),Oe.push(Fi._$),ni=Di[Lt[Lt.length-2]][Lt[Lt.length-1]],Lt.push(ni);break;case 3:return!0}}return!0}},Tt=function(){var At={EOF:1,parseError:function(Ze,Lt){if(this.yy.parser)this.yy.parser.parseError(Ze,Lt);else throw new Error(Ze)},setInput:function(He,Ze){return this.yy=Ze||this.yy||{},this._input=He,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},input:function(){var He=this._input[0];this.yytext+=He,this.yyleng++,this.offset++,this.match+=He,this.matched+=He;var Ze=He.match(/(?:\r\n?|\n).*/g);return Ze?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),He},unput:function(He){var Ze=He.length,Lt=He.split(/(?:\r\n?|\n)/g);this._input=He+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ze),this.offset-=Ze;var Ve=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),Lt.length-1&&(this.yylineno-=Lt.length-1);var Mn=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:Lt?(Lt.length===Ve.length?this.yylloc.first_column:0)+Ve[Ve.length-Lt.length].length-Lt[0].length:this.yylloc.first_column-Ze},this.options.ranges&&(this.yylloc.range=[Mn[0],Mn[0]+this.yyleng-Ze]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(He){this.unput(this.match.slice(He))},pastInput:function(){var He=this.matched.substr(0,this.matched.length-this.match.length);return(He.length>20?"...":"")+He.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var He=this.match;return He.length<20&&(He+=this._input.substr(0,20-He.length)),(He.substr(0,20)+(He.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var He=this.pastInput(),Ze=new Array(He.length+1).join("-");return He+this.upcomingInput()+`
`+Ze+"^"},test_match:function(He,Ze){var Lt,Ve,Mn;if(this.options.backtrack_lexer&&(Mn={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&&(Mn.yylloc.range=this.yylloc.range.slice(0))),Ve=He[0].match(/(?:\r\n?|\n).*/g),Ve&&(this.yylineno+=Ve.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ve?Ve[Ve.length-1].length-Ve[Ve.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+He[0].length},this.yytext+=He[0],this.match+=He[0],this.matches=He,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(He[0].length),this.matched+=He[0],Lt=this.performAction.call(this,this.yy,this,Ze,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Lt)return Lt;if(this._backtrack){for(var Oe in Mn)this[Oe]=Mn[Oe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var He,Ze,Lt,Ve;this._more||(this.yytext="",this.match="");for(var Mn=this._currentRules(),Oe=0;Oe<Mn.length;Oe++)if(Lt=this._input.match(this.rules[Mn[Oe]]),Lt&&(!Ze||Lt[0].length>Ze[0].length)){if(Ze=Lt,Ve=Oe,this.options.backtrack_lexer){if(He=this.test_match(Lt,Mn[Oe]),He!==!1)return He;if(this._backtrack){Ze=!1;continue}else return!1}else if(!this.options.flex)break}return Ze?(He=this.test_match(Ze,Mn[Ve]),He!==!1?He:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ze=this.next();return Ze||this.lex()},begin:function(Ze){this.conditionStack.push(Ze)},popState:function(){var Ze=this.conditionStack.length-1;return Ze>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ze){return Ze=this.conditionStack.length-1-Math.abs(Ze||0),Ze>=0?this.conditionStack[Ze]:"INITIAL"},pushState:function(Ze){this.begin(Ze)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ze,Lt,Ve,Mn){switch(Ve){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 27:break;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 39:this.popState();break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 42:this.popState();break;case 43:return"STR";case 44:this.begin("bqstring");break;case 45:this.popState();break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 48:this.popState();break;case 49:return 73;case 50:this.begin("callback_name");break;case 51:this.popState();break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 54:this.popState();break;case 55:return 72;case 56:return 69;case 57:return 69;case 58:return 69;case 59:return 69;case 60:return 61;case 61:return 61;case 62:return 63;case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:return"EQUALS";case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\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)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,
`);A.forEach(function(H){je.debug(`Adding line: ${H}`),_.append("tspan").text(H).attr("class","title").attr("dy",f.textHeight)});const N=b.node().getBBox(),F=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",N.width+2*f.padding).attr("height",N.height+A.length*f.textHeight+f.padding+.5*f.dividerMargin).node().getBBox().width;return _.node().childNodes.forEach(function(H){H.setAttribute("x",(F-H.getBBox().width)/2)}),k.width=F,k.height=N.height+A.length*f.textHeight+f.padding+.5*f.dividerMargin,k},$K=function(s){const o=/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/,f=/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/;let p=s.match(o),w=s.match(f);return p&&!w?tPt(p):w?nPt(w):rPt(s)},tPt=function(s){let o="",f="";try{let p=s[1]?s[1].trim():"",w=s[2]?s[2].trim():"",k=s[3]?Uk(s[3].trim()):"",b=s[4]?s[4].trim():"",_=s[5]?s[5].trim():"";f=p+w+k+" "+b,o=Rde(_)}catch{f=s}return{displayText:f,cssStyle:o}},nPt=function(s){let o="",f="";try{let p=s[1]?s[1].trim():"",w=s[2]?s[2].trim():"",k=s[3]?Uk(s[3].trim()):"",b=s[4]?s[4].trim():"",_=s[5]?" : "+Uk(s[5]).trim():"";f=p+w+"("+k+")"+_,o=Rde(b)}catch{f=s}return{displayText:f,cssStyle:o}},rPt=function(s){let o="",f="",p="",w=s.indexOf("("),k=s.indexOf(")");if(w>1&&k>w&&k<=s.length){let b="",_="",A=s.substring(0,1);A.match(/\w/)?_=s.substring(0,w).trim():(A.match(/[#+~-]/)&&(b=A),_=s.substring(1,w).trim());const N=s.substring(w+1,k);s.substring(k+1,1),f=Rde(s.substring(k+1,k+2)),o=b+_+"("+Uk(N.trim())+")",k<s.length&&(p=s.substring(k+2).trim(),p!==""&&(p=" : "+Uk(p),o+=p))}else o=Uk(s);return{displayText:o,cssStyle:f}},LNe=function(s,o,f,p){let w=$K(o);const k=s.append("tspan").attr("x",p.padding).text(w.displayText);w.cssStyle!==""&&k.attr("style",w.cssStyle),f||k.attr("dy",p.textHeight)},Rde=function(s){switch(s){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},jde={drawClass:JNt,drawEdge:ZNt,drawNote:ePt,parseMember:$K};let HK={};const zK=20,XN=function(s){const o=Object.entries(HK).find(f=>f[1].label===s);if(o)return o[0]},iPt=function(s){s.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),s.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),s.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).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")},sPt={draw:function(s,o,f,p){const w=Pt().class;HK={},je.info("Rendering diagram "+s);const k=Pt().securityLevel;let b;k==="sandbox"&&(b=sr("#i"+o));const _=sr(k==="sandbox"?b.nodes()[0].con
outsidePoint: ${JSON.stringify(o)}
insidePoint : ${JSON.stringify(f)}
node : x:${s.x} y:${s.y} w:${s.width} h:${s.height}`);const p=s.x,w=s.y,k=Math.abs(p-f.x),b=s.width/2;let _=f.x<o.x?b-k:b+k;const A=s.height/2,N=Math.abs(o.y-f.y),B=Math.abs(o.x-f.x);if(Math.abs(w-o.y)*b>Math.abs(p-o.x)*A){let F=f.y<o.y?o.y-A-w:w-A-o.y;_=B*F/N;const H={x:f.x<o.x?f.x+_:f.x-B+_,y:f.y<o.y?f.y+N-F:f.y-N+F};return _===0&&(H.x=o.x,H.y=o.y),B===0&&(H.x=o.x),N===0&&(H.y=o.y),je.warn(`abc89 topp/bott calc, Q ${N}, q ${F}, R ${B}, r ${_}`,H),H}else{f.x<o.x?_=o.x-b-p:_=p-b-o.x;let F=N*_/B,H=f.x<o.x?f.x+B-_:f.x-B+_,j=f.y<o.y?f.y+F:f.y-F;return je.warn(`sides calc abc89, Q ${N}, q ${F}, R ${B}, r ${_}`,{_x:H,_y:j}),_===0&&(H=o.x,j=o.y),B===0&&(H=o.x),N===0&&(j=o.y),{x:H,y:j}}},UNe=(s,o)=>{je.warn("abc88 cutPathAtIntersect",s,o);let f=[],p=s[0],w=!1;return s.forEach(k=>{if(je.info("abc88 checking point",k,o),!VPt(o,k)&&!w){const b=UPt(o,p,k);je.warn("abc88 inside",k,p,b),je.warn("abc88 intersection",b);let _=!1;f.forEach(A=>{_=_||A.x===b.x&&A.y===b.y}),f.some(A=>A.x===b.x&&A.y===b.y)?je.warn("abc88 no intersect",b,f):f.push(b),w=!0}else je.warn("abc88 outside",k,p),p=k,w||f.push(k)}),je.warn("abc88 returning points",f),f},KPt=function(s,o,f,p,w,k){let b=f.points,_=!1;const A=k.node(o.v);var N=k.node(o.w);je.info("abc88 InsertEdge: ",f),N.intersect&&A.intersect&&(b=b.slice(1,f.points.length-1),b.unshift(A.intersect(b[0])),je.info("Last point",b[b.length-1],N,N.intersect(b[b.length-1])),b.push(N.intersect(b[b.length-1]))),f.toCluster&&(je.info("to cluster abc88",p[f.toCluster]),b=UNe(f.points,p[f.toCluster].node),_=!0),f.fromCluster&&(je.info("from cluster abc88",p[f.fromCluster]),b=UNe(b.reverse(),p[f.fromCluster].node).reverse(),_=!0);const B=b.filter(le=>!Number.isNaN(le.y));let F;w==="graph"||w==="flowchart"?F=f.curve||pA:F=pA;const H=RE().x(function(le){return le.x}).y(function(le){return le.y}).curve(F);let j;switch(f.thickness){case"normal":j="edge-thickness-normal";break;case"thick":j="edge-thickness-thick";break;default:j=""}switch(f.pattern){case"solid":j+=" edge-pattern-solid";break;case"dotted":j+=" edge-pattern-dotted";break;case"dashed":j+=" edge-pattern-dashed";break}const V=s.append("path").attr("d",H(B)).attr("id",f.id).attr("class"," "+j+(f.classes?" "+f.classes:"")).attr("style",f.style);let Z="";switch((Pt().flowchart.arrowMarkerAbsolute||Pt().state.arrowMarkerAbsolute)&&(Z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Z=Z.replace(/\(/g,"\\("),Z=Z.replace(/\)/g,"\\)")),je.info("arrowTypeStart",f.arrowTypeStart),je.info("arrowTypeEnd",f.arrowTypeEnd),f.arrowTypeStart){case"arrow_cross":V.attr("marker-start","url("+Z+"#"+w+"-crossStart)");break;case"arrow_point":V.attr("marker-start","url("+Z+"#"+w+"-pointStart)");break;case"arrow_barb":V.attr("marker-start","url("+Z+"#"+w+"-barbStart)");break;case"arrow_circle":V.attr("marker-start","url("+Z+"#"+w+"-circleStart)");break;case"aggregation":V.attr("marker-start","url("+Z+"#"+w+"-aggregationStart)");break;case"extension":V.attr("marker-start","url("+Z+"#"+w+"-extensionStart)");break;case"composition":V.attr("marker-start","url("+Z+"#"+w+"-compositionStart)");break;case"dependency":V.attr("marker-start","url("+Z+"#"+w+"-dependencyStart)");break;case"lollipop":V.attr("marker-start","url("+Z+"#"+w+"-lollipopStart)");break}switch(f.arrowTypeEnd){case"arrow_cross":V.attr("marker-end","url("+Z+"#"+w+"-crossEnd)");break;case"arrow_point":V.attr("marker-end","url("+Z+"#"+w+"-pointEnd)");break;case"arrow_barb":V.attr("marker-end","url("+Z+"#"+w+"-barbEnd)");break;case"arrow_circle":V.attr("marker-end","url("+Z+"#"+w+"-circleEnd)");break;case"aggregation":V.attr("marker-end","url("+Z+"#"+w+"-aggregationEnd)");break;case"extension":V.attr("marker-end","url("+Z+"#"+w+"-extensionEnd)");break;case"composition":V.attr("marker-end","url("+Z+"#"+w+"-compositionEnd)");break;case"dependency":V.attr("marker-end","url("+Z+"#"+w+"-dependencyEnd)");break;case"lollipop":V.attr("marker-end","url("+Z+"#"+w+"-lollipopEnd)");break}let ae={};return _&&(ae.updatedPath=b),ae.originalPath=f.points,ae},KNe=(s,o,f,p)=>{je.info
`),w.style===void 0&&(k.style=k.style||"stroke: #333; stroke-width: 1.5px;fill:none"),k.labelStyle=k.labelStyle.replace("color:","fill:"))),o.setEdge(w.id1,w.id2,k,p)})},QPt=function(s){Object.keys(s).forEach(function(f){YNe[f]=s[f]})},ZPt=function(s,o,f,p){je.info("Drawing class - ",o);const w=Pt().flowchart,k=Pt().securityLevel;je.info("config:",w);const b=w.nodeSpacing||50,_=w.rankSpacing||50,A=new Hf({multigraph:!0,compound:!0}).setGraph({rankdir:p.db.getDirection(),nodesep:b,ranksep:_,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),N=p.db.getClasses(),B=p.db.getRelations(),F=p.db.getNotes();je.info(B),WPt(N,A,o,p),XPt(B,A),YPt(F,A,B.length+1,N);let H;k==="sandbox"&&(H=sr("#i"+o));const j=sr(k==="sandbox"?H.nodes()[0].contentDocument.body:"body"),V=j.select(`[id="${o}"]`),Z=j.select("#"+o+" g");if($de(Z,A,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",o),Pa.insertTitle(V,"classTitleText",w.titleTopMargin,p.db.getDiagramTitle()),KE(A,V,w.diagramPadding,w.useMaxWidth),!w.htmlLabels){const ae=k==="sandbox"?H.nodes()[0].contentDocument:document,le=ae.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const ce of le){const be=ce.getBBox(),xe=ae.createElementNS("http://www.w3.org/2000/svg","rect");xe.setAttribute("rx",0),xe.setAttribute("ry",0),xe.setAttribute("width",be.width),xe.setAttribute("height",be.height),ce.insertBefore(xe,ce.firstChild)}}};function XNe(s){let o;switch(s){case 0:o="aggregation";break;case 1:o="extension";break;case 2:o="composition";break;case 3:o="dependency";break;case 4:o="lollipop";break;default:o="none"}return o}const JPt={setConf:QPt,draw:ZPt};var Hde=function(){var s=function(ke,he,De,X){for(De=De||{},X=ke.length;X--;De[ke[X]]=he);return De},o=[1,2],f=[1,5],p=[6,9,11,23,25,27,29,30,31,51],w=[1,17],k=[1,18],b=[1,19],_=[1,20],A=[1,21],N=[1,22],B=[1,25],F=[1,30],H=[1,31],j=[1,32],V=[1,33],Z=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],ae=[1,45],le=[30,31,48,49],ce=[4,6,9,11,23,25,27,29,30,31,51],be=[44,45,46,47],xe=[22,37],Ee=[1,65],Me=[1,64],fe=[22,37,39,41],ye={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(he,De,X,Re,pe,Ge,de){var ct=Ge.length-1;switch(pe){case 1:break;case 3:this.$=[];break;case 4:Ge[ct-1].push(Ge[ct]),this.$=Ge[ct-1];break;case 5:case 6:this.$=Ge[ct];break;case 7:case 8:this.$=[];break;case 12:Re.addEntity(Ge[ct-4]),Re.addEntity(Ge[ct-2]),Re.addRelationship(Ge[ct-4],Ge[ct],Ge[ct-2],Ge[ct-3]);break;
`+dn.showPosition()+`
Expecting `+rn.join(", ")+", got '"+(this.terminals_[At]||At)+"'":pi="Parse error on line "+(bt+1)+": Unexpected "+(At==Mt?"end of input":"'"+(this.terminals_[At]||At)+"'"),this.parseError(pi,{text:dn.match,token:this.terminals_[At]||At,line:dn.yylineno,loc:xt,expected:rn})}if(Ze[0]instanceof Array&&Ze.length>1)throw new Error("Parse Error: multiple actions possible at state: "+He+", token: "+At);switch(Ze[0]){case 1:X.push(At),pe.push(dn.yytext),Ge.push(dn.yylloc),X.push(Ze[1]),At=null,St=dn.yyleng,ct=dn.yytext,bt=dn.yylineno,xt=dn.yylloc;break;case 2:if(Oe=this.productions_[Ze[1]][1],Ve.$=pe[pe.length-Oe],Ve._$={first_line:Ge[Ge.length-(Oe||1)].first_line,last_line:Ge[Ge.length-1].last_line,first_column:Ge[Ge.length-(Oe||1)].first_column,last_column:Ge[Ge.length-1].last_column},Tt&&(Ve._$.range=[Ge[Ge.length-(Oe||1)].range[0],Ge[Ge.length-1].range[1]]),Lt=this.performAction.apply(Ve,[ct,St,bt,vt.yy,Ze[1],pe,Ge].concat(nn)),typeof Lt<"u")return Lt;Oe&&(X=X.slice(0,-1*Oe*2),pe=pe.slice(0,-1*Oe),Ge=Ge.slice(0,-1*Oe)),X.push(this.productions_[Ze[1]][0]),pe.push(Ve.$),Ge.push(Ve._$),Di=de[X[X.length-2]][X[X.length-1]],X.push(Di);break;case 3:return!0}}return!0}},re=function(){var ke={EOF:1,parseError:function(De,X){if(this.yy.parser)this.yy.parser.parseError(De,X);else throw new Error(De)},setInput:function(he,De){return this.yy=De||this.yy||{},this._input=he,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},input:function(){var he=this._input[0];this.yytext+=he,this.yyleng++,this.offset++,this.match+=he,this.matched+=he;var De=he.match(/(?:\r\n?|\n).*/g);return De?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),he},unput:function(he){var De=he.length,X=he.split(/(?:\r\n?|\n)/g);this._input=he+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-De),this.offset-=De;var Re=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 pe=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===Re.length?this.yylloc.first_column:0)+Re[Re.length-X.length].length-X[0].length:this.yylloc.first_column-De},this.options.ranges&&(this.yylloc.range=[pe[0],pe[0]+this.yyleng-De]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(he){this.unput(this.match.slice(he))},pastInput:function(){var he=this.matched.substr(0,this.matched.length-this.match.length);return(he.length>20?"...":"")+he.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var he=this.match;return he.length<20&&(he+=this._input.substr(0,20-he.length)),(he.substr(0,20)+(he.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var he=this.pastInput(),De=new Array(he.length+1).join("-");return he+this.upcomingInput()+`
`+De+"^"},test_match:function(he,De){var X,Re,pe;if(this.options.backtrack_lexer&&(pe={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&&(pe.yylloc.range=this.yylloc.range.slice(0))),Re=he[0].match(/(?:\r\n?|\n).*/g),Re&&(this.yylineno+=Re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Re?Re[Re.length-1].length-Re[Re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+he[0].length},this.yytext+=he[0],this.match+=he[0],this.matches=he,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(he[0].length),this.matched+=he[0],X=this.performAction.call(this,this.yy,this,De,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var Ge in pe)this[Ge]=pe[Ge];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var he,De,X,Re;this._more||(this.yytext="",this.match="");for(var pe=this._currentRules(),Ge=0;Ge<pe.length;Ge++)if(X=this._input.match(this.rules[pe[Ge]]),X&&(!De||X[0].length>De[0].length)){if(De=X,Re=Ge,this.options.backtrack_lexer){if(he=this.test_match(X,pe[Ge]),he!==!1)return he;if(this._backtrack){De=!1;continue}else return!1}else if(!this.options.flex)break}return De?(he=this.test_match(De,pe[Re]),he!==!1?he:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var De=this.next();return De||this.lex()},begin:function(De){this.conditionStack.push(De)},popState:function(){var De=this.conditionStack.length-1;return De>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(De){return De=this.conditionStack.length-1-Math.abs(De||0),De>=0?this.conditionStack[De]:"INITIAL"},pushState:function(De){this.begin(De)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(De,X,Re,pe){switch(Re){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:break;case 13:break;case 14:return 11;case 15:break;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 22:break;case 23:return 40;case 24:return 37;case 25:return 37;case 26:return 41;case 27:break;case 28:return this.popState(),22;case 29:return X.yytext[0];case 30:return 44;case 31:return 46;case 32:return 46;case 33:return 46;case 34:return 44;case 35:return 44;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 45;case 40:return 45;case 41:return 46;case 42:return 45;case 43:return 46;case 44:return 47;case 45:return 47;case 46:return 47;case 47:return 47;case 48:return 44;case 49:return 45;case 50:return 46;case 51:return 48;case 52:return 49;case 53:return 49;case 54:return 48;case 55:return 48;case 56:return 48;case 57:return 30;case 58:return X.yytext[0];case 59:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/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,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,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],inclusive:!0}}};return ke}();ye.lexer=re;function we(){this.yy={}}return we.prototype=ye,ye.Parser=we,new we}();Hde.parser=Hde;const eBt=Hde,tBt=s=>s.match(/^\s*erDiagram/)!==null;let JN={},zde=[];const nBt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},rBt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENT
`+fl.showPosition()+`
Expecting `+g3.join(", ")+", got '"+(this.terminals_[p1]||p1)+"'":Jo="Parse error on line "+(id+1)+": Unexpected "+(p1==s8?"end of input":"'"+(this.terminals_[p1]||p1)+"'"),this.parseError(Jo,{text:fl.match,token:this.terminals_[p1]||p1,line:fl.yylineno,loc:I5,expected:g3})}if(b1[0]instanceof Array&&b1.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Jb+", token: "+p1);switch(b1[0]){case 1:Ya.push(p1),uc.push(fl.yytext),Ot.push(fl.yylloc),Ya.push(b1[1]),p1=null,sm=fl.yyleng,Kt=fl.yytext,id=fl.yylineno,I5=fl.yylloc;break;case 2:if(x0=this.productions_[b1[1]][1],cp.$=uc[uc.length-x0],cp._$={first_line:Ot[Ot.length-(x0||1)].first_line,last_line:Ot[Ot.length-1].last_line,first_column:Ot[Ot.length-(x0||1)].first_column,last_column:Ot[Ot.length-1].last_column},f9&&(cp._$.range=[Ot[Ot.length-(x0||1)].range[0],Ot[Ot.length-1].range[1]]),O5=this.performAction.apply(cp,[Kt,sm,id,Zb.yy,b1[1],uc,Ot].concat(I2)),typeof O5<"u")return O5;x0&&(Ya=Ya.slice(0,-1*x0*2),uc=uc.slice(0,-1*x0),Ot=Ot.slice(0,-1*x0)),Ya.push(this.productions_[b1[1]][0]),uc.push(cp.$),Ot.push(cp._$),Fu=im[Ya[Ya.length-2]][Ya[Ya.length-1]],Ya.push(Fu);break;case 3:return!0}}return!0}},Qb=function(){var Rd={EOF:1,parseError:function(Es,Ya){if(this.yy.parser)this.yy.parser.parseError(Es,Ya);else throw new Error(Es)},setInput:function(cs,Es){return this.yy=Es||this.yy||{},this._input=cs,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},input:function(){var cs=this._input[0];this.yytext+=cs,this.yyleng++,this.offset++,this.match+=cs,this.matched+=cs;var Es=cs.match(/(?:\r\n?|\n).*/g);return Es?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),cs},unput:function(cs){var Es=cs.length,Ya=cs.split(/(?:\r\n?|\n)/g);this._input=cs+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Es),this.offset-=Es;var Ei=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),Ya.length-1&&(this.yylineno-=Ya.length-1);var uc=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:Ya?(Ya.length===Ei.length?this.yylloc.first_column:0)+Ei[Ei.length-Ya.length].length-Ya[0].length:this.yylloc.first_column-Es},this.options.ranges&&(this.yylloc.range=[uc[0],uc[0]+this.yyleng-Es]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(cs){this.unput(this.match.slice(cs))},pastInput:function(){var cs=this.matched.substr(0,this.matched.length-this.match.length);return(cs.length>20?"...":"")+cs.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var cs=this.match;return cs.length<20&&(cs+=this._input.substr(0,20-cs.length)),(cs.substr(0,20)+(cs.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var cs=this.pastInput(),Es=new Array(cs.length+1).join("-");return cs+this.upcomingInput()+`
`+Es+"^"},test_match:function(cs,Es){var Ya,Ei,uc;if(this.options.backtrack_lexer&&(uc={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&&(uc.yylloc.range=this.yylloc.range.slice(0))),Ei=cs[0].match(/(?:\r\n?|\n).*/g),Ei&&(this.yylineno+=Ei.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ei?Ei[Ei.length-1].length-Ei[Ei.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+cs[0].length},this.yytext+=cs[0],this.match+=cs[0],this.matches=cs,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(cs[0].length),this.matched+=cs[0],Ya=this.performAction.call(this,this.yy,this,Es,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ya)return Ya;if(this._backtrack){for(var Ot in uc)this[Ot]=uc[Ot];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var cs,Es,Ya,Ei;this._more||(this.yytext="",this.match="");for(var uc=this._currentRules(),Ot=0;Ot<uc.length;Ot++)if(Ya=this._input.match(this.rules[uc[Ot]]),Ya&&(!Es||Ya[0].length>Es[0].length)){if(Es=Ya,Ei=Ot,this.options.backtrack_lexer){if(cs=this.test_match(Ya,uc[Ot]),cs!==!1)return cs;if(this._backtrack){Es=!1;continue}else return!1}else if(!this.options.flex)break}return Es?(cs=this.test_match(Es,uc[Ei]),cs!==!1?cs:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Es=this.next();return Es||this.lex()},begin:function(Es){this.conditionStack.push(Es)},popState:function(){var Es=this.conditionStack.length-1;return Es>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Es){return Es=this.conditionStack.length-1-Math.abs(Es||0),Es>=0?this.conditionStack[Es]:"INITIAL"},pushState:function(Es){this.begin(Es)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Es,Ya,Ei,uc){switch(Ei){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:break;case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 24:this.popState();break;case 25:return 100;case 26:this.begin("callbackname");break;case 27:this.popState();break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 30:this.popState();break;case 31:return 99;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 90;case 35:return Es.lex.firstGraph()&&this.begin("dir"),24;case 36:return Es.lex.firstGraph()&&this.begin("dir"),24;case 37:return Es.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),25;case 45:return this.popState(),26;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:return 82;case 68:return 82;case 69:return 82;case 70:return 81;case 71:return 81;case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:return 125;case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/
`),w=0;w<p.length;w++)f.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(p[w]);return o3(f,o.labelStyle),f}function VBt(s){for(var o="",f=!1,p,w=0;w<s.length;++w)if(p=s[w],f){switch(p){case"n":o+=`
`;break;default:o+=p}f=!1}else p==="\\"?f=!0:o+=p;return o}function Qde(s,o,f){var p=o.label,w=s.append("g");o.labelType==="svg"?GBt(w,o):typeof p!="string"||o.labelType==="html"?JK(w,o):qBt(w,o);var k=w.node().getBBox(),b;switch(f){case"top":b=-o.height/2;break;case"bottom":b=o.height/2-k.height;break;default:b=-k.height/2}return w.attr("transform","translate("+-k.width/2+","+b+")"),w}var Zde=function(s,o){var f=o.nodes().filter(function(k){return OPe(o,k)}),p=s.selectAll("g.cluster").data(f,function(k){return k});em(p.exit(),o).style("opacity",0).remove();var w=p.enter().append("g").attr("class","cluster").attr("id",function(k){var b=o.node(k);return b.id}).style("opacity",0).each(function(k){var b=o.node(k),_=sr(this);sr(this).append("rect");var A=_.append("g").attr("class","label");Qde(A,b,b.clusterLabelPos)});return p=p.merge(w),p=em(p,o).style("opacity",1),p.selectAll("rect").each(function(k){var b=o.node(k),_=sr(this);o3(_,b.style)}),p};function UBt(s){Zde=s}let Jde=function(s,o){var f=s.selectAll("g.edgeLabel").data(o.edges(),function(w){return NPe(w)}).classed("update",!0);f.exit().remove(),f.enter().append("g").classed("edgeLabel",!0).style("opacity",0),f=s.selectAll("g.edgeLabel"),f.each(function(w){var k=sr(this);k.select(".label").remove();var b=o.edge(w),_=Qde(k,o.edge(w),0).classed("label",!0),A=_.node().getBBox();b.labelId&&_.attr("id",b.labelId),eo(b,"width")||(b.width=A.width),eo(b,"height")||(b.height=A.height)});var p;return f.exit?p=f.exit():p=f.selectAll(null),em(p,o).style("opacity",0).remove(),f};function KBt(s){Jde=s}function BPe(s,o){return s.intersect(o)}var e0e=function(s,o,f){var p=s.selectAll("g.edgePath").data(o.edges(),function(b){return NPe(b)}).classed("update",!0),w=ZBt(p,o);JBt(p,o);var k=p.merge!==void 0?p.merge(w):p;return em(k,o).style("opacity",1),k.each(function(b){var _=sr(this),A=o.edge(b);A.elem=this,A.id&&_.attr("id",A.id),PPe(_,A.class,(_.classed("update")?"update ":"")+"edgePath")}),k.selectAll("path.path").each(function(b){var _=o.edge(b);_.arrowheadId=RK("arrowhead");var A=sr(this).attr("marker-end",function(){return"url("+YBt(location.href,_.arrowheadId)+")"}).style("fill","none");em(A,o).attr("d",function(N){return XBt(o,N)}),o3(A,_.style)}),k.selectAll("defs *").remove(),k.selectAll("defs").each(function(b){var _=o.edge(b),A=f[_.arrowhead];A(sr(this),_.arrowheadId,_,"arrowhead")}),k};function WBt(s){e0e=s}function YBt(s,o){var f=s.split("#")[0];return f+"#"+o}function XBt(s,o){var f=s.edge(o),p=s.node(o.v),w=s.node(o.w),k=f.points.slice(1,f.points.length-1);return k.unshift(BPe(p,k[0])),k.push(BPe(w,k[k.length-1])),FPe(f,k)}function FPe(s,o){var f=(RE||s8t.line)().x(function(p){return p.x}).y(function(p){return p.y});return(f.curve||f.interpolate)(s.curve),f(o)}function QBt(s){var o=s.getBBox(),f=s.ownerSVGElement.getScreenCTM().inverse().multiply(s.getScreenCTM()).translate(o.width/2,o.height/2);return{x:f.e,y:f.f}}function ZBt(s,o){var f=s.enter().append("g").attr("class","edgePath").style("opacity",0);return f.append("path").attr("class","path").attr("d",function(p){var w=o.edge(p),k=o.node(p.v).elem,b=n9(w.points.length).map(function(){return QBt(k)});return FPe(w,b)}),f.append("defs"),f}function JBt(s,o){var f=s.exit();em(f,o).style("opacity",0).remove()}var t0e=function(s,o,f){var p=o.nodes().filter(function(b){return!OPe(o,b)}),w=s.selectAll("g.node").data(p,function(b){return b}).classed("update",!0);w.exit().remove(),w.enter().append("g").attr("class","node").style("opacity",0),w=s.selectAll("g.node"),w.each(function(b){var _=o.node(b),A=sr(this);PPe(A,_.class,(A.classed("update")?"update ":"")+"node"),A.select("g.label").remove();var N=A.append("g").attr("class","label"),B=Qde(N,_),F=f[_.shape],H=VN(B.node().getBBox(),"width","height");_.elem=this,_.id&&A.attr("id",_.id),_.labelId&&N.attr("id",_.labelId),eo(_,"width")&&(H.width=_.width),eo(_,"height")&&(H.height=_.height),H.width+=_.paddingLeft+_.paddingRight,H.height+=_.paddingTop+_.paddingBottom,N.attr("transform","translate("+(_.paddingLeft-_.paddingRight)/2+","+(_.paddingTop-_.paddingBottom)/2+")");var j=
`),b.style===void 0&&(B.style=B.style||"stroke: #333; stroke-width: 1.5px;fill:none"),B.labelStyle=B.labelStyle.replace("color:","fill:"))),B.id=_,B.class=A+" "+N,B.minlen=b.length||1,o.setEdge(f.db.lookUpDomId(b.start),f.db.lookUpDomId(b.end),B,p)})},yFt={setConf:mFt,addVertices:ZPe,addEdges:JPe,getClasses:function(s,o){je.info("Extracting classes"),o.db.clear();try{return o.parse(s),o.db.getClasses()}catch(f){return je.error(f),{}}},draw:function(s,o,f,p){je.info("Drawing flowchart"),p.db.clear();const{securityLevel:w,flowchart:k}=Pt();let b;w==="sandbox"&&(b=sr("#i"+o));const _=sr(w==="sandbox"?b.nodes()[0].contentDocument.body:"body"),A=w==="sandbox"?b.nodes()[0].contentDocument:document;try{p.parser.parse(s)}catch{je.debug("Parsing failed")}let N=p.db.getDirection();N===void 0&&(N="TD");const B=k.nodeSpacing||50,F=k.rankSpacing||50,H=new Hf({multigraph:!0,compound:!0}).setGraph({rankdir:N,nodesep:B,ranksep:F,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let j;const V=p.db.getSubGraphs();for(let Me=V.length-1;Me>=0;Me--)j=V[Me],p.db.addVertex(j.id,j.title,"group",void 0,j.classes);const Z=p.db.getVertices();je.warn("Get vertices",Z);const ae=p.db.getEdges();let le=0;for(le=V.length-1;le>=0;le--){j=V[le],_fe("cluster").append("text");for(let Me=0;Me<j.nodes.length;Me++)je.warn("Setting subgraph",j.nodes[Me],p.db.lookUpDomId(j.nodes[Me]),p.db.lookUpDomId(j.id)),H.setParent(p.db.lookUpDomId(j.nodes[Me]),p.db.lookUpDomId(j.id))}ZPe(Z,H,o,_,A,p),JPe(ae,H,p);const ce=new hFt;wFt.addToRender(ce),ce.arrows().none=function(fe,ye,re,we){const he=fe.append("marker").attr("id",ye).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");o3(he,re[we+"Style"])},ce.arrows().normal=function(fe,ye){fe.append("marker").attr("id",ye).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const be=_.select(`[id="${o}"]`),xe=_.select("#"+o+" g");for(ce(xe,H),xe.selectAll("g.node").attr("title",function(){return p.db.getTooltip(this.id)}),p.db.indexNodes("subGraph"+le),le=0;le<V.length;le++)if(j=V[le],j.title!=="undefined"){const Me=A.querySelectorAll("#"+o+' [id="'+p.db.lookUpDomId(j.id)+'"] rect'),fe=A.querySelectorAll("#"+o+' [id="'+p.db.lookUpDomId(j.id)+'"]'),ye=Me[0].x.baseVal.value,re=Me[0].y.baseVal.value,we=Me[0].width.baseVal.value,he=sr(fe[0]).select(".label");he.attr("transform",`translate(${ye+we/2}, ${re+14})`),he.attr("id",o+"Text");for(let De=0;De<j.classes.length;De++)fe[0].classList.add(j.classes[De])}if(!k.htmlLabels){const Me=A.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const fe of Me){const ye=fe.getBBox(),re=A.createElementNS("http://www.w3.org/2000/svg","rect");re.setAttribute("rx",0),re.setAttribute("ry",0),re.setAttribute("width",ye.width),re.setAttribute("height",ye.height),fe.insertBefore(re,fe.firstChild)}}KE(H,be,k.diagramPadding,k.useMaxWidth),Object.keys(Z).forEach(function(Me){const fe=Z[Me];if(fe.link){const ye=_.select("#"+o+' [id="'+p.db.lookUpDomId(Me)+'"]');if(ye){const re=A.createElementNS("http://www.w3.org/2000/svg","a");re.setAttributeNS("http://www.w3.org/2000/svg","class",fe.classes.join(" ")),re.setAttributeNS("http://www.w3.org/2000/svg","href",fe.link),re.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),w==="sandbox"?re.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):fe.linkTarget&&re.setAttributeNS("http://www.w3.org/2000/svg","target",fe.linkTarget);const we=ye.insert(function(){return re},":first-child"),ke=ye.select(".label-container");ke&&we.append(function(){return ke.node()});const he=ye.select(".label");he&&we.append(function(){return he.node()})}}})}},eBe={},kFt=function(s){const o=Object.keys(s);for(const f of o)eBe[f]=s[f]},tBe=function(s,o,f,p,
`),_.style===void 0&&(H.style=H.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),H.labelStyle=H.labelStyle.replace("color:","fill:"),H.id=N,H.classes="flowchart-link "+B+" "+F,o.setEdge(_.start,_.end,H,p)})},i0e={setConf:kFt,addVertices:tBe,addEdges:nBe,getClasses:function(s,o){je.info("Extracting classes"),o.db.clear();try{return o.parse(s),o.db.getClasses()}catch{return}},draw:function(s,o,f,p){je.info("Drawing flowchart"),p.db.clear(),a3.setGen("gen-2"),p.parser.parse(s);let w=p.db.getDirection();w===void 0&&(w="TD");const{securityLevel:k,flowchart:b}=Pt(),_=b.nodeSpacing||50,A=b.rankSpacing||50;let N;k==="sandbox"&&(N=sr("#i"+o));const B=sr(k==="sandbox"?N.nodes()[0].contentDocument.body:"body"),F=k==="sandbox"?N.nodes()[0].contentDocument:document,H=new Hf({multigraph:!0,compound:!0}).setGraph({rankdir:w,nodesep:_,ranksep:A,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let j;const V=p.db.getSubGraphs();je.info("Subgraphs - ",V);for(let Ee=V.length-1;Ee>=0;Ee--)j=V[Ee],je.info("Subgraph - ",j),p.db.addVertex(j.id,j.title,"group",void 0,j.classes,j.dir);const Z=p.db.getVertices(),ae=p.db.getEdges();je.info("Edges",ae);let le=0;for(le=V.length-1;le>=0;le--){j=V[le],_fe("cluster").append("text");for(let Ee=0;Ee<j.nodes.length;Ee++)je.info("Setting up subgraphs",j.nodes[Ee],j.id),H.setParent(j.nodes[Ee],j.id)}tBe(Z,H,o,B,F,p),nBe(ae,H);const ce=B.select(`[id="${o}"]`),be=B.select("#"+o+" g");if($de(be,H,["point","circle","cross"],"flowchart",o),Pa.insertTitle(ce,"flowchartTitleText",b.titleTopMargin,p.db.getDiagramTitle()),KE(H,ce,b.diagramPadding,b.useMaxWidth),p.db.indexNodes("subGraph"+le),!b.htmlLabels){const Ee=F.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const Me of Ee){const fe=Me.getBBox(),ye=F.createElementNS("http://www.w3.org/2000/svg","rect");ye.setAttribute("rx",0),ye.setAttribute("ry",0),ye.setAttribute("width",fe.width),ye.setAttribute("height",fe.height),Me.insertBefore(ye,Me.firstChild)}}Object.keys(Z).forEach(function(Ee){const Me=Z[Ee];if(Me.link){const fe=sr("#"+o+' [id="'+Ee+'"]');if(fe){const ye=F.createElementNS("http://www.w3.org/2000/svg","a");ye.setAttributeNS("http://www.w3.org/2000/svg","class",Me.classes.join(" ")),ye.setAttributeNS("http://www.w3.org/2000/svg","href",Me.link),ye.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),k==="sandbox"?ye.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):Me.linkTarget&&ye.setAttributeNS("http://www.w3.org/2000/svg","target",Me.linkTarget);const re=fe.insert(function(){return ye},":first-child"),we=fe.select(".label-container");we&&re.append(function(){return we.node()});const ke=fe.select(".label");ke&&re.append(function(){return ke.node()})}}})}};var s0e=function(){var s=function(ye,re,we,ke){for(we=we||{},ke=ye.length;ke--;we[ye[ke]]=re);return we},o=[1,3],f=[1,5],p=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],w=[1,15],k=[1,16],b=[1,17],_=[1,18],A=[1,19],N=[1,20],B=[1,21],F=[1,22],H=[1,23],j=[1,24],V=[1,25],Z=[1,26],ae=[1,27],le=[1,29],ce=[1,31],be=[1,34],xe=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],Ee={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",
`+yt.showPosition()+`
Expecting `+Mn.join(", ")+", got '"+(this.terminals_[xt]||xt)+"'":Oe="Parse error on line "+(Ge+1)+": Unexpected "+(xt==bt?"end of input":"'"+(this.terminals_[xt]||xt)+"'"),this.parseError(Oe,{text:yt.match,token:this.terminals_[xt]||xt,line:yt.yylineno,loc:dn,expected:Mn})}if(wt[0]instanceof Array&&wt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Tt+", token: "+xt);switch(wt[0]){case 1:ke.push(xt),De.push(yt.yytext),X.push(yt.yylloc),ke.push(wt[1]),xt=null,de=yt.yyleng,pe=yt.yytext,Ge=yt.yylineno,dn=yt.yylloc;break;case 2:if(Lt=this.productions_[wt[1]][1],He.$=De[De.length-Lt],He._$={first_line:X[X.length-(Lt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Lt||1)].first_column,last_column:X[X.length-1].last_column},vt&&(He._$.range=[X[X.length-(Lt||1)].range[0],X[X.length-1].range[1]]),At=this.performAction.apply(He,[pe,de,Ge,Mt.yy,wt[1],De,X].concat(St)),typeof At<"u")return At;Lt&&(ke=ke.slice(0,-1*Lt*2),De=De.slice(0,-1*Lt),X=X.slice(0,-1*Lt)),ke.push(this.productions_[wt[1]][0]),De.push(He.$),X.push(He._$),Ve=Re[ke[ke.length-2]][ke[ke.length-1]],ke.push(Ve);break;case 3:return!0}}return!0}},Me=function(){var ye={EOF:1,parseError:function(we,ke){if(this.yy.parser)this.yy.parser.parseError(we,ke);else throw new Error(we)},setInput:function(re,we){return this.yy=we||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},input:function(){var re=this._input[0];this.yytext+=re,this.yyleng++,this.offset++,this.match+=re,this.matched+=re;var we=re.match(/(?:\r\n?|\n).*/g);return we?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),re},unput:function(re){var we=re.length,ke=re.split(/(?:\r\n?|\n)/g);this._input=re+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-we),this.offset-=we;var he=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),ke.length-1&&(this.yylineno-=ke.length-1);var De=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:ke?(ke.length===he.length?this.yylloc.first_column:0)+he[he.length-ke.length].length-ke[0].length:this.yylloc.first_column-we},this.options.ranges&&(this.yylloc.range=[De[0],De[0]+this.yyleng-we]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(re){this.unput(this.match.slice(re))},pastInput:function(){var re=this.matched.substr(0,this.matched.length-this.match.length);return(re.length>20?"...":"")+re.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var re=this.pastInput(),we=new Array(re.length+1).join("-");return re+this.upcomingInput()+`
`+we+"^"},test_match:function(re,we){var ke,he,De;if(this.options.backtrack_lexer&&(De={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&&(De.yylloc.range=this.yylloc.range.slice(0))),he=re[0].match(/(?:\r\n?|\n).*/g),he&&(this.yylineno+=he.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:he?he[he.length-1].length-he[he.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],ke=this.performAction.call(this,this.yy,this,we,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ke)return ke;if(this._backtrack){for(var X in De)this[X]=De[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var re,we,ke,he;this._more||(this.yytext="",this.match="");for(var De=this._currentRules(),X=0;X<De.length;X++)if(ke=this._input.match(this.rules[De[X]]),ke&&(!we||ke[0].length>we[0].length)){if(we=ke,he=X,this.options.backtrack_lexer){if(re=this.test_match(ke,De[X]),re!==!1)return re;if(this._backtrack){we=!1;continue}else return!1}else if(!this.options.flex)break}return we?(re=this.test_match(we,De[he]),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})},lex:function(){var we=this.next();return we||this.lex()},begin:function(we){this.conditionStack.push(we)},popState:function(){var we=this.conditionStack.length-1;return we>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(we){return we=this.conditionStack.length-1-Math.abs(we||0),we>=0?this.conditionStack[we]:"INITIAL"},pushState:function(we){this.begin(we)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(we,ke,he,De){switch(he){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:%[^\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,/^(?:\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:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return ye}();Ee.lexer=Me;function fe(){this.yy={}}return fe.prototype=Ee,Ee.Parser=fe,new fe}();s0e.parser=s0e;const xFt=s0e,EFt=s=>s.match(/^\s*gantt/)!==null;var a0e={},TFt={get exports(){return a0e},set exports(s){a0e=s}};(function(s,o){(function(f,p){s.exports=p()})(g0,function(){var f="day";return function(p,w,k){var b=function(N){return N.add(4-N.isoWeekday(),f)},_=w.prototype;_.isoWeekYear=function(){return b(this)
`+be.showPosition()+`
Expecting `+Ge.join(", ")+", got '"+(this.terminals_[re]||re)+"'":de="Parse error on line "+(V+1)+": Unexpected "+(re==le?"end of input":"'"+(this.terminals_[re]||re)+"'"),this.parseError(de,{text:be.match,token:this.terminals_[re]||re,line:be.yylineno,loc:Me,expected:Ge})}if(ke[0]instanceof Array&&ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+we+", token: "+re);switch(ke[0]){case 1:A.push(re),B.push(be.yytext),F.push(be.yylloc),A.push(ke[1]),re=null,Z=be.yyleng,j=be.yytext,V=be.yylineno,Me=be.yylloc;break;case 2:if(Re=this.productions_[ke[1]][1],De.$=B[B.length-Re],De._$={first_line:F[F.length-(Re||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(Re||1)].first_column,last_column:F[F.length-1].last_column},fe&&(De._$.range=[F[F.length-(Re||1)].range[0],F[F.length-1].range[1]]),he=this.performAction.apply(De,[j,Z,V,xe.yy,ke[1],B,F].concat(ce)),typeof he<"u")return he;Re&&(A=A.slice(0,-1*Re*2),B=B.slice(0,-1*Re),F=F.slice(0,-1*Re)),A.push(this.productions_[ke[1]][0]),B.push(De.$),F.push(De._$),pe=H[A[A.length-2]][A[A.length-1]],A.push(pe);break;case 3:return!0}}return!0}},p=function(){var k={EOF:1,parseError:function(_,A){if(this.yy.parser)this.yy.parser.parseError(_,A);else throw new Error(_)},setInput:function(b,_){return this.yy=_||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},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var _=b.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var _=b.length,A=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var N=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),A.length-1&&(this.yylineno-=A.length-1);var B=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:A?(A.length===N.length?this.yylloc.first_column:0)+N[N.length-A.length].length-A[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[B[0],B[0]+this.yyleng-_]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var b=this.pastInput(),_=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
`+_+"^"},test_match:function(b,_){var A,N,B;if(this.options.backtrack_lexer&&(B={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&&(B.yylloc.range=this.yylloc.range.slice(0))),N=b[0].match(/(?:\r\n?|\n).*/g),N&&(this.yylineno+=N.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:N?N[N.length-1].length-N[N.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],A=this.performAction.call(this,this.yy,this,_,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),A)return A;if(this._backtrack){for(var F in B)this[F]=B[F];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,_,A,N;this._more||(this.yytext="",this.match="");for(var B=this._currentRules(),F=0;F<B.length;F++)if(A=this._input.match(this.rules[B[F]]),A&&(!_||A[0].length>_[0].length)){if(_=A,N=F,this.options.backtrack_lexer){if(b=this.test_match(A,B[F]),b!==!1)return b;if(this._backtrack){_=!1;continue}else return!1}else if(!this.options.flex)break}return _?(b=this.test_match(_,B[N]),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})},lex:function(){var _=this.next();return _||this.lex()},begin:function(_){this.conditionStack.push(_)},popState:function(){var _=this.conditionStack.length-1;return _>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},pushState:function(_){this.begin(_)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(_,A,N,B){switch(N){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return k}();f.lexer=p;function w(){this.yy={}}return w.prototype=f,f.Parser=w,new w}();y0e.parser=y0e;const oRt=y0e;var dBe="",gBe=!1;const cRt={setMessage:s=>{je.debug("Setting message to: "+s),dBe=s},getMessage:()=>dBe,setInfo:s=>{gBe=s},getInfo:()=>gBe,clear:tp},uRt={draw:(s,o,f)=>{try{je.debug(`Rendering info diagram
`+s);const p=Pt().securityLevel;let w;p==="sandbox"&&(w=sr("#i"+o));const b=sr(p==="sandbox"?w.nodes()[0].contentDocument.body:"body").select("#"+o);b.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+f),b.attr("height",100),b.attr("width",400)}catch(p){je.error("Error while rendering info diagram"),je.error(p.message)}}},lRt=s=>s.match(/^\s*info/)!==null;var k0e=function(){var s=function(Me,fe,ye,re){for(ye=ye||{},re=Me.length;re--;ye[Me[re]]=fe);return ye},o=[1,4],f=[1,5],p=[1,6],w=[1,7],k=[1,9],b=[1,11,13,15,17,19,20,26,27,28,29],_=[2,5],A=[1,6,11,13,15,17,19,20,26,27,28,29],N=[26,27,28],B=[2,8],F=[1,18],H=[1,19],j=[1,20],V=[1,21],Z=[1,22],ae=[1,23],le=[1,28],ce=[6,26,27,28,29],be={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(fe,ye,re,we,ke,he,De){var X=he.length-1;switch(ke){case 4:we.setShowData(!0);break;case 7:this.$=he[X-1];break;case 9:we.addSection(he[X-1],we.cleanupValue(he[X]));break;case 10:this.$=he[X].trim(),we.setDiagramTitle(this.$);break;case 11:this.$=he[X].trim(),we.setAccTitle(this.$);break;case 12:case 13:this.$=he[X].trim(),we.setAccDescription(this.$);break;case 14:we.addSection(he[X].substr(8)),this.$=he[X].substr(8);break;case 21:we.parseDirective("%%{","open_directive");break;case 22:we.parseDirective(he[X],"type_directive");break;case 23:he[X]=he[X].trim().replace(/'/g,'"'),we.parseDirective(he[X],"arg_directive");break;case 24:we.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:o,21:8,26:f,27:p,28:w,29:k},{1:[3]},{3:10,4:2,5:3,6:o,21:8,26:f,27:p,28:w,29:k},{3:11,4:2,5:3,6:o,21:8,26:f,27:p,28:w,29:k},s(b,_,{7:12,8:[1,13]}),s(A,[2,18]),s(A,[2,19]),s(A,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},s(N,B,{21:8,9:16,10:17,5:24,1:[2,3],11:F,13:H,15:j,17:V,19:Z,20:ae,29:k}),s(b,_,{7:25}),{23:26,24:[1,27],32:le},s([24,32],[2,22]),s(b,[2,6]),{4:29,26:f,27:p,28:w},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},s(N,[2,13]),s(N,[2,14]),s(N,[2,15]),s(N,B,{21:8,9:16,10:17,5:24,1:[2,4],11:F,13:H,15:j,17:V,19:Z,20:ae,29:k}),s(ce,[2,16]),{25:34,31:[1,35]},s(ce,[2,24]),s(b,[2,7]),s(N,[2,9]),s(N,[2,10]),s(N,[2,11]),s(N,[2,12]),{23:36,32:le},{32:[2,23]},s(ce,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(fe,ye){if(ye.recoverable)this.trace(fe);else{var re=new Error(fe);throw re.hash=ye,re}},parse:function(fe){var ye=this,re=[0],we=[],ke=[null],he=[],De=this.table,X="",Re=0,pe=0,Ge=2,de=1,ct=he.slice.call(arguments,1),bt=Object.create(this.lexer),St={yy:{}};for(var yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yt)&&(St.yy[yt]=this.yy[yt]);bt.setInput(fe,St.yy),St.yy.lexer=bt,St.yy.parser=this,typeof bt.yylloc>"u"&&(bt.yylloc={});var Mt=bt.yylloc;he.push(Mt);var nn=bt.options&&bt.options.ranges;typeof St.yy.parseError=="function"?this.parseError=St.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dn(){var Mn;return Mn=we.pop()||bt.lex()||de,typeof Mn!="number"&&(Mn instanceof Array&&(we=Mn,Mn=we.pop()),Mn=ye.symbols_[Mn]||Mn),Mn}for(var vt,Lr,xt,Tt,wt={},At,He,Ze,Lt;;){if(Lr=re[re.length-1],this.de
`+bt.showPosition()+`
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[vt]||vt)+"'":Ve="Parse error on line "+(Re+1)+": Unexpected "+(vt==de?"end of input":"'"+(this.terminals_[vt]||vt)+"'"),this.parseError(Ve,{text:bt.match,token:this.terminals_[vt]||vt,line:bt.yylineno,loc:Mt,expected:Lt})}if(xt[0]instanceof Array&&xt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lr+", token: "+vt);switch(xt[0]){case 1:re.push(vt),ke.push(bt.yytext),he.push(bt.yylloc),re.push(xt[1]),vt=null,pe=bt.yyleng,X=bt.yytext,Re=bt.yylineno,Mt=bt.yylloc;break;case 2:if(He=this.productions_[xt[1]][1],wt.$=ke[ke.length-He],wt._$={first_line:he[he.length-(He||1)].first_line,last_line:he[he.length-1].last_line,first_column:he[he.length-(He||1)].first_column,last_column:he[he.length-1].last_column},nn&&(wt._$.range=[he[he.length-(He||1)].range[0],he[he.length-1].range[1]]),Tt=this.performAction.apply(wt,[X,pe,Re,St.yy,xt[1],ke,he].concat(ct)),typeof Tt<"u")return Tt;He&&(re=re.slice(0,-1*He*2),ke=ke.slice(0,-1*He),he=he.slice(0,-1*He)),re.push(this.productions_[xt[1]][0]),ke.push(wt.$),he.push(wt._$),Ze=De[re[re.length-2]][re[re.length-1]],re.push(Ze);break;case 3:return!0}}return!0}},xe=function(){var Me={EOF:1,parseError:function(ye,re){if(this.yy.parser)this.yy.parser.parseError(ye,re);else throw new Error(ye)},setInput:function(fe,ye){return this.yy=ye||this.yy||{},this._input=fe,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},input:function(){var fe=this._input[0];this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe;var ye=fe.match(/(?:\r\n?|\n).*/g);return ye?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),fe},unput:function(fe){var ye=fe.length,re=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ye),this.offset-=ye;var we=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 ke=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===we.length?this.yylloc.first_column:0)+we[we.length-re.length].length-re[0].length:this.yylloc.first_column-ye},this.options.ranges&&(this.yylloc.range=[ke[0],ke[0]+this.yyleng-ye]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(fe){this.unput(this.match.slice(fe))},pastInput:function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var fe=this.match;return fe.length<20&&(fe+=this._input.substr(0,20-fe.length)),(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var fe=this.pastInput(),ye=new Array(fe.length+1).join("-");return fe+this.upcomingInput()+`
`+ye+"^"},test_match:function(fe,ye){var re,we,ke;if(this.options.backtrack_lexer&&(ke={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&&(ke.yylloc.range=this.yylloc.range.slice(0))),we=fe[0].match(/(?:\r\n?|\n).*/g),we&&(this.yylineno+=we.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:we?we[we.length-1].length-we[we.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,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(fe[0].length),this.matched+=fe[0],re=this.performAction.call(this,this.yy,this,ye,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var he in ke)this[he]=ke[he];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var fe,ye,re,we;this._more||(this.yytext="",this.match="");for(var ke=this._currentRules(),he=0;he<ke.length;he++)if(re=this._input.match(this.rules[ke[he]]),re&&(!ye||re[0].length>ye[0].length)){if(ye=re,we=he,this.options.backtrack_lexer){if(fe=this.test_match(re,ke[he]),fe!==!1)return fe;if(this._backtrack){ye=!1;continue}else return!1}else if(!this.options.flex)break}return ye?(fe=this.test_match(ye,ke[we]),fe!==!1?fe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ye=this.next();return ye||this.lex()},begin:function(ye){this.conditionStack.push(ye)},popState:function(){var ye=this.conditionStack.length-1;return ye>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ye){return ye=this.conditionStack.length-1-Math.abs(ye||0),ye>=0?this.conditionStack[ye]:"INITIAL"},pushState:function(ye){this.begin(ye)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ye,re,we,ke){switch(we){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/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,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return Me}();be.lexer=xe;function Ee(){this.yy={}}return Ee.prototype=be,be.Parser=Ee,new Ee}();k0e.parser=k0e;const hRt=k0e,fRt=s=>s.match(/^\s*pie/)!==null||s.match(/^\s*bar/)!==null;let rW={},x0e=!1;const dRt={parseDirective:function(s,o,f){Fl.parseDirective(this,s,o,f)},getConfig:()=>Pt().pie,addSection:function(s,o){s=xa.sanitizeText(s,Pt()),rW[s]===void 0&&(rW[s]=o,je.debug("Added new section :",s))},getSections:()=>rW,cleanupValue:function(s){return s.substring(0,1)===":"&&(s=s.substring(1).trim()),Number(s.trim())},clear:function(){rW={},x0e=!1,tp()},setAccTitle:np,getAccTitle:C2,setDiagramTitle:Kw,getDiagramTitle:Ww,setShowData:function(s){x0e=s},getShowData:function(){return x0e},getAccDescription:A2,setAccDescription:S2};let C5=Pt(),S5;const oP=450,gRt={draw:(s,o,f,p)=>{try{C5=Pt(),je.debug(`Rendering info diagram
`+s);const ce=Pt().securityLevel;let be;ce==="sandbox"&&(be=sr("#i"+o));const xe=sr(ce==="sandbox"?be.nodes()[0].contentDocument.body:"body"),Ee=ce==="sandbox"?be.nodes()[0].contentDocument:document;p.db.clear(),p.parser.parse(s),je.debug("Parsed info diagram");const Me=Ee.getElementById(o);S5=Me.parentElement.offsetWidth,S5===void 0&&(S5=1200),C5.useWidth!==void 0&&(S5=C5.useWidth),C5.pie.useWidth!==void 0&&(S5=C5.pie.useWidth);const fe=xe.select("#"+o);Uw(fe,oP,S5,C5.pie.useMaxWidth),Me.setAttribute("viewBox","0 0 "+S5+" "+oP);var w=40,k=18,b=4,_=Math.min(S5,oP)/2-w,A=fe.append("g").attr("transform","translate("+S5/2+","+oP/2+")"),N=p.db.getSections(),B=0;Object.keys(N).forEach(function(re){B+=N[re]});const ye=C5.themeVariables;var F=[ye.pie1,ye.pie2,ye.pie3,ye.pie4,ye.pie5,ye.pie6,ye.pie7,ye.pie8,ye.pie9,ye.pie10,ye.pie11,ye.pie12],H=ZLe().range(F),j=Object.entries(N).map(function(re,we){return{order:we,name:re[0],value:re[1]}}),V=n7t().value(function(re){return re.value}).sort(function(re,we){return re.order-we.order}),Z=V(j),ae=gN().innerRadius(0).outerRadius(_);A.selectAll("mySlices").data(Z).enter().append("path").attr("d",ae).attr("fill",function(re){return H(re.data.name)}).attr("class","pieCircle"),A.selectAll("mySlices").data(Z).enter().append("text").text(function(re){return(re.data.value/B*100).toFixed(0)+"%"}).attr("transform",function(re){return"translate("+ae.centroid(re)+")"}).style("text-anchor","middle").attr("class","slice"),A.append("text").text(p.db.getDiagramTitle()).attr("x",0).attr("y",-(oP-50)/2).attr("class","pieTitleText");var le=A.selectAll(".legend").data(H.domain()).enter().append("g").attr("class","legend").attr("transform",function(re,we){const ke=k+b,he=ke*H.domain().length/2,De=12*k,X=we*ke-he;return"translate("+De+","+X+")"});le.append("rect").attr("width",k).attr("height",k).style("fill",H).style("stroke",H),le.data(Z).append("text").attr("x",k+b).attr("y",k-b).text(function(re){return p.db.getShowData()||C5.showData||C5.pie.showData?re.data.name+" ["+re.data.value+"]":re.data.name})}catch(ce){je.error("Error while rendering info diagram"),je.error(ce)}}};var E0e=function(){var s=function(Lr,xt,Tt,wt){for(Tt=Tt||{},wt=Lr.length;wt--;Tt[Lr[wt]]=xt);return Tt},o=[1,3],f=[1,5],p=[1,6],w=[1,7],k=[1,8],b=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],_=[1,22],A=[2,13],N=[1,26],B=[1,27],F=[1,28],H=[1,29],j=[1,30],V=[1,31],Z=[1,24],ae=[1,32],le=[1,33],ce=[1,36],be=[71,72],xe=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],Ee=[1,56],Me=[1,57],fe=[1,58],ye=[1,59],re=[1,60],we=[1,61],ke=[1,62],he=[62,63],De=[1,74],X=[1,70],Re=[1,71],pe=[1,72],Ge=[1,73],de=[1,75],ct=[1,79],bt=[1,80],St=[1,77],yt=[1,78],Mt=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],nn={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",3
`+Fr.showPosition()+`
Expecting `+Fi.join(", ")+", got '"+(this.terminals_[ha]||ha)+"'":vr="Parse error on line "+(Mn+1)+": Unexpected "+(ha==rn?"end of input":"'"+(this.terminals_[ha]||ha)+"'"),this.parseError(vr,{text:Fr.match,token:this.terminals_[ha]||ha,line:Fr.yylineno,loc:er,expected:Fi})}if(is[0]instanceof Array&&is.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fa+", token: "+ha);switch(is[0]){case 1:wt.push(ha),He.push(Fr.yytext),Ze.push(Fr.yylloc),wt.push(is[1]),ha=null,Oe=Fr.yyleng,Ve=Fr.yytext,Mn=Fr.yylineno,er=Fr.yylloc;break;case 2:if(na=this.productions_[is[1]][1],da.$=He[He.length-na],da._$={first_line:Ze[Ze.length-(na||1)].first_line,last_line:Ze[Ze.length-1].last_line,first_column:Ze[Ze.length-(na||1)].first_column,last_column:Ze[Ze.length-1].last_column},Fn&&(da._$.range=[Ze[Ze.length-(na||1)].range[0],Ze[Ze.length-1].range[1]]),Xi=this.performAction.apply(da,[Ve,Oe,Mn,tr.yy,is[1],He,Ze].concat(pi)),typeof Xi<"u")return Xi;na&&(wt=wt.slice(0,-1*na*2),He=He.slice(0,-1*na),Ze=Ze.slice(0,-1*na)),wt.push(this.productions_[is[1]][0]),He.push(da.$),Ze.push(da._$),Ji=Lt[wt[wt.length-2]][wt[wt.length-1]],wt.push(Ji);break;case 3:return!0}}return!0}},dn=function(){var Lr={EOF:1,parseError:function(Tt,wt){if(this.yy.parser)this.yy.parser.parseError(Tt,wt);else throw new Error(Tt)},setInput:function(xt,Tt){return this.yy=Tt||this.yy||{},this._input=xt,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},input:function(){var xt=this._input[0];this.yytext+=xt,this.yyleng++,this.offset++,this.match+=xt,this.matched+=xt;var Tt=xt.match(/(?:\r\n?|\n).*/g);return Tt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),xt},unput:function(xt){var Tt=xt.length,wt=xt.split(/(?:\r\n?|\n)/g);this._input=xt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Tt),this.offset-=Tt;var At=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),wt.length-1&&(this.yylineno-=wt.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:wt?(wt.length===At.length?this.yylloc.first_column:0)+At[At.length-wt.length].length-wt[0].length:this.yylloc.first_column-Tt},this.options.ranges&&(this.yylloc.range=[He[0],He[0]+this.yyleng-Tt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(xt){this.unput(this.match.slice(xt))},pastInput:function(){var xt=this.matched.substr(0,this.matched.length-this.match.length);return(xt.length>20?"...":"")+xt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var xt=this.match;return xt.length<20&&(xt+=this._input.substr(0,20-xt.length)),(xt.substr(0,20)+(xt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var xt=this.pastInput(),Tt=new Array(xt.length+1).join("-");return xt+this.upcomingInput()+`
`+Tt+"^"},test_match:function(xt,Tt){var wt,At,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))),At=xt[0].match(/(?:\r\n?|\n).*/g),At&&(this.yylineno+=At.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:At?At[At.length-1].length-At[At.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+xt[0].length},this.yytext+=xt[0],this.match+=xt[0],this.matches=xt,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(xt[0].length),this.matched+=xt[0],wt=this.performAction.call(this,this.yy,this,Tt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),wt)return wt;if(this._backtrack){for(var Ze in He)this[Ze]=He[Ze];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var xt,Tt,wt,At;this._more||(this.yytext="",this.match="");for(var He=this._currentRules(),Ze=0;Ze<He.length;Ze++)if(wt=this._input.match(this.rules[He[Ze]]),wt&&(!Tt||wt[0].length>Tt[0].length)){if(Tt=wt,At=Ze,this.options.backtrack_lexer){if(xt=this.test_match(wt,He[Ze]),xt!==!1)return xt;if(this._backtrack){Tt=!1;continue}else return!1}else if(!this.options.flex)break}return Tt?(xt=this.test_match(Tt,He[At]),xt!==!1?xt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Tt=this.next();return Tt||this.lex()},begin:function(Tt){this.conditionStack.push(Tt)},popState:function(){var Tt=this.conditionStack.length-1;return Tt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Tt){return Tt=this.conditionStack.length-1-Math.abs(Tt||0),Tt>=0?this.conditionStack[Tt]:"INITIAL"},pushState:function(Tt){this.begin(Tt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Tt,wt,At,He){switch(At){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return wt.yytext=wt.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\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,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/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,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,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,55],inclusive:!0}}};return Lr}();nn.lexer=dn;function vt(){this.yy={}}return vt.prototype=nn,nn.Parser=vt,new vt}();E0e.parser=E0e;const pRt=E0e,bRt=s=>s.match(/^\s*requirement(Diagram)?/)!==null;let T0e=[],sp={},cP={},n8={},uP={};const vRt={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_
L${o.line_height},${o.line_height/2}
M${o.line_height},${o.line_height/2}
L0,${o.line_height}`).attr("stroke-width",1)}};let Lh={},bBe=0;const vBe=(s,o)=>s.insert("rect","#"+o).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Lh.rect_min_width+"px").attr("height",Lh.rect_min_height+"px"),wBe=(s,o,f)=>{let p=Lh.rect_min_width/2,w=s.append("text").attr("class","req reqLabel reqTitle").attr("id",o).attr("x",p).attr("y",Lh.rect_padding).attr("dominant-baseline","hanging"),k=0;f.forEach(N=>{k==0?w.append("tspan").attr("text-anchor","middle").attr("x",Lh.rect_min_width/2).attr("dy",0).text(N):w.append("tspan").attr("text-anchor","middle").attr("x",Lh.rect_min_width/2).attr("dy",Lh.line_height*.75).text(N),k++});let b=1.5*Lh.rect_padding,_=k*Lh.line_height*.75,A=b+_;return s.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Lh.rect_min_width).attr("y1",A).attr("y2",A),{titleNode:w,y:A}},mBe=(s,o,f,p)=>{let w=s.append("text").attr("class","req reqLabel").attr("id",o).attr("x",Lh.rect_padding).attr("y",p).attr("dominant-baseline","hanging"),k=0;const b=30;let _=[];return f.forEach(A=>{let N=A.length;for(;N>b&&k<3;){let B=A.substring(0,b);A=A.substring(b,A.length),N=A.length,_[_.length]=B,k++}if(k==3){let B=_[_.length-1];_[_.length-1]=B.substring(0,B.length-4)+"..."}else _[_.length]=A;k=0}),_.forEach(A=>{w.append("tspan").attr("x",Lh.rect_padding).attr("dy",Lh.line_height).text(A)}),w},wRt=(s,o,f,p)=>{const w=o.node().getTotalLength(),k=o.node().getPointAtLength(w*.5),b="rel"+bBe;bBe++;const A=s.append("text").attr("class","req relationshipLabel").attr("id",b).attr("x",k.x).attr("y",k.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(p).node().getBBox();s.insert("rect","#"+b).attr("class","req reqLabelBox").attr("x",k.x-A.width/2).attr("y",k.y-A.height/2).attr("width",A.width).attr("height",A.height).attr("fill","white").attr("fill-opacity","85%")},mRt=function(s,o,f,p,w){const k=f.edge(VA(o.src),VA(o.dst)),b=RE().x(function(A){return A.x}).y(function(A){return A.y}),_=s.insert("path","#"+p).attr("class","er relationshipLine").attr("d",b(k.points)).attr("fill","none");o.type==w.db.Relationships.CONTAINS?_.attr("marker-start","url("+xa.getUrl(Lh.arrowMarkerAbsolute)+"#"+o.type+"_line_ending)"):(_.attr("stroke-dasharray","10,7"),_.attr("marker-end","url("+xa.getUrl(Lh.arrowMarkerAbsolute)+"#"+pBe.ReqMarkers.ARROW+"_line_ending)")),wRt(s,_,Lh,`<<${o.type}>>`)},yRt=(s,o,f)=>{Object.keys(s).forEach(p=>{let w=s[p];p=VA(p),je.info("Added new requirement: ",p);const k=f.append("g").attr("id",p),b="req-"+p,_=vBe(k,b);let A=wBe(k,p+"_title",[`<<${w.type}>>`,`${w.name}`]);mBe(k,p+"_body",[`Id: ${w.id}`,`Text: ${w.text}`,`Risk: ${w.risk}`,`Verification: ${w.verifyMethod}`],A.y);const N=_.node().getBBox();o.setNode(p,{width:N.width,height:N.height,shape:"rect",id:p})})},kRt=(s,o,f)=>{Object.keys(s).forEach(p=>{let w=s[p];const k=VA(p),b=f.append("g").attr("id",k),_="element-"+k,A=vBe(b,_);let N=wBe(b,_+"_title",["<<Element>>",`${p}`]);mBe(b,_+"_body",[`Type: ${w.type||"Not Specified"}`,`Doc Ref: ${w.docRef||"None"}`],N.y);const B=A.node().getBBox();o.setNode(k,{width:B.width,height:B.height,shape:"rect",id:k})})},xRt=(s,o)=>(s.forEach(function(f){let p=VA(f.src),w=VA(f.dst);o.setEdge(p,w,{relationship:f})}),s),ERt=function(s,o){o.nodes().forEach(function(f){f!==void 0&&o.node(f)!==void 0&&(s.select("#"+f),s.select("#"+f).attr("transform","translate("+(o.node(f).x-o.node(f).width/2)+","+(o.node(f).y-o.node(f).height/2)+" )"))})},VA=s=>s.replace(/\s/g,"").replace(/\./g,"_"),TRt={draw:(s,o,f,p)=>{Lh=Pt().requirement,p.db.clear(),p.parser.parse(s);const w=Lh.securityLevel;let k;w==="sandbox"&&(k=sr("#i"+o));const _=sr(w==="sandbox"?k.nodes()[0].contentDocument.body:"body").select(`[id='${o}']`);pBe.insertLineEndings(_,Lh);const A=new Hf({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Lh.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let N=p.db.getRequirements(),B=p.db.getElements(),F=p.db.getRelationships();yRt(N,A,_),kRt(B,A,_),xRt(F,A),jA(A),ERt(_,A),F.forEach(function(ae){
`+Wn.showPosition()+`
Expecting `+wr.join(", ")+", got '"+(this.terminals_[is]||is)+"'":ni="Parse error on line "+(Di+1)+": Unexpected "+(is==Fr?"end of input":"'"+(this.terminals_[is]||is)+"'"),this.parseError(ni,{text:Wn.match,token:this.terminals_[is]||is,line:Wn.yylineno,loc:nr,expected:wr})}if(da[0]instanceof Array&&da.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xi+", token: "+is);switch(da[0]){case 1:He.push(is),Lt.push(Wn.yytext),Ve.push(Wn.yylloc),He.push(da[1]),is=null,rn=Wn.yyleng,Oe=Wn.yytext,Di=Wn.yylineno,nr=Wn.yylloc;break;case 2:if(Fi=this.productions_[da[1]][1],na.$=Lt[Lt.length-Fi],na._$={first_line:Ve[Ve.length-(Fi||1)].first_line,last_line:Ve[Ve.length-1].last_line,first_column:Ve[Ve.length-(Fi||1)].first_column,last_column:Ve[Ve.length-1].last_column},ha&&(na._$.range=[Ve[Ve.length-(Fi||1)].range[0],Ve[Ve.length-1].range[1]]),Cc=this.performAction.apply(na,[Oe,rn,Di,er.yy,da[1],Lt,Ve].concat(tr)),typeof Cc<"u")return Cc;Fi&&(He=He.slice(0,-1*Fi*2),Lt=Lt.slice(0,-1*Fi),Ve=Ve.slice(0,-1*Fi)),He.push(this.productions_[da[1]][0]),Lt.push(na.$),Ve.push(na._$),vr=Mn[He[He.length-2]][He[He.length-1]],He.push(vr);break;case 3:return!0}}return!0}},Lr=function(){var Tt={EOF:1,parseError:function(At,He){if(this.yy.parser)this.yy.parser.parseError(At,He);else throw new Error(At)},setInput:function(wt,At){return this.yy=At||this.yy||{},this._input=wt,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},input:function(){var wt=this._input[0];this.yytext+=wt,this.yyleng++,this.offset++,this.match+=wt,this.matched+=wt;var At=wt.match(/(?:\r\n?|\n).*/g);return At?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),wt},unput:function(wt){var At=wt.length,He=wt.split(/(?:\r\n?|\n)/g);this._input=wt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-At),this.offset-=At;var Ze=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),He.length-1&&(this.yylineno-=He.length-1);var Lt=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:He?(He.length===Ze.length?this.yylloc.first_column:0)+Ze[Ze.length-He.length].length-He[0].length:this.yylloc.first_column-At},this.options.ranges&&(this.yylloc.range=[Lt[0],Lt[0]+this.yyleng-At]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(wt){this.unput(this.match.slice(wt))},pastInput:function(){var wt=this.matched.substr(0,this.matched.length-this.match.length);return(wt.length>20?"...":"")+wt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var wt=this.match;return wt.length<20&&(wt+=this._input.substr(0,20-wt.length)),(wt.substr(0,20)+(wt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var wt=this.pastInput(),At=new Array(wt.length+1).join("-");return wt+this.upcomingInput()+`
`+At+"^"},test_match:function(wt,At){var He,Ze,Lt;if(this.options.backtrack_lexer&&(Lt={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&&(Lt.yylloc.range=this.yylloc.range.slice(0))),Ze=wt[0].match(/(?:\r\n?|\n).*/g),Ze&&(this.yylineno+=Ze.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ze?Ze[Ze.length-1].length-Ze[Ze.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+wt[0].length},this.yytext+=wt[0],this.match+=wt[0],this.matches=wt,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(wt[0].length),this.matched+=wt[0],He=this.performAction.call(this,this.yy,this,At,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),He)return He;if(this._backtrack){for(var Ve in Lt)this[Ve]=Lt[Ve];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var wt,At,He,Ze;this._more||(this.yytext="",this.match="");for(var Lt=this._currentRules(),Ve=0;Ve<Lt.length;Ve++)if(He=this._input.match(this.rules[Lt[Ve]]),He&&(!At||He[0].length>At[0].length)){if(At=He,Ze=Ve,this.options.backtrack_lexer){if(wt=this.test_match(He,Lt[Ve]),wt!==!1)return wt;if(this._backtrack){At=!1;continue}else return!1}else if(!this.options.flex)break}return At?(wt=this.test_match(At,Lt[Ze]),wt!==!1?wt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var At=this.next();return At||this.lex()},begin:function(At){this.conditionStack.push(At)},popState:function(){var At=this.conditionStack.length-1;return At>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(At){return At=this.conditionStack.length-1-Math.abs(At||0),At>=0?this.conditionStack[At]:"INITIAL"},pushState:function(At){this.begin(At)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(At,He,Ze,Lt){switch(Ze){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return He.yytext=He.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 53:return 5;case 54:return He.yytext=He.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 66:return 5;case 67:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\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\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/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,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48]
`+Lt.showPosition()+`
Expecting `+fa.join(", ")+", got '"+(this.terminals_[pi]||pi)+"'":is="Parse error on line "+(Tt+1)+": Unexpected "+(pi==He?"end of input":"'"+(this.terminals_[pi]||pi)+"'"),this.parseError(is,{text:Lt.match,token:this.terminals_[pi]||pi,line:Lt.yylineno,loc:Oe,expected:fa})}if(tr[0]instanceof Array&&tr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fr+", token: "+pi);switch(tr[0]){case 1:Mt.push(pi),dn.push(Lt.yytext),vt.push(Lt.yylloc),Mt.push(tr[1]),pi=null,wt=Lt.yyleng,xt=Lt.yytext,Tt=Lt.yylineno,Oe=Lt.yylloc;break;case 2:if(nr=this.productions_[tr[1]][1],er.$=dn[dn.length-nr],er._$={first_line:vt[vt.length-(nr||1)].first_line,last_line:vt[vt.length-1].last_line,first_column:vt[vt.length-(nr||1)].first_column,last_column:vt[vt.length-1].last_column},Di&&(er._$.range=[vt[vt.length-(nr||1)].range[0],vt[vt.length-1].range[1]]),Wn=this.performAction.apply(er,[xt,wt,Tt,Ve.yy,tr[1],dn,vt].concat(Ze)),typeof Wn<"u")return Wn;nr&&(Mt=Mt.slice(0,-1*nr*2),dn=dn.slice(0,-1*nr),vt=vt.slice(0,-1*nr)),Mt.push(this.productions_[tr[1]][0]),dn.push(er.$),vt.push(er._$),ha=Lr[Mt[Mt.length-2]][Mt[Mt.length-1]],Mt.push(ha);break;case 3:return!0}}return!0}},de=function(){var bt={EOF:1,parseError:function(yt,Mt){if(this.yy.parser)this.yy.parser.parseError(yt,Mt);else throw new Error(yt)},setInput:function(St,yt){return this.yy=yt||this.yy||{},this._input=St,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},input:function(){var St=this._input[0];this.yytext+=St,this.yyleng++,this.offset++,this.match+=St,this.matched+=St;var yt=St.match(/(?:\r\n?|\n).*/g);return yt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),St},unput:function(St){var yt=St.length,Mt=St.split(/(?:\r\n?|\n)/g);this._input=St+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-yt),this.offset-=yt;var nn=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),Mt.length-1&&(this.yylineno-=Mt.length-1);var dn=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:Mt?(Mt.length===nn.length?this.yylloc.first_column:0)+nn[nn.length-Mt.length].length-Mt[0].length:this.yylloc.first_column-yt},this.options.ranges&&(this.yylloc.range=[dn[0],dn[0]+this.yyleng-yt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(St){this.unput(this.match.slice(St))},pastInput:function(){var St=this.matched.substr(0,this.matched.length-this.match.length);return(St.length>20?"...":"")+St.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var St=this.match;return St.length<20&&(St+=this._input.substr(0,20-St.length)),(St.substr(0,20)+(St.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var St=this.pastInput(),yt=new Array(St.length+1).join("-");return St+this.upcomingInput()+`
`+yt+"^"},test_match:function(St,yt){var Mt,nn,dn;if(this.options.backtrack_lexer&&(dn={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&&(dn.yylloc.range=this.yylloc.range.slice(0))),nn=St[0].match(/(?:\r\n?|\n).*/g),nn&&(this.yylineno+=nn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:nn?nn[nn.length-1].length-nn[nn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+St[0].length},this.yytext+=St[0],this.match+=St[0],this.matches=St,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(St[0].length),this.matched+=St[0],Mt=this.performAction.call(this,this.yy,this,yt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Mt)return Mt;if(this._backtrack){for(var vt in dn)this[vt]=dn[vt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var St,yt,Mt,nn;this._more||(this.yytext="",this.match="");for(var dn=this._currentRules(),vt=0;vt<dn.length;vt++)if(Mt=this._input.match(this.rules[dn[vt]]),Mt&&(!yt||Mt[0].length>yt[0].length)){if(yt=Mt,nn=vt,this.options.backtrack_lexer){if(St=this.test_match(Mt,dn[vt]),St!==!1)return St;if(this._backtrack){yt=!1;continue}else return!1}else if(!this.options.flex)break}return yt?(St=this.test_match(yt,dn[nn]),St!==!1?St:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var yt=this.next();return yt||this.lex()},begin:function(yt){this.conditionStack.push(yt)},popState:function(){var yt=this.conditionStack.length-1;return yt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(yt){return yt=this.conditionStack.length-1-Math.abs(yt||0),yt>=0?this.conditionStack[yt]:"INITIAL"},pushState:function(yt){this.begin(yt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(yt,Mt,nn,dn){switch(nn){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),Mt.yytext=Mt.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),Mt.yytext=Mt.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),Mt.yytext=Mt.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),Mt.yytext=Mt.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),Mt.yytext=Mt.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),Mt.yytext=Mt.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),Mt.yytext=Mt.yytext.substr(2).trim(),31;case 69:return this.popState(),Mt.yytext=Mt.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return Mt.yytext=Mt.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(
`+De.showPosition()+`
Expecting `+Lr.join(", ")+", got '"+(this.terminals_[ct]||ct)+"'":xt="Parse error on line "+(ye+1)+": Unexpected "+(ct==ke?"end of input":"'"+(this.terminals_[ct]||ct)+"'"),this.parseError(xt,{text:De.match,token:this.terminals_[ct]||ct,line:De.yylineno,loc:pe,expected:Lr})}if(St[0]instanceof Array&&St.length>1)throw new Error("Parse Error: multiple actions possible at state: "+bt+", token: "+ct);switch(St[0]){case 1:ce.push(ct),xe.push(De.yytext),Ee.push(De.yylloc),ce.push(St[1]),ct=null,re=De.yyleng,fe=De.yytext,ye=De.yylineno,pe=De.yylloc;break;case 2:if(dn=this.productions_[St[1]][1],Mt.$=xe[xe.length-dn],Mt._$={first_line:Ee[Ee.length-(dn||1)].first_line,last_line:Ee[Ee.length-1].last_line,first_column:Ee[Ee.length-(dn||1)].first_column,last_column:Ee[Ee.length-1].last_column},Ge&&(Mt._$.range=[Ee[Ee.length-(dn||1)].range[0],Ee[Ee.length-1].range[1]]),yt=this.performAction.apply(Mt,[fe,re,ye,X.yy,St[1],xe,Ee].concat(he)),typeof yt<"u")return yt;dn&&(ce=ce.slice(0,-1*dn*2),xe=xe.slice(0,-1*dn),Ee=Ee.slice(0,-1*dn)),ce.push(this.productions_[St[1]][0]),xe.push(Mt.$),Ee.push(Mt._$),vt=Me[ce[ce.length-2]][ce[ce.length-1]],ce.push(vt);break;case 3:return!0}}return!0}},j=function(){var Z={EOF:1,parseError:function(le,ce){if(this.yy.parser)this.yy.parser.parseError(le,ce);else throw new Error(le)},setInput:function(ae,le){return this.yy=le||this.yy||{},this._input=ae,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},input:function(){var ae=this._input[0];this.yytext+=ae,this.yyleng++,this.offset++,this.match+=ae,this.matched+=ae;var le=ae.match(/(?:\r\n?|\n).*/g);return le?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ae},unput:function(ae){var le=ae.length,ce=ae.split(/(?:\r\n?|\n)/g);this._input=ae+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-le),this.offset-=le;var be=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),ce.length-1&&(this.yylineno-=ce.length-1);var xe=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:ce?(ce.length===be.length?this.yylloc.first_column:0)+be[be.length-ce.length].length-ce[0].length:this.yylloc.first_column-le},this.options.ranges&&(this.yylloc.range=[xe[0],xe[0]+this.yyleng-le]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(ae){this.unput(this.match.slice(ae))},pastInput:function(){var ae=this.matched.substr(0,this.matched.length-this.match.length);return(ae.length>20?"...":"")+ae.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ae=this.match;return ae.length<20&&(ae+=this._input.substr(0,20-ae.length)),(ae.substr(0,20)+(ae.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ae=this.pastInput(),le=new Array(ae.length+1).join("-");return ae+this.upcomingInput()+`
`+le+"^"},test_match:function(ae,le){var ce,be,xe;if(this.options.backtrack_lexer&&(xe={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&&(xe.yylloc.range=this.yylloc.range.slice(0))),be=ae[0].match(/(?:\r\n?|\n).*/g),be&&(this.yylineno+=be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:be?be[be.length-1].length-be[be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ae[0].length},this.yytext+=ae[0],this.match+=ae[0],this.matches=ae,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(ae[0].length),this.matched+=ae[0],ce=this.performAction.call(this,this.yy,this,le,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ce)return ce;if(this._backtrack){for(var Ee in xe)this[Ee]=xe[Ee];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ae,le,ce,be;this._more||(this.yytext="",this.match="");for(var xe=this._currentRules(),Ee=0;Ee<xe.length;Ee++)if(ce=this._input.match(this.rules[xe[Ee]]),ce&&(!le||ce[0].length>le[0].length)){if(le=ce,be=Ee,this.options.backtrack_lexer){if(ae=this.test_match(ce,xe[Ee]),ae!==!1)return ae;if(this._backtrack){le=!1;continue}else return!1}else if(!this.options.flex)break}return le?(ae=this.test_match(le,xe[be]),ae!==!1?ae:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var le=this.next();return le||this.lex()},begin:function(le){this.conditionStack.push(le)},popState:function(){var le=this.conditionStack.length-1;return le>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(le){return le=this.conditionStack.length-1-Math.abs(le||0),le>=0?this.conditionStack[le]:"INITIAL"},pushState:function(le){this.begin(le)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(le,ce,be,xe){switch(be){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\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:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return Z}();H.lexer=j;function V(){this.yy={}}return V.prototype=H,H.Parser=V,new V}();W0e.parser=W0e;const N$t=W0e,P$t=s=>s.match(/^\s*journey/)!==null;let XA="";const Y0e=[],wP=[],mP=[],B$t=function(s,o,f){Fl.parseDirective(this,s,o,f)},F$t=function(){Y0e.length=0,wP.length=0,XA="",mP.length=0,tp()},R$t=function(s){XA=s,Y0e.push(s)},j$t=function(){return Y0e},$$t=function(){let s=fFe();const o=100;let f=0;for(;!s&&f<o;)s=fFe(),f++;return wP.push(...mP),wP},H$t=function(){const s=[];return wP.forEach(f=>{f.people&&s.push(...f.people)}),[...new Set(s)].sort()},z$t=function(s,o){const f=o.substr(1).split(":");let p=0,w=[];f.length===1?(p=Number(f[0]),w=[]):(p=Number(f[0]),w=f[1].split(","));const k=w.map(_=>_.trim()),b={section:XA,type:XA,people:k,task:s,score:p};mP.push(b)},G$t=function(s){const o={section:XA,type:XA,description:s,task:s,classes:[]};wP.push(o)},fFe=function(){const s=function(f){return mP[f].processed};let o=!0;for(const[f,p]of mP.entries())s(f),o=o&&p.processed;return o},dFe={parseDirective:B$t,getConfig:()=>Pt().journey,clear:F$t,setDiagramTitle:Kw,getDiagramTitle:Ww,setAccTitle:np,getAccTitle:C2,setAccDescription:S2,getAccDescription:A2,addSection:R$t,getSections:j$t,getTasks:$$t,addTask:z$t,addTaskOrg:G$t,getActors:function(){return H$t()}},pW=function(s,o){const f=s.append("rect");return f.attr("x",o.x),f.attr("y",o.y),f.attr("fill",o.fill),f.attr("stroke",o.stroke),f.attr("width",o.width),f.attr("height",o.height),f.attr("rx",o.rx),f.attr("ry",o.ry),o.class!==void 0&&f.attr("class",o.class),f},q$t=function(s,o){const p=s.append("circle").attr("cx",o.cx).attr("cy",o.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),w=s.append("g");w.append("circle").attr("cx",o.c
`);const k=Pt().securityLevel;let b;k==="sandbox"&&(b=sr("#i"+o));const _=sr(k==="sandbox"?b.nodes()[0].contentDocument.body:"body");Kb.init();const A=_.select("#"+o);yP.initGraphics(A);const N=p.db.getTasks(),B=p.db.getDiagramTitle(),F=p.db.getActors();for(const le in M5)delete M5[le];let H=0;F.forEach(le=>{M5[le]={color:w.actorColours[H%w.actorColours.length],position:H},H++}),Q$t(A),Kb.insert(0,0,u9,Object.keys(M5).length*50),J$t(A,N,0);const j=Kb.getBounds();B&&A.append("text").text(B).attr("x",u9).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const V=j.stopy-j.starty+2*w.diagramMarginY,Z=u9+j.stopx+2*w.diagramMarginX;Uw(A,V,Z,w.useMaxWidth),A.append("line").attr("x1",u9).attr("y1",w.height*4).attr("x2",Z-u9-4).attr("y2",w.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const ae=B?70:0;A.attr("viewBox",`${j.startx} -25 ${Z} ${V+ae}`),A.attr("preserveAspectRatio","xMinYMin meet"),A.attr("height",V+ae+25)},Kb={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(s,o,f,p){s[o]===void 0?s[o]=f:s[o]=p(f,s[o])},updateBounds:function(s,o,f,p){const w=Pt().journey,k=this;let b=0;function _(A){return function(B){b++;const F=k.sequenceItems.length-b+1;k.updateVal(B,"starty",o-F*w.boxMargin,Math.min),k.updateVal(B,"stopy",p+F*w.boxMargin,Math.max),k.updateVal(Kb.data,"startx",s-F*w.boxMargin,Math.min),k.updateVal(Kb.data,"stopx",f+F*w.boxMargin,Math.max),A!=="activation"&&(k.updateVal(B,"startx",s-F*w.boxMargin,Math.min),k.updateVal(B,"stopx",f+F*w.boxMargin,Math.max),k.updateVal(Kb.data,"starty",o-F*w.boxMargin,Math.min),k.updateVal(Kb.data,"stopy",p+F*w.boxMargin,Math.max))}}this.sequenceItems.forEach(_())},insert:function(s,o,f,p){const w=Math.min(s,f),k=Math.max(s,f),b=Math.min(o,p),_=Math.max(o,p);this.updateVal(Kb.data,"startx",w,Math.min),this.updateVal(Kb.data,"starty",b,Math.min),this.updateVal(Kb.data,"stopx",k,Math.max),this.updateVal(Kb.data,"stopy",_,Math.max),this.updateBounds(w,b,k,_)},bumpVerticalPos:function(s){this.verticalPos=this.verticalPos+s,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Q0e=bW.sectionFills,wFe=bW.sectionColours,J$t=function(s,o,f){const p=Pt().journey;let w="";const k=p.height*2+p.diagramMarginY,b=f+k;let _=0,A="#CCC",N="black",B=0;for(const[F,H]of o.entries()){if(w!==H.section){A=Q0e[_%Q0e.length],B=_%Q0e.length,N=wFe[_%wFe.length];const V={x:F*p.taskMargin+F*p.width+u9,y:50,text:H.section,fill:A,num:B,colour:N};yP.drawSection(s,V,p),w=H.section,_++}const j=H.people.reduce((V,Z)=>(M5[Z]&&(V[Z]=M5[Z]),V),{});H.x=F*p.taskMargin+F*p.width+u9,H.y=b,H.width=p.diagramMarginX,H.height=p.diagramMarginY,H.colour=N,H.fill=A,H.num=B,H.actors=j,yP.drawTask(s,H,p),Kb.insert(H.x,H.y,H.x+H.width+p.taskMargin,300+5*30)}},mFe={setConf:X$t,draw:Z$t};let yFe={};const vW={setConf:function(s){yFe={...yFe,...s}},draw:(s,o,f)=>{try{je.debug(`Renering svg for syntax error
`);const p=sr("#"+o),w=p.append("g");w.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"),w.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"),w.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"),w.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"),w.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"),w.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"),w.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),w.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+f),p.attr("height",100),p.attr("width",500),p.attr("viewBox","768 0 912 512")}catch(p){je.error("Error while rendering info diagram"),je.error(M_t(p))}}},kFe="flowchart-elk",eHt={id:kFe,detector:(s,o)=>{var f;return!!(s.match(/^\s*flowchart-elk/)||s.match(/^\s*flowchart|graph/)&&((f=o==null?void 0:o.flowchart)==null?void 0:f.defaultRenderer)==="elk")},loader:async()=>{const{diagram:s}=await Promise.resolve().then(()=>GHt);return{id:kFe,diagram:s}}},xFe="timeline",tHt={id:xFe,detector:s=>s.match(/^\s*timeline/)!==null,loader:async()=>{const{diagram:s}=await Promise.resolve().then(()=>uzt);return{id:xFe,diagram:s}}},EFe="mindmap",nHt={id:EFe,detector:s=>s.match(/^\s*mindmap/)!==null,loader:async()=>{const{diagram:s}=await Promise.resolve().then(()=>zzt);return{id:EFe,diagram:s}}};let TFe=!1;const kP=()=>{TFe||(TFe=!0,ODe(eHt,tHt,nHt),h1("error",{db:{clear:()=>{}},styles:G1e,renderer:vW,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},s=>s.toLowerCase().trim()==="error"),h1("---",{db:{clear:()=>{}},styles:G1e,renderer:vW,parser:{parser:{yy:{}},parse:()=>{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 unindented `---` blocks")}},init:()=>null},s=>s.toLowerCase().trimStart().startsWith("---")),h1("c4",{parser:FCt,db:_Ie,renderer:NIe,styles:fIe,init:s=>{NIe.setConf(s.c4)}},RCt),h1("class",{parser:PIe,db:SA,renderer:sPt,styles:AN,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,SA.clear()}},TSt),h1("classDiagram",{parser:PIe,db:SA,renderer:JPt,styles:AN,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,SA.clear()}},_St),h1("er",{parser:eBt,db:sBt,renderer:SBt,styles:sIe},tBt),h1("gantt",{parser:xFt,db:m0e,renderer:aRt,styles:aIe},EFt),h1("info",{parser:oRt,db:cRt,renderer:uRt,styles:oIe},lRt),h1("pie",{parser:hRt,db:dRt,renderer:gRt,styles:cIe},fRt),h1("requirement",{parser:pRt,db:vRt,renderer:TRt,styles:u
`,this.parse(this.txt,f)}parse(o,f){var p,w;if(this.detectTypeFailed)return!1;try{return o=o+`
`,(w=(p=this.db).clear)==null||w.call(p),this.parser.parse(o),!0}catch(k){this.handleError(k,f)}return!1}handleError(o,f){if(f===void 0)throw o;if(N1e(o)){f(o.str,o.hash);return}f(o)}getParser(){return this.parser}getType(){return this.type}}const J0e=(s,o)=>{const f=A1e(s,Pt());try{pIe(f)}catch{const w=hTt(f);if(!w)throw new Error(`Diagram ${f} not found.`);return w().then(({diagram:k})=>(h1(f,k,void 0),new Z0e(s,o)))}return new Z0e(s,o)},ege=Z0e,rHt="graphics-document document";function iHt(s,o){s.attr("role",rHt),FA(o)||s.attr("aria-roledescription",o)}function sHt(s,o,f,p){if(s.insert!==void 0)if(o||f){if(f){const w="chart-desc-"+p;s.attr("aria-describedby",w),s.insert("desc",":first-child").attr("id",w).text(f)}if(o){const w="chart-title-"+p;s.attr("aria-labelledby",w),s.insert("title",":first-child").attr("id",w).text(o)}}else return}const tge=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],_Fe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",CFe="sandbox",SFe="loose",aHt="http://www.w3.org/2000/svg",AFe="http://www.w3.org/1999/xlink",LFe="http://www.w3.org/1999/xhtml",oHt="100%",cHt="100%",uHt="border:0;margin:0;",lHt="margin:0",hHt="allow-top-navigation-by-user-activation allow-popups",fHt='The "iframe" tag is not supported by your browser.',MFe=["foreignobject"],DFe=["dominant-baseline"];function dHt(s,o){return kP(),new ege(s,o).parse(s,o)}async function gHt(s,o){return kP(),(await J0e(s,o)).parse(s,o)}const IFe=function(s){let o=s;return o=o.replace(/style.*:\S*#.*;/g,function(f){return f.substring(0,f.length-1)}),o=o.replace(/classDef.*:\S*#.*;/g,function(f){return f.substring(0,f.length-1)}),o=o.replace(/#\w+;/g,function(f){const p=f.substring(1,f.length-1);return/^\+?\d+$/.test(p)?"fl°°"+p+"¶ß":"fl°"+p+"¶ß"}),o},nge=function(s){let o=s;return o=o.replace(/fl°°/g,"&#"),o=o.replace(/fl°/g,"&"),o=o.replace(/¶ß/g,";"),o},OFe=(s,o,f=[])=>`
.${s} ${o} { ${f.join(" !important; ")} !important; }`,pHt=(s,o,f={})=>{var w;let p="";if(s.themeCSS!==void 0&&(p+=`
${s.themeCSS}`),s.fontFamily!==void 0&&(p+=`
:root { --mermaid-font-family: ${s.fontFamily}}`),s.altFontFamily!==void 0&&(p+=`
:root { --mermaid-alt-font-family: ${s.altFontFamily}}`),!FA(f)&&tge.includes(o)){const A=s.htmlLabels||((w=s.flowchart)==null?void 0:w.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const N in f){const B=f[N];FA(B.styles)||A.forEach(F=>{p+=OFe(B.id,F,B.styles)}),FA(B.textStyles)||(p+=OFe(B.id,"tspan",B.textStyles))}}return p},NFe=(s,o,f,p)=>{const w=pHt(s,o,f),k=tCt(o,w,s.themeVariables);return H1e(q_t(`${p}{${k}}`),U_t)},PFe=(s="",o,f)=>{let p=s;return!f&&!o&&(p=p.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),p=nge(p),p=p.replace(/<br>/g,"<br/>"),p},BFe=(s="",o)=>{const f=o?o.viewBox.baseVal.height+"px":cHt,p=btoa('<body style="'+lHt+'">'+s+"</body>");return`<iframe style="width:${oHt};height:${f};${uHt}" src="data:text/html;base64,${p}" sandbox="${hHt}">
${fHt}
</iframe>`},wW=(s,o,f,p,w)=>{const k=s.append("div");k.attr("id",f),p&&k.attr("style",p);const b=k.append("svg").attr("id",o).attr("width","100%").attr("xmlns",aHt);return w&&b.attr("xmlns:xlink",w),b.append("g"),s};function mW(s,o){return s.append("iframe").attr("id",o).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const FFe=(s,o,f,p)=>{var w,k,b;(w=s.getElementById(o))==null||w.remove(),(k=s.getElementById(f))==null||k.remove(),(b=s.getElementById(p))==null||b.remove()},bHt=function(s,o,f,p){var X,Re,pe,Ge;kP(),SN();const w=Pa.detectInit(o);w&&(VE(w),z1e(w));const k=Pt();je.debug(k),o.length>((k==null?void 0:k.maxTextSize)??5e4)&&(o=_Fe),o=o.replace(/\r\n?/g,`
`);const b="#"+s,_="i"+s,A="#"+_,N="d"+s,B="#"+N;let F=sr("body");const H=k.securityLevel===CFe,j=k.securityLevel===SFe,V=k.fontFamily;if(p!==void 0){if(p&&(p.innerHTML=""),H){const de=mW(sr(p),_);F=sr(de.nodes()[0].contentDocument.body),F.node().style.margin=0}else F=sr(p);wW(F,s,N,`font-family: ${V}`,AFe)}else{if(FFe(document,s,N,_),H){const de=mW(sr("body"),_);F=sr(de.nodes()[0].contentDocument.body),F.node().style.margin=0}else F=sr("body");wW(F,s,N)}o=IFe(o);let Z,ae;try{if(Z=J0e(o),"then"in Z)throw new Error("Diagram is a promise. Use renderAsync.")}catch(de){Z=new ege("error"),ae=de}const le=F.select(B).node(),ce=Z.type,be=le.firstChild,xe=be.firstChild,Ee=tge.includes(ce)?Z.renderer.getClasses(o,Z):{},Me=NFe(k,ce,Ee,b),fe=document.createElement("style");fe.innerHTML=Me,be.insertBefore(fe,xe);try{Z.renderer.draw(o,s,rK,Z)}catch(de){throw vW.draw(o,s,rK),de}const ye=F.select(`${B} svg`),re=(Re=(X=Z.db).getAccTitle)==null?void 0:Re.call(X),we=(Ge=(pe=Z.db).getAccDescription)==null?void 0:Ge.call(pe);RFe(ce,ye,re,we),F.select(`[id="${s}"]`).selectAll("foreignobject > *").attr("xmlns",LFe);let ke=F.select(B).node().innerHTML;if(je.debug("config.arrowMarkerAbsolute",k.arrowMarkerAbsolute),ke=PFe(ke,H,l1(k.arrowMarkerAbsolute)),H){const de=F.select(B+" svg").node();ke=BFe(ke,de)}else j||(ke=vN.sanitize(ke,{ADD_TAGS:MFe,ADD_ATTR:DFe}));if(f!==void 0)switch(ce){case"flowchart":case"flowchart-v2":f(ke,a3.bindFunctions);break;case"gantt":f(ke,m0e.bindFunctions);break;case"class":case"classDiagram":f(ke,SA.bindFunctions);break;default:f(ke)}else je.debug("CB = undefined!");SBe();const De=sr(H?A:B).node();if(De&&"remove"in De&&De.remove(),ae)throw ae;return ke},vHt=async function(s,o,f,p){var X,Re,pe,Ge;kP(),SN();const w=Pa.detectInit(o);w&&(VE(w),z1e(w));const k=Pt();je.debug(k),o.length>((k==null?void 0:k.maxTextSize)??5e4)&&(o=_Fe),o=o.replace(/\r\n?/g,`
`);const b="#"+s,_="i"+s,A="#"+_,N="d"+s,B="#"+N;let F=sr("body");const H=k.securityLevel===CFe,j=k.securityLevel===SFe,V=k.fontFamily;if(p!==void 0){if(p&&(p.innerHTML=""),H){const de=mW(sr(p),_);F=sr(de.nodes()[0].contentDocument.body),F.node().style.margin=0}else F=sr(p);wW(F,s,N,`font-family: ${V}`,AFe)}else{if(FFe(document,s,N,_),H){const de=mW(sr("body"),_);F=sr(de.nodes()[0].contentDocument.body),F.node().style.margin=0}else F=sr("body");wW(F,s,N)}o=IFe(o);let Z,ae;try{Z=await J0e(o)}catch(de){Z=new ege("error"),ae=de}const le=F.select(B).node(),ce=Z.type,be=le.firstChild,xe=be.firstChild,Ee=tge.includes(ce)?Z.renderer.getClasses(o,Z):{},Me=NFe(k,ce,Ee,b),fe=document.createElement("style");fe.innerHTML=Me,be.insertBefore(fe,xe);try{await Z.renderer.draw(o,s,rK,Z)}catch(de){throw vW.draw(o,s,rK),de}const ye=F.select(`${B} svg`),re=(Re=(X=Z.db).getAccTitle)==null?void 0:Re.call(X),we=(Ge=(pe=Z.db).getAccDescription)==null?void 0:Ge.call(pe);RFe(ce,ye,re,we),F.select(`[id="${s}"]`).selectAll("foreignobject > *").attr("xmlns",LFe);let ke=F.select(B).node().innerHTML;if(je.debug("config.arrowMarkerAbsolute",k.arrowMarkerAbsolute),ke=PFe(ke,H,l1(k.arrowMarkerAbsolute)),H){const de=F.select(B+" svg").node();ke=BFe(ke,de)}else j||(ke=vN.sanitize(ke,{ADD_TAGS:MFe,ADD_ATTR:DFe}));if(f!==void 0)switch(ce){case"flowchart":case"flowchart-v2":f(ke,a3.bindFunctions);break;case"gantt":f(ke,m0e.bindFunctions);break;case"class":case"classDiagram":f(ke,SA.bindFunctions);break;default:f(ke)}else je.debug("CB = undefined!");SBe();const De=sr(H?A:B).node();if(De&&"remove"in De&&De.remove(),ae)throw ae;return ke};function wHt(s={}){var f;s!=null&&s.fontFamily&&!((f=s.themeVariables)!=null&&f.fontFamily)&&(s.themeVariables={fontFamily:s.fontFamily}),W_t(s),s!=null&&s.theme&&s.theme in f5?s.themeVariables=f5[s.theme].getThemeVariables(s.themeVariables):s&&(s.themeVariables=f5.default.getThemeVariables(s.themeVariables));const o=typeof s=="object"?K_t(s):JDe();ffe(o.logLevel),kP()}function RFe(s,o,f,p){iHt(o,s),sHt(o,f,p,o.attr("id"))}const Fl=Object.freeze({render:bHt,renderAsync:vHt,parse:dHt,parseAsync:gHt,parseDirective:K1e,initialize:wHt,getConfig:Pt,setConfig:eIe,getSiteConfig:JDe,updateSiteConfig:Y_t,reset:()=>{SN()},globalReset:()=>{SN(_A)},defaultConfig:_A});ffe(Pt().logLevel),SN(Pt());const mHt=async function(s,o,f){try{await $Fe(s,o,f)}catch(p){je.warn("Syntax Error rendering"),N1e(p)&&je.warn(p.str),Wb.parseError&&Wb.parseError(p)}},jFe=(s,o,f)=>{je.warn(s),N1e(s)?(f&&f(s.str,s.hash),o.push({...s,message:s.str,error:s})):(f&&f(s),s instanceof Error&&o.push({str:s.message,message:s.message,hash:s.name,error:s}))},yHt=function(s,o,f){const p=Fl.getConfig();s&&(Wb.sequenceConfig=s),je.debug(`${f?"":"No "}Callback function found`);let w;if(o===void 0)w=document.querySelectorAll(".mermaid");else if(typeof o=="string")w=document.querySelectorAll(o);else if(o instanceof HTMLElement)w=[o];else if(o instanceof NodeList)w=o;else throw new Error("Invalid argument nodes for mermaid.init");je.debug(`Found ${w.length} diagrams`),(s==null?void 0:s.startOnLoad)!==void 0&&(je.debug("Start On Load: "+(s==null?void 0:s.startOnLoad)),Fl.updateSiteConfig({startOnLoad:s==null?void 0:s.startOnLoad}));const k=new Pa.initIdGenerator(p.deterministicIds,p.deterministicIDSeed);let b;const _=[];for(const A of Array.from(w)){je.info("Rendering diagram: "+A.id);/*! Check if previously processed */if(A.getAttribute("data-processed"))continue;A.setAttribute("data-processed","true");const N=`mermaid-${k.next()}`;b=A.innerHTML,b=tA(Pa.entityDecode(b)).trim().replace(/<br\s*\/?>/gi,"<br/>");const B=Pa.detectInit(b);B&&je.debug("Detected early reinit: ",B);try{Fl.render(N,b,(F,H)=>{A.innerHTML=F,f!==void 0&&f(N),H&&H(A)},A)}catch(F){jFe(F,_,Wb.parseError)}}if(_.length>0)throw _[0]},kHt=async(...s)=>{je.debug(`Loading ${s.length} external diagrams`);const f=(await Promise.allSettled(s.map(async({id:p,detector:w,loader:k})=>{const{diagram:b}=await k();h1(p,b,w)}))).filter(p=>p.status==="rejected");if(f.length>0){je.error(`Failed to load ${f.length} external diagram
* Wait for document loaded before starting the execution
*/window.addEventListener("load",HFe,!1)}const THt=function(s){Wb.parseError=s},_Ht=s=>Fl.parse(s,Wb.parseError),yW=[];let rge=!1;const zFe=async()=>{if(!rge){for(rge=!0;yW.length>0;){const s=yW.shift();if(s)try{await s()}catch(o){je.error("Error executing queue",o)}}rge=!1}},CHt=s=>new Promise((o,f)=>{const p=()=>new Promise((w,k)=>{Fl.parseAsync(s,Wb.parseError).then(b=>{w(b),o(b)},b=>{je.error("Error parsing",b),k(b),f(b)})});yW.push(p),zFe().catch(f)}),SHt=(s,o,f,p)=>new Promise((w,k)=>{const b=()=>new Promise((_,A)=>{Fl.renderAsync(s,o,f,p).then(N=>{_(N),w(N)},N=>{je.error("Error parsing",N),A(N),k(N)})});yW.push(b),zFe().catch(k)}),Wb={startOnLoad:!0,diagrams:{},mermaidAPI:Fl,parse:_Ht,parseAsync:CHt,render:Fl.render,renderAsync:SHt,init:mHt,initThrowsErrors:yHt,initThrowsErrorsAsync:$Fe,registerExternalDiagrams:EHt,initialize:xHt,parseError:void 0,contentLoaded:HFe,setParseErrorHandler:THt},AHt=(s,o,f)=>{const{parentById:p}=f,w=new Set;let k=s;for(;k;){if(w.add(k),k===o)return k;k=p[k]}for(k=o;k;){if(w.has(k))return k;k=p[k]}return"root"};function kW(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ige={},LHt={get exports(){return ige},set exports(s){ige=s}};(function(s,o){(function(f){s.exports=f()})(function(){return function(){function f(p,w,k){function b(N,B){if(!w[N]){if(!p[N]){var F=typeof kW=="function"&&kW;if(!B&&F)return F(N,!0);if(_)return _(N,!0);var H=new Error("Cannot find module '"+N+"'");throw H.code="MODULE_NOT_FOUND",H}var j=w[N]={exports:{}};p[N][0].call(j.exports,function(V){var Z=p[N][1][V];return b(Z||V)},j,j.exports,f,p,w,k)}return w[N].exports}for(var _=typeof kW=="function"&&kW,A=0;A<k.length;A++)b(k[A]);return b}return f}()({1:[function(f,p,w){Object.defineProperty(w,"__esModule",{value:!0});var k=function(){function N(B,F){for(var H=0;H<F.length;H++){var j=F[H];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(B,j.key,j)}}return function(B,F,H){return F&&N(B.prototype,F),H&&N(B,H),B}}();function b(N,B){if(!(N instanceof B))throw new TypeError("Cannot call a class as a function")}var _=function(){function N(){var B=this,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=F.defaultLayoutOptions,j=H===void 0?{}:H,V=F.algorithms,Z=V===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:V,ae=F.workerFactory,le=F.workerUrl;if(b(this,N),this.defaultLayoutOptions=j,this.initialized=!1,typeof le>"u"&&typeof ae>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var ce=ae;typeof le<"u"&&typeof ae>"u"&&(ce=function(Ee){return new Worker(Ee)});var be=ce(le);if(typeof be.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new A(be),this.worker.postMessage({cmd:"register",algorithms:Z}).then(function(xe){return B.initialized=!0}).catch(console.err)}return k(N,[{key:"layout",value:function(F){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=H.layoutOptions,V=j===void 0?this.defaultLayoutOptions:j,Z=H.logging,ae=Z===void 0?!1:Z,le=H.measureExecutionTime,ce=le===void 0?!1:le;return F?this.worker.postMessage({cmd:"layout",graph:F,layoutOptions:V,options:{logging:ae,measureExecutionTime:ce}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),N}();w.default=_;var A=function(){function N(B){var F=this;if(b(this,N),B===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=B,this.worker.onme
`,Du(Ma(e,t[0])))>=0;)++t[0]}function nD(e,t){this.e=t,this.a=Wet(e),this.a<54?this.f=Pv(e):this.c=AD(e)}function eJe(e,t,n,r){mi(),ov.call(this,26),this.c=e,this.a=t,this.d=n,this.b=r}function Qd(e,t,n){var r,i;for(r=10,i=0;i<n-1;i++)t<r&&(e.a+="0"),r*=10;e.a+=t}function Ctn(e,t){var n;for(n=0;e.e!=e.i.gc();)yYt(t,br(e),lt(n)),n!=xi&&++n}function Wwe(e,t){var n;for(++e.d,++e.c[t],n=t+1;n<e.a.length;)++e.a[n],n+=n&-n}function Stn(e,t){var n,r,i;i=t.c.i,n=u(Jn(e.f,i),57),r=n.d.c-n.e.c,wme(t.a,r,0)}function rD(e){var t,n;return t=e+128,n=(sKe(),gxe)[t],!n&&(n=gxe[t]=new see(e)),n}function Xr(e,t){var n;return An(t),n=e[":"+t],Itn(!!n,ie(ne(Xn,1),_t,1,5,[t])),n}function Atn(e){var t,n;if(e.b){n=null;do t=e.b,e.b=null,n=Jit(t,n);while(e.b);e.b=n}}function Ltn(e){var t,n;if(e.a){n=null;do t=e.a,e.a=null,n=Jit(t,n);while(e.a);e.a=n}}function tJe(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function Mtn(e,t){var n,r;for(r=t.c,n=r+1;n<=t.f;n++)e.a[n]>e.a[r]&&(r=n);return r}function Dtn(e,t){var n;return n=Kv(e.e.c,t.e.c),n==0?Bs(e.e.d,t.e.d):n}function V3(e,t){return t.e==0||e.e==0?H7:(a7(),Tse(e,t))}function Itn(e,t){if(!e)throw ee(new Dn(Pdn("Enum constant undefined: %s",t)))}function E_(){E_=de,$gt=new d3,Hgt=new O5,Rgt=new up,jgt=new O2,zgt=new CW}function p$(){p$=de,Kxe=new Rpe("BY_SIZE",0),iue=new Rpe("BY_SIZE_AND_SHAPE",1)}function b$(){b$=de,pue=new jpe("EADES",0),IG=new jpe("FRUCHTERMAN_REINGOLD",1)}function iD(){iD=de,uq=new Gpe("READING_DIRECTION",0),HEe=new Gpe("ROTATION",1)}function nJe(){nJe=de,Tpt=Qr((lb(),ie(ne($Ee,1),rt,335,0,[Vue,jEe,Uue,ZC,QC])))}function rJe(){rJe=de,tvt=Qr((G_(),ie(ne(HTe,1),rt,315,0,[$Te,Ble,Fle,hS,fS])))}function iJe(){iJe=de,dpt=Qr((a4(),ie(ne(fpt,1),rt,363,0,[iq,aq,oq,sq,rq])))}function sJe(){sJe=de,Fpt=Qr((mh(),ie(ne(v9e,1),rt,163,0,[sO,rS,a2,iS,Sy])))}function aJe(){aJe=de,xmt=Qr((RD(),ie(ne(hCe,1),rt,316,0,[cCe,vhe,lCe,whe,uCe])))}function oJe(){oJe=de,Vmt=Qr((t1(),ie(ne(Gg,1),rt,175,0,[jn,ua,Nd,Ob,zg])))}function cJe(){cJe=de,bmt=Qr((l7(),ie(ne(pmt,1),rt,355,0,[W4,Dk,_S,TS,CS])))}function uJe(){uJe=de,Igt=Qr((io(),ie(ne(F7e,1),rt,356,0,[Dd,i2,fu,Yc,zo])))}function lJe(){lJe=de,pyt=Qr((wo(),ie(ne(MS,1),rt,103,0,[u0,Lf,Wh,Y0,X0])))}function hJe(){hJe=de,Tyt=Qr((e4(),ie(ne(NS,1),rt,249,0,[d2,OO,FSe,OS,RSe])))}function fJe(){fJe=de,Syt=Qr((dt(),ie(ne(oo,1),Mc,61,0,[cc,Ln,$n,Tr,On])))}function Tre(e,t){var n;return n=u(Jn(e.a,t),134),n||(n=new Qb,Si(e.a,t,n)),n}function dJe(e){var t;return t=u(W(e,(nt(),mw)),305),t?t.a==e:!1}function gJe(e){var t;return t=u(W(e,(nt(),mw)),305),t?t.i==e:!1}function pJe(e,t){return An(t),gve(e),e.d.Ob()?(t.td(e.d.Pb()),!0):!1}function v$(e){return Lc(e,xi)>0?xi:Lc(e,za)<0?za:Ir(e)}function zm(e){return e<3?(Vl(e,hlt),e+1):e<hC?_s(e/.75+1):xi}function bn(e,t){var n;return n=(e.i==null&&wd(e),e.i),t>=0&&t<n.length?n[t]:null}function Zf(e,t,n){var r;if(t==null)throw ee(new fT);return r=M0(e,t),een(e,t,n),r}function bJe(e){return e.a>=-.01&&e.a<=H1&&(e.a=0),e.b>=-.01&&e.b<=H1&&(e.b=0),e}function vJe(e,t){return t==(Gte(),Gte(),Gdt)?e.toLocaleLowerCase():e.toLowerCase()}function Ywe(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(S0(e),e.o)}function Po(e){var t,n;n=(t=new kee,t),Pr((!e.q&&(e.q=new ot(ef,e,11,10)),e.q),n)}function Otn(e,t){var n;return n=t>0?t-1:t,dHe(KGt(zJe(Kbe(new j8,n),e.n),e.j),e.k)}function Ntn(e,t,n,r){var i;e.j=-1,w4e(e,Z3e(e,t,n),(ho(),i=u(t,66).Mj(),i.Ok(r)))}function wJe(e){this.g=e,this.f=new at,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function mJe(e){this.b=new at,this.a=new at,this.c=new at,this.d=new at,this.e=e}function yJe(e,t){this.a=new Ar,this.e=new Ar,this.b=(I_(),Rq),this.c=e,this.b=t}function kJe(e,t,n){XR.call(this),Xwe(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function xJe(e){this.d=e,this.c=e.c.vc().Kc(),this.b=null,this.a=null,this.e=(zF(),Vce)}function Rv(e){if(e<0)throw ee(new Dn("Illegal Capacity: "+e));this.g=this.ri(e)}function Ptn(e,t){if(0>e||e>t)throw ee(new upe("fromIndex: 0, toIndex: "+e+Q5e+t))}function Btn(e){var t;if(e.a==e.b.a)throw ee(new yc);return t=e.a,e.c=t,e.a=e.a.e,t}func
`)}return t&&(t.stack||n(e[hae]))}function Aye(e){Pm();var t;switch(t=e.Pc(),t.length){case 0:return Gce;case 1:return new Jte(Or(t[0]));default:return new One(nsn(t))}}function Wv(e,t){switch(t.g){case 1:return C6(e.j,(Vu(),q7e));case 2:return C6(e.j,(Vu(),U7e));default:return fn(),fn(),bo}}function Lye(e,t){switch(t){case 3:$v(e,0);return;case 4:Hv(e,0);return;case 5:Au(e,0);return;case 6:Lu(e,0);return}rye(e,t)}function vie(){vie=de,oR(),Bq=(mt(),Sw),Qbt=I1(ie(ne(Ehe,1),Uke,146,0,[cO,Af,Mk,Cw,Py,Cle,uE,lE,Sle,uS,G4,Db,q4]))}function ynt(e){var t,n;t=e.d==(Q6(),X7),n=A3e(e),t&&!n||!t&&n?Qe(e.a,(mt(),Id),(Zd(),kO)):Qe(e.a,(mt(),Id),(Zd(),yO))}function Psn(e,t){var n;return n=u(Gl(e,Q2(new wt,new Tt,new Fn,ie(ne(yl,1),rt,132,0,[(F1(),Zl)]))),15),n.Qc(zUe(n.gc()))}function rH(){rH=de,qhe=new CR("SIMPLE",0),zSe=new CR("GROUP_DEC",1),qSe=new CR("GROUP_MIXED",2),GSe=new CR("GROUP_INC",3)}function wie(){wie=de,efe=new MB,dAe=new DB,gAe=new IB,pAe=new w8,bAe=new OB,vAe=new NB,wAe=new xZ,mAe=new m8,yAe=new y8}function knt(e,t,n){SJe(),m$e.call(this),this.a=G2(c0t,[Je,a6e],[595,212],0,[CG,aue],2),this.c=new k6,this.g=e,this.f=t,this.d=n}function Mye(e,t){this.n=G2(E2,[Je,Iae],[364,25],14,[t,_s(b.Math.ceil(e/32))],2),this.o=e,this.p=t,this.j=e-1>>1,this.k=t-1>>1}function Bsn(e,t){Er(t,"End label post-processing",1),ms(qi(rc(new mn(null,new kn(e.b,16)),new jW),new $W),new HW),lr(t)}function Fsn(e,t,n){var r,i;return r=We(e.p[t.i.p])+We(e.d[t.i.p])+t.n.b+t.a.b,i=We(e.p[n.i.p])+We(e.d[n.i.p])+n.n.b+n.a.b,i-r}function Rsn(e,t,n){var r,i;for(r=Gs(n,yo),i=0;Lc(r,0)!=0&&i<t;i++)r=Wa(r,Gs(e[i],yo)),e[i]=Ir(r),r=Mp(r,32);return Ir(r)}function iH(e){var t,n,r,i;for(i=0,n=0,r=e.length;n<r;n++)t=(zr(n,e.length),e.charCodeAt(n)),t<64&&(i=D1(i,A0(1,t)));return i}function jsn(e){var t;return e==null?null:new Ap((t=Kc(e,!0),t.length>0&&(zr(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function $sn(e){var t;return e==null?null:new Ap((t=Kc(e,!0),t.length>0&&(zr(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function Dye(e,t){var n;return e.i>0&&(t.length<e.i&&(n=sD(pl(t).c,e.i),t=n),Rc(e.g,0,t,0,e.i)),t.length>e.i&&us(t,e.i,null),t}function ru(e,t,n){var r,i,a;return e.ej()?(r=e.i,a=e.fj(),kD(e,r,t),i=e.Zi(3,null,t,r,a),n?n.Ei(i):n=i):kD(e,e.i,t),n}function Hsn(e,t,n){var r,i;return r=new N0(e.e,4,10,(i=t.c,me(i,88)?u(i,26):(cn(),nf)),null,Ag(e,t),!1),n?n.Ei(r):n=r,n}function zsn(e,t,n){var r,i;return r=new N0(e.e,3,10,null,(i=t.c,me(i,88)?u(i,26):(cn(),nf)),Ag(e,t),!1),n?n.Ei(r):n=r,n}function xnt(e){Am();var t;return t=new Do(u(e.e.We((di(),Z4)),8)),e.B.Hc((wl(),yE))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function Ent(e){Xm();var t;return(e.q?e.q:(fn(),fn(),o0))._b((mt(),Tw))?t=u(W(e,Tw),197):t=u(W(Xa(e),cS),197),t}function Ym(e,t){var n,r;return r=null,Js(e,(mt(),Nq))&&(n=u(W(e,Nq),94),n.Xe(t)&&(r=n.We(t))),r==null&&(r=W(Xa(e),t)),r}function Tnt(e,t){var n,r,i;return me(t,42)?(n=u(t,42),r=n.cd(),i=Km(e.Rc(),r),pd(i,n.dd())&&(i!=null||e.Rc()._b(r))):!1}function mie(e,t){var n,r,i;return e.f>0?(e.qj(),r=t==null?0:Yi(t),i=(r&xi)%e.d.length,n=Tat(e,i,r,t),n!=-1):!1}function e1(e,t){var n,r,i;return e.f>0&&(e.qj(),r=t==null?0:Yi(t),i=(r&xi)%e.d.length,n=p4e(e,i,r,t),n)?n.dd():null}function _D(e,t){var n,r,i,a;for(a=hu(e.e.Tg(),t),n=u(e.g,119),i=0;i<e.i;++i)if(r=n[i],a.rl(r.ak()))return!1;return!0}function _nt(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!u(e.b,49).Zg())return!0;return e.b=null,!1}else return!0}function Cnt(e,t){e.mj();try{e.d.Vc(e.e++,t),e.f=e.d.j,e.g=-1}catch(n){throw n=ts(n),me(n,73)?ee(new uh):ee(n)}}function sH(e,t){m2e();var n,r;return n=kM((VF(),VF(),zC)),r=null,t==n&&(r=u(Gc(uxe,e),615)),r||(r=new cWe(e),t==n&&Io(uxe,e,r)),r}function Snt(e,t){var n,r;e.a=Wa(e.a,1),e.c=b.Math.min(e.c,t),e.b=b.Math.max(e.b,t),e.d+=t,n=t-e.f,r=e.e+n,e.f=r-e.e-n,e.e=r}function Gsn(e,t){var n;e.c=t,e.a=Csn(t),e.a<54&&(e.f=(n=t.d>1?D1(A0(t.a[1],32),Gs(t.a[0],yo)):Gs(t.a[0],yo),Pv(Ha(t.e,n))))}function CD(e,t){var n;return Uo(e)&&Uo(t)&&(n=e%t,fI<n&&n<gb)?n:jp((_5e(Uo(e)?Bh(e):e,Uo(t)?Bh(t):t,!0),t2))}function j_(e,t){var n;uvn(t),n=u(W(e
`;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(`
`)}return[]}function Don(e){var t;return t=(ZJe(),Ndt),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function $rt(e){var t,n,r;e.b==e.c&&(r=e.a.length,n=Bme(b.Math.max(8,r))<<1,e.b!=0?(t=bf(e.a,n),aet(e,t,r),e.a=t,e.b=0):s$e(e.a,n),e.c=r)}function Ion(e,t){var n;return n=e.b,n.Xe((di(),kl))?n.Hf()==(dt(),On)?-n.rf().a-We(gt(n.We(kl))):t+We(gt(n.We(kl))):n.Hf()==(dt(),On)?-n.rf().a:t}function ID(e){var t;return e.b.c.length!=0&&u(It(e.b,0),70).a?u(It(e.b,0),70).a:(t=Lne(e),t??""+(e.c?Ko(e.c.a,e,0):-1))}function xH(e){var t;return e.f.c.length!=0&&u(It(e.f,0),70).a?u(It(e.f,0),70).a:(t=Lne(e),t??""+(e.i?Ko(e.i.j,e,0):-1))}function Oon(e,t){var n,r;if(t<0||t>=e.gc())return null;for(n=t;n<e.gc();++n)if(r=u(e.Xb(n),128),n==e.gc()-1||!r.o)return new _a(lt(n),r);return null}function Non(e,t,n){var r,i,a,h,d;for(a=e.c,d=n?t:e,r=n?e:t,i=d.p+1;i<r.p;++i)if(h=u(It(a.a,i),10),!(h.k==(zn(),V1)||ccn(h)))return!1;return!0}function n3e(e){var t,n,r,i,a;for(a=0,i=Ds,r=0,n=new C(e.a);n.a<n.c.c.length;)t=u(Y(n),187),a+=t.r+(r>0?e.c:0),i=b.Math.max(i,t.d),++r;e.e=a,e.b=i}function Pon(e){var t,n;if(!e.b)for(e.b=Yj(u(e.f,118).Ag().i),n=new ir(u(e.f,118).Ag());n.e!=n.i.gc();)t=u(br(n),137),st(e.b,new Mee(t));return e.b}function Bon(e,t){var n,r,i;if(t.dc())return nx(),nx(),qO;for(n=new HVe(e,t.gc()),i=new ir(e);i.e!=i.i.gc();)r=br(i),t.Hc(r)&&Pr(n,r);return n}function r3e(e,t,n,r){return t==0?r?(!e.o&&(e.o=new Il((iu(),v2),Mw,e,0)),e.o):(!e.o&&(e.o=new Il((iu(),v2),Mw,e,0)),UM(e.o)):gH(e,t,n,r)}function Vie(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t<n;++t)bM(_e(e.rb,t));if(e.vb)for(t=0,n=e.vb.i;t<n;++t)bM(_e(e.vb,t));s_((Uu(),Oa),e),e.Bb|=1}function zi(e,t,n,r,i,a,h,d,v,x,T,L,P,z){return bst(e,t,r,null,i,a,h,d,v,x,P,!0,z),dye(e,T),me(e.Cb,88)&&ny(dl(u(e.Cb,88)),2),n&&dme(e,n),gye(e,L),e}function Fon(e){var t,n;if(e==null)return null;n=0;try{n=Wl(e,za,xi)&Ss}catch(r){if(r=ts(r),me(r,127))t=d$(e),n=t[0];else throw ee(r)}return fD(n)}function Ron(e){var t,n;if(e==null)return null;n=0;try{n=Wl(e,za,xi)&Ss}catch(r){if(r=ts(r),me(r,127))t=d$(e),n=t[0];else throw ee(r)}return fD(n)}function jon(e,t){var n,r,i;return i=e.h-t.h,i<0||(n=e.l-t.l,r=e.m-t.m+(n>>22),i+=r>>22,i<0)?!1:(e.l=n&ml,e.m=r&ml,e.h=i&V0,!0)}function $on(e,t,n,r,i,a,h){var d,v;return!(t.Ae()&&(v=e.a.ue(n,r),v<0||!i&&v==0)||t.Be()&&(d=e.a.ue(n,a),d>0||!h&&d==0))}function Hon(e,t){Gx();var n;if(n=e.j.g-t.j.g,n!=0)return 0;switch(e.j.g){case 2:return gie(t,DEe)-gie(e,DEe);case 4:return gie(e,MEe)-gie(t,MEe)}return 0}function zon(e){switch(e.g){case 0:return Wue;case 1:return Yue;case 2:return Xue;case 3:return Que;case 4:return lq;case 5:return Zue;default:return null}}function Bo(e,t,n){var r,i;return r=(i=new xee,sb(i,t),nu(i,n),Pr((!e.c&&(e.c=new ot(Dw,e,12,10)),e.c),i),i),Eg(r,0),Vm(r,1),Sg(r,!0),Cg(r,!0),r}function X6(e,t){var n,r;if(t>=e.i)throw ee(new vte(t,e.i));return++e.j,n=e.g[t],r=e.i-t-1,r>0&&Rc(e.g,t+1,e.g,t,r),us(e.g,--e.i,null),e.fi(t,n),e.ci(),n}function Hrt(e,t){var n,r;return e.Db>>16==17?e.Cb.ih(e,21,Jh,t):(r=go(u(bn((n=u(Cn(e,16),26),n||e.zh()),e.Db>>16),18)),e.Cb.ih(e,r.n,r.f,t))}function Gon(e){var t,n,r,i;for(fn(),aa(e.c,e.a),i=new C(e.c);i.a<i.c.c.length;)for(r=Y(i),n=new C(e.b);n.a<n.c.c.length;)t=u(Y(n),679),t.Ke(r)}function qon(e){var t,n,r,i;for(fn(),aa(e.c,e.a),i=new C(e.c);i.a<i.c.c.length;)for(r=Y(i),n=new C(e.b);n.a<n.c.c.length;)t=u(Y(n),369),t.Ke(r)}function Von(e){var t,n,r,i,a;for(i=xi,a=null,r=new C(e.d);r.a<r.c.c.length;)n=u(Y(r),213),n.d.j^n.e.j&&(t=n.e.e-n.d.e-n.a,t<i&&(i=t,a=n));return a}function i3e(){i3e=de,kgt=new pn(E6e,(In(),!1)),wgt=new pn(T6e,100),L7e=(x_(),mue),mgt=new pn(_6e,L7e),ygt=new pn(C6e,Ed),xgt=new pn(S6e,lt(xi))}function zrt(e,t,n){var r,i,a,h,d,v,x,T;for(x=0,i=e.a[t],a=0,h=i.length;a<h;++a)for(r=i[a],T=N_(r,n),v=T.Kc();v.Ob();)d=u(v.Pb(),11),Si(e.f,d,lt(x++))}function Uon(e,t,n){var r,i,a,h;if(n)for(i=n.a.length,r=new q2(i),h=(r.b-r.a)*r.c<0?(_p(),x2):new Lp(r);h.Ob();)a=u(h.Pb(),19),an(e,t,Z6(Hm(n,a.a)))}function Kon(e,t,n){var r,i,a,h;if(n)for(i=n.a.length,r=new
\r\f]+`);try{$S=ie(ne(vmn,1),_t,2015,0,[new HL((m2e(),sH("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",kM((VF(),VF(),zC))))),new HL(sH("yyyy-MM-dd'T'HH:mm:ss'.'SSS",kM(zC))),new HL(sH("yyyy-MM-dd'T'HH:mm:ss",kM(zC))),new HL(sH("yyyy-MM-dd'T'HH:mm",kM(zC))),new HL(sH("yyyy-MM-dd",kM(zC)))])}catch(e){if(e=ts(e),!me(e,78))throw ee(e)}}function Jpn(e){var t,n,r,i;if(r=iae((!e.c&&(e.c=mD(e.f)),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return r;if(t=ime(e)<0?1:0,n=e.e,i=(r.length+1+b.Math.abs(_s(e.e)),new ym),t==1&&(i.a+="-"),e.e>0)if(n-=r.length-t,n>=0){for(i.a+="0.";n>_b.length;n-=_b.length)lKe(i,_b);UVe(i,_b,_s(n)),Yr(i,r.substr(t))}else n=t-n,Yr(i,$l(r,t,_s(n))),i.a+=".",Yr(i,dM(r,_s(n)));else{for(Yr(i,r.substr(t));n<-_b.length;n+=_b.length)lKe(i,_b);UVe(i,_b,_s(-n))}return i.a}function y5e(e,t,n,r){var i,a,h,d,v,x,T,L,P;return v=pa(new Ft(n.a,n.b),e),x=v.a*t.b-v.b*t.a,T=t.a*r.b-t.b*r.a,L=(v.a*r.b-v.b*r.a)/T,P=x/T,T==0?x==0?(i=Ni(new Ft(n.a,n.b),fd(new Ft(r.a,r.b),.5)),a=Fp(e,i),h=Fp(Ni(new Ft(e.a,e.b),t),i),d=b.Math.sqrt(r.a*r.a+r.b*r.b)*.5,a<h&&a<=d?new Ft(e.a,e.b):h<=d?Ni(new Ft(e.a,e.b),t):null):null:L>=0&&L<=1&&P>=0&&P<=1?Ni(new Ft(e.a,e.b),fd(new Ft(t.a,t.b),L)):null}function e2n(e,t,n){var r,i,a,h,d;if(r=u(W(e,(mt(),ple)),21),n.a>t.a&&(r.Hc((Jm(),xO))?e.c.a+=(n.a-t.a)/2:r.Hc(EO)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((Jm(),_O))?e.c.b+=(n.b-t.b)/2:r.Hc(TO)&&(e.c.b+=n.b-t.b)),u(W(e,(nt(),Qc)),21).Hc((mo(),Th))&&(n.a>t.a||n.b>t.b))for(d=new C(e.a);d.a<d.c.c.length;)h=u(Y(d),10),h.k==(zn(),Ls)&&(i=u(W(h,vc),61),i==(dt(),$n)?h.n.a+=n.a-t.a:i==Tr&&(h.n.b+=n.b-t.b));a=e.d,e.f.a=n.a-a.b-a.c,e.f.b=n.b-a.d-a.a}function t2n(e,t,n){var r,i,a,h,d;if(r=u(W(e,(mt(),ple)),21),n.a>t.a&&(r.Hc((Jm(),xO))?e.c.a+=(n.a-t.a)/2:r.Hc(EO)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((Jm(),_O))?e.c.b+=(n.b-t.b)/2:r.Hc(TO)&&(e.c.b+=n.b-t.b)),u(W(e,(nt(),Qc)),21).Hc((mo(),Th))&&(n.a>t.a||n.b>t.b))for(h=new C(e.a);h.a<h.c.c.length;)a=u(Y(h),10),a.k==(zn(),Ls)&&(i=u(W(a,vc),61),i==(dt(),$n)?a.n.a+=n.a-t.a:i==Tr&&(a.n.b+=n.b-t.b));d=e.d,e.f.a=n.a-d.b-d.c,e.f.b=n.b-d.d-d.a}function n2n(e){var t,n,r,i,a,h,d,v,x,T,L,P;for(t=Jst(e),T=(d=new pm(t).a.vc().Kc(),new FL(d));T.a.Ob();){for(x=(i=u(T.a.Pb(),42),u(i.cd(),10)),L=0,P=0,L=x.d.d,P=x.o.b+x.d.a,e.d[x.p]=0,n=x;(a=e.a[n.p])!=x;)r=gan(n,a),v=0,e.c==(bd(),$g)?v=r.d.n.b+r.d.a.b-r.c.n.b-r.c.a.b:v=r.c.n.b+r.c.a.b-r.d.n.b-r.d.a.b,h=We(e.d[n.p])+v,e.d[a.p]=h,L=b.Math.max(L,a.d.d-h),P=b.Math.max(P,h+a.o.b+a.d.a),n=a;n=x;do e.d[n.p]=We(e.d[n.p])+L,n=e.a[n.p];while(n!=x);e.b[x.p]=L+P}}function zse(e){var t,n,r,i,a,h,d,v,x,T,L,P;for(e.b=!1,L=ps,v=Ds,P=ps,x=Ds,r=e.e.a.ec().Kc();r.Ob();)for(n=u(r.Pb(),266),i=n.a,L=b.Math.min(L,i.c),v=b.Math.max(v,i.c+i.b),P=b.Math.min(P,i.d),x=b.Math.max(x,i.d+i.a),h=new C(n.c);h.a<h.c.c.length;)a=u(Y(h),395),t=a.a,t.a?(T=i.d+a.b.b,d=T+a.c,P=b.Math.min(P,T),x=b.Math.max(x,d)):(T=i.c+a.b.a,d=T+a.c,L=b.Math.min(L,T),v=b.Math.max(v,d));e.a=new Ft(v-L,x-P),e.c=new Ft(L+e.d.a,P+e.d.b)}function r2n(e,t,n){var r,i,a,h,d,v,x,T,L;for(L=new at,T=new rwe(0,n),a=0,T$(T,new Kre(0,0,T,n)),i=0,x=new ir(e);x.e!=x.i.gc();)v=u(br(x),33),r=u(It(T.a,T.a.c.length-1),187),d=i+v.g+(u(It(T.a,0),187).b.c.length==0?0:n),d>t&&(i=0,a+=T.b+n,L.c[L.c.length]=T,T=new rwe(a,n),r=new Kre(0,T.f,T,n),T$(T,r),i=0),r.b.c.length==0||v.f>=r.o&&v.f<=r.f||r.a*.5<=v.f&&r.a*1.5>=v.f?bye(r,v):(h=new Kre(r.s+r.r+n,T.f,T,n),T$(T,h),bye(h,v)),i=v.i+v.g;return L.c[L.c.length]=T,L}function g4(e){var t,n,r,i,a,h,d,v;if(!e.a){if(e.o=null,v=new $je(e),t=new dp,n=GS,d=n.a.zc(e,n),d==null){for(h=new ir(Ro(e));h.e!=h.i.gc();)a=u(br(h),26),ds(v,g4(a));n.a.Bc(e)!=null,n.a.gc()==0}for(i=(!e.s&&(e.s=new ot(Bu,e,21,17)),new ir(e.s));i.e!=i.i.gc();)r=u(br(i),170),me(r,322)&&Pr(t,u(r,34));Um(t),e.k=new qUe(e,(u(_e(qe((Op(),Tn).o),7),18),t.i),t.g),ds(v,e.k),Um(v),e.a=new N3((u(_e(qe(Tn.o),4),18),v.i),v.g),dl(e).b&=-2}return e.a}function i2n(e,t,n,r,i,a,h){var d,v,x,T,L,P;return L=!1,v=zat(n.q,t.f+t.b-n.q.f),P=i-(n.q.e+v-h),P<r.g||(x=a==e.c.length-1&&P>=(En(a,e.c.length),u(e.c[a],200)).e,T=(d=aC(r,P,!1),d.a),T>t.b&&!x)?!1:((x||T<=t.b)&&(x&&T>t.b?(n.d=T,KM(n,Uit(n,T))):(hit(n.
\r\r `),Io(r5,Nce,r),Io(xE,Nce,oy(r)),r=new zl(4),SD(r,ddt),Io(r5,HC,r),Io(xE,HC,oy(r)),r=new zl(4),SD(r,ddt),Io(r5,HC,r),Io(xE,HC,oy(r)),r=new zl(4),SD(r,gdt),cy(r,u(Gc(r5,HC),117)),Io(r5,Oce,r),Io(xE,Oce,oy(r)),r=new zl(4),SD(r,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँअह़्॑॔क़ॣ९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼ੴઁઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૯ଁଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൯กฮะฺเ๎๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩↀↂ々々〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Io(r5,Pce,r),Io(xE,Pce,oy(r)),r=new zl(4),SD(r,gdt),Uc(r,95,95),Uc(r,58,58),Io(r5,Bce,r),Io(xE,Bce,oy(r))),n=u(Gc(t?r5:xE,e),136),n}function jwn(e){Br(e.a,Zr,ie(ne(Et,1),Je,2,6,[fi,"anySimpleType"])),Br(e.b,Zr,ie(ne(Et,1),Je,2,6,[fi,"anyType",Gh,II])),Br(u(_e(qe(e.b),0),34),Zr,ie(ne(Et,1),Je,2,6,[Gh,Ace,fi,":mixed"])),Br(u(_e(qe(e.b),1),34),Zr,ie(ne(Et,1),Je,2,6,[Gh,Ace,Y8e,Mce,fi,":1",J1t,"lax"])),Br(u(_e(qe(e.b),2),34),Zr,ie(ne(Et,1),Je,2,6,[Gh,Y1t,Y8e,Mce,fi,":2",J1t,"lax"])),Br(e.c,Zr,ie(ne(Et,1),Je,2,6,[fi,"anyURI",Vh,s1])),Br(e.d,Zr,ie(ne(Et,1),Je,2,6,[fi,"base64Binary",Vh,s1])),Br(e.e,Zr,ie(ne(Et,1),Je,2,6,[fi,nk,Vh,s1])),Br(e.f,Zr,ie(ne(Et,1),Je,2,6,[fi,"boolean:Object",Ga,nk])),Br(e.g,Zr,ie(ne(Et,1),Je,2,6,[fi,NC])),Br(e.i,Zr,ie(ne(Et,1),Je,2,6,[fi,"byte:Object",Ga,NC])),Br(e.j,Zr,ie(ne(Et,1),Je,2,6,[fi,"date",Vh,s1])),Br(e.k,Zr,ie(ne(Et,1),Je,2,6,[fi,"dateTime",Vh,s1])),Br(e.n,Zr,ie(ne(Et,1),Je,2,6,[fi,"decimal",Vh,s1])),Br(e.o,Zr,ie(ne(Et,1),Je,2,6,[fi,PC,Vh,s1])),Br(e.p,Zr,ie(ne(Et,1),Je,2,6,[fi,"double:Object",Ga,PC])),Br(e.q,Zr,ie(ne(Et,1),Je,2,6,[fi,"duration",Vh,s1])),Br(e.s,Zr,ie(ne(Et,1),Je,2,6,[fi,"ENTITIES",Ga,edt,X8e,"1"])),Br(e.r,Zr,ie(ne(Et,1),Je,2,6,[fi,edt,Lce,Q8e])),Br(e.t,Zr,ie(ne(Et,1),Je,2,6,[fi,Q8e,Ga,lG])),Br(e.u,Zr,ie(ne(Et,1),Je,2,6,[fi,BC,Vh,s1])),Br(e.v,Zr,ie(ne(Et,1),Je,2,6,[fi,"float:Object",Ga,BC])),Br(e.w,Zr,ie(ne(Et,1),Je,2,6,[fi,"gDay",Vh,s1])),Br(e.B,Zr,ie(ne(Et,1),Je,2,6,[fi,"gMonth",Vh,s1])),Br(e.A,Zr,ie(ne(Et,1),Je,2,6,[fi,"gMonthDay",Vh,s1])),Br(e.C,Zr,ie(ne(Et,1),Je,2,6,[fi,"gYear",Vh,s1])),Br(e.D,Zr,ie(ne(Et,1),Je,2,6,[fi,"gYearMonth",Vh,s1])),Br(e.F,Zr,ie(ne(Et,1),Je,2,6,[fi,"hexBinary",Vh,s1])),Br(e.G,Zr,ie(ne(Et,1),Je,2,6,[fi,"ID",Ga,lG])),Br(e.H,Zr,ie(ne(Et,1),Je,2,6,[fi,"IDREF",Ga,lG])),Br(e.J,Zr,ie(ne(Et,1),Je,2,6,[fi,"IDREFS",Ga,tdt,X8e,"1"])),Br(e.I,Zr,ie(ne(Et,1),Je,2,6,[fi,tdt,Lce,"IDREF"])),Br(e.K,Zr,ie(ne(Et,1),Je,2,6,[fi,FC])),Br(e.M,Zr,ie(ne(Et,1),Je,2,6,[fi,Z8e])),Br(e.L,Zr,ie(ne(Et,1),Je,2,6,[fi,"int:Object",Ga,FC])),Br(e.P,Zr,ie(ne(Et,1),Je,2,6,[fi,"language",Ga,Dce,Ice,ndt])),Br(e.Q,Zr,ie(ne(Et,1),Je,2,6,[fi,RC])),Br(e.R,Zr,ie(ne(Et,1),Je,2,6,[fi,"long:Object",Ga,RC])),Br(e.S,Zr,ie(ne(Et,1),Je,2,6,[fi,"Name",Ga,Dce,Ice,J8e])),Br(e.T,Zr,ie(ne(Et,1),Je,2,6,[fi,lG,Ga,"Name
`,cht=`)]}"' \r
`,uht="The given string contains parts that cannot be parsed as numbers.",xI="org.eclipse.elk.core.math",lht={3:1,4:1,142:1,207:1,414:1},hht={3:1,4:1,116:1,207:1,414:1},qn="org.eclipse.elk.layered",Ng="org.eclipse.elk.alg.layered.graph.transform",fht="ElkGraphImporter",dht="ElkGraphImporter/lambda$0$Type",ght="ElkGraphImporter/lambda$1$Type",pht="ElkGraphImporter/lambda$2$Type",bht="ElkGraphImporter/lambda$4$Type",vht="Node margin calculation",Bn="org.eclipse.elk.alg.layered.intermediate",wht="ONE_SIDED_GREEDY_SWITCH",mht="TWO_SIDED_GREEDY_SWITCH",uoe="No implementation is available for the layout processor ",L6e="IntermediateProcessorStrategy",loe="Node '",yht="FIRST_SEPARATE",kht="LAST_SEPARATE",xht="Odd port side processing",Is="org.eclipse.elk.alg.layered.intermediate.compaction",kC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",a0="org.eclipse.elk.alg.layered.p3order.counting",EI={225:1},dk="org.eclipse.elk.alg.layered.intermediate.loops",Ql="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Zp="org.eclipse.elk.alg.layered.intermediate.loops.routing",xC="org.eclipse.elk.alg.layered.intermediate.preserveorder",_d="org.eclipse.elk.alg.layered.intermediate.wrapping",Dc="org.eclipse.elk.alg.layered.options",hoe="INTERACTIVE",Eht="DEPTH_FIRST",Tht="EDGE_LENGTH",_ht="SELF_LOOPS",Cht="firstTryWithInitialOrder",M6e="org.eclipse.elk.layered.directionCongruency",D6e="org.eclipse.elk.layered.feedbackEdges",Ez="org.eclipse.elk.layered.interactiveReferencePoint",I6e="org.eclipse.elk.layered.mergeEdges",O6e="org.eclipse.elk.layered.mergeHierarchyEdges",N6e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",P6e="org.eclipse.elk.layered.portSortingStrategy",B6e="org.eclipse.elk.layered.thoroughness",F6e="org.eclipse.elk.layered.unnecessaryBendpoints",R6e="org.eclipse.elk.layered.generatePositionAndLayerIds",foe="org.eclipse.elk.layered.cycleBreaking.strategy",TI="org.eclipse.elk.layered.layering.strategy",j6e="org.eclipse.elk.layered.layering.layerConstraint",$6e="org.eclipse.elk.layered.layering.layerChoiceConstraint",H6e="org.eclipse.elk.layered.layering.layerId",doe="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",goe="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",poe="org.eclipse.elk.layered.layering.nodePromotion.strategy",boe="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",voe="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",EC="org.eclipse.elk.layered.crossingMinimization.strategy",z6e="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",woe="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",moe="org.eclipse.elk.layered.crossingMinimization.semiInteractive",G6e="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",q6e="org.eclipse.elk.layered.crossingMinimization.positionId",V6e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",yoe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",Tz="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",x4="org.eclipse.elk.layered.nodePlacement.strategy",_z="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",koe="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",xoe="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Eoe="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Toe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",_oe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",U6e="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",K6e="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",Cz="org.eclipse.elk.layered.edgeRouting.splines.mode",Sz="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Coe="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",W6e="org.eclipse.elk.layered.spacing.baseValue",Y6e="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",X6e="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Q6e="org.eclipse.elk.layered.sp
`,t=lt(0),h=0;h<this.p;h++){for(r+=""+t.a,t=lt(VVe(t.a)),i=0;i<this.o;i++)n=Ire(this,i,h),Lc(n,0)==0?r+="_":Lc(n,1)==0?r+="X":r+="0";r+=`
`}return $l(r,0,r.length-1)},l.o=0,l.p=0,O(gz,"TwoBitGrid",1298),M(321,1298,{321:1},Mye),l.j=0,l.k=0,O(gz,"PlanarGrid",321),M(167,321,{321:1,167:1}),l.g=0,l.i=0,O(gz,"Polyomino",167);var nmn=rs(vI,Ult);M(134,1,l6e,Qb),l.Ye=function(t,n){return bD(this,t,n)},l.Ve=function(){return dKe(this)},l.We=function(t){return W(this,t)},l.Xe=function(t){return Js(this,t)},O(vI,"MapPropertyHolder",134),M(1299,134,l6e,Wat),O(gz,"Polyominoes",1299);var H0t=!1,VC,d7e;M(1766,1,Vn,rm),l.td=function(t){Uct(u(t,221))},O(ck,"DepthFirstCompaction/0methodref$compactTree$Type",1766),M(810,1,Vn,ri),l.td=function(t){jXt(this.a,u(t,221))},O(ck,"DepthFirstCompaction/lambda$1$Type",810),M(1767,1,Vn,CUe),l.td=function(t){uan(this.a,this.b,this.c,u(t,221))},O(ck,"DepthFirstCompaction/lambda$2$Type",1767);var UC,g7e;M(65,1,{65:1},OYe),O(ck,"Node",65),M(1250,1,{},Nqe),O(ck,"ScanlineOverlapCheck",1250),M(1251,1,{679:1},JWe),l.Ke=function(t){xUt(this,u(t,440))},O(ck,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251),M(1252,1,Ri,Rd),l.ue=function(t,n){return Vin(u(t,65),u(n,65))},l.Fb=function(t){return this===t},l.ve=function(){return new oe(this)},O(ck,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252),M(440,1,{440:1},Bpe),l.a=!1,O(ck,"ScanlineOverlapCheck/Timestamp",440),M(1253,1,Ri,cs),l.ue=function(t,n){return kcn(u(t,440),u(n,440))},l.Fb=function(t){return this===t},l.ve=function(){return new oe(this)},O(ck,"ScanlineOverlapCheck/lambda$0$Type",1253),M(550,1,{},Es),O(Klt,"SVGImage",550),M(324,1,{324:1},Lbe),l.Ib=function(){return"("+this.a+so+this.b+so+this.c+")"},O(Klt,"UniqueTriple",324),M(209,1,bb),O(m4,"AbstractLayoutProvider",209),M(1132,209,bb,Ya),l.Ze=function(t,n){var r,i,a,h;switch(Er(n,Wlt,1),this.a=We(gt(jt(t,(H_(),y7e)))),X2(t,hue)&&(a=Hr(jt(t,hue)),r=Dse(Dx(),a),r&&(i=u(Bne(r.f),209),i.Ze(t,Vc(n,1)))),h=new YXe(this.a),this.b=lvn(h,t),u(jt(t,(Jre(),b7e)),481).g){case 0:Cfn(new Ei,this.b),So(t,MG,W(this.b,MG));break;default:Gd()}wvn(h),So(t,w7e,this.b),lr(n)},l.a=0,O(Ylt,"DisCoLayoutProvider",1132),M(1244,1,{},Ei),l.c=!1,l.e=0,l.f=0,O(Ylt,"DisCoPolyominoCompactor",1244),M(561,1,{561:1},wKe),l.b=!0,O(bz,"DCComponent",561),M(394,22,{3:1,35:1,22:1,394:1},gR),l.a=!1;var AG,VI,LG,UI,z0t=Gr(bz,"DCDirection",394,Kr,TJt,hKt),G0t;M(266,134,{3:1,266:1,94:1,134:1},vse),O(bz,"DCElement",266),M(395,1,{395:1},e3e),l.c=0,O(bz,"DCExtension",395),M(755,134,l6e,pHe),O(bz,"DCGraph",755),M(481,22,{3:1,35:1,22:1,481:1},mVe);var lue,p7e=Gr(Jae,h6e,481,Kr,eQt,fKt),q0t;M(854,1,$h,sJ),l.Qe=function(t){tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,f6e),Xlt),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),v7e),(Dg(),ws)),p7e),sn((t1(),jn))))),tn(t,new Vt(Jt(Zt(en(Wt(Qt(Yt(Xt(new zt,d6e),Xlt),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),gE),Et),sn(jn)))),tn(t,new Vt(Jt(Zt(en(Wt(Qt(Yt(Xt(new zt,g6e),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),W1),Xn),sn(jn)))),tn(t,new Vt(Jt(Zt(en(Wt(Qt(Yt(Xt(new zt,p6e),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),W1),Xn),sn(jn)))),Nct((new iF,t))};var V0t,b7e,v7e,U0t,K0t;O(Jae,"DisCoMetaDataProvider",854),M(998,1,$h,iF),l.Qe=function(t){Nct(t)};var W0t,hue,Y0t,w7e,MG,fue,m7e,X0t,Q0t,Z0t,J0t,y7e;O(Jae,"DisCoOptions",998),M(999,1,{},uc),l.$e=function(){var t;return t=new Ya,t},l._e=function(t){},O(Jae,"DisCoOptions/DiscoFactory",999),M(562,167,{321:1,167:1,562:1},Dat),l.a=0,l.b=0,l.c=0,l.d=0,O("org.eclipse.elk.alg.disco.structures","DCPolyomino",562);var due,gue,DG;M(1268,1,gi,Ot),l.Mb=function(t){return h2e(t)},O(y4,"ElkGraphComponentsProcessor/lambda$0$Type",1268),M(1269,1,{},im),l.Kb=function(t){return I6(),Jd(u(t,79))},O(y4,"ElkGraphComponentsProcessor/lambda$1$Type",1269),M(1270,1,gi,Kt),l.Mb=function(t){return hYt(u(t,79))},O(y4,"ElkGraphCom
start=`,kc(t,this.i),t.a+=`
end=`,kc(t,this.a),t.a+=`
nodeStartEdge=`,kc(t,this.e),t.a+=`
startEndEdge=`,kc(t,this.j),t.a+=`
originalEdge=`,kc(t,this.f),t.a+=`
startInLayerDummy=`,kc(t,this.k),t.a+=`
startInLayerEdge=`,kc(t,this.n),t.a+=`
endInLayerDummy=`,kc(t,this.b),t.a+=`
endInLayerEdge=`,kc(t,this.c),t.a},O(_d,"BreakingPointInserter/BPInfo",305),M(652,1,{652:1},wp),l.a=!1,l.b=0,l.c=0,O(_d,"BreakingPointInserter/Cut",652),M(1480,1,bs,kX),l.pf=function(t,n){j1n(u(t,37),n)},O(_d,"BreakingPointProcessor",1480),M(1481,1,gi,xX),l.Mb=function(t){return dJe(u(t,10))},O(_d,"BreakingPointProcessor/0methodref$isEnd$Type",1481),M(1482,1,gi,EX),l.Mb=function(t){return gJe(u(t,10))},O(_d,"BreakingPointProcessor/1methodref$isStart$Type",1482),M(1483,1,bs,TX),l.pf=function(t,n){cdn(this,u(t,37),n)},O(_d,"BreakingPointRemover",1483),M(1484,1,Vn,_X),l.td=function(t){u(t,128).k=!0},O(_d,"BreakingPointRemover/lambda$0$Type",1484),M(797,1,{},T4e),l.b=0,l.e=0,l.f=0,l.j=0,O(_d,"GraphStats",797),M(798,1,{},cB),l.Ce=function(t,n){return b.Math.max(We(gt(t)),We(gt(n)))},O(_d,"GraphStats/0methodref$max$Type",798),M(799,1,{},uB),l.Ce=function(t,n){return b.Math.max(We(gt(t)),We(gt(n)))},O(_d,"GraphStats/2methodref$max$Type",799),M(1660,1,{},CX),l.Ce=function(t,n){return KWt(gt(t),gt(n))},O(_d,"GraphStats/lambda$1$Type",1660),M(1661,1,{},uT),l.Kb=function(t){return irt(this.a,u(t,29))},O(_d,"GraphStats/lambda$2$Type",1661),M(1662,1,{},IF),l.Kb=function(t){return jat(this.a,u(t,29))},O(_d,"GraphStats/lambda$6$Type",1662),M(800,1,{},lB),l.Vf=function(t,n){var r;return r=u(W(t,(mt(),ATe)),15),r||(fn(),fn(),bo)},l.Wf=function(){return!1},O(_d,"ICutIndexCalculator/ManualCutIndexCalculator",800),M(802,1,{},hB),l.Vf=function(t,n){var r,i,a,h,d,v,x,T,L,P,z,q,K,Q,ue,Se,Te,Ne,Ke;for(Ke=(n.n==null&&Art(n),n.n),x=(n.d==null&&Art(n),n.d),Ne=Ie(va,Ao,25,Ke.length,15,1),Ne[0]=Ke[0],Se=Ke[0],T=1;T<Ke.length;T++)Ne[T]=Ne[T-1]+Ke[T],Se+=Ke[T];for(a=qit(n)-1,d=u(W(t,(mt(),LTe)),19).a,i=Ds,r=new at,z=b.Math.max(0,a-d);z<=b.Math.min(n.f-1,a+d);z++){if(Q=Se/(z+1),ue=0,L=1,h=new at,Te=Ds,P=0,v=0,K=x[0],z==0)Te=Se,v=(n.g==null&&(n.g=yet(n,new uB)),We(n.g));else{for(;L<n.f;)Ne[L-1]-ue>=Q&&(st(h,lt(L)),Te=b.Math.max(Te,Ne[L-1]-P),v+=K,ue+=Ne[L-1]-ue,P=Ne[L-1],K=x[L]),K=b.Math.max(K,x[L]),++L;v+=K}q=b.Math.min(1/Te,1/n.b/v),q>i&&(i=q,r=h)}return r},l.Wf=function(){return!1},O(_d,"MSDCutIndexHeuristic",802),M(1617,1,bs,SX),l.pf=function(t,n){Npn(u(t,37),n)},O(_d,"SingleEdgeGraphWrapper",1617),M(227,22,{3:1,35:1,22:1,227:1},IT);var N4,X7,Q7,Ty,XC,P4,Z7=Gr(Dc,"CenterEdgeLabelPlacementStrategy",227,Kr,Ven,EKt),ypt;M(422,22,{3:1,35:1,22:1,422:1},zpe);var OEe,Gue,NEe=Gr(Dc,"ConstraintCalculationStrategy",422,Kr,PQt,TKt),kpt;M(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},Yee),l.Kf=function(){return Dst(this)},l.Xf=function(){return Dst(this)};var ZI,yk,PEe,BEe=Gr(Dc,"CrossingMinimizationStrategy",314,Kr,SZt,_Kt),xpt;M(337,22,{3:1,35:1,22:1,337:1},Xee);var FEe,que,cq,REe=Gr(Dc,"CuttingStrategy",337,Kr,AZt,AKt),Ept;M(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},rM),l.Kf=function(){return vat(this)},l.Xf=function(){return vat(this)};var jEe,Vue,QC,Uue,ZC,$Ee=Gr(Dc,"CycleBreakingStrategy",335,Kr,ven,LKt),Tpt;M(419,22,{3:1,35:1,22:1,419:1},Gpe);var uq,HEe,zEe=Gr(Dc,"DirectionCongruency",419,Kr,NQt,MKt),_pt;M(450,22,{3:1,35:1,22:1,450:1},Qee);var J7,Kue,B4,Cpt=Gr(Dc,"EdgeConstraint",450,Kr,LZt,DKt),Spt;M(276,22,{3:1,35:1,22:1,276:1},OT);var Wue,Yue,Xue,Que,lq,Zue,GEe=Gr(Dc,"EdgeLabelSideSelection",276,Kr,Yen,IKt),Apt;M(479,22,{3:1,35:1,22:1,479:1},qpe);var hq,qEe,VEe=Gr(Dc,"EdgeStraighteningStrategy",479,Kr,OQt,OKt),Lpt;M(274,22,{3:1,35:1,22:1,274:1},NT);var Jue,UEe,KEe,fq,WEe,YEe,XEe=Gr(Dc,"FixedAlignment",274,Kr,Ken,NKt),Mpt;M(275,22,{3:1,35:1,22:1,275:1},PT);var QEe,ZEe,JEe,e9e,JC,t9e,n9e=Gr(Dc,"GraphCompactionStrategy",275,Kr,Uen,PKt),Dpt;M(256,22,{3:1,35:1,22:1,256:1},Em);var eE,dq,tE,Th,eS,gq,nE,F4,pq,tS,ele=Gr(Dc,"GraphProperties",256,Kr,Nnn,BKt),Ipt;M(292,22,{3:1,35:1,22:1,292:1},Zee);var JI,tle,nle,rle=Gr(Dc,"GreedySwitchType",292,Kr,IZt,FKt),Opt;M(303,22,{3:1,35:1,22:1,303:1},Jee);var kk,eO,R4,Npt=Gr(Dc,"InLayerConstraint",303,Kr,DZt,RKt),Ppt;M(420,22,{3:1,35:1,22:1,420:1},Vpe);var ile,r9e,i9e=Gr(Dc,"InteractiveReferencePoint",420,Kr,BQt,jKt),Bpt,s9e,xk,mw,bq,a9e,o9e,vq,c9e,tO,wq,nS,Ek,_y,sle,mq,vc,u9e,yw,Qc,ale,ole,nO,Cb,kw,Tk,l9e,_k,rO,Cy,o1,Kh,cle,
`;for(n=si(this.a,0);n.b!=n.d.c;)t=u(ii(n),188),a+=(t.b&&t.c?Vj(t.b)+"->"+Vj(t.c):"e_"+Yi(t))+`
`;return a};var lmn=O(CC,"TGraph",135);M(633,502,{3:1,502:1,633:1,94:1,134:1}),O(CC,"TShape",633),M(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},Ure),l.Ib=function(){return Vj(this)};var hmn=O(CC,"TNode",86);M(255,1,t0,mp),l.Jc=function(t){Da(this,t)},l.Kc=function(){var t;return t=si(this.a.d,0),new u6(t)},O(CC,"TNode/2",255),M(358,1,ba,u6),l.Nb=function(t){La(this,t)},l.Pb=function(){return u(ii(this.a),188).c},l.Ob=function(){return QF(this.a)},l.Qb=function(){w$(this.a)},O(CC,"TNode/2/1",358),M(1840,1,bs,eUe),l.pf=function(t,n){xpn(this,u(t,135),n)},O(gk,"FanProcessor",1840),M(327,22,{3:1,35:1,22:1,327:1,234:1},FT),l.Kf=function(){switch(this.g){case 0:return new $$e;case 1:return new eUe;case 2:return new q5;case 3:return new yQ;case 4:return new xQ;case 5:return new dL;default:throw ee(new Dn(uoe+(this.f!=null?this.f:""+this.g)))}};var Kle,Wle,Yle,Xle,Qle,Kq,cwt=Gr(gk,L6e,327,Kr,Xen,oWt),uwt;M(1843,1,bs,yQ),l.pf=function(t,n){i1n(this,u(t,135),n)},l.a=0,O(gk,"LevelHeightProcessor",1843),M(1844,1,t0,kQ),l.Jc=function(t){Da(this,t)},l.Kc=function(){return fn(),K8(),z7},O(gk,"LevelHeightProcessor/1",1844),M(1841,1,bs,q5),l.pf=function(t,n){hhn(this,u(t,135),n)},l.a=0,O(gk,"NeighborsProcessor",1841),M(1842,1,t0,pB),l.Jc=function(t){Da(this,t)},l.Kc=function(){return fn(),K8(),z7},O(gk,"NeighborsProcessor/1",1842),M(1845,1,bs,xQ),l.pf=function(t,n){r1n(this,u(t,135),n)},l.a=0,O(gk,"NodePositionProcessor",1845),M(1839,1,bs,$$e),l.pf=function(t,n){L2n(this,u(t,135))},O(gk,"RootProcessor",1839),M(1846,1,bs,dL),l.pf=function(t,n){Rin(u(t,135))},O(gk,"Untreeifyer",1846);var bO,yS,lwt,Zle,Wq,kS,Jle,Yq,Xq,fE,xS,Qq,Hg,h_e,hwt,ehe,Ry,the,f_e;M(851,1,$h,k3),l.Qe=function(t){tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,Wke),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),g_e),(Dg(),ws)),k_e),sn((t1(),jn))))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,Yke),""),"Search Order"),"Which search order to use when computing a spanning tree."),d_e),ws),E_e),sn(jn)))),lut((new AL,t))};var fwt,d_e,dwt,g_e;O(Hz,"MrTreeMetaDataProvider",851),M(994,1,$h,AL),l.Qe=function(t){lut(t)};var gwt,p_e,pwt,bwt,vwt,wwt,b_e,mwt,v_e,ywt,Zq,w_e,kwt,m_e,xwt;O(Hz,"MrTreeOptions",994),M(995,1,{},EQ),l.$e=function(){var t;return t=new tUe,t},l._e=function(t){},O(Hz,"MrTreeOptions/MrtreeFactory",995),M(480,22,{3:1,35:1,22:1,480:1},Jpe);var nhe,y_e,k_e=Gr(Hz,"OrderWeighting",480,Kr,qQt,cWt),Ewt;M(425,22,{3:1,35:1,22:1,425:1},e2e);var x_e,rhe,E_e=Gr(Hz,"TreeifyingOrder",425,Kr,GQt,lWt),Twt;M(1459,1,Wc,SL),l.Yf=function(t){return u(t,135),_wt},l.pf=function(t,n){Fnn(this,u(t,135),n)};var _wt;O("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),M(1460,1,Wc,_J),l.Yf=function(t){return u(t,135),Cwt},l.pf=function(t,n){khn(this,u(t,135),n)};var Cwt;O("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),M(1461,1,Wc,TJ),l.Yf=function(t){return u(t,135),Swt},l.pf=function(t,n){R0n(this,u(t,135),n)},l.a=0;var Swt;O("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),M(1462,1,Wc,uF),l.Yf=function(t){return u(t,135),Awt},l.pf=function(t,n){lcn(u(t,135),n)};var Awt;O("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var ES;M(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},t2e),l.Kf=function(){return bnt(this)},l.Xf=function(){return bnt(this)};var Jq,dE,T_e=Gr(Xke,"RadialLayoutPhases",495,Kr,VQt,uWt),Lwt;M(1131,209,bb,NHe),l.Ze=function(t,n){var r,i,a,h,d,v;if(r=mst(this,t),Er(n,"Radial layout",r.c.length),Bt(Nt(jt(t,(Qm(),N_e))))||Rj((i=new ar((xm(),new wm(t))),i)),v=Sun(t),So(t,(JT(),ES),v),!v)throw ee(new Dn("The given graph is not a tree!"));for(a=We(gt(jt(t,nV))),a==0&&(a=Ost(t)),So(t,nV,a),d=new C(mst(this,t));d.a<d.c.c.length;)h=u(Y(d),51),h.pf(t,Vc(n,1));lr(n)},O(Xke,"RadialLayoutProvider",1131),M(549,1,Ri,ZF),l.ue=function(t,n){return J0n(this.a,this.b,u(t,33),u(n,33))},l.Fb=function(t){return this===t},l.ve=function(){return new oe(this)},l.a=0,l.b=0,O(Xke,"RadialUtil/lambda$0$Type",549),M(1375,1,bs,_Q),l.pf=function(t,n){wbn(u(t,33),n)},O(Vht,"CalculateGraphSize",1375),M(442,22,{3:1,35:1,22:1,442:1,234:1},cte),l.Kf=functi
`),a.length!=2)throw ee(new Dn("Exactly two numbers are expected, "+a.length+" were found."));try{this.a=ty(ey(a[0])),this.b=ty(ey(a[1]))}catch(h){throw h=ts(h),me(h,127)?(r=h,ee(new Dn(uht+r))):ee(h)}},l.Ib=function(){return"("+this.a+","+this.b+")"},l.a=0,l.b=0;var ea=O(xI,"KVector",8);M(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},$u,YF,EVe),l.Pc=function(){return Xrn(this)},l.Jf=function(t){var n,r,i,a,h,d;i=ay(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),Ph(this);try{for(r=0,h=0,a=0,d=0;r<i.length;)i[r]!=null&&ey(i[r]).length>0&&(h%2==0?a=ty(i[r]):d=ty(i[r]),h>0&&h%2!=0&&oi(this,new Ft(a,d)),++h),++r}catch(v){throw v=ts(v),me(v,127)?(n=v,ee(new Dn("The given string does not match the expected format for vectors."+n))):ee(v)}},l.Ib=function(){var t,n,r;for(t=new jl("("),n=si(this,0);n.b!=n.d.c;)r=u(ii(n),8),Yr(t,r.a+","+r.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var OCe=O(xI,"KVectorChain",74);M(248,22,{3:1,35:1,22:1,248:1},RT);var The,uV,lV,yO,kO,hV,NCe=Gr(zh,"Alignment",248,Kr,qen,SWt),Wmt;M(979,1,$h,AJ),l.Qe=function(t){sct(t)};var PCe,_he,Ymt,BCe,FCe,Xmt,RCe,Qmt,Zmt,jCe,$Ce,Jmt;O(zh,"BoxLayouterOptions",979),M(980,1,{},sZ),l.$e=function(){var t;return t=new hZ,t},l._e=function(t){},O(zh,"BoxLayouterOptions/BoxFactory",980),M(291,22,{3:1,35:1,22:1,291:1},jT);var xO,Che,EO,TO,_O,She,Ahe=Gr(zh,"ContentAlignment",291,Kr,Gen,AWt),eyt;M(684,1,$h,gp),l.Qe=function(t){tn(t,new Vt(Jt(Zt(en(Wt(Qt(Yt(Xt(new zt,ift),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Dg(),gE)),Et),sn((t1(),jn))))),tn(t,new Vt(Jt(Zt(en(Wt(Qt(Yt(Xt(new zt,sft),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),W1),gmn),sn(jn)))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,Cke),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),HCe),ws),NCe),sn(ua)))),tn(t,new Vt(Jt(Zt(en(Wt(Qt(Yt(Xt(new zt,uk),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Go),ka),sn(jn)))),tn(t,new Vt(Jt(Zt(en(Wt(Qt(Yt(Xt(new zt,y8e),""),"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."),W1),OCe),sn(Nd)))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,Fz),""),"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."),GCe),Ik),Ahe),sn(jn)))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,AI),""),"Debug Mode"),"Whether additional debug information shall be generated."),(In(),!1)),qa),Vs),sn(jn)))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,Lke),""),u6e),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),qCe),ws),MS),sn(jn)))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,CI),""),"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."),KCe),ws),Hhe),sn(jn)))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,Gz),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),qa),Vs),sn(jn)))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,Bz),""),"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`."),QCe),ws),BSe),Vi(jn,ie(ne(Gg,1),rt,175,0,[ua]))))),tn(t,new Vt(Jt(Zt(en(vn(Wt(Qt(Yt(Xt(new zt,cw),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output op
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!j.workerFactory){var ae=f("./elk-worker.min.js"),le=ae.Worker;j.workerFactory=function(ce){return new le(ce)}}return b(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,j))}return F}(A);Object.defineProperty(p.exports,"__esModule",{value:!0}),p.exports=N,N.default=N},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(f,p,w){p.exports=Worker},{}]},{},[3])(3)})})(LHt);const MHt=GAe(ige),GFe=new MHt,nm={},DHt={};let D5={};const IHt=function(s,o,f,p,w,k,b){const _=f.select(`[id="${o}"]`),A=_.insert("g").attr("class","nodes");return Object.keys(s).forEach(function(B){const F=s[B];let H="default";F.classes.length>0&&(H=F.classes.join(" "));const j=qw(F.styles);let V=F.text!==void 0?F.text:F.id,Z;const ae={width:0,height:0};if(l1(Pt().flowchart.htmlLabels)){const re={label:V.replace(/fa[blrs]?:fa-[\w-]+/g,ke=>`<i class='${ke.replace(":"," ")}'></i>`)};Z=JK(_,re).node();const we=Z.getBBox();ae.width=we.width,ae.height=we.height,ae.labelNode=Z,Z.parentNode.removeChild(Z)}else{const re=p.createElementNS("http://www.w3.org/2000/svg","text");re.setAttribute("style",j.labelStyle.replace("color:","fill:"));const we=V.split(xa.lineBreakRegex);for(const he of we){const De=p.createElementNS("http://www.w3.org/2000/svg","tspan");De.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),De.setAttribute("dy","1em"),De.setAttribute("x","1"),De.textContent=he,re.appendChild(De)}Z=re;const ke=Z.getBBox();ae.width=ke.width,ae.height=ke.height,ae.labelNode=Z}const le=[{id:F.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:F.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:F.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:F.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let ce=0,be="",xe={};switch(F.type){case"round":ce=5,be="rect";break;case"square":be="rect";break;case"diamond":be="question",xe={portConstraints:"FIXED_SIDE"};break;case"hexagon":be="hexagon";break;case"odd":be="rect_left_inv_arrow";break;case"lean_right":be="lean_right";break;case"lean_left":be="lean_left";break;case"trapezoid":be="trapezoid";break;case"inv_trapezoid":be="inv_trapezoid";break;case"odd_right":be="rect_left_inv_arrow";break;case"circle":be="circle";break;case"ellipse":be="ellipse";break;case"stadium":be="stadium";break;case"subroutine":be="subroutine";break;case"cylinder":be="cylinder";break;case"group":be="rect";break;case"doublecircle":be="doublecircle";break;default:be="rect"}const Ee={labelStyle:j.labelStyle,shape:be,labelText:V,rx:ce,ry:ce,class:H,style:j.style,id:F.id,link:F.link,linkTarget:F.linkTarget,tooltip:w.db.getTooltip(F.id)||"",domId:w.db.lookUpDomId(F.id),haveCallback:F.haveCallback,width:F.type==="group"?500:void 0,dir:F.dir,type:F.type,props:F.props,padding:Pt().flowchart.padding};let Me,fe;Ee.type!=="group"&&(fe=zNe(A,Ee,F.dir),Me=fe.node().getBBox());const ye={id:F.id,ports:F.type==="diamond"?le:[],layoutOptions:xe,labelText:V,labelData:ae,domId:w.db.lookUpDomId(F.id),width:Me==null?void 0:Me.width,height:Me==null?void 0:Me.height,type:F.type,el:fe,parent:k.parentById[F.id]};D5[Ee.id]=ye}),b},qFe=(s,o,f)=>{const p={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return p.TD=p.TB,je.info("abc88",f,o,s),p[f][o][s]},VFe=(s,o,f)=>{if(je.info("getNextPort abc88",{node:s,edgeDirection:o,graphDirection:f}),!nm[s])switch(f){case"TB":case"TD":nm[s]={inPosition:"north",outPosition:"south"};break;case"BT":nm[s]={inPosition:"south",outPosition:"north"};break;case"RL":nm[s]={inPosition:"east",outPosition:"west"};break;case"LR":nm[s]={inPosition:"west",outPosition:"east"};break}const p=o==="in"?nm[s].inPosition:nm[s].outPosition;return o==="in"?nm[s].inPosition=qFe(nm[s].inPosition,o,f):nm[s].outPosition=qFe(nm[s].outPosition,o,f),p},OHt=(s,o)=>{let f=s.start,p=s.end;const w=D5[f],k=D5[p];return!w||!k?{source:f,target:p}:(w.type
`),N.style===void 0&&(V.style=V.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),V.labelStyle=V.labelStyle.replace("color:","fill:"),V.id=F,V.classes="flowchart-link "+H+" "+j;const le=VNe(w,V),{source:ce,target:be}=OHt(N,b);je.debug("abc78 source and target",ce,be),f.edges.push({id:"e"+N.start+N.end,sources:[ce],targets:[be],labelEl:le,labels:[{width:V.width,height:V.height,orgWidth:V.width,orgHeight:V.height,text:V.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:V})}),f},PHt=function(s,o,f,p){let w="";switch(p&&(w=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,w=w.replace(/\(/g,"\\("),w=w.replace(/\)/g,"\\)")),o.arrowTypeStart){case"arrow_cross":s.attr("marker-start","url("+w+"#"+f+"-crossStart)");break;case"arrow_point":s.attr("marker-start","url("+w+"#"+f+"-pointStart)");break;case"arrow_barb":s.attr("marker-start","url("+w+"#"+f+"-barbStart)");break;case"arrow_circle":s.attr("marker-start","url("+w+"#"+f+"-circleStart)");break;case"aggregation":s.attr("marker-start","url("+w+"#"+f+"-aggregationStart)");break;case"extension":s.attr("marker-start","url("+w+"#"+f+"-extensionStart)");break;case"composition":s.attr("marker-start","url("+w+"#"+f+"-compositionStart)");break;case"dependency":s.attr("marker-start","url("+w+"#"+f+"-dependencyStart)");break;case"lollipop":s.attr("marker-start","url("+w+"#"+f+"-lollipopStart)");break}switch(o.arrowTypeEnd){case"arrow_cross":s.attr("marker-end","url("+w+"#"+f+"-crossEnd)");break;case"arrow_point":s.attr("marker-end","url("+w+"#"+f+"-pointEnd)");break;case"arrow_barb":s.attr("marker-end","url("+w+"#"+f+"-barbEnd)");break;case"arrow_circle":s.attr("marker-end","url("+w+"#"+f+"-circleEnd)");break;case"aggregation":s.attr("marker-end","url("+w+"#"+f+"-aggregationEnd)");break;case"extension":s.attr("marker-end","url("+w+"#"+f+"-extensionEnd)");break;case"composition":s.attr("marker-end","url("+w+"#"+f+"-compositionEnd)");break;case"dependency":s.attr("marker-end","url("+w+"#"+f+"-dependencyEnd)");break;case"lollipop":s.attr("marker-end","url("+w+"#"+f+"-lollipopEnd)");break}},BHt=function(s,o){je.info("Extracting classes"),o.db.clear("ver-2");try{return o.parse(s),o.db.getClasses()}catch{return{}}},FHt=function(s){const o={parentById:{},childrenById:{}},f=s.getSubGraphs();return je.info("Subgraphs - ",f),f.forEach(function(p){p.nodes.forEach(function(w){o.parentById[w]=p.id,o.childrenById[p.id]===void 0&&(o.childrenById[p.id]=[]),o.childrenById[p.id].push(w)})}),f.forEach(function(p){p.id,o.parentById[p.id]!==void 0&&o.parentById[p.id]}),o},RHt=function(s,o,f){const p=AHt(s,o,f);if(p===void 0||p==="root")return{x:0,y:0};const w=D5[p].offset;return{x:w.posX,y:w.posY}},jHt=function(s,o,f,p,w){const k=RHt(o.sources[0],o.targets[0],w),b=o.sections[0].startPoint,_=o.sections[0].endPoint,N=(o.sections[0].bendPoints?o.sections[0].bendPoints:[]).map(ae=>[ae.x+k.x,ae.y+k.y]),B=[[b.x+k.x,b.y+k.y],...N,[_.x+k.x,_.y+k.y]],F=RE().curve(Pd),H=s.insert("path").attr("d",F(B)).attr("class","path").attr("fill","none"),j=s.insert("g").attr("class","edgeLabel"),V=sr(j.node().appendChild(o.labelEl)),Z=V.node().firstChild.getBoundingClientRect();V.attr("width",Z.width),V.attr("height",Z.height),j.attr("transform",`translate(${o.labels[0].x+k.x}, ${o.labels[0].y+k.y})`),PHt(H,f,p.type,p.arrowMarkerAbsolute)},UFe=(s,o)=>{s.forEach(f=>{f.children||(f.children=[]);const p=o.childrenById[f.id];p&&p.forEach(w=>{f.children.push(D5[w])}),UFe(f.children,o)})},$Ht=async function(s,o,f,p){var fe;p.db.clear(),D5={},p.db.setGen("gen-2"),p.parser.parse(s);const w=sr("body").append("div").attr("style","height:400px").attr("id","cy");let k={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(je.info("Drawing flowchart using v3 renderer",GFe),p.db.getDirection()){case"BT":k.layoutOptions["elk.direction"]="UP";break;case"TB":k.layoutOpt
.subgraph-lvl-${f} {
fill: ${s[`surface${f}`]};
stroke: ${s[`surfacePeer${f}`]};
}
`;return o},GHt=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:FBt,renderer:HHt,parser:Vde,styles:s=>`.label {
font-family: ${s.fontFamily};
color: ${s.nodeTextColor||s.textColor};
}
.cluster-label text {
fill: ${s.titleColor};
}
.cluster-label span {
color: ${s.titleColor};
}
.label text,span {
fill: ${s.nodeTextColor||s.textColor};
color: ${s.nodeTextColor||s.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${s.mainBkg};
stroke: ${s.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${s.arrowheadColor};
}
.edgePath .path {
stroke: ${s.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${s.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${s.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${s.edgeLabelBackground};
fill: ${s.edgeLabelBackground};
}
text-align: center;
}
.cluster rect {
fill: ${s.clusterBkg};
stroke: ${s.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${s.titleColor};
}
.cluster span {
color: ${s.titleColor};
}
/* .cluster div {
color: ${s.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${s.fontFamily};
font-size: 12px;
background: ${s.tertiaryColor};
border: 1px solid ${s.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${s.textColor};
}
.subgraph {
stroke-width:2;
rx:3;
}
// .subgraph-lvl-1 {
// fill:#ccc;
// // stroke:black;
// }
${zHt(s)}
`}},Symbol.toStringTag,{value:"Module"}));var sge=function(){var s=function(ae,le,ce,be){for(ce=ce||{},be=ae.length;be--;ce[ae[be]]=le);return ce},o=[1,2],f=[1,5],p=[6,9,11,17,18,20,22,23,26,27,28],w=[1,15],k=[1,16],b=[1,17],_=[1,18],A=[1,19],N=[1,23],B=[1,24],F=[1,27],H=[4,6,9,11,17,18,20,22,23,26,27,28],j={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(le,ce,be,xe,Ee,Me,fe){var ye=Me.length-1;switch(Ee){case 1:return Me[ye-1];case 3:this.$=[];break;case 4:Me[ye-1].push(Me[ye]),this.$=Me[ye-1];break;case 5:case 6:this.$=Me[ye];break;case 7:case 8:this.$=[];break;case 11:xe.getCommonDb().setDiagramTitle(Me[ye].substr(6)),this.$=Me[ye].substr(6);break;case 12:this.$=Me[ye].trim(),xe.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=Me[ye].trim(),xe.getCommonDb().setAccDescription(this.$);break;case 15:xe.addSection(Me[ye].substr(8)),this.$=Me[ye].substr(8);break;case 19:xe.addTask(Me[ye],0,""),this.$=Me[ye];break;case 20:xe.addEvent(Me[ye].substr(2)),this.$=Me[ye];break;case 21:xe.parseDirective("%%{","open_directive");break;case 22:xe.parseDirective(Me[ye],"type_directive");break;case 23:Me[ye]=Me[ye].trim().replace(/'/g,'"'),xe.parseDirective(Me[ye],"arg_directive");break;case 24:xe.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:o,7:3,12:4,28:f},{1:[3]},s(p,[2,3],{5:6}),{3:7,4:o,7:3,12:4,28:f},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:w,18:k,20:b,22:_,23:A,24:20,25:21,26:N,27:B,28:f},{1:[2,2]},{14:25,15:[1,26],31:F},s([15,31],[2,22]),s(p,[2,8],{1:[2,1]}),s(p,[2,4]),{7:22,10:28,12:4,17:w,18:k,20:b,22:_,23:A,24:20,25:21,26:N,27:B,28:f},s(p,[2,6]),s(p,[2,7]),s(p,[2,11]),{19:[1,29]},{21:[1,30]},s(p,[2,14]),s(p,[2,15]),s(p,[2,16]),s(p,[2,17]),s(p,[2,18]),s(p,[2,19]),s(p,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},s(p,[2,5]),s(p,[2,12]),s(p,[2,13]),s(H,[2,9]),{14:34,31:F},{31:[2,23]},{11:[1,35]},s(H,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(le,ce){if(ce.recoverable)this.trace(le);else{var be=new Error(le);throw be.hash=ce,be}},parse:function(le){var ce=this,be=[0],xe=[],Ee=[null],Me=[],fe=this.table,ye="",re=0,we=0,ke=2,he=1,De=Me.slice.call(arguments,1),X=Object.create(this.lexer),Re={yy:{}};for(var pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pe)&&(Re.yy[pe]=this.yy[pe]);X.setInput(le,Re.yy),Re.yy.lexer=X,Re.yy.parser=this,typeof X.yylloc>"u"&&(X.yylloc={});var Ge=X.yylloc;Me.push(Ge);var de=X.options&&X.options.ranges;typeof Re.yy.parseError=="function"?this.parseError=Re.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ct(){var wt;return wt=xe.pop()||X.lex()||he,typeof wt!="number"&&(wt instanceof Array&&(xe=wt,wt=xe.pop()),wt=ce.symbols_[wt]||wt),wt}for(var bt,St,yt,Mt,nn={},dn,vt,Lr,xt;;){if(St=be[be.length-1],this.defaultActions[St]?yt=this.defaultActions[St]:((bt===null||typeof bt>"u")&&(bt=ct()),yt=fe[St]&&fe[St][bt]),typeof yt>"u"||!yt.length||!yt[0]){var Tt="";xt=[];for(dn in fe[St])this.terminals_[dn]&&dn>ke&&xt.push("'"+this.terminals_[dn]+"'");X.showPosition?Tt="Parse error on line "+(re+1)+`:
`+X.showPosition()+`
Expecting `+xt.join(", ")+", got '"+(this.terminals_[bt]||bt)+"'":Tt="Parse error on line "+(re+1)+": Unexpected "+(bt==he?"end of input":"'"+(this.terminals_[bt]||bt)+"'"),this.parseError(Tt,{text:X.match,token:this.terminals_[bt]||bt,line:X.yylineno,loc:Ge,expected:xt})}if(yt[0]instanceof Array&&yt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+bt);switch(yt[0]){case 1:be.push(bt),Ee.push(X.yytext),Me.push(X.yylloc),be.push(yt[1]),bt=null,we=X.yyleng,ye=X.yytext,re=X.yylineno,Ge=X.yylloc;break;case 2:if(vt=this.productions_[yt[1]][1],nn.$=Ee[Ee.length-vt],nn._$={first_line:Me[Me.length-(vt||1)].first_line,last_line:Me[Me.length-1].last_line,first_column:Me[Me.length-(vt||1)].first_column,last_column:Me[Me.length-1].last_column},de&&(nn._$.range=[Me[Me.length-(vt||1)].range[0],Me[Me.length-1].range[1]]),Mt=this.performAction.apply(nn,[ye,we,re,Re.yy,yt[1],Ee,Me].concat(De)),typeof Mt<"u")return Mt;vt&&(be=be.slice(0,-1*vt*2),Ee=Ee.slice(0,-1*vt),Me=Me.slice(0,-1*vt)),be.push(this.productions_[yt[1]][0]),Ee.push(nn.$),Me.push(nn._$),Lr=fe[be[be.length-2]][be[be.length-1]],be.push(Lr);break;case 3:return!0}}return!0}},V=function(){var ae={EOF:1,parseError:function(ce,be){if(this.yy.parser)this.yy.parser.parseError(ce,be);else throw new Error(ce)},setInput:function(le,ce){return this.yy=ce||this.yy||{},this._input=le,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},input:function(){var le=this._input[0];this.yytext+=le,this.yyleng++,this.offset++,this.match+=le,this.matched+=le;var ce=le.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),le},unput:function(le){var ce=le.length,be=le.split(/(?:\r\n?|\n)/g);this._input=le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ce),this.offset-=ce;var xe=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),be.length-1&&(this.yylineno-=be.length-1);var Ee=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:be?(be.length===xe.length?this.yylloc.first_column:0)+xe[xe.length-be.length].length-be[0].length:this.yylloc.first_column-ce},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-ce]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(le){this.unput(this.match.slice(le))},pastInput:function(){var le=this.matched.substr(0,this.matched.length-this.match.length);return(le.length>20?"...":"")+le.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var le=this.match;return le.length<20&&(le+=this._input.substr(0,20-le.length)),(le.substr(0,20)+(le.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var le=this.pastInput(),ce=new Array(le.length+1).join("-");return le+this.upcomingInput()+`
`+ce+"^"},test_match:function(le,ce){var be,xe,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),xe=le[0].match(/(?:\r\n?|\n).*/g),xe&&(this.yylineno+=xe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xe?xe[xe.length-1].length-xe[xe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+le[0].length},this.yytext+=le[0],this.match+=le[0],this.matches=le,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(le[0].length),this.matched+=le[0],be=this.performAction.call(this,this.yy,this,ce,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),be)return be;if(this._backtrack){for(var Me in Ee)this[Me]=Ee[Me];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var le,ce,be,xe;this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),Me=0;Me<Ee.length;Me++)if(be=this._input.match(this.rules[Ee[Me]]),be&&(!ce||be[0].length>ce[0].length)){if(ce=be,xe=Me,this.options.backtrack_lexer){if(le=this.test_match(be,Ee[Me]),le!==!1)return le;if(this._backtrack){ce=!1;continue}else return!1}else if(!this.options.flex)break}return ce?(le=this.test_match(ce,Ee[xe]),le!==!1?le:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ce=this.next();return ce||this.lex()},begin:function(ce){this.conditionStack.push(ce)},popState:function(){var ce=this.conditionStack.length-1;return ce>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ce){return ce=this.conditionStack.length-1-Math.abs(ce||0),ce>=0?this.conditionStack[ce]:"INITIAL"},pushState:function(ce){this.begin(ce)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ce,be,xe,Ee){switch(xe){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/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;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};return ae}();j.lexer=V;function Z(){this.yy={}}return Z.prototype=j,j.Parser=Z,new Z}();sge.parser=sge;const qHt=sge;let QA="",WFe=0;const age=[],xW=[],ZA=[],YFe=()=>dIe,XFe=(s,o,f)=>{K1e(globalThis,s,o,f)},QFe=function(){age.length=0,xW.length=0,QA="",ZA.length=0,tp()},ZFe=function(s){QA=s,age.push(s)},JFe=function(){return age},eRe=function(){let s=iRe();const o=100;let f=0;for(;!s&&f<o;)s=iRe(),f++;return xW.push(...ZA),xW},tRe=function(s,o,f){const p={id:WFe++,section:QA,type:QA,task:s,score:o||0,events:f?[f]:[]};ZA.push(p)},nRe=function(s){ZA.find(f=>f.id===WFe-1).events.push(s)},rRe=function(s){const o={section:QA,type:QA,description:s,task:s,classes:[]};xW.push(o)},iRe=function(){const s=function(f){return ZA[f].processed};let o=!0;for(const[f,p]of ZA.entries())s(f),o=o&&p.processed;return o},VHt=Object.freeze(Object.defineProperty({__proto__:null,addEvent:nRe,addSection:ZFe,addTask:tRe,addTaskOrg:rRe,clear:QFe,default:{clear:QFe,getCommonDb:YFe,addSection:ZFe,getSections:JFe,getTasks:eRe,addTask:tRe,addTaskOrg:rRe,addEvent:nRe,parseDirective:XFe},getCommonDb:YFe,getSections:JFe,getTasks:eRe,parseDirective:XFe},Symbol.toStringTag,{value:"Module"})),UHt=12,EW=function(s,o){const f=s.append("rect");return f.attr("x",o.x),f.attr("y",o.y),f.attr("fill",o.fill),f.attr("stroke",o.stroke),f.attr("width",o.width),f.attr("height",o.height),f.attr("rx",o.rx),f.attr("ry",o.ry),o.class!==void 0&&f.attr("class",o.class),f},KHt=function(s,o){const p=s.append("circle").attr("cx",o.cx).attr("cy",o.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),w=s.append("g");w.append("circle").attr("cx",o.cx-15/3).attr("cy",o.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),w.append("circle").a
`),je.debug("timeline",p.db);const b=w.securityLevel;let _;b==="sandbox"&&(_=sr("#i"+o));const N=sr(b==="sandbox"?_.nodes()[0].contentDocument.body:"body").select("#"+o);N.append("g");const B=p.db.getTasks(),F=p.db.getCommonDb().getDiagramTitle();je.debug("task",B),l9.initGraphics(N);const H=p.db.getSections();je.debug("sections",H);let j=0,V=0,Z=0,ae=0,le=50+k,ce=50;ae=50;let be=0,xe=!0;H.forEach(function(re){const we={number:be,descr:re,section:be,width:150,padding:20,maxHeight:j},ke=l9.getVirtualNodeHeight(N,we,w);je.debug("sectionHeight before draw",ke),j=Math.max(j,ke+20)});let Ee=0,Me=0;je.debug("tasks.length",B.length);for(const[re,we]of B.entries()){const ke={number:re,descr:we,section:we.section,width:150,padding:20,maxHeight:V},he=l9.getVirtualNodeHeight(N,ke,w);je.debug("taskHeight before draw",he),V=Math.max(V,he+20),Ee=Math.max(Ee,we.events.length);let De=0;for(let X=0;X<we.events.length;X++){const pe={descr:we.events[X],section:we.section,number:we.section,width:150,padding:20,maxHeight:50};De+=l9.getVirtualNodeHeight(N,pe,w)}Me=Math.max(Me,De)}je.debug("maxSectionHeight before draw",j),je.debug("maxTaskHeight before draw",V),H&&H.length>0?H.forEach(re=>{const we={number:be,descr:re,section:be,width:150,padding:20,maxHeight:j};je.debug("sectionNode",we);const ke=N.append("g"),he=l9.drawNode(ke,we,be,w);je.debug("sectionNode output",he),ke.attr("transform",`translate(${le}, ${ae})`),ce+=j+50;const De=B.filter(X=>X.section===re);De.length>0&&uRe(N,De,be,le,ce,V,w,Ee,Me,j,!1),le+=200*Math.max(De.length,1),ce=ae,be++}):(xe=!1,uRe(N,B,be,le,ce,V,w,Ee,Me,j,!0));const fe=N.node().getBBox();je.debug("bounds",fe),F&&N.append("text").text(F).attr("x",fe.width/2-k).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),Z=xe?j+V+150:V+100,N.append("g").attr("class","lineWrapper").append("line").attr("x1",k).attr("y1",Z).attr("x2",fe.width+3*k).attr("y2",Z).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),KE(void 0,N,w.timeline.padding?w.timeline.padding:50,w.timeline.useMaxWidth?w.timeline.useMaxWidth:!1)},uRe=function(s,o,f,p,w,k,b,_,A,N,B){for(const F of o){const H={descr:F.task,section:f,number:f,width:150,padding:20,maxHeight:k};je.debug("taskNode",H);const j=s.append("g").attr("class","taskWrapper"),Z=l9.drawNode(j,H,f,b).height;if(je.debug("taskHeight after draw",Z),j.attr("transform",`translate(${p}, ${w})`),k=Math.max(k,Z),F.events){const ae=s.append("g").attr("class","lineWrapper");let le=k;w+=100,le=le+azt(s,F.events,f,p,w,b),w-=100,ae.append("line").attr("x1",p+190/2).attr("y1",w+k).attr("x2",p+190/2).attr("y2",w+k+(B?k:N)+A+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}p=p+200,B&&!Pt().timeline.disableMulticolor&&f++}w=w-10},azt=function(s,o,f,p,w,k){let b=0;const _=w;w=w+100;for(const A of o){const N={descr:A,section:f,number:f,width:150,padding:20,maxHeight:50};je.debug("eventNode",N);const B=s.append("g").attr("class","eventWrapper"),H=l9.drawNode(B,N,f,k).height;b=b+H,B.attr("transform",`translate(${p}, ${w})`),w=w+10+H}return w=_,b},ozt={setConf:izt,draw:szt},czt=s=>{let o="";for(let f=0;f<s.THEME_COLOR_LIMIT;f++)s["lineColor"+f]=s["lineColor"+f]||s["cScaleInv"+f],uDe(s["lineColor"+f])?s["lineColor"+f]=Qs(s["lineColor"+f],20):s["lineColor"+f]=Sa(s["lineColor"+f],20);for(let f=0;f<s.THEME_COLOR_LIMIT;f++){const p=""+(17-3*f);o+=`
.section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} path {
fill: ${s["cScale"+f]};
}
.section-${f-1} text {
fill: ${s["cScaleLabel"+f]};
}
.node-icon-${f-1} {
font-size: 40px;
color: ${s["cScaleLabel"+f]};
}
.section-edge-${f-1}{
stroke: ${s["cScale"+f]};
}
.edge-depth-${f-1}{
stroke-width: ${p};
}
.section-${f-1} line {
stroke: ${s["cScaleInv"+f]} ;
stroke-width: 3;
}
.lineWrapper line{
stroke: ${s["cScaleLabel"+f]} ;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return o},uzt=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:VHt,renderer:ozt,parser:qHt,styles:s=>`
.edge {
stroke-width: 3;
}
${czt(s)}
.section-root rect, .section-root path, .section-root circle {
fill: ${s.git0};
}
.section-root text {
fill: ${s.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.eventWrapper {
filter: brightness(120%);
}
`}},Symbol.toStringTag,{value:"Module"}));var cge=function(){var s=function(xe,Ee,Me,fe){for(Me=Me||{},fe=xe.length;fe--;Me[xe[fe]]=Ee);return Me},o=[1,4],f=[1,13],p=[1,12],w=[1,15],k=[1,16],b=[1,20],_=[1,19],A=[6,7,8],N=[1,26],B=[1,24],F=[1,25],H=[6,7,11],j=[1,6,13,15,16,19,22],V=[1,33],Z=[1,34],ae=[1,6,7,11,13,15,16,19,22],le={trace:function(){},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:function(Ee,Me,fe,ye,re,we,ke){var he=we.length-1;switch(re){case 6:case 7:return ye;case 8:ye.getLogger().trace("Stop NL ");break;case 9:ye.getLogger().trace("Stop EOF ");break;case 11:ye.getLogger().trace("Stop NL2 ");break;case 12:ye.getLogger().trace("Stop EOF2 ");break;case 15:ye.getLogger().info("Node: ",we[he].id),ye.addNode(we[he-1].length,we[he].id,we[he].descr,we[he].type);break;case 16:ye.getLogger().trace("Icon: ",we[he]),ye.decorateNode({icon:we[he]});break;case 17:case 21:ye.decorateNode({class:we[he]});break;case 18:ye.getLogger().trace("SPACELIST");break;case 19:ye.getLogger().trace("Node: ",we[he].id),ye.addNode(0,we[he].id,we[he].descr,we[he].type);break;case 20:ye.decorateNode({icon:we[he]});break;case 25:ye.getLogger().trace("node found ..",we[he-2]),this.$={id:we[he-1],descr:we[he-1],type:ye.getType(we[he-2],we[he])};break;case 26:this.$={id:we[he],descr:we[he],type:ye.nodeType.DEFAULT};break;case 27:ye.getLogger().trace("node found ..",we[he-3]),this.$={id:we[he-3],descr:we[he-1],type:ye.getType(we[he-2],we[he])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:o},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:o},{6:f,7:[1,10],9:9,12:11,13:p,14:14,15:w,16:k,17:17,18:18,19:b,22:_},s(A,[2,3]),{1:[2,2]},s(A,[2,4]),s(A,[2,5]),{1:[2,6],6:f,12:21,13:p,14:14,15:w,16:k,17:17,18:18,19:b,22:_},{6:f,9:22,12:11,13:p,14:14,15:w,16:k,17:17,18:18,19:b,22:_},{6:N,7:B,10:23,11:F},s(H,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:b,22:_}),s(H,[2,18]),s(H,[2,19]),s(H,[2,20]),s(H,[2,21]),s(H,[2,23]),s(H,[2,24]),s(H,[2,26],{19:[1,30]}),{20:[1,31]},{6:N,7:B,10:32,11:F},{1:[2,7],6:f,12:21,13:p,14:14,15:w,16:k,17:17,18:18,19:b,22:_},s(j,[2,14],{7:V,11:Z}),s(ae,[2,8]),s(ae,[2,9]),s(ae,[2,10]),s(H,[2,15]),s(H,[2,16]),s(H,[2,17]),{20:[1,35]},{21:[1,36]},s(j,[2,13],{7:V,11:Z}),s(ae,[2,11]),s(ae,[2,12]),{21:[1,37]},s(H,[2,25]),s(H,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(Ee,Me){if(Me.recoverable)this.trace(Ee);else{var fe=new Error(Ee);throw fe.hash=Me,fe}},parse:function(Ee){var Me=this,fe=[0],ye=[],re=[null],we=[],ke=this.table,he="",De=0,X=0,Re=2,pe=1,Ge=we.slice.call(arguments,1),de=Object.create(this.lexer),ct={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&(ct.yy[bt]=this.yy[bt]);de.setInput(Ee,ct.yy),ct.yy.lexer=de,ct.yy.parser=this,typeof de.yylloc>"u"&&(de.yylloc={});var St=de.yylloc;we.push(St);var yt=de.options&&de.options.ranges;typeof ct.yy.parseError=="function"?this.parseError=ct.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var Lt;return Lt=ye.pop()||de.lex()||pe,typeof Lt!="number"&&(Lt instanceof Array&&(ye=Lt,Lt=ye.pop()),Lt=Me.symbols_[Lt]||Lt),Lt}for(var nn,dn,vt,Lr,xt={},Tt,wt,At,He;;){if(dn=fe[fe.length-1],this.defaultActions[dn]?vt=this.defaultActions[dn]:((nn===null||typeof nn>"u")&&(nn=Mt()),vt=ke[dn]&&ke[dn][nn]),typeof vt>"u"||!vt.length||!vt[0]){var Ze="";He=[];for(Tt in ke[dn])this.terminals_[Tt]&&Tt>Re&&He.push("'"+this.terminals_[Tt]+"'");de.showPosition?Ze="Parse error on line "+(De+1)+`:
`+de.showPosition()+`
Expecting `+He.join(", ")+", got '"+(this.terminals_[nn]||nn)+"'":Ze="Parse error on line "+(De+1)+": Unexpected "+(nn==pe?"end of input":"'"+(this.terminals_[nn]||nn)+"'"),this.parseError(Ze,{text:de.match,token:this.terminals_[nn]||nn,line:de.yylineno,loc:St,expected:He})}if(vt[0]instanceof Array&&vt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dn+", token: "+nn);switch(vt[0]){case 1:fe.push(nn),re.push(de.yytext),we.push(de.yylloc),fe.push(vt[1]),nn=null,X=de.yyleng,he=de.yytext,De=de.yylineno,St=de.yylloc;break;case 2:if(wt=this.productions_[vt[1]][1],xt.$=re[re.length-wt],xt._$={first_line:we[we.length-(wt||1)].first_line,last_line:we[we.length-1].last_line,first_column:we[we.length-(wt||1)].first_column,last_column:we[we.length-1].last_column},yt&&(xt._$.range=[we[we.length-(wt||1)].range[0],we[we.length-1].range[1]]),Lr=this.performAction.apply(xt,[he,X,De,ct.yy,vt[1],re,we].concat(Ge)),typeof Lr<"u")return Lr;wt&&(fe=fe.slice(0,-1*wt*2),re=re.slice(0,-1*wt),we=we.slice(0,-1*wt)),fe.push(this.productions_[vt[1]][0]),re.push(xt.$),we.push(xt._$),At=ke[fe[fe.length-2]][fe[fe.length-1]],fe.push(At);break;case 3:return!0}}return!0}},ce=function(){var xe={EOF:1,parseError:function(Me,fe){if(this.yy.parser)this.yy.parser.parseError(Me,fe);else throw new Error(Me)},setInput:function(Ee,Me){return this.yy=Me||this.yy||{},this._input=Ee,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},input:function(){var Ee=this._input[0];this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee;var Me=Ee.match(/(?:\r\n?|\n).*/g);return Me?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ee},unput:function(Ee){var Me=Ee.length,fe=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Me),this.offset-=Me;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),fe.length-1&&(this.yylineno-=fe.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:fe?(fe.length===ye.length?this.yylloc.first_column:0)+ye[ye.length-fe.length].length-fe[0].length:this.yylloc.first_column-Me},this.options.ranges&&(this.yylloc.range=[re[0],re[0]+this.yyleng-Me]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),Me=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+`
`+Me+"^"},test_match:function(Ee,Me){var fe,ye,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))),ye=Ee[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+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,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(Ee[0].length),this.matched+=Ee[0],fe=this.performAction.call(this,this.yy,this,Me,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),fe)return fe;if(this._backtrack){for(var we in re)this[we]=re[we];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ee,Me,fe,ye;this._more||(this.yytext="",this.match="");for(var re=this._currentRules(),we=0;we<re.length;we++)if(fe=this._input.match(this.rules[re[we]]),fe&&(!Me||fe[0].length>Me[0].length)){if(Me=fe,ye=we,this.options.backtrack_lexer){if(Ee=this.test_match(fe,re[we]),Ee!==!1)return Ee;if(this._backtrack){Me=!1;continue}else return!1}else if(!this.options.flex)break}return Me?(Ee=this.test_match(Me,re[ye]),Ee!==!1?Ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Me=this.next();return Me||this.lex()},begin:function(Me){this.conditionStack.push(Me)},popState:function(){var Me=this.conditionStack.length-1;return Me>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Me){return Me=this.conditionStack.length-1-Math.abs(Me||0),Me>=0?this.conditionStack[Me]:"INITIAL"},pushState:function(Me){this.begin(Me)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Me,fe,ye,re){switch(ye){case 0:Me.getLogger().trace("Found comment",fe.yytext);break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:Me.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return Me.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:Me.getLogger().trace("end icon"),this.popState();break;case 10:return Me.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return Me.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return Me.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return Me.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:Me.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 22:return Me.getLogger().trace("description:",fe.yytext),"NODE_DESCR";case 23:this.popState();break;case 24:return this.popState(),Me.getLogger().trace("node end ))"),"NODE_DEND";case 25:return this.popState(),Me.getLogger().trace("node end )"),"NODE_DEND";case 26:return this.popState(),Me.getLogger().trace("node end ...",fe.yytext),"NODE_DEND";case 27:return this.popState(),Me.getLogger().trace("node end (("),"NODE_DEND";case 28:return this.popState(),Me.getLogger().trace("node end (-"),"NODE_DEND";case 29:return this.popState(),Me.getLogger().trace("node end (-"),"NODE_DEND";case 30:return this.popState(),Me.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),Me.getLogger().trace("node end (("),"NODE_DEND";case 32:return Me.getLogger().trace("Long description:",fe.yytext),20;case 33:return Me.getLogger().trace("Long description:",fe.yytext),20}},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],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR:{rules:[22,23],inclusive:!1},NODE:{rules:[21,24,25,26,27,28,29,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return xe}();le.lexer=ce;function be(){this.yy={}}return be.prototype=le,le.Parser=be,new be}();cge.parser=cge;const lzt=cge,xP=s=>T2(s,Pt());let Yb=[],lRe=0,uge={};const hzt=()=>{Yb=[],lRe=0,uge={}},fzt=function(s){for(let o=Yb.length-1;o>=0;o--)if(Yb[o].level<s)return Yb[o];return null},dzt=()=>Yb.length>0?Yb[0]:null,gzt=(s,o,f,p)=>{je.info("addNode",s,o,f,p);const w=Pt(),k={id:lRe++,nodeId:xP(o),level:s,descr:xP(f),type:p,children:[],width:Pt().mindmap.maxNodeWidth};switch(k.type){case Zu.ROUNDED_RECT:k.padding=2*w.mindmap.padding;break;case Zu.RECT:k.padding=2*w.mindmap.padding;break;case Zu.HEXAGON:k.padding=2*w.mindmap.padding;break;default:k.padding=w.mindmap.padding}const b=fzt(s);if(b)b.children.push(k),Yb.push(k
a${b},${b} 1 0,1 ${f*.4},${-1*f*.1}
a${k},${k} 1 0,1 ${f*.35},${1*f*.2}
a${w},${w} 1 0,1 ${f*.15},${1*p*.35}
a${_},${_} 1 0,1 ${-1*f*.15},${1*p*.65}
a${k},${w} 1 0,1 ${-1*f*.25},${f*.15}
a${b},${b} 1 0,1 ${-1*f*.5},${0}
a${w},${w} 1 0,1 ${-1*f*.25},${-1*f*.15}
a${w},${w} 1 0,1 ${-1*f*.1},${-1*p*.35}
a${_},${_} 1 0,1 ${f*.1},${-1*p*.65}
H0 V0 Z`)},_zt=function(s,o){const f=o.width,p=o.height,w=.15*f;s.append("path").attr("id","node-"+o.id).attr("class","node-bkg node-"+h9(o.type)).attr("d",`M0 0 a${w},${w} 1 0,0 ${f*.25},${-1*p*.1}
a${w},${w} 1 0,0 ${f*.25},${0}
a${w},${w} 1 0,0 ${f*.25},${0}
a${w},${w} 1 0,0 ${f*.25},${1*p*.1}
a${w},${w} 1 0,0 ${f*.15},${1*p*.33}
a${w*.8},${w*.8} 1 0,0 ${0},${1*p*.34}
a${w},${w} 1 0,0 ${-1*f*.15},${1*p*.33}
a${w},${w} 1 0,0 ${-1*f*.25},${p*.15}
a${w},${w} 1 0,0 ${-1*f*.25},${0}
a${w},${w} 1 0,0 ${-1*f*.25},${0}
a${w},${w} 1 0,0 ${-1*f*.25},${-1*p*.15}
a${w},${w} 1 0,0 ${-1*f*.1},${-1*p*.33}
a${w*.8},${w*.8} 1 0,0 ${0},${-1*p*.34}
a${w},${w} 1 0,0 ${f*.1},${-1*p*.33}
H0 V0 Z`)},Czt=function(s,o){s.append("circle").attr("id","node-"+o.id).attr("class","node-bkg node-"+h9(o.type)).attr("r",o.width/2)};function Szt(s,o,f,p,w){return s.insert("polygon",":first-child").attr("points",p.map(function(k){return k.x+","+k.y}).join(" ")).attr("transform","translate("+(w.width-o)/2+", "+f+")")}const Azt=function(s,o){const f=o.height,w=f/4,k=o.width-o.padding+2*w,b=[{x:w,y:0},{x:k-w,y:0},{x:k,y:-f/2},{x:k-w,y:-f},{x:w,y:-f},{x:0,y:-f/2}];Szt(s,k,f,b,o)},Lzt=function(s,o){s.append("rect").attr("id","node-"+o.id).attr("class","node-bkg node-"+h9(o.type)).attr("height",o.height).attr("rx",o.padding).attr("ry",o.padding).attr("width",o.width)},gRe={drawNode:function(s,o,f,p){const w=f%(dRe-1),k=s.append("g");o.section=w;let b="section-"+w;w<0&&(b+=" section-root"),k.attr("class",(o.class?o.class+" ":"")+"mindmap-node "+b);const _=k.append("g"),A=k.append("g"),B=A.append("text").text(o.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(kzt,o.width).node().getBBox(),F=p.fontSize.replace?p.fontSize.replace("px",""):p.fontSize;if(o.height=B.height+F*1.1*.5+o.padding,o.width=B.width+2*o.padding,o.icon)if(o.type===Zu.CIRCLE)o.height+=50,o.width+=50,k.append("foreignObject").attr("height","50px").attr("width",o.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+w+" "+o.icon),A.attr("transform","translate("+o.width/2+", "+(o.height/2-1.5*o.padding)+")");else{o.width+=50;const H=o.height;o.height=Math.max(H,60);const j=Math.abs(o.height-H);k.append("foreignObject").attr("width","60px").attr("height",o.height).attr("style","text-align: center;margin-top:"+j/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+w+" "+o.icon),A.attr("transform","translate("+(25+o.width/2)+", "+(j/2+o.padding/2)+")")}else A.attr("transform","translate("+o.width/2+", "+o.padding/2+")");switch(o.type){case Zu.DEFAULT:xzt(_,o,w);break;case Zu.ROUNDED_RECT:Lzt(_,o);break;case Zu.RECT:Ezt(_,o);break;case Zu.CIRCLE:_.attr("transform","translate("+o.width/2+", "+ +o.height/2+")"),Czt(_,o);break;case Zu.CLOUD:Tzt(_,o);break;case Zu.BANG:_zt(_,o);break;case Zu.HEXAGON:Azt(_,o);break}return hRe(o.id,k),o.height},positionNode:function(s){const o=lge(s.id),f=s.x||0,p=s.y||0;o.attr("transform","translate("+f+","+p+")")},drawEdge:function(o,f,p,w,k){const b=k%(dRe-1),_=p.x+p.width/2,A=p.y+p.height/2,N=f.x+f.width/2,B=f.y+f.height/2,F=N>_?_+Math.abs(_-N)/2:_-Math.abs(_-N)/2,H=B>A?A+Math.abs(A-B)/2:A-Math.abs(A-B)/2,j=N>_?Math.abs(_-F)/2+_:-Math.abs(_-F)/2+_,V=B>A?Math.abs(A-H)/2+A:-Math.abs(A-H)/2+A;o.append("path").attr("d",p.direction==="TB"||p.direction==="BT"?`M${_},${A} Q${_},${V} ${F},${H} T${N},${B}`:`M${_},${A} Q${j},${A} ${F},${H} T${N},${B}`).attr("class","edge section-edge-"+b+" edge-depth-"+w)}};var hge={},Mzt={get exports(){return hge},set exports(s){hge=s}};(function(s,o){(function(f,p){s.exports=p()})(g0,function(){function f(m){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},f(m)}function p(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function w(m,g){for(var y=0;y<g.length;y++){var E=g[y];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}function k(m,g,y){return g&&w(m.prototype,g),y&&w(m,y),Object.defineProperty(m,"prototype",{writable:!1}),m}function b(m,g,y){return g in m?Object.defineProperty(m,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[g]=y,m}function _(m,g){return A(m)||N(m,g)||B(m,g)||H()}function A(m){if(Array.isArray(m))return m}function N(m,g){var y=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(y!=null){var E=[],S=!0,D=!1,I,R;try{for(y=y.call(m);!(S=(I=y.next()).done)&&(E.push(I.value),!(g&&E.length===g));S=!0);}catch($){D=!0,R=$}
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=typeof window>"u"?null:window,V=j?j.navigator:null;j&&j.document;var Z=f(""),ae=f({}),le=f(function(){}),ce=typeof HTMLElement>"u"?"undefined":f(HTMLElement),be=function(g){return g&&g.instanceString&&Ee(g.instanceString)?g.instanceString():null},xe=function(g){return g!=null&&f(g)==Z},Ee=function(g){return g!=null&&f(g)===le},Me=function(g){return!he(g)&&(Array.isArray?Array.isArray(g):g!=null&&g instanceof Array)},fe=function(g){return g!=null&&f(g)===ae&&!Me(g)&&g.constructor===Object},ye=function(g){return g!=null&&f(g)===ae},re=function(g){return g!=null&&f(g)===f(1)&&!isNaN(g)},we=function(g){return re(g)&&Math.floor(g)===g},ke=function(g){if(ce!=="undefined")return g!=null&&g instanceof HTMLElement},he=function(g){return De(g)||X(g)},De=function(g){return be(g)==="collection"&&g._private.single},X=function(g){return be(g)==="collection"&&!g._private.single},Re=function(g){return be(g)==="core"},pe=function(g){return be(g)==="stylesheet"},Ge=function(g){return be(g)==="event"},de=function(g){return g==null?!0:!!(g===""||g.match(/^\s+$/))},ct=function(g){return typeof HTMLElement>"u"?!1:g instanceof HTMLElement},bt=function(g){return fe(g)&&re(g.x1)&&re(g.x2)&&re(g.y1)&&re(g.y2)},St=function(g){return ye(g)&&Ee(g.then)},yt=function(){return V&&V.userAgent.match(/msie|trident|edge/i)},Mt=function(g,y){y||(y=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var D=[],I=0;I<arguments.length;I++)D.push(arguments[I]);return D.join("$")});var E=function S(){var D=this,I=arguments,R,$=y.apply(D,I),C=S.cache;return(R=C[$])||(R=C[$]=g.apply(D,I)),R};return E.cache={},E},nn=Mt(function(m){return m.replace(/([A-Z])/g,function(g){return"-"+g.toLowerCase()})}),dn=Mt(function(m){return m.replace(/(-\w)/g,function(g){return g[1].toUpperCase()})}),vt=Mt(function(m,g){return m+g[0].toUpperCase()+g.substring(1)},function(m,g){return m+"$"+g}),Lr=function(g){return de(g)?g:g.charAt(0).toUpperCase()+g.substring(1)},xt="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",Tt="rgb[a]?\\(("+xt+"[%]?)\\s*,\\s*("+xt+"[%]?)\\s*,\\s*("+xt+"[%]?)(?:\\s*,\\s*("+xt+"))?\\)",wt="rgb[a]?\\((?:"+xt+"[%]?)\\s*,\\s*(?:"+xt+"[%]?)\\s*,\\s*(?:"+xt+"[%]?)(?:\\s*,\\s*(?:"+xt+"))?\\)",At="hsl[a]?\\(("+xt+")\\s*,\\s*("+xt+"[%])\\s*,\\s*("+xt+"[%])(?:\\s*,\\s*("+xt+"))?\\)",He="hsl[a]?\\((?:"+xt+")\\s*,\\s*(?:"+xt+"[%])\\s*,\\s*(?:"+xt+"[%])(?:\\s*,\\s*(?:"+xt+"))?\\)",Ze="\\#[0-9a-fA-F]{3}",Lt="\\#[0-9a-fA-F]{6}",Ve=function(g,y){return g<y?-1:g>y?1:0},Mn=function(g,y){return-1*Ve(g,y)},Oe=Object.assign!=null?Object.assign.bind(Object):function(m){for(var g=arguments,y=1;y<g.length;y++){var E=g[y];if(E!=null)for(var S=Object.keys(E),D=0;D<S.length;D++){var I=S[D];m[I]=E[I]}}return m},Di=function(g){if(!(!(g.length===4||g.length===7)||g[0]!=="#")){var y=g.length===4,E,S,D,I=16;return y?(E=parseInt(g[1]+g[1],I),S=parseInt(g[2]+g[2],I),D=parseInt(g[3]+g[3],I)):(E=parseInt(g[1]+g[2],I),S=parseInt(g[3]+g[4],I),D=parseInt(g[5]+g[6],I)),[E,S,D]}},rn=function(g){var y,E,S,D,I,R,$,C;function G(se,oe,Ce){return Ce<0&&(Ce+=1),Ce>1&&(Ce-=1),Ce<1/6?se+(oe-se)*6*Ce:Ce<1/2?oe:Ce<2/3?se+(oe-se)*(2/3-Ce)*6:se}var U=new RegExp("^"+At+"$").exec(g);if(U){if(E=parseInt(U[1]),E<0?E=(360- -1*E%360)%360:E>360&&(E=E%360),E/=360,S=parseFloat(U[2]),S<0||S>100||(S=S/100,D=parseFloat(U[3]),D<0||D>100)||(D=D/100,I=U[4],I!==void 0&&(I=parseFloat(I),I<0||I>1)))return;if(S===0)R=$=C=Math.round(D*255);else{var J=D<.5?D*(1+S):D+S-D*S,te=2*D-J;R=Math.round(255*G(te,J,E+1/3)),$=Math.round(255*G(te,J,E)),C=Math.round(255*G(te,J,E-1/3))}y=[R,$,C,I]}return y},pi=function(g){var y,E=new RegExp("^"+Tt+"$").exec(g);if(E){y=[];for(var S=[],D=1;D<=3;D++){var I=E[D];if(I[I.length-1]==="%"&&(S[D]=!0),I=parseFloat(I),S[D]&&(I=I/100*255),I<0||I>255)return;y.push(Math.floor(I))}var R=S[1]||S[2]||S[3],$=S[1]&&S[2]&&S[3];if(R&&!$)return;var C=E[4];if(C!==void 0){if(C=parseFloat(C),C<0||C>1)return;y.push(C)}}return y},Fr=function(g){return Wn[g.toLowerCase()]},tr=funct
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)
*/var JP=0,eB=1,tB=2,tv=function m(g){if(!(this instanceof m))return new m(g);this.id="Thenable/1.0.7",this.state=JP,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof g=="function"&&g.call(this,this.fulfill.bind(this),this.reject.bind(this))};tv.prototype={fulfill:function(g){return nB(this,eB,"fulfillValue",g)},reject:function(g){return nB(this,tB,"rejectReason",g)},then:function(g,y){var E=this,S=new tv;return E.onFulfilled.push(sB(g,S,"fulfill")),E.onRejected.push(sB(y,S,"reject")),rB(E),S.proxy}};var nB=function(g,y,E,S){return g.state===JP&&(g.state=y,g[E]=S,rB(g)),g},rB=function(g){g.state===eB?iB(g,"onFulfilled",g.fulfillValue):g.state===tB&&iB(g,"onRejected",g.rejectReason)},iB=function(g,y,E){if(g[y].length!==0){var S=g[y];g[y]=[];var D=function(){for(var R=0;R<S.length;R++)S[R](E)};typeof setImmediate=="function"?setImmediate(D):setTimeout(D,0)}},sB=function(g,y,E){return function(S){if(typeof g!="function")y[E].call(y,S);else{var D;try{D=g(S)}catch(I){y.reject(I);return}rX(y,D)}}},rX=function m(g,y){if(g===y||g.proxy===y){g.reject(new TypeError("cannot resolve promise with itself"));return}var E;if(f(y)==="object"&&y!==null||typeof y=="function")try{E=y.then}catch(D){g.reject(D);return}if(typeof E=="function"){var S=!1;try{E.call(y,function(D){S||(S=!0,D===y?g.reject(new TypeError("circular thenable chain")):m(g,D))},function(D){S||(S=!0,g.reject(D))})}catch(D){S||g.reject(D)}return}g.fulfill(y)};tv.all=function(m){return new tv(function(g,y){for(var E=new Array(m.length),S=0,D=function($,C){E[$]=C,S++,S===m.length&&g(E)},I=0;I<m.length;I++)(function(R){var $=m[R],C=$!=null&&$.then!=null;if(C)$.then(function(U){D(R,U)},function(U){y(U)});else{var G=$;D(R,G)}})(I)})},tv.resolve=function(m){return new tv(function(g,y){g(m)})},tv.reject=function(m){return new tv(function(g,y){y(m)})};var H5=typeof Promise<"u"?Promise:tv,_9=function(g,y,E){var S=Re(g),D=!S,I=this._private=Oe({duration:1e3},y,E);if(I.target=g,I.style=I.style||I.css,I.started=!1,I.playing=!1,I.hooked=!1,I.applying=!1,I.progress=0,I.completes=[],I.frames=[],I.complete&&Ee(I.complete)&&I.completes.push(I.complete),D){var R=g.position();I.startPosition=I.startPosition||{x:R.x,y:R.y},I.startStyle=I.startStyle||g.cy().style().getAnimationStartStyle(g,I.style)}if(S){var $=g.pan();I.startPan={x:$.x,y:$.y},I.startZoom=g.zoom()}this.length=1,this[0]=this},w3=_9.prototype;Oe(w3,{instanceString:function(){return"animation"},hook:function(){var g=this._private;if(!g.hooked){var y,E=g.target._private.animation;g.queue?y=E.queue:y=E.current,y.push(this),he(g.target)&&g.target.cy().addToAnimationPool(g.target),g.hooked=!0}return this},play:function(){var g=this._private;return g.progress===1&&(g.progress=0),g.playing=!0,g.started=!1,g.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var g=this._private;return g.applying=!0,g.started=!1,g.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var g=this._private;return g.playing=!1,g.started=!1,this},stop:function(){var g=this._private;return g.playing=!1,g.started=!1,g.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(g){var y=this._private;return g===void 0?y.progress*y.duration:this.progress(g/y.duration)},progress:function(g){var y=this._private,E=y.playing;return g===void 0?y.progress:(E&&this.pause(),y.progress=g,y.started=!1,E&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var g=this._private,y=g.playing;y&&this.pause(),g.progress=1-g.progress,g.started=!1;var E=function(C,G){var U=g[C];U!=null&&(g[C]=g[G],g[G]=U)};if(E("zoom","startZoom"),E("pan","startPan"),E("position","startPosition"),g.style)for(var S=0;S<g.style.length;S++){var D=g.style[S],I=D.name,R=g.startStyle[I];g.startStyle[I]=D,g.style[S]=R}return y&&this.play(),this},promise:function(g){var y=this._private,E;switch(g){case"frame":E=y.frames;break;default:c
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
*/var BB=function(g,y){this.recycle(g,y)};function k8(){return!1}function P9(){return!0}BB.prototype={instanceString:function(){return"event"},recycle:function(g,y){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=k8,g!=null&&g.preventDefault?(this.type=g.type,this.isDefaultPrevented=g.defaultPrevented?P9:k8):g!=null&&g.type?y=g:this.type=g,y!=null&&(this.originalEvent=y.originalEvent,this.type=y.type!=null?y.type:this.type,this.cy=y.cy,this.target=y.target,this.position=y.position,this.renderedPosition=y.renderedPosition,this.namespace=y.namespace,this.layout=y.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var E=this.position,S=this.cy.zoom(),D=this.cy.pan();this.renderedPosition={x:E.x*S+D.x,y:E.y*S+D.y}}this.timeStamp=g&&g.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=P9;var g=this.originalEvent;g&&g.preventDefault&&g.preventDefault()},stopPropagation:function(){this.isPropagationStopped=P9;var g=this.originalEvent;g&&g.stopPropagation&&g.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=P9,this.stopPropagation()},isDefaultPrevented:k8,isPropagationStopped:k8,isImmediatePropagationStopped:k8};var FB=/^([^.]+)(\.(?:[^.]+))?$/,NZ=".*",RB={qualifierCompare:function(g,y){return g===y},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(g){return g},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},jB=Object.keys(RB),PZ={};function B9(){for(var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:PZ,g=arguments.length>1?arguments[1]:void 0,y=0;y<jB.length;y++){var E=jB[y];this[E]=m[E]||RB[E]}this.context=g||this.context,this.listeners=[],this.emitting=0}var dm=B9.prototype,$B=function(g,y,E,S,D,I,R){Ee(S)&&(D=S,S=null),R&&(I==null?I=R:I=Oe({},I,R));for(var $=Me(E)?E:E.split(/\s+/),C=0;C<$.length;C++){var G=$[C];if(!de(G)){var U=G.match(FB);if(U){var J=U[1],te=U[2]?U[2]:null,se=y(g,G,J,te,S,D,I);if(se===!1)break}}}},HB=function(g,y){return g.addEventFields(g.context,y),new BB(y.type,y)},BZ=function(g,y,E){if(Ge(E)){y(g,E);return}else if(fe(E)){y(g,HB(g,E));return}for(var S=Me(E)?E:E.split(/\s+/),D=0;D<S.length;D++){var I=S[D];if(!de(I)){var R=I.match(FB);if(R){var $=R[1],C=R[2]?R[2]:null,G=HB(g,{type:$,namespace:C,target:g.context});y(g,G)}}}};dm.on=dm.addListener=function(m,g,y,E,S){return $B(this,function(D,I,R,$,C,G,U){Ee(G)&&D.listeners.push({event:I,callback:G,type:R,namespace:$,qualifier:C,conf:U})},m,g,y,E,S),this},dm.one=function(m,g,y,E){return this.on(m,g,y,E,{one:!0})},dm.removeListener=dm.off=function(m,g,y,E){var S=this;this.emitting!==0&&(this.listeners=CW(this.listeners));for(var D=this.listeners,I=function(C){var G=D[C];$B(S,function(U,J,te,se,oe,Ce){if((G.type===te||m==="*")&&(!se&&G.namespace!==".*"||G.namespace===se)&&(!oe||U.qualifierCompare(G.qualifier,oe))&&(!Ce||G.callback===Ce))return D.splice(C,1),!1},m,g,y,E)},R=D.length-1;R>=0;R--)I(R);return this},dm.removeAllListeners=function(){return this.removeListener("*")},dm.emit=dm.trigger=function(m,g,y){var E=this.listeners,S=E.length;return this.emitting++,Me(g)||(g=[g]),BZ(this,function(D,I){y!=null&&(E=[{event:I.event,type:I.type,namespace:I.namespace,callback:y}],S=E.length);for(var R=function(G){var U=E[G];if(U.type===I.type&&(!U.namespace||U.namespace===I.namespace||U.namespace===NZ)&&D.eventMatches(D.context,U,I)){var J=[I];g!=null&&TP(J,g),D.beforeEmit(D.context,U,I),U.conf&&U.conf.one&&(D.listeners=D.listeners.filter(function(oe){return oe!==U}));var te=D.callbackContext(D.context,U,I),se=U.callback.apply(te,J);D.afterEmit(D.context,U,I),se===!1&&(I.stopPropagation(),I.preventDefault())}},$=0;$<S;$++)R($);D.bubble(D.context)&&!I.isPropagationStopped()&&D.parent(D.context).emit(I,g)},m),this.emitting--,this};var FZ={qualifierCompare:function(g,y){return g==null||y==null?g==null&&y==null:g.sameText(y)},eventMatches:function(g,y,E){var S=y.qualifier;return S!=null?g!==E.target&&De(E.target)&&S.matches(
`),U=m.pstyle("text-max-width").pfValue,J=m.pstyle("text-overflow-wrap").value,te=J==="anywhere",se=[],oe=/[\s\u200b]+/,Ce=te?"":" ",ve=0;ve<G.length;ve++){var Ae=G[ve],Le=this.calculateLabelDimensions(m,Ae),Be=Le.width;if(te){var Xe=Ae.split("").join(C);Ae=Xe}if(Be>U){for(var Ue=Ae.split(oe),Fe="",et=0;et<Ue.length;et++){var ze=Ue[et],ut=Fe.length===0?ze:Fe+Ce+ze,ht=this.calculateLabelDimensions(m,ut),tt=ht.width;tt<=U?Fe+=ze+Ce:(Fe&&se.push(Fe),Fe=ze+Ce)}Fe.match(/^[\s\u200b]+$/)||se.push(Fe)}else se.push(Ae)}I("labelWrapCachedLines",se),S=I("labelWrapCachedText",se.join(`
`)),I("labelWrapKey",$)}else if(R==="ellipsis"){var Dt=m.pstyle("text-max-width").pfValue,ft="",ln="…",Rt=!1;if(this.calculateLabelDimensions(m,S).width<Dt)return S;for(var Ht=0;Ht<S.length;Ht++){var wn=this.calculateLabelDimensions(m,ft+S[Ht]+ln).width;if(wn>Dt)break;ft+=S[Ht],Ht===S.length-1&&(Rt=!0)}return Rt||(ft+=ln),ft}return S},gp.getLabelJustification=function(m){var g=m.pstyle("text-justification").strValue,y=m.pstyle("text-halign").strValue;if(g==="auto")if(m.isNode())switch(y){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return g},gp.calculateLabelDimensions=function(m,g){var y=this,E=op(g,m._private.labelDimsKey),S=y.labelDimCache||(y.labelDimCache=[]),D=S[E];if(D!=null)return D;var I=0,R=m.pstyle("font-style").strValue,$=m.pstyle("font-size").pfValue,C=m.pstyle("font-family").strValue,G=m.pstyle("font-weight").strValue,U=this.labelCalcCanvas,J=this.labelCalcCanvasContext;if(!U){U=this.labelCalcCanvas=document.createElement("canvas"),J=this.labelCalcCanvasContext=U.getContext("2d");var te=U.style;te.position="absolute",te.left="-9999px",te.top="-9999px",te.zIndex="-1",te.visibility="hidden",te.pointerEvents="none"}J.font="".concat(R," ").concat(G," ").concat($,"px ").concat(C);for(var se=0,oe=0,Ce=g.split(`
`),ve=0;ve<Ce.length;ve++){var Ae=Ce[ve],Le=J.measureText(Ae),Be=Math.ceil(Le.width),Xe=$;se=Math.max(Be,se),oe+=Xe}return se+=I,oe+=I,S[E]={width:se,height:oe}},gp.calculateLabelAngle=function(m,g){var y=m._private,E=y.rscratch,S=m.isEdge(),D=g?g+"-":"",I=m.pstyle(D+"text-rotation"),R=I.strValue;return R==="none"?0:S&&R==="autorotate"?E.labelAutoAngle:R==="autorotate"?0:I.pfValue},gp.calculateLabelAngles=function(m){var g=this,y=m.isEdge(),E=m._private,S=E.rscratch;S.labelAngle=g.calculateLabelAngle(m),y&&(S.sourceLabelAngle=g.calculateLabelAngle(m,"source"),S.targetLabelAngle=g.calculateLabelAngle(m,"target"))};var ch={},ML=28,wF=!1;ch.getNodeShape=function(m){var g=this,y=m.pstyle("shape").value;if(y==="cutrectangle"&&(m.width()<ML||m.height()<ML))return wF||(Jo("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),wF=!0),"rectangle";if(m.isParent())return y==="rectangle"||y==="roundrectangle"||y==="round-rectangle"||y==="cutrectangle"||y==="cut-rectangle"||y==="barrel"?y:"rectangle";if(y==="polygon"){var E=m.pstyle("shape-polygon-points").value;return g.nodeShapes.makePolygon(E).name}return y};var A8={};A8.registerCalculationListeners=function(){var m=this.cy,g=m.collection(),y=this,E=function(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(g.merge(I),R)for(var $=0;$<I.length;$++){var C=I[$],G=C._private,U=G.rstyle;U.clean=!1,U.cleanConnected=!1}};y.binder(m).on("bounds.* dirty.*",function(I){var R=I.target;E(R)}).on("style.* background.*",function(I){var R=I.target;E(R,!1)});var S=function(I){if(I){var R=y.onUpdateEleCalcsFns;g.cleanStyle();for(var $=0;$<g.length;$++){var C=g[$],G=C._private.rstyle;C.isNode()&&!G.cleanConnected&&(E(C.connectedEdges()),G.cleanConnected=!0)}if(R)for(var U=0;U<R.length;U++){var J=R[U];J(I,g)}y.recalculateRenderedStyle(g),g=m.collection()}};y.flushRenderedStyleQueue=function(){S(!0)},y.beforeRender(S,y.beforeRenderPriorities.eleCalcs)},A8.onUpdateEleCalcs=function(m){var g=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];g.push(m)},A8.recalculateRenderedStyle=function(m,g){var y=function(Be){return Be._private.rstyle.cleanConnected},E=[],S=[];if(!this.destroyed){g===void 0&&(g=!0);for(var D=0;D<m.length;D++){var I=m[D],R=I._private,$=R.rstyle;I.isEdge()&&(!y(I.source())||!y(I.target()))&&($.clean=!1),!(g&&$.clean||I.removed())&&I.pstyle("display").value!=="none"&&(R.group==="nodes"?S.push(I):E.push(I),$.clean=!0)}for(var C=0;C<S.length;C++){var G=S[C],U=G._private,J=U.rstyle,te=G.position();this.recalculateNodeLabelProjection(G),J.nodeX=te.x,J.nodeY=te.y,J.nodeW=G.pstyle("width").pfValue,J.nodeH=G.pstyle("height").pfValue}this.recalculateEdgeProjections(E);for(var se=0;se<E.length;se++){var oe=E[se],Ce=oe._private,ve=Ce.rstyle,Ae=Ce.rscratch;ve.srcX=Ae.arrowStartX,ve.srcY=Ae.arrowStartY,ve.tgtX=Ae.arrowEndX,ve.tgtY=Ae.arrowEndY,ve.midX=Ae.midX,ve.midY=Ae.midY,ve.labelAngle=Ae.labelAngle,ve.sourceLabelAngle=Ae.sourceLabelAngle,ve.targetLabelAngle=Ae.targetLabelAngle}}};var J9={};J9.updateCachedGrabbedEles=function(){var m=this.cachedZSortedEles;if(m){m.drag=[],m.nondrag=[];for(var g=[],y=0;y<m.length;y++){var E=m[y],S=E._private.rscratch;E.grabbed()&&!E.isParent()?g.push(E):S.inDragLayer?m.drag.push(E):m.nondrag.push(E)}for(var y=0;y<g.length;y++){var E=g[y];m.drag.push(E)}}},J9.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},J9.getCachedZSortedEles=function(m){if(m||!this.cachedZSortedEles){var g=this.cy.mutableElements().toArray();g.sort(qB),g.interactive=g.filter(function(y){return y.interactive()}),this.cachedZSortedEles=g,this.updateCachedGrabbedEles()}else g=this.cachedZSortedEles;return g};var L8={};[k3,Z9,od,S8,LL,gp,ch,A8,J9].forEach(function(m){Oe(L8,m)});var mF={};mF.getCachedImage=function(m,g,y){var E=this,S=E.imageCache=E.imageCache||{},D=S[m];if(D)return D.image.complete||D.image.addEventListener("load",y),D.image;D=S[m]=S[m]||{};var I=D.image=new Image;I.addEventListener("load",y),I.addEventListener("error",function(){I.error=!0});var R="data:",$=m.substring(0,R.length).toLowerCase()=
`+s);const k=Pt().securityLevel;let b;k==="sandbox"&&(b=sr("#i"+o));const A=sr(k==="sandbox"?b.nodes()[0].contentDocument.body:"body").select("#"+o);A.append("g");const N=p.db.getMindmap(),B=A.append("g");B.attr("class","mindmap-edges");const F=A.append("g");F.attr("class","mindmap-nodes"),wRe(F,N,-1,w);const H=await Rzt(N,w);Fzt(B,H),jzt(H),KE(void 0,A,w.mindmap.padding,w.mindmap.useMaxWidth)}},Hzt=s=>{let o="";for(let f=0;f<s.THEME_COLOR_LIMIT;f++)s["lineColor"+f]=s["lineColor"+f]||s["cScaleInv"+f],uDe(s["lineColor"+f])?s["lineColor"+f]=Qs(s["lineColor"+f],20):s["lineColor"+f]=Sa(s["lineColor"+f],20);for(let f=0;f<s.THEME_COLOR_LIMIT;f++){const p=""+(17-3*f);o+=`
.section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} polygon, .section-${f-1} path {
fill: ${s["cScale"+f]};
}
.section-${f-1} text {
fill: ${s["cScaleLabel"+f]};
}
.node-icon-${f-1} {
font-size: 40px;
color: ${s["cScaleLabel"+f]};
}
.section-edge-${f-1}{
stroke: ${s["cScale"+f]};
}
.edge-depth-${f-1}{
stroke-width: ${p};
}
.section-${f-1} line {
stroke: ${s["cScaleInv"+f]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return o},zzt=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:yzt,renderer:$zt,parser:lzt,styles:s=>`
.edge {
stroke-width: 3;
}
${Hzt(s)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${s.git0};
}
.section-root text {
fill: ${s.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
`}},Symbol.toStringTag,{value:"Module"}));return Wb});
//# sourceMappingURL=mermaid.min.js.map